[03:04:02]OFD Sender: No OFD packet to send [03:04:07]OFD Sender: No OFD packet to send [03:04:12]OFD Sender: No OFD packet to send [03:04:17]OFD Sender: No OFD packet to send [03:04:22]OFD Sender: No OFD packet to send [03:04:27]OFD Sender: No OFD packet to send [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:12]OFD Sender: No OFD packet to send [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:07]OFD Sender: No OFD packet to send [03:06:12]OFD Sender: No OFD packet to send [03:06:17]OFD Sender: No OFD packet to send [03:06:22]OFD Sender: No OFD packet to send [03:06:27]OFD Sender: No OFD packet to send [03:06:32]OFD Sender: No OFD packet to send [03:06:37]OFD Sender: No OFD packet to send [03:06:42]OFD Sender: No OFD packet to send [03:06:47]OFD Sender: No OFD packet to send [03:06:52]OFD Sender: No OFD packet to send [03:06:57]OFD Sender: No OFD packet to send [03:07:02]OFD Sender: No OFD packet to send [03:07:07]OFD Sender: No OFD packet to send [03:07:12]OFD Sender: No OFD packet to send [03:07:17]OFD Sender: No OFD packet to send [03:07:22]OFD Sender: No OFD packet to send [03:07:27]OFD Sender: No OFD packet to send [03:07:32]OFD Sender: No OFD packet to send [03:07:37]OFD Sender: No OFD packet to send [03:07:42]OFD Sender: No OFD packet to send [03:07:47]OFD Sender: No OFD packet to send [03:07:52]OFD Sender: No OFD packet to send [03:07:57]OFD Sender: No OFD packet to send [03:08:02]OFD Sender: No OFD packet to send [03:08:07]OFD Sender: No OFD packet to send [03:08:12]OFD Sender: No OFD packet to send [03:08:17]OFD Sender: No OFD packet to send [03:08:22]OFD Sender: No OFD packet to send [03:08:27]OFD Sender: No OFD packet to send [03:08:32]OFD Sender: No OFD packet to send [03:08:37]OFD Sender: No OFD packet to send [03:08:42]OFD Sender: No OFD packet to send [03:08:47]OFD Sender: No OFD packet to send [03:08:52]OFD Sender: No OFD packet to send [03:08:57]OFD Sender: No OFD packet to send [03:09:02]OFD Sender: No OFD packet to send [03:09:07]OFD Sender: No OFD packet to send [03:09:12]OFD Sender: No OFD packet to send [03:09:17]OFD Sender: No OFD packet to send [03:09:22]OFD Sender: No OFD packet to send [03:09:27]OFD Sender: No OFD packet to send [03:09:32]OFD Sender: No OFD packet to send [03:09:37]OFD Sender: No OFD packet to send [03:09:42]OFD Sender: No OFD packet to send [03:09:47]OFD Sender: No OFD packet to send [03:09:52]OFD Sender: No OFD packet to send [03:09:57]OFD Sender: No OFD packet to send [03:10:02]OFD Sender: No OFD packet to send [03:10:07]OFD Sender: No OFD packet to send [03:10:12]OFD Sender: No OFD packet to send [03:10:17]OFD Sender: No OFD packet to send [03:10:22]OFD Sender: No OFD packet to send [03:10:27]OFD Sender: No OFD packet to send [03:10:32]OFD Sender: No OFD packet to send [03:10:37]OFD Sender: No OFD packet to send [03:10:42]OFD Sender: No OFD packet to send [03:10:47]OFD Sender: No OFD packet to send [03:10:52]OFD Sender: No OFD packet to send [03:10:57]OFD Sender: No OFD packet to send [03:11:02]OFD Sender: No OFD packet to send [03:11:07]OFD Sender: No OFD packet to send [03:11:12]OFD Sender: No OFD packet to send [03:11:17]OFD Sender: No OFD packet to send [03:11:22]OFD Sender: No OFD packet to send [03:11:27]OFD Sender: No OFD packet to send [03:11:32]OFD Sender: No OFD packet to send [03:11:37]OFD Sender: No OFD packet to send [03:11:42]OFD Sender: No OFD packet to send [03:11:47]OFD Sender: No OFD packet to send [03:11:52]OFD Sender: No OFD packet to send [03:11:57]OFD Sender: No OFD packet to send [03:12:02]OFD Sender: No OFD packet to send [03:12:07]OFD Sender: No OFD packet to send [03:12:12]OFD Sender: No OFD packet to send [03:12:17]OFD Sender: No OFD packet to send [03:12:22]OFD Sender: No OFD packet to send [03:12:27]OFD Sender: No OFD packet to send [03:12:32]OFD Sender: No OFD packet to send [03:12:37]OFD Sender: No OFD packet to send [03:12:42]OFD Sender: No OFD packet to send [03:12:47]OFD Sender: No OFD packet to send [03:12:52]OFD Sender: No OFD packet to send [03:12:57]OFD Sender: No OFD packet to send [03:13:02]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]accept exits with 9 [03:16:33]New connection [03:16:33]New thread 3066928484 created [03:16:33]Thread 3066785124 joined [03:16:33]Waiting for new connection... [03:16:33] Sock 9.Parse request [03:16:33]Sock 9.Check first char [03:16:33]Sock 9.First char is OK [03:16:33]request: POST /json_proto HTTP/1.0 [03:16:33]Method: POST [03:16:33]URL: /json_proto [03:16:33]Method is POST - this is cgi request [03:16:33]url: /json_proto [03:16:33]query_string will be loaded in cgi processing [03:16:33]execute_cgi json_proto POST (null) [03:16:33]execute_cgi path=json_proto method=POST [03:16:33]POST find Content-Length [03:16:33]Host: 172.17.33.3:8080 [03:16:33]Content-Length: 677 [03:16:33]Content-Type: application/json [03:16:33] [03:16:33]POST finish read [03:16:33]Found Content-Length = 677 [03:16:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347470", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.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" ] } } [03:16:33]execute_script... [03:16: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)347470", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.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" ] } } [03:16:33]POST & json_proto [03:16:33]process_json_proto [03:16:33]json parsed OK: [03:16:33]protocol is kg_v1.0 [03:16:33]action value=close_receipt [03:16:33]process_action close_receipt [03:16:33]cmd_close_receipt [03:16:33]MH_GetDate [03:16:33]Write to MH i2c: F0 00 00 7A 73 DC [03:16:33]Write i2c OK [03:16:33]MH_I2C_Read... [03:16:33]Read from MH i2c: F0 [03:16:33]MH_I2C_Read... [03:16:33]Read from MH i2c: F0 09 00 [03:16:33]MH_I2C_Read... [03:16:33]Read from MH i2c: F0 09 00 7A 73 00 98 4A 1B 66 23 5B 8F 65 BA [03:16:33]GetLastDocTimeStamp 1713063632 [03:16:33]current date 1713064600 [03:16:33]FM_GetShiftState [03:16:33]SAM_PROTO_GetShiftState [03:16:33]wFMCommunicate request_size=4 [03:16:33]MH_SAM_APDU [03:16:33]CAPDU: 80 13 01 00 [03:16:33]Write to MH i2c: E2 08 00 7B 73 80 13 01 00 00 00 00 00 6B [03:16:33]Write i2c OK [03:16:33]MH_I2C_Read... [03:16:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:16:33]Read from MH i2c: E2 [03:16:33]MH_I2C_Read... [03:16:33]Read from MH i2c: E2 0E 00 [03:16:33]MH_I2C_Read... [03:16:33]Read from MH i2c: E2 0E 00 7B 73 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 17 [03:16:33]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [03:16:33]wFMCommunicate OK [03:16:33]SAM_PROTO_GetShiftState done [03:16:33]FM_GetShiftState done [03:16:33]opened in 1713053951 [03:16:33]opened+sec_in_day 1713140351 [03:16:33]quantity*price = 50025 [03:16:33]sum+1 = 50026 [03:16:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 12 14.04.2024 03:16 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29102 ФПД: 8770461359144 1/tax-web-control/client/api/v1/ticket?date=20240414T031641&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29102&fm=8770461359144&tin=02508201610067®Number=0000138879044617&sum=50000 [03:16:34]StoreToDocumentArchive [03:16:34]shift 116 fd 29102 [03:16:34]save to /storage/0116/doc_00029102 [03:16:34]save last doc name /storage/0116/doc_00029102 to /storage/kkm_last_doc_name [03:16:34]save OK [03:16:34]Clear old archive folders... [03:16:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:16:34]tlvbuf is 012145D0 [03:16:34]SAM_PROTO_ClearQueue [03:16:34]wFMCommunicate request_size=4 [03:16:34]MH_SAM_APDU [03:16:34]CAPDU: 80 09 00 00 [03:16:34]Write to MH i2c: E2 08 00 88 73 80 09 00 00 00 00 00 00 6D [03:16:34]Write i2c OK [03:16:34]MH_I2C_Read... [03:16:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:16:34]Read from MH i2c: E2 [03:16:34]MH_I2C_Read... [03:16:34]Read from MH i2c: E2 03 00 [03:16:34]MH_I2C_Read... [03:16:34]Read from MH i2c: E2 03 00 88 73 00 90 00 6F [03:16:34]RAPDU: 90 00 [03:16:34]wFMCommunicate OK [03:16:34]SAM_PROTO_ClearQueue done [03:16:34]KKMCreateOFDPacket [03:16:34]OFDProtocolAddRootSTLVToBuf [03:16:34]FM_MakeSignedData [03:16:34]FM_MakeSignedData [03:16:34]SAM_PROTO_SignData [03:16:34]wFMCommunicate request_size=4 [03:16:34]MH_SAM_APDU [03:16:34]CAPDU: 80 0D 01 02 [03:16:34]Write to MH i2c: E2 08 00 89 73 80 0D 01 02 00 00 00 00 75 [03:16:34]Write i2c OK [03:16:34]MH_I2C_Read... [03:16:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:16:34]Read from MH i2c: E2 [03:16:34]MH_I2C_Read... [03:16:34]Read from MH i2c: E2 03 00 [03:16:34]MH_I2C_Read... [03:16:34]Read from MH i2c: E2 03 00 89 73 00 90 00 70 [03:16:34]RAPDU: 90 00 [03:16:34]wFMCommunicate OK [03:16:34]wFMCommunicate request_size=255 [03:16:34]MH_SAM_APDU [03:16: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 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 0C 00 00 00 F4 03 04 00 99 4A 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AE 71 00 00 35 04 06 00 07 [03:16:34]Write to MH i2c: E2 02 01 8A 73 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 0C 00 00 00 F4 03 04 00 99 4A 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AE 71 00 00 35 04 06 00 07 00 00 41 [03:16:34]Write i2c OK [03:16:34]MH_I2C_Read... [03:16:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:16:34]Read from MH i2c: E2 [03:16:34]MH_I2C_Read... [03:16:34]Read from MH i2c: E2 03 00 [03:16:34]MH_I2C_Read... [03:16:34]Read from MH i2c: E2 03 00 8A 73 00 90 00 71 [03:16:34]RAPDU: 90 00 [03:16:34]wFMCommunicate OK [03:16:34]wFMCommunicate request_size=10 [03:16:34]MH_SAM_APDU [03:16:34]CAPDU: 80 0D 02 02 05 FA 08 3B DC 28 [03:16:34]Write to MH i2c: E2 0D 00 8B 73 80 0D 02 02 05 00 FA 08 3B DC 28 00 00 C3 [03:16:34]Write i2c OK [03:16:34]MH_I2C_Read... [03:16:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:16:34]Read from MH i2c: E2 [03:16:34]MH_I2C_Read... [03:16:34]Read from MH i2c: E2 03 00 [03:16:34]MH_I2C_Read... [03:16:34]Read from MH i2c: E2 03 00 8B 73 00 90 00 72 [03:16:34]RAPDU: 90 00 [03:16:34]wFMCommunicate OK [03:16:34]wFMCommunicate request_size=4 [03:16:34]MH_SAM_APDU [03:16:34]CAPDU: 80 0D 03 02 [03:16:34]Write to MH i2c: E2 08 00 8C 73 80 0D 03 02 00 00 00 00 7A [03:16:34]Write i2c OK [03:16:34]MH_I2C_Read... [03:16:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:16:34]Read from MH i2c: E2 [03:16:34]MH_I2C_Read... [03:16:34]Read from MH i2c: E2 0B 00 [03:16:34]MH_I2C_Read... [03:16:34]Read from MH i2c: E2 0B 00 8C 73 00 0B E8 65 0B 04 58 C3 25 90 00 22 [03:16:34]RAPDU: 0B E8 65 0B 04 58 C3 25 90 00 [03:16:34]wFMCommunicate OK [03:16:34]SAM_PROTO_SignData done [03:16:34]FM_MakeSignedData done [03:16:34]CreateOFDProtocolMessage [03:16:34]wFMCommunicate request_size=4 [03:16:34]MH_SAM_APDU [03:16:34]CAPDU: 80 11 00 00 [03:16:34]Write to MH i2c: E2 08 00 8D 73 80 11 00 00 00 00 00 00 7A [03:16:34]Write i2c OK [03:16:34]MH_I2C_Read... [03:16:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:16:34]Read from MH i2c: E2 [03:16:34]MH_I2C_Read... [03:16:34]Read from MH i2c: E2 17 00 [03:16:34]MH_I2C_Read... [03:16:34]Read from MH i2c: E2 17 00 8D 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C9 [03:16:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [03:16:34]wFMCommunicate OK [03:16:34]CreateOFDProtocolMessage done [03:16:34]OFDSenderStorePacket 29102 [03:16:34]StoreOFDPacket docnum=29102 [03:16:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 BA C1 07 01 4D 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 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 0C 00 00 00 F4 03 04 00 99 4A 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AE 71 00 00 35 04 06 00 07 FA 08 3B DC 28 0B E8 65 0B 04 58 C3 25 [03:16:34]CheckFolder [03:16:34]dirname=/storage/ofd_packets [03:16:34]CheckFolder done [03:16:34]ProducePacketName [03:16:34]name=ofd_packets/00029102 [03:16:34]NVStorageSaveData ofd_packets/00029102 [03:16:34]File name is /storage/ofd_packets/00029102 [03:16:34]Write 301 bytes [03:16:34]NVStorageSaveData done [03:16:34]OFDSenderStorePacket done [03:16:34]KKMCreateOFDPacket done [03:16:34]NVStorageSaveData kkm_last_timestamp [03:16:34]File name is /storage/kkm_last_timestamp [03:16:34]Write 4 bytes [03:16:34]NVStorageSaveData done [03:16:34]ExternCall_PrintAddStr [03:16:34]wPrintStart [03:16:34]Write to MH i2c: 01 00 00 8E 73 01 [03:16:34]Write i2c OK [03:16:34]MH_I2C_Read... [03:16:34]Read from MH i2c: 01 [03:16:34]MH_I2C_Read... [03:16:34]Read from MH i2c: 01 07 00 [03:16:34]MH_I2C_Read... [03:16:34]Read from MH i2c: 01 07 00 8E 73 00 00 00 00 00 FF 0F 16 [03:16:34]RasterBufferAndPrint [03:16:34]line Счет N : (1)347470 [03:16:34]line ИНН: 02508201610067 [03:16:34]line Контрольно-Кассовый Чек [03:16:34]line ПРОДАЖА [03:16:34]line ТРК (МРК, ГНК) : 23 [03:16:34]line Товар: 2710124130 [03:16:34]line Аи-92-К-5 [03:16:34]line 7.780 * 64.30 [03:16:34]line = 500.25 [03:16:34]line НДС 12% НСП 1% [03:16:34]line > о реализуемом товаре [03:16:34]line ОКРУГЛЕНИЕ: -0.25 [03:16:34]line ИТОГО: 500.00 [03:16:34]line Внесено: 500.00 [03:16:34]line СДАЧА: 0.00 [03:16:34]line НСП 1% : 4.43 [03:16:34]line НДС 12% : 53.12 [03:16:34]line Наличными: 500.00 [03:16:34]line Безнал.: 0.00 [03:16:34]line Место: АЗС № 108 "Партнер Нефть" [03:16:34]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [03:16:34]line СНО: Общий режим [03:16:34]line Чек 12 14.04.2024 03:16 [03:16:34]line Смена: 116 ФФД: 1.0 [03:16:34]line ЗНМ: 0300000027 [03:16:34]line РНМ: 0000138879044617 [03:16:34]line Версия ККМ: 001 [03:16:34]line ФМ: 0000000000963154 [03:16:34]line ФД: 29102 [03:16:34]line ФПД: 8770461359144 [03:16:34]line 1/tax-web-control/client/api/v1/ticket?date=20240414T031641&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29102&fm=8770461359144&tin=02508201610067®Number=0000138879044617&sum=50000 [03:16:35]OFD Sender: Processing packet 29102 [packets to send 8, broken 7] [03:16:35]ProducePacketName [03:16:35]name=ofd_packets/00029102 [03:16:35]OFD Sender: To server: pG, [03:16:35]CommunicateWithHost lk.salyk.kg:30040 [03:16:35]ConnectInit lk.salyk.kg [03:16:35]written 0, free lines is 4095 [03:16:35]Connected sock=10 [03:16:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 BA C1 07 01 4D 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 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 0C 00 00 00 F4 03 04 00 99 4A 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AE 71 00 00 35 04 06 00 07 FA 08 3B DC 28 0B E8 65 0B 04 58 C3 25 [03:16:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 79 10 47 00 0F 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AE 71 00 00 F4 03 04 00 3E F5 1A 66 B6 04 01 00 00 6D 6B 0C FA B3 A8 61 99 [03:16:35]CommunicateWithHost err = 0 [03:16:35]CheckOFDResponse [03:16:35]1017 (14) - 77093643461234 [03:16:35]1041 (16) - 0000000000963154 [03:16:35]1040 (4) - 29102 [03:16:35]1012 (4) - 13.04.2024 21:12 [03:16:35]1206 (1) - 0 [03:16:35]OFD Sender: Remove packet 29102 [03:16:35]ProducePacketName [03:16:35]name=ofd_packets/00029102 [03:16:35]NVStorageDeleteData [03:16:35]Write to MH i2c: 01 00 00 B8 73 2B [03:16:35]Write i2c OK [03:16:35]MH_I2C_Read... [03:16:35]Read from MH i2c: 01 [03:16:35]MH_I2C_Read... [03:16:35]Read from MH i2c: 01 07 00 [03:16:35]MH_I2C_Read... [03:16:35]Read from MH i2c: 01 07 00 B8 73 00 00 00 00 00 C1 0C FF [03:16:35]RasterBufferAndPrint [03:16:35]line [03:16:35]line [03:16:35]line [03:16:35]line [03:16:35]line [03:16:35]written 0, free lines is 3271 [03:16:35]MH_Cut [03:16:35]Write to MH i2c: D1 01 00 BF 73 01 04 [03:16:35]Write i2c OK [03:16:35]MH_I2C_Read... [03:16:35]Read from MH i2c: D1 [03:16:35]MH_I2C_Read... [03:16:35]Read from MH i2c: D1 01 00 [03:16:35]MH_I2C_Read... [03:16:35]Read from MH i2c: D1 01 00 BF 73 00 03 [03:16:35]Write to MH i2c: 01 00 00 C0 73 33 [03:16:35]Write i2c OK [03:16:35]MH_I2C_Read... [03:16:35]OFD Sender: No OFD packet to send [03:16:36]*** Cut start [03:16:36]*** Partial cut [03:16:36]*** CUTSNS_PIN = 1 [03:16:36]*** CUTSNS_PIN = 0 [03:16:36]*** Brake cut motor [03:16:36]Read from MH i2c: 01 [03:16:36]MH_I2C_Read... [03:16:36]*** Stop cut motor [03:16:36]*** Cut end [03:16:36]Read from MH i2c: 01 07 00 [03:16:36]MH_I2C_Read... [03:16:36]Read from MH i2c: 01 07 00 C0 73 00 00 00 00 00 FF 0F 48 [03:16:36]process_action close_receipt done [03:16:36]requested_data is exist [03:16:36]produce_requested_data [03:16:36]requested_item fm.sn is exist - process it [03:16:36]wFMCommunicate request_size=4 [03:16:36]MH_SAM_APDU [03:16:36]CAPDU: 80 11 00 00 [03:16:36]Write to MH i2c: E2 08 00 C1 73 80 11 00 00 00 00 00 00 AE [03:16:36]Write i2c OK [03:16:36]MH_I2C_Read... [03:16:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:16:37]Read from MH i2c: E2 [03:16:37]MH_I2C_Read... [03:16:37]Read from MH i2c: E2 17 00 [03:16:37]MH_I2C_Read... [03:16:37]Read from MH i2c: E2 17 00 C1 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 FD [03:16:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [03:16:37]wFMCommunicate OK [03:16:37]requested_item fd.num is exist - process it [03:16:37]SAM_PROTO_GetFieldsCounters [03:16:37]wFMCommunicate request_size=4 [03:16:37]MH_SAM_APDU [03:16:37]CAPDU: 80 13 00 00 [03:16:37]Write to MH i2c: E2 08 00 C2 73 80 13 00 00 00 00 00 00 B1 [03:16:37]Write i2c OK [03:16:37]MH_I2C_Read... [03:16:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:16:37]Read from MH i2c: E2 [03:16:37]MH_I2C_Read... [03:16:37]Read from MH i2c: E2 62 00 [03:16:37]MH_I2C_Read... [03:16:37]Read from MH i2c: E2 62 00 C2 73 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 AE 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 A6 [03:16:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 AE 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:16:37]wFMCommunicate OK [03:16:37]SAM_PROTO_GetFieldsCounters done [03:16:37]requested_item shift.num is exist - process it [03:16:37]requested_item shift.opened is exist - process it [03:16:37]req_shift_opened [03:16:37]FM_GetShiftState [03:16:37]SAM_PROTO_GetShiftState [03:16:37]wFMCommunicate request_size=4 [03:16:37]MH_SAM_APDU [03:16:37]CAPDU: 80 13 01 00 [03:16:37]Write to MH i2c: E2 08 00 C3 73 80 13 01 00 00 00 00 00 B3 [03:16:37]Write i2c OK [03:16:37]MH_I2C_Read... [03:16:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:16:37]Read from MH i2c: E2 [03:16:37]MH_I2C_Read... [03:16:37]Read from MH i2c: E2 0E 00 [03:16:37]MH_I2C_Read... [03:16:37]Read from MH i2c: E2 0E 00 C3 73 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 5F [03:16:37]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [03:16:37]wFMCommunicate OK [03:16:37]SAM_PROTO_GetShiftState done [03:16:37]FM_GetShiftState done [03:16:37]req_shift_opened done [03:16:37]requested_item shift.open_date is exist - process it [03:16:37]req_shift_open_date [03:16:37]req_shift_open_date done [03:16:37]produce_requested_data done [03:16:37]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29102,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [03:16:37]process_action_free close_receipt [03:16:37]json_value_free [03:16:37]json_value_free done [03:16:37]process_json_proto returns [03:16:37]Send response to host [03:16:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29102,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [03:16:37]free response buf [03:16:37]execute_script done [03:16:37]execute_script returns [03:16:37]free content buf [03:16:37]Sock 9.Close socket [03:16:37]Sock 9.Thread stoped [03:16:40]OFD Sender: No OFD packet to send [03:16:45]OFD Sender: No OFD packet to send [03:16:50]OFD Sender: No OFD packet to send [03:16:55]OFD Sender: No OFD packet to send [03:17:00]OFD Sender: No OFD packet to send [03:17:05]OFD Sender: No OFD packet to send [03:17:10]OFD Sender: No OFD packet to send [03:17:15]OFD Sender: No OFD packet to send [03:17:20]OFD Sender: No OFD packet to send [03:17:25]OFD Sender: No OFD packet to send [03:17:30]OFD Sender: No OFD packet to send [03:17:35]OFD Sender: No OFD packet to send [03:17:40]OFD Sender: No OFD packet to send [03:17:45]OFD Sender: No OFD packet to send [03:17:50]OFD Sender: No OFD packet to send [03:17:55]OFD Sender: No OFD packet to send [03:18:00]OFD Sender: No OFD packet to send [03:18:05]OFD Sender: No OFD packet to send [03:18:10]OFD Sender: No OFD packet to send [03:18:15]OFD Sender: No OFD packet to send [03:18:20]OFD Sender: No OFD packet to send [03:18:25]OFD Sender: No OFD packet to send [03:18:30]OFD Sender: No OFD packet to send [03:18:35]OFD Sender: No OFD packet to send [03:18:40]OFD Sender: No OFD packet to send [03:18:45]OFD Sender: No OFD packet to send [03:18:50]OFD Sender: No OFD packet to send [03:18:55]OFD Sender: No OFD packet to send [03:19:00]OFD Sender: No OFD packet to send [03:19:05]OFD Sender: No OFD packet to send [03:19:10]OFD Sender: No OFD packet to send [03:19:15]OFD Sender: No OFD packet to send [03:19:20]OFD Sender: No OFD packet to send [03:19:25]OFD Sender: No OFD packet to send [03:19:30]OFD Sender: No OFD packet to send [03:19: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:47]accept exits with 7 [03:20:47]New connection [03:20:47]New thread 3066785124 created [03:20:47]Thread 3066928484 joined [03:20:47]Waiting for new connection... [03:20:47] Sock 7.Parse request [03:20:47]Sock 7.Check first char [03:20:47]Sock 7.First char is OK [03:20:47]request: POST /json_proto HTTP/1.0 [03:20:47]Method: POST [03:20:47]URL: /json_proto [03:20:47]Method is POST - this is cgi request [03:20:47]url: /json_proto [03:20:47]query_string will be loaded in cgi processing [03:20:47]execute_cgi json_proto POST (null) [03:20:47]execute_cgi path=json_proto method=POST [03:20:47]POST find Content-Length [03:20:47]Host: 172.17.33.3:8080 [03:20:47]Content-Length: 816 [03:20:47]Content-Type: application/json [03:20:47] [03:20:47]POST finish read [03:20:47]Found Content-Length = 816 [03:20:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347471", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 9.340, "sum" : 600.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 600.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:20:47]execute_script... [03:20:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347471", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 9.340, "sum" : 600.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 600.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:20:47]POST & json_proto [03:20:47]process_json_proto [03:20:47]json parsed OK: [03:20:47]protocol is kg_v1.0 [03:20:47]action value=close_receipt [03:20:47]process_action close_receipt [03:20:47]cmd_close_receipt [03:20:47]MH_GetDate [03:20:47]Write to MH i2c: F0 00 00 C4 73 26 [03:20:47]Write i2c OK [03:20:47]MH_I2C_Read... [03:20:47]Read from MH i2c: F0 [03:20:47]MH_I2C_Read... [03:20:47]Read from MH i2c: F0 09 00 [03:20:47]MH_I2C_Read... [03:20:47]Read from MH i2c: F0 09 00 C4 73 00 97 4B 1B 66 23 5B 8F 65 04 [03:20:47]GetLastDocTimeStamp 1713064601 [03:20:47]current date 1713064855 [03:20:47]FM_GetShiftState [03:20:47]SAM_PROTO_GetShiftState [03:20:47]wFMCommunicate request_size=4 [03:20:47]MH_SAM_APDU [03:20:47]CAPDU: 80 13 01 00 [03:20:47]Write to MH i2c: E2 08 00 C5 73 80 13 01 00 00 00 00 00 B5 [03:20:47]Write i2c OK [03:20:47]MH_I2C_Read... [03:20:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:20:48]Read from MH i2c: E2 [03:20:48]MH_I2C_Read... [03:20:48]Read from MH i2c: E2 0E 00 [03:20:48]MH_I2C_Read... [03:20:48]Read from MH i2c: E2 0E 00 C5 73 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 61 [03:20:48]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [03:20:48]wFMCommunicate OK [03:20:48]SAM_PROTO_GetShiftState done [03:20:48]FM_GetShiftState done [03:20:48]opened in 1713053951 [03:20:48]opened+sec_in_day 1713140351 [03:20:48]quantity*price = 60056 [03:20:48]sum+1 = 60057 [03:20:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.56 НСП 1% : 5.31 НДС 12% : 63.78 Наличными: 0.00 Безнал.: 600.56 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 13 14.04.2024 03:20 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 29103 ФПД: 151814302368246 1/tax-web-control/client/api/v1/ticket?date=20240414T032055&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29103&fm=151814302368246&tin=02508201610067®Number=0000138879044617&sum=60056 [03:20:49]StoreToDocumentArchive [03:20:49]shift 116 fd 29103 [03:20:49]save to /storage/0116/doc_00029103 [03:20:49]save last doc name /storage/0116/doc_00029103 to /storage/kkm_last_doc_name [03:20:49]save OK [03:20:49]Clear old archive folders... [03:20:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:20:49]tlvbuf is 011EC9D0 [03:20:49]SAM_PROTO_ClearQueue [03:20:49]wFMCommunicate request_size=4 [03:20:49]MH_SAM_APDU [03:20:49]CAPDU: 80 09 00 00 [03:20:49]Write to MH i2c: E2 08 00 D2 73 80 09 00 00 00 00 00 00 B7 [03:20:49]Write i2c OK [03:20:49]MH_I2C_Read... [03:20:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:20:49]Read from MH i2c: E2 [03:20:49]MH_I2C_Read... [03:20:49]Read from MH i2c: E2 03 00 [03:20:49]MH_I2C_Read... [03:20:49]Read from MH i2c: E2 03 00 D2 73 00 90 00 B9 [03:20:49]RAPDU: 90 00 [03:20:49]wFMCommunicate OK [03:20:49]SAM_PROTO_ClearQueue done [03:20:49]KKMCreateOFDPacket [03:20:49]OFDProtocolAddRootSTLVToBuf [03:20:49]FM_MakeSignedData [03:20:49]FM_MakeSignedData [03:20:49]SAM_PROTO_SignData [03:20:49]wFMCommunicate request_size=4 [03:20:49]MH_SAM_APDU [03:20:49]CAPDU: 80 0D 01 02 [03:20:49]Write to MH i2c: E2 08 00 D3 73 80 0D 01 02 00 00 00 00 BF [03:20:49]Write i2c OK [03:20:49]MH_I2C_Read... [03:20:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:20:49]Read from MH i2c: E2 [03:20:49]MH_I2C_Read... [03:20:49]Read from MH i2c: E2 03 00 [03:20:49]MH_I2C_Read... [03:20:49]Read from MH i2c: E2 03 00 D3 73 00 90 00 BA [03:20:49]RAPDU: 90 00 [03:20:49]wFMCommunicate OK [03:20:49]wFMCommunicate request_size=255 [03:20:49]MH_SAM_APDU [03:20: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 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 98 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 00 00 00 00 00 00 39 04 06 00 98 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 97 4B 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AF 71 00 00 35 04 06 00 8A [03:20:49]Write to MH i2c: E2 02 01 D4 73 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 98 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 00 00 00 00 00 00 39 04 06 00 98 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 97 4B 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AF 71 00 00 35 04 06 00 8A 00 00 E8 [03:20:49]Write i2c OK [03:20:49]MH_I2C_Read... [03:20:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:20:49]Read from MH i2c: E2 [03:20:49]MH_I2C_Read... [03:20:49]Read from MH i2c: E2 03 00 [03:20:49]MH_I2C_Read... [03:20:49]Read from MH i2c: E2 03 00 D4 73 00 90 00 BB [03:20:49]RAPDU: 90 00 [03:20:49]wFMCommunicate OK [03:20:49]wFMCommunicate request_size=10 [03:20:49]MH_SAM_APDU [03:20:49]CAPDU: 80 0D 02 02 05 13 05 90 81 F6 [03:20:49]Write to MH i2c: E2 0D 00 D5 73 80 0D 02 02 05 00 13 05 90 81 F6 00 00 EB [03:20:49]Write i2c OK [03:20:49]MH_I2C_Read... [03:20:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:20:49]Read from MH i2c: E2 [03:20:49]MH_I2C_Read... [03:20:49]Read from MH i2c: E2 03 00 [03:20:49]MH_I2C_Read... [03:20:49]Read from MH i2c: E2 03 00 D5 73 00 90 00 BC [03:20:49]RAPDU: 90 00 [03:20:49]wFMCommunicate OK [03:20:49]wFMCommunicate request_size=4 [03:20:49]MH_SAM_APDU [03:20:49]CAPDU: 80 0D 03 02 [03:20:49]Write to MH i2c: E2 08 00 D6 73 80 0D 03 02 00 00 00 00 C4 [03:20:49]Write i2c OK [03:20:49]MH_I2C_Read... [03:20:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:20:49]Read from MH i2c: E2 [03:20:49]MH_I2C_Read... [03:20:49]Read from MH i2c: E2 0B 00 [03:20:49]MH_I2C_Read... [03:20:49]Read from MH i2c: E2 0B 00 D6 73 00 33 56 FB 16 56 8E 60 76 90 00 19 [03:20:49]RAPDU: 33 56 FB 16 56 8E 60 76 90 00 [03:20:49]wFMCommunicate OK [03:20:49]SAM_PROTO_SignData done [03:20:49]FM_MakeSignedData done [03:20:49]CreateOFDProtocolMessage [03:20:49]wFMCommunicate request_size=4 [03:20:49]MH_SAM_APDU [03:20:49]CAPDU: 80 11 00 00 [03:20:49]Write to MH i2c: E2 08 00 D7 73 80 11 00 00 00 00 00 00 C4 [03:20:49]Write i2c OK [03:20:49]MH_I2C_Read... [03:20:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:20:49]Read from MH i2c: E2 [03:20:49]MH_I2C_Read... [03:20:49]Read from MH i2c: E2 17 00 [03:20:49]MH_I2C_Read... [03:20:49]Read from MH i2c: E2 17 00 D7 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 13 [03:20:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [03:20:49]wFMCommunicate OK [03:20:49]CreateOFDProtocolMessage done [03:20:49]OFDSenderStorePacket 29103 [03:20:49]StoreOFDPacket docnum=29103 [03:20:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 9B F1 07 01 F6 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 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 98 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 00 00 00 00 00 00 39 04 06 00 98 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 97 4B 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AF 71 00 00 35 04 06 00 8A 13 05 90 81 F6 33 56 FB 16 56 8E 60 76 [03:20:49]CheckFolder [03:20:49]dirname=/storage/ofd_packets [03:20:49]CheckFolder done [03:20:49]ProducePacketName [03:20:49]name=ofd_packets/00029103 [03:20:49]NVStorageSaveData ofd_packets/00029103 [03:20:49]File name is /storage/ofd_packets/00029103 [03:20:49]Write 301 bytes [03:20:49]NVStorageSaveData done [03:20:49]OFDSenderStorePacket done [03:20:49]KKMCreateOFDPacket done [03:20:49]NVStorageSaveData kkm_last_timestamp [03:20:49]File name is /storage/kkm_last_timestamp [03:20:49]Write 4 bytes [03:20:49]NVStorageSaveData done [03:20:49]ExternCall_PrintAddStr [03:20:49]wPrintStart [03:20:49]Write to MH i2c: 01 00 00 D8 73 4B [03:20:49]Write i2c OK [03:20:49]MH_I2C_Read... [03:20:49]Read from MH i2c: 01 [03:20:49]MH_I2C_Read... [03:20:49]Read from MH i2c: 01 07 00 [03:20:49]MH_I2C_Read... [03:20:49]Read from MH i2c: 01 07 00 D8 73 00 00 00 00 00 FF 0F 60 [03:20:49]RasterBufferAndPrint [03:20:49]line Счет N : (1)347471 [03:20:49]line ИНН: 02508201610067 [03:20:49]line Контрольно-Кассовый Чек [03:20:49]line ПРОДАЖА [03:20:49]line ТРК (МРК, ГНК) : 23 [03:20:49]line Товар: 2710124130 [03:20:49]line Аи-92-К-5 [03:20:49]line 9.340 * 64.30 [03:20:49]line = 600.56 [03:20:49]line НДС 12% НСП 1% [03:20:49]line > о реализуемом товаре [03:20:49]line ИТОГО: 600.56 [03:20:49]line НСП 1% : 5.31 [03:20:49]line НДС 12% : 63.78 [03:20:49]line Наличными: 0.00 [03:20:49]line Безнал.: 600.56 [03:20:49]line Место: АЗС № 108 "Партнер Нефть" [03:20:49]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [03:20:49]line СНО: Общий режим [03:20:49]line Чек 13 14.04.2024 03:20 [03:20:49]line Смена: 116 ФФД: 1.0 [03:20:49]line ЗНМ: 0300000027 [03:20:49]line РНМ: 0000138879044617 [03:20:49]line Версия ККМ: 001 [03:20:49]line Платежная система: Бакай Банк [03:20:49]line ФМ: 0000000000963154 [03:20:49]line ФД: 29103 [03:20:49]line ФПД: 151814302368246 [03:20:49]line 1/tax-web-control/client/api/v1/ticket?date=20240414T032055&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29103&fm=151814302368246&tin=02508201610067®Number=0000138879044617&sum=60056 [03:20:49]OFD Sender: Processing packet 29103 [packets to send 8, broken 7] [03:20:49]ProducePacketName [03:20:49]name=ofd_packets/00029103 [03:20:49]OFD Sender: To server: pG, [03:20:49]CommunicateWithHost lk.salyk.kg:30040 [03:20:49]ConnectInit lk.salyk.kg [03:20:50]written 0, free lines is 4095 [03:20:50]Connected sock=10 [03:20:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 9B F1 07 01 F6 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 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 98 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 00 00 00 00 00 00 39 04 06 00 98 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 97 4B 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AF 71 00 00 35 04 06 00 8A 13 05 90 81 F6 33 56 FB 16 56 8E 60 76 [03:20:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 79 7F 47 00 1B 44 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AF 71 00 00 F4 03 04 00 3D F6 1A 66 B6 04 01 00 00 6F EA 3D 19 6E 0D BC AF [03:20:50]CommunicateWithHost err = 0 [03:20:50]CheckOFDResponse [03:20:50]1017 (14) - 77093643461234 [03:20:50]1041 (16) - 0000000000963154 [03:20:50]1040 (4) - 29103 [03:20:50]1012 (4) - 13.04.2024 21:16 [03:20:50]1206 (1) - 0 [03:20:50]OFD Sender: Remove packet 29103 [03:20:50]ProducePacketName [03:20:50]name=ofd_packets/00029103 [03:20:50]NVStorageDeleteData [03:20:50]Write to MH i2c: 01 00 00 01 74 75 [03:20:50]Write i2c OK [03:20:50]MH_I2C_Read... [03:20:50]Read from MH i2c: 01 [03:20:50]MH_I2C_Read... [03:20:50]Read from MH i2c: 01 07 00 [03:20:50]MH_I2C_Read... [03:20:50]Read from MH i2c: 01 07 00 01 74 00 00 00 00 00 EF 0C 77 [03:20:50]RasterBufferAndPrint [03:20:50]line [03:20:50]line [03:20:50]line [03:20:50]line [03:20:50]line [03:20:50]written 0, free lines is 3319 [03:20:50]MH_Cut [03:20:50]Write to MH i2c: D1 01 00 08 74 01 4E [03:20:50]Write i2c OK [03:20:50]MH_I2C_Read... [03:20:50]Read from MH i2c: D1 [03:20:50]MH_I2C_Read... [03:20:50]Read from MH i2c: D1 01 00 [03:20:50]MH_I2C_Read... [03:20:50]Read from MH i2c: D1 01 00 08 74 00 4D [03:20:50]Write to MH i2c: 01 00 00 09 74 7D [03:20:50]Write i2c OK [03:20:50]MH_I2C_Read... [03:20:50]OFD Sender: No OFD packet to send [03:20:51]*** Cut start [03:20:51]*** Partial cut [03:20:51]*** CUTSNS_PIN = 1 [03:20:51]*** CUTSNS_PIN = 0 [03:20:51]*** Brake cut motor [03:20:51]Read from MH i2c: 01 [03:20:51]MH_I2C_Read... [03:20:51]*** Stop cut motor [03:20:51]*** Cut end [03:20:51]Read from MH i2c: 01 07 00 [03:20:51]MH_I2C_Read... [03:20:51]Read from MH i2c: 01 07 00 09 74 00 00 00 00 00 FF 0F 92 [03:20:51]process_action close_receipt done [03:20:51]requested_data is exist [03:20:51]produce_requested_data [03:20:51]requested_item fm.sn is exist - process it [03:20:51]wFMCommunicate request_size=4 [03:20:51]MH_SAM_APDU [03:20:51]CAPDU: 80 11 00 00 [03:20:51]Write to MH i2c: E2 08 00 0A 74 80 11 00 00 00 00 00 00 F8 [03:20:51]Write i2c OK [03:20:51]MH_I2C_Read... [03:20:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:20:51]Read from MH i2c: E2 [03:20:51]MH_I2C_Read... [03:20:51]Read from MH i2c: E2 17 00 [03:20:51]MH_I2C_Read... [03:20:51]Read from MH i2c: E2 17 00 0A 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 47 [03:20:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [03:20:51]wFMCommunicate OK [03:20:51]requested_item fd.num is exist - process it [03:20:51]SAM_PROTO_GetFieldsCounters [03:20:51]wFMCommunicate request_size=4 [03:20:51]MH_SAM_APDU [03:20:51]CAPDU: 80 13 00 00 [03:20:51]Write to MH i2c: E2 08 00 0B 74 80 13 00 00 00 00 00 00 FB [03:20:51]Write i2c OK [03:20:51]MH_I2C_Read... [03:20:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:20:52]Read from MH i2c: E2 [03:20:52]MH_I2C_Read... [03:20:52]Read from MH i2c: E2 62 00 [03:20:52]MH_I2C_Read... [03:20:52]Read from MH i2c: E2 62 00 0B 74 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 AF 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 F4 [03:20:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 AF 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:20:52]wFMCommunicate OK [03:20:52]SAM_PROTO_GetFieldsCounters done [03:20:52]requested_item shift.num is exist - process it [03:20:52]requested_item shift.opened is exist - process it [03:20:52]req_shift_opened [03:20:52]FM_GetShiftState [03:20:52]SAM_PROTO_GetShiftState [03:20:52]wFMCommunicate request_size=4 [03:20:52]MH_SAM_APDU [03:20:52]CAPDU: 80 13 01 00 [03:20:52]Write to MH i2c: E2 08 00 0C 74 80 13 01 00 00 00 00 00 FD [03:20:52]Write i2c OK [03:20:52]MH_I2C_Read... [03:20:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:20:52]Read from MH i2c: E2 [03:20:52]MH_I2C_Read... [03:20:52]Read from MH i2c: E2 0E 00 [03:20:52]MH_I2C_Read... [03:20:52]Read from MH i2c: E2 0E 00 0C 74 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 A9 [03:20:52]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [03:20:52]wFMCommunicate OK [03:20:52]SAM_PROTO_GetShiftState done [03:20:52]FM_GetShiftState done [03:20:52]req_shift_opened done [03:20:52]requested_item shift.open_date is exist - process it [03:20:52]req_shift_open_date [03:20:52]req_shift_open_date done [03:20:52]produce_requested_data done [03:20:52]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29103,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [03:20:52]process_action_free close_receipt [03:20:52]json_value_free [03:20:52]json_value_free done [03:20:52]process_json_proto returns [03:20:52]Send response to host [03:20:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29103,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [03:20:52]free response buf [03:20:52]execute_script done [03:20:52]execute_script returns [03:20:52]free content buf [03:20:52]Sock 7.Close socket [03:20:52]Sock 7.Thread stoped [03:20:55]OFD Sender: No OFD packet to send [03:21:00]OFD Sender: No OFD packet to send [03:21:05]OFD Sender: No OFD packet to send [03:21:10]OFD Sender: No OFD packet to send [03:21:15]OFD Sender: No OFD packet to send [03:21:20]OFD Sender: No OFD packet to send [03:21:25]OFD Sender: No OFD packet to send [03:21:30]OFD Sender: No OFD packet to send [03:21:35]OFD Sender: No OFD packet to send [03:21:40]OFD Sender: No OFD packet to send [03:21:45]OFD Sender: No OFD packet to send [03:21:50]OFD Sender: No OFD packet to send [03:21:55]OFD Sender: No OFD packet to send [03:22:00]OFD Sender: No OFD packet to send [03:22:05]OFD Sender: No OFD packet to send [03:22:10]OFD Sender: No OFD packet to send [03:22:15]OFD Sender: No OFD packet to send [03:22:20]OFD Sender: No OFD packet to send [03:22:25]OFD Sender: No OFD packet to send [03:22:30]OFD Sender: No OFD packet to send [03:22:35]OFD Sender: No OFD packet to send [03:22:40]OFD Sender: No OFD packet to send [03:22:45]OFD Sender: No OFD packet to send [03:22:50]OFD Sender: No OFD packet to send [03:22:55]OFD Sender: No OFD packet to send [03:23:00]OFD Sender: No OFD packet to send [03:23:05]OFD Sender: No OFD packet to send [03:23:10]OFD Sender: No OFD packet to send [03:23:15]OFD Sender: No OFD packet to send [03:23:20]OFD Sender: No OFD packet to send [03:23:25]OFD Sender: No OFD packet to send [03:23:30]OFD Sender: No OFD packet to send [03:23:35]OFD Sender: No OFD packet to send [03:23:40]OFD Sender: No OFD packet to send [03:23:45]OFD Sender: No OFD packet to send [03:23:50]OFD Sender: No OFD packet to send [03:23:55]OFD Sender: No OFD packet to send [03:24:00]OFD Sender: No OFD packet to send [03:24:05]OFD Sender: No OFD packet to send [03:24:10]OFD Sender: No OFD packet to send [03:24:15]OFD Sender: No OFD packet to send [03:24:20]OFD Sender: No OFD packet to send [03:24:25]OFD Sender: No OFD packet to send [03:24:30]OFD Sender: No OFD packet to send [03:24:35]OFD Sender: No OFD packet to send [03:24:40]OFD Sender: No OFD packet to send [03:24:45]OFD Sender: No OFD packet to send [03:24:50]OFD Sender: No OFD packet to send [03:24:55]OFD Sender: No OFD packet to send [03:25:00]OFD Sender: No OFD packet to send [03:25:05]OFD Sender: No OFD packet to send [03:25:10]OFD Sender: No OFD packet to send [03:25:15]OFD Sender: No OFD packet to send [03:25:20]OFD Sender: No OFD packet to send [03:25:25]OFD Sender: No OFD packet to send [03:25:30]OFD Sender: No OFD packet to send [03:25:35]OFD Sender: No OFD packet to send [03:25: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:41]OFD Sender: No OFD packet to send [03:26:46]OFD Sender: No OFD packet to send [03:26:51]OFD Sender: No OFD packet to send [03:26:56]OFD Sender: No OFD packet to send [03:27:01]OFD Sender: No OFD packet to send [03:27:06]OFD Sender: No OFD packet to send [03:27:11]OFD Sender: No OFD packet to send [03:27:16]OFD Sender: No OFD packet to send [03:27:21]OFD Sender: No OFD packet to send [03:27:26]OFD Sender: No OFD packet to send [03:27:31]OFD Sender: No OFD packet to send [03:27:36]OFD Sender: No OFD packet to send [03:27:41]OFD Sender: No OFD packet to send [03:27:46]OFD Sender: No OFD packet to send [03:27:51]OFD Sender: No OFD packet to send [03:27:56]OFD Sender: No OFD packet to send [03:28:01]OFD Sender: No OFD packet to send [03:28:06]OFD Sender: No OFD packet to send [03:28:11]OFD Sender: No OFD packet to send [03:28:16]OFD Sender: No OFD packet to send [03:28:21]OFD Sender: No OFD packet to send [03:28:26]OFD Sender: No OFD packet to send [03:28:31]OFD Sender: No OFD packet to send [03:28:36]OFD Sender: No OFD packet to send [03:28:41]OFD Sender: No OFD packet to send [03:28:46]OFD Sender: No OFD packet to send [03:28:51]OFD Sender: No OFD packet to send [03:28:56]OFD Sender: No OFD packet to send [03:29:01]OFD Sender: No OFD packet to send [03:29:06]OFD Sender: No OFD packet to send [03:29:11]OFD Sender: No OFD packet to send [03:29:16]OFD Sender: No OFD packet to send [03:29:21]OFD Sender: No OFD packet to send [03:29:26]OFD Sender: No OFD packet to send [03:29:31]OFD Sender: No OFD packet to send [03:29:36]OFD Sender: No OFD packet to send [03:29:41]OFD Sender: No OFD packet to send [03:29:46]OFD Sender: No OFD packet to send [03:29:51]OFD Sender: No OFD packet to send [03:29:56]OFD Sender: No OFD packet to send [03:30:01]OFD Sender: No OFD packet to send [03:30:06]OFD Sender: No OFD packet to send [03:30:11]OFD Sender: No OFD packet to send [03:30:16]OFD Sender: No OFD packet to send [03:30:21]OFD Sender: No OFD packet to send [03:30:26]OFD Sender: No OFD packet to send [03:30:31]OFD Sender: No OFD packet to send [03:30:36]OFD Sender: No OFD packet to send [03:30:41]OFD Sender: No OFD packet to send [03:30:46]OFD Sender: No OFD packet to send [03:30:51]OFD Sender: No OFD packet to send [03:30:56]OFD Sender: No OFD packet to send [03:31:01]OFD Sender: No OFD packet to send [03:31:06]OFD Sender: No OFD packet to send [03:31:11]OFD Sender: No OFD packet to send [03:31:16]OFD Sender: No OFD packet to send [03:31:21]OFD Sender: No OFD packet to send [03:31:26]OFD Sender: No OFD packet to send [03:31:31]OFD Sender: No OFD packet to send [03:31:36]OFD Sender: No OFD packet to send [03:31:41]OFD Sender: No OFD packet to send [03:31:46]OFD Sender: No OFD packet to send [03:31:51]OFD Sender: No OFD packet to send [03:31:56]OFD Sender: No OFD packet to send [03:32:01]OFD Sender: No OFD packet to send [03:32:06]OFD Sender: No OFD packet to send [03:32:11]OFD Sender: No OFD packet to send [03:32:16]OFD Sender: No OFD packet to send [03:32:21]OFD Sender: No OFD packet to send [03:32:26]OFD Sender: No OFD packet to send [03:32:31]OFD Sender: No OFD packet to send [03:32:36]OFD Sender: No OFD packet to send [03:32:41]OFD Sender: No OFD packet to send [03:32:46]OFD Sender: No OFD packet to send [03:32:51]OFD Sender: No OFD packet to send [03:32:56]OFD Sender: No OFD packet to send [03:33:01]OFD Sender: No OFD packet to send [03:33:06]OFD Sender: No OFD packet to send [03:33:11]OFD Sender: No OFD packet to send [03:33:16]OFD Sender: No OFD packet to send [03:33:21]OFD Sender: No OFD packet to send [03:33:26]OFD Sender: No OFD packet to send [03:33:31]OFD Sender: No OFD packet to send [03:33:36]OFD Sender: No OFD packet to send [03:33:41]OFD Sender: No OFD packet to send [03:33:46]OFD Sender: No OFD packet to send [03:33:51]OFD Sender: No OFD packet to send [03:33:56]OFD Sender: No OFD packet to send [03:34:01]OFD Sender: No OFD packet to send [03:34:06]OFD Sender: No OFD packet to send [03:34:11]OFD Sender: No OFD packet to send [03:34:16]OFD Sender: No OFD packet to send [03:34:21]OFD Sender: No OFD packet to send [03:34:26]OFD Sender: No OFD packet to send [03:34:31]OFD Sender: No OFD packet to send [03:34:36]OFD Sender: No OFD packet to send [03:34:41]OFD Sender: No OFD packet to send [03:34:46]OFD Sender: No OFD packet to send [03:34:51]OFD Sender: No OFD packet to send [03:34:56]OFD Sender: No OFD packet to send [03:35:01]OFD Sender: No OFD packet to send [03:35:06]OFD Sender: No OFD packet to send [03:35:11]OFD Sender: No OFD packet to send [03:35:16]OFD Sender: No OFD packet to send [03:35:21]OFD Sender: No OFD packet to send [03:35:26]OFD Sender: No OFD packet to send [03:35:31]OFD Sender: No OFD packet to send [03:35:36]OFD Sender: No OFD packet to send [03:35:41]OFD Sender: No OFD packet to send [03:35:46]OFD Sender: No OFD packet to send [03:35:51]OFD Sender: No OFD packet to send [03:35:56]OFD Sender: No OFD packet to send [03:36:01]OFD Sender: No OFD packet to send [03:36:06]OFD Sender: No OFD packet to send [03:36:11]OFD Sender: No OFD packet to send [03:36:16]OFD Sender: No OFD packet to send [03:36:21]OFD Sender: No OFD packet to send [03:36:26]OFD Sender: No OFD packet to send [03:36:31]OFD Sender: No OFD packet to send [03:36:36]OFD Sender: No OFD packet to send [03:36:41]OFD Sender: No OFD packet to send [03:36:46]OFD Sender: No OFD packet to send [03:36:51]OFD Sender: No OFD packet to send [03:36:56]OFD Sender: No OFD packet to send [03:37:01]OFD Sender: No OFD packet to send [03:37:06]OFD Sender: No OFD packet to send [03:37:11]OFD Sender: No OFD packet to send [03:37:16]OFD Sender: No OFD packet to send [03:37:21]OFD Sender: No OFD packet to send [03:37:26]OFD Sender: No OFD packet to send [03:37:31]OFD Sender: No OFD packet to send [03:37:36]OFD Sender: No OFD packet to send [03:37:41]OFD Sender: No OFD packet to send [03:37:46]OFD Sender: No OFD packet to send [03:37:51]OFD Sender: No OFD packet to send [03:37:56]OFD Sender: No OFD packet to send [03:38:01]OFD Sender: No OFD packet to send [03:38:06]OFD Sender: No OFD packet to send [03:38:11]OFD Sender: No OFD packet to send [03:38:16]OFD Sender: No OFD packet to send [03:38:21]OFD Sender: No OFD packet to send [03:38:26]OFD Sender: No OFD packet to send [03:38:31]OFD Sender: No OFD packet to send [03:38:36]OFD Sender: No OFD packet to send [03:38:41]OFD Sender: No OFD packet to send [03:38:46]OFD Sender: No OFD packet to send [03:38:51]OFD Sender: No OFD packet to send [03:38:56]OFD Sender: No OFD packet to send [03:39:01]OFD Sender: No OFD packet to send [03:39:06]OFD Sender: No OFD packet to send [03:39:11]OFD Sender: No OFD packet to send [03:39:16]OFD Sender: No OFD packet to send [03:39:21]OFD Sender: No OFD packet to send [03:39:23]accept exits with 9 [03:39:23]New connection [03:39:23]New thread 3066928484 created [03:39:23]Thread 3066785124 joined [03:39:23]Waiting for new connection... [03:39:23] Sock 9.Parse request [03:39:23]Sock 9.Check first char [03:39:23]Sock 9.First char is OK [03:39:23]request: POST /json_proto HTTP/1.0 [03:39:23]Method: POST [03:39:23]URL: /json_proto [03:39:23]Method is POST - this is cgi request [03:39:23]url: /json_proto [03:39:23]query_string will be loaded in cgi processing [03:39:23]execute_cgi json_proto POST (null) [03:39:23]execute_cgi path=json_proto method=POST [03:39:23]POST find Content-Length [03:39:23]Host: 172.17.33.3:8080 [03:39:23]Content-Length: 679 [03:39:23]Content-Type: application/json [03:39:23] [03:39:23]POST finish read [03:39:23]Found Content-Length = 679 [03:39:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347472", "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" ] } } [03:39:23]execute_script... [03:39: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)347472", "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" ] } } [03:39:23]POST & json_proto [03:39:23]process_json_proto [03:39:23]json parsed OK: [03:39:23]protocol is kg_v1.0 [03:39:23]action value=close_receipt [03:39:23]process_action close_receipt [03:39:23]cmd_close_receipt [03:39:23]MH_GetDate [03:39:23]Write to MH i2c: F0 00 00 0D 74 70 [03:39:23]Write i2c OK [03:39:23]MH_I2C_Read... [03:39:23]Read from MH i2c: F0 [03:39:23]MH_I2C_Read... [03:39:23]Read from MH i2c: F0 09 00 [03:39:23]MH_I2C_Read... [03:39:23]Read from MH i2c: F0 09 00 0D 74 00 F3 4F 1B 66 23 5B 8F 65 AE [03:39:23]GetLastDocTimeStamp 1713064855 [03:39:23]current date 1713065971 [03:39:23]FM_GetShiftState [03:39:23]SAM_PROTO_GetShiftState [03:39:23]wFMCommunicate request_size=4 [03:39:23]MH_SAM_APDU [03:39:23]CAPDU: 80 13 01 00 [03:39:23]Write to MH i2c: E2 08 00 0E 74 80 13 01 00 00 00 00 00 FF [03:39:23]Write i2c OK [03:39:23]MH_I2C_Read... [03:39:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:39:23]Read from MH i2c: E2 [03:39:23]MH_I2C_Read... [03:39:23]Read from MH i2c: E2 0E 00 [03:39:23]MH_I2C_Read... [03:39:23]Read from MH i2c: E2 0E 00 0E 74 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 AB [03:39:23]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [03:39:23]wFMCommunicate OK [03:39:23]SAM_PROTO_GetShiftState done [03:39:23]FM_GetShiftState done [03:39:23]opened in 1713053951 [03:39:23]opened+sec_in_day 1713140351 [03:39:23]quantity*price = 200041 [03:39:23]sum+1 = 200042 [03:39:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 14 14.04.2024 03:39 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29104 ФПД: 178487290946697 1/tax-web-control/client/api/v1/ticket?date=20240414T033931&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29104&fm=178487290946697&tin=02508201610067®Number=0000138879044617&sum=200000 [03:39:24]StoreToDocumentArchive [03:39:24]shift 116 fd 29104 [03:39:24]save to /storage/0116/doc_00029104 [03:39:24]save last doc name /storage/0116/doc_00029104 to /storage/kkm_last_doc_name [03:39:24]save OK [03:39:24]Clear old archive folders... [03:39:24]ProcessDocumentItem done err = 0, tmpTLVsize=248 [03:39:24]tlvbuf is 012143A0 [03:39:24]SAM_PROTO_ClearQueue [03:39:24]wFMCommunicate request_size=4 [03:39:24]MH_SAM_APDU [03:39:24]CAPDU: 80 09 00 00 [03:39:24]Write to MH i2c: E2 08 00 1B 74 80 09 00 00 00 00 00 00 01 [03:39:24]Write i2c OK [03:39:24]MH_I2C_Read... [03:39:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:39:24]Read from MH i2c: E2 [03:39:24]MH_I2C_Read... [03:39:24]Read from MH i2c: E2 03 00 [03:39:24]MH_I2C_Read... [03:39:24]Read from MH i2c: E2 03 00 1B 74 00 90 00 03 [03:39:24]RAPDU: 90 00 [03:39:24]wFMCommunicate OK [03:39:24]SAM_PROTO_ClearQueue done [03:39:24]KKMCreateOFDPacket [03:39:24]OFDProtocolAddRootSTLVToBuf [03:39:24]FM_MakeSignedData [03:39:24]FM_MakeSignedData [03:39:24]SAM_PROTO_SignData [03:39:24]wFMCommunicate request_size=4 [03:39:24]MH_SAM_APDU [03:39:24]CAPDU: 80 0D 01 02 [03:39:24]Write to MH i2c: E2 08 00 1C 74 80 0D 01 02 00 00 00 00 09 [03:39:24]Write i2c OK [03:39:24]MH_I2C_Read... [03:39:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:39:24]Read from MH i2c: E2 [03:39:24]MH_I2C_Read... [03:39:24]Read from MH i2c: E2 03 00 [03:39:24]MH_I2C_Read... [03:39:24]Read from MH i2c: E2 03 00 1C 74 00 90 00 04 [03:39:24]RAPDU: 90 00 [03:39:24]wFMCommunicate OK [03:39:24]wFMCommunicate request_size=255 [03:39:24]MH_SAM_APDU [03:39:24]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 0E 00 00 00 F4 03 04 00 F3 4F 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B0 71 00 00 35 04 06 00 A2 55 4F 92 [03:39:24]Write to MH i2c: E2 02 01 1D 74 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 0E 00 00 00 F4 03 04 00 F3 4F 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B0 71 00 00 35 04 06 00 A2 55 4F 92 00 00 D4 [03:39:24]Write i2c OK [03:39:24]MH_I2C_Read... [03:39:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:39:24]Read from MH i2c: E2 [03:39:24]MH_I2C_Read... [03:39:24]Read from MH i2c: E2 03 00 [03:39:24]MH_I2C_Read... [03:39:24]Read from MH i2c: E2 03 00 1D 74 00 90 00 05 [03:39:24]RAPDU: 90 00 [03:39:24]wFMCommunicate OK [03:39:24]wFMCommunicate request_size=7 [03:39:24]MH_SAM_APDU [03:39:24]CAPDU: 80 0D 02 02 02 E4 89 [03:39:24]Write to MH i2c: E2 0A 00 1E 74 80 0D 02 02 02 00 E4 89 00 00 7D [03:39:24]Write i2c OK [03:39:24]MH_I2C_Read... [03:39:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:39:24]Read from MH i2c: E2 [03:39:24]MH_I2C_Read... [03:39:24]Read from MH i2c: E2 03 00 [03:39:24]MH_I2C_Read... [03:39:24]Read from MH i2c: E2 03 00 1E 74 00 90 00 06 [03:39:24]RAPDU: 90 00 [03:39:24]wFMCommunicate OK [03:39:24]wFMCommunicate request_size=4 [03:39:24]MH_SAM_APDU [03:39:24]CAPDU: 80 0D 03 02 [03:39:24]Write to MH i2c: E2 08 00 1F 74 80 0D 03 02 00 00 00 00 0E [03:39:24]Write i2c OK [03:39:24]MH_I2C_Read... [03:39:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:39:24]Read from MH i2c: E2 [03:39:24]MH_I2C_Read... [03:39:24]Read from MH i2c: E2 0B 00 [03:39:24]MH_I2C_Read... [03:39:24]Read from MH i2c: E2 0B 00 1F 74 00 53 60 6D 21 69 A0 07 F6 90 00 56 [03:39:24]RAPDU: 53 60 6D 21 69 A0 07 F6 90 00 [03:39:24]wFMCommunicate OK [03:39:24]SAM_PROTO_SignData done [03:39:24]FM_MakeSignedData done [03:39:24]CreateOFDProtocolMessage [03:39:24]wFMCommunicate request_size=4 [03:39:24]MH_SAM_APDU [03:39:24]CAPDU: 80 11 00 00 [03:39:24]Write to MH i2c: E2 08 00 20 74 80 11 00 00 00 00 00 00 0E [03:39:24]Write i2c OK [03:39:24]MH_I2C_Read... [03:39:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:39:25]Read from MH i2c: E2 [03:39:25]MH_I2C_Read... [03:39:25]Read from MH i2c: E2 17 00 [03:39:25]MH_I2C_Read... [03:39:25]Read from MH i2c: E2 17 00 20 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 5D [03:39:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [03:39:25]wFMCommunicate OK [03:39:25]CreateOFDProtocolMessage done [03:39:25]OFDSenderStorePacket 29104 [03:39:25]StoreOFDPacket docnum=29104 [03:39:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 FE 7C 04 01 68 1E 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 0E 00 00 00 F4 03 04 00 F3 4F 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B0 71 00 00 35 04 06 00 A2 55 4F 92 E4 89 53 60 6D 21 69 A0 07 F6 [03:39:25]CheckFolder [03:39:25]dirname=/storage/ofd_packets [03:39:25]CheckFolder done [03:39:25]ProducePacketName [03:39:25]name=ofd_packets/00029104 [03:39:25]NVStorageSaveData ofd_packets/00029104 [03:39:25]File name is /storage/ofd_packets/00029104 [03:39:25]Write 298 bytes [03:39:25]NVStorageSaveData done [03:39:25]OFDSenderStorePacket done [03:39:25]KKMCreateOFDPacket done [03:39:25]NVStorageSaveData kkm_last_timestamp [03:39:25]File name is /storage/kkm_last_timestamp [03:39:25]Write 4 bytes [03:39:25]NVStorageSaveData done [03:39:25]ExternCall_PrintAddStr [03:39:25]wPrintStart [03:39:25]Write to MH i2c: 01 00 00 21 74 95 [03:39:25]Write i2c OK [03:39:25]MH_I2C_Read... [03:39:25]Read from MH i2c: 01 [03:39:25]MH_I2C_Read... [03:39:25]Read from MH i2c: 01 07 00 [03:39:25]MH_I2C_Read... [03:39:25]Read from MH i2c: 01 07 00 21 74 00 00 00 00 00 FF 0F AA [03:39:25]RasterBufferAndPrint [03:39:25]line Счет N : (1)347472 [03:39:25]line ИНН: 02508201610067 [03:39:25]line Контрольно-Кассовый Чек [03:39:25]line ПРОДАЖА [03:39:25]line ТРК (МРК, ГНК) : 51 [03:39:25]line Товар: 2710194210 [03:39:25]line ДТ-К-5 [03:39:25]line 27.630 * 72.40 [03:39:25]line = 2000.41 [03:39:25]line НДС 12% НСП 1% [03:39:25]line > о реализуемом товаре [03:39:25]line ОКРУГЛЕНИЕ: -0.41 [03:39:25]line ИТОГО: 2000.00 [03:39:25]line Внесено: 2000.00 [03:39:25]line СДАЧА: 0.00 [03:39:25]line НСП 1% : 17.70 [03:39:25]line НДС 12% : 212.43 [03:39:25]line Наличными: 2000.00 [03:39:25]line Безнал.: 0.00 [03:39:25]line Место: АЗС № 108 "Партнер Нефть" [03:39:25]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [03:39:25]line СНО: Общий режим [03:39:25]line Чек 14 14.04.2024 03:39 [03:39:25]line Смена: 116 ФФД: 1.0 [03:39:25]line ЗНМ: 0300000027 [03:39:25]line РНМ: 0000138879044617 [03:39:25]line Версия ККМ: 001 [03:39:25]line ФМ: 0000000000963154 [03:39:25]line ФД: 29104 [03:39:25]line ФПД: 178487290946697 [03:39:25]line 1/tax-web-control/client/api/v1/ticket?date=20240414T033931&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29104&fm=178487290946697&tin=02508201610067®Number=0000138879044617&sum=200000 [03:39:25]OFD Sender: Processing packet 29104 [packets to send 8, broken 7] [03:39:25]ProducePacketName [03:39:25]name=ofd_packets/00029104 [03:39:25]OFD Sender: To server: pG, [03:39:25]CommunicateWithHost lk.salyk.kg:30040 [03:39:25]ConnectInit lk.salyk.kg [03:39:25]written 0, free lines is 4095 [03:39:25]Connected sock=10 [03:39:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 FE 7C 04 01 68 1E 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 0E 00 00 00 F4 03 04 00 F3 4F 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B0 71 00 00 35 04 06 00 A2 55 4F 92 E4 89 53 60 6D 21 69 A0 07 F6 [03:39:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 8C 23 47 00 3B 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 39 36 33 31 35 34 10 04 04 00 B0 71 00 00 F4 03 04 00 98 FA 1A 66 B6 04 01 00 00 2B 22 7F 2D C3 A9 89 6E [03:39:25]CommunicateWithHost err = 0 [03:39:25]CheckOFDResponse [03:39:25]1017 (14) - 77093643461234 [03:39:25]1041 (16) - 0000000000963154 [03:39:25]1040 (4) - 29104 [03:39:25]1012 (4) - 13.04.2024 21:35 [03:39:25]1206 (1) - 0 [03:39:25]OFD Sender: Remove packet 29104 [03:39:25]ProducePacketName [03:39:25]name=ofd_packets/00029104 [03:39:25]NVStorageDeleteData [03:39:25]Write to MH i2c: 01 00 00 4B 74 BF [03:39:25]Write i2c OK [03:39:25]MH_I2C_Read... [03:39:25]Read from MH i2c: 01 [03:39:25]MH_I2C_Read... [03:39:25]Read from MH i2c: 01 07 00 [03:39:25]MH_I2C_Read... [03:39:25]Read from MH i2c: 01 07 00 4B 74 00 00 00 00 00 BF 0C 91 [03:39:25]RasterBufferAndPrint [03:39:25]line [03:39:25]line [03:39:25]line [03:39:25]line [03:39:25]line [03:39:25]written 0, free lines is 3266 [03:39:25]MH_Cut [03:39:25]Write to MH i2c: D1 01 00 52 74 01 98 [03:39:25]Write i2c OK [03:39:25]MH_I2C_Read... [03:39:25]Read from MH i2c: D1 [03:39:25]MH_I2C_Read... [03:39:25]Read from MH i2c: D1 01 00 [03:39:25]MH_I2C_Read... [03:39:25]Read from MH i2c: D1 01 00 52 74 00 97 [03:39:25]Write to MH i2c: 01 00 00 53 74 C7 [03:39:25]Write i2c OK [03:39:25]MH_I2C_Read... [03:39:26]OFD Sender: No OFD packet to send [03:39:26]*** Cut start [03:39:26]*** Partial cut [03:39:26]*** CUTSNS_PIN = 1 [03:39:26]*** CUTSNS_PIN = 0 [03:39:26]*** Brake cut motor [03:39:27]Read from MH i2c: 01 [03:39:27]MH_I2C_Read... [03:39:27]*** Stop cut motor [03:39:27]*** Cut end [03:39:27]Read from MH i2c: 01 07 00 [03:39:27]MH_I2C_Read... [03:39:27]Read from MH i2c: 01 07 00 53 74 00 00 00 00 00 FF 0F DC [03:39:27]process_action close_receipt done [03:39:27]requested_data is exist [03:39:27]produce_requested_data [03:39:27]requested_item fm.sn is exist - process it [03:39:27]wFMCommunicate request_size=4 [03:39:27]MH_SAM_APDU [03:39:27]CAPDU: 80 11 00 00 [03:39:27]Write to MH i2c: E2 08 00 54 74 80 11 00 00 00 00 00 00 42 [03:39:27]Write i2c OK [03:39:27]MH_I2C_Read... [03:39:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:39:27]Read from MH i2c: E2 [03:39:27]MH_I2C_Read... [03:39:27]Read from MH i2c: E2 17 00 [03:39:27]MH_I2C_Read... [03:39:27]Read from MH i2c: E2 17 00 54 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 91 [03:39:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [03:39:27]wFMCommunicate OK [03:39:27]requested_item fd.num is exist - process it [03:39:27]SAM_PROTO_GetFieldsCounters [03:39:27]wFMCommunicate request_size=4 [03:39:27]MH_SAM_APDU [03:39:27]CAPDU: 80 13 00 00 [03:39:27]Write to MH i2c: E2 08 00 55 74 80 13 00 00 00 00 00 00 45 [03:39:27]Write i2c OK [03:39:27]MH_I2C_Read... [03:39:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:39:27]Read from MH i2c: E2 [03:39:27]MH_I2C_Read... [03:39:27]Read from MH i2c: E2 62 00 [03:39:27]MH_I2C_Read... [03:39:27]Read from MH i2c: E2 62 00 55 74 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B0 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 42 [03:39:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B0 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:39:27]wFMCommunicate OK [03:39:27]SAM_PROTO_GetFieldsCounters done [03:39:27]requested_item shift.num is exist - process it [03:39:27]requested_item shift.opened is exist - process it [03:39:27]req_shift_opened [03:39:27]FM_GetShiftState [03:39:27]SAM_PROTO_GetShiftState [03:39:27]wFMCommunicate request_size=4 [03:39:27]MH_SAM_APDU [03:39:27]CAPDU: 80 13 01 00 [03:39:27]Write to MH i2c: E2 08 00 56 74 80 13 01 00 00 00 00 00 47 [03:39:27]Write i2c OK [03:39:27]MH_I2C_Read... [03:39:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:39:27]Read from MH i2c: E2 [03:39:27]MH_I2C_Read... [03:39:27]Read from MH i2c: E2 0E 00 [03:39:27]MH_I2C_Read... [03:39:27]Read from MH i2c: E2 0E 00 56 74 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 F3 [03:39:27]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [03:39:27]wFMCommunicate OK [03:39:27]SAM_PROTO_GetShiftState done [03:39:27]FM_GetShiftState done [03:39:27]req_shift_opened done [03:39:27]requested_item shift.open_date is exist - process it [03:39:27]req_shift_open_date [03:39:27]req_shift_open_date done [03:39:27]produce_requested_data done [03:39:27]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29104,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [03:39:27]process_action_free close_receipt [03:39:27]json_value_free [03:39:27]json_value_free done [03:39:27]process_json_proto returns [03:39:27]Send response to host [03:39:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29104,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [03:39:27]free response buf [03:39:27]execute_script done [03:39:27]execute_script returns [03:39:27]free content buf [03:39:27]Sock 9.Close socket [03:39:27]Sock 9.Thread stoped [03:39:31]OFD Sender: No OFD packet to send [03:39:36]OFD Sender: No OFD packet to send [03:39:41]OFD Sender: No OFD packet to send [03:39:46]OFD Sender: No OFD packet to send [03:39:51]OFD Sender: No OFD packet to send [03:39:56]OFD Sender: No OFD packet to send [03:40:01]OFD Sender: No OFD packet to send [03:40:06]OFD Sender: No OFD packet to send [03:40:11]OFD Sender: No OFD packet to send [03:40:16]OFD Sender: No OFD packet to send [03:40:21]OFD Sender: No OFD packet to send [03:40:26]OFD Sender: No OFD packet to send [03:40:31]OFD Sender: No OFD packet to send [03:40:36]OFD Sender: No OFD packet to send [03:40:41]OFD Sender: No OFD packet to send [03:40:46]OFD Sender: No OFD packet to send [03:40:51]OFD Sender: No OFD packet to send [03:40:56]OFD Sender: No OFD packet to send [03:41:01]OFD Sender: No OFD packet to send [03:41:06]OFD Sender: No OFD packet to send [03:41:11]OFD Sender: No OFD packet to send [03:41:16]OFD Sender: No OFD packet to send [03:41:21]OFD Sender: No OFD packet to send [03:41:26]OFD Sender: No OFD packet to send [03:41:31]OFD Sender: No OFD packet to send [03:41:36]OFD Sender: No OFD packet to send [03:41:41]OFD Sender: No OFD packet to send [03:41:46]OFD Sender: No OFD packet to send [03:41:51]OFD Sender: No OFD packet to send [03:41:56]OFD Sender: No OFD packet to send [03:42:01]OFD Sender: No OFD packet to send [03:42:06]OFD Sender: No OFD packet to send [03:42:11]OFD Sender: No OFD packet to send [03:42:16]OFD Sender: No OFD packet to send [03:42:21]OFD Sender: No OFD packet to send [03:42:26]OFD Sender: No OFD packet to send [03:42:31]OFD Sender: No OFD packet to send [03:42:36]OFD Sender: No OFD packet to send [03:42:41]OFD Sender: No OFD packet to send [03:42:46]OFD Sender: No OFD packet to send [03:42:51]OFD Sender: No OFD packet to send [03:42:56]OFD Sender: No OFD packet to send [03:43:01]OFD Sender: No OFD packet to send [03:43:06]OFD Sender: No OFD packet to send [03:43:11]OFD Sender: No OFD packet to send [03:43:16]OFD Sender: No OFD packet to send [03:43:21]OFD Sender: No OFD packet to send [03:43:26]OFD Sender: No OFD packet to send [03:43:31]OFD Sender: No OFD packet to send [03:43:36]OFD Sender: No OFD packet to send [03:43:41]OFD Sender: No OFD packet to send [03:43:46]OFD Sender: No OFD packet to send [03:43:51]OFD Sender: No OFD packet to send [03:43:56]OFD Sender: No OFD packet to send [03:44:01]OFD Sender: No OFD packet to send [03:44:06]OFD Sender: No OFD packet to send [03:44:11]OFD Sender: No OFD packet to send [03:44:16]OFD Sender: No OFD packet to send [03:44:21]OFD Sender: No OFD packet to send [03:44:26]OFD Sender: No OFD packet to send [03:44:31]OFD Sender: No OFD packet to send [03:44:36]OFD Sender: No OFD packet to send [03:44:41]OFD Sender: No OFD packet to send [03:44:46]OFD Sender: No OFD packet to send [03:44:51]OFD Sender: No OFD packet to send [03:44:56]OFD Sender: No OFD packet to send [03:45:01]OFD Sender: No OFD packet to send [03:45:06]OFD Sender: No OFD packet to send [03:45:11]OFD Sender: No OFD packet to send [03:45:16]OFD Sender: No OFD packet to send [03:45:21]OFD Sender: No OFD packet to send [03:45:26]OFD Sender: No OFD packet to send [03:45:31]OFD Sender: No OFD packet to send [03:45:36]OFD Sender: No OFD packet to send [03:45:41]OFD Sender: No OFD packet to send [03:45:46]OFD Sender: No OFD packet to send [03:45:51]OFD Sender: No OFD packet to send [03:45:56]OFD Sender: No OFD packet to send [03:46:01]OFD Sender: No OFD packet to send [03:46:06]OFD Sender: No OFD packet to send [03:46:11]OFD Sender: No OFD packet to send [03:46:16]OFD Sender: No OFD packet to send [03:46:21]OFD Sender: No OFD packet to send [03:46:26]OFD Sender: No OFD packet to send [03:46:31]OFD Sender: No OFD packet to send [03:46:36]OFD Sender: No OFD packet to send [03:46:41]OFD Sender: No OFD packet to send [03:46:46]OFD Sender: No OFD packet to send [03:46:51]OFD Sender: No OFD packet to send [03:46:56]OFD Sender: No OFD packet to send [03:47:01]OFD Sender: No OFD packet to send [03:47:06]accept exits with 7 [03:47:06]New connection [03:47:06]New thread 3066785124 created [03:47:06]Thread 3066928484 joined [03:47:06]Waiting for new connection... [03:47:06] Sock 7.Parse request [03:47:06]Sock 7.Check first char [03:47:06]Sock 7.First char is OK [03:47:06]request: POST /json_proto HTTP/1.0 [03:47:06]Method: POST [03:47:06]URL: /json_proto [03:47:06]Method is POST - this is cgi request [03:47:06]url: /json_proto [03:47:06]query_string will be loaded in cgi processing [03:47:06]execute_cgi json_proto POST (null) [03:47:06]execute_cgi path=json_proto method=POST [03:47:06]POST find Content-Length [03:47:06]Host: 172.17.33.3:8080 [03:47:06]Content-Length: 685 [03:47:06]Content-Type: application/json [03:47:06] [03:47:06]POST finish read [03:47:06]Found Content-Length = 685 [03:47:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347473", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 60.800, "sum" : 2000.32, "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" ] } } [03:47:06]execute_script... [03:47: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)347473", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 60.800, "sum" : 2000.32, "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" ] } } [03:47:06]POST & json_proto [03:47:06]process_json_proto [03:47:06]json parsed OK: [03:47:06]protocol is kg_v1.0 [03:47:06]action value=close_receipt [03:47:06]process_action close_receipt [03:47:06]cmd_close_receipt [03:47:06]MH_GetDate [03:47:06]Write to MH i2c: F0 00 00 57 74 BA [03:47:06]Write i2c OK [03:47:06]MH_I2C_Read... [03:47:06]Read from MH i2c: F0 [03:47:06]MH_I2C_Read... [03:47:06]Read from MH i2c: F0 09 00 [03:47:06]MH_I2C_Read... [03:47:06]Read from MH i2c: F0 09 00 57 74 00 C2 51 1B 66 23 5B 8F 65 C9 [03:47:06]GetLastDocTimeStamp 1713065971 [03:47:06]current date 1713066434 [03:47:06]FM_GetShiftState [03:47:06]SAM_PROTO_GetShiftState [03:47:06]wFMCommunicate request_size=4 [03:47:06]MH_SAM_APDU [03:47:06]CAPDU: 80 13 01 00 [03:47:06]Write to MH i2c: E2 08 00 58 74 80 13 01 00 00 00 00 00 49 [03:47:06]Write i2c OK [03:47:06]MH_I2C_Read... [03:47:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:47:06]Read from MH i2c: E2 [03:47:06]MH_I2C_Read... [03:47:06]Read from MH i2c: E2 0E 00 [03:47:06]MH_I2C_Read... [03:47:06]Read from MH i2c: E2 0E 00 58 74 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 F5 [03:47:06]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [03:47:06]wFMCommunicate OK [03:47:06]SAM_PROTO_GetShiftState done [03:47:06]FM_GetShiftState done [03:47:06]opened in 1713053951 [03:47:06]opened+sec_in_day 1713140351 [03:47:06]quantity*price = 200032 [03:47:06]sum+1 = 200033 [03:47:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 15 14.04.2024 03:47 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29105 ФПД: 174872580719046 1/tax-web-control/client/api/v1/ticket?date=20240414T034714&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29105&fm=174872580719046&tin=02508201610067®Number=0000138879044617&sum=200000 [03:47:07]StoreToDocumentArchive [03:47:07]shift 116 fd 29105 [03:47:07]save to /storage/0116/doc_00029105 [03:47:07]save last doc name /storage/0116/doc_00029105 to /storage/kkm_last_doc_name [03:47:07]save OK [03:47:07]Clear old archive folders... [03:47:07]ProcessDocumentItem done err = 0, tmpTLVsize=250 [03:47:07]tlvbuf is 011EC890 [03:47:07]SAM_PROTO_ClearQueue [03:47:07]wFMCommunicate request_size=4 [03:47:07]MH_SAM_APDU [03:47:07]CAPDU: 80 09 00 00 [03:47:07]Write to MH i2c: E2 08 00 65 74 80 09 00 00 00 00 00 00 4B [03:47:07]Write i2c OK [03:47:07]MH_I2C_Read... [03:47:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:47:07]Read from MH i2c: E2 [03:47:07]MH_I2C_Read... [03:47:07]Read from MH i2c: E2 03 00 [03:47:07]MH_I2C_Read... [03:47:07]Read from MH i2c: E2 03 00 65 74 00 90 00 4D [03:47:07]RAPDU: 90 00 [03:47:07]wFMCommunicate OK [03:47:07]SAM_PROTO_ClearQueue done [03:47:07]KKMCreateOFDPacket [03:47:07]OFDProtocolAddRootSTLVToBuf [03:47:07]FM_MakeSignedData [03:47:07]FM_MakeSignedData [03:47:07]SAM_PROTO_SignData [03:47:07]wFMCommunicate request_size=4 [03:47:07]MH_SAM_APDU [03:47:07]CAPDU: 80 0D 01 02 [03:47:07]Write to MH i2c: E2 08 00 66 74 80 0D 01 02 00 00 00 00 53 [03:47:07]Write i2c OK [03:47:07]MH_I2C_Read... [03:47:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:47:07]Read from MH i2c: E2 [03:47:07]MH_I2C_Read... [03:47:07]Read from MH i2c: E2 03 00 [03:47:07]MH_I2C_Read... [03:47:07]Read from MH i2c: E2 03 00 66 74 00 90 00 4E [03:47:07]RAPDU: 90 00 [03:47:07]wFMCommunicate OK [03:47:07]wFMCommunicate request_size=255 [03:47:07]MH_SAM_APDU [03:47:07]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 80 ED 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 60 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 0F 00 00 00 F4 03 04 00 C2 51 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B1 71 00 00 35 04 06 00 9F 0B [03:47:07]Write to MH i2c: E2 02 01 67 74 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 80 ED 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 60 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 0F 00 00 00 F4 03 04 00 C2 51 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B1 71 00 00 35 04 06 00 9F 0B 00 00 AC [03:47:07]Write i2c OK [03:47:07]MH_I2C_Read... [03:47:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:47:07]Read from MH i2c: E2 [03:47:07]MH_I2C_Read... [03:47:07]Read from MH i2c: E2 03 00 [03:47:07]MH_I2C_Read... [03:47:07]Read from MH i2c: E2 03 00 67 74 00 90 00 4F [03:47:07]RAPDU: 90 00 [03:47:07]wFMCommunicate OK [03:47:07]wFMCommunicate request_size=9 [03:47:07]MH_SAM_APDU [03:47:07]CAPDU: 80 0D 02 02 04 B2 0E 01 C6 [03:47:07]Write to MH i2c: E2 0C 00 68 74 80 0D 02 02 04 00 B2 0E 01 C6 00 00 E5 [03:47:07]Write i2c OK [03:47:07]MH_I2C_Read... [03:47:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:47:07]Read from MH i2c: E2 [03:47:07]MH_I2C_Read... [03:47:07]Read from MH i2c: E2 03 00 [03:47:07]MH_I2C_Read... [03:47:07]Read from MH i2c: E2 03 00 68 74 00 90 00 50 [03:47:07]RAPDU: 90 00 [03:47:07]wFMCommunicate OK [03:47:07]wFMCommunicate request_size=4 [03:47:07]MH_SAM_APDU [03:47:07]CAPDU: 80 0D 03 02 [03:47:07]Write to MH i2c: E2 08 00 69 74 80 0D 03 02 00 00 00 00 58 [03:47:07]Write i2c OK [03:47:07]MH_I2C_Read... [03:47:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:47:07]Read from MH i2c: E2 [03:47:07]MH_I2C_Read... [03:47:07]Read from MH i2c: E2 0B 00 [03:47:07]MH_I2C_Read... [03:47:07]Read from MH i2c: E2 0B 00 69 74 00 0E E4 75 C7 DC C2 9A 1B 90 00 DA [03:47:07]RAPDU: 0E E4 75 C7 DC C2 9A 1B 90 00 [03:47:07]wFMCommunicate OK [03:47:07]SAM_PROTO_SignData done [03:47:07]FM_MakeSignedData done [03:47:07]CreateOFDProtocolMessage [03:47:07]wFMCommunicate request_size=4 [03:47:07]MH_SAM_APDU [03:47:07]CAPDU: 80 11 00 00 [03:47:07]Write to MH i2c: E2 08 00 6A 74 80 11 00 00 00 00 00 00 58 [03:47:07]Write i2c OK [03:47:07]MH_I2C_Read... [03:47:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:47:07]Read from MH i2c: E2 [03:47:07]MH_I2C_Read... [03:47:07]Read from MH i2c: E2 17 00 [03:47:07]MH_I2C_Read... [03:47:07]Read from MH i2c: E2 17 00 6A 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A7 [03:47:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [03:47:07]wFMCommunicate OK [03:47:07]CreateOFDProtocolMessage done [03:47:07]OFDSenderStorePacket 29105 [03:47:07]StoreOFDPacket docnum=29105 [03:47:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 86 2D 06 01 54 F4 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 80 ED 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 60 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 0F 00 00 00 F4 03 04 00 C2 51 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B1 71 00 00 35 04 06 00 9F 0B B2 0E 01 C6 0E E4 75 C7 DC C2 9A 1B [03:47:07]CheckFolder [03:47:07]dirname=/storage/ofd_packets [03:47:07]CheckFolder done [03:47:07]ProducePacketName [03:47:07]name=ofd_packets/00029105 [03:47:07]NVStorageSaveData ofd_packets/00029105 [03:47:07]File name is /storage/ofd_packets/00029105 [03:47:07]Write 300 bytes [03:47:07]NVStorageSaveData done [03:47:07]OFDSenderStorePacket done [03:47:07]KKMCreateOFDPacket done [03:47:07]NVStorageSaveData kkm_last_timestamp [03:47:07]File name is /storage/kkm_last_timestamp [03:47:07]Write 4 bytes [03:47:07]NVStorageSaveData done [03:47:07]ExternCall_PrintAddStr [03:47:07]wPrintStart [03:47:07]Write to MH i2c: 01 00 00 6B 74 DF [03:47:07]Write i2c OK [03:47:07]MH_I2C_Read... [03:47:07]Read from MH i2c: 01 [03:47:07]MH_I2C_Read... [03:47:07]Read from MH i2c: 01 07 00 [03:47:07]MH_I2C_Read... [03:47:07]Read from MH i2c: 01 07 00 6B 74 00 00 00 00 00 FF 0F F4 [03:47:07]RasterBufferAndPrint [03:47:07]line Счет N : (1)347473 [03:47:07]line ИНН: 02508201610067 [03:47:07]line Контрольно-Кассовый Чек [03:47:07]line ПРОДАЖА [03:47:07]line ТРК (МРК, ГНК) : 71 [03:47:07]line Товар: 2711129700 [03:47:07]line ГАЗ-К-5 [03:47:07]line 60.800 * 32.90 [03:47:07]line = 2000.32 [03:47:07]line НДС 12% НСП 1% [03:47:07]line > о реализуемом товаре [03:47:07]line ОКРУГЛЕНИЕ: -0.32 [03:47:07]line ИТОГО: 2000.00 [03:47:07]line Внесено: 2000.00 [03:47:07]line СДАЧА: 0.00 [03:47:07]line НСП 1% : 17.70 [03:47:07]line НДС 12% : 212.42 [03:47:07]line Наличными: 2000.00 [03:47:07]line Безнал.: 0.00 [03:47:07]line Место: АЗС № 108 "Партнер Нефть" [03:47:07]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [03:47:07]line СНО: Общий режим [03:47:07]line Чек 15 14.04.2024 03:47 [03:47:07]line Смена: 116 ФФД: 1.0 [03:47:07]line ЗНМ: 0300000027 [03:47:07]line РНМ: 0000138879044617 [03:47:07]line Версия ККМ: 001 [03:47:07]line ФМ: 0000000000963154 [03:47:07]line ФД: 29105 [03:47:07]line ФПД: 174872580719046 [03:47:07]line 1/tax-web-control/client/api/v1/ticket?date=20240414T034714&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29105&fm=174872580719046&tin=02508201610067®Number=0000138879044617&sum=200000 [03:47:08]OFD Sender: Processing packet 29105 [packets to send 8, broken 7] [03:47:08]ProducePacketName [03:47:08]name=ofd_packets/00029105 [03:47:08]OFD Sender: To server: pG, [03:47:08]CommunicateWithHost lk.salyk.kg:30040 [03:47:08]ConnectInit lk.salyk.kg [03:47:08]written 0, free lines is 4095 [03:47:08]Connected sock=10 [03:47:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 86 2D 06 01 54 F4 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 80 ED 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 60 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 0F 00 00 00 F4 03 04 00 C2 51 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B1 71 00 00 35 04 06 00 9F 0B B2 0E 01 C6 0E E4 75 C7 DC C2 9A 1B [03:47:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 66 77 47 00 E8 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B1 71 00 00 F4 03 04 00 67 FC 1A 66 B6 04 01 00 00 D7 1E 40 71 0C F8 85 53 [03:47:08]CommunicateWithHost err = 0 [03:47:08]CheckOFDResponse [03:47:08]1017 (14) - 77093643461234 [03:47:08]1041 (16) - 0000000000963154 [03:47:08]1040 (4) - 29105 [03:47:08]1012 (4) - 13.04.2024 21:43 [03:47:08]1206 (1) - 0 [03:47:08]OFD Sender: Remove packet 29105 [03:47:08]ProducePacketName [03:47:08]name=ofd_packets/00029105 [03:47:08]NVStorageDeleteData [03:47:08]Write to MH i2c: 01 00 00 95 74 09 [03:47:08]Write i2c OK [03:47:08]MH_I2C_Read... [03:47:08]Read from MH i2c: 01 [03:47:08]MH_I2C_Read... [03:47:08]Read from MH i2c: 01 07 00 [03:47:08]MH_I2C_Read... [03:47:08]Read from MH i2c: 01 07 00 95 74 00 00 00 00 00 BC 0C D8 [03:47:08]RasterBufferAndPrint [03:47:08]line [03:47:08]line [03:47:08]line [03:47:08]line [03:47:08]line [03:47:08]written 0, free lines is 3266 [03:47:08]MH_Cut [03:47:08]Write to MH i2c: D1 01 00 9C 74 01 E2 [03:47:08]Write i2c OK [03:47:08]MH_I2C_Read... [03:47:08]Read from MH i2c: D1 [03:47:08]MH_I2C_Read... [03:47:08]Read from MH i2c: D1 01 00 [03:47:08]MH_I2C_Read... [03:47:08]Read from MH i2c: D1 01 00 9C 74 00 E1 [03:47:08]Write to MH i2c: 01 00 00 9D 74 11 [03:47:08]Write i2c OK [03:47:08]MH_I2C_Read... [03:47:08]OFD Sender: No OFD packet to send [03:47:09]*** Cut start [03:47:09]*** Partial cut [03:47:09]*** CUTSNS_PIN = 1 [03:47:09]*** CUTSNS_PIN = 0 [03:47:09]*** Brake cut motor [03:47:10]Read from MH i2c: 01 [03:47:10]MH_I2C_Read... [03:47:10]*** Stop cut motor [03:47:10]*** Cut end [03:47:10]Read from MH i2c: 01 07 00 [03:47:10]MH_I2C_Read... [03:47:10]Read from MH i2c: 01 07 00 9D 74 00 00 00 00 00 FF 0F 26 [03:47:10]process_action close_receipt done [03:47:10]requested_data is exist [03:47:10]produce_requested_data [03:47:10]requested_item fm.sn is exist - process it [03:47:10]wFMCommunicate request_size=4 [03:47:10]MH_SAM_APDU [03:47:10]CAPDU: 80 11 00 00 [03:47:10]Write to MH i2c: E2 08 00 9E 74 80 11 00 00 00 00 00 00 8C [03:47:10]Write i2c OK [03:47:10]MH_I2C_Read... [03:47:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:47:10]Read from MH i2c: E2 [03:47:10]MH_I2C_Read... [03:47:10]Read from MH i2c: E2 17 00 [03:47:10]MH_I2C_Read... [03:47:10]Read from MH i2c: E2 17 00 9E 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 DB [03:47:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [03:47:10]wFMCommunicate OK [03:47:10]requested_item fd.num is exist - process it [03:47:10]SAM_PROTO_GetFieldsCounters [03:47:10]wFMCommunicate request_size=4 [03:47:10]MH_SAM_APDU [03:47:10]CAPDU: 80 13 00 00 [03:47:10]Write to MH i2c: E2 08 00 9F 74 80 13 00 00 00 00 00 00 8F [03:47:10]Write i2c OK [03:47:10]MH_I2C_Read... [03:47:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:47:10]Read from MH i2c: E2 [03:47:10]MH_I2C_Read... [03:47:10]Read from MH i2c: E2 62 00 [03:47:10]MH_I2C_Read... [03:47:10]Read from MH i2c: E2 62 00 9F 74 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B1 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 90 [03:47:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B1 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:47:10]wFMCommunicate OK [03:47:10]SAM_PROTO_GetFieldsCounters done [03:47:10]requested_item shift.num is exist - process it [03:47:10]requested_item shift.opened is exist - process it [03:47:10]req_shift_opened [03:47:10]FM_GetShiftState [03:47:10]SAM_PROTO_GetShiftState [03:47:10]wFMCommunicate request_size=4 [03:47:10]MH_SAM_APDU [03:47:10]CAPDU: 80 13 01 00 [03:47:10]Write to MH i2c: E2 08 00 A0 74 80 13 01 00 00 00 00 00 91 [03:47:10]Write i2c OK [03:47:10]MH_I2C_Read... [03:47:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:47:10]Read from MH i2c: E2 [03:47:10]MH_I2C_Read... [03:47:10]Read from MH i2c: E2 0E 00 [03:47:10]MH_I2C_Read... [03:47:10]Read from MH i2c: E2 0E 00 A0 74 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 3D [03:47:10]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [03:47:10]wFMCommunicate OK [03:47:10]SAM_PROTO_GetShiftState done [03:47:10]FM_GetShiftState done [03:47:10]req_shift_opened done [03:47:10]requested_item shift.open_date is exist - process it [03:47:10]req_shift_open_date [03:47:10]req_shift_open_date done [03:47:10]produce_requested_data done [03:47:10]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29105,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [03:47:10]process_action_free close_receipt [03:47:10]json_value_free [03:47:10]json_value_free done [03:47:10]process_json_proto returns [03:47:10]Send response to host [03:47:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29105,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [03:47:10]free response buf [03:47:10]execute_script done [03:47:10]execute_script returns [03:47:10]free content buf [03:47:10]Sock 7.Close socket [03:47:10]Sock 7.Thread stoped [03:47:13]OFD Sender: No OFD packet to send [03:47:18]OFD Sender: No OFD packet to send [03:47:23]OFD Sender: No OFD packet to send [03:47:28]OFD Sender: No OFD packet to send [03:47:33]OFD Sender: No OFD packet to send [03:47:38]OFD Sender: No OFD packet to send [03:47:43]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:09]OFD Sender: No OFD packet to send [03:59:14]OFD Sender: No OFD packet to send [03:59:19]OFD Sender: No OFD packet to send [03:59:24]OFD Sender: No OFD packet to send [03:59:29]OFD Sender: No OFD packet to send [03:59:34]OFD Sender: No OFD packet to send [03:59:39]OFD Sender: No OFD packet to send [03:59:44]OFD Sender: No OFD packet to send [03:59:49]OFD Sender: No OFD packet to send [03:59:54]OFD Sender: No OFD packet to send [03:59:59]OFD Sender: No OFD packet to send [04:00:04]OFD Sender: No OFD packet to send [04:00:09]OFD Sender: No OFD packet to send [04:00:14]OFD Sender: No OFD packet to send [04:00:19]OFD Sender: No OFD packet to send [04:00:24]OFD Sender: No OFD packet to send [04:00:29]OFD Sender: No OFD packet to send [04:00:34]OFD Sender: No OFD packet to send [04:00:39]OFD Sender: No OFD packet to send [04:00:44]OFD Sender: No OFD packet to send [04:00:49]OFD Sender: No OFD packet to send [04:00:54]OFD Sender: No OFD packet to send [04:00:59]OFD Sender: No OFD packet to send [04:01:04]OFD Sender: No OFD packet to send [04:01:09]OFD Sender: No OFD packet to send [04:01:14]OFD Sender: No OFD packet to send [04:01:19]OFD Sender: No OFD packet to send [04:01:24]OFD Sender: No OFD packet to send [04:01:29]OFD Sender: No OFD packet to send [04:01:34]OFD Sender: No OFD packet to send [04:01:39]OFD Sender: No OFD packet to send [04:01:44]OFD Sender: No OFD packet to send [04:01:49]OFD Sender: No OFD packet to send [04:01:54]OFD Sender: No OFD packet to send [04:01:59]OFD Sender: No OFD packet to send [04:02:04]OFD Sender: No OFD packet to send [04:02:09]OFD Sender: No OFD packet to send [04:02:14]OFD Sender: No OFD packet to send [04:02:19]OFD Sender: No OFD packet to send [04:02:24]OFD Sender: No OFD packet to send [04:02:29]OFD Sender: No OFD packet to send [04:02:34]OFD Sender: No OFD packet to send [04:02:39]OFD Sender: No OFD packet to send [04:02:44]OFD Sender: No OFD packet to send [04:02:49]OFD Sender: No OFD packet to send [04:02:54]OFD Sender: No OFD packet to send [04:02:59]OFD Sender: No OFD packet to send [04:03:04]OFD Sender: No OFD packet to send [04:03:09]OFD Sender: No OFD packet to send [04:03:14]OFD Sender: No OFD packet to send [04:03:19]OFD Sender: No OFD packet to send [04:03:24]OFD Sender: No OFD packet to send [04:03:29]OFD Sender: No OFD packet to send [04:03:34]OFD Sender: No OFD packet to send [04:03:39]OFD Sender: No OFD packet to send [04:03:44]OFD Sender: No OFD packet to send [04:03:49]OFD Sender: No OFD packet to send [04:03:54]OFD Sender: No OFD packet to send [04:03:59]OFD Sender: No OFD packet to send [04:04:04]OFD Sender: No OFD packet to send [04:04:09]OFD Sender: No OFD packet to send [04:04:14]OFD Sender: No OFD packet to send [04:04:19]OFD Sender: No OFD packet to send [04:04:24]OFD Sender: No OFD packet to send [04:04:29]OFD Sender: No OFD packet to send [04:04:34]OFD Sender: No OFD packet to send [04:04:39]OFD Sender: No OFD packet to send [04:04:44]OFD Sender: No OFD packet to send [04:04:49]OFD Sender: No OFD packet to send [04:04:54]OFD Sender: No OFD packet to send [04:04:59]OFD Sender: No OFD packet to send [04:05:04]OFD Sender: No OFD packet to send [04:05:09]OFD Sender: No OFD packet to send [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:24]OFD Sender: No OFD packet to send [04:06:29]OFD Sender: No OFD packet to send [04:06:34]OFD Sender: No OFD packet to send [04:06:39]OFD Sender: No OFD packet to send [04:06:44]OFD Sender: No OFD packet to send [04:06:49]OFD Sender: No OFD packet to send [04:06:54]OFD Sender: No OFD packet to send [04:06:59]OFD Sender: No OFD packet to send [04:07:04]OFD Sender: No OFD packet to send [04:07:09]OFD Sender: No OFD packet to send [04:07:14]OFD Sender: No OFD packet to send [04:07:19]OFD Sender: No OFD packet to send [04:07:24]OFD Sender: No OFD packet to send [04:07:29]OFD Sender: No OFD packet to send [04:07:34]OFD Sender: No OFD packet to send [04:07:39]OFD Sender: No OFD packet to send [04:07:44]OFD Sender: No OFD packet to send [04:07:49]OFD Sender: No OFD packet to send [04:07:54]OFD Sender: No OFD packet to send [04:07:59]OFD Sender: No OFD packet to send [04:08:04]OFD Sender: No OFD packet to send [04:08:09]OFD Sender: No OFD packet to send [04:08:14]OFD Sender: No OFD packet to send [04:08:19]OFD Sender: No OFD packet to send [04:08:24]OFD Sender: No OFD packet to send [04:08:29]OFD Sender: No OFD packet to send [04:08:34]OFD Sender: No OFD packet to send [04:08:39]OFD Sender: No OFD packet to send [04:08:44]OFD Sender: No OFD packet to send [04:08:49]OFD Sender: No OFD packet to send [04:08:54]OFD Sender: No OFD packet to send [04:08:59]OFD Sender: No OFD packet to send [04:09:04]OFD Sender: No OFD packet to send [04:09:09]OFD Sender: No OFD packet to send [04:09:14]OFD Sender: No OFD packet to send [04:09: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:40]OFD Sender: No OFD packet to send [04:09:45]OFD Sender: No OFD packet to send [04:09:50]OFD Sender: No OFD packet to send [04:09:55]OFD Sender: No OFD packet to send [04:10:00]OFD Sender: No OFD packet to send [04:10:05]OFD Sender: No OFD packet to send [04:10:10]OFD Sender: No OFD packet to send [04:10:15]OFD Sender: No OFD packet to send [04:10:20]OFD Sender: No OFD packet to send [04:10:25]OFD Sender: No OFD packet to send [04:10:30]OFD Sender: No OFD packet to send [04:10:35]OFD Sender: No OFD packet to send [04:10:40]OFD Sender: No OFD packet to send [04:10:45]OFD Sender: No OFD packet to send [04:10:50]OFD Sender: No OFD packet to send [04:10:55]OFD Sender: No OFD packet to send [04:11:00]OFD Sender: No OFD packet to send [04:11:05]OFD Sender: No OFD packet to send [04:11:10]OFD Sender: No OFD packet to send [04:11:15]OFD Sender: No OFD packet to send [04:11:20]OFD Sender: No OFD packet to send [04:11:25]OFD Sender: No OFD packet to send [04:11:30]OFD Sender: No OFD packet to send [04:11:35]OFD Sender: No OFD packet to send [04:11:40]OFD Sender: No OFD packet to send [04:11:45]OFD Sender: No OFD packet to send [04:11:50]OFD Sender: No OFD packet to send [04:11:55]OFD Sender: No OFD packet to send [04:12:00]OFD Sender: No OFD packet to send [04:12:05]OFD Sender: No OFD packet to send [04:12:10]OFD Sender: No OFD packet to send [04:12:15]OFD Sender: No OFD packet to send [04:12:20]OFD Sender: No OFD packet to send [04:12:25]OFD Sender: No OFD packet to send [04:12:30]OFD Sender: No OFD packet to send [04:12:35]OFD Sender: No OFD packet to send [04:12:40]OFD Sender: No OFD packet to send [04:12:45]OFD Sender: No OFD packet to send [04:12:50]OFD Sender: No OFD packet to send [04:12:55]OFD Sender: No OFD packet to send [04:13:00]OFD Sender: No OFD packet to send [04:13:05]OFD Sender: No OFD packet to send [04:13:10]OFD Sender: No OFD packet to send [04:13:15]OFD Sender: No OFD packet to send [04:13:20]OFD Sender: No OFD packet to send [04:13:25]OFD Sender: No OFD packet to send [04:13:30]OFD Sender: No OFD packet to send [04:13:35]OFD Sender: No OFD packet to send [04:13:40]OFD Sender: No OFD packet to send [04:13:45]OFD Sender: No OFD packet to send [04:13:50]OFD Sender: No OFD packet to send [04:13:55]OFD Sender: No OFD packet to send [04:14:00]OFD Sender: No OFD packet to send [04:14:05]OFD Sender: No OFD packet to send [04:14:10]OFD Sender: No OFD packet to send [04:14:15]OFD Sender: No OFD packet to send [04:14:20]OFD Sender: No OFD packet to send [04:14:25]OFD Sender: No OFD packet to send [04:14:30]OFD Sender: No OFD packet to send [04:14:35]OFD Sender: No OFD packet to send [04:14:40]OFD Sender: No OFD packet to send [04:14:45]OFD Sender: No OFD packet to send [04:14:50]OFD Sender: No OFD packet to send [04:14:55]OFD Sender: No OFD packet to send [04:15:00]OFD Sender: No OFD packet to send [04:15:05]OFD Sender: No OFD packet to send [04:15:10]OFD Sender: No OFD packet to send [04:15:15]OFD Sender: No OFD packet to send [04:15:20]OFD Sender: No OFD packet to send [04:15:25]OFD Sender: No OFD packet to send [04:15:30]OFD Sender: No OFD packet to send [04:15:35]OFD Sender: No OFD packet to send [04:15:40]OFD Sender: No OFD packet to send [04:15:45]OFD Sender: No OFD packet to send [04:15:50]OFD Sender: No OFD packet to send [04:15:55]OFD Sender: No OFD packet to send [04:16:00]OFD Sender: No OFD packet to send [04:16:05]OFD Sender: No OFD packet to send [04:16:10]OFD Sender: No OFD packet to send [04:16:15]OFD Sender: No OFD packet to send [04:16:20]OFD Sender: No OFD packet to send [04:16:25]OFD Sender: No OFD packet to send [04:16:30]OFD Sender: No OFD packet to send [04:16:35]OFD Sender: No OFD packet to send [04:16:40]OFD Sender: No OFD packet to send [04:16:45]OFD Sender: No OFD packet to send [04:16:50]OFD Sender: No OFD packet to send [04:16:55]OFD Sender: No OFD packet to send [04:17:00]OFD Sender: No OFD packet to send [04:17:05]OFD Sender: No OFD packet to send [04:17:10]OFD Sender: No OFD packet to send [04:17:15]OFD Sender: No OFD packet to send [04:17:20]OFD Sender: No OFD packet to send [04:17:25]OFD Sender: No OFD packet to send [04:17:30]OFD Sender: No OFD packet to send [04:17:35]OFD Sender: No OFD packet to send [04:17:40]OFD Sender: No OFD packet to send [04:17:45]OFD Sender: No OFD packet to send [04:17:50]OFD Sender: No OFD packet to send [04:17:55]OFD Sender: No OFD packet to send [04:18:00]OFD Sender: No OFD packet to send [04:18:05]OFD Sender: No OFD packet to send [04:18:10]OFD Sender: No OFD packet to send [04:18:15]OFD Sender: No OFD packet to send [04:18:20]OFD Sender: No OFD packet to send [04:18:25]OFD Sender: No OFD packet to send [04:18:30]OFD Sender: No OFD packet to send [04:18:35]OFD Sender: No OFD packet to send [04:18:40]OFD Sender: No OFD packet to send [04:18:45]OFD Sender: No OFD packet to send [04:18:50]OFD Sender: No OFD packet to send [04:18:55]OFD Sender: No OFD packet to send [04:19:00]OFD Sender: No OFD packet to send [04:19:05]OFD Sender: No OFD packet to send [04:19:10]OFD Sender: No OFD packet to send [04:19:15]OFD Sender: No OFD packet to send [04:19:20]OFD Sender: No OFD packet to send [04:19:25]OFD Sender: No OFD packet to send [04:19:30]OFD Sender: No OFD packet to send [04:19:35]OFD Sender: No OFD packet to send [04:19:40]OFD Sender: No OFD packet to send [04:19:45]OFD Sender: No OFD packet to send [04:19:50]OFD Sender: No OFD packet to send [04:19:55]OFD Sender: No OFD packet to send [04:20:00]OFD Sender: No OFD packet to send [04:20:05]OFD Sender: No OFD packet to send [04:20:10]OFD Sender: No OFD packet to send [04:20:15]OFD Sender: No OFD packet to send [04:20:20]OFD Sender: No OFD packet to send [04:20:25]OFD Sender: No OFD packet to send [04:20:30]OFD Sender: No OFD packet to send [04:20:35]OFD Sender: No OFD packet to send [04:20:40]OFD Sender: No OFD packet to send [04:20:45]OFD Sender: No OFD packet to send [04:20:50]OFD Sender: No OFD packet to send [04:20:55]OFD Sender: No OFD packet to send [04:21:00]OFD Sender: No OFD packet to send [04:21:05]OFD Sender: No OFD packet to send [04:21:10]OFD Sender: No OFD packet to send [04:21:15]OFD Sender: No OFD packet to send [04:21:20]OFD Sender: No OFD packet to send [04:21:25]OFD Sender: No OFD packet to send [04:21:30]OFD Sender: No OFD packet to send [04:21:35]OFD Sender: No OFD packet to send [04:21:40]OFD Sender: No OFD packet to send [04:21:45]OFD Sender: No OFD packet to send [04:21:50]OFD Sender: No OFD packet to send [04:21:55]OFD Sender: No OFD packet to send [04:22:00]OFD Sender: No OFD packet to send [04:22:05]OFD Sender: No OFD packet to send [04:22:10]OFD Sender: No OFD packet to send [04:22:15]OFD Sender: No OFD packet to send [04:22:20]OFD Sender: No OFD packet to send [04:22:25]OFD Sender: No OFD packet to send [04:22:30]OFD Sender: No OFD packet to send [04:22:35]OFD Sender: No OFD packet to send [04:22:40]OFD Sender: No OFD packet to send [04:22:45]OFD Sender: No OFD packet to send [04:22:50]OFD Sender: No OFD packet to send [04:22:55]OFD Sender: No OFD packet to send [04:23:00]OFD Sender: No OFD packet to send [04:23:05]OFD Sender: No OFD packet to send [04:23:10]OFD Sender: No OFD packet to send [04:23:15]OFD Sender: No OFD packet to send [04:23:20]OFD Sender: No OFD packet to send [04:23:25]OFD Sender: No OFD packet to send [04:23:30]OFD Sender: No OFD packet to send [04:23:35]OFD Sender: No OFD packet to send [04:23:40]OFD Sender: No OFD packet to send [04:23:45]OFD Sender: No OFD packet to send [04:23:50]OFD Sender: No OFD packet to send [04:23:55]OFD Sender: No OFD packet to send [04:24:00]OFD Sender: No OFD packet to send [04:24:05]OFD Sender: No OFD packet to send [04:24:10]OFD Sender: No OFD packet to send [04:24:15]OFD Sender: No OFD packet to send [04:24:20]OFD Sender: No OFD packet to send [04:24:25]OFD Sender: No OFD packet to send [04:24:30]OFD Sender: No OFD packet to send [04:24:35]OFD Sender: No OFD packet to send [04:24:40]OFD Sender: No OFD packet to send [04:24:45]OFD Sender: No OFD packet to send [04:24:50]OFD Sender: No OFD packet to send [04:24:55]OFD Sender: No OFD packet to send [04:25:00]OFD Sender: No OFD packet to send [04:25:05]OFD Sender: No OFD packet to send [04:25:10]OFD Sender: No OFD packet to send [04:25:15]OFD Sender: No OFD packet to send [04:25:20]OFD Sender: No OFD packet to send [04:25:25]OFD Sender: No OFD packet to send [04:25:30]OFD Sender: No OFD packet to send [04:25:35]OFD Sender: No OFD packet to send [04:25:40]OFD Sender: No OFD packet to send [04:25:45]OFD Sender: No OFD packet to send [04:25:50]OFD Sender: No OFD packet to send [04:25:55]OFD Sender: No OFD packet to send [04:26:00]OFD Sender: No OFD packet to send [04:26:05]OFD Sender: No OFD packet to send [04:26:10]OFD Sender: No OFD packet to send [04:26:15]OFD Sender: No OFD packet to send [04:26:20]OFD Sender: No OFD packet to send [04:26:25]OFD Sender: No OFD packet to send [04:26:30]OFD Sender: No OFD packet to send [04:26:35]OFD Sender: No OFD packet to send [04:26:40]OFD Sender: No OFD packet to send [04:26:45]OFD Sender: No OFD packet to send [04:26:50]OFD Sender: No OFD packet to send [04:26:55]OFD Sender: No OFD packet to send [04:27:00]OFD Sender: No OFD packet to send [04:27:05]OFD Sender: No OFD packet to send [04:27:10]OFD Sender: No OFD packet to send [04:27:15]OFD Sender: No OFD packet to send [04:27:20]OFD Sender: No OFD packet to send [04:27:25]OFD Sender: No OFD packet to send [04:27:30]OFD Sender: No OFD packet to send [04:27:35]OFD Sender: No OFD packet to send [04:27:40]OFD Sender: No OFD packet to send [04:27:45]OFD Sender: No OFD packet to send [04:27:50]OFD Sender: No OFD packet to send [04:27:55]OFD Sender: No OFD packet to send [04:28:00]OFD Sender: No OFD packet to send [04:28:05]OFD Sender: No OFD packet to send [04:28:10]OFD Sender: No OFD packet to send [04:28:15]OFD Sender: No OFD packet to send [04:28:20]OFD Sender: No OFD packet to send [04:28:25]OFD Sender: No OFD packet to send [04:28:30]OFD Sender: No OFD packet to send [04:28:35]OFD Sender: No OFD packet to send [04:28:40]OFD Sender: No OFD packet to send [04:28:45]OFD Sender: No OFD packet to send [04:28:50]OFD Sender: No OFD packet to send [04:28:55]OFD Sender: No OFD packet to send [04:29:00]OFD Sender: No OFD packet to send [04:29:05]OFD Sender: No OFD packet to send [04:29:10]OFD Sender: No OFD packet to send [04:29:15]OFD Sender: No OFD packet to send [04:29:20]OFD Sender: No OFD packet to send [04:29:25]OFD Sender: No OFD packet to send [04:29:30]OFD Sender: No OFD packet to send [04:29:35]OFD Sender: No OFD packet to send [04:29:40]OFD Sender: No OFD packet to send [04:29:45]OFD Sender: No OFD packet to send [04:29:50]OFD Sender: No OFD packet to send [04:29:55]OFD Sender: No OFD packet to send [04:30:00]OFD Sender: No OFD packet to send [04:30:05]OFD Sender: No OFD packet to send [04:30:10]OFD Sender: No OFD packet to send [04:30:15]OFD Sender: No OFD packet to send [04:30:20]OFD Sender: No OFD packet to send [04:30:25]OFD Sender: No OFD packet to send [04:30:30]OFD Sender: No OFD packet to send [04:30:35]OFD Sender: No OFD packet to send [04:30:40]OFD Sender: No OFD packet to send [04:30:45]OFD Sender: No OFD packet to send [04:30:51]OFD Sender: No OFD packet to send [04:30:56]OFD Sender: No OFD packet to send [04:31:01]OFD Sender: No OFD packet to send [04:31:06]OFD Sender: No OFD packet to send [04:31:11]OFD Sender: No OFD packet to send [04:31:16]OFD Sender: No OFD packet to send [04:31:21]OFD Sender: No OFD packet to send [04:31:26]OFD Sender: No OFD packet to send [04:31:31]OFD Sender: No OFD packet to send [04:31:36]OFD Sender: No OFD packet to send [04:31:41]OFD Sender: No OFD packet to send [04:31:46]OFD Sender: No OFD packet to send [04:31:51]OFD Sender: No OFD packet to send [04:31:56]OFD Sender: No OFD packet to send [04:32:01]OFD Sender: No OFD packet to send [04:32:06]OFD Sender: No OFD packet to send [04:32:11]OFD Sender: No OFD packet to send [04:32:16]OFD Sender: No OFD packet to send [04:32:21]OFD Sender: No OFD packet to send [04:32:26]OFD Sender: No OFD packet to send [04:32:31]OFD Sender: No OFD packet to send [04:32:36]OFD Sender: No OFD packet to send [04:32:41]OFD Sender: No OFD packet to send [04:32:46]OFD Sender: No OFD packet to send [04:32:51]OFD Sender: No OFD packet to send [04:32:56]OFD Sender: No OFD packet to send [04:33:01]OFD Sender: No OFD packet to send [04:33:06]OFD Sender: No OFD packet to send [04:33:11]OFD Sender: No OFD packet to send [04:33:16]OFD Sender: No OFD packet to send [04:33:21]OFD Sender: No OFD packet to send [04:33:26]OFD Sender: No OFD packet to send [04:33:31]OFD Sender: No OFD packet to send [04:33:36]OFD Sender: No OFD packet to send [04:33:41]OFD Sender: No OFD packet to send [04:33:46]OFD Sender: No OFD packet to send [04:33:51]OFD Sender: No OFD packet to send [04:33:56]OFD Sender: No OFD packet to send [04:34:01]OFD Sender: No OFD packet to send [04:34:06]OFD Sender: No OFD packet to send [04:34:11]OFD Sender: No OFD packet to send [04:34:16]OFD Sender: No OFD packet to send [04:34:21]OFD Sender: No OFD packet to send [04:34:26]OFD Sender: No OFD packet to send [04:34:31]OFD Sender: No OFD packet to send [04:34:36]OFD Sender: No OFD packet to send [04:34:41]OFD Sender: No OFD packet to send [04:34:46]OFD Sender: No OFD packet to send [04:34:51]OFD Sender: No OFD packet to send [04:34:56]OFD Sender: No OFD packet to send [04:35:01]OFD Sender: No OFD packet to send [04:35:06]OFD Sender: No OFD packet to send [04:35:11]OFD Sender: No OFD packet to send [04:35:16]OFD Sender: No OFD packet to send [04:35:21]OFD Sender: No OFD packet to send [04:35:26]OFD Sender: No OFD packet to send [04:35:31]OFD Sender: No OFD packet to send [04:35:36]OFD Sender: No OFD packet to send [04:35:41]OFD Sender: No OFD packet to send [04:35:46]OFD Sender: No OFD packet to send [04:35:51]OFD Sender: No OFD packet to send [04:35:56]OFD Sender: No OFD packet to send [04:36:01]OFD Sender: No OFD packet to send [04:36:06]OFD Sender: No OFD packet to send [04:36:11]OFD Sender: No OFD packet to send [04:36:16]OFD Sender: No OFD packet to send [04:36:21]OFD Sender: No OFD packet to send [04:36:26]OFD Sender: No OFD packet to send [04:36:31]OFD Sender: No OFD packet to send [04:36:36]OFD Sender: No OFD packet to send [04:36:41]OFD Sender: No OFD packet to send [04:36:46]OFD Sender: No OFD packet to send [04:36:51]OFD Sender: No OFD packet to send [04:36:56]OFD Sender: No OFD packet to send [04:37:01]OFD Sender: No OFD packet to send [04:37:06]OFD Sender: No OFD packet to send [04:37:11]OFD Sender: No OFD packet to send [04:37:16]OFD Sender: No OFD packet to send [04:37:21]OFD Sender: No OFD packet to send [04:37:26]OFD Sender: No OFD packet to send [04:37:31]OFD Sender: No OFD packet to send [04:37:36]OFD Sender: No OFD packet to send [04:37:41]OFD Sender: No OFD packet to send [04:37:46]OFD Sender: No OFD packet to send [04:37:51]OFD Sender: No OFD packet to send [04:37:56]OFD Sender: No OFD packet to send [04:38:01]OFD Sender: No OFD packet to send [04:38:06]OFD Sender: No OFD packet to send [04:38:11]OFD Sender: No OFD packet to send [04:38:16]OFD Sender: No OFD packet to send [04:38:21]OFD Sender: No OFD packet to send [04:38:26]OFD Sender: No OFD packet to send [04:38:31]OFD Sender: No OFD packet to send [04:38:36]OFD Sender: No OFD packet to send [04:38:41]OFD Sender: No OFD packet to send [04:38:46]OFD Sender: No OFD packet to send [04:38:51]OFD Sender: No OFD packet to send [04:38:56]OFD Sender: No OFD packet to send [04:39:01]OFD Sender: No OFD packet to send [04:39:06]OFD Sender: No OFD packet to send [04:39:11]OFD Sender: No OFD packet to send [04:39:16]OFD Sender: No OFD packet to send [04:39:21]OFD Sender: No OFD packet to send [04:39:26]OFD Sender: No OFD packet to send [04:39:31]OFD Sender: No OFD packet to send [04:39:36]OFD Sender: No OFD packet to send [04:39:41]OFD Sender: No OFD packet to send [04:39:46]OFD Sender: No OFD packet to send [04:39:51]OFD Sender: No OFD packet to send [04:39:56]OFD Sender: No OFD packet to send [04:40:01]OFD Sender: No OFD packet to send [04:40:06]OFD Sender: No OFD packet to send [04:40:11]OFD Sender: No OFD packet to send [04:40:16]OFD Sender: No OFD packet to send [04:40:21]OFD Sender: No OFD packet to send [04:40:26]OFD Sender: No OFD packet to send [04:40:31]OFD Sender: No OFD packet to send [04:40:36]OFD Sender: No OFD packet to send [04:40:41]OFD Sender: No OFD packet to send [04:40:46]OFD Sender: No OFD packet to send [04:40:51]OFD Sender: No OFD packet to send [04:40:56]OFD Sender: No OFD packet to send [04:41:01]OFD Sender: No OFD packet to send [04:41:06]OFD Sender: No OFD packet to send [04:41:11]OFD Sender: No OFD packet to send [04:41:16]OFD Sender: No OFD packet to send [04:41:21]OFD Sender: No OFD packet to send [04:41:26]OFD Sender: No OFD packet to send [04:41:31]OFD Sender: No OFD packet to send [04:41:36]OFD Sender: No OFD packet to send [04:41:41]OFD Sender: No OFD packet to send [04:41:46]OFD Sender: No OFD packet to send [04:41:51]OFD Sender: No OFD packet to send [04:41:56]OFD Sender: No OFD packet to send [04:42:01]OFD Sender: No OFD packet to send [04:42:06]OFD Sender: No OFD packet to send [04:42:11]OFD Sender: No OFD packet to send [04:42:16]OFD Sender: No OFD packet to send [04:42:21]OFD Sender: No OFD packet to send [04:42:26]OFD Sender: No OFD packet to send [04:42:31]OFD Sender: No OFD packet to send [04:42:36]OFD Sender: No OFD packet to send [04:42:41]OFD Sender: No OFD packet to send [04:42:46]OFD Sender: No OFD packet to send [04:42:51]OFD Sender: No OFD packet to send [04:42:56]OFD Sender: No OFD packet to send [04:43:01]OFD Sender: No OFD packet to send [04:43:06]OFD Sender: No OFD packet to send [04:43:11]OFD Sender: No OFD packet to send [04:43:16]OFD Sender: No OFD packet to send [04:43:21]OFD Sender: No OFD packet to send [04:43:26]OFD Sender: No OFD packet to send [04:43:31]OFD Sender: No OFD packet to send [04:43:36]OFD Sender: No OFD packet to send [04:43:41]OFD Sender: No OFD packet to send [04:43:46]OFD Sender: No OFD packet to send [04:43:51]OFD Sender: No OFD packet to send [04:43:56]OFD Sender: No OFD packet to send [04:44:01]OFD Sender: No OFD packet to send [04:44:06]OFD Sender: No OFD packet to send [04:44:11]OFD Sender: No OFD packet to send [04:44:16]OFD Sender: No OFD packet to send [04:44:21]OFD Sender: No OFD packet to send [04:44:26]OFD Sender: No OFD packet to send [04:44:31]OFD Sender: No OFD packet to send [04:44:36]OFD Sender: No OFD packet to send [04:44:41]OFD Sender: No OFD packet to send [04:44:46]OFD Sender: No OFD packet to send [04:44:51]OFD Sender: No OFD packet to send [04:44:56]OFD Sender: No OFD packet to send [04:45:01]OFD Sender: No OFD packet to send [04:45:06]OFD Sender: No OFD packet to send [04:45:11]OFD Sender: No OFD packet to send [04:45:16]OFD Sender: No OFD packet to send [04:45:21]OFD Sender: No OFD packet to send [04:45:26]OFD Sender: No OFD packet to send [04:45:31]OFD Sender: No OFD packet to send [04:45:36]OFD Sender: No OFD packet to send [04:45:41]OFD Sender: No OFD packet to send [04:45:46]OFD Sender: No OFD packet to send [04:45:51]OFD Sender: No OFD packet to send [04:45:56]OFD Sender: No OFD packet to send [04:46:01]OFD Sender: No OFD packet to send [04:46:06]OFD Sender: No OFD packet to send [04:46:11]OFD Sender: No OFD packet to send [04:46:16]OFD Sender: No OFD packet to send [04:46:21]OFD Sender: No OFD packet to send [04:46:26]OFD Sender: No OFD packet to send [04:46:31]OFD Sender: No OFD packet to send [04:46:36]OFD Sender: No OFD packet to send [04:46:41]OFD Sender: No OFD packet to send [04:46:46]OFD Sender: No OFD packet to send [04:46:51]OFD Sender: No OFD packet to send [04:46:56]OFD Sender: No OFD packet to send [04:47:01]OFD Sender: No OFD packet to send [04:47:06]OFD Sender: No OFD packet to send [04:47:11]OFD Sender: No OFD packet to send [04:47:16]OFD Sender: No OFD packet to send [04:47:21]OFD Sender: No OFD packet to send [04:47:26]OFD Sender: No OFD packet to send [04:47:31]OFD Sender: No OFD packet to send [04:47:36]OFD Sender: No OFD packet to send [04:47:41]OFD Sender: No OFD packet to send [04:47:46]OFD Sender: No OFD packet to send [04:47:51]OFD Sender: No OFD packet to send [04:47:56]OFD Sender: No OFD packet to send [04:48:01]OFD Sender: No OFD packet to send [04:48:06]OFD Sender: No OFD packet to send [04:48:11]OFD Sender: No OFD packet to send [04:48:16]OFD Sender: No OFD packet to send [04:48:21]OFD Sender: No OFD packet to send [04:48:26]OFD Sender: No OFD packet to send [04:48:31]OFD Sender: No OFD packet to send [04:48:36]OFD Sender: No OFD packet to send [04:48:41]OFD Sender: No OFD packet to send [04:48:46]OFD Sender: No OFD packet to send [04:48:51]OFD Sender: No OFD packet to send [04:48:56]OFD Sender: No OFD packet to send [04:49:01]OFD Sender: No OFD packet to send [04:49:06]OFD Sender: No OFD packet to send [04:49:11]OFD Sender: No OFD packet to send [04:49:16]OFD Sender: No OFD packet to send [04:49:21]OFD Sender: No OFD packet to send [04:49:26]OFD Sender: No OFD packet to send [04:49:31]OFD Sender: No OFD packet to send [04:49:36]OFD Sender: No OFD packet to send [04:49:41]OFD Sender: No OFD packet to send [04:49:46]OFD Sender: No OFD packet to send [04:49:51]OFD Sender: No OFD packet to send [04:49:56]OFD Sender: No OFD packet to send [04:50:01]OFD Sender: No OFD packet to send [04:50:06]OFD Sender: No OFD packet to send [04:50:11]OFD Sender: No OFD packet to send [04:50:16]OFD Sender: No OFD packet to send [04:50:21]OFD Sender: No OFD packet to send [04:50:26]OFD Sender: No OFD packet to send [04:50:31]OFD Sender: No OFD packet to send [04:50:36]OFD Sender: No OFD packet to send [04:50:41]OFD Sender: No OFD packet to send [04:50:46]OFD Sender: No OFD packet to send [04:50:51]OFD Sender: No OFD packet to send [04:50:56]OFD Sender: No OFD packet to send [04:51:01]OFD Sender: No OFD packet to send [04:51:06]OFD Sender: No OFD packet to send [04:51:11]OFD Sender: No OFD packet to send [04:51:16]OFD Sender: No OFD packet to send [04:51:21]OFD Sender: No OFD packet to send [04:51:26]OFD Sender: No OFD packet to send [04:51:31]OFD Sender: No OFD packet to send [04:51:36]OFD Sender: No OFD packet to send [04:51:41]OFD Sender: No OFD packet to send [04:51:46]OFD Sender: No OFD packet to send [04:51:51]OFD Sender: No OFD packet to send [04:51:56]OFD Sender: No OFD packet to send [04:52:01]OFD Sender: No OFD packet to send [04:52:06]OFD Sender: No OFD packet to send [04:52:12]OFD Sender: No OFD packet to send [04:52:17]OFD Sender: No OFD packet to send [04:52:20]accept exits with 9 [04:52:20]New connection [04:52:20]New thread 3066928484 created [04:52:20]Thread 3066785124 joined [04:52:20]Waiting for new connection... [04:52:20] Sock 9.Parse request [04:52:20]Sock 9.Check first char [04:52:20]Sock 9.First char is OK [04:52:20]request: POST /json_proto HTTP/1.0 [04:52:20]Method: POST [04:52:20]URL: /json_proto [04:52:20]Method is POST - this is cgi request [04:52:20]url: /json_proto [04:52:20]query_string will be loaded in cgi processing [04:52:20]execute_cgi json_proto POST (null) [04:52:20]execute_cgi path=json_proto method=POST [04:52:20]POST find Content-Length [04:52:20]Host: 172.17.33.3:8080 [04:52:20]Content-Length: 677 [04:52:20]Content-Type: application/json [04:52:20] [04:52:20]POST finish read [04:52:20]Found Content-Length = 677 [04:52:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347474", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.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" ] } } [04:52:20]execute_script... [04:52: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)347474", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.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" ] } } [04:52:20]POST & json_proto [04:52:20]process_json_proto [04:52:20]json parsed OK: [04:52:20]protocol is kg_v1.0 [04:52:20]action value=close_receipt [04:52:20]process_action close_receipt [04:52:20]cmd_close_receipt [04:52:20]MH_GetDate [04:52:20]Write to MH i2c: F0 00 00 A1 74 04 [04:52:20]Write i2c OK [04:52:20]MH_I2C_Read... [04:52:20]Read from MH i2c: F0 [04:52:20]MH_I2C_Read... [04:52:20]Read from MH i2c: F0 09 00 [04:52:20]MH_I2C_Read... [04:52:20]Read from MH i2c: F0 09 00 A1 74 00 0D 61 1B 66 23 5B 8F 65 6E [04:52:20]GetLastDocTimeStamp 1713066434 [04:52:20]current date 1713070349 [04:52:20]FM_GetShiftState [04:52:20]SAM_PROTO_GetShiftState [04:52:20]wFMCommunicate request_size=4 [04:52:20]MH_SAM_APDU [04:52:20]CAPDU: 80 13 01 00 [04:52:20]Write to MH i2c: E2 08 00 A2 74 80 13 01 00 00 00 00 00 93 [04:52:20]Write i2c OK [04:52:20]MH_I2C_Read... [04:52:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:52:20]Read from MH i2c: E2 [04:52:20]MH_I2C_Read... [04:52:20]Read from MH i2c: E2 0E 00 [04:52:20]MH_I2C_Read... [04:52:20]Read from MH i2c: E2 0E 00 A2 74 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 3F [04:52:20]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [04:52:20]wFMCommunicate OK [04:52:20]SAM_PROTO_GetShiftState done [04:52:20]FM_GetShiftState done [04:52:20]opened in 1713053951 [04:52:20]opened+sec_in_day 1713140351 [04:52:20]quantity*price = 50025 [04:52:20]sum+1 = 50026 [04:52: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 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 16 14.04.2024 04:52 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29106 ФПД: 155847988298380 1/tax-web-control/client/api/v1/ticket?date=20240414T045229&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29106&fm=155847988298380&tin=02508201610067®Number=0000138879044617&sum=50000 [04:52:22]StoreToDocumentArchive [04:52:22]shift 116 fd 29106 [04:52:22]save to /storage/0116/doc_00029106 [04:52:22]save last doc name /storage/0116/doc_00029106 to /storage/kkm_last_doc_name [04:52:22]save OK [04:52:22]Clear old archive folders... [04:52:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:52:22]tlvbuf is 011EE4E0 [04:52:22]SAM_PROTO_ClearQueue [04:52:22]wFMCommunicate request_size=4 [04:52:22]MH_SAM_APDU [04:52:22]CAPDU: 80 09 00 00 [04:52:22]Write to MH i2c: E2 08 00 AF 74 80 09 00 00 00 00 00 00 95 [04:52:22]Write i2c OK [04:52:22]MH_I2C_Read... [04:52:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:52:22]Read from MH i2c: E2 [04:52:22]MH_I2C_Read... [04:52:22]Read from MH i2c: E2 03 00 [04:52:22]MH_I2C_Read... [04:52:22]Read from MH i2c: E2 03 00 AF 74 00 90 00 97 [04:52:22]RAPDU: 90 00 [04:52:22]wFMCommunicate OK [04:52:22]SAM_PROTO_ClearQueue done [04:52:22]KKMCreateOFDPacket [04:52:22]OFDProtocolAddRootSTLVToBuf [04:52:22]FM_MakeSignedData [04:52:22]FM_MakeSignedData [04:52:22]SAM_PROTO_SignData [04:52:22]wFMCommunicate request_size=4 [04:52:22]MH_SAM_APDU [04:52:22]CAPDU: 80 0D 01 02 [04:52:22]Write to MH i2c: E2 08 00 B0 74 80 0D 01 02 00 00 00 00 9D [04:52:22]Write i2c OK [04:52:22]MH_I2C_Read... [04:52:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:52:22]Read from MH i2c: E2 [04:52:22]MH_I2C_Read... [04:52:22]Read from MH i2c: E2 03 00 [04:52:22]MH_I2C_Read... [04:52:22]Read from MH i2c: E2 03 00 B0 74 00 90 00 98 [04:52:22]RAPDU: 90 00 [04:52:22]wFMCommunicate OK [04:52:22]wFMCommunicate request_size=255 [04:52:22]MH_SAM_APDU [04:52: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 10 00 00 00 F4 03 04 00 0D 61 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B2 71 00 00 35 04 06 00 8D [04:52:22]Write to MH i2c: E2 02 01 B1 74 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 10 00 00 00 F4 03 04 00 0D 61 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B2 71 00 00 35 04 06 00 8D 00 00 82 [04:52:22]Write i2c OK [04:52:22]MH_I2C_Read... [04:52:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:52:22]Read from MH i2c: E2 [04:52:22]MH_I2C_Read... [04:52:22]Read from MH i2c: E2 03 00 [04:52:22]MH_I2C_Read... [04:52:22]Read from MH i2c: E2 03 00 B1 74 00 90 00 99 [04:52:22]RAPDU: 90 00 [04:52:22]wFMCommunicate OK [04:52:22]wFMCommunicate request_size=10 [04:52:22]MH_SAM_APDU [04:52:22]CAPDU: 80 0D 02 02 05 BE 2F FB 42 8C [04:52:22]Write to MH i2c: E2 0D 00 B2 74 80 0D 02 02 05 00 BE 2F FB 42 8C 00 00 60 [04:52:22]Write i2c OK [04:52:22]MH_I2C_Read... [04:52:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:52:22]Read from MH i2c: E2 [04:52:22]MH_I2C_Read... [04:52:22]Read from MH i2c: E2 03 00 [04:52:22]MH_I2C_Read... [04:52:22]Read from MH i2c: E2 03 00 B2 74 00 90 00 9A [04:52:22]RAPDU: 90 00 [04:52:22]wFMCommunicate OK [04:52:22]wFMCommunicate request_size=4 [04:52:22]MH_SAM_APDU [04:52:22]CAPDU: 80 0D 03 02 [04:52:22]Write to MH i2c: E2 08 00 B3 74 80 0D 03 02 00 00 00 00 A2 [04:52:22]Write i2c OK [04:52:22]MH_I2C_Read... [04:52:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:52:22]Read from MH i2c: E2 [04:52:22]MH_I2C_Read... [04:52:22]Read from MH i2c: E2 0B 00 [04:52:22]MH_I2C_Read... [04:52:22]Read from MH i2c: E2 0B 00 B3 74 00 81 F5 9F 62 03 7F 65 F4 90 00 F5 [04:52:22]RAPDU: 81 F5 9F 62 03 7F 65 F4 90 00 [04:52:22]wFMCommunicate OK [04:52:22]SAM_PROTO_SignData done [04:52:22]FM_MakeSignedData done [04:52:22]CreateOFDProtocolMessage [04:52:22]wFMCommunicate request_size=4 [04:52:22]MH_SAM_APDU [04:52:22]CAPDU: 80 11 00 00 [04:52:22]Write to MH i2c: E2 08 00 B4 74 80 11 00 00 00 00 00 00 A2 [04:52:22]Write i2c OK [04:52:22]MH_I2C_Read... [04:52:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:52:22]Read from MH i2c: E2 [04:52:22]MH_I2C_Read... [04:52:22]Read from MH i2c: E2 17 00 [04:52:22]MH_I2C_Read... [04:52:22]Read from MH i2c: E2 17 00 B4 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F1 [04:52:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [04:52:22]wFMCommunicate OK [04:52:22]CreateOFDProtocolMessage done [04:52:22]OFDSenderStorePacket 29106 [04:52:22]StoreOFDPacket docnum=29106 [04:52:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 F8 B9 07 01 B1 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 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 10 00 00 00 F4 03 04 00 0D 61 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B2 71 00 00 35 04 06 00 8D BE 2F FB 42 8C 81 F5 9F 62 03 7F 65 F4 [04:52:22]CheckFolder [04:52:22]dirname=/storage/ofd_packets [04:52:22]CheckFolder done [04:52:22]ProducePacketName [04:52:22]name=ofd_packets/00029106 [04:52:22]NVStorageSaveData ofd_packets/00029106 [04:52:22]File name is /storage/ofd_packets/00029106 [04:52:22]Write 301 bytes [04:52:22]NVStorageSaveData done [04:52:22]OFDSenderStorePacket done [04:52:22]KKMCreateOFDPacket done [04:52:22]NVStorageSaveData kkm_last_timestamp [04:52:22]File name is /storage/kkm_last_timestamp [04:52:22]Write 4 bytes [04:52:22]NVStorageSaveData done [04:52:22]ExternCall_PrintAddStr [04:52:22]wPrintStart [04:52:22]Write to MH i2c: 01 00 00 B5 74 29 [04:52:22]Write i2c OK [04:52:22]MH_I2C_Read... [04:52:22]Read from MH i2c: 01 [04:52:22]MH_I2C_Read... [04:52:22]Read from MH i2c: 01 07 00 [04:52:22]MH_I2C_Read... [04:52:22]Read from MH i2c: 01 07 00 B5 74 00 00 00 00 00 FF 0F 3E [04:52:22]RasterBufferAndPrint [04:52:22]line Счет N : (1)347474 [04:52:22]line ИНН: 02508201610067 [04:52:22]line Контрольно-Кассовый Чек [04:52:22]line ПРОДАЖА [04:52:22]line ТРК (МРК, ГНК) : 23 [04:52:22]line Товар: 2710124130 [04:52:22]line Аи-92-К-5 [04:52:22]line 7.780 * 64.30 [04:52:22]line = 500.25 [04:52:22]line НДС 12% НСП 1% [04:52:22]line > о реализуемом товаре [04:52:22]line ОКРУГЛЕНИЕ: -0.25 [04:52:22]line ИТОГО: 500.00 [04:52:22]line Внесено: 500.00 [04:52:22]line СДАЧА: 0.00 [04:52:22]line НСП 1% : 4.43 [04:52:22]line НДС 12% : 53.12 [04:52:22]line Наличными: 500.00 [04:52:22]line Безнал.: 0.00 [04:52:22]line Место: АЗС № 108 "Партнер Нефть" [04:52:22]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [04:52:22]line СНО: Общий режим [04:52:22]line Чек 16 14.04.2024 04:52 [04:52:22]line Смена: 116 ФФД: 1.0 [04:52:22]line ЗНМ: 0300000027 [04:52:22]line РНМ: 0000138879044617 [04:52:22]line Версия ККМ: 001 [04:52:22]line ФМ: 0000000000963154 [04:52:22]line ФД: 29106 [04:52:22]line ФПД: 155847988298380 [04:52:22]line 1/tax-web-control/client/api/v1/ticket?date=20240414T045229&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29106&fm=155847988298380&tin=02508201610067®Number=0000138879044617&sum=50000 [04:52:22]OFD Sender: Processing packet 29106 [packets to send 8, broken 7] [04:52:22]ProducePacketName [04:52:22]name=ofd_packets/00029106 [04:52:22]OFD Sender: To server: pG, [04:52:22]CommunicateWithHost lk.salyk.kg:30040 [04:52:22]ConnectInit lk.salyk.kg [04:52:22]written 0, free lines is 4095 [04:52:22]Connected sock=10 [04:52:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 F8 B9 07 01 B1 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 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 10 00 00 00 F4 03 04 00 0D 61 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B2 71 00 00 35 04 06 00 8D BE 2F FB 42 8C 81 F5 9F 62 03 7F 65 F4 [04:52:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 05 CF 47 00 AF 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B2 71 00 00 F4 03 04 00 B2 0B 1B 66 B6 04 01 00 00 D2 4A 8D 82 87 EE 91 AF [04:52:23]CommunicateWithHost err = 0 [04:52:23]CheckOFDResponse [04:52:23]1017 (14) - 77093643461234 [04:52:23]1041 (16) - 0000000000963154 [04:52:23]1040 (4) - 29106 [04:52:23]1012 (4) - 13.04.2024 22:48 [04:52:23]1206 (1) - 0 [04:52:23]OFD Sender: Remove packet 29106 [04:52:23]ProducePacketName [04:52:23]name=ofd_packets/00029106 [04:52:23]NVStorageDeleteData [04:52:23]Write to MH i2c: 01 00 00 DF 74 53 [04:52:23]Write i2c OK [04:52:23]MH_I2C_Read... [04:52:23]Read from MH i2c: 01 [04:52:23]MH_I2C_Read... [04:52:23]Read from MH i2c: 01 07 00 [04:52:23]MH_I2C_Read... [04:52:23]Read from MH i2c: 01 07 00 DF 74 00 00 00 00 00 C0 0C 26 [04:52:23]RasterBufferAndPrint [04:52:23]line [04:52:23]line [04:52:23]line [04:52:23]line [04:52:23]line [04:52:23]written 0, free lines is 3268 [04:52:23]MH_Cut [04:52:23]Write to MH i2c: D1 01 00 E6 74 01 2C [04:52:23]Write i2c OK [04:52:23]MH_I2C_Read... [04:52:23]Read from MH i2c: D1 [04:52:23]MH_I2C_Read... [04:52:23]Read from MH i2c: D1 01 00 [04:52:23]MH_I2C_Read... [04:52:23]Read from MH i2c: D1 01 00 E6 74 00 2B [04:52:23]Write to MH i2c: 01 00 00 E7 74 5B [04:52:23]Write i2c OK [04:52:23]MH_I2C_Read... [04:52:23]OFD Sender: No OFD packet to send [04:52:24]*** Cut start [04:52:24]*** Partial cut [04:52:24]*** CUTSNS_PIN = 1 [04:52:24]*** CUTSNS_PIN = 0 [04:52:24]*** Brake cut motor [04:52:24]Read from MH i2c: 01 [04:52:24]MH_I2C_Read... [04:52:24]*** Stop cut motor [04:52:24]*** Cut end [04:52:24]Read from MH i2c: 01 07 00 [04:52:24]MH_I2C_Read... [04:52:24]Read from MH i2c: 01 07 00 E7 74 00 00 00 00 00 FF 0F 70 [04:52:24]process_action close_receipt done [04:52:24]requested_data is exist [04:52:24]produce_requested_data [04:52:24]requested_item fm.sn is exist - process it [04:52:24]wFMCommunicate request_size=4 [04:52:24]MH_SAM_APDU [04:52:24]CAPDU: 80 11 00 00 [04:52:24]Write to MH i2c: E2 08 00 E8 74 80 11 00 00 00 00 00 00 D6 [04:52:24]Write i2c OK [04:52:24]MH_I2C_Read... [04:52:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:52:24]Read from MH i2c: E2 [04:52:24]MH_I2C_Read... [04:52:24]Read from MH i2c: E2 17 00 [04:52:24]MH_I2C_Read... [04:52:24]Read from MH i2c: E2 17 00 E8 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 25 [04:52:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [04:52:24]wFMCommunicate OK [04:52:24]requested_item fd.num is exist - process it [04:52:24]SAM_PROTO_GetFieldsCounters [04:52:24]wFMCommunicate request_size=4 [04:52:24]MH_SAM_APDU [04:52:24]CAPDU: 80 13 00 00 [04:52:24]Write to MH i2c: E2 08 00 E9 74 80 13 00 00 00 00 00 00 D9 [04:52:24]Write i2c OK [04:52:24]MH_I2C_Read... [04:52:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:52:24]Read from MH i2c: E2 [04:52:24]MH_I2C_Read... [04:52:24]Read from MH i2c: E2 62 00 [04:52:24]MH_I2C_Read... [04:52:24]Read from MH i2c: E2 62 00 E9 74 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B2 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 DE [04:52:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B2 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:52:24]wFMCommunicate OK [04:52:24]SAM_PROTO_GetFieldsCounters done [04:52:24]requested_item shift.num is exist - process it [04:52:24]requested_item shift.opened is exist - process it [04:52:24]req_shift_opened [04:52:24]FM_GetShiftState [04:52:24]SAM_PROTO_GetShiftState [04:52:24]wFMCommunicate request_size=4 [04:52:24]MH_SAM_APDU [04:52:24]CAPDU: 80 13 01 00 [04:52:24]Write to MH i2c: E2 08 00 EA 74 80 13 01 00 00 00 00 00 DB [04:52:24]Write i2c OK [04:52:24]MH_I2C_Read... [04:52:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:52:24]Read from MH i2c: E2 [04:52:24]MH_I2C_Read... [04:52:24]Read from MH i2c: E2 0E 00 [04:52:24]MH_I2C_Read... [04:52:24]Read from MH i2c: E2 0E 00 EA 74 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 87 [04:52:24]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [04:52:24]wFMCommunicate OK [04:52:24]SAM_PROTO_GetShiftState done [04:52:24]FM_GetShiftState done [04:52:24]req_shift_opened done [04:52:24]requested_item shift.open_date is exist - process it [04:52:24]req_shift_open_date [04:52:24]req_shift_open_date done [04:52:24]produce_requested_data done [04:52:24]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29106,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [04:52:24]process_action_free close_receipt [04:52:24]json_value_free [04:52:24]json_value_free done [04:52:24]process_json_proto returns [04:52:24]Send response to host [04:52:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29106,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [04:52:24]free response buf [04:52:25]execute_script done [04:52:25]execute_script returns [04:52:25]free content buf [04:52:25]Sock 9.Close socket [04:52:25]Sock 9.Thread stoped [04:52:28]OFD Sender: No OFD packet to send [04:52:33]OFD Sender: No OFD packet to send [04:52:38]OFD Sender: No OFD packet to send [04:52:43]OFD Sender: No OFD packet to send [04:52:48]OFD Sender: No OFD packet to send [04:52:53]OFD Sender: No OFD packet to send [04:52:58]OFD Sender: No OFD packet to send [04:53:03]OFD Sender: No OFD packet to send [04:53:08]OFD Sender: No OFD packet to send [04:53:13]OFD Sender: No OFD packet to send [04:53:18]OFD Sender: No OFD packet to send [04:53:23]OFD Sender: No OFD packet to send [04:53:28]OFD Sender: No OFD packet to send [04:53:33]OFD Sender: No OFD packet to send [04:53:38]OFD Sender: No OFD packet to send [04:53:43]OFD Sender: No OFD packet to send [04:53:48]OFD Sender: No OFD packet to send [04:53:53]OFD Sender: No OFD packet to send [04:53:58]OFD Sender: No OFD packet to send [04:54:03]OFD Sender: No OFD packet to send [04:54:08]OFD Sender: No OFD packet to send [04:54:13]OFD Sender: No OFD packet to send [04:54:18]OFD Sender: No OFD packet to send [04:54:23]OFD Sender: No OFD packet to send [04:54:28]OFD Sender: No OFD packet to send [04:54:33]OFD Sender: No OFD packet to send [04:54:38]OFD Sender: No OFD packet to send [04:54:43]OFD Sender: No OFD packet to send [04:54:48]OFD Sender: No OFD packet to send [04:54:53]OFD Sender: No OFD packet to send [04:54:58]accept exits with 7 [04:54:58]New connection [04:54:58]New thread 3066785124 created [04:54:58]Thread 3066928484 joined [04:54:58]Waiting for new connection... [04:54:58] Sock 7.Parse request [04:54:58]Sock 7.Check first char [04:54:58]Sock 7.First char is OK [04:54:58]request: POST /json_proto HTTP/1.0 [04:54:58]Method: POST [04:54:58]URL: /json_proto [04:54:58]Method is POST - this is cgi request [04:54:58]url: /json_proto [04:54:58]query_string will be loaded in cgi processing [04:54:58]execute_cgi json_proto POST (null) [04:54:58]execute_cgi path=json_proto method=POST [04:54:58]POST find Content-Length [04:54:58]Host: 172.17.33.3:8080 [04:54:58]Content-Length: 682 [04:54:58]Content-Type: application/json [04:54:58] [04:54:58]POST finish read [04:54:58]Found Content-Length = 682 [04:54:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347475", "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.800, "sum" : 1530.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1530.00, "total" : 1530.00, "payments": [ { "type": 0, "sum" : 1530.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:54:58]execute_script... [04: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)347475", "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.800, "sum" : 1530.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1530.00, "total" : 1530.00, "payments": [ { "type": 0, "sum" : 1530.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:54:58]POST & json_proto [04:54:58]process_json_proto [04:54:58]json parsed OK: [04:54:58]protocol is kg_v1.0 [04:54:58]action value=close_receipt [04:54:58]process_action close_receipt [04:54:58]cmd_close_receipt [04:54:58]MH_GetDate [04:54:58]Write to MH i2c: F0 00 00 EB 74 4E [04:54:58]Write i2c OK [04:54:58]MH_I2C_Read... [04:54:58]Read from MH i2c: F0 [04:54:58]MH_I2C_Read... [04:54:58]Read from MH i2c: F0 09 00 [04:54:58]MH_I2C_Read... [04:54:58]Read from MH i2c: F0 09 00 EB 74 00 AA 61 1B 66 23 5B 8F 65 55 [04:54:58]GetLastDocTimeStamp 1713070349 [04:54:58]current date 1713070506 [04:54:58]FM_GetShiftState [04:54:58]SAM_PROTO_GetShiftState [04:54:58]wFMCommunicate request_size=4 [04:54:58]MH_SAM_APDU [04:54:58]CAPDU: 80 13 01 00 [04:54:58]Write to MH i2c: E2 08 00 EC 74 80 13 01 00 00 00 00 00 DD [04:54:58]Write i2c OK [04:54:58]MH_I2C_Read... [04:54:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:54:58]Read from MH i2c: E2 [04:54:58]MH_I2C_Read... [04:54:58]Read from MH i2c: E2 0E 00 [04:54:58]MH_I2C_Read... [04:54:58]Read from MH i2c: E2 0E 00 EC 74 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 89 [04:54:58]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [04:54:58]wFMCommunicate OK [04:54:58]SAM_PROTO_GetShiftState done [04:54:58]FM_GetShiftState done [04:54:58]opened in 1713053951 [04:54:58]opened+sec_in_day 1713140351 [04:54:58]quantity*price = 153034 [04:54:58]sum+1 = 153035 [04:54:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 1530.00 Внесено: 1530.00 СДАЧА: 0.00 НСП 1% : 13.54 НДС 12% : 162.51 Наличными: 1530.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 17 14.04.2024 04:55 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29107 ФПД: 186128604549683 1/tax-web-control/client/api/v1/ticket?date=20240414T045506&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29107&fm=186128604549683&tin=02508201610067®Number=0000138879044617&sum=153000 [04:54:59]StoreToDocumentArchive [04:54:59]shift 116 fd 29107 [04:54:59]save to /storage/0116/doc_00029107 [04:54:59]save last doc name /storage/0116/doc_00029107 to /storage/kkm_last_doc_name [04:54:59]save OK [04:54:59]Clear old archive folders... [04:54:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:54:59]tlvbuf is 012C10F0 [04:54:59]SAM_PROTO_ClearQueue [04:54:59]wFMCommunicate request_size=4 [04:54:59]MH_SAM_APDU [04:54:59]CAPDU: 80 09 00 00 [04:54:59]Write to MH i2c: E2 08 00 F9 74 80 09 00 00 00 00 00 00 DF [04:54:59]Write i2c OK [04:54:59]MH_I2C_Read... [04:54:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:54:59]Read from MH i2c: E2 [04:54:59]MH_I2C_Read... [04:54:59]Read from MH i2c: E2 03 00 [04:54:59]MH_I2C_Read... [04:54:59]Read from MH i2c: E2 03 00 F9 74 00 90 00 E1 [04:54:59]RAPDU: 90 00 [04:54:59]wFMCommunicate OK [04:54:59]SAM_PROTO_ClearQueue done [04:54:59]KKMCreateOFDPacket [04:54:59]OFDProtocolAddRootSTLVToBuf [04:54:59]FM_MakeSignedData [04:54:59]FM_MakeSignedData [04:54:59]SAM_PROTO_SignData [04:54:59]wFMCommunicate request_size=4 [04:54:59]MH_SAM_APDU [04:54:59]CAPDU: 80 0D 01 02 [04:54:59]Write to MH i2c: E2 08 00 FA 74 80 0D 01 02 00 00 00 00 E7 [04:54:59]Write i2c OK [04:54:59]MH_I2C_Read... [04:54:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:54:59]Read from MH i2c: E2 [04:54:59]MH_I2C_Read... [04:54:59]Read from MH i2c: E2 03 00 [04:54:59]MH_I2C_Read... [04:54:59]Read from MH i2c: E2 03 00 FA 74 00 90 00 E2 [04:54:59]RAPDU: 90 00 [04:54:59]wFMCommunicate OK [04:54:59]wFMCommunicate request_size=255 [04:54:59]MH_SAM_APDU [04: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 F8 5C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 CA 55 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 55 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4A 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 3F 00 00 00 00 07 04 06 00 A8 55 02 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 AA 61 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B3 71 00 00 35 04 06 00 A9 [04:54:59]Write to MH i2c: E2 02 01 FB 74 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 5C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 CA 55 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 55 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4A 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 3F 00 00 00 00 07 04 06 00 A8 55 02 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 AA 61 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B3 71 00 00 35 04 06 00 A9 00 00 9F [04:54:59]Write i2c OK [04:54:59]MH_I2C_Read... [04:54:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:54:59]Read from MH i2c: E2 [04:54:59]MH_I2C_Read... [04:54:59]Read from MH i2c: E2 03 00 [04:54:59]MH_I2C_Read... [04:54:59]Read from MH i2c: E2 03 00 FB 74 00 90 00 E3 [04:54:59]RAPDU: 90 00 [04:54:59]wFMCommunicate OK [04:54:59]wFMCommunicate request_size=10 [04:54:59]MH_SAM_APDU [04:54:59]CAPDU: 80 0D 02 02 05 48 71 5B 52 33 [04:54:59]Write to MH i2c: E2 0D 00 FC 74 80 0D 02 02 05 00 48 71 5B 52 33 00 00 8D [04:54:59]Write i2c OK [04:54:59]MH_I2C_Read... [04:54:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:54:59]Read from MH i2c: E2 [04:54:59]MH_I2C_Read... [04:54:59]Read from MH i2c: E2 03 00 [04:54:59]MH_I2C_Read... [04:54:59]Read from MH i2c: E2 03 00 FC 74 00 90 00 E4 [04:54:59]RAPDU: 90 00 [04:54:59]wFMCommunicate OK [04:54:59]wFMCommunicate request_size=4 [04:54:59]MH_SAM_APDU [04:54:59]CAPDU: 80 0D 03 02 [04:54:59]Write to MH i2c: E2 08 00 FD 74 80 0D 03 02 00 00 00 00 EC [04:54:59]Write i2c OK [04:54:59]MH_I2C_Read... [04:54:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:54:59]Read from MH i2c: E2 [04:54:59]MH_I2C_Read... [04:54:59]Read from MH i2c: E2 0B 00 [04:54:59]MH_I2C_Read... [04:54:59]Read from MH i2c: E2 0B 00 FD 74 00 D1 51 56 28 CF 7E 71 47 90 00 92 [04:54:59]RAPDU: D1 51 56 28 CF 7E 71 47 90 00 [04:54:59]wFMCommunicate OK [04:54:59]SAM_PROTO_SignData done [04:54:59]FM_MakeSignedData done [04:54:59]CreateOFDProtocolMessage [04:54:59]wFMCommunicate request_size=4 [04:54:59]MH_SAM_APDU [04:54:59]CAPDU: 80 11 00 00 [04:54:59]Write to MH i2c: E2 08 00 FE 74 80 11 00 00 00 00 00 00 EC [04:54:59]Write i2c OK [04:54:59]MH_I2C_Read... [04:55:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:55:00]Read from MH i2c: E2 [04:55:00]MH_I2C_Read... [04:55:00]Read from MH i2c: E2 17 00 [04:55:00]MH_I2C_Read... [04:55:00]Read from MH i2c: E2 17 00 FE 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 3B [04:55:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [04:55:00]wFMCommunicate OK [04:55:00]CreateOFDProtocolMessage done [04:55:00]OFDSenderStorePacket 29107 [04:55:00]StoreOFDPacket docnum=29107 [04:55:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 69 90 07 01 EC 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 5C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 CA 55 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 55 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4A 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 3F 00 00 00 00 07 04 06 00 A8 55 02 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 AA 61 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B3 71 00 00 35 04 06 00 A9 48 71 5B 52 33 D1 51 56 28 CF 7E 71 47 [04:55:00]CheckFolder [04:55:00]dirname=/storage/ofd_packets [04:55:00]CheckFolder done [04:55:00]ProducePacketName [04:55:00]name=ofd_packets/00029107 [04:55:00]NVStorageSaveData ofd_packets/00029107 [04:55:00]File name is /storage/ofd_packets/00029107 [04:55:00]Write 301 bytes [04:55:00]NVStorageSaveData done [04:55:00]OFDSenderStorePacket done [04:55:00]KKMCreateOFDPacket done [04:55:00]NVStorageSaveData kkm_last_timestamp [04:55:00]File name is /storage/kkm_last_timestamp [04:55:00]Write 4 bytes [04:55:00]NVStorageSaveData done [04:55:00]ExternCall_PrintAddStr [04:55:00]wPrintStart [04:55:00]Write to MH i2c: 01 00 00 FF 74 73 [04:55:00]Write i2c OK [04:55:00]MH_I2C_Read... [04:55:00]Read from MH i2c: 01 [04:55:00]MH_I2C_Read... [04:55:00]Read from MH i2c: 01 07 00 [04:55:00]MH_I2C_Read... [04:55:00]Read from MH i2c: 01 07 00 FF 74 00 00 00 00 00 FF 0F 88 [04:55:00]RasterBufferAndPrint [04:55:00]line Счет N : (1)347475 [04:55:00]line ИНН: 02508201610067 [04:55:00]line Контрольно-Кассовый Чек [04:55:00]line ПРОДАЖА [04:55:00]line ТРК (МРК, ГНК) : 42 [04:55:00]line Товар: 2710124130 [04:55:00]line Аи-92-К-5 [04:55:00]line 23.800 * 64.30 [04:55:00]line = 1530.34 [04:55:00]line НДС 12% НСП 1% [04:55:00]line > о реализуемом товаре [04:55:00]line ОКРУГЛЕНИЕ: -0.34 [04:55:00]line ИТОГО: 1530.00 [04:55:00]line Внесено: 1530.00 [04:55:00]line СДАЧА: 0.00 [04:55:00]line НСП 1% : 13.54 [04:55:00]line НДС 12% : 162.51 [04:55:00]line Наличными: 1530.00 [04:55:00]line Безнал.: 0.00 [04:55:00]line Место: АЗС № 108 "Партнер Нефть" [04:55:00]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [04:55:00]line СНО: Общий режим [04:55:00]line Чек 17 14.04.2024 04:55 [04:55:00]line Смена: 116 ФФД: 1.0 [04:55:00]line ЗНМ: 0300000027 [04:55:00]line РНМ: 0000138879044617 [04:55:00]line Версия ККМ: 001 [04:55:00]line ФМ: 0000000000963154 [04:55:00]line ФД: 29107 [04:55:00]line ФПД: 186128604549683 [04:55:00]line 1/tax-web-control/client/api/v1/ticket?date=20240414T045506&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29107&fm=186128604549683&tin=02508201610067®Number=0000138879044617&sum=153000 [04:55:00]OFD Sender: Processing packet 29107 [packets to send 8, broken 7] [04:55:00]ProducePacketName [04:55:00]name=ofd_packets/00029107 [04:55:00]OFD Sender: To server: pG, [04:55:00]CommunicateWithHost lk.salyk.kg:30040 [04:55:00]ConnectInit lk.salyk.kg [04:55:00]written 0, free lines is 4095 [04:55:00]Connected sock=10 [04:55:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 69 90 07 01 EC 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 5C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 CA 55 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 55 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4A 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 3F 00 00 00 00 07 04 06 00 A8 55 02 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 AA 61 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B3 71 00 00 35 04 06 00 A9 48 71 5B 52 33 D1 51 56 28 CF 7E 71 47 [04:55:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 87 E8 47 00 D7 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 39 36 33 31 35 34 10 04 04 00 B3 71 00 00 F4 03 04 00 4F 0C 1B 66 B6 04 01 00 00 5E B8 48 39 EC 76 87 D3 [04:55:00]CommunicateWithHost err = 0 [04:55:00]CheckOFDResponse [04:55:00]1017 (14) - 77093643461234 [04:55:00]1041 (16) - 0000000000963154 [04:55:00]1040 (4) - 29107 [04:55:00]1012 (4) - 13.04.2024 22:50 [04:55:00]1206 (1) - 0 [04:55:00]OFD Sender: Remove packet 29107 [04:55:00]ProducePacketName [04:55:00]name=ofd_packets/00029107 [04:55:00]NVStorageDeleteData [04:55:00]Write to MH i2c: 01 00 00 29 75 9E [04:55:00]Write i2c OK [04:55:00]MH_I2C_Read... [04:55:00]Read from MH i2c: 01 [04:55:00]MH_I2C_Read... [04:55:00]Read from MH i2c: 01 07 00 [04:55:00]MH_I2C_Read... [04:55:00]Read from MH i2c: 01 07 00 29 75 00 00 00 00 00 BE 0C 6F [04:55:00]RasterBufferAndPrint [04:55:00]line [04:55:00]line [04:55:00]line [04:55:00]line [04:55:00]line [04:55:00]written 0, free lines is 3267 [04:55:00]MH_Cut [04:55:00]Write to MH i2c: D1 01 00 30 75 01 77 [04:55:00]Write i2c OK [04:55:00]MH_I2C_Read... [04:55:00]Read from MH i2c: D1 [04:55:00]MH_I2C_Read... [04:55:00]Read from MH i2c: D1 01 00 [04:55:00]MH_I2C_Read... [04:55:00]Read from MH i2c: D1 01 00 30 75 00 76 [04:55:00]Write to MH i2c: 01 00 00 31 75 A6 [04:55:00]Write i2c OK [04:55:00]MH_I2C_Read... [04:55:01]OFD Sender: No OFD packet to send [04:55:01]*** Cut start [04:55:01]*** Partial cut [04:55:01]*** CUTSNS_PIN = 1 [04:55:01]*** CUTSNS_PIN = 0 [04:55:01]*** Brake cut motor [04:55:02]Read from MH i2c: 01 [04:55:02]MH_I2C_Read... [04:55:02]*** Stop cut motor [04:55:02]*** Cut end [04:55:02]Read from MH i2c: 01 07 00 [04:55:02]MH_I2C_Read... [04:55:02]Read from MH i2c: 01 07 00 31 75 00 00 00 00 00 FF 0F BB [04:55:02]process_action close_receipt done [04:55:02]requested_data is exist [04:55:02]produce_requested_data [04:55:02]requested_item fm.sn is exist - process it [04:55:02]wFMCommunicate request_size=4 [04:55:02]MH_SAM_APDU [04:55:02]CAPDU: 80 11 00 00 [04:55:02]Write to MH i2c: E2 08 00 32 75 80 11 00 00 00 00 00 00 21 [04:55:02]Write i2c OK [04:55:02]MH_I2C_Read... [04:55:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:55:02]Read from MH i2c: E2 [04:55:02]MH_I2C_Read... [04:55:02]Read from MH i2c: E2 17 00 [04:55:02]MH_I2C_Read... [04:55:02]Read from MH i2c: E2 17 00 32 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 70 [04:55:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [04:55:02]wFMCommunicate OK [04:55:02]requested_item fd.num is exist - process it [04:55:02]SAM_PROTO_GetFieldsCounters [04:55:02]wFMCommunicate request_size=4 [04:55:02]MH_SAM_APDU [04:55:02]CAPDU: 80 13 00 00 [04:55:02]Write to MH i2c: E2 08 00 33 75 80 13 00 00 00 00 00 00 24 [04:55:02]Write i2c OK [04:55:02]MH_I2C_Read... [04:55:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:55:02]Read from MH i2c: E2 [04:55:02]MH_I2C_Read... [04:55:02]Read from MH i2c: E2 62 00 [04:55:02]MH_I2C_Read... [04:55:02]Read from MH i2c: E2 62 00 33 75 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B3 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 2D [04:55:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B3 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:55:02]wFMCommunicate OK [04:55:02]SAM_PROTO_GetFieldsCounters done [04:55:02]requested_item shift.num is exist - process it [04:55:02]requested_item shift.opened is exist - process it [04:55:02]req_shift_opened [04:55:02]FM_GetShiftState [04:55:02]SAM_PROTO_GetShiftState [04:55:02]wFMCommunicate request_size=4 [04:55:02]MH_SAM_APDU [04:55:02]CAPDU: 80 13 01 00 [04:55:02]Write to MH i2c: E2 08 00 34 75 80 13 01 00 00 00 00 00 26 [04:55:02]Write i2c OK [04:55:02]MH_I2C_Read... [04:55:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:55:02]Read from MH i2c: E2 [04:55:02]MH_I2C_Read... [04:55:02]Read from MH i2c: E2 0E 00 [04:55:02]MH_I2C_Read... [04:55:02]Read from MH i2c: E2 0E 00 34 75 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 D2 [04:55:02]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [04:55:02]wFMCommunicate OK [04:55:02]SAM_PROTO_GetShiftState done [04:55:02]FM_GetShiftState done [04:55:02]req_shift_opened done [04:55:02]requested_item shift.open_date is exist - process it [04:55:02]req_shift_open_date [04:55:02]req_shift_open_date done [04:55:02]produce_requested_data done [04:55:02]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29107,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [04:55:02]process_action_free close_receipt [04:55:02]json_value_free [04:55:02]json_value_free done [04:55:02]process_json_proto returns [04:55:02]Send response to host [04:55:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29107,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [04:55:02]free response buf [04:55:02]execute_script done [04:55:02]execute_script returns [04:55:02]free content buf [04:55:02]Sock 7.Close socket [04:55:02]Sock 7.Thread stoped [04:55:06]OFD Sender: No OFD packet to send [04:55:11]OFD Sender: No OFD packet to send [04:55:16]OFD Sender: No OFD packet to send [04:55:21]OFD Sender: No OFD packet to send [04:55:26]OFD Sender: No OFD packet to send [04:55:31]OFD Sender: No OFD packet to send [04:55:36]OFD Sender: No OFD packet to send [04:55:41]OFD Sender: No OFD packet to send [04:55:46]OFD Sender: No OFD packet to send [04:55:51]OFD Sender: No OFD packet to send [04:55:56]OFD Sender: No OFD packet to send [04:56:01]OFD Sender: No OFD packet to send [04:56:06]OFD Sender: No OFD packet to send [04:56:11]OFD Sender: No OFD packet to send [04:56:16]OFD Sender: No OFD packet to send [04:56:21]OFD Sender: No OFD packet to send [04:56:26]OFD Sender: No OFD packet to send [04:56:31]OFD Sender: No OFD packet to send [04:56:36]OFD Sender: No OFD packet to send [04:56:41]OFD Sender: No OFD packet to send [04:56:46]OFD Sender: No OFD packet to send [04:56:51]OFD Sender: No OFD packet to send [04:56:56]OFD Sender: No OFD packet to send [04:57:01]OFD Sender: No OFD packet to send [04:57:06]OFD Sender: No OFD packet to send [04:57:11]OFD Sender: No OFD packet to send [04:57:16]OFD Sender: No OFD packet to send [04:57:21]OFD Sender: No OFD packet to send [04:57:26]OFD Sender: No OFD packet to send [04:57:31]OFD Sender: No OFD packet to send [04:57:36]OFD Sender: No OFD packet to send [04:57:41]OFD Sender: No OFD packet to send [04:57:46]OFD Sender: No OFD packet to send [04:57:51]OFD Sender: No OFD packet to send [04:57:56]OFD Sender: No OFD packet to send [04:58:01]OFD Sender: No OFD packet to send [04:58:06]OFD Sender: No OFD packet to send [04:58:11]OFD Sender: No OFD packet to send [04:58:16]OFD Sender: No OFD packet to send [04:58:21]OFD Sender: No OFD packet to send [04:58:26]OFD Sender: No OFD packet to send [04:58:31]OFD Sender: No OFD packet to send [04:58:36]OFD Sender: No OFD packet to send [04:58:41]OFD Sender: No OFD packet to send [04:58:46]OFD Sender: No OFD packet to send [04:58:51]OFD Sender: No OFD packet to send [04:58:56]OFD Sender: No OFD packet to send [04:59:01]OFD Sender: No OFD packet to send [04:59:06]OFD Sender: No OFD packet to send [04:59:11]OFD Sender: No OFD packet to send [04:59:16]OFD Sender: No OFD packet to send [04:59:21]OFD Sender: No OFD packet to send [04:59:26]OFD Sender: No OFD packet to send [04:59:31]OFD Sender: No OFD packet to send [04:59:36]OFD Sender: No OFD packet to send [04:59:41]OFD Sender: No OFD packet to send [04:59:46]OFD Sender: No OFD packet to send [04:59:51]OFD Sender: No OFD packet to send [04:59:56]OFD Sender: No OFD packet to send [05:00:01]OFD Sender: No OFD packet to send [05:00:06]OFD Sender: No OFD packet to send [05:00:11]OFD Sender: No OFD packet to send [05:00:16]OFD Sender: No OFD packet to send [05:00:21]OFD Sender: No OFD packet to send [05:00:26]OFD Sender: No OFD packet to send [05:00:31]OFD Sender: No OFD packet to send [05:00:36]OFD Sender: No OFD packet to send [05:00:41]OFD Sender: No OFD packet to send [05:00:46]OFD Sender: No OFD packet to send [05:00:51]OFD Sender: No OFD packet to send [05:00:56]OFD Sender: No OFD packet to send [05:01:01]OFD Sender: No OFD packet to send [05:01:06]OFD Sender: No OFD packet to send [05:01:11]OFD Sender: No OFD packet to send [05:01:16]OFD Sender: No OFD packet to send [05:01:21]OFD Sender: No OFD packet to send [05:01:26]OFD Sender: No OFD packet to send [05:01:31]OFD Sender: No OFD packet to send [05:01:36]OFD Sender: No OFD packet to send [05:01:41]OFD Sender: No OFD packet to send [05:01:46]OFD Sender: No OFD packet to send [05:01:51]OFD Sender: No OFD packet to send [05:01:56]OFD Sender: No OFD packet to send [05:02:01]OFD Sender: No OFD packet to send [05:02:06]OFD Sender: No OFD packet to send [05:02:11]OFD Sender: No OFD packet to send [05:02:16]OFD Sender: No OFD packet to send [05:02:21]OFD Sender: No OFD packet to send [05:02:26]OFD Sender: No OFD packet to send [05:02:31]OFD Sender: No OFD packet to send [05:02:36]OFD Sender: No OFD packet to send [05:02:41]OFD Sender: No OFD packet to send [05:02:46]OFD Sender: No OFD packet to send [05:02:51]OFD Sender: No OFD packet to send [05:02:56]OFD Sender: No OFD packet to send [05:03:01]OFD Sender: No OFD packet to send [05:03:06]OFD Sender: No OFD packet to send [05:03:11]OFD Sender: No OFD packet to send [05:03:16]OFD Sender: No OFD packet to send [05:03:21]OFD Sender: No OFD packet to send [05:03:26]OFD Sender: No OFD packet to send [05:03:31]OFD Sender: No OFD packet to send [05:03:36]OFD Sender: No OFD packet to send [05:03:41]OFD Sender: No OFD packet to send [05:03:46]OFD Sender: No OFD packet to send [05:03:49]accept exits with 9 [05:03:49]New connection [05:03:49]New thread 3066928484 created [05:03:49]Thread 3066785124 joined [05:03:49]Waiting for new connection... [05:03:49] Sock 9.Parse request [05:03:49]Sock 9.Check first char [05:03:49]Sock 9.First char is OK [05:03:49]request: POST /json_proto HTTP/1.0 [05:03:49]Method: POST [05:03:49]URL: /json_proto [05:03:49]Method is POST - this is cgi request [05:03:49]url: /json_proto [05:03:49]query_string will be loaded in cgi processing [05:03:49]execute_cgi json_proto POST (null) [05:03:49]execute_cgi path=json_proto method=POST [05:03:49]POST find Content-Length [05:03:49]Host: 172.17.33.3:8080 [05:03:49]Content-Length: 682 [05:03:49]Content-Type: application/json [05:03:49] [05:03:49]POST finish read [05:03:49]Found Content-Length = 682 [05:03:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347476", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.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" ] } } [05:03:49]execute_script... [05:03: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)347476", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.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" ] } } [05:03:49]POST & json_proto [05:03:49]process_json_proto [05:03:49]json parsed OK: [05:03:49]protocol is kg_v1.0 [05:03:49]action value=close_receipt [05:03:49]process_action close_receipt [05:03:49]cmd_close_receipt [05:03:49]MH_GetDate [05:03:49]Write to MH i2c: F0 00 00 35 75 99 [05:03:49]Write i2c OK [05:03:49]MH_I2C_Read... [05:03:49]Read from MH i2c: F0 [05:03:49]MH_I2C_Read... [05:03:49]Read from MH i2c: F0 09 00 [05:03:49]MH_I2C_Read... [05:03:49]Read from MH i2c: F0 09 00 35 75 00 BD 63 1B 66 23 5B 8F 65 B5 [05:03:49]GetLastDocTimeStamp 1713070506 [05:03:49]current date 1713071037 [05:03:49]FM_GetShiftState [05:03:49]SAM_PROTO_GetShiftState [05:03:49]wFMCommunicate request_size=4 [05:03:49]MH_SAM_APDU [05:03:49]CAPDU: 80 13 01 00 [05:03:49]Write to MH i2c: E2 08 00 36 75 80 13 01 00 00 00 00 00 28 [05:03:49]Write i2c OK [05:03:49]MH_I2C_Read... [05:03:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:03:49]Read from MH i2c: E2 [05:03:49]MH_I2C_Read... [05:03:49]Read from MH i2c: E2 0E 00 [05:03:49]MH_I2C_Read... [05:03:49]Read from MH i2c: E2 0E 00 36 75 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 D4 [05:03:49]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [05:03:49]wFMCommunicate OK [05:03:49]SAM_PROTO_GetShiftState done [05:03:49]FM_GetShiftState done [05:03:49]opened in 1713053951 [05:03:49]opened+sec_in_day 1713140351 [05:03:49]quantity*price = 100050 [05:03:49]sum+1 = 100051 [05:03:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 18 14.04.2024 05:03 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29108 ФПД: 211631457727593 1/tax-web-control/client/api/v1/ticket?date=20240414T050357&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29108&fm=211631457727593&tin=02508201610067®Number=0000138879044617&sum=100000 [05:03:50]StoreToDocumentArchive [05:03:50]shift 116 fd 29108 [05:03:50]save to /storage/0116/doc_00029108 [05:03:50]save last doc name /storage/0116/doc_00029108 to /storage/kkm_last_doc_name [05:03:50]save OK [05:03:50]Clear old archive folders... [05:03:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:03:50]tlvbuf is 011D79C0 [05:03:50]SAM_PROTO_ClearQueue [05:03:50]wFMCommunicate request_size=4 [05:03:50]MH_SAM_APDU [05:03:50]CAPDU: 80 09 00 00 [05:03:50]Write to MH i2c: E2 08 00 43 75 80 09 00 00 00 00 00 00 2A [05:03:50]Write i2c OK [05:03:50]MH_I2C_Read... [05:03:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:03:50]Read from MH i2c: E2 [05:03:50]MH_I2C_Read... [05:03:50]Read from MH i2c: E2 03 00 [05:03:50]MH_I2C_Read... [05:03:50]Read from MH i2c: E2 03 00 43 75 00 90 00 2C [05:03:50]RAPDU: 90 00 [05:03:50]wFMCommunicate OK [05:03:50]SAM_PROTO_ClearQueue done [05:03:50]KKMCreateOFDPacket [05:03:50]OFDProtocolAddRootSTLVToBuf [05:03:50]FM_MakeSignedData [05:03:50]FM_MakeSignedData [05:03:50]SAM_PROTO_SignData [05:03:50]wFMCommunicate request_size=4 [05:03:50]MH_SAM_APDU [05:03:50]CAPDU: 80 0D 01 02 [05:03:50]Write to MH i2c: E2 08 00 44 75 80 0D 01 02 00 00 00 00 32 [05:03:50]Write i2c OK [05:03:50]MH_I2C_Read... [05:03:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:03:50]Read from MH i2c: E2 [05:03:50]MH_I2C_Read... [05:03:50]Read from MH i2c: E2 03 00 [05:03:50]MH_I2C_Read... [05:03:50]Read from MH i2c: E2 03 00 44 75 00 90 00 2D [05:03:50]RAPDU: 90 00 [05:03:50]wFMCommunicate OK [05:03:50]wFMCommunicate request_size=255 [05:03:50]MH_SAM_APDU [05:03: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 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 12 00 00 00 F4 03 04 00 BD 63 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B4 71 00 00 35 04 06 00 C0 [05:03:50]Write to MH i2c: E2 02 01 45 75 80 0D 02 02 FA 00 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 12 00 00 00 F4 03 04 00 BD 63 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B4 71 00 00 35 04 06 00 C0 00 00 BD [05:03:50]Write i2c OK [05:03:50]MH_I2C_Read... [05:03:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:03:51]Read from MH i2c: E2 [05:03:51]MH_I2C_Read... [05:03:51]Read from MH i2c: E2 03 00 [05:03:51]MH_I2C_Read... [05:03:51]Read from MH i2c: E2 03 00 45 75 00 90 00 2E [05:03:51]RAPDU: 90 00 [05:03:51]wFMCommunicate OK [05:03:51]wFMCommunicate request_size=10 [05:03:51]MH_SAM_APDU [05:03:51]CAPDU: 80 0D 02 02 05 7A 49 DC 74 69 [05:03:51]Write to MH i2c: E2 0D 00 46 75 80 0D 02 02 05 00 7A 49 DC 74 69 00 00 BB [05:03:51]Write i2c OK [05:03:51]MH_I2C_Read... [05:03:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:03:51]Read from MH i2c: E2 [05:03:51]MH_I2C_Read... [05:03:51]Read from MH i2c: E2 03 00 [05:03:51]MH_I2C_Read... [05:03:51]Read from MH i2c: E2 03 00 46 75 00 90 00 2F [05:03:51]RAPDU: 90 00 [05:03:51]wFMCommunicate OK [05:03:51]wFMCommunicate request_size=4 [05:03:51]MH_SAM_APDU [05:03:51]CAPDU: 80 0D 03 02 [05:03:51]Write to MH i2c: E2 08 00 47 75 80 0D 03 02 00 00 00 00 37 [05:03:51]Write i2c OK [05:03:51]MH_I2C_Read... [05:03:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:03:51]Read from MH i2c: E2 [05:03:51]MH_I2C_Read... [05:03:51]Read from MH i2c: E2 0B 00 [05:03:51]MH_I2C_Read... [05:03:51]Read from MH i2c: E2 0B 00 47 75 00 3C 9F A0 A8 61 C2 CB 15 90 00 5E [05:03:51]RAPDU: 3C 9F A0 A8 61 C2 CB 15 90 00 [05:03:51]wFMCommunicate OK [05:03:51]SAM_PROTO_SignData done [05:03:51]FM_MakeSignedData done [05:03:51]CreateOFDProtocolMessage [05:03:51]wFMCommunicate request_size=4 [05:03:51]MH_SAM_APDU [05:03:51]CAPDU: 80 11 00 00 [05:03:51]Write to MH i2c: E2 08 00 48 75 80 11 00 00 00 00 00 00 37 [05:03:51]Write i2c OK [05:03:51]MH_I2C_Read... [05:03:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:03:51]Read from MH i2c: E2 [05:03:51]MH_I2C_Read... [05:03:51]Read from MH i2c: E2 17 00 [05:03:51]MH_I2C_Read... [05:03:51]Read from MH i2c: E2 17 00 48 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 86 [05:03:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [05:03:51]wFMCommunicate OK [05:03:51]CreateOFDProtocolMessage done [05:03:51]OFDSenderStorePacket 29108 [05:03:51]StoreOFDPacket docnum=29108 [05:03:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 D0 04 07 01 F2 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 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 12 00 00 00 F4 03 04 00 BD 63 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B4 71 00 00 35 04 06 00 C0 7A 49 DC 74 69 3C 9F A0 A8 61 C2 CB 15 [05:03:51]CheckFolder [05:03:51]dirname=/storage/ofd_packets [05:03:51]CheckFolder done [05:03:51]ProducePacketName [05:03:51]name=ofd_packets/00029108 [05:03:51]NVStorageSaveData ofd_packets/00029108 [05:03:51]File name is /storage/ofd_packets/00029108 [05:03:51]Write 301 bytes [05:03:51]NVStorageSaveData done [05:03:51]OFDSenderStorePacket done [05:03:51]KKMCreateOFDPacket done [05:03:51]NVStorageSaveData kkm_last_timestamp [05:03:51]File name is /storage/kkm_last_timestamp [05:03:51]Write 4 bytes [05:03:51]NVStorageSaveData done [05:03:51]ExternCall_PrintAddStr [05:03:51]wPrintStart [05:03:51]Write to MH i2c: 01 00 00 49 75 BE [05:03:51]OFD Sender: Processing packet 29108 [packets to send 8, broken 7] [05:03:51]ProducePacketName [05:03:51]name=ofd_packets/00029108 [05:03:51]OFD Sender: To server: pG, [05:03:51]CommunicateWithHost lk.salyk.kg:30040 [05:03:51]ConnectInit lk.salyk.kg [05:03:51]Write i2c OK [05:03:51]MH_I2C_Read... [05:03:51]Read from MH i2c: 01 [05:03:51]MH_I2C_Read... [05:03:51]Read from MH i2c: 01 07 00 [05:03:51]MH_I2C_Read... [05:03:51]Read from MH i2c: 01 07 00 49 75 00 00 00 00 00 FF 0F D3 [05:03:51]RasterBufferAndPrint [05:03:51]line Счет N : (1)347476 [05:03:51]line ИНН: 02508201610067 [05:03:51]line Контрольно-Кассовый Чек [05:03:51]line ПРОДАЖА [05:03:51]line ТРК (МРК, ГНК) : 33 [05:03:51]line Товар: 2710124500 [05:03:51]line Аи-95-К-5 [05:03:51]line 13.800 * 72.50 [05:03:51]line = 1000.50 [05:03:51]line НДС 12% НСП 1% [05:03:51]line > о реализуемом товаре [05:03:51]line ОКРУГЛЕНИЕ: -0.50 [05:03:51]line ИТОГО: 1000.00 [05:03:51]line Внесено: 1000.00 [05:03:51]line СДАЧА: 0.00 [05:03:51]line НСП 1% : 8.85 [05:03:51]line НДС 12% : 106.25 [05:03:51]line Наличными: 1000.00 [05:03:51]line Безнал.: 0.00 [05:03:51]line Место: АЗС № 108 "Партнер Нефть" [05:03:51]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [05:03:51]line СНО: Общий режим [05:03:51]line Чек 18 14.04.2024 05:03 [05:03:51]line Смена: 116 ФФД: 1.0 [05:03:51]line ЗНМ: 0300000027 [05:03:51]line РНМ: 0000138879044617 [05:03:51]line Версия ККМ: 001 [05:03:51]line ФМ: 0000000000963154 [05:03:51]line ФД: 29108 [05:03:51]line ФПД: 211631457727593 [05:03:51]line 1/tax-web-control/client/api/v1/ticket?date=20240414T050357&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29108&fm=211631457727593&tin=02508201610067®Number=0000138879044617&sum=100000 [05:03:51]written 0, free lines is 4095 [05:03:51]Connected sock=10 [05:03:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 D0 04 07 01 F2 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 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 12 00 00 00 F4 03 04 00 BD 63 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B4 71 00 00 35 04 06 00 C0 7A 49 DC 74 69 3C 9F A0 A8 61 C2 CB 15 [05:03:51]Write to MH i2c: 01 00 00 73 75 E8 [05:03:51]Write i2c OK [05:03:51]MH_I2C_Read... [05:03:51]Read from MH i2c: 01 [05:03:51]MH_I2C_Read... [05:03:51]Read from MH i2c: 01 07 00 [05:03:51]MH_I2C_Read... [05:03:51]Read from MH i2c: 01 07 00 73 75 00 00 00 00 00 C5 0C C0 [05:03:51]RasterBufferAndPrint [05:03:51]line [05:03:51]line [05:03:51]line [05:03:51]line [05:03:51]line [05:03:51]written 0, free lines is 3275 [05:03:51]MH_Cut [05:03:51]Write to MH i2c: D1 01 00 7A 75 01 C1 [05:03:51]Write i2c OK [05:03:51]MH_I2C_Read... [05:03:51]Read from MH i2c: D1 [05:03:51]MH_I2C_Read... [05:03:51]Read from MH i2c: D1 01 00 [05:03:51]MH_I2C_Read... [05:03:51]Read from MH i2c: D1 01 00 7A 75 00 C0 [05:03:51]Write to MH i2c: 01 00 00 7B 75 F0 [05:03:51]Write i2c OK [05:03:51]MH_I2C_Read... [05:03:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 0B 5E 47 00 8D F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B4 71 00 00 F4 03 04 00 62 0E 1B 66 B6 04 01 00 00 8A 9B D4 20 25 21 F9 F1 [05:03:51]CommunicateWithHost err = 0 [05:03:51]CheckOFDResponse [05:03:51]1017 (14) - 77093643461234 [05:03:51]1041 (16) - 0000000000963154 [05:03:51]1040 (4) - 29108 [05:03:51]1012 (4) - 13.04.2024 22:59 [05:03:51]1206 (1) - 0 [05:03:51]OFD Sender: Remove packet 29108 [05:03:51]ProducePacketName [05:03:51]name=ofd_packets/00029108 [05:03:51]NVStorageDeleteData [05:03:52]OFD Sender: No OFD packet to send [05:03:52]*** Cut start [05:03:52]*** Partial cut [05:03:52]*** CUTSNS_PIN = 1 [05:03:52]*** CUTSNS_PIN = 0 [05:03:52]*** Brake cut motor [05:03:53]Read from MH i2c: 01 [05:03:53]MH_I2C_Read... [05:03:53]*** Stop cut motor [05:03:53]Read from MH i2c: *** Cut end [05:03:53]01 07 00 [05:03:53]MH_I2C_Read... [05:03:53]Read from MH i2c: 01 07 00 7B 75 00 00 00 00 00 FF 0F 05 [05:03:53]process_action close_receipt done [05:03:53]requested_data is exist [05:03:53]produce_requested_data [05:03:53]requested_item fm.sn is exist - process it [05:03:53]wFMCommunicate request_size=4 [05:03:53]MH_SAM_APDU [05:03:53]CAPDU: 80 11 00 00 [05:03:53]Write to MH i2c: E2 08 00 7C 75 80 11 00 00 00 00 00 00 6B [05:03:53]Write i2c OK [05:03:53]MH_I2C_Read... [05:03:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:03:53]Read from MH i2c: E2 [05:03:53]MH_I2C_Read... [05:03:53]Read from MH i2c: E2 17 00 [05:03:53]MH_I2C_Read... [05:03:53]Read from MH i2c: E2 17 00 7C 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 BA [05:03:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [05:03:53]wFMCommunicate OK [05:03:53]requested_item fd.num is exist - process it [05:03:53]SAM_PROTO_GetFieldsCounters [05:03:53]wFMCommunicate request_size=4 [05:03:53]MH_SAM_APDU [05:03:53]CAPDU: 80 13 00 00 [05:03:53]Write to MH i2c: E2 08 00 7D 75 80 13 00 00 00 00 00 00 6E [05:03:53]Write i2c OK [05:03:53]MH_I2C_Read... [05:03:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:03:53]Read from MH i2c: E2 [05:03:53]MH_I2C_Read... [05:03:53]Read from MH i2c: E2 62 00 [05:03:53]MH_I2C_Read... [05:03:53]Read from MH i2c: E2 62 00 7D 75 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B4 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 7B [05:03:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B4 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:03:53]wFMCommunicate OK [05:03:53]SAM_PROTO_GetFieldsCounters done [05:03:53]requested_item shift.num is exist - process it [05:03:53]requested_item shift.opened is exist - process it [05:03:53]req_shift_opened [05:03:53]FM_GetShiftState [05:03:53]SAM_PROTO_GetShiftState [05:03:53]wFMCommunicate request_size=4 [05:03:53]MH_SAM_APDU [05:03:53]CAPDU: 80 13 01 00 [05:03:53]Write to MH i2c: E2 08 00 7E 75 80 13 01 00 00 00 00 00 70 [05:03:53]Write i2c OK [05:03:53]MH_I2C_Read... [05:03:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:03:53]Read from MH i2c: E2 [05:03:53]MH_I2C_Read... [05:03:53]Read from MH i2c: E2 0E 00 [05:03:53]MH_I2C_Read... [05:03:53]Read from MH i2c: E2 0E 00 7E 75 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 1C [05:03:53]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [05:03:53]wFMCommunicate OK [05:03:53]SAM_PROTO_GetShiftState done [05:03:53]FM_GetShiftState done [05:03:53]req_shift_opened done [05:03:53]requested_item shift.open_date is exist - process it [05:03:53]req_shift_open_date [05:03:53]req_shift_open_date done [05:03:53]produce_requested_data done [05:03:53]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29108,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [05:03:53]process_action_free close_receipt [05:03:53]json_value_free [05:03:53]json_value_free done [05:03:53]process_json_proto returns [05:03:53]Send response to host [05:03:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29108,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [05:03:53]free response buf [05:03:53]execute_script done [05:03:53]execute_script returns [05:03:53]free content buf [05:03:53]Sock 9.Close socket [05:03:53]Sock 9.Thread stoped [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:38]accept exits with 7 [05:05:38]New connection [05:05:38]New thread 3066785124 created [05:05:38]Thread 3066928484 joined [05:05:38]Waiting for new connection... [05:05:38] Sock 7.Parse request [05:05:38]Sock 7.Check first char [05:05:38]Sock 7.First char is OK [05:05:38]request: POST /json_proto HTTP/1.0 [05:05:38]Method: POST [05:05:38]URL: /json_proto [05:05:38]Method is POST - this is cgi request [05:05:38]url: /json_proto [05:05:38]query_string will be loaded in cgi processing [05:05:38]execute_cgi json_proto POST (null) [05:05:38]execute_cgi path=json_proto method=POST [05:05:38]POST find Content-Length [05:05:38]Host: 172.17.33.3:8080 [05:05:38]Content-Length: 679 [05:05:38]Content-Type: application/json [05:05:38] [05:05:38]POST finish read [05:05:38]Found Content-Length = 679 [05:05:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347477", "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" ] } } [05:05:38]execute_script... [05:05: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)347477", "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" ] } } [05:05:38]POST & json_proto [05:05:38]process_json_proto [05:05:38]json parsed OK: [05:05:38]protocol is kg_v1.0 [05:05:38]action value=close_receipt [05:05:38]process_action close_receipt [05:05:38]cmd_close_receipt [05:05:38]MH_GetDate [05:05:38]Write to MH i2c: F0 00 00 7F 75 E3 [05:05:38]Write i2c OK [05:05:38]MH_I2C_Read... [05:05:38]Read from MH i2c: F0 [05:05:38]MH_I2C_Read... [05:05:38]Read from MH i2c: F0 09 00 [05:05:38]MH_I2C_Read... [05:05:38]Read from MH i2c: F0 09 00 7F 75 00 2B 64 1B 66 23 5B 8F 65 6E [05:05:38]GetLastDocTimeStamp 1713071037 [05:05:38]current date 1713071147 [05:05:38]FM_GetShiftState [05:05:38]SAM_PROTO_GetShiftState [05:05:38]wFMCommunicate request_size=4 [05:05:38]MH_SAM_APDU [05:05:38]CAPDU: 80 13 01 00 [05:05:38]Write to MH i2c: E2 08 00 80 75 80 13 01 00 00 00 00 00 72 [05:05:38]Write i2c OK [05:05:38]MH_I2C_Read... [05:05:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:05:38]Read from MH i2c: E2 [05:05:38]MH_I2C_Read... [05:05:38]Read from MH i2c: E2 0E 00 [05:05:38]MH_I2C_Read... [05:05:38]Read from MH i2c: E2 0E 00 80 75 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 1E [05:05:38]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [05:05:38]wFMCommunicate OK [05:05:38]SAM_PROTO_GetShiftState done [05:05:38]FM_GetShiftState done [05:05:38]opened in 1713053951 [05:05:38]opened+sec_in_day 1713140351 [05:05:38]quantity*price = 100056 [05:05:38]sum+1 = 100058 [05:05:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 19 14.04.2024 05:05 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29109 ФПД: 82266843877724 1/tax-web-control/client/api/v1/ticket?date=20240414T050547&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29109&fm=82266843877724&tin=02508201610067®Number=0000138879044617&sum=100000 [05:05:39]StoreToDocumentArchive [05:05:39]shift 116 fd 29109 [05:05:39]save to /storage/0116/doc_00029109 [05:05:39]save last doc name /storage/0116/doc_00029109 to /storage/kkm_last_doc_name [05:05:39]save OK [05:05:39]Clear old archive folders... [05:05:39]ProcessDocumentItem done err = 0, tmpTLVsize=248 [05:05:39]tlvbuf is 01208910 [05:05:39]SAM_PROTO_ClearQueue [05:05:39]wFMCommunicate request_size=4 [05:05:39]MH_SAM_APDU [05:05:39]CAPDU: 80 09 00 00 [05:05:39]Write to MH i2c: E2 08 00 8D 75 80 09 00 00 00 00 00 00 74 [05:05:39]Write i2c OK [05:05:39]MH_I2C_Read... [05:05:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:05:40]Read from MH i2c: E2 [05:05:40]MH_I2C_Read... [05:05:40]Read from MH i2c: E2 03 00 [05:05:40]MH_I2C_Read... [05:05:40]Read from MH i2c: E2 03 00 8D 75 00 90 00 76 [05:05:40]RAPDU: 90 00 [05:05:40]wFMCommunicate OK [05:05:40]SAM_PROTO_ClearQueue done [05:05:40]KKMCreateOFDPacket [05:05:40]OFDProtocolAddRootSTLVToBuf [05:05:40]FM_MakeSignedData [05:05:40]FM_MakeSignedData [05:05:40]SAM_PROTO_SignData [05:05:40]wFMCommunicate request_size=4 [05:05:40]MH_SAM_APDU [05:05:40]CAPDU: 80 0D 01 02 [05:05:40]Write to MH i2c: E2 08 00 8E 75 80 0D 01 02 00 00 00 00 7C [05:05:40]Write i2c OK [05:05:40]MH_I2C_Read... [05:05:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:05:40]Read from MH i2c: E2 [05:05:40]MH_I2C_Read... [05:05:40]Read from MH i2c: E2 03 00 [05:05:40]MH_I2C_Read... [05:05:40]Read from MH i2c: E2 03 00 8E 75 00 90 00 77 [05:05:40]RAPDU: 90 00 [05:05:40]wFMCommunicate OK [05:05:40]wFMCommunicate request_size=255 [05:05:40]MH_SAM_APDU [05:05:40]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 13 00 00 00 F4 03 04 00 2B 64 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B5 71 00 00 35 04 06 00 4A D2 3E 01 [05:05:40]Write to MH i2c: E2 02 01 8F 75 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 13 00 00 00 F4 03 04 00 2B 64 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B5 71 00 00 35 04 06 00 4A D2 3E 01 00 00 73 [05:05:40]Write i2c OK [05:05:40]MH_I2C_Read... [05:05:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:05:40]Read from MH i2c: E2 [05:05:40]MH_I2C_Read... [05:05:40]Read from MH i2c: E2 03 00 [05:05:40]MH_I2C_Read... [05:05:40]Read from MH i2c: E2 03 00 8F 75 00 90 00 78 [05:05:40]RAPDU: 90 00 [05:05:40]wFMCommunicate OK [05:05:40]wFMCommunicate request_size=7 [05:05:40]MH_SAM_APDU [05:05:40]CAPDU: 80 0D 02 02 02 91 5C [05:05:40]Write to MH i2c: E2 0A 00 90 75 80 0D 02 02 02 00 91 5C 00 00 70 [05:05:40]Write i2c OK [05:05:40]MH_I2C_Read... [05:05:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:05:40]Read from MH i2c: E2 [05:05:40]MH_I2C_Read... [05:05:40]Read from MH i2c: E2 03 00 [05:05:40]MH_I2C_Read... [05:05:40]Read from MH i2c: E2 03 00 90 75 00 90 00 79 [05:05:40]RAPDU: 90 00 [05:05:40]wFMCommunicate OK [05:05:40]wFMCommunicate request_size=4 [05:05:40]MH_SAM_APDU [05:05:40]CAPDU: 80 0D 03 02 [05:05:40]Write to MH i2c: E2 08 00 91 75 80 0D 03 02 00 00 00 00 81 [05:05:40]Write i2c OK [05:05:40]MH_I2C_Read... [05:05:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:05:40]Read from MH i2c: E2 [05:05:40]MH_I2C_Read... [05:05:40]Read from MH i2c: E2 0B 00 [05:05:40]MH_I2C_Read... [05:05:40]Read from MH i2c: E2 0B 00 91 75 00 82 75 5D 4B 5A 05 1C 93 90 00 2F [05:05:40]RAPDU: 82 75 5D 4B 5A 05 1C 93 90 00 [05:05:40]wFMCommunicate OK [05:05:40]SAM_PROTO_SignData done [05:05:40]FM_MakeSignedData done [05:05:40]CreateOFDProtocolMessage [05:05:40]wFMCommunicate request_size=4 [05:05:40]MH_SAM_APDU [05:05:40]CAPDU: 80 11 00 00 [05:05:40]Write to MH i2c: E2 08 00 92 75 80 11 00 00 00 00 00 00 81 [05:05:40]Write i2c OK [05:05:40]MH_I2C_Read... [05:05:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:05:40]Read from MH i2c: E2 [05:05:40]MH_I2C_Read... [05:05:40]Read from MH i2c: E2 17 00 [05:05:40]MH_I2C_Read... [05:05:40]Read from MH i2c: E2 17 00 92 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D0 [05:05:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [05:05:40]wFMCommunicate OK [05:05:40]CreateOFDProtocolMessage done [05:05:40]OFDSenderStorePacket 29109 [05:05:40]StoreOFDPacket docnum=29109 [05:05:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 86 AE 04 01 A4 67 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 13 00 00 00 F4 03 04 00 2B 64 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B5 71 00 00 35 04 06 00 4A D2 3E 01 91 5C 82 75 5D 4B 5A 05 1C 93 [05:05:40]CheckFolder [05:05:40]dirname=/storage/ofd_packets [05:05:40]CheckFolder done [05:05:40]ProducePacketName [05:05:40]name=ofd_packets/00029109 [05:05:40]NVStorageSaveData ofd_packets/00029109 [05:05:40]File name is /storage/ofd_packets/00029109 [05:05:40]Write 298 bytes [05:05:40]NVStorageSaveData done [05:05:40]OFDSenderStorePacket done [05:05:40]KKMCreateOFDPacket done [05:05:40]NVStorageSaveData kkm_last_timestamp [05:05:40]File name is /storage/kkm_last_timestamp [05:05:40]Write 4 bytes [05:05:40]NVStorageSaveData done [05:05:40]ExternCall_PrintAddStr [05:05:40]wPrintStart [05:05:40]Write to MH i2c: 01 00 00 93 75 08 [05:05:40]Write i2c OK [05:05:40]MH_I2C_Read... [05:05:40]Read from MH i2c: 01 [05:05:40]MH_I2C_Read... [05:05:40]Read from MH i2c: 01 07 00 [05:05:40]MH_I2C_Read... [05:05:40]Read from MH i2c: 01 07 00 93 75 00 00 00 00 00 FF 0F 1D [05:05:40]RasterBufferAndPrint [05:05:40]line Счет N : (1)347477 [05:05:40]line ИНН: 02508201610067 [05:05:40]line Контрольно-Кассовый Чек [05:05:40]line ПРОДАЖА [05:05:40]line ТРК (МРК, ГНК) : 51 [05:05:40]line Товар: 2710194210 [05:05:40]line ДТ-К-5 [05:05:40]line 13.820 * 72.40 [05:05:40]line = 1000.57 [05:05:40]line НДС 12% НСП 1% [05:05:40]line > о реализуемом товаре [05:05:40]line ОКРУГЛЕНИЕ: -0.57 [05:05:40]line ИТОГО: 1000.00 [05:05:40]line Внесено: 1000.00 [05:05:40]line СДАЧА: 0.00 [05:05:40]line НСП 1% : 8.85 [05:05:40]line НДС 12% : 106.25 [05:05:40]line Наличными: 1000.00 [05:05:40]line Безнал.: 0.00 [05:05:40]line Место: АЗС № 108 "Партнер Нефть" [05:05:40]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [05:05:40]line СНО: Общий режим [05:05:40]line Чек 19 14.04.2024 05:05 [05:05:40]line Смена: 116 ФФД: 1.0 [05:05:40]line ЗНМ: 0300000027 [05:05:40]line РНМ: 0000138879044617 [05:05:40]line Версия ККМ: 001 [05:05:40]line ФМ: 0000000000963154 [05:05:40]line ФД: 29109 [05:05:40]line ФПД: 82266843877724 [05:05:40]line 1/tax-web-control/client/api/v1/ticket?date=20240414T050547&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29109&fm=82266843877724&tin=02508201610067®Number=0000138879044617&sum=100000 [05:05:40]OFD Sender: Processing packet 29109 [packets to send 8, broken 7] [05:05:40]ProducePacketName [05:05:40]name=ofd_packets/00029109 [05:05:40]OFD Sender: To server: pG, [05:05:40]CommunicateWithHost lk.salyk.kg:30040 [05:05:40]ConnectInit lk.salyk.kg [05:05:40]written 0, free lines is 4095 [05:05:40]Connected sock=10 [05:05:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 86 AE 04 01 A4 67 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 13 00 00 00 F4 03 04 00 2B 64 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B5 71 00 00 35 04 06 00 4A D2 3E 01 91 5C 82 75 5D 4B 5A 05 1C 93 [05:05:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 D8 B1 47 00 91 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 39 36 33 31 35 34 10 04 04 00 B5 71 00 00 F4 03 04 00 D0 0E 1B 66 B6 04 01 00 00 B8 7C E2 EA 24 FE 71 3C [05:05:41]CommunicateWithHost err = 0 [05:05:41]CheckOFDResponse [05:05:41]1017 (14) - 77093643461234 [05:05:41]1041 (16) - 0000000000963154 [05:05:41]1040 (4) - 29109 [05:05:41]1012 (4) - 13.04.2024 23:01 [05:05:41]1206 (1) - 0 [05:05:41]OFD Sender: Remove packet 29109 [05:05:41]ProducePacketName [05:05:41]name=ofd_packets/00029109 [05:05:41]NVStorageDeleteData [05:05:41]Write to MH i2c: 01 00 00 BD 75 32 [05:05:41]Write i2c OK [05:05:41]MH_I2C_Read... [05:05:41]Read from MH i2c: 01 [05:05:41]MH_I2C_Read... [05:05:41]Read from MH i2c: 01 07 00 [05:05:41]MH_I2C_Read... [05:05:41]Read from MH i2c: 01 07 00 BD 75 00 00 00 00 00 D0 0C 15 [05:05:41]RasterBufferAndPrint [05:05:41]line [05:05:41]line [05:05:41]line [05:05:41]line [05:05:41]line [05:05:41]written 0, free lines is 3286 [05:05:41]MH_Cut [05:05:41]Write to MH i2c: D1 01 00 C4 75 01 0B [05:05:41]Write i2c OK [05:05:41]MH_I2C_Read... [05:05:41]Read from MH i2c: D1 [05:05:41]MH_I2C_Read... [05:05:41]Read from MH i2c: D1 01 00 [05:05:41]MH_I2C_Read... [05:05:41]Read from MH i2c: D1 01 00 C4 75 00 0A [05:05:41]Write to MH i2c: 01 00 00 C5 75 3A [05:05:41]Write i2c OK [05:05:41]MH_I2C_Read... [05:05:41]OFD Sender: No OFD packet to send [05:05:42]*** Cut start [05:05:42]*** Partial cut [05:05:42]*** CUTSNS_PIN = 1 [05:05:42]*** CUTSNS_PIN = 0 [05:05:42]*** Brake cut motor [05:05:42]Read from MH i2c: 01 [05:05:42]MH_I2C_Read... [05:05:42]*** Stop cut motor [05:05:42]*** Cut end [05:05:42]Read from MH i2c: 01 07 00 [05:05:42]MH_I2C_Read... [05:05:42]Read from MH i2c: 01 07 00 C5 75 00 00 00 00 00 FF 0F 4F [05:05:42]process_action close_receipt done [05:05:42]requested_data is exist [05:05:42]produce_requested_data [05:05:42]requested_item fm.sn is exist - process it [05:05:42]wFMCommunicate request_size=4 [05:05:42]MH_SAM_APDU [05:05:42]CAPDU: 80 11 00 00 [05:05:42]Write to MH i2c: E2 08 00 C6 75 80 11 00 00 00 00 00 00 B5 [05:05:42]Write i2c OK [05:05:42]MH_I2C_Read... [05:05:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:05:42]Read from MH i2c: E2 [05:05:42]MH_I2C_Read... [05:05:42]Read from MH i2c: E2 17 00 [05:05:42]MH_I2C_Read... [05:05:42]Read from MH i2c: E2 17 00 C6 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 04 [05:05:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [05:05:42]wFMCommunicate OK [05:05:42]requested_item fd.num is exist - process it [05:05:42]SAM_PROTO_GetFieldsCounters [05:05:42]wFMCommunicate request_size=4 [05:05:42]MH_SAM_APDU [05:05:42]CAPDU: 80 13 00 00 [05:05:42]Write to MH i2c: E2 08 00 C7 75 80 13 00 00 00 00 00 00 B8 [05:05:42]Write i2c OK [05:05:42]MH_I2C_Read... [05:05:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:05:42]Read from MH i2c: E2 [05:05:42]MH_I2C_Read... [05:05:42]Read from MH i2c: E2 62 00 [05:05:42]MH_I2C_Read... [05:05:42]Read from MH i2c: E2 62 00 C7 75 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B5 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 C9 [05:05:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B5 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:05:42]wFMCommunicate OK [05:05:42]SAM_PROTO_GetFieldsCounters done [05:05:42]requested_item shift.num is exist - process it [05:05:42]requested_item shift.opened is exist - process it [05:05:42]req_shift_opened [05:05:42]FM_GetShiftState [05:05:42]SAM_PROTO_GetShiftState [05:05:42]wFMCommunicate request_size=4 [05:05:42]MH_SAM_APDU [05:05:42]CAPDU: 80 13 01 00 [05:05:42]Write to MH i2c: E2 08 00 C8 75 80 13 01 00 00 00 00 00 BA [05:05:42]Write i2c OK [05:05:42]MH_I2C_Read... [05:05:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:05:42]Read from MH i2c: E2 [05:05:42]MH_I2C_Read... [05:05:42]Read from MH i2c: E2 0E 00 [05:05:42]MH_I2C_Read... [05:05:42]Read from MH i2c: E2 0E 00 C8 75 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 66 [05:05:42]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [05:05:42]wFMCommunicate OK [05:05:42]SAM_PROTO_GetShiftState done [05:05:42]FM_GetShiftState done [05:05:42]req_shift_opened done [05:05:42]requested_item shift.open_date is exist - process it [05:05:42]req_shift_open_date [05:05:42]req_shift_open_date done [05:05:42]produce_requested_data done [05:05:42]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29109,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [05:05:42]process_action_free close_receipt [05:05:42]json_value_free [05:05:42]json_value_free done [05:05:42]process_json_proto returns [05:05:42]Send response to host [05:05:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29109,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [05:05:42]free response buf [05:05:42]execute_script done [05:05:42]execute_script returns [05:05:42]free content buf [05:05:42]Sock 7.Close socket [05:05:42]Sock 7.Thread stoped [05:05:46]OFD Sender: No OFD packet to send [05:05:51]OFD Sender: No OFD packet to send [05:05:56]OFD Sender: No OFD packet to send [05:06:01]OFD Sender: No OFD packet to send [05:06:06]OFD Sender: No OFD packet to send [05:06:11]OFD Sender: No OFD packet to send [05:06:16]OFD Sender: No OFD packet to send [05:06:21]OFD Sender: No OFD packet to send [05:06:26]OFD Sender: No OFD packet to send [05:06:31]OFD Sender: No OFD packet to send [05:06:36]OFD Sender: No OFD packet to send [05:06:41]OFD Sender: No OFD packet to send [05:06:46]OFD Sender: No OFD packet to send [05:06:51]OFD Sender: No OFD packet to send [05:06:56]OFD Sender: No OFD packet to send [05:07:01]OFD Sender: No OFD packet to send [05:07:06]OFD Sender: No OFD packet to send [05:07:11]OFD Sender: No OFD packet to send [05:07:16]OFD Sender: No OFD packet to send [05:07:21]OFD Sender: No OFD packet to send [05:07:26]OFD Sender: No OFD packet to send [05:07:31]OFD Sender: No OFD packet to send [05:07:36]OFD Sender: No OFD packet to send [05:07:41]OFD Sender: No OFD packet to send [05:07:46]OFD Sender: No OFD packet to send [05:07:51]OFD Sender: No OFD packet to send [05:07:56]OFD Sender: No OFD packet to send [05:08:01]OFD Sender: No OFD packet to send [05:08:06]OFD Sender: No OFD packet to send [05:08:11]OFD Sender: No OFD packet to send [05:08:16]OFD Sender: No OFD packet to send [05:08:21]OFD Sender: No OFD packet to send [05:08:26]OFD Sender: No OFD packet to send [05:08:31]OFD Sender: No OFD packet to send [05:08:36]OFD Sender: No OFD packet to send [05:08:41]OFD Sender: No OFD packet to send [05:08:46]OFD Sender: No OFD packet to send [05:08:51]OFD Sender: No OFD packet to send [05:08:56]OFD Sender: No OFD packet to send [05:09:01]OFD Sender: No OFD packet to send [05:09:06]OFD Sender: No OFD packet to send [05:09:11]OFD Sender: No OFD packet to send [05:09:16]OFD Sender: No OFD packet to send [05:09:21]OFD Sender: No OFD packet to send [05:09:26]OFD Sender: No OFD packet to send [05:09:31]OFD Sender: No OFD packet to send [05:09:36]OFD Sender: No OFD packet to send [05:09:41]OFD Sender: No OFD packet to send [05:09:46]OFD Sender: No OFD packet to send [05:09:51]OFD Sender: No OFD packet to send [05:09:56]OFD Sender: No OFD packet to send [05:10:01]OFD Sender: No OFD packet to send [05:10:06]OFD Sender: No OFD packet to send [05:10:11]OFD Sender: No OFD packet to send [05:10:16]OFD Sender: No OFD packet to send [05:10:21]OFD Sender: No OFD packet to send [05:10:26]OFD Sender: No OFD packet to send [05:10:31]OFD Sender: No OFD packet to send [05:10:36]OFD Sender: No OFD packet to send [05:10:41]OFD Sender: No OFD packet to send [05:10:46]OFD Sender: No OFD packet to send [05:10:51]OFD Sender: No OFD packet to send [05:10:56]OFD Sender: No OFD packet to send [05:11:01]OFD Sender: No OFD packet to send [05:11:06]OFD Sender: No OFD packet to send [05:11:11]OFD Sender: No OFD packet to send [05:11:16]OFD Sender: No OFD packet to send [05:11:21]OFD Sender: No OFD packet to send [05:11:26]OFD Sender: No OFD packet to send [05:11:31]OFD Sender: No OFD packet to send [05:11:36]OFD Sender: No OFD packet to send [05:11:41]OFD Sender: No OFD packet to send [05:11:46]OFD Sender: No OFD packet to send [05:11:51]OFD Sender: No OFD packet to send [05:11:56]OFD Sender: No OFD packet to send [05:12:01]OFD Sender: No OFD packet to send [05:12:06]OFD Sender: No OFD packet to send [05:12:11]OFD Sender: No OFD packet to send [05:12:16]OFD Sender: No OFD packet to send [05:12:21]OFD Sender: No OFD packet to send [05:12:26]OFD Sender: No OFD packet to send [05:12:31]OFD Sender: No OFD packet to send [05:12:36]OFD Sender: No OFD packet to send [05:12:41]OFD Sender: No OFD packet to send [05:12:46]OFD Sender: No OFD packet to send [05:12:51]OFD Sender: No OFD packet to send [05:12:56]OFD Sender: No OFD packet to send [05:13:01]OFD Sender: No OFD packet to send [05:13:06]OFD Sender: No OFD packet to send [05:13:11]OFD Sender: No OFD packet to send [05:13:16]OFD Sender: No OFD packet to send [05:13:21]OFD Sender: No OFD packet to send [05:13:26]OFD Sender: No OFD packet to send [05:13:31]OFD Sender: No OFD packet to send [05:13:36]OFD Sender: No OFD packet to send [05:13:41]OFD Sender: No OFD packet to send [05:13:46]OFD Sender: No OFD packet to send [05:13:51]OFD Sender: No OFD packet to send [05:13:56]OFD Sender: No OFD packet to send [05:14:01]OFD Sender: No OFD packet to send [05:14:06]OFD Sender: No OFD packet to send [05:14:11]OFD Sender: No OFD packet to send [05:14:16]OFD Sender: No OFD packet to send [05:14:21]OFD Sender: No OFD packet to send [05:14:26]OFD Sender: No OFD packet to send [05:14:31]OFD Sender: No OFD packet to send [05:14:36]OFD Sender: No OFD packet to send [05:14:41]OFD Sender: No OFD packet to send [05:14:46]OFD Sender: No OFD packet to send [05:14:51]OFD Sender: No OFD packet to send [05:14:57]OFD Sender: No OFD packet to send [05:15:02]OFD Sender: No OFD packet to send [05:15:07]OFD Sender: No OFD packet to send [05:15:12]OFD Sender: No OFD packet to send [05:15:13]accept exits with 9 [05:15:13]New connection [05:15:13]New thread 3066928484 created [05:15:13]Thread 3066785124 joined [05:15:13]Waiting for new connection... [05:15:13] Sock 9.Parse request [05:15:13]Sock 9.Check first char [05:15:13]Sock 9.First char is OK [05:15:13]request: POST /json_proto HTTP/1.0 [05:15:13]Method: POST [05:15:13]URL: /json_proto [05:15:13]Method is POST - this is cgi request [05:15:13]url: /json_proto [05:15:13]query_string will be loaded in cgi processing [05:15:13]execute_cgi json_proto POST (null) [05:15:13]execute_cgi path=json_proto method=POST [05:15:13]POST find Content-Length [05:15:13]Host: 172.17.33.3:8080 [05:15:13]Content-Length: 680 [05:15:13]Content-Type: application/json [05:15:13] [05:15:13]POST finish read [05:15:13]Found Content-Length = 680 [05:15:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347478", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 9.120, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:15:13]execute_script... [05:15:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347478", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 9.120, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:15:13]POST & json_proto [05:15:13]process_json_proto [05:15:13]json parsed OK: [05:15:13]protocol is kg_v1.0 [05:15:13]action value=close_receipt [05:15:13]process_action close_receipt [05:15:13]cmd_close_receipt [05:15:13]MH_GetDate [05:15:13]Write to MH i2c: F0 00 00 C9 75 2D [05:15:13]Write i2c OK [05:15:13]MH_I2C_Read... [05:15:13]Read from MH i2c: F0 [05:15:13]MH_I2C_Read... [05:15:13]Read from MH i2c: F0 09 00 [05:15:13]MH_I2C_Read... [05:15:13]Read from MH i2c: F0 09 00 C9 75 00 69 66 1B 66 23 5B 8F 65 F8 [05:15:13]GetLastDocTimeStamp 1713071147 [05:15:13]current date 1713071721 [05:15:13]FM_GetShiftState [05:15:13]SAM_PROTO_GetShiftState [05:15:13]wFMCommunicate request_size=4 [05:15:13]MH_SAM_APDU [05:15:13]CAPDU: 80 13 01 00 [05:15:13]Write to MH i2c: E2 08 00 CA 75 80 13 01 00 00 00 00 00 BC [05:15:13]Write i2c OK [05:15:13]MH_I2C_Read... [05:15:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:15:13]Read from MH i2c: E2 [05:15:13]MH_I2C_Read... [05:15:13]Read from MH i2c: E2 0E 00 [05:15:13]MH_I2C_Read... [05:15:13]Read from MH i2c: E2 0E 00 CA 75 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 68 [05:15:13]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [05:15:13]wFMCommunicate OK [05:15:13]SAM_PROTO_GetShiftState done [05:15:13]FM_GetShiftState done [05:15:13]opened in 1713053951 [05:15:13]opened+sec_in_day 1713140351 [05:15:13]quantity*price = 30004 [05:15:13]sum+1 = 30006 [05:15:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 20 14.04.2024 05:15 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29110 ФПД: 128707099559742 1/tax-web-control/client/api/v1/ticket?date=20240414T051521&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29110&fm=128707099559742&tin=02508201610067®Number=0000138879044617&sum=30000 [05:15:14]StoreToDocumentArchive [05:15:14]shift 116 fd 29110 [05:15:14]save to /storage/0116/doc_00029110 [05:15:14]save last doc name /storage/0116/doc_00029110 to /storage/kkm_last_doc_name [05:15:14]save OK [05:15:14]Clear old archive folders... [05:15:14]ProcessDocumentItem done err = 0, tmpTLVsize=250 [05:15:14]tlvbuf is 011EE8A0 [05:15:14]SAM_PROTO_ClearQueue [05:15:14]wFMCommunicate request_size=4 [05:15:14]MH_SAM_APDU [05:15:14]CAPDU: 80 09 00 00 [05:15:14]Write to MH i2c: E2 08 00 D7 75 80 09 00 00 00 00 00 00 BE [05:15:14]Write i2c OK [05:15:14]MH_I2C_Read... [05:15:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:15:14]Read from MH i2c: E2 [05:15:14]MH_I2C_Read... [05:15:14]Read from MH i2c: E2 03 00 [05:15:14]MH_I2C_Read... [05:15:14]Read from MH i2c: E2 03 00 D7 75 00 90 00 C0 [05:15:14]RAPDU: 90 00 [05:15:14]wFMCommunicate OK [05:15:14]SAM_PROTO_ClearQueue done [05:15:14]KKMCreateOFDPacket [05:15:14]OFDProtocolAddRootSTLVToBuf [05:15:14]FM_MakeSignedData [05:15:14]FM_MakeSignedData [05:15:14]SAM_PROTO_SignData [05:15:14]wFMCommunicate request_size=4 [05:15:14]MH_SAM_APDU [05:15:14]CAPDU: 80 0D 01 02 [05:15:14]Write to MH i2c: E2 08 00 D8 75 80 0D 01 02 00 00 00 00 C6 [05:15:14]Write i2c OK [05:15:14]MH_I2C_Read... [05:15:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:15:14]Read from MH i2c: E2 [05:15:14]MH_I2C_Read... [05:15:14]Read from MH i2c: E2 03 00 [05:15:14]MH_I2C_Read... [05:15:14]Read from MH i2c: E2 03 00 D8 75 00 90 00 C1 [05:15:14]RAPDU: 90 00 [05:15:14]wFMCommunicate OK [05:15:14]wFMCommunicate request_size=255 [05:15:14]MH_SAM_APDU [05:15:14]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 69 66 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B6 71 00 00 35 04 06 00 75 0E [05:15:14]Write to MH i2c: E2 02 01 D9 75 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 69 66 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B6 71 00 00 35 04 06 00 75 0E 00 00 44 [05:15:14]Write i2c OK [05:15:14]MH_I2C_Read... [05:15:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:15:14]Read from MH i2c: E2 [05:15:14]MH_I2C_Read... [05:15:14]Read from MH i2c: E2 03 00 [05:15:14]MH_I2C_Read... [05:15:14]Read from MH i2c: E2 03 00 D9 75 00 90 00 C2 [05:15:14]RAPDU: 90 00 [05:15:14]wFMCommunicate OK [05:15:14]wFMCommunicate request_size=9 [05:15:14]MH_SAM_APDU [05:15:14]CAPDU: 80 0D 02 02 04 F4 F3 07 3E [05:15:14]Write to MH i2c: E2 0C 00 DA 75 80 0D 02 02 04 00 F4 F3 07 3E 00 00 FD [05:15:14]Write i2c OK [05:15:14]MH_I2C_Read... [05:15:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:15:14]Read from MH i2c: E2 [05:15:14]MH_I2C_Read... [05:15:14]Read from MH i2c: E2 03 00 [05:15:14]MH_I2C_Read... [05:15:14]Read from MH i2c: E2 03 00 DA 75 00 90 00 C3 [05:15:14]RAPDU: 90 00 [05:15:14]wFMCommunicate OK [05:15:14]wFMCommunicate request_size=4 [05:15:14]MH_SAM_APDU [05:15:14]CAPDU: 80 0D 03 02 [05:15:14]Write to MH i2c: E2 08 00 DB 75 80 0D 03 02 00 00 00 00 CB [05:15:14]Write i2c OK [05:15:14]MH_I2C_Read... [05:15:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:15:14]Read from MH i2c: E2 [05:15:14]MH_I2C_Read... [05:15:14]Read from MH i2c: E2 0B 00 [05:15:14]MH_I2C_Read... [05:15:14]Read from MH i2c: E2 0B 00 DB 75 00 E2 9B BC 54 5F C5 45 E3 90 00 A5 [05:15:14]RAPDU: E2 9B BC 54 5F C5 45 E3 90 00 [05:15:14]wFMCommunicate OK [05:15:14]SAM_PROTO_SignData done [05:15:14]FM_MakeSignedData done [05:15:14]CreateOFDProtocolMessage [05:15:14]wFMCommunicate request_size=4 [05:15:14]MH_SAM_APDU [05:15:14]CAPDU: 80 11 00 00 [05:15:14]Write to MH i2c: E2 08 00 DC 75 80 11 00 00 00 00 00 00 CB [05:15:14]Write i2c OK [05:15:14]MH_I2C_Read... [05:15:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:15:14]Read from MH i2c: E2 [05:15:14]MH_I2C_Read... [05:15:14]Read from MH i2c: E2 17 00 [05:15:14]MH_I2C_Read... [05:15:14]Read from MH i2c: E2 17 00 DC 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 1A [05:15:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [05:15:14]wFMCommunicate OK [05:15:14]CreateOFDProtocolMessage done [05:15:14]OFDSenderStorePacket 29110 [05:15:14]StoreOFDPacket docnum=29110 [05:15:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 C8 24 06 01 70 7F 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 69 66 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B6 71 00 00 35 04 06 00 75 0E F4 F3 07 3E E2 9B BC 54 5F C5 45 E3 [05:15:14]CheckFolder [05:15:14]dirname=/storage/ofd_packets [05:15:14]CheckFolder done [05:15:14]ProducePacketName [05:15:14]name=ofd_packets/00029110 [05:15:14]NVStorageSaveData ofd_packets/00029110 [05:15:14]File name is /storage/ofd_packets/00029110 [05:15:14]Write 300 bytes [05:15:14]NVStorageSaveData done [05:15:14]OFDSenderStorePacket done [05:15:14]KKMCreateOFDPacket done [05:15:14]NVStorageSaveData kkm_last_timestamp [05:15:14]File name is /storage/kkm_last_timestamp [05:15:14]Write 4 bytes [05:15:14]NVStorageSaveData done [05:15:14]ExternCall_PrintAddStr [05:15:14]wPrintStart [05:15:14]Write to MH i2c: 01 00 00 DD 75 52 [05:15:14]Write i2c OK [05:15:14]MH_I2C_Read... [05:15:14]Read from MH i2c: 01 [05:15:14]MH_I2C_Read... [05:15:14]Read from MH i2c: 01 07 00 [05:15:14]MH_I2C_Read... [05:15:14]Read from MH i2c: 01 07 00 DD 75 00 00 00 00 00 FF 0F 67 [05:15:14]RasterBufferAndPrint [05:15:14]line Счет N : (1)347478 [05:15:14]line ИНН: 02508201610067 [05:15:14]line Контрольно-Кассовый Чек [05:15:14]line ПРОДАЖА [05:15:14]line ТРК (МРК, ГНК) : 71 [05:15:14]line Товар: 2711129700 [05:15:14]line ГАЗ-К-5 [05:15:14]line 9.120 * 32.90 [05:15:14]line = 300.05 [05:15:14]line НДС 12% НСП 1% [05:15:14]line > о реализуемом товаре [05:15:14]line ОКРУГЛЕНИЕ: -0.05 [05:15:14]line ИТОГО: 300.00 [05:15:14]line Внесено: 300.00 [05:15:14]line СДАЧА: 0.00 [05:15:14]line НСП 1% : 2.65 [05:15:14]line НДС 12% : 31.86 [05:15:14]line Наличными: 300.00 [05:15:14]line Безнал.: 0.00 [05:15:14]line Место: АЗС № 108 "Партнер Нефть" [05:15:14]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [05:15:14]line СНО: Общий режим [05:15:14]line Чек 20 14.04.2024 05:15 [05:15:14]line Смена: 116 ФФД: 1.0 [05:15:14]line ЗНМ: 0300000027 [05:15:14]line РНМ: 0000138879044617 [05:15:14]line Версия ККМ: 001 [05:15:14]line ФМ: 0000000000963154 [05:15:14]line ФД: 29110 [05:15:14]line ФПД: 128707099559742 [05:15:14]line 1/tax-web-control/client/api/v1/ticket?date=20240414T051521&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29110&fm=128707099559742&tin=02508201610067®Number=0000138879044617&sum=30000 [05:15:15]OFD Sender: Processing packet 29110 [packets to send 8, broken 7] [05:15:15]ProducePacketName [05:15:15]name=ofd_packets/00029110 [05:15:15]OFD Sender: To server: pG, [05:15:15]CommunicateWithHost lk.salyk.kg:30040 [05:15:15]ConnectInit lk.salyk.kg [05:15:15]written 0, free lines is 4095 [05:15:15]Connected sock=10 [05:15:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 C8 24 06 01 70 7F 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 69 66 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B6 71 00 00 35 04 06 00 75 0E F4 F3 07 3E E2 9B BC 54 5F C5 45 E3 [05:15:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 72 1E 47 00 09 B4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B6 71 00 00 F4 03 04 00 0E 11 1B 66 B6 04 01 00 00 B5 2D F0 B0 79 4A FB EF [05:15:15]CommunicateWithHost err = 0 [05:15:15]CheckOFDResponse [05:15:15]1017 (14) - 77093643461234 [05:15:15]1041 (16) - 0000000000963154 [05:15:15]1040 (4) - 29110 [05:15:15]1012 (4) - 13.04.2024 23:11 [05:15:15]1206 (1) - 0 [05:15:15]OFD Sender: Remove packet 29110 [05:15:15]ProducePacketName [05:15:15]name=ofd_packets/00029110 [05:15:15]NVStorageDeleteData [05:15:15]Write to MH i2c: 01 00 00 07 76 7D [05:15:15]Write i2c OK [05:15:15]MH_I2C_Read... [05:15:15]Read from MH i2c: 01 [05:15:15]MH_I2C_Read... [05:15:15]Read from MH i2c: 01 07 00 [05:15:15]MH_I2C_Read... [05:15:15]Read from MH i2c: 01 07 00 07 76 00 00 00 00 00 E2 0C 72 [05:15:15]RasterBufferAndPrint [05:15:15]line [05:15:15]line [05:15:15]line [05:15:15]line [05:15:15]line [05:15:15]written 0, free lines is 3304 [05:15:15]MH_Cut [05:15:15]Write to MH i2c: D1 01 00 0E 76 01 56 [05:15:15]Write i2c OK [05:15:15]MH_I2C_Read... [05:15:15]Read from MH i2c: D1 [05:15:15]MH_I2C_Read... [05:15:15]Read from MH i2c: D1 01 00 [05:15:15]MH_I2C_Read... [05:15:15]Read from MH i2c: D1 01 00 0E 76 00 55 [05:15:15]Write to MH i2c: 01 00 00 0F 76 85 [05:15:15]Write i2c OK [05:15:15]MH_I2C_Read... [05:15:15]OFD Sender: No OFD packet to send [05:15:16]*** Cut start [05:15:16]*** Partial cut [05:15:16]*** CUTSNS_PIN = 1 [05:15:16]*** CUTSNS_PIN = 0 [05:15:16]*** Brake cut motor [05:15:17]Read from MH i2c: 01 [05:15:17]MH_I2C_Read... [05:15:17]*** Stop cut motor [05:15:17]*** Cut end [05:15:17]Read from MH i2c: 01 07 00 [05:15:17]MH_I2C_Read... [05:15:17]Read from MH i2c: 01 07 00 0F 76 00 00 00 00 00 FF 0F 9A [05:15:17]process_action close_receipt done [05:15:17]requested_data is exist [05:15:17]produce_requested_data [05:15:17]requested_item fm.sn is exist - process it [05:15:17]wFMCommunicate request_size=4 [05:15:17]MH_SAM_APDU [05:15:17]CAPDU: 80 11 00 00 [05:15:17]Write to MH i2c: E2 08 00 10 76 80 11 00 00 00 00 00 00 00 [05:15:17]Write i2c OK [05:15:17]MH_I2C_Read... [05:15:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:15:17]Read from MH i2c: E2 [05:15:17]MH_I2C_Read... [05:15:17]Read from MH i2c: E2 17 00 [05:15:17]MH_I2C_Read... [05:15:17]Read from MH i2c: E2 17 00 10 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 4F [05:15:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [05:15:17]wFMCommunicate OK [05:15:17]requested_item fd.num is exist - process it [05:15:17]SAM_PROTO_GetFieldsCounters [05:15:17]wFMCommunicate request_size=4 [05:15:17]MH_SAM_APDU [05:15:17]CAPDU: 80 13 00 00 [05:15:17]Write to MH i2c: E2 08 00 11 76 80 13 00 00 00 00 00 00 03 [05:15:17]Write i2c OK [05:15:17]MH_I2C_Read... [05:15:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:15:17]Read from MH i2c: E2 [05:15:17]MH_I2C_Read... [05:15:17]Read from MH i2c: E2 62 00 [05:15:17]MH_I2C_Read... [05:15:17]Read from MH i2c: E2 62 00 11 76 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B6 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 18 [05:15:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B6 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:15:17]wFMCommunicate OK [05:15:17]SAM_PROTO_GetFieldsCounters done [05:15:17]requested_item shift.num is exist - process it [05:15:17]requested_item shift.opened is exist - process it [05:15:17]req_shift_opened [05:15:17]FM_GetShiftState [05:15:17]SAM_PROTO_GetShiftState [05:15:17]wFMCommunicate request_size=4 [05:15:17]MH_SAM_APDU [05:15:17]CAPDU: 80 13 01 00 [05:15:17]Write to MH i2c: E2 08 00 12 76 80 13 01 00 00 00 00 00 05 [05:15:17]Write i2c OK [05:15:17]MH_I2C_Read... [05:15:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:15:17]Read from MH i2c: E2 [05:15:17]MH_I2C_Read... [05:15:17]Read from MH i2c: E2 0E 00 [05:15:17]MH_I2C_Read... [05:15:17]Read from MH i2c: E2 0E 00 12 76 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 B1 [05:15:17]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [05:15:17]wFMCommunicate OK [05:15:17]SAM_PROTO_GetShiftState done [05:15:17]FM_GetShiftState done [05:15:17]req_shift_opened done [05:15:17]requested_item shift.open_date is exist - process it [05:15:17]req_shift_open_date [05:15:17]req_shift_open_date done [05:15:17]produce_requested_data done [05:15:17]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29110,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [05:15:17]process_action_free close_receipt [05:15:17]json_value_free [05:15:17]json_value_free done [05:15:17]process_json_proto returns [05:15:17]Send response to host [05:15:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29110,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [05:15:17]free response buf [05:15:17]execute_script done [05:15:17]execute_script returns [05:15:17]free content buf [05:15:17]Sock 9.Close socket [05:15:17]Sock 9.Thread stoped [05:15:20]OFD Sender: No OFD packet to send [05:15:25]OFD Sender: No OFD packet to send [05:15:30]OFD Sender: No OFD packet to send [05:15:35]OFD Sender: No OFD packet to send [05:15:40]OFD Sender: No OFD packet to send [05:15:45]OFD Sender: No OFD packet to send [05:15:50]OFD Sender: No OFD packet to send [05:15:55]OFD Sender: No OFD packet to send [05:16:00]OFD Sender: No OFD packet to send [05:16:05]OFD Sender: No OFD packet to send [05:16:10]OFD Sender: No OFD packet to send [05:16:15]OFD Sender: No OFD packet to send [05:16:20]OFD Sender: No OFD packet to send [05:16:25]OFD Sender: No OFD packet to send [05:16:30]OFD Sender: No OFD packet to send [05:16:35]OFD Sender: No OFD packet to send [05:16:40]OFD Sender: No OFD packet to send [05:16:46]OFD Sender: No OFD packet to send [05:16:51]OFD Sender: No OFD packet to send [05:16:56]OFD Sender: No OFD packet to send [05:17:01]OFD Sender: No OFD packet to send [05:17:06]OFD Sender: No OFD packet to send [05:17:11]OFD Sender: No OFD packet to send [05:17:16]OFD Sender: No OFD packet to send [05:17:21]OFD Sender: No OFD packet to send [05:17:26]OFD Sender: No OFD packet to send [05:17:31]OFD Sender: No OFD packet to send [05:17:36]OFD Sender: No OFD packet to send [05:17:41]OFD Sender: No OFD packet to send [05:17:46]OFD Sender: No OFD packet to send [05:17:51]OFD Sender: No OFD packet to send [05:17:56]OFD Sender: No OFD packet to send [05:18:01]OFD Sender: No OFD packet to send [05:18:06]OFD Sender: No OFD packet to send [05:18:11]OFD Sender: No OFD packet to send [05:18:16]OFD Sender: No OFD packet to send [05:18:21]OFD Sender: No OFD packet to send [05:18:26]OFD Sender: No OFD packet to send [05:18:31]OFD Sender: No OFD packet to send [05:18:36]OFD Sender: No OFD packet to send [05:18:41]OFD Sender: No OFD packet to send [05:18:46]OFD Sender: No OFD packet to send [05:18:51]OFD Sender: No OFD packet to send [05:18:56]OFD Sender: No OFD packet to send [05:19:01]OFD Sender: No OFD packet to send [05:19:06]OFD Sender: No OFD packet to send [05:19:11]OFD Sender: No OFD packet to send [05:19:16]OFD Sender: No OFD packet to send [05:19:21]OFD Sender: No OFD packet to send [05:19:26]OFD Sender: No OFD packet to send [05:19:31]OFD Sender: No OFD packet to send [05:19:36]OFD Sender: No OFD packet to send [05:19:41]OFD Sender: No OFD packet to send [05:19:46]OFD Sender: No OFD packet to send [05:19:51]OFD Sender: No OFD packet to send [05:19:56]OFD Sender: No OFD packet to send [05:20:01]OFD Sender: No OFD packet to send [05:20:06]OFD Sender: No OFD packet to send [05:20:11]OFD Sender: No OFD packet to send [05:20:16]OFD Sender: No OFD packet to send [05:20:21]OFD Sender: No OFD packet to send [05:20:26]OFD Sender: No OFD packet to send [05:20:31]OFD Sender: No OFD packet to send [05:20:36]OFD Sender: No OFD packet to send [05:20:41]OFD Sender: No OFD packet to send [05:20:46]OFD Sender: No OFD packet to send [05:20:51]OFD Sender: No OFD packet to send [05:20:56]OFD Sender: No OFD packet to send [05:21:01]OFD Sender: No OFD packet to send [05:21:06]OFD Sender: No OFD packet to send [05:21:11]OFD Sender: No OFD packet to send [05:21:16]OFD Sender: No OFD packet to send [05:21:21]OFD Sender: No OFD packet to send [05:21:26]OFD Sender: No OFD packet to send [05:21:31]OFD Sender: No OFD packet to send [05:21:36]OFD Sender: No OFD packet to send [05:21:41]OFD Sender: No OFD packet to send [05:21:46]OFD Sender: No OFD packet to send [05:21:51]OFD Sender: No OFD packet to send [05:21:56]OFD Sender: No OFD packet to send [05:22:01]OFD Sender: No OFD packet to send [05:22:06]OFD Sender: No OFD packet to send [05:22:11]OFD Sender: No OFD packet to send [05:22:16]OFD Sender: No OFD packet to send [05:22:21]OFD Sender: No OFD packet to send [05:22:26]OFD Sender: No OFD packet to send [05:22:31]OFD Sender: No OFD packet to send [05:22:36]OFD Sender: No OFD packet to send [05:22:41]OFD Sender: No OFD packet to send [05:22:46]OFD Sender: No OFD packet to send [05:22:51]OFD Sender: No OFD packet to send [05:22:56]OFD Sender: No OFD packet to send [05:23:01]OFD Sender: No OFD packet to send [05:23:06]OFD Sender: No OFD packet to send [05:23:11]OFD Sender: No OFD packet to send [05:23:16]OFD Sender: No OFD packet to send [05:23:21]OFD Sender: No OFD packet to send [05:23:26]OFD Sender: No OFD packet to send [05:23:31]OFD Sender: No OFD packet to send [05:23:36]OFD Sender: No OFD packet to send [05:23:41]OFD Sender: No OFD packet to send [05:23:46]OFD Sender: No OFD packet to send [05:23:51]OFD Sender: No OFD packet to send [05:23:56]OFD Sender: No OFD packet to send [05:24:01]OFD Sender: No OFD packet to send [05:24:06]OFD Sender: No OFD packet to send [05:24:11]OFD Sender: No OFD packet to send [05:24:16]OFD Sender: No OFD packet to send [05:24:21]OFD Sender: No OFD packet to send [05:24:26]OFD Sender: No OFD packet to send [05:24:31]OFD Sender: No OFD packet to send [05:24:36]OFD Sender: No OFD packet to send [05:24:41]OFD Sender: No OFD packet to send [05:24:46]OFD Sender: No OFD packet to send [05:24:51]OFD Sender: No OFD packet to send [05:24:56]OFD Sender: No OFD packet to send [05:25:01]OFD Sender: No OFD packet to send [05:25:06]OFD Sender: No OFD packet to send [05:25:11]OFD Sender: No OFD packet to send [05:25:16]OFD Sender: No OFD packet to send [05:25:21]OFD Sender: No OFD packet to send [05:25:26]OFD Sender: No OFD packet to send [05:25:31]OFD Sender: No OFD packet to send [05:25:36]OFD Sender: No OFD packet to send [05:25:41]OFD Sender: No OFD packet to send [05:25:46]OFD Sender: No OFD packet to send [05:25:51]OFD Sender: No OFD packet to send [05:25:56]OFD Sender: No OFD packet to send [05:26:01]OFD Sender: No OFD packet to send [05:26:06]OFD Sender: No OFD packet to send [05:26:11]OFD Sender: No OFD packet to send [05:26:16]OFD Sender: No OFD packet to send [05:26:21]OFD Sender: No OFD packet to send [05:26:26]OFD Sender: No OFD packet to send [05:26:31]OFD Sender: No OFD packet to send [05:26:36]OFD Sender: No OFD packet to send [05:26:41]OFD Sender: No OFD packet to send [05:26:46]OFD Sender: No OFD packet to send [05:26:51]OFD Sender: No OFD packet to send [05:26:56]OFD Sender: No OFD packet to send [05:27:01]OFD Sender: No OFD packet to send [05:27:06]OFD Sender: No OFD packet to send [05:27:11]OFD Sender: No OFD packet to send [05:27:16]OFD Sender: No OFD packet to send [05:27:21]OFD Sender: No OFD packet to send [05:27:26]OFD Sender: No OFD packet to send [05:27:31]OFD Sender: No OFD packet to send [05:27:36]OFD Sender: No OFD packet to send [05:27:41]OFD Sender: No OFD packet to send [05:27:46]OFD Sender: No OFD packet to send [05:27:51]OFD Sender: No OFD packet to send [05:27:56]OFD Sender: No OFD packet to send [05:28:01]OFD Sender: No OFD packet to send [05:28:06]OFD Sender: No OFD packet to send [05:28:11]OFD Sender: No OFD packet to send [05:28:16]OFD Sender: No OFD packet to send [05:28:21]OFD Sender: No OFD packet to send [05:28:26]OFD Sender: No OFD packet to send [05:28:31]OFD Sender: No OFD packet to send [05:28:36]OFD Sender: No OFD packet to send [05:28:41]OFD Sender: No OFD packet to send [05:28:46]OFD Sender: No OFD packet to send [05:28:51]OFD Sender: No OFD packet to send [05:28:56]OFD Sender: No OFD packet to send [05:29:01]OFD Sender: No OFD packet to send [05:29:06]OFD Sender: No OFD packet to send [05:29:11]OFD Sender: No OFD packet to send [05:29:16]OFD Sender: No OFD packet to send [05:29:21]OFD Sender: No OFD packet to send [05:29:26]OFD Sender: No OFD packet to send [05:29:31]OFD Sender: No OFD packet to send [05:29:36]OFD Sender: No OFD packet to send [05:29:41]OFD Sender: No OFD packet to send [05:29:46]OFD Sender: No OFD packet to send [05:29:51]OFD Sender: No OFD packet to send [05:29:56]OFD Sender: No OFD packet to send [05:30:01]OFD Sender: No OFD packet to send [05:30:06]OFD Sender: No OFD packet to send [05:30:11]OFD Sender: No OFD packet to send [05:30:16]OFD Sender: No OFD packet to send [05:30:21]OFD Sender: No OFD packet to send [05:30:26]OFD Sender: No OFD packet to send [05:30:31]OFD Sender: No OFD packet to send [05:30:36]OFD Sender: No OFD packet to send [05:30:41]OFD Sender: No OFD packet to send [05:30:46]OFD Sender: No OFD packet to send [05:30:51]OFD Sender: No OFD packet to send [05:30:56]OFD Sender: No OFD packet to send [05:31:01]OFD Sender: No OFD packet to send [05:31:06]OFD Sender: No OFD packet to send [05:31:11]OFD Sender: No OFD packet to send [05:31:16]OFD Sender: No OFD packet to send [05:31:21]OFD Sender: No OFD packet to send [05:31:26]OFD Sender: No OFD packet to send [05:31:31]OFD Sender: No OFD packet to send [05:31:36]OFD Sender: No OFD packet to send [05:31:41]OFD Sender: No OFD packet to send [05:31:46]OFD Sender: No OFD packet to send [05:31:51]OFD Sender: No OFD packet to send [05:31:56]OFD Sender: No OFD packet to send [05:32:01]OFD Sender: No OFD packet to send [05:32:06]OFD Sender: No OFD packet to send [05:32:11]OFD Sender: No OFD packet to send [05:32:16]OFD Sender: No OFD packet to send [05:32:21]OFD Sender: No OFD packet to send [05:32:26]OFD Sender: No OFD packet to send [05:32:31]OFD Sender: No OFD packet to send [05:32:36]OFD Sender: No OFD packet to send [05:32:41]OFD Sender: No OFD packet to send [05:32:46]OFD Sender: No OFD packet to send [05:32:51]OFD Sender: No OFD packet to send [05:32:56]OFD Sender: No OFD packet to send [05:33:01]OFD Sender: No OFD packet to send [05:33:06]OFD Sender: No OFD packet to send [05:33:11]OFD Sender: No OFD packet to send [05:33:16]OFD Sender: No OFD packet to send [05:33:21]OFD Sender: No OFD packet to send [05:33:26]OFD Sender: No OFD packet to send [05:33:31]OFD Sender: No OFD packet to send [05:33:36]OFD Sender: No OFD packet to send [05:33:41]OFD Sender: No OFD packet to send [05:33:46]OFD Sender: No OFD packet to send [05:33:51]OFD Sender: No OFD packet to send [05:33:56]OFD Sender: No OFD packet to send [05:34:01]OFD Sender: No OFD packet to send [05:34:06]OFD Sender: No OFD packet to send [05:34:11]OFD Sender: No OFD packet to send [05:34:16]OFD Sender: No OFD packet to send [05:34:21]OFD Sender: No OFD packet to send [05:34:26]OFD Sender: No OFD packet to send [05:34:31]OFD Sender: No OFD packet to send [05:34:36]OFD Sender: No OFD packet to send [05:34:41]OFD Sender: No OFD packet to send [05:34:46]OFD Sender: No OFD packet to send [05:34:51]OFD Sender: No OFD packet to send [05:34:56]OFD Sender: No OFD packet to send [05:35:01]OFD Sender: No OFD packet to send [05:35:06]OFD Sender: No OFD packet to send [05:35:11]OFD Sender: No OFD packet to send [05:35:16]OFD Sender: No OFD packet to send [05:35:21]OFD Sender: No OFD packet to send [05:35:26]OFD Sender: No OFD packet to send [05:35:31]OFD Sender: No OFD packet to send [05:35:36]OFD Sender: No OFD packet to send [05:35:41]OFD Sender: No OFD packet to send [05:35:46]OFD Sender: No OFD packet to send [05:35:51]OFD Sender: No OFD packet to send [05:35:56]OFD Sender: No OFD packet to send [05:36:01]OFD Sender: No OFD packet to send [05:36:06]OFD Sender: No OFD packet to send [05:36:11]OFD Sender: No OFD packet to send [05:36:16]OFD Sender: No OFD packet to send [05:36:21]OFD Sender: No OFD packet to send [05:36:26]OFD Sender: No OFD packet to send [05:36:31]OFD Sender: No OFD packet to send [05:36:36]OFD Sender: No OFD packet to send [05:36:41]OFD Sender: No OFD packet to send [05:36:46]OFD Sender: No OFD packet to send [05:36:51]OFD Sender: No OFD packet to send [05:36:56]OFD Sender: No OFD packet to send [05:37:01]OFD Sender: No OFD packet to send [05:37:06]OFD Sender: No OFD packet to send [05:37:11]OFD Sender: No OFD packet to send [05:37:16]OFD Sender: No OFD packet to send [05:37:21]OFD Sender: No OFD packet to send [05:37:26]OFD Sender: No OFD packet to send [05:37:31]OFD Sender: No OFD packet to send [05:37:36]OFD Sender: No OFD packet to send [05:37:41]OFD Sender: No OFD packet to send [05:37:46]OFD Sender: No OFD packet to send [05:37:51]OFD Sender: No OFD packet to send [05:37:57]OFD Sender: No OFD packet to send [05:38:02]OFD Sender: No OFD packet to send [05:38:07]OFD Sender: No OFD packet to send [05:38:12]OFD Sender: No OFD packet to send [05:38:17]OFD Sender: No OFD packet to send [05:38:22]OFD Sender: No OFD packet to send [05:38:27]OFD Sender: No OFD packet to send [05:38:32]OFD Sender: No OFD packet to send [05:38:37]OFD Sender: No OFD packet to send [05:38:42]OFD Sender: No OFD packet to send [05:38:47]OFD Sender: No OFD packet to send [05:38:52]OFD Sender: No OFD packet to send [05:38:57]OFD Sender: No OFD packet to send [05:39:02]OFD Sender: No OFD packet to send [05:39:07]OFD Sender: No OFD packet to send [05:39:12]OFD Sender: No OFD packet to send [05:39:17]OFD Sender: No OFD packet to send [05:39:22]OFD Sender: No OFD packet to send [05:39:27]OFD Sender: No OFD packet to send [05:39:32]OFD Sender: No OFD packet to send [05:39:37]OFD Sender: No OFD packet to send [05:39:42]OFD Sender: No OFD packet to send [05:39:47]OFD Sender: No OFD packet to send [05:39:52]OFD Sender: No OFD packet to send [05:39:57]OFD Sender: No OFD packet to send [05:40:02]OFD Sender: No OFD packet to send [05:40:07]OFD Sender: No OFD packet to send [05:40:12]OFD Sender: No OFD packet to send [05:40:17]OFD Sender: No OFD packet to send [05:40:22]OFD Sender: No OFD packet to send [05:40:27]OFD Sender: No OFD packet to send [05:40:32]OFD Sender: No OFD packet to send [05:40:37]OFD Sender: No OFD packet to send [05:40:42]OFD Sender: No OFD packet to send [05:40:47]OFD Sender: No OFD packet to send [05:40:52]OFD Sender: No OFD packet to send [05:40:57]OFD Sender: No OFD packet to send [05:41:02]OFD Sender: No OFD packet to send [05:41:07]OFD Sender: No OFD packet to send [05:41:12]OFD Sender: No OFD packet to send [05:41:17]OFD Sender: No OFD packet to send [05:41:22]OFD Sender: No OFD packet to send [05:41:27]OFD Sender: No OFD packet to send [05:41:32]OFD Sender: No OFD packet to send [05:41:37]OFD Sender: No OFD packet to send [05:41:42]OFD Sender: No OFD packet to send [05:41:47]OFD Sender: No OFD packet to send [05:41:52]OFD Sender: No OFD packet to send [05:41:57]OFD Sender: No OFD packet to send [05:42:02]OFD Sender: No OFD packet to send [05:42:07]OFD Sender: No OFD packet to send [05:42:12]OFD Sender: No OFD packet to send [05:42:17]OFD Sender: No OFD packet to send [05:42:22]OFD Sender: No OFD packet to send [05:42:27]OFD Sender: No OFD packet to send [05:42:32]OFD Sender: No OFD packet to send [05:42:37]OFD Sender: No OFD packet to send [05:42:42]OFD Sender: No OFD packet to send [05:42:47]OFD Sender: No OFD packet to send [05:42:52]OFD Sender: No OFD packet to send [05:42:57]OFD Sender: No OFD packet to send [05:43:02]OFD Sender: No OFD packet to send [05:43:07]OFD Sender: No OFD packet to send [05:43:10]accept exits with 7 [05:43:10]New connection [05:43:10]New thread 3066785124 created [05:43:10]Thread 3066928484 joined [05:43:10]Waiting for new connection... [05:43:10] Sock 7.Parse request [05:43:10]Sock 7.Check first char [05:43:10]Sock 7.First char is OK [05:43:10]request: POST /json_proto HTTP/1.0 [05:43:10]Method: POST [05:43:10]URL: /json_proto [05:43:10]Method is POST - this is cgi request [05:43:10]url: /json_proto [05:43:10]query_string will be loaded in cgi processing [05:43:10]execute_cgi json_proto POST (null) [05:43:10]execute_cgi path=json_proto method=POST [05:43:10]POST find Content-Length [05:43:10]Host: 172.17.33.3:8080 [05:43:10]Content-Length: 677 [05:43:10]Content-Type: application/json [05:43:10] [05:43:10]POST finish read [05:43:10]Found Content-Length = 677 [05:43:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347479", "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" : 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" ] } } [05:43:10]execute_script... [05: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)347479", "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" : 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" ] } } [05:43:10]POST & json_proto [05:43:10]process_json_proto [05:43:10]json parsed OK: [05:43:10]protocol is kg_v1.0 [05:43:10]action value=close_receipt [05:43:10]process_action close_receipt [05:43:10]cmd_close_receipt [05:43:10]MH_GetDate [05:43:10]Write to MH i2c: F0 00 00 13 76 78 [05:43:10]Write i2c OK [05:43:10]MH_I2C_Read... [05:43:10]Read from MH i2c: F0 [05:43:10]MH_I2C_Read... [05:43:10]Read from MH i2c: F0 09 00 [05:43:10]MH_I2C_Read... [05:43:10]Read from MH i2c: F0 09 00 13 76 00 F6 6C 1B 66 23 5B 8F 65 D6 [05:43:10]GetLastDocTimeStamp 1713071721 [05:43:10]current date 1713073398 [05:43:10]FM_GetShiftState [05:43:10]SAM_PROTO_GetShiftState [05:43:10]wFMCommunicate request_size=4 [05:43:10]MH_SAM_APDU [05:43:10]CAPDU: 80 13 01 00 [05:43:10]Write to MH i2c: E2 08 00 14 76 80 13 01 00 00 00 00 00 07 [05:43:10]Write i2c OK [05:43:10]MH_I2C_Read... [05:43:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:43:10]Read from MH i2c: E2 [05:43:10]MH_I2C_Read... [05:43:10]Read from MH i2c: E2 0E 00 [05:43:10]MH_I2C_Read... [05:43:10]Read from MH i2c: E2 0E 00 14 76 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 B3 [05:43:10]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [05:43:10]wFMCommunicate OK [05:43:10]SAM_PROTO_GetShiftState done [05:43:10]FM_GetShiftState done [05:43:10]opened in 1713053951 [05:43:10]opened+sec_in_day 1713140351 [05:43:10]quantity*price = 40058 [05:43:10]sum+1 = 40060 [05:43:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.54 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 21 14.04.2024 05:43 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29111 ФПД: 225773281295663 1/tax-web-control/client/api/v1/ticket?date=20240414T054318&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29111&fm=225773281295663&tin=02508201610067®Number=0000138879044617&sum=40000 [05:43:11]StoreToDocumentArchive [05:43:11]shift 116 fd 29111 [05:43:11]save to /storage/0116/doc_00029111 [05:43:11]save last doc name /storage/0116/doc_00029111 to /storage/kkm_last_doc_name [05:43:11]save OK [05:43:11]Clear old archive folders... [05:43:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:43:11]tlvbuf is 011EE530 [05:43:11]SAM_PROTO_ClearQueue [05:43:11]wFMCommunicate request_size=4 [05:43:11]MH_SAM_APDU [05:43:11]CAPDU: 80 09 00 00 [05:43:11]Write to MH i2c: E2 08 00 21 76 80 09 00 00 00 00 00 00 09 [05:43:11]Write i2c OK [05:43:11]MH_I2C_Read... [05:43:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:43:11]Read from MH i2c: E2 [05:43:11]MH_I2C_Read... [05:43:11]Read from MH i2c: E2 03 00 [05:43:11]MH_I2C_Read... [05:43:11]Read from MH i2c: E2 03 00 21 76 00 90 00 0B [05:43:11]RAPDU: 90 00 [05:43:11]wFMCommunicate OK [05:43:11]SAM_PROTO_ClearQueue done [05:43:11]KKMCreateOFDPacket [05:43:11]OFDProtocolAddRootSTLVToBuf [05:43:11]FM_MakeSignedData [05:43:11]FM_MakeSignedData [05:43:11]SAM_PROTO_SignData [05:43:11]wFMCommunicate request_size=4 [05:43:11]MH_SAM_APDU [05:43:11]CAPDU: 80 0D 01 02 [05:43:11]Write to MH i2c: E2 08 00 22 76 80 0D 01 02 00 00 00 00 11 [05:43:11]Write i2c OK [05:43:11]MH_I2C_Read... [05:43:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:43:11]Read from MH i2c: E2 [05:43:11]MH_I2C_Read... [05:43:11]Read from MH i2c: E2 03 00 [05:43:11]MH_I2C_Read... [05:43:11]Read from MH i2c: E2 03 00 22 76 00 90 00 0C [05:43:11]RAPDU: 90 00 [05:43:11]wFMCommunicate OK [05:43:11]wFMCommunicate request_size=255 [05:43:11]MH_SAM_APDU [05:43: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 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 15 00 00 00 F4 03 04 00 F6 6C 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B7 71 00 00 35 04 06 00 CD [05:43:11]Write to MH i2c: E2 02 01 23 76 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 15 00 00 00 F4 03 04 00 F6 6C 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B7 71 00 00 35 04 06 00 CD 00 00 1E [05:43:11]Write i2c OK [05:43:11]MH_I2C_Read... [05:43:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:43:11]Read from MH i2c: E2 [05:43:11]MH_I2C_Read... [05:43:11]Read from MH i2c: E2 03 00 [05:43:11]MH_I2C_Read... [05:43:11]Read from MH i2c: E2 03 00 23 76 00 90 00 0D [05:43:11]RAPDU: 90 00 [05:43:11]wFMCommunicate OK [05:43:11]wFMCommunicate request_size=10 [05:43:11]MH_SAM_APDU [05:43:11]CAPDU: 80 0D 02 02 05 56 F0 3B 3D 2F [05:43:11]Write to MH i2c: E2 0D 00 24 76 80 0D 02 02 05 00 56 F0 3B 3D 2F 00 00 0B [05:43:11]Write i2c OK [05:43:11]MH_I2C_Read... [05:43:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:43:11]Read from MH i2c: E2 [05:43:11]MH_I2C_Read... [05:43:11]Read from MH i2c: E2 03 00 [05:43:11]MH_I2C_Read... [05:43:11]Read from MH i2c: E2 03 00 24 76 00 90 00 0E [05:43:11]RAPDU: 90 00 [05:43:11]wFMCommunicate OK [05:43:11]wFMCommunicate request_size=4 [05:43:11]MH_SAM_APDU [05:43:11]CAPDU: 80 0D 03 02 [05:43:11]Write to MH i2c: E2 08 00 25 76 80 0D 03 02 00 00 00 00 16 [05:43:11]Write i2c OK [05:43:11]MH_I2C_Read... [05:43:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:43:11]Read from MH i2c: E2 [05:43:11]MH_I2C_Read... [05:43:11]Read from MH i2c: E2 0B 00 [05:43:11]MH_I2C_Read... [05:43:11]Read from MH i2c: E2 0B 00 25 76 00 1B D3 D8 9D 33 F3 8F 72 90 00 A1 [05:43:11]RAPDU: 1B D3 D8 9D 33 F3 8F 72 90 00 [05:43:11]wFMCommunicate OK [05:43:11]SAM_PROTO_SignData done [05:43:11]FM_MakeSignedData done [05:43:11]CreateOFDProtocolMessage [05:43:11]wFMCommunicate request_size=4 [05:43:11]MH_SAM_APDU [05:43:11]CAPDU: 80 11 00 00 [05:43:11]Write to MH i2c: E2 08 00 26 76 80 11 00 00 00 00 00 00 16 [05:43:11]Write i2c OK [05:43:11]MH_I2C_Read... [05:43:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:43:11]Read from MH i2c: E2 [05:43:11]MH_I2C_Read... [05:43:11]Read from MH i2c: E2 17 00 [05:43:11]MH_I2C_Read... [05:43:11]Read from MH i2c: E2 17 00 26 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 65 [05:43:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [05:43:11]wFMCommunicate OK [05:43:11]CreateOFDProtocolMessage done [05:43:11]OFDSenderStorePacket 29111 [05:43:11]StoreOFDPacket docnum=29111 [05:43:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 F5 F9 07 01 96 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 15 00 00 00 F4 03 04 00 F6 6C 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B7 71 00 00 35 04 06 00 CD 56 F0 3B 3D 2F 1B D3 D8 9D 33 F3 8F 72 [05:43:11]CheckFolder [05:43:11]dirname=/storage/ofd_packets [05:43:11]CheckFolder done [05:43:11]ProducePacketName [05:43:11]name=ofd_packets/00029111 [05:43:11]NVStorageSaveData ofd_packets/00029111 [05:43:11]File name is /storage/ofd_packets/00029111 [05:43:11]Write 301 bytes [05:43:11]NVStorageSaveData done [05:43:11]OFDSenderStorePacket done [05:43:11]KKMCreateOFDPacket done [05:43:11]NVStorageSaveData kkm_last_timestamp [05:43:11]File name is /storage/kkm_last_timestamp [05:43:11]Write 4 bytes [05:43:11]NVStorageSaveData done [05:43:11]ExternCall_PrintAddStr [05:43:11]wPrintStart [05:43:11]Write to MH i2c: 01 00 00 27 76 9D [05:43:11]Write i2c OK [05:43:11]MH_I2C_Read... [05:43:11]Read from MH i2c: 01 [05:43:11]MH_I2C_Read... [05:43:11]Read from MH i2c: 01 07 00 [05:43:11]MH_I2C_Read... [05:43:11]Read from MH i2c: 01 07 00 27 76 00 00 00 00 00 FF 0F B2 [05:43:11]RasterBufferAndPrint [05:43:11]line Счет N : (1)347479 [05:43:11]line ИНН: 02508201610067 [05:43:11]line Контрольно-Кассовый Чек [05:43:11]line ПРОДАЖА [05:43:11]line ТРК (МРК, ГНК) : 42 [05:43:11]line Товар: 2710124130 [05:43:11]line Аи-92-К-5 [05:43:11]line 6.230 * 64.30 [05:43:11]line = 400.59 [05:43:11]line НДС 12% НСП 1% [05:43:11]line > о реализуемом товаре [05:43:11]line ОКРУГЛЕНИЕ: -0.59 [05:43:11]line ИТОГО: 400.00 [05:43:11]line Внесено: 400.00 [05:43:11]line СДАЧА: 0.00 [05:43:11]line НСП 1% : 3.54 [05:43:11]line НДС 12% : 42.54 [05:43:11]line Наличными: 400.00 [05:43:11]line Безнал.: 0.00 [05:43:11]line Место: АЗС № 108 "Партнер Нефть" [05:43:11]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [05:43:11]line СНО: Общий режим [05:43:11]line Чек 21 14.04.2024 05:43 [05:43:11]line Смена: 116 ФФД: 1.0 [05:43:11]line ЗНМ: 0300000027 [05:43:11]line РНМ: 0000138879044617 [05:43:11]line Версия ККМ: 001 [05:43:11]line ФМ: 0000000000963154 [05:43:11]line ФД: 29111 [05:43:11]line ФПД: 225773281295663 [05:43:11]line 1/tax-web-control/client/api/v1/ticket?date=20240414T054318&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29111&fm=225773281295663&tin=02508201610067®Number=0000138879044617&sum=40000 [05:43:12]OFD Sender: Processing packet 29111 [packets to send 8, broken 7] [05:43:12]ProducePacketName [05:43:12]name=ofd_packets/00029111 [05:43:12]OFD Sender: To server: pG, [05:43:12]CommunicateWithHost lk.salyk.kg:30040 [05:43:12]ConnectInit lk.salyk.kg [05:43:12]written 0, free lines is 4095 [05:43:12]Connected sock=10 [05:43:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 F5 F9 07 01 96 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 15 00 00 00 F4 03 04 00 F6 6C 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B7 71 00 00 35 04 06 00 CD 56 F0 3B 3D 2F 1B D3 D8 9D 33 F3 8F 72 [05:43:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 7C F7 47 00 83 93 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B7 71 00 00 F4 03 04 00 9B 17 1B 66 B6 04 01 00 00 BC 98 5E D8 0F 89 95 C5 [05:43:12]CommunicateWithHost err = 0 [05:43:12]CheckOFDResponse [05:43:12]1017 (14) - 77093643461234 [05:43:12]1041 (16) - 0000000000963154 [05:43:12]1040 (4) - 29111 [05:43:12]1012 (4) - 13.04.2024 23:39 [05:43:12]1206 (1) - 0 [05:43:12]OFD Sender: Remove packet 29111 [05:43:12]ProducePacketName [05:43:12]name=ofd_packets/00029111 [05:43:12]NVStorageDeleteData [05:43:12]Write to MH i2c: 01 00 00 51 76 C7 [05:43:12]Write i2c OK [05:43:12]MH_I2C_Read... [05:43:12]Read from MH i2c: 01 [05:43:12]MH_I2C_Read... [05:43:12]Read from MH i2c: 01 07 00 [05:43:12]MH_I2C_Read... [05:43:12]Read from MH i2c: 01 07 00 51 76 00 00 00 00 00 D5 0C AF [05:43:12]RasterBufferAndPrint [05:43:12]line [05:43:12]line [05:43:12]line [05:43:12]line [05:43:12]line [05:43:12]written 0, free lines is 3292 [05:43:12]MH_Cut [05:43:12]Write to MH i2c: D1 01 00 58 76 01 A0 [05:43:12]Write i2c OK [05:43:12]MH_I2C_Read... [05:43:12]Read from MH i2c: D1 [05:43:12]MH_I2C_Read... [05:43:12]Read from MH i2c: D1 01 00 [05:43:12]MH_I2C_Read... [05:43:12]Read from MH i2c: D1 01 00 58 76 00 9F [05:43:12]Write to MH i2c: 01 00 00 59 76 CF [05:43:12]Write i2c OK [05:43:12]MH_I2C_Read... [05:43:13]OFD Sender: No OFD packet to send [05:43:13]*** Cut start [05:43:13]*** Partial cut [05:43:13]*** CUTSNS_PIN = 1 [05:43:13]*** CUTSNS_PIN = 0 [05:43:13]*** Brake cut motor [05:43:14]Read from MH i2c: 01 [05:43:14]MH_I2C_Read... [05:43:14]*** Stop cut motor [05:43:14]*** Cut end [05:43:14]Read from MH i2c: 01 07 00 [05:43:14]MH_I2C_Read... [05:43:14]Read from MH i2c: 01 07 00 59 76 00 00 00 00 00 FF 0F E4 [05:43:14]process_action close_receipt done [05:43:14]requested_data is exist [05:43:14]produce_requested_data [05:43:14]requested_item fm.sn is exist - process it [05:43:14]wFMCommunicate request_size=4 [05:43:14]MH_SAM_APDU [05:43:14]CAPDU: 80 11 00 00 [05:43:14]Write to MH i2c: E2 08 00 5A 76 80 11 00 00 00 00 00 00 4A [05:43:14]Write i2c OK [05:43:14]MH_I2C_Read... [05:43:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:43:14]Read from MH i2c: E2 [05:43:14]MH_I2C_Read... [05:43:14]Read from MH i2c: E2 17 00 [05:43:14]MH_I2C_Read... [05:43:14]Read from MH i2c: E2 17 00 5A 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 99 [05:43:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [05:43:14]wFMCommunicate OK [05:43:14]requested_item fd.num is exist - process it [05:43:14]SAM_PROTO_GetFieldsCounters [05:43:14]wFMCommunicate request_size=4 [05:43:14]MH_SAM_APDU [05:43:14]CAPDU: 80 13 00 00 [05:43:14]Write to MH i2c: E2 08 00 5B 76 80 13 00 00 00 00 00 00 4D [05:43:14]Write i2c OK [05:43:14]MH_I2C_Read... [05:43:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:43:14]Read from MH i2c: E2 [05:43:14]MH_I2C_Read... [05:43:14]Read from MH i2c: E2 62 00 [05:43:14]MH_I2C_Read... [05:43:14]Read from MH i2c: E2 62 00 5B 76 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B7 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 66 [05:43:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B7 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:43:14]wFMCommunicate OK [05:43:14]SAM_PROTO_GetFieldsCounters done [05:43:14]requested_item shift.num is exist - process it [05:43:14]requested_item shift.opened is exist - process it [05:43:14]req_shift_opened [05:43:14]FM_GetShiftState [05:43:14]SAM_PROTO_GetShiftState [05:43:14]wFMCommunicate request_size=4 [05:43:14]MH_SAM_APDU [05:43:14]CAPDU: 80 13 01 00 [05:43:14]Write to MH i2c: E2 08 00 5C 76 80 13 01 00 00 00 00 00 4F [05:43:14]Write i2c OK [05:43:14]MH_I2C_Read... [05:43:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:43:14]Read from MH i2c: E2 [05:43:14]MH_I2C_Read... [05:43:14]Read from MH i2c: E2 0E 00 [05:43:14]MH_I2C_Read... [05:43:14]Read from MH i2c: E2 0E 00 5C 76 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 FB [05:43:14]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [05:43:14]wFMCommunicate OK [05:43:14]SAM_PROTO_GetShiftState done [05:43:14]FM_GetShiftState done [05:43:14]req_shift_opened done [05:43:14]requested_item shift.open_date is exist - process it [05:43:14]req_shift_open_date [05:43:14]req_shift_open_date done [05:43:14]produce_requested_data done [05:43:14]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29111,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [05:43:14]process_action_free close_receipt [05:43:14]json_value_free [05:43:14]json_value_free done [05:43:14]process_json_proto returns [05:43:14]Send response to host [05:43:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29111,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [05:43:14]free response buf [05:43:14]execute_script done [05:43:14]execute_script returns [05:43:14]free content buf [05:43:14]Sock 7.Close socket [05:43:14]Sock 7.Thread stoped [05:43:18]OFD Sender: No OFD packet to send [05:43:23]OFD Sender: No OFD packet to send [05:43:28]OFD Sender: No OFD packet to send [05:43:33]OFD Sender: No OFD packet to send [05:43:38]OFD Sender: No OFD packet to send [05:43:43]OFD Sender: No OFD packet to send [05:43:48]OFD Sender: No OFD packet to send [05:43:53]OFD Sender: No OFD packet to send [05:43:58]OFD Sender: No OFD packet to send [05:44:03]OFD Sender: No OFD packet to send [05:44:08]OFD Sender: No OFD packet to send [05:44:13]OFD Sender: No OFD packet to send [05:44:18]OFD Sender: No OFD packet to send [05:44:23]OFD Sender: No OFD packet to send [05:44:28]OFD Sender: No OFD packet to send [05:44:33]OFD Sender: No OFD packet to send [05:44:38]OFD Sender: No OFD packet to send [05:44:43]OFD Sender: No OFD packet to send [05:44:48]OFD Sender: No OFD packet to send [05:44:53]OFD Sender: No OFD packet to send [05:44:58]OFD Sender: No OFD packet to send [05:45:03]OFD Sender: No OFD packet to send [05:45:08]OFD Sender: No OFD packet to send [05:45:13]OFD Sender: No OFD packet to send [05:45:18]OFD Sender: No OFD packet to send [05:45:23]OFD Sender: No OFD packet to send [05:45:28]OFD Sender: No OFD packet to send [05:45:33]OFD Sender: No OFD packet to send [05:45:38]OFD Sender: No OFD packet to send [05:45:43]OFD Sender: No OFD packet to send [05:45:48]OFD Sender: No OFD packet to send [05:45:53]OFD Sender: No OFD packet to send [05:45:58]OFD Sender: No OFD packet to send [05:46:03]OFD Sender: No OFD packet to send [05:46:08]OFD Sender: No OFD packet to send [05:46:13]OFD Sender: No OFD packet to send [05:46:18]OFD Sender: No OFD packet to send [05:46:23]OFD Sender: No OFD packet to send [05:46:28]OFD Sender: No OFD packet to send [05:46:33]OFD Sender: No OFD packet to send [05:46:38]OFD Sender: No OFD packet to send [05:46:43]OFD Sender: No OFD packet to send [05:46:48]OFD Sender: No OFD packet to send [05:46:53]OFD Sender: No OFD packet to send [05:46:58]OFD Sender: No OFD packet to send [05:47:03]OFD Sender: No OFD packet to send [05:47:08]OFD Sender: No OFD packet to send [05:47:13]OFD Sender: No OFD packet to send [05:47:18]OFD Sender: No OFD packet to send [05:47:23]OFD Sender: No OFD packet to send [05:47:28]OFD Sender: No OFD packet to send [05:47:33]OFD Sender: No OFD packet to send [05:47:38]OFD Sender: No OFD packet to send [05:47:43]OFD Sender: No OFD packet to send [05:47:48]OFD Sender: No OFD packet to send [05:47:53]OFD Sender: No OFD packet to send [05:47:58]OFD Sender: No OFD packet to send [05:48:03]OFD Sender: No OFD packet to send [05:48:08]OFD Sender: No OFD packet to send [05:48:13]OFD Sender: No OFD packet to send [05:48:18]OFD Sender: No OFD packet to send [05:48:23]OFD Sender: No OFD packet to send [05:48:28]OFD Sender: No OFD packet to send [05:48:33]OFD Sender: No OFD packet to send [05:48:38]OFD Sender: No OFD packet to send [05:48:43]OFD Sender: No OFD packet to send [05:48:48]OFD Sender: No OFD packet to send [05:48:53]OFD Sender: No OFD packet to send [05:48:58]OFD Sender: No OFD packet to send [05:49:03]OFD Sender: No OFD packet to send [05:49:08]OFD Sender: No OFD packet to send [05:49:13]OFD Sender: No OFD packet to send [05:49:18]OFD Sender: No OFD packet to send [05:49:23]OFD Sender: No OFD packet to send [05:49:28]OFD Sender: No OFD packet to send [05:49:33]OFD Sender: No OFD packet to send [05:49:38]OFD Sender: No OFD packet to send [05:49:43]OFD Sender: No OFD packet to send [05:49:48]OFD Sender: No OFD packet to send [05:49:53]OFD Sender: No OFD packet to send [05:49:58]OFD Sender: No OFD packet to send [05:50:03]OFD Sender: No OFD packet to send [05:50:08]OFD Sender: No OFD packet to send [05:50:13]OFD Sender: No OFD packet to send [05:50:18]OFD Sender: No OFD packet to send [05:50:23]OFD Sender: No OFD packet to send [05:50:28]OFD Sender: No OFD packet to send [05:50:33]OFD Sender: No OFD packet to send [05:50:38]OFD Sender: No OFD packet to send [05:50:43]OFD Sender: No OFD packet to send [05:50:48]OFD Sender: No OFD packet to send [05:50:53]OFD Sender: No OFD packet to send [05:50:58]OFD Sender: No OFD packet to send [05:51:03]OFD Sender: No OFD packet to send [05:51:08]OFD Sender: No OFD packet to send [05:51:13]OFD Sender: No OFD packet to send [05:51:18]OFD Sender: No OFD packet to send [05:51:23]OFD Sender: No OFD packet to send [05:51:28]OFD Sender: No OFD packet to send [05:51:33]OFD Sender: No OFD packet to send [05:51:38]OFD Sender: No OFD packet to send [05:51:43]OFD Sender: No OFD packet to send [05:51:48]OFD Sender: No OFD packet to send [05:51:53]OFD Sender: No OFD packet to send [05:51:58]OFD Sender: No OFD packet to send [05:52:03]OFD Sender: No OFD packet to send [05:52:08]OFD Sender: No OFD packet to send [05:52:13]OFD Sender: No OFD packet to send [05:52:18]OFD Sender: No OFD packet to send [05:52:23]OFD Sender: No OFD packet to send [05:52:28]OFD Sender: No OFD packet to send [05:52:33]OFD Sender: No OFD packet to send [05:52:38]OFD Sender: No OFD packet to send [05:52:43]OFD Sender: No OFD packet to send [05:52:48]OFD Sender: No OFD packet to send [05:52:53]OFD Sender: No OFD packet to send [05:52:58]OFD Sender: No OFD packet to send [05:53:03]OFD Sender: No OFD packet to send [05:53:08]OFD Sender: No OFD packet to send [05:53:13]OFD Sender: No OFD packet to send [05:53:18]OFD Sender: No OFD packet to send [05:53:23]OFD Sender: No OFD packet to send [05:53:28]OFD Sender: No OFD packet to send [05:53:33]OFD Sender: No OFD packet to send [05:53:38]OFD Sender: No OFD packet to send [05:53:43]OFD Sender: No OFD packet to send [05:53:48]OFD Sender: No OFD packet to send [05:53:53]OFD Sender: No OFD packet to send [05:53:58]OFD Sender: No OFD packet to send [05:54:03]OFD Sender: No OFD packet to send [05:54:08]OFD Sender: No OFD packet to send [05:54:13]OFD Sender: No OFD packet to send [05:54:18]OFD Sender: No OFD packet to send [05:54:23]OFD Sender: No OFD packet to send [05:54:28]OFD Sender: No OFD packet to send [05:54:33]OFD Sender: No OFD packet to send [05:54:38]OFD Sender: No OFD packet to send [05:54:43]OFD Sender: No OFD packet to send [05:54:48]OFD Sender: No OFD packet to send [05:54:53]OFD Sender: No OFD packet to send [05:54:58]OFD Sender: No OFD packet to send [05:55:03]OFD Sender: No OFD packet to send [05:55:08]OFD Sender: No OFD packet to send [05:55:13]OFD Sender: No OFD packet to send [05:55:18]OFD Sender: No OFD packet to send [05:55:23]OFD Sender: No OFD packet to send [05:55:28]OFD Sender: No OFD packet to send [05:55:33]OFD Sender: No OFD packet to send [05:55:38]OFD Sender: No OFD packet to send [05:55:43]OFD Sender: No OFD packet to send [05:55:48]OFD Sender: No OFD packet to send [05:55:53]OFD Sender: No OFD packet to send [05:55:58]OFD Sender: No OFD packet to send [05:56:03]OFD Sender: No OFD packet to send [05:56:08]OFD Sender: No OFD packet to send [05:56:13]OFD Sender: No OFD packet to send [05:56:18]OFD Sender: No OFD packet to send [05:56:23]OFD Sender: No OFD packet to send [05:56:28]OFD Sender: No OFD packet to send [05:56:33]OFD Sender: No OFD packet to send [05:56:38]OFD Sender: No OFD packet to send [05:56:43]OFD Sender: No OFD packet to send [05:56:48]OFD Sender: No OFD packet to send [05:56:53]OFD Sender: No OFD packet to send [05:56:58]OFD Sender: No OFD packet to send [05:57:03]OFD Sender: No OFD packet to send [05:57:08]OFD Sender: No OFD packet to send [05:57:13]OFD Sender: No OFD packet to send [05:57:18]OFD Sender: No OFD packet to send [05:57:23]OFD Sender: No OFD packet to send [05:57:28]OFD Sender: No OFD packet to send [05:57:33]OFD Sender: No OFD packet to send [05:57:38]OFD Sender: No OFD packet to send [05:57:43]OFD Sender: No OFD packet to send [05:57:48]OFD Sender: No OFD packet to send [05:57:53]OFD Sender: No OFD packet to send [05:57:58]OFD Sender: No OFD packet to send [05:58:01]accept exits with 9 [05:58:01]New connection [05:58:01]New thread 3066928484 created [05:58:01]Thread 3066785124 joined [05:58:01]Waiting for new connection... [05:58:01] Sock 9.Parse request [05:58:01]Sock 9.Check first char [05:58:01]Sock 9.First char is OK [05:58:01]request: POST /json_proto HTTP/1.0 [05:58:01]Method: POST [05:58:01]URL: /json_proto [05:58:01]Method is POST - this is cgi request [05:58:01]url: /json_proto [05:58:01]query_string will be loaded in cgi processing [05:58:01]execute_cgi json_proto POST (null) [05:58:01]execute_cgi path=json_proto method=POST [05:58:01]POST find Content-Length [05:58:01]Host: 172.17.33.3:8080 [05:58:01]Content-Length: 670 [05:58:01]Content-Type: application/json [05:58:01] [05:58:01]POST finish read [05:58:01]Found Content-Length = 670 [05:58:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347480", "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" ] } } [05:58:01]execute_script... [05:58:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347480", "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" ] } } [05:58:01]POST & json_proto [05:58:01]process_json_proto [05:58:01]json parsed OK: [05:58:01]protocol is kg_v1.0 [05:58:01]action value=close_receipt [05:58:01]process_action close_receipt [05:58:01]cmd_close_receipt [05:58:01]MH_GetDate [05:58:01]Write to MH i2c: F0 00 00 5D 76 C2 [05:58:01]Write i2c OK [05:58:01]MH_I2C_Read... [05:58:01]Read from MH i2c: F0 [05:58:01]MH_I2C_Read... [05:58:01]Read from MH i2c: F0 09 00 [05:58:01]MH_I2C_Read... [05:58:01]Read from MH i2c: F0 09 00 5D 76 00 72 70 1B 66 23 5B 8F 65 A0 [05:58:01]GetLastDocTimeStamp 1713073398 [05:58:01]current date 1713074290 [05:58:01]FM_GetShiftState [05:58:01]SAM_PROTO_GetShiftState [05:58:01]wFMCommunicate request_size=4 [05:58:01]MH_SAM_APDU [05:58:01]CAPDU: 80 13 01 00 [05:58:01]Write to MH i2c: E2 08 00 5E 76 80 13 01 00 00 00 00 00 51 [05:58:01]Write i2c OK [05:58:01]MH_I2C_Read... [05:58:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:58:01]Read from MH i2c: E2 [05:58:01]MH_I2C_Read... [05:58:01]Read from MH i2c: E2 0E 00 [05:58:01]MH_I2C_Read... [05:58:01]Read from MH i2c: E2 0E 00 5E 76 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 FD [05:58:01]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [05:58:01]wFMCommunicate OK [05:58:01]SAM_PROTO_GetShiftState done [05:58:01]FM_GetShiftState done [05:58:01]opened in 1713053951 [05:58:01]opened+sec_in_day 1713140351 [05:58:01]quantity*price = 40028 [05:58:01]sum+1 = 40030 [05:58:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.51 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 22 14.04.2024 05:58 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29112 ФПД: 89477346845197 1/tax-web-control/client/api/v1/ticket?date=20240414T055810&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29112&fm=89477346845197&tin=02508201610067®Number=0000138879044617&sum=40000 [05:58:02]StoreToDocumentArchive [05:58:02]shift 116 fd 29112 [05:58:02]save to /storage/0116/doc_00029112 [05:58:02]save last doc name /storage/0116/doc_00029112 to /storage/kkm_last_doc_name [05:58:02]save OK [05:58:02]Clear old archive folders... [05:58:02]ProcessDocumentItem done err = 0, tmpTLVsize=252 [05:58:02]tlvbuf is 011EC910 [05:58:02]SAM_PROTO_ClearQueue [05:58:02]wFMCommunicate request_size=4 [05:58:02]MH_SAM_APDU [05:58:02]CAPDU: 80 09 00 00 [05:58:02]Write to MH i2c: E2 08 00 6B 76 80 09 00 00 00 00 00 00 53 [05:58:02]Write i2c OK [05:58:02]MH_I2C_Read... [05:58:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:58:02]Read from MH i2c: E2 [05:58:02]MH_I2C_Read... [05:58:02]Read from MH i2c: E2 03 00 [05:58:02]MH_I2C_Read... [05:58:02]Read from MH i2c: E2 03 00 6B 76 00 90 00 55 [05:58:02]RAPDU: 90 00 [05:58:02]wFMCommunicate OK [05:58:02]SAM_PROTO_ClearQueue done [05:58:02]KKMCreateOFDPacket [05:58:02]OFDProtocolAddRootSTLVToBuf [05:58:02]FM_MakeSignedData [05:58:02]FM_MakeSignedData [05:58:02]SAM_PROTO_SignData [05:58:02]wFMCommunicate request_size=4 [05:58:02]MH_SAM_APDU [05:58:02]CAPDU: 80 0D 01 02 [05:58:02]Write to MH i2c: E2 08 00 6C 76 80 0D 01 02 00 00 00 00 5B [05:58:02]Write i2c OK [05:58:02]MH_I2C_Read... [05:58:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:58:02]Read from MH i2c: E2 [05:58:02]MH_I2C_Read... [05:58:02]Read from MH i2c: E2 03 00 [05:58:02]MH_I2C_Read... [05:58:02]Read from MH i2c: E2 03 00 6C 76 00 90 00 56 [05:58:02]RAPDU: 90 00 [05:58:02]wFMCommunicate OK [05:58:02]wFMCommunicate request_size=255 [05:58:02]MH_SAM_APDU [05:58:02]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 16 00 00 00 F4 03 04 00 72 70 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B8 71 00 00 35 04 06 00 [05:58:02]Write to MH i2c: E2 02 01 6D 76 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 16 00 00 00 F4 03 04 00 72 70 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B8 71 00 00 35 04 06 00 00 00 A5 [05:58:02]Write i2c OK [05:58:02]MH_I2C_Read... [05:58:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:58:03]Read from MH i2c: E2 [05:58:03]MH_I2C_Read... [05:58:03]Read from MH i2c: E2 03 00 [05:58:03]MH_I2C_Read... [05:58:03]Read from MH i2c: E2 03 00 6D 76 00 90 00 57 [05:58:03]RAPDU: 90 00 [05:58:03]wFMCommunicate OK [05:58:03]wFMCommunicate request_size=11 [05:58:03]MH_SAM_APDU [05:58:03]CAPDU: 80 0D 02 02 06 51 61 11 79 62 0D [05:58:03]Write to MH i2c: E2 0E 00 6E 76 80 0D 02 02 06 00 51 61 11 79 62 0D 00 00 15 [05:58:03]Write i2c OK [05:58:03]MH_I2C_Read... [05:58:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:58:03]Read from MH i2c: E2 [05:58:03]MH_I2C_Read... [05:58:03]Read from MH i2c: E2 03 00 [05:58:03]MH_I2C_Read... [05:58:03]Read from MH i2c: E2 03 00 6E 76 00 90 00 58 [05:58:03]RAPDU: 90 00 [05:58:03]wFMCommunicate OK [05:58:03]wFMCommunicate request_size=4 [05:58:03]MH_SAM_APDU [05:58:03]CAPDU: 80 0D 03 02 [05:58:03]Write to MH i2c: E2 08 00 6F 76 80 0D 03 02 00 00 00 00 60 [05:58:03]Write i2c OK [05:58:03]MH_I2C_Read... [05:58:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:58:03]Read from MH i2c: E2 [05:58:03]MH_I2C_Read... [05:58:03]Read from MH i2c: E2 0B 00 [05:58:03]MH_I2C_Read... [05:58:03]Read from MH i2c: E2 0B 00 6F 76 00 55 02 4A 24 C2 77 2B 55 90 00 DF [05:58:03]RAPDU: 55 02 4A 24 C2 77 2B 55 90 00 [05:58:03]wFMCommunicate OK [05:58:03]SAM_PROTO_SignData done [05:58:03]FM_MakeSignedData done [05:58:03]CreateOFDProtocolMessage [05:58:03]wFMCommunicate request_size=4 [05:58:03]MH_SAM_APDU [05:58:03]CAPDU: 80 11 00 00 [05:58:03]Write to MH i2c: E2 08 00 70 76 80 11 00 00 00 00 00 00 60 [05:58:03]Write i2c OK [05:58:03]MH_I2C_Read... [05:58:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:58:03]Read from MH i2c: E2 [05:58:03]MH_I2C_Read... [05:58:03]Read from MH i2c: E2 17 00 [05:58:03]MH_I2C_Read... [05:58:03]Read from MH i2c: E2 17 00 70 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 AF [05:58:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [05:58:03]wFMCommunicate OK [05:58:03]CreateOFDProtocolMessage done [05:58:03]OFDSenderStorePacket 29112 [05:58:03]StoreOFDPacket docnum=29112 [05:58:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 D2 BA 08 01 C9 4A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 16 00 00 00 F4 03 04 00 72 70 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B8 71 00 00 35 04 06 00 51 61 11 79 62 0D 55 02 4A 24 C2 77 2B 55 [05:58:03]CheckFolder [05:58:03]dirname=/storage/ofd_packets [05:58:03]CheckFolder done [05:58:03]ProducePacketName [05:58:03]name=ofd_packets/00029112 [05:58:03]NVStorageSaveData ofd_packets/00029112 [05:58:03]File name is /storage/ofd_packets/00029112 [05:58:03]Write 302 bytes [05:58:03]NVStorageSaveData done [05:58:03]OFDSenderStorePacket done [05:58:03]KKMCreateOFDPacket done [05:58:03]NVStorageSaveData kkm_last_timestamp [05:58:03]File name is /storage/kkm_last_timestamp [05:58:03]Write 4 bytes [05:58:03]NVStorageSaveData done [05:58:03]ExternCall_PrintAddStr [05:58:03]wPrintStart [05:58:03]Write to MH i2c: 01 00 00 71 76 E7 [05:58:03]OFD Sender: Processing packet 29112 [packets to send 8, broken 7] [05:58:03]ProducePacketName [05:58:03]name=ofd_packets/00029112 [05:58:03]OFD Sender: To server: pG, [05:58:03]CommunicateWithHost lk.salyk.kg:30040 [05:58:03]ConnectInit lk.salyk.kg [05:58:03]Write i2c OK [05:58:03]MH_I2C_Read... [05:58:03]Read from MH i2c: 01 [05:58:03]MH_I2C_Read... [05:58:03]Read from MH i2c: 01 07 00 [05:58:03]MH_I2C_Read... [05:58:03]Read from MH i2c: 01 07 00 71 76 00 00 00 00 00 FF 0F FC [05:58:03]RasterBufferAndPrint [05:58:03]line Счет N : (1)347480 [05:58:03]line ИНН: 02508201610067 [05:58:03]line Контрольно-Кассовый Чек [05:58:03]line ПРОДАЖА [05:58:03]line ТРК (МРК, ГНК) : 41 [05:58:03]line Товар: 2710124130 [05:58:03]line SUPER-92-К-5 [05:58:03]line 6.130 * 65.30 [05:58:03]line = 400.29 [05:58:03]line НДС 12% НСП 1% [05:58:03]line > о реализуемом товаре [05:58:03]line ОКРУГЛЕНИЕ: -0.29 [05:58:03]line ИТОГО: 400.00 [05:58:03]line Внесено: 400.00 [05:58:03]line СДАЧА: 0.00 [05:58:03]line НСП 1% : 3.54 [05:58:03]line НДС 12% : 42.51 [05:58:03]line Наличными: 400.00 [05:58:03]line Безнал.: 0.00 [05:58:03]line Место: АЗС № 108 "Партнер Нефть" [05:58:03]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [05:58:03]line СНО: Общий режим [05:58:03]line Чек 22 14.04.2024 05:58 [05:58:03]line Смена: 116 ФФД: 1.0 [05:58:03]line ЗНМ: 0300000027 [05:58:03]line РНМ: 0000138879044617 [05:58:03]line Версия ККМ: 001 [05:58:03]line ФМ: 0000000000963154 [05:58:03]line ФД: 29112 [05:58:03]line ФПД: 89477346845197 [05:58:03]line 1/tax-web-control/client/api/v1/ticket?date=20240414T055810&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29112&fm=89477346845197&tin=02508201610067®Number=0000138879044617&sum=40000 [05:58:03]Connected sock=10 [05:58:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 D2 BA 08 01 C9 4A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 16 00 00 00 F4 03 04 00 72 70 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B8 71 00 00 35 04 06 00 51 61 11 79 62 0D 55 02 4A 24 C2 77 2B 55 [05:58:03]written 0, free lines is 4095 [05:58:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 43 80 47 00 8C 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 39 36 33 31 35 34 10 04 04 00 B8 71 00 00 F4 03 04 00 16 1B 1B 66 B6 04 01 00 00 50 06 88 F9 7D CE BC AC [05:58:03]CommunicateWithHost err = 0 [05:58:03]CheckOFDResponse [05:58:03]1017 (14) - 77093643461234 [05:58:03]1041 (16) - 0000000000963154 [05:58:03]1040 (4) - 29112 [05:58:03]1012 (4) - 13.04.2024 23:53 [05:58:03]1206 (1) - 0 [05:58:03]OFD Sender: Remove packet 29112 [05:58:03]ProducePacketName [05:58:03]name=ofd_packets/00029112 [05:58:03]NVStorageDeleteData [05:58:04]Write to MH i2c: 01 00 00 9B 76 11 [05:58:04]Write i2c OK [05:58:04]MH_I2C_Read... [05:58:04]Read from MH i2c: 01 [05:58:04]MH_I2C_Read... [05:58:04]Read from MH i2c: 01 07 00 [05:58:04]MH_I2C_Read... [05:58:04]Read from MH i2c: 01 07 00 9B 76 00 00 00 00 00 C6 0C EA [05:58:04]RasterBufferAndPrint [05:58:04]line [05:58:04]line [05:58:04]line [05:58:04]line [05:58:04]line [05:58:04]written 0, free lines is 3276 [05:58:04]MH_Cut [05:58:04]Write to MH i2c: D1 01 00 A2 76 01 EA [05:58:04]Write i2c OK [05:58:04]MH_I2C_Read... [05:58:04]Read from MH i2c: D1 [05:58:04]MH_I2C_Read... [05:58:04]Read from MH i2c: D1 01 00 [05:58:04]MH_I2C_Read... [05:58:04]Read from MH i2c: D1 01 00 A2 76 00 E9 [05:58:04]Write to MH i2c: 01 00 00 A3 76 19 [05:58:04]Write i2c OK [05:58:04]MH_I2C_Read... [05:58:04]OFD Sender: No OFD packet to send [05:58:04]*** Cut start [05:58:04]*** Partial cut [05:58:04]*** CUTSNS_PIN = 1 [05:58:04]*** CUTSNS_PIN = 0 [05:58:05]*** Brake cut motor [05:58:05]Read from MH i2c: 01 [05:58:05]MH_I2C_Read... [05:58:05]*** Stop cut motor [05:58:05]*** Cut end [05:58:05]Read from MH i2c: 01 07 00 [05:58:05]MH_I2C_Read... [05:58:05]Read from MH i2c: 01 07 00 A3 76 00 00 00 00 00 FF 0F 2E [05:58:05]process_action close_receipt done [05:58:05]requested_data is exist [05:58:05]produce_requested_data [05:58:05]requested_item fm.sn is exist - process it [05:58:05]wFMCommunicate request_size=4 [05:58:05]MH_SAM_APDU [05:58:05]CAPDU: 80 11 00 00 [05:58:05]Write to MH i2c: E2 08 00 A4 76 80 11 00 00 00 00 00 00 94 [05:58:05]Write i2c OK [05:58:05]MH_I2C_Read... [05:58:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:58:05]Read from MH i2c: E2 [05:58:05]MH_I2C_Read... [05:58:05]Read from MH i2c: E2 17 00 [05:58:05]MH_I2C_Read... [05:58:05]Read from MH i2c: E2 17 00 A4 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E3 [05:58:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [05:58:05]wFMCommunicate OK [05:58:05]requested_item fd.num is exist - process it [05:58:05]SAM_PROTO_GetFieldsCounters [05:58:05]wFMCommunicate request_size=4 [05:58:05]MH_SAM_APDU [05:58:05]CAPDU: 80 13 00 00 [05:58:05]Write to MH i2c: E2 08 00 A5 76 80 13 00 00 00 00 00 00 97 [05:58:05]Write i2c OK [05:58:05]MH_I2C_Read... [05:58:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:58:05]Read from MH i2c: E2 [05:58:05]MH_I2C_Read... [05:58:05]Read from MH i2c: E2 62 00 [05:58:05]MH_I2C_Read... [05:58:05]Read from MH i2c: E2 62 00 A5 76 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B8 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 B4 [05:58:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B8 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:58:05]wFMCommunicate OK [05:58:05]SAM_PROTO_GetFieldsCounters done [05:58:05]requested_item shift.num is exist - process it [05:58:05]requested_item shift.opened is exist - process it [05:58:05]req_shift_opened [05:58:05]FM_GetShiftState [05:58:05]SAM_PROTO_GetShiftState [05:58:05]wFMCommunicate request_size=4 [05:58:05]MH_SAM_APDU [05:58:05]CAPDU: 80 13 01 00 [05:58:05]Write to MH i2c: E2 08 00 A6 76 80 13 01 00 00 00 00 00 99 [05:58:05]Write i2c OK [05:58:05]MH_I2C_Read... [05:58:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:58:05]Read from MH i2c: E2 [05:58:05]MH_I2C_Read... [05:58:05]Read from MH i2c: E2 0E 00 [05:58:05]MH_I2C_Read... [05:58:05]Read from MH i2c: E2 0E 00 A6 76 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 45 [05:58:05]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [05:58:05]wFMCommunicate OK [05:58:05]SAM_PROTO_GetShiftState done [05:58:05]FM_GetShiftState done [05:58:05]req_shift_opened done [05:58:05]requested_item shift.open_date is exist - process it [05:58:05]req_shift_open_date [05:58:05]req_shift_open_date done [05:58:05]produce_requested_data done [05:58:05]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29112,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [05:58:05]process_action_free close_receipt [05:58:05]json_value_free [05:58:05]json_value_free done [05:58:05]process_json_proto returns [05:58:05]Send response to host [05:58:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29112,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [05:58:05]free response buf [05:58:05]execute_script done [05:58:05]execute_script returns [05:58:05]free content buf [05:58:05]Sock 9.Close socket [05:58:05]Sock 9.Thread stoped [05:58:09]OFD Sender: No OFD packet to send [05:58:14]OFD Sender: No OFD packet to send [05:58:19]OFD Sender: No OFD packet to send [05:58:24]OFD Sender: No OFD packet to send [05:58:29]OFD Sender: No OFD packet to send [05:58:34]OFD Sender: No OFD packet to send [05:58:39]OFD Sender: No OFD packet to send [05:58:44]OFD Sender: No OFD packet to send [05:58:49]OFD Sender: No OFD packet to send [05:58:54]OFD Sender: No OFD packet to send [05:58:59]OFD Sender: No OFD packet to send [05:59:04]OFD Sender: No OFD packet to send [05:59:09]OFD Sender: No OFD packet to send [05:59:14]OFD Sender: No OFD packet to send [05:59:19]OFD Sender: No OFD packet to send [05:59:24]OFD Sender: No OFD packet to send [05:59:29]OFD Sender: No OFD packet to send [05:59:34]OFD Sender: No OFD packet to send [05:59:39]OFD Sender: No OFD packet to send [05:59:44]OFD Sender: No OFD packet to send [05:59:49]OFD Sender: No OFD packet to send [05:59:54]OFD Sender: No OFD packet to send [05:59:59]OFD Sender: No OFD packet to send [06:00:04]OFD Sender: No OFD packet to send [06:00:09]OFD Sender: No OFD packet to send [06:00:14]OFD Sender: No OFD packet to send [06:00:19]OFD Sender: No OFD packet to send [06:00:24]OFD Sender: No OFD packet to send [06:00:29]OFD Sender: No OFD packet to send [06:00:34]OFD Sender: No OFD packet to send [06:00:39]OFD Sender: No OFD packet to send [06:00:44]OFD Sender: No OFD packet to send [06:00:49]OFD Sender: No OFD packet to send [06:00:54]OFD Sender: No OFD packet to send [06:00:59]OFD Sender: No OFD packet to send [06:01:04]OFD Sender: No OFD packet to send [06:01:09]OFD Sender: No OFD packet to send [06:01:14]OFD Sender: No OFD packet to send [06:01:19]OFD Sender: No OFD packet to send [06:01:24]OFD Sender: No OFD packet to send [06:01:29]OFD Sender: No OFD packet to send [06:01:34]OFD Sender: No OFD packet to send [06:01:39]OFD Sender: No OFD packet to send [06:01:44]OFD Sender: No OFD packet to send [06:01:49]OFD Sender: No OFD packet to send [06:01:54]OFD Sender: No OFD packet to send [06:01:59]OFD Sender: No OFD packet to send [06:02:04]OFD Sender: No OFD packet to send [06:02:09]OFD Sender: No OFD packet to send [06:02:14]OFD Sender: No OFD packet to send [06:02:19]OFD Sender: No OFD packet to send [06:02:24]OFD Sender: No OFD packet to send [06:02:29]OFD Sender: No OFD packet to send [06:02:34]OFD Sender: No OFD packet to send [06:02:39]OFD Sender: No OFD packet to send [06:02:44]OFD Sender: No OFD packet to send [06:02:49]OFD Sender: No OFD packet to send [06:02:54]OFD Sender: No OFD packet to send [06:02:59]OFD Sender: No OFD packet to send [06:03:04]OFD Sender: No OFD packet to send [06:03:09]OFD Sender: No OFD packet to send [06:03:14]OFD Sender: No OFD packet to send [06:03:19]OFD Sender: No OFD packet to send [06:03:24]OFD Sender: No OFD packet to send [06:03:29]OFD Sender: No OFD packet to send [06:03:34]OFD Sender: No OFD packet to send [06:03:39]OFD Sender: No OFD packet to send [06:03:44]OFD Sender: No OFD packet to send [06:03:49]OFD Sender: No OFD packet to send [06:03:54]OFD Sender: No OFD packet to send [06:03:59]OFD Sender: No OFD packet to send [06:04:04]OFD Sender: No OFD packet to send [06:04:09]OFD Sender: No OFD packet to send [06:04:14]OFD Sender: No OFD packet to send [06:04:19]OFD Sender: No OFD packet to send [06:04:24]OFD Sender: No OFD packet to send [06:04:29]OFD Sender: No OFD packet to send [06:04:34]OFD Sender: No OFD packet to send [06:04:39]OFD Sender: No OFD packet to send [06:04:44]OFD Sender: No OFD packet to send [06:04:49]OFD Sender: No OFD packet to send [06:04:54]OFD Sender: No OFD packet to send [06:04:59]OFD Sender: No OFD packet to send [06:05:04]OFD Sender: No OFD packet to send [06:05:09]OFD Sender: No OFD packet to send [06:05:14]OFD Sender: No OFD packet to send [06:05:19]OFD Sender: No OFD packet to send [06:05:24]OFD Sender: No OFD packet to send [06:05:29]OFD Sender: No OFD packet to send [06:05:34]OFD Sender: No OFD packet to send [06:05:39]OFD Sender: No OFD packet to send [06:05:44]OFD Sender: No OFD packet to send [06:05:49]OFD Sender: No OFD packet to send [06:05:54]OFD Sender: No OFD packet to send [06:05:59]OFD Sender: No OFD packet to send [06:06:04]OFD Sender: No OFD packet to send [06:06:09]OFD Sender: No OFD packet to send [06:06:14]OFD Sender: No OFD packet to send [06:06:19]OFD Sender: No OFD packet to send [06:06:24]OFD Sender: No OFD packet to send [06:06:29]OFD Sender: No OFD packet to send [06:06:34]OFD Sender: No OFD packet to send [06:06:39]OFD Sender: No OFD packet to send [06:06:44]OFD Sender: No OFD packet to send [06:06:49]OFD Sender: No OFD packet to send [06:06:54]OFD Sender: No OFD packet to send [06:06:59]OFD Sender: No OFD packet to send [06:07:04]OFD Sender: No OFD packet to send [06:07:09]OFD Sender: No OFD packet to send [06:07:14]accept exits with 7 [06:07:14]New connection [06:07:14]New thread 3066785124 created [06:07:14]Thread 3066928484 joined [06:07:14]Waiting for new connection... [06:07:14] Sock 7.Parse request [06:07:14]Sock 7.Check first char [06:07:14]Sock 7.First char is OK [06:07:14]request: POST /json_proto HTTP/1.0 [06:07:14]Method: POST [06:07:14]URL: /json_proto [06:07:14]Method is POST - this is cgi request [06:07:14]url: /json_proto [06:07:14]query_string will be loaded in cgi processing [06:07:14]execute_cgi json_proto POST (null) [06:07:14]execute_cgi path=json_proto method=POST [06:07:14]POST find Content-Length [06:07:14]Host: 172.17.33.3:8080 [06:07:14]Content-Length: 677 [06:07:14]Content-Type: application/json [06:07:14] [06:07:14]POST finish read [06:07:14]Found Content-Length = 677 [06:07:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347481", "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" ] } } [06:07:14]execute_script... [06:07: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)347481", "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" ] } } [06:07:14]POST & json_proto [06:07:14]process_json_proto [06:07:14]json parsed OK: [06:07:14]protocol is kg_v1.0 [06:07:14]action value=close_receipt [06:07:14]process_action close_receipt [06:07:14]cmd_close_receipt [06:07:14]MH_GetDate [06:07:14]Write to MH i2c: F0 00 00 A7 76 0C [06:07:14]Write i2c OK [06:07:14]MH_I2C_Read... [06:07:14]Read from MH i2c: F0 [06:07:14]MH_I2C_Read... [06:07:14]Read from MH i2c: F0 09 00 [06:07:14]MH_I2C_Read... [06:07:14]Read from MH i2c: F0 09 00 A7 76 00 9A 72 1B 66 23 5B 8F 65 14 [06:07:14]GetLastDocTimeStamp 1713074290 [06:07:14]current date 1713074842 [06:07:14]FM_GetShiftState [06:07:14]SAM_PROTO_GetShiftState [06:07:14]wFMCommunicate request_size=4 [06:07:14]MH_SAM_APDU [06:07:14]CAPDU: 80 13 01 00 [06:07:14]Write to MH i2c: E2 08 00 A8 76 80 13 01 00 00 00 00 00 9B [06:07:14]Write i2c OK [06:07:14]MH_I2C_Read... [06:07:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:07:14]Read from MH i2c: E2 [06:07:14]MH_I2C_Read... [06:07:14]Read from MH i2c: E2 0E 00 [06:07:14]MH_I2C_Read... [06:07:14]Read from MH i2c: E2 0E 00 A8 76 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 47 [06:07:14]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [06:07:14]wFMCommunicate OK [06:07:14]SAM_PROTO_GetShiftState done [06:07:14]FM_GetShiftState done [06:07:14]opened in 1713053951 [06:07:14]opened+sec_in_day 1713140351 [06:07:14]quantity*price = 50025 [06:07:14]sum+1 = 50026 [06:07: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 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 23 14.04.2024 06:07 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29113 ФПД: 234436565023866 1/tax-web-control/client/api/v1/ticket?date=20240414T060722&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29113&fm=234436565023866&tin=02508201610067®Number=0000138879044617&sum=50000 [06:07:15]StoreToDocumentArchive [06:07:15]shift 116 fd 29113 [06:07:15]save to /storage/0116/doc_00029113 [06:07:15]save last doc name /storage/0116/doc_00029113 to /storage/kkm_last_doc_name [06:07:15]save OK [06:07:15]Clear old archive folders... [06:07:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:07:15]tlvbuf is 011B74D0 [06:07:15]SAM_PROTO_ClearQueue [06:07:15]wFMCommunicate request_size=4 [06:07:15]MH_SAM_APDU [06:07:15]CAPDU: 80 09 00 00 [06:07:15]Write to MH i2c: E2 08 00 B5 76 80 09 00 00 00 00 00 00 9D [06:07:15]Write i2c OK [06:07:15]MH_I2C_Read... [06:07:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:07:15]Read from MH i2c: E2 [06:07:15]MH_I2C_Read... [06:07:15]Read from MH i2c: E2 03 00 [06:07:15]MH_I2C_Read... [06:07:15]Read from MH i2c: E2 03 00 B5 76 00 90 00 9F [06:07:15]RAPDU: 90 00 [06:07:15]wFMCommunicate OK [06:07:15]SAM_PROTO_ClearQueue done [06:07:15]KKMCreateOFDPacket [06:07:15]OFDProtocolAddRootSTLVToBuf [06:07:15]FM_MakeSignedData [06:07:15]FM_MakeSignedData [06:07:15]SAM_PROTO_SignData [06:07:15]wFMCommunicate request_size=4 [06:07:15]MH_SAM_APDU [06:07:15]CAPDU: 80 0D 01 02 [06:07:15]Write to MH i2c: E2 08 00 B6 76 80 0D 01 02 00 00 00 00 A5 [06:07:15]Write i2c OK [06:07:15]MH_I2C_Read... [06:07:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:07:15]Read from MH i2c: E2 [06:07:15]MH_I2C_Read... [06:07:15]Read from MH i2c: E2 03 00 [06:07:15]MH_I2C_Read... [06:07:15]Read from MH i2c: E2 03 00 B6 76 00 90 00 A0 [06:07:15]RAPDU: 90 00 [06:07:15]wFMCommunicate OK [06:07:15]wFMCommunicate request_size=255 [06:07:15]MH_SAM_APDU [06:07:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 17 00 00 00 F4 03 04 00 9A 72 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B9 71 00 00 35 04 06 00 D5 [06:07:15]Write to MH i2c: E2 02 01 B7 76 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 17 00 00 00 F4 03 04 00 9A 72 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B9 71 00 00 35 04 06 00 D5 00 00 7E [06:07:15]Write i2c OK [06:07:15]MH_I2C_Read... [06:07:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:07:15]Read from MH i2c: E2 [06:07:15]MH_I2C_Read... [06:07:15]Read from MH i2c: E2 03 00 [06:07:15]MH_I2C_Read... [06:07:15]Read from MH i2c: E2 03 00 B7 76 00 90 00 A1 [06:07:15]RAPDU: 90 00 [06:07:15]wFMCommunicate OK [06:07:15]wFMCommunicate request_size=10 [06:07:15]MH_SAM_APDU [06:07:15]CAPDU: 80 0D 02 02 05 38 04 2E 3C 7A [06:07:15]Write to MH i2c: E2 0D 00 B8 76 80 0D 02 02 05 00 38 04 2E 3C 7A 00 00 D2 [06:07:15]Write i2c OK [06:07:15]MH_I2C_Read... [06:07:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:07:15]Read from MH i2c: E2 [06:07:15]MH_I2C_Read... [06:07:15]Read from MH i2c: E2 03 00 [06:07:15]MH_I2C_Read... [06:07:15]Read from MH i2c: E2 03 00 B8 76 00 90 00 A2 [06:07:15]RAPDU: 90 00 [06:07:15]wFMCommunicate OK [06:07:15]wFMCommunicate request_size=4 [06:07:15]MH_SAM_APDU [06:07:15]CAPDU: 80 0D 03 02 [06:07:15]Write to MH i2c: E2 08 00 B9 76 80 0D 03 02 00 00 00 00 AA [06:07:15]Write i2c OK [06:07:15]MH_I2C_Read... [06:07:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:07:15]Read from MH i2c: E2 [06:07:15]MH_I2C_Read... [06:07:15]Read from MH i2c: E2 0B 00 [06:07:15]MH_I2C_Read... [06:07:15]Read from MH i2c: E2 0B 00 B9 76 00 58 EA CE C2 BD F3 02 F9 90 00 28 [06:07:15]RAPDU: 58 EA CE C2 BD F3 02 F9 90 00 [06:07:15]wFMCommunicate OK [06:07:15]SAM_PROTO_SignData done [06:07:15]FM_MakeSignedData done [06:07:15]CreateOFDProtocolMessage [06:07:15]wFMCommunicate request_size=4 [06:07:15]MH_SAM_APDU [06:07:15]CAPDU: 80 11 00 00 [06:07:15]Write to MH i2c: E2 08 00 BA 76 80 11 00 00 00 00 00 00 AA [06:07:15]Write i2c OK [06:07:15]MH_I2C_Read... [06:07:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:07:15]Read from MH i2c: E2 [06:07:15]MH_I2C_Read... [06:07:15]Read from MH i2c: E2 17 00 [06:07:15]MH_I2C_Read... [06:07:15]Read from MH i2c: E2 17 00 BA 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F9 [06:07:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [06:07:15]wFMCommunicate OK [06:07:15]CreateOFDProtocolMessage done [06:07:15]OFDSenderStorePacket 29113 [06:07:15]StoreOFDPacket docnum=29113 [06:07:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 03 BB 07 01 80 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 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 17 00 00 00 F4 03 04 00 9A 72 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B9 71 00 00 35 04 06 00 D5 38 04 2E 3C 7A 58 EA CE C2 BD F3 02 F9 [06:07:15]CheckFolder [06:07:15]dirname=/storage/ofd_packets [06:07:15]CheckFolder done [06:07:15]ProducePacketName [06:07:15]name=ofd_packets/00029113 [06:07:15]NVStorageSaveData ofd_packets/00029113 [06:07:15]File name is /storage/ofd_packets/00029113 [06:07:15]Write 301 bytes [06:07:15]NVStorageSaveData done [06:07:15]OFDSenderStorePacket done [06:07:15]KKMCreateOFDPacket done [06:07:15]NVStorageSaveData kkm_last_timestamp [06:07:15]File name is /storage/kkm_last_timestamp [06:07:15]Write 4 bytes [06:07:15]NVStorageSaveData done [06:07:15]ExternCall_PrintAddStr [06:07:15]wPrintStart [06:07:15]Write to MH i2c: 01 00 00 BB 76 31 [06:07:15]Write i2c OK [06:07:15]MH_I2C_Read... [06:07:15]Read from MH i2c: 01 [06:07:15]MH_I2C_Read... [06:07:15]Read from MH i2c: 01 07 00 [06:07:15]MH_I2C_Read... [06:07:15]Read from MH i2c: 01 07 00 BB 76 00 00 00 00 00 FF 0F 46 [06:07:15]RasterBufferAndPrint [06:07:15]line Счет N : (1)347481 [06:07:15]line ИНН: 02508201610067 [06:07:15]line Контрольно-Кассовый Чек [06:07:15]line ПРОДАЖА [06:07:15]line ТРК (МРК, ГНК) : 32 [06:07:15]line Товар: 2710124130 [06:07:15]line Аи-92-К-5 [06:07:15]line 7.780 * 64.30 [06:07:15]line = 500.25 [06:07:15]line НДС 12% НСП 1% [06:07:15]line > о реализуемом товаре [06:07:15]line ОКРУГЛЕНИЕ: -0.25 [06:07:15]line ИТОГО: 500.00 [06:07:15]line Внесено: 500.00 [06:07:15]line СДАЧА: 0.00 [06:07:15]line НСП 1% : 4.43 [06:07:15]line НДС 12% : 53.12 [06:07:15]line Наличными: 500.00 [06:07:15]line Безнал.: 0.00 [06:07:15]line Место: АЗС № 108 "Партнер Нефть" [06:07:15]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [06:07:15]line СНО: Общий режим [06:07:15]line Чек 23 14.04.2024 06:07 [06:07:15]line Смена: 116 ФФД: 1.0 [06:07:15]line ЗНМ: 0300000027 [06:07:15]line РНМ: 0000138879044617 [06:07:15]line Версия ККМ: 001 [06:07:15]line ФМ: 0000000000963154 [06:07:15]line ФД: 29113 [06:07:15]line ФПД: 234436565023866 [06:07:16]line 1/tax-web-control/client/api/v1/ticket?date=20240414T060722&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29113&fm=234436565023866&tin=02508201610067®Number=0000138879044617&sum=50000 [06:07:16]OFD Sender: Processing packet 29113 [packets to send 8, broken 7] [06:07:16]ProducePacketName [06:07:16]name=ofd_packets/00029113 [06:07:16]OFD Sender: To server: pG, [06:07:16]CommunicateWithHost lk.salyk.kg:30040 [06:07:16]ConnectInit lk.salyk.kg [06:07:16]written 0, free lines is 4095 [06:07:16]Connected sock=10 [06:07:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 03 BB 07 01 80 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 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 17 00 00 00 F4 03 04 00 9A 72 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B9 71 00 00 35 04 06 00 D5 38 04 2E 3C 7A 58 EA CE C2 BD F3 02 F9 [06:07:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 4F 43 47 00 3C 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 39 36 33 31 35 34 10 04 04 00 B9 71 00 00 F4 03 04 00 3F 1D 1B 66 B6 04 01 00 00 62 61 FE D6 91 DE B5 D3 [06:07:16]CommunicateWithHost err = 0 [06:07:16]CheckOFDResponse [06:07:16]1017 (14) - 77093643461234 [06:07:16]1041 (16) - 0000000000963154 [06:07:16]1040 (4) - 29113 [06:07:16]1012 (4) - 14.04.2024 00:03 [06:07:16]1206 (1) - 0 [06:07:16]OFD Sender: Remove packet 29113 [06:07:16]ProducePacketName [06:07:16]name=ofd_packets/00029113 [06:07:16]NVStorageDeleteData [06:07:16]Write to MH i2c: 01 00 00 E5 76 5B [06:07:16]Write i2c OK [06:07:16]MH_I2C_Read... [06:07:16]Read from MH i2c: 01 [06:07:16]MH_I2C_Read... [06:07:16]Read from MH i2c: 01 07 00 [06:07:16]MH_I2C_Read... [06:07:16]Read from MH i2c: 01 07 00 E5 76 00 00 00 00 00 C0 0C 2E [06:07:16]RasterBufferAndPrint [06:07:16]line [06:07:16]line [06:07:16]line [06:07:16]line [06:07:16]line [06:07:16]written 0, free lines is 3268 [06:07:16]MH_Cut [06:07:16]Write to MH i2c: D1 01 00 EC 76 01 34 [06:07:16]Write i2c OK [06:07:16]MH_I2C_Read... [06:07:16]Read from MH i2c: D1 [06:07:16]MH_I2C_Read... [06:07:16]Read from MH i2c: D1 01 00 [06:07:16]MH_I2C_Read... [06:07:16]Read from MH i2c: D1 01 00 EC 76 00 33 [06:07:16]Write to MH i2c: 01 00 00 ED 76 63 [06:07:16]Write i2c OK [06:07:16]MH_I2C_Read... [06:07:16]OFD Sender: No OFD packet to send [06:07:17]*** Cut start [06:07:17]*** Partial cut [06:07:17]*** CUTSNS_PIN = 1 [06:07:17]*** CUTSNS_PIN = 0 [06:07:17]*** Brake cut motor [06:07:17]Read from MH i2c: 01 [06:07:17]MH_I2C_Read... [06:07:17]*** Stop cut motor [06:07:17]*** Cut end [06:07:17]Read from MH i2c: 01 07 00 [06:07:17]MH_I2C_Read... [06:07:17]Read from MH i2c: 01 07 00 ED 76 00 00 00 00 00 FF 0F 78 [06:07:17]process_action close_receipt done [06:07:17]requested_data is exist [06:07:17]produce_requested_data [06:07:17]requested_item fm.sn is exist - process it [06:07:17]wFMCommunicate request_size=4 [06:07:17]MH_SAM_APDU [06:07:17]CAPDU: 80 11 00 00 [06:07:17]Write to MH i2c: E2 08 00 EE 76 80 11 00 00 00 00 00 00 DE [06:07:17]Write i2c OK [06:07:17]MH_I2C_Read... [06:07:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:07:18]Read from MH i2c: E2 [06:07:18]MH_I2C_Read... [06:07:18]Read from MH i2c: E2 17 00 [06:07:18]MH_I2C_Read... [06:07:18]Read from MH i2c: E2 17 00 EE 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 2D [06:07:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [06:07:18]wFMCommunicate OK [06:07:18]requested_item fd.num is exist - process it [06:07:18]SAM_PROTO_GetFieldsCounters [06:07:18]wFMCommunicate request_size=4 [06:07:18]MH_SAM_APDU [06:07:18]CAPDU: 80 13 00 00 [06:07:18]Write to MH i2c: E2 08 00 EF 76 80 13 00 00 00 00 00 00 E1 [06:07:18]Write i2c OK [06:07:18]MH_I2C_Read... [06:07:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:07:18]Read from MH i2c: E2 [06:07:18]MH_I2C_Read... [06:07:18]Read from MH i2c: E2 62 00 [06:07:18]MH_I2C_Read... [06:07:18]Read from MH i2c: E2 62 00 EF 76 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B9 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 02 [06:07:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B9 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:07:18]wFMCommunicate OK [06:07:18]SAM_PROTO_GetFieldsCounters done [06:07:18]requested_item shift.num is exist - process it [06:07:18]requested_item shift.opened is exist - process it [06:07:18]req_shift_opened [06:07:18]FM_GetShiftState [06:07:18]SAM_PROTO_GetShiftState [06:07:18]wFMCommunicate request_size=4 [06:07:18]MH_SAM_APDU [06:07:18]CAPDU: 80 13 01 00 [06:07:18]Write to MH i2c: E2 08 00 F0 76 80 13 01 00 00 00 00 00 E3 [06:07:18]Write i2c OK [06:07:18]MH_I2C_Read... [06:07:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:07:18]Read from MH i2c: E2 [06:07:18]MH_I2C_Read... [06:07:18]Read from MH i2c: E2 0E 00 [06:07:18]MH_I2C_Read... [06:07:18]Read from MH i2c: E2 0E 00 F0 76 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 8F [06:07:18]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [06:07:18]wFMCommunicate OK [06:07:18]SAM_PROTO_GetShiftState done [06:07:18]FM_GetShiftState done [06:07:18]req_shift_opened done [06:07:18]requested_item shift.open_date is exist - process it [06:07:18]req_shift_open_date [06:07:18]req_shift_open_date done [06:07:18]produce_requested_data done [06:07:18]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29113,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [06:07:18]process_action_free close_receipt [06:07:18]json_value_free [06:07:18]json_value_free done [06:07:18]process_json_proto returns [06:07:18]Send response to host [06:07:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29113,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [06:07:18]free response buf [06:07:18]execute_script done [06:07:18]execute_script returns [06:07:18]free content buf [06:07:18]Sock 7.Close socket [06:07:18]Sock 7.Thread stoped [06:07:21]OFD Sender: No OFD packet to send [06:07:26]OFD Sender: No OFD packet to send [06:07:31]OFD Sender: No OFD packet to send [06:07:36]OFD Sender: No OFD packet to send [06:07:41]OFD Sender: No OFD packet to send [06:07:46]OFD Sender: No OFD packet to send [06:07:51]OFD Sender: No OFD packet to send [06:07:56]OFD Sender: No OFD packet to send [06:08:01]OFD Sender: No OFD packet to send [06:08:06]OFD Sender: No OFD packet to send [06:08:11]OFD Sender: No OFD packet to send [06:08:16]OFD Sender: No OFD packet to send [06:08:21]OFD Sender: No OFD packet to send [06:08:26]OFD Sender: No OFD packet to send [06:08:31]OFD Sender: No OFD packet to send [06:08:36]OFD Sender: No OFD packet to send [06:08:41]OFD Sender: No OFD packet to send [06:08:46]OFD Sender: No OFD packet to send [06:08:51]OFD Sender: No OFD packet to send [06:08:56]OFD Sender: No OFD packet to send [06:09:01]OFD Sender: No OFD packet to send [06:09:06]OFD Sender: No OFD packet to send [06:09:11]OFD Sender: No OFD packet to send [06:09:16]OFD Sender: No OFD packet to send [06:09:21]OFD Sender: No OFD packet to send [06:09:26]OFD Sender: No OFD packet to send [06:09:31]OFD Sender: No OFD packet to send [06:09:36]OFD Sender: No OFD packet to send [06:09:41]OFD Sender: No OFD packet to send [06:09:46]OFD Sender: No OFD packet to send [06:09:51]OFD Sender: No OFD packet to send [06:09:56]OFD Sender: No OFD packet to send [06:10:01]OFD Sender: No OFD packet to send [06:10:06]OFD Sender: No OFD packet to send [06:10:11]OFD Sender: No OFD packet to send [06:10:16]OFD Sender: No OFD packet to send [06:10:21]OFD Sender: No OFD packet to send [06:10:26]OFD Sender: No OFD packet to send [06:10:31]OFD Sender: No OFD packet to send [06:10:36]OFD Sender: No OFD packet to send [06:10:41]OFD Sender: No OFD packet to send [06:10:46]OFD Sender: No OFD packet to send [06:10:51]OFD Sender: No OFD packet to send [06:10:56]OFD Sender: No OFD packet to send [06:11:02]OFD Sender: No OFD packet to send [06:11:07]OFD Sender: No OFD packet to send [06:11:12]OFD Sender: No OFD packet to send [06:11:17]OFD Sender: No OFD packet to send [06:11:22]OFD Sender: No OFD packet to send [06:11:27]OFD Sender: No OFD packet to send [06:11:32]OFD Sender: No OFD packet to send [06:11:37]OFD Sender: No OFD packet to send [06:11:42]OFD Sender: No OFD packet to send [06:11:47]OFD Sender: No OFD packet to send [06:11:52]OFD Sender: No OFD packet to send [06:11:57]OFD Sender: No OFD packet to send [06:12:02]OFD Sender: No OFD packet to send [06:12:07]OFD Sender: No OFD packet to send [06:12:12]OFD Sender: No OFD packet to send [06:12:17]OFD Sender: No OFD packet to send [06:12:22]OFD Sender: No OFD packet to send [06:12:27]OFD Sender: No OFD packet to send [06:12:32]OFD Sender: No OFD packet to send [06:12:37]OFD Sender: No OFD packet to send [06:12:42]OFD Sender: No OFD packet to send [06:12:47]OFD Sender: No OFD packet to send [06:12:52]OFD Sender: No OFD packet to send [06:12:57]OFD Sender: No OFD packet to send [06:13:02]OFD Sender: No OFD packet to send [06:13:07]OFD Sender: No OFD packet to send [06:13:12]OFD Sender: No OFD packet to send [06:13:17]OFD Sender: No OFD packet to send [06:13:22]OFD Sender: No OFD packet to send [06:13:27]OFD Sender: No OFD packet to send [06:13:32]OFD Sender: No OFD packet to send [06:13:37]OFD Sender: No OFD packet to send [06:13:42]OFD Sender: No OFD packet to send [06:13:47]OFD Sender: No OFD packet to send [06:13:52]OFD Sender: No OFD packet to send [06:13:57]OFD Sender: No OFD packet to send [06:14:02]OFD Sender: No OFD packet to send [06:14:07]OFD Sender: No OFD packet to send [06:14:12]OFD Sender: No OFD packet to send [06:14:17]OFD Sender: No OFD packet to send [06:14:22]OFD Sender: No OFD packet to send [06:14:27]OFD Sender: No OFD packet to send [06:14:32]OFD Sender: No OFD packet to send [06:14:37]OFD Sender: No OFD packet to send [06:14:42]OFD Sender: No OFD packet to send [06:14:47]OFD Sender: No OFD packet to send [06:14:52]OFD Sender: No OFD packet to send [06:14:57]OFD Sender: No OFD packet to send [06:15:02]OFD Sender: No OFD packet to send [06:15:07]OFD Sender: No OFD packet to send [06:15:12]OFD Sender: No OFD packet to send [06:15:17]OFD Sender: No OFD packet to send [06:15:22]OFD Sender: No OFD packet to send [06:15:27]OFD Sender: No OFD packet to send [06:15:32]OFD Sender: No OFD packet to send [06:15:37]OFD Sender: No OFD packet to send [06:15:42]OFD Sender: No OFD packet to send [06:15:47]OFD Sender: No OFD packet to send [06:15:52]OFD Sender: No OFD packet to send [06:15:57]OFD Sender: No OFD packet to send [06:16:02]OFD Sender: No OFD packet to send [06:16:07]OFD Sender: No OFD packet to send [06:16:12]OFD Sender: No OFD packet to send [06:16:17]OFD Sender: No OFD packet to send [06:16:22]OFD Sender: No OFD packet to send [06:16:27]OFD Sender: No OFD packet to send [06:16:32]OFD Sender: No OFD packet to send [06:16:37]OFD Sender: No OFD packet to send [06:16:42]OFD Sender: No OFD packet to send [06:16:47]OFD Sender: No OFD packet to send [06:16:52]OFD Sender: No OFD packet to send [06:16:57]OFD Sender: No OFD packet to send [06:17:02]OFD Sender: No OFD packet to send [06:17:07]OFD Sender: No OFD packet to send [06:17:12]OFD Sender: No OFD packet to send [06:17:17]OFD Sender: No OFD packet to send [06:17:22]OFD Sender: No OFD packet to send [06:17:27]OFD Sender: No OFD packet to send [06:17:32]OFD Sender: No OFD packet to send [06:17:37]OFD Sender: No OFD packet to send [06:17:42]OFD Sender: No OFD packet to send [06:17:47]OFD Sender: No OFD packet to send [06:17:52]OFD Sender: No OFD packet to send [06:17:57]OFD Sender: No OFD packet to send [06:18:02]OFD Sender: No OFD packet to send [06:18:07]OFD Sender: No OFD packet to send [06:18:12]OFD Sender: No OFD packet to send [06:18:17]OFD Sender: No OFD packet to send [06:18:22]OFD Sender: No OFD packet to send [06:18:27]OFD Sender: No OFD packet to send [06:18:32]OFD Sender: No OFD packet to send [06:18:37]OFD Sender: No OFD packet to send [06:18:42]OFD Sender: No OFD packet to send [06:18:47]OFD Sender: No OFD packet to send [06:18:52]OFD Sender: No OFD packet to send [06:18:57]OFD Sender: No OFD packet to send [06:19:02]OFD Sender: No OFD packet to send [06:19:07]OFD Sender: No OFD packet to send [06:19:12]OFD Sender: No OFD packet to send [06:19:17]OFD Sender: No OFD packet to send [06:19:22]OFD Sender: No OFD packet to send [06:19:27]OFD Sender: No OFD packet to send [06:19:32]OFD Sender: No OFD packet to send [06:19:37]OFD Sender: No OFD packet to send [06:19:42]OFD Sender: No OFD packet to send [06:19:47]OFD Sender: No OFD packet to send [06:19:52]OFD Sender: No OFD packet to send [06:19:57]OFD Sender: No OFD packet to send [06:20:02]OFD Sender: No OFD packet to send [06:20:07]OFD Sender: No OFD packet to send [06:20:12]OFD Sender: No OFD packet to send [06:20:17]OFD Sender: No OFD packet to send [06:20:22]OFD Sender: No OFD packet to send [06:20:27]OFD Sender: No OFD packet to send [06:20:27]accept exits with 9 [06:20:27]New connection [06:20:27]New thread 3066928484 created [06:20:27]Thread 3066785124 joined [06:20:27]Waiting for new connection... [06:20:27] Sock 9.Parse request [06:20:27]Sock 9.Check first char [06:20:27]Sock 9.First char is OK [06:20:27]request: POST /json_proto HTTP/1.0 [06:20:27]Method: POST [06:20:27]URL: /json_proto [06:20:27]Method is POST - this is cgi request [06:20:27]url: /json_proto [06:20:27]query_string will be loaded in cgi processing [06:20:27]execute_cgi json_proto POST (null) [06:20:27]execute_cgi path=json_proto method=POST [06:20:27]POST find Content-Length [06:20:27]Host: 172.17.33.3:8080 [06:20:27]Content-Length: 682 [06:20:27]Content-Type: application/json [06:20:27] [06:20:27]POST finish read [06:20:27]Found Content-Length = 682 [06:20:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347482", "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" ] } } [06:20:27]execute_script... [06:20: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)347482", "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" ] } } [06:20:27]POST & json_proto [06:20:27]process_json_proto [06:20:27]json parsed OK: [06:20:27]protocol is kg_v1.0 [06:20:27]action value=close_receipt [06:20:27]process_action close_receipt [06:20:27]cmd_close_receipt [06:20:27]MH_GetDate [06:20:27]Write to MH i2c: F0 00 00 F1 76 56 [06:20:27]Write i2c OK [06:20:27]MH_I2C_Read... [06:20:27]Read from MH i2c: F0 [06:20:27]MH_I2C_Read... [06:20:27]Read from MH i2c: F0 09 00 [06:20:27]MH_I2C_Read... [06:20:27]Read from MH i2c: F0 09 00 F1 76 00 B4 75 1B 66 23 5B 8F 65 7B [06:20:27]GetLastDocTimeStamp 1713074842 [06:20:27]current date 1713075636 [06:20:27]FM_GetShiftState [06:20:27]SAM_PROTO_GetShiftState [06:20:27]wFMCommunicate request_size=4 [06:20:27]MH_SAM_APDU [06:20:27]CAPDU: 80 13 01 00 [06:20:27]Write to MH i2c: E2 08 00 F2 76 80 13 01 00 00 00 00 00 E5 [06:20:27]Write i2c OK [06:20:27]MH_I2C_Read... [06:20:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:20:27]Read from MH i2c: E2 [06:20:27]MH_I2C_Read... [06:20:27]Read from MH i2c: E2 0E 00 [06:20:27]MH_I2C_Read... [06:20:27]Read from MH i2c: E2 0E 00 F2 76 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 91 [06:20:27]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [06:20:27]wFMCommunicate OK [06:20:27]SAM_PROTO_GetShiftState done [06:20:27]FM_GetShiftState done [06:20:27]opened in 1713053951 [06:20:27]opened+sec_in_day 1713140351 [06:20:27]quantity*price = 100050 [06:20:27]sum+1 = 100052 [06:20: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 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 24 14.04.2024 06:20 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29114 ФПД: 42296431862531 1/tax-web-control/client/api/v1/ticket?date=20240414T062036&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29114&fm=42296431862531&tin=02508201610067®Number=0000138879044617&sum=100000 [06:20:28]StoreToDocumentArchive [06:20:28]shift 116 fd 29114 [06:20:28]save to /storage/0116/doc_00029114 [06:20:28]save last doc name /storage/0116/doc_00029114 to /storage/kkm_last_doc_name [06:20:28]save OK [06:20:28]Clear old archive folders... [06:20:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:20:28]tlvbuf is 011F8790 [06:20:28]SAM_PROTO_ClearQueue [06:20:28]wFMCommunicate request_size=4 [06:20:28]MH_SAM_APDU [06:20:28]CAPDU: 80 09 00 00 [06:20:28]Write to MH i2c: E2 08 00 FF 76 80 09 00 00 00 00 00 00 E7 [06:20:28]Write i2c OK [06:20:28]MH_I2C_Read... [06:20:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:20:28]Read from MH i2c: E2 [06:20:28]MH_I2C_Read... [06:20:28]Read from MH i2c: E2 03 00 [06:20:28]MH_I2C_Read... [06:20:28]Read from MH i2c: E2 03 00 FF 76 00 90 00 E9 [06:20:28]RAPDU: 90 00 [06:20:28]wFMCommunicate OK [06:20:28]SAM_PROTO_ClearQueue done [06:20:28]KKMCreateOFDPacket [06:20:28]OFDProtocolAddRootSTLVToBuf [06:20:28]FM_MakeSignedData [06:20:28]FM_MakeSignedData [06:20:28]SAM_PROTO_SignData [06:20:28]wFMCommunicate request_size=4 [06:20:28]MH_SAM_APDU [06:20:28]CAPDU: 80 0D 01 02 [06:20:28]Write to MH i2c: E2 08 00 00 77 80 0D 01 02 00 00 00 00 F0 [06:20:28]Write i2c OK [06:20:28]MH_I2C_Read... [06:20:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:20:29]Read from MH i2c: E2 [06:20:29]MH_I2C_Read... [06:20:29]Read from MH i2c: E2 03 00 [06:20:29]MH_I2C_Read... [06:20:29]Read from MH i2c: E2 03 00 00 77 00 90 00 EB [06:20:29]RAPDU: 90 00 [06:20:29]wFMCommunicate OK [06:20:29]wFMCommunicate request_size=255 [06:20:29]MH_SAM_APDU [06:20: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 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 00 00 00 F4 03 04 00 B4 75 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BA 71 00 00 35 04 06 00 26 [06:20:29]Write to MH i2c: E2 02 01 01 77 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 00 00 00 F4 03 04 00 B4 75 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BA 71 00 00 35 04 06 00 26 00 00 A3 [06:20:29]Write i2c OK [06:20:29]MH_I2C_Read... [06:20:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:20:29]Read from MH i2c: E2 [06:20:29]MH_I2C_Read... [06:20:29]Read from MH i2c: E2 03 00 [06:20:29]MH_I2C_Read... [06:20:29]Read from MH i2c: E2 03 00 01 77 00 90 00 EC [06:20:29]RAPDU: 90 00 [06:20:29]wFMCommunicate OK [06:20:29]wFMCommunicate request_size=10 [06:20:29]MH_SAM_APDU [06:20:29]CAPDU: 80 0D 02 02 05 77 E7 CB E3 03 [06:20:29]Write to MH i2c: E2 0D 00 02 77 80 0D 02 02 05 00 77 E7 CB E3 03 00 00 0C [06:20:29]Write i2c OK [06:20:29]MH_I2C_Read... [06:20:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:20:29]Read from MH i2c: E2 [06:20:29]MH_I2C_Read... [06:20:29]Read from MH i2c: E2 03 00 [06:20:29]MH_I2C_Read... [06:20:29]Read from MH i2c: E2 03 00 02 77 00 90 00 ED [06:20:29]RAPDU: 90 00 [06:20:29]wFMCommunicate OK [06:20:29]wFMCommunicate request_size=4 [06:20:29]MH_SAM_APDU [06:20:29]CAPDU: 80 0D 03 02 [06:20:29]Write to MH i2c: E2 08 00 03 77 80 0D 03 02 00 00 00 00 F5 [06:20:29]Write i2c OK [06:20:29]MH_I2C_Read... [06:20:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:20:29]Read from MH i2c: E2 [06:20:29]MH_I2C_Read... [06:20:29]Read from MH i2c: E2 0B 00 [06:20:29]MH_I2C_Read... [06:20:29]Read from MH i2c: E2 0B 00 03 77 00 61 BA C4 9E 9A 08 D3 EB 90 00 D3 [06:20:29]RAPDU: 61 BA C4 9E 9A 08 D3 EB 90 00 [06:20:29]wFMCommunicate OK [06:20:29]SAM_PROTO_SignData done [06:20:29]FM_MakeSignedData done [06:20:29]CreateOFDProtocolMessage [06:20:29]wFMCommunicate request_size=4 [06:20:29]MH_SAM_APDU [06:20:29]CAPDU: 80 11 00 00 [06:20:29]Write to MH i2c: E2 08 00 04 77 80 11 00 00 00 00 00 00 F5 [06:20:29]Write i2c OK [06:20:29]MH_I2C_Read... [06:20:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:20:29]Read from MH i2c: E2 [06:20:29]MH_I2C_Read... [06:20:29]Read from MH i2c: E2 17 00 [06:20:29]MH_I2C_Read... [06:20:29]Read from MH i2c: E2 17 00 04 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 44 [06:20:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [06:20:29]wFMCommunicate OK [06:20:29]CreateOFDProtocolMessage done [06:20:29]OFDSenderStorePacket 29114 [06:20:29]StoreOFDPacket docnum=29114 [06:20:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 46 94 07 01 BF 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 00 00 00 F4 03 04 00 B4 75 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BA 71 00 00 35 04 06 00 26 77 E7 CB E3 03 61 BA C4 9E 9A 08 D3 EB [06:20:29]CheckFolder [06:20:29]dirname=/storage/ofd_packets [06:20:29]CheckFolder done [06:20:29]ProducePacketName [06:20:29]name=ofd_packets/00029114 [06:20:29]NVStorageSaveData ofd_packets/00029114 [06:20:29]File name is /storage/ofd_packets/00029114 [06:20:29]Write 301 bytes [06:20:29]NVStorageSaveData done [06:20:29]OFDSenderStorePacket done [06:20:29]KKMCreateOFDPacket done [06:20:29]NVStorageSaveData kkm_last_timestamp [06:20:29]File name is /storage/kkm_last_timestamp [06:20:29]Write 4 bytes [06:20:29]NVStorageSaveData done [06:20:29]ExternCall_PrintAddStr [06:20:29]wPrintStart [06:20:29]Write to MH i2c: 01 00 00 05 77 7C [06:20:29]Write i2c OK [06:20:29]MH_I2C_Read... [06:20:29]Read from MH i2c: 01 [06:20:29]MH_I2C_Read... [06:20:29]Read from MH i2c: 01 07 00 [06:20:29]MH_I2C_Read... [06:20:29]Read from MH i2c: 01 07 00 05 77 00 00 00 00 00 FF 0F 91 [06:20:29]RasterBufferAndPrint [06:20:29]line Счет N : (1)347482 [06:20:29]line ИНН: 02508201610067 [06:20:29]line Контрольно-Кассовый Чек [06:20:29]line ПРОДАЖА [06:20:29]line ТРК (МРК, ГНК) : 32 [06:20:29]line Товар: 2710124130 [06:20:29]line Аи-92-К-5 [06:20:29]line 15.560 * 64.30 [06:20:29]line = 1000.51 [06:20:29]line НДС 12% НСП 1% [06:20:29]line > о реализуемом товаре [06:20:29]line ОКРУГЛЕНИЕ: -0.51 [06:20:29]line ИТОГО: 1000.00 [06:20:29]line Внесено: 1000.00 [06:20:29]line СДАЧА: 0.00 [06:20:29]line НСП 1% : 8.85 [06:20:29]line НДС 12% : 106.25 [06:20:29]line Наличными: 1000.00 [06:20:29]line Безнал.: 0.00 [06:20:29]line Место: АЗС № 108 "Партнер Нефть" [06:20:29]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [06:20:29]line СНО: Общий режим [06:20:29]line Чек 24 14.04.2024 06:20 [06:20:29]line Смена: 116 ФФД: 1.0 [06:20:29]line ЗНМ: 0300000027 [06:20:29]line РНМ: 0000138879044617 [06:20:29]line Версия ККМ: 001 [06:20:29]line ФМ: 0000000000963154 [06:20:29]line ФД: 29114 [06:20:29]line ФПД: 42296431862531 [06:20:29]line 1/tax-web-control/client/api/v1/ticket?date=20240414T062036&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29114&fm=42296431862531&tin=02508201610067®Number=0000138879044617&sum=100000 [06:20:29]OFD Sender: Processing packet 29114 [packets to send 8, broken 7] [06:20:29]ProducePacketName [06:20:29]name=ofd_packets/00029114 [06:20:29]OFD Sender: To server: pG, [06:20:29]CommunicateWithHost lk.salyk.kg:30040 [06:20:29]ConnectInit lk.salyk.kg [06:20:29]written 0, free lines is 4095 [06:20:29]Connected sock=10 [06:20:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 46 94 07 01 BF 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 00 00 00 F4 03 04 00 B4 75 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BA 71 00 00 35 04 06 00 26 77 E7 CB E3 03 61 BA C4 9E 9A 08 D3 EB [06:20:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 62 C2 47 00 14 CB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BA 71 00 00 F4 03 04 00 59 20 1B 66 B6 04 01 00 00 DD 21 B2 16 71 80 4C A3 [06:20:30]CommunicateWithHost err = 0 [06:20:30]CheckOFDResponse [06:20:30]1017 (14) - 77093643461234 [06:20:30]1041 (16) - 0000000000963154 [06:20:30]1040 (4) - 29114 [06:20:30]1012 (4) - 14.04.2024 00:16 [06:20:30]1206 (1) - 0 [06:20:30]OFD Sender: Remove packet 29114 [06:20:30]ProducePacketName [06:20:30]name=ofd_packets/00029114 [06:20:30]NVStorageDeleteData [06:20:30]Write to MH i2c: 01 00 00 2F 77 A6 [06:20:30]Write i2c OK [06:20:30]MH_I2C_Read... [06:20:30]Read from MH i2c: 01 [06:20:30]MH_I2C_Read... [06:20:30]Read from MH i2c: 01 07 00 [06:20:30]MH_I2C_Read... [06:20:30]Read from MH i2c: 01 07 00 2F 77 00 00 00 00 00 C0 0C 79 [06:20:30]RasterBufferAndPrint [06:20:30]line [06:20:30]line [06:20:30]line [06:20:30]line [06:20:30]line [06:20:30]written 0, free lines is 3269 [06:20:30]MH_Cut [06:20:30]Write to MH i2c: D1 01 00 36 77 01 7F [06:20:30]Write i2c OK [06:20:30]MH_I2C_Read... [06:20:30]Read from MH i2c: D1 [06:20:30]MH_I2C_Read... [06:20:30]Read from MH i2c: D1 01 00 [06:20:30]MH_I2C_Read... [06:20:30]Read from MH i2c: D1 01 00 36 77 00 7E [06:20:30]Write to MH i2c: 01 00 00 37 77 AE [06:20:30]Write i2c OK [06:20:30]MH_I2C_Read... [06:20:30]OFD Sender: No OFD packet to send [06:20:31]*** Cut start [06:20:31]*** Partial cut [06:20:31]*** CUTSNS_PIN = 1 [06:20:31]*** CUTSNS_PIN = 0 [06:20:31]*** Brake cut motor [06:20:31]Read from MH i2c: 01 [06:20:31]MH_I2C_Read... [06:20:31]*** Stop cut motor [06:20:31]*** Cut end [06:20:31]Read from MH i2c: 01 07 00 [06:20:31]MH_I2C_Read... [06:20:31]Read from MH i2c: 01 07 00 37 77 00 00 00 00 00 FF 0F C3 [06:20:31]process_action close_receipt done [06:20:31]requested_data is exist [06:20:31]produce_requested_data [06:20:31]requested_item fm.sn is exist - process it [06:20:31]wFMCommunicate request_size=4 [06:20:31]MH_SAM_APDU [06:20:31]CAPDU: 80 11 00 00 [06:20:31]Write to MH i2c: E2 08 00 38 77 80 11 00 00 00 00 00 00 29 [06:20:31]Write i2c OK [06:20:31]MH_I2C_Read... [06:20:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:20:31]Read from MH i2c: E2 [06:20:31]MH_I2C_Read... [06:20:31]Read from MH i2c: E2 17 00 [06:20:31]MH_I2C_Read... [06:20:31]Read from MH i2c: E2 17 00 38 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 78 [06:20:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [06:20:31]wFMCommunicate OK [06:20:31]requested_item fd.num is exist - process it [06:20:31]SAM_PROTO_GetFieldsCounters [06:20:31]wFMCommunicate request_size=4 [06:20:31]MH_SAM_APDU [06:20:31]CAPDU: 80 13 00 00 [06:20:31]Write to MH i2c: E2 08 00 39 77 80 13 00 00 00 00 00 00 2C [06:20:31]Write i2c OK [06:20:31]MH_I2C_Read... [06:20:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:20:31]Read from MH i2c: E2 [06:20:31]MH_I2C_Read... [06:20:31]Read from MH i2c: E2 62 00 [06:20:31]MH_I2C_Read... [06:20:31]Read from MH i2c: E2 62 00 39 77 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 BA 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 51 [06:20:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 BA 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:20:31]wFMCommunicate OK [06:20:31]SAM_PROTO_GetFieldsCounters done [06:20:31]requested_item shift.num is exist - process it [06:20:31]requested_item shift.opened is exist - process it [06:20:31]req_shift_opened [06:20:31]FM_GetShiftState [06:20:31]SAM_PROTO_GetShiftState [06:20:31]wFMCommunicate request_size=4 [06:20:31]MH_SAM_APDU [06:20:31]CAPDU: 80 13 01 00 [06:20:31]Write to MH i2c: E2 08 00 3A 77 80 13 01 00 00 00 00 00 2E [06:20:31]Write i2c OK [06:20:31]MH_I2C_Read... [06:20:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:20:31]Read from MH i2c: E2 [06:20:31]MH_I2C_Read... [06:20:31]Read from MH i2c: E2 0E 00 [06:20:31]MH_I2C_Read... [06:20:31]Read from MH i2c: E2 0E 00 3A 77 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 DA [06:20:31]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [06:20:31]wFMCommunicate OK [06:20:31]SAM_PROTO_GetShiftState done [06:20:31]FM_GetShiftState done [06:20:31]req_shift_opened done [06:20:31]requested_item shift.open_date is exist - process it [06:20:31]req_shift_open_date [06:20:31]req_shift_open_date done [06:20:31]produce_requested_data done [06:20:31]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29114,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [06:20:31]process_action_free close_receipt [06:20:31]json_value_free [06:20:31]json_value_free done [06:20:31]process_json_proto returns [06:20:31]Send response to host [06:20:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29114,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [06:20:31]free response buf [06:20:31]execute_script done [06:20:31]execute_script returns [06:20:31]free content buf [06:20:31]Sock 9.Close socket [06:20:31]Sock 9.Thread stoped [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]accept exits with 7 [06:24:50]New connection [06:24:50]New thread 3066785124 created [06:24:50]Thread 3066928484 joined [06:24:50]Waiting for new connection... [06:24:50] Sock 7.Parse request [06:24:50]Sock 7.Check first char [06:24:50]Sock 7.First char is OK [06:24:50]request: POST /json_proto HTTP/1.0 [06:24:50]Method: POST [06:24:50]URL: /json_proto [06:24:50]Method is POST - this is cgi request [06:24:50]url: /json_proto [06:24:50]query_string will be loaded in cgi processing [06:24:50]execute_cgi json_proto POST (null) [06:24:50]execute_cgi path=json_proto method=POST [06:24:50]POST find Content-Length [06:24:50]Host: 172.17.33.3:8080 [06:24:50]Content-Length: 677 [06:24:50]Content-Type: application/json [06:24:50] [06:24:50]POST finish read [06:24:50]Found Content-Length = 677 [06:24:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347483", "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" ] } } [06:24:50]execute_script... [06: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)347483", "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" ] } } [06:24:50]POST & json_proto [06:24:50]process_json_proto [06:24:50]json parsed OK: [06:24:50]protocol is kg_v1.0 [06:24:50]action value=close_receipt [06:24:50]process_action close_receipt [06:24:50]cmd_close_receipt [06:24:50]MH_GetDate [06:24:50]Write to MH i2c: F0 00 00 3B 77 A1 [06:24:50]Write i2c OK [06:24:50]MH_I2C_Read... [06:24:50]Read from MH i2c: F0 [06:24:50]MH_I2C_Read... [06:24:50]Read from MH i2c: F0 09 00 [06:24:50]MH_I2C_Read... [06:24:50]Read from MH i2c: F0 09 00 3B 77 00 BB 76 1B 66 23 5B 8F 65 CE [06:24:50]GetLastDocTimeStamp 1713075636 [06:24:50]current date 1713075899 [06:24:50]FM_GetShiftState [06:24:50]SAM_PROTO_GetShiftState [06:24:50]wFMCommunicate request_size=4 [06:24:50]MH_SAM_APDU [06:24:50]CAPDU: 80 13 01 00 [06:24:50]Write to MH i2c: E2 08 00 3C 77 80 13 01 00 00 00 00 00 30 [06:24:50]Write i2c OK [06:24:50]MH_I2C_Read... [06:24:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:24:50]Read from MH i2c: E2 [06:24:50]MH_I2C_Read... [06:24:50]Read from MH i2c: E2 0E 00 [06:24:50]MH_I2C_Read... [06:24:50]Read from MH i2c: E2 0E 00 3C 77 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 DC [06:24:50]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [06:24:50]wFMCommunicate OK [06:24:50]SAM_PROTO_GetShiftState done [06:24:50]FM_GetShiftState done [06:24:50]opened in 1713053951 [06:24:50]opened+sec_in_day 1713140351 [06:24:50]quantity*price = 50025 [06:24:50]sum+1 = 50026 [06: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 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 25 14.04.2024 06:24 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29115 ФПД: 213578761603939 1/tax-web-control/client/api/v1/ticket?date=20240414T062459&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29115&fm=213578761603939&tin=02508201610067®Number=0000138879044617&sum=50000 [06:24:51]StoreToDocumentArchive [06:24:51]shift 116 fd 29115 [06:24:51]save to /storage/0116/doc_00029115 [06:24:51]save last doc name /storage/0116/doc_00029115 to /storage/kkm_last_doc_name [06:24:51]save OK [06:24:51]Clear old archive folders... [06:24:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:24:51]tlvbuf is 011EB230 [06:24:51]SAM_PROTO_ClearQueue [06:24:51]wFMCommunicate request_size=4 [06:24:51]MH_SAM_APDU [06:24:51]CAPDU: 80 09 00 00 [06:24:51]Write to MH i2c: E2 08 00 49 77 80 09 00 00 00 00 00 00 32 [06:24:51]Write i2c OK [06:24:51]MH_I2C_Read... [06:24:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:24:51]Read from MH i2c: E2 [06:24:51]MH_I2C_Read... [06:24:51]Read from MH i2c: E2 03 00 [06:24:51]MH_I2C_Read... [06:24:51]Read from MH i2c: E2 03 00 49 77 00 90 00 34 [06:24:51]RAPDU: 90 00 [06:24:51]wFMCommunicate OK [06:24:51]SAM_PROTO_ClearQueue done [06:24:51]KKMCreateOFDPacket [06:24:51]OFDProtocolAddRootSTLVToBuf [06:24:51]FM_MakeSignedData [06:24:51]FM_MakeSignedData [06:24:51]SAM_PROTO_SignData [06:24:51]wFMCommunicate request_size=4 [06:24:51]MH_SAM_APDU [06:24:51]CAPDU: 80 0D 01 02 [06:24:51]Write to MH i2c: E2 08 00 4A 77 80 0D 01 02 00 00 00 00 3A [06:24:51]Write i2c OK [06:24:51]MH_I2C_Read... [06:24:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:24:51]Read from MH i2c: E2 [06:24:51]MH_I2C_Read... [06:24:51]Read from MH i2c: E2 03 00 [06:24:51]MH_I2C_Read... [06:24:51]Read from MH i2c: E2 03 00 4A 77 00 90 00 35 [06:24:51]RAPDU: 90 00 [06:24:51]wFMCommunicate OK [06:24:51]wFMCommunicate request_size=255 [06:24:51]MH_SAM_APDU [06: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 19 00 00 00 F4 03 04 00 BB 76 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BB 71 00 00 35 04 06 00 C2 [06:24:51]Write to MH i2c: E2 02 01 4B 77 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 19 00 00 00 F4 03 04 00 BB 76 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BB 71 00 00 35 04 06 00 C2 00 00 29 [06:24:51]Write i2c OK [06:24:51]MH_I2C_Read... [06:24:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:24:51]Read from MH i2c: E2 [06:24:51]MH_I2C_Read... [06:24:51]Read from MH i2c: E2 03 00 [06:24:51]MH_I2C_Read... [06:24:51]Read from MH i2c: E2 03 00 4B 77 00 90 00 36 [06:24:51]RAPDU: 90 00 [06:24:51]wFMCommunicate OK [06:24:51]wFMCommunicate request_size=10 [06:24:51]MH_SAM_APDU [06:24:51]CAPDU: 80 0D 02 02 05 3F AE 37 8B 63 [06:24:51]Write to MH i2c: E2 0D 00 4C 77 80 0D 02 02 05 00 3F AE 37 8B 63 00 00 59 [06:24:51]Write i2c OK [06:24:51]MH_I2C_Read... [06:24:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:24:52]Read from MH i2c: E2 [06:24:52]MH_I2C_Read... [06:24:52]Read from MH i2c: E2 03 00 [06:24:52]MH_I2C_Read... [06:24:52]Read from MH i2c: E2 03 00 4C 77 00 90 00 37 [06:24:52]RAPDU: 90 00 [06:24:52]wFMCommunicate OK [06:24:52]wFMCommunicate request_size=4 [06:24:52]MH_SAM_APDU [06:24:52]CAPDU: 80 0D 03 02 [06:24:52]Write to MH i2c: E2 08 00 4D 77 80 0D 03 02 00 00 00 00 3F [06:24:52]Write i2c OK [06:24:52]MH_I2C_Read... [06:24:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:24:52]Read from MH i2c: E2 [06:24:52]MH_I2C_Read... [06:24:52]Read from MH i2c: E2 0B 00 [06:24:52]MH_I2C_Read... [06:24:52]Read from MH i2c: E2 0B 00 4D 77 00 FE 2B A9 A6 2F 4F 1B DC 90 00 2D [06:24:52]RAPDU: FE 2B A9 A6 2F 4F 1B DC 90 00 [06:24:52]wFMCommunicate OK [06:24:52]SAM_PROTO_SignData done [06:24:52]FM_MakeSignedData done [06:24:52]CreateOFDProtocolMessage [06:24:52]wFMCommunicate request_size=4 [06:24:52]MH_SAM_APDU [06:24:52]CAPDU: 80 11 00 00 [06:24:52]Write to MH i2c: E2 08 00 4E 77 80 11 00 00 00 00 00 00 3F [06:24:52]Write i2c OK [06:24:52]MH_I2C_Read... [06:24:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:24:52]Read from MH i2c: E2 [06:24:52]MH_I2C_Read... [06:24:52]Read from MH i2c: E2 17 00 [06:24:52]MH_I2C_Read... [06:24:52]Read from MH i2c: E2 17 00 4E 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 8E [06:24:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [06:24:52]wFMCommunicate OK [06:24:52]CreateOFDProtocolMessage done [06:24:52]OFDSenderStorePacket 29115 [06:24:52]StoreOFDPacket docnum=29115 [06:24:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 F8 76 07 01 CE 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 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 19 00 00 00 F4 03 04 00 BB 76 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BB 71 00 00 35 04 06 00 C2 3F AE 37 8B 63 FE 2B A9 A6 2F 4F 1B DC [06:24:52]CheckFolder [06:24:52]dirname=/storage/ofd_packets [06:24:52]CheckFolder done [06:24:52]ProducePacketName [06:24:52]name=ofd_packets/00029115 [06:24:52]NVStorageSaveData ofd_packets/00029115 [06:24:52]File name is /storage/ofd_packets/00029115 [06:24:52]Write 301 bytes [06:24:52]NVStorageSaveData done [06:24:52]OFDSenderStorePacket done [06:24:52]KKMCreateOFDPacket done [06:24:52]NVStorageSaveData kkm_last_timestamp [06:24:52]File name is /storage/kkm_last_timestamp [06:24:52]Write 4 bytes [06:24:52]NVStorageSaveData done [06:24:52]ExternCall_PrintAddStr [06:24:52]wPrintStart [06:24:52]Write to MH i2c: 01 00 00 4F 77 C6 [06:24:52]Write i2c OK [06:24:52]MH_I2C_Read... [06:24:52]Read from MH i2c: 01 [06:24:52]MH_I2C_Read... [06:24:52]Read from MH i2c: 01 07 00 [06:24:52]MH_I2C_Read... [06:24:52]Read from MH i2c: 01 07 00 4F 77 00 00 00 00 00 FF 0F DB [06:24:52]RasterBufferAndPrint [06:24:52]line Счет N : (1)347483 [06:24:52]line ИНН: 02508201610067 [06:24:52]line Контрольно-Кассовый Чек [06:24:52]line ПРОДАЖА [06:24:52]line ТРК (МРК, ГНК) : 42 [06:24:52]line Товар: 2710124130 [06:24:52]line Аи-92-К-5 [06:24:52]line 7.780 * 64.30 [06:24:52]line = 500.25 [06:24:52]line НДС 12% НСП 1% [06:24:52]line > о реализуемом товаре [06:24:52]line ОКРУГЛЕНИЕ: -0.25 [06:24:52]line ИТОГО: 500.00 [06:24:52]line Внесено: 500.00 [06:24:52]line СДАЧА: 0.00 [06:24:52]line НСП 1% : 4.43 [06:24:52]line НДС 12% : 53.12 [06:24:52]line Наличными: 500.00 [06:24:52]line Безнал.: 0.00 [06:24:52]line Место: АЗС № 108 "Партнер Нефть" [06:24:52]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [06:24:52]line СНО: Общий режим [06:24:52]line Чек 25 14.04.2024 06:24 [06:24:52]line Смена: 116 ФФД: 1.0 [06:24:52]line ЗНМ: 0300000027 [06:24:52]line РНМ: 0000138879044617 [06:24:52]line Версия ККМ: 001 [06:24:52]line ФМ: 0000000000963154 [06:24:52]line ФД: 29115 [06:24:52]line ФПД: 213578761603939 [06:24:52]line 1/tax-web-control/client/api/v1/ticket?date=20240414T062459&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29115&fm=213578761603939&tin=02508201610067®Number=0000138879044617&sum=50000 [06:24:52]OFD Sender: Processing packet 29115 [packets to send 8, broken 7] [06:24:52]ProducePacketName [06:24:52]name=ofd_packets/00029115 [06:24:52]OFD Sender: To server: pG, [06:24:52]CommunicateWithHost lk.salyk.kg:30040 [06:24:52]ConnectInit lk.salyk.kg [06:24:52]written 0, free lines is 4095 [06:24:52]Connected sock=10 [06:24:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 F8 76 07 01 CE 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 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 19 00 00 00 F4 03 04 00 BB 76 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BB 71 00 00 35 04 06 00 C2 3F AE 37 8B 63 FE 2B A9 A6 2F 4F 1B DC [06:24:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 3A 59 47 00 4D 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 39 36 33 31 35 34 10 04 04 00 BB 71 00 00 F4 03 04 00 5F 21 1B 66 B6 04 01 00 00 4D 00 E1 B4 1B 4C 4C 9B [06:24:52]CommunicateWithHost err = 0 [06:24:52]CheckOFDResponse [06:24:52]1017 (14) - 77093643461234 [06:24:52]1041 (16) - 0000000000963154 [06:24:52]1040 (4) - 29115 [06:24:52]1012 (4) - 14.04.2024 00:20 [06:24:52]1206 (1) - 0 [06:24:52]OFD Sender: Remove packet 29115 [06:24:52]ProducePacketName [06:24:52]name=ofd_packets/00029115 [06:24:52]NVStorageDeleteData [06:24:52]Write to MH i2c: 01 00 00 79 77 F0 [06:24:52]Write i2c OK [06:24:52]MH_I2C_Read... [06:24:52]Read from MH i2c: 01 [06:24:52]MH_I2C_Read... [06:24:52]Read from MH i2c: 01 07 00 [06:24:52]MH_I2C_Read... [06:24:52]Read from MH i2c: 01 07 00 79 77 00 00 00 00 00 C0 0C C3 [06:24:52]RasterBufferAndPrint [06:24:52]line [06:24:52]line [06:24:52]line [06:24:52]line [06:24:52]line [06:24:52]written 0, free lines is 3270 [06:24:52]MH_Cut [06:24:52]Write to MH i2c: D1 01 00 80 77 01 C9 [06:24:52]Write i2c OK [06:24:52]MH_I2C_Read... [06:24:52]Read from MH i2c: D1 [06:24:52]MH_I2C_Read... [06:24:52]Read from MH i2c: D1 01 00 [06:24:52]MH_I2C_Read... [06:24:52]Read from MH i2c: D1 01 00 80 77 00 C8 [06:24:52]Write to MH i2c: 01 00 00 81 77 F8 [06:24:52]Write i2c OK [06:24:52]MH_I2C_Read... [06:24:53]OFD Sender: No OFD packet to send [06:24:53]*** Cut start [06:24:53]*** Partial cut [06:24:53]*** CUTSNS_PIN = 1 [06:24:53]*** CUTSNS_PIN = 0 [06:24:54]*** Brake cut motor [06:24:54]Read from MH i2c: 01 [06:24:54]MH_I2C_Read... [06:24:54]*** Stop cut motor [06:24:54]*** Cut end [06:24:54]Read from MH i2c: 01 07 00 [06:24:54]MH_I2C_Read... [06:24:54]Read from MH i2c: 01 07 00 81 77 00 00 00 00 00 FF 0F 0D [06:24:54]process_action close_receipt done [06:24:54]requested_data is exist [06:24:54]produce_requested_data [06:24:54]requested_item fm.sn is exist - process it [06:24:54]wFMCommunicate request_size=4 [06:24:54]MH_SAM_APDU [06:24:54]CAPDU: 80 11 00 00 [06:24:54]Write to MH i2c: E2 08 00 82 77 80 11 00 00 00 00 00 00 73 [06:24:54]Write i2c OK [06:24:54]MH_I2C_Read... [06:24:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:24:54]Read from MH i2c: E2 [06:24:54]MH_I2C_Read... [06:24:54]Read from MH i2c: E2 17 00 [06:24:54]MH_I2C_Read... [06:24:54]Read from MH i2c: E2 17 00 82 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C2 [06:24:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [06:24:54]wFMCommunicate OK [06:24:54]requested_item fd.num is exist - process it [06:24:54]SAM_PROTO_GetFieldsCounters [06:24:54]wFMCommunicate request_size=4 [06:24:54]MH_SAM_APDU [06:24:54]CAPDU: 80 13 00 00 [06:24:54]Write to MH i2c: E2 08 00 83 77 80 13 00 00 00 00 00 00 76 [06:24:54]Write i2c OK [06:24:54]MH_I2C_Read... [06:24:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:24:54]Read from MH i2c: E2 [06:24:54]MH_I2C_Read... [06:24:54]Read from MH i2c: E2 62 00 [06:24:54]MH_I2C_Read... [06:24:54]Read from MH i2c: E2 62 00 83 77 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 BB 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 9F [06:24:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 BB 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:24:54]wFMCommunicate OK [06:24:54]SAM_PROTO_GetFieldsCounters done [06:24:54]requested_item shift.num is exist - process it [06:24:54]requested_item shift.opened is exist - process it [06:24:54]req_shift_opened [06:24:54]FM_GetShiftState [06:24:54]SAM_PROTO_GetShiftState [06:24:54]wFMCommunicate request_size=4 [06:24:54]MH_SAM_APDU [06:24:54]CAPDU: 80 13 01 00 [06:24:54]Write to MH i2c: E2 08 00 84 77 80 13 01 00 00 00 00 00 78 [06:24:54]Write i2c OK [06:24:54]MH_I2C_Read... [06:24:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:24:54]Read from MH i2c: E2 [06:24:54]MH_I2C_Read... [06:24:54]Read from MH i2c: E2 0E 00 [06:24:54]MH_I2C_Read... [06:24:54]Read from MH i2c: E2 0E 00 84 77 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 24 [06:24:54]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [06:24:54]wFMCommunicate OK [06:24:54]SAM_PROTO_GetShiftState done [06:24:54]FM_GetShiftState done [06:24:54]req_shift_opened done [06:24:54]requested_item shift.open_date is exist - process it [06:24:54]req_shift_open_date [06:24:54]req_shift_open_date done [06:24:54]produce_requested_data done [06:24:54]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29115,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [06:24:54]process_action_free close_receipt [06:24:54]json_value_free [06:24:54]json_value_free done [06:24:54]process_json_proto returns [06:24:54]Send response to host [06:24:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29115,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [06:24:54]free response buf [06:24:54]execute_script done [06:24:54]execute_script returns [06:24:54]free content buf [06:24:54]Sock 7.Close socket [06:24:54]Sock 7.Thread stoped [06:24:58]OFD Sender: No OFD packet to send [06:25:03]OFD Sender: No OFD packet to send [06:25:08]OFD Sender: No OFD packet to send [06:25:13]OFD Sender: No OFD packet to send [06:25:18]OFD Sender: No OFD packet to send [06:25:23]OFD Sender: No OFD packet to send [06:25:28]OFD Sender: No OFD packet to send [06:25:33]OFD Sender: No OFD packet to send [06:25:38]OFD Sender: No OFD packet to send [06:25:43]OFD Sender: No OFD packet to send [06:25:48]OFD Sender: No OFD packet to send [06:25:53]OFD Sender: No OFD packet to send [06:25:58]OFD Sender: No OFD packet to send [06:26:03]OFD Sender: No OFD packet to send [06:26:08]OFD Sender: No OFD packet to send [06:26:13]OFD Sender: No OFD packet to send [06:26:18]OFD Sender: No OFD packet to send [06:26:23]OFD Sender: No OFD packet to send [06:26:28]OFD Sender: No OFD packet to send [06:26:33]OFD Sender: No OFD packet to send [06:26:38]OFD Sender: No OFD packet to send [06:26:43]OFD Sender: No OFD packet to send [06:26:48]OFD Sender: No OFD packet to send [06:26:53]OFD Sender: No OFD packet to send [06:26:58]OFD Sender: No OFD packet to send [06:27:03]OFD Sender: No OFD packet to send [06:27:08]OFD Sender: No OFD packet to send [06:27:13]OFD Sender: No OFD packet to send [06:27:18]OFD Sender: No OFD packet to send [06:27:23]OFD Sender: No OFD packet to send [06:27:28]OFD Sender: No OFD packet to send [06:27:33]OFD Sender: No OFD packet to send [06:27:38]OFD Sender: No OFD packet to send [06:27:43]OFD Sender: No OFD packet to send [06:27:48]OFD Sender: No OFD packet to send [06:27:53]OFD Sender: No OFD packet to send [06:27:58]OFD Sender: No OFD packet to send [06:28:03]OFD Sender: No OFD packet to send [06:28:08]OFD Sender: No OFD packet to send [06:28:13]OFD Sender: No OFD packet to send [06:28:18]OFD Sender: No OFD packet to send [06:28:23]OFD Sender: No OFD packet to send [06:28:28]OFD Sender: No OFD packet to send [06:28:33]OFD Sender: No OFD packet to send [06:28:38]OFD Sender: No OFD packet to send [06:28:43]OFD Sender: No OFD packet to send [06:28:48]OFD Sender: No OFD packet to send [06:28:53]OFD Sender: No OFD packet to send [06:28:58]OFD Sender: No OFD packet to send [06:29:03]OFD Sender: No OFD packet to send [06:29:08]OFD Sender: No OFD packet to send [06:29:13]OFD Sender: No OFD packet to send [06:29:18]OFD Sender: No OFD packet to send [06:29:23]OFD Sender: No OFD packet to send [06:29:28]OFD Sender: No OFD packet to send [06:29:33]OFD Sender: No OFD packet to send [06:29:38]OFD Sender: No OFD packet to send [06:29:43]OFD Sender: No OFD packet to send [06:29:48]OFD Sender: No OFD packet to send [06:29:53]OFD Sender: No OFD packet to send [06:29:58]OFD Sender: No OFD packet to send [06:30:03]OFD Sender: No OFD packet to send [06:30:08]OFD Sender: No OFD packet to send [06:30:13]OFD Sender: No OFD packet to send [06:30:18]OFD Sender: No OFD packet to send [06:30:23]OFD Sender: No OFD packet to send [06:30:28]OFD Sender: No OFD packet to send [06:30:33]OFD Sender: No OFD packet to send [06:30:38]OFD Sender: No OFD packet to send [06:30:43]OFD Sender: No OFD packet to send [06:30:48]OFD Sender: No OFD packet to send [06:30:53]OFD Sender: No OFD packet to send [06:30:58]OFD Sender: No OFD packet to send [06:31:03]OFD Sender: No OFD packet to send [06:31:08]OFD Sender: No OFD packet to send [06:31:13]OFD Sender: No OFD packet to send [06:31:18]OFD Sender: No OFD packet to send [06:31:23]OFD Sender: No OFD packet to send [06:31:28]OFD Sender: No OFD packet to send [06:31:33]OFD Sender: No OFD packet to send [06:31:38]OFD Sender: No OFD packet to send [06:31:43]OFD Sender: No OFD packet to send [06:31:48]OFD Sender: No OFD packet to send [06:31:53]OFD Sender: No OFD packet to send [06:31:58]OFD Sender: No OFD packet to send [06:32:03]OFD Sender: No OFD packet to send [06:32:08]OFD Sender: No OFD packet to send [06:32:13]OFD Sender: No OFD packet to send [06:32:18]OFD Sender: No OFD packet to send [06:32:23]OFD Sender: No OFD packet to send [06:32:28]OFD Sender: No OFD packet to send [06:32:33]OFD Sender: No OFD packet to send [06:32:38]OFD Sender: No OFD packet to send [06:32:43]OFD Sender: No OFD packet to send [06:32:48]OFD Sender: No OFD packet to send [06:32:53]OFD Sender: No OFD packet to send [06:32:58]OFD Sender: No OFD packet to send [06:33:03]OFD Sender: No OFD packet to send [06:33:08]OFD Sender: No OFD packet to send [06:33:13]OFD Sender: No OFD packet to send [06:33:18]OFD Sender: No OFD packet to send [06:33:23]OFD Sender: No OFD packet to send [06:33:28]OFD Sender: No OFD packet to send [06:33:33]OFD Sender: No OFD packet to send [06:33:38]OFD Sender: No OFD packet to send [06:33:43]OFD Sender: No OFD packet to send [06:33:48]OFD Sender: No OFD packet to send [06:33:53]OFD Sender: No OFD packet to send [06:33:58]OFD Sender: No OFD packet to send [06:34:03]OFD Sender: No OFD packet to send [06:34:08]OFD Sender: No OFD packet to send [06:34:13]OFD Sender: No OFD packet to send [06:34:18]OFD Sender: No OFD packet to send [06:34:23]OFD Sender: No OFD packet to send [06:34:28]OFD Sender: No OFD packet to send [06:34:33]OFD Sender: No OFD packet to send [06:34:38]OFD Sender: No OFD packet to send [06:34:43]OFD Sender: No OFD packet to send [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:35:59]accept exits with 9 [06:35:59]New connection [06:35:59]New thread 3066928484 created [06:35:59]Thread 3066785124 joined [06:35:59]Waiting for new connection... [06:35:59] Sock 9.Parse request [06:35:59]Sock 9.Check first char [06:35:59]Sock 9.First char is OK [06:35:59]request: POST /json_proto HTTP/1.0 [06:35:59]Method: POST [06:35:59]URL: /json_proto [06:35:59]Method is POST - this is cgi request [06:35:59]url: /json_proto [06:35:59]query_string will be loaded in cgi processing [06:35:59]execute_cgi json_proto POST (null) [06:35:59]execute_cgi path=json_proto method=POST [06:35:59]POST find Content-Length [06:35:59]Host: 172.17.33.3:8080 [06:35:59]Content-Length: 682 [06:35:59]Content-Type: application/json [06:35:59] [06:35:59]POST finish read [06:35:59]Found Content-Length = 682 [06:35:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347484", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.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" ] } } [06:35:59]execute_script... [06:35: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)347484", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.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" ] } } [06:35:59]POST & json_proto [06:35:59]process_json_proto [06:35:59]json parsed OK: [06:35:59]protocol is kg_v1.0 [06:35:59]action value=close_receipt [06:35:59]process_action close_receipt [06:35:59]cmd_close_receipt [06:35:59]MH_GetDate [06:35:59]Write to MH i2c: F0 00 00 85 77 EB [06:35:59]Write i2c OK [06:35:59]MH_I2C_Read... [06:35:59]Read from MH i2c: F0 [06:35:59]MH_I2C_Read... [06:35:59]Read from MH i2c: F0 09 00 [06:35:59]MH_I2C_Read... [06:35:59]Read from MH i2c: F0 09 00 85 77 00 57 79 1B 66 23 5B 8F 65 B7 [06:35:59]GetLastDocTimeStamp 1713075899 [06:35:59]current date 1713076567 [06:35:59]FM_GetShiftState [06:35:59]SAM_PROTO_GetShiftState [06:35:59]wFMCommunicate request_size=4 [06:35:59]MH_SAM_APDU [06:35:59]CAPDU: 80 13 01 00 [06:35:59]Write to MH i2c: E2 08 00 86 77 80 13 01 00 00 00 00 00 7A [06:35:59]Write i2c OK [06:35:59]MH_I2C_Read... [06:35:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:35:59]Read from MH i2c: E2 [06:35:59]MH_I2C_Read... [06:35:59]Read from MH i2c: E2 0E 00 [06:35:59]MH_I2C_Read... [06:35:59]Read from MH i2c: E2 0E 00 86 77 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 26 [06:35:59]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [06:35:59]wFMCommunicate OK [06:35:59]SAM_PROTO_GetShiftState done [06:35:59]FM_GetShiftState done [06:35:59]opened in 1713053951 [06:35:59]opened+sec_in_day 1713140351 [06:35:59]quantity*price = 200037 [06:35:59]sum+1 = 200038 [06:35:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 26 14.04.2024 06:36 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29116 ФПД: 123799149519775 1/tax-web-control/client/api/v1/ticket?date=20240414T063607&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29116&fm=123799149519775&tin=02508201610067®Number=0000138879044617&sum=200000 [06:36:00]StoreToDocumentArchive [06:36:00]shift 116 fd 29116 [06:36:00]save to /storage/0116/doc_00029116 [06:36:00]save last doc name /storage/0116/doc_00029116 to /storage/kkm_last_doc_name [06:36:00]save OK [06:36:00]Clear old archive folders... [06:36:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:36:00]tlvbuf is 012862F0 [06:36:00]SAM_PROTO_ClearQueue [06:36:00]wFMCommunicate request_size=4 [06:36:00]MH_SAM_APDU [06:36:00]CAPDU: 80 09 00 00 [06:36:00]Write to MH i2c: E2 08 00 93 77 80 09 00 00 00 00 00 00 7C [06:36:00]Write i2c OK [06:36:00]MH_I2C_Read... [06:36:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:36:00]Read from MH i2c: E2 [06:36:00]MH_I2C_Read... [06:36:00]Read from MH i2c: E2 03 00 [06:36:00]MH_I2C_Read... [06:36:00]Read from MH i2c: E2 03 00 93 77 00 90 00 7E [06:36:00]RAPDU: 90 00 [06:36:00]wFMCommunicate OK [06:36:00]SAM_PROTO_ClearQueue done [06:36:00]KKMCreateOFDPacket [06:36:00]OFDProtocolAddRootSTLVToBuf [06:36:00]FM_MakeSignedData [06:36:00]FM_MakeSignedData [06:36:00]SAM_PROTO_SignData [06:36:00]wFMCommunicate request_size=4 [06:36:00]MH_SAM_APDU [06:36:00]CAPDU: 80 0D 01 02 [06:36:00]Write to MH i2c: E2 08 00 94 77 80 0D 01 02 00 00 00 00 84 [06:36:00]Write i2c OK [06:36:00]MH_I2C_Read... [06:36:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:36:00]Read from MH i2c: E2 [06:36:00]MH_I2C_Read... [06:36:00]Read from MH i2c: E2 03 00 [06:36:00]MH_I2C_Read... [06:36:00]Read from MH i2c: E2 03 00 94 77 00 90 00 7F [06:36:00]RAPDU: 90 00 [06:36:00]wFMCommunicate OK [06:36:00]wFMCommunicate request_size=255 [06:36:00]MH_SAM_APDU [06:36: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 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 1A 00 00 00 F4 03 04 00 57 79 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BC 71 00 00 35 04 06 00 70 [06:36:00]Write to MH i2c: E2 02 01 95 77 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1A 00 00 00 F4 03 04 00 57 79 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BC 71 00 00 35 04 06 00 70 00 00 AF [06:36:00]Write i2c OK [06:36:00]MH_I2C_Read... [06:36:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:36:00]Read from MH i2c: E2 [06:36:00]MH_I2C_Read... [06:36:00]Read from MH i2c: E2 03 00 [06:36:00]MH_I2C_Read... [06:36:00]Read from MH i2c: E2 03 00 95 77 00 90 00 80 [06:36:00]RAPDU: 90 00 [06:36:00]wFMCommunicate OK [06:36:00]wFMCommunicate request_size=10 [06:36:00]MH_SAM_APDU [06:36:00]CAPDU: 80 0D 02 02 05 98 3C 54 A3 9F [06:36:00]Write to MH i2c: E2 0D 00 96 77 80 0D 02 02 05 00 98 3C 54 A3 9F 00 00 FB [06:36:00]Write i2c OK [06:36:00]MH_I2C_Read... [06:36:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:36:00]Read from MH i2c: E2 [06:36:00]MH_I2C_Read... [06:36:00]Read from MH i2c: E2 03 00 [06:36:00]MH_I2C_Read... [06:36:00]Read from MH i2c: E2 03 00 96 77 00 90 00 81 [06:36:00]RAPDU: 90 00 [06:36:00]wFMCommunicate OK [06:36:00]wFMCommunicate request_size=4 [06:36:00]MH_SAM_APDU [06:36:00]CAPDU: 80 0D 03 02 [06:36:00]Write to MH i2c: E2 08 00 97 77 80 0D 03 02 00 00 00 00 89 [06:36:00]Write i2c OK [06:36:00]MH_I2C_Read... [06:36:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:36:00]Read from MH i2c: E2 [06:36:00]MH_I2C_Read... [06:36:00]Read from MH i2c: E2 0B 00 [06:36:00]MH_I2C_Read... [06:36:00]Read from MH i2c: E2 0B 00 97 77 00 4D 36 9A 3E 78 EC 58 8C 90 00 2D [06:36:00]RAPDU: 4D 36 9A 3E 78 EC 58 8C 90 00 [06:36:00]wFMCommunicate OK [06:36:00]SAM_PROTO_SignData done [06:36:00]FM_MakeSignedData done [06:36:00]CreateOFDProtocolMessage [06:36:00]wFMCommunicate request_size=4 [06:36:00]MH_SAM_APDU [06:36:00]CAPDU: 80 11 00 00 [06:36:00]Write to MH i2c: E2 08 00 98 77 80 11 00 00 00 00 00 00 89 [06:36:00]Write i2c OK [06:36:00]MH_I2C_Read... [06:36:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:36:00]Read from MH i2c: E2 [06:36:00]MH_I2C_Read... [06:36:00]Read from MH i2c: E2 17 00 [06:36:00]MH_I2C_Read... [06:36:00]Read from MH i2c: E2 17 00 98 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D8 [06:36:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [06:36:00]wFMCommunicate OK [06:36:00]CreateOFDProtocolMessage done [06:36:00]OFDSenderStorePacket 29116 [06:36:00]StoreOFDPacket docnum=29116 [06:36:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 57 40 07 01 79 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 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 1A 00 00 00 F4 03 04 00 57 79 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BC 71 00 00 35 04 06 00 70 98 3C 54 A3 9F 4D 36 9A 3E 78 EC 58 8C [06:36:00]CheckFolder [06:36:00]dirname=/storage/ofd_packets [06:36:00]CheckFolder done [06:36:00]ProducePacketName [06:36:00]name=ofd_packets/00029116 [06:36:00]NVStorageSaveData ofd_packets/00029116 [06:36:00]File name is /storage/ofd_packets/00029116 [06:36:00]Write 301 bytes [06:36:00]NVStorageSaveData done [06:36:00]OFDSenderStorePacket done [06:36:00]KKMCreateOFDPacket done [06:36:00]NVStorageSaveData kkm_last_timestamp [06:36:00]File name is /storage/kkm_last_timestamp [06:36:00]Write 4 bytes [06:36:00]NVStorageSaveData done [06:36:00]ExternCall_PrintAddStr [06:36:00]wPrintStart [06:36:00]Write to MH i2c: 01 00 00 99 77 10 [06:36:00]OFD Sender: Processing packet 29116 [packets to send 8, broken 7] [06:36:00]ProducePacketName [06:36:00]name=ofd_packets/00029116 [06:36:00]OFD Sender: To server: pG, [06:36:00]CommunicateWithHost lk.salyk.kg:30040 [06:36:00]ConnectInit lk.salyk.kg [06:36:00]Write i2c OK [06:36:00]MH_I2C_Read... [06:36:00]Read from MH i2c: 01 [06:36:00]MH_I2C_Read... [06:36:00]Read from MH i2c: 01 07 00 [06:36:00]MH_I2C_Read... [06:36:00]Read from MH i2c: 01 07 00 99 77 00 00 00 00 00 FF 0F 25 [06:36:00]RasterBufferAndPrint [06:36:00]line Счет N : (1)347484 [06:36:00]line ИНН: 02508201610067 [06:36:00]line Контрольно-Кассовый Чек [06:36:00]line ПРОДАЖА [06:36:00]line ТРК (МРК, ГНК) : 13 [06:36:00]line Товар: 2710124130 [06:36:00]line Аи-92-К-5 [06:36:00]line 31.110 * 64.30 [06:36:00]line = 2000.37 [06:36:00]line НДС 12% НСП 1% [06:36:00]line > о реализуемом товаре [06:36:00]line ОКРУГЛЕНИЕ: -0.37 [06:36:00]line ИТОГО: 2000.00 [06:36:00]line Внесено: 2000.00 [06:36:00]line СДАЧА: 0.00 [06:36:00]line НСП 1% : 17.70 [06:36:00]line НДС 12% : 212.43 [06:36:00]line Наличными: 2000.00 [06:36:00]line Безнал.: 0.00 [06:36:00]line Место: АЗС № 108 "Партнер Нефть" [06:36:00]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [06:36:00]line СНО: Общий режим [06:36:00]line Чек 26 14.04.2024 06:36 [06:36:00]line Смена: 116 ФФД: 1.0 [06:36:00]line ЗНМ: 0300000027 [06:36:00]line РНМ: 0000138879044617 [06:36:00]line Версия ККМ: 001 [06:36:00]line ФМ: 0000000000963154 [06:36:00]line ФД: 29116 [06:36:00]line ФПД: 123799149519775 [06:36:01]line 1/tax-web-control/client/api/v1/ticket?date=20240414T063607&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29116&fm=123799149519775&tin=02508201610067®Number=0000138879044617&sum=200000 [06:36:01]Connected sock=10 [06:36:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 57 40 07 01 79 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 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 1A 00 00 00 F4 03 04 00 57 79 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BC 71 00 00 35 04 06 00 70 98 3C 54 A3 9F 4D 36 9A 3E 78 EC 58 8C [06:36:01]written 0, free lines is 4095 [06:36:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 AA A3 47 00 9F A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BC 71 00 00 F4 03 04 00 FC 23 1B 66 B6 04 01 00 00 6F 52 AB 8A BC B2 6D 7E [06:36:01]CommunicateWithHost err = 0 [06:36:01]CheckOFDResponse [06:36:01]1017 (14) - 77093643461234 [06:36:01]1041 (16) - 0000000000963154 [06:36:01]1040 (4) - 29116 [06:36:01]1012 (4) - 14.04.2024 00:31 [06:36:01]1206 (1) - 0 [06:36:01]OFD Sender: Remove packet 29116 [06:36:01]ProducePacketName [06:36:01]name=ofd_packets/00029116 [06:36:01]NVStorageDeleteData [06:36:01]Write to MH i2c: 01 00 00 C3 77 3A [06:36:01]Write i2c OK [06:36:01]MH_I2C_Read... [06:36:01]Read from MH i2c: 01 [06:36:01]MH_I2C_Read... [06:36:01]Read from MH i2c: 01 07 00 [06:36:01]MH_I2C_Read... [06:36:01]Read from MH i2c: 01 07 00 C3 77 00 00 00 00 00 C0 0C 0D [06:36:01]RasterBufferAndPrint [06:36:01]line [06:36:01]line [06:36:01]line [06:36:01]line [06:36:01]line [06:36:01]written 0, free lines is 3269 [06:36:01]MH_Cut [06:36:01]Write to MH i2c: D1 01 00 CA 77 01 13 [06:36:01]Write i2c OK [06:36:01]MH_I2C_Read... [06:36:01]Read from MH i2c: D1 [06:36:01]MH_I2C_Read... [06:36:01]Read from MH i2c: D1 01 00 [06:36:01]MH_I2C_Read... [06:36:01]Read from MH i2c: D1 01 00 CA 77 00 12 [06:36:01]Write to MH i2c: 01 00 00 CB 77 42 [06:36:01]Write i2c OK [06:36:01]MH_I2C_Read... [06:36:01]OFD Sender: No OFD packet to send [06:36:02]*** Cut start [06:36:02]*** Partial cut [06:36:02]*** CUTSNS_PIN = 1 [06:36:02]*** CUTSNS_PIN = 0 [06:36:02]*** Brake cut motor [06:36:03]Read from MH i2c: 01 [06:36:03]MH_I2C_Read... [06:36:03]*** Stop cut motor [06:36:03]*** Cut end [06:36:03]Read from MH i2c: 01 07 00 [06:36:03]MH_I2C_Read... [06:36:03]Read from MH i2c: 01 07 00 CB 77 00 00 00 00 00 FF 0F 57 [06:36:03]process_action close_receipt done [06:36:03]requested_data is exist [06:36:03]produce_requested_data [06:36:03]requested_item fm.sn is exist - process it [06:36:03]wFMCommunicate request_size=4 [06:36:03]MH_SAM_APDU [06:36:03]CAPDU: 80 11 00 00 [06:36:03]Write to MH i2c: E2 08 00 CC 77 80 11 00 00 00 00 00 00 BD [06:36:03]Write i2c OK [06:36:03]MH_I2C_Read... [06:36:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:36:03]Read from MH i2c: E2 [06:36:03]MH_I2C_Read... [06:36:03]Read from MH i2c: E2 17 00 [06:36:03]MH_I2C_Read... [06:36:03]Read from MH i2c: E2 17 00 CC 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 0C [06:36:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [06:36:03]wFMCommunicate OK [06:36:03]requested_item fd.num is exist - process it [06:36:03]SAM_PROTO_GetFieldsCounters [06:36:03]wFMCommunicate request_size=4 [06:36:03]MH_SAM_APDU [06:36:03]CAPDU: 80 13 00 00 [06:36:03]Write to MH i2c: E2 08 00 CD 77 80 13 00 00 00 00 00 00 C0 [06:36:03]Write i2c OK [06:36:03]MH_I2C_Read... [06:36:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:36:03]Read from MH i2c: E2 [06:36:03]MH_I2C_Read... [06:36:03]Read from MH i2c: E2 62 00 [06:36:03]MH_I2C_Read... [06:36:03]Read from MH i2c: E2 62 00 CD 77 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 BC 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 ED [06:36:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 BC 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:36:03]wFMCommunicate OK [06:36:03]SAM_PROTO_GetFieldsCounters done [06:36:03]requested_item shift.num is exist - process it [06:36:03]requested_item shift.opened is exist - process it [06:36:03]req_shift_opened [06:36:03]FM_GetShiftState [06:36:03]SAM_PROTO_GetShiftState [06:36:03]wFMCommunicate request_size=4 [06:36:03]MH_SAM_APDU [06:36:03]CAPDU: 80 13 01 00 [06:36:03]Write to MH i2c: E2 08 00 CE 77 80 13 01 00 00 00 00 00 C2 [06:36:03]Write i2c OK [06:36:03]MH_I2C_Read... [06:36:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:36:03]Read from MH i2c: E2 [06:36:03]MH_I2C_Read... [06:36:03]Read from MH i2c: E2 0E 00 [06:36:03]MH_I2C_Read... [06:36:03]Read from MH i2c: E2 0E 00 CE 77 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 6E [06:36:03]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [06:36:03]wFMCommunicate OK [06:36:03]SAM_PROTO_GetShiftState done [06:36:03]FM_GetShiftState done [06:36:03]req_shift_opened done [06:36:03]requested_item shift.open_date is exist - process it [06:36:03]req_shift_open_date [06:36:03]req_shift_open_date done [06:36:03]produce_requested_data done [06:36:03]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29116,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [06:36:03]process_action_free close_receipt [06:36:03]json_value_free [06:36:03]json_value_free done [06:36:03]process_json_proto returns [06:36:03]Send response to host [06:36:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29116,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [06:36:03]free response buf [06:36:03]execute_script done [06:36:03]execute_script returns [06:36:03]free content buf [06:36:03]Sock 9.Close socket [06:36:03]Sock 9.Thread stoped [06:36:06]OFD Sender: No OFD packet to send [06:36:11]OFD Sender: No OFD packet to send [06:36:16]OFD Sender: No OFD packet to send [06:36:21]OFD Sender: No OFD packet to send [06:36:26]OFD Sender: No OFD packet to send [06:36:31]OFD Sender: No OFD packet to send [06:36:36]OFD Sender: No OFD packet to send [06:36:41]OFD Sender: No OFD packet to send [06:36:46]OFD Sender: No OFD packet to send [06:36:51]OFD Sender: No OFD packet to send [06:36:56]OFD Sender: No OFD packet to send [06:37:01]OFD Sender: No OFD packet to send [06:37:06]OFD Sender: No OFD packet to send [06:37:11]OFD Sender: No OFD packet to send [06:37:16]OFD Sender: No OFD packet to send [06:37:21]OFD Sender: No OFD packet to send [06:37:26]OFD Sender: No OFD packet to send [06:37:32]OFD Sender: No OFD packet to send [06:37:37]OFD Sender: No OFD packet to send [06:37:42]OFD Sender: No OFD packet to send [06:37:47]OFD Sender: No OFD packet to send [06:37:52]OFD Sender: No OFD packet to send [06:37:57]OFD Sender: No OFD packet to send [06:38:02]OFD Sender: No OFD packet to send [06:38:07]OFD Sender: No OFD packet to send [06:38:12]OFD Sender: No OFD packet to send [06:38:17]OFD Sender: No OFD packet to send [06:38:22]OFD Sender: No OFD packet to send [06:38:27]OFD Sender: No OFD packet to send [06:38:32]OFD Sender: No OFD packet to send [06:38:37]OFD Sender: No OFD packet to send [06:38:42]OFD Sender: No OFD packet to send [06:38:47]OFD Sender: No OFD packet to send [06:38:52]OFD Sender: No OFD packet to send [06:38:57]OFD Sender: No OFD packet to send [06:39:02]OFD Sender: No OFD packet to send [06:39:07]OFD Sender: No OFD packet to send [06:39:12]OFD Sender: No OFD packet to send [06:39:17]OFD Sender: No OFD packet to send [06:39:22]OFD Sender: No OFD packet to send [06:39:27]OFD Sender: No OFD packet to send [06:39:32]OFD Sender: No OFD packet to send [06:39:37]OFD Sender: No OFD packet to send [06:39:42]OFD Sender: No OFD packet to send [06:39:47]OFD Sender: No OFD packet to send [06:39:52]OFD Sender: No OFD packet to send [06:39:57]OFD Sender: No OFD packet to send [06:40:02]OFD Sender: No OFD packet to send [06:40:07]OFD Sender: No OFD packet to send [06:40:12]OFD Sender: No OFD packet to send [06:40:17]OFD Sender: No OFD packet to send [06:40:22]OFD Sender: No OFD packet to send [06:40:27]OFD Sender: No OFD packet to send [06:40:32]OFD Sender: No OFD packet to send [06:40:37]OFD Sender: No OFD packet to send [06:40:42]OFD Sender: No OFD packet to send [06:40:47]OFD Sender: No OFD packet to send [06:40:52]OFD Sender: No OFD packet to send [06:40:57]OFD Sender: No OFD packet to send [06:41:02]OFD Sender: No OFD packet to send [06:41:07]OFD Sender: No OFD packet to send [06:41:12]OFD Sender: No OFD packet to send [06:41:17]OFD Sender: No OFD packet to send [06:41:22]OFD Sender: No OFD packet to send [06:41:27]OFD Sender: No OFD packet to send [06:41:32]OFD Sender: No OFD packet to send [06:41:37]OFD Sender: No OFD packet to send [06:41:42]OFD Sender: No OFD packet to send [06:41:47]OFD Sender: No OFD packet to send [06:41:52]OFD Sender: No OFD packet to send [06:41:57]OFD Sender: No OFD packet to send [06:42:02]OFD Sender: No OFD packet to send [06:42:07]OFD Sender: No OFD packet to send [06:42:12]OFD Sender: No OFD packet to send [06:42:17]OFD Sender: No OFD packet to send [06:42:22]OFD Sender: No OFD packet to send [06:42:27]OFD Sender: No OFD packet to send [06:42:32]OFD Sender: No OFD packet to send [06:42:37]OFD Sender: No OFD packet to send [06:42:42]OFD Sender: No OFD packet to send [06:42:47]OFD Sender: No OFD packet to send [06:42:52]OFD Sender: No OFD packet to send [06:42:57]OFD Sender: No OFD packet to send [06:43:02]OFD Sender: No OFD packet to send [06:43:07]OFD Sender: No OFD packet to send [06:43:12]OFD Sender: No OFD packet to send [06:43:17]OFD Sender: No OFD packet to send [06:43:22]OFD Sender: No OFD packet to send [06:43:27]OFD Sender: No OFD packet to send [06:43:32]OFD Sender: No OFD packet to send [06:43:37]OFD Sender: No OFD packet to send [06:43:42]OFD Sender: No OFD packet to send [06:43:47]OFD Sender: No OFD packet to send [06:43:52]OFD Sender: No OFD packet to send [06:43:57]OFD Sender: No OFD packet to send [06:44:02]OFD Sender: No OFD packet to send [06:44:07]OFD Sender: No OFD packet to send [06:44:12]OFD Sender: No OFD packet to send [06:44:17]OFD Sender: No OFD packet to send [06:44:22]OFD Sender: No OFD packet to send [06:44:27]OFD Sender: No OFD packet to send [06:44:32]OFD Sender: No OFD packet to send [06:44:37]OFD Sender: No OFD packet to send [06:44:42]OFD Sender: No OFD packet to send [06:44:47]OFD Sender: No OFD packet to send [06:44:52]OFD Sender: No OFD packet to send [06:44:57]OFD Sender: No OFD packet to send [06:45:02]OFD Sender: No OFD packet to send [06:45:07]OFD Sender: No OFD packet to send [06:45:12]OFD Sender: No OFD packet to send [06:45:17]OFD Sender: No OFD packet to send [06:45:22]OFD Sender: No OFD packet to send [06:45:27]OFD Sender: No OFD packet to send [06:45:32]OFD Sender: No OFD packet to send [06:45:37]OFD Sender: No OFD packet to send [06:45:42]OFD Sender: No OFD packet to send [06:45:47]OFD Sender: No OFD packet to send [06:45:52]OFD Sender: No OFD packet to send [06:45:57]OFD Sender: No OFD packet to send [06:46:02]OFD Sender: No OFD packet to send [06:46:07]OFD Sender: No OFD packet to send [06:46:12]OFD Sender: No OFD packet to send [06:46:17]OFD Sender: No OFD packet to send [06:46:22]OFD Sender: No OFD packet to send [06:46:27]OFD Sender: No OFD packet to send [06:46:32]OFD Sender: No OFD packet to send [06:46:37]OFD Sender: No OFD packet to send [06:46:42]OFD Sender: No OFD packet to send [06:46:47]OFD Sender: No OFD packet to send [06:46:52]OFD Sender: No OFD packet to send [06:46:57]OFD Sender: No OFD packet to send [06:47:02]OFD Sender: No OFD packet to send [06:47:07]OFD Sender: No OFD packet to send [06:47:12]OFD Sender: No OFD packet to send [06:47:17]OFD Sender: No OFD packet to send [06:47:22]OFD Sender: No OFD packet to send [06:47:27]OFD Sender: No OFD packet to send [06:47:32]OFD Sender: No OFD packet to send [06:47:32]accept exits with 7 [06:47:32]New connection [06:47:32]New thread 3066785124 created [06:47:32]Thread 3066928484 joined [06:47:32]Waiting for new connection... [06:47:32] Sock 7.Parse request [06:47:32]Sock 7.Check first char [06:47:32]Sock 7.First char is OK [06:47:32]request: POST /json_proto HTTP/1.0 [06:47:32]Method: POST [06:47:32]URL: /json_proto [06:47:32]Method is POST - this is cgi request [06:47:32]url: /json_proto [06:47:32]query_string will be loaded in cgi processing [06:47:32]execute_cgi json_proto POST (null) [06:47:32]execute_cgi path=json_proto method=POST [06:47:32]POST find Content-Length [06:47:32]Host: 172.17.33.3:8080 [06:47:32]Content-Length: 679 [06:47:32]Content-Type: application/json [06:47:32] [06:47:32]POST finish read [06:47:32]Found Content-Length = 679 [06:47:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347485", "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" ] } } [06:47:32]execute_script... [06:47: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)347485", "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" ] } } [06:47:32]POST & json_proto [06:47:32]process_json_proto [06:47:32]json parsed OK: [06:47:32]protocol is kg_v1.0 [06:47:32]action value=close_receipt [06:47:32]process_action close_receipt [06:47:32]cmd_close_receipt [06:47:32]MH_GetDate [06:47:32]Write to MH i2c: F0 00 00 CF 77 35 [06:47:32]Write i2c OK [06:47:32]MH_I2C_Read... [06:47:32]Read from MH i2c: F0 [06:47:32]MH_I2C_Read... [06:47:32]Read from MH i2c: F0 09 00 [06:47:32]MH_I2C_Read... [06:47:32]Read from MH i2c: F0 09 00 CF 77 00 0D 7C 1B 66 23 5B 8F 65 BA [06:47:32]GetLastDocTimeStamp 1713076567 [06:47:32]current date 1713077261 [06:47:32]FM_GetShiftState [06:47:32]SAM_PROTO_GetShiftState [06:47:32]wFMCommunicate request_size=4 [06:47:32]MH_SAM_APDU [06:47:32]CAPDU: 80 13 01 00 [06:47:32]Write to MH i2c: E2 08 00 D0 77 80 13 01 00 00 00 00 00 C4 [06:47:32]Write i2c OK [06:47:32]MH_I2C_Read... [06:47:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:47:32]Read from MH i2c: E2 [06:47:32]MH_I2C_Read... [06:47:32]Read from MH i2c: E2 0E 00 [06:47:32]MH_I2C_Read... [06:47:32]Read from MH i2c: E2 0E 00 D0 77 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 70 [06:47:32]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [06:47:32]wFMCommunicate OK [06:47:32]SAM_PROTO_GetShiftState done [06:47:32]FM_GetShiftState done [06:47:32]opened in 1713053951 [06:47:32]opened+sec_in_day 1713140351 [06:47:32]quantity*price = 250069 [06:47:32]sum+1 = 250071 [06:47:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.70 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.13 НДС 12% : 265.56 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 27 14.04.2024 06:47 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29117 ФПД: 367990152708 1/tax-web-control/client/api/v1/ticket?date=20240414T064741&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29117&fm=367990152708&tin=02508201610067®Number=0000138879044617&sum=250000 [06:47:33]StoreToDocumentArchive [06:47:33]shift 116 fd 29117 [06:47:33]save to /storage/0116/doc_00029117 [06:47:33]save last doc name /storage/0116/doc_00029117 to /storage/kkm_last_doc_name [06:47:33]save OK [06:47:33]Clear old archive folders... [06:47:33]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:47:33]tlvbuf is 0120EC30 [06:47:33]SAM_PROTO_ClearQueue [06:47:33]wFMCommunicate request_size=4 [06:47:33]MH_SAM_APDU [06:47:33]CAPDU: 80 09 00 00 [06:47:33]Write to MH i2c: E2 08 00 DD 77 80 09 00 00 00 00 00 00 C6 [06:47:33]Write i2c OK [06:47:33]MH_I2C_Read... [06:47:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:47:34]Read from MH i2c: E2 [06:47:34]MH_I2C_Read... [06:47:34]Read from MH i2c: E2 03 00 [06:47:34]MH_I2C_Read... [06:47:34]Read from MH i2c: E2 03 00 DD 77 00 90 00 C8 [06:47:34]RAPDU: 90 00 [06:47:34]wFMCommunicate OK [06:47:34]SAM_PROTO_ClearQueue done [06:47:34]KKMCreateOFDPacket [06:47:34]OFDProtocolAddRootSTLVToBuf [06:47:34]FM_MakeSignedData [06:47:34]FM_MakeSignedData [06:47:34]SAM_PROTO_SignData [06:47:34]wFMCommunicate request_size=4 [06:47:34]MH_SAM_APDU [06:47:34]CAPDU: 80 0D 01 02 [06:47:34]Write to MH i2c: E2 08 00 DE 77 80 0D 01 02 00 00 00 00 CE [06:47:34]Write i2c OK [06:47:34]MH_I2C_Read... [06:47:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:47:34]Read from MH i2c: E2 [06:47:34]MH_I2C_Read... [06:47:34]Read from MH i2c: E2 03 00 [06:47:34]MH_I2C_Read... [06:47:34]Read from MH i2c: E2 03 00 DE 77 00 90 00 C9 [06:47:34]RAPDU: 90 00 [06:47:34]wFMCommunicate OK [06:47:34]wFMCommunicate request_size=255 [06:47:34]MH_SAM_APDU [06:47: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 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 1B 00 00 00 F4 03 04 00 0D 7C 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BD 71 00 00 35 04 06 00 00 55 AD EC [06:47:34]Write to MH i2c: E2 02 01 DF 77 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 1B 00 00 00 F4 03 04 00 0D 7C 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BD 71 00 00 35 04 06 00 00 55 AD EC 00 00 12 [06:47:34]Write i2c OK [06:47:34]MH_I2C_Read... [06:47:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:47:34]Read from MH i2c: E2 [06:47:34]MH_I2C_Read... [06:47:34]Read from MH i2c: E2 03 00 [06:47:34]MH_I2C_Read... [06:47:34]Read from MH i2c: E2 03 00 DF 77 00 90 00 CA [06:47:34]RAPDU: 90 00 [06:47:34]wFMCommunicate OK [06:47:34]wFMCommunicate request_size=7 [06:47:34]MH_SAM_APDU [06:47:34]CAPDU: 80 0D 02 02 02 1E 04 [06:47:34]Write to MH i2c: E2 0A 00 E0 77 80 0D 02 02 02 00 1E 04 00 00 F7 [06:47:34]Write i2c OK [06:47:34]MH_I2C_Read... [06:47:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:47:34]Read from MH i2c: E2 [06:47:34]MH_I2C_Read... [06:47:34]Read from MH i2c: E2 03 00 [06:47:34]MH_I2C_Read... [06:47:34]Read from MH i2c: E2 03 00 E0 77 00 90 00 CB [06:47:34]RAPDU: 90 00 [06:47:34]wFMCommunicate OK [06:47:34]wFMCommunicate request_size=4 [06:47:34]MH_SAM_APDU [06:47:34]CAPDU: 80 0D 03 02 [06:47:34]Write to MH i2c: E2 08 00 E1 77 80 0D 03 02 00 00 00 00 D3 [06:47:34]Write i2c OK [06:47:34]MH_I2C_Read... [06:47:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:47:34]Read from MH i2c: E2 [06:47:34]MH_I2C_Read... [06:47:34]Read from MH i2c: E2 0B 00 [06:47:34]MH_I2C_Read... [06:47:34]Read from MH i2c: E2 0B 00 E1 77 00 ED 45 D6 6E A6 23 06 D4 90 00 ED [06:47:34]RAPDU: ED 45 D6 6E A6 23 06 D4 90 00 [06:47:34]wFMCommunicate OK [06:47:34]SAM_PROTO_SignData done [06:47:34]FM_MakeSignedData done [06:47:34]CreateOFDProtocolMessage [06:47:34]wFMCommunicate request_size=4 [06:47:34]MH_SAM_APDU [06:47:34]CAPDU: 80 11 00 00 [06:47:34]Write to MH i2c: E2 08 00 E2 77 80 11 00 00 00 00 00 00 D3 [06:47:34]Write i2c OK [06:47:34]MH_I2C_Read... [06:47:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:47:34]Read from MH i2c: E2 [06:47:34]MH_I2C_Read... [06:47:34]Read from MH i2c: E2 17 00 [06:47:34]MH_I2C_Read... [06:47:34]Read from MH i2c: E2 17 00 E2 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 22 [06:47:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [06:47:34]wFMCommunicate OK [06:47:34]CreateOFDProtocolMessage done [06:47:34]OFDSenderStorePacket 29117 [06:47:34]StoreOFDPacket docnum=29117 [06:47:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 D3 32 04 01 A2 66 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 1B 00 00 00 F4 03 04 00 0D 7C 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BD 71 00 00 35 04 06 00 00 55 AD EC 1E 04 ED 45 D6 6E A6 23 06 D4 [06:47:34]CheckFolder [06:47:34]dirname=/storage/ofd_packets [06:47:34]CheckFolder done [06:47:34]ProducePacketName [06:47:34]name=ofd_packets/00029117 [06:47:34]NVStorageSaveData ofd_packets/00029117 [06:47:34]File name is /storage/ofd_packets/00029117 [06:47:34]Write 298 bytes [06:47:34]NVStorageSaveData done [06:47:34]OFDSenderStorePacket done [06:47:34]KKMCreateOFDPacket done [06:47:34]NVStorageSaveData kkm_last_timestamp [06:47:34]File name is /storage/kkm_last_timestamp [06:47:34]Write 4 bytes [06:47:34]NVStorageSaveData done [06:47:34]ExternCall_PrintAddStr [06:47:34]wPrintStart [06:47:34]Write to MH i2c: 01 00 00 E3 77 5A [06:47:34]Write i2c OK [06:47:34]MH_I2C_Read... [06:47:34]Read from MH i2c: 01 [06:47:34]MH_I2C_Read... [06:47:34]Read from MH i2c: 01 07 00 [06:47:34]MH_I2C_Read... [06:47:34]Read from MH i2c: 01 07 00 E3 77 00 00 00 00 00 FF 0F 6F [06:47:34]RasterBufferAndPrint [06:47:34]line Счет N : (1)347485 [06:47:34]line ИНН: 02508201610067 [06:47:34]line Контрольно-Кассовый Чек [06:47:34]line ПРОДАЖА [06:47:34]line ТРК (МРК, ГНК) : 51 [06:47:34]line Товар: 2710194210 [06:47:34]line ДТ-К-5 [06:47:34]line 34.540 * 72.40 [06:47:34]line = 2500.70 [06:47:34]line НДС 12% НСП 1% [06:47:34]line > о реализуемом товаре [06:47:34]line ОКРУГЛЕНИЕ: -0.70 [06:47:34]line ИТОГО: 2500.00 [06:47:34]line Внесено: 2500.00 [06:47:34]line СДАЧА: 0.00 [06:47:34]line НСП 1% : 22.13 [06:47:34]line НДС 12% : 265.56 [06:47:34]line Наличными: 2500.00 [06:47:34]line Безнал.: 0.00 [06:47:34]line Место: АЗС № 108 "Партнер Нефть" [06:47:34]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [06:47:34]line СНО: Общий режим [06:47:34]line Чек 27 14.04.2024 06:47 [06:47:34]line Смена: 116 ФФД: 1.0 [06:47:34]line ЗНМ: 0300000027 [06:47:34]line РНМ: 0000138879044617 [06:47:34]line Версия ККМ: 001 [06:47:34]line ФМ: 0000000000963154 [06:47:34]line ФД: 29117 [06:47:34]line ФПД: 367990152708 [06:47:34]line 1/tax-web-control/client/api/v1/ticket?date=20240414T064741&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29117&fm=367990152708&tin=02508201610067®Number=0000138879044617&sum=250000 [06:47:34]OFD Sender: Processing packet 29117 [packets to send 8, broken 7] [06:47:34]written 0, free lines is 4095 [06:47:34]ProducePacketName [06:47:34]name=ofd_packets/00029117 [06:47:34]OFD Sender: To server: pG, [06:47:34]CommunicateWithHost lk.salyk.kg:30040 [06:47:34]ConnectInit lk.salyk.kg [06:47:34]Connected sock=10 [06:47:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 D3 32 04 01 A2 66 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 1B 00 00 00 F4 03 04 00 0D 7C 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BD 71 00 00 35 04 06 00 00 55 AD EC 1E 04 ED 45 D6 6E A6 23 06 D4 [06:47:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 95 F3 47 00 25 3A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BD 71 00 00 F4 03 04 00 B2 26 1B 66 B6 04 01 00 00 67 45 E8 29 75 10 96 86 [06:47:35]CommunicateWithHost err = 0 [06:47:35]CheckOFDResponse [06:47:35]1017 (14) - 77093643461234 [06:47:35]1041 (16) - 0000000000963154 [06:47:35]1040 (4) - 29117 [06:47:35]1012 (4) - 14.04.2024 00:43 [06:47:35]1206 (1) - 0 [06:47:35]OFD Sender: Remove packet 29117 [06:47:35]ProducePacketName [06:47:35]name=ofd_packets/00029117 [06:47:35]NVStorageDeleteData [06:47:35]Write to MH i2c: 01 00 00 0D 78 85 [06:47:35]Write i2c OK [06:47:35]MH_I2C_Read... [06:47:35]Read from MH i2c: 01 [06:47:35]MH_I2C_Read... [06:47:35]Read from MH i2c: 01 07 00 [06:47:35]MH_I2C_Read... [06:47:35]Read from MH i2c: 01 07 00 0D 78 00 00 00 00 00 CA 0C 62 [06:47:35]RasterBufferAndPrint [06:47:35]line [06:47:35]line [06:47:35]line [06:47:35]line [06:47:35]line [06:47:35]written 0, free lines is 3279 [06:47:35]MH_Cut [06:47:35]Write to MH i2c: D1 01 00 14 78 01 5E [06:47:35]Write i2c OK [06:47:35]MH_I2C_Read... [06:47:35]Read from MH i2c: D1 [06:47:35]MH_I2C_Read... [06:47:35]Read from MH i2c: D1 01 00 [06:47:35]MH_I2C_Read... [06:47:35]Read from MH i2c: D1 01 00 14 78 00 5D [06:47:35]Write to MH i2c: 01 00 00 15 78 8D [06:47:35]Write i2c OK [06:47:35]MH_I2C_Read... [06:47:35]OFD Sender: No OFD packet to send [06:47:36]*** Cut start [06:47:36]*** Partial cut [06:47:36]*** CUTSNS_PIN = 1 [06:47:36]*** CUTSNS_PIN = 0 [06:47:36]*** Brake cut motor [06:47:36]Read from MH i2c: 01 [06:47:36]MH_I2C_Read... [06:47:36]*** Stop cut motor [06:47:36]*** Cut end [06:47:36]Read from MH i2c: 01 07 00 [06:47:36]MH_I2C_Read... [06:47:36]Read from MH i2c: 01 07 00 15 78 00 00 00 00 00 FF 0F A2 [06:47:36]process_action close_receipt done [06:47:36]requested_data is exist [06:47:36]produce_requested_data [06:47:36]requested_item fm.sn is exist - process it [06:47:36]wFMCommunicate request_size=4 [06:47:36]MH_SAM_APDU [06:47:36]CAPDU: 80 11 00 00 [06:47:36]Write to MH i2c: E2 08 00 16 78 80 11 00 00 00 00 00 00 08 [06:47:36]Write i2c OK [06:47:36]MH_I2C_Read... [06:47:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:47:36]Read from MH i2c: E2 [06:47:36]MH_I2C_Read... [06:47:36]Read from MH i2c: E2 17 00 [06:47:36]MH_I2C_Read... [06:47:36]Read from MH i2c: E2 17 00 16 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 57 [06:47:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [06:47:36]wFMCommunicate OK [06:47:36]requested_item fd.num is exist - process it [06:47:36]SAM_PROTO_GetFieldsCounters [06:47:36]wFMCommunicate request_size=4 [06:47:36]MH_SAM_APDU [06:47:36]CAPDU: 80 13 00 00 [06:47:36]Write to MH i2c: E2 08 00 17 78 80 13 00 00 00 00 00 00 0B [06:47:36]Write i2c OK [06:47:36]MH_I2C_Read... [06:47:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:47:36]Read from MH i2c: E2 [06:47:36]MH_I2C_Read... [06:47:36]Read from MH i2c: E2 62 00 [06:47:36]MH_I2C_Read... [06:47:36]Read from MH i2c: E2 62 00 17 78 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 BD 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 3C [06:47:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 BD 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:47:36]wFMCommunicate OK [06:47:36]SAM_PROTO_GetFieldsCounters done [06:47:36]requested_item shift.num is exist - process it [06:47:36]requested_item shift.opened is exist - process it [06:47:36]req_shift_opened [06:47:36]FM_GetShiftState [06:47:36]SAM_PROTO_GetShiftState [06:47:36]wFMCommunicate request_size=4 [06:47:36]MH_SAM_APDU [06:47:36]CAPDU: 80 13 01 00 [06:47:36]Write to MH i2c: E2 08 00 18 78 80 13 01 00 00 00 00 00 0D [06:47:36]Write i2c OK [06:47:36]MH_I2C_Read... [06:47:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:47:36]Read from MH i2c: E2 [06:47:36]MH_I2C_Read... [06:47:36]Read from MH i2c: E2 0E 00 [06:47:36]MH_I2C_Read... [06:47:36]Read from MH i2c: E2 0E 00 18 78 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 B9 [06:47:36]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [06:47:36]wFMCommunicate OK [06:47:36]SAM_PROTO_GetShiftState done [06:47:36]FM_GetShiftState done [06:47:36]req_shift_opened done [06:47:36]requested_item shift.open_date is exist - process it [06:47:36]req_shift_open_date [06:47:36]req_shift_open_date done [06:47:36]produce_requested_data done [06:47:36]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29117,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [06:47:36]process_action_free close_receipt [06:47:36]json_value_free [06:47:36]json_value_free done [06:47:36]process_json_proto returns [06:47:36]Send response to host [06:47:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29117,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [06:47:36]free response buf [06:47:36]execute_script done [06:47:36]execute_script returns [06:47:36]free content buf [06:47:36]Sock 7.Close socket [06:47:36]Sock 7.Thread stoped [06:47:40]OFD Sender: No OFD packet to send [06:47:45]OFD Sender: No OFD packet to send [06:47:50]OFD Sender: No OFD packet to send [06:47:55]OFD Sender: No OFD packet to send [06:48:00]OFD Sender: No OFD packet to send [06:48:05]OFD Sender: No OFD packet to send [06:48:10]OFD Sender: No OFD packet to send [06:48:15]OFD Sender: No OFD packet to send [06:48:20]OFD Sender: No OFD packet to send [06:48:25]accept exits with 9 [06:48:25]New connection [06:48:25]New thread 3066928484 created [06:48:25]Thread 3066785124 joined [06:48:25]Waiting for new connection... [06:48:25] Sock 9.Parse request [06:48:25]Sock 9.Check first char [06:48:25]Sock 9.First char is OK [06:48:25]request: POST /json_proto HTTP/1.0 [06:48:25]Method: POST [06:48:25]URL: /json_proto [06:48:25]Method is POST - this is cgi request [06:48:25]url: /json_proto [06:48:25]query_string will be loaded in cgi processing [06:48:25]execute_cgi json_proto POST (null) [06:48:25]execute_cgi path=json_proto method=POST [06:48:25]POST find Content-Length [06:48:25]Host: 172.17.33.3:8080 [06:48:25]Content-Length: 679 [06:48:25]Content-Type: application/json [06:48:25] [06:48:25]POST finish read [06:48:25]Found Content-Length = 679 [06:48:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347486", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.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" ] } } [06:48:25]execute_script... [06:48: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)347486", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.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" ] } } [06:48:25]POST & json_proto [06:48:25]process_json_proto [06:48:25]json parsed OK: [06:48:25]protocol is kg_v1.0 [06:48:25]action value=close_receipt [06:48:25]process_action close_receipt [06:48:25]cmd_close_receipt [06:48:25]MH_GetDate [06:48:25]Write to MH i2c: F0 00 00 19 78 80 [06:48:25]Write i2c OK [06:48:25]MH_I2C_Read... [06:48:25]Read from MH i2c: F0 [06:48:25]MH_I2C_Read... [06:48:25]Read from MH i2c: F0 09 00 [06:48:25]MH_I2C_Read... [06:48:25]Read from MH i2c: F0 09 00 19 78 00 42 7C 1B 66 23 5B 8F 65 3A [06:48:25]GetLastDocTimeStamp 1713077261 [06:48:25]current date 1713077314 [06:48:25]FM_GetShiftState [06:48:25]SAM_PROTO_GetShiftState [06:48:25]wFMCommunicate request_size=4 [06:48:25]MH_SAM_APDU [06:48:25]CAPDU: 80 13 01 00 [06:48:25]Write to MH i2c: E2 08 00 1A 78 80 13 01 00 00 00 00 00 0F [06:48:25]Write i2c OK [06:48:25]MH_I2C_Read... [06:48:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:48:25]Read from MH i2c: E2 [06:48:25]MH_I2C_Read... [06:48:25]Read from MH i2c: E2 0E 00 [06:48:25]MH_I2C_Read... [06:48:25]Read from MH i2c: E2 0E 00 1A 78 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 BB [06:48:25]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [06:48:25]wFMCommunicate OK [06:48:25]SAM_PROTO_GetShiftState done [06:48:25]FM_GetShiftState done [06:48:25]opened in 1713053951 [06:48:25]opened+sec_in_day 1713140351 [06:48:25]quantity*price = 100056 [06:48:25]sum+1 = 100058 [06:48: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 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 28 14.04.2024 06:48 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29118 ФПД: 115344371166634 1/tax-web-control/client/api/v1/ticket?date=20240414T064834&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29118&fm=115344371166634&tin=02508201610067®Number=0000138879044617&sum=100000 [06:48:26]StoreToDocumentArchive [06:48:26]shift 116 fd 29118 [06:48:26]save to /storage/0116/doc_00029118 [06:48:26]save last doc name /storage/0116/doc_00029118 to /storage/kkm_last_doc_name [06:48:26]save OK [06:48:26]Clear old archive folders... [06:48:26]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:48:26]tlvbuf is 011DA7C0 [06:48:26]SAM_PROTO_ClearQueue [06:48:26]wFMCommunicate request_size=4 [06:48:26]MH_SAM_APDU [06:48:26]CAPDU: 80 09 00 00 [06:48:26]Write to MH i2c: E2 08 00 27 78 80 09 00 00 00 00 00 00 11 [06:48:26]Write i2c OK [06:48:26]MH_I2C_Read... [06:48:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:48:26]Read from MH i2c: E2 [06:48:26]MH_I2C_Read... [06:48:26]Read from MH i2c: E2 03 00 [06:48:26]MH_I2C_Read... [06:48:26]Read from MH i2c: E2 03 00 27 78 00 90 00 13 [06:48:26]RAPDU: 90 00 [06:48:26]wFMCommunicate OK [06:48:26]SAM_PROTO_ClearQueue done [06:48:26]KKMCreateOFDPacket [06:48:26]OFDProtocolAddRootSTLVToBuf [06:48:26]FM_MakeSignedData [06:48:26]FM_MakeSignedData [06:48:26]SAM_PROTO_SignData [06:48:26]wFMCommunicate request_size=4 [06:48:26]MH_SAM_APDU [06:48:26]CAPDU: 80 0D 01 02 [06:48:26]Write to MH i2c: E2 08 00 28 78 80 0D 01 02 00 00 00 00 19 [06:48:26]Write i2c OK [06:48:26]MH_I2C_Read... [06:48:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:48:26]Read from MH i2c: E2 [06:48:26]MH_I2C_Read... [06:48:26]Read from MH i2c: E2 03 00 [06:48:26]MH_I2C_Read... [06:48:26]Read from MH i2c: E2 03 00 28 78 00 90 00 14 [06:48:26]RAPDU: 90 00 [06:48:26]wFMCommunicate OK [06:48:26]wFMCommunicate request_size=255 [06:48:26]MH_SAM_APDU [06:48: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 1C 00 00 00 F4 03 04 00 42 7C 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BE 71 00 00 35 04 06 00 68 E7 B4 45 [06:48:26]Write to MH i2c: E2 02 01 29 78 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 1C 00 00 00 F4 03 04 00 42 7C 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BE 71 00 00 35 04 06 00 68 E7 B4 45 00 00 3E [06:48:26]Write i2c OK [06:48:26]MH_I2C_Read... [06:48:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:48:26]Read from MH i2c: E2 [06:48:26]MH_I2C_Read... [06:48:26]Read from MH i2c: E2 03 00 [06:48:26]MH_I2C_Read... [06:48:26]Read from MH i2c: E2 03 00 29 78 00 90 00 15 [06:48:26]RAPDU: 90 00 [06:48:26]wFMCommunicate OK [06:48:26]wFMCommunicate request_size=7 [06:48:26]MH_SAM_APDU [06:48:26]CAPDU: 80 0D 02 02 02 2D AA [06:48:26]Write to MH i2c: E2 0A 00 2A 78 80 0D 02 02 02 00 2D AA 00 00 F7 [06:48:26]Write i2c OK [06:48:26]MH_I2C_Read... [06:48:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:48:26]Read from MH i2c: E2 [06:48:26]MH_I2C_Read... [06:48:26]Read from MH i2c: E2 03 00 [06:48:26]MH_I2C_Read... [06:48:26]Read from MH i2c: E2 03 00 2A 78 00 90 00 16 [06:48:26]RAPDU: 90 00 [06:48:26]wFMCommunicate OK [06:48:26]wFMCommunicate request_size=4 [06:48:26]MH_SAM_APDU [06:48:26]CAPDU: 80 0D 03 02 [06:48:26]Write to MH i2c: E2 08 00 2B 78 80 0D 03 02 00 00 00 00 1E [06:48:26]Write i2c OK [06:48:26]MH_I2C_Read... [06:48:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:48:26]Read from MH i2c: E2 [06:48:26]MH_I2C_Read... [06:48:26]Read from MH i2c: E2 0B 00 [06:48:26]MH_I2C_Read... [06:48:26]Read from MH i2c: E2 0B 00 2B 78 00 92 CB 64 AD 24 21 8D 82 90 00 E1 [06:48:26]RAPDU: 92 CB 64 AD 24 21 8D 82 90 00 [06:48:26]wFMCommunicate OK [06:48:26]SAM_PROTO_SignData done [06:48:26]FM_MakeSignedData done [06:48:26]CreateOFDProtocolMessage [06:48:26]wFMCommunicate request_size=4 [06:48:26]MH_SAM_APDU [06:48:26]CAPDU: 80 11 00 00 [06:48:26]Write to MH i2c: E2 08 00 2C 78 80 11 00 00 00 00 00 00 1E [06:48:26]Write i2c OK [06:48:26]MH_I2C_Read... [06:48:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:48:26]Read from MH i2c: E2 [06:48:26]MH_I2C_Read... [06:48:26]Read from MH i2c: E2 17 00 [06:48:26]MH_I2C_Read... [06:48:26]Read from MH i2c: E2 17 00 2C 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 6D [06:48:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [06:48:26]wFMCommunicate OK [06:48:26]CreateOFDProtocolMessage done [06:48:26]OFDSenderStorePacket 29118 [06:48:26]StoreOFDPacket docnum=29118 [06:48:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 70 B0 04 01 03 42 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 1C 00 00 00 F4 03 04 00 42 7C 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BE 71 00 00 35 04 06 00 68 E7 B4 45 2D AA 92 CB 64 AD 24 21 8D 82 [06:48:26]CheckFolder [06:48:26]dirname=/storage/ofd_packets [06:48:26]CheckFolder done [06:48:26]ProducePacketName [06:48:26]name=ofd_packets/00029118 [06:48:26]NVStorageSaveData ofd_packets/00029118 [06:48:26]File name is /storage/ofd_packets/00029118 [06:48:26]Write 298 bytes [06:48:26]NVStorageSaveData done [06:48:26]OFDSenderStorePacket done [06:48:26]KKMCreateOFDPacket done [06:48:26]NVStorageSaveData kkm_last_timestamp [06:48:26]File name is /storage/kkm_last_timestamp [06:48:26]Write 4 bytes [06:48:26]NVStorageSaveData done [06:48:26]ExternCall_PrintAddStr [06:48:26]wPrintStart [06:48:26]Write to MH i2c: 01 00 00 2D 78 A5 [06:48:26]Write i2c OK [06:48:26]MH_I2C_Read... [06:48:26]Read from MH i2c: 01 [06:48:26]MH_I2C_Read... [06:48:26]Read from MH i2c: 01 07 00 [06:48:26]MH_I2C_Read... [06:48:26]Read from MH i2c: 01 07 00 2D 78 00 00 00 00 00 FF 0F BA [06:48:26]RasterBufferAndPrint [06:48:26]line Счет N : (1)347486 [06:48:26]line ИНН: 02508201610067 [06:48:26]line Контрольно-Кассовый Чек [06:48:26]line ПРОДАЖА [06:48:26]line ТРК (МРК, ГНК) : 21 [06:48:26]line Товар: 2710194210 [06:48:26]line ДТ-К-5 [06:48:26]line 13.820 * 72.40 [06:48:26]line = 1000.57 [06:48:26]line НДС 12% НСП 1% [06:48:26]line > о реализуемом товаре [06:48:26]line ОКРУГЛЕНИЕ: -0.57 [06:48:26]line ИТОГО: 1000.00 [06:48:26]line Внесено: 1000.00 [06:48:26]line СДАЧА: 0.00 [06:48:26]line НСП 1% : 8.85 [06:48:26]line НДС 12% : 106.25 [06:48:26]line Наличными: 1000.00 [06:48:26]line Безнал.: 0.00 [06:48:26]line Место: АЗС № 108 "Партнер Нефть" [06:48:26]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [06:48:26]line СНО: Общий режим [06:48:26]line Чек 28 14.04.2024 06:48 [06:48:26]line Смена: 116 ФФД: 1.0 [06:48:26]line ЗНМ: 0300000027 [06:48:26]line РНМ: 0000138879044617 [06:48:26]line Версия ККМ: 001 [06:48:26]line ФМ: 0000000000963154 [06:48:26]line ФД: 29118 [06:48:26]line ФПД: 115344371166634 [06:48:27]line 1/tax-web-control/client/api/v1/ticket?date=20240414T064834&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29118&fm=115344371166634&tin=02508201610067®Number=0000138879044617&sum=100000 [06:48:27]OFD Sender: Processing packet 29118 [packets to send 8, broken 7] [06:48:27]ProducePacketName [06:48:27]name=ofd_packets/00029118 [06:48:27]OFD Sender: To server: pG, [06:48:27]CommunicateWithHost lk.salyk.kg:30040 [06:48:27]ConnectInit lk.salyk.kg [06:48:27]written 0, free lines is 4095 [06:48:27]Connected sock=10 [06:48:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 70 B0 04 01 03 42 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 1C 00 00 00 F4 03 04 00 42 7C 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BE 71 00 00 35 04 06 00 68 E7 B4 45 2D AA 92 CB 64 AD 24 21 8D 82 [06:48:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 46 34 47 00 63 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BE 71 00 00 F4 03 04 00 E6 26 1B 66 B6 04 01 00 00 12 88 CB 05 89 90 DF B9 [06:48:27]CommunicateWithHost err = 0 [06:48:27]CheckOFDResponse [06:48:27]1017 (14) - 77093643461234 [06:48:27]1041 (16) - 0000000000963154 [06:48:27]1040 (4) - 29118 [06:48:27]1012 (4) - 14.04.2024 00:44 [06:48:27]1206 (1) - 0 [06:48:27]OFD Sender: Remove packet 29118 [06:48:27]ProducePacketName [06:48:27]name=ofd_packets/00029118 [06:48:27]NVStorageDeleteData [06:48:27]Write to MH i2c: 01 00 00 57 78 CF [06:48:27]Write i2c OK [06:48:27]MH_I2C_Read... [06:48:27]Read from MH i2c: 01 [06:48:27]MH_I2C_Read... [06:48:27]Read from MH i2c: 01 07 00 [06:48:27]MH_I2C_Read... [06:48:27]Read from MH i2c: 01 07 00 57 78 00 00 00 00 00 C5 0C A7 [06:48:27]RasterBufferAndPrint [06:48:27]line [06:48:27]line [06:48:27]line [06:48:27]line [06:48:27]line [06:48:27]written 0, free lines is 3274 [06:48:27]MH_Cut [06:48:27]Write to MH i2c: D1 01 00 5E 78 01 A8 [06:48:27]Write i2c OK [06:48:27]MH_I2C_Read... [06:48:27]Read from MH i2c: D1 [06:48:27]MH_I2C_Read... [06:48:27]Read from MH i2c: D1 01 00 [06:48:27]MH_I2C_Read... [06:48:27]Read from MH i2c: D1 01 00 5E 78 00 A7 [06:48:27]Write to MH i2c: 01 00 00 5F 78 D7 [06:48:27]Write i2c OK [06:48:27]MH_I2C_Read... [06:48:28]OFD Sender: No OFD packet to send [06:48:28]*** Cut start [06:48:28]*** Partial cut [06:48:28]*** CUTSNS_PIN = 1 [06:48:28]*** CUTSNS_PIN = 0 [06:48:28]*** Brake cut motor [06:48:29]Read from MH i2c: 01 [06:48:29]MH_I2C_Read... [06:48:29]*** Stop cut motor [06:48:29]*** Cut end [06:48:29]Read from MH i2c: 01 07 00 [06:48:29]MH_I2C_Read... [06:48:29]Read from MH i2c: 01 07 00 5F 78 00 00 00 00 00 FF 0F EC [06:48:29]process_action close_receipt done [06:48:29]requested_data is exist [06:48:29]produce_requested_data [06:48:29]requested_item fm.sn is exist - process it [06:48:29]wFMCommunicate request_size=4 [06:48:29]MH_SAM_APDU [06:48:29]CAPDU: 80 11 00 00 [06:48:29]Write to MH i2c: E2 08 00 60 78 80 11 00 00 00 00 00 00 52 [06:48:29]Write i2c OK [06:48:29]MH_I2C_Read... [06:48:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:48:29]Read from MH i2c: E2 [06:48:29]MH_I2C_Read... [06:48:29]Read from MH i2c: E2 17 00 [06:48:29]MH_I2C_Read... [06:48:29]Read from MH i2c: E2 17 00 60 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A1 [06:48:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [06:48:29]wFMCommunicate OK [06:48:29]requested_item fd.num is exist - process it [06:48:29]SAM_PROTO_GetFieldsCounters [06:48:29]wFMCommunicate request_size=4 [06:48:29]MH_SAM_APDU [06:48:29]CAPDU: 80 13 00 00 [06:48:29]Write to MH i2c: E2 08 00 61 78 80 13 00 00 00 00 00 00 55 [06:48:29]Write i2c OK [06:48:29]MH_I2C_Read... [06:48:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:48:29]Read from MH i2c: E2 [06:48:29]MH_I2C_Read... [06:48:29]Read from MH i2c: E2 62 00 [06:48:29]MH_I2C_Read... [06:48:29]Read from MH i2c: E2 62 00 61 78 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 BE 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 8A [06:48:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 BE 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:48:29]wFMCommunicate OK [06:48:29]SAM_PROTO_GetFieldsCounters done [06:48:29]requested_item shift.num is exist - process it [06:48:29]requested_item shift.opened is exist - process it [06:48:29]req_shift_opened [06:48:29]FM_GetShiftState [06:48:29]SAM_PROTO_GetShiftState [06:48:29]wFMCommunicate request_size=4 [06:48:29]MH_SAM_APDU [06:48:29]CAPDU: 80 13 01 00 [06:48:29]Write to MH i2c: E2 08 00 62 78 80 13 01 00 00 00 00 00 57 [06:48:29]Write i2c OK [06:48:29]MH_I2C_Read... [06:48:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:48:29]Read from MH i2c: E2 [06:48:29]MH_I2C_Read... [06:48:29]Read from MH i2c: E2 0E 00 [06:48:29]MH_I2C_Read... [06:48:29]Read from MH i2c: E2 0E 00 62 78 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 03 [06:48:29]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [06:48:29]wFMCommunicate OK [06:48:29]SAM_PROTO_GetShiftState done [06:48:29]FM_GetShiftState done [06:48:29]req_shift_opened done [06:48:29]requested_item shift.open_date is exist - process it [06:48:29]req_shift_open_date [06:48:29]req_shift_open_date done [06:48:29]produce_requested_data done [06:48:29]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29118,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [06:48:29]process_action_free close_receipt [06:48:29]json_value_free [06:48:29]json_value_free done [06:48:29]process_json_proto returns [06:48:29]Send response to host [06:48:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29118,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [06:48:29]free response buf [06:48:29]execute_script done [06:48:29]execute_script returns [06:48:29]free content buf [06:48:29]Sock 9.Close socket [06:48:29]Sock 9.Thread stoped [06:48:33]OFD Sender: No OFD packet to send [06:48:38]OFD Sender: No OFD packet to send [06:48:43]OFD Sender: No OFD packet to send [06:48:48]OFD Sender: No OFD packet to send [06:48:53]OFD Sender: No OFD packet to send [06:48:58]OFD Sender: No OFD packet to send [06:49:03]OFD Sender: No OFD packet to send [06:49:08]OFD Sender: No OFD packet to send [06:49:13]OFD Sender: No OFD packet to send [06:49:18]OFD Sender: No OFD packet to send [06:49:23]OFD Sender: No OFD packet to send [06:49:28]OFD Sender: No OFD packet to send [06:49:33]OFD Sender: No OFD packet to send [06:49:38]OFD Sender: No OFD packet to send [06:49:43]OFD Sender: No OFD packet to send [06:49:48]OFD Sender: No OFD packet to send [06:49:53]OFD Sender: No OFD packet to send [06:49:58]OFD Sender: No OFD packet to send [06:50:03]OFD Sender: No OFD packet to send [06:50:08]OFD Sender: No OFD packet to send [06:50:13]OFD Sender: No OFD packet to send [06:50:18]OFD Sender: No OFD packet to send [06:50:23]OFD Sender: No OFD packet to send [06:50:28]OFD Sender: No OFD packet to send [06:50:33]OFD Sender: No OFD packet to send [06:50:38]OFD Sender: No OFD packet to send [06:50:43]OFD Sender: No OFD packet to send [06:50:48]OFD Sender: No OFD packet to send [06:50:53]OFD Sender: No OFD packet to send [06:50:58]OFD Sender: No OFD packet to send [06:51:03]OFD Sender: No OFD packet to send [06:51:08]OFD Sender: No OFD packet to send [06:51:13]OFD Sender: No OFD packet to send [06:51:18]OFD Sender: No OFD packet to send [06:51:23]OFD Sender: No OFD packet to send [06:51:28]OFD Sender: No OFD packet to send [06:51:33]OFD Sender: No OFD packet to send [06:51:38]OFD Sender: No OFD packet to send [06:51:43]OFD Sender: No OFD packet to send [06:51:48]OFD Sender: No OFD packet to send [06:51:53]OFD Sender: No OFD packet to send [06:51:58]OFD Sender: No OFD packet to send [06:52:03]OFD Sender: No OFD packet to send [06:52:08]OFD Sender: No OFD packet to send [06:52:13]OFD Sender: No OFD packet to send [06:52:18]OFD Sender: No OFD packet to send [06:52:23]OFD Sender: No OFD packet to send [06:52:28]OFD Sender: No OFD packet to send [06:52:33]OFD Sender: No OFD packet to send [06:52:38]OFD Sender: No OFD packet to send [06:52:43]OFD Sender: No OFD packet to send [06:52:48]OFD Sender: No OFD packet to send [06:52:53]OFD Sender: No OFD packet to send [06:52:58]OFD Sender: No OFD packet to send [06:53:03]OFD Sender: No OFD packet to send [06:53:08]OFD Sender: No OFD packet to send [06:53:13]OFD Sender: No OFD packet to send [06:53:18]OFD Sender: No OFD packet to send [06:53:23]OFD Sender: No OFD packet to send [06:53:28]OFD Sender: No OFD packet to send [06:53:33]OFD Sender: No OFD packet to send [06:53:38]OFD Sender: No OFD packet to send [06:53:40]accept exits with 7 [06:53:40]New connection [06:53:40]New thread 3066785124 created [06:53:40]Thread 3066928484 joined [06:53:40]Waiting for new connection... [06:53:40] Sock 7.Parse request [06:53:40]Sock 7.Check first char [06:53:40]Sock 7.First char is OK [06:53:40]request: POST /json_proto HTTP/1.0 [06:53:40]Method: POST [06:53:40]URL: /json_proto [06:53:40]Method is POST - this is cgi request [06:53:40]url: /json_proto [06:53:40]query_string will be loaded in cgi processing [06:53:40]execute_cgi json_proto POST (null) [06:53:40]execute_cgi path=json_proto method=POST [06:53:40]POST find Content-Length [06:53:40]Host: 172.17.33.3:8080 [06:53:40]Content-Length: 682 [06:53:40]Content-Type: application/json [06:53:40] [06:53:40]POST finish read [06:53:40]Found Content-Length = 682 [06:53:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347487", "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" ] } } [06:53:40]execute_script... [06: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)347487", "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" ] } } [06:53:40]POST & json_proto [06:53:40]process_json_proto [06:53:40]json parsed OK: [06:53:40]protocol is kg_v1.0 [06:53:40]action value=close_receipt [06:53:40]process_action close_receipt [06:53:40]cmd_close_receipt [06:53:40]MH_GetDate [06:53:40]Write to MH i2c: F0 00 00 63 78 CA [06:53:40]Write i2c OK [06:53:40]MH_I2C_Read... [06:53:40]Read from MH i2c: F0 [06:53:40]MH_I2C_Read... [06:53:40]Read from MH i2c: F0 09 00 [06:53:40]MH_I2C_Read... [06:53:40]Read from MH i2c: F0 09 00 63 78 00 7D 7D 1B 66 23 5B 8F 65 C0 [06:53:40]GetLastDocTimeStamp 1713077314 [06:53:40]current date 1713077629 [06:53:40]FM_GetShiftState [06:53:40]SAM_PROTO_GetShiftState [06:53:40]wFMCommunicate request_size=4 [06:53:40]MH_SAM_APDU [06:53:40]CAPDU: 80 13 01 00 [06:53:40]Write to MH i2c: E2 08 00 64 78 80 13 01 00 00 00 00 00 59 [06:53:40]Write i2c OK [06:53:40]MH_I2C_Read... [06:53:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:53:40]Read from MH i2c: E2 [06:53:40]MH_I2C_Read... [06:53:40]Read from MH i2c: E2 0E 00 [06:53:40]MH_I2C_Read... [06:53:40]Read from MH i2c: E2 0E 00 64 78 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 05 [06:53:40]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [06:53:40]wFMCommunicate OK [06:53:40]SAM_PROTO_GetShiftState done [06:53:40]FM_GetShiftState done [06:53:40]opened in 1713053951 [06:53:40]opened+sec_in_day 1713140351 [06:53:40]quantity*price = 100050 [06:53:40]sum+1 = 100052 [06:53: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 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 29 14.04.2024 06:53 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29119 ФПД: 170481925236609 1/tax-web-control/client/api/v1/ticket?date=20240414T065349&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29119&fm=170481925236609&tin=02508201610067®Number=0000138879044617&sum=100000 [06:53:41]StoreToDocumentArchive [06:53:41]shift 116 fd 29119 [06:53:41]save to /storage/0116/doc_00029119 [06:53:41]save last doc name /storage/0116/doc_00029119 to /storage/kkm_last_doc_name [06:53:41]save OK [06:53:41]Clear old archive folders... [06:53:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:53:41]tlvbuf is 01286470 [06:53:41]SAM_PROTO_ClearQueue [06:53:41]wFMCommunicate request_size=4 [06:53:41]MH_SAM_APDU [06:53:41]CAPDU: 80 09 00 00 [06:53:41]Write to MH i2c: E2 08 00 71 78 80 09 00 00 00 00 00 00 5B [06:53:41]Write i2c OK [06:53:41]MH_I2C_Read... [06:53:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:53:41]Read from MH i2c: E2 [06:53:41]MH_I2C_Read... [06:53:41]Read from MH i2c: E2 03 00 [06:53:41]MH_I2C_Read... [06:53:41]Read from MH i2c: E2 03 00 71 78 00 90 00 5D [06:53:41]RAPDU: 90 00 [06:53:41]wFMCommunicate OK [06:53:41]SAM_PROTO_ClearQueue done [06:53:41]KKMCreateOFDPacket [06:53:41]OFDProtocolAddRootSTLVToBuf [06:53:41]FM_MakeSignedData [06:53:41]FM_MakeSignedData [06:53:41]SAM_PROTO_SignData [06:53:41]wFMCommunicate request_size=4 [06:53:41]MH_SAM_APDU [06:53:41]CAPDU: 80 0D 01 02 [06:53:41]Write to MH i2c: E2 08 00 72 78 80 0D 01 02 00 00 00 00 63 [06:53:41]Write i2c OK [06:53:41]MH_I2C_Read... [06:53:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:53:41]Read from MH i2c: E2 [06:53:41]MH_I2C_Read... [06:53:41]Read from MH i2c: E2 03 00 [06:53:41]MH_I2C_Read... [06:53:41]Read from MH i2c: E2 03 00 72 78 00 90 00 5E [06:53:41]RAPDU: 90 00 [06:53:41]wFMCommunicate OK [06:53:41]wFMCommunicate request_size=255 [06:53:41]MH_SAM_APDU [06:53: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 1D 00 00 00 F4 03 04 00 7D 7D 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BF 71 00 00 35 04 06 00 9B [06:53:41]Write to MH i2c: E2 02 01 73 78 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 7D 7D 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BF 71 00 00 35 04 06 00 9B 00 00 66 [06:53:41]Write i2c OK [06:53:41]MH_I2C_Read... [06:53:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:53:42]Read from MH i2c: E2 [06:53:42]MH_I2C_Read... [06:53:42]Read from MH i2c: E2 03 00 [06:53:42]MH_I2C_Read... [06:53:42]Read from MH i2c: E2 03 00 73 78 00 90 00 5F [06:53:42]RAPDU: 90 00 [06:53:42]wFMCommunicate OK [06:53:42]wFMCommunicate request_size=10 [06:53:42]MH_SAM_APDU [06:53:42]CAPDU: 80 0D 02 02 05 0D 6A 98 27 81 [06:53:42]Write to MH i2c: E2 0D 00 74 78 80 0D 02 02 05 00 0D 6A 98 27 81 00 00 27 [06:53:42]Write i2c OK [06:53:42]MH_I2C_Read... [06:53:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:53:42]Read from MH i2c: E2 [06:53:42]MH_I2C_Read... [06:53:42]Read from MH i2c: E2 03 00 [06:53:42]MH_I2C_Read... [06:53:42]Read from MH i2c: E2 03 00 74 78 00 90 00 60 [06:53:42]RAPDU: 90 00 [06:53:42]wFMCommunicate OK [06:53:42]wFMCommunicate request_size=4 [06:53:42]MH_SAM_APDU [06:53:42]CAPDU: 80 0D 03 02 [06:53:42]Write to MH i2c: E2 08 00 75 78 80 0D 03 02 00 00 00 00 68 [06:53:42]Write i2c OK [06:53:42]MH_I2C_Read... [06:53:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:53:42]Read from MH i2c: E2 [06:53:42]MH_I2C_Read... [06:53:42]Read from MH i2c: E2 0B 00 [06:53:42]MH_I2C_Read... [06:53:42]Read from MH i2c: E2 0B 00 75 78 00 22 35 6B 07 88 8F 83 6E 90 00 3A [06:53:42]RAPDU: 22 35 6B 07 88 8F 83 6E 90 00 [06:53:42]wFMCommunicate OK [06:53:42]SAM_PROTO_SignData done [06:53:42]FM_MakeSignedData done [06:53:42]CreateOFDProtocolMessage [06:53:42]wFMCommunicate request_size=4 [06:53:42]MH_SAM_APDU [06:53:42]CAPDU: 80 11 00 00 [06:53:42]Write to MH i2c: E2 08 00 76 78 80 11 00 00 00 00 00 00 68 [06:53:42]Write i2c OK [06:53:42]MH_I2C_Read... [06:53:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:53:42]Read from MH i2c: E2 [06:53:42]MH_I2C_Read... [06:53:42]Read from MH i2c: E2 17 00 [06:53:42]MH_I2C_Read... [06:53:42]Read from MH i2c: E2 17 00 76 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B7 [06:53:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [06:53:42]wFMCommunicate OK [06:53:42]CreateOFDProtocolMessage done [06:53:42]OFDSenderStorePacket 29119 [06:53:42]StoreOFDPacket docnum=29119 [06:53:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 83 B9 07 01 16 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 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 7D 7D 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BF 71 00 00 35 04 06 00 9B 0D 6A 98 27 81 22 35 6B 07 88 8F 83 6E [06:53:42]CheckFolder [06:53:42]dirname=/storage/ofd_packets [06:53:42]CheckFolder done [06:53:42]ProducePacketName [06:53:42]name=ofd_packets/00029119 [06:53:42]NVStorageSaveData ofd_packets/00029119 [06:53:42]File name is /storage/ofd_packets/00029119 [06:53:42]Write 301 bytes [06:53:42]NVStorageSaveData done [06:53:42]OFDSenderStorePacket done [06:53:42]KKMCreateOFDPacket done [06:53:42]NVStorageSaveData kkm_last_timestamp [06:53:42]File name is /storage/kkm_last_timestamp [06:53:42]Write 4 bytes [06:53:42]NVStorageSaveData done [06:53:42]ExternCall_PrintAddStr [06:53:42]wPrintStart [06:53:42]Write to MH i2c: 01 00 00 77 78 EF [06:53:42]Write i2c OK [06:53:42]MH_I2C_Read... [06:53:42]Read from MH i2c: 01 [06:53:42]MH_I2C_Read... [06:53:42]Read from MH i2c: 01 07 00 [06:53:42]MH_I2C_Read... [06:53:42]Read from MH i2c: 01 07 00 77 78 00 00 00 00 00 FF 0F 04 [06:53:42]RasterBufferAndPrint [06:53:42]line Счет N : (1)347487 [06:53:42]line ИНН: 02508201610067 [06:53:42]line Контрольно-Кассовый Чек [06:53:42]line ПРОДАЖА [06:53:42]line ТРК (МРК, ГНК) : 32 [06:53:42]line Товар: 2710124130 [06:53:42]line Аи-92-К-5 [06:53:42]line 15.560 * 64.30 [06:53:42]line = 1000.51 [06:53:42]line НДС 12% НСП 1% [06:53:42]line > о реализуемом товаре [06:53:42]line ОКРУГЛЕНИЕ: -0.51 [06:53:42]line ИТОГО: 1000.00 [06:53:42]line Внесено: 1000.00 [06:53:42]line СДАЧА: 0.00 [06:53:42]line НСП 1% : 8.85 [06:53:42]line НДС 12% : 106.25 [06:53:42]line Наличными: 1000.00 [06:53:42]line Безнал.: 0.00 [06:53:42]line Место: АЗС № 108 "Партнер Нефть" [06:53:42]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [06:53:42]line СНО: Общий режим [06:53:42]line Чек 29 14.04.2024 06:53 [06:53:42]line Смена: 116 ФФД: 1.0 [06:53:42]line ЗНМ: 0300000027 [06:53:42]line РНМ: 0000138879044617 [06:53:42]line Версия ККМ: 001 [06:53:42]line ФМ: 0000000000963154 [06:53:42]line ФД: 29119 [06:53:42]line ФПД: 170481925236609 [06:53:42]line 1/tax-web-control/client/api/v1/ticket?date=20240414T065349&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29119&fm=170481925236609&tin=02508201610067®Number=0000138879044617&sum=100000 [06:53:42]OFD Sender: Processing packet 29119 [packets to send 8, broken 7] [06:53:42]ProducePacketName [06:53:42]name=ofd_packets/00029119 [06:53:42]OFD Sender: To server: pG, [06:53:42]CommunicateWithHost lk.salyk.kg:30040 [06:53:42]ConnectInit lk.salyk.kg [06:53:42]written 0, free lines is 4095 [06:53:42]Connected sock=10 [06:53:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 83 B9 07 01 16 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 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 7D 7D 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BF 71 00 00 35 04 06 00 9B 0D 6A 98 27 81 22 35 6B 07 88 8F 83 6E [06:53:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 C6 B7 47 00 FB CB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BF 71 00 00 F4 03 04 00 22 28 1B 66 B6 04 01 00 00 CA 37 67 E8 C1 64 F3 94 [06:53:42]CommunicateWithHost err = 0 [06:53:42]CheckOFDResponse [06:53:42]1017 (14) - 77093643461234 [06:53:42]1041 (16) - 0000000000963154 [06:53:42]1040 (4) - 29119 [06:53:42]1012 (4) - 14.04.2024 00:49 [06:53:42]1206 (1) - 0 [06:53:42]OFD Sender: Remove packet 29119 [06:53:42]ProducePacketName [06:53:42]name=ofd_packets/00029119 [06:53:42]NVStorageDeleteData [06:53:43]Write to MH i2c: 01 00 00 A1 78 19 [06:53:43]Write i2c OK [06:53:43]MH_I2C_Read... [06:53:43]Read from MH i2c: 01 [06:53:43]MH_I2C_Read... [06:53:43]Read from MH i2c: 01 07 00 [06:53:43]MH_I2C_Read... [06:53:43]Read from MH i2c: 01 07 00 A1 78 00 00 00 00 00 C2 0C EE [06:53:43]RasterBufferAndPrint [06:53:43]line [06:53:43]line [06:53:43]line [06:53:43]line [06:53:43]line [06:53:43]written 0, free lines is 3270 [06:53:43]MH_Cut [06:53:43]Write to MH i2c: D1 01 00 A8 78 01 F2 [06:53:43]Write i2c OK [06:53:43]MH_I2C_Read... [06:53:43]Read from MH i2c: D1 [06:53:43]MH_I2C_Read... [06:53:43]Read from MH i2c: D1 01 00 [06:53:43]MH_I2C_Read... [06:53:43]Read from MH i2c: D1 01 00 A8 78 00 F1 [06:53:43]Write to MH i2c: 01 00 00 A9 78 21 [06:53:43]Write i2c OK [06:53:43]MH_I2C_Read... [06:53:43]OFD Sender: No OFD packet to send [06:53:43]*** Cut start [06:53:43]*** Partial cut [06:53:43]*** CUTSNS_PIN = 1 [06:53:44]*** CUTSNS_PIN = 0 [06:53:44]*** Brake cut motor [06:53:44]Read from MH i2c: 01 [06:53:44]MH_I2C_Read... [06:53:44]*** Stop cut motor [06:53:44]*** Cut end [06:53:44]Read from MH i2c: 01 07 00 [06:53:44]MH_I2C_Read... [06:53:44]Read from MH i2c: 01 07 00 A9 78 00 00 00 00 00 FF 0F 36 [06:53:44]process_action close_receipt done [06:53:44]requested_data is exist [06:53:44]produce_requested_data [06:53:44]requested_item fm.sn is exist - process it [06:53:44]wFMCommunicate request_size=4 [06:53:44]MH_SAM_APDU [06:53:44]CAPDU: 80 11 00 00 [06:53:44]Write to MH i2c: E2 08 00 AA 78 80 11 00 00 00 00 00 00 9C [06:53:44]Write i2c OK [06:53:44]MH_I2C_Read... [06:53:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:53:44]Read from MH i2c: E2 [06:53:44]MH_I2C_Read... [06:53:44]Read from MH i2c: E2 17 00 [06:53:44]MH_I2C_Read... [06:53:44]Read from MH i2c: E2 17 00 AA 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 EB [06:53:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [06:53:44]wFMCommunicate OK [06:53:44]requested_item fd.num is exist - process it [06:53:44]SAM_PROTO_GetFieldsCounters [06:53:44]wFMCommunicate request_size=4 [06:53:44]MH_SAM_APDU [06:53:44]CAPDU: 80 13 00 00 [06:53:44]Write to MH i2c: E2 08 00 AB 78 80 13 00 00 00 00 00 00 9F [06:53:44]Write i2c OK [06:53:44]MH_I2C_Read... [06:53:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:53:44]Read from MH i2c: E2 [06:53:44]MH_I2C_Read... [06:53:44]Read from MH i2c: E2 62 00 [06:53:44]MH_I2C_Read... [06:53:44]Read from MH i2c: E2 62 00 AB 78 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 BF 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 D8 [06:53:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 BF 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:53:44]wFMCommunicate OK [06:53:44]SAM_PROTO_GetFieldsCounters done [06:53:44]requested_item shift.num is exist - process it [06:53:44]requested_item shift.opened is exist - process it [06:53:44]req_shift_opened [06:53:44]FM_GetShiftState [06:53:44]SAM_PROTO_GetShiftState [06:53:44]wFMCommunicate request_size=4 [06:53:44]MH_SAM_APDU [06:53:44]CAPDU: 80 13 01 00 [06:53:44]Write to MH i2c: E2 08 00 AC 78 80 13 01 00 00 00 00 00 A1 [06:53:44]Write i2c OK [06:53:44]MH_I2C_Read... [06:53:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:53:44]Read from MH i2c: E2 [06:53:44]MH_I2C_Read... [06:53:44]Read from MH i2c: E2 0E 00 [06:53:44]MH_I2C_Read... [06:53:44]Read from MH i2c: E2 0E 00 AC 78 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 4D [06:53:44]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [06:53:44]wFMCommunicate OK [06:53:44]SAM_PROTO_GetShiftState done [06:53:44]FM_GetShiftState done [06:53:44]req_shift_opened done [06:53:44]requested_item shift.open_date is exist - process it [06:53:44]req_shift_open_date [06:53:44]req_shift_open_date done [06:53:44]produce_requested_data done [06:53:44]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29119,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [06:53:44]process_action_free close_receipt [06:53:44]json_value_free [06:53:44]json_value_free done [06:53:44]process_json_proto returns [06:53:44]Send response to host [06:53:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29119,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [06:53:44]free response buf [06:53:44]execute_script done [06:53:44]execute_script returns [06:53:44]free content buf [06:53:44]Sock 7.Close socket [06:53:44]Sock 7.Thread stoped [06:53:48]OFD Sender: No OFD packet to send [06:53:53]OFD Sender: No OFD packet to send [06:53:58]OFD Sender: No OFD packet to send [06:54:03]OFD Sender: No OFD packet to send [06:54:08]OFD Sender: No OFD packet to send [06:54:13]OFD Sender: No OFD packet to send [06:54:18]OFD Sender: No OFD packet to send [06:54:23]OFD Sender: No OFD packet to send [06:54:28]OFD Sender: No OFD packet to send [06:54:33]OFD Sender: No OFD packet to send [06:54:38]OFD Sender: No OFD packet to send [06:54:43]OFD Sender: No OFD packet to send [06:54:48]OFD Sender: No OFD packet to send [06:54:53]OFD Sender: No OFD packet to send [06:54:58]OFD Sender: No OFD packet to send [06:55:03]OFD Sender: No OFD packet to send [06:55:08]OFD Sender: No OFD packet to send [06:55:13]OFD Sender: No OFD packet to send [06:55:18]OFD Sender: No OFD packet to send [06:55:23]OFD Sender: No OFD packet to send [06:55:28]OFD Sender: No OFD packet to send [06:55:33]OFD Sender: No OFD packet to send [06:55:38]OFD Sender: No OFD packet to send [06:55:43]OFD Sender: No OFD packet to send [06:55:48]OFD Sender: No OFD packet to send [06:55:53]OFD Sender: No OFD packet to send [06:55:58]OFD Sender: No OFD packet to send [06:56:03]OFD Sender: No OFD packet to send [06:56:08]OFD Sender: No OFD packet to send [06:56:13]OFD Sender: No OFD packet to send [06:56:18]OFD Sender: No OFD packet to send [06:56:23]OFD Sender: No OFD packet to send [06:56:28]OFD Sender: No OFD packet to send [06:56:33]OFD Sender: No OFD packet to send [06:56:38]OFD Sender: No OFD packet to send [06:56:43]OFD Sender: No OFD packet to send [06:56:48]OFD Sender: No OFD packet to send [06:56:53]OFD Sender: No OFD packet to send [06:56:58]OFD Sender: No OFD packet to send [06:57:03]OFD Sender: No OFD packet to send [06:57:08]OFD Sender: No OFD packet to send [06:57:13]OFD Sender: No OFD packet to send [06:57:18]OFD Sender: No OFD packet to send [06:57:23]OFD Sender: No OFD packet to send [06:57:28]OFD Sender: No OFD packet to send [06:57:33]OFD Sender: No OFD packet to send [06:57:38]OFD Sender: No OFD packet to send [06:57:43]OFD Sender: No OFD packet to send [06:57:48]OFD Sender: No OFD packet to send [06:57:53]OFD Sender: No OFD packet to send [06:57:58]OFD Sender: No OFD packet to send [06:58:03]OFD Sender: No OFD packet to send [06:58:08]OFD Sender: No OFD packet to send [06:58:13]OFD Sender: No OFD packet to send [06:58:18]OFD Sender: No OFD packet to send [06:58:23]OFD Sender: No OFD packet to send [06:58:28]OFD Sender: No OFD packet to send [06:58:33]OFD Sender: No OFD packet to send [06:58:38]OFD Sender: No OFD packet to send [06:58:43]OFD Sender: No OFD packet to send [06:58:48]OFD Sender: No OFD packet to send [06:58:53]OFD Sender: No OFD packet to send [06:58:58]OFD Sender: No OFD packet to send [06:59:03]OFD Sender: No OFD packet to send [06:59:08]OFD Sender: No OFD packet to send [06:59:13]OFD Sender: No OFD packet to send [06:59:18]OFD Sender: No OFD packet to send [06:59:23]OFD Sender: No OFD packet to send [06:59:28]OFD Sender: No OFD packet to send [06:59:33]OFD Sender: No OFD packet to send [06:59:38]OFD Sender: No OFD packet to send [06:59:43]OFD Sender: No OFD packet to send [06:59:48]OFD Sender: No OFD packet to send [06:59:53]OFD Sender: No OFD packet to send [06:59:58]OFD Sender: No OFD packet to send [07:00:03]OFD Sender: No OFD packet to send [07:00:08]OFD Sender: No OFD packet to send [07:00:13]OFD Sender: No OFD packet to send [07:00:18]OFD Sender: No OFD packet to send [07:00:23]OFD Sender: No OFD packet to send [07:00:28]OFD Sender: No OFD packet to send [07:00:33]OFD Sender: No OFD packet to send [07:00:38]OFD Sender: No OFD packet to send [07:00:43]OFD Sender: No OFD packet to send [07:00:48]OFD Sender: No OFD packet to send [07:00:53]OFD Sender: No OFD packet to send [07:00:58]OFD Sender: No OFD packet to send [07:01:03]OFD Sender: No OFD packet to send [07:01:08]OFD Sender: No OFD packet to send [07:01:13]OFD Sender: No OFD packet to send [07:01:18]OFD Sender: No OFD packet to send [07:01:23]OFD Sender: No OFD packet to send [07:01:28]OFD Sender: No OFD packet to send [07:01:33]OFD Sender: No OFD packet to send [07:01:38]OFD Sender: No OFD packet to send [07:01:43]OFD Sender: No OFD packet to send [07:01:48]OFD Sender: No OFD packet to send [07:01:53]OFD Sender: No OFD packet to send [07:01:58]OFD Sender: No OFD packet to send [07:02:03]OFD Sender: No OFD packet to send [07:02:08]OFD Sender: No OFD packet to send [07:02:13]OFD Sender: No OFD packet to send [07:02:18]OFD Sender: No OFD packet to send [07:02:23]OFD Sender: No OFD packet to send [07:02:28]OFD Sender: No OFD packet to send [07:02:33]OFD Sender: No OFD packet to send [07:02:38]OFD Sender: No OFD packet to send [07:02:43]OFD Sender: No OFD packet to send [07:02:48]OFD Sender: No OFD packet to send [07:02:53]OFD Sender: No OFD packet to send [07:02:58]OFD Sender: No OFD packet to send [07:03:03]OFD Sender: No OFD packet to send [07:03:08]OFD Sender: No OFD packet to send [07:03:13]OFD Sender: No OFD packet to send [07:03:18]OFD Sender: No OFD packet to send [07:03:23]OFD Sender: No OFD packet to send [07:03:28]OFD Sender: No OFD packet to send [07:03:33]OFD Sender: No OFD packet to send [07:03:38]OFD Sender: No OFD packet to send [07:03:43]OFD Sender: No OFD packet to send [07:03:48]OFD Sender: No OFD packet to send [07:03:53]OFD Sender: No OFD packet to send [07:03:58]OFD Sender: No OFD packet to send [07:04:03]OFD Sender: No OFD packet to send [07:04:08]OFD Sender: No OFD packet to send [07:04:13]OFD Sender: No OFD packet to send [07:04:18]OFD Sender: No OFD packet to send [07:04:23]OFD Sender: No OFD packet to send [07:04:28]OFD Sender: No OFD packet to send [07:04:33]OFD Sender: No OFD packet to send [07:04:38]OFD Sender: No OFD packet to send [07:04:43]OFD Sender: No OFD packet to send [07:04:48]OFD Sender: No OFD packet to send [07:04:53]OFD Sender: No OFD packet to send [07:04:58]OFD Sender: No OFD packet to send [07:05:04]OFD Sender: No OFD packet to send [07:05:09]OFD Sender: No OFD packet to send [07:05:14]OFD Sender: No OFD packet to send [07:05:19]OFD Sender: No OFD packet to send [07:05:24]OFD Sender: No OFD packet to send [07:05:29]OFD Sender: No OFD packet to send [07:05:34]OFD Sender: No OFD packet to send [07:05:39]OFD Sender: No OFD packet to send [07:05:44]OFD Sender: No OFD packet to send [07:05:49]OFD Sender: No OFD packet to send [07:05:54]OFD Sender: No OFD packet to send [07:05:59]OFD Sender: No OFD packet to send [07:06:04]OFD Sender: No OFD packet to send [07:06:09]OFD Sender: No OFD packet to send [07:06:14]OFD Sender: No OFD packet to send [07:06:19]OFD Sender: No OFD packet to send [07:06:24]OFD Sender: No OFD packet to send [07:06:29]OFD Sender: No OFD packet to send [07:06:34]OFD Sender: No OFD packet to send [07:06:39]OFD Sender: No OFD packet to send [07:06:44]OFD Sender: No OFD packet to send [07:06:49]OFD Sender: No OFD packet to send [07:06:54]OFD Sender: No OFD packet to send [07:06:59]OFD Sender: No OFD packet to send [07:07:04]OFD Sender: No OFD packet to send [07:07:09]OFD Sender: No OFD packet to send [07:07:14]OFD Sender: No OFD packet to send [07:07:19]OFD Sender: No OFD packet to send [07:07:24]OFD Sender: No OFD packet to send [07:07:29]OFD Sender: No OFD packet to send [07:07:34]OFD Sender: No OFD packet to send [07:07:39]OFD Sender: No OFD packet to send [07:07:44]OFD Sender: No OFD packet to send [07:07:49]OFD Sender: No OFD packet to send [07:07:54]OFD Sender: No OFD packet to send [07:07:59]OFD Sender: No OFD packet to send [07:08:04]OFD Sender: No OFD packet to send [07:08:09]OFD Sender: No OFD packet to send [07:08:14]OFD Sender: No OFD packet to send [07:08:19]OFD Sender: No OFD packet to send [07:08:24]OFD Sender: No OFD packet to send [07:08:29]OFD Sender: No OFD packet to send [07:08:34]OFD Sender: No OFD packet to send [07:08:39]OFD Sender: No OFD packet to send [07:08:44]OFD Sender: No OFD packet to send [07:08:49]OFD Sender: No OFD packet to send [07:08:54]OFD Sender: No OFD packet to send [07:08:59]OFD Sender: No OFD packet to send [07:09:04]OFD Sender: No OFD packet to send [07:09:09]OFD Sender: No OFD packet to send [07:09:14]OFD Sender: No OFD packet to send [07:09:19]OFD Sender: No OFD packet to send [07:09:24]OFD Sender: No OFD packet to send [07:09:29]OFD Sender: No OFD packet to send [07:09:34]OFD Sender: No OFD packet to send [07:09:39]OFD Sender: No OFD packet to send [07:09:44]OFD Sender: No OFD packet to send [07:09:49]OFD Sender: No OFD packet to send [07:09:54]OFD Sender: No OFD packet to send [07:09:59]OFD Sender: No OFD packet to send [07:10:04]OFD Sender: No OFD packet to send [07:10:09]OFD Sender: No OFD packet to send [07:10:14]OFD Sender: No OFD packet to send [07:10:19]OFD Sender: No OFD packet to send [07:10:24]OFD Sender: No OFD packet to send [07:10:29]OFD Sender: No OFD packet to send [07:10:34]OFD Sender: No OFD packet to send [07:10:39]OFD Sender: No OFD packet to send [07:10:44]OFD Sender: No OFD packet to send [07:10:49]OFD Sender: No OFD packet to send [07:10:54]OFD Sender: No OFD packet to send [07:10:59]OFD Sender: No OFD packet to send [07:11:04]OFD Sender: No OFD packet to send [07:11:09]OFD Sender: No OFD packet to send [07:11:14]OFD Sender: No OFD packet to send [07:11:19]OFD Sender: No OFD packet to send [07:11:24]OFD Sender: No OFD packet to send [07:11:29]OFD Sender: No OFD packet to send [07:11:34]OFD Sender: No OFD packet to send [07:11:39]OFD Sender: No OFD packet to send [07:11:44]OFD Sender: No OFD packet to send [07:11:49]OFD Sender: No OFD packet to send [07:11:54]OFD Sender: No OFD packet to send [07:11:59]OFD Sender: No OFD packet to send [07:12:04]OFD Sender: No OFD packet to send [07:12:09]OFD Sender: No OFD packet to send [07:12:14]OFD Sender: No OFD packet to send [07:12:19]OFD Sender: No OFD packet to send [07:12:24]OFD Sender: No OFD packet to send [07:12:26]accept exits with 9 [07:12:26]New connection [07:12:26]New thread 3066928484 created [07:12:26]Thread 3066785124 joined [07:12:26]Waiting for new connection... [07:12:26] Sock 9.Parse request [07:12:26]Sock 9.Check first char [07:12:26]Sock 9.First char is OK [07:12:26]request: POST /json_proto HTTP/1.0 [07:12:26]Method: POST [07:12:26]URL: /json_proto [07:12:26]Method is POST - this is cgi request [07:12:26]url: /json_proto [07:12:26]query_string will be loaded in cgi processing [07:12:26]execute_cgi json_proto POST (null) [07:12:26]execute_cgi path=json_proto method=POST [07:12:26]POST find Content-Length [07:12:26]Host: 172.17.33.3:8080 [07:12:26]Content-Length: 675 [07:12:26]Content-Type: application/json [07:12:26] [07:12:26]POST finish read [07:12:26]Found Content-Length = 675 [07:12:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347488", "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" ] } } [07:12:26]execute_script... [07:12: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)347488", "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" ] } } [07:12:26]POST & json_proto [07:12:26]process_json_proto [07:12:26]json parsed OK: [07:12:26]protocol is kg_v1.0 [07:12:26]action value=close_receipt [07:12:26]process_action close_receipt [07:12:26]cmd_close_receipt [07:12:26]MH_GetDate [07:12:26]Write to MH i2c: F0 00 00 AD 78 14 [07:12:26]Write i2c OK [07:12:26]MH_I2C_Read... [07:12:26]Read from MH i2c: F0 [07:12:26]MH_I2C_Read... [07:12:26]Read from MH i2c: F0 09 00 [07:12:26]MH_I2C_Read... [07:12:26]Read from MH i2c: F0 09 00 AD 78 00 E3 81 1B 66 23 5B 8F 65 74 [07:12:26]GetLastDocTimeStamp 1713077629 [07:12:26]current date 1713078755 [07:12:26]FM_GetShiftState [07:12:26]SAM_PROTO_GetShiftState [07:12:26]wFMCommunicate request_size=4 [07:12:26]MH_SAM_APDU [07:12:26]CAPDU: 80 13 01 00 [07:12:26]Write to MH i2c: E2 08 00 AE 78 80 13 01 00 00 00 00 00 A3 [07:12:26]Write i2c OK [07:12:26]MH_I2C_Read... [07:12:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:12:26]Read from MH i2c: E2 [07:12:26]MH_I2C_Read... [07:12:26]Read from MH i2c: E2 0E 00 [07:12:26]MH_I2C_Read... [07:12:26]Read from MH i2c: E2 0E 00 AE 78 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 4F [07:12:26]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [07:12:26]wFMCommunicate OK [07:12:26]SAM_PROTO_GetShiftState done [07:12:26]FM_GetShiftState done [07:12:26]opened in 1713053951 [07:12:26]opened+sec_in_day 1713140351 [07:12:26]quantity*price = 100039 [07:12:26]sum+1 = 100041 [07:12:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 30 14.04.2024 07:12 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29120 ФПД: 120743835080077 1/tax-web-control/client/api/v1/ticket?date=20240414T071235&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29120&fm=120743835080077&tin=02508201610067®Number=0000138879044617&sum=100000 [07:12:27]StoreToDocumentArchive [07:12:27]shift 116 fd 29120 [07:12:27]save to /storage/0116/doc_00029120 [07:12:27]save last doc name /storage/0116/doc_00029120 to /storage/kkm_last_doc_name [07:12:27]save OK [07:12:27]Clear old archive folders... [07:12:27]ProcessDocumentItem done err = 0, tmpTLVsize=252 [07:12:27]tlvbuf is 011E37D0 [07:12:27]SAM_PROTO_ClearQueue [07:12:27]wFMCommunicate request_size=4 [07:12:27]MH_SAM_APDU [07:12:27]CAPDU: 80 09 00 00 [07:12:27]Write to MH i2c: E2 08 00 BB 78 80 09 00 00 00 00 00 00 A5 [07:12:27]Write i2c OK [07:12:27]MH_I2C_Read... [07:12:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:12:27]Read from MH i2c: E2 [07:12:27]MH_I2C_Read... [07:12:27]Read from MH i2c: E2 03 00 [07:12:27]MH_I2C_Read... [07:12:27]Read from MH i2c: E2 03 00 BB 78 00 90 00 A7 [07:12:27]RAPDU: 90 00 [07:12:27]wFMCommunicate OK [07:12:27]SAM_PROTO_ClearQueue done [07:12:27]KKMCreateOFDPacket [07:12:27]OFDProtocolAddRootSTLVToBuf [07:12:27]FM_MakeSignedData [07:12:27]FM_MakeSignedData [07:12:27]SAM_PROTO_SignData [07:12:27]wFMCommunicate request_size=4 [07:12:27]MH_SAM_APDU [07:12:27]CAPDU: 80 0D 01 02 [07:12:27]Write to MH i2c: E2 08 00 BC 78 80 0D 01 02 00 00 00 00 AD [07:12:27]Write i2c OK [07:12:27]MH_I2C_Read... [07:12:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:12:27]Read from MH i2c: E2 [07:12:27]MH_I2C_Read... [07:12:27]Read from MH i2c: E2 03 00 [07:12:27]MH_I2C_Read... [07:12:27]Read from MH i2c: E2 03 00 BC 78 00 90 00 A8 [07:12:27]RAPDU: 90 00 [07:12:27]wFMCommunicate OK [07:12:27]wFMCommunicate request_size=255 [07:12:27]MH_SAM_APDU [07:12:27]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 1E 00 00 00 F4 03 04 00 E3 81 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C0 71 00 00 35 04 06 00 [07:12:27]Write to MH i2c: E2 02 01 BD 78 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 1E 00 00 00 F4 03 04 00 E3 81 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C0 71 00 00 35 04 06 00 00 00 92 [07:12:27]Write i2c OK [07:12:27]MH_I2C_Read... [07:12:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:12:27]Read from MH i2c: E2 [07:12:27]MH_I2C_Read... [07:12:27]Read from MH i2c: E2 03 00 [07:12:27]MH_I2C_Read... [07:12:27]Read from MH i2c: E2 03 00 BD 78 00 90 00 A9 [07:12:27]RAPDU: 90 00 [07:12:27]wFMCommunicate OK [07:12:27]wFMCommunicate request_size=11 [07:12:27]MH_SAM_APDU [07:12:27]CAPDU: 80 0D 02 02 06 6D D0 DD 66 15 8D [07:12:27]Write to MH i2c: E2 0E 00 BE 78 80 0D 02 02 06 00 6D D0 DD 66 15 8D 00 00 DE [07:12:27]Write i2c OK [07:12:27]MH_I2C_Read... [07:12:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:12:27]Read from MH i2c: E2 [07:12:27]MH_I2C_Read... [07:12:27]Read from MH i2c: E2 03 00 [07:12:27]MH_I2C_Read... [07:12:27]Read from MH i2c: E2 03 00 BE 78 00 90 00 AA [07:12:27]RAPDU: 90 00 [07:12:27]wFMCommunicate OK [07:12:27]wFMCommunicate request_size=4 [07:12:27]MH_SAM_APDU [07:12:27]CAPDU: 80 0D 03 02 [07:12:27]Write to MH i2c: E2 08 00 BF 78 80 0D 03 02 00 00 00 00 B2 [07:12:27]Write i2c OK [07:12:27]MH_I2C_Read... [07:12:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:12:28]Read from MH i2c: E2 [07:12:28]MH_I2C_Read... [07:12:28]Read from MH i2c: E2 0B 00 [07:12:28]MH_I2C_Read... [07:12:28]Read from MH i2c: E2 0B 00 BF 78 00 F3 D1 4A 31 21 85 E9 D1 90 00 52 [07:12:28]RAPDU: F3 D1 4A 31 21 85 E9 D1 90 00 [07:12:28]wFMCommunicate OK [07:12:28]SAM_PROTO_SignData done [07:12:28]FM_MakeSignedData done [07:12:28]CreateOFDProtocolMessage [07:12:28]wFMCommunicate request_size=4 [07:12:28]MH_SAM_APDU [07:12:28]CAPDU: 80 11 00 00 [07:12:28]Write to MH i2c: E2 08 00 C0 78 80 11 00 00 00 00 00 00 B2 [07:12:28]Write i2c OK [07:12:28]MH_I2C_Read... [07:12:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:12:28]Read from MH i2c: E2 [07:12:28]MH_I2C_Read... [07:12:28]Read from MH i2c: E2 17 00 [07:12:28]MH_I2C_Read... [07:12:28]Read from MH i2c: E2 17 00 C0 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 01 [07:12:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:12:28]wFMCommunicate OK [07:12:28]CreateOFDProtocolMessage done [07:12:28]OFDSenderStorePacket 29120 [07:12:28]StoreOFDPacket docnum=29120 [07:12:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 74 CE 08 01 24 4B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 1E 00 00 00 F4 03 04 00 E3 81 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C0 71 00 00 35 04 06 00 6D D0 DD 66 15 8D F3 D1 4A 31 21 85 E9 D1 [07:12:28]CheckFolder [07:12:28]dirname=/storage/ofd_packets [07:12:28]CheckFolder done [07:12:28]ProducePacketName [07:12:28]name=ofd_packets/00029120 [07:12:28]NVStorageSaveData ofd_packets/00029120 [07:12:28]File name is /storage/ofd_packets/00029120 [07:12:28]Write 302 bytes [07:12:28]NVStorageSaveData done [07:12:28]OFDSenderStorePacket done [07:12:28]KKMCreateOFDPacket done [07:12:28]NVStorageSaveData kkm_last_timestamp [07:12:28]File name is /storage/kkm_last_timestamp [07:12:28]Write 4 bytes [07:12:28]NVStorageSaveData done [07:12:28]ExternCall_PrintAddStr [07:12:28]wPrintStart [07:12:28]Write to MH i2c: 01 00 00 C1 78 39 [07:12:28]Write i2c OK [07:12:28]MH_I2C_Read... [07:12:28]Read from MH i2c: 01 [07:12:28]MH_I2C_Read... [07:12:28]Read from MH i2c: 01 07 00 [07:12:28]MH_I2C_Read... [07:12:28]Read from MH i2c: 01 07 00 C1 78 00 00 00 00 00 FF 0F 4E [07:12:28]RasterBufferAndPrint [07:12:28]line Счет N : (1)347488 [07:12:28]line ИНН: 02508201610067 [07:12:28]line Контрольно-Кассовый Чек [07:12:28]line ПРОДАЖА [07:12:28]line ТРК (МРК, ГНК) : 41 [07:12:28]line Товар: 2710124130 [07:12:28]line SUPER-92-К-5 [07:12:28]line 15.320 * 65.30 [07:12:28]line = 1000.40 [07:12:28]line НДС 12% НСП 1% [07:12:28]line > о реализуемом товаре [07:12:28]line ОКРУГЛЕНИЕ: -0.40 [07:12:28]line ИТОГО: 1000.00 [07:12:28]line Внесено: 1000.00 [07:12:28]line СДАЧА: 0.00 [07:12:28]line НСП 1% : 8.85 [07:12:28]line НДС 12% : 106.24 [07:12:28]line Наличными: 1000.00 [07:12:28]line Безнал.: 0.00 [07:12:28]line Место: АЗС № 108 "Партнер Нефть" [07:12:28]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [07:12:28]line СНО: Общий режим [07:12:28]line Чек 30 14.04.2024 07:12 [07:12:28]line Смена: 116 ФФД: 1.0 [07:12:28]line ЗНМ: 0300000027 [07:12:28]line РНМ: 0000138879044617 [07:12:28]line Версия ККМ: 001 [07:12:28]line ФМ: 0000000000963154 [07:12:28]line ФД: 29120 [07:12:28]line ФПД: 120743835080077 [07:12:28]line 1/tax-web-control/client/api/v1/ticket?date=20240414T071235&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29120&fm=120743835080077&tin=02508201610067®Number=0000138879044617&sum=100000 [07:12:28]OFD Sender: Processing packet 29120 [packets to send 8, broken 7] [07:12:28]ProducePacketName [07:12:28]name=ofd_packets/00029120 [07:12:28]OFD Sender: To server: pG, [07:12:28]CommunicateWithHost lk.salyk.kg:30040 [07:12:28]ConnectInit lk.salyk.kg [07:12:28]written 0, free lines is 4095 [07:12:28]Connected sock=10 [07:12:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 74 CE 08 01 24 4B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 1E 00 00 00 F4 03 04 00 E3 81 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C0 71 00 00 35 04 06 00 6D D0 DD 66 15 8D F3 D1 4A 31 21 85 E9 D1 [07:12:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 87 65 47 00 F9 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 39 36 33 31 35 34 10 04 04 00 C0 71 00 00 F4 03 04 00 87 2C 1B 66 B6 04 01 00 00 51 04 39 B5 F3 68 DF 78 [07:12:28]CommunicateWithHost err = 0 [07:12:28]CheckOFDResponse [07:12:28]1017 (14) - 77093643461234 [07:12:28]1041 (16) - 0000000000963154 [07:12:28]1040 (4) - 29120 [07:12:28]1012 (4) - 14.04.2024 01:08 [07:12:28]1206 (1) - 0 [07:12:28]OFD Sender: Remove packet 29120 [07:12:28]ProducePacketName [07:12:28]name=ofd_packets/00029120 [07:12:28]NVStorageDeleteData [07:12:28]Write to MH i2c: 01 00 00 EB 78 63 [07:12:28]Write i2c OK [07:12:28]MH_I2C_Read... [07:12:28]Read from MH i2c: 01 [07:12:28]MH_I2C_Read... [07:12:28]Read from MH i2c: 01 07 00 [07:12:28]MH_I2C_Read... [07:12:28]Read from MH i2c: 01 07 00 EB 78 00 00 00 00 00 D2 0C 48 [07:12:28]RasterBufferAndPrint [07:12:28]line [07:12:28]line [07:12:28]line [07:12:28]line [07:12:28]line [07:12:28]written 0, free lines is 3288 [07:12:28]MH_Cut [07:12:28]Write to MH i2c: D1 01 00 F2 78 01 3C [07:12:28]Write i2c OK [07:12:28]MH_I2C_Read... [07:12:28]Read from MH i2c: D1 [07:12:28]MH_I2C_Read... [07:12:28]Read from MH i2c: D1 01 00 [07:12:28]MH_I2C_Read... [07:12:28]Read from MH i2c: D1 01 00 F2 78 00 3B [07:12:28]Write to MH i2c: 01 00 00 F3 78 6B [07:12:28]Write i2c OK [07:12:28]MH_I2C_Read... [07:12:29]OFD Sender: No OFD packet to send [07:12:29]*** Cut start [07:12:29]*** Partial cut [07:12:29]*** CUTSNS_PIN = 1 [07:12:29]*** CUTSNS_PIN = 0 [07:12:29]*** Brake cut motor [07:12:30]Read from MH i2c: 01 [07:12:30]MH_I2C_Read... [07:12:30]*** Stop cut motor [07:12:30]*** Cut end [07:12:30]Read from MH i2c: 01 07 00 [07:12:30]MH_I2C_Read... [07:12:30]Read from MH i2c: 01 07 00 F3 78 00 00 00 00 00 FF 0F 80 [07:12:30]process_action close_receipt done [07:12:30]requested_data is exist [07:12:30]produce_requested_data [07:12:30]requested_item fm.sn is exist - process it [07:12:30]wFMCommunicate request_size=4 [07:12:30]MH_SAM_APDU [07:12:30]CAPDU: 80 11 00 00 [07:12:30]Write to MH i2c: E2 08 00 F4 78 80 11 00 00 00 00 00 00 E6 [07:12:30]Write i2c OK [07:12:30]MH_I2C_Read... [07:12:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:12:30]Read from MH i2c: E2 [07:12:30]MH_I2C_Read... [07:12:30]Read from MH i2c: E2 17 00 [07:12:30]MH_I2C_Read... [07:12:30]Read from MH i2c: E2 17 00 F4 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 35 [07:12:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:12:30]wFMCommunicate OK [07:12:30]requested_item fd.num is exist - process it [07:12:30]SAM_PROTO_GetFieldsCounters [07:12:30]wFMCommunicate request_size=4 [07:12:30]MH_SAM_APDU [07:12:30]CAPDU: 80 13 00 00 [07:12:30]Write to MH i2c: E2 08 00 F5 78 80 13 00 00 00 00 00 00 E9 [07:12:30]Write i2c OK [07:12:30]MH_I2C_Read... [07:12:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:12:30]Read from MH i2c: E2 [07:12:30]MH_I2C_Read... [07:12:30]Read from MH i2c: E2 62 00 [07:12:30]MH_I2C_Read... [07:12:30]Read from MH i2c: E2 62 00 F5 78 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C0 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 26 [07:12:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C0 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:12:30]wFMCommunicate OK [07:12:30]SAM_PROTO_GetFieldsCounters done [07:12:30]requested_item shift.num is exist - process it [07:12:30]requested_item shift.opened is exist - process it [07:12:30]req_shift_opened [07:12:30]FM_GetShiftState [07:12:30]SAM_PROTO_GetShiftState [07:12:30]wFMCommunicate request_size=4 [07:12:30]MH_SAM_APDU [07:12:30]CAPDU: 80 13 01 00 [07:12:30]Write to MH i2c: E2 08 00 F6 78 80 13 01 00 00 00 00 00 EB [07:12:30]Write i2c OK [07:12:30]MH_I2C_Read... [07:12:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:12:30]Read from MH i2c: E2 [07:12:30]MH_I2C_Read... [07:12:30]Read from MH i2c: E2 0E 00 [07:12:30]MH_I2C_Read... [07:12:30]Read from MH i2c: E2 0E 00 F6 78 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 97 [07:12:30]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [07:12:30]wFMCommunicate OK [07:12:30]SAM_PROTO_GetShiftState done [07:12:30]FM_GetShiftState done [07:12:30]req_shift_opened done [07:12:30]requested_item shift.open_date is exist - process it [07:12:30]req_shift_open_date [07:12:30]req_shift_open_date done [07:12:30]produce_requested_data done [07:12:30]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29120,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [07:12:30]process_action_free close_receipt [07:12:30]json_value_free [07:12:30]json_value_free done [07:12:30]process_json_proto returns [07:12:30]Send response to host [07:12:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29120,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [07:12:30]free response buf [07:12:30]execute_script done [07:12:30]execute_script returns [07:12:30]free content buf [07:12:30]Sock 9.Close socket [07:12:30]Sock 9.Thread stoped [07:12:34]OFD Sender: No OFD packet to send [07:12:39]OFD Sender: No OFD packet to send [07:12:44]OFD Sender: No OFD packet to send [07:12:49]OFD Sender: No OFD packet to send [07:12:54]OFD Sender: No OFD packet to send [07:12:59]OFD Sender: No OFD packet to send [07:13:04]OFD Sender: No OFD packet to send [07:13:09]OFD Sender: No OFD packet to send [07:13:14]OFD Sender: No OFD packet to send [07:13:19]OFD Sender: No OFD packet to send [07:13:24]OFD Sender: No OFD packet to send [07:13:29]OFD Sender: No OFD packet to send [07:13:34]OFD Sender: No OFD packet to send [07:13:39]OFD Sender: No OFD packet to send [07:13:44]OFD Sender: No OFD packet to send [07:13:49]OFD Sender: No OFD packet to send [07:13:54]OFD Sender: No OFD packet to send [07:13:59]OFD Sender: No OFD packet to send [07:14:04]OFD Sender: No OFD packet to send [07:14:09]OFD Sender: No OFD packet to send [07:14:14]OFD Sender: No OFD packet to send [07:14:19]OFD Sender: No OFD packet to send [07:14:24]OFD Sender: No OFD packet to send [07:14:29]OFD Sender: No OFD packet to send [07:14:34]OFD Sender: No OFD packet to send [07:14:39]OFD Sender: No OFD packet to send [07:14:44]OFD Sender: No OFD packet to send [07:14:49]OFD Sender: No OFD packet to send [07:14:54]OFD Sender: No OFD packet to send [07:14:59]OFD Sender: No OFD packet to send [07:15:04]OFD Sender: No OFD packet to send [07:15:09]OFD Sender: No OFD packet to send [07:15:14]OFD Sender: No OFD packet to send [07:15:19]OFD Sender: No OFD packet to send [07:15:24]OFD Sender: No OFD packet to send [07:15:29]OFD Sender: No OFD packet to send [07:15:34]OFD Sender: No OFD packet to send [07:15:39]OFD Sender: No OFD packet to send [07:15:44]OFD Sender: No OFD packet to send [07:15:49]OFD Sender: No OFD packet to send [07:15:54]OFD Sender: No OFD packet to send [07:15:59]OFD Sender: No OFD packet to send [07:16:04]OFD Sender: No OFD packet to send [07:16:09]OFD Sender: No OFD packet to send [07:16:14]OFD Sender: No OFD packet to send [07:16:19]OFD Sender: No OFD packet to send [07:16:24]OFD Sender: No OFD packet to send [07:16:29]OFD Sender: No OFD packet to send [07:16:34]OFD Sender: No OFD packet to send [07:16:39]OFD Sender: No OFD packet to send [07:16:44]OFD Sender: No OFD packet to send [07:16:45]accept exits with 7 [07:16:45]New connection [07:16:45]New thread 3066785124 created [07:16:45]Thread 3066928484 joined [07:16:45]Waiting for new connection... [07:16:45] Sock 7.Parse request [07:16:45]Sock 7.Check first char [07:16:45]Sock 7.First char is OK [07:16:45]request: POST /json_proto HTTP/1.0 [07:16:45]Method: POST [07:16:45]URL: /json_proto [07:16:45]Method is POST - this is cgi request [07:16:45]url: /json_proto [07:16:45]query_string will be loaded in cgi processing [07:16:45]execute_cgi json_proto POST (null) [07:16:45]execute_cgi path=json_proto method=POST [07:16:45]POST find Content-Length [07:16:45]Host: 172.17.33.3:8080 [07:16:45]Content-Length: 677 [07:16:45]Content-Type: application/json [07:16:45] [07:16:45]POST finish read [07:16:45]Found Content-Length = 677 [07:16:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347490", "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" ] } } [07:16:45]execute_script... [07: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)347490", "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" ] } } [07:16:45]POST & json_proto [07:16:45]process_json_proto [07:16:45]json parsed OK: [07:16:45]protocol is kg_v1.0 [07:16:45]action value=close_receipt [07:16:45]process_action close_receipt [07:16:45]cmd_close_receipt [07:16:45]MH_GetDate [07:16:45]Write to MH i2c: F0 00 00 F7 78 5E [07:16:45]Write i2c OK [07:16:45]MH_I2C_Read... [07:16:45]Read from MH i2c: F0 [07:16:45]MH_I2C_Read... [07:16:45]Read from MH i2c: F0 09 00 [07:16:45]MH_I2C_Read... [07:16:45]Read from MH i2c: F0 09 00 F7 78 00 E6 82 1B 66 23 5B 8F 65 C2 [07:16:45]GetLastDocTimeStamp 1713078755 [07:16:45]current date 1713079014 [07:16:45]FM_GetShiftState [07:16:45]SAM_PROTO_GetShiftState [07:16:45]wFMCommunicate request_size=4 [07:16:45]MH_SAM_APDU [07:16:45]CAPDU: 80 13 01 00 [07:16:45]Write to MH i2c: E2 08 00 F8 78 80 13 01 00 00 00 00 00 ED [07:16:45]Write i2c OK [07:16:45]MH_I2C_Read... [07:16:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:16:45]Read from MH i2c: E2 [07:16:45]MH_I2C_Read... [07:16:45]Read from MH i2c: E2 0E 00 [07:16:45]MH_I2C_Read... [07:16:45]Read from MH i2c: E2 0E 00 F8 78 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 99 [07:16:45]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [07:16:45]wFMCommunicate OK [07:16:45]SAM_PROTO_GetShiftState done [07:16:45]FM_GetShiftState done [07:16:45]opened in 1713053951 [07:16:45]opened+sec_in_day 1713140351 [07:16:45]quantity*price = 30028 [07:16:45]sum+1 = 30029 [07:16:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 31 14.04.2024 07:16 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29121 ФПД: 109260765166941 1/tax-web-control/client/api/v1/ticket?date=20240414T071654&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29121&fm=109260765166941&tin=02508201610067®Number=0000138879044617&sum=30000 [07:16:46]StoreToDocumentArchive [07:16:46]shift 116 fd 29121 [07:16:46]save to /storage/0116/doc_00029121 [07:16:46]save last doc name /storage/0116/doc_00029121 to /storage/kkm_last_doc_name [07:16:46]save OK [07:16:46]Clear old archive folders... [07:16:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:16:46]tlvbuf is 011D4C50 [07:16:46]SAM_PROTO_ClearQueue [07:16:46]wFMCommunicate request_size=4 [07:16:46]MH_SAM_APDU [07:16:46]CAPDU: 80 09 00 00 [07:16:46]Write to MH i2c: E2 08 00 05 79 80 09 00 00 00 00 00 00 F0 [07:16:46]Write i2c OK [07:16:46]MH_I2C_Read... [07:16:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:16:46]Read from MH i2c: E2 [07:16:46]MH_I2C_Read... [07:16:46]Read from MH i2c: E2 03 00 [07:16:46]MH_I2C_Read... [07:16:46]Read from MH i2c: E2 03 00 05 79 00 90 00 F2 [07:16:46]RAPDU: 90 00 [07:16:46]wFMCommunicate OK [07:16:46]SAM_PROTO_ClearQueue done [07:16:46]KKMCreateOFDPacket [07:16:46]OFDProtocolAddRootSTLVToBuf [07:16:46]FM_MakeSignedData [07:16:46]FM_MakeSignedData [07:16:46]SAM_PROTO_SignData [07:16:46]wFMCommunicate request_size=4 [07:16:46]MH_SAM_APDU [07:16:46]CAPDU: 80 0D 01 02 [07:16:46]Write to MH i2c: E2 08 00 06 79 80 0D 01 02 00 00 00 00 F8 [07:16:46]Write i2c OK [07:16:46]MH_I2C_Read... [07:16:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:16:46]Read from MH i2c: E2 [07:16:46]MH_I2C_Read... [07:16:46]Read from MH i2c: E2 03 00 [07:16:46]MH_I2C_Read... [07:16:46]Read from MH i2c: E2 03 00 06 79 00 90 00 F3 [07:16:46]RAPDU: 90 00 [07:16:46]wFMCommunicate OK [07:16:46]wFMCommunicate request_size=255 [07:16:46]MH_SAM_APDU [07:16: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 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 1F 00 00 00 F4 03 04 00 E6 82 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C1 71 00 00 35 04 06 00 63 [07:16:46]Write to MH i2c: E2 02 01 07 79 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1F 00 00 00 F4 03 04 00 E6 82 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C1 71 00 00 35 04 06 00 63 00 00 4E [07:16:46]Write i2c OK [07:16:46]MH_I2C_Read... [07:16:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:16:47]Read from MH i2c: E2 [07:16:47]MH_I2C_Read... [07:16:47]Read from MH i2c: E2 03 00 [07:16:47]MH_I2C_Read... [07:16:47]Read from MH i2c: E2 03 00 07 79 00 90 00 F4 [07:16:47]RAPDU: 90 00 [07:16:47]wFMCommunicate OK [07:16:47]wFMCommunicate request_size=10 [07:16:47]MH_SAM_APDU [07:16:47]CAPDU: 80 0D 02 02 05 5F 41 18 7D 5D [07:16:47]Write to MH i2c: E2 0D 00 08 79 80 0D 02 02 05 00 5F 41 18 7D 5D 00 00 97 [07:16:47]Write i2c OK [07:16:47]MH_I2C_Read... [07:16:47]Read from MH i2c: E2 [07:16:47]MH_I2C_Read... [07:16:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:16:47]Read from MH i2c: E2 03 00 [07:16:47]MH_I2C_Read... [07:16:47]Read from MH i2c: E2 03 00 08 79 00 90 00 F5 [07:16:47]RAPDU: 90 00 [07:16:47]wFMCommunicate OK [07:16:47]wFMCommunicate request_size=4 [07:16:47]MH_SAM_APDU [07:16:47]CAPDU: 80 0D 03 02 [07:16:47]Write to MH i2c: E2 08 00 09 79 80 0D 03 02 00 00 00 00 FD [07:16:47]Write i2c OK [07:16:47]MH_I2C_Read... [07:16:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:16:47]Read from MH i2c: E2 [07:16:47]MH_I2C_Read... [07:16:47]Read from MH i2c: E2 0B 00 [07:16:47]MH_I2C_Read... [07:16:47]Read from MH i2c: E2 0B 00 09 79 00 71 73 95 94 12 8A C7 33 90 00 A1 [07:16:47]RAPDU: 71 73 95 94 12 8A C7 33 90 00 [07:16:47]wFMCommunicate OK [07:16:47]SAM_PROTO_SignData done [07:16:47]FM_MakeSignedData done [07:16:47]CreateOFDProtocolMessage [07:16:47]wFMCommunicate request_size=4 [07:16:47]MH_SAM_APDU [07:16:47]CAPDU: 80 11 00 00 [07:16:47]Write to MH i2c: E2 08 00 0A 79 80 11 00 00 00 00 00 00 FD [07:16:47]Write i2c OK [07:16:47]MH_I2C_Read... [07:16:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:16:47]Read from MH i2c: E2 [07:16:47]MH_I2C_Read... [07:16:47]Read from MH i2c: E2 17 00 [07:16:47]MH_I2C_Read... [07:16:47]Read from MH i2c: E2 17 00 0A 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 4C [07:16:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:16:47]wFMCommunicate OK [07:16:47]CreateOFDProtocolMessage done [07:16:47]OFDSenderStorePacket 29121 [07:16:47]StoreOFDPacket docnum=29121 [07:16:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 1C E0 07 01 E5 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 1F 00 00 00 F4 03 04 00 E6 82 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C1 71 00 00 35 04 06 00 63 5F 41 18 7D 5D 71 73 95 94 12 8A C7 33 [07:16:47]CheckFolder [07:16:47]dirname=/storage/ofd_packets [07:16:47]CheckFolder done [07:16:47]ProducePacketName [07:16:47]name=ofd_packets/00029121 [07:16:47]NVStorageSaveData ofd_packets/00029121 [07:16:47]File name is /storage/ofd_packets/00029121 [07:16:47]Write 301 bytes [07:16:47]NVStorageSaveData done [07:16:47]OFDSenderStorePacket done [07:16:47]KKMCreateOFDPacket done [07:16:47]NVStorageSaveData kkm_last_timestamp [07:16:47]File name is /storage/kkm_last_timestamp [07:16:47]Write 4 bytes [07:16:47]NVStorageSaveData done [07:16:47]ExternCall_PrintAddStr [07:16:47]wPrintStart [07:16:47]Write to MH i2c: 01 00 00 0B 79 84 [07:16:47]Write i2c OK [07:16:47]MH_I2C_Read... [07:16:47]Read from MH i2c: 01 [07:16:47]MH_I2C_Read... [07:16:47]Read from MH i2c: 01 07 00 [07:16:47]MH_I2C_Read... [07:16:47]Read from MH i2c: 01 07 00 0B 79 00 00 00 00 00 FF 0F 99 [07:16:47]RasterBufferAndPrint [07:16:47]line Счет N : (1)347490 [07:16:47]line ИНН: 02508201610067 [07:16:47]line Контрольно-Кассовый Чек [07:16:47]line ПРОДАЖА [07:16:47]line ТРК (МРК, ГНК) : 32 [07:16:47]line Товар: 2710124130 [07:16:47]line Аи-92-К-5 [07:16:47]line 4.670 * 64.30 [07:16:47]line = 300.28 [07:16:47]line НДС 12% НСП 1% [07:16:47]line > о реализуемом товаре [07:16:47]line ОКРУГЛЕНИЕ: -0.28 [07:16:47]line ИТОГО: 300.00 [07:16:47]line Внесено: 300.00 [07:16:47]line СДАЧА: 0.00 [07:16:47]line НСП 1% : 2.66 [07:16:47]line НДС 12% : 31.89 [07:16:47]line Наличными: 300.00 [07:16:47]line Безнал.: 0.00 [07:16:47]line Место: АЗС № 108 "Партнер Нефть" [07:16:47]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [07:16:47]line СНО: Общий режим [07:16:47]line Чек 31 14.04.2024 07:16 [07:16:47]line Смена: 116 ФФД: 1.0 [07:16:47]line ЗНМ: 0300000027 [07:16:47]line РНМ: 0000138879044617 [07:16:47]line Версия ККМ: 001 [07:16:47]line ФМ: 0000000000963154 [07:16:47]line ФД: 29121 [07:16:47]line ФПД: 109260765166941 [07:16:47]line 1/tax-web-control/client/api/v1/ticket?date=20240414T071654&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29121&fm=109260765166941&tin=02508201610067®Number=0000138879044617&sum=30000 [07:16:47]written 0, free lines is 4095 [07:16:47]OFD Sender: Processing packet 29121 [packets to send 8, broken 7] [07:16:47]ProducePacketName [07:16:47]name=ofd_packets/00029121 [07:16:47]OFD Sender: To server: pG, [07:16:47]CommunicateWithHost lk.salyk.kg:30040 [07:16:47]ConnectInit lk.salyk.kg [07:16:47]Connected sock=11 [07:16:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 1C E0 07 01 E5 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 1F 00 00 00 F4 03 04 00 E6 82 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C1 71 00 00 35 04 06 00 63 5F 41 18 7D 5D 71 73 95 94 12 8A C7 33 [07:16:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 C2 E0 47 00 1E 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C1 71 00 00 F4 03 04 00 8A 2D 1B 66 B6 04 01 00 00 8C F6 B4 5A 72 F4 BD 20 [07:16:47]CommunicateWithHost err = 0 [07:16:47]CheckOFDResponse [07:16:47]1017 (14) - 77093643461234 [07:16:47]1041 (16) - 0000000000963154 [07:16:47]1040 (4) - 29121 [07:16:47]1012 (4) - 14.04.2024 01:12 [07:16:47]1206 (1) - 0 [07:16:47]OFD Sender: Remove packet 29121 [07:16:47]ProducePacketName [07:16:47]name=ofd_packets/00029121 [07:16:47]NVStorageDeleteData [07:16:47]Write to MH i2c: 01 00 00 35 79 AE [07:16:47]Write i2c OK [07:16:47]MH_I2C_Read... [07:16:47]Read from MH i2c: 01 [07:16:47]MH_I2C_Read... [07:16:47]Read from MH i2c: 01 07 00 [07:16:47]MH_I2C_Read... [07:16:47]Read from MH i2c: 01 07 00 35 79 00 00 00 00 00 C4 0C 85 [07:16:47]RasterBufferAndPrint [07:16:47]line [07:16:47]line [07:16:47]line [07:16:47]line [07:16:47]line [07:16:47]written 0, free lines is 3272 [07:16:47]MH_Cut [07:16:47]Write to MH i2c: D1 01 00 3C 79 01 87 [07:16:47]Write i2c OK [07:16:47]MH_I2C_Read... [07:16:47]Read from MH i2c: D1 [07:16:47]MH_I2C_Read... [07:16:47]Read from MH i2c: D1 01 00 [07:16:47]MH_I2C_Read... [07:16:47]Read from MH i2c: D1 01 00 3C 79 00 86 [07:16:47]Write to MH i2c: 01 00 00 3D 79 B6 [07:16:47]Write i2c OK [07:16:47]MH_I2C_Read... [07:16:48]OFD Sender: No OFD packet to send [07:16:48]*** Cut start [07:16:48]*** Partial cut [07:16:48]*** CUTSNS_PIN = 1 [07:16:48]*** CUTSNS_PIN = 0 [07:16:48]*** Brake cut motor [07:16:49]Read from MH i2c: 01 [07:16:49]MH_I2C_Read... [07:16:49]*** Stop cut motor [07:16:49]*** Cut end [07:16:49]Read from MH i2c: 01 07 00 [07:16:49]MH_I2C_Read... [07:16:49]Read from MH i2c: 01 07 00 3D 79 00 00 00 00 00 FF 0F CB [07:16:49]process_action close_receipt done [07:16:49]requested_data is exist [07:16:49]produce_requested_data [07:16:49]requested_item fm.sn is exist - process it [07:16:49]wFMCommunicate request_size=4 [07:16:49]MH_SAM_APDU [07:16:49]CAPDU: 80 11 00 00 [07:16:49]Write to MH i2c: E2 08 00 3E 79 80 11 00 00 00 00 00 00 31 [07:16:49]Write i2c OK [07:16:49]MH_I2C_Read... [07:16:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:16:49]Read from MH i2c: E2 [07:16:49]MH_I2C_Read... [07:16:49]Read from MH i2c: E2 17 00 [07:16:49]MH_I2C_Read... [07:16:49]Read from MH i2c: E2 17 00 3E 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 80 [07:16:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:16:49]wFMCommunicate OK [07:16:49]requested_item fd.num is exist - process it [07:16:49]SAM_PROTO_GetFieldsCounters [07:16:49]wFMCommunicate request_size=4 [07:16:49]MH_SAM_APDU [07:16:49]CAPDU: 80 13 00 00 [07:16:49]Write to MH i2c: E2 08 00 3F 79 80 13 00 00 00 00 00 00 34 [07:16:49]Write i2c OK [07:16:49]MH_I2C_Read... [07:16:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:16:49]Read from MH i2c: E2 [07:16:49]MH_I2C_Read... [07:16:49]Read from MH i2c: E2 62 00 [07:16:49]MH_I2C_Read... [07:16:49]Read from MH i2c: E2 62 00 3F 79 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C1 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 75 [07:16:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C1 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:16:49]wFMCommunicate OK [07:16:49]SAM_PROTO_GetFieldsCounters done [07:16:49]requested_item shift.num is exist - process it [07:16:49]requested_item shift.opened is exist - process it [07:16:49]req_shift_opened [07:16:49]FM_GetShiftState [07:16:49]SAM_PROTO_GetShiftState [07:16:49]wFMCommunicate request_size=4 [07:16:49]MH_SAM_APDU [07:16:49]CAPDU: 80 13 01 00 [07:16:49]Write to MH i2c: E2 08 00 40 79 80 13 01 00 00 00 00 00 36 [07:16:49]Write i2c OK [07:16:49]MH_I2C_Read... [07:16:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:16:49]Read from MH i2c: E2 [07:16:49]MH_I2C_Read... [07:16:49]Read from MH i2c: E2 0E 00 [07:16:49]MH_I2C_Read... [07:16:49]Read from MH i2c: E2 0E 00 40 79 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 E2 [07:16:49]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [07:16:49]wFMCommunicate OK [07:16:49]SAM_PROTO_GetShiftState done [07:16:49]FM_GetShiftState done [07:16:49]req_shift_opened done [07:16:49]requested_item shift.open_date is exist - process it [07:16:49]req_shift_open_date [07:16:49]req_shift_open_date done [07:16:49]produce_requested_data done [07:16:49]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29121,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [07:16:49]process_action_free close_receipt [07:16:49]json_value_free [07:16:49]json_value_free done [07:16:49]process_json_proto returns [07:16:49]Send response to host [07:16:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29121,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [07:16:49]free response buf [07:16:49]execute_script done [07:16:49]execute_script returns [07:16:49]free content buf [07:16:49]Sock 7.Close socket [07:16:49]Sock 7.Thread stoped [07:16:53]OFD Sender: No OFD packet to send [07:16:58]OFD Sender: No OFD packet to send [07:17:02]accept exits with 9 [07:17:02]New connection [07:17:02]New thread 3066928484 created [07:17:02]Thread 3066785124 joined [07:17:02]Waiting for new connection... [07:17:02] Sock 9.Parse request [07:17:02]Sock 9.Check first char [07:17:02]Sock 9.First char is OK [07:17:02]request: POST /json_proto HTTP/1.0 [07:17:02]Method: POST [07:17:02]URL: /json_proto [07:17:02]Method is POST - this is cgi request [07:17:02]url: /json_proto [07:17:02]query_string will be loaded in cgi processing [07:17:02]execute_cgi json_proto POST (null) [07:17:02]execute_cgi path=json_proto method=POST [07:17:02]POST find Content-Length [07:17:02]Host: 172.17.33.3:8080 [07:17:02]Content-Length: 683 [07:17:02]Content-Type: application/json [07:17:02] [07:17:02]POST finish read [07:17:02]Found Content-Length = 683 [07:17:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347489", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 24.430, "sum" : 1570.85, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 64300.00, "total" : 1570.00, "payments": [ { "type": 0, "sum" : 1570.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:17:02]execute_script... [07:17: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)347489", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 24.430, "sum" : 1570.85, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 64300.00, "total" : 1570.00, "payments": [ { "type": 0, "sum" : 1570.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:17:02]POST & json_proto [07:17:02]process_json_proto [07:17:02]json parsed OK: [07:17:02]protocol is kg_v1.0 [07:17:02]action value=close_receipt [07:17:02]process_action close_receipt [07:17:02]cmd_close_receipt [07:17:02]MH_GetDate [07:17:02]Write to MH i2c: F0 00 00 41 79 A9 [07:17:02]Write i2c OK [07:17:02]MH_I2C_Read... [07:17:02]Read from MH i2c: F0 [07:17:02]MH_I2C_Read... [07:17:02]Read from MH i2c: F0 09 00 [07:17:02]MH_I2C_Read... [07:17:02]Read from MH i2c: F0 09 00 41 79 00 F7 82 1B 66 23 5B 8F 65 1E [07:17:02]GetLastDocTimeStamp 1713079014 [07:17:02]current date 1713079031 [07:17:02]FM_GetShiftState [07:17:02]SAM_PROTO_GetShiftState [07:17:02]wFMCommunicate request_size=4 [07:17:02]MH_SAM_APDU [07:17:02]CAPDU: 80 13 01 00 [07:17:02]Write to MH i2c: E2 08 00 42 79 80 13 01 00 00 00 00 00 38 [07:17:02]Write i2c OK [07:17:02]MH_I2C_Read... [07:17:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:17:02]Read from MH i2c: E2 [07:17:02]MH_I2C_Read... [07:17:02]Read from MH i2c: E2 0E 00 [07:17:02]MH_I2C_Read... [07:17:02]Read from MH i2c: E2 0E 00 42 79 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 E4 [07:17:02]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [07:17:02]wFMCommunicate OK [07:17:02]SAM_PROTO_GetShiftState done [07:17:02]FM_GetShiftState done [07:17:02]opened in 1713053951 [07:17:02]opened+sec_in_day 1713140351 [07:17:02]quantity*price = 157084 [07:17:02]sum+1 = 157086 [07:17:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.85 ИТОГО: 1570.00 Внесено: 64300.00 СДАЧА: 62730.00 НСП 1% : 13.90 НДС 12% : 166.82 Наличными: 1570.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 32 14.04.2024 07:17 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29122 ФПД: 32944093973743 1/tax-web-control/client/api/v1/ticket?date=20240414T071711&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29122&fm=32944093973743&tin=02508201610067®Number=0000138879044617&sum=157000 [07:17:03]StoreToDocumentArchive [07:17:03]shift 116 fd 29122 [07:17:03]save to /storage/0116/doc_00029122 [07:17:03]save last doc name /storage/0116/doc_00029122 to /storage/kkm_last_doc_name [07:17:03]save OK [07:17:03]Clear old archive folders... [07:17:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:17:03]tlvbuf is 011B7250 [07:17:03]SAM_PROTO_ClearQueue [07:17:03]wFMCommunicate request_size=4 [07:17:03]MH_SAM_APDU [07:17:03]CAPDU: 80 09 00 00 [07:17:03]Write to MH i2c: E2 08 00 4F 79 80 09 00 00 00 00 00 00 3A [07:17:03]Write i2c OK [07:17:03]MH_I2C_Read... [07:17:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:17:03]Read from MH i2c: E2 [07:17:03]MH_I2C_Read... [07:17:03]Read from MH i2c: E2 03 00 [07:17:03]MH_I2C_Read... [07:17:03]Read from MH i2c: E2 03 00 4F 79 00 90 00 3C [07:17:03]RAPDU: 90 00 [07:17:03]wFMCommunicate OK [07:17:03]SAM_PROTO_ClearQueue done [07:17:03]KKMCreateOFDPacket [07:17:03]OFDProtocolAddRootSTLVToBuf [07:17:03]FM_MakeSignedData [07:17:03]FM_MakeSignedData [07:17:03]SAM_PROTO_SignData [07:17:03]wFMCommunicate request_size=4 [07:17:03]MH_SAM_APDU [07:17:03]CAPDU: 80 0D 01 02 [07:17:03]Write to MH i2c: E2 08 00 50 79 80 0D 01 02 00 00 00 00 42 [07:17:03]Write i2c OK [07:17:03]MH_I2C_Read... [07:17:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:17:04]Read from MH i2c: E2 [07:17:04]MH_I2C_Read... [07:17:04]Read from MH i2c: E2 03 00 [07:17:04]MH_I2C_Read... [07:17:04]Read from MH i2c: E2 03 00 50 79 00 90 00 3D [07:17:04]RAPDU: 90 00 [07:17:04]wFMCommunicate OK [07:17:04]wFMCommunicate request_size=255 [07:17:04]MH_SAM_APDU [07:17: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 6E 5F 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 9D 65 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 65 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 41 00 00 00 00 07 04 06 00 48 65 02 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 F7 82 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C2 71 00 00 35 04 06 00 1D [07:17:04]Write to MH i2c: E2 02 01 51 79 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 5F 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 9D 65 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 65 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 41 00 00 00 00 07 04 06 00 48 65 02 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 F7 82 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C2 71 00 00 35 04 06 00 1D 00 00 8B [07:17:04]Write i2c OK [07:17:04]MH_I2C_Read... [07:17:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:17:04]Read from MH i2c: E2 [07:17:04]MH_I2C_Read... [07:17:04]Read from MH i2c: E2 03 00 [07:17:04]MH_I2C_Read... [07:17:04]Read from MH i2c: E2 03 00 51 79 00 90 00 3E [07:17:04]RAPDU: 90 00 [07:17:04]wFMCommunicate OK [07:17:04]wFMCommunicate request_size=10 [07:17:04]MH_SAM_APDU [07:17:04]CAPDU: 80 0D 02 02 05 F6 65 04 CC EF [07:17:04]Write to MH i2c: E2 0D 00 52 79 80 0D 02 02 05 00 F6 65 04 CC EF 00 00 69 [07:17:04]Write i2c OK [07:17:04]MH_I2C_Read... [07:17:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:17:04]Read from MH i2c: E2 [07:17:04]MH_I2C_Read... [07:17:04]Read from MH i2c: E2 03 00 [07:17:04]MH_I2C_Read... [07:17:04]Read from MH i2c: E2 03 00 52 79 00 90 00 3F [07:17:04]RAPDU: 90 00 [07:17:04]wFMCommunicate OK [07:17:04]wFMCommunicate request_size=4 [07:17:04]MH_SAM_APDU [07:17:04]CAPDU: 80 0D 03 02 [07:17:04]Write to MH i2c: E2 08 00 53 79 80 0D 03 02 00 00 00 00 47 [07:17:04]Write i2c OK [07:17:04]MH_I2C_Read... [07:17:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:17:04]Read from MH i2c: E2 [07:17:04]MH_I2C_Read... [07:17:04]Read from MH i2c: E2 0B 00 [07:17:04]MH_I2C_Read... [07:17:04]Read from MH i2c: E2 0B 00 53 79 00 A9 8D C0 76 48 57 46 6A 90 00 03 [07:17:04]RAPDU: A9 8D C0 76 48 57 46 6A 90 00 [07:17:04]wFMCommunicate OK [07:17:04]SAM_PROTO_SignData done [07:17:04]FM_MakeSignedData done [07:17:04]CreateOFDProtocolMessage [07:17:04]wFMCommunicate request_size=4 [07:17:04]MH_SAM_APDU [07:17:04]CAPDU: 80 11 00 00 [07:17:04]Write to MH i2c: E2 08 00 54 79 80 11 00 00 00 00 00 00 47 [07:17:04]Write i2c OK [07:17:04]MH_I2C_Read... [07:17:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:17:04]Read from MH i2c: E2 [07:17:04]MH_I2C_Read... [07:17:04]Read from MH i2c: E2 17 00 [07:17:04]MH_I2C_Read... [07:17:04]Read from MH i2c: E2 17 00 54 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 96 [07:17:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:17:04]wFMCommunicate OK [07:17:04]CreateOFDProtocolMessage done [07:17:04]OFDSenderStorePacket 29122 [07:17:04]StoreOFDPacket docnum=29122 [07:17:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 38 F2 07 01 EF E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 5F 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 9D 65 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 65 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 41 00 00 00 00 07 04 06 00 48 65 02 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 F7 82 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C2 71 00 00 35 04 06 00 1D F6 65 04 CC EF A9 8D C0 76 48 57 46 6A [07:17:04]CheckFolder [07:17:04]dirname=/storage/ofd_packets [07:17:04]CheckFolder done [07:17:04]ProducePacketName [07:17:04]name=ofd_packets/00029122 [07:17:04]NVStorageSaveData ofd_packets/00029122 [07:17:04]File name is /storage/ofd_packets/00029122 [07:17:04]Write 301 bytes [07:17:04]NVStorageSaveData done [07:17:04]OFDSenderStorePacket done [07:17:04]KKMCreateOFDPacket done [07:17:04]NVStorageSaveData kkm_last_timestamp [07:17:04]File name is /storage/kkm_last_timestamp [07:17:04]Write 4 bytes [07:17:04]NVStorageSaveData done [07:17:04]ExternCall_PrintAddStr [07:17:04]wPrintStart [07:17:04]Write to MH i2c: 01 00 00 55 79 CE [07:17:04]Write i2c OK [07:17:04]MH_I2C_Read... [07:17:04]Read from MH i2c: 01 [07:17:04]MH_I2C_Read... [07:17:04]Read from MH i2c: 01 07 00 [07:17:04]MH_I2C_Read... [07:17:04]Read from MH i2c: 01 07 00 55 79 00 00 00 00 00 FF 0F E3 [07:17:04]RasterBufferAndPrint [07:17:04]line Счет N : (1)347489 [07:17:04]line ИНН: 02508201610067 [07:17:04]line Контрольно-Кассовый Чек [07:17:04]line ПРОДАЖА [07:17:04]line ТРК (МРК, ГНК) : 13 [07:17:04]line Товар: 2710124130 [07:17:04]line Аи-92-К-5 [07:17:04]line 24.430 * 64.30 [07:17:04]line = 1570.85 [07:17:04]line НДС 12% НСП 1% [07:17:04]line > о реализуемом товаре [07:17:04]line ОКРУГЛЕНИЕ: -0.85 [07:17:04]line ИТОГО: 1570.00 [07:17:04]line Внесено: 64300.00 [07:17:04]line СДАЧА: 62730.00 [07:17:04]line НСП 1% : 13.90 [07:17:04]line НДС 12% : 166.82 [07:17:04]line Наличными: 1570.00 [07:17:04]line Безнал.: 0.00 [07:17:04]line Место: АЗС № 108 "Партнер Нефть" [07:17:04]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [07:17:04]line СНО: Общий режим [07:17:04]line Чек 32 14.04.2024 07:17 [07:17:04]line Смена: 116 ФФД: 1.0 [07:17:04]line ЗНМ: 0300000027 [07:17:04]line РНМ: 0000138879044617 [07:17:04]line Версия ККМ: 001 [07:17:04]line ФМ: 0000000000963154 [07:17:04]line ФД: 29122 [07:17:04]line ФПД: 32944093973743 [07:17:04]line 1/tax-web-control/client/api/v1/ticket?date=20240414T071711&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29122&fm=32944093973743&tin=02508201610067®Number=0000138879044617&sum=157000 [07:17:04]OFD Sender: Processing packet 29122 [packets to send 8, broken 7] [07:17:04]ProducePacketName [07:17:04]name=ofd_packets/00029122 [07:17:04]OFD Sender: To server: pG, [07:17:04]CommunicateWithHost lk.salyk.kg:30040 [07:17:04]ConnectInit lk.salyk.kg [07:17:04]written 0, free lines is 4095 [07:17:04]Connected sock=10 [07:17:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 38 F2 07 01 EF E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 5F 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 9D 65 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 65 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 41 00 00 00 00 07 04 06 00 48 65 02 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 F7 82 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C2 71 00 00 35 04 06 00 1D F6 65 04 CC EF A9 8D C0 76 48 57 46 6A [07:17:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 78 AF 47 00 EC 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C2 71 00 00 F4 03 04 00 9C 2D 1B 66 B6 04 01 00 00 27 01 FB DD F5 1D 64 42 [07:17:05]CommunicateWithHost err = 0 [07:17:05]CheckOFDResponse [07:17:05]1017 (14) - 77093643461234 [07:17:05]1041 (16) - 0000000000963154 [07:17:05]1040 (4) - 29122 [07:17:05]1012 (4) - 14.04.2024 01:13 [07:17:05]1206 (1) - 0 [07:17:05]OFD Sender: Remove packet 29122 [07:17:05]ProducePacketName [07:17:05]name=ofd_packets/00029122 [07:17:05]NVStorageDeleteData [07:17:05]Write to MH i2c: 01 00 00 7F 79 F8 [07:17:05]Write i2c OK [07:17:05]MH_I2C_Read... [07:17:05]Read from MH i2c: 01 [07:17:05]MH_I2C_Read... [07:17:05]Read from MH i2c: 01 07 00 [07:17:05]MH_I2C_Read... [07:17:05]Read from MH i2c: 01 07 00 7F 79 00 00 00 00 00 DA 0C E5 [07:17:05]RasterBufferAndPrint [07:17:05]line [07:17:05]line [07:17:05]line [07:17:05]line [07:17:05]line [07:17:05]written 0, free lines is 3298 [07:17:05]MH_Cut [07:17:05]Write to MH i2c: D1 01 00 86 79 01 D1 [07:17:05]Write i2c OK [07:17:05]MH_I2C_Read... [07:17:05]Read from MH i2c: D1 [07:17:05]MH_I2C_Read... [07:17:05]Read from MH i2c: D1 01 00 [07:17:05]MH_I2C_Read... [07:17:05]Read from MH i2c: D1 01 00 86 79 00 D0 [07:17:05]Write to MH i2c: 01 00 00 87 79 00 [07:17:05]Write i2c OK [07:17:05]MH_I2C_Read... [07:17:05]OFD Sender: No OFD packet to send [07:17:06]*** Cut start [07:17:06]*** Partial cut [07:17:06]*** CUTSNS_PIN = 1 [07:17:06]*** CUTSNS_PIN = 0 [07:17:06]*** Brake cut motor [07:17:06]Read from MH i2c: 01 [07:17:06]MH_I2C_Read... [07:17:06]*** Stop cut motor [07:17:06]*** Cut end [07:17:06]Read from MH i2c: 01 07 00 [07:17:06]MH_I2C_Read... [07:17:06]Read from MH i2c: 01 07 00 87 79 00 00 00 00 00 FF 0F 15 [07:17:06]process_action close_receipt done [07:17:06]requested_data is exist [07:17:06]produce_requested_data [07:17:06]requested_item fm.sn is exist - process it [07:17:06]wFMCommunicate request_size=4 [07:17:06]MH_SAM_APDU [07:17:06]CAPDU: 80 11 00 00 [07:17:06]Write to MH i2c: E2 08 00 88 79 80 11 00 00 00 00 00 00 7B [07:17:06]Write i2c OK [07:17:06]MH_I2C_Read... [07:17:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:17:06]Read from MH i2c: E2 [07:17:06]MH_I2C_Read... [07:17:06]Read from MH i2c: E2 17 00 [07:17:06]MH_I2C_Read... [07:17:06]Read from MH i2c: E2 17 00 88 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 CA [07:17:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:17:06]wFMCommunicate OK [07:17:06]requested_item fd.num is exist - process it [07:17:06]SAM_PROTO_GetFieldsCounters [07:17:06]wFMCommunicate request_size=4 [07:17:06]MH_SAM_APDU [07:17:06]CAPDU: 80 13 00 00 [07:17:06]Write to MH i2c: E2 08 00 89 79 80 13 00 00 00 00 00 00 7E [07:17:06]Write i2c OK [07:17:06]MH_I2C_Read... [07:17:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:17:06]Read from MH i2c: E2 [07:17:06]MH_I2C_Read... [07:17:06]Read from MH i2c: E2 62 00 [07:17:06]MH_I2C_Read... [07:17:06]Read from MH i2c: E2 62 00 89 79 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C2 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 C3 [07:17:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C2 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:17:06]wFMCommunicate OK [07:17:06]SAM_PROTO_GetFieldsCounters done [07:17:06]requested_item shift.num is exist - process it [07:17:06]requested_item shift.opened is exist - process it [07:17:06]req_shift_opened [07:17:06]FM_GetShiftState [07:17:06]SAM_PROTO_GetShiftState [07:17:06]wFMCommunicate request_size=4 [07:17:06]MH_SAM_APDU [07:17:06]CAPDU: 80 13 01 00 [07:17:06]Write to MH i2c: E2 08 00 8A 79 80 13 01 00 00 00 00 00 80 [07:17:06]Write i2c OK [07:17:06]MH_I2C_Read... [07:17:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:17:06]Read from MH i2c: E2 [07:17:06]MH_I2C_Read... [07:17:06]Read from MH i2c: E2 0E 00 [07:17:06]MH_I2C_Read... [07:17:06]Read from MH i2c: E2 0E 00 8A 79 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 2C [07:17:06]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [07:17:06]wFMCommunicate OK [07:17:06]SAM_PROTO_GetShiftState done [07:17:06]FM_GetShiftState done [07:17:06]req_shift_opened done [07:17:06]requested_item shift.open_date is exist - process it [07:17:06]req_shift_open_date [07:17:06]req_shift_open_date done [07:17:06]produce_requested_data done [07:17:06]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29122,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [07:17:06]process_action_free close_receipt [07:17:06]json_value_free [07:17:06]json_value_free done [07:17:06]process_json_proto returns [07:17:06]Send response to host [07:17:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29122,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [07:17:06]free response buf [07:17:06]execute_script done [07:17:06]execute_script returns [07:17:06]free content buf [07:17:06]Sock 9.Close socket [07:17:06]Sock 9.Thread stoped [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:15]OFD Sender: No OFD packet to send [07:18:20]OFD Sender: No OFD packet to send [07:18:25]OFD Sender: No OFD packet to send [07:18:30]OFD Sender: No OFD packet to send [07:18:35]OFD Sender: No OFD packet to send [07:18:40]OFD Sender: No OFD packet to send [07:18:45]OFD Sender: No OFD packet to send [07:18:50]OFD Sender: No OFD packet to send [07:18:55]OFD Sender: No OFD packet to send [07:19:00]OFD Sender: No OFD packet to send [07:19:05]OFD Sender: No OFD packet to send [07:19:10]OFD Sender: No OFD packet to send [07:19:15]OFD Sender: No OFD packet to send [07:19:20]OFD Sender: No OFD packet to send [07:19:25]OFD Sender: No OFD packet to send [07:19:30]OFD Sender: No OFD packet to send [07:19:35]OFD Sender: No OFD packet to send [07:19:40]OFD Sender: No OFD packet to send [07:19:45]OFD Sender: No OFD packet to send [07:19:50]OFD Sender: No OFD packet to send [07:19:55]OFD Sender: No OFD packet to send [07:20:00]OFD Sender: No OFD packet to send [07:20:05]OFD Sender: No OFD packet to send [07:20:10]OFD Sender: No OFD packet to send [07:20:15]OFD Sender: No OFD packet to send [07:20:20]OFD Sender: No OFD packet to send [07:20:25]OFD Sender: No OFD packet to send [07:20:30]OFD Sender: No OFD packet to send [07:20:35]OFD Sender: No OFD packet to send [07:20:40]OFD Sender: No OFD packet to send [07:20:45]OFD Sender: No OFD packet to send [07:20:50]OFD Sender: No OFD packet to send [07:20:55]OFD Sender: No OFD packet to send [07:21:00]OFD Sender: No OFD packet to send [07:21:05]OFD Sender: No OFD packet to send [07:21:10]OFD Sender: No OFD packet to send [07:21:15]OFD Sender: No OFD packet to send [07:21:20]OFD Sender: No OFD packet to send [07:21:25]OFD Sender: No OFD packet to send [07:21:30]OFD Sender: No OFD packet to send [07:21:35]OFD Sender: No OFD packet to send [07:21:40]OFD Sender: No OFD packet to send [07:21:45]OFD Sender: No OFD packet to send [07:21:50]OFD Sender: No OFD packet to send [07:21:55]OFD Sender: No OFD packet to send [07:22:00]OFD Sender: No OFD packet to send [07:22:05]OFD Sender: No OFD packet to send [07:22:10]OFD Sender: No OFD packet to send [07:22:15]OFD Sender: No OFD packet to send [07:22:20]OFD Sender: No OFD packet to send [07:22:25]OFD Sender: No OFD packet to send [07:22:30]OFD Sender: No OFD packet to send [07:22:35]OFD Sender: No OFD packet to send [07:22:40]OFD Sender: No OFD packet to send [07:22:45]OFD Sender: No OFD packet to send [07:22:50]OFD Sender: No OFD packet to send [07:22:55]OFD Sender: No OFD packet to send [07:23:00]OFD Sender: No OFD packet to send [07:23:05]OFD Sender: No OFD packet to send [07:23:10]OFD Sender: No OFD packet to send [07:23:15]OFD Sender: No OFD packet to send [07:23:20]OFD Sender: No OFD packet to send [07:23:25]OFD Sender: No OFD packet to send [07:23:30]OFD Sender: No OFD packet to send [07:23:35]OFD Sender: No OFD packet to send [07:23:40]OFD Sender: No OFD packet to send [07:23:45]OFD Sender: No OFD packet to send [07:23:50]OFD Sender: No OFD packet to send [07:23:55]OFD Sender: No OFD packet to send [07:24:00]OFD Sender: No OFD packet to send [07:24:05]OFD Sender: No OFD packet to send [07:24:10]OFD Sender: No OFD packet to send [07:24:15]OFD Sender: No OFD packet to send [07:24:20]OFD Sender: No OFD packet to send [07:24:25]OFD Sender: No OFD packet to send [07:24:30]OFD Sender: No OFD packet to send [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:06]accept exits with 7 [07:25:06]New connection [07:25:06]New thread 3066785124 created [07:25:06]Thread 3066928484 joined [07:25:06]Waiting for new connection... [07:25:06] Sock 7.Parse request [07:25:06]Sock 7.Check first char [07:25:06]Sock 7.First char is OK [07:25:06]request: POST /json_proto HTTP/1.0 [07:25:06]Method: POST [07:25:06]URL: /json_proto [07:25:06]Method is POST - this is cgi request [07:25:06]url: /json_proto [07:25:06]query_string will be loaded in cgi processing [07:25:06]execute_cgi json_proto POST (null) [07:25:06]execute_cgi path=json_proto method=POST [07:25:06]POST find Content-Length [07:25:06]Host: 172.17.33.3:8080 [07:25:06]Content-Length: 678 [07:25:06]Content-Type: application/json [07:25:06] [07:25:06]POST finish read [07:25:06]Found Content-Length = 678 [07:25:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347491", "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 }]} ], "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" ] } } [07:25:06]execute_script... [07:25: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)347491", "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 }]} ], "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" ] } } [07:25:06]POST & json_proto [07:25:06]process_json_proto [07:25:06]json parsed OK: [07:25:06]protocol is kg_v1.0 [07:25:06]action value=close_receipt [07:25:06]process_action close_receipt [07:25:06]cmd_close_receipt [07:25:06]MH_GetDate [07:25:06]Write to MH i2c: F0 00 00 8B 79 F3 [07:25:06]Write i2c OK [07:25:06]MH_I2C_Read... [07:25:06]Read from MH i2c: F0 [07:25:06]MH_I2C_Read... [07:25:06]Read from MH i2c: F0 09 00 [07:25:06]MH_I2C_Read... [07:25:06]Read from MH i2c: F0 09 00 8B 79 00 DB 84 1B 66 23 5B 8F 65 4E [07:25:06]GetLastDocTimeStamp 1713079031 [07:25:06]current date 1713079515 [07:25:06]FM_GetShiftState [07:25:06]SAM_PROTO_GetShiftState [07:25:06]wFMCommunicate request_size=4 [07:25:06]MH_SAM_APDU [07:25:06]CAPDU: 80 13 01 00 [07:25:06]Write to MH i2c: E2 08 00 8C 79 80 13 01 00 00 00 00 00 82 [07:25:06]Write i2c OK [07:25:06]MH_I2C_Read... [07:25:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:25:06]Read from MH i2c: E2 [07:25:06]MH_I2C_Read... [07:25:06]Read from MH i2c: E2 0E 00 [07:25:06]MH_I2C_Read... [07:25:06]Read from MH i2c: E2 0E 00 8C 79 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 2E [07:25:06]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [07:25:06]wFMCommunicate OK [07:25:06]SAM_PROTO_GetShiftState done [07:25:06]FM_GetShiftState done [07:25:06]opened in 1713053951 [07:25:06]opened+sec_in_day 1713140351 [07:25:06]quantity*price = 70022 [07:25:06]sum+1 = 70024 [07:25:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.36 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 33 14.04.2024 07:25 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29123 ФПД: 212949830866099 1/tax-web-control/client/api/v1/ticket?date=20240414T072515&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29123&fm=212949830866099&tin=02508201610067®Number=0000138879044617&sum=70000 [07:25:08]StoreToDocumentArchive [07:25:08]shift 116 fd 29123 [07:25:08]save to /storage/0116/doc_00029123 [07:25:08]save last doc name /storage/0116/doc_00029123 to /storage/kkm_last_doc_name [07:25:08]save OK [07:25:08]Clear old archive folders... [07:25:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:25:08]tlvbuf is 012F3D80 [07:25:08]SAM_PROTO_ClearQueue [07:25:08]wFMCommunicate request_size=4 [07:25:08]MH_SAM_APDU [07:25:08]CAPDU: 80 09 00 00 [07:25:08]Write to MH i2c: E2 08 00 99 79 80 09 00 00 00 00 00 00 84 [07:25:08]Write i2c OK [07:25:08]MH_I2C_Read... [07:25:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:25:08]Read from MH i2c: E2 [07:25:08]MH_I2C_Read... [07:25:08]Read from MH i2c: E2 03 00 [07:25:08]MH_I2C_Read... [07:25:08]Read from MH i2c: E2 03 00 99 79 00 90 00 86 [07:25:08]RAPDU: 90 00 [07:25:08]wFMCommunicate OK [07:25:08]SAM_PROTO_ClearQueue done [07:25:08]KKMCreateOFDPacket [07:25:08]OFDProtocolAddRootSTLVToBuf [07:25:08]FM_MakeSignedData [07:25:08]FM_MakeSignedData [07:25:08]SAM_PROTO_SignData [07:25:08]wFMCommunicate request_size=4 [07:25:08]MH_SAM_APDU [07:25:08]CAPDU: 80 0D 01 02 [07:25:08]Write to MH i2c: E2 08 00 9A 79 80 0D 01 02 00 00 00 00 8C [07:25:08]Write i2c OK [07:25:08]MH_I2C_Read... [07:25:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:25:08]Read from MH i2c: E2 [07:25:08]MH_I2C_Read... [07:25:08]Read from MH i2c: E2 03 00 [07:25:08]MH_I2C_Read... [07:25:08]Read from MH i2c: E2 03 00 9A 79 00 90 00 87 [07:25:08]RAPDU: 90 00 [07:25:08]wFMCommunicate OK [07:25:08]wFMCommunicate request_size=255 [07:25:08]MH_SAM_APDU [07:25: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 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 21 00 00 00 F4 03 04 00 DB 84 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C3 71 00 00 35 04 06 00 C1 [07:25:08]Write to MH i2c: E2 02 01 9B 79 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 21 00 00 00 F4 03 04 00 DB 84 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C3 71 00 00 35 04 06 00 C1 00 00 3C [07:25:08]Write i2c OK [07:25:08]MH_I2C_Read... [07:25:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:25:08]Read from MH i2c: E2 [07:25:08]MH_I2C_Read... [07:25:08]Read from MH i2c: E2 03 00 [07:25:08]MH_I2C_Read... [07:25:08]Read from MH i2c: E2 03 00 9B 79 00 90 00 88 [07:25:08]RAPDU: 90 00 [07:25:08]wFMCommunicate OK [07:25:08]wFMCommunicate request_size=10 [07:25:08]MH_SAM_APDU [07:25:08]CAPDU: 80 0D 02 02 05 AD 3F 06 14 B3 [07:25:08]Write to MH i2c: E2 0D 00 9C 79 80 0D 02 02 05 00 AD 3F 06 14 B3 00 00 52 [07:25:08]Write i2c OK [07:25:08]MH_I2C_Read... [07:25:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:25:08]Read from MH i2c: E2 [07:25:08]MH_I2C_Read... [07:25:08]Read from MH i2c: E2 03 00 [07:25:08]MH_I2C_Read... [07:25:08]Read from MH i2c: E2 03 00 9C 79 00 90 00 89 [07:25:08]RAPDU: 90 00 [07:25:08]wFMCommunicate OK [07:25:08]wFMCommunicate request_size=4 [07:25:08]MH_SAM_APDU [07:25:08]CAPDU: 80 0D 03 02 [07:25:08]Write to MH i2c: E2 08 00 9D 79 80 0D 03 02 00 00 00 00 91 [07:25:08]Write i2c OK [07:25:08]MH_I2C_Read... [07:25:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:25:08]Read from MH i2c: E2 [07:25:08]MH_I2C_Read... [07:25:08]Read from MH i2c: E2 0B 00 [07:25:08]MH_I2C_Read... [07:25:08]Read from MH i2c: E2 0B 00 9D 79 00 43 7E 19 67 08 E6 D4 23 90 00 B8 [07:25:08]RAPDU: 43 7E 19 67 08 E6 D4 23 90 00 [07:25:08]wFMCommunicate OK [07:25:08]SAM_PROTO_SignData done [07:25:08]FM_MakeSignedData done [07:25:08]CreateOFDProtocolMessage [07:25:08]wFMCommunicate request_size=4 [07:25:08]MH_SAM_APDU [07:25:08]CAPDU: 80 11 00 00 [07:25:08]Write to MH i2c: E2 08 00 9E 79 80 11 00 00 00 00 00 00 91 [07:25:08]Write i2c OK [07:25:08]MH_I2C_Read... [07:25:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:25:08]Read from MH i2c: E2 [07:25:08]MH_I2C_Read... [07:25:08]Read from MH i2c: E2 17 00 [07:25:08]MH_I2C_Read... [07:25:08]Read from MH i2c: E2 17 00 9E 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E0 [07:25:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:25:08]wFMCommunicate OK [07:25:08]CreateOFDProtocolMessage done [07:25:08]OFDSenderStorePacket 29123 [07:25:08]StoreOFDPacket docnum=29123 [07:25:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 69 60 07 01 2C 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 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 21 00 00 00 F4 03 04 00 DB 84 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C3 71 00 00 35 04 06 00 C1 AD 3F 06 14 B3 43 7E 19 67 08 E6 D4 23 [07:25:08]CheckFolder [07:25:08]dirname=/storage/ofd_packets [07:25:08]CheckFolder done [07:25:08]ProducePacketName [07:25:08]name=ofd_packets/00029123 [07:25:08]NVStorageSaveData ofd_packets/00029123 [07:25:08]File name is /storage/ofd_packets/00029123 [07:25:08]Write 301 bytes [07:25:08]NVStorageSaveData done [07:25:08]OFDSenderStorePacket done [07:25:08]KKMCreateOFDPacket done [07:25:08]NVStorageSaveData kkm_last_timestamp [07:25:08]File name is /storage/kkm_last_timestamp [07:25:08]Write 4 bytes [07:25:08]NVStorageSaveData done [07:25:08]ExternCall_PrintAddStr [07:25:08]wPrintStart [07:25:08]Write to MH i2c: 01 00 00 9F 79 18 [07:25:08]Write i2c OK [07:25:08]MH_I2C_Read... [07:25:08]Read from MH i2c: 01 [07:25:08]MH_I2C_Read... [07:25:08]Read from MH i2c: 01 07 00 [07:25:08]MH_I2C_Read... [07:25:08]Read from MH i2c: 01 07 00 9F 79 00 00 00 00 00 FF 0F 2D [07:25:08]RasterBufferAndPrint [07:25:08]line Счет N : (1)347491 [07:25:08]line ИНН: 02508201610067 [07:25:08]line Контрольно-Кассовый Чек [07:25:08]line ПРОДАЖА [07:25:08]line ТРК (МРК, ГНК) : 32 [07:25:08]line Товар: 2710124130 [07:25:08]line Аи-92-К-5 [07:25:08]line 10.890 * 64.30 [07:25:08]line = 700.23 [07:25:08]line НДС 12% НСП 1% [07:25:08]line > о реализуемом товаре [07:25:08]line ОКРУГЛЕНИЕ: -0.23 [07:25:08]line ИТОГО: 700.00 [07:25:08]line Внесено: 700.00 [07:25:08]line СДАЧА: 0.00 [07:25:08]line НСП 1% : 6.20 [07:25:08]line НДС 12% : 74.36 [07:25:08]line Наличными: 700.00 [07:25:08]line Безнал.: 0.00 [07:25:08]line Место: АЗС № 108 "Партнер Нефть" [07:25:08]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [07:25:08]line СНО: Общий режим [07:25:08]line Чек 33 14.04.2024 07:25 [07:25:08]line Смена: 116 ФФД: 1.0 [07:25:08]line ЗНМ: 0300000027 [07:25:08]line РНМ: 0000138879044617 [07:25:08]line Версия ККМ: 001 [07:25:08]line ФМ: 0000000000963154 [07:25:08]line ФД: 29123 [07:25:08]line ФПД: 212949830866099 [07:25:08]line 1/tax-web-control/client/api/v1/ticket?date=20240414T072515&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29123&fm=212949830866099&tin=02508201610067®Number=0000138879044617&sum=70000 [07:25:08]OFD Sender: Processing packet 29123 [packets to send 8, broken 7] [07:25:08]ProducePacketName [07:25:08]name=ofd_packets/00029123 [07:25:08]OFD Sender: To server: pG, [07:25:08]CommunicateWithHost lk.salyk.kg:30040 [07:25:08]ConnectInit lk.salyk.kg [07:25:08]written 0, free lines is 4095 [07:25:09]Connected sock=10 [07:25:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 69 60 07 01 2C 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 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 21 00 00 00 F4 03 04 00 DB 84 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C3 71 00 00 35 04 06 00 C1 AD 3F 06 14 B3 43 7E 19 67 08 E6 D4 23 [07:25:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 86 67 47 00 7B 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 39 36 33 31 35 34 10 04 04 00 C3 71 00 00 F4 03 04 00 80 2F 1B 66 B6 04 01 00 00 6D 1C C0 3A 19 C7 6C 1B [07:25:09]CommunicateWithHost err = 0 [07:25:09]CheckOFDResponse [07:25:09]1017 (14) - 77093643461234 [07:25:09]1041 (16) - 0000000000963154 [07:25:09]1040 (4) - 29123 [07:25:09]1012 (4) - 14.04.2024 01:21 [07:25:09]1206 (1) - 0 [07:25:09]OFD Sender: Remove packet 29123 [07:25:09]ProducePacketName [07:25:09]name=ofd_packets/00029123 [07:25:09]NVStorageDeleteData [07:25:09]Write to MH i2c: 01 00 00 C9 79 42 [07:25:09]Write i2c OK [07:25:09]MH_I2C_Read... [07:25:09]Read from MH i2c: 01 [07:25:09]MH_I2C_Read... [07:25:09]Read from MH i2c: 01 07 00 [07:25:09]MH_I2C_Read... [07:25:09]Read from MH i2c: 01 07 00 C9 79 00 00 00 00 00 CE 0C 23 [07:25:09]RasterBufferAndPrint [07:25:09]line [07:25:09]line [07:25:09]line [07:25:09]line [07:25:09]line [07:25:09]written 0, free lines is 3284 [07:25:09]MH_Cut [07:25:09]Write to MH i2c: D1 01 00 D0 79 01 1B [07:25:09]Write i2c OK [07:25:09]MH_I2C_Read... [07:25:09]Read from MH i2c: D1 [07:25:09]MH_I2C_Read... [07:25:09]Read from MH i2c: D1 01 00 [07:25:09]MH_I2C_Read... [07:25:09]Read from MH i2c: D1 01 00 D0 79 00 1A [07:25:09]Write to MH i2c: 01 00 00 D1 79 4A [07:25:09]Write i2c OK [07:25:09]MH_I2C_Read... [07:25:09]OFD Sender: No OFD packet to send [07:25:10]*** Cut start [07:25:10]*** Partial cut [07:25:10]*** CUTSNS_PIN = 1 [07:25:10]*** CUTSNS_PIN = 0 [07:25:10]*** Brake cut motor [07:25:10]Read from MH i2c: 01 [07:25:10]MH_I2C_Read... [07:25:10]*** Stop cut motor [07:25:10]Read from MH i2c: 01 07 00 [07:25:10]MH_I2C_Read... [07:25:10]*** Cut end [07:25:10]Read from MH i2c: 01 07 00 D1 79 00 00 00 00 00 FF 0F 5F [07:25:10]process_action close_receipt done [07:25:10]requested_data is exist [07:25:10]produce_requested_data [07:25:10]requested_item fm.sn is exist - process it [07:25:10]wFMCommunicate request_size=4 [07:25:10]MH_SAM_APDU [07:25:10]CAPDU: 80 11 00 00 [07:25:10]Write to MH i2c: E2 08 00 D2 79 80 11 00 00 00 00 00 00 C5 [07:25:10]Write i2c OK [07:25:10]MH_I2C_Read... [07:25:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:25:10]Read from MH i2c: E2 [07:25:10]MH_I2C_Read... [07:25:10]Read from MH i2c: E2 17 00 [07:25:10]MH_I2C_Read... [07:25:10]Read from MH i2c: E2 17 00 D2 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 14 [07:25:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:25:10]wFMCommunicate OK [07:25:10]requested_item fd.num is exist - process it [07:25:10]SAM_PROTO_GetFieldsCounters [07:25:10]wFMCommunicate request_size=4 [07:25:10]MH_SAM_APDU [07:25:10]CAPDU: 80 13 00 00 [07:25:10]Write to MH i2c: E2 08 00 D3 79 80 13 00 00 00 00 00 00 C8 [07:25:10]Write i2c OK [07:25:10]MH_I2C_Read... [07:25:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:25:11]Read from MH i2c: E2 [07:25:11]MH_I2C_Read... [07:25:11]Read from MH i2c: E2 62 00 [07:25:11]MH_I2C_Read... [07:25:11]Read from MH i2c: E2 62 00 D3 79 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C3 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 11 [07:25:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C3 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:25:11]wFMCommunicate OK [07:25:11]SAM_PROTO_GetFieldsCounters done [07:25:11]requested_item shift.num is exist - process it [07:25:11]requested_item shift.opened is exist - process it [07:25:11]req_shift_opened [07:25:11]FM_GetShiftState [07:25:11]SAM_PROTO_GetShiftState [07:25:11]wFMCommunicate request_size=4 [07:25:11]MH_SAM_APDU [07:25:11]CAPDU: 80 13 01 00 [07:25:11]Write to MH i2c: E2 08 00 D4 79 80 13 01 00 00 00 00 00 CA [07:25:11]Write i2c OK [07:25:11]MH_I2C_Read... [07:25:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:25:11]Read from MH i2c: E2 [07:25:11]MH_I2C_Read... [07:25:11]Read from MH i2c: E2 0E 00 [07:25:11]MH_I2C_Read... [07:25:11]Read from MH i2c: E2 0E 00 D4 79 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 76 [07:25:11]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [07:25:11]wFMCommunicate OK [07:25:11]SAM_PROTO_GetShiftState done [07:25:11]FM_GetShiftState done [07:25:11]req_shift_opened done [07:25:11]requested_item shift.open_date is exist - process it [07:25:11]req_shift_open_date [07:25:11]req_shift_open_date done [07:25:11]produce_requested_data done [07:25:11]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29123,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [07:25:11]process_action_free close_receipt [07:25:11]json_value_free [07:25:11]json_value_free done [07:25:11]process_json_proto returns [07:25:11]Send response to host [07:25:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29123,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [07:25:11]free response buf [07:25:11]execute_script done [07:25:11]execute_script returns [07:25:11]free content buf [07:25:11]Sock 7.Close socket [07:25:11]Sock 7.Thread stoped [07:25:14]OFD Sender: No OFD packet to send [07:25:19]OFD Sender: No OFD packet to send [07:25:24]OFD Sender: No OFD packet to send [07:25:29]OFD Sender: No OFD packet to send [07:25:34]OFD Sender: No OFD packet to send [07:25:39]OFD Sender: No OFD packet to send [07:25:44]OFD Sender: No OFD packet to send [07:25:49]OFD Sender: No OFD packet to send [07:25:54]OFD Sender: No OFD packet to send [07:25:59]OFD Sender: No OFD packet to send [07:26:04]OFD Sender: No OFD packet to send [07:26:09]OFD Sender: No OFD packet to send [07:26:14]OFD Sender: No OFD packet to send [07:26:17]accept exits with 9 [07:26:17]New connection [07:26:17]New thread 3066928484 created [07:26:17]Thread 3066785124 joined [07:26:17]Waiting for new connection... [07:26:17] Sock 9.Parse request [07:26:17]Sock 9.Check first char [07:26:17]Sock 9.First char is OK [07:26:17]request: POST /json_proto HTTP/1.0 [07:26:17]Method: POST [07:26:17]URL: /json_proto [07:26:17]Method is POST - this is cgi request [07:26:17]url: /json_proto [07:26:17]query_string will be loaded in cgi processing [07:26:17]execute_cgi json_proto POST (null) [07:26:17]execute_cgi path=json_proto method=POST [07:26:17]POST find Content-Length [07:26:17]Host: 172.17.33.3:8080 [07:26:17]Content-Length: 674 [07:26:17]Content-Type: application/json [07:26:17] [07:26:17]POST finish read [07:26:17]Found Content-Length = 674 [07:26:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347492", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.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" ] } } [07:26:17]execute_script... [07:26: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)347492", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.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" ] } } [07:26:17]POST & json_proto [07:26:17]process_json_proto [07:26:17]json parsed OK: [07:26:17]protocol is kg_v1.0 [07:26:17]action value=close_receipt [07:26:17]process_action close_receipt [07:26:17]cmd_close_receipt [07:26:17]MH_GetDate [07:26:17]Write to MH i2c: F0 00 00 D5 79 3D [07:26:17]Write i2c OK [07:26:17]MH_I2C_Read... [07:26:17]Read from MH i2c: F0 [07:26:17]MH_I2C_Read... [07:26:17]Read from MH i2c: F0 09 00 [07:26:17]MH_I2C_Read... [07:26:17]Read from MH i2c: F0 09 00 D5 79 00 21 85 1B 66 23 5B 8F 65 DF [07:26:17]GetLastDocTimeStamp 1713079515 [07:26:17]current date 1713079585 [07:26:17]FM_GetShiftState [07:26:17]SAM_PROTO_GetShiftState [07:26:17]wFMCommunicate request_size=4 [07:26:17]MH_SAM_APDU [07:26:17]CAPDU: 80 13 01 00 [07:26:17]Write to MH i2c: E2 08 00 D6 79 80 13 01 00 00 00 00 00 CC [07:26:17]Write i2c OK [07:26:17]MH_I2C_Read... [07:26:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:26:17]Read from MH i2c: E2 [07:26:17]MH_I2C_Read... [07:26:17]Read from MH i2c: E2 0E 00 [07:26:17]MH_I2C_Read... [07:26:17]Read from MH i2c: E2 0E 00 D6 79 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 78 [07:26:17]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [07:26:17]wFMCommunicate OK [07:26:17]SAM_PROTO_GetShiftState done [07:26:17]FM_GetShiftState done [07:26:17]opened in 1713053951 [07:26:17]opened+sec_in_day 1713140351 [07:26:17]quantity*price = 50028 [07:26:17]sum+1 = 50029 [07:26:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 34 14.04.2024 07:26 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29124 ФПД: 271288856973824 1/tax-web-control/client/api/v1/ticket?date=20240414T072625&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29124&fm=271288856973824&tin=02508201610067®Number=0000138879044617&sum=50000 [07:26:18]StoreToDocumentArchive [07:26:18]shift 116 fd 29124 [07:26:18]save to /storage/0116/doc_00029124 [07:26:18]save last doc name /storage/0116/doc_00029124 to /storage/kkm_last_doc_name [07:26:18]save OK [07:26:18]Clear old archive folders... [07:26:18]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:26:18]tlvbuf is 011EB090 [07:26:18]SAM_PROTO_ClearQueue [07:26:18]wFMCommunicate request_size=4 [07:26:18]MH_SAM_APDU [07:26:18]CAPDU: 80 09 00 00 [07:26:18]Write to MH i2c: E2 08 00 E3 79 80 09 00 00 00 00 00 00 CE [07:26:18]Write i2c OK [07:26:18]MH_I2C_Read... [07:26:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:26:18]Read from MH i2c: E2 [07:26:18]MH_I2C_Read... [07:26:18]Read from MH i2c: E2 03 00 [07:26:18]MH_I2C_Read... [07:26:18]Read from MH i2c: E2 03 00 E3 79 00 90 00 D0 [07:26:18]RAPDU: 90 00 [07:26:18]wFMCommunicate OK [07:26:18]SAM_PROTO_ClearQueue done [07:26:18]KKMCreateOFDPacket [07:26:18]OFDProtocolAddRootSTLVToBuf [07:26:18]FM_MakeSignedData [07:26:18]FM_MakeSignedData [07:26:18]SAM_PROTO_SignData [07:26:18]wFMCommunicate request_size=4 [07:26:18]MH_SAM_APDU [07:26:18]CAPDU: 80 0D 01 02 [07:26:18]Write to MH i2c: E2 08 00 E4 79 80 0D 01 02 00 00 00 00 D6 [07:26:18]Write i2c OK [07:26:18]MH_I2C_Read... [07:26:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:26:18]Read from MH i2c: E2 [07:26:18]MH_I2C_Read... [07:26:18]Read from MH i2c: E2 03 00 [07:26:18]MH_I2C_Read... [07:26:18]Read from MH i2c: E2 03 00 E4 79 00 90 00 D1 [07:26:18]RAPDU: 90 00 [07:26:18]wFMCommunicate OK [07:26:18]wFMCommunicate request_size=255 [07:26:18]MH_SAM_APDU [07:26:18]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 22 00 00 00 F4 03 04 00 21 85 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C4 71 00 00 35 04 06 00 F6 BC 5B F3 [07:26:18]Write to MH i2c: E2 02 01 E5 79 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 22 00 00 00 F4 03 04 00 21 85 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C4 71 00 00 35 04 06 00 F6 BC 5B F3 00 00 A4 [07:26:18]Write i2c OK [07:26:18]MH_I2C_Read... [07:26:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:26:18]Read from MH i2c: E2 [07:26:18]MH_I2C_Read... [07:26:18]Read from MH i2c: E2 03 00 [07:26:18]MH_I2C_Read... [07:26:18]Read from MH i2c: E2 03 00 E5 79 00 90 00 D2 [07:26:18]RAPDU: 90 00 [07:26:18]wFMCommunicate OK [07:26:18]wFMCommunicate request_size=7 [07:26:18]MH_SAM_APDU [07:26:18]CAPDU: 80 0D 02 02 02 92 00 [07:26:18]Write to MH i2c: E2 0A 00 E6 79 80 0D 02 02 02 00 92 00 00 00 6F [07:26:18]Write i2c OK [07:26:18]MH_I2C_Read... [07:26:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:26:18]Read from MH i2c: E2 [07:26:18]MH_I2C_Read... [07:26:18]Read from MH i2c: E2 03 00 [07:26:18]MH_I2C_Read... [07:26:18]Read from MH i2c: E2 03 00 E6 79 00 90 00 D3 [07:26:18]RAPDU: 90 00 [07:26:18]wFMCommunicate OK [07:26:18]wFMCommunicate request_size=4 [07:26:18]MH_SAM_APDU [07:26:18]CAPDU: 80 0D 03 02 [07:26:18]Write to MH i2c: E2 08 00 E7 79 80 0D 03 02 00 00 00 00 DB [07:26:18]Write i2c OK [07:26:18]MH_I2C_Read... [07:26:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:26:18]Read from MH i2c: E2 [07:26:18]MH_I2C_Read... [07:26:18]Read from MH i2c: E2 0B 00 [07:26:18]MH_I2C_Read... [07:26:18]Read from MH i2c: E2 0B 00 E7 79 00 52 B3 6B A1 52 F7 76 6A 90 00 16 [07:26:18]RAPDU: 52 B3 6B A1 52 F7 76 6A 90 00 [07:26:18]wFMCommunicate OK [07:26:18]SAM_PROTO_SignData done [07:26:18]FM_MakeSignedData done [07:26:18]CreateOFDProtocolMessage [07:26:18]wFMCommunicate request_size=4 [07:26:18]MH_SAM_APDU [07:26:18]CAPDU: 80 11 00 00 [07:26:18]Write to MH i2c: E2 08 00 E8 79 80 11 00 00 00 00 00 00 DB [07:26:18]Write i2c OK [07:26:18]MH_I2C_Read... [07:26:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:26:18]Read from MH i2c: E2 [07:26:18]MH_I2C_Read... [07:26:18]Read from MH i2c: E2 17 00 [07:26:18]MH_I2C_Read... [07:26:18]Read from MH i2c: E2 17 00 E8 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 2A [07:26:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:26:18]wFMCommunicate OK [07:26:18]CreateOFDProtocolMessage done [07:26:18]OFDSenderStorePacket 29124 [07:26:18]StoreOFDPacket docnum=29124 [07:26:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 F2 D3 04 01 4F 8D 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 22 00 00 00 F4 03 04 00 21 85 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C4 71 00 00 35 04 06 00 F6 BC 5B F3 92 00 52 B3 6B A1 52 F7 76 6A [07:26:18]CheckFolder [07:26:18]dirname=/storage/ofd_packets [07:26:18]CheckFolder done [07:26:18]ProducePacketName [07:26:18]name=ofd_packets/00029124 [07:26:18]NVStorageSaveData ofd_packets/00029124 [07:26:18]File name is /storage/ofd_packets/00029124 [07:26:18]Write 298 bytes [07:26:18]NVStorageSaveData done [07:26:18]OFDSenderStorePacket done [07:26:18]KKMCreateOFDPacket done [07:26:18]NVStorageSaveData kkm_last_timestamp [07:26:18]File name is /storage/kkm_last_timestamp [07:26:18]Write 4 bytes [07:26:18]NVStorageSaveData done [07:26:18]ExternCall_PrintAddStr [07:26:18]wPrintStart [07:26:18]Write to MH i2c: 01 00 00 E9 79 62 [07:26:18]Write i2c OK [07:26:18]MH_I2C_Read... [07:26:18]Read from MH i2c: 01 [07:26:18]MH_I2C_Read... [07:26:18]Read from MH i2c: 01 07 00 [07:26:18]MH_I2C_Read... [07:26:18]Read from MH i2c: 01 07 00 E9 79 00 00 00 00 00 FF 0F 77 [07:26:18]RasterBufferAndPrint [07:26:18]line Счет N : (1)347492 [07:26:18]line ИНН: 02508201610067 [07:26:18]line Контрольно-Кассовый Чек [07:26:18]line ПРОДАЖА [07:26:18]line ТРК (МРК, ГНК) : 21 [07:26:18]line Товар: 2710194210 [07:26:18]line ДТ-К-5 [07:26:18]line 6.910 * 72.40 [07:26:18]line = 500.28 [07:26:18]line НДС 12% НСП 1% [07:26:18]line > о реализуемом товаре [07:26:18]line ОКРУГЛЕНИЕ: -0.28 [07:26:18]line ИТОГО: 500.00 [07:26:18]line Внесено: 500.00 [07:26:18]line СДАЧА: 0.00 [07:26:18]line НСП 1% : 4.43 [07:26:18]line НДС 12% : 53.13 [07:26:18]line Наличными: 500.00 [07:26:18]line Безнал.: 0.00 [07:26:18]line Место: АЗС № 108 "Партнер Нефть" [07:26:18]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [07:26:18]line СНО: Общий режим [07:26:18]line Чек 34 14.04.2024 07:26 [07:26:18]line Смена: 116 ФФД: 1.0 [07:26:18]line ЗНМ: 0300000027 [07:26:18]line РНМ: 0000138879044617 [07:26:18]line Версия ККМ: 001 [07:26:18]line ФМ: 0000000000963154 [07:26:18]line ФД: 29124 [07:26:18]line ФПД: 271288856973824 [07:26:19]line 1/tax-web-control/client/api/v1/ticket?date=20240414T072625&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29124&fm=271288856973824&tin=02508201610067®Number=0000138879044617&sum=50000 [07:26:19]OFD Sender: Processing packet 29124 [packets to send 8, broken 7] [07:26:19]ProducePacketName [07:26:19]name=ofd_packets/00029124 [07:26:19]OFD Sender: To server: pG, [07:26:19]CommunicateWithHost lk.salyk.kg:30040 [07:26:19]ConnectInit lk.salyk.kg [07:26:19]written 0, free lines is 4095 [07:26:19]Connected sock=10 [07:26:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 F2 D3 04 01 4F 8D 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 22 00 00 00 F4 03 04 00 21 85 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C4 71 00 00 35 04 06 00 F6 BC 5B F3 92 00 52 B3 6B A1 52 F7 76 6A [07:26:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 D7 42 47 00 CA 27 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C4 71 00 00 F4 03 04 00 C6 2F 1B 66 B6 04 01 00 00 3C 8C 20 76 49 99 CE 2A [07:26:19]CommunicateWithHost err = 0 [07:26:19]CheckOFDResponse [07:26:19]1017 (14) - 77093643461234 [07:26:19]1041 (16) - 0000000000963154 [07:26:19]1040 (4) - 29124 [07:26:19]1012 (4) - 14.04.2024 01:22 [07:26:19]1206 (1) - 0 [07:26:19]OFD Sender: Remove packet 29124 [07:26:19]ProducePacketName [07:26:19]name=ofd_packets/00029124 [07:26:19]NVStorageDeleteData [07:26:19]Write to MH i2c: 01 00 00 13 7A 8D [07:26:19]Write i2c OK [07:26:19]MH_I2C_Read... [07:26:19]Read from MH i2c: 01 [07:26:19]MH_I2C_Read... [07:26:19]Read from MH i2c: 01 07 00 [07:26:19]MH_I2C_Read... [07:26:19]Read from MH i2c: 01 07 00 13 7A 00 00 00 00 00 C0 0C 60 [07:26:19]RasterBufferAndPrint [07:26:19]line [07:26:19]line [07:26:19]line [07:26:19]line [07:26:19]line [07:26:19]written 0, free lines is 3269 [07:26:19]MH_Cut [07:26:19]Write to MH i2c: D1 01 00 1A 7A 01 66 [07:26:19]Write i2c OK [07:26:19]MH_I2C_Read... [07:26:19]Read from MH i2c: D1 [07:26:19]MH_I2C_Read... [07:26:19]Read from MH i2c: D1 01 00 [07:26:19]MH_I2C_Read... [07:26:19]Read from MH i2c: D1 01 00 1A 7A 00 65 [07:26:19]Write to MH i2c: 01 00 00 1B 7A 95 [07:26:19]Write i2c OK [07:26:19]MH_I2C_Read... [07:26:19]OFD Sender: No OFD packet to send [07:26:20]*** Cut start [07:26:20]*** Partial cut [07:26:20]*** CUTSNS_PIN = 1 [07:26:20]*** CUTSNS_PIN = 0 [07:26:20]*** Brake cut motor [07:26:20]Read from MH i2c: 01 [07:26:20]MH_I2C_Read... [07:26:20]*** Stop cut motor [07:26:20]*** Cut end [07:26:20]Read from MH i2c: 01 07 00 [07:26:20]MH_I2C_Read... [07:26:20]Read from MH i2c: 01 07 00 1B 7A 00 00 00 00 00 FF 0F AA [07:26:20]process_action close_receipt done [07:26:20]requested_data is exist [07:26:20]produce_requested_data [07:26:20]requested_item fm.sn is exist - process it [07:26:20]wFMCommunicate request_size=4 [07:26:20]MH_SAM_APDU [07:26:20]CAPDU: 80 11 00 00 [07:26:20]Write to MH i2c: E2 08 00 1C 7A 80 11 00 00 00 00 00 00 10 [07:26:20]Write i2c OK [07:26:20]MH_I2C_Read... [07:26:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:26:21]Read from MH i2c: E2 [07:26:21]MH_I2C_Read... [07:26:21]Read from MH i2c: E2 17 00 [07:26:21]MH_I2C_Read... [07:26:21]Read from MH i2c: E2 17 00 1C 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 5F [07:26:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:26:21]wFMCommunicate OK [07:26:21]requested_item fd.num is exist - process it [07:26:21]SAM_PROTO_GetFieldsCounters [07:26:21]wFMCommunicate request_size=4 [07:26:21]MH_SAM_APDU [07:26:21]CAPDU: 80 13 00 00 [07:26:21]Write to MH i2c: E2 08 00 1D 7A 80 13 00 00 00 00 00 00 13 [07:26:21]Write i2c OK [07:26:21]MH_I2C_Read... [07:26:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:26:21]Read from MH i2c: E2 [07:26:21]MH_I2C_Read... [07:26:21]Read from MH i2c: E2 62 00 [07:26:21]MH_I2C_Read... [07:26:21]Read from MH i2c: E2 62 00 1D 7A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C4 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 60 [07:26:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C4 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:26:21]wFMCommunicate OK [07:26:21]SAM_PROTO_GetFieldsCounters done [07:26:21]requested_item shift.num is exist - process it [07:26:21]requested_item shift.opened is exist - process it [07:26:21]req_shift_opened [07:26:21]FM_GetShiftState [07:26:21]SAM_PROTO_GetShiftState [07:26:21]wFMCommunicate request_size=4 [07:26:21]MH_SAM_APDU [07:26:21]CAPDU: 80 13 01 00 [07:26:21]Write to MH i2c: E2 08 00 1E 7A 80 13 01 00 00 00 00 00 15 [07:26:21]Write i2c OK [07:26:21]MH_I2C_Read... [07:26:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:26:21]Read from MH i2c: E2 [07:26:21]MH_I2C_Read... [07:26:21]Read from MH i2c: E2 0E 00 [07:26:21]MH_I2C_Read... [07:26:21]Read from MH i2c: E2 0E 00 1E 7A 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 C1 [07:26:21]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [07:26:21]wFMCommunicate OK [07:26:21]SAM_PROTO_GetShiftState done [07:26:21]FM_GetShiftState done [07:26:21]req_shift_opened done [07:26:21]requested_item shift.open_date is exist - process it [07:26:21]req_shift_open_date [07:26:21]req_shift_open_date done [07:26:21]produce_requested_data done [07:26:21]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29124,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [07:26:21]process_action_free close_receipt [07:26:21]json_value_free [07:26:21]json_value_free done [07:26:21]process_json_proto returns [07:26:21]Send response to host [07:26:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29124,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [07:26:21]free response buf [07:26:21]execute_script done [07:26:21]execute_script returns [07:26:21]free content buf [07:26:21]Sock 9.Close socket [07:26:21]Sock 9.Thread stoped [07:26:24]OFD Sender: No OFD packet to send [07:26:29]OFD Sender: No OFD packet to send [07:26:34]OFD Sender: No OFD packet to send [07:26:39]OFD Sender: No OFD packet to send [07:26:44]OFD Sender: No OFD packet to send [07:26:49]OFD Sender: No OFD packet to send [07:26:54]OFD Sender: No OFD packet to send [07:26:59]OFD Sender: No OFD packet to send [07:27:04]OFD Sender: No OFD packet to send [07:27:09]OFD Sender: No OFD packet to send [07:27:14]OFD Sender: No OFD packet to send [07:27:19]OFD Sender: No OFD packet to send [07:27:24]OFD Sender: No OFD packet to send [07:27:29]OFD Sender: No OFD packet to send [07:27:34]OFD Sender: No OFD packet to send [07:27:39]OFD Sender: No OFD packet to send [07:27:44]OFD Sender: No OFD packet to send [07:27:49]OFD Sender: No OFD packet to send [07:27:54]OFD Sender: No OFD packet to send [07:27:59]OFD Sender: No OFD packet to send [07:28:04]OFD Sender: No OFD packet to send [07:28:09]OFD Sender: No OFD packet to send [07:28:14]OFD Sender: No OFD packet to send [07:28:19]OFD Sender: No OFD packet to send [07:28:24]OFD Sender: No OFD packet to send [07:28:29]OFD Sender: No OFD packet to send [07:28:34]OFD Sender: No OFD packet to send [07:28:39]OFD Sender: No OFD packet to send [07:28:44]OFD Sender: No OFD packet to send [07:28:49]OFD Sender: No OFD packet to send [07:28:54]OFD Sender: No OFD packet to send [07:28:59]OFD Sender: No OFD packet to send [07:29:04]OFD Sender: No OFD packet to send [07:29:09]OFD Sender: No OFD packet to send [07:29:15]OFD Sender: No OFD packet to send [07:29:20]OFD Sender: No OFD packet to send [07:29:25]OFD Sender: No OFD packet to send [07:29:30]OFD Sender: No OFD packet to send [07:29:35]OFD Sender: No OFD packet to send [07:29:40]OFD Sender: No OFD packet to send [07:29:45]OFD Sender: No OFD packet to send [07:29:50]OFD Sender: No OFD packet to send [07:29:55]OFD Sender: No OFD packet to send [07:30:00]OFD Sender: No OFD packet to send [07:30:05]OFD Sender: No OFD packet to send [07:30:10]OFD Sender: No OFD packet to send [07:30:15]OFD Sender: No OFD packet to send [07:30:20]OFD Sender: No OFD packet to send [07:30:25]OFD Sender: No OFD packet to send [07:30:30]OFD Sender: No OFD packet to send [07:30:35]OFD Sender: No OFD packet to send [07:30:40]OFD Sender: No OFD packet to send [07:30:45]OFD Sender: No OFD packet to send [07:30:50]OFD Sender: No OFD packet to send [07:30:55]OFD Sender: No OFD packet to send [07:31:00]OFD Sender: No OFD packet to send [07:31:05]OFD Sender: No OFD packet to send [07:31:10]OFD Sender: No OFD packet to send [07:31:15]OFD Sender: No OFD packet to send [07:31:20]OFD Sender: No OFD packet to send [07:31:25]OFD Sender: No OFD packet to send [07:31:30]OFD Sender: No OFD packet to send [07:31:35]OFD Sender: No OFD packet to send [07:31:40]OFD Sender: No OFD packet to send [07:31:45]OFD Sender: No OFD packet to send [07:31:50]OFD Sender: No OFD packet to send [07:31:55]OFD Sender: No OFD packet to send [07:32:00]OFD Sender: No OFD packet to send [07:32:05]OFD Sender: No OFD packet to send [07:32:10]OFD Sender: No OFD packet to send [07:32:15]OFD Sender: No OFD packet to send [07:32:20]OFD Sender: No OFD packet to send [07:32:25]OFD Sender: No OFD packet to send [07:32:30]OFD Sender: No OFD packet to send [07:32:35]OFD Sender: No OFD packet to send [07:32:40]OFD Sender: No OFD packet to send [07:32:45]OFD Sender: No OFD packet to send [07:32:50]OFD Sender: No OFD packet to send [07:32:55]OFD Sender: No OFD packet to send [07:33:00]OFD Sender: No OFD packet to send [07:33:05]OFD Sender: No OFD packet to send [07:33:10]OFD Sender: No OFD packet to send [07:33:15]OFD Sender: No OFD packet to send [07:33:20]OFD Sender: No OFD packet to send [07:33:25]OFD Sender: No OFD packet to send [07:33:30]OFD Sender: No OFD packet to send [07:33:35]OFD Sender: No OFD packet to send [07:33:40]OFD Sender: No OFD packet to send [07:33:45]OFD Sender: No OFD packet to send [07:33:50]OFD Sender: No OFD packet to send [07:33:55]OFD Sender: No OFD packet to send [07:34:00]OFD Sender: No OFD packet to send [07:34:05]OFD Sender: No OFD packet to send [07:34:10]OFD Sender: No OFD packet to send [07:34:15]OFD Sender: No OFD packet to send [07:34:20]OFD Sender: No OFD packet to send [07:34:25]OFD Sender: No OFD packet to send [07:34:30]OFD Sender: No OFD packet to send [07:34:35]OFD Sender: No OFD packet to send [07:34:40]OFD Sender: No OFD packet to send [07:34:45]OFD Sender: No OFD packet to send [07:34:50]OFD Sender: No OFD packet to send [07:34:55]OFD Sender: No OFD packet to send [07:35:00]OFD Sender: No OFD packet to send [07:35:05]OFD Sender: No OFD packet to send [07:35:10]OFD Sender: No OFD packet to send [07:35:15]OFD Sender: No OFD packet to send [07:35:20]OFD Sender: No OFD packet to send [07:35:25]OFD Sender: No OFD packet to send [07:35:30]OFD Sender: No OFD packet to send [07:35:35]OFD Sender: No OFD packet to send [07:35:40]OFD Sender: No OFD packet to send [07:35:45]OFD Sender: No OFD packet to send [07:35:50]OFD Sender: No OFD packet to send [07:35:55]OFD Sender: No OFD packet to send [07:36:00]OFD Sender: No OFD packet to send [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:38]accept exits with 7 [07:40:38]New connection [07:40:38]New thread 3066785124 created [07:40:38]Thread 3066928484 joined [07:40:38]Waiting for new connection... [07:40:38] Sock 7.Parse request [07:40:38]Sock 7.Check first char [07:40:38]Sock 7.First char is OK [07:40:38]request: POST /json_proto HTTP/1.0 [07:40:38]Method: POST [07:40:38]URL: /json_proto [07:40:38]Method is POST - this is cgi request [07:40:38]url: /json_proto [07:40:38]query_string will be loaded in cgi processing [07:40:38]execute_cgi json_proto POST (null) [07:40:38]execute_cgi path=json_proto method=POST [07:40:38]POST find Content-Length [07:40:38]Host: 172.17.33.3:8080 [07:40:38]Content-Length: 840 [07:40:38]Content-Type: application/json [07:40:38] [07:40:38]POST finish read [07:40:38]Found Content-Length = 840 [07:40:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347494", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:40:38]execute_script... [07:40:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347494", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:40:38]POST & json_proto [07:40:38]process_json_proto [07:40:38]json parsed OK: [07:40:38]protocol is kg_v1.0 [07:40:38]action value=close_receipt [07:40:38]process_action close_receipt [07:40:38]cmd_close_receipt [07:40:38]MH_GetDate [07:40:38]Write to MH i2c: F0 00 00 1F 7A 88 [07:40:38]Write i2c OK [07:40:38]MH_I2C_Read... [07:40:38]Read from MH i2c: F0 [07:40:38]MH_I2C_Read... [07:40:38]Read from MH i2c: F0 09 00 [07:40:38]MH_I2C_Read... [07:40:38]Read from MH i2c: F0 09 00 1F 7A 00 7F 88 1B 66 23 5B 8F 65 8B [07:40:38]GetLastDocTimeStamp 1713079585 [07:40:38]current date 1713080447 [07:40:38]FM_GetShiftState [07:40:38]SAM_PROTO_GetShiftState [07:40:38]wFMCommunicate request_size=4 [07:40:38]MH_SAM_APDU [07:40:38]CAPDU: 80 13 01 00 [07:40:38]Write to MH i2c: E2 08 00 20 7A 80 13 01 00 00 00 00 00 17 [07:40:38]Write i2c OK [07:40:38]MH_I2C_Read... [07:40:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:40:38]Read from MH i2c: E2 [07:40:38]MH_I2C_Read... [07:40:38]Read from MH i2c: E2 0E 00 [07:40:38]MH_I2C_Read... [07:40:38]Read from MH i2c: E2 0E 00 20 7A 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 C3 [07:40:38]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [07:40:38]wFMCommunicate OK [07:40:38]SAM_PROTO_GetShiftState done [07:40:38]FM_GetShiftState done [07:40:38]opened in 1713053951 [07:40:38]opened+sec_in_day 1713140351 [07:40:38]quantity*price = 100056 [07:40:38]sum+1 = 100058 [07:40:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.57 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.57 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 35 14.04.2024 07:40 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 29125 ФПД: 161838543878443 1/tax-web-control/client/api/v1/ticket?date=20240414T074047&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29125&fm=161838543878443&tin=02508201610067®Number=0000138879044617&sum=100057 [07:40:39]StoreToDocumentArchive [07:40:39]shift 116 fd 29125 [07:40:39]save to /storage/0116/doc_00029125 [07:40:39]save last doc name /storage/0116/doc_00029125 to /storage/kkm_last_doc_name [07:40:39]save OK [07:40:39]Clear old archive folders... [07:40:39]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:40:39]tlvbuf is 011FB6D0 [07:40:39]SAM_PROTO_ClearQueue [07:40:39]wFMCommunicate request_size=4 [07:40:39]MH_SAM_APDU [07:40:39]CAPDU: 80 09 00 00 [07:40:39]Write to MH i2c: E2 08 00 2D 7A 80 09 00 00 00 00 00 00 19 [07:40:39]Write i2c OK [07:40:39]MH_I2C_Read... [07:40:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:40:39]Read from MH i2c: E2 [07:40:39]MH_I2C_Read... [07:40:39]Read from MH i2c: E2 03 00 [07:40:39]MH_I2C_Read... [07:40:39]Read from MH i2c: E2 03 00 2D 7A 00 90 00 1B [07:40:39]RAPDU: 90 00 [07:40:39]wFMCommunicate OK [07:40:39]SAM_PROTO_ClearQueue done [07:40:39]KKMCreateOFDPacket [07:40:39]OFDProtocolAddRootSTLVToBuf [07:40:39]FM_MakeSignedData [07:40:39]FM_MakeSignedData [07:40:39]SAM_PROTO_SignData [07:40:39]wFMCommunicate request_size=4 [07:40:39]MH_SAM_APDU [07:40:39]CAPDU: 80 0D 01 02 [07:40:39]Write to MH i2c: E2 08 00 2E 7A 80 0D 01 02 00 00 00 00 21 [07:40:39]Write i2c OK [07:40:39]MH_I2C_Read... [07:40:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:40:39]Read from MH i2c: E2 [07:40:39]MH_I2C_Read... [07:40:39]Read from MH i2c: E2 03 00 [07:40:39]MH_I2C_Read... [07:40:39]Read from MH i2c: E2 03 00 2E 7A 00 90 00 1C [07:40:39]RAPDU: 90 00 [07:40:39]wFMCommunicate OK [07:40:39]wFMCommunicate request_size=255 [07:40:39]MH_SAM_APDU [07:40:39]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 23 00 00 00 F4 03 04 00 7F 88 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C5 71 00 00 35 04 06 00 93 30 F8 EB [07:40:39]Write to MH i2c: E2 02 01 2F 7A 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 23 00 00 00 F4 03 04 00 7F 88 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C5 71 00 00 35 04 06 00 93 30 F8 EB 00 00 6D [07:40:39]Write i2c OK [07:40:39]MH_I2C_Read... [07:40:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:40:40]Read from MH i2c: E2 [07:40:40]MH_I2C_Read... [07:40:40]Read from MH i2c: E2 03 00 [07:40:40]MH_I2C_Read... [07:40:40]Read from MH i2c: E2 03 00 2F 7A 00 90 00 1D [07:40:40]RAPDU: 90 00 [07:40:40]wFMCommunicate OK [07:40:40]wFMCommunicate request_size=7 [07:40:40]MH_SAM_APDU [07:40:40]CAPDU: 80 0D 02 02 02 39 2B [07:40:40]Write to MH i2c: E2 0A 00 30 7A 80 0D 02 02 02 00 39 2B 00 00 8C [07:40:40]Write i2c OK [07:40:40]MH_I2C_Read... [07:40:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:40:40]Read from MH i2c: E2 [07:40:40]MH_I2C_Read... [07:40:40]Read from MH i2c: E2 03 00 [07:40:40]MH_I2C_Read... [07:40:40]Read from MH i2c: E2 03 00 30 7A 00 90 00 1E [07:40:40]RAPDU: 90 00 [07:40:40]wFMCommunicate OK [07:40:40]wFMCommunicate request_size=4 [07:40:40]MH_SAM_APDU [07:40:40]CAPDU: 80 0D 03 02 [07:40:40]Write to MH i2c: E2 08 00 31 7A 80 0D 03 02 00 00 00 00 26 [07:40:40]Write i2c OK [07:40:40]MH_I2C_Read... [07:40:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:40:40]Read from MH i2c: E2 [07:40:40]MH_I2C_Read... [07:40:40]Read from MH i2c: E2 0B 00 [07:40:40]MH_I2C_Read... [07:40:40]Read from MH i2c: E2 0B 00 31 7A 00 F0 30 07 4F 85 B9 38 98 90 00 AB [07:40:40]RAPDU: F0 30 07 4F 85 B9 38 98 90 00 [07:40:40]wFMCommunicate OK [07:40:40]SAM_PROTO_SignData done [07:40:40]FM_MakeSignedData done [07:40:40]CreateOFDProtocolMessage [07:40:40]wFMCommunicate request_size=4 [07:40:40]MH_SAM_APDU [07:40:40]CAPDU: 80 11 00 00 [07:40:40]Write to MH i2c: E2 08 00 32 7A 80 11 00 00 00 00 00 00 26 [07:40:40]Write i2c OK [07:40:40]MH_I2C_Read... [07:40:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:40:40]Read from MH i2c: E2 [07:40:40]MH_I2C_Read... [07:40:40]Read from MH i2c: E2 17 00 [07:40:40]MH_I2C_Read... [07:40:40]Read from MH i2c: E2 17 00 32 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 75 [07:40:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:40:40]wFMCommunicate OK [07:40:40]CreateOFDProtocolMessage done [07:40:40]OFDSenderStorePacket 29125 [07:40:40]StoreOFDPacket docnum=29125 [07:40:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 62 FD 04 01 A5 68 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 23 00 00 00 F4 03 04 00 7F 88 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C5 71 00 00 35 04 06 00 93 30 F8 EB 39 2B F0 30 07 4F 85 B9 38 98 [07:40:40]CheckFolder [07:40:40]dirname=/storage/ofd_packets [07:40:40]CheckFolder done [07:40:40]ProducePacketName [07:40:40]name=ofd_packets/00029125 [07:40:40]NVStorageSaveData ofd_packets/00029125 [07:40:40]File name is /storage/ofd_packets/00029125 [07:40:40]Write 298 bytes [07:40:40]NVStorageSaveData done [07:40:40]OFDSenderStorePacket done [07:40:40]KKMCreateOFDPacket done [07:40:40]NVStorageSaveData kkm_last_timestamp [07:40:40]File name is /storage/kkm_last_timestamp [07:40:40]Write 4 bytes [07:40:40]NVStorageSaveData done [07:40:40]ExternCall_PrintAddStr [07:40:40]wPrintStart [07:40:40]Write to MH i2c: 01 00 00 33 7A AD [07:40:40]Write i2c OK [07:40:40]MH_I2C_Read... [07:40:40]Read from MH i2c: 01 [07:40:40]MH_I2C_Read... [07:40:40]Read from MH i2c: 01 07 00 [07:40:40]MH_I2C_Read... [07:40:40]Read from MH i2c: 01 07 00 33 7A 00 00 00 00 00 FF 0F C2 [07:40:40]RasterBufferAndPrint [07:40:40]line Счет N : (1)347494 [07:40:40]line ИНН: 02508201610067 [07:40:40]line Контрольно-Кассовый Чек [07:40:40]line ПРОДАЖА [07:40:40]line ТРК (МРК, ГНК) : 21 [07:40:40]line Товар: 2710194210 [07:40:40]line ДТ-К-5 [07:40:40]line 13.820 * 72.40 [07:40:40]line = 1000.57 [07:40:40]line НДС 12% НСП 1% [07:40:40]line > о реализуемом товаре [07:40:40]line ИТОГО: 1000.57 [07:40:40]line НСП 1% : 8.85 [07:40:40]line НДС 12% : 106.25 [07:40:40]line Наличными: 0.00 [07:40:40]line Безнал.: 1000.57 [07:40:40]line Место: АЗС № 108 "Партнер Нефть" [07:40:40]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [07:40:40]line СНО: Общий режим [07:40:40]line Чек 35 14.04.2024 07:40 [07:40:40]line Смена: 116 ФФД: 1.0 [07:40:40]line ЗНМ: 0300000027 [07:40:40]line РНМ: 0000138879044617 [07:40:40]line Версия ККМ: 001 [07:40:40]line Платежная система: АКБ Кыргызстан [07:40:40]line ФМ: 0000000000963154 [07:40:40]line ФД: 29125 [07:40:40]line ФПД: 161838543878443 [07:40:40]line 1/tax-web-control/client/api/v1/ticket?date=20240414T074047&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29125&fm=161838543878443&tin=02508201610067®Number=0000138879044617&sum=100057 [07:40:40]OFD Sender: Processing packet 29125 [packets to send 8, broken 7] [07:40:40]ProducePacketName [07:40:40]name=ofd_packets/00029125 [07:40:40]OFD Sender: To server: pG, [07:40:40]CommunicateWithHost lk.salyk.kg:30040 [07:40:40]ConnectInit lk.salyk.kg [07:40:40]written 0, free lines is 4095 [07:40:40]Connected sock=10 [07:40:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 62 FD 04 01 A5 68 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 23 00 00 00 F4 03 04 00 7F 88 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C5 71 00 00 35 04 06 00 93 30 F8 EB 39 2B F0 30 07 4F 85 B9 38 98 [07:40:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 7A 20 47 00 C7 F2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C5 71 00 00 F4 03 04 00 24 33 1B 66 B6 04 01 00 00 7A 42 33 3B 0D 7B 1C 69 [07:40:40]CommunicateWithHost err = 0 [07:40:40]CheckOFDResponse [07:40:40]1017 (14) - 77093643461234 [07:40:40]1041 (16) - 0000000000963154 [07:40:40]1040 (4) - 29125 [07:40:40]1012 (4) - 14.04.2024 01:36 [07:40:40]1206 (1) - 0 [07:40:40]OFD Sender: Remove packet 29125 [07:40:40]ProducePacketName [07:40:40]name=ofd_packets/00029125 [07:40:40]NVStorageDeleteData [07:40:41]Write to MH i2c: 01 00 00 5C 7A D6 [07:40:41]Write i2c OK [07:40:41]MH_I2C_Read... [07:40:41]Read from MH i2c: 01 [07:40:41]MH_I2C_Read... [07:40:41]Read from MH i2c: 01 07 00 [07:40:41]MH_I2C_Read... [07:40:41]Read from MH i2c: 01 07 00 5C 7A 00 00 00 00 00 E6 0C CF [07:40:41]RasterBufferAndPrint [07:40:41]line [07:40:41]line [07:40:41]line [07:40:41]line [07:40:41]line [07:40:41]written 0, free lines is 3307 [07:40:41]MH_Cut [07:40:41]Write to MH i2c: D1 01 00 63 7A 01 AF [07:40:41]Write i2c OK [07:40:41]MH_I2C_Read... [07:40:41]Read from MH i2c: D1 [07:40:41]MH_I2C_Read... [07:40:41]Read from MH i2c: D1 01 00 [07:40:41]MH_I2C_Read... [07:40:41]Read from MH i2c: D1 01 00 63 7A 00 AE [07:40:41]Write to MH i2c: 01 00 00 64 7A DE [07:40:41]Write i2c OK [07:40:41]MH_I2C_Read... [07:40:41]OFD Sender: No OFD packet to send [07:40:41]*** Cut start [07:40:41]*** Partial cut [07:40:41]*** CUTSNS_PIN = 1 [07:40:41]*** CUTSNS_PIN = 0 [07:40:42]*** Brake cut motor [07:40:42]Read from MH i2c: 01 [07:40:42]MH_I2C_Read... [07:40:42]*** Stop cut motor [07:40:42]*** Cut end [07:40:42]Read from MH i2c: 01 07 00 [07:40:42]MH_I2C_Read... [07:40:42]Read from MH i2c: 01 07 00 64 7A 00 00 00 00 00 FF 0F F3 [07:40:42]process_action close_receipt done [07:40:42]requested_data is exist [07:40:42]produce_requested_data [07:40:42]requested_item fm.sn is exist - process it [07:40:42]wFMCommunicate request_size=4 [07:40:42]MH_SAM_APDU [07:40:42]CAPDU: 80 11 00 00 [07:40:42]Write to MH i2c: E2 08 00 65 7A 80 11 00 00 00 00 00 00 59 [07:40:42]Write i2c OK [07:40:42]MH_I2C_Read... [07:40:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:40:42]Read from MH i2c: E2 [07:40:42]MH_I2C_Read... [07:40:42]Read from MH i2c: E2 17 00 [07:40:42]MH_I2C_Read... [07:40:42]Read from MH i2c: E2 17 00 65 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A8 [07:40:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:40:42]wFMCommunicate OK [07:40:42]requested_item fd.num is exist - process it [07:40:42]SAM_PROTO_GetFieldsCounters [07:40:42]wFMCommunicate request_size=4 [07:40:42]MH_SAM_APDU [07:40:42]CAPDU: 80 13 00 00 [07:40:42]Write to MH i2c: E2 08 00 66 7A 80 13 00 00 00 00 00 00 5C [07:40:42]Write i2c OK [07:40:42]MH_I2C_Read... [07:40:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:40:42]Read from MH i2c: E2 [07:40:42]MH_I2C_Read... [07:40:42]Read from MH i2c: E2 62 00 [07:40:42]MH_I2C_Read... [07:40:42]Read from MH i2c: E2 62 00 66 7A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C5 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 AD [07:40:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C5 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:40:42]wFMCommunicate OK [07:40:42]SAM_PROTO_GetFieldsCounters done [07:40:42]requested_item shift.num is exist - process it [07:40:42]requested_item shift.opened is exist - process it [07:40:42]req_shift_opened [07:40:42]FM_GetShiftState [07:40:42]SAM_PROTO_GetShiftState [07:40:42]wFMCommunicate request_size=4 [07:40:42]MH_SAM_APDU [07:40:42]CAPDU: 80 13 01 00 [07:40:42]Write to MH i2c: E2 08 00 67 7A 80 13 01 00 00 00 00 00 5E [07:40:42]Write i2c OK [07:40:42]MH_I2C_Read... [07:40:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:40:42]Read from MH i2c: E2 [07:40:42]MH_I2C_Read... [07:40:42]Read from MH i2c: E2 0E 00 [07:40:42]MH_I2C_Read... [07:40:42]Read from MH i2c: E2 0E 00 67 7A 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 0A [07:40:42]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [07:40:42]wFMCommunicate OK [07:40:42]SAM_PROTO_GetShiftState done [07:40:42]FM_GetShiftState done [07:40:42]req_shift_opened done [07:40:42]requested_item shift.open_date is exist - process it [07:40:42]req_shift_open_date [07:40:42]req_shift_open_date done [07:40:42]produce_requested_data done [07:40:42]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29125,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [07:40:42]process_action_free close_receipt [07:40:42]json_value_free [07:40:42]json_value_free done [07:40:42]process_json_proto returns [07:40:42]Send response to host [07:40:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29125,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [07:40:42]free response buf [07:40:42]execute_script done [07:40:42]execute_script returns [07:40:42]free content buf [07:40:42]Sock 7.Close socket [07:40:42]Sock 7.Thread stoped [07:40:46]OFD Sender: No OFD packet to send [07:40:51]OFD Sender: No OFD packet to send [07:40:56]OFD Sender: No OFD packet to send [07:41:01]OFD Sender: No OFD packet to send [07:41:06]OFD Sender: No OFD packet to send [07:41:11]OFD Sender: No OFD packet to send [07:41:15]accept exits with 9 [07:41:15]New connection [07:41:15]New thread 3066928484 created [07:41:15]Thread 3066785124 joined [07:41:15]Waiting for new connection... [07:41:15] Sock 9.Parse request [07:41:15]Sock 9.Check first char [07:41:15]Sock 9.First char is OK [07:41:15]request: POST /json_proto HTTP/1.0 [07:41:15]Method: POST [07:41:15]URL: /json_proto [07:41:15]Method is POST - this is cgi request [07:41:15]url: /json_proto [07:41:15]query_string will be loaded in cgi processing [07:41:15]execute_cgi json_proto POST (null) [07:41:15]execute_cgi path=json_proto method=POST [07:41:15]POST find Content-Length [07:41:15]Host: 172.17.33.3:8080 [07:41:15]Content-Length: 685 [07:41:15]Content-Type: application/json [07:41:15] [07:41:15]POST finish read [07:41:15]Found Content-Length = 685 [07:41:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347493", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 42.900, "sum" : 1411.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1411.00, "payments": [ { "type": 0, "sum" : 1411.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:41:15]execute_script... [07:41: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)347493", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 42.900, "sum" : 1411.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1411.00, "payments": [ { "type": 0, "sum" : 1411.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:41:15]POST & json_proto [07:41:15]process_json_proto [07:41:15]json parsed OK: [07:41:15]protocol is kg_v1.0 [07:41:15]action value=close_receipt [07:41:15]process_action close_receipt [07:41:15]cmd_close_receipt [07:41:15]MH_GetDate [07:41:15]Write to MH i2c: F0 00 00 68 7A D1 [07:41:15]Write i2c OK [07:41:15]MH_I2C_Read... [07:41:15]Read from MH i2c: F0 [07:41:15]MH_I2C_Read... [07:41:15]Read from MH i2c: F0 09 00 [07:41:15]MH_I2C_Read... [07:41:15]Read from MH i2c: F0 09 00 68 7A 00 A4 88 1B 66 23 5B 8F 65 F9 [07:41:15]GetLastDocTimeStamp 1713080447 [07:41:15]current date 1713080484 [07:41:15]FM_GetShiftState [07:41:15]SAM_PROTO_GetShiftState [07:41:15]wFMCommunicate request_size=4 [07:41:15]MH_SAM_APDU [07:41:15]CAPDU: 80 13 01 00 [07:41:15]Write to MH i2c: E2 08 00 69 7A 80 13 01 00 00 00 00 00 60 [07:41:15]Write i2c OK [07:41:15]MH_I2C_Read... [07:41:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:41:15]Read from MH i2c: E2 [07:41:15]MH_I2C_Read... [07:41:15]Read from MH i2c: E2 0E 00 [07:41:15]MH_I2C_Read... [07:41:15]Read from MH i2c: E2 0E 00 69 7A 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 0C [07:41:15]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [07:41:15]wFMCommunicate OK [07:41:15]SAM_PROTO_GetShiftState done [07:41:15]FM_GetShiftState done [07:41:15]opened in 1713053951 [07:41:15]opened+sec_in_day 1713140351 [07:41:15]quantity*price = 141141 [07:41:15]sum+1 = 141142 [07:41:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 1411.00 Внесено: 1500.00 СДАЧА: 89.00 НСП 1% : 12.49 НДС 12% : 149.88 Наличными: 1411.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 36 14.04.2024 07:41 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29126 ФПД: 24735122704513 1/tax-web-control/client/api/v1/ticket?date=20240414T074124&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29126&fm=24735122704513&tin=02508201610067®Number=0000138879044617&sum=141100 [07:41:16]StoreToDocumentArchive [07:41:16]shift 116 fd 29126 [07:41:16]save to /storage/0116/doc_00029126 [07:41:16]save last doc name /storage/0116/doc_00029126 to /storage/kkm_last_doc_name [07:41:16]save OK [07:41:16]Clear old archive folders... [07:41:16]ProcessDocumentItem done err = 0, tmpTLVsize=250 [07:41:16]tlvbuf is 012148C0 [07:41:16]SAM_PROTO_ClearQueue [07:41:16]wFMCommunicate request_size=4 [07:41:16]MH_SAM_APDU [07:41:16]CAPDU: 80 09 00 00 [07:41:16]Write to MH i2c: E2 08 00 76 7A 80 09 00 00 00 00 00 00 62 [07:41:16]Write i2c OK [07:41:16]MH_I2C_Read... [07:41:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:41:17]Read from MH i2c: E2 [07:41:17]MH_I2C_Read... [07:41:17]Read from MH i2c: E2 03 00 [07:41:17]MH_I2C_Read... [07:41:17]Read from MH i2c: E2 03 00 76 7A 00 90 00 64 [07:41:17]RAPDU: 90 00 [07:41:17]wFMCommunicate OK [07:41:17]SAM_PROTO_ClearQueue done [07:41:17]KKMCreateOFDPacket [07:41:17]OFDProtocolAddRootSTLVToBuf [07:41:17]FM_MakeSignedData [07:41:17]FM_MakeSignedData [07:41:17]SAM_PROTO_SignData [07:41:17]wFMCommunicate request_size=4 [07:41:17]MH_SAM_APDU [07:41:17]CAPDU: 80 0D 01 02 [07:41:17]Write to MH i2c: E2 08 00 77 7A 80 0D 01 02 00 00 00 00 6A [07:41:17]Write i2c OK [07:41:17]MH_I2C_Read... [07:41:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:41:17]Read from MH i2c: E2 [07:41:17]MH_I2C_Read... [07:41:17]Read from MH i2c: E2 03 00 [07:41:17]MH_I2C_Read... [07:41:17]Read from MH i2c: E2 03 00 77 7A 00 90 00 65 [07:41:17]RAPDU: 90 00 [07:41:17]wFMCommunicate OK [07:41:17]wFMCommunicate request_size=255 [07:41:17]MH_SAM_APDU [07:41: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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 94 A7 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 55 27 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 27 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 3A 00 00 00 00 07 04 06 00 2C 27 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 A4 88 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C6 71 00 00 35 04 06 00 16 7F [07:41:17]Write to MH i2c: E2 02 01 78 7A 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 94 A7 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 55 27 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 27 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 3A 00 00 00 00 07 04 06 00 2C 27 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 A4 88 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C6 71 00 00 35 04 06 00 16 7F 00 00 46 [07:41:17]Write i2c OK [07:41:17]MH_I2C_Read... [07:41:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:41:17]Read from MH i2c: E2 [07:41:17]MH_I2C_Read... [07:41:17]Read from MH i2c: E2 03 00 [07:41:17]MH_I2C_Read... [07:41:17]Read from MH i2c: E2 03 00 78 7A 00 90 00 66 [07:41:17]RAPDU: 90 00 [07:41:17]wFMCommunicate OK [07:41:17]wFMCommunicate request_size=9 [07:41:17]MH_SAM_APDU [07:41:17]CAPDU: 80 0D 02 02 04 18 33 C8 81 [07:41:17]Write to MH i2c: E2 0C 00 79 7A 80 0D 02 02 04 00 18 33 C8 81 00 00 09 [07:41:17]Write i2c OK [07:41:17]MH_I2C_Read... [07:41:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:41:17]Read from MH i2c: E2 [07:41:17]MH_I2C_Read... [07:41:17]Read from MH i2c: E2 03 00 [07:41:17]MH_I2C_Read... [07:41:17]Read from MH i2c: E2 03 00 79 7A 00 90 00 67 [07:41:17]RAPDU: 90 00 [07:41:17]wFMCommunicate OK [07:41:17]wFMCommunicate request_size=4 [07:41:17]MH_SAM_APDU [07:41:17]CAPDU: 80 0D 03 02 [07:41:17]Write to MH i2c: E2 08 00 7A 7A 80 0D 03 02 00 00 00 00 6F [07:41:17]Write i2c OK [07:41:17]MH_I2C_Read... [07:41:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:41:17]Read from MH i2c: E2 [07:41:17]MH_I2C_Read... [07:41:17]Read from MH i2c: E2 0B 00 [07:41:17]MH_I2C_Read... [07:41:17]Read from MH i2c: E2 0B 00 7A 7A 00 AE 8D 5C 7E D1 52 A4 3E 90 00 8A [07:41:17]RAPDU: AE 8D 5C 7E D1 52 A4 3E 90 00 [07:41:17]wFMCommunicate OK [07:41:17]SAM_PROTO_SignData done [07:41:17]FM_MakeSignedData done [07:41:17]CreateOFDProtocolMessage [07:41:17]wFMCommunicate request_size=4 [07:41:17]MH_SAM_APDU [07:41:17]CAPDU: 80 11 00 00 [07:41:17]Write to MH i2c: E2 08 00 7B 7A 80 11 00 00 00 00 00 00 6F [07:41:17]Write i2c OK [07:41:17]MH_I2C_Read... [07:41:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:41:17]Read from MH i2c: E2 [07:41:17]MH_I2C_Read... [07:41:17]Read from MH i2c: E2 17 00 [07:41:17]MH_I2C_Read... [07:41:17]Read from MH i2c: E2 17 00 7B 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 BE [07:41:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:41:17]wFMCommunicate OK [07:41:17]CreateOFDProtocolMessage done [07:41:17]OFDSenderStorePacket 29126 [07:41:17]StoreOFDPacket docnum=29126 [07:41:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 91 53 06 01 2F 4B 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 94 A7 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 55 27 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 27 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 3A 00 00 00 00 07 04 06 00 2C 27 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 A4 88 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C6 71 00 00 35 04 06 00 16 7F 18 33 C8 81 AE 8D 5C 7E D1 52 A4 3E [07:41:17]CheckFolder [07:41:17]dirname=/storage/ofd_packets [07:41:17]CheckFolder done [07:41:17]ProducePacketName [07:41:17]name=ofd_packets/00029126 [07:41:17]NVStorageSaveData ofd_packets/00029126 [07:41:17]File name is /storage/ofd_packets/00029126 [07:41:17]Write 300 bytes [07:41:17]NVStorageSaveData done [07:41:17]OFDSenderStorePacket done [07:41:17]KKMCreateOFDPacket done [07:41:17]NVStorageSaveData kkm_last_timestamp [07:41:17]File name is /storage/kkm_last_timestamp [07:41:17]Write 4 bytes [07:41:17]NVStorageSaveData done [07:41:17]ExternCall_PrintAddStr [07:41:17]wPrintStart [07:41:17]Write to MH i2c: 01 00 00 7C 7A F6 [07:41:17]Write i2c OK [07:41:17]MH_I2C_Read... [07:41:17]Read from MH i2c: 01 [07:41:17]MH_I2C_Read... [07:41:17]Read from MH i2c: 01 07 00 [07:41:17]MH_I2C_Read... [07:41:17]Read from MH i2c: 01 07 00 7C 7A 00 00 00 00 00 FF 0F 0B [07:41:17]RasterBufferAndPrint [07:41:17]line Счет N : (1)347493 [07:41:17]line ИНН: 02508201610067 [07:41:17]line Контрольно-Кассовый Чек [07:41:17]line ПРОДАЖА [07:41:17]line ТРК (МРК, ГНК) : 71 [07:41:17]line Товар: 2711129700 [07:41:17]line ГАЗ-К-5 [07:41:17]line 42.900 * 32.90 [07:41:17]line = 1411.41 [07:41:17]line НДС 12% НСП 1% [07:41:17]line > о реализуемом товаре [07:41:17]line ОКРУГЛЕНИЕ: -0.41 [07:41:17]line ИТОГО: 1411.00 [07:41:17]line Внесено: 1500.00 [07:41:17]line СДАЧА: 89.00 [07:41:17]line НСП 1% : 12.49 [07:41:17]line НДС 12% : 149.88 [07:41:17]line Наличными: 1411.00 [07:41:17]line Безнал.: 0.00 [07:41:17]line Место: АЗС № 108 "Партнер Нефть" [07:41:17]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [07:41:17]line СНО: Общий режим [07:41:17]line Чек 36 14.04.2024 07:41 [07:41:17]line Смена: 116 ФФД: 1.0 [07:41:17]line ЗНМ: 0300000027 [07:41:17]line РНМ: 0000138879044617 [07:41:17]line Версия ККМ: 001 [07:41:17]line ФМ: 0000000000963154 [07:41:17]line ФД: 29126 [07:41:17]line ФПД: 24735122704513 [07:41:17]line 1/tax-web-control/client/api/v1/ticket?date=20240414T074124&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29126&fm=24735122704513&tin=02508201610067®Number=0000138879044617&sum=141100 [07:41:17]OFD Sender: Processing packet 29126 [packets to send 8, broken 7] [07:41:17]ProducePacketName [07:41:17]name=ofd_packets/00029126 [07:41:17]OFD Sender: To server: pG, [07:41:17]CommunicateWithHost lk.salyk.kg:30040 [07:41:17]ConnectInit lk.salyk.kg [07:41:17]written 0, free lines is 4095 [07:41:17]Connected sock=10 [07:41:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 91 53 06 01 2F 4B 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 94 A7 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 55 27 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 27 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 3A 00 00 00 00 07 04 06 00 2C 27 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 A4 88 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C6 71 00 00 35 04 06 00 16 7F 18 33 C8 81 AE 8D 5C 7E D1 52 A4 3E [07:41:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 8C 1C 47 00 DD 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C6 71 00 00 F4 03 04 00 49 33 1B 66 B6 04 01 00 00 57 76 34 96 C6 3A F5 01 [07:41:18]CommunicateWithHost err = 0 [07:41:18]CheckOFDResponse [07:41:18]1017 (14) - 77093643461234 [07:41:18]1041 (16) - 0000000000963154 [07:41:18]1040 (4) - 29126 [07:41:18]1012 (4) - 14.04.2024 01:37 [07:41:18]1206 (1) - 0 [07:41:18]OFD Sender: Remove packet 29126 [07:41:18]ProducePacketName [07:41:18]name=ofd_packets/00029126 [07:41:18]NVStorageDeleteData [07:41:18]Write to MH i2c: 01 00 00 A6 7A 20 [07:41:18]Write i2c OK [07:41:18]MH_I2C_Read... [07:41:18]Read from MH i2c: 01 [07:41:18]MH_I2C_Read... [07:41:18]Read from MH i2c: 01 07 00 [07:41:18]MH_I2C_Read... [07:41:18]Read from MH i2c: 01 07 00 A6 7A 00 00 00 00 00 C7 0C FA [07:41:18]RasterBufferAndPrint [07:41:18]line [07:41:18]line [07:41:18]line [07:41:18]line [07:41:18]line [07:41:18]written 0, free lines is 3277 [07:41:18]MH_Cut [07:41:18]Write to MH i2c: D1 01 00 AD 7A 01 F9 [07:41:18]Write i2c OK [07:41:18]MH_I2C_Read... [07:41:18]Read from MH i2c: D1 [07:41:18]MH_I2C_Read... [07:41:18]Read from MH i2c: D1 01 00 [07:41:18]MH_I2C_Read... [07:41:18]Read from MH i2c: D1 01 00 AD 7A 00 F8 [07:41:18]Write to MH i2c: 01 00 00 AE 7A 28 [07:41:18]Write i2c OK [07:41:18]MH_I2C_Read... [07:41:18]OFD Sender: No OFD packet to send [07:41:19]*** Cut start [07:41:19]*** Partial cut [07:41:19]*** CUTSNS_PIN = 1 [07:41:19]*** CUTSNS_PIN = 0 [07:41:19]*** Brake cut motor [07:41:19]Read from MH i2c: 01 [07:41:19]MH_I2C_Read... [07:41:19]*** Stop cut motor [07:41:19]*** Cut end [07:41:19]Read from MH i2c: 01 07 00 [07:41:19]MH_I2C_Read... [07:41:19]Read from MH i2c: 01 07 00 AE 7A 00 00 00 00 00 FF 0F 3D [07:41:19]process_action close_receipt done [07:41:19]requested_data is exist [07:41:19]produce_requested_data [07:41:19]requested_item fm.sn is exist - process it [07:41:19]wFMCommunicate request_size=4 [07:41:19]MH_SAM_APDU [07:41:19]CAPDU: 80 11 00 00 [07:41:19]Write to MH i2c: E2 08 00 AF 7A 80 11 00 00 00 00 00 00 A3 [07:41:19]Write i2c OK [07:41:19]MH_I2C_Read... [07:41:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:41:19]Read from MH i2c: E2 [07:41:19]MH_I2C_Read... [07:41:19]Read from MH i2c: E2 17 00 [07:41:19]MH_I2C_Read... [07:41:19]Read from MH i2c: E2 17 00 AF 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F2 [07:41:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:41:19]wFMCommunicate OK [07:41:19]requested_item fd.num is exist - process it [07:41:19]SAM_PROTO_GetFieldsCounters [07:41:19]wFMCommunicate request_size=4 [07:41:19]MH_SAM_APDU [07:41:19]CAPDU: 80 13 00 00 [07:41:19]Write to MH i2c: E2 08 00 B0 7A 80 13 00 00 00 00 00 00 A6 [07:41:19]Write i2c OK [07:41:19]MH_I2C_Read... [07:41:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:41:19]Read from MH i2c: E2 [07:41:19]MH_I2C_Read... [07:41:19]Read from MH i2c: E2 62 00 [07:41:19]MH_I2C_Read... [07:41:19]Read from MH i2c: E2 62 00 B0 7A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C6 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 FB [07:41:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C6 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:41:19]wFMCommunicate OK [07:41:19]SAM_PROTO_GetFieldsCounters done [07:41:19]requested_item shift.num is exist - process it [07:41:19]requested_item shift.opened is exist - process it [07:41:19]req_shift_opened [07:41:19]FM_GetShiftState [07:41:19]SAM_PROTO_GetShiftState [07:41:19]wFMCommunicate request_size=4 [07:41:19]MH_SAM_APDU [07:41:19]CAPDU: 80 13 01 00 [07:41:19]Write to MH i2c: E2 08 00 B1 7A 80 13 01 00 00 00 00 00 A8 [07:41:19]Write i2c OK [07:41:19]MH_I2C_Read... [07:41:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:41:20]Read from MH i2c: E2 [07:41:20]MH_I2C_Read... [07:41:20]Read from MH i2c: E2 0E 00 [07:41:20]MH_I2C_Read... [07:41:20]Read from MH i2c: E2 0E 00 B1 7A 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 54 [07:41:20]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [07:41:20]wFMCommunicate OK [07:41:20]SAM_PROTO_GetShiftState done [07:41:20]FM_GetShiftState done [07:41:20]req_shift_opened done [07:41:20]requested_item shift.open_date is exist - process it [07:41:20]req_shift_open_date [07:41:20]req_shift_open_date done [07:41:20]produce_requested_data done [07:41:20]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29126,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [07:41:20]process_action_free close_receipt [07:41:20]json_value_free [07:41:20]json_value_free done [07:41:20]process_json_proto returns [07:41:20]Send response to host [07:41:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29126,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [07:41:20]free response buf [07:41:20]execute_script done [07:41:20]execute_script returns [07:41:20]free content buf [07:41:20]Sock 9.Close socket [07:41:20]Sock 9.Thread stoped [07:41:20]accept exits with 7 [07:41:20]New connection [07:41:20]New thread 3066785124 created [07:41:20]Thread 3066928484 joined [07:41:20]Waiting for new connection... [07:41:20] Sock 7.Parse request [07:41:20]Sock 7.Check first char [07:41:20]Sock 7.First char is OK [07:41:20]request: POST /json_proto HTTP/1.0 [07:41:20]Method: POST [07:41:20]URL: /json_proto [07:41:20]Method is POST - this is cgi request [07:41:20]url: /json_proto [07:41:20]query_string will be loaded in cgi processing [07:41:20]execute_cgi json_proto POST (null) [07:41:20]execute_cgi path=json_proto method=POST [07:41:20]POST find Content-Length [07:41:20]Host: 172.17.33.3:8080 [07:41:20]Content-Length: 674 [07:41:20]Content-Type: application/json [07:41:20] [07:41:20]POST finish read [07:41:20]Found Content-Length = 674 [07:41:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347495", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.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" ] } } [07:41:20]execute_script... [07: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 : (1)347495", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.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" ] } } [07:41:20]POST & json_proto [07:41:20]process_json_proto [07:41:20]json parsed OK: [07:41:20]protocol is kg_v1.0 [07:41:20]action value=close_receipt [07:41:20]process_action close_receipt [07:41:20]cmd_close_receipt [07:41:20]MH_GetDate [07:41:20]Write to MH i2c: F0 00 00 B2 7A 1B [07:41:20]Write i2c OK [07:41:20]MH_I2C_Read... [07:41:20]Read from MH i2c: F0 [07:41:20]MH_I2C_Read... [07:41:20]Read from MH i2c: F0 09 00 [07:41:20]MH_I2C_Read... [07:41:20]Read from MH i2c: F0 09 00 B2 7A 00 A9 88 1B 66 23 5B 8F 65 48 [07:41:20]GetLastDocTimeStamp 1713080484 [07:41:20]current date 1713080489 [07:41:20]FM_GetShiftState [07:41:20]SAM_PROTO_GetShiftState [07:41:20]wFMCommunicate request_size=4 [07:41:20]MH_SAM_APDU [07:41:20]CAPDU: 80 13 01 00 [07:41:20]Write to MH i2c: E2 08 00 B3 7A 80 13 01 00 00 00 00 00 AA [07:41:20]Write i2c OK [07:41:20]MH_I2C_Read... [07:41:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:41:20]Read from MH i2c: E2 [07:41:20]MH_I2C_Read... [07:41:20]Read from MH i2c: E2 0E 00 [07:41:20]MH_I2C_Read... [07:41:20]Read from MH i2c: E2 0E 00 B3 7A 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 56 [07:41:20]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [07:41:20]wFMCommunicate OK [07:41:20]SAM_PROTO_GetShiftState done [07:41:20]FM_GetShiftState done [07:41:20]opened in 1713053951 [07:41:20]opened+sec_in_day 1713140351 [07:41:20]quantity*price = 60019 [07:41:20]sum+1 = 60021 [07:41:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 37 14.04.2024 07:41 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29127 ФПД: 270316227388313 1/tax-web-control/client/api/v1/ticket?date=20240414T074129&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29127&fm=270316227388313&tin=02508201610067®Number=0000138879044617&sum=60000 [07:41:21]StoreToDocumentArchive [07:41:21]shift 116 fd 29127 [07:41:21]save to /storage/0116/doc_00029127 [07:41:21]save last doc name /storage/0116/doc_00029127 to /storage/kkm_last_doc_name [07:41:21]save OK [07:41:21]Clear old archive folders... [07:41:21]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:41:21]tlvbuf is 012CFE10 [07:41:21]SAM_PROTO_ClearQueue [07:41:21]wFMCommunicate request_size=4 [07:41:21]MH_SAM_APDU [07:41:21]CAPDU: 80 09 00 00 [07:41:21]Write to MH i2c: E2 08 00 C0 7A 80 09 00 00 00 00 00 00 AC [07:41:21]Write i2c OK [07:41:21]MH_I2C_Read... [07:41:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:41:21]Read from MH i2c: E2 [07:41:21]MH_I2C_Read... [07:41:21]Read from MH i2c: E2 03 00 [07:41:21]MH_I2C_Read... [07:41:21]Read from MH i2c: E2 03 00 C0 7A 00 90 00 AE [07:41:21]RAPDU: 90 00 [07:41:21]wFMCommunicate OK [07:41:21]SAM_PROTO_ClearQueue done [07:41:21]KKMCreateOFDPacket [07:41:21]OFDProtocolAddRootSTLVToBuf [07:41:21]FM_MakeSignedData [07:41:21]FM_MakeSignedData [07:41:21]SAM_PROTO_SignData [07:41:21]wFMCommunicate request_size=4 [07:41:21]MH_SAM_APDU [07:41:21]CAPDU: 80 0D 01 02 [07:41:21]Write to MH i2c: E2 08 00 C1 7A 80 0D 01 02 00 00 00 00 B4 [07:41:21]Write i2c OK [07:41:21]MH_I2C_Read... [07:41:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:41:21]Read from MH i2c: E2 [07:41:21]MH_I2C_Read... [07:41:21]Read from MH i2c: E2 03 00 [07:41:21]MH_I2C_Read... [07:41:21]Read from MH i2c: E2 03 00 C1 7A 00 90 00 AF [07:41:21]RAPDU: 90 00 [07:41:21]wFMCommunicate OK [07:41:21]wFMCommunicate request_size=255 [07:41:21]MH_SAM_APDU [07:41: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 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 25 00 00 00 F4 03 04 00 A9 88 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C7 71 00 00 35 04 06 00 F5 D9 E6 B5 [07:41:21]Write to MH i2c: E2 02 01 C2 7A 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 25 00 00 00 F4 03 04 00 A9 88 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C7 71 00 00 35 04 06 00 F5 D9 E6 B5 00 00 05 [07:41:22]Write i2c OK [07:41:22]MH_I2C_Read... [07:41:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:41:22]Read from MH i2c: E2 [07:41:22]MH_I2C_Read... [07:41:22]Read from MH i2c: E2 03 00 [07:41:22]MH_I2C_Read... [07:41:22]Read from MH i2c: E2 03 00 C2 7A 00 90 00 B0 [07:41:22]RAPDU: 90 00 [07:41:22]wFMCommunicate OK [07:41:22]wFMCommunicate request_size=7 [07:41:22]MH_SAM_APDU [07:41:22]CAPDU: 80 0D 02 02 02 E3 99 [07:41:22]Write to MH i2c: E2 0A 00 C3 7A 80 0D 02 02 02 00 E3 99 00 00 37 [07:41:22]Write i2c OK [07:41:22]MH_I2C_Read... [07:41:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:41:22]Read from MH i2c: E2 [07:41:22]MH_I2C_Read... [07:41:22]Read from MH i2c: E2 03 00 [07:41:22]MH_I2C_Read... [07:41:22]Read from MH i2c: E2 03 00 C3 7A 00 90 00 B1 [07:41:22]RAPDU: 90 00 [07:41:22]wFMCommunicate OK [07:41:22]wFMCommunicate request_size=4 [07:41:22]MH_SAM_APDU [07:41:22]CAPDU: 80 0D 03 02 [07:41:22]Write to MH i2c: E2 08 00 C4 7A 80 0D 03 02 00 00 00 00 B9 [07:41:22]Write i2c OK [07:41:22]MH_I2C_Read... [07:41:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:41:22]Read from MH i2c: E2 [07:41:22]MH_I2C_Read... [07:41:22]Read from MH i2c: E2 0B 00 [07:41:22]MH_I2C_Read... [07:41:22]Read from MH i2c: E2 0B 00 C4 7A 00 D9 91 97 E9 51 84 FC 89 90 00 FE [07:41:22]RAPDU: D9 91 97 E9 51 84 FC 89 90 00 [07:41:22]wFMCommunicate OK [07:41:22]SAM_PROTO_SignData done [07:41:22]FM_MakeSignedData done [07:41:22]CreateOFDProtocolMessage [07:41:22]wFMCommunicate request_size=4 [07:41:22]MH_SAM_APDU [07:41:22]CAPDU: 80 11 00 00 [07:41:22]Write to MH i2c: E2 08 00 C5 7A 80 11 00 00 00 00 00 00 B9 [07:41:22]Write i2c OK [07:41:22]MH_I2C_Read... [07:41:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:41:22]Read from MH i2c: E2 [07:41:22]MH_I2C_Read... [07:41:22]Read from MH i2c: E2 17 00 [07:41:22]MH_I2C_Read... [07:41:22]Read from MH i2c: E2 17 00 C5 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 08 [07:41:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:41:22]wFMCommunicate OK [07:41:22]CreateOFDProtocolMessage done [07:41:22]OFDSenderStorePacket 29127 [07:41:22]StoreOFDPacket docnum=29127 [07:41:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 AD 1F 04 01 87 23 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 25 00 00 00 F4 03 04 00 A9 88 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C7 71 00 00 35 04 06 00 F5 D9 E6 B5 E3 99 D9 91 97 E9 51 84 FC 89 [07:41:22]CheckFolder [07:41:22]dirname=/storage/ofd_packets [07:41:22]CheckFolder done [07:41:22]ProducePacketName [07:41:22]name=ofd_packets/00029127 [07:41:22]NVStorageSaveData ofd_packets/00029127 [07:41:22]File name is /storage/ofd_packets/00029127 [07:41:22]Write 298 bytes [07:41:22]NVStorageSaveData done [07:41:22]OFDSenderStorePacket done [07:41:22]KKMCreateOFDPacket done [07:41:22]NVStorageSaveData kkm_last_timestamp [07:41:22]File name is /storage/kkm_last_timestamp [07:41:22]Write 4 bytes [07:41:22]NVStorageSaveData done [07:41:22]ExternCall_PrintAddStr [07:41:22]wPrintStart [07:41:22]Write to MH i2c: 01 00 00 C6 7A 40 [07:41:22]Write i2c OK [07:41:22]MH_I2C_Read... [07:41:22]Read from MH i2c: 01 [07:41:22]MH_I2C_Read... [07:41:22]Read from MH i2c: 01 07 00 [07:41:22]MH_I2C_Read... [07:41:22]Read from MH i2c: 01 07 00 C6 7A 00 00 00 00 00 FF 0F 55 [07:41:22]RasterBufferAndPrint [07:41:22]line Счет N : (1)347495 [07:41:22]line ИНН: 02508201610067 [07:41:22]line Контрольно-Кассовый Чек [07:41:22]line ПРОДАЖА [07:41:22]line ТРК (МРК, ГНК) : 11 [07:41:22]line Товар: 2710194210 [07:41:22]line ДТ-К-5 [07:41:22]line 8.290 * 72.40 [07:41:22]line = 600.20 [07:41:22]line НДС 12% НСП 1% [07:41:22]line > о реализуемом товаре [07:41:22]line ОКРУГЛЕНИЕ: -0.20 [07:41:22]line ИТОГО: 600.00 [07:41:22]line Внесено: 600.00 [07:41:22]line СДАЧА: 0.00 [07:41:22]line НСП 1% : 5.31 [07:41:22]line НДС 12% : 63.74 [07:41:22]line Наличными: 600.00 [07:41:22]line Безнал.: 0.00 [07:41:22]line Место: АЗС № 108 "Партнер Нефть" [07:41:22]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [07:41:22]line СНО: Общий режим [07:41:22]line Чек 37 14.04.2024 07:41 [07:41:22]line Смена: 116 ФФД: 1.0 [07:41:22]line ЗНМ: 0300000027 [07:41:22]line РНМ: 0000138879044617 [07:41:22]line Версия ККМ: 001 [07:41:22]line ФМ: 0000000000963154 [07:41:22]line ФД: 29127 [07:41:22]line ФПД: 270316227388313 [07:41:22]line 1/tax-web-control/client/api/v1/ticket?date=20240414T074129&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29127&fm=270316227388313&tin=02508201610067®Number=0000138879044617&sum=60000 [07:41:22]OFD Sender: Processing packet 29127 [packets to send 8, broken 7] [07:41:22]ProducePacketName [07:41:22]name=ofd_packets/00029127 [07:41:22]OFD Sender: To server: pG, [07:41:22]CommunicateWithHost lk.salyk.kg:30040 [07:41:22]ConnectInit lk.salyk.kg [07:41:22]written 0, free lines is 4095 [07:41:22]Connected sock=10 [07:41:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 AD 1F 04 01 87 23 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 25 00 00 00 F4 03 04 00 A9 88 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C7 71 00 00 35 04 06 00 F5 D9 E6 B5 E3 99 D9 91 97 E9 51 84 FC 89 [07:41:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 40 9B 47 00 EA 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 39 36 33 31 35 34 10 04 04 00 C7 71 00 00 F4 03 04 00 4E 33 1B 66 B6 04 01 00 00 7C C3 06 63 37 9F C8 A3 [07:41:22]CommunicateWithHost err = 0 [07:41:22]CheckOFDResponse [07:41:22]1017 (14) - 77093643461234 [07:41:22]1041 (16) - 0000000000963154 [07:41:22]1040 (4) - 29127 [07:41:22]1012 (4) - 14.04.2024 01:37 [07:41:22]1206 (1) - 0 [07:41:22]OFD Sender: Remove packet 29127 [07:41:22]ProducePacketName [07:41:22]name=ofd_packets/00029127 [07:41:22]NVStorageDeleteData [07:41:23]Write to MH i2c: 01 00 00 F0 7A 6A [07:41:23]Write i2c OK [07:41:23]MH_I2C_Read... [07:41:23]Read from MH i2c: 01 [07:41:23]MH_I2C_Read... [07:41:23]Read from MH i2c: 01 07 00 [07:41:23]MH_I2C_Read... [07:41:23]Read from MH i2c: 01 07 00 F0 7A 00 00 00 00 00 C8 0C 45 [07:41:23]RasterBufferAndPrint [07:41:23]line [07:41:23]line [07:41:23]line [07:41:23]line [07:41:23]line [07:41:23]written 0, free lines is 3287 [07:41:23]MH_Cut [07:41:23]Write to MH i2c: D1 01 00 F7 7A 01 43 [07:41:23]Write i2c OK [07:41:23]MH_I2C_Read... [07:41:23]Read from MH i2c: D1 [07:41:23]MH_I2C_Read... [07:41:23]Read from MH i2c: D1 01 00 [07:41:23]MH_I2C_Read... [07:41:23]Read from MH i2c: D1 01 00 F7 7A 00 42 [07:41:23]Write to MH i2c: 01 00 00 F8 7A 72 [07:41:23]Write i2c OK [07:41:23]MH_I2C_Read... [07:41:23]OFD Sender: No OFD packet to send [07:41:23]*** Cut start [07:41:23]*** Partial cut [07:41:23]*** CUTSNS_PIN = 1 [07:41:23]*** CUTSNS_PIN = 0 [07:41:24]*** Brake cut motor [07:41:24]Read from MH i2c: 01 [07:41:24]MH_I2C_Read... [07:41:24]*** Stop cut motor [07:41:24]*** Cut end [07:41:24]Read from MH i2c: 01 07 00 [07:41:24]MH_I2C_Read... [07:41:24]Read from MH i2c: 01 07 00 F8 7A 00 00 00 00 00 FF 0F 87 [07:41:24]process_action close_receipt done [07:41:24]requested_data is exist [07:41:24]produce_requested_data [07:41:24]requested_item fm.sn is exist - process it [07:41:24]wFMCommunicate request_size=4 [07:41:24]MH_SAM_APDU [07:41:24]CAPDU: 80 11 00 00 [07:41:24]Write to MH i2c: E2 08 00 F9 7A 80 11 00 00 00 00 00 00 ED [07:41:24]Write i2c OK [07:41:24]MH_I2C_Read... [07:41:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:41:24]Read from MH i2c: E2 [07:41:24]MH_I2C_Read... [07:41:24]Read from MH i2c: E2 17 00 [07:41:24]MH_I2C_Read... [07:41:24]Read from MH i2c: E2 17 00 F9 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 3C [07:41:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:41:24]wFMCommunicate OK [07:41:24]requested_item fd.num is exist - process it [07:41:24]SAM_PROTO_GetFieldsCounters [07:41:24]wFMCommunicate request_size=4 [07:41:24]MH_SAM_APDU [07:41:24]CAPDU: 80 13 00 00 [07:41:24]Write to MH i2c: E2 08 00 FA 7A 80 13 00 00 00 00 00 00 F0 [07:41:24]Write i2c OK [07:41:24]MH_I2C_Read... [07:41:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:41:24]Read from MH i2c: E2 [07:41:24]MH_I2C_Read... [07:41:24]Read from MH i2c: E2 62 00 [07:41:24]MH_I2C_Read... [07:41:24]Read from MH i2c: E2 62 00 FA 7A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C7 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 49 [07:41:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C7 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:41:24]wFMCommunicate OK [07:41:24]SAM_PROTO_GetFieldsCounters done [07:41:24]requested_item shift.num is exist - process it [07:41:24]requested_item shift.opened is exist - process it [07:41:24]req_shift_opened [07:41:24]FM_GetShiftState [07:41:24]SAM_PROTO_GetShiftState [07:41:24]wFMCommunicate request_size=4 [07:41:24]MH_SAM_APDU [07:41:24]CAPDU: 80 13 01 00 [07:41:24]Write to MH i2c: E2 08 00 FB 7A 80 13 01 00 00 00 00 00 F2 [07:41:24]Write i2c OK [07:41:24]MH_I2C_Read... [07:41:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:41:24]Read from MH i2c: E2 [07:41:24]MH_I2C_Read... [07:41:24]Read from MH i2c: E2 0E 00 [07:41:24]MH_I2C_Read... [07:41:24]Read from MH i2c: E2 0E 00 FB 7A 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 9E [07:41:24]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [07:41:24]wFMCommunicate OK [07:41:24]SAM_PROTO_GetShiftState done [07:41:24]FM_GetShiftState done [07:41:24]req_shift_opened done [07:41:24]requested_item shift.open_date is exist - process it [07:41:24]req_shift_open_date [07:41:24]req_shift_open_date done [07:41:24]produce_requested_data done [07:41:24]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29127,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [07:41:24]process_action_free close_receipt [07:41:24]json_value_free [07:41:24]json_value_free done [07:41:24]process_json_proto returns [07:41:24]Send response to host [07:41:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29127,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [07:41:24]free response buf [07:41:24]execute_script done [07:41:24]execute_script returns [07:41:24]free content buf [07:41:24]Sock 7.Close socket [07:41:24]Sock 7.Thread stoped [07:41:28]OFD Sender: No OFD packet to send [07:41:33]OFD Sender: No OFD packet to send [07:41:38]OFD Sender: No OFD packet to send [07:41:43]OFD Sender: No OFD packet to send [07:41:48]OFD Sender: No OFD packet to send [07:41:53]OFD Sender: No OFD packet to send [07:41:58]OFD Sender: No OFD packet to send [07:42:03]OFD Sender: No OFD packet to send [07:42:08]OFD Sender: No OFD packet to send [07:42:13]OFD Sender: No OFD packet to send [07:42:18]OFD Sender: No OFD packet to send [07:42:23]OFD Sender: No OFD packet to send [07:42:28]OFD Sender: No OFD packet to send [07:42:33]OFD Sender: No OFD packet to send [07:42:38]OFD Sender: No OFD packet to send [07:42:43]OFD Sender: No OFD packet to send [07:42:48]OFD Sender: No OFD packet to send [07:42:53]OFD Sender: No OFD packet to send [07:42:58]OFD Sender: No OFD packet to send [07:43:03]OFD Sender: No OFD packet to send [07:43:08]OFD Sender: No OFD packet to send [07:43:13]OFD Sender: No OFD packet to send [07:43:18]OFD Sender: No OFD packet to send [07:43:23]OFD Sender: No OFD packet to send [07:43:28]OFD Sender: No OFD packet to send [07:43:33]OFD Sender: No OFD packet to send [07:43:38]OFD Sender: No OFD packet to send [07:43:43]OFD Sender: No OFD packet to send [07:43:48]OFD Sender: No OFD packet to send [07:43:53]OFD Sender: No OFD packet to send [07:43:58]OFD Sender: No OFD packet to send [07:44:03]OFD Sender: No OFD packet to send [07:44:08]OFD Sender: No OFD packet to send [07:44:13]OFD Sender: No OFD packet to send [07:44:18]OFD Sender: No OFD packet to send [07:44:23]OFD Sender: No OFD packet to send [07:44:28]OFD Sender: No OFD packet to send [07:44:33]OFD Sender: No OFD packet to send [07:44:38]OFD Sender: No OFD packet to send [07:44:43]OFD Sender: No OFD packet to send [07:44:48]OFD Sender: No OFD packet to send [07:44:53]OFD Sender: No OFD packet to send [07:44:58]OFD Sender: No OFD packet to send [07:45:03]OFD Sender: No OFD packet to send [07:45:08]OFD Sender: No OFD packet to send [07:45:13]OFD Sender: No OFD packet to send [07:45:18]OFD Sender: No OFD packet to send [07:45:23]OFD Sender: No OFD packet to send [07:45:28]OFD Sender: No OFD packet to send [07:45:33]OFD Sender: No OFD packet to send [07:45:38]OFD Sender: No OFD packet to send [07:45:43]OFD Sender: No OFD packet to send [07:45:48]OFD Sender: No OFD packet to send [07:45:53]OFD Sender: No OFD packet to send [07:45:58]OFD Sender: No OFD packet to send [07:46:03]OFD Sender: No OFD packet to send [07:46:08]OFD Sender: No OFD packet to send [07:46:13]OFD Sender: No OFD packet to send [07:46:18]OFD Sender: No OFD packet to send [07:46:23]OFD Sender: No OFD packet to send [07:46:28]OFD Sender: No OFD packet to send [07:46:33]OFD Sender: No OFD packet to send [07:46:38]OFD Sender: No OFD packet to send [07:46:43]OFD Sender: No OFD packet to send [07:46:48]OFD Sender: No OFD packet to send [07:46:53]OFD Sender: No OFD packet to send [07:46:58]OFD Sender: No OFD packet to send [07:47:03]OFD Sender: No OFD packet to send [07:47:08]OFD Sender: No OFD packet to send [07:47:13]OFD Sender: No OFD packet to send [07:47:18]OFD Sender: No OFD packet to send [07:47:23]OFD Sender: No OFD packet to send [07:47:28]OFD Sender: No OFD packet to send [07:47:33]OFD Sender: No OFD packet to send [07:47:38]OFD Sender: No OFD packet to send [07:47:43]OFD Sender: No OFD packet to send [07:47:48]OFD Sender: No OFD packet to send [07:47:53]OFD Sender: No OFD packet to send [07:47:58]OFD Sender: No OFD packet to send [07:48:03]OFD Sender: No OFD packet to send [07:48:08]OFD Sender: No OFD packet to send [07:48:10]accept exits with 9 [07:48:10]New connection [07:48:10]New thread 3066928484 created [07:48:10]Thread 3066785124 joined [07:48:10]Waiting for new connection... [07:48:10] Sock 9.Parse request [07:48:10]Sock 9.Check first char [07:48:10]Sock 9.First char is OK [07:48:10]request: POST /json_proto HTTP/1.0 [07:48:10]Method: POST [07:48:10]URL: /json_proto [07:48:10]Method is POST - this is cgi request [07:48:10]url: /json_proto [07:48:10]query_string will be loaded in cgi processing [07:48:10]execute_cgi json_proto POST (null) [07:48:10]execute_cgi path=json_proto method=POST [07:48:10]POST find Content-Length [07:48:10]Host: 172.17.33.3:8080 [07:48:10]Content-Length: 682 [07:48:10]Content-Type: application/json [07:48:10] [07:48:10]POST finish read [07:48:10]Found Content-Length = 682 [07:48:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347496", "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:48:10]execute_script... [07:48: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)347496", "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:48:10]POST & json_proto [07:48:10]process_json_proto [07:48:10]json parsed OK: [07:48:10]protocol is kg_v1.0 [07:48:10]action value=close_receipt [07:48:10]process_action close_receipt [07:48:10]cmd_close_receipt [07:48:10]MH_GetDate [07:48:10]Write to MH i2c: F0 00 00 FC 7A 65 [07:48:10]Write i2c OK [07:48:10]MH_I2C_Read... [07:48:10]Read from MH i2c: F0 [07:48:10]MH_I2C_Read... [07:48:10]Read from MH i2c: F0 09 00 [07:48:10]MH_I2C_Read... [07:48:10]Read from MH i2c: F0 09 00 FC 7A 00 43 8A 1B 66 23 5B 8F 65 2E [07:48:10]GetLastDocTimeStamp 1713080489 [07:48:10]current date 1713080899 [07:48:10]FM_GetShiftState [07:48:10]SAM_PROTO_GetShiftState [07:48:10]wFMCommunicate request_size=4 [07:48:10]MH_SAM_APDU [07:48:10]CAPDU: 80 13 01 00 [07:48:10]Write to MH i2c: E2 08 00 FD 7A 80 13 01 00 00 00 00 00 F4 [07:48:10]Write i2c OK [07:48:10]MH_I2C_Read... [07:48:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:48:10]Read from MH i2c: E2 [07:48:10]MH_I2C_Read... [07:48:10]Read from MH i2c: E2 0E 00 [07:48:10]MH_I2C_Read... [07:48:10]Read from MH i2c: E2 0E 00 FD 7A 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 A0 [07:48:10]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [07:48:10]wFMCommunicate OK [07:48:10]SAM_PROTO_GetShiftState done [07:48:10]FM_GetShiftState done [07:48:10]opened in 1713053951 [07:48:10]opened+sec_in_day 1713140351 [07:48:10]quantity*price = 100050 [07:48:10]sum+1 = 100052 [07:48:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 38 14.04.2024 07:48 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29128 ФПД: 183697431553343 1/tax-web-control/client/api/v1/ticket?date=20240414T074819&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29128&fm=183697431553343&tin=02508201610067®Number=0000138879044617&sum=100000 [07:48:11]StoreToDocumentArchive [07:48:11]shift 116 fd 29128 [07:48:11]save to /storage/0116/doc_00029128 [07:48:11]save last doc name /storage/0116/doc_00029128 to /storage/kkm_last_doc_name [07:48:11]save OK [07:48:11]Clear old archive folders... [07:48:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:48:11]tlvbuf is 011F84C0 [07:48:11]SAM_PROTO_ClearQueue [07:48:11]wFMCommunicate request_size=4 [07:48:11]MH_SAM_APDU [07:48:11]CAPDU: 80 09 00 00 [07:48:11]Write to MH i2c: E2 08 00 0A 7B 80 09 00 00 00 00 00 00 F7 [07:48:11]Write i2c OK [07:48:11]MH_I2C_Read... [07:48:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:48:11]Read from MH i2c: E2 [07:48:11]MH_I2C_Read... [07:48:11]Read from MH i2c: E2 03 00 [07:48:11]MH_I2C_Read... [07:48:11]Read from MH i2c: E2 03 00 0A 7B 00 90 00 F9 [07:48:11]RAPDU: 90 00 [07:48:11]wFMCommunicate OK [07:48:11]SAM_PROTO_ClearQueue done [07:48:11]KKMCreateOFDPacket [07:48:11]OFDProtocolAddRootSTLVToBuf [07:48:11]FM_MakeSignedData [07:48:11]FM_MakeSignedData [07:48:11]SAM_PROTO_SignData [07:48:11]wFMCommunicate request_size=4 [07:48:11]MH_SAM_APDU [07:48:11]CAPDU: 80 0D 01 02 [07:48:11]Write to MH i2c: E2 08 00 0B 7B 80 0D 01 02 00 00 00 00 FF [07:48:11]Write i2c OK [07:48:11]MH_I2C_Read... [07:48:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:48:11]Read from MH i2c: E2 [07:48:11]MH_I2C_Read... [07:48:11]Read from MH i2c: E2 03 00 [07:48:11]MH_I2C_Read... [07:48:11]Read from MH i2c: E2 03 00 0B 7B 00 90 00 FA [07:48:11]RAPDU: 90 00 [07:48:11]wFMCommunicate OK [07:48:11]wFMCommunicate request_size=255 [07:48:11]MH_SAM_APDU [07:48: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 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 00 00 00 F4 03 04 00 43 8A 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C8 71 00 00 35 04 06 00 A7 [07:48:11]Write to MH i2c: E2 02 01 0C 7B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 00 00 00 F4 03 04 00 43 8A 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C8 71 00 00 35 04 06 00 A7 00 00 F3 [07:48:11]Write i2c OK [07:48:11]MH_I2C_Read... [07:48:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:48:12]Read from MH i2c: E2 [07:48:12]MH_I2C_Read... [07:48:12]Read from MH i2c: E2 03 00 [07:48:12]MH_I2C_Read... [07:48:12]Read from MH i2c: E2 03 00 0C 7B 00 90 00 FB [07:48:12]RAPDU: 90 00 [07:48:12]wFMCommunicate OK [07:48:12]wFMCommunicate request_size=10 [07:48:12]MH_SAM_APDU [07:48:12]CAPDU: 80 0D 02 02 05 12 64 27 65 3F [07:48:12]Write to MH i2c: E2 0D 00 0D 7B 80 0D 02 02 05 00 12 64 27 65 3F 00 00 4D [07:48:12]Write i2c OK [07:48:12]MH_I2C_Read... [07:48:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:48:12]Read from MH i2c: E2 [07:48:12]MH_I2C_Read... [07:48:12]Read from MH i2c: E2 03 00 [07:48:12]MH_I2C_Read... [07:48:12]Read from MH i2c: E2 03 00 0D 7B 00 90 00 FC [07:48:12]RAPDU: 90 00 [07:48:12]wFMCommunicate OK [07:48:12]wFMCommunicate request_size=4 [07:48:12]MH_SAM_APDU [07:48:12]CAPDU: 80 0D 03 02 [07:48:12]Write to MH i2c: E2 08 00 0E 7B 80 0D 03 02 00 00 00 00 04 [07:48:12]Write i2c OK [07:48:12]MH_I2C_Read... [07:48:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:48:12]Read from MH i2c: E2 [07:48:12]MH_I2C_Read... [07:48:12]Read from MH i2c: E2 0B 00 [07:48:12]MH_I2C_Read... [07:48:12]Read from MH i2c: E2 0B 00 0E 7B 00 98 16 66 E6 79 A9 88 2E 90 00 D7 [07:48:12]RAPDU: 98 16 66 E6 79 A9 88 2E 90 00 [07:48:12]wFMCommunicate OK [07:48:12]SAM_PROTO_SignData done [07:48:12]FM_MakeSignedData done [07:48:12]CreateOFDProtocolMessage [07:48:12]wFMCommunicate request_size=4 [07:48:12]MH_SAM_APDU [07:48:12]CAPDU: 80 11 00 00 [07:48:12]Write to MH i2c: E2 08 00 0F 7B 80 11 00 00 00 00 00 00 04 [07:48:12]Write i2c OK [07:48:12]MH_I2C_Read... [07:48:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:48:12]Read from MH i2c: E2 [07:48:12]MH_I2C_Read... [07:48:12]Read from MH i2c: E2 17 00 [07:48:12]MH_I2C_Read... [07:48:12]Read from MH i2c: E2 17 00 0F 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 53 [07:48:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:48:12]wFMCommunicate OK [07:48:12]CreateOFDProtocolMessage done [07:48:12]OFDSenderStorePacket 29128 [07:48:12]StoreOFDPacket docnum=29128 [07:48:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 71 BE 07 01 7F 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 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 00 00 00 F4 03 04 00 43 8A 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C8 71 00 00 35 04 06 00 A7 12 64 27 65 3F 98 16 66 E6 79 A9 88 2E [07:48:12]CheckFolder [07:48:12]dirname=/storage/ofd_packets [07:48:12]CheckFolder done [07:48:12]ProducePacketName [07:48:12]name=ofd_packets/00029128 [07:48:12]NVStorageSaveData ofd_packets/00029128 [07:48:12]File name is /storage/ofd_packets/00029128 [07:48:12]Write 301 bytes [07:48:12]NVStorageSaveData done [07:48:12]OFDSenderStorePacket done [07:48:12]KKMCreateOFDPacket done [07:48:12]NVStorageSaveData kkm_last_timestamp [07:48:12]File name is /storage/kkm_last_timestamp [07:48:12]Write 4 bytes [07:48:12]NVStorageSaveData done [07:48:12]ExternCall_PrintAddStr [07:48:12]wPrintStart [07:48:12]Write to MH i2c: 01 00 00 10 7B 8B [07:48:12]Write i2c OK [07:48:12]MH_I2C_Read... [07:48:12]Read from MH i2c: 01 [07:48:12]MH_I2C_Read... [07:48:12]Read from MH i2c: 01 07 00 [07:48:12]MH_I2C_Read... [07:48:12]Read from MH i2c: 01 07 00 10 7B 00 00 00 00 00 FF 0F A0 [07:48:12]RasterBufferAndPrint [07:48:12]line Счет N : (1)347496 [07:48:12]line ИНН: 02508201610067 [07:48:12]line Контрольно-Кассовый Чек [07:48:12]line ПРОДАЖА [07:48:12]line ТРК (МРК, ГНК) : 42 [07:48:12]line Товар: 2710124130 [07:48:12]line Аи-92-К-5 [07:48:12]line 15.560 * 64.30 [07:48:12]line = 1000.51 [07:48:12]line НДС 12% НСП 1% [07:48:12]line > о реализуемом товаре [07:48:12]line ОКРУГЛЕНИЕ: -0.51 [07:48:12]line ИТОГО: 1000.00 [07:48:12]line Внесено: 1000.00 [07:48:12]line СДАЧА: 0.00 [07:48:12]line НСП 1% : 8.85 [07:48:12]line НДС 12% : 106.25 [07:48:12]line Наличными: 1000.00 [07:48:12]line Безнал.: 0.00 [07:48:12]line Место: АЗС № 108 "Партнер Нефть" [07:48:12]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [07:48:12]line СНО: Общий режим [07:48:12]line Чек 38 14.04.2024 07:48 [07:48:12]line Смена: 116 ФФД: 1.0 [07:48:12]line ЗНМ: 0300000027 [07:48:12]line РНМ: 0000138879044617 [07:48:12]line Версия ККМ: 001 [07:48:12]line ФМ: 0000000000963154 [07:48:12]line ФД: 29128 [07:48:12]line ФПД: 183697431553343 [07:48:12]line 1/tax-web-control/client/api/v1/ticket?date=20240414T074819&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29128&fm=183697431553343&tin=02508201610067®Number=0000138879044617&sum=100000 [07:48:12]OFD Sender: Processing packet 29128 [packets to send 8, broken 7] [07:48:12]ProducePacketName [07:48:12]name=ofd_packets/00029128 [07:48:12]OFD Sender: To server: pG, [07:48:12]CommunicateWithHost lk.salyk.kg:30040 [07:48:12]ConnectInit lk.salyk.kg [07:48:12]written 0, free lines is 4095 [07:48:12]Connected sock=10 [07:48:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 71 BE 07 01 7F 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 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 00 00 00 F4 03 04 00 43 8A 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C8 71 00 00 35 04 06 00 A7 12 64 27 65 3F 98 16 66 E6 79 A9 88 2E [07:48:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 1F 38 47 00 83 C4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C8 71 00 00 F4 03 04 00 E8 34 1B 66 B6 04 01 00 00 49 8F CE 88 33 22 EC 0F [07:48:13]CommunicateWithHost err = 0 [07:48:13]CheckOFDResponse [07:48:13]1017 (14) - 77093643461234 [07:48:13]1041 (16) - 0000000000963154 [07:48:13]1040 (4) - 29128 [07:48:13]1012 (4) - 14.04.2024 01:44 [07:48:13]1206 (1) - 0 [07:48:13]OFD Sender: Remove packet 29128 [07:48:13]ProducePacketName [07:48:13]name=ofd_packets/00029128 [07:48:13]NVStorageDeleteData [07:48:13]Write to MH i2c: 01 00 00 3A 7B B5 [07:48:13]Write i2c OK [07:48:13]MH_I2C_Read... [07:48:13]Read from MH i2c: 01 [07:48:13]MH_I2C_Read... [07:48:13]Read from MH i2c: 01 07 00 [07:48:13]MH_I2C_Read... [07:48:13]Read from MH i2c: 01 07 00 3A 7B 00 00 00 00 00 CC 0C 94 [07:48:13]RasterBufferAndPrint [07:48:13]line [07:48:13]line [07:48:13]line [07:48:13]line [07:48:13]line [07:48:13]written 0, free lines is 3282 [07:48:13]MH_Cut [07:48:13]Write to MH i2c: D1 01 00 41 7B 01 8E [07:48:13]Write i2c OK [07:48:13]MH_I2C_Read... [07:48:13]Read from MH i2c: D1 [07:48:13]MH_I2C_Read... [07:48:13]Read from MH i2c: D1 01 00 [07:48:13]MH_I2C_Read... [07:48:13]Read from MH i2c: D1 01 00 41 7B 00 8D [07:48:13]Write to MH i2c: 01 00 00 42 7B BD [07:48:13]Write i2c OK [07:48:13]MH_I2C_Read... [07:48:13]OFD Sender: No OFD packet to send [07:48:14]*** Cut start [07:48:14]*** Partial cut [07:48:14]*** CUTSNS_PIN = 1 [07:48:14]*** CUTSNS_PIN = 0 [07:48:14]*** Brake cut motor [07:48:14]Read from MH i2c: 01 [07:48:14]MH_I2C_Read... [07:48:14]*** Stop cut motor [07:48:14]*** Cut end [07:48:14]Read from MH i2c: 01 07 00 [07:48:14]MH_I2C_Read... [07:48:14]Read from MH i2c: 01 07 00 42 7B 00 00 00 00 00 FF 0F D2 [07:48:14]process_action close_receipt done [07:48:14]requested_data is exist [07:48:14]produce_requested_data [07:48:14]requested_item fm.sn is exist - process it [07:48:14]wFMCommunicate request_size=4 [07:48:14]MH_SAM_APDU [07:48:14]CAPDU: 80 11 00 00 [07:48:14]Write to MH i2c: E2 08 00 43 7B 80 11 00 00 00 00 00 00 38 [07:48:14]Write i2c OK [07:48:14]MH_I2C_Read... [07:48:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:48:14]Read from MH i2c: E2 [07:48:14]MH_I2C_Read... [07:48:14]Read from MH i2c: E2 17 00 [07:48:14]MH_I2C_Read... [07:48:14]Read from MH i2c: E2 17 00 43 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 87 [07:48:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:48:14]wFMCommunicate OK [07:48:14]requested_item fd.num is exist - process it [07:48:14]SAM_PROTO_GetFieldsCounters [07:48:14]wFMCommunicate request_size=4 [07:48:14]MH_SAM_APDU [07:48:14]CAPDU: 80 13 00 00 [07:48:14]Write to MH i2c: E2 08 00 44 7B 80 13 00 00 00 00 00 00 3B [07:48:14]Write i2c OK [07:48:14]MH_I2C_Read... [07:48:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:48:14]Read from MH i2c: E2 [07:48:14]MH_I2C_Read... [07:48:14]Read from MH i2c: E2 62 00 [07:48:14]MH_I2C_Read... [07:48:14]Read from MH i2c: E2 62 00 44 7B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C8 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 98 [07:48:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C8 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:48:14]wFMCommunicate OK [07:48:14]SAM_PROTO_GetFieldsCounters done [07:48:14]requested_item shift.num is exist - process it [07:48:14]requested_item shift.opened is exist - process it [07:48:14]req_shift_opened [07:48:14]FM_GetShiftState [07:48:14]SAM_PROTO_GetShiftState [07:48:14]wFMCommunicate request_size=4 [07:48:14]MH_SAM_APDU [07:48:14]CAPDU: 80 13 01 00 [07:48:14]Write to MH i2c: E2 08 00 45 7B 80 13 01 00 00 00 00 00 3D [07:48:14]Write i2c OK [07:48:14]MH_I2C_Read... [07:48:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:48:14]Read from MH i2c: E2 [07:48:14]MH_I2C_Read... [07:48:14]Read from MH i2c: E2 0E 00 [07:48:14]MH_I2C_Read... [07:48:14]Read from MH i2c: E2 0E 00 45 7B 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 E9 [07:48:14]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [07:48:14]wFMCommunicate OK [07:48:14]SAM_PROTO_GetShiftState done [07:48:14]FM_GetShiftState done [07:48:14]req_shift_opened done [07:48:14]requested_item shift.open_date is exist - process it [07:48:14]req_shift_open_date [07:48:14]req_shift_open_date done [07:48:14]produce_requested_data done [07:48:14]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29128,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [07:48:14]process_action_free close_receipt [07:48:14]json_value_free [07:48:14]json_value_free done [07:48:14]process_json_proto returns [07:48:14]Send response to host [07:48:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29128,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [07:48:14]free response buf [07:48:14]execute_script done [07:48:14]execute_script returns [07:48:14]free content buf [07:48:14]Sock 9.Close socket [07:48:14]Sock 9.Thread stoped [07:48:18]OFD Sender: No OFD packet to send [07:48:23]OFD Sender: No OFD packet to send [07:48:28]OFD Sender: No OFD packet to send [07:48:33]OFD Sender: No OFD packet to send [07:48:38]OFD Sender: No OFD packet to send [07:48:43]OFD Sender: No OFD packet to send [07:48:48]OFD Sender: No OFD packet to send [07:48:53]OFD Sender: No OFD packet to send [07:48:58]OFD Sender: No OFD packet to send [07:49:03]OFD Sender: No OFD packet to send [07:49:08]OFD Sender: No OFD packet to send [07:49:13]OFD Sender: No OFD packet to send [07:49:14]accept exits with 7 [07:49:14]New connection [07:49:14]New thread 3066785124 created [07:49:14]Thread 3066928484 joined [07:49:14]Waiting for new connection... [07:49:14] Sock 7.Parse request [07:49:14]Sock 7.Check first char [07:49:14]Sock 7.First char is OK [07:49:14]request: POST /json_proto HTTP/1.0 [07:49:14]Method: POST [07:49:14]URL: /json_proto [07:49:14]Method is POST - this is cgi request [07:49:14]url: /json_proto [07:49:14]query_string will be loaded in cgi processing [07:49:14]execute_cgi json_proto POST (null) [07:49:14]execute_cgi path=json_proto method=POST [07:49:14]POST find Content-Length [07:49:14]Host: 172.17.33.3:8080 [07:49:14]Content-Length: 841 [07:49:14]Content-Type: application/json [07:49:14] [07:49:14]POST finish read [07:49:14]Found Content-Length = 841 [07:49:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347497", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 700.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:49:14]execute_script... [07:49: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)347497", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 700.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:49:14]POST & json_proto [07:49:14]process_json_proto [07:49:14]json parsed OK: [07:49:14]protocol is kg_v1.0 [07:49:14]action value=close_receipt [07:49:14]process_action close_receipt [07:49:14]cmd_close_receipt [07:49:14]MH_GetDate [07:49:14]Write to MH i2c: F0 00 00 46 7B B0 [07:49:14]Write i2c OK [07:49:14]MH_I2C_Read... [07:49:14]Read from MH i2c: F0 [07:49:14]MH_I2C_Read... [07:49:14]Read from MH i2c: F0 09 00 [07:49:14]MH_I2C_Read... [07:49:14]Read from MH i2c: F0 09 00 46 7B 00 83 8A 1B 66 23 5B 8F 65 B9 [07:49:14]GetLastDocTimeStamp 1713080899 [07:49:14]current date 1713080963 [07:49:14]FM_GetShiftState [07:49:14]SAM_PROTO_GetShiftState [07:49:14]wFMCommunicate request_size=4 [07:49:14]MH_SAM_APDU [07:49:14]CAPDU: 80 13 01 00 [07:49:14]Write to MH i2c: E2 08 00 47 7B 80 13 01 00 00 00 00 00 3F [07:49:14]Write i2c OK [07:49:14]MH_I2C_Read... [07:49:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:49:14]Read from MH i2c: E2 [07:49:14]MH_I2C_Read... [07:49:14]Read from MH i2c: E2 0E 00 [07:49:14]MH_I2C_Read... [07:49:14]Read from MH i2c: E2 0E 00 47 7B 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 EB [07:49:14]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [07:49:14]wFMCommunicate OK [07:49:14]SAM_PROTO_GetShiftState done [07:49:14]FM_GetShiftState done [07:49:14]opened in 1713053951 [07:49:14]opened+sec_in_day 1713140351 [07:49:14]quantity*price = 70022 [07:49:14]sum+1 = 70024 [07:49:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.23 НСП 1% : 6.20 НДС 12% : 74.36 Наличными: 0.00 Безнал.: 700.23 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 39 14.04.2024 07:49 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 29129 ФПД: 19526539686280 1/tax-web-control/client/api/v1/ticket?date=20240414T074923&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29129&fm=19526539686280&tin=02508201610067®Number=0000138879044617&sum=70023 [07:49:15]StoreToDocumentArchive [07:49:15]shift 116 fd 29129 [07:49:15]save to /storage/0116/doc_00029129 [07:49:15]save last doc name /storage/0116/doc_00029129 to /storage/kkm_last_doc_name [07:49:15]save OK [07:49:15]Clear old archive folders... [07:49:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:49:15]tlvbuf is 011EC860 [07:49:15]SAM_PROTO_ClearQueue [07:49:15]wFMCommunicate request_size=4 [07:49:15]MH_SAM_APDU [07:49:15]CAPDU: 80 09 00 00 [07:49:15]Write to MH i2c: E2 08 00 54 7B 80 09 00 00 00 00 00 00 41 [07:49:15]Write i2c OK [07:49:15]MH_I2C_Read... [07:49:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:49:15]Read from MH i2c: E2 [07:49:15]MH_I2C_Read... [07:49:15]Read from MH i2c: E2 03 00 [07:49:15]MH_I2C_Read... [07:49:15]Read from MH i2c: E2 03 00 54 7B 00 90 00 43 [07:49:15]RAPDU: 90 00 [07:49:15]wFMCommunicate OK [07:49:15]SAM_PROTO_ClearQueue done [07:49:15]KKMCreateOFDPacket [07:49:15]OFDProtocolAddRootSTLVToBuf [07:49:15]FM_MakeSignedData [07:49:15]FM_MakeSignedData [07:49:15]SAM_PROTO_SignData [07:49:15]wFMCommunicate request_size=4 [07:49:15]MH_SAM_APDU [07:49:15]CAPDU: 80 0D 01 02 [07:49:15]Write to MH i2c: E2 08 00 55 7B 80 0D 01 02 00 00 00 00 49 [07:49:15]Write i2c OK [07:49:15]MH_I2C_Read... [07:49:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:49:16]Read from MH i2c: E2 [07:49:16]MH_I2C_Read... [07:49:16]Read from MH i2c: E2 03 00 [07:49:16]MH_I2C_Read... [07:49:16]Read from MH i2c: E2 03 00 55 7B 00 90 00 44 [07:49:16]RAPDU: 90 00 [07:49:16]wFMCommunicate OK [07:49:16]wFMCommunicate request_size=255 [07:49:16]MH_SAM_APDU [07:49: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 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 27 00 00 00 F4 03 04 00 83 8A 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C9 71 00 00 35 04 06 00 11 [07:49:16]Write to MH i2c: E2 02 01 56 7B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 27 00 00 00 F4 03 04 00 83 8A 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C9 71 00 00 35 04 06 00 11 00 00 31 [07:49:16]Write i2c OK [07:49:16]MH_I2C_Read... [07:49:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:49:16]Read from MH i2c: E2 [07:49:16]MH_I2C_Read... [07:49:16]Read from MH i2c: E2 03 00 [07:49:16]MH_I2C_Read... [07:49:16]Read from MH i2c: E2 03 00 56 7B 00 90 00 45 [07:49:16]RAPDU: 90 00 [07:49:16]wFMCommunicate OK [07:49:16]wFMCommunicate request_size=10 [07:49:16]MH_SAM_APDU [07:49:16]CAPDU: 80 0D 02 02 05 C2 60 76 31 88 [07:49:16]Write to MH i2c: E2 0D 00 57 7B 80 0D 02 02 05 00 C2 60 76 31 88 00 00 A7 [07:49:16]Write i2c OK [07:49:16]MH_I2C_Read... [07:49:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:49:16]Read from MH i2c: E2 [07:49:16]MH_I2C_Read... [07:49:16]Read from MH i2c: E2 03 00 [07:49:16]MH_I2C_Read... [07:49:16]Read from MH i2c: E2 03 00 57 7B 00 90 00 46 [07:49:16]RAPDU: 90 00 [07:49:16]wFMCommunicate OK [07:49:16]wFMCommunicate request_size=4 [07:49:16]MH_SAM_APDU [07:49:16]CAPDU: 80 0D 03 02 [07:49:16]Write to MH i2c: E2 08 00 58 7B 80 0D 03 02 00 00 00 00 4E [07:49:16]Write i2c OK [07:49:16]MH_I2C_Read... [07:49:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:49:16]Read from MH i2c: E2 [07:49:16]MH_I2C_Read... [07:49:16]Read from MH i2c: E2 0B 00 [07:49:16]MH_I2C_Read... [07:49:16]Read from MH i2c: E2 0B 00 58 7B 00 5E B9 2F 16 6F A6 70 F4 90 00 24 [07:49:16]RAPDU: 5E B9 2F 16 6F A6 70 F4 90 00 [07:49:16]wFMCommunicate OK [07:49:16]SAM_PROTO_SignData done [07:49:16]FM_MakeSignedData done [07:49:16]CreateOFDProtocolMessage [07:49:16]wFMCommunicate request_size=4 [07:49:16]MH_SAM_APDU [07:49:16]CAPDU: 80 11 00 00 [07:49:16]Write to MH i2c: E2 08 00 59 7B 80 11 00 00 00 00 00 00 4E [07:49:16]Write i2c OK [07:49:16]MH_I2C_Read... [07:49:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:49:16]Read from MH i2c: E2 [07:49:16]MH_I2C_Read... [07:49:16]Read from MH i2c: E2 17 00 [07:49:16]MH_I2C_Read... [07:49:16]Read from MH i2c: E2 17 00 59 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 9D [07:49:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:49:16]wFMCommunicate OK [07:49:16]CreateOFDProtocolMessage done [07:49:16]OFDSenderStorePacket 29129 [07:49:16]StoreOFDPacket docnum=29129 [07:49:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 63 E7 07 01 47 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 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 27 00 00 00 F4 03 04 00 83 8A 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C9 71 00 00 35 04 06 00 11 C2 60 76 31 88 5E B9 2F 16 6F A6 70 F4 [07:49:16]CheckFolder [07:49:16]dirname=/storage/ofd_packets [07:49:16]CheckFolder done [07:49:16]ProducePacketName [07:49:16]name=ofd_packets/00029129 [07:49:16]NVStorageSaveData ofd_packets/00029129 [07:49:16]File name is /storage/ofd_packets/00029129 [07:49:16]Write 301 bytes [07:49:16]NVStorageSaveData done [07:49:16]OFDSenderStorePacket done [07:49:16]KKMCreateOFDPacket done [07:49:16]NVStorageSaveData kkm_last_timestamp [07:49:16]File name is /storage/kkm_last_timestamp [07:49:16]Write 4 bytes [07:49:16]NVStorageSaveData done [07:49:16]ExternCall_PrintAddStr [07:49:16]wPrintStart [07:49:16]Write to MH i2c: 01 00 00 5A 7B D5 [07:49:16]Write i2c OK [07:49:16]MH_I2C_Read... [07:49:16]Read from MH i2c: 01 [07:49:16]MH_I2C_Read... [07:49:16]Read from MH i2c: 01 07 00 [07:49:16]MH_I2C_Read... [07:49:16]Read from MH i2c: 01 07 00 5A 7B 00 00 00 00 00 FF 0F EA [07:49:16]RasterBufferAndPrint [07:49:16]line Счет N : (1)347497 [07:49:16]line ИНН: 02508201610067 [07:49:16]line Контрольно-Кассовый Чек [07:49:16]line ПРОДАЖА [07:49:16]line ТРК (МРК, ГНК) : 23 [07:49:16]line Товар: 2710124130 [07:49:16]line Аи-92-К-5 [07:49:16]line 10.890 * 64.30 [07:49:16]line = 700.23 [07:49:16]line НДС 12% НСП 1% [07:49:16]line > о реализуемом товаре [07:49:16]line ИТОГО: 700.23 [07:49:16]line НСП 1% : 6.20 [07:49:16]line НДС 12% : 74.36 [07:49:16]line Наличными: 0.00 [07:49:16]line Безнал.: 700.23 [07:49:16]line Место: АЗС № 108 "Партнер Нефть" [07:49:16]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [07:49:16]line СНО: Общий режим [07:49:16]line Чек 39 14.04.2024 07:49 [07:49:16]line Смена: 116 ФФД: 1.0 [07:49:16]line ЗНМ: 0300000027 [07:49:16]line РНМ: 0000138879044617 [07:49:16]line Версия ККМ: 001 [07:49:16]line Платежная система: АКБ Кыргызстан [07:49:16]line ФМ: 0000000000963154 [07:49:16]line ФД: 29129 [07:49:16]line ФПД: 19526539686280 [07:49:16]line 1/tax-web-control/client/api/v1/ticket?date=20240414T074923&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29129&fm=19526539686280&tin=02508201610067®Number=0000138879044617&sum=70023 [07:49:16]OFD Sender: Processing packet 29129 [packets to send 8, broken 7] [07:49:16]ProducePacketName [07:49:16]name=ofd_packets/00029129 [07:49:16]OFD Sender: To server: pG, [07:49:16]CommunicateWithHost lk.salyk.kg:30040 [07:49:16]ConnectInit lk.salyk.kg [07:49:16]written 0, free lines is 4095 [07:49:16]Connected sock=10 [07:49:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 63 E7 07 01 47 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 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 27 00 00 00 F4 03 04 00 83 8A 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C9 71 00 00 35 04 06 00 11 C2 60 76 31 88 5E B9 2F 16 6F A6 70 F4 [07:49:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 87 C3 47 00 3F F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C9 71 00 00 F4 03 04 00 28 35 1B 66 B6 04 01 00 00 B9 86 DE B4 72 9E DC 6A [07:49:17]CommunicateWithHost err = 0 [07:49:17]CheckOFDResponse [07:49:17]1017 (14) - 77093643461234 [07:49:17]1041 (16) - 0000000000963154 [07:49:17]1040 (4) - 29129 [07:49:17]1012 (4) - 14.04.2024 01:45 [07:49:17]1206 (1) - 0 [07:49:17]OFD Sender: Remove packet 29129 [07:49:17]ProducePacketName [07:49:17]name=ofd_packets/00029129 [07:49:17]NVStorageDeleteData [07:49:17]Write to MH i2c: 01 00 00 83 7B FE [07:49:17]Write i2c OK [07:49:17]MH_I2C_Read... [07:49:17]Read from MH i2c: 01 [07:49:17]MH_I2C_Read... [07:49:17]Read from MH i2c: 01 07 00 [07:49:17]MH_I2C_Read... [07:49:17]Read from MH i2c: 01 07 00 83 7B 00 00 00 00 00 E6 0C F7 [07:49:17]RasterBufferAndPrint [07:49:17]line [07:49:17]line [07:49:17]line [07:49:17]line [07:49:17]line [07:49:17]written 0, free lines is 3308 [07:49:17]MH_Cut [07:49:17]Write to MH i2c: D1 01 00 8A 7B 01 D7 [07:49:17]Write i2c OK [07:49:17]MH_I2C_Read... [07:49:17]Read from MH i2c: D1 [07:49:17]MH_I2C_Read... [07:49:17]Read from MH i2c: D1 01 00 [07:49:17]MH_I2C_Read... [07:49:17]Read from MH i2c: D1 01 00 8A 7B 00 D6 [07:49:17]Write to MH i2c: 01 00 00 8B 7B 06 [07:49:17]Write i2c OK [07:49:17]MH_I2C_Read... [07:49:17]OFD Sender: No OFD packet to send [07:49:18]*** Cut start [07:49:18]*** Partial cut [07:49:18]*** CUTSNS_PIN = 1 [07:49:18]*** CUTSNS_PIN = 0 [07:49:18]*** Brake cut motor [07:49:18]Read from MH i2c: 01 [07:49:18]MH_I2C_Read... [07:49:18]*** Stop cut motor [07:49:18]*** Cut end [07:49:18]Read from MH i2c: 01 07 00 [07:49:18]MH_I2C_Read... [07:49:18]Read from MH i2c: 01 07 00 8B 7B 00 00 00 00 00 FF 0F 1B [07:49:18]process_action close_receipt done [07:49:18]requested_data is exist [07:49:18]produce_requested_data [07:49:18]requested_item fm.sn is exist - process it [07:49:18]wFMCommunicate request_size=4 [07:49:18]MH_SAM_APDU [07:49:18]CAPDU: 80 11 00 00 [07:49:18]Write to MH i2c: E2 08 00 8C 7B 80 11 00 00 00 00 00 00 81 [07:49:18]Write i2c OK [07:49:18]MH_I2C_Read... [07:49:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:49:18]Read from MH i2c: E2 [07:49:18]MH_I2C_Read... [07:49:18]Read from MH i2c: E2 17 00 [07:49:18]MH_I2C_Read... [07:49:18]Read from MH i2c: E2 17 00 8C 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D0 [07:49:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:49:18]wFMCommunicate OK [07:49:18]requested_item fd.num is exist - process it [07:49:18]SAM_PROTO_GetFieldsCounters [07:49:18]wFMCommunicate request_size=4 [07:49:18]MH_SAM_APDU [07:49:18]CAPDU: 80 13 00 00 [07:49:18]Write to MH i2c: E2 08 00 8D 7B 80 13 00 00 00 00 00 00 84 [07:49:18]Write i2c OK [07:49:18]MH_I2C_Read... [07:49:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:49:18]Read from MH i2c: E2 [07:49:18]MH_I2C_Read... [07:49:18]Read from MH i2c: E2 62 00 [07:49:18]MH_I2C_Read... [07:49:18]Read from MH i2c: E2 62 00 8D 7B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C9 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 E5 [07:49:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C9 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:49:18]wFMCommunicate OK [07:49:18]SAM_PROTO_GetFieldsCounters done [07:49:18]requested_item shift.num is exist - process it [07:49:18]requested_item shift.opened is exist - process it [07:49:18]req_shift_opened [07:49:18]FM_GetShiftState [07:49:18]SAM_PROTO_GetShiftState [07:49:18]wFMCommunicate request_size=4 [07:49:18]MH_SAM_APDU [07:49:18]CAPDU: 80 13 01 00 [07:49:18]Write to MH i2c: E2 08 00 8E 7B 80 13 01 00 00 00 00 00 86 [07:49:18]Write i2c OK [07:49:18]MH_I2C_Read... [07:49:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:49:18]Read from MH i2c: E2 [07:49:18]MH_I2C_Read... [07:49:18]Read from MH i2c: E2 0E 00 [07:49:18]MH_I2C_Read... [07:49:18]Read from MH i2c: E2 0E 00 8E 7B 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 32 [07:49:18]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [07:49:18]wFMCommunicate OK [07:49:18]SAM_PROTO_GetShiftState done [07:49:18]FM_GetShiftState done [07:49:18]req_shift_opened done [07:49:18]requested_item shift.open_date is exist - process it [07:49:18]req_shift_open_date [07:49:18]req_shift_open_date done [07:49:18]produce_requested_data done [07:49:18]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29129,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [07:49:18]process_action_free close_receipt [07:49:18]json_value_free [07:49:18]json_value_free done [07:49:18]process_json_proto returns [07:49:18]Send response to host [07:49:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29129,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [07:49:18]free response buf [07:49:18]execute_script done [07:49:18]execute_script returns [07:49:18]free content buf [07:49:18]Sock 7.Close socket [07:49:18]Sock 7.Thread stoped [07:49:22]OFD Sender: No OFD packet to send [07:49:27]OFD Sender: No OFD packet to send [07:49:32]OFD Sender: No OFD packet to send [07:49:37]OFD Sender: No OFD packet to send [07:49:42]OFD Sender: No OFD packet to send [07:49:47]OFD Sender: No OFD packet to send [07:49:52]OFD Sender: No OFD packet to send [07:49:57]OFD Sender: No OFD packet to send [07:50:02]OFD Sender: No OFD packet to send [07:50:07]OFD Sender: No OFD packet to send [07:50:12]OFD Sender: No OFD packet to send [07:50:17]OFD Sender: No OFD packet to send [07:50:22]OFD Sender: No OFD packet to send [07:50:27]OFD Sender: No OFD packet to send [07:50:32]OFD Sender: No OFD packet to send [07:50:37]OFD Sender: No OFD packet to send [07:50:42]OFD Sender: No OFD packet to send [07:50:47]OFD Sender: No OFD packet to send [07:50:52]OFD Sender: No OFD packet to send [07:50:57]OFD Sender: No OFD packet to send [07:51:02]OFD Sender: No OFD packet to send [07:51:07]OFD Sender: No OFD packet to send [07:51:12]OFD Sender: No OFD packet to send [07:51:17]OFD Sender: No OFD packet to send [07:51:22]OFD Sender: No OFD packet to send [07:51:27]OFD Sender: No OFD packet to send [07:51:32]OFD Sender: No OFD packet to send [07:51:37]OFD Sender: No OFD packet to send [07:51:42]OFD Sender: No OFD packet to send [07:51:47]OFD Sender: No OFD packet to send [07:51:52]OFD Sender: No OFD packet to send [07:51:57]OFD Sender: No OFD packet to send [07:52:02]OFD Sender: No OFD packet to send [07:52:07]OFD Sender: No OFD packet to send [07:52:12]OFD Sender: No OFD packet to send [07:52:17]OFD Sender: No OFD packet to send [07:52:22]OFD Sender: No OFD packet to send [07:52:27]OFD Sender: No OFD packet to send [07:52:32]OFD Sender: No OFD packet to send [07:52:37]OFD Sender: No OFD packet to send [07:52:42]OFD Sender: No OFD packet to send [07:52:47]OFD Sender: No OFD packet to send [07:52:52]OFD Sender: No OFD packet to send [07:52:57]OFD Sender: No OFD packet to send [07:53:02]OFD Sender: No OFD packet to send [07:53:07]OFD Sender: No OFD packet to send [07:53:12]OFD Sender: No OFD packet to send [07:53:17]OFD Sender: No OFD packet to send [07:53:22]OFD Sender: No OFD packet to send [07:53:27]OFD Sender: No OFD packet to send [07:53:32]OFD Sender: No OFD packet to send [07:53:37]OFD Sender: No OFD packet to send [07:53:42]OFD Sender: No OFD packet to send [07:53:47]OFD Sender: No OFD packet to send [07:53:52]OFD Sender: No OFD packet to send [07:53:57]OFD Sender: No OFD packet to send [07:54:02]OFD Sender: No OFD packet to send [07:54:07]OFD Sender: No OFD packet to send [07:54:12]OFD Sender: No OFD packet to send [07:54:17]OFD Sender: No OFD packet to send [07:54:22]OFD Sender: No OFD packet to send [07:54:27]OFD Sender: No OFD packet to send [07:54:32]OFD Sender: No OFD packet to send [07:54:37]OFD Sender: No OFD packet to send [07:54:42]OFD Sender: No OFD packet to send [07:54:47]OFD Sender: No OFD packet to send [07:54:52]OFD Sender: No OFD packet to send [07:54:57]OFD Sender: No OFD packet to send [07:55:02]OFD Sender: No OFD packet to send [07:55:07]OFD Sender: No OFD packet to send [07:55:12]OFD Sender: No OFD packet to send [07:55:17]OFD Sender: No OFD packet to send [07:55:22]OFD Sender: No OFD packet to send [07:55:27]OFD Sender: No OFD packet to send [07:55:32]OFD Sender: No OFD packet to send [07:55:37]OFD Sender: No OFD packet to send [07:55:42]OFD Sender: No OFD packet to send [07:55:47]OFD Sender: No OFD packet to send [07:55:52]OFD Sender: No OFD packet to send [07:55:57]OFD Sender: No OFD packet to send [07:56:02]OFD Sender: No OFD packet to send [07:56:07]OFD Sender: No OFD packet to send [07:56:12]OFD Sender: No OFD packet to send [07:56:17]OFD Sender: No OFD packet to send [07:56:22]OFD Sender: No OFD packet to send [07:56:27]OFD Sender: No OFD packet to send [07:56:32]OFD Sender: No OFD packet to send [07:56:37]OFD Sender: No OFD packet to send [07:56:42]OFD Sender: No OFD packet to send [07:56:47]OFD Sender: No OFD packet to send [07:56:52]OFD Sender: No OFD packet to send [07:56:57]OFD Sender: No OFD packet to send [07:57:02]OFD Sender: No OFD packet to send [07:57:07]OFD Sender: No OFD packet to send [07:57:12]OFD Sender: No OFD packet to send [07:57:18]OFD Sender: No OFD packet to send [07:57:23]OFD Sender: No OFD packet to send [07:57:28]OFD Sender: No OFD packet to send [07:57:33]OFD Sender: No OFD packet to send [07:57:38]OFD Sender: No OFD packet to send [07:57:43]OFD Sender: No OFD packet to send [07:57:48]OFD Sender: No OFD packet to send [07:57:53]OFD Sender: No OFD packet to send [07:57:58]OFD Sender: No OFD packet to send [07:58:03]OFD Sender: No OFD packet to send [07:58:08]OFD Sender: No OFD packet to send [07:58:13]OFD Sender: No OFD packet to send [07:58:18]OFD Sender: No OFD packet to send [07:58:19]accept exits with 9 [07:58:19]New connection [07:58:19]New thread 3066928484 created [07:58:19]Thread 3066785124 joined [07:58:19]Waiting for new connection... [07:58:19] Sock 9.Parse request [07:58:19]Sock 9.Check first char [07:58:19]Sock 9.First char is OK [07:58:19]request: POST /json_proto HTTP/1.0 [07:58:19]Method: POST [07:58:19]URL: /json_proto [07:58:19]Method is POST - this is cgi request [07:58:19]url: /json_proto [07:58:19]query_string will be loaded in cgi processing [07:58:19]execute_cgi json_proto POST (null) [07:58:19]execute_cgi path=json_proto method=POST [07:58:19]POST find Content-Length [07:58:19]Host: 172.17.33.3:8080 [07:58:19]Content-Length: 678 [07:58:19]Content-Type: application/json [07:58:19] [07:58:19]POST finish read [07:58:19]Found Content-Length = 678 [07:58:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347499", "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 }]} ], "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" ] } } [07:58:19]execute_script... [07:58:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347499", "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 }]} ], "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" ] } } [07:58:19]POST & json_proto [07:58:19]process_json_proto [07:58:19]json parsed OK: [07:58:19]protocol is kg_v1.0 [07:58:19]action value=close_receipt [07:58:19]process_action close_receipt [07:58:19]cmd_close_receipt [07:58:19]MH_GetDate [07:58:19]Write to MH i2c: F0 00 00 8F 7B F9 [07:58:19]Write i2c OK [07:58:19]MH_I2C_Read... [07:58:19]Read from MH i2c: F0 [07:58:19]MH_I2C_Read... [07:58:19]Read from MH i2c: F0 09 00 [07:58:19]MH_I2C_Read... [07:58:19]Read from MH i2c: F0 09 00 8F 7B 00 A4 8C 1B 66 23 5B 8F 65 25 [07:58:19]GetLastDocTimeStamp 1713080963 [07:58:19]current date 1713081508 [07:58:19]FM_GetShiftState [07:58:19]SAM_PROTO_GetShiftState [07:58:19]wFMCommunicate request_size=4 [07:58:19]MH_SAM_APDU [07:58:19]CAPDU: 80 13 01 00 [07:58:19]Write to MH i2c: E2 08 00 90 7B 80 13 01 00 00 00 00 00 88 [07:58:19]Write i2c OK [07:58:19]MH_I2C_Read... [07:58:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:58:19]Read from MH i2c: E2 [07:58:19]MH_I2C_Read... [07:58:19]Read from MH i2c: E2 0E 00 [07:58:19]MH_I2C_Read... [07:58:19]Read from MH i2c: E2 0E 00 90 7B 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 34 [07:58:19]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [07:58:19]wFMCommunicate OK [07:58:19]SAM_PROTO_GetShiftState done [07:58:19]FM_GetShiftState done [07:58:19]opened in 1713053951 [07:58:19]opened+sec_in_day 1713140351 [07:58:19]quantity*price = 70022 [07:58:19]sum+1 = 70024 [07:58:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.36 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 40 14.04.2024 07:58 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29130 ФПД: 68168162575254 1/tax-web-control/client/api/v1/ticket?date=20240414T075828&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29130&fm=68168162575254&tin=02508201610067®Number=0000138879044617&sum=70000 [07:58:20]StoreToDocumentArchive [07:58:20]shift 116 fd 29130 [07:58:20]save to /storage/0116/doc_00029130 [07:58:20]save last doc name /storage/0116/doc_00029130 to /storage/kkm_last_doc_name [07:58:20]save OK [07:58:20]Clear old archive folders... [07:58:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:58:20]tlvbuf is 012F07F0 [07:58:20]SAM_PROTO_ClearQueue [07:58:20]wFMCommunicate request_size=4 [07:58:20]MH_SAM_APDU [07:58:20]CAPDU: 80 09 00 00 [07:58:20]Write to MH i2c: E2 08 00 9D 7B 80 09 00 00 00 00 00 00 8A [07:58:20]Write i2c OK [07:58:20]MH_I2C_Read... [07:58:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:58:20]Read from MH i2c: E2 [07:58:20]MH_I2C_Read... [07:58:20]Read from MH i2c: E2 03 00 [07:58:20]MH_I2C_Read... [07:58:20]Read from MH i2c: E2 03 00 9D 7B 00 90 00 8C [07:58:20]RAPDU: 90 00 [07:58:20]wFMCommunicate OK [07:58:20]SAM_PROTO_ClearQueue done [07:58:20]KKMCreateOFDPacket [07:58:20]OFDProtocolAddRootSTLVToBuf [07:58:20]FM_MakeSignedData [07:58:20]FM_MakeSignedData [07:58:20]SAM_PROTO_SignData [07:58:20]wFMCommunicate request_size=4 [07:58:20]MH_SAM_APDU [07:58:20]CAPDU: 80 0D 01 02 [07:58:20]Write to MH i2c: E2 08 00 9E 7B 80 0D 01 02 00 00 00 00 92 [07:58:20]Write i2c OK [07:58:20]MH_I2C_Read... [07:58:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:58:20]Read from MH i2c: E2 [07:58:20]MH_I2C_Read... [07:58:20]Read from MH i2c: E2 03 00 [07:58:20]MH_I2C_Read... [07:58:20]Read from MH i2c: E2 03 00 9E 7B 00 90 00 8D [07:58:20]RAPDU: 90 00 [07:58:20]wFMCommunicate OK [07:58:20]wFMCommunicate request_size=255 [07:58:20]MH_SAM_APDU [07:58: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 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 28 00 00 00 F4 03 04 00 A4 8C 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CA 71 00 00 35 04 06 00 3D [07:58:20]Write to MH i2c: E2 02 01 9F 7B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 28 00 00 00 F4 03 04 00 A4 8C 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CA 71 00 00 35 04 06 00 3D 00 00 9D [07:58:20]Write i2c OK [07:58:20]MH_I2C_Read... [07:58:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:58:20]Read from MH i2c: E2 [07:58:20]MH_I2C_Read... [07:58:20]Read from MH i2c: E2 03 00 [07:58:20]MH_I2C_Read... [07:58:20]Read from MH i2c: E2 03 00 9F 7B 00 90 00 8E [07:58:20]RAPDU: 90 00 [07:58:20]wFMCommunicate OK [07:58:20]wFMCommunicate request_size=10 [07:58:20]MH_SAM_APDU [07:58:20]CAPDU: 80 0D 02 02 05 FF A3 1D 83 96 [07:58:20]Write to MH i2c: E2 0D 00 A0 7B 80 0D 02 02 05 00 FF A3 1D 83 96 00 00 77 [07:58:20]Write i2c OK [07:58:20]MH_I2C_Read... [07:58:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:58:20]Read from MH i2c: E2 [07:58:20]MH_I2C_Read... [07:58:20]Read from MH i2c: E2 03 00 [07:58:20]MH_I2C_Read... [07:58:20]Read from MH i2c: E2 03 00 A0 7B 00 90 00 8F [07:58:20]RAPDU: 90 00 [07:58:20]wFMCommunicate OK [07:58:20]wFMCommunicate request_size=4 [07:58:20]MH_SAM_APDU [07:58:20]CAPDU: 80 0D 03 02 [07:58:20]Write to MH i2c: E2 08 00 A1 7B 80 0D 03 02 00 00 00 00 97 [07:58:20]Write i2c OK [07:58:20]MH_I2C_Read... [07:58:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:58:20]Read from MH i2c: E2 [07:58:20]MH_I2C_Read... [07:58:20]Read from MH i2c: E2 0B 00 [07:58:20]MH_I2C_Read... [07:58:20]Read from MH i2c: E2 0B 00 A1 7B 00 87 FD B1 7A 29 EA 25 84 90 00 03 [07:58:20]RAPDU: 87 FD B1 7A 29 EA 25 84 90 00 [07:58:20]wFMCommunicate OK [07:58:20]SAM_PROTO_SignData done [07:58:20]FM_MakeSignedData done [07:58:20]CreateOFDProtocolMessage [07:58:20]wFMCommunicate request_size=4 [07:58:20]MH_SAM_APDU [07:58:20]CAPDU: 80 11 00 00 [07:58:20]Write to MH i2c: E2 08 00 A2 7B 80 11 00 00 00 00 00 00 97 [07:58:20]Write i2c OK [07:58:20]MH_I2C_Read... [07:58:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:58:20]Read from MH i2c: E2 [07:58:20]MH_I2C_Read... [07:58:20]Read from MH i2c: E2 17 00 [07:58:20]MH_I2C_Read... [07:58:20]Read from MH i2c: E2 17 00 A2 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E6 [07:58:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:58:20]wFMCommunicate OK [07:58:20]CreateOFDProtocolMessage done [07:58:20]OFDSenderStorePacket 29130 [07:58:20]StoreOFDPacket docnum=29130 [07:58:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 F3 55 07 01 40 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 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 28 00 00 00 F4 03 04 00 A4 8C 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CA 71 00 00 35 04 06 00 3D FF A3 1D 83 96 87 FD B1 7A 29 EA 25 84 [07:58:20]CheckFolder [07:58:20]dirname=/storage/ofd_packets [07:58:20]CheckFolder done [07:58:20]ProducePacketName [07:58:20]name=ofd_packets/00029130 [07:58:20]NVStorageSaveData ofd_packets/00029130 [07:58:20]File name is /storage/ofd_packets/00029130 [07:58:20]Write 301 bytes [07:58:20]NVStorageSaveData done [07:58:20]OFDSenderStorePacket done [07:58:20]KKMCreateOFDPacket done [07:58:20]NVStorageSaveData kkm_last_timestamp [07:58:20]File name is /storage/kkm_last_timestamp [07:58:20]Write 4 bytes [07:58:20]NVStorageSaveData done [07:58:20]ExternCall_PrintAddStr [07:58:20]wPrintStart [07:58:20]Write to MH i2c: 01 00 00 A3 7B 1E [07:58:20]Write i2c OK [07:58:20]MH_I2C_Read... [07:58:20]Read from MH i2c: 01 [07:58:20]MH_I2C_Read... [07:58:20]Read from MH i2c: 01 07 00 [07:58:20]MH_I2C_Read... [07:58:20]Read from MH i2c: 01 07 00 A3 7B 00 00 00 00 00 FF 0F 33 [07:58:20]RasterBufferAndPrint [07:58:20]line Счет N : (1)347499 [07:58:20]line ИНН: 02508201610067 [07:58:20]line Контрольно-Кассовый Чек [07:58:20]line ПРОДАЖА [07:58:20]line ТРК (МРК, ГНК) : 32 [07:58:20]line Товар: 2710124130 [07:58:20]line Аи-92-К-5 [07:58:20]line 10.890 * 64.30 [07:58:20]line = 700.23 [07:58:20]line НДС 12% НСП 1% [07:58:20]line > о реализуемом товаре [07:58:20]line ОКРУГЛЕНИЕ: -0.23 [07:58:20]line ИТОГО: 700.00 [07:58:20]line Внесено: 700.00 [07:58:20]line СДАЧА: 0.00 [07:58:20]line НСП 1% : 6.20 [07:58:20]line НДС 12% : 74.36 [07:58:20]line Наличными: 700.00 [07:58:20]line Безнал.: 0.00 [07:58:20]line Место: АЗС № 108 "Партнер Нефть" [07:58:20]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [07:58:20]line СНО: Общий режим [07:58:20]line Чек 40 14.04.2024 07:58 [07:58:20]line Смена: 116 ФФД: 1.0 [07:58:20]line ЗНМ: 0300000027 [07:58:20]line РНМ: 0000138879044617 [07:58:20]line Версия ККМ: 001 [07:58:20]line ФМ: 0000000000963154 [07:58:20]line ФД: 29130 [07:58:20]line ФПД: 68168162575254 [07:58:20]line 1/tax-web-control/client/api/v1/ticket?date=20240414T075828&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29130&fm=68168162575254&tin=02508201610067®Number=0000138879044617&sum=70000 [07:58:21]OFD Sender: Processing packet 29130 [packets to send 8, broken 7] [07:58:21]ProducePacketName [07:58:21]name=ofd_packets/00029130 [07:58:21]OFD Sender: To server: pG, [07:58:21]CommunicateWithHost lk.salyk.kg:30040 [07:58:21]ConnectInit lk.salyk.kg [07:58:21]written 0, free lines is 4095 [07:58:21]Connected sock=10 [07:58:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 F3 55 07 01 40 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 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 28 00 00 00 F4 03 04 00 A4 8C 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CA 71 00 00 35 04 06 00 3D FF A3 1D 83 96 87 FD B1 7A 29 EA 25 84 [07:58:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 90 30 47 00 AE 2A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CA 71 00 00 F4 03 04 00 48 37 1B 66 B6 04 01 00 00 7A E4 C6 1D 4B C8 7E 01 [07:58:21]CommunicateWithHost err = 0 [07:58:21]CheckOFDResponse [07:58:21]1017 (14) - 77093643461234 [07:58:21]1041 (16) - 0000000000963154 [07:58:21]1040 (4) - 29130 [07:58:21]1012 (4) - 14.04.2024 01:54 [07:58:21]1206 (1) - 0 [07:58:21]OFD Sender: Remove packet 29130 [07:58:21]ProducePacketName [07:58:21]name=ofd_packets/00029130 [07:58:21]NVStorageDeleteData [07:58:21]Write to MH i2c: 01 00 00 CD 7B 48 [07:58:21]Write i2c OK [07:58:21]MH_I2C_Read... [07:58:21]Read from MH i2c: 01 [07:58:21]MH_I2C_Read... [07:58:21]Read from MH i2c: 01 07 00 [07:58:21]MH_I2C_Read... [07:58:21]Read from MH i2c: 01 07 00 CD 7B 00 00 00 00 00 BA 0C 15 [07:58:21]RasterBufferAndPrint [07:58:21]line [07:58:21]line [07:58:21]line [07:58:21]line [07:58:21]line [07:58:21]written 0, free lines is 3265 [07:58:21]MH_Cut [07:58:21]Write to MH i2c: D1 01 00 D4 7B 01 21 [07:58:21]Write i2c OK [07:58:21]MH_I2C_Read... [07:58:21]Read from MH i2c: D1 [07:58:21]MH_I2C_Read... [07:58:21]Read from MH i2c: D1 01 00 [07:58:21]MH_I2C_Read... [07:58:21]Read from MH i2c: D1 01 00 D4 7B 00 20 [07:58:21]Write to MH i2c: 01 00 00 D5 7B 50 [07:58:21]Write i2c OK [07:58:21]MH_I2C_Read... [07:58:22]OFD Sender: No OFD packet to send [07:58:22]*** Cut start [07:58:22]*** Partial cut [07:58:22]*** CUTSNS_PIN = 1 [07:58:22]*** CUTSNS_PIN = 0 [07:58:22]*** Brake cut motor [07:58:23]Read from MH i2c: 01 [07:58:23]MH_I2C_Read... [07:58:23]*** Stop cut motor [07:58:23]*** Cut end [07:58:23]Read from MH i2c: 01 07 00 [07:58:23]MH_I2C_Read... [07:58:23]Read from MH i2c: 01 07 00 D5 7B 00 00 00 00 00 FF 0F 65 [07:58:23]process_action close_receipt done [07:58:23]requested_data is exist [07:58:23]produce_requested_data [07:58:23]requested_item fm.sn is exist - process it [07:58:23]wFMCommunicate request_size=4 [07:58:23]MH_SAM_APDU [07:58:23]CAPDU: 80 11 00 00 [07:58:23]Write to MH i2c: E2 08 00 D6 7B 80 11 00 00 00 00 00 00 CB [07:58:23]Write i2c OK [07:58:23]MH_I2C_Read... [07:58:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:58:23]Read from MH i2c: E2 [07:58:23]MH_I2C_Read... [07:58:23]Read from MH i2c: E2 17 00 [07:58:23]MH_I2C_Read... [07:58:23]Read from MH i2c: E2 17 00 D6 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 1A [07:58:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:58:23]wFMCommunicate OK [07:58:23]requested_item fd.num is exist - process it [07:58:23]SAM_PROTO_GetFieldsCounters [07:58:23]wFMCommunicate request_size=4 [07:58:23]MH_SAM_APDU [07:58:23]CAPDU: 80 13 00 00 [07:58:23]Write to MH i2c: E2 08 00 D7 7B 80 13 00 00 00 00 00 00 CE [07:58:23]Write i2c OK [07:58:23]MH_I2C_Read... [07:58:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:58:23]Read from MH i2c: E2 [07:58:23]MH_I2C_Read... [07:58:23]Read from MH i2c: E2 62 00 [07:58:23]MH_I2C_Read... [07:58:23]Read from MH i2c: E2 62 00 D7 7B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 CA 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 33 [07:58:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 CA 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:58:23]wFMCommunicate OK [07:58:23]SAM_PROTO_GetFieldsCounters done [07:58:23]requested_item shift.num is exist - process it [07:58:23]requested_item shift.opened is exist - process it [07:58:23]req_shift_opened [07:58:23]FM_GetShiftState [07:58:23]SAM_PROTO_GetShiftState [07:58:23]wFMCommunicate request_size=4 [07:58:23]MH_SAM_APDU [07:58:23]CAPDU: 80 13 01 00 [07:58:23]Write to MH i2c: E2 08 00 D8 7B 80 13 01 00 00 00 00 00 D0 [07:58:23]Write i2c OK [07:58:23]MH_I2C_Read... [07:58:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:58:23]Read from MH i2c: E2 [07:58:23]MH_I2C_Read... [07:58:23]Read from MH i2c: E2 0E 00 [07:58:23]MH_I2C_Read... [07:58:23]Read from MH i2c: E2 0E 00 D8 7B 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 7C [07:58:23]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [07:58:23]wFMCommunicate OK [07:58:23]SAM_PROTO_GetShiftState done [07:58:23]FM_GetShiftState done [07:58:23]req_shift_opened done [07:58:23]requested_item shift.open_date is exist - process it [07:58:23]req_shift_open_date [07:58:23]req_shift_open_date done [07:58:23]produce_requested_data done [07:58:23]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29130,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [07:58:23]process_action_free close_receipt [07:58:23]json_value_free [07:58:23]json_value_free done [07:58:23]process_json_proto returns [07:58:23]Send response to host [07:58:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29130,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [07:58:23]free response buf [07:58:23]execute_script done [07:58:23]execute_script returns [07:58:23]free content buf [07:58:23]Sock 9.Close socket [07:58:23]Sock 9.Thread stoped [07:58:27]OFD Sender: No OFD packet to send [07:58:31]accept exits with 7 [07:58:31]New connection [07:58:31]New thread 3066785124 created [07:58:31]Thread 3066928484 joined [07:58:31]Waiting for new connection... [07:58:31] Sock 7.Parse request [07:58:31]Sock 7.Check first char [07:58:31]Sock 7.First char is OK [07:58:31]request: POST /json_proto HTTP/1.0 [07:58:31]Method: POST [07:58:31]URL: /json_proto [07:58:31]Method is POST - this is cgi request [07:58:31]url: /json_proto [07:58:31]query_string will be loaded in cgi processing [07:58:31]execute_cgi json_proto POST (null) [07:58:31]execute_cgi path=json_proto method=POST [07:58:31]POST find Content-Length [07:58:31]Host: 172.17.33.3:8080 [07:58:31]Content-Length: 840 [07:58:31]Content-Type: application/json [07:58:31] [07:58:31]POST finish read [07:58:31]Found Content-Length = 840 [07:58:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347500", "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.790, "sum" : 179.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 179.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:58:31]execute_script... [07:58: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)347500", "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.790, "sum" : 179.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 179.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:58:31]POST & json_proto [07:58:31]process_json_proto [07:58:31]json parsed OK: [07:58:31]protocol is kg_v1.0 [07:58:31]action value=close_receipt [07:58:31]process_action close_receipt [07:58:31]cmd_close_receipt [07:58:31]MH_GetDate [07:58:31]Write to MH i2c: F0 00 00 D9 7B 43 [07:58:31]Write i2c OK [07:58:31]MH_I2C_Read... [07:58:31]Read from MH i2c: F0 [07:58:31]MH_I2C_Read... [07:58:31]Read from MH i2c: F0 09 00 [07:58:31]MH_I2C_Read... [07:58:31]Read from MH i2c: F0 09 00 D9 7B 00 B0 8C 1B 66 23 5B 8F 65 7B [07:58:31]GetLastDocTimeStamp 1713081508 [07:58:31]current date 1713081520 [07:58:31]FM_GetShiftState [07:58:31]SAM_PROTO_GetShiftState [07:58:31]wFMCommunicate request_size=4 [07:58:31]MH_SAM_APDU [07:58:31]CAPDU: 80 13 01 00 [07:58:31]Write to MH i2c: E2 08 00 DA 7B 80 13 01 00 00 00 00 00 D2 [07:58:31]Write i2c OK [07:58:31]MH_I2C_Read... [07:58:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:58:31]Read from MH i2c: E2 [07:58:31]MH_I2C_Read... [07:58:31]Read from MH i2c: E2 0E 00 [07:58:31]MH_I2C_Read... [07:58:31]Read from MH i2c: E2 0E 00 DA 7B 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 7E [07:58:31]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [07:58:31]wFMCommunicate OK [07:58:31]SAM_PROTO_GetShiftState done [07:58:31]FM_GetShiftState done [07:58:31]opened in 1713053951 [07:58:31]opened+sec_in_day 1713140351 [07:58:31]quantity*price = 17939 [07:58:31]sum+1 = 17941 [07:58:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 179.40 НСП 1% : 1.59 НДС 12% : 19.05 Наличными: 0.00 Безнал.: 179.40 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 41 14.04.2024 07:58 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 29131 ФПД: 193205250051994 1/tax-web-control/client/api/v1/ticket?date=20240414T075840&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29131&fm=193205250051994&tin=02508201610067®Number=0000138879044617&sum=17940 [07:58:32]StoreToDocumentArchive [07:58:32]shift 116 fd 29131 [07:58:32]save to /storage/0116/doc_00029131 [07:58:32]save last doc name /storage/0116/doc_00029131 to /storage/kkm_last_doc_name [07:58:32]save OK [07:58:32]Clear old archive folders... [07:58:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:58:32]tlvbuf is 01294AE0 [07:58:32]SAM_PROTO_ClearQueue [07:58:32]wFMCommunicate request_size=4 [07:58:32]MH_SAM_APDU [07:58:32]CAPDU: 80 09 00 00 [07:58:32]Write to MH i2c: E2 08 00 E7 7B 80 09 00 00 00 00 00 00 D4 [07:58:32]Write i2c OK [07:58:32]MH_I2C_Read... [07:58:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:58:32]Read from MH i2c: E2 [07:58:32]MH_I2C_Read... [07:58:32]Read from MH i2c: E2 03 00 [07:58:32]MH_I2C_Read... [07:58:32]Read from MH i2c: E2 03 00 E7 7B 00 90 00 D6 [07:58:32]RAPDU: 90 00 [07:58:32]wFMCommunicate OK [07:58:32]SAM_PROTO_ClearQueue done [07:58:32]KKMCreateOFDPacket [07:58:32]OFDProtocolAddRootSTLVToBuf [07:58:32]FM_MakeSignedData [07:58:32]FM_MakeSignedData [07:58:32]SAM_PROTO_SignData [07:58:32]wFMCommunicate request_size=4 [07:58:32]MH_SAM_APDU [07:58:32]CAPDU: 80 0D 01 02 [07:58:32]Write to MH i2c: E2 08 00 E8 7B 80 0D 01 02 00 00 00 00 DC [07:58:32]Write i2c OK [07:58:32]MH_I2C_Read... [07:58:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:58:32]Read from MH i2c: E2 [07:58:32]MH_I2C_Read... [07:58:32]Read from MH i2c: E2 03 00 [07:58:32]MH_I2C_Read... [07:58:32]Read from MH i2c: E2 03 00 E8 7B 00 90 00 D7 [07:58:32]RAPDU: 90 00 [07:58:32]wFMCommunicate OK [07:58:32]wFMCommunicate request_size=255 [07:58:32]MH_SAM_APDU [07:58: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 E6 0A 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 14 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 46 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 B0 8C 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CB 71 00 00 35 04 06 00 AF [07:58:32]Write to MH i2c: E2 02 01 E9 7B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 0A 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 14 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 46 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 B0 8C 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CB 71 00 00 35 04 06 00 AF 00 00 94 [07:58:32]Write i2c OK [07:58:32]MH_I2C_Read... [07:58:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:58:32]Read from MH i2c: E2 [07:58:32]MH_I2C_Read... [07:58:32]Read from MH i2c: E2 03 00 [07:58:32]MH_I2C_Read... [07:58:32]Read from MH i2c: E2 03 00 E9 7B 00 90 00 D8 [07:58:32]RAPDU: 90 00 [07:58:32]wFMCommunicate OK [07:58:32]wFMCommunicate request_size=10 [07:58:32]MH_SAM_APDU [07:58:32]CAPDU: 80 0D 02 02 05 B8 1A 4C 4F 9A [07:58:32]Write to MH i2c: E2 0D 00 EA 7B 80 0D 02 02 05 00 B8 1A 4C 4F 9A 00 00 F0 [07:58:32]Write i2c OK [07:58:32]MH_I2C_Read... [07:58:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:58:33]Read from MH i2c: E2 [07:58:33]MH_I2C_Read... [07:58:33]Read from MH i2c: E2 03 00 [07:58:33]MH_I2C_Read... [07:58:33]Read from MH i2c: E2 03 00 EA 7B 00 90 00 D9 [07:58:33]RAPDU: 90 00 [07:58:33]wFMCommunicate OK [07:58:33]wFMCommunicate request_size=4 [07:58:33]MH_SAM_APDU [07:58:33]CAPDU: 80 0D 03 02 [07:58:33]Write to MH i2c: E2 08 00 EB 7B 80 0D 03 02 00 00 00 00 E1 [07:58:33]Write i2c OK [07:58:33]MH_I2C_Read... [07:58:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:58:33]Read from MH i2c: E2 [07:58:33]MH_I2C_Read... [07:58:33]Read from MH i2c: E2 0B 00 [07:58:33]MH_I2C_Read... [07:58:33]Read from MH i2c: E2 0B 00 EB 7B 00 71 17 64 DF C5 60 E4 2C 90 00 E2 [07:58:33]RAPDU: 71 17 64 DF C5 60 E4 2C 90 00 [07:58:33]wFMCommunicate OK [07:58:33]SAM_PROTO_SignData done [07:58:33]FM_MakeSignedData done [07:58:33]CreateOFDProtocolMessage [07:58:33]wFMCommunicate request_size=4 [07:58:33]MH_SAM_APDU [07:58:33]CAPDU: 80 11 00 00 [07:58:33]Write to MH i2c: E2 08 00 EC 7B 80 11 00 00 00 00 00 00 E1 [07:58:33]Write i2c OK [07:58:33]MH_I2C_Read... [07:58:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:58:33]Read from MH i2c: E2 [07:58:33]MH_I2C_Read... [07:58:33]Read from MH i2c: E2 17 00 [07:58:33]MH_I2C_Read... [07:58:33]Read from MH i2c: E2 17 00 EC 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 30 [07:58:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:58:33]wFMCommunicate OK [07:58:33]CreateOFDProtocolMessage done [07:58:33]OFDSenderStorePacket 29131 [07:58:33]StoreOFDPacket docnum=29131 [07:58:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 E1 35 07 01 7C 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 E6 0A 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 14 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 46 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 B0 8C 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CB 71 00 00 35 04 06 00 AF B8 1A 4C 4F 9A 71 17 64 DF C5 60 E4 2C [07:58:33]CheckFolder [07:58:33]dirname=/storage/ofd_packets [07:58:33]CheckFolder done [07:58:33]ProducePacketName [07:58:33]name=ofd_packets/00029131 [07:58:33]NVStorageSaveData ofd_packets/00029131 [07:58:33]File name is /storage/ofd_packets/00029131 [07:58:33]Write 301 bytes [07:58:33]NVStorageSaveData done [07:58:33]OFDSenderStorePacket done [07:58:33]KKMCreateOFDPacket done [07:58:33]NVStorageSaveData kkm_last_timestamp [07:58:33]File name is /storage/kkm_last_timestamp [07:58:33]Write 4 bytes [07:58:33]NVStorageSaveData done [07:58:33]ExternCall_PrintAddStr [07:58:33]wPrintStart [07:58:33]Write to MH i2c: 01 00 00 ED 7B 68 [07:58:33]Write i2c OK [07:58:33]MH_I2C_Read... [07:58:33]Read from MH i2c: 01 [07:58:33]MH_I2C_Read... [07:58:33]Read from MH i2c: 01 07 00 [07:58:33]MH_I2C_Read... [07:58:33]Read from MH i2c: 01 07 00 ED 7B 00 00 00 00 00 FF 0F 7D [07:58:33]RasterBufferAndPrint [07:58:33]line Счет N : (1)347500 [07:58:33]line ИНН: 02508201610067 [07:58:33]line Контрольно-Кассовый Чек [07:58:33]line ПРОДАЖА [07:58:33]line ТРК (МРК, ГНК) : 42 [07:58:33]line Товар: 2710124130 [07:58:33]line Аи-92-К-5 [07:58:33]line 2.790 * 64.30 [07:58:33]line = 179.40 [07:58:33]line НДС 12% НСП 1% [07:58:33]line > о реализуемом товаре [07:58:33]line ИТОГО: 179.40 [07:58:33]line НСП 1% : 1.59 [07:58:33]line НДС 12% : 19.05 [07:58:33]line Наличными: 0.00 [07:58:33]line Безнал.: 179.40 [07:58:33]line Место: АЗС № 108 "Партнер Нефть" [07:58:33]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [07:58:33]line СНО: Общий режим [07:58:33]line Чек 41 14.04.2024 07:58 [07:58:33]line Смена: 116 ФФД: 1.0 [07:58:33]line ЗНМ: 0300000027 [07:58:33]line РНМ: 0000138879044617 [07:58:33]line Версия ККМ: 001 [07:58:33]line Платежная система: АКБ Кыргызстан [07:58:33]line ФМ: 0000000000963154 [07:58:33]line ФД: 29131 [07:58:33]line ФПД: 193205250051994 [07:58:33]line 1/tax-web-control/client/api/v1/ticket?date=20240414T075840&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29131&fm=193205250051994&tin=02508201610067®Number=0000138879044617&sum=17940 [07:58:33]written 0, free lines is 4095 [07:58:33]OFD Sender: Processing packet 29131 [packets to send 8, broken 7] [07:58:33]ProducePacketName [07:58:33]name=ofd_packets/00029131 [07:58:33]OFD Sender: To server: pG, [07:58:33]CommunicateWithHost lk.salyk.kg:30040 [07:58:33]ConnectInit lk.salyk.kg [07:58:33]Connected sock=10 [07:58:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 E1 35 07 01 7C 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 E6 0A 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 14 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 46 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 B0 8C 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CB 71 00 00 35 04 06 00 AF B8 1A 4C 4F 9A 71 17 64 DF C5 60 E4 2C [07:58:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 EF F7 47 00 F9 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 39 36 33 31 35 34 10 04 04 00 CB 71 00 00 F4 03 04 00 54 37 1B 66 B6 04 01 00 00 E2 0C 15 2C AD 5D 8E 28 [07:58:33]CommunicateWithHost err = 0 [07:58:33]CheckOFDResponse [07:58:33]1017 (14) - 77093643461234 [07:58:33]1041 (16) - 0000000000963154 [07:58:33]1040 (4) - 29131 [07:58:33]1012 (4) - 14.04.2024 01:54 [07:58:33]1206 (1) - 0 [07:58:33]OFD Sender: Remove packet 29131 [07:58:33]ProducePacketName [07:58:33]name=ofd_packets/00029131 [07:58:33]NVStorageDeleteData [07:58:33]Write to MH i2c: 01 00 00 16 7C 92 [07:58:33]Write i2c OK [07:58:33]MH_I2C_Read... [07:58:33]Read from MH i2c: 01 [07:58:33]MH_I2C_Read... [07:58:33]Read from MH i2c: 01 07 00 [07:58:33]MH_I2C_Read... [07:58:33]Read from MH i2c: 01 07 00 16 7C 00 00 00 00 00 E5 0C 8A [07:58:33]RasterBufferAndPrint [07:58:33]line [07:58:33]line [07:58:33]line [07:58:33]line [07:58:33]line [07:58:33]written 0, free lines is 3312 [07:58:33]MH_Cut [07:58:33]Write to MH i2c: D1 01 00 1D 7C 01 6B [07:58:33]Write i2c OK [07:58:33]MH_I2C_Read... [07:58:33]Read from MH i2c: D1 [07:58:33]MH_I2C_Read... [07:58:33]Read from MH i2c: D1 01 00 [07:58:33]MH_I2C_Read... [07:58:33]Read from MH i2c: D1 01 00 1D 7C 00 6A [07:58:33]Write to MH i2c: 01 00 00 1E 7C 9A [07:58:33]Write i2c OK [07:58:33]MH_I2C_Read... [07:58:33]OFD Sender: No OFD packet to send [07:58:34]*** Cut start [07:58:34]*** Partial cut [07:58:34]*** CUTSNS_PIN = 1 [07:58:34]*** CUTSNS_PIN = 0 [07:58:34]*** Brake cut motor [07:58:34]Read from MH i2c: 01 [07:58:35]MH_I2C_Read... [07:58:35]*** Stop cut motor [07:58:35]*** Cut end [07:58:35]Read from MH i2c: 01 07 00 [07:58:35]MH_I2C_Read... [07:58:35]Read from MH i2c: 01 07 00 1E 7C 00 00 00 00 00 FF 0F AF [07:58:35]process_action close_receipt done [07:58:35]requested_data is exist [07:58:35]produce_requested_data [07:58:35]requested_item fm.sn is exist - process it [07:58:35]wFMCommunicate request_size=4 [07:58:35]MH_SAM_APDU [07:58:35]CAPDU: 80 11 00 00 [07:58:35]Write to MH i2c: E2 08 00 1F 7C 80 11 00 00 00 00 00 00 15 [07:58:35]Write i2c OK [07:58:35]MH_I2C_Read... [07:58:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:58:35]Read from MH i2c: E2 [07:58:35]MH_I2C_Read... [07:58:35]Read from MH i2c: E2 17 00 [07:58:35]MH_I2C_Read... [07:58:35]Read from MH i2c: E2 17 00 1F 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 64 [07:58:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:58:35]wFMCommunicate OK [07:58:35]requested_item fd.num is exist - process it [07:58:35]SAM_PROTO_GetFieldsCounters [07:58:35]wFMCommunicate request_size=4 [07:58:35]MH_SAM_APDU [07:58:35]CAPDU: 80 13 00 00 [07:58:35]Write to MH i2c: E2 08 00 20 7C 80 13 00 00 00 00 00 00 18 [07:58:35]Write i2c OK [07:58:35]MH_I2C_Read... [07:58:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:58:35]Read from MH i2c: E2 [07:58:35]MH_I2C_Read... [07:58:35]Read from MH i2c: E2 62 00 [07:58:35]MH_I2C_Read... [07:58:35]Read from MH i2c: E2 62 00 20 7C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 CB 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 81 [07:58:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 CB 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:58:35]wFMCommunicate OK [07:58:35]SAM_PROTO_GetFieldsCounters done [07:58:35]requested_item shift.num is exist - process it [07:58:35]requested_item shift.opened is exist - process it [07:58:35]req_shift_opened [07:58:35]FM_GetShiftState [07:58:35]SAM_PROTO_GetShiftState [07:58:35]wFMCommunicate request_size=4 [07:58:35]MH_SAM_APDU [07:58:35]CAPDU: 80 13 01 00 [07:58:35]Write to MH i2c: E2 08 00 21 7C 80 13 01 00 00 00 00 00 1A [07:58:35]Write i2c OK [07:58:35]MH_I2C_Read... [07:58:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:58:35]Read from MH i2c: E2 [07:58:35]MH_I2C_Read... [07:58:35]Read from MH i2c: E2 0E 00 [07:58:35]MH_I2C_Read... [07:58:35]Read from MH i2c: E2 0E 00 21 7C 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 C6 [07:58:35]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [07:58:35]wFMCommunicate OK [07:58:35]SAM_PROTO_GetShiftState done [07:58:35]FM_GetShiftState done [07:58:35]req_shift_opened done [07:58:35]requested_item shift.open_date is exist - process it [07:58:35]req_shift_open_date [07:58:35]req_shift_open_date done [07:58:35]produce_requested_data done [07:58:35]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29131,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [07:58:35]process_action_free close_receipt [07:58:35]json_value_free [07:58:35]json_value_free done [07:58:35]process_json_proto returns [07:58:35]Send response to host [07:58:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29131,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [07:58:35]free response buf [07:58:35]execute_script done [07:58:35]execute_script returns [07:58:35]free content buf [07:58:35]Sock 7.Close socket [07:58:35]Sock 7.Thread stoped [07:58:38]OFD Sender: No OFD packet to send [07:58:43]OFD Sender: No OFD packet to send [07:58:48]OFD Sender: No OFD packet to send [07:58:53]OFD Sender: No OFD packet to send [07:58:58]OFD Sender: No OFD packet to send [07:59:03]OFD Sender: No OFD packet to send [07:59:08]accept exits with 9 [07:59:08]New connection [07:59:08]New thread 3066928484 created [07:59:08]Thread 3066785124 joined [07:59:08]Waiting for new connection... [07:59:08] Sock 9.Parse request [07:59:08]Sock 9.Check first char [07:59:08]Sock 9.First char is OK [07:59:08]request: POST /json_proto HTTP/1.0 [07:59:08]Method: POST [07:59:08]URL: /json_proto [07:59:08]Method is POST - this is cgi request [07:59:08]url: /json_proto [07:59:08]query_string will be loaded in cgi processing [07:59:08]execute_cgi json_proto POST (null) [07:59:08]execute_cgi path=json_proto method=POST [07:59:08]POST find Content-Length [07:59:08]Host: 172.17.33.3:8080 [07:59:08]Content-Length: 677 [07:59:08]Content-Type: application/json [07:59:08] [07:59:08]POST finish read [07:59:08]Found Content-Length = 677 [07:59:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347501", "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.440, "sum" : 221.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 221.00, "total" : 221.00, "payments": [ { "type": 0, "sum" : 221.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:59:08]execute_script... [07:59: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)347501", "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.440, "sum" : 221.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 221.00, "total" : 221.00, "payments": [ { "type": 0, "sum" : 221.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:59:08]POST & json_proto [07:59:08]process_json_proto [07:59:08]json parsed OK: [07:59:08]protocol is kg_v1.0 [07:59:08]action value=close_receipt [07:59:08]process_action close_receipt [07:59:08]cmd_close_receipt [07:59:08]MH_GetDate [07:59:08]Write to MH i2c: F0 00 00 22 7C 8D [07:59:08]Write i2c OK [07:59:08]MH_I2C_Read... [07:59:08]Read from MH i2c: F0 [07:59:08]MH_I2C_Read... [07:59:08]Read from MH i2c: F0 09 00 [07:59:08]MH_I2C_Read... [07:59:08]Read from MH i2c: F0 09 00 22 7C 00 D5 8C 1B 66 23 5B 8F 65 EA [07:59:08]GetLastDocTimeStamp 1713081520 [07:59:08]current date 1713081557 [07:59:08]FM_GetShiftState [07:59:08]SAM_PROTO_GetShiftState [07:59:08]wFMCommunicate request_size=4 [07:59:08]MH_SAM_APDU [07:59:08]CAPDU: 80 13 01 00 [07:59:08]Write to MH i2c: E2 08 00 23 7C 80 13 01 00 00 00 00 00 1C [07:59:08]Write i2c OK [07:59:08]MH_I2C_Read... [07:59:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:59:08]Read from MH i2c: E2 [07:59:08]MH_I2C_Read... [07:59:08]Read from MH i2c: E2 0E 00 [07:59:08]MH_I2C_Read... [07:59:08]Read from MH i2c: E2 0E 00 23 7C 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 C8 [07:59:08]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [07:59:08]wFMCommunicate OK [07:59:08]SAM_PROTO_GetShiftState done [07:59:08]FM_GetShiftState done [07:59:08]opened in 1713053951 [07:59:08]opened+sec_in_day 1713140351 [07:59:08]quantity*price = 22119 [07:59:08]sum+1 = 22120 [07:59:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 221.00 Внесено: 221.00 СДАЧА: 0.00 НСП 1% : 1.96 НДС 12% : 23.49 Наличными: 221.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 42 14.04.2024 07:59 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29132 ФПД: 65189467758143 1/tax-web-control/client/api/v1/ticket?date=20240414T075917&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29132&fm=65189467758143&tin=02508201610067®Number=0000138879044617&sum=22100 [07:59:09]StoreToDocumentArchive [07:59:09]shift 116 fd 29132 [07:59:09]save to /storage/0116/doc_00029132 [07:59:09]save last doc name /storage/0116/doc_00029132 to /storage/kkm_last_doc_name [07:59:09]save OK [07:59:09]Clear old archive folders... [07:59:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:59:09]tlvbuf is 011FB420 [07:59:09]SAM_PROTO_ClearQueue [07:59:09]wFMCommunicate request_size=4 [07:59:09]MH_SAM_APDU [07:59:09]CAPDU: 80 09 00 00 [07:59:09]Write to MH i2c: E2 08 00 30 7C 80 09 00 00 00 00 00 00 1E [07:59:09]Write i2c OK [07:59:09]MH_I2C_Read... [07:59:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:59:10]Read from MH i2c: E2 [07:59:10]MH_I2C_Read... [07:59:10]Read from MH i2c: E2 03 00 [07:59:10]MH_I2C_Read... [07:59:10]Read from MH i2c: E2 03 00 30 7C 00 90 00 20 [07:59:10]RAPDU: 90 00 [07:59:10]wFMCommunicate OK [07:59:10]SAM_PROTO_ClearQueue done [07:59:10]KKMCreateOFDPacket [07:59:10]OFDProtocolAddRootSTLVToBuf [07:59:10]FM_MakeSignedData [07:59:10]FM_MakeSignedData [07:59:10]SAM_PROTO_SignData [07:59:10]wFMCommunicate request_size=4 [07:59:10]MH_SAM_APDU [07:59:10]CAPDU: 80 0D 01 02 [07:59:10]Write to MH i2c: E2 08 00 31 7C 80 0D 01 02 00 00 00 00 26 [07:59:10]Write i2c OK [07:59:10]MH_I2C_Read... [07:59:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:59:10]Read from MH i2c: E2 [07:59:10]MH_I2C_Read... [07:59:10]Read from MH i2c: E2 03 00 [07:59:10]MH_I2C_Read... [07:59:10]Read from MH i2c: E2 03 00 31 7C 00 90 00 21 [07:59:10]RAPDU: 90 00 [07:59:10]wFMCommunicate OK [07:59:10]wFMCommunicate request_size=255 [07:59:10]MH_SAM_APDU [07:59: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 70 0D 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 67 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 56 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2D 09 00 00 00 00 07 04 06 00 54 56 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 D5 8C 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CC 71 00 00 35 04 06 00 3B [07:59:10]Write to MH i2c: E2 02 01 32 7C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 70 0D 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 67 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 56 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2D 09 00 00 00 00 07 04 06 00 54 56 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 D5 8C 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CC 71 00 00 35 04 06 00 3B 00 00 04 [07:59:10]Write i2c OK [07:59:10]MH_I2C_Read... [07:59:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:59:10]Read from MH i2c: E2 [07:59:10]MH_I2C_Read... [07:59:10]Read from MH i2c: E2 03 00 [07:59:10]MH_I2C_Read... [07:59:10]Read from MH i2c: E2 03 00 32 7C 00 90 00 22 [07:59:10]RAPDU: 90 00 [07:59:10]wFMCommunicate OK [07:59:10]wFMCommunicate request_size=10 [07:59:10]MH_SAM_APDU [07:59:10]CAPDU: 80 0D 02 02 05 4A 1B 11 9E 3F [07:59:10]Write to MH i2c: E2 0D 00 33 7C 80 0D 02 02 05 00 4A 1B 11 9E 3F 00 00 86 [07:59:10]Write i2c OK [07:59:10]MH_I2C_Read... [07:59:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:59:10]Read from MH i2c: E2 [07:59:10]MH_I2C_Read... [07:59:10]Read from MH i2c: E2 03 00 [07:59:10]MH_I2C_Read... [07:59:10]Read from MH i2c: E2 03 00 33 7C 00 90 00 23 [07:59:10]RAPDU: 90 00 [07:59:10]wFMCommunicate OK [07:59:10]wFMCommunicate request_size=4 [07:59:10]MH_SAM_APDU [07:59:10]CAPDU: 80 0D 03 02 [07:59:10]Write to MH i2c: E2 08 00 34 7C 80 0D 03 02 00 00 00 00 2B [07:59:10]Write i2c OK [07:59:10]MH_I2C_Read... [07:59:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:59:10]Read from MH i2c: E2 [07:59:10]MH_I2C_Read... [07:59:10]Read from MH i2c: E2 0B 00 [07:59:10]MH_I2C_Read... [07:59:10]Read from MH i2c: E2 0B 00 34 7C 00 54 0B 42 87 E7 92 DB 82 90 00 2A [07:59:10]RAPDU: 54 0B 42 87 E7 92 DB 82 90 00 [07:59:10]wFMCommunicate OK [07:59:10]SAM_PROTO_SignData done [07:59:10]FM_MakeSignedData done [07:59:10]CreateOFDProtocolMessage [07:59:10]wFMCommunicate request_size=4 [07:59:10]MH_SAM_APDU [07:59:10]CAPDU: 80 11 00 00 [07:59:10]Write to MH i2c: E2 08 00 35 7C 80 11 00 00 00 00 00 00 2B [07:59:10]Write i2c OK [07:59:10]MH_I2C_Read... [07:59:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:59:10]Read from MH i2c: E2 [07:59:10]MH_I2C_Read... [07:59:10]Read from MH i2c: E2 17 00 [07:59:10]MH_I2C_Read... [07:59:10]Read from MH i2c: E2 17 00 35 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 7A [07:59:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:59:10]wFMCommunicate OK [07:59:10]CreateOFDProtocolMessage done [07:59:10]OFDSenderStorePacket 29132 [07:59:10]StoreOFDPacket docnum=29132 [07:59:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 49 D0 07 01 FC 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 70 0D 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 67 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 56 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2D 09 00 00 00 00 07 04 06 00 54 56 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 D5 8C 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CC 71 00 00 35 04 06 00 3B 4A 1B 11 9E 3F 54 0B 42 87 E7 92 DB 82 [07:59:10]CheckFolder [07:59:10]dirname=/storage/ofd_packets [07:59:10]CheckFolder done [07:59:10]ProducePacketName [07:59:10]name=ofd_packets/00029132 [07:59:10]NVStorageSaveData ofd_packets/00029132 [07:59:10]File name is /storage/ofd_packets/00029132 [07:59:10]Write 301 bytes [07:59:10]NVStorageSaveData done [07:59:10]OFDSenderStorePacket done [07:59:10]KKMCreateOFDPacket done [07:59:10]NVStorageSaveData kkm_last_timestamp [07:59:10]File name is /storage/kkm_last_timestamp [07:59:10]Write 4 bytes [07:59:10]NVStorageSaveData done [07:59:10]ExternCall_PrintAddStr [07:59:10]wPrintStart [07:59:10]Write to MH i2c: 01 00 00 36 7C B2 [07:59:10]Write i2c OK [07:59:10]MH_I2C_Read... [07:59:10]Read from MH i2c: 01 [07:59:10]MH_I2C_Read... [07:59:10]Read from MH i2c: 01 07 00 [07:59:10]MH_I2C_Read... [07:59:10]Read from MH i2c: 01 07 00 36 7C 00 00 00 00 00 FF 0F C7 [07:59:10]RasterBufferAndPrint [07:59:10]line Счет N : (1)347501 [07:59:10]line ИНН: 02508201610067 [07:59:10]line Контрольно-Кассовый Чек [07:59:10]line ПРОДАЖА [07:59:10]line ТРК (МРК, ГНК) : 42 [07:59:10]line Товар: 2710124130 [07:59:10]line Аи-92-К-5 [07:59:10]line 3.440 * 64.30 [07:59:10]line = 221.19 [07:59:10]line НДС 12% НСП 1% [07:59:10]line > о реализуемом товаре [07:59:10]line ОКРУГЛЕНИЕ: -0.19 [07:59:10]line ИТОГО: 221.00 [07:59:10]line Внесено: 221.00 [07:59:10]line СДАЧА: 0.00 [07:59:10]line НСП 1% : 1.96 [07:59:10]line НДС 12% : 23.49 [07:59:10]line Наличными: 221.00 [07:59:10]line Безнал.: 0.00 [07:59:10]line Место: АЗС № 108 "Партнер Нефть" [07:59:10]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [07:59:10]line СНО: Общий режим [07:59:10]line Чек 42 14.04.2024 07:59 [07:59:10]line Смена: 116 ФФД: 1.0 [07:59:10]line ЗНМ: 0300000027 [07:59:10]line РНМ: 0000138879044617 [07:59:10]line Версия ККМ: 001 [07:59:10]line ФМ: 0000000000963154 [07:59:10]line ФД: 29132 [07:59:10]line ФПД: 65189467758143 [07:59:10]line 1/tax-web-control/client/api/v1/ticket?date=20240414T075917&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29132&fm=65189467758143&tin=02508201610067®Number=0000138879044617&sum=22100 [07:59:10]OFD Sender: Processing packet 29132 [packets to send 8, broken 7] [07:59:10]ProducePacketName [07:59:10]name=ofd_packets/00029132 [07:59:10]OFD Sender: To server: pG, [07:59:10]CommunicateWithHost lk.salyk.kg:30040 [07:59:10]ConnectInit lk.salyk.kg [07:59:10]written 0, free lines is 4095 [07:59:10]Connected sock=10 [07:59:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 49 D0 07 01 FC 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 70 0D 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 67 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 56 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2D 09 00 00 00 00 07 04 06 00 54 56 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 D5 8C 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CC 71 00 00 35 04 06 00 3B 4A 1B 11 9E 3F 54 0B 42 87 E7 92 DB 82 [07:59:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 04 B5 47 00 A6 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 39 36 33 31 35 34 10 04 04 00 CC 71 00 00 F4 03 04 00 7A 37 1B 66 B6 04 01 00 00 D6 48 01 F8 6B 39 AE E2 [07:59:11]CommunicateWithHost err = 0 [07:59:11]CheckOFDResponse [07:59:11]1017 (14) - 77093643461234 [07:59:11]1041 (16) - 0000000000963154 [07:59:11]1040 (4) - 29132 [07:59:11]1012 (4) - 14.04.2024 01:55 [07:59:11]1206 (1) - 0 [07:59:11]OFD Sender: Remove packet 29132 [07:59:11]ProducePacketName [07:59:11]name=ofd_packets/00029132 [07:59:11]NVStorageDeleteData [07:59:11]Write to MH i2c: 01 00 00 60 7C DC [07:59:11]Write i2c OK [07:59:11]MH_I2C_Read... [07:59:11]Read from MH i2c: 01 [07:59:11]MH_I2C_Read... [07:59:11]Read from MH i2c: 01 07 00 [07:59:11]MH_I2C_Read... [07:59:11]Read from MH i2c: 01 07 00 60 7C 00 00 00 00 00 C2 0C B1 [07:59:11]RasterBufferAndPrint [07:59:11]line [07:59:11]line [07:59:11]line [07:59:11]line [07:59:11]line [07:59:11]written 0, free lines is 3270 [07:59:11]MH_Cut [07:59:11]Write to MH i2c: D1 01 00 67 7C 01 B5 [07:59:11]Write i2c OK [07:59:11]MH_I2C_Read... [07:59:11]Read from MH i2c: D1 [07:59:11]MH_I2C_Read... [07:59:11]Read from MH i2c: D1 01 00 [07:59:11]MH_I2C_Read... [07:59:11]Read from MH i2c: D1 01 00 67 7C 00 B4 [07:59:11]Write to MH i2c: 01 00 00 68 7C E4 [07:59:11]Write i2c OK [07:59:11]MH_I2C_Read... [07:59:11]OFD Sender: No OFD packet to send [07:59:12]*** Cut start [07:59:12]*** Partial cut [07:59:12]*** CUTSNS_PIN = 1 [07:59:12]*** CUTSNS_PIN = 0 [07:59:12]*** Brake cut motor [07:59:12]Read from MH i2c: 01 [07:59:12]MH_I2C_Read... [07:59:12]*** Stop cut motor [07:59:12]*** Cut end [07:59:12]Read from MH i2c: 01 07 00 [07:59:12]MH_I2C_Read... [07:59:12]Read from MH i2c: 01 07 00 68 7C 00 00 00 00 00 FF 0F F9 [07:59:12]process_action close_receipt done [07:59:12]requested_data is exist [07:59:12]produce_requested_data [07:59:12]requested_item fm.sn is exist - process it [07:59:12]wFMCommunicate request_size=4 [07:59:12]MH_SAM_APDU [07:59:12]CAPDU: 80 11 00 00 [07:59:12]Write to MH i2c: E2 08 00 69 7C 80 11 00 00 00 00 00 00 5F [07:59:12]Write i2c OK [07:59:12]MH_I2C_Read... [07:59:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:59:12]Read from MH i2c: E2 [07:59:12]MH_I2C_Read... [07:59:12]Read from MH i2c: E2 17 00 [07:59:12]MH_I2C_Read... [07:59:12]Read from MH i2c: E2 17 00 69 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 AE [07:59:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:59:12]wFMCommunicate OK [07:59:12]requested_item fd.num is exist - process it [07:59:12]SAM_PROTO_GetFieldsCounters [07:59:12]wFMCommunicate request_size=4 [07:59:12]MH_SAM_APDU [07:59:12]CAPDU: 80 13 00 00 [07:59:12]Write to MH i2c: E2 08 00 6A 7C 80 13 00 00 00 00 00 00 62 [07:59:12]Write i2c OK [07:59:12]MH_I2C_Read... [07:59:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:59:12]Read from MH i2c: E2 [07:59:12]MH_I2C_Read... [07:59:12]Read from MH i2c: E2 62 00 [07:59:12]MH_I2C_Read... [07:59:12]Read from MH i2c: E2 62 00 6A 7C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 CC 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 CF [07:59:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 CC 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:59:12]wFMCommunicate OK [07:59:12]SAM_PROTO_GetFieldsCounters done [07:59:12]requested_item shift.num is exist - process it [07:59:12]requested_item shift.opened is exist - process it [07:59:12]req_shift_opened [07:59:12]FM_GetShiftState [07:59:12]SAM_PROTO_GetShiftState [07:59:12]wFMCommunicate request_size=4 [07:59:12]MH_SAM_APDU [07:59:12]CAPDU: 80 13 01 00 [07:59:12]Write to MH i2c: E2 08 00 6B 7C 80 13 01 00 00 00 00 00 64 [07:59:12]Write i2c OK [07:59:12]MH_I2C_Read... [07:59:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:59:12]Read from MH i2c: E2 [07:59:12]MH_I2C_Read... [07:59:12]Read from MH i2c: E2 0E 00 [07:59:12]MH_I2C_Read... [07:59:12]Read from MH i2c: E2 0E 00 6B 7C 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 10 [07:59:12]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [07:59:12]wFMCommunicate OK [07:59:12]SAM_PROTO_GetShiftState done [07:59:12]FM_GetShiftState done [07:59:12]req_shift_opened done [07:59:12]requested_item shift.open_date is exist - process it [07:59:12]req_shift_open_date [07:59:12]req_shift_open_date done [07:59:12]produce_requested_data done [07:59:12]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29132,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [07:59:12]process_action_free close_receipt [07:59:12]json_value_free [07:59:12]json_value_free done [07:59:12]process_json_proto returns [07:59:12]Send response to host [07:59:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29132,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [07:59:12]free response buf [07:59:12]execute_script done [07:59:12]execute_script returns [07:59:12]free content buf [07:59:12]Sock 9.Close socket [07:59:12]Sock 9.Thread stoped [07:59:16]OFD Sender: No OFD packet to send [07:59:21]OFD Sender: No OFD packet to send [07:59:26]OFD Sender: No OFD packet to send [07:59:31]OFD Sender: No OFD packet to send [07:59:36]OFD Sender: No OFD packet to send [07:59:41]OFD Sender: No OFD packet to send [07:59:46]OFD Sender: No OFD packet to send [07:59:51]OFD Sender: No OFD packet to send [07:59:56]OFD Sender: No OFD packet to send [08:00:01]OFD Sender: No OFD packet to send [08:00:06]OFD Sender: No OFD packet to send [08:00:11]OFD Sender: No OFD packet to send [08:00:16]OFD Sender: No OFD packet to send [08:00:21]OFD Sender: No OFD packet to send [08:00:26]OFD Sender: No OFD packet to send [08:00:31]OFD Sender: No OFD packet to send [08:00:36]OFD Sender: No OFD packet to send [08:00:41]OFD Sender: No OFD packet to send [08:00:46]OFD Sender: No OFD packet to send [08:00:51]OFD Sender: No OFD packet to send [08:00:56]OFD Sender: No OFD packet to send [08:01:01]OFD Sender: No OFD packet to send [08:01:06]OFD Sender: No OFD packet to send [08:01:11]OFD Sender: No OFD packet to send [08:01:16]OFD Sender: No OFD packet to send [08:01:21]OFD Sender: No OFD packet to send [08:01:26]OFD Sender: No OFD packet to send [08:01:31]OFD Sender: No OFD packet to send [08:01:36]OFD Sender: No OFD packet to send [08:01:41]OFD Sender: No OFD packet to send [08:01:46]OFD Sender: No OFD packet to send [08:01:51]OFD Sender: No OFD packet to send [08:01:56]OFD Sender: No OFD packet to send [08:02:01]OFD Sender: No OFD packet to send [08:02:06]OFD Sender: No OFD packet to send [08:02:11]OFD Sender: No OFD packet to send [08:02:16]OFD Sender: No OFD packet to send [08:02:21]OFD Sender: No OFD packet to send [08:02:26]OFD Sender: No OFD packet to send [08:02:31]OFD Sender: No OFD packet to send [08:02:36]OFD Sender: No OFD packet to send [08:02:41]OFD Sender: No OFD packet to send [08:02:46]OFD Sender: No OFD packet to send [08:02:51]OFD Sender: No OFD packet to send [08:02:56]OFD Sender: No OFD packet to send [08:03:01]OFD Sender: No OFD packet to send [08:03:06]OFD Sender: No OFD packet to send [08:03:11]OFD Sender: No OFD packet to send [08:03:16]OFD Sender: No OFD packet to send [08:03:21]OFD Sender: No OFD packet to send [08:03:26]OFD Sender: No OFD packet to send [08:03:31]OFD Sender: No OFD packet to send [08:03:36]OFD Sender: No OFD packet to send [08:03:41]OFD Sender: No OFD packet to send [08:03:46]OFD Sender: No OFD packet to send [08:03:51]OFD Sender: No OFD packet to send [08:03:56]OFD Sender: No OFD packet to send [08:04:01]OFD Sender: No OFD packet to send [08:04:06]OFD Sender: No OFD packet to send [08:04:11]OFD Sender: No OFD packet to send [08:04:16]OFD Sender: No OFD packet to send [08:04:21]OFD Sender: No OFD packet to send [08:04:26]OFD Sender: No OFD packet to send [08:04:31]OFD Sender: No OFD packet to send [08:04:36]OFD Sender: No OFD packet to send [08:04:41]OFD Sender: No OFD packet to send [08:04:46]OFD Sender: No OFD packet to send [08:04:51]OFD Sender: No OFD packet to send [08:04:56]OFD Sender: No OFD packet to send [08:05:01]OFD Sender: No OFD packet to send [08:05:06]OFD Sender: No OFD packet to send [08:05:09]accept exits with 7 [08:05:09]New connection [08:05:09]New thread 3066785124 created [08:05:09]Thread 3066928484 joined [08:05:09]Waiting for new connection... [08:05:09] Sock 7.Parse request [08:05:09]Sock 7.Check first char [08:05:09]Sock 7.First char is OK [08:05:09]request: POST /json_proto HTTP/1.0 [08:05:09]Method: POST [08:05:09]URL: /json_proto [08:05:09]Method is POST - this is cgi request [08:05:09]url: /json_proto [08:05:09]query_string will be loaded in cgi processing [08:05:09]execute_cgi json_proto POST (null) [08:05:09]execute_cgi path=json_proto method=POST [08:05:09]POST find Content-Length [08:05:09]Host: 172.17.33.3:8080 [08:05:09]Content-Length: 677 [08:05:09]Content-Type: application/json [08:05:09] [08:05:09]POST finish read [08:05:09]Found Content-Length = 677 [08:05:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347502", "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" ] } } [08:05:09]execute_script... [08:05:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347502", "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" ] } } [08:05:09]POST & json_proto [08:05:09]process_json_proto [08:05:09]json parsed OK: [08:05:09]protocol is kg_v1.0 [08:05:09]action value=close_receipt [08:05:09]process_action close_receipt [08:05:09]cmd_close_receipt [08:05:09]MH_GetDate [08:05:09]Write to MH i2c: F0 00 00 6C 7C D7 [08:05:09]Write i2c OK [08:05:09]MH_I2C_Read... [08:05:09]Read from MH i2c: F0 [08:05:09]MH_I2C_Read... [08:05:09]Read from MH i2c: F0 09 00 [08:05:09]MH_I2C_Read... [08:05:09]Read from MH i2c: F0 09 00 6C 7C 00 3E 8E 1B 66 23 5B 8F 65 9F [08:05:09]GetLastDocTimeStamp 1713081557 [08:05:09]current date 1713081918 [08:05:09]FM_GetShiftState [08:05:09]SAM_PROTO_GetShiftState [08:05:09]wFMCommunicate request_size=4 [08:05:09]MH_SAM_APDU [08:05:09]CAPDU: 80 13 01 00 [08:05:09]Write to MH i2c: E2 08 00 6D 7C 80 13 01 00 00 00 00 00 66 [08:05:09]Write i2c OK [08:05:09]MH_I2C_Read... [08:05:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:05:09]Read from MH i2c: E2 [08:05:09]MH_I2C_Read... [08:05:09]Read from MH i2c: E2 0E 00 [08:05:09]MH_I2C_Read... [08:05:09]Read from MH i2c: E2 0E 00 6D 7C 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 12 [08:05:09]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [08:05:09]wFMCommunicate OK [08:05:09]SAM_PROTO_GetShiftState done [08:05:09]FM_GetShiftState done [08:05:09]opened in 1713053951 [08:05:09]opened+sec_in_day 1713140351 [08:05:09]quantity*price = 20061 [08:05:09]sum+1 = 20063 [08:05:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.30 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 43 14.04.2024 08:05 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29133 ФПД: 57333807891527 1/tax-web-control/client/api/v1/ticket?date=20240414T080518&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29133&fm=57333807891527&tin=02508201610067®Number=0000138879044617&sum=20000 [08:05:10]StoreToDocumentArchive [08:05:10]shift 116 fd 29133 [08:05:10]save to /storage/0116/doc_00029133 [08:05:10]save last doc name /storage/0116/doc_00029133 to /storage/kkm_last_doc_name [08:05:10]save OK [08:05:10]Clear old archive folders... [08:05:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:05:10]tlvbuf is 011FB210 [08:05:10]SAM_PROTO_ClearQueue [08:05:10]wFMCommunicate request_size=4 [08:05:10]MH_SAM_APDU [08:05:10]CAPDU: 80 09 00 00 [08:05:10]Write to MH i2c: E2 08 00 7A 7C 80 09 00 00 00 00 00 00 68 [08:05:10]Write i2c OK [08:05:10]MH_I2C_Read... [08:05:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:05:10]Read from MH i2c: E2 [08:05:10]MH_I2C_Read... [08:05:10]Read from MH i2c: E2 03 00 [08:05:10]MH_I2C_Read... [08:05:10]Read from MH i2c: E2 03 00 7A 7C 00 90 00 6A [08:05:10]RAPDU: 90 00 [08:05:10]wFMCommunicate OK [08:05:10]SAM_PROTO_ClearQueue done [08:05:10]KKMCreateOFDPacket [08:05:10]OFDProtocolAddRootSTLVToBuf [08:05:10]FM_MakeSignedData [08:05:10]FM_MakeSignedData [08:05:10]SAM_PROTO_SignData [08:05:10]wFMCommunicate request_size=4 [08:05:10]MH_SAM_APDU [08:05:10]CAPDU: 80 0D 01 02 [08:05:10]Write to MH i2c: E2 08 00 7B 7C 80 0D 01 02 00 00 00 00 70 [08:05:10]Write i2c OK [08:05:10]MH_I2C_Read... [08:05:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:05:11]Read from MH i2c: E2 [08:05:11]MH_I2C_Read... [08:05:11]Read from MH i2c: E2 03 00 [08:05:11]MH_I2C_Read... [08:05:11]Read from MH i2c: E2 03 00 7B 7C 00 90 00 6B [08:05:11]RAPDU: 90 00 [08:05:11]wFMCommunicate OK [08:05:11]wFMCommunicate request_size=255 [08:05:11]MH_SAM_APDU [08:05: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 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 2B 00 00 00 F4 03 04 00 3E 8E 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CD 71 00 00 35 04 06 00 34 [08:05:11]Write to MH i2c: E2 02 01 7C 7C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 2B 00 00 00 F4 03 04 00 3E 8E 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CD 71 00 00 35 04 06 00 34 00 00 FB [08:05:11]Write i2c OK [08:05:11]MH_I2C_Read... [08:05:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:05:11]Read from MH i2c: E2 [08:05:11]MH_I2C_Read... [08:05:11]Read from MH i2c: E2 03 00 [08:05:11]MH_I2C_Read... [08:05:11]Read from MH i2c: E2 03 00 7C 7C 00 90 00 6C [08:05:11]RAPDU: 90 00 [08:05:11]wFMCommunicate OK [08:05:11]wFMCommunicate request_size=10 [08:05:11]MH_SAM_APDU [08:05:11]CAPDU: 80 0D 02 02 05 25 11 40 C4 47 [08:05:11]Write to MH i2c: E2 0D 00 7D 7C 80 0D 02 02 05 00 25 11 40 C4 47 00 00 FE [08:05:11]Write i2c OK [08:05:11]MH_I2C_Read... [08:05:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:05:11]Read from MH i2c: E2 [08:05:11]MH_I2C_Read... [08:05:11]Read from MH i2c: E2 03 00 [08:05:11]MH_I2C_Read... [08:05:11]Read from MH i2c: E2 03 00 7D 7C 00 90 00 6D [08:05:11]RAPDU: 90 00 [08:05:11]wFMCommunicate OK [08:05:11]wFMCommunicate request_size=4 [08:05:11]MH_SAM_APDU [08:05:11]CAPDU: 80 0D 03 02 [08:05:11]Write to MH i2c: E2 08 00 7E 7C 80 0D 03 02 00 00 00 00 75 [08:05:11]Write i2c OK [08:05:11]MH_I2C_Read... [08:05:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:05:11]Read from MH i2c: E2 [08:05:11]MH_I2C_Read... [08:05:11]Read from MH i2c: E2 0B 00 [08:05:11]MH_I2C_Read... [08:05:11]Read from MH i2c: E2 0B 00 7E 7C 00 9D AA 8B 68 20 61 B6 C8 90 00 AF [08:05:11]RAPDU: 9D AA 8B 68 20 61 B6 C8 90 00 [08:05:11]wFMCommunicate OK [08:05:11]SAM_PROTO_SignData done [08:05:11]FM_MakeSignedData done [08:05:11]CreateOFDProtocolMessage [08:05:11]wFMCommunicate request_size=4 [08:05:11]MH_SAM_APDU [08:05:11]CAPDU: 80 11 00 00 [08:05:11]Write to MH i2c: E2 08 00 7F 7C 80 11 00 00 00 00 00 00 75 [08:05:11]Write i2c OK [08:05:11]MH_I2C_Read... [08:05:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:05:11]Read from MH i2c: E2 [08:05:11]MH_I2C_Read... [08:05:11]Read from MH i2c: E2 17 00 [08:05:11]MH_I2C_Read... [08:05:11]Read from MH i2c: E2 17 00 7F 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C4 [08:05:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:05:11]wFMCommunicate OK [08:05:11]CreateOFDProtocolMessage done [08:05:11]OFDSenderStorePacket 29133 [08:05:11]StoreOFDPacket docnum=29133 [08:05:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 3E 5B 07 01 9C 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 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 2B 00 00 00 F4 03 04 00 3E 8E 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CD 71 00 00 35 04 06 00 34 25 11 40 C4 47 9D AA 8B 68 20 61 B6 C8 [08:05:11]CheckFolder [08:05:11]dirname=/storage/ofd_packets [08:05:11]CheckFolder done [08:05:11]ProducePacketName [08:05:11]name=ofd_packets/00029133 [08:05:11]NVStorageSaveData ofd_packets/00029133 [08:05:11]File name is /storage/ofd_packets/00029133 [08:05:11]Write 301 bytes [08:05:11]NVStorageSaveData done [08:05:11]OFDSenderStorePacket done [08:05:11]KKMCreateOFDPacket done [08:05:11]NVStorageSaveData kkm_last_timestamp [08:05:11]File name is /storage/kkm_last_timestamp [08:05:11]Write 4 bytes [08:05:11]NVStorageSaveData done [08:05:11]ExternCall_PrintAddStr [08:05:11]wPrintStart [08:05:11]Write to MH i2c: 01 00 00 80 7C FC [08:05:11]Write i2c OK [08:05:11]MH_I2C_Read... [08:05:11]Read from MH i2c: 01 [08:05:11]MH_I2C_Read... [08:05:11]Read from MH i2c: 01 07 00 [08:05:11]MH_I2C_Read... [08:05:11]Read from MH i2c: 01 07 00 80 7C 00 00 00 00 00 FF 0F 11 [08:05:11]RasterBufferAndPrint [08:05:11]line Счет N : (1)347502 [08:05:11]line ИНН: 02508201610067 [08:05:11]line Контрольно-Кассовый Чек [08:05:11]line ПРОДАЖА [08:05:11]line ТРК (МРК, ГНК) : 32 [08:05:11]line Товар: 2710124130 [08:05:11]line Аи-92-К-5 [08:05:11]line 3.120 * 64.30 [08:05:11]line = 200.62 [08:05:11]line НДС 12% НСП 1% [08:05:11]line > о реализуемом товаре [08:05:11]line ОКРУГЛЕНИЕ: -0.62 [08:05:11]line ИТОГО: 200.00 [08:05:11]line Внесено: 200.00 [08:05:11]line СДАЧА: 0.00 [08:05:11]line НСП 1% : 1.77 [08:05:11]line НДС 12% : 21.30 [08:05:11]line Наличными: 200.00 [08:05:11]line Безнал.: 0.00 [08:05:11]line Место: АЗС № 108 "Партнер Нефть" [08:05:11]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:05:11]line СНО: Общий режим [08:05:11]line Чек 43 14.04.2024 08:05 [08:05:11]line Смена: 116 ФФД: 1.0 [08:05:11]line ЗНМ: 0300000027 [08:05:11]line РНМ: 0000138879044617 [08:05:11]line Версия ККМ: 001 [08:05:11]line ФМ: 0000000000963154 [08:05:11]line ФД: 29133 [08:05:11]line ФПД: 57333807891527 [08:05:11]line 1/tax-web-control/client/api/v1/ticket?date=20240414T080518&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29133&fm=57333807891527&tin=02508201610067®Number=0000138879044617&sum=20000 [08:05:11]OFD Sender: Processing packet 29133 [packets to send 8, broken 7] [08:05:11]ProducePacketName [08:05:11]name=ofd_packets/00029133 [08:05:11]OFD Sender: To server: pG, [08:05:11]CommunicateWithHost lk.salyk.kg:30040 [08:05:11]ConnectInit lk.salyk.kg [08:05:11]written 0, free lines is 4095 [08:05:11]Connected sock=10 [08:05:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 3E 5B 07 01 9C 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 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 2B 00 00 00 F4 03 04 00 3E 8E 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CD 71 00 00 35 04 06 00 34 25 11 40 C4 47 9D AA 8B 68 20 61 B6 C8 [08:05:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 EB 4E 47 00 7B DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CD 71 00 00 F4 03 04 00 E3 38 1B 66 B6 04 01 00 00 FE 38 EE 0C 40 19 88 E5 [08:05:12]CommunicateWithHost err = 0 [08:05:12]CheckOFDResponse [08:05:12]1017 (14) - 77093643461234 [08:05:12]1041 (16) - 0000000000963154 [08:05:12]1040 (4) - 29133 [08:05:12]1012 (4) - 14.04.2024 02:01 [08:05:12]1206 (1) - 0 [08:05:12]OFD Sender: Remove packet 29133 [08:05:12]ProducePacketName [08:05:12]name=ofd_packets/00029133 [08:05:12]NVStorageDeleteData [08:05:12]Write to MH i2c: 01 00 00 AA 7C 26 [08:05:12]Write i2c OK [08:05:12]MH_I2C_Read... [08:05:12]Read from MH i2c: 01 [08:05:12]MH_I2C_Read... [08:05:12]Read from MH i2c: 01 07 00 [08:05:12]MH_I2C_Read... [08:05:12]Read from MH i2c: 01 07 00 AA 7C 00 00 00 00 00 C6 0C FF [08:05:12]RasterBufferAndPrint [08:05:12]line [08:05:12]line [08:05:12]line [08:05:12]line [08:05:12]line [08:05:12]written 0, free lines is 3274 [08:05:12]MH_Cut [08:05:12]Write to MH i2c: D1 01 00 B1 7C 01 FF [08:05:12]Write i2c OK [08:05:12]MH_I2C_Read... [08:05:12]Read from MH i2c: D1 [08:05:12]MH_I2C_Read... [08:05:12]Read from MH i2c: D1 01 00 [08:05:12]MH_I2C_Read... [08:05:12]Read from MH i2c: D1 01 00 B1 7C 00 FE [08:05:12]Write to MH i2c: 01 00 00 B2 7C 2E [08:05:12]Write i2c OK [08:05:12]MH_I2C_Read... [08:05:12]OFD Sender: No OFD packet to send [08:05:13]*** Cut start [08:05:13]*** Partial cut [08:05:13]*** CUTSNS_PIN = 1 [08:05:13]*** CUTSNS_PIN = 0 [08:05:13]*** Brake cut motor [08:05:13]Read from MH i2c: 01 [08:05:13]MH_I2C_Read... [08:05:13]*** Stop cut motor [08:05:13]*** Cut end [08:05:13]Read from MH i2c: 01 07 00 [08:05:13]MH_I2C_Read... [08:05:13]Read from MH i2c: 01 07 00 B2 7C 00 00 00 00 00 FF 0F 43 [08:05:13]process_action close_receipt done [08:05:13]requested_data is exist [08:05:13]produce_requested_data [08:05:13]requested_item fm.sn is exist - process it [08:05:13]wFMCommunicate request_size=4 [08:05:13]MH_SAM_APDU [08:05:13]CAPDU: 80 11 00 00 [08:05:13]Write to MH i2c: E2 08 00 B3 7C 80 11 00 00 00 00 00 00 A9 [08:05:13]Write i2c OK [08:05:13]MH_I2C_Read... [08:05:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:05:13]Read from MH i2c: E2 [08:05:13]MH_I2C_Read... [08:05:13]Read from MH i2c: E2 17 00 [08:05:13]MH_I2C_Read... [08:05:13]Read from MH i2c: E2 17 00 B3 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F8 [08:05:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:05:13]wFMCommunicate OK [08:05:13]requested_item fd.num is exist - process it [08:05:13]SAM_PROTO_GetFieldsCounters [08:05:13]wFMCommunicate request_size=4 [08:05:13]MH_SAM_APDU [08:05:13]CAPDU: 80 13 00 00 [08:05:13]Write to MH i2c: E2 08 00 B4 7C 80 13 00 00 00 00 00 00 AC [08:05:13]Write i2c OK [08:05:13]MH_I2C_Read... [08:05:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:05:13]Read from MH i2c: E2 [08:05:13]MH_I2C_Read... [08:05:13]Read from MH i2c: E2 62 00 [08:05:13]MH_I2C_Read... [08:05:13]Read from MH i2c: E2 62 00 B4 7C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 CD 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 1D [08:05:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 CD 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:05:13]wFMCommunicate OK [08:05:13]SAM_PROTO_GetFieldsCounters done [08:05:13]requested_item shift.num is exist - process it [08:05:13]requested_item shift.opened is exist - process it [08:05:13]req_shift_opened [08:05:13]FM_GetShiftState [08:05:13]SAM_PROTO_GetShiftState [08:05:13]wFMCommunicate request_size=4 [08:05:13]MH_SAM_APDU [08:05:13]CAPDU: 80 13 01 00 [08:05:13]Write to MH i2c: E2 08 00 B5 7C 80 13 01 00 00 00 00 00 AE [08:05:13]Write i2c OK [08:05:13]MH_I2C_Read... [08:05:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:05:13]Read from MH i2c: E2 [08:05:13]MH_I2C_Read... [08:05:13]Read from MH i2c: E2 0E 00 [08:05:13]MH_I2C_Read... [08:05:13]Read from MH i2c: E2 0E 00 B5 7C 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 5A [08:05:13]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [08:05:13]wFMCommunicate OK [08:05:13]SAM_PROTO_GetShiftState done [08:05:13]FM_GetShiftState done [08:05:13]req_shift_opened done [08:05:13]requested_item shift.open_date is exist - process it [08:05:13]req_shift_open_date [08:05:13]req_shift_open_date done [08:05:13]produce_requested_data done [08:05:13]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29133,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [08:05:13]process_action_free close_receipt [08:05:13]json_value_free [08:05:13]json_value_free done [08:05:13]process_json_proto returns [08:05:13]Send response to host [08:05:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29133,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [08:05:13]free response buf [08:05:13]execute_script done [08:05:13]execute_script returns [08:05:13]free content buf [08:05:13]Sock 7.Close socket [08:05:13]Sock 7.Thread stoped [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:42]OFD Sender: No OFD packet to send [08:05:47]OFD Sender: No OFD packet to send [08:05:52]OFD Sender: No OFD packet to send [08:05:57]OFD Sender: No OFD packet to send [08:06:02]OFD Sender: No OFD packet to send [08:06:07]OFD Sender: No OFD packet to send [08:06:12]OFD Sender: No OFD packet to send [08:06:17]OFD Sender: No OFD packet to send [08:06:22]OFD Sender: No OFD packet to send [08:06:27]OFD Sender: No OFD packet to send [08:06:32]OFD Sender: No OFD packet to send [08:06:37]OFD Sender: No OFD packet to send [08:06:42]OFD Sender: No OFD packet to send [08:06:47]OFD Sender: No OFD packet to send [08:06:52]OFD Sender: No OFD packet to send [08:06:57]OFD Sender: No OFD packet to send [08:07:02]OFD Sender: No OFD packet to send [08:07:07]OFD Sender: No OFD packet to send [08:07:12]OFD Sender: No OFD packet to send [08:07:17]OFD Sender: No OFD packet to send [08:07:22]OFD Sender: No OFD packet to send [08:07:27]OFD Sender: No OFD packet to send [08:07:32]OFD Sender: No OFD packet to send [08:07:37]OFD Sender: No OFD packet to send [08:07:42]OFD Sender: No OFD packet to send [08:07:47]OFD Sender: No OFD packet to send [08:07:51]accept exits with 9 [08:07:51]New connection [08:07:51]New thread 3066928484 created [08:07:51]Thread 3066785124 joined [08:07:51]Waiting for new connection... [08:07:51] Sock 9.Parse request [08:07:51]Sock 9.Check first char [08:07:51]Sock 9.First char is OK [08:07:51]request: POST /json_proto HTTP/1.0 [08:07:51]Method: POST [08:07:51]URL: /json_proto [08:07:51]Method is POST - this is cgi request [08:07:51]url: /json_proto [08:07:51]query_string will be loaded in cgi processing [08:07:51]execute_cgi json_proto POST (null) [08:07:51]execute_cgi path=json_proto method=POST [08:07:51]POST find Content-Length [08:07:51]Host: 172.17.33.3:8080 [08:07:51]Content-Length: 813 [08:07:51]Content-Type: application/json [08:07:51] [08:07:51]POST finish read [08:07:51]Found Content-Length = 813 [08:07:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347504", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.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" ] } } [08:07:51]execute_script... [08:07: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)347504", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.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" ] } } [08:07:51]POST & json_proto [08:07:51]process_json_proto [08:07:51]json parsed OK: [08:07:51]protocol is kg_v1.0 [08:07:51]action value=close_receipt [08:07:51]process_action close_receipt [08:07:51]cmd_close_receipt [08:07:51]MH_GetDate [08:07:51]Write to MH i2c: F0 00 00 B6 7C 21 [08:07:51]Write i2c OK [08:07:51]MH_I2C_Read... [08:07:51]Read from MH i2c: F0 [08:07:51]MH_I2C_Read... [08:07:51]Read from MH i2c: F0 09 00 [08:07:51]MH_I2C_Read... [08:07:51]Read from MH i2c: F0 09 00 B6 7C 00 E0 8E 1B 66 23 5B 8F 65 8B [08:07:51]GetLastDocTimeStamp 1713081918 [08:07:51]current date 1713082080 [08:07:51]FM_GetShiftState [08:07:51]SAM_PROTO_GetShiftState [08:07:51]wFMCommunicate request_size=4 [08:07:51]MH_SAM_APDU [08:07:51]CAPDU: 80 13 01 00 [08:07:51]Write to MH i2c: E2 08 00 B7 7C 80 13 01 00 00 00 00 00 B0 [08:07:51]Write i2c OK [08:07:51]MH_I2C_Read... [08:07:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:07:51]Read from MH i2c: E2 [08:07:51]MH_I2C_Read... [08:07:51]Read from MH i2c: E2 0E 00 [08:07:51]MH_I2C_Read... [08:07:51]Read from MH i2c: E2 0E 00 B7 7C 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 5C [08:07:51]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [08:07:51]wFMCommunicate OK [08:07:51]SAM_PROTO_GetShiftState done [08:07:51]FM_GetShiftState done [08:07:51]opened in 1713053951 [08:07:51]opened+sec_in_day 1713140351 [08:07:51]quantity*price = 60019 [08:07:51]sum+1 = 60021 [08:07:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.20 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 0.00 Безнал.: 600.20 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 44 14.04.2024 08:08 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 29134 ФПД: 69066051751790 1/tax-web-control/client/api/v1/ticket?date=20240414T080800&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29134&fm=69066051751790&tin=02508201610067®Number=0000138879044617&sum=60020 [08:07:52]StoreToDocumentArchive [08:07:52]shift 116 fd 29134 [08:07:52]save to /storage/0116/doc_00029134 [08:07:52]save last doc name /storage/0116/doc_00029134 to /storage/kkm_last_doc_name [08:07:52]save OK [08:07:52]Clear old archive folders... [08:07:52]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:07:52]tlvbuf is 012F0A50 [08:07:52]SAM_PROTO_ClearQueue [08:07:52]wFMCommunicate request_size=4 [08:07:52]MH_SAM_APDU [08:07:52]CAPDU: 80 09 00 00 [08:07:52]Write to MH i2c: E2 08 00 C4 7C 80 09 00 00 00 00 00 00 B2 [08:07:52]Write i2c OK [08:07:52]MH_I2C_Read... [08:07:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:07:52]Read from MH i2c: E2 [08:07:52]MH_I2C_Read... [08:07:52]Read from MH i2c: E2 03 00 [08:07:52]MH_I2C_Read... [08:07:52]Read from MH i2c: E2 03 00 C4 7C 00 90 00 B4 [08:07:52]RAPDU: 90 00 [08:07:52]wFMCommunicate OK [08:07:52]SAM_PROTO_ClearQueue done [08:07:52]KKMCreateOFDPacket [08:07:52]OFDProtocolAddRootSTLVToBuf [08:07:52]FM_MakeSignedData [08:07:52]FM_MakeSignedData [08:07:52]SAM_PROTO_SignData [08:07:52]wFMCommunicate request_size=4 [08:07:52]MH_SAM_APDU [08:07:52]CAPDU: 80 0D 01 02 [08:07:52]Write to MH i2c: E2 08 00 C5 7C 80 0D 01 02 00 00 00 00 BA [08:07:52]Write i2c OK [08:07:52]MH_I2C_Read... [08:07:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:07:52]Read from MH i2c: E2 [08:07:52]MH_I2C_Read... [08:07:52]Read from MH i2c: E2 03 00 [08:07:52]MH_I2C_Read... [08:07:52]Read from MH i2c: E2 03 00 C5 7C 00 90 00 B5 [08:07:52]RAPDU: 90 00 [08:07:52]wFMCommunicate OK [08:07:52]wFMCommunicate request_size=255 [08:07:52]MH_SAM_APDU [08:07:52]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 2C 00 00 00 F4 03 04 00 E0 8E 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CE 71 00 00 35 04 06 00 3E D0 B1 7B [08:07:52]Write to MH i2c: E2 02 01 C6 7C 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 2C 00 00 00 F4 03 04 00 E0 8E 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CE 71 00 00 35 04 06 00 3E D0 B1 7B 00 00 4F [08:07:52]Write i2c OK [08:07:52]MH_I2C_Read... [08:07:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:07:53]Read from MH i2c: E2 [08:07:53]MH_I2C_Read... [08:07:53]Read from MH i2c: E2 03 00 [08:07:53]MH_I2C_Read... [08:07:53]Read from MH i2c: E2 03 00 C6 7C 00 90 00 B6 [08:07:53]RAPDU: 90 00 [08:07:53]wFMCommunicate OK [08:07:53]wFMCommunicate request_size=7 [08:07:53]MH_SAM_APDU [08:07:53]CAPDU: 80 0D 02 02 02 0F 6E [08:07:53]Write to MH i2c: E2 0A 00 C7 7C 80 0D 02 02 02 00 0F 6E 00 00 3E [08:07:53]Write i2c OK [08:07:53]MH_I2C_Read... [08:07:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:07:53]Read from MH i2c: E2 [08:07:53]MH_I2C_Read... [08:07:53]Read from MH i2c: E2 03 00 [08:07:53]MH_I2C_Read... [08:07:53]Read from MH i2c: E2 03 00 C7 7C 00 90 00 B7 [08:07:53]RAPDU: 90 00 [08:07:53]wFMCommunicate OK [08:07:53]wFMCommunicate request_size=4 [08:07:53]MH_SAM_APDU [08:07:53]CAPDU: 80 0D 03 02 [08:07:53]Write to MH i2c: E2 08 00 C8 7C 80 0D 03 02 00 00 00 00 BF [08:07:53]Write i2c OK [08:07:53]MH_I2C_Read... [08:07:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:07:53]Read from MH i2c: E2 [08:07:53]MH_I2C_Read... [08:07:53]Read from MH i2c: E2 0B 00 [08:07:53]MH_I2C_Read... [08:07:53]Read from MH i2c: E2 0B 00 C8 7C 00 BC DD 26 E8 E0 CB 4B 85 90 00 E2 [08:07:53]RAPDU: BC DD 26 E8 E0 CB 4B 85 90 00 [08:07:53]wFMCommunicate OK [08:07:53]SAM_PROTO_SignData done [08:07:53]FM_MakeSignedData done [08:07:53]CreateOFDProtocolMessage [08:07:53]wFMCommunicate request_size=4 [08:07:53]MH_SAM_APDU [08:07:53]CAPDU: 80 11 00 00 [08:07:53]Write to MH i2c: E2 08 00 C9 7C 80 11 00 00 00 00 00 00 BF [08:07:53]Write i2c OK [08:07:53]MH_I2C_Read... [08:07:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:07:53]Read from MH i2c: E2 [08:07:53]MH_I2C_Read... [08:07:53]Read from MH i2c: E2 17 00 [08:07:53]MH_I2C_Read... [08:07:53]Read from MH i2c: E2 17 00 C9 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 0E [08:07:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:07:53]wFMCommunicate OK [08:07:53]CreateOFDProtocolMessage done [08:07:53]OFDSenderStorePacket 29134 [08:07:53]StoreOFDPacket docnum=29134 [08:07:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 84 E4 04 01 17 35 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 2C 00 00 00 F4 03 04 00 E0 8E 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CE 71 00 00 35 04 06 00 3E D0 B1 7B 0F 6E BC DD 26 E8 E0 CB 4B 85 [08:07:53]CheckFolder [08:07:53]dirname=/storage/ofd_packets [08:07:53]CheckFolder done [08:07:53]ProducePacketName [08:07:53]name=ofd_packets/00029134 [08:07:53]NVStorageSaveData ofd_packets/00029134 [08:07:53]File name is /storage/ofd_packets/00029134 [08:07:53]Write 298 bytes [08:07:53]NVStorageSaveData done [08:07:53]OFDSenderStorePacket done [08:07:53]KKMCreateOFDPacket done [08:07:53]NVStorageSaveData kkm_last_timestamp [08:07:53]File name is /storage/kkm_last_timestamp [08:07:53]Write 4 bytes [08:07:53]NVStorageSaveData done [08:07:53]ExternCall_PrintAddStr [08:07:53]wPrintStart [08:07:53]Write to MH i2c: 01 00 00 CA 7C 46 [08:07:53]Write i2c OK [08:07:53]MH_I2C_Read... [08:07:53]Read from MH i2c: 01 [08:07:53]MH_I2C_Read... [08:07:53]Read from MH i2c: 01 07 00 [08:07:53]MH_I2C_Read... [08:07:53]Read from MH i2c: 01 07 00 CA 7C 00 00 00 00 00 FF 0F 5B [08:07:53]RasterBufferAndPrint [08:07:53]line Счет N : (1)347504 [08:07:53]line ИНН: 02508201610067 [08:07:53]line Контрольно-Кассовый Чек [08:07:53]line ПРОДАЖА [08:07:53]line ТРК (МРК, ГНК) : 11 [08:07:53]line Товар: 2710194210 [08:07:53]line ДТ-К-5 [08:07:53]line 8.290 * 72.40 [08:07:53]line = 600.20 [08:07:53]line НДС 12% НСП 1% [08:07:53]line > о реализуемом товаре [08:07:53]line ИТОГО: 600.20 [08:07:53]line НСП 1% : 5.31 [08:07:53]line НДС 12% : 63.74 [08:07:53]line Наличными: 0.00 [08:07:53]line Безнал.: 600.20 [08:07:53]line Место: АЗС № 108 "Партнер Нефть" [08:07:53]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:07:53]line СНО: Общий режим [08:07:53]line Чек 44 14.04.2024 08:08 [08:07:53]line Смена: 116 ФФД: 1.0 [08:07:53]line ЗНМ: 0300000027 [08:07:53]line РНМ: 0000138879044617 [08:07:53]line Версия ККМ: 001 [08:07:53]line Платежная система: Бакай Банк [08:07:53]line ФМ: 0000000000963154 [08:07:53]line ФД: 29134 [08:07:53]line ФПД: 69066051751790 [08:07:53]line 1/tax-web-control/client/api/v1/ticket?date=20240414T080800&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29134&fm=69066051751790&tin=02508201610067®Number=0000138879044617&sum=60020 [08:07:53]OFD Sender: Processing packet 29134 [packets to send 8, broken 7] [08:07:53]ProducePacketName [08:07:53]name=ofd_packets/00029134 [08:07:53]OFD Sender: To server: pG, [08:07:53]CommunicateWithHost lk.salyk.kg:30040 [08:07:53]ConnectInit lk.salyk.kg [08:07:53]written 0, free lines is 4095 [08:07:53]Connected sock=10 [08:07:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 84 E4 04 01 17 35 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 2C 00 00 00 F4 03 04 00 E0 8E 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CE 71 00 00 35 04 06 00 3E D0 B1 7B 0F 6E BC DD 26 E8 E0 CB 4B 85 [08:07:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 91 8C 47 00 9A 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 39 36 33 31 35 34 10 04 04 00 CE 71 00 00 F4 03 04 00 85 39 1B 66 B6 04 01 00 00 C1 2B 46 38 2B 25 CE 1F [08:07:53]CommunicateWithHost err = 0 [08:07:53]CheckOFDResponse [08:07:53]1017 (14) - 77093643461234 [08:07:53]1041 (16) - 0000000000963154 [08:07:53]1040 (4) - 29134 [08:07:53]1012 (4) - 14.04.2024 02:03 [08:07:53]1206 (1) - 0 [08:07:53]OFD Sender: Remove packet 29134 [08:07:53]ProducePacketName [08:07:53]name=ofd_packets/00029134 [08:07:53]NVStorageDeleteData [08:07:54]Write to MH i2c: 01 00 00 F3 7C 6F [08:07:54]Write i2c OK [08:07:54]MH_I2C_Read... [08:07:54]Read from MH i2c: 01 [08:07:54]MH_I2C_Read... [08:07:54]Read from MH i2c: 01 07 00 [08:07:54]MH_I2C_Read... [08:07:54]Read from MH i2c: 01 07 00 F3 7C 00 00 00 00 00 DB 0C 5D [08:07:54]RasterBufferAndPrint [08:07:54]line [08:07:54]line [08:07:54]line [08:07:54]line [08:07:54]line [08:07:54]written 0, free lines is 3301 [08:07:54]MH_Cut [08:07:54]Write to MH i2c: D1 01 00 FA 7C 01 48 [08:07:54]Write i2c OK [08:07:54]MH_I2C_Read... [08:07:54]Read from MH i2c: D1 [08:07:54]MH_I2C_Read... [08:07:54]Read from MH i2c: D1 01 00 [08:07:54]MH_I2C_Read... [08:07:54]Read from MH i2c: D1 01 00 FA 7C 00 47 [08:07:54]Write to MH i2c: 01 00 00 FB 7C 77 [08:07:54]Write i2c OK [08:07:54]MH_I2C_Read... [08:07:54]OFD Sender: No OFD packet to send [08:07:54]*** Cut start [08:07:54]*** Partial cut [08:07:54]*** CUTSNS_PIN = 1 [08:07:54]*** CUTSNS_PIN = 0 [08:07:55]*** Brake cut motor [08:07:55]Read from MH i2c: 01 [08:07:55]MH_I2C_Read... [08:07:55]*** Stop cut motor [08:07:55]*** Cut end [08:07:55]Read from MH i2c: 01 07 00 [08:07:55]MH_I2C_Read... [08:07:55]Read from MH i2c: 01 07 00 FB 7C 00 00 00 00 00 FF 0F 8C [08:07:55]process_action close_receipt done [08:07:55]requested_data is exist [08:07:55]produce_requested_data [08:07:55]requested_item fm.sn is exist - process it [08:07:55]wFMCommunicate request_size=4 [08:07:55]MH_SAM_APDU [08:07:55]CAPDU: 80 11 00 00 [08:07:55]Write to MH i2c: E2 08 00 FC 7C 80 11 00 00 00 00 00 00 F2 [08:07:55]Write i2c OK [08:07:55]MH_I2C_Read... [08:07:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:07:55]Read from MH i2c: E2 [08:07:55]MH_I2C_Read... [08:07:55]Read from MH i2c: E2 17 00 [08:07:55]MH_I2C_Read... [08:07:55]Read from MH i2c: E2 17 00 FC 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 41 [08:07:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:07:55]wFMCommunicate OK [08:07:55]requested_item fd.num is exist - process it [08:07:55]SAM_PROTO_GetFieldsCounters [08:07:55]wFMCommunicate request_size=4 [08:07:55]MH_SAM_APDU [08:07:55]CAPDU: 80 13 00 00 [08:07:55]Write to MH i2c: E2 08 00 FD 7C 80 13 00 00 00 00 00 00 F5 [08:07:55]Write i2c OK [08:07:55]MH_I2C_Read... [08:07:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:07:55]Read from MH i2c: E2 [08:07:55]MH_I2C_Read... [08:07:55]Read from MH i2c: E2 62 00 [08:07:55]MH_I2C_Read... [08:07:55]Read from MH i2c: E2 62 00 FD 7C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 CE 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 6A [08:07:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 CE 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:07:55]wFMCommunicate OK [08:07:55]SAM_PROTO_GetFieldsCounters done [08:07:55]requested_item shift.num is exist - process it [08:07:55]requested_item shift.opened is exist - process it [08:07:55]req_shift_opened [08:07:55]FM_GetShiftState [08:07:55]SAM_PROTO_GetShiftState [08:07:55]wFMCommunicate request_size=4 [08:07:55]MH_SAM_APDU [08:07:55]CAPDU: 80 13 01 00 [08:07:55]Write to MH i2c: E2 08 00 FE 7C 80 13 01 00 00 00 00 00 F7 [08:07:55]Write i2c OK [08:07:55]MH_I2C_Read... [08:07:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:07:55]Read from MH i2c: E2 [08:07:55]MH_I2C_Read... [08:07:55]Read from MH i2c: E2 0E 00 [08:07:55]MH_I2C_Read... [08:07:55]Read from MH i2c: E2 0E 00 FE 7C 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 A3 [08:07:55]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [08:07:55]wFMCommunicate OK [08:07:55]SAM_PROTO_GetShiftState done [08:07:55]FM_GetShiftState done [08:07:55]req_shift_opened done [08:07:55]requested_item shift.open_date is exist - process it [08:07:55]req_shift_open_date [08:07:55]req_shift_open_date done [08:07:55]produce_requested_data done [08:07:55]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29134,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [08:07:55]process_action_free close_receipt [08:07:55]json_value_free [08:07:55]json_value_free done [08:07:55]process_json_proto returns [08:07:55]Send response to host [08:07:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29134,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [08:07:55]free response buf [08:07:55]execute_script done [08:07:55]execute_script returns [08:07:55]free content buf [08:07:55]Sock 9.Close socket [08:07:55]Sock 9.Thread stoped [08:07:56]accept exits with 7 [08:07:56]New connection [08:07:56]New thread 3066785124 created [08:07:56]Thread 3066928484 joined [08:07:56]Waiting for new connection... [08:07:56] Sock 7.Parse request [08:07:56]Sock 7.Check first char [08:07:56]Sock 7.First char is OK [08:07:56]request: POST /json_proto HTTP/1.0 [08:07:56]Method: POST [08:07:56]URL: /json_proto [08:07:56]Method is POST - this is cgi request [08:07:56]url: /json_proto [08:07:56]query_string will be loaded in cgi processing [08:07:56]execute_cgi json_proto POST (null) [08:07:56]execute_cgi path=json_proto method=POST [08:07:56]POST find Content-Length [08:07:56]Host: 172.17.33.3:8080 [08:07:56]Content-Length: 682 [08:07:56]Content-Type: application/json [08:07:56] [08:07:56]POST finish read [08:07:56]Found Content-Length = 682 [08:07:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347503", "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" : 21.180, "sum" : 1361.87, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1361.00, "payments": [ { "type": 0, "sum" : 1361.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:07:56]execute_script... [08:07: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)347503", "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" : 21.180, "sum" : 1361.87, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1361.00, "payments": [ { "type": 0, "sum" : 1361.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:07:56]POST & json_proto [08:07:56]process_json_proto [08:07:56]json parsed OK: [08:07:56]protocol is kg_v1.0 [08:07:56]action value=close_receipt [08:07:56]process_action close_receipt [08:07:56]cmd_close_receipt [08:07:56]MH_GetDate [08:07:56]Write to MH i2c: F0 00 00 FF 7C 6A [08:07:56]Write i2c OK [08:07:56]MH_I2C_Read... [08:07:56]Read from MH i2c: F0 [08:07:56]MH_I2C_Read... [08:07:56]Read from MH i2c: F0 09 00 [08:07:56]MH_I2C_Read... [08:07:56]Read from MH i2c: F0 09 00 FF 7C 00 E5 8E 1B 66 23 5B 8F 65 D9 [08:07:56]GetLastDocTimeStamp 1713082080 [08:07:56]current date 1713082085 [08:07:56]FM_GetShiftState [08:07:56]SAM_PROTO_GetShiftState [08:07:56]wFMCommunicate request_size=4 [08:07:56]MH_SAM_APDU [08:07:56]CAPDU: 80 13 01 00 [08:07:56]Write to MH i2c: E2 08 00 00 7D 80 13 01 00 00 00 00 00 FA [08:07:56]Write i2c OK [08:07:56]MH_I2C_Read... [08:07:56]Read from MH i2c: E2 [08:07:56]MH_I2C_Read... [08:07:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:07:56]Read from MH i2c: E2 0E 00 [08:07:56]MH_I2C_Read... [08:07:56]Read from MH i2c: E2 0E 00 00 7D 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 A6 [08:07:56]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [08:07:56]wFMCommunicate OK [08:07:56]SAM_PROTO_GetShiftState done [08:07:56]FM_GetShiftState done [08:07:56]opened in 1713053951 [08:07:56]opened+sec_in_day 1713140351 [08:07:56]quantity*price = 136187 [08:07:56]sum+1 = 136188 [08:07:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.87 ИТОГО: 1361.00 Внесено: 1500.00 СДАЧА: 139.00 НСП 1% : 12.05 НДС 12% : 144.62 Наличными: 1361.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 45 14.04.2024 08:08 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29135 ФПД: 211811366743824 1/tax-web-control/client/api/v1/ticket?date=20240414T080805&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29135&fm=211811366743824&tin=02508201610067®Number=0000138879044617&sum=136100 [08:07:57]StoreToDocumentArchive [08:07:57]shift 116 fd 29135 [08:07:57]save to /storage/0116/doc_00029135 [08:07:57]save last doc name /storage/0116/doc_00029135 to /storage/kkm_last_doc_name [08:07:57]save OK [08:07:57]Clear old archive folders... [08:07:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:07:57]tlvbuf is 011ECA00 [08:07:57]SAM_PROTO_ClearQueue [08:07:57]wFMCommunicate request_size=4 [08:07:57]MH_SAM_APDU [08:07:57]CAPDU: 80 09 00 00 [08:07:57]Write to MH i2c: E2 08 00 0D 7D 80 09 00 00 00 00 00 00 FC [08:07:57]Write i2c OK [08:07:57]MH_I2C_Read... [08:07:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:07:57]Read from MH i2c: E2 [08:07:57]MH_I2C_Read... [08:07:57]Read from MH i2c: E2 03 00 [08:07:57]MH_I2C_Read... [08:07:57]Read from MH i2c: E2 03 00 0D 7D 00 90 00 FE [08:07:57]RAPDU: 90 00 [08:07:57]wFMCommunicate OK [08:07:57]SAM_PROTO_ClearQueue done [08:07:57]KKMCreateOFDPacket [08:07:57]OFDProtocolAddRootSTLVToBuf [08:07:57]FM_MakeSignedData [08:07:57]FM_MakeSignedData [08:07:57]SAM_PROTO_SignData [08:07:57]wFMCommunicate request_size=4 [08:07:57]MH_SAM_APDU [08:07:57]CAPDU: 80 0D 01 02 [08:07:57]Write to MH i2c: E2 08 00 0E 7D 80 0D 01 02 00 00 00 00 04 [08:07:57]Write i2c OK [08:07:57]MH_I2C_Read... [08:07:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:07:57]Read from MH i2c: E2 [08:07:57]MH_I2C_Read... [08:07:57]Read from MH i2c: E2 03 00 [08:07:57]MH_I2C_Read... [08:07:57]Read from MH i2c: E2 03 00 0E 7D 00 90 00 FF [08:07:57]RAPDU: 90 00 [08:07:57]wFMCommunicate OK [08:07:57]wFMCommunicate request_size=255 [08:07:57]MH_SAM_APDU [08:07: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 BC 52 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 FB 13 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 13 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 38 00 00 00 00 07 04 06 00 A4 13 02 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 E5 8E 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CF 71 00 00 35 04 06 00 C0 [08:07:57]Write to MH i2c: E2 02 01 0F 7D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BC 52 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 FB 13 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 13 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 38 00 00 00 00 07 04 06 00 A4 13 02 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 E5 8E 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CF 71 00 00 35 04 06 00 C0 00 00 F6 [08:07:57]Write i2c OK [08:07:57]MH_I2C_Read... [08:07:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:07:58]Read from MH i2c: E2 [08:07:58]MH_I2C_Read... [08:07:58]Read from MH i2c: E2 03 00 [08:07:58]MH_I2C_Read... [08:07:58]Read from MH i2c: E2 03 00 0F 7D 00 90 00 00 [08:07:58]RAPDU: 90 00 [08:07:58]wFMCommunicate OK [08:07:58]wFMCommunicate request_size=10 [08:07:58]MH_SAM_APDU [08:07:58]CAPDU: 80 0D 02 02 05 A4 2D 46 2F 10 [08:07:58]Write to MH i2c: E2 0D 00 10 7D 80 0D 02 02 05 00 A4 2D 46 2F 10 00 00 67 [08:07:58]Write i2c OK [08:07:58]MH_I2C_Read... [08:07:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:07:58]Read from MH i2c: E2 [08:07:58]MH_I2C_Read... [08:07:58]Read from MH i2c: E2 03 00 [08:07:58]MH_I2C_Read... [08:07:58]Read from MH i2c: E2 03 00 10 7D 00 90 00 01 [08:07:58]RAPDU: 90 00 [08:07:58]wFMCommunicate OK [08:07:58]wFMCommunicate request_size=4 [08:07:58]MH_SAM_APDU [08:07:58]CAPDU: 80 0D 03 02 [08:07:58]Write to MH i2c: E2 08 00 11 7D 80 0D 03 02 00 00 00 00 09 [08:07:58]Write i2c OK [08:07:58]MH_I2C_Read... [08:07:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:07:58]Read from MH i2c: E2 [08:07:58]MH_I2C_Read... [08:07:58]Read from MH i2c: E2 0B 00 [08:07:58]MH_I2C_Read... [08:07:58]Read from MH i2c: E2 0B 00 11 7D 00 8D D4 3A 35 0F 23 DB F9 90 00 E0 [08:07:58]RAPDU: 8D D4 3A 35 0F 23 DB F9 90 00 [08:07:58]wFMCommunicate OK [08:07:58]SAM_PROTO_SignData done [08:07:58]FM_MakeSignedData done [08:07:58]CreateOFDProtocolMessage [08:07:58]wFMCommunicate request_size=4 [08:07:58]MH_SAM_APDU [08:07:58]CAPDU: 80 11 00 00 [08:07:58]Write to MH i2c: E2 08 00 12 7D 80 11 00 00 00 00 00 00 09 [08:07:58]Write i2c OK [08:07:58]MH_I2C_Read... [08:07:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:07:58]Read from MH i2c: E2 [08:07:58]MH_I2C_Read... [08:07:58]Read from MH i2c: E2 17 00 [08:07:58]MH_I2C_Read... [08:07:58]Read from MH i2c: E2 17 00 12 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 58 [08:07:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:07:58]wFMCommunicate OK [08:07:58]CreateOFDProtocolMessage done [08:07:58]OFDSenderStorePacket 29135 [08:07:58]StoreOFDPacket docnum=29135 [08:07:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 9B CE 07 01 49 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 BC 52 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 FB 13 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 13 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 38 00 00 00 00 07 04 06 00 A4 13 02 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 E5 8E 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CF 71 00 00 35 04 06 00 C0 A4 2D 46 2F 10 8D D4 3A 35 0F 23 DB F9 [08:07:58]CheckFolder [08:07:58]dirname=/storage/ofd_packets [08:07:58]CheckFolder done [08:07:58]ProducePacketName [08:07:58]name=ofd_packets/00029135 [08:07:58]NVStorageSaveData ofd_packets/00029135 [08:07:58]File name is /storage/ofd_packets/00029135 [08:07:58]Write 301 bytes [08:07:58]NVStorageSaveData done [08:07:58]OFDSenderStorePacket done [08:07:58]KKMCreateOFDPacket done [08:07:58]NVStorageSaveData kkm_last_timestamp [08:07:58]File name is /storage/kkm_last_timestamp [08:07:58]Write 4 bytes [08:07:58]NVStorageSaveData done [08:07:58]ExternCall_PrintAddStr [08:07:58]wPrintStart [08:07:58]Write to MH i2c: 01 00 00 13 7D 90 [08:07:58]Write i2c OK [08:07:58]MH_I2C_Read... [08:07:58]Read from MH i2c: 01 [08:07:58]MH_I2C_Read... [08:07:58]Read from MH i2c: 01 07 00 [08:07:58]MH_I2C_Read... [08:07:58]Read from MH i2c: 01 07 00 13 7D 00 00 00 00 00 FF 0F A5 [08:07:58]RasterBufferAndPrint [08:07:58]line Счет N : (1)347503 [08:07:58]line ИНН: 02508201610067 [08:07:58]line Контрольно-Кассовый Чек [08:07:58]line ПРОДАЖА [08:07:58]line ТРК (МРК, ГНК) : 42 [08:07:58]line Товар: 2710124130 [08:07:58]line Аи-92-К-5 [08:07:58]line 21.180 * 64.30 [08:07:58]line = 1361.87 [08:07:58]line НДС 12% НСП 1% [08:07:58]line > о реализуемом товаре [08:07:58]line ОКРУГЛЕНИЕ: -0.87 [08:07:58]line ИТОГО: 1361.00 [08:07:58]line Внесено: 1500.00 [08:07:58]line СДАЧА: 139.00 [08:07:58]line НСП 1% : 12.05 [08:07:58]line НДС 12% : 144.62 [08:07:58]line Наличными: 1361.00 [08:07:58]line Безнал.: 0.00 [08:07:58]line Место: АЗС № 108 "Партнер Нефть" [08:07:58]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:07:58]line СНО: Общий режим [08:07:58]line Чек 45 14.04.2024 08:08 [08:07:58]line Смена: 116 ФФД: 1.0 [08:07:58]line ЗНМ: 0300000027 [08:07:58]line РНМ: 0000138879044617 [08:07:58]line Версия ККМ: 001 [08:07:58]line ФМ: 0000000000963154 [08:07:58]line ФД: 29135 [08:07:58]line ФПД: 211811366743824 [08:07:58]line 1/tax-web-control/client/api/v1/ticket?date=20240414T080805&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29135&fm=211811366743824&tin=02508201610067®Number=0000138879044617&sum=136100 [08:07:58]OFD Sender: Processing packet 29135 [packets to send 8, broken 7] [08:07:58]ProducePacketName [08:07:58]name=ofd_packets/00029135 [08:07:58]written 0, free lines is 4095 [08:07:58]OFD Sender: To server: pG, [08:07:58]CommunicateWithHost lk.salyk.kg:30040 [08:07:58]ConnectInit lk.salyk.kg [08:07:58]Connected sock=10 [08:07:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 9B CE 07 01 49 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 BC 52 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 FB 13 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 13 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 38 00 00 00 00 07 04 06 00 A4 13 02 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 E5 8E 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CF 71 00 00 35 04 06 00 C0 A4 2D 46 2F 10 8D D4 3A 35 0F 23 DB F9 [08:07:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 C4 23 47 00 31 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 39 36 33 31 35 34 10 04 04 00 CF 71 00 00 F4 03 04 00 8A 39 1B 66 B6 04 01 00 00 A4 83 AB 5A 86 C7 C2 56 [08:07:58]CommunicateWithHost err = 0 [08:07:58]CheckOFDResponse [08:07:58]1017 (14) - 77093643461234 [08:07:58]1041 (16) - 0000000000963154 [08:07:58]1040 (4) - 29135 [08:07:58]1012 (4) - 14.04.2024 02:03 [08:07:58]1206 (1) - 0 [08:07:58]OFD Sender: Remove packet 29135 [08:07:58]ProducePacketName [08:07:58]name=ofd_packets/00029135 [08:07:58]NVStorageDeleteData [08:07:59]Write to MH i2c: 01 00 00 3D 7D BA [08:07:59]Write i2c OK [08:07:59]MH_I2C_Read... [08:07:59]Read from MH i2c: 01 [08:07:59]MH_I2C_Read... [08:07:59]Read from MH i2c: 01 07 00 [08:07:59]MH_I2C_Read... [08:07:59]Read from MH i2c: 01 07 00 3D 7D 00 00 00 00 00 CF 0C 9C [08:07:59]RasterBufferAndPrint [08:07:59]line [08:07:59]line [08:07:59]line [08:07:59]line [08:07:59]line [08:07:59]written 0, free lines is 3291 [08:07:59]MH_Cut [08:07:59]Write to MH i2c: D1 01 00 44 7D 01 93 [08:07:59]Write i2c OK [08:07:59]MH_I2C_Read... [08:07:59]Read from MH i2c: D1 [08:07:59]MH_I2C_Read... [08:07:59]Read from MH i2c: D1 01 00 [08:07:59]MH_I2C_Read... [08:07:59]Read from MH i2c: D1 01 00 44 7D 00 92 [08:07:59]Write to MH i2c: 01 00 00 45 7D C2 [08:07:59]Write i2c OK [08:07:59]MH_I2C_Read... [08:07:59]OFD Sender: No OFD packet to send [08:07:59]*** Cut start [08:07:59]*** Partial cut [08:07:59]*** CUTSNS_PIN = 1 [08:07:59]*** CUTSNS_PIN = 0 [08:08:00]*** Brake cut motor [08:08:00]Read from MH i2c: 01 [08:08:00]MH_I2C_Read... [08:08:00]*** Stop cut motor [08:08:00]*** Cut end [08:08:00]Read from MH i2c: 01 07 00 [08:08:00]MH_I2C_Read... [08:08:00]Read from MH i2c: 01 07 00 45 7D 00 00 00 00 00 FF 0F D7 [08:08:00]process_action close_receipt done [08:08:00]requested_data is exist [08:08:00]produce_requested_data [08:08:00]requested_item fm.sn is exist - process it [08:08:00]wFMCommunicate request_size=4 [08:08:00]MH_SAM_APDU [08:08:00]CAPDU: 80 11 00 00 [08:08:00]Write to MH i2c: E2 08 00 46 7D 80 11 00 00 00 00 00 00 3D [08:08:00]Write i2c OK [08:08:00]MH_I2C_Read... [08:08:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:08:00]Read from MH i2c: E2 [08:08:00]MH_I2C_Read... [08:08:00]Read from MH i2c: E2 17 00 [08:08:00]MH_I2C_Read... [08:08:00]Read from MH i2c: E2 17 00 46 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 8C [08:08:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:08:00]wFMCommunicate OK [08:08:00]requested_item fd.num is exist - process it [08:08:00]SAM_PROTO_GetFieldsCounters [08:08:00]wFMCommunicate request_size=4 [08:08:00]MH_SAM_APDU [08:08:00]CAPDU: 80 13 00 00 [08:08:00]Write to MH i2c: E2 08 00 47 7D 80 13 00 00 00 00 00 00 40 [08:08:00]Write i2c OK [08:08:00]MH_I2C_Read... [08:08:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:08:00]Read from MH i2c: E2 [08:08:00]MH_I2C_Read... [08:08:00]Read from MH i2c: E2 62 00 [08:08:00]MH_I2C_Read... [08:08:00]Read from MH i2c: E2 62 00 47 7D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 CF 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 B9 [08:08:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 CF 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:08:00]wFMCommunicate OK [08:08:00]SAM_PROTO_GetFieldsCounters done [08:08:00]requested_item shift.num is exist - process it [08:08:00]requested_item shift.opened is exist - process it [08:08:00]req_shift_opened [08:08:00]FM_GetShiftState [08:08:00]SAM_PROTO_GetShiftState [08:08:00]wFMCommunicate request_size=4 [08:08:00]MH_SAM_APDU [08:08:00]CAPDU: 80 13 01 00 [08:08:00]Write to MH i2c: E2 08 00 48 7D 80 13 01 00 00 00 00 00 42 [08:08:00]Write i2c OK [08:08:00]MH_I2C_Read... [08:08:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:08:00]Read from MH i2c: E2 [08:08:00]MH_I2C_Read... [08:08:00]Read from MH i2c: E2 0E 00 [08:08:00]MH_I2C_Read... [08:08:00]Read from MH i2c: E2 0E 00 48 7D 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 EE [08:08:00]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [08:08:00]wFMCommunicate OK [08:08:00]SAM_PROTO_GetShiftState done [08:08:00]FM_GetShiftState done [08:08:00]req_shift_opened done [08:08:00]requested_item shift.open_date is exist - process it [08:08:00]req_shift_open_date [08:08:00]req_shift_open_date done [08:08:00]produce_requested_data done [08:08:00]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29135,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [08:08:00]process_action_free close_receipt [08:08:00]json_value_free [08:08:00]json_value_free done [08:08:00]process_json_proto returns [08:08:00]Send response to host [08:08:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29135,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [08:08:00]free response buf [08:08:00]execute_script done [08:08:00]execute_script returns [08:08:00]free content buf [08:08:00]Sock 7.Close socket [08:08:00]Sock 7.Thread stoped [08:08:04]OFD Sender: No OFD packet to send [08:08:09]OFD Sender: No OFD packet to send [08:08:14]OFD Sender: No OFD packet to send [08:08:19]OFD Sender: No OFD packet to send [08:08:24]OFD Sender: No OFD packet to send [08:08:29]OFD Sender: No OFD packet to send [08:08:34]OFD Sender: No OFD packet to send [08:08:39]OFD Sender: No OFD packet to send [08:08:44]OFD Sender: No OFD packet to send [08:08:49]OFD Sender: No OFD packet to send [08:08:54]OFD Sender: No OFD packet to send [08:08:59]OFD Sender: No OFD packet to send [08:09:04]OFD Sender: No OFD packet to send [08:09:09]OFD Sender: No OFD packet to send [08:09:14]OFD Sender: No OFD packet to send [08:09:19]OFD Sender: No OFD packet to send [08:09:24]OFD Sender: No OFD packet to send [08:09:29]OFD Sender: No OFD packet to send [08:09:34]OFD Sender: No OFD packet to send [08:09:39]OFD Sender: No OFD packet to send [08:09:44]OFD Sender: No OFD packet to send [08:09:49]OFD Sender: No OFD packet to send [08:09:54]OFD Sender: No OFD packet to send [08:09:59]OFD Sender: No OFD packet to send [08:10:04]OFD Sender: No OFD packet to send [08:10:09]OFD Sender: No OFD packet to send [08:10:14]OFD Sender: No OFD packet to send [08:10:19]OFD Sender: No OFD packet to send [08:10:24]OFD Sender: No OFD packet to send [08:10:29]OFD Sender: No OFD packet to send [08:10:29]accept exits with 9 [08:10:29]New connection [08:10:29]New thread 3066928484 created [08:10:29]Thread 3066785124 joined [08:10:29]Waiting for new connection... [08:10:29] Sock 9.Parse request [08:10:29]Sock 9.Check first char [08:10:29]Sock 9.First char is OK [08:10:29]request: POST /json_proto HTTP/1.0 [08:10:29]Method: POST [08:10:29]URL: /json_proto [08:10:29]Method is POST - this is cgi request [08:10:29]url: /json_proto [08:10:29]query_string will be loaded in cgi processing [08:10:29]execute_cgi json_proto POST (null) [08:10:29]execute_cgi path=json_proto method=POST [08:10:29]POST find Content-Length [08:10:29]Host: 172.17.33.3:8080 [08:10:29]Content-Length: 677 [08:10:29]Content-Type: application/json [08:10:29] [08:10:29]POST finish read [08:10:29]Found Content-Length = 677 [08:10:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347505", "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.000, "sum" : 321.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 321.00, "total" : 321.00, "payments": [ { "type": 0, "sum" : 321.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:10:29]execute_script... [08:10: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)347505", "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.000, "sum" : 321.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 321.00, "total" : 321.00, "payments": [ { "type": 0, "sum" : 321.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:10:29]POST & json_proto [08:10:29]process_json_proto [08:10:29]json parsed OK: [08:10:29]protocol is kg_v1.0 [08:10:29]action value=close_receipt [08:10:29]process_action close_receipt [08:10:29]cmd_close_receipt [08:10:29]MH_GetDate [08:10:29]Write to MH i2c: F0 00 00 49 7D B5 [08:10:29]Write i2c OK [08:10:29]MH_I2C_Read... [08:10:29]Read from MH i2c: F0 [08:10:29]MH_I2C_Read... [08:10:29]Read from MH i2c: F0 09 00 [08:10:29]MH_I2C_Read... [08:10:29]Read from MH i2c: F0 09 00 49 7D 00 7E 8F 1B 66 23 5B 8F 65 BE [08:10:29]GetLastDocTimeStamp 1713082085 [08:10:29]current date 1713082238 [08:10:29]FM_GetShiftState [08:10:29]SAM_PROTO_GetShiftState [08:10:29]wFMCommunicate request_size=4 [08:10:29]MH_SAM_APDU [08:10:29]CAPDU: 80 13 01 00 [08:10:29]Write to MH i2c: E2 08 00 4A 7D 80 13 01 00 00 00 00 00 44 [08:10:29]Write i2c OK [08:10:29]MH_I2C_Read... [08:10:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:10:29]Read from MH i2c: E2 [08:10:29]MH_I2C_Read... [08:10:29]Read from MH i2c: E2 0E 00 [08:10:29]MH_I2C_Read... [08:10:29]Read from MH i2c: E2 0E 00 4A 7D 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 F0 [08:10:29]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [08:10:29]wFMCommunicate OK [08:10:29]SAM_PROTO_GetShiftState done [08:10:29]FM_GetShiftState done [08:10:29]opened in 1713053951 [08:10:29]opened+sec_in_day 1713140351 [08:10:29]quantity*price = 32150 [08:10:29]sum+1 = 32151 [08:10:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 321.00 Внесено: 321.00 СДАЧА: 0.00 НСП 1% : 2.84 НДС 12% : 34.14 Наличными: 321.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 46 14.04.2024 08:10 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29136 ФПД: 201070389085106 1/tax-web-control/client/api/v1/ticket?date=20240414T081038&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29136&fm=201070389085106&tin=02508201610067®Number=0000138879044617&sum=32100 [08:10:30]StoreToDocumentArchive [08:10:30]shift 116 fd 29136 [08:10:30]save to /storage/0116/doc_00029136 [08:10:30]save last doc name /storage/0116/doc_00029136 to /storage/kkm_last_doc_name [08:10:30]save OK [08:10:30]Clear old archive folders... [08:10:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:10:30]tlvbuf is 011B6F90 [08:10:30]SAM_PROTO_ClearQueue [08:10:30]wFMCommunicate request_size=4 [08:10:30]MH_SAM_APDU [08:10:30]CAPDU: 80 09 00 00 [08:10:30]Write to MH i2c: E2 08 00 57 7D 80 09 00 00 00 00 00 00 46 [08:10:30]Write i2c OK [08:10:30]MH_I2C_Read... [08:10:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:10:30]Read from MH i2c: E2 [08:10:30]MH_I2C_Read... [08:10:30]Read from MH i2c: E2 03 00 [08:10:30]MH_I2C_Read... [08:10:30]Read from MH i2c: E2 03 00 57 7D 00 90 00 48 [08:10:30]RAPDU: 90 00 [08:10:30]wFMCommunicate OK [08:10:30]SAM_PROTO_ClearQueue done [08:10:30]KKMCreateOFDPacket [08:10:30]OFDProtocolAddRootSTLVToBuf [08:10:30]FM_MakeSignedData [08:10:30]FM_MakeSignedData [08:10:30]SAM_PROTO_SignData [08:10:30]wFMCommunicate request_size=4 [08:10:30]MH_SAM_APDU [08:10:30]CAPDU: 80 0D 01 02 [08:10:30]Write to MH i2c: E2 08 00 58 7D 80 0D 01 02 00 00 00 00 4E [08:10:30]Write i2c OK [08:10:30]MH_I2C_Read... [08:10:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:10:30]Read from MH i2c: E2 [08:10:30]MH_I2C_Read... [08:10:30]Read from MH i2c: E2 03 00 [08:10:30]MH_I2C_Read... [08:10:30]Read from MH i2c: E2 03 00 58 7D 00 90 00 49 [08:10:30]RAPDU: 90 00 [08:10:30]wFMCommunicate OK [08:10:30]wFMCommunicate request_size=255 [08:10:30]MH_SAM_APDU [08:10: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 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 2E 00 00 00 F4 03 04 00 7E 8F 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D0 71 00 00 35 04 06 00 B6 [08:10:30]Write to MH i2c: E2 02 01 59 7D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 2E 00 00 00 F4 03 04 00 7E 8F 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D0 71 00 00 35 04 06 00 B6 00 00 C3 [08:10:30]Write i2c OK [08:10:30]MH_I2C_Read... [08:10:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:10:31]Read from MH i2c: E2 [08:10:31]MH_I2C_Read... [08:10:31]Read from MH i2c: E2 03 00 [08:10:31]MH_I2C_Read... [08:10:31]Read from MH i2c: E2 03 00 59 7D 00 90 00 4A [08:10:31]RAPDU: 90 00 [08:10:31]wFMCommunicate OK [08:10:31]wFMCommunicate request_size=10 [08:10:31]MH_SAM_APDU [08:10:31]CAPDU: 80 0D 02 02 05 DF 59 1D C3 B2 [08:10:31]Write to MH i2c: E2 0D 00 5A 7D 80 0D 02 02 05 00 DF 59 1D C3 B2 00 00 25 [08:10:31]Write i2c OK [08:10:31]MH_I2C_Read... [08:10:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:10:31]Read from MH i2c: E2 [08:10:31]MH_I2C_Read... [08:10:31]Read from MH i2c: E2 03 00 [08:10:31]MH_I2C_Read... [08:10:31]Read from MH i2c: E2 03 00 5A 7D 00 90 00 4B [08:10:31]RAPDU: 90 00 [08:10:31]wFMCommunicate OK [08:10:31]wFMCommunicate request_size=4 [08:10:31]MH_SAM_APDU [08:10:31]CAPDU: 80 0D 03 02 [08:10:31]Write to MH i2c: E2 08 00 5B 7D 80 0D 03 02 00 00 00 00 53 [08:10:31]Write i2c OK [08:10:31]MH_I2C_Read... [08:10:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:10:31]Read from MH i2c: E2 [08:10:31]MH_I2C_Read... [08:10:31]Read from MH i2c: E2 0B 00 [08:10:31]MH_I2C_Read... [08:10:31]Read from MH i2c: E2 0B 00 5B 7D 00 88 8C C9 B2 96 6B 6D 03 90 00 54 [08:10:31]RAPDU: 88 8C C9 B2 96 6B 6D 03 90 00 [08:10:31]wFMCommunicate OK [08:10:31]SAM_PROTO_SignData done [08:10:31]FM_MakeSignedData done [08:10:31]CreateOFDProtocolMessage [08:10:31]wFMCommunicate request_size=4 [08:10:31]MH_SAM_APDU [08:10:31]CAPDU: 80 11 00 00 [08:10:31]Write to MH i2c: E2 08 00 5C 7D 80 11 00 00 00 00 00 00 53 [08:10:31]Write i2c OK [08:10:31]MH_I2C_Read... [08:10:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:10:31]Read from MH i2c: E2 [08:10:31]MH_I2C_Read... [08:10:31]Read from MH i2c: E2 17 00 [08:10:31]MH_I2C_Read... [08:10:31]Read from MH i2c: E2 17 00 5C 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A2 [08:10:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:10:31]wFMCommunicate OK [08:10:31]CreateOFDProtocolMessage done [08:10:31]OFDSenderStorePacket 29136 [08:10:31]StoreOFDPacket docnum=29136 [08:10:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 B8 50 07 01 03 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 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 2E 00 00 00 F4 03 04 00 7E 8F 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D0 71 00 00 35 04 06 00 B6 DF 59 1D C3 B2 88 8C C9 B2 96 6B 6D 03 [08:10:31]CheckFolder [08:10:31]dirname=/storage/ofd_packets [08:10:31]CheckFolder done [08:10:31]ProducePacketName [08:10:31]name=ofd_packets/00029136 [08:10:31]NVStorageSaveData ofd_packets/00029136 [08:10:31]File name is /storage/ofd_packets/00029136 [08:10:31]Write 301 bytes [08:10:31]NVStorageSaveData done [08:10:31]OFDSenderStorePacket done [08:10:31]KKMCreateOFDPacket done [08:10:31]NVStorageSaveData kkm_last_timestamp [08:10:31]File name is /storage/kkm_last_timestamp [08:10:31]Write 4 bytes [08:10:31]NVStorageSaveData done [08:10:31]ExternCall_PrintAddStr [08:10:31]wPrintStart [08:10:31]Write to MH i2c: 01 00 00 5D 7D DA [08:10:31]Write i2c OK [08:10:31]MH_I2C_Read... [08:10:31]Read from MH i2c: 01 [08:10:31]MH_I2C_Read... [08:10:31]Read from MH i2c: 01 07 00 [08:10:31]MH_I2C_Read... [08:10:31]Read from MH i2c: 01 07 00 5D 7D 00 00 00 00 00 FF 0F EF [08:10:31]RasterBufferAndPrint [08:10:31]line Счет N : (1)347505 [08:10:31]line ИНН: 02508201610067 [08:10:31]line Контрольно-Кассовый Чек [08:10:31]line ПРОДАЖА [08:10:31]line ТРК (МРК, ГНК) : 32 [08:10:31]line Товар: 2710124130 [08:10:31]line Аи-92-К-5 [08:10:31]line 5.000 * 64.30 [08:10:31]line = 321.50 [08:10:31]line НДС 12% НСП 1% [08:10:31]line > о реализуемом товаре [08:10:31]line ОКРУГЛЕНИЕ: -0.50 [08:10:31]line ИТОГО: 321.00 [08:10:31]line Внесено: 321.00 [08:10:31]line СДАЧА: 0.00 [08:10:31]line НСП 1% : 2.84 [08:10:31]line НДС 12% : 34.14 [08:10:31]line Наличными: 321.00 [08:10:31]line Безнал.: 0.00 [08:10:31]line Место: АЗС № 108 "Партнер Нефть" [08:10:31]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:10:31]line СНО: Общий режим [08:10:31]line Чек 46 14.04.2024 08:10 [08:10:31]line Смена: 116 ФФД: 1.0 [08:10:31]line ЗНМ: 0300000027 [08:10:31]line РНМ: 0000138879044617 [08:10:31]line Версия ККМ: 001 [08:10:31]line ФМ: 0000000000963154 [08:10:31]line ФД: 29136 [08:10:31]line ФПД: 201070389085106 [08:10:31]line 1/tax-web-control/client/api/v1/ticket?date=20240414T081038&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29136&fm=201070389085106&tin=02508201610067®Number=0000138879044617&sum=32100 [08:10:31]OFD Sender: Processing packet 29136 [packets to send 8, broken 7] [08:10:31]ProducePacketName [08:10:31]name=ofd_packets/00029136 [08:10:31]OFD Sender: To server: pG, [08:10:31]CommunicateWithHost lk.salyk.kg:30040 [08:10:31]ConnectInit lk.salyk.kg [08:10:31]written 0, free lines is 4095 [08:10:31]Connected sock=10 [08:10:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 B8 50 07 01 03 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 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 2E 00 00 00 F4 03 04 00 7E 8F 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D0 71 00 00 35 04 06 00 B6 DF 59 1D C3 B2 88 8C C9 B2 96 6B 6D 03 [08:10:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 25 62 47 00 43 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 39 36 33 31 35 34 10 04 04 00 D0 71 00 00 F4 03 04 00 23 3A 1B 66 B6 04 01 00 00 47 1B 12 1B 7F C6 1B 97 [08:10:31]CommunicateWithHost err = 0 [08:10:31]CheckOFDResponse [08:10:31]1017 (14) - 77093643461234 [08:10:31]1041 (16) - 0000000000963154 [08:10:31]1040 (4) - 29136 [08:10:31]1012 (4) - 14.04.2024 02:06 [08:10:31]1206 (1) - 0 [08:10:31]OFD Sender: Remove packet 29136 [08:10:31]ProducePacketName [08:10:31]name=ofd_packets/00029136 [08:10:31]NVStorageDeleteData [08:10:32]Write to MH i2c: 01 00 00 87 7D 04 [08:10:32]Write i2c OK [08:10:32]MH_I2C_Read... [08:10:32]Read from MH i2c: 01 [08:10:32]MH_I2C_Read... [08:10:32]Read from MH i2c: 01 07 00 [08:10:32]MH_I2C_Read... [08:10:32]Read from MH i2c: 01 07 00 87 7D 00 00 00 00 00 DA 0C F1 [08:10:32]RasterBufferAndPrint [08:10:32]line [08:10:32]line [08:10:32]line [08:10:32]line [08:10:32]line [08:10:32]written 0, free lines is 3295 [08:10:32]MH_Cut [08:10:32]Write to MH i2c: D1 01 00 8E 7D 01 DD [08:10:32]Write i2c OK [08:10:32]MH_I2C_Read... [08:10:32]Read from MH i2c: D1 [08:10:32]MH_I2C_Read... [08:10:32]Read from MH i2c: D1 01 00 [08:10:32]MH_I2C_Read... [08:10:32]Read from MH i2c: D1 01 00 8E 7D 00 DC [08:10:32]Write to MH i2c: 01 00 00 8F 7D 0C [08:10:32]Write i2c OK [08:10:32]MH_I2C_Read... [08:10:32]OFD Sender: No OFD packet to send [08:10:32]*** Cut start [08:10:32]*** Partial cut [08:10:32]*** CUTSNS_PIN = 1 [08:10:32]*** CUTSNS_PIN = 0 [08:10:33]*** Brake cut motor [08:10:33]Read from MH i2c: 01 [08:10:33]MH_I2C_Read... [08:10:33]*** Stop cut motor [08:10:33]*** Cut end [08:10:33]Read from MH i2c: 01 07 00 [08:10:33]MH_I2C_Read... [08:10:33]Read from MH i2c: 01 07 00 8F 7D 00 00 00 00 00 FF 0F 21 [08:10:33]process_action close_receipt done [08:10:33]requested_data is exist [08:10:33]produce_requested_data [08:10:33]requested_item fm.sn is exist - process it [08:10:33]wFMCommunicate request_size=4 [08:10:33]MH_SAM_APDU [08:10:33]CAPDU: 80 11 00 00 [08:10:33]Write to MH i2c: E2 08 00 90 7D 80 11 00 00 00 00 00 00 87 [08:10:33]Write i2c OK [08:10:33]MH_I2C_Read... [08:10:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:10:33]Read from MH i2c: E2 [08:10:33]MH_I2C_Read... [08:10:33]Read from MH i2c: E2 17 00 [08:10:33]MH_I2C_Read... [08:10:33]Read from MH i2c: E2 17 00 90 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D6 [08:10:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:10:33]wFMCommunicate OK [08:10:33]requested_item fd.num is exist - process it [08:10:33]SAM_PROTO_GetFieldsCounters [08:10:33]wFMCommunicate request_size=4 [08:10:33]MH_SAM_APDU [08:10:33]CAPDU: 80 13 00 00 [08:10:33]Write to MH i2c: E2 08 00 91 7D 80 13 00 00 00 00 00 00 8A [08:10:33]Write i2c OK [08:10:33]MH_I2C_Read... [08:10:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:10:33]Read from MH i2c: E2 [08:10:33]MH_I2C_Read... [08:10:33]Read from MH i2c: E2 62 00 [08:10:33]MH_I2C_Read... [08:10:33]Read from MH i2c: E2 62 00 91 7D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D0 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 07 [08:10:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D0 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:10:33]wFMCommunicate OK [08:10:33]SAM_PROTO_GetFieldsCounters done [08:10:33]requested_item shift.num is exist - process it [08:10:33]requested_item shift.opened is exist - process it [08:10:33]req_shift_opened [08:10:33]FM_GetShiftState [08:10:33]SAM_PROTO_GetShiftState [08:10:33]wFMCommunicate request_size=4 [08:10:33]MH_SAM_APDU [08:10:33]CAPDU: 80 13 01 00 [08:10:33]Write to MH i2c: E2 08 00 92 7D 80 13 01 00 00 00 00 00 8C [08:10:33]Write i2c OK [08:10:33]MH_I2C_Read... [08:10:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:10:33]Read from MH i2c: E2 [08:10:33]MH_I2C_Read... [08:10:33]Read from MH i2c: E2 0E 00 [08:10:33]MH_I2C_Read... [08:10:33]Read from MH i2c: E2 0E 00 92 7D 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 38 [08:10:33]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [08:10:33]wFMCommunicate OK [08:10:33]SAM_PROTO_GetShiftState done [08:10:33]FM_GetShiftState done [08:10:33]req_shift_opened done [08:10:33]requested_item shift.open_date is exist - process it [08:10:33]req_shift_open_date [08:10:33]req_shift_open_date done [08:10:33]produce_requested_data done [08:10:33]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29136,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [08:10:33]process_action_free close_receipt [08:10:33]json_value_free [08:10:33]json_value_free done [08:10:33]process_json_proto returns [08:10:33]Send response to host [08:10:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29136,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [08:10:33]free response buf [08:10:33]execute_script done [08:10:33]execute_script returns [08:10:33]free content buf [08:10:33]Sock 9.Close socket [08:10:33]Sock 9.Thread stoped [08:10:37]OFD Sender: No OFD packet to send [08:10:42]OFD Sender: No OFD packet to send [08:10:47]OFD Sender: No OFD packet to send [08:10:52]OFD Sender: No OFD packet to send [08:10:57]OFD Sender: No OFD packet to send [08:11:02]OFD Sender: No OFD packet to send [08:11:07]OFD Sender: No OFD packet to send [08:11:12]OFD Sender: No OFD packet to send [08:11:17]OFD Sender: No OFD packet to send [08:11:22]OFD Sender: No OFD packet to send [08:11:27]OFD Sender: No OFD packet to send [08:11:32]OFD Sender: No OFD packet to send [08:11:37]OFD Sender: No OFD packet to send [08:11:42]OFD Sender: No OFD packet to send [08:11:45]accept exits with 7 [08:11:45]New connection [08:11:45]New thread 3066785124 created [08:11:45]Thread 3066928484 joined [08:11:45]Waiting for new connection... [08:11:45] Sock 7.Parse request [08:11:45]Sock 7.Check first char [08:11:45]Sock 7.First char is OK [08:11:45]request: POST /json_proto HTTP/1.0 [08:11:45]Method: POST [08:11:45]URL: /json_proto [08:11:45]Method is POST - this is cgi request [08:11:45]url: /json_proto [08:11:45]query_string will be loaded in cgi processing [08:11:45]execute_cgi json_proto POST (null) [08:11:45]execute_cgi path=json_proto method=POST [08:11:45]POST find Content-Length [08:11:45]Host: 172.17.33.3:8080 [08:11:45]Content-Length: 1163 [08:11:45]Content-Type: application/json [08:11:45] [08:11:45]POST finish read [08:11:45]Found Content-Length = 1163 [08:11:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043B\u0438\u043A\u0431\u0430\u0435\u0432\u0430. \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)347498\u000A14.04.2024 07:53\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 500.000 x 72.40\u000A\u0418\u0422\u041E\u0413: 36200.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30093357\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:11:45]execute_script... [08:11:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043B\u0438\u043A\u0431\u0430\u0435\u0432\u0430. \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)347498\u000A14.04.2024 07:53\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 500.000 x 72.40\u000A\u0418\u0422\u041E\u0413: 36200.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30093357\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:11:45]POST & json_proto [08:11:45]process_json_proto [08:11:45]json parsed OK: [08:11:45]protocol is kg_v1.0 [08:11:45]action value=print_text [08:11:45]process_action print_text [08:11:45]cmd_print_text [08:11:45]ExternCall_PrintAddStr [08:11:45]wPrintStart [08:11:45]Write to MH i2c: 01 00 00 93 7D 10 [08:11:45]Write i2c OK [08:11:45]MH_I2C_Read... [08:11:45]Read from MH i2c: 01 [08:11:45]MH_I2C_Read... [08:11:45]Read from MH i2c: 01 07 00 [08:11:45]MH_I2C_Read... [08:11:45]Read from MH i2c: 01 07 00 93 7D 00 00 00 00 00 FF 0F 25 [08:11:45]RasterBufferAndPrint [08:11:45]line *****ТОВАРНЫЙ ЧЕК***** [08:11:45]line АЗС 108 [08:11:45]line Партнер нефть [08:11:45]line 02508201610067 [08:11:45]line Кассир : Аликбаева. Д. [08:11:45]line Счет N : (1)347498 [08:11:45]line 14.04.2024 07:53 [08:11:45]line ПРОДАЖА [08:11:45]line ТРК (МРК, ГНК): 61 [08:11:45]line Вид ГСМ : 2710194210 [08:11:45]line ДТ-К-5 [08:11:45]line 500.000 x 72.40 [08:11:45]line ИТОГ: 36200.00 [08:11:45]line Тип оплаты: Талоны: ТК ГПНА Online [08:11:45]line 30093357 [08:11:45]line ______________________ [08:11:45]line (подпись) [08:11:45]written 0, free lines is 4095 [08:11:45]Write to MH i2c: 01 00 00 A7 7D 24 [08:11:45]Write i2c OK [08:11:45]MH_I2C_Read... [08:11:45]Read from MH i2c: 01 [08:11:45]MH_I2C_Read... [08:11:45]Read from MH i2c: 01 07 00 [08:11:45]MH_I2C_Read... [08:11:45]Read from MH i2c: 01 07 00 A7 7D 00 00 00 00 00 11 0E 4A [08:11:45]RasterBufferAndPrint [08:11:45]line [08:11:45]line [08:11:45]line [08:11:45]line [08:11:45]line [08:11:45]written 0, free lines is 3602 [08:11:45]MH_Cut [08:11:45]Write to MH i2c: D1 01 00 AE 7D 01 FD [08:11:45]Write i2c OK [08:11:45]MH_I2C_Read... [08:11:45]Read from MH i2c: D1 [08:11:45]MH_I2C_Read... [08:11:45]Read from MH i2c: D1 01 00 [08:11:45]MH_I2C_Read... [08:11:45]Read from MH i2c: D1 01 00 AE 7D 00 FC [08:11:45]Write to MH i2c: 01 00 00 AF 7D 2C [08:11:45]Write i2c OK [08:11:45]MH_I2C_Read... [08:11:45]*** Cut start [08:11:45]*** Partial cut [08:11:45]*** CUTSNS_PIN = 1 [08:11:45]*** CUTSNS_PIN = 0 [08:11:46]*** Brake cut motor [08:11:46]Read from MH i2c: 01 [08:11:46]MH_I2C_Read... [08:11:46]Read from MH i2c: 01 07 00 [08:11:46]MH_I2C_Read... [08:11:46]*** Stop cut motor [08:11:46]*** Cut end [08:11:46]Read from MH i2c: 01 07 00 AF 7D 00 00 00 00 00 FF 0F 41 [08:11:46]process_action print_text done [08:11:46]requested_data is exist [08:11:46]produce_requested_data [08:11:46]requested_item fm.sn is exist - process it [08:11:46]wFMCommunicate request_size=4 [08:11:46]MH_SAM_APDU [08:11:46]CAPDU: 80 11 00 00 [08:11:46]Write to MH i2c: E2 08 00 B0 7D 80 11 00 00 00 00 00 00 A7 [08:11:46]Write i2c OK [08:11:46]MH_I2C_Read... [08:11:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:11:46]Read from MH i2c: E2 [08:11:46]MH_I2C_Read... [08:11:46]Read from MH i2c: E2 17 00 [08:11:46]MH_I2C_Read... [08:11:46]Read from MH i2c: E2 17 00 B0 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F6 [08:11:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:11:46]wFMCommunicate OK [08:11:46]requested_item fd.num is exist - process it [08:11:46]SAM_PROTO_GetFieldsCounters [08:11:46]wFMCommunicate request_size=4 [08:11:46]MH_SAM_APDU [08:11:46]CAPDU: 80 13 00 00 [08:11:46]Write to MH i2c: E2 08 00 B1 7D 80 13 00 00 00 00 00 00 AA [08:11:46]Write i2c OK [08:11:46]MH_I2C_Read... [08:11:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:11:46]Read from MH i2c: E2 [08:11:46]MH_I2C_Read... [08:11:46]Read from MH i2c: E2 62 00 [08:11:46]MH_I2C_Read... [08:11:46]Read from MH i2c: E2 62 00 B1 7D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D0 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 27 [08:11:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D0 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:11:46]wFMCommunicate OK [08:11:46]SAM_PROTO_GetFieldsCounters done [08:11:46]requested_item shift.num is exist - process it [08:11:46]requested_item shift.opened is exist - process it [08:11:46]req_shift_opened [08:11:46]FM_GetShiftState [08:11:46]SAM_PROTO_GetShiftState [08:11:46]wFMCommunicate request_size=4 [08:11:46]MH_SAM_APDU [08:11:46]CAPDU: 80 13 01 00 [08:11:46]Write to MH i2c: E2 08 00 B2 7D 80 13 01 00 00 00 00 00 AC [08:11:46]Write i2c OK [08:11:46]MH_I2C_Read... [08:11:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:11:46]Read from MH i2c: E2 [08:11:46]MH_I2C_Read... [08:11:46]Read from MH i2c: E2 0E 00 [08:11:46]MH_I2C_Read... [08:11:46]Read from MH i2c: E2 0E 00 B2 7D 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 58 [08:11:46]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [08:11:46]wFMCommunicate OK [08:11:46]SAM_PROTO_GetShiftState done [08:11:46]FM_GetShiftState done [08:11:46]req_shift_opened done [08:11:46]requested_item shift.open_date is exist - process it [08:11:46]req_shift_open_date [08:11:46]req_shift_open_date done [08:11:46]produce_requested_data done [08:11:46]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29136,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [08:11:46]process_action_free print_text [08:11:46]json_value_free [08:11:46]json_value_free done [08:11:46]process_json_proto returns [08:11:46]Send response to host [08:11:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29136,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [08:11:46]free response buf [08:11:46]execute_script done [08:11:46]execute_script returns [08:11:46]free content buf [08:11:46]Sock 7.Close socket [08:11:46]Sock 7.Thread stoped [08:11:47]OFD Sender: No OFD packet to send [08:11:52]OFD Sender: No OFD packet to send [08:11:57]OFD Sender: No OFD packet to send [08:12:02]OFD Sender: No OFD packet to send [08:12:07]OFD Sender: No OFD packet to send [08:12:12]OFD Sender: No OFD packet to send [08:12:17]OFD Sender: No OFD packet to send [08:12:22]OFD Sender: No OFD packet to send [08:12:27]OFD Sender: No OFD packet to send [08:12:32]OFD Sender: No OFD packet to send [08:12:37]OFD Sender: No OFD packet to send [08:12:42]OFD Sender: No OFD packet to send [08:12:47]OFD Sender: No OFD packet to send [08:12:52]OFD Sender: No OFD packet to send [08:12:57]OFD Sender: No OFD packet to send [08:13:02]OFD Sender: No OFD packet to send [08:13:07]OFD Sender: No OFD packet to send [08:13:12]OFD Sender: No OFD packet to send [08:13:17]OFD Sender: No OFD packet to send [08:13:22]OFD Sender: No OFD packet to send [08:13:27]OFD Sender: No OFD packet to send [08:13:32]OFD Sender: No OFD packet to send [08:13:37]OFD Sender: No OFD packet to send [08:13:42]OFD Sender: No OFD packet to send [08:13:47]OFD Sender: No OFD packet to send [08:13:52]OFD Sender: No OFD packet to send [08:13:57]OFD Sender: No OFD packet to send [08:14:02]OFD Sender: No OFD packet to send [08:14:07]OFD Sender: No OFD packet to send [08:14:12]OFD Sender: No OFD packet to send [08:14:17]OFD Sender: No OFD packet to send [08:14:22]OFD Sender: No OFD packet to send [08:14:27]OFD Sender: No OFD packet to send [08:14:32]OFD Sender: No OFD packet to send [08:14:37]OFD Sender: No OFD packet to send [08:14:42]OFD Sender: No OFD packet to send [08:14:47]OFD Sender: No OFD packet to send [08:14:52]OFD Sender: No OFD packet to send [08:14:57]OFD Sender: No OFD packet to send [08:15:02]OFD Sender: No OFD packet to send [08:15:07]OFD Sender: No OFD packet to send [08:15:12]OFD Sender: No OFD packet to send [08:15:17]OFD Sender: No OFD packet to send [08:15:22]OFD Sender: No OFD packet to send [08:15:27]OFD Sender: No OFD packet to send [08:15:32]OFD Sender: No OFD packet to send [08:15:37]OFD Sender: No OFD packet to send [08:15:42]OFD Sender: No OFD packet to send [08:15:47]OFD Sender: No OFD packet to send [08:15:52]OFD Sender: No OFD packet to send [08:15:57]OFD Sender: No OFD packet to send [08:16:02]OFD Sender: No OFD packet to send [08:16:07]OFD Sender: No OFD packet to send [08:16:12]OFD Sender: No OFD packet to send [08:16:17]OFD Sender: No OFD packet to send [08:16:22]OFD Sender: No OFD packet to send [08:16:27]OFD Sender: No OFD packet to send [08:16:32]OFD Sender: No OFD packet to send [08:16:37]OFD Sender: No OFD packet to send [08:16:42]OFD Sender: No OFD packet to send [08:16:47]OFD Sender: No OFD packet to send [08:16:52]OFD Sender: No OFD packet to send [08:16:57]OFD Sender: No OFD packet to send [08:17:02]OFD Sender: No OFD packet to send [08:17:03]accept exits with 9 [08:17:03]New connection [08:17:03]New thread 3066928484 created [08:17:03]Thread 3066785124 joined [08:17:03]Waiting for new connection... [08:17:03] Sock 9.Parse request [08:17:03]Sock 9.Check first char [08:17:03]Sock 9.First char is OK [08:17:03]request: POST /json_proto HTTP/1.0 [08:17:03]Method: POST [08:17:03]URL: /json_proto [08:17:03]Method is POST - this is cgi request [08:17:03]url: /json_proto [08:17:03]query_string will be loaded in cgi processing [08:17:03]execute_cgi json_proto POST (null) [08:17:03]execute_cgi path=json_proto method=POST [08:17:03]POST find Content-Length [08:17:03]Host: 172.17.33.3:8080 [08:17:03]Content-Length: 816 [08:17:03]Content-Type: application/json [08:17:03] [08:17:03]POST finish read [08:17:03]Found Content-Length = 816 [08:17:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347506", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 9.340, "sum" : 600.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 600.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:17:03]execute_script... [08:17: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)347506", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 9.340, "sum" : 600.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 600.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:17:03]POST & json_proto [08:17:03]process_json_proto [08:17:03]json parsed OK: [08:17:03]protocol is kg_v1.0 [08:17:03]action value=close_receipt [08:17:03]process_action close_receipt [08:17:03]cmd_close_receipt [08:17:03]MH_GetDate [08:17:03]Write to MH i2c: F0 00 00 B3 7D 1F [08:17:03]Write i2c OK [08:17:03]MH_I2C_Read... [08:17:03]Read from MH i2c: F0 [08:17:03]MH_I2C_Read... [08:17:03]Read from MH i2c: F0 09 00 [08:17:03]MH_I2C_Read... [08:17:03]Read from MH i2c: F0 09 00 B3 7D 00 08 91 1B 66 23 5B 8F 65 B4 [08:17:03]GetLastDocTimeStamp 1713082238 [08:17:03]current date 1713082632 [08:17:03]FM_GetShiftState [08:17:03]SAM_PROTO_GetShiftState [08:17:03]wFMCommunicate request_size=4 [08:17:03]MH_SAM_APDU [08:17:03]CAPDU: 80 13 01 00 [08:17:03]Write to MH i2c: E2 08 00 B4 7D 80 13 01 00 00 00 00 00 AE [08:17:03]Write i2c OK [08:17:03]MH_I2C_Read... [08:17:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:17:03]Read from MH i2c: E2 [08:17:03]MH_I2C_Read... [08:17:03]Read from MH i2c: E2 0E 00 [08:17:03]MH_I2C_Read... [08:17:03]Read from MH i2c: E2 0E 00 B4 7D 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 5A [08:17:03]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [08:17:03]wFMCommunicate OK [08:17:03]SAM_PROTO_GetShiftState done [08:17:03]FM_GetShiftState done [08:17:03]opened in 1713053951 [08:17:03]opened+sec_in_day 1713140351 [08:17:03]quantity*price = 60056 [08:17:03]sum+1 = 60057 [08:17:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.56 НСП 1% : 5.31 НДС 12% : 63.78 Наличными: 0.00 Безнал.: 600.56 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 47 14.04.2024 08:17 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 29137 ФПД: 13029531545604 1/tax-web-control/client/api/v1/ticket?date=20240414T081712&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29137&fm=13029531545604&tin=02508201610067®Number=0000138879044617&sum=60056 [08:17:04]StoreToDocumentArchive [08:17:04]shift 116 fd 29137 [08:17:04]save to /storage/0116/doc_00029137 [08:17:04]save last doc name /storage/0116/doc_00029137 to /storage/kkm_last_doc_name [08:17:04]save OK [08:17:04]Clear old archive folders... [08:17:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:17:04]tlvbuf is 012865E0 [08:17:04]SAM_PROTO_ClearQueue [08:17:04]wFMCommunicate request_size=4 [08:17:04]MH_SAM_APDU [08:17:04]CAPDU: 80 09 00 00 [08:17:04]Write to MH i2c: E2 08 00 C1 7D 80 09 00 00 00 00 00 00 B0 [08:17:04]Write i2c OK [08:17:04]MH_I2C_Read... [08:17:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:17:04]Read from MH i2c: E2 [08:17:04]MH_I2C_Read... [08:17:04]Read from MH i2c: E2 03 00 [08:17:04]MH_I2C_Read... [08:17:04]Read from MH i2c: E2 03 00 C1 7D 00 90 00 B2 [08:17:04]RAPDU: 90 00 [08:17:04]wFMCommunicate OK [08:17:04]SAM_PROTO_ClearQueue done [08:17:04]KKMCreateOFDPacket [08:17:04]OFDProtocolAddRootSTLVToBuf [08:17:04]FM_MakeSignedData [08:17:04]FM_MakeSignedData [08:17:04]SAM_PROTO_SignData [08:17:04]wFMCommunicate request_size=4 [08:17:04]MH_SAM_APDU [08:17:04]CAPDU: 80 0D 01 02 [08:17:04]Write to MH i2c: E2 08 00 C2 7D 80 0D 01 02 00 00 00 00 B8 [08:17:04]Write i2c OK [08:17:04]MH_I2C_Read... [08:17:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:17:04]Read from MH i2c: E2 [08:17:04]MH_I2C_Read... [08:17:04]Read from MH i2c: E2 03 00 [08:17:04]MH_I2C_Read... [08:17:04]Read from MH i2c: E2 03 00 C2 7D 00 90 00 B3 [08:17:04]RAPDU: 90 00 [08:17:04]wFMCommunicate OK [08:17:04]wFMCommunicate request_size=255 [08:17:04]MH_SAM_APDU [08:17: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 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 98 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 00 00 00 00 00 00 39 04 06 00 98 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 08 91 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D1 71 00 00 35 04 06 00 0B [08:17:04]Write to MH i2c: E2 02 01 C3 7D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 98 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 00 00 00 00 00 00 39 04 06 00 98 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 08 91 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D1 71 00 00 35 04 06 00 0B 00 00 5D [08:17:04]Write i2c OK [08:17:04]MH_I2C_Read... [08:17:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:17:05]Read from MH i2c: E2 [08:17:05]MH_I2C_Read... [08:17:05]Read from MH i2c: E2 03 00 [08:17:05]MH_I2C_Read... [08:17:05]Read from MH i2c: E2 03 00 C3 7D 00 90 00 B4 [08:17:05]RAPDU: 90 00 [08:17:05]wFMCommunicate OK [08:17:05]wFMCommunicate request_size=10 [08:17:05]MH_SAM_APDU [08:17:05]CAPDU: 80 0D 02 02 05 D9 AC 99 70 04 [08:17:05]Write to MH i2c: E2 0D 00 C4 7D 80 0D 02 02 05 00 D9 AC 99 70 04 00 00 57 [08:17:05]Write i2c OK [08:17:05]MH_I2C_Read... [08:17:05]Read from MH i2c: E2 [08:17:05]MH_I2C_Read... [08:17:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:17:05]Read from MH i2c: E2 03 00 [08:17:05]MH_I2C_Read... [08:17:05]Read from MH i2c: E2 03 00 C4 7D 00 90 00 B5 [08:17:05]RAPDU: 90 00 [08:17:05]wFMCommunicate OK [08:17:05]wFMCommunicate request_size=4 [08:17:05]MH_SAM_APDU [08:17:05]CAPDU: 80 0D 03 02 [08:17:05]Write to MH i2c: E2 08 00 C5 7D 80 0D 03 02 00 00 00 00 BD [08:17:05]Write i2c OK [08:17:05]MH_I2C_Read... [08:17:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:17:05]Read from MH i2c: E2 [08:17:05]MH_I2C_Read... [08:17:05]Read from MH i2c: E2 0B 00 [08:17:05]MH_I2C_Read... [08:17:05]Read from MH i2c: E2 0B 00 C5 7D 00 FF A5 54 26 47 06 2B DA 90 00 2E [08:17:05]RAPDU: FF A5 54 26 47 06 2B DA 90 00 [08:17:05]wFMCommunicate OK [08:17:05]SAM_PROTO_SignData done [08:17:05]FM_MakeSignedData done [08:17:05]CreateOFDProtocolMessage [08:17:05]wFMCommunicate request_size=4 [08:17:05]MH_SAM_APDU [08:17:05]CAPDU: 80 11 00 00 [08:17:05]Write to MH i2c: E2 08 00 C6 7D 80 11 00 00 00 00 00 00 BD [08:17:05]Write i2c OK [08:17:05]MH_I2C_Read... [08:17:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:17:05]Read from MH i2c: E2 [08:17:05]MH_I2C_Read... [08:17:05]Read from MH i2c: E2 17 00 [08:17:05]MH_I2C_Read... [08:17:05]Read from MH i2c: E2 17 00 C6 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 0C [08:17:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:17:05]wFMCommunicate OK [08:17:05]CreateOFDProtocolMessage done [08:17:05]OFDSenderStorePacket 29137 [08:17:05]StoreOFDPacket docnum=29137 [08:17:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 C7 83 07 01 EF 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 98 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 00 00 00 00 00 00 39 04 06 00 98 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 08 91 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D1 71 00 00 35 04 06 00 0B D9 AC 99 70 04 FF A5 54 26 47 06 2B DA [08:17:05]CheckFolder [08:17:05]dirname=/storage/ofd_packets [08:17:05]CheckFolder done [08:17:05]ProducePacketName [08:17:05]name=ofd_packets/00029137 [08:17:05]NVStorageSaveData ofd_packets/00029137 [08:17:05]File name is /storage/ofd_packets/00029137 [08:17:05]Write 301 bytes [08:17:05]NVStorageSaveData done [08:17:05]OFDSenderStorePacket done [08:17:05]KKMCreateOFDPacket done [08:17:05]NVStorageSaveData kkm_last_timestamp [08:17:05]File name is /storage/kkm_last_timestamp [08:17:05]Write 4 bytes [08:17:05]NVStorageSaveData done [08:17:05]ExternCall_PrintAddStr [08:17:05]wPrintStart [08:17:05]Write to MH i2c: 01 00 00 C7 7D 44 [08:17:05]Write i2c OK [08:17:05]MH_I2C_Read... [08:17:05]Read from MH i2c: 01 [08:17:05]MH_I2C_Read... [08:17:05]Read from MH i2c: 01 07 00 [08:17:05]MH_I2C_Read... [08:17:05]Read from MH i2c: 01 07 00 C7 7D 00 00 00 00 00 FF 0F 59 [08:17:05]RasterBufferAndPrint [08:17:05]line Счет N : (1)347506 [08:17:05]line ИНН: 02508201610067 [08:17:05]line Контрольно-Кассовый Чек [08:17:05]line ПРОДАЖА [08:17:05]line ТРК (МРК, ГНК) : 23 [08:17:05]line Товар: 2710124130 [08:17:05]line Аи-92-К-5 [08:17:05]line 9.340 * 64.30 [08:17:05]line = 600.56 [08:17:05]line НДС 12% НСП 1% [08:17:05]line > о реализуемом товаре [08:17:05]line ИТОГО: 600.56 [08:17:05]line НСП 1% : 5.31 [08:17:05]line НДС 12% : 63.78 [08:17:05]line Наличными: 0.00 [08:17:05]line Безнал.: 600.56 [08:17:05]line Место: АЗС № 108 "Партнер Нефть" [08:17:05]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:17:05]line СНО: Общий режим [08:17:05]line Чек 47 14.04.2024 08:17 [08:17:05]line Смена: 116 ФФД: 1.0 [08:17:05]line ЗНМ: 0300000027 [08:17:05]line РНМ: 0000138879044617 [08:17:05]line Версия ККМ: 001 [08:17:05]line Платежная система: Бакай Банк [08:17:05]line ФМ: 0000000000963154 [08:17:05]line ФД: 29137 [08:17:05]line ФПД: 13029531545604 [08:17:05]line 1/tax-web-control/client/api/v1/ticket?date=20240414T081712&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29137&fm=13029531545604&tin=02508201610067®Number=0000138879044617&sum=60056 [08:17:05]OFD Sender: Processing packet 29137 [packets to send 8, broken 7] [08:17:05]ProducePacketName [08:17:05]name=ofd_packets/00029137 [08:17:05]OFD Sender: To server: pG, [08:17:05]CommunicateWithHost lk.salyk.kg:30040 [08:17:05]ConnectInit lk.salyk.kg [08:17:05]written 0, free lines is 4095 [08:17:05]Connected sock=10 [08:17:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 C7 83 07 01 EF 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 98 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 00 00 00 00 00 00 39 04 06 00 98 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 08 91 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D1 71 00 00 35 04 06 00 0B D9 AC 99 70 04 FF A5 54 26 47 06 2B DA [08:17:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 3C DD 47 00 6A 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D1 71 00 00 F4 03 04 00 AD 3B 1B 66 B6 04 01 00 00 84 07 D6 24 20 B4 BA 9A [08:17:05]CommunicateWithHost err = 0 [08:17:05]CheckOFDResponse [08:17:05]1017 (14) - 77093643461234 [08:17:05]1041 (16) - 0000000000963154 [08:17:05]1040 (4) - 29137 [08:17:05]1012 (4) - 14.04.2024 02:13 [08:17:05]1206 (1) - 0 [08:17:05]OFD Sender: Remove packet 29137 [08:17:05]ProducePacketName [08:17:05]name=ofd_packets/00029137 [08:17:05]NVStorageDeleteData [08:17:06]Write to MH i2c: 01 00 00 F0 7D 6D [08:17:06]Write i2c OK [08:17:06]MH_I2C_Read... [08:17:06]Read from MH i2c: 01 [08:17:06]MH_I2C_Read... [08:17:06]Read from MH i2c: 01 07 00 [08:17:06]MH_I2C_Read... [08:17:06]Read from MH i2c: 01 07 00 F0 7D 00 00 00 00 00 D4 0C 54 [08:17:06]RasterBufferAndPrint [08:17:06]line [08:17:06]line [08:17:06]line [08:17:06]line [08:17:06]line [08:17:06]written 0, free lines is 3291 [08:17:06]MH_Cut [08:17:06]Write to MH i2c: D1 01 00 F7 7D 01 46 [08:17:06]Write i2c OK [08:17:06]MH_I2C_Read... [08:17:06]Read from MH i2c: D1 [08:17:06]MH_I2C_Read... [08:17:06]Read from MH i2c: D1 01 00 [08:17:06]MH_I2C_Read... [08:17:06]Read from MH i2c: D1 01 00 F7 7D 00 45 [08:17:06]Write to MH i2c: 01 00 00 F8 7D 75 [08:17:06]Write i2c OK [08:17:06]MH_I2C_Read... [08:17:06]OFD Sender: No OFD packet to send [08:17:06]*** Cut start [08:17:06]*** Partial cut [08:17:06]*** CUTSNS_PIN = 1 [08:17:06]*** CUTSNS_PIN = 0 [08:17:07]*** Brake cut motor [08:17:07]Read from MH i2c: 01 [08:17:07]MH_I2C_Read... [08:17:07]*** Stop cut motor [08:17:07]*** Cut end [08:17:07]Read from MH i2c: 01 07 00 [08:17:07]MH_I2C_Read... [08:17:07]Read from MH i2c: 01 07 00 F8 7D 00 00 00 00 00 FF 0F 8A [08:17:07]process_action close_receipt done [08:17:07]requested_data is exist [08:17:07]produce_requested_data [08:17:07]requested_item fm.sn is exist - process it [08:17:07]wFMCommunicate request_size=4 [08:17:07]MH_SAM_APDU [08:17:07]CAPDU: 80 11 00 00 [08:17:07]Write to MH i2c: E2 08 00 F9 7D 80 11 00 00 00 00 00 00 F0 [08:17:07]Write i2c OK [08:17:07]MH_I2C_Read... [08:17:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:17:07]Read from MH i2c: E2 [08:17:07]MH_I2C_Read... [08:17:07]Read from MH i2c: E2 17 00 [08:17:07]MH_I2C_Read... [08:17:07]Read from MH i2c: E2 17 00 F9 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 3F [08:17:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:17:07]wFMCommunicate OK [08:17:07]requested_item fd.num is exist - process it [08:17:07]SAM_PROTO_GetFieldsCounters [08:17:07]wFMCommunicate request_size=4 [08:17:07]MH_SAM_APDU [08:17:07]CAPDU: 80 13 00 00 [08:17:07]Write to MH i2c: E2 08 00 FA 7D 80 13 00 00 00 00 00 00 F3 [08:17:07]Write i2c OK [08:17:07]MH_I2C_Read... [08:17:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:17:07]Read from MH i2c: E2 [08:17:07]MH_I2C_Read... [08:17:07]Read from MH i2c: E2 62 00 [08:17:07]MH_I2C_Read... [08:17:07]Read from MH i2c: E2 62 00 FA 7D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D1 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 74 [08:17:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D1 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:17:07]wFMCommunicate OK [08:17:07]SAM_PROTO_GetFieldsCounters done [08:17:07]requested_item shift.num is exist - process it [08:17:07]requested_item shift.opened is exist - process it [08:17:07]req_shift_opened [08:17:07]FM_GetShiftState [08:17:07]SAM_PROTO_GetShiftState [08:17:07]wFMCommunicate request_size=4 [08:17:07]MH_SAM_APDU [08:17:07]CAPDU: 80 13 01 00 [08:17:07]Write to MH i2c: E2 08 00 FB 7D 80 13 01 00 00 00 00 00 F5 [08:17:07]Write i2c OK [08:17:07]MH_I2C_Read... [08:17:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:17:07]Read from MH i2c: E2 [08:17:07]MH_I2C_Read... [08:17:07]Read from MH i2c: E2 0E 00 [08:17:07]MH_I2C_Read... [08:17:07]Read from MH i2c: E2 0E 00 FB 7D 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 A1 [08:17:07]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [08:17:07]wFMCommunicate OK [08:17:07]SAM_PROTO_GetShiftState done [08:17:07]FM_GetShiftState done [08:17:07]req_shift_opened done [08:17:07]requested_item shift.open_date is exist - process it [08:17:07]req_shift_open_date [08:17:07]req_shift_open_date done [08:17:07]produce_requested_data done [08:17:07]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29137,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [08:17:07]process_action_free close_receipt [08:17:07]json_value_free [08:17:07]json_value_free done [08:17:07]process_json_proto returns [08:17:07]Send response to host [08:17:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29137,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [08:17:07]free response buf [08:17:07]execute_script done [08:17:07]execute_script returns [08:17:07]free content buf [08:17:07]Sock 9.Close socket [08:17:07]Sock 9.Thread stoped [08:17:11]OFD Sender: No OFD packet to send [08:17:16]OFD Sender: No OFD packet to send [08:17:21]OFD Sender: No OFD packet to send [08:17:26]OFD Sender: No OFD packet to send [08:17:31]OFD Sender: No OFD packet to send [08:17:36]OFD Sender: No OFD packet to send [08:17:41]OFD Sender: No OFD packet to send [08:17:46]OFD Sender: No OFD packet to send [08:17:51]OFD Sender: No OFD packet to send [08:17:56]OFD Sender: No OFD packet to send [08:18:01]OFD Sender: No OFD packet to send [08:18:06]OFD Sender: No OFD packet to send [08:18:11]accept exits with 7 [08:18:11]New connection [08:18:11]New thread 3066785124 created [08:18:11]Thread 3066928484 joined [08:18:11]Waiting for new connection... [08:18:11] Sock 7.Parse request [08:18:11]Sock 7.Check first char [08:18:11]Sock 7.First char is OK [08:18:11]request: POST /json_proto HTTP/1.0 [08:18:11]Method: POST [08:18:11]URL: /json_proto [08:18:11]Method is POST - this is cgi request [08:18:11]url: /json_proto [08:18:11]query_string will be loaded in cgi processing [08:18:11]execute_cgi json_proto POST (null) [08:18:11]execute_cgi path=json_proto method=POST [08:18:11]POST find Content-Length [08:18:11]Host: 172.17.33.3:8080 [08:18:11]Content-Length: 670 [08:18:11]Content-Type: application/json [08:18:11] [08:18:11]POST finish read [08:18:11]Found Content-Length = 670 [08:18:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347507", "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" ] } } [08:18:11]execute_script... [08:18: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)347507", "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" ] } } [08:18:11]POST & json_proto [08:18:11]process_json_proto [08:18:11]json parsed OK: [08:18:11]protocol is kg_v1.0 [08:18:11]action value=close_receipt [08:18:11]process_action close_receipt [08:18:11]cmd_close_receipt [08:18:11]MH_GetDate [08:18:11]Write to MH i2c: F0 00 00 FC 7D 68 [08:18:11]Write i2c OK [08:18:11]MH_I2C_Read... [08:18:11]Read from MH i2c: F0 [08:18:11]MH_I2C_Read... [08:18:11]Read from MH i2c: F0 09 00 [08:18:11]MH_I2C_Read... [08:18:11]Read from MH i2c: F0 09 00 FC 7D 00 4C 91 1B 66 23 5B 8F 65 41 [08:18:11]GetLastDocTimeStamp 1713082632 [08:18:11]current date 1713082700 [08:18:11]FM_GetShiftState [08:18:11]SAM_PROTO_GetShiftState [08:18:11]wFMCommunicate request_size=4 [08:18:11]MH_SAM_APDU [08:18:11]CAPDU: 80 13 01 00 [08:18:11]Write to MH i2c: E2 08 00 FD 7D 80 13 01 00 00 00 00 00 F7 [08:18:11]Write i2c OK [08:18:11]MH_I2C_Read... [08:18:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:18:11]Read from MH i2c: E2 [08:18:11]MH_I2C_Read... [08:18:11]Read from MH i2c: E2 0E 00 [08:18:11]MH_I2C_Read... [08:18:11]Read from MH i2c: E2 0E 00 FD 7D 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 A3 [08:18:11]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [08:18:11]wFMCommunicate OK [08:18:11]SAM_PROTO_GetShiftState done [08:18:11]FM_GetShiftState done [08:18:11]opened in 1713053951 [08:18:11]opened+sec_in_day 1713140351 [08:18:11]quantity*price = 50019 [08:18:11]sum+1 = 50021 [08:18:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 48 14.04.2024 08:18 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29138 ФПД: 143324712925070 1/tax-web-control/client/api/v1/ticket?date=20240414T081820&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29138&fm=143324712925070&tin=02508201610067®Number=0000138879044617&sum=50000 [08:18:12]StoreToDocumentArchive [08:18:12]shift 116 fd 29138 [08:18:12]save to /storage/0116/doc_00029138 [08:18:12]save last doc name /storage/0116/doc_00029138 to /storage/kkm_last_doc_name [08:18:12]save OK [08:18:12]Clear old archive folders... [08:18:12]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:18:12]tlvbuf is 011E3540 [08:18:12]SAM_PROTO_ClearQueue [08:18:12]wFMCommunicate request_size=4 [08:18:12]MH_SAM_APDU [08:18:12]CAPDU: 80 09 00 00 [08:18:12]Write to MH i2c: E2 08 00 0A 7E 80 09 00 00 00 00 00 00 FA [08:18:12]Write i2c OK [08:18:12]MH_I2C_Read... [08:18:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:18:12]Read from MH i2c: E2 [08:18:12]MH_I2C_Read... [08:18:12]Read from MH i2c: E2 03 00 [08:18:12]MH_I2C_Read... [08:18:12]Read from MH i2c: E2 03 00 0A 7E 00 90 00 FC [08:18:12]RAPDU: 90 00 [08:18:12]wFMCommunicate OK [08:18:12]SAM_PROTO_ClearQueue done [08:18:12]KKMCreateOFDPacket [08:18:12]OFDProtocolAddRootSTLVToBuf [08:18:12]FM_MakeSignedData [08:18:12]FM_MakeSignedData [08:18:12]SAM_PROTO_SignData [08:18:12]wFMCommunicate request_size=4 [08:18:12]MH_SAM_APDU [08:18:12]CAPDU: 80 0D 01 02 [08:18:12]Write to MH i2c: E2 08 00 0B 7E 80 0D 01 02 00 00 00 00 02 [08:18:12]Write i2c OK [08:18:12]MH_I2C_Read... [08:18:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:18:12]Read from MH i2c: E2 [08:18:12]MH_I2C_Read... [08:18:12]Read from MH i2c: E2 03 00 [08:18:12]MH_I2C_Read... [08:18:12]Read from MH i2c: E2 03 00 0B 7E 00 90 00 FD [08:18:12]RAPDU: 90 00 [08:18:12]wFMCommunicate OK [08:18:12]wFMCommunicate request_size=255 [08:18:12]MH_SAM_APDU [08:18: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 2D 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 30 00 00 00 F4 03 04 00 4C 91 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D2 71 00 00 35 04 06 00 [08:18:12]Write to MH i2c: E2 02 01 0C 7E 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 30 00 00 00 F4 03 04 00 4C 91 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D2 71 00 00 35 04 06 00 00 00 99 [08:18:12]Write i2c OK [08:18:12]MH_I2C_Read... [08:18:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:18:12]Read from MH i2c: E2 [08:18:12]MH_I2C_Read... [08:18:12]Read from MH i2c: E2 03 00 [08:18:12]MH_I2C_Read... [08:18:12]Read from MH i2c: E2 03 00 0C 7E 00 90 00 FE [08:18:12]RAPDU: 90 00 [08:18:12]wFMCommunicate OK [08:18:12]wFMCommunicate request_size=11 [08:18:12]MH_SAM_APDU [08:18:12]CAPDU: 80 0D 02 02 06 82 5A 62 99 F7 8E [08:18:12]Write to MH i2c: E2 0E 00 0D 7E 80 0D 02 02 06 00 82 5A 62 99 F7 8E 00 00 6D [08:18:12]Write i2c OK [08:18:12]MH_I2C_Read... [08:18:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:18:12]Read from MH i2c: E2 [08:18:12]MH_I2C_Read... [08:18:12]Read from MH i2c: E2 03 00 [08:18:12]MH_I2C_Read... [08:18:12]Read from MH i2c: E2 03 00 0D 7E 00 90 00 FF [08:18:12]RAPDU: 90 00 [08:18:12]wFMCommunicate OK [08:18:12]wFMCommunicate request_size=4 [08:18:12]MH_SAM_APDU [08:18:12]CAPDU: 80 0D 03 02 [08:18:12]Write to MH i2c: E2 08 00 0E 7E 80 0D 03 02 00 00 00 00 07 [08:18:12]Write i2c OK [08:18:12]MH_I2C_Read... [08:18:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:18:12]Read from MH i2c: E2 [08:18:12]MH_I2C_Read... [08:18:12]Read from MH i2c: E2 0B 00 [08:18:12]MH_I2C_Read... [08:18:12]Read from MH i2c: E2 0B 00 0E 7E 00 34 DC 24 25 FC B3 83 1E 90 00 B1 [08:18:12]RAPDU: 34 DC 24 25 FC B3 83 1E 90 00 [08:18:12]wFMCommunicate OK [08:18:12]SAM_PROTO_SignData done [08:18:12]FM_MakeSignedData done [08:18:12]CreateOFDProtocolMessage [08:18:12]wFMCommunicate request_size=4 [08:18:12]MH_SAM_APDU [08:18:12]CAPDU: 80 11 00 00 [08:18:12]Write to MH i2c: E2 08 00 0F 7E 80 11 00 00 00 00 00 00 07 [08:18:12]Write i2c OK [08:18:12]MH_I2C_Read... [08:18:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:18:12]Read from MH i2c: E2 [08:18:12]MH_I2C_Read... [08:18:12]Read from MH i2c: E2 17 00 [08:18:12]MH_I2C_Read... [08:18:12]Read from MH i2c: E2 17 00 0F 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 56 [08:18:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:18:12]wFMCommunicate OK [08:18:12]CreateOFDProtocolMessage done [08:18:12]OFDSenderStorePacket 29138 [08:18:12]StoreOFDPacket docnum=29138 [08:18:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 D4 9E 08 01 8B 34 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 30 00 00 00 F4 03 04 00 4C 91 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D2 71 00 00 35 04 06 00 82 5A 62 99 F7 8E 34 DC 24 25 FC B3 83 1E [08:18:12]CheckFolder [08:18:12]dirname=/storage/ofd_packets [08:18:12]CheckFolder done [08:18:12]ProducePacketName [08:18:12]name=ofd_packets/00029138 [08:18:12]NVStorageSaveData ofd_packets/00029138 [08:18:12]File name is /storage/ofd_packets/00029138 [08:18:12]Write 302 bytes [08:18:12]NVStorageSaveData done [08:18:12]OFDSenderStorePacket done [08:18:12]KKMCreateOFDPacket done [08:18:12]NVStorageSaveData kkm_last_timestamp [08:18:12]File name is /storage/kkm_last_timestamp [08:18:12]Write 4 bytes [08:18:12]NVStorageSaveData done [08:18:12]ExternCall_PrintAddStr [08:18:12]wPrintStart [08:18:12]Write to MH i2c: 01 00 00 10 7E 8E [08:18:12]Write i2c OK [08:18:12]MH_I2C_Read... [08:18:12]Read from MH i2c: 01 [08:18:13]MH_I2C_Read... [08:18:13]Read from MH i2c: 01 07 00 [08:18:13]MH_I2C_Read... [08:18:13]Read from MH i2c: 01 07 00 10 7E 00 00 00 00 00 FF 0F A3 [08:18:13]RasterBufferAndPrint [08:18:13]line Счет N : (1)347507 [08:18:13]line ИНН: 02508201610067 [08:18:13]line Контрольно-Кассовый Чек [08:18:13]line ПРОДАЖА [08:18:13]line ТРК (МРК, ГНК) : 31 [08:18:13]line Товар: 2710124130 [08:18:13]line SUPER-92-К-5 [08:18:13]line 7.660 * 65.30 [08:18:13]line = 500.20 [08:18:13]line НДС 12% НСП 1% [08:18:13]line > о реализуемом товаре [08:18:13]line ОКРУГЛЕНИЕ: -0.20 [08:18:13]line ИТОГО: 500.00 [08:18:13]line Внесено: 500.00 [08:18:13]line СДАЧА: 0.00 [08:18:13]line НСП 1% : 4.43 [08:18:13]line НДС 12% : 53.12 [08:18:13]line Наличными: 500.00 [08:18:13]line Безнал.: 0.00 [08:18:13]line Место: АЗС № 108 "Партнер Нефть" [08:18:13]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:18:13]line СНО: Общий режим [08:18:13]line Чек 48 14.04.2024 08:18 [08:18:13]line Смена: 116 ФФД: 1.0 [08:18:13]line ЗНМ: 0300000027 [08:18:13]line РНМ: 0000138879044617 [08:18:13]line Версия ККМ: 001 [08:18:13]line ФМ: 0000000000963154 [08:18:13]line ФД: 29138 [08:18:13]line ФПД: 143324712925070 [08:18:13]line 1/tax-web-control/client/api/v1/ticket?date=20240414T081820&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29138&fm=143324712925070&tin=02508201610067®Number=0000138879044617&sum=50000 [08:18:13]OFD Sender: Processing packet 29138 [packets to send 8, broken 7] [08:18:13]ProducePacketName [08:18:13]name=ofd_packets/00029138 [08:18:13]OFD Sender: To server: pG, [08:18:13]CommunicateWithHost lk.salyk.kg:30040 [08:18:13]ConnectInit lk.salyk.kg [08:18:13]written 0, free lines is 4095 [08:18:13]Connected sock=10 [08:18:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 D4 9E 08 01 8B 34 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 30 00 00 00 F4 03 04 00 4C 91 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D2 71 00 00 35 04 06 00 82 5A 62 99 F7 8E 34 DC 24 25 FC B3 83 1E [08:18:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 0F 39 47 00 42 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D2 71 00 00 F4 03 04 00 F0 3B 1B 66 B6 04 01 00 00 C3 EC 49 1E A9 67 9F 65 [08:18:13]CommunicateWithHost err = 0 [08:18:13]CheckOFDResponse [08:18:13]1017 (14) - 77093643461234 [08:18:13]1041 (16) - 0000000000963154 [08:18:13]1040 (4) - 29138 [08:18:13]1012 (4) - 14.04.2024 02:14 [08:18:13]1206 (1) - 0 [08:18:13]OFD Sender: Remove packet 29138 [08:18:13]ProducePacketName [08:18:13]name=ofd_packets/00029138 [08:18:13]NVStorageDeleteData [08:18:13]Write to MH i2c: 01 00 00 3A 7E B8 [08:18:13]Write i2c OK [08:18:13]MH_I2C_Read... [08:18:13]Read from MH i2c: 01 [08:18:13]MH_I2C_Read... [08:18:13]Read from MH i2c: 01 07 00 [08:18:13]MH_I2C_Read... [08:18:13]Read from MH i2c: 01 07 00 3A 7E 00 00 00 00 00 C4 0C 8F [08:18:13]RasterBufferAndPrint [08:18:13]line [08:18:13]line [08:18:13]line [08:18:13]line [08:18:13]line [08:18:13]written 0, free lines is 3272 [08:18:13]MH_Cut [08:18:13]Write to MH i2c: D1 01 00 41 7E 01 91 [08:18:13]Write i2c OK [08:18:13]MH_I2C_Read... [08:18:13]Read from MH i2c: D1 [08:18:13]MH_I2C_Read... [08:18:13]Read from MH i2c: D1 01 00 [08:18:13]MH_I2C_Read... [08:18:13]Read from MH i2c: D1 01 00 41 7E 00 90 [08:18:13]Write to MH i2c: 01 00 00 42 7E C0 [08:18:13]Write i2c OK [08:18:13]MH_I2C_Read... [08:18:14]OFD Sender: No OFD packet to send [08:18:14]*** Cut start [08:18:14]*** Partial cut [08:18:14]*** CUTSNS_PIN = 1 [08:18:14]*** CUTSNS_PIN = 0 [08:18:14]*** Brake cut motor [08:18:15]Read from MH i2c: 01 [08:18:15]MH_I2C_Read... [08:18:15]*** Stop cut motor [08:18:15]*** Cut end [08:18:15]Read from MH i2c: 01 07 00 [08:18:15]MH_I2C_Read... [08:18:15]Read from MH i2c: 01 07 00 42 7E 00 00 00 00 00 FF 0F D5 [08:18:15]process_action close_receipt done [08:18:15]requested_data is exist [08:18:15]produce_requested_data [08:18:15]requested_item fm.sn is exist - process it [08:18:15]wFMCommunicate request_size=4 [08:18:15]MH_SAM_APDU [08:18:15]CAPDU: 80 11 00 00 [08:18:15]Write to MH i2c: E2 08 00 43 7E 80 11 00 00 00 00 00 00 3B [08:18:15]Write i2c OK [08:18:15]MH_I2C_Read... [08:18:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:18:15]Read from MH i2c: E2 [08:18:15]MH_I2C_Read... [08:18:15]Read from MH i2c: E2 17 00 [08:18:15]MH_I2C_Read... [08:18:15]Read from MH i2c: E2 17 00 43 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 8A [08:18:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:18:15]wFMCommunicate OK [08:18:15]requested_item fd.num is exist - process it [08:18:15]SAM_PROTO_GetFieldsCounters [08:18:15]wFMCommunicate request_size=4 [08:18:15]MH_SAM_APDU [08:18:15]CAPDU: 80 13 00 00 [08:18:15]Write to MH i2c: E2 08 00 44 7E 80 13 00 00 00 00 00 00 3E [08:18:15]Write i2c OK [08:18:15]MH_I2C_Read... [08:18:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:18:15]Read from MH i2c: E2 [08:18:15]MH_I2C_Read... [08:18:15]Read from MH i2c: E2 62 00 [08:18:15]MH_I2C_Read... [08:18:15]Read from MH i2c: E2 62 00 44 7E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D2 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 C3 [08:18:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D2 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:18:15]wFMCommunicate OK [08:18:15]SAM_PROTO_GetFieldsCounters done [08:18:15]requested_item shift.num is exist - process it [08:18:15]requested_item shift.opened is exist - process it [08:18:15]req_shift_opened [08:18:15]FM_GetShiftState [08:18:15]SAM_PROTO_GetShiftState [08:18:15]wFMCommunicate request_size=4 [08:18:15]MH_SAM_APDU [08:18:15]CAPDU: 80 13 01 00 [08:18:15]Write to MH i2c: E2 08 00 45 7E 80 13 01 00 00 00 00 00 40 [08:18:15]Write i2c OK [08:18:15]MH_I2C_Read... [08:18:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:18:15]Read from MH i2c: E2 [08:18:15]MH_I2C_Read... [08:18:15]Read from MH i2c: E2 0E 00 [08:18:15]MH_I2C_Read... [08:18:15]Read from MH i2c: E2 0E 00 45 7E 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 EC [08:18:15]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [08:18:15]wFMCommunicate OK [08:18:15]SAM_PROTO_GetShiftState done [08:18:15]FM_GetShiftState done [08:18:15]req_shift_opened done [08:18:15]requested_item shift.open_date is exist - process it [08:18:15]req_shift_open_date [08:18:15]req_shift_open_date done [08:18:15]produce_requested_data done [08:18:15]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29138,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [08:18:15]process_action_free close_receipt [08:18:15]json_value_free [08:18:15]json_value_free done [08:18:15]process_json_proto returns [08:18:15]Send response to host [08:18:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29138,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [08:18:15]free response buf [08:18:15]execute_script done [08:18:15]execute_script returns [08:18:15]free content buf [08:18:15]Sock 7.Close socket [08:18:15]Sock 7.Thread stoped [08:18:19]OFD Sender: No OFD packet to send [08:18:24]OFD Sender: No OFD packet to send [08:18:29]OFD Sender: No OFD packet to send [08:18:34]OFD Sender: No OFD packet to send [08:18:39]OFD Sender: No OFD packet to send [08:18:44]OFD Sender: No OFD packet to send [08:18:49]OFD Sender: No OFD packet to send [08:18:54]OFD Sender: No OFD packet to send [08:18:59]OFD Sender: No OFD packet to send [08:19:04]OFD Sender: No OFD packet to send [08:19:09]OFD Sender: No OFD packet to send [08:19:14]OFD Sender: No OFD packet to send [08:19:19]OFD Sender: No OFD packet to send [08:19:24]OFD Sender: No OFD packet to send [08:19:29]OFD Sender: No OFD packet to send [08:19:34]OFD Sender: No OFD packet to send [08:19:39]OFD Sender: No OFD packet to send [08:19:44]OFD Sender: No OFD packet to send [08:19:49]OFD Sender: No OFD packet to send [08:19:54]OFD Sender: No OFD packet to send [08:19:59]OFD Sender: No OFD packet to send [08:20:04]OFD Sender: No OFD packet to send [08:20:09]OFD Sender: No OFD packet to send [08:20:14]OFD Sender: No OFD packet to send [08:20:19]OFD Sender: No OFD packet to send [08:20:24]OFD Sender: No OFD packet to send [08:20:29]OFD Sender: No OFD packet to send [08:20:34]OFD Sender: No OFD packet to send [08:20:39]OFD Sender: No OFD packet to send [08:20:44]OFD Sender: No OFD packet to send [08:20:49]OFD Sender: No OFD packet to send [08:20:54]OFD Sender: No OFD packet to send [08:20:55]accept exits with 9 [08:20:55]New connection [08:20:55]New thread 3066928484 created [08:20:55]Thread 3066785124 joined [08:20:55]Waiting for new connection... [08:20:55] Sock 9.Parse request [08:20:55]Sock 9.Check first char [08:20:55]Sock 9.First char is OK [08:20:55]request: POST /json_proto HTTP/1.0 [08:20:55]Method: POST [08:20:55]URL: /json_proto [08:20:55]Method is POST - this is cgi request [08:20:55]url: /json_proto [08:20:55]query_string will be loaded in cgi processing [08:20:55]execute_cgi json_proto POST (null) [08:20:55]execute_cgi path=json_proto method=POST [08:20:55]POST find Content-Length [08:20:55]Host: 172.17.33.3:8080 [08:20:55]Content-Length: 670 [08:20:55]Content-Type: application/json [08:20:55] [08:20:55]POST finish read [08:20:55]Found Content-Length = 670 [08:20:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347508", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.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" ] } } [08:20:55]execute_script... [08:20:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347508", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.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" ] } } [08:20:55]POST & json_proto [08:20:55]process_json_proto [08:20:55]json parsed OK: [08:20:55]protocol is kg_v1.0 [08:20:55]action value=close_receipt [08:20:55]process_action close_receipt [08:20:55]cmd_close_receipt [08:20:55]MH_GetDate [08:20:55]Write to MH i2c: F0 00 00 46 7E B3 [08:20:55]Write i2c OK [08:20:55]MH_I2C_Read... [08:20:55]Read from MH i2c: F0 [08:20:55]MH_I2C_Read... [08:20:55]Read from MH i2c: F0 09 00 [08:20:55]MH_I2C_Read... [08:20:55]Read from MH i2c: F0 09 00 46 7E 00 F0 91 1B 66 23 5B 8F 65 30 [08:20:55]GetLastDocTimeStamp 1713082700 [08:20:55]current date 1713082864 [08:20:55]FM_GetShiftState [08:20:55]SAM_PROTO_GetShiftState [08:20:55]wFMCommunicate request_size=4 [08:20:55]MH_SAM_APDU [08:20:55]CAPDU: 80 13 01 00 [08:20:55]Write to MH i2c: E2 08 00 47 7E 80 13 01 00 00 00 00 00 42 [08:20:55]Write i2c OK [08:20:55]MH_I2C_Read... [08:20:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:20:55]Read from MH i2c: E2 [08:20:55]MH_I2C_Read... [08:20:55]Read from MH i2c: E2 0E 00 [08:20:55]MH_I2C_Read... [08:20:55]Read from MH i2c: E2 0E 00 47 7E 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 EE [08:20:55]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [08:20:55]wFMCommunicate OK [08:20:55]SAM_PROTO_GetShiftState done [08:20:55]FM_GetShiftState done [08:20:55]opened in 1713053951 [08:20:55]opened+sec_in_day 1713140351 [08:20:55]quantity*price = 50019 [08:20:55]sum+1 = 50021 [08:20:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 49 14.04.2024 08:21 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29139 ФПД: 266476392782635 1/tax-web-control/client/api/v1/ticket?date=20240414T082104&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29139&fm=266476392782635&tin=02508201610067®Number=0000138879044617&sum=50000 [08:20:56]StoreToDocumentArchive [08:20:56]shift 116 fd 29139 [08:20:56]save to /storage/0116/doc_00029139 [08:20:56]save last doc name /storage/0116/doc_00029139 to /storage/kkm_last_doc_name [08:20:56]save OK [08:20:56]Clear old archive folders... [08:20:56]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:20:56]tlvbuf is 011FB2C0 [08:20:56]SAM_PROTO_ClearQueue [08:20:56]wFMCommunicate request_size=4 [08:20:56]MH_SAM_APDU [08:20:56]CAPDU: 80 09 00 00 [08:20:56]Write to MH i2c: E2 08 00 54 7E 80 09 00 00 00 00 00 00 44 [08:20:56]Write i2c OK [08:20:56]MH_I2C_Read... [08:20:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:20:56]Read from MH i2c: E2 [08:20:56]MH_I2C_Read... [08:20:56]Read from MH i2c: E2 03 00 [08:20:56]MH_I2C_Read... [08:20:56]Read from MH i2c: E2 03 00 54 7E 00 90 00 46 [08:20:56]RAPDU: 90 00 [08:20:56]wFMCommunicate OK [08:20:56]SAM_PROTO_ClearQueue done [08:20:56]KKMCreateOFDPacket [08:20:56]OFDProtocolAddRootSTLVToBuf [08:20:56]FM_MakeSignedData [08:20:56]FM_MakeSignedData [08:20:56]SAM_PROTO_SignData [08:20:56]wFMCommunicate request_size=4 [08:20:56]MH_SAM_APDU [08:20:56]CAPDU: 80 0D 01 02 [08:20:56]Write to MH i2c: E2 08 00 55 7E 80 0D 01 02 00 00 00 00 4C [08:20:56]Write i2c OK [08:20:56]MH_I2C_Read... [08:20:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:20:56]Read from MH i2c: E2 [08:20:56]MH_I2C_Read... [08:20:56]Read from MH i2c: E2 03 00 [08:20:56]MH_I2C_Read... [08:20:56]Read from MH i2c: E2 03 00 55 7E 00 90 00 47 [08:20:56]RAPDU: 90 00 [08:20:56]wFMCommunicate OK [08:20:56]wFMCommunicate request_size=255 [08:20:56]MH_SAM_APDU [08:20:56]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 31 00 00 00 F4 03 04 00 F0 91 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D3 71 00 00 35 04 06 00 [08:20:56]Write to MH i2c: E2 02 01 56 7E 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 31 00 00 00 F4 03 04 00 F0 91 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D3 71 00 00 35 04 06 00 00 00 89 [08:20:56]Write i2c OK [08:20:56]MH_I2C_Read... [08:20:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:20:56]Read from MH i2c: E2 [08:20:56]MH_I2C_Read... [08:20:56]Read from MH i2c: E2 03 00 [08:20:56]MH_I2C_Read... [08:20:56]Read from MH i2c: E2 03 00 56 7E 00 90 00 48 [08:20:56]RAPDU: 90 00 [08:20:56]wFMCommunicate OK [08:20:56]wFMCommunicate request_size=11 [08:20:56]MH_SAM_APDU [08:20:56]CAPDU: 80 0D 02 02 06 F2 5B DE BB 9B 2B [08:20:56]Write to MH i2c: E2 0E 00 57 7E 80 0D 02 02 06 00 F2 5B DE BB 9B 2B 00 00 07 [08:20:56]Write i2c OK [08:20:56]MH_I2C_Read... [08:20:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:20:56]Read from MH i2c: E2 [08:20:56]MH_I2C_Read... [08:20:56]Read from MH i2c: E2 03 00 [08:20:56]MH_I2C_Read... [08:20:56]Read from MH i2c: E2 03 00 57 7E 00 90 00 49 [08:20:56]RAPDU: 90 00 [08:20:56]wFMCommunicate OK [08:20:56]wFMCommunicate request_size=4 [08:20:56]MH_SAM_APDU [08:20:56]CAPDU: 80 0D 03 02 [08:20:56]Write to MH i2c: E2 08 00 58 7E 80 0D 03 02 00 00 00 00 51 [08:20:56]Write i2c OK [08:20:56]MH_I2C_Read... [08:20:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:20:56]Read from MH i2c: E2 [08:20:56]MH_I2C_Read... [08:20:56]Read from MH i2c: E2 0B 00 [08:20:56]MH_I2C_Read... [08:20:56]Read from MH i2c: E2 0B 00 58 7E 00 2A CF 35 99 BD 44 25 53 90 00 92 [08:20:56]RAPDU: 2A CF 35 99 BD 44 25 53 90 00 [08:20:56]wFMCommunicate OK [08:20:56]SAM_PROTO_SignData done [08:20:56]FM_MakeSignedData done [08:20:56]CreateOFDProtocolMessage [08:20:56]wFMCommunicate request_size=4 [08:20:56]MH_SAM_APDU [08:20:56]CAPDU: 80 11 00 00 [08:20:56]Write to MH i2c: E2 08 00 59 7E 80 11 00 00 00 00 00 00 51 [08:20:56]Write i2c OK [08:20:56]MH_I2C_Read... [08:20:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:20:56]Read from MH i2c: E2 [08:20:56]MH_I2C_Read... [08:20:56]Read from MH i2c: E2 17 00 [08:20:56]MH_I2C_Read... [08:20:56]Read from MH i2c: E2 17 00 59 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A0 [08:20:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:20:56]wFMCommunicate OK [08:20:56]CreateOFDProtocolMessage done [08:20:56]OFDSenderStorePacket 29139 [08:20:56]StoreOFDPacket docnum=29139 [08:20:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 F0 9D 08 01 7E 63 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 31 00 00 00 F4 03 04 00 F0 91 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D3 71 00 00 35 04 06 00 F2 5B DE BB 9B 2B 2A CF 35 99 BD 44 25 53 [08:20:56]CheckFolder [08:20:56]dirname=/storage/ofd_packets [08:20:56]CheckFolder done [08:20:56]ProducePacketName [08:20:56]name=ofd_packets/00029139 [08:20:56]NVStorageSaveData ofd_packets/00029139 [08:20:56]File name is /storage/ofd_packets/00029139 [08:20:56]Write 302 bytes [08:20:56]NVStorageSaveData done [08:20:56]OFDSenderStorePacket done [08:20:56]KKMCreateOFDPacket done [08:20:56]NVStorageSaveData kkm_last_timestamp [08:20:56]File name is /storage/kkm_last_timestamp [08:20:56]Write 4 bytes [08:20:56]NVStorageSaveData done [08:20:56]ExternCall_PrintAddStr [08:20:56]wPrintStart [08:20:56]Write to MH i2c: 01 00 00 5A 7E D8 [08:20:56]Write i2c OK [08:20:56]MH_I2C_Read... [08:20:56]Read from MH i2c: 01 [08:20:56]MH_I2C_Read... [08:20:56]Read from MH i2c: 01 07 00 [08:20:56]MH_I2C_Read... [08:20:56]Read from MH i2c: 01 07 00 5A 7E 00 00 00 00 00 FF 0F ED [08:20:56]RasterBufferAndPrint [08:20:56]line Счет N : (1)347508 [08:20:56]line ИНН: 02508201610067 [08:20:56]line Контрольно-Кассовый Чек [08:20:56]line ПРОДАЖА [08:20:56]line ТРК (МРК, ГНК) : 22 [08:20:56]line Товар: 2710124130 [08:20:56]line SUPER-92-К-5 [08:20:56]line 7.660 * 65.30 [08:20:56]line = 500.20 [08:20:56]line НДС 12% НСП 1% [08:20:56]line > о реализуемом товаре [08:20:56]line ОКРУГЛЕНИЕ: -0.20 [08:20:56]line ИТОГО: 500.00 [08:20:56]line Внесено: 500.00 [08:20:56]line СДАЧА: 0.00 [08:20:56]line НСП 1% : 4.43 [08:20:56]line НДС 12% : 53.12 [08:20:56]line Наличными: 500.00 [08:20:56]line Безнал.: 0.00 [08:20:56]line Место: АЗС № 108 "Партнер Нефть" [08:20:56]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:20:56]line СНО: Общий режим [08:20:56]line Чек 49 14.04.2024 08:21 [08:20:56]line Смена: 116 ФФД: 1.0 [08:20:56]line ЗНМ: 0300000027 [08:20:56]line РНМ: 0000138879044617 [08:20:56]line Версия ККМ: 001 [08:20:56]line ФМ: 0000000000963154 [08:20:56]line ФД: 29139 [08:20:56]line ФПД: 266476392782635 [08:20:56]line 1/tax-web-control/client/api/v1/ticket?date=20240414T082104&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29139&fm=266476392782635&tin=02508201610067®Number=0000138879044617&sum=50000 [08:20:57]OFD Sender: Processing packet 29139 [packets to send 8, broken 7] [08:20:57]ProducePacketName [08:20:57]name=ofd_packets/00029139 [08:20:57]OFD Sender: To server: pG, [08:20:57]CommunicateWithHost lk.salyk.kg:30040 [08:20:57]ConnectInit lk.salyk.kg [08:20:57]written 0, free lines is 4095 [08:20:57]Connected sock=10 [08:20:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 F0 9D 08 01 7E 63 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 31 00 00 00 F4 03 04 00 F0 91 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D3 71 00 00 35 04 06 00 F2 5B DE BB 9B 2B 2A CF 35 99 BD 44 25 53 [08:20:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 79 40 47 00 FD 33 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D3 71 00 00 F4 03 04 00 94 3C 1B 66 B6 04 01 00 00 0A 0B 1B 63 6A 25 4A 81 [08:20:57]CommunicateWithHost err = 0 [08:20:57]CheckOFDResponse [08:20:57]1017 (14) - 77093643461234 [08:20:57]1041 (16) - 0000000000963154 [08:20:57]1040 (4) - 29139 [08:20:57]1012 (4) - 14.04.2024 02:16 [08:20:57]1206 (1) - 0 [08:20:57]OFD Sender: Remove packet 29139 [08:20:57]ProducePacketName [08:20:57]name=ofd_packets/00029139 [08:20:57]NVStorageDeleteData [08:20:57]Write to MH i2c: 01 00 00 84 7E 02 [08:20:57]Write i2c OK [08:20:57]MH_I2C_Read... [08:20:57]Read from MH i2c: 01 [08:20:57]MH_I2C_Read... [08:20:57]Read from MH i2c: 01 07 00 [08:20:57]MH_I2C_Read... [08:20:57]Read from MH i2c: 01 07 00 84 7E 00 00 00 00 00 CE 0C E3 [08:20:57]RasterBufferAndPrint [08:20:57]line [08:20:57]line [08:20:57]line [08:20:57]line [08:20:57]line [08:20:57]written 0, free lines is 3284 [08:20:57]MH_Cut [08:20:57]Write to MH i2c: D1 01 00 8B 7E 01 DB [08:20:57]Write i2c OK [08:20:57]MH_I2C_Read... [08:20:57]Read from MH i2c: D1 [08:20:57]MH_I2C_Read... [08:20:57]Read from MH i2c: D1 01 00 [08:20:57]MH_I2C_Read... [08:20:57]Read from MH i2c: D1 01 00 8B 7E 00 DA [08:20:57]Write to MH i2c: 01 00 00 8C 7E 0A [08:20:57]Write i2c OK [08:20:57]MH_I2C_Read... [08:20:57]OFD Sender: No OFD packet to send [08:20:58]*** Cut start [08:20:58]*** Partial cut [08:20:58]*** CUTSNS_PIN = 1 [08:20:58]*** CUTSNS_PIN = 0 [08:20:58]*** Brake cut motor [08:20:59]Read from MH i2c: 01 [08:20:59]MH_I2C_Read... [08:20:59]*** Stop cut motor [08:20:59]*** Cut end [08:20:59]Read from MH i2c: 01 07 00 [08:20:59]MH_I2C_Read... [08:20:59]Read from MH i2c: 01 07 00 8C 7E 00 00 00 00 00 FF 0F 1F [08:20:59]process_action close_receipt done [08:20:59]requested_data is exist [08:20:59]produce_requested_data [08:20:59]requested_item fm.sn is exist - process it [08:20:59]wFMCommunicate request_size=4 [08:20:59]MH_SAM_APDU [08:20:59]CAPDU: 80 11 00 00 [08:20:59]Write to MH i2c: E2 08 00 8D 7E 80 11 00 00 00 00 00 00 85 [08:20:59]Write i2c OK [08:20:59]MH_I2C_Read... [08:20:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:20:59]Read from MH i2c: E2 [08:20:59]MH_I2C_Read... [08:20:59]Read from MH i2c: E2 17 00 [08:20:59]MH_I2C_Read... [08:20:59]Read from MH i2c: E2 17 00 8D 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D4 [08:20:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:20:59]wFMCommunicate OK [08:20:59]requested_item fd.num is exist - process it [08:20:59]SAM_PROTO_GetFieldsCounters [08:20:59]wFMCommunicate request_size=4 [08:20:59]MH_SAM_APDU [08:20:59]CAPDU: 80 13 00 00 [08:20:59]Write to MH i2c: E2 08 00 8E 7E 80 13 00 00 00 00 00 00 88 [08:20:59]Write i2c OK [08:20:59]MH_I2C_Read... [08:20:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:20:59]Read from MH i2c: E2 [08:20:59]MH_I2C_Read... [08:20:59]Read from MH i2c: E2 62 00 [08:20:59]MH_I2C_Read... [08:20:59]Read from MH i2c: E2 62 00 8E 7E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D3 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 11 [08:20:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D3 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:20:59]wFMCommunicate OK [08:20:59]SAM_PROTO_GetFieldsCounters done [08:20:59]requested_item shift.num is exist - process it [08:20:59]requested_item shift.opened is exist - process it [08:20:59]req_shift_opened [08:20:59]FM_GetShiftState [08:20:59]SAM_PROTO_GetShiftState [08:20:59]wFMCommunicate request_size=4 [08:20:59]MH_SAM_APDU [08:20:59]CAPDU: 80 13 01 00 [08:20:59]Write to MH i2c: E2 08 00 8F 7E 80 13 01 00 00 00 00 00 8A [08:20:59]Write i2c OK [08:20:59]MH_I2C_Read... [08:20:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:20:59]Read from MH i2c: E2 [08:20:59]MH_I2C_Read... [08:20:59]Read from MH i2c: E2 0E 00 [08:20:59]MH_I2C_Read... [08:20:59]Read from MH i2c: E2 0E 00 8F 7E 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 36 [08:20:59]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [08:20:59]wFMCommunicate OK [08:20:59]SAM_PROTO_GetShiftState done [08:20:59]FM_GetShiftState done [08:20:59]req_shift_opened done [08:20:59]requested_item shift.open_date is exist - process it [08:20:59]req_shift_open_date [08:20:59]req_shift_open_date done [08:20:59]produce_requested_data done [08:20:59]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29139,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [08:20:59]process_action_free close_receipt [08:20:59]json_value_free [08:20:59]json_value_free done [08:20:59]process_json_proto returns [08:20:59]Send response to host [08:20:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29139,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [08:20:59]free response buf [08:20:59]execute_script done [08:20:59]execute_script returns [08:20:59]free content buf [08:20:59]Sock 9.Close socket [08:20:59]Sock 9.Thread stoped [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]accept exits with 7 [08:21:22]New connection [08:21:22]New thread 3066785124 created [08:21:22]Thread 3066928484 joined [08:21:22]Waiting for new connection... [08:21:22] Sock 7.Parse request [08:21:22]Sock 7.Check first char [08:21:22]Sock 7.First char is OK [08:21:22]request: POST /json_proto HTTP/1.0 [08:21:22]Method: POST [08:21:22]URL: /json_proto [08:21:22]Method is POST - this is cgi request [08:21:22]url: /json_proto [08:21:22]query_string will be loaded in cgi processing [08:21:22]execute_cgi json_proto POST (null) [08:21:22]execute_cgi path=json_proto method=POST [08:21:22]POST find Content-Length [08:21:22]Host: 172.17.33.3:8080 [08:21:22]Content-Length: 682 [08:21:22]Content-Type: application/json [08:21:22] [08:21:22]POST finish read [08:21:22]Found Content-Length = 682 [08:21:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347509", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.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" ] } } [08:21:22]execute_script... [08:21: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)347509", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.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" ] } } [08:21:22]POST & json_proto [08:21:22]process_json_proto [08:21:22]json parsed OK: [08:21:22]protocol is kg_v1.0 [08:21:22]action value=close_receipt [08:21:22]process_action close_receipt [08:21:22]cmd_close_receipt [08:21:22]MH_GetDate [08:21:22]Write to MH i2c: F0 00 00 90 7E FD [08:21:22]Write i2c OK [08:21:22]MH_I2C_Read... [08:21:22]Read from MH i2c: F0 [08:21:22]MH_I2C_Read... [08:21:22]Read from MH i2c: F0 09 00 [08:21:22]MH_I2C_Read... [08:21:22]Read from MH i2c: F0 09 00 90 7E 00 0B 92 1B 66 23 5B 8F 65 96 [08:21:22]GetLastDocTimeStamp 1713082864 [08:21:22]current date 1713082891 [08:21:22]FM_GetShiftState [08:21:22]SAM_PROTO_GetShiftState [08:21:22]wFMCommunicate request_size=4 [08:21:22]MH_SAM_APDU [08:21:22]CAPDU: 80 13 01 00 [08:21:22]Write to MH i2c: E2 08 00 91 7E 80 13 01 00 00 00 00 00 8C [08:21:22]Write i2c OK [08:21:22]MH_I2C_Read... [08:21:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:21:22]Read from MH i2c: E2 [08:21:22]MH_I2C_Read... [08:21:22]Read from MH i2c: E2 0E 00 [08:21:22]MH_I2C_Read... [08:21:22]Read from MH i2c: E2 0E 00 91 7E 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 38 [08:21:22]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [08:21:22]wFMCommunicate OK [08:21:22]SAM_PROTO_GetShiftState done [08:21:22]FM_GetShiftState done [08:21:22]opened in 1713053951 [08:21:22]opened+sec_in_day 1713140351 [08:21:22]quantity*price = 100050 [08:21:22]sum+1 = 100051 [08:21:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 50 14.04.2024 08:21 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29140 ФПД: 175082531815075 1/tax-web-control/client/api/v1/ticket?date=20240414T082131&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29140&fm=175082531815075&tin=02508201610067®Number=0000138879044617&sum=100000 [08:21:23]StoreToDocumentArchive [08:21:23]shift 116 fd 29140 [08:21:23]save to /storage/0116/doc_00029140 [08:21:23]save last doc name /storage/0116/doc_00029140 to /storage/kkm_last_doc_name [08:21:23]save OK [08:21:23]Clear old archive folders... [08:21:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:21:23]tlvbuf is 011E32A0 [08:21:23]SAM_PROTO_ClearQueue [08:21:23]wFMCommunicate request_size=4 [08:21:23]MH_SAM_APDU [08:21:23]CAPDU: 80 09 00 00 [08:21:23]Write to MH i2c: E2 08 00 9E 7E 80 09 00 00 00 00 00 00 8E [08:21:23]Write i2c OK [08:21:23]MH_I2C_Read... [08:21:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:21:23]Read from MH i2c: E2 [08:21:23]MH_I2C_Read... [08:21:23]Read from MH i2c: E2 03 00 [08:21:23]MH_I2C_Read... [08:21:23]Read from MH i2c: E2 03 00 9E 7E 00 90 00 90 [08:21:23]RAPDU: 90 00 [08:21:23]wFMCommunicate OK [08:21:23]SAM_PROTO_ClearQueue done [08:21:23]KKMCreateOFDPacket [08:21:23]OFDProtocolAddRootSTLVToBuf [08:21:23]FM_MakeSignedData [08:21:23]FM_MakeSignedData [08:21:23]SAM_PROTO_SignData [08:21:23]wFMCommunicate request_size=4 [08:21:23]MH_SAM_APDU [08:21:23]CAPDU: 80 0D 01 02 [08:21:23]Write to MH i2c: E2 08 00 9F 7E 80 0D 01 02 00 00 00 00 96 [08:21:23]Write i2c OK [08:21:23]MH_I2C_Read... [08:21:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:21:23]Read from MH i2c: E2 [08:21:23]MH_I2C_Read... [08:21:23]Read from MH i2c: E2 03 00 [08:21:23]MH_I2C_Read... [08:21:23]Read from MH i2c: E2 03 00 9F 7E 00 90 00 91 [08:21:23]RAPDU: 90 00 [08:21:23]wFMCommunicate OK [08:21:23]wFMCommunicate request_size=255 [08:21:23]MH_SAM_APDU [08:21: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 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 32 00 00 00 F4 03 04 00 0B 92 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D4 71 00 00 35 04 06 00 9F [08:21:23]Write to MH i2c: E2 02 01 A0 7E 80 0D 02 02 FA 00 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 32 00 00 00 F4 03 04 00 0B 92 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D4 71 00 00 35 04 06 00 9F 00 00 BD [08:21:23]Write i2c OK [08:21:23]MH_I2C_Read... [08:21:24]Read from MH i2c: E2 [08:21:24]MH_I2C_Read... [08:21:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:21:24]Read from MH i2c: E2 03 00 [08:21:24]MH_I2C_Read... [08:21:24]Read from MH i2c: E2 03 00 A0 7E 00 90 00 92 [08:21:24]RAPDU: 90 00 [08:21:24]wFMCommunicate OK [08:21:24]wFMCommunicate request_size=10 [08:21:24]MH_SAM_APDU [08:21:24]CAPDU: 80 0D 02 02 05 3C 94 1D 7E A3 [08:21:24]Write to MH i2c: E2 0D 00 A1 7E 80 0D 02 02 05 00 3C 94 1D 7E A3 00 00 B1 [08:21:24]Write i2c OK [08:21:24]MH_I2C_Read... [08:21:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:21:24]Read from MH i2c: E2 [08:21:24]MH_I2C_Read... [08:21:24]Read from MH i2c: E2 03 00 [08:21:24]MH_I2C_Read... [08:21:24]Read from MH i2c: E2 03 00 A1 7E 00 90 00 93 [08:21:24]RAPDU: 90 00 [08:21:24]wFMCommunicate OK [08:21:24]wFMCommunicate request_size=4 [08:21:24]MH_SAM_APDU [08:21:24]CAPDU: 80 0D 03 02 [08:21:24]Write to MH i2c: E2 08 00 A2 7E 80 0D 03 02 00 00 00 00 9B [08:21:24]Write i2c OK [08:21:24]MH_I2C_Read... [08:21:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:21:24]Read from MH i2c: E2 [08:21:24]MH_I2C_Read... [08:21:24]Read from MH i2c: E2 0B 00 [08:21:24]MH_I2C_Read... [08:21:24]Read from MH i2c: E2 0B 00 A2 7E 00 BD 33 8F D8 D3 2D 47 04 90 00 3E [08:21:24]RAPDU: BD 33 8F D8 D3 2D 47 04 90 00 [08:21:24]wFMCommunicate OK [08:21:24]SAM_PROTO_SignData done [08:21:24]FM_MakeSignedData done [08:21:24]CreateOFDProtocolMessage [08:21:24]wFMCommunicate request_size=4 [08:21:24]MH_SAM_APDU [08:21:24]CAPDU: 80 11 00 00 [08:21:24]Write to MH i2c: E2 08 00 A3 7E 80 11 00 00 00 00 00 00 9B [08:21:24]Write i2c OK [08:21:24]MH_I2C_Read... [08:21:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:21:24]Read from MH i2c: E2 [08:21:24]MH_I2C_Read... [08:21:24]Read from MH i2c: E2 17 00 [08:21:24]MH_I2C_Read... [08:21:24]Read from MH i2c: E2 17 00 A3 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 EA [08:21:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:21:24]wFMCommunicate OK [08:21:24]CreateOFDProtocolMessage done [08:21:24]OFDSenderStorePacket 29140 [08:21:24]StoreOFDPacket docnum=29140 [08:21:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 7A 2A 07 01 69 EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 32 00 00 00 F4 03 04 00 0B 92 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D4 71 00 00 35 04 06 00 9F 3C 94 1D 7E A3 BD 33 8F D8 D3 2D 47 04 [08:21:24]CheckFolder [08:21:24]dirname=/storage/ofd_packets [08:21:24]CheckFolder done [08:21:24]ProducePacketName [08:21:24]name=ofd_packets/00029140 [08:21:24]NVStorageSaveData ofd_packets/00029140 [08:21:24]File name is /storage/ofd_packets/00029140 [08:21:24]Write 301 bytes [08:21:24]NVStorageSaveData done [08:21:24]OFDSenderStorePacket done [08:21:24]KKMCreateOFDPacket done [08:21:24]NVStorageSaveData kkm_last_timestamp [08:21:24]File name is /storage/kkm_last_timestamp [08:21:24]Write 4 bytes [08:21:24]NVStorageSaveData done [08:21:24]ExternCall_PrintAddStr [08:21:24]wPrintStart [08:21:24]Write to MH i2c: 01 00 00 A4 7E 22 [08:21:24]Write i2c OK [08:21:24]MH_I2C_Read... [08:21:24]Read from MH i2c: 01 [08:21:24]MH_I2C_Read... [08:21:24]Read from MH i2c: 01 07 00 [08:21:24]MH_I2C_Read... [08:21:24]Read from MH i2c: 01 07 00 A4 7E 00 00 00 00 00 FF 0F 37 [08:21:24]RasterBufferAndPrint [08:21:24]line Счет N : (1)347509 [08:21:24]line ИНН: 02508201610067 [08:21:24]line Контрольно-Кассовый Чек [08:21:24]line ПРОДАЖА [08:21:24]line ТРК (МРК, ГНК) : 43 [08:21:24]line Товар: 2710124500 [08:21:24]line Аи-95-К-5 [08:21:24]line 13.800 * 72.50 [08:21:24]line = 1000.50 [08:21:24]line НДС 12% НСП 1% [08:21:24]line > о реализуемом товаре [08:21:24]line ОКРУГЛЕНИЕ: -0.50 [08:21:24]line ИТОГО: 1000.00 [08:21:24]line Внесено: 1000.00 [08:21:24]line СДАЧА: 0.00 [08:21:24]line НСП 1% : 8.85 [08:21:24]line НДС 12% : 106.25 [08:21:24]line Наличными: 1000.00 [08:21:24]line Безнал.: 0.00 [08:21:24]line Место: АЗС № 108 "Партнер Нефть" [08:21:24]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:21:24]line СНО: Общий режим [08:21:24]line Чек 50 14.04.2024 08:21 [08:21:24]line Смена: 116 ФФД: 1.0 [08:21:24]line ЗНМ: 0300000027 [08:21:24]line РНМ: 0000138879044617 [08:21:24]line Версия ККМ: 001 [08:21:24]line ФМ: 0000000000963154 [08:21:24]line ФД: 29140 [08:21:24]line ФПД: 175082531815075 [08:21:24]line 1/tax-web-control/client/api/v1/ticket?date=20240414T082131&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29140&fm=175082531815075&tin=02508201610067®Number=0000138879044617&sum=100000 [08:21:24]OFD Sender: Processing packet 29140 [packets to send 8, broken 7] [08:21:24]ProducePacketName [08:21:24]name=ofd_packets/00029140 [08:21:24]OFD Sender: To server: pG, [08:21:24]CommunicateWithHost lk.salyk.kg:30040 [08:21:24]ConnectInit lk.salyk.kg [08:21:24]written 0, free lines is 4095 [08:21:24]Connected sock=10 [08:21:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 7A 2A 07 01 69 EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 32 00 00 00 F4 03 04 00 0B 92 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D4 71 00 00 35 04 06 00 9F 3C 94 1D 7E A3 BD 33 8F D8 D3 2D 47 04 [08:21:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 E8 BB 47 00 3C 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 39 36 33 31 35 34 10 04 04 00 D4 71 00 00 F4 03 04 00 B0 3C 1B 66 B6 04 01 00 00 FE CE A4 96 D3 A6 A9 B5 [08:21:24]CommunicateWithHost err = 0 [08:21:24]CheckOFDResponse [08:21:24]1017 (14) - 77093643461234 [08:21:24]1041 (16) - 0000000000963154 [08:21:24]1040 (4) - 29140 [08:21:24]1012 (4) - 14.04.2024 02:17 [08:21:24]1206 (1) - 0 [08:21:24]OFD Sender: Remove packet 29140 [08:21:24]ProducePacketName [08:21:24]name=ofd_packets/00029140 [08:21:24]NVStorageDeleteData [08:21:25]Write to MH i2c: 01 00 00 CE 7E 4C [08:21:25]Write i2c OK [08:21:25]MH_I2C_Read... [08:21:25]Read from MH i2c: 01 [08:21:25]MH_I2C_Read... [08:21:25]Read from MH i2c: 01 07 00 [08:21:25]MH_I2C_Read... [08:21:25]Read from MH i2c: 01 07 00 CE 7E 00 00 00 00 00 C0 0C 1F [08:21:25]RasterBufferAndPrint [08:21:25]line [08:21:25]line [08:21:25]line [08:21:25]line [08:21:25]line [08:21:25]written 0, free lines is 3270 [08:21:25]MH_Cut [08:21:25]Write to MH i2c: D1 01 00 D5 7E 01 25 [08:21:25]Write i2c OK [08:21:25]MH_I2C_Read... [08:21:25]Read from MH i2c: D1 [08:21:25]MH_I2C_Read... [08:21:25]Read from MH i2c: D1 01 00 [08:21:25]MH_I2C_Read... [08:21:25]Read from MH i2c: D1 01 00 D5 7E 00 24 [08:21:25]Write to MH i2c: 01 00 00 D6 7E 54 [08:21:25]Write i2c OK [08:21:25]MH_I2C_Read... [08:21:25]OFD Sender: No OFD packet to send [08:21:25]*** Cut start [08:21:25]*** Partial cut [08:21:25]*** CUTSNS_PIN = 1 [08:21:25]*** CUTSNS_PIN = 0 [08:21:26]*** Brake cut motor [08:21:26]Read from MH i2c: 01 [08:21:26]MH_I2C_Read... [08:21:26]*** Stop cut motor [08:21:26]*** Cut end [08:21:26]Read from MH i2c: 01 07 00 [08:21:26]MH_I2C_Read... [08:21:26]Read from MH i2c: 01 07 00 D6 7E 00 00 00 00 00 FF 0F 69 [08:21:26]process_action close_receipt done [08:21:26]requested_data is exist [08:21:26]produce_requested_data [08:21:26]requested_item fm.sn is exist - process it [08:21:26]wFMCommunicate request_size=4 [08:21:26]MH_SAM_APDU [08:21:26]CAPDU: 80 11 00 00 [08:21:26]Write to MH i2c: E2 08 00 D7 7E 80 11 00 00 00 00 00 00 CF [08:21:26]Write i2c OK [08:21:26]MH_I2C_Read... [08:21:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:21:26]Read from MH i2c: E2 [08:21:26]MH_I2C_Read... [08:21:26]Read from MH i2c: E2 17 00 [08:21:26]MH_I2C_Read... [08:21:26]Read from MH i2c: E2 17 00 D7 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 1E [08:21:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:21:26]wFMCommunicate OK [08:21:26]requested_item fd.num is exist - process it [08:21:26]SAM_PROTO_GetFieldsCounters [08:21:26]wFMCommunicate request_size=4 [08:21:26]MH_SAM_APDU [08:21:26]CAPDU: 80 13 00 00 [08:21:26]Write to MH i2c: E2 08 00 D8 7E 80 13 00 00 00 00 00 00 D2 [08:21:26]Write i2c OK [08:21:26]MH_I2C_Read... [08:21:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:21:26]Read from MH i2c: E2 [08:21:26]MH_I2C_Read... [08:21:26]Read from MH i2c: E2 62 00 [08:21:26]MH_I2C_Read... [08:21:26]Read from MH i2c: E2 62 00 D8 7E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D4 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 5F [08:21:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D4 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:21:26]wFMCommunicate OK [08:21:26]SAM_PROTO_GetFieldsCounters done [08:21:26]requested_item shift.num is exist - process it [08:21:26]requested_item shift.opened is exist - process it [08:21:26]req_shift_opened [08:21:26]FM_GetShiftState [08:21:26]SAM_PROTO_GetShiftState [08:21:26]wFMCommunicate request_size=4 [08:21:26]MH_SAM_APDU [08:21:26]CAPDU: 80 13 01 00 [08:21:26]Write to MH i2c: E2 08 00 D9 7E 80 13 01 00 00 00 00 00 D4 [08:21:26]Write i2c OK [08:21:26]MH_I2C_Read... [08:21:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:21:26]Read from MH i2c: E2 [08:21:26]MH_I2C_Read... [08:21:26]Read from MH i2c: E2 0E 00 [08:21:26]MH_I2C_Read... [08:21:26]Read from MH i2c: E2 0E 00 D9 7E 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 80 [08:21:26]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [08:21:26]wFMCommunicate OK [08:21:26]SAM_PROTO_GetShiftState done [08:21:26]FM_GetShiftState done [08:21:26]req_shift_opened done [08:21:26]requested_item shift.open_date is exist - process it [08:21:26]req_shift_open_date [08:21:26]req_shift_open_date done [08:21:26]produce_requested_data done [08:21:26]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29140,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [08:21:26]process_action_free close_receipt [08:21:26]json_value_free [08:21:26]json_value_free done [08:21:26]process_json_proto returns [08:21:26]Send response to host [08:21:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29140,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [08:21:26]free response buf [08:21:26]execute_script done [08:21:26]execute_script returns [08:21:26]free content buf [08:21:26]Sock 7.Close socket [08:21:26]Sock 7.Thread stoped [08:21:30]OFD Sender: No OFD packet to send [08:21:35]OFD Sender: No OFD packet to send [08:21:40]OFD Sender: No OFD packet to send [08:21:45]OFD Sender: No OFD packet to send [08:21:50]OFD Sender: No OFD packet to send [08:21:55]OFD Sender: No OFD packet to send [08:22:00]OFD Sender: No OFD packet to send [08:22:05]OFD Sender: No OFD packet to send [08:22:10]OFD Sender: No OFD packet to send [08:22:15]OFD Sender: No OFD packet to send [08:22:20]OFD Sender: No OFD packet to send [08:22:25]OFD Sender: No OFD packet to send [08:22:30]OFD Sender: No OFD packet to send [08:22:35]OFD Sender: No OFD packet to send [08:22:40]OFD Sender: No OFD packet to send [08:22:45]OFD Sender: No OFD packet to send [08:22:50]OFD Sender: No OFD packet to send [08:22:55]OFD Sender: No OFD packet to send [08:23:00]OFD Sender: No OFD packet to send [08:23:05]OFD Sender: No OFD packet to send [08:23:10]OFD Sender: No OFD packet to send [08:23:15]OFD Sender: No OFD packet to send [08:23:20]OFD Sender: No OFD packet to send [08:23:25]OFD Sender: No OFD packet to send [08:23:30]OFD Sender: No OFD packet to send [08:23:32]accept exits with 9 [08:23:32]New connection [08:23:32]New thread 3066928484 created [08:23:32]Thread 3066785124 joined [08:23:32]Waiting for new connection... [08:23:32] Sock 9.Parse request [08:23:32]Sock 9.Check first char [08:23:32]Sock 9.First char is OK [08:23:32]request: POST /json_proto HTTP/1.0 [08:23:32]Method: POST [08:23:32]URL: /json_proto [08:23:32]Method is POST - this is cgi request [08:23:32]url: /json_proto [08:23:32]query_string will be loaded in cgi processing [08:23:32]execute_cgi json_proto POST (null) [08:23:32]execute_cgi path=json_proto method=POST [08:23:32]POST find Content-Length [08:23:32]Host: 172.17.33.3:8080 [08:23:32]Content-Length: 681 [08:23:32]Content-Type: application/json [08:23:32] [08:23:32]POST finish read [08:23:32]Found Content-Length = 681 [08:23:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347510", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 12.160, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:23:32]execute_script... [08:23: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)347510", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 12.160, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:23:32]POST & json_proto [08:23:32]process_json_proto [08:23:32]json parsed OK: [08:23:32]protocol is kg_v1.0 [08:23:32]action value=close_receipt [08:23:32]process_action close_receipt [08:23:32]cmd_close_receipt [08:23:32]MH_GetDate [08:23:32]Write to MH i2c: F0 00 00 DA 7E 47 [08:23:32]Write i2c OK [08:23:32]MH_I2C_Read... [08:23:32]Read from MH i2c: F0 [08:23:32]MH_I2C_Read... [08:23:32]Read from MH i2c: F0 09 00 [08:23:32]MH_I2C_Read... [08:23:32]Read from MH i2c: F0 09 00 DA 7E 00 8D 92 1B 66 23 5B 8F 65 62 [08:23:32]GetLastDocTimeStamp 1713082891 [08:23:32]current date 1713083021 [08:23:32]FM_GetShiftState [08:23:32]SAM_PROTO_GetShiftState [08:23:32]wFMCommunicate request_size=4 [08:23:32]MH_SAM_APDU [08:23:32]CAPDU: 80 13 01 00 [08:23:32]Write to MH i2c: E2 08 00 DB 7E 80 13 01 00 00 00 00 00 D6 [08:23:32]Write i2c OK [08:23:32]MH_I2C_Read... [08:23:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:23:32]Read from MH i2c: E2 [08:23:32]MH_I2C_Read... [08:23:32]Read from MH i2c: E2 0E 00 [08:23:32]MH_I2C_Read... [08:23:32]Read from MH i2c: E2 0E 00 DB 7E 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 82 [08:23:32]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [08:23:32]wFMCommunicate OK [08:23:32]SAM_PROTO_GetShiftState done [08:23:32]FM_GetShiftState done [08:23:32]opened in 1713053951 [08:23:32]opened+sec_in_day 1713140351 [08:23:32]quantity*price = 40006 [08:23:32]sum+1 = 40007 [08:23:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 51 14.04.2024 08:23 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29141 ФПД: 76525542300104 1/tax-web-control/client/api/v1/ticket?date=20240414T082341&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29141&fm=76525542300104&tin=02508201610067®Number=0000138879044617&sum=40000 [08:23:33]StoreToDocumentArchive [08:23:33]shift 116 fd 29141 [08:23:33]save to /storage/0116/doc_00029141 [08:23:33]save last doc name /storage/0116/doc_00029141 to /storage/kkm_last_doc_name [08:23:33]save OK [08:23:33]Clear old archive folders... [08:23:33]ProcessDocumentItem done err = 0, tmpTLVsize=250 [08:23:33]tlvbuf is 012246C0 [08:23:33]SAM_PROTO_ClearQueue [08:23:33]wFMCommunicate request_size=4 [08:23:33]MH_SAM_APDU [08:23:33]CAPDU: 80 09 00 00 [08:23:33]Write to MH i2c: E2 08 00 E8 7E 80 09 00 00 00 00 00 00 D8 [08:23:33]Write i2c OK [08:23:33]MH_I2C_Read... [08:23:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:23:33]Read from MH i2c: E2 [08:23:33]MH_I2C_Read... [08:23:33]Read from MH i2c: E2 03 00 [08:23:33]MH_I2C_Read... [08:23:33]Read from MH i2c: E2 03 00 E8 7E 00 90 00 DA [08:23:33]RAPDU: 90 00 [08:23:33]wFMCommunicate OK [08:23:33]SAM_PROTO_ClearQueue done [08:23:33]KKMCreateOFDPacket [08:23:33]OFDProtocolAddRootSTLVToBuf [08:23:33]FM_MakeSignedData [08:23:33]FM_MakeSignedData [08:23:33]SAM_PROTO_SignData [08:23:33]wFMCommunicate request_size=4 [08:23:33]MH_SAM_APDU [08:23:33]CAPDU: 80 0D 01 02 [08:23:33]Write to MH i2c: E2 08 00 E9 7E 80 0D 01 02 00 00 00 00 E0 [08:23:33]Write i2c OK [08:23:33]MH_I2C_Read... [08:23:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:23:33]Read from MH i2c: E2 [08:23:33]MH_I2C_Read... [08:23:33]Read from MH i2c: E2 03 00 [08:23:33]MH_I2C_Read... [08:23:33]Read from MH i2c: E2 03 00 E9 7E 00 90 00 DB [08:23:33]RAPDU: 90 00 [08:23:33]wFMCommunicate OK [08:23:33]wFMCommunicate request_size=255 [08:23:33]MH_SAM_APDU [08:23:33]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 80 2F 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 46 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 33 00 00 00 F4 03 04 00 8D 92 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D5 71 00 00 35 04 06 00 45 99 [08:23:33]Write to MH i2c: E2 02 01 EA 7E 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 80 2F 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 46 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 33 00 00 00 F4 03 04 00 8D 92 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D5 71 00 00 35 04 06 00 45 99 00 00 5C [08:23:33]Write i2c OK [08:23:33]MH_I2C_Read... [08:23:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:23:33]Read from MH i2c: E2 [08:23:33]MH_I2C_Read... [08:23:33]Read from MH i2c: E2 03 00 [08:23:33]MH_I2C_Read... [08:23:33]Read from MH i2c: E2 03 00 EA 7E 00 90 00 DC [08:23:33]RAPDU: 90 00 [08:23:33]wFMCommunicate OK [08:23:33]wFMCommunicate request_size=9 [08:23:33]MH_SAM_APDU [08:23:33]CAPDU: 80 0D 02 02 04 7D C3 D9 C8 [08:23:33]Write to MH i2c: E2 0C 00 EB 7E 80 0D 02 02 04 00 7D C3 D9 C8 00 00 CC [08:23:33]Write i2c OK [08:23:33]MH_I2C_Read... [08:23:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:23:34]Read from MH i2c: E2 [08:23:34]MH_I2C_Read... [08:23:34]Read from MH i2c: E2 03 00 [08:23:34]MH_I2C_Read... [08:23:34]Read from MH i2c: E2 03 00 EB 7E 00 90 00 DD [08:23:34]RAPDU: 90 00 [08:23:34]wFMCommunicate OK [08:23:34]wFMCommunicate request_size=4 [08:23:34]MH_SAM_APDU [08:23:34]CAPDU: 80 0D 03 02 [08:23:34]Write to MH i2c: E2 08 00 EC 7E 80 0D 03 02 00 00 00 00 E5 [08:23:34]Write i2c OK [08:23:34]MH_I2C_Read... [08:23:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:23:34]Read from MH i2c: E2 [08:23:34]MH_I2C_Read... [08:23:34]Read from MH i2c: E2 0B 00 [08:23:34]MH_I2C_Read... [08:23:34]Read from MH i2c: E2 0B 00 EC 7E 00 1D 39 D7 5F 06 2E DE 14 90 00 98 [08:23:34]RAPDU: 1D 39 D7 5F 06 2E DE 14 90 00 [08:23:34]wFMCommunicate OK [08:23:34]SAM_PROTO_SignData done [08:23:34]FM_MakeSignedData done [08:23:34]CreateOFDProtocolMessage [08:23:34]wFMCommunicate request_size=4 [08:23:34]MH_SAM_APDU [08:23:34]CAPDU: 80 11 00 00 [08:23:34]Write to MH i2c: E2 08 00 ED 7E 80 11 00 00 00 00 00 00 E5 [08:23:34]Write i2c OK [08:23:34]MH_I2C_Read... [08:23:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:23:34]Read from MH i2c: E2 [08:23:34]MH_I2C_Read... [08:23:34]Read from MH i2c: E2 17 00 [08:23:34]MH_I2C_Read... [08:23:34]Read from MH i2c: E2 17 00 ED 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 34 [08:23:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:23:34]wFMCommunicate OK [08:23:34]CreateOFDProtocolMessage done [08:23:34]OFDSenderStorePacket 29141 [08:23:34]StoreOFDPacket docnum=29141 [08:23:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 77 A1 06 01 93 B4 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 80 2F 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 46 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 33 00 00 00 F4 03 04 00 8D 92 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D5 71 00 00 35 04 06 00 45 99 7D C3 D9 C8 1D 39 D7 5F 06 2E DE 14 [08:23:34]CheckFolder [08:23:34]dirname=/storage/ofd_packets [08:23:34]CheckFolder done [08:23:34]ProducePacketName [08:23:34]name=ofd_packets/00029141 [08:23:34]NVStorageSaveData ofd_packets/00029141 [08:23:34]File name is /storage/ofd_packets/00029141 [08:23:34]Write 300 bytes [08:23:34]NVStorageSaveData done [08:23:34]OFDSenderStorePacket done [08:23:34]KKMCreateOFDPacket done [08:23:34]NVStorageSaveData kkm_last_timestamp [08:23:34]File name is /storage/kkm_last_timestamp [08:23:34]Write 4 bytes [08:23:34]NVStorageSaveData done [08:23:34]ExternCall_PrintAddStr [08:23:34]wPrintStart [08:23:34]Write to MH i2c: 01 00 00 EE 7E 6C [08:23:34]Write i2c OK [08:23:34]MH_I2C_Read... [08:23:34]Read from MH i2c: 01 [08:23:34]MH_I2C_Read... [08:23:34]Read from MH i2c: 01 07 00 [08:23:34]MH_I2C_Read... [08:23:34]Read from MH i2c: 01 07 00 EE 7E 00 00 00 00 00 FF 0F 81 [08:23:34]RasterBufferAndPrint [08:23:34]line Счет N : (1)347510 [08:23:34]line ИНН: 02508201610067 [08:23:34]line Контрольно-Кассовый Чек [08:23:34]line ПРОДАЖА [08:23:34]line ТРК (МРК, ГНК) : 71 [08:23:34]line Товар: 2711129700 [08:23:34]line ГАЗ-К-5 [08:23:34]line 12.160 * 32.90 [08:23:34]line = 400.06 [08:23:34]line НДС 12% НСП 1% [08:23:34]line > о реализуемом товаре [08:23:34]line ОКРУГЛЕНИЕ: -0.06 [08:23:34]line ИТОГО: 400.00 [08:23:34]line Внесено: 400.00 [08:23:34]line СДАЧА: 0.00 [08:23:34]line НСП 1% : 3.54 [08:23:34]line НДС 12% : 42.48 [08:23:34]line Наличными: 400.00 [08:23:34]line Безнал.: 0.00 [08:23:34]line Место: АЗС № 108 "Партнер Нефть" [08:23:34]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:23:34]line СНО: Общий режим [08:23:34]line Чек 51 14.04.2024 08:23 [08:23:34]line Смена: 116 ФФД: 1.0 [08:23:34]line ЗНМ: 0300000027 [08:23:34]line РНМ: 0000138879044617 [08:23:34]line Версия ККМ: 001 [08:23:34]line ФМ: 0000000000963154 [08:23:34]line ФД: 29141 [08:23:34]line ФПД: 76525542300104 [08:23:34]line 1/tax-web-control/client/api/v1/ticket?date=20240414T082341&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29141&fm=76525542300104&tin=02508201610067®Number=0000138879044617&sum=40000 [08:23:34]OFD Sender: Processing packet 29141 [packets to send 8, broken 7] [08:23:34]ProducePacketName [08:23:34]name=ofd_packets/00029141 [08:23:34]OFD Sender: To server: pG, [08:23:34]CommunicateWithHost lk.salyk.kg:30040 [08:23:34]ConnectInit lk.salyk.kg [08:23:34]written 0, free lines is 4095 [08:23:34]Connected sock=10 [08:23:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 77 A1 06 01 93 B4 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 80 2F 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 46 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 33 00 00 00 F4 03 04 00 8D 92 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D5 71 00 00 35 04 06 00 45 99 7D C3 D9 C8 1D 39 D7 5F 06 2E DE 14 [08:23:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 B8 55 47 00 9B D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D5 71 00 00 F4 03 04 00 32 3D 1B 66 B6 04 01 00 00 6D 06 7A 4C C4 79 8E 7F [08:23:34]CommunicateWithHost err = 0 [08:23:34]CheckOFDResponse [08:23:34]1017 (14) - 77093643461234 [08:23:34]1041 (16) - 0000000000963154 [08:23:34]1040 (4) - 29141 [08:23:34]1012 (4) - 14.04.2024 02:19 [08:23:34]1206 (1) - 0 [08:23:34]OFD Sender: Remove packet 29141 [08:23:34]ProducePacketName [08:23:34]name=ofd_packets/00029141 [08:23:34]NVStorageDeleteData [08:23:34]Write to MH i2c: 01 00 00 18 7F 97 [08:23:34]Write i2c OK [08:23:34]MH_I2C_Read... [08:23:34]Read from MH i2c: 01 [08:23:34]MH_I2C_Read... [08:23:34]Read from MH i2c: 01 07 00 [08:23:34]MH_I2C_Read... [08:23:34]Read from MH i2c: 01 07 00 18 7F 00 00 00 00 00 BC 0C 66 [08:23:34]RasterBufferAndPrint [08:23:34]line [08:23:34]line [08:23:34]line [08:23:34]line [08:23:34]line [08:23:34]written 0, free lines is 3264 [08:23:34]MH_Cut [08:23:34]Write to MH i2c: D1 01 00 1F 7F 01 70 [08:23:34]Write i2c OK [08:23:34]MH_I2C_Read... [08:23:34]Read from MH i2c: D1 [08:23:34]MH_I2C_Read... [08:23:34]Read from MH i2c: D1 01 00 [08:23:34]MH_I2C_Read... [08:23:34]Read from MH i2c: D1 01 00 1F 7F 00 6F [08:23:34]Write to MH i2c: 01 00 00 20 7F 9F [08:23:34]Write i2c OK [08:23:34]MH_I2C_Read... [08:23:35]OFD Sender: No OFD packet to send [08:23:35]*** Cut start [08:23:35]*** Partial cut [08:23:35]*** CUTSNS_PIN = 1 [08:23:35]*** CUTSNS_PIN = 0 [08:23:35]*** Brake cut motor [08:23:36]Read from MH i2c: 01 [08:23:36]MH_I2C_Read... [08:23:36]*** Stop cut motor [08:23:36]*** Cut end [08:23:36]Read from MH i2c: 01 07 00 [08:23:36]MH_I2C_Read... [08:23:36]Read from MH i2c: 01 07 00 20 7F 00 00 00 00 00 FF 0F B4 [08:23:36]process_action close_receipt done [08:23:36]requested_data is exist [08:23:36]produce_requested_data [08:23:36]requested_item fm.sn is exist - process it [08:23:36]wFMCommunicate request_size=4 [08:23:36]MH_SAM_APDU [08:23:36]CAPDU: 80 11 00 00 [08:23:36]Write to MH i2c: E2 08 00 21 7F 80 11 00 00 00 00 00 00 1A [08:23:36]Write i2c OK [08:23:36]MH_I2C_Read... [08:23:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:23:36]Read from MH i2c: E2 [08:23:36]MH_I2C_Read... [08:23:36]Read from MH i2c: E2 17 00 [08:23:36]MH_I2C_Read... [08:23:36]Read from MH i2c: E2 17 00 21 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 69 [08:23:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:23:36]wFMCommunicate OK [08:23:36]requested_item fd.num is exist - process it [08:23:36]SAM_PROTO_GetFieldsCounters [08:23:36]wFMCommunicate request_size=4 [08:23:36]MH_SAM_APDU [08:23:36]CAPDU: 80 13 00 00 [08:23:36]Write to MH i2c: E2 08 00 22 7F 80 13 00 00 00 00 00 00 1D [08:23:36]Write i2c OK [08:23:36]MH_I2C_Read... [08:23:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:23:36]Read from MH i2c: E2 [08:23:36]MH_I2C_Read... [08:23:36]Read from MH i2c: E2 62 00 [08:23:36]MH_I2C_Read... [08:23:36]Read from MH i2c: E2 62 00 22 7F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D5 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 AE [08:23:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D5 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:23:36]wFMCommunicate OK [08:23:36]SAM_PROTO_GetFieldsCounters done [08:23:36]requested_item shift.num is exist - process it [08:23:36]requested_item shift.opened is exist - process it [08:23:36]req_shift_opened [08:23:36]FM_GetShiftState [08:23:36]SAM_PROTO_GetShiftState [08:23:36]wFMCommunicate request_size=4 [08:23:36]MH_SAM_APDU [08:23:36]CAPDU: 80 13 01 00 [08:23:36]Write to MH i2c: E2 08 00 23 7F 80 13 01 00 00 00 00 00 1F [08:23:36]Write i2c OK [08:23:36]MH_I2C_Read... [08:23:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:23:36]Read from MH i2c: E2 [08:23:36]MH_I2C_Read... [08:23:36]Read from MH i2c: E2 0E 00 [08:23:36]MH_I2C_Read... [08:23:36]Read from MH i2c: E2 0E 00 23 7F 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 CB [08:23:36]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [08:23:36]wFMCommunicate OK [08:23:36]SAM_PROTO_GetShiftState done [08:23:36]FM_GetShiftState done [08:23:36]req_shift_opened done [08:23:36]requested_item shift.open_date is exist - process it [08:23:36]req_shift_open_date [08:23:36]req_shift_open_date done [08:23:36]produce_requested_data done [08:23:36]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29141,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [08:23:36]process_action_free close_receipt [08:23:36]json_value_free [08:23:36]json_value_free done [08:23:36]process_json_proto returns [08:23:36]Send response to host [08:23:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29141,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [08:23:36]free response buf [08:23:36]execute_script done [08:23:36]execute_script returns [08:23:36]free content buf [08:23:36]Sock 9.Close socket [08:23:36]Sock 9.Thread stoped [08:23:40]OFD Sender: No OFD packet to send [08:23:45]OFD Sender: No OFD packet to send [08:23:50]OFD Sender: No OFD packet to send [08:23:55]OFD Sender: No OFD packet to send [08:24:00]OFD Sender: No OFD packet to send [08:24:05]OFD Sender: No OFD packet to send [08:24:10]OFD Sender: No OFD packet to send [08:24:15]OFD Sender: No OFD packet to send [08:24:20]OFD Sender: No OFD packet to send [08:24:25]OFD Sender: No OFD packet to send [08:24:30]OFD Sender: No OFD packet to send [08:24:35]OFD Sender: No OFD packet to send [08:24:40]OFD Sender: No OFD packet to send [08:24:45]OFD Sender: No OFD packet to send [08:24:50]OFD Sender: No OFD packet to send [08:24:55]OFD Sender: No OFD packet to send [08:25:00]OFD Sender: No OFD packet to send [08:25:05]OFD Sender: No OFD packet to send [08:25:10]OFD Sender: No OFD packet to send [08:25:15]OFD Sender: No OFD packet to send [08:25:20]OFD Sender: No OFD packet to send [08:25:25]OFD Sender: No OFD packet to send [08:25:30]OFD Sender: No OFD packet to send [08:25:35]OFD Sender: No OFD packet to send [08:25:40]OFD Sender: No OFD packet to send [08:25:45]OFD Sender: No OFD packet to send [08:25:50]OFD Sender: No OFD packet to send [08:25:55]OFD Sender: No OFD packet to send [08:26:00]OFD Sender: No OFD packet to send [08:26:05]OFD Sender: No OFD packet to send [08:26:10]OFD Sender: No OFD packet to send [08:26:15]OFD Sender: No OFD packet to send [08:26:20]OFD Sender: No OFD packet to send [08:26:25]OFD Sender: No OFD packet to send [08:26:30]OFD Sender: No OFD packet to send [08:26:34]int [08:26:34]Write to MH i2c: 01 00 00 24 7F A3 [08:26:34]*** FLAG_PRN_PAP1 set [08:26:34]Write i2c OK [08:26:34]MH_I2C_Read... [08:26:34]Read from MH i2c: 01 [08:26:34]MH_I2C_Read... [08:26:34]Read from MH i2c: 01 07 00 [08:26:34]MH_I2C_Read... [08:26:34]Read from MH i2c: 01 07 00 24 7F 00 01 00 00 00 FF 0F B9 [08:26:34]state=0 [08:26:34]No paper [08:26:34]int [08:26:34]Write to MH i2c: 01 00 00 25 7F A4 [08:26:34]*** FLAG_PRN_PAP2 set [08:26:34]Write i2c OK [08:26:34]MH_I2C_Read... [08:26:34]Read from MH i2c: 01 [08:26:34]MH_I2C_Read... [08:26:34]Read from MH i2c: 01 07 00 [08:26:34]MH_I2C_Read... [08:26:34]Read from MH i2c: 01 07 00 25 7F 00 03 00 00 00 FF 0F BC [08:26:34]state=0 [08:26:34]No paper [08:26:34]Cover opened [08:26:34]int [08:26:34]Write to MH i2c: 01 00 00 26 7F A5 [08:26:34]*** FLAG_PRN_PAP2 reset [08:26:34]Write i2c OK [08:26:34]MH_I2C_Read... [08:26:34]Read from MH i2c: 01 [08:26:34]MH_I2C_Read... [08:26:34]Read from MH i2c: 01 07 00 [08:26:34]MH_I2C_Read... [08:26:34]Read from MH i2c: 01 07 00 26 7F 00 01 00 00 00 FF 0F BB [08:26:34]state=3 [08:26:34]No paper [08:26:34]Cover closed [08:26:35]int [08:26:35]Write to MH i2c: 01 00 00 27 7F A6 [08:26:35]*** FLAG_PRN_PAP2 set [08:26:35]Write i2c OK [08:26:35]MH_I2C_Read... [08:26:35]Read from MH i2c: 01 [08:26:35]MH_I2C_Read... [08:26:35]Read from MH i2c: 01 07 00 [08:26:35]MH_I2C_Read... [08:26:35]Read from MH i2c: 01 07 00 27 7F 00 03 00 00 00 FF 0F BE [08:26:35]state=0 [08:26:35]No paper [08:26:35]Cover opened [08:26:35]int [08:26:35]Write to MH i2c: 01 00 00 28 7F A7 [08:26:35]*** FLAG_PRN_PAP2 reset [08:26:35]Write i2c OK [08:26:35]MH_I2C_Read... [08:26:35]Read from MH i2c: 01 [08:26:35]MH_I2C_Read... [08:26:35]Read from MH i2c: 01 07 00 [08:26:35]MH_I2C_Read... [08:26:35]Read from MH i2c: 01 07 00 28 7F 00 01 00 00 00 FF 0F BD [08:26:35]state=3 [08:26:35]No paper [08:26:35]Cover closed [08:26:35]int [08:26:35]Write to MH i2c: 01 00 00 29 7F A8 [08:26:35]*** FLAG_PRN_PAP2 set [08:26:35]Write i2c OK [08:26:35]MH_I2C_Read... [08:26:35]Read from MH i2c: 01 [08:26:35]MH_I2C_Read... [08:26:35]Read from MH i2c: 01 07 00 [08:26:35]MH_I2C_Read... [08:26:35]Read from MH i2c: 01 07 00 29 7F 00 03 00 00 00 FF 0F C0 [08:26:35]state=0 [08:26:35]No paper [08:26:35]Cover opened [08:26:35]OFD Sender: No OFD packet to send [08:26:36]int [08:26:36]Write to MH i2c: 01 00 00 2A 7F A9 [08:26:36]*** FLAG_PRN_PAP2 reset [08:26:36]Write i2c OK [08:26:36]MH_I2C_Read... [08:26:36]Read from MH i2c: 01 [08:26:36]MH_I2C_Read... [08:26:36]Read from MH i2c: 01 07 00 [08:26:36]MH_I2C_Read... [08:26:36]Read from MH i2c: 01 07 00 2A 7F 00 01 00 00 00 FF 0F BF [08:26:36]state=3 [08:26:36]No paper [08:26:36]Cover closed [08:26:36]int [08:26:36]Write to MH i2c: 01 00 00 2B 7F AA [08:26:36]*** FLAG_PRN_PAP1 reset [08:26:36]Write i2c OK [08:26:36]MH_I2C_Read... [08:26:36]Read from MH i2c: 01 [08:26:36]MH_I2C_Read... [08:26:36]Read from MH i2c: 01 07 00 [08:26:36]MH_I2C_Read... [08:26:36]Read from MH i2c: 01 07 00 2B 7F 00 00 00 00 00 FF 0F BF [08:26:36]state=0 [08:26:40]OFD Sender: No OFD packet to send [08:26:45]OFD Sender: No OFD packet to send [08:26:50]OFD Sender: No OFD packet to send [08:26:55]OFD Sender: No OFD packet to send [08:27:00]OFD Sender: No OFD packet to send [08:27:05]OFD Sender: No OFD packet to send [08:27:10]OFD Sender: No OFD packet to send [08:27:15]OFD Sender: No OFD packet to send [08:27:20]OFD Sender: No OFD packet to send [08:27:25]OFD Sender: No OFD packet to send [08:27:30]OFD Sender: No OFD packet to send [08:27:35]OFD Sender: No OFD packet to send [08:27:40]OFD Sender: No OFD packet to send [08:27:45]OFD Sender: No OFD packet to send [08:27:50]OFD Sender: No OFD packet to send [08:27:52]accept exits with 7 [08:27:52]New connection [08:27:52]New thread 3066785124 created [08:27:52]Thread 3066928484 joined [08:27:52]Waiting for new connection... [08:27:52] Sock 7.Parse request [08:27:52]Sock 7.Check first char [08:27:52]Sock 7.First char is OK [08:27:52]request: POST /json_proto HTTP/1.0 [08:27:52]Method: POST [08:27:52]URL: /json_proto [08:27:52]Method is POST - this is cgi request [08:27:52]url: /json_proto [08:27:52]query_string will be loaded in cgi processing [08:27:52]execute_cgi json_proto POST (null) [08:27:52]execute_cgi path=json_proto method=POST [08:27:52]POST find Content-Length [08:27:52]Host: 172.17.33.3:8080 [08:27:52]Content-Length: 816 [08:27:52]Content-Type: application/json [08:27:52] [08:27:52]POST finish read [08:27:52]Found Content-Length = 816 [08:27:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347511", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.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" ] } } [08:27:52]execute_script... [08:27: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)347511", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.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" ] } } [08:27:52]POST & json_proto [08:27:52]process_json_proto [08:27:52]json parsed OK: [08:27:52]protocol is kg_v1.0 [08:27:52]action value=close_receipt [08:27:52]process_action close_receipt [08:27:52]cmd_close_receipt [08:27:52]MH_GetDate [08:27:52]Write to MH i2c: F0 00 00 2C 7F 9A [08:27:52]Write i2c OK [08:27:52]MH_I2C_Read... [08:27:52]Read from MH i2c: F0 [08:27:52]MH_I2C_Read... [08:27:52]Read from MH i2c: F0 09 00 [08:27:52]MH_I2C_Read... [08:27:52]Read from MH i2c: F0 09 00 2C 7F 00 91 93 1B 66 23 5B 8F 65 BA [08:27:52]GetLastDocTimeStamp 1713083021 [08:27:52]current date 1713083281 [08:27:52]FM_GetShiftState [08:27:52]SAM_PROTO_GetShiftState [08:27:52]wFMCommunicate request_size=4 [08:27:52]MH_SAM_APDU [08:27:52]CAPDU: 80 13 01 00 [08:27:52]Write to MH i2c: E2 08 00 2D 7F 80 13 01 00 00 00 00 00 29 [08:27:52]Write i2c OK [08:27:52]MH_I2C_Read... [08:27:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:27:52]Read from MH i2c: E2 [08:27:52]MH_I2C_Read... [08:27:52]Read from MH i2c: E2 0E 00 [08:27:52]MH_I2C_Read... [08:27:52]Read from MH i2c: E2 0E 00 2D 7F 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 D5 [08:27:52]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [08:27:52]wFMCommunicate OK [08:27:52]SAM_PROTO_GetShiftState done [08:27:52]FM_GetShiftState done [08:27:52]opened in 1713053951 [08:27:52]opened+sec_in_day 1713140351 [08:27:52]quantity*price = 50025 [08:27:52]sum+1 = 50026 [08:27:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.25 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.25 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 52 14.04.2024 08:28 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 29142 ФПД: 25246995400629 1/tax-web-control/client/api/v1/ticket?date=20240414T082801&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29142&fm=25246995400629&tin=02508201610067®Number=0000138879044617&sum=50025 [08:27:53]StoreToDocumentArchive [08:27:53]shift 116 fd 29142 [08:27:53]save to /storage/0116/doc_00029142 [08:27:53]save last doc name /storage/0116/doc_00029142 to /storage/kkm_last_doc_name [08:27:53]save OK [08:27:53]Clear old archive folders... [08:27:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:27:53]tlvbuf is 01208760 [08:27:53]SAM_PROTO_ClearQueue [08:27:53]wFMCommunicate request_size=4 [08:27:53]MH_SAM_APDU [08:27:53]CAPDU: 80 09 00 00 [08:27:53]Write to MH i2c: E2 08 00 3A 7F 80 09 00 00 00 00 00 00 2B [08:27:53]Write i2c OK [08:27:53]MH_I2C_Read... [08:27:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:27:53]Read from MH i2c: E2 [08:27:53]MH_I2C_Read... [08:27:53]Read from MH i2c: E2 03 00 [08:27:53]MH_I2C_Read... [08:27:53]Read from MH i2c: E2 03 00 3A 7F 00 90 00 2D [08:27:53]RAPDU: 90 00 [08:27:53]wFMCommunicate OK [08:27:53]SAM_PROTO_ClearQueue done [08:27:53]KKMCreateOFDPacket [08:27:53]OFDProtocolAddRootSTLVToBuf [08:27:53]FM_MakeSignedData [08:27:53]FM_MakeSignedData [08:27:53]SAM_PROTO_SignData [08:27:53]wFMCommunicate request_size=4 [08:27:53]MH_SAM_APDU [08:27:53]CAPDU: 80 0D 01 02 [08:27:53]Write to MH i2c: E2 08 00 3B 7F 80 0D 01 02 00 00 00 00 33 [08:27:53]Write i2c OK [08:27:53]MH_I2C_Read... [08:27:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:27:53]Read from MH i2c: E2 [08:27:53]MH_I2C_Read... [08:27:53]Read from MH i2c: E2 03 00 [08:27:53]MH_I2C_Read... [08:27:53]Read from MH i2c: E2 03 00 3B 7F 00 90 00 2E [08:27:53]RAPDU: 90 00 [08:27:53]wFMCommunicate OK [08:27:53]wFMCommunicate request_size=255 [08:27:53]MH_SAM_APDU [08: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 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 34 00 00 00 F4 03 04 00 91 93 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D6 71 00 00 35 04 06 00 16 [08:27:53]Write to MH i2c: E2 02 01 3C 7F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 34 00 00 00 F4 03 04 00 91 93 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D6 71 00 00 35 04 06 00 16 00 00 D1 [08:27:53]Write i2c OK [08:27:53]MH_I2C_Read... [08:27:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:27:53]Read from MH i2c: E2 [08:27:53]MH_I2C_Read... [08:27:53]Read from MH i2c: E2 03 00 [08:27:53]MH_I2C_Read... [08:27:53]Read from MH i2c: E2 03 00 3C 7F 00 90 00 2F [08:27:53]RAPDU: 90 00 [08:27:53]wFMCommunicate OK [08:27:53]wFMCommunicate request_size=10 [08:27:53]MH_SAM_APDU [08:27:53]CAPDU: 80 0D 02 02 05 F6 46 31 47 B5 [08:27:53]Write to MH i2c: E2 0D 00 3D 7F 80 0D 02 02 05 00 F6 46 31 47 B5 00 00 A9 [08:27:53]Write i2c OK [08:27:53]MH_I2C_Read... [08:27:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:27:53]Read from MH i2c: E2 [08:27:53]MH_I2C_Read... [08:27:53]Read from MH i2c: E2 03 00 [08:27:53]MH_I2C_Read... [08:27:53]Read from MH i2c: E2 03 00 3D 7F 00 90 00 30 [08:27:53]RAPDU: 90 00 [08:27:53]wFMCommunicate OK [08:27:53]wFMCommunicate request_size=4 [08:27:53]MH_SAM_APDU [08:27:53]CAPDU: 80 0D 03 02 [08:27:53]Write to MH i2c: E2 08 00 3E 7F 80 0D 03 02 00 00 00 00 38 [08:27:53]Write i2c OK [08:27:53]MH_I2C_Read... [08:27:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:27:53]Read from MH i2c: E2 [08:27:53]MH_I2C_Read... [08:27:53]Read from MH i2c: E2 0B 00 [08:27:53]MH_I2C_Read... [08:27:53]Read from MH i2c: E2 0B 00 3E 7F 00 81 45 A8 FE 81 4E F6 0B 90 00 75 [08:27:53]RAPDU: 81 45 A8 FE 81 4E F6 0B 90 00 [08:27:53]wFMCommunicate OK [08:27:53]SAM_PROTO_SignData done [08:27:53]FM_MakeSignedData done [08:27:53]CreateOFDProtocolMessage [08:27:53]wFMCommunicate request_size=4 [08:27:53]MH_SAM_APDU [08:27:53]CAPDU: 80 11 00 00 [08:27:53]Write to MH i2c: E2 08 00 3F 7F 80 11 00 00 00 00 00 00 38 [08:27:53]Write i2c OK [08:27:53]MH_I2C_Read... [08:27:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:27:53]Read from MH i2c: E2 [08:27:53]MH_I2C_Read... [08:27:53]Read from MH i2c: E2 17 00 [08:27:53]MH_I2C_Read... [08:27:53]Read from MH i2c: E2 17 00 3F 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 87 [08:27:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:27:53]wFMCommunicate OK [08:27:53]CreateOFDProtocolMessage done [08:27:53]OFDSenderStorePacket 29142 [08:27:53]StoreOFDPacket docnum=29142 [08:27:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 2A E5 07 01 7E DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 34 00 00 00 F4 03 04 00 91 93 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D6 71 00 00 35 04 06 00 16 F6 46 31 47 B5 81 45 A8 FE 81 4E F6 0B [08:27:53]CheckFolder [08:27:53]dirname=/storage/ofd_packets [08:27:53]CheckFolder done [08:27:53]ProducePacketName [08:27:53]name=ofd_packets/00029142 [08:27:53]NVStorageSaveData ofd_packets/00029142 [08:27:53]File name is /storage/ofd_packets/00029142 [08:27:53]Write 301 bytes [08:27:53]NVStorageSaveData done [08:27:53]OFDSenderStorePacket done [08:27:53]KKMCreateOFDPacket done [08:27:53]NVStorageSaveData kkm_last_timestamp [08:27:53]File name is /storage/kkm_last_timestamp [08:27:53]Write 4 bytes [08:27:53]NVStorageSaveData done [08:27:53]ExternCall_PrintAddStr [08:27:53]wPrintStart [08:27:53]Write to MH i2c: 01 00 00 40 7F BF [08:27:53]Write i2c OK [08:27:53]MH_I2C_Read... [08:27:53]Read from MH i2c: 01 [08:27:53]MH_I2C_Read... [08:27:53]Read from MH i2c: 01 07 00 [08:27:53]MH_I2C_Read... [08:27:53]Read from MH i2c: 01 07 00 40 7F 00 00 00 00 00 FF 0F D4 [08:27:53]RasterBufferAndPrint [08:27:53]line Счет N : (1)347511 [08:27:53]line ИНН: 02508201610067 [08:27:53]line Контрольно-Кассовый Чек [08:27:53]line ПРОДАЖА [08:27:53]line ТРК (МРК, ГНК) : 13 [08:27:53]line Товар: 2710124130 [08:27:53]line Аи-92-К-5 [08:27:53]line 7.780 * 64.30 [08:27:53]line = 500.25 [08:27:53]line НДС 12% НСП 1% [08:27:53]line > о реализуемом товаре [08:27:53]line ИТОГО: 500.25 [08:27:53]line НСП 1% : 4.43 [08:27:53]line НДС 12% : 53.12 [08:27:53]line Наличными: 0.00 [08:27:53]line Безнал.: 500.25 [08:27:53]line Место: АЗС № 108 "Партнер Нефть" [08:27:53]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:27:53]line СНО: Общий режим [08:27:53]line Чек 52 14.04.2024 08:28 [08:27:53]line Смена: 116 ФФД: 1.0 [08:27:53]line ЗНМ: 0300000027 [08:27:53]line РНМ: 0000138879044617 [08:27:53]line Версия ККМ: 001 [08:27:53]line Платежная система: Бакай Банк [08:27:53]line ФМ: 0000000000963154 [08:27:53]line ФД: 29142 [08:27:53]line ФПД: 25246995400629 [08:27:53]line 1/tax-web-control/client/api/v1/ticket?date=20240414T082801&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29142&fm=25246995400629&tin=02508201610067®Number=0000138879044617&sum=50025 [08:27:54]OFD Sender: Processing packet 29142 [packets to send 8, broken 7] [08:27:54]ProducePacketName [08:27:54]name=ofd_packets/00029142 [08:27:54]OFD Sender: To server: pG, [08:27:54]CommunicateWithHost lk.salyk.kg:30040 [08:27:54]ConnectInit lk.salyk.kg [08:27:54]written 0, free lines is 4095 [08:27:54]Connected sock=10 [08:27:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 2A E5 07 01 7E DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 34 00 00 00 F4 03 04 00 91 93 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D6 71 00 00 35 04 06 00 16 F6 46 31 47 B5 81 45 A8 FE 81 4E F6 0B [08:27:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 6B 38 47 00 65 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 39 36 33 31 35 34 10 04 04 00 D6 71 00 00 F4 03 04 00 35 3E 1B 66 B6 04 01 00 00 AD EF 19 E8 1E 0A 06 1D [08:27:54]CommunicateWithHost err = 0 [08:27:54]CheckOFDResponse [08:27:54]1017 (14) - 77093643461234 [08:27:54]1041 (16) - 0000000000963154 [08:27:54]1040 (4) - 29142 [08:27:54]1012 (4) - 14.04.2024 02:23 [08:27:54]1206 (1) - 0 [08:27:54]OFD Sender: Remove packet 29142 [08:27:54]ProducePacketName [08:27:54]name=ofd_packets/00029142 [08:27:54]NVStorageDeleteData [08:27:54]Write to MH i2c: 01 00 00 69 7F E8 [08:27:54]Write i2c OK [08:27:54]MH_I2C_Read... [08:27:54]Read from MH i2c: 01 [08:27:54]MH_I2C_Read... [08:27:54]Read from MH i2c: 01 07 00 [08:27:54]MH_I2C_Read... [08:27:54]Read from MH i2c: 01 07 00 69 7F 00 00 00 00 00 D8 0C D3 [08:27:54]RasterBufferAndPrint [08:27:54]line [08:27:54]line [08:27:54]line [08:27:54]line [08:27:54]line [08:27:54]written 0, free lines is 3295 [08:27:54]MH_Cut [08:27:54]Write to MH i2c: D1 01 00 70 7F 01 C1 [08:27:54]Write i2c OK [08:27:54]MH_I2C_Read... [08:27:54]Read from MH i2c: D1 [08:27:54]MH_I2C_Read... [08:27:54]Read from MH i2c: D1 01 00 [08:27:54]MH_I2C_Read... [08:27:54]Read from MH i2c: D1 01 00 70 7F 00 C0 [08:27:54]Write to MH i2c: 01 00 00 71 7F F0 [08:27:54]Write i2c OK [08:27:54]MH_I2C_Read... [08:27:54]OFD Sender: No OFD packet to send [08:27:55]*** Cut start [08:27:55]*** Partial cut [08:27:55]*** CUTSNS_PIN = 1 [08:27:55]*** CUTSNS_PIN = 0 [08:27:55]*** Brake cut motor [08:27:56]Read from MH i2c: 01 [08:27:56]MH_I2C_Read... [08:27:56]*** Stop cut motor [08:27:56]*** Cut end [08:27:56]Read from MH i2c: 01 07 00 [08:27:56]MH_I2C_Read... [08:27:56]Read from MH i2c: 01 07 00 71 7F 00 00 00 00 00 FF 0F 05 [08:27:56]process_action close_receipt done [08:27:56]requested_data is exist [08:27:56]produce_requested_data [08:27:56]requested_item fm.sn is exist - process it [08:27:56]wFMCommunicate request_size=4 [08:27:56]MH_SAM_APDU [08:27:56]CAPDU: 80 11 00 00 [08:27:56]Write to MH i2c: E2 08 00 72 7F 80 11 00 00 00 00 00 00 6B [08:27:56]Write i2c OK [08:27:56]MH_I2C_Read... [08:27:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:27:56]Read from MH i2c: E2 [08:27:56]MH_I2C_Read... [08:27:56]Read from MH i2c: E2 17 00 [08:27:56]MH_I2C_Read... [08:27:56]Read from MH i2c: E2 17 00 72 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 BA [08:27:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:27:56]wFMCommunicate OK [08:27:56]requested_item fd.num is exist - process it [08:27:56]SAM_PROTO_GetFieldsCounters [08:27:56]wFMCommunicate request_size=4 [08:27:56]MH_SAM_APDU [08:27:56]CAPDU: 80 13 00 00 [08:27:56]Write to MH i2c: E2 08 00 73 7F 80 13 00 00 00 00 00 00 6E [08:27:56]Write i2c OK [08:27:56]MH_I2C_Read... [08:27:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:27:56]Read from MH i2c: E2 [08:27:56]MH_I2C_Read... [08:27:56]Read from MH i2c: E2 62 00 [08:27:56]MH_I2C_Read... [08:27:56]Read from MH i2c: E2 62 00 73 7F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D6 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 03 [08:27:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D6 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:27:56]wFMCommunicate OK [08:27:56]SAM_PROTO_GetFieldsCounters done [08:27:56]requested_item shift.num is exist - process it [08:27:56]requested_item shift.opened is exist - process it [08:27:56]req_shift_opened [08:27:56]FM_GetShiftState [08:27:56]SAM_PROTO_GetShiftState [08:27:56]wFMCommunicate request_size=4 [08:27:56]MH_SAM_APDU [08:27:56]CAPDU: 80 13 01 00 [08:27:56]Write to MH i2c: E2 08 00 74 7F 80 13 01 00 00 00 00 00 70 [08:27:56]Write i2c OK [08:27:56]MH_I2C_Read... [08:27:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:27:56]Read from MH i2c: E2 [08:27:56]MH_I2C_Read... [08:27:56]Read from MH i2c: E2 0E 00 [08:27:56]MH_I2C_Read... [08:27:56]Read from MH i2c: E2 0E 00 74 7F 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 1C [08:27:56]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [08:27:56]wFMCommunicate OK [08:27:56]SAM_PROTO_GetShiftState done [08:27:56]FM_GetShiftState done [08:27:56]req_shift_opened done [08:27:56]requested_item shift.open_date is exist - process it [08:27:56]req_shift_open_date [08:27:56]req_shift_open_date done [08:27:56]produce_requested_data done [08:27:56]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29142,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [08:27:56]process_action_free close_receipt [08:27:56]json_value_free [08:27:56]json_value_free done [08:27:56]process_json_proto returns [08:27:56]Send response to host [08:27:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29142,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [08:27:56]free response buf [08:27:56]execute_script done [08:27:56]execute_script returns [08:27:56]free content buf [08:27:56]Sock 7.Close socket [08:27:56]Sock 7.Thread stoped [08:28:00]OFD Sender: No OFD packet to send [08:28:05]OFD Sender: No OFD packet to send [08:28:10]OFD Sender: No OFD packet to send [08:28:15]OFD Sender: No OFD packet to send [08:28:20]OFD Sender: No OFD packet to send [08:28:25]OFD Sender: No OFD packet to send [08:28:30]OFD Sender: No OFD packet to send [08:28:35]OFD Sender: No OFD packet to send [08:28:40]OFD Sender: No OFD packet to send [08:28:45]OFD Sender: No OFD packet to send [08:28:50]OFD Sender: No OFD packet to send [08:28:55]OFD Sender: No OFD packet to send [08:29:00]OFD Sender: No OFD packet to send [08:29:05]OFD Sender: No OFD packet to send [08:29:10]OFD Sender: No OFD packet to send [08:29:15]OFD Sender: No OFD packet to send [08:29:20]OFD Sender: No OFD packet to send [08:29:25]OFD Sender: No OFD packet to send [08:29:30]OFD Sender: No OFD packet to send [08:29:35]OFD Sender: No OFD packet to send [08:29:40]OFD Sender: No OFD packet to send [08:29:45]OFD Sender: No OFD packet to send [08:29:50]OFD Sender: No OFD packet to send [08:29:55]OFD Sender: No OFD packet to send [08:30:00]OFD Sender: No OFD packet to send [08:30:05]OFD Sender: No OFD packet to send [08:30:10]OFD Sender: No OFD packet to send [08:30:15]OFD Sender: No OFD packet to send [08:30:20]OFD Sender: No OFD packet to send [08:30:25]OFD Sender: No OFD packet to send [08:30:30]OFD Sender: No OFD packet to send [08:30:35]OFD Sender: No OFD packet to send [08:30:40]OFD Sender: No OFD packet to send [08:30:45]OFD Sender: No OFD packet to send [08:30:50]OFD Sender: No OFD packet to send [08:30:55]OFD Sender: No OFD packet to send [08:31:00]OFD Sender: No OFD packet to send [08:31:05]OFD Sender: No OFD packet to send [08:31:05]accept exits with 9 [08:31:05]New connection [08:31:05]New thread 3066928484 created [08:31:05]Thread 3066785124 joined [08:31:05]Waiting for new connection... [08:31:05] Sock 9.Parse request [08:31:05]Sock 9.Check first char [08:31:05]Sock 9.First char is OK [08:31:05]request: POST /json_proto HTTP/1.0 [08:31:05]Method: POST [08:31:05]URL: /json_proto [08:31:05]Method is POST - this is cgi request [08:31:05]url: /json_proto [08:31:05]query_string will be loaded in cgi processing [08:31:05]execute_cgi json_proto POST (null) [08:31:05]execute_cgi path=json_proto method=POST [08:31:05]POST find Content-Length [08:31:05]Host: 172.17.33.3:8080 [08:31:05]Content-Length: 809 [08:31:05]Content-Type: application/json [08:31:05] [08:31:05]POST finish read [08:31:05]Found Content-Length = 809 [08:31:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347512", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.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" ] } } [08:31:05]execute_script... [08:31: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)347512", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.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" ] } } [08:31:05]POST & json_proto [08:31:05]process_json_proto [08:31:05]json parsed OK: [08:31:05]protocol is kg_v1.0 [08:31:05]action value=close_receipt [08:31:05]process_action close_receipt [08:31:05]cmd_close_receipt [08:31:05]MH_GetDate [08:31:05]Write to MH i2c: F0 00 00 75 7F E3 [08:31:05]Write i2c OK [08:31:05]MH_I2C_Read... [08:31:05]Read from MH i2c: F0 [08:31:05]MH_I2C_Read... [08:31:05]Read from MH i2c: F0 09 00 [08:31:05]MH_I2C_Read... [08:31:05]Read from MH i2c: F0 09 00 75 7F 00 52 94 1B 66 23 5B 8F 65 C5 [08:31:05]GetLastDocTimeStamp 1713083281 [08:31:05]current date 1713083474 [08:31:05]FM_GetShiftState [08:31:05]SAM_PROTO_GetShiftState [08:31:05]wFMCommunicate request_size=4 [08:31:05]MH_SAM_APDU [08:31:05]CAPDU: 80 13 01 00 [08:31:05]Write to MH i2c: E2 08 00 76 7F 80 13 01 00 00 00 00 00 72 [08:31:05]Write i2c OK [08:31:05]MH_I2C_Read... [08:31:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:31:05]Read from MH i2c: E2 [08:31:05]MH_I2C_Read... [08:31:05]Read from MH i2c: E2 0E 00 [08:31:05]MH_I2C_Read... [08:31:05]Read from MH i2c: E2 0E 00 76 7F 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 1E [08:31:05]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [08:31:05]wFMCommunicate OK [08:31:05]SAM_PROTO_GetShiftState done [08:31:05]FM_GetShiftState done [08:31:05]opened in 1713053951 [08:31:05]opened+sec_in_day 1713140351 [08:31:05]quantity*price = 50019 [08:31:05]sum+1 = 50021 [08:31:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.20 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.20 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 53 14.04.2024 08:31 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 29143 ФПД: 43482140599605 1/tax-web-control/client/api/v1/ticket?date=20240414T083114&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29143&fm=43482140599605&tin=02508201610067®Number=0000138879044617&sum=50020 [08:31:06]StoreToDocumentArchive [08:31:06]shift 116 fd 29143 [08:31:06]save to /storage/0116/doc_00029143 [08:31:06]save last doc name /storage/0116/doc_00029143 to /storage/kkm_last_doc_name [08:31:06]save OK [08:31:06]Clear old archive folders... [08:31:06]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:31:06]tlvbuf is 012245E0 [08:31:06]SAM_PROTO_ClearQueue [08:31:06]wFMCommunicate request_size=4 [08:31:06]MH_SAM_APDU [08:31:06]CAPDU: 80 09 00 00 [08:31:06]Write to MH i2c: E2 08 00 83 7F 80 09 00 00 00 00 00 00 74 [08:31:06]Write i2c OK [08:31:06]MH_I2C_Read... [08:31:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:31:06]Read from MH i2c: E2 [08:31:06]MH_I2C_Read... [08:31:06]Read from MH i2c: E2 03 00 [08:31:06]MH_I2C_Read... [08:31:06]Read from MH i2c: E2 03 00 83 7F 00 90 00 76 [08:31:06]RAPDU: 90 00 [08:31:06]wFMCommunicate OK [08:31:06]SAM_PROTO_ClearQueue done [08:31:06]KKMCreateOFDPacket [08:31:06]OFDProtocolAddRootSTLVToBuf [08:31:06]FM_MakeSignedData [08:31:06]FM_MakeSignedData [08:31:06]SAM_PROTO_SignData [08:31:06]wFMCommunicate request_size=4 [08:31:06]MH_SAM_APDU [08:31:06]CAPDU: 80 0D 01 02 [08:31:06]Write to MH i2c: E2 08 00 84 7F 80 0D 01 02 00 00 00 00 7C [08:31:06]Write i2c OK [08:31:06]MH_I2C_Read... [08:31:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:31:06]Read from MH i2c: E2 [08:31:06]MH_I2C_Read... [08:31:06]Read from MH i2c: E2 03 00 [08:31:06]MH_I2C_Read... [08:31:06]Read from MH i2c: E2 03 00 84 7F 00 90 00 77 [08:31:06]RAPDU: 90 00 [08:31:06]wFMCommunicate OK [08:31:06]wFMCommunicate request_size=255 [08:31:06]MH_SAM_APDU [08:31: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 2D 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 35 00 00 00 F4 03 04 00 52 94 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D7 71 00 00 35 04 06 00 [08:31:06]Write to MH i2c: E2 02 01 85 7F 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 35 00 00 00 F4 03 04 00 52 94 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D7 71 00 00 35 04 06 00 00 00 4E [08:31:06]Write i2c OK [08:31:06]MH_I2C_Read... [08:31:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:31:06]Read from MH i2c: E2 [08:31:06]MH_I2C_Read... [08:31:06]Read from MH i2c: E2 03 00 [08:31:06]MH_I2C_Read... [08:31:06]Read from MH i2c: E2 03 00 85 7F 00 90 00 78 [08:31:06]RAPDU: 90 00 [08:31:06]wFMCommunicate OK [08:31:06]wFMCommunicate request_size=11 [08:31:06]MH_SAM_APDU [08:31:06]CAPDU: 80 0D 02 02 06 27 8B F9 8B 65 35 [08:31:06]Write to MH i2c: E2 0E 00 86 7F 80 0D 02 02 06 00 27 8B F9 8B 65 35 00 00 5B [08:31:06]Write i2c OK [08:31:06]MH_I2C_Read... [08:31:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:31:06]Read from MH i2c: E2 [08:31:06]MH_I2C_Read... [08:31:06]Read from MH i2c: E2 03 00 [08:31:06]MH_I2C_Read... [08:31:06]Read from MH i2c: E2 03 00 86 7F 00 90 00 79 [08:31:06]RAPDU: 90 00 [08:31:06]wFMCommunicate OK [08:31:06]wFMCommunicate request_size=4 [08:31:06]MH_SAM_APDU [08:31:06]CAPDU: 80 0D 03 02 [08:31:06]Write to MH i2c: E2 08 00 87 7F 80 0D 03 02 00 00 00 00 81 [08:31:06]Write i2c OK [08:31:06]MH_I2C_Read... [08:31:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:31:06]Read from MH i2c: E2 [08:31:06]MH_I2C_Read... [08:31:06]Read from MH i2c: E2 0B 00 [08:31:06]MH_I2C_Read... [08:31:06]Read from MH i2c: E2 0B 00 87 7F 00 BC 8A 56 F6 74 EF 68 14 90 00 F3 [08:31:06]RAPDU: BC 8A 56 F6 74 EF 68 14 90 00 [08:31:06]wFMCommunicate OK [08:31:06]SAM_PROTO_SignData done [08:31:06]FM_MakeSignedData done [08:31:06]CreateOFDProtocolMessage [08:31:06]wFMCommunicate request_size=4 [08:31:06]MH_SAM_APDU [08:31:06]CAPDU: 80 11 00 00 [08:31:06]Write to MH i2c: E2 08 00 88 7F 80 11 00 00 00 00 00 00 81 [08:31:06]Write i2c OK [08:31:06]MH_I2C_Read... [08:31:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:31:06]Read from MH i2c: E2 [08:31:06]MH_I2C_Read... [08:31:06]Read from MH i2c: E2 17 00 [08:31:06]MH_I2C_Read... [08:31:06]Read from MH i2c: E2 17 00 88 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D0 [08:31:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:31:06]wFMCommunicate OK [08:31:06]CreateOFDProtocolMessage done [08:31:06]OFDSenderStorePacket 29143 [08:31:06]StoreOFDPacket docnum=29143 [08:31:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 82 94 08 01 EC B3 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 35 00 00 00 F4 03 04 00 52 94 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D7 71 00 00 35 04 06 00 27 8B F9 8B 65 35 BC 8A 56 F6 74 EF 68 14 [08:31:06]CheckFolder [08:31:06]dirname=/storage/ofd_packets [08:31:06]CheckFolder done [08:31:06]ProducePacketName [08:31:06]name=ofd_packets/00029143 [08:31:06]NVStorageSaveData ofd_packets/00029143 [08:31:06]File name is /storage/ofd_packets/00029143 [08:31:06]Write 302 bytes [08:31:06]NVStorageSaveData done [08:31:06]OFDSenderStorePacket done [08:31:06]KKMCreateOFDPacket done [08:31:06]NVStorageSaveData kkm_last_timestamp [08:31:06]File name is /storage/kkm_last_timestamp [08:31:06]Write 4 bytes [08:31:06]NVStorageSaveData done [08:31:06]ExternCall_PrintAddStr [08:31:06]wPrintStart [08:31:06]Write to MH i2c: 01 00 00 89 7F 08 [08:31:06]Write i2c OK [08:31:06]MH_I2C_Read... [08:31:06]Read from MH i2c: 01 [08:31:06]MH_I2C_Read... [08:31:06]Read from MH i2c: 01 07 00 [08:31:06]MH_I2C_Read... [08:31:06]Read from MH i2c: 01 07 00 89 7F 00 00 00 00 00 FF 0F 1D [08:31:06]RasterBufferAndPrint [08:31:06]line Счет N : (1)347512 [08:31:06]line ИНН: 02508201610067 [08:31:06]line Контрольно-Кассовый Чек [08:31:06]line ПРОДАЖА [08:31:06]line ТРК (МРК, ГНК) : 22 [08:31:06]line Товар: 2710124130 [08:31:06]line SUPER-92-К-5 [08:31:06]line 7.660 * 65.30 [08:31:06]line = 500.20 [08:31:06]line НДС 12% НСП 1% [08:31:06]line > о реализуемом товаре [08:31:06]line ИТОГО: 500.20 [08:31:06]line НСП 1% : 4.43 [08:31:06]line НДС 12% : 53.12 [08:31:06]line Наличными: 0.00 [08:31:06]line Безнал.: 500.20 [08:31:06]line Место: АЗС № 108 "Партнер Нефть" [08:31:06]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:31:06]line СНО: Общий режим [08:31:06]line Чек 53 14.04.2024 08:31 [08:31:06]line Смена: 116 ФФД: 1.0 [08:31:06]line ЗНМ: 0300000027 [08:31:06]line РНМ: 0000138879044617 [08:31:06]line Версия ККМ: 001 [08:31:06]line Платежная система: Бакай Банк [08:31:06]line ФМ: 0000000000963154 [08:31:06]line ФД: 29143 [08:31:07]line ФПД: 43482140599605 [08:31:07]line 1/tax-web-control/client/api/v1/ticket?date=20240414T083114&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29143&fm=43482140599605&tin=02508201610067®Number=0000138879044617&sum=50020 [08:31:07]OFD Sender: Processing packet 29143 [packets to send 8, broken 7] [08:31:07]ProducePacketName [08:31:07]name=ofd_packets/00029143 [08:31:07]OFD Sender: To server: pG, [08:31:07]CommunicateWithHost lk.salyk.kg:30040 [08:31:07]ConnectInit lk.salyk.kg [08:31:07]written 0, free lines is 4095 [08:31:07]Connected sock=10 [08:31:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 82 94 08 01 EC B3 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 35 00 00 00 F4 03 04 00 52 94 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D7 71 00 00 35 04 06 00 27 8B F9 8B 65 35 BC 8A 56 F6 74 EF 68 14 [08:31:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 10 A8 47 00 D7 4A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D7 71 00 00 F4 03 04 00 F6 3E 1B 66 B6 04 01 00 00 87 86 E4 49 B8 34 71 94 [08:31:07]CommunicateWithHost err = 0 [08:31:07]CheckOFDResponse [08:31:07]1017 (14) - 77093643461234 [08:31:07]1041 (16) - 0000000000963154 [08:31:07]1040 (4) - 29143 [08:31:07]1012 (4) - 14.04.2024 02:27 [08:31:07]1206 (1) - 0 [08:31:07]OFD Sender: Remove packet 29143 [08:31:07]ProducePacketName [08:31:07]name=ofd_packets/00029143 [08:31:07]NVStorageDeleteData [08:31:07]Write to MH i2c: 01 00 00 B2 7F 31 [08:31:07]Write i2c OK [08:31:07]MH_I2C_Read... [08:31:07]Read from MH i2c: 01 [08:31:07]MH_I2C_Read... [08:31:07]Read from MH i2c: 01 07 00 [08:31:07]MH_I2C_Read... [08:31:07]Read from MH i2c: 01 07 00 B2 7F 00 00 00 00 00 D9 0C 1D [08:31:07]RasterBufferAndPrint [08:31:07]line [08:31:07]line [08:31:07]line [08:31:07]line [08:31:07]line [08:31:07]written 0, free lines is 3296 [08:31:07]MH_Cut [08:31:07]Write to MH i2c: D1 01 00 B9 7F 01 0A [08:31:07]Write i2c OK [08:31:07]MH_I2C_Read... [08:31:07]Read from MH i2c: D1 [08:31:07]MH_I2C_Read... [08:31:07]Read from MH i2c: D1 01 00 [08:31:07]MH_I2C_Read... [08:31:07]Read from MH i2c: D1 01 00 B9 7F 00 09 [08:31:07]Write to MH i2c: 01 00 00 BA 7F 39 [08:31:07]Write i2c OK [08:31:07]MH_I2C_Read... [08:31:07]OFD Sender: No OFD packet to send [08:31:08]*** Cut start [08:31:08]*** Partial cut [08:31:08]*** CUTSNS_PIN = 1 [08:31:08]*** CUTSNS_PIN = 0 [08:31:08]*** Brake cut motor [08:31:09]Read from MH i2c: 01 [08:31:09]MH_I2C_Read... [08:31:09]*** Stop cut motor [08:31:09]*** Cut end [08:31:09]Read from MH i2c: 01 07 00 [08:31:09]MH_I2C_Read... [08:31:09]Read from MH i2c: 01 07 00 BA 7F 00 00 00 00 00 FF 0F 4E [08:31:09]process_action close_receipt done [08:31:09]requested_data is exist [08:31:09]produce_requested_data [08:31:09]requested_item fm.sn is exist - process it [08:31:09]wFMCommunicate request_size=4 [08:31:09]MH_SAM_APDU [08:31:09]CAPDU: 80 11 00 00 [08:31:09]Write to MH i2c: E2 08 00 BB 7F 80 11 00 00 00 00 00 00 B4 [08:31:09]Write i2c OK [08:31:09]MH_I2C_Read... [08:31:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:31:09]Read from MH i2c: E2 [08:31:09]MH_I2C_Read... [08:31:09]Read from MH i2c: E2 17 00 [08:31:09]MH_I2C_Read... [08:31:09]Read from MH i2c: E2 17 00 BB 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 03 [08:31:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:31:09]wFMCommunicate OK [08:31:09]requested_item fd.num is exist - process it [08:31:09]SAM_PROTO_GetFieldsCounters [08:31:09]wFMCommunicate request_size=4 [08:31:09]MH_SAM_APDU [08:31:09]CAPDU: 80 13 00 00 [08:31:09]Write to MH i2c: E2 08 00 BC 7F 80 13 00 00 00 00 00 00 B7 [08:31:09]Write i2c OK [08:31:09]MH_I2C_Read... [08:31:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:31:09]Read from MH i2c: E2 [08:31:09]MH_I2C_Read... [08:31:09]Read from MH i2c: E2 62 00 [08:31:09]MH_I2C_Read... [08:31:09]Read from MH i2c: E2 62 00 BC 7F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D7 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 50 [08:31:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D7 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:31:09]wFMCommunicate OK [08:31:09]SAM_PROTO_GetFieldsCounters done [08:31:09]requested_item shift.num is exist - process it [08:31:09]requested_item shift.opened is exist - process it [08:31:09]req_shift_opened [08:31:09]FM_GetShiftState [08:31:09]SAM_PROTO_GetShiftState [08:31:09]wFMCommunicate request_size=4 [08:31:09]MH_SAM_APDU [08:31:09]CAPDU: 80 13 01 00 [08:31:09]Write to MH i2c: E2 08 00 BD 7F 80 13 01 00 00 00 00 00 B9 [08:31:09]Write i2c OK [08:31:09]MH_I2C_Read... [08:31:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:31:09]Read from MH i2c: E2 [08:31:09]MH_I2C_Read... [08:31:09]Read from MH i2c: E2 0E 00 [08:31:09]MH_I2C_Read... [08:31:09]Read from MH i2c: E2 0E 00 BD 7F 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 65 [08:31:09]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [08:31:09]wFMCommunicate OK [08:31:09]SAM_PROTO_GetShiftState done [08:31:09]FM_GetShiftState done [08:31:09]req_shift_opened done [08:31:09]requested_item shift.open_date is exist - process it [08:31:09]req_shift_open_date [08:31:09]req_shift_open_date done [08:31:09]produce_requested_data done [08:31:09]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29143,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [08:31:09]process_action_free close_receipt [08:31:09]json_value_free [08:31:09]json_value_free done [08:31:09]process_json_proto returns [08:31:09]Send response to host [08:31:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29143,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [08:31:09]free response buf [08:31:09]execute_script done [08:31:09]execute_script returns [08:31:09]free content buf [08:31:09]Sock 9.Close socket [08:31:09]Sock 9.Thread stoped [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:13]OFD Sender: No OFD packet to send [08:32:18]OFD Sender: No OFD packet to send [08:32:23]OFD Sender: No OFD packet to send [08:32:28]OFD Sender: No OFD packet to send [08:32:33]OFD Sender: No OFD packet to send [08:32:38]OFD Sender: No OFD packet to send [08:32:43]OFD Sender: No OFD packet to send [08:32:48]OFD Sender: No OFD packet to send [08:32:53]OFD Sender: No OFD packet to send [08:32:56]accept exits with 7 [08:32:56]New connection [08:32:56]New thread 3066785124 created [08:32:56]Thread 3066928484 joined [08:32:56]Waiting for new connection... [08:32:56] Sock 7.Parse request [08:32:56]Sock 7.Check first char [08:32:56]Sock 7.First char is OK [08:32:56]request: POST /json_proto HTTP/1.0 [08:32:56]Method: POST [08:32:56]URL: /json_proto [08:32:56]Method is POST - this is cgi request [08:32:56]url: /json_proto [08:32:56]query_string will be loaded in cgi processing [08:32:56]execute_cgi json_proto POST (null) [08:32:56]execute_cgi path=json_proto method=POST [08:32:56]POST find Content-Length [08:32:56]Host: 172.17.33.3:8080 [08:32:56]Content-Length: 674 [08:32:56]Content-Type: application/json [08:32:56] [08:32:56]POST finish read [08:32:56]Found Content-Length = 674 [08:32:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347513", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.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:32:56]execute_script... [08:32: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)347513", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.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:32:56]POST & json_proto [08:32:56]process_json_proto [08:32:56]json parsed OK: [08:32:56]protocol is kg_v1.0 [08:32:56]action value=close_receipt [08:32:56]process_action close_receipt [08:32:56]cmd_close_receipt [08:32:56]MH_GetDate [08:32:56]Write to MH i2c: F0 00 00 BE 7F 2C [08:32:56]Write i2c OK [08:32:56]MH_I2C_Read... [08:32:56]Read from MH i2c: F0 [08:32:56]MH_I2C_Read... [08:32:56]Read from MH i2c: F0 09 00 [08:32:56]MH_I2C_Read... [08:32:56]Read from MH i2c: F0 09 00 BE 7F 00 C1 94 1B 66 23 5B 8F 65 7D [08:32:56]GetLastDocTimeStamp 1713083474 [08:32:56]current date 1713083585 [08:32:56]FM_GetShiftState [08:32:56]SAM_PROTO_GetShiftState [08:32:56]wFMCommunicate request_size=4 [08:32:56]MH_SAM_APDU [08:32:56]CAPDU: 80 13 01 00 [08:32:56]Write to MH i2c: E2 08 00 BF 7F 80 13 01 00 00 00 00 00 BB [08:32:56]Write i2c OK [08:32:56]MH_I2C_Read... [08:32:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:32:56]Read from MH i2c: E2 [08:32:56]MH_I2C_Read... [08:32:56]Read from MH i2c: E2 0E 00 [08:32:56]MH_I2C_Read... [08:32:56]Read from MH i2c: E2 0E 00 BF 7F 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 67 [08:32:56]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [08:32:56]wFMCommunicate OK [08:32:56]SAM_PROTO_GetShiftState done [08:32:56]FM_GetShiftState done [08:32:56]opened in 1713053951 [08:32:56]opened+sec_in_day 1713140351 [08:32:56]quantity*price = 70010 [08:32:56]sum+1 = 70012 [08:32:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.35 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 54 14.04.2024 08:33 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29144 ФПД: 277831168680688 1/tax-web-control/client/api/v1/ticket?date=20240414T083305&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29144&fm=277831168680688&tin=02508201610067®Number=0000138879044617&sum=70000 [08:32:57]StoreToDocumentArchive [08:32:57]shift 116 fd 29144 [08:32:57]save to /storage/0116/doc_00029144 [08:32:57]save last doc name /storage/0116/doc_00029144 to /storage/kkm_last_doc_name [08:32:57]save OK [08:32:57]Clear old archive folders... [08:32:57]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:32:57]tlvbuf is 01214BB0 [08:32:57]SAM_PROTO_ClearQueue [08:32:57]wFMCommunicate request_size=4 [08:32:57]MH_SAM_APDU [08:32:57]CAPDU: 80 09 00 00 [08:32:57]Write to MH i2c: E2 08 00 CC 7F 80 09 00 00 00 00 00 00 BD [08:32:57]Write i2c OK [08:32:57]MH_I2C_Read... [08:32:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:32:57]Read from MH i2c: E2 [08:32:57]MH_I2C_Read... [08:32:57]Read from MH i2c: E2 03 00 [08:32:57]MH_I2C_Read... [08:32:57]Read from MH i2c: E2 03 00 CC 7F 00 90 00 BF [08:32:57]RAPDU: 90 00 [08:32:57]wFMCommunicate OK [08:32:57]SAM_PROTO_ClearQueue done [08:32:57]KKMCreateOFDPacket [08:32:57]OFDProtocolAddRootSTLVToBuf [08:32:57]FM_MakeSignedData [08:32:57]FM_MakeSignedData [08:32:57]SAM_PROTO_SignData [08:32:57]wFMCommunicate request_size=4 [08:32:57]MH_SAM_APDU [08:32:57]CAPDU: 80 0D 01 02 [08:32:57]Write to MH i2c: E2 08 00 CD 7F 80 0D 01 02 00 00 00 00 C5 [08:32:57]Write i2c OK [08:32:57]MH_I2C_Read... [08:32:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:32:57]Read from MH i2c: E2 [08:32:57]MH_I2C_Read... [08:32:57]Read from MH i2c: E2 03 00 [08:32:57]MH_I2C_Read... [08:32:57]Read from MH i2c: E2 03 00 CD 7F 00 90 00 C0 [08:32:57]RAPDU: 90 00 [08:32:57]wFMCommunicate OK [08:32:57]wFMCommunicate request_size=255 [08:32:57]MH_SAM_APDU [08:32:57]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 36 00 00 00 F4 03 04 00 C1 94 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D8 71 00 00 35 04 06 00 FC AF 9C 1D [08:32:57]Write to MH i2c: E2 02 01 CE 7F 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 36 00 00 00 F4 03 04 00 C1 94 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D8 71 00 00 35 04 06 00 FC AF 9C 1D 00 00 E2 [08:32:57]Write i2c OK [08:32:57]MH_I2C_Read... [08:32:58]OFD Sender: No OFD packet to send [08:32:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:32:58]Read from MH i2c: E2 [08:32:58]MH_I2C_Read... [08:32:58]Read from MH i2c: E2 03 00 [08:32:58]MH_I2C_Read... [08:32:58]Read from MH i2c: E2 03 00 CE 7F 00 90 00 C1 [08:32:58]RAPDU: 90 00 [08:32:58]wFMCommunicate OK [08:32:58]wFMCommunicate request_size=7 [08:32:58]MH_SAM_APDU [08:32:58]CAPDU: 80 0D 02 02 02 E2 F0 [08:32:58]Write to MH i2c: E2 0A 00 CF 7F 80 0D 02 02 02 00 E2 F0 00 00 9E [08:32:58]Write i2c OK [08:32:58]MH_I2C_Read... [08:32:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:32:58]Read from MH i2c: E2 [08:32:58]MH_I2C_Read... [08:32:58]Read from MH i2c: E2 03 00 [08:32:58]MH_I2C_Read... [08:32:58]Read from MH i2c: E2 03 00 CF 7F 00 90 00 C2 [08:32:58]RAPDU: 90 00 [08:32:58]wFMCommunicate OK [08:32:58]wFMCommunicate request_size=4 [08:32:58]MH_SAM_APDU [08:32:58]CAPDU: 80 0D 03 02 [08:32:58]Write to MH i2c: E2 08 00 D0 7F 80 0D 03 02 00 00 00 00 CA [08:32:58]Write i2c OK [08:32:58]MH_I2C_Read... [08:32:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:32:58]Read from MH i2c: E2 [08:32:58]MH_I2C_Read... [08:32:58]Read from MH i2c: E2 0B 00 [08:32:58]MH_I2C_Read... [08:32:58]Read from MH i2c: E2 0B 00 D0 7F 00 71 51 70 2B A4 84 2E CF 90 00 4D [08:32:58]RAPDU: 71 51 70 2B A4 84 2E CF 90 00 [08:32:58]wFMCommunicate OK [08:32:58]SAM_PROTO_SignData done [08:32:58]FM_MakeSignedData done [08:32:58]CreateOFDProtocolMessage [08:32:58]wFMCommunicate request_size=4 [08:32:58]MH_SAM_APDU [08:32:58]CAPDU: 80 11 00 00 [08:32:58]Write to MH i2c: E2 08 00 D1 7F 80 11 00 00 00 00 00 00 CA [08:32:58]Write i2c OK [08:32:58]MH_I2C_Read... [08:32:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:32:58]Read from MH i2c: E2 [08:32:58]MH_I2C_Read... [08:32:58]Read from MH i2c: E2 17 00 [08:32:58]MH_I2C_Read... [08:32:58]Read from MH i2c: E2 17 00 D1 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 19 [08:32:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:32:58]wFMCommunicate OK [08:32:58]CreateOFDProtocolMessage done [08:32:58]OFDSenderStorePacket 29144 [08:32:58]StoreOFDPacket docnum=29144 [08:32:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 A7 73 04 01 2C 8C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 36 00 00 00 F4 03 04 00 C1 94 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D8 71 00 00 35 04 06 00 FC AF 9C 1D E2 F0 71 51 70 2B A4 84 2E CF [08:32:58]CheckFolder [08:32:58]dirname=/storage/ofd_packets [08:32:58]CheckFolder done [08:32:58]ProducePacketName [08:32:58]name=ofd_packets/00029144 [08:32:58]NVStorageSaveData ofd_packets/00029144 [08:32:58]File name is /storage/ofd_packets/00029144 [08:32:58]Write 298 bytes [08:32:58]NVStorageSaveData done [08:32:58]OFDSenderStorePacket done [08:32:58]KKMCreateOFDPacket done [08:32:58]NVStorageSaveData kkm_last_timestamp [08:32:58]File name is /storage/kkm_last_timestamp [08:32:58]Write 4 bytes [08:32:58]NVStorageSaveData done [08:32:58]ExternCall_PrintAddStr [08:32:58]wPrintStart [08:32:58]Write to MH i2c: 01 00 00 D2 7F 51 [08:32:58]Write i2c OK [08:32:58]MH_I2C_Read... [08:32:58]Read from MH i2c: 01 [08:32:58]MH_I2C_Read... [08:32:58]Read from MH i2c: 01 07 00 [08:32:58]MH_I2C_Read... [08:32:58]Read from MH i2c: 01 07 00 D2 7F 00 00 00 00 00 FF 0F 66 [08:32:58]RasterBufferAndPrint [08:32:58]line Счет N : (1)347513 [08:32:58]line ИНН: 02508201610067 [08:32:58]line Контрольно-Кассовый Чек [08:32:58]line ПРОДАЖА [08:32:58]line ТРК (МРК, ГНК) : 11 [08:32:58]line Товар: 2710194210 [08:32:58]line ДТ-К-5 [08:32:58]line 9.670 * 72.40 [08:32:58]line = 700.11 [08:32:58]line НДС 12% НСП 1% [08:32:58]line > о реализуемом товаре [08:32:58]line ОКРУГЛЕНИЕ: -0.11 [08:32:58]line ИТОГО: 700.00 [08:32:58]line Внесено: 700.00 [08:32:58]line СДАЧА: 0.00 [08:32:58]line НСП 1% : 6.20 [08:32:58]line НДС 12% : 74.35 [08:32:58]line Наличными: 700.00 [08:32:58]line Безнал.: 0.00 [08:32:58]line Место: АЗС № 108 "Партнер Нефть" [08:32:58]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:32:58]line СНО: Общий режим [08:32:58]line Чек 54 14.04.2024 08:33 [08:32:58]line Смена: 116 ФФД: 1.0 [08:32:58]line ЗНМ: 0300000027 [08:32:58]line РНМ: 0000138879044617 [08:32:58]line Версия ККМ: 001 [08:32:58]line ФМ: 0000000000963154 [08:32:58]line ФД: 29144 [08:32:58]line ФПД: 277831168680688 [08:32:58]line 1/tax-web-control/client/api/v1/ticket?date=20240414T083305&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29144&fm=277831168680688&tin=02508201610067®Number=0000138879044617&sum=70000 [08:32:58]OFD Sender: Processing packet 29144 [packets to send 8, broken 7] [08:32:58]ProducePacketName [08:32:58]name=ofd_packets/00029144 [08:32:58]OFD Sender: To server: pG, [08:32:58]CommunicateWithHost lk.salyk.kg:30040 [08:32:58]ConnectInit lk.salyk.kg [08:32:58]written 0, free lines is 4095 [08:32:58]Connected sock=10 [08:32:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 A7 73 04 01 2C 8C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 36 00 00 00 F4 03 04 00 C1 94 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D8 71 00 00 35 04 06 00 FC AF 9C 1D E2 F0 71 51 70 2B A4 84 2E CF [08:32:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 0E D6 47 00 15 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D8 71 00 00 F4 03 04 00 66 3F 1B 66 B6 04 01 00 00 44 5B AD 7E 5E 29 1B 9C [08:32:58]CommunicateWithHost err = 0 [08:32:58]CheckOFDResponse [08:32:58]1017 (14) - 77093643461234 [08:32:58]1041 (16) - 0000000000963154 [08:32:58]1040 (4) - 29144 [08:32:58]1012 (4) - 14.04.2024 02:28 [08:32:58]1206 (1) - 0 [08:32:58]OFD Sender: Remove packet 29144 [08:32:58]ProducePacketName [08:32:58]name=ofd_packets/00029144 [08:32:58]NVStorageDeleteData [08:32:59]Write to MH i2c: 01 00 00 FC 7F 7B [08:32:59]Write i2c OK [08:32:59]MH_I2C_Read... [08:32:59]Read from MH i2c: 01 [08:32:59]MH_I2C_Read... [08:32:59]Read from MH i2c: 01 07 00 [08:32:59]MH_I2C_Read... [08:32:59]Read from MH i2c: 01 07 00 FC 7F 00 00 00 00 00 C1 0C 4F [08:32:59]RasterBufferAndPrint [08:32:59]line [08:32:59]line [08:32:59]line [08:32:59]line [08:32:59]line [08:32:59]written 0, free lines is 3270 [08:32:59]MH_Cut [08:32:59]Write to MH i2c: D1 01 00 03 80 01 55 [08:32:59]Write i2c OK [08:32:59]MH_I2C_Read... [08:32:59]Read from MH i2c: D1 [08:32:59]MH_I2C_Read... [08:32:59]Read from MH i2c: D1 01 00 [08:32:59]MH_I2C_Read... [08:32:59]Read from MH i2c: D1 01 00 03 80 00 54 [08:32:59]Write to MH i2c: 01 00 00 04 80 84 [08:32:59]Write i2c OK [08:32:59]MH_I2C_Read... [08:32:59]OFD Sender: No OFD packet to send [08:32:59]*** Cut start [08:32:59]*** Partial cut [08:32:59]*** CUTSNS_PIN = 1 [08:32:59]*** CUTSNS_PIN = 0 [08:33:00]*** Brake cut motor [08:33:00]Read from MH i2c: 01 [08:33:00]MH_I2C_Read... [08:33:00]*** Stop cut motor [08:33:00]*** Cut end [08:33:00]Read from MH i2c: 01 07 00 [08:33:00]MH_I2C_Read... [08:33:00]Read from MH i2c: 01 07 00 04 80 00 00 00 00 00 FF 0F 99 [08:33:00]process_action close_receipt done [08:33:00]requested_data is exist [08:33:00]produce_requested_data [08:33:00]requested_item fm.sn is exist - process it [08:33:00]wFMCommunicate request_size=4 [08:33:00]MH_SAM_APDU [08:33:00]CAPDU: 80 11 00 00 [08:33:00]Write to MH i2c: E2 08 00 05 80 80 11 00 00 00 00 00 00 FF [08:33:00]Write i2c OK [08:33:00]MH_I2C_Read... [08:33:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:33:00]Read from MH i2c: E2 [08:33:00]MH_I2C_Read... [08:33:00]Read from MH i2c: E2 17 00 [08:33:00]MH_I2C_Read... [08:33:00]Read from MH i2c: E2 17 00 05 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 4E [08:33:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:33:00]wFMCommunicate OK [08:33:00]requested_item fd.num is exist - process it [08:33:00]SAM_PROTO_GetFieldsCounters [08:33:00]wFMCommunicate request_size=4 [08:33:00]MH_SAM_APDU [08:33:00]CAPDU: 80 13 00 00 [08:33:00]Write to MH i2c: E2 08 00 06 80 80 13 00 00 00 00 00 00 02 [08:33:00]Write i2c OK [08:33:00]MH_I2C_Read... [08:33:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:33:00]Read from MH i2c: E2 [08:33:00]MH_I2C_Read... [08:33:00]Read from MH i2c: E2 62 00 [08:33:00]MH_I2C_Read... [08:33:00]Read from MH i2c: E2 62 00 06 80 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D8 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 9F [08:33:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D8 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:33:00]wFMCommunicate OK [08:33:00]SAM_PROTO_GetFieldsCounters done [08:33:00]requested_item shift.num is exist - process it [08:33:00]requested_item shift.opened is exist - process it [08:33:00]req_shift_opened [08:33:00]FM_GetShiftState [08:33:00]SAM_PROTO_GetShiftState [08:33:00]wFMCommunicate request_size=4 [08:33:00]MH_SAM_APDU [08:33:00]CAPDU: 80 13 01 00 [08:33:00]Write to MH i2c: E2 08 00 07 80 80 13 01 00 00 00 00 00 04 [08:33:00]Write i2c OK [08:33:00]MH_I2C_Read... [08:33:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:33:00]Read from MH i2c: E2 [08:33:00]MH_I2C_Read... [08:33:00]Read from MH i2c: E2 0E 00 [08:33:00]MH_I2C_Read... [08:33:00]Read from MH i2c: E2 0E 00 07 80 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 B0 [08:33:00]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [08:33:00]wFMCommunicate OK [08:33:00]SAM_PROTO_GetShiftState done [08:33:00]FM_GetShiftState done [08:33:00]req_shift_opened done [08:33:00]requested_item shift.open_date is exist - process it [08:33:00]req_shift_open_date [08:33:00]req_shift_open_date done [08:33:00]produce_requested_data done [08:33:00]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29144,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [08:33:00]process_action_free close_receipt [08:33:00]json_value_free [08:33:00]json_value_free done [08:33:00]process_json_proto returns [08:33:00]Send response to host [08:33:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29144,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [08:33:00]free response buf [08:33:00]execute_script done [08:33:00]execute_script returns [08:33:00]free content buf [08:33:00]Sock 7.Close socket [08:33:00]Sock 7.Thread stoped [08:33:04]OFD Sender: No OFD packet to send [08:33:09]OFD Sender: No OFD packet to send [08:33:14]OFD Sender: No OFD packet to send [08:33:19]OFD Sender: No OFD packet to send [08:33:24]OFD Sender: No OFD packet to send [08:33:29]OFD Sender: No OFD packet to send [08:33:34]OFD Sender: No OFD packet to send [08:33:39]OFD Sender: No OFD packet to send [08:33:44]OFD Sender: No OFD packet to send [08:33:49]OFD Sender: No OFD packet to send [08:33:54]OFD Sender: No OFD packet to send [08:33:59]OFD Sender: No OFD packet to send [08:34:04]OFD Sender: No OFD packet to send [08:34:09]OFD Sender: No OFD packet to send [08:34:14]OFD Sender: No OFD packet to send [08:34:19]OFD Sender: No OFD packet to send [08:34:24]OFD Sender: No OFD packet to send [08:34:29]OFD Sender: No OFD packet to send [08:34:34]OFD Sender: No OFD packet to send [08:34:39]OFD Sender: No OFD packet to send [08:34:44]OFD Sender: No OFD packet to send [08:34:49]OFD Sender: No OFD packet to send [08:34:54]OFD Sender: No OFD packet to send [08:34:59]OFD Sender: No OFD packet to send [08:35:04]OFD Sender: No OFD packet to send [08:35:09]OFD Sender: No OFD packet to send [08:35:14]OFD Sender: No OFD packet to send [08:35:19]OFD Sender: No OFD packet to send [08:35:24]OFD Sender: No OFD packet to send [08:35:29]OFD Sender: No OFD packet to send [08:35:34]OFD Sender: No OFD packet to send [08:35:39]OFD Sender: No OFD packet to send [08:35:44]OFD Sender: No OFD packet to send [08:35:49]OFD Sender: No OFD packet to send [08:35:54]OFD Sender: No OFD packet to send [08:35:59]OFD Sender: No OFD packet to send [08:36:04]OFD Sender: No OFD packet to send [08:36:09]OFD Sender: No OFD packet to send [08:36:14]OFD Sender: No OFD packet to send [08:36:19]OFD Sender: No OFD packet to send [08:36:24]OFD Sender: No OFD packet to send [08:36:29]OFD Sender: No OFD packet to send [08:36:34]OFD Sender: No OFD packet to send [08:36:39]OFD Sender: No OFD packet to send [08:36:44]OFD Sender: No OFD packet to send [08:36:49]OFD Sender: No OFD packet to send [08:36:54]OFD Sender: No OFD packet to send [08:36:59]OFD Sender: No OFD packet to send [08:37:04]OFD Sender: No OFD packet to send [08:37:09]OFD Sender: No OFD packet to send [08:37:14]OFD Sender: No OFD packet to send [08:37:19]OFD Sender: No OFD packet to send [08:37:24]OFD Sender: No OFD packet to send [08:37:29]OFD Sender: No OFD packet to send [08:37:34]OFD Sender: No OFD packet to send [08:37:39]OFD Sender: No OFD packet to send [08:37:44]OFD Sender: No OFD packet to send [08:37:49]OFD Sender: No OFD packet to send [08:37:54]OFD Sender: No OFD packet to send [08:37:59]OFD Sender: No OFD packet to send [08:38:04]accept exits with 9 [08:38:04]New connection [08:38:04]New thread 3066928484 created [08:38:04]Thread 3066785124 joined [08:38:04]Waiting for new connection... [08:38:04] Sock 9.Parse request [08:38:04]Sock 9.Check first char [08:38:04]Sock 9.First char is OK [08:38:04]request: POST /json_proto HTTP/1.0 [08:38:04]Method: POST [08:38:04]URL: /json_proto [08:38:04]Method is POST - this is cgi request [08:38:04]url: /json_proto [08:38:04]query_string will be loaded in cgi processing [08:38:04]execute_cgi json_proto POST (null) [08:38:04]execute_cgi path=json_proto method=POST [08:38:04]POST find Content-Length [08:38:04]Host: 172.17.33.3:8080 [08:38:04]Content-Length: 677 [08:38:04]Content-Type: application/json [08:38:04] [08:38:04]POST finish read [08:38:04]Found Content-Length = 677 [08:38:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347514", "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.090, "sum" : 520.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 520.00, "total" : 520.00, "payments": [ { "type": 0, "sum" : 520.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:38:04]execute_script... [08:38: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)347514", "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.090, "sum" : 520.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 520.00, "total" : 520.00, "payments": [ { "type": 0, "sum" : 520.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:38:04]POST & json_proto [08:38:04]process_json_proto [08:38:04]json parsed OK: [08:38:04]protocol is kg_v1.0 [08:38:04]action value=close_receipt [08:38:04]process_action close_receipt [08:38:04]cmd_close_receipt [08:38:04]MH_GetDate [08:38:04]Write to MH i2c: F0 00 00 08 80 77 [08:38:04]Write i2c OK [08:38:04]MH_I2C_Read... [08:38:04]Read from MH i2c: F0 [08:38:04]MH_I2C_Read... [08:38:04]Read from MH i2c: F0 09 00 [08:38:04]MH_I2C_Read... [08:38:04]Read from MH i2c: F0 09 00 08 80 00 F5 95 1B 66 23 5B 8F 65 FD [08:38:04]GetLastDocTimeStamp 1713083585 [08:38:04]current date 1713083893 [08:38:04]FM_GetShiftState [08:38:04]SAM_PROTO_GetShiftState [08:38:04]wFMCommunicate request_size=4 [08:38:04]MH_SAM_APDU [08:38:04]CAPDU: 80 13 01 00 [08:38:04]Write to MH i2c: E2 08 00 09 80 80 13 01 00 00 00 00 00 06 [08:38:04]Write i2c OK [08:38:04]MH_I2C_Read... [08:38:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:38:04]Read from MH i2c: E2 [08:38:04]MH_I2C_Read... [08:38:04]Read from MH i2c: E2 0E 00 [08:38:04]MH_I2C_Read... [08:38:04]Read from MH i2c: E2 0E 00 09 80 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 B2 [08:38:04]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [08:38:04]wFMCommunicate OK [08:38:04]SAM_PROTO_GetShiftState done [08:38:04]FM_GetShiftState done [08:38:04]opened in 1713053951 [08:38:04]opened+sec_in_day 1713140351 [08:38:04]quantity*price = 52018 [08:38:04]sum+1 = 52020 [08:38:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 520.00 Внесено: 520.00 СДАЧА: 0.00 НСП 1% : 4.60 НДС 12% : 55.24 Наличными: 520.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 55 14.04.2024 08:38 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29145 ФПД: 278151862073946 1/tax-web-control/client/api/v1/ticket?date=20240414T083813&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29145&fm=278151862073946&tin=02508201610067®Number=0000138879044617&sum=52000 [08:38:05]StoreToDocumentArchive [08:38:05]shift 116 fd 29145 [08:38:05]save to /storage/0116/doc_00029145 [08:38:05]save last doc name /storage/0116/doc_00029145 to /storage/kkm_last_doc_name [08:38:05]save OK [08:38:05]Clear old archive folders... [08:38:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:38:05]tlvbuf is 011EABF0 [08:38:05]SAM_PROTO_ClearQueue [08:38:05]wFMCommunicate request_size=4 [08:38:05]MH_SAM_APDU [08:38:05]CAPDU: 80 09 00 00 [08:38:05]Write to MH i2c: E2 08 00 16 80 80 09 00 00 00 00 00 00 08 [08:38:05]Write i2c OK [08:38:05]MH_I2C_Read... [08:38:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:38:05]Read from MH i2c: E2 [08:38:05]MH_I2C_Read... [08:38:05]Read from MH i2c: E2 03 00 [08:38:05]MH_I2C_Read... [08:38:05]Read from MH i2c: E2 03 00 16 80 00 90 00 0A [08:38:05]RAPDU: 90 00 [08:38:05]wFMCommunicate OK [08:38:05]SAM_PROTO_ClearQueue done [08:38:05]KKMCreateOFDPacket [08:38:05]OFDProtocolAddRootSTLVToBuf [08:38:05]FM_MakeSignedData [08:38:05]FM_MakeSignedData [08:38:05]SAM_PROTO_SignData [08:38:05]wFMCommunicate request_size=4 [08:38:05]MH_SAM_APDU [08:38:05]CAPDU: 80 0D 01 02 [08:38:05]Write to MH i2c: E2 08 00 17 80 80 0D 01 02 00 00 00 00 10 [08:38:05]Write i2c OK [08:38:05]MH_I2C_Read... [08:38:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:38:05]Read from MH i2c: E2 [08:38:05]MH_I2C_Read... [08:38:05]Read from MH i2c: E2 03 00 [08:38:05]MH_I2C_Read... [08:38:05]Read from MH i2c: E2 03 00 17 80 00 90 00 0B [08:38:05]RAPDU: 90 00 [08:38:05]wFMCommunicate OK [08:38:05]wFMCommunicate request_size=255 [08:38:05]MH_SAM_APDU [08:38: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 9A 1F 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 33 CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 15 00 00 00 00 07 04 06 00 20 CB 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 F5 95 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D9 71 00 00 35 04 06 00 FC [08:38:05]Write to MH i2c: E2 02 01 18 80 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 33 CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 15 00 00 00 00 07 04 06 00 20 CB 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 F5 95 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D9 71 00 00 35 04 06 00 FC 00 00 6D [08:38:05]Write i2c OK [08:38:05]MH_I2C_Read... [08:38:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:38:05]Read from MH i2c: E2 [08:38:05]MH_I2C_Read... [08:38:05]Read from MH i2c: E2 03 00 [08:38:05]MH_I2C_Read... [08:38:05]Read from MH i2c: E2 03 00 18 80 00 90 00 0C [08:38:05]RAPDU: 90 00 [08:38:05]wFMCommunicate OK [08:38:05]wFMCommunicate request_size=10 [08:38:05]MH_SAM_APDU [08:38:05]CAPDU: 80 0D 02 02 05 FA 46 EE BA 5A [08:38:05]Write to MH i2c: E2 0D 00 19 80 80 0D 02 02 05 00 FA 46 EE BA 5A 00 00 5F [08:38:05]Write i2c OK [08:38:05]MH_I2C_Read... [08:38:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:38:05]Read from MH i2c: E2 [08:38:05]MH_I2C_Read... [08:38:05]Read from MH i2c: E2 03 00 [08:38:05]MH_I2C_Read... [08:38:05]Read from MH i2c: E2 03 00 19 80 00 90 00 0D [08:38:05]RAPDU: 90 00 [08:38:05]wFMCommunicate OK [08:38:05]wFMCommunicate request_size=4 [08:38:05]MH_SAM_APDU [08:38:05]CAPDU: 80 0D 03 02 [08:38:05]Write to MH i2c: E2 08 00 1A 80 80 0D 03 02 00 00 00 00 15 [08:38:05]Write i2c OK [08:38:05]MH_I2C_Read... [08:38:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:38:05]Read from MH i2c: E2 [08:38:05]MH_I2C_Read... [08:38:05]Read from MH i2c: E2 0B 00 [08:38:05]MH_I2C_Read... [08:38:05]Read from MH i2c: E2 0B 00 1A 80 00 76 B0 31 C4 38 85 39 06 90 00 2D [08:38:05]RAPDU: 76 B0 31 C4 38 85 39 06 90 00 [08:38:05]wFMCommunicate OK [08:38:05]SAM_PROTO_SignData done [08:38:05]FM_MakeSignedData done [08:38:05]CreateOFDProtocolMessage [08:38:05]wFMCommunicate request_size=4 [08:38:05]MH_SAM_APDU [08:38:05]CAPDU: 80 11 00 00 [08:38:05]Write to MH i2c: E2 08 00 1B 80 80 11 00 00 00 00 00 00 15 [08:38:05]Write i2c OK [08:38:05]MH_I2C_Read... [08:38:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:38:05]Read from MH i2c: E2 [08:38:05]MH_I2C_Read... [08:38:05]Read from MH i2c: E2 17 00 [08:38:05]MH_I2C_Read... [08:38:05]Read from MH i2c: E2 17 00 1B 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 64 [08:38:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:38:05]wFMCommunicate OK [08:38:05]CreateOFDProtocolMessage done [08:38:05]OFDSenderStorePacket 29145 [08:38:05]StoreOFDPacket docnum=29145 [08:38:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 A9 99 07 01 C8 0D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 33 CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 15 00 00 00 00 07 04 06 00 20 CB 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 F5 95 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D9 71 00 00 35 04 06 00 FC FA 46 EE BA 5A 76 B0 31 C4 38 85 39 06 [08:38:05]CheckFolder [08:38:05]dirname=/storage/ofd_packets [08:38:05]CheckFolder done [08:38:05]ProducePacketName [08:38:05]name=ofd_packets/00029145 [08:38:05]NVStorageSaveData ofd_packets/00029145 [08:38:05]File name is /storage/ofd_packets/00029145 [08:38:05]Write 301 bytes [08:38:05]NVStorageSaveData done [08:38:05]OFDSenderStorePacket done [08:38:05]KKMCreateOFDPacket done [08:38:05]NVStorageSaveData kkm_last_timestamp [08:38:05]File name is /storage/kkm_last_timestamp [08:38:05]Write 4 bytes [08:38:05]NVStorageSaveData done [08:38:05]ExternCall_PrintAddStr [08:38:05]wPrintStart [08:38:05]Write to MH i2c: 01 00 00 1C 80 9C [08:38:05]Write i2c OK [08:38:05]MH_I2C_Read... [08:38:05]Read from MH i2c: 01 [08:38:05]MH_I2C_Read... [08:38:05]Read from MH i2c: 01 07 00 [08:38:05]MH_I2C_Read... [08:38:05]Read from MH i2c: 01 07 00 1C 80 00 00 00 00 00 FF 0F B1 [08:38:05]RasterBufferAndPrint [08:38:05]line Счет N : (1)347514 [08:38:05]line ИНН: 02508201610067 [08:38:05]line Контрольно-Кассовый Чек [08:38:05]line ПРОДАЖА [08:38:05]line ТРК (МРК, ГНК) : 32 [08:38:05]line Товар: 2710124130 [08:38:05]line Аи-92-К-5 [08:38:05]line 8.090 * 64.30 [08:38:05]line = 520.19 [08:38:05]line НДС 12% НСП 1% [08:38:05]line > о реализуемом товаре [08:38:05]line ОКРУГЛЕНИЕ: -0.19 [08:38:05]line ИТОГО: 520.00 [08:38:05]line Внесено: 520.00 [08:38:05]line СДАЧА: 0.00 [08:38:05]line НСП 1% : 4.60 [08:38:05]line НДС 12% : 55.24 [08:38:05]line Наличными: 520.00 [08:38:05]line Безнал.: 0.00 [08:38:05]line Место: АЗС № 108 "Партнер Нефть" [08:38:05]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:38:05]line СНО: Общий режим [08:38:05]line Чек 55 14.04.2024 08:38 [08:38:05]line Смена: 116 ФФД: 1.0 [08:38:05]line ЗНМ: 0300000027 [08:38:05]line РНМ: 0000138879044617 [08:38:05]line Версия ККМ: 001 [08:38:05]line ФМ: 0000000000963154 [08:38:05]line ФД: 29145 [08:38:06]line ФПД: 278151862073946 [08:38:06]line 1/tax-web-control/client/api/v1/ticket?date=20240414T083813&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29145&fm=278151862073946&tin=02508201610067®Number=0000138879044617&sum=52000 [08:38:06]OFD Sender: Processing packet 29145 [packets to send 8, broken 7] [08:38:06]ProducePacketName [08:38:06]name=ofd_packets/00029145 [08:38:06]OFD Sender: To server: pG, [08:38:06]CommunicateWithHost lk.salyk.kg:30040 [08:38:06]ConnectInit lk.salyk.kg [08:38:06]written 0, free lines is 4095 [08:38:06]Connected sock=10 [08:38:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 A9 99 07 01 C8 0D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 33 CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 15 00 00 00 00 07 04 06 00 20 CB 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 F5 95 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D9 71 00 00 35 04 06 00 FC FA 46 EE BA 5A 76 B0 31 C4 38 85 39 06 [08:38:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 1E 93 47 00 28 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D9 71 00 00 F4 03 04 00 99 40 1B 66 B6 04 01 00 00 9E C1 8C 11 C5 79 91 62 [08:38:06]CommunicateWithHost err = 0 [08:38:06]CheckOFDResponse [08:38:06]1017 (14) - 77093643461234 [08:38:06]1041 (16) - 0000000000963154 [08:38:06]1040 (4) - 29145 [08:38:06]1012 (4) - 14.04.2024 02:34 [08:38:06]1206 (1) - 0 [08:38:06]OFD Sender: Remove packet 29145 [08:38:06]ProducePacketName [08:38:06]name=ofd_packets/00029145 [08:38:06]NVStorageDeleteData [08:38:06]Write to MH i2c: 01 00 00 46 80 C6 [08:38:06]Write i2c OK [08:38:06]MH_I2C_Read... [08:38:06]Read from MH i2c: 01 [08:38:06]MH_I2C_Read... [08:38:06]Read from MH i2c: 01 07 00 [08:38:06]MH_I2C_Read... [08:38:06]Read from MH i2c: 01 07 00 46 80 00 00 00 00 00 C2 0C 9B [08:38:06]RasterBufferAndPrint [08:38:06]line [08:38:06]line [08:38:06]line [08:38:06]line [08:38:06]line [08:38:06]written 0, free lines is 3270 [08:38:06]MH_Cut [08:38:06]Write to MH i2c: D1 01 00 4D 80 01 9F [08:38:06]Write i2c OK [08:38:06]MH_I2C_Read... [08:38:06]Read from MH i2c: D1 [08:38:06]MH_I2C_Read... [08:38:06]Read from MH i2c: D1 01 00 [08:38:06]MH_I2C_Read... [08:38:06]Read from MH i2c: D1 01 00 4D 80 00 9E [08:38:06]Write to MH i2c: 01 00 00 4E 80 CE [08:38:06]Write i2c OK [08:38:06]MH_I2C_Read... [08:38:06]OFD Sender: No OFD packet to send [08:38:07]*** Cut start [08:38:07]*** Partial cut [08:38:07]*** CUTSNS_PIN = 1 [08:38:07]*** CUTSNS_PIN = 0 [08:38:07]*** Brake cut motor [08:38:07]Read from MH i2c: 01 [08:38:07]MH_I2C_Read... [08:38:07]*** Stop cut motor [08:38:07]*** Cut end [08:38:07]Read from MH i2c: 01 07 00 [08:38:07]MH_I2C_Read... [08:38:07]Read from MH i2c: 01 07 00 4E 80 00 00 00 00 00 FF 0F E3 [08:38:07]process_action close_receipt done [08:38:07]requested_data is exist [08:38:07]produce_requested_data [08:38:07]requested_item fm.sn is exist - process it [08:38:07]wFMCommunicate request_size=4 [08:38:07]MH_SAM_APDU [08:38:07]CAPDU: 80 11 00 00 [08:38:07]Write to MH i2c: E2 08 00 4F 80 80 11 00 00 00 00 00 00 49 [08:38:07]Write i2c OK [08:38:07]MH_I2C_Read... [08:38:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:38:08]Read from MH i2c: E2 [08:38:08]MH_I2C_Read... [08:38:08]Read from MH i2c: E2 17 00 [08:38:08]MH_I2C_Read... [08:38:08]Read from MH i2c: E2 17 00 4F 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 98 [08:38:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:38:08]wFMCommunicate OK [08:38:08]requested_item fd.num is exist - process it [08:38:08]SAM_PROTO_GetFieldsCounters [08:38:08]wFMCommunicate request_size=4 [08:38:08]MH_SAM_APDU [08:38:08]CAPDU: 80 13 00 00 [08:38:08]Write to MH i2c: E2 08 00 50 80 80 13 00 00 00 00 00 00 4C [08:38:08]Write i2c OK [08:38:08]MH_I2C_Read... [08:38:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:38:08]Read from MH i2c: E2 [08:38:08]MH_I2C_Read... [08:38:08]Read from MH i2c: E2 62 00 [08:38:08]MH_I2C_Read... [08:38:08]Read from MH i2c: E2 62 00 50 80 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D9 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 ED [08:38:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D9 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:38:08]wFMCommunicate OK [08:38:08]SAM_PROTO_GetFieldsCounters done [08:38:08]requested_item shift.num is exist - process it [08:38:08]requested_item shift.opened is exist - process it [08:38:08]req_shift_opened [08:38:08]FM_GetShiftState [08:38:08]SAM_PROTO_GetShiftState [08:38:08]wFMCommunicate request_size=4 [08:38:08]MH_SAM_APDU [08:38:08]CAPDU: 80 13 01 00 [08:38:08]Write to MH i2c: E2 08 00 51 80 80 13 01 00 00 00 00 00 4E [08:38:08]Write i2c OK [08:38:08]MH_I2C_Read... [08:38:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:38:08]Read from MH i2c: E2 [08:38:08]MH_I2C_Read... [08:38:08]Read from MH i2c: E2 0E 00 [08:38:08]MH_I2C_Read... [08:38:08]Read from MH i2c: E2 0E 00 51 80 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 FA [08:38:08]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [08:38:08]wFMCommunicate OK [08:38:08]SAM_PROTO_GetShiftState done [08:38:08]FM_GetShiftState done [08:38:08]req_shift_opened done [08:38:08]requested_item shift.open_date is exist - process it [08:38:08]req_shift_open_date [08:38:08]req_shift_open_date done [08:38:08]produce_requested_data done [08:38:08]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29145,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [08:38:08]process_action_free close_receipt [08:38:08]json_value_free [08:38:08]json_value_free done [08:38:08]process_json_proto returns [08:38:08]Send response to host [08:38:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29145,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [08:38:08]free response buf [08:38:08]execute_script done [08:38:08]execute_script returns [08:38:08]free content buf [08:38:08]Sock 9.Close socket [08:38:08]Sock 9.Thread stoped [08:38:11]OFD Sender: No OFD packet to send [08:38:16]OFD Sender: No OFD packet to send [08:38:21]OFD Sender: No OFD packet to send [08:38:26]OFD Sender: No OFD packet to send [08:38:31]OFD Sender: No OFD packet to send [08:38:36]OFD Sender: No OFD packet to send [08:38:41]OFD Sender: No OFD packet to send [08:38:46]OFD Sender: No OFD packet to send [08:38:51]OFD Sender: No OFD packet to send [08:38:56]OFD Sender: No OFD packet to send [08:39:01]OFD Sender: No OFD packet to send [08:39:06]OFD Sender: No OFD packet to send [08:39:11]OFD Sender: No OFD packet to send [08:39:16]OFD Sender: No OFD packet to send [08:39:21]OFD Sender: No OFD packet to send [08:39:26]OFD Sender: No OFD packet to send [08:39:31]OFD Sender: No OFD packet to send [08:39:36]OFD Sender: No OFD packet to send [08:39:41]accept exits with 7 [08:39:41]New connection [08:39:41]New thread 3066785124 created [08:39:41]Thread 3066928484 joined [08:39:41]Waiting for new connection... [08:39:41] Sock 7.Parse request [08:39:41]Sock 7.Check first char [08:39:41]Sock 7.First char is OK [08:39:41]request: POST /json_proto HTTP/1.0 [08:39:41]Method: POST [08:39:41]URL: /json_proto [08:39:41]Method is POST - this is cgi request [08:39:41]url: /json_proto [08:39:41]query_string will be loaded in cgi processing [08:39:41]execute_cgi json_proto POST (null) [08:39:41]execute_cgi path=json_proto method=POST [08:39:41]POST find Content-Length [08:39:41]Host: 172.17.33.3:8080 [08:39:41]Content-Length: 679 [08:39:41]Content-Type: application/json [08:39:41] [08:39:41]POST finish read [08:39:41]Found Content-Length = 679 [08:39:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347516", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.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" ] } } [08:39:41]execute_script... [08: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)347516", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.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" ] } } [08:39:41]POST & json_proto [08:39:41]process_json_proto [08:39:41]json parsed OK: [08:39:41]protocol is kg_v1.0 [08:39:41]action value=close_receipt [08:39:41]process_action close_receipt [08:39:41]cmd_close_receipt [08:39:41]MH_GetDate [08:39:41]Write to MH i2c: F0 00 00 52 80 C1 [08:39:41]Write i2c OK [08:39:41]MH_I2C_Read... [08:39:41]Read from MH i2c: F0 [08:39:41]MH_I2C_Read... [08:39:41]Read from MH i2c: F0 09 00 [08:39:41]MH_I2C_Read... [08:39:41]Read from MH i2c: F0 09 00 52 80 00 57 96 1B 66 23 5B 8F 65 AA [08:39:41]GetLastDocTimeStamp 1713083893 [08:39:41]current date 1713083991 [08:39:41]FM_GetShiftState [08:39:41]SAM_PROTO_GetShiftState [08:39:41]wFMCommunicate request_size=4 [08:39:41]MH_SAM_APDU [08:39:41]CAPDU: 80 13 01 00 [08:39:41]Write to MH i2c: E2 08 00 53 80 80 13 01 00 00 00 00 00 50 [08:39:41]Write i2c OK [08:39:41]MH_I2C_Read... [08:39:41]OFD Sender: No OFD packet to send [08:39:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:39:41]Read from MH i2c: E2 [08:39:41]MH_I2C_Read... [08:39:41]Read from MH i2c: E2 0E 00 [08:39:41]MH_I2C_Read... [08:39:41]Read from MH i2c: E2 0E 00 53 80 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 FC [08:39:41]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [08:39:41]wFMCommunicate OK [08:39:41]SAM_PROTO_GetShiftState done [08:39:41]FM_GetShiftState done [08:39:41]opened in 1713053951 [08:39:41]opened+sec_in_day 1713140351 [08:39:41]quantity*price = 100056 [08:39:41]sum+1 = 100058 [08:39:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 56 14.04.2024 08:39 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29146 ФПД: 253054089545764 1/tax-web-control/client/api/v1/ticket?date=20240414T083951&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29146&fm=253054089545764&tin=02508201610067®Number=0000138879044617&sum=100000 [08:39:43]StoreToDocumentArchive [08:39:43]shift 116 fd 29146 [08:39:43]save to /storage/0116/doc_00029146 [08:39:43]save last doc name /storage/0116/doc_00029146 to /storage/kkm_last_doc_name [08:39:43]save OK [08:39:43]Clear old archive folders... [08:39:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:39:43]tlvbuf is 011DA420 [08:39:43]SAM_PROTO_ClearQueue [08:39:43]wFMCommunicate request_size=4 [08:39:43]MH_SAM_APDU [08:39:43]CAPDU: 80 09 00 00 [08:39:43]Write to MH i2c: E2 08 00 60 80 80 09 00 00 00 00 00 00 52 [08:39:43]Write i2c OK [08:39:43]MH_I2C_Read... [08:39:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:39:43]Read from MH i2c: E2 [08:39:43]MH_I2C_Read... [08:39:43]Read from MH i2c: E2 03 00 [08:39:43]MH_I2C_Read... [08:39:43]Read from MH i2c: E2 03 00 60 80 00 90 00 54 [08:39:43]RAPDU: 90 00 [08:39:43]wFMCommunicate OK [08:39:43]SAM_PROTO_ClearQueue done [08:39:43]KKMCreateOFDPacket [08:39:43]OFDProtocolAddRootSTLVToBuf [08:39:43]FM_MakeSignedData [08:39:43]FM_MakeSignedData [08:39:43]SAM_PROTO_SignData [08:39:43]wFMCommunicate request_size=4 [08:39:43]MH_SAM_APDU [08:39:43]CAPDU: 80 0D 01 02 [08:39:43]Write to MH i2c: E2 08 00 61 80 80 0D 01 02 00 00 00 00 5A [08:39:43]Write i2c OK [08:39:43]MH_I2C_Read... [08:39:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:39:43]Read from MH i2c: E2 [08:39:43]MH_I2C_Read... [08:39:43]Read from MH i2c: E2 03 00 [08:39:43]MH_I2C_Read... [08:39:43]Read from MH i2c: E2 03 00 61 80 00 90 00 55 [08:39:43]RAPDU: 90 00 [08:39:43]wFMCommunicate OK [08:39:43]wFMCommunicate request_size=255 [08:39:43]MH_SAM_APDU [08:39:43]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 38 00 00 00 F4 03 04 00 57 96 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DA 71 00 00 35 04 06 00 E6 26 BF 1D [08:39:43]Write to MH i2c: E2 02 01 62 80 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 38 00 00 00 F4 03 04 00 57 96 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DA 71 00 00 35 04 06 00 E6 26 BF 1D 00 00 86 [08:39:43]Write i2c OK [08:39:43]MH_I2C_Read... [08:39:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:39:43]Read from MH i2c: E2 [08:39:43]MH_I2C_Read... [08:39:43]Read from MH i2c: E2 03 00 [08:39:43]MH_I2C_Read... [08:39:43]Read from MH i2c: E2 03 00 62 80 00 90 00 56 [08:39:43]RAPDU: 90 00 [08:39:43]wFMCommunicate OK [08:39:43]wFMCommunicate request_size=7 [08:39:43]MH_SAM_APDU [08:39:43]CAPDU: 80 0D 02 02 02 C8 24 [08:39:43]Write to MH i2c: E2 0A 00 63 80 80 0D 02 02 02 00 C8 24 00 00 4D [08:39:43]Write i2c OK [08:39:43]MH_I2C_Read... [08:39:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:39:43]Read from MH i2c: E2 [08:39:43]MH_I2C_Read... [08:39:43]Read from MH i2c: E2 03 00 [08:39:43]MH_I2C_Read... [08:39:43]Read from MH i2c: E2 03 00 63 80 00 90 00 57 [08:39:43]RAPDU: 90 00 [08:39:43]wFMCommunicate OK [08:39:43]wFMCommunicate request_size=4 [08:39:43]MH_SAM_APDU [08:39:43]CAPDU: 80 0D 03 02 [08:39:43]Write to MH i2c: E2 08 00 64 80 80 0D 03 02 00 00 00 00 5F [08:39:43]Write i2c OK [08:39:43]MH_I2C_Read... [08:39:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:39:43]Read from MH i2c: E2 [08:39:43]MH_I2C_Read... [08:39:43]Read from MH i2c: E2 0B 00 [08:39:43]MH_I2C_Read... [08:39:43]Read from MH i2c: E2 0B 00 64 80 00 D3 B3 AB 94 5E 44 A4 3A 90 00 A5 [08:39:43]RAPDU: D3 B3 AB 94 5E 44 A4 3A 90 00 [08:39:43]wFMCommunicate OK [08:39:43]SAM_PROTO_SignData done [08:39:43]FM_MakeSignedData done [08:39:43]CreateOFDProtocolMessage [08:39:43]wFMCommunicate request_size=4 [08:39:43]MH_SAM_APDU [08:39:43]CAPDU: 80 11 00 00 [08:39:43]Write to MH i2c: E2 08 00 65 80 80 11 00 00 00 00 00 00 5F [08:39:43]Write i2c OK [08:39:43]MH_I2C_Read... [08:39:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:39:43]Read from MH i2c: E2 [08:39:43]MH_I2C_Read... [08:39:43]Read from MH i2c: E2 17 00 [08:39:43]MH_I2C_Read... [08:39:43]Read from MH i2c: E2 17 00 65 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 AE [08:39:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:39:43]wFMCommunicate OK [08:39:43]CreateOFDProtocolMessage done [08:39:43]OFDSenderStorePacket 29146 [08:39:43]StoreOFDPacket docnum=29146 [08:39:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 6B 31 04 01 7E 76 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 38 00 00 00 F4 03 04 00 57 96 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DA 71 00 00 35 04 06 00 E6 26 BF 1D C8 24 D3 B3 AB 94 5E 44 A4 3A [08:39:43]CheckFolder [08:39:43]dirname=/storage/ofd_packets [08:39:43]CheckFolder done [08:39:43]ProducePacketName [08:39:43]name=ofd_packets/00029146 [08:39:43]NVStorageSaveData ofd_packets/00029146 [08:39:43]File name is /storage/ofd_packets/00029146 [08:39:43]Write 298 bytes [08:39:43]NVStorageSaveData done [08:39:43]OFDSenderStorePacket done [08:39:43]KKMCreateOFDPacket done [08:39:43]NVStorageSaveData kkm_last_timestamp [08:39:43]File name is /storage/kkm_last_timestamp [08:39:43]Write 4 bytes [08:39:43]NVStorageSaveData done [08:39:43]ExternCall_PrintAddStr [08:39:43]wPrintStart [08:39:43]Write to MH i2c: 01 00 00 66 80 E6 [08:39:43]Write i2c OK [08:39:43]MH_I2C_Read... [08:39:43]Read from MH i2c: 01 [08:39:43]MH_I2C_Read... [08:39:43]Read from MH i2c: 01 07 00 [08:39:43]MH_I2C_Read... [08:39:43]Read from MH i2c: 01 07 00 66 80 00 00 00 00 00 FF 0F FB [08:39:43]RasterBufferAndPrint [08:39:43]line Счет N : (1)347516 [08:39:43]line ИНН: 02508201610067 [08:39:43]line Контрольно-Кассовый Чек [08:39:43]line ПРОДАЖА [08:39:43]line ТРК (МРК, ГНК) : 21 [08:39:43]line Товар: 2710194210 [08:39:43]line ДТ-К-5 [08:39:43]line 13.820 * 72.40 [08:39:43]line = 1000.57 [08:39:43]line НДС 12% НСП 1% [08:39:43]line > о реализуемом товаре [08:39:43]line ОКРУГЛЕНИЕ: -0.57 [08:39:43]line ИТОГО: 1000.00 [08:39:43]line Внесено: 1000.00 [08:39:43]line СДАЧА: 0.00 [08:39:43]line НСП 1% : 8.85 [08:39:43]line НДС 12% : 106.25 [08:39:43]line Наличными: 1000.00 [08:39:43]line Безнал.: 0.00 [08:39:43]line Место: АЗС № 108 "Партнер Нефть" [08:39:43]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:39:43]line СНО: Общий режим [08:39:43]line Чек 56 14.04.2024 08:39 [08:39:43]line Смена: 116 ФФД: 1.0 [08:39:43]line ЗНМ: 0300000027 [08:39:43]line РНМ: 0000138879044617 [08:39:43]line Версия ККМ: 001 [08:39:43]line ФМ: 0000000000963154 [08:39:43]line ФД: 29146 [08:39:43]line ФПД: 253054089545764 [08:39:43]line 1/tax-web-control/client/api/v1/ticket?date=20240414T083951&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29146&fm=253054089545764&tin=02508201610067®Number=0000138879044617&sum=100000 [08:39:43]OFD Sender: Processing packet 29146 [packets to send 8, broken 7] [08:39:43]ProducePacketName [08:39:43]name=ofd_packets/00029146 [08:39:43]OFD Sender: To server: pG, [08:39:43]CommunicateWithHost lk.salyk.kg:30040 [08:39:43]ConnectInit lk.salyk.kg [08:39:43]written 0, free lines is 4095 [08:39:44]Connected sock=10 [08:39:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 6B 31 04 01 7E 76 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 38 00 00 00 F4 03 04 00 57 96 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DA 71 00 00 35 04 06 00 E6 26 BF 1D C8 24 D3 B3 AB 94 5E 44 A4 3A [08:39:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 2A 20 47 00 24 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 39 36 33 31 35 34 10 04 04 00 DA 71 00 00 F4 03 04 00 FB 40 1B 66 B6 04 01 00 00 88 63 ED 1F CF 0A AC A5 [08:39:44]CommunicateWithHost err = 0 [08:39:44]CheckOFDResponse [08:39:44]1017 (14) - 77093643461234 [08:39:44]1041 (16) - 0000000000963154 [08:39:44]1040 (4) - 29146 [08:39:44]1012 (4) - 14.04.2024 02:35 [08:39:44]1206 (1) - 0 [08:39:44]OFD Sender: Remove packet 29146 [08:39:44]ProducePacketName [08:39:44]name=ofd_packets/00029146 [08:39:44]NVStorageDeleteData [08:39:44]Write to MH i2c: 01 00 00 90 80 10 [08:39:44]Write i2c OK [08:39:44]MH_I2C_Read... [08:39:44]Read from MH i2c: 01 [08:39:44]MH_I2C_Read... [08:39:44]Read from MH i2c: 01 07 00 [08:39:44]MH_I2C_Read... [08:39:44]Read from MH i2c: 01 07 00 90 80 00 00 00 00 00 BE 0C E1 [08:39:44]RasterBufferAndPrint [08:39:44]line [08:39:44]line [08:39:44]line [08:39:44]line [08:39:44]line [08:39:44]written 0, free lines is 3268 [08:39:44]MH_Cut [08:39:44]Write to MH i2c: D1 01 00 97 80 01 E9 [08:39:44]Write i2c OK [08:39:44]MH_I2C_Read... [08:39:44]Read from MH i2c: D1 [08:39:44]MH_I2C_Read... [08:39:44]Read from MH i2c: D1 01 00 [08:39:44]MH_I2C_Read... [08:39:44]Read from MH i2c: D1 01 00 97 80 00 E8 [08:39:44]Write to MH i2c: 01 00 00 98 80 18 [08:39:44]Write i2c OK [08:39:44]MH_I2C_Read... [08:39:44]OFD Sender: No OFD packet to send [08:39:45]*** Cut start [08:39:45]*** Partial cut [08:39:45]*** CUTSNS_PIN = 1 [08:39:45]*** CUTSNS_PIN = 0 [08:39:45]*** Brake cut motor [08:39:45]Read from MH i2c: 01 [08:39:45]MH_I2C_Read... [08:39:45]*** Stop cut motor [08:39:45]*** Cut end [08:39:45]Read from MH i2c: 01 07 00 [08:39:45]MH_I2C_Read... [08:39:45]Read from MH i2c: 01 07 00 98 80 00 00 00 00 00 FF 0F 2D [08:39:45]process_action close_receipt done [08:39:45]requested_data is exist [08:39:45]produce_requested_data [08:39:45]requested_item fm.sn is exist - process it [08:39:45]wFMCommunicate request_size=4 [08:39:45]MH_SAM_APDU [08:39:45]CAPDU: 80 11 00 00 [08:39:45]Write to MH i2c: E2 08 00 99 80 80 11 00 00 00 00 00 00 93 [08:39:45]Write i2c OK [08:39:45]MH_I2C_Read... [08:39:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:39:45]Read from MH i2c: E2 [08:39:45]MH_I2C_Read... [08:39:45]Read from MH i2c: E2 17 00 [08:39:45]MH_I2C_Read... [08:39:45]Read from MH i2c: E2 17 00 99 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E2 [08:39:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:39:45]wFMCommunicate OK [08:39:45]requested_item fd.num is exist - process it [08:39:45]SAM_PROTO_GetFieldsCounters [08:39:45]wFMCommunicate request_size=4 [08:39:45]MH_SAM_APDU [08:39:45]CAPDU: 80 13 00 00 [08:39:45]Write to MH i2c: E2 08 00 9A 80 80 13 00 00 00 00 00 00 96 [08:39:45]Write i2c OK [08:39:45]MH_I2C_Read... [08:39:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:39:46]Read from MH i2c: E2 [08:39:46]MH_I2C_Read... [08:39:46]Read from MH i2c: E2 62 00 [08:39:46]MH_I2C_Read... [08:39:46]Read from MH i2c: E2 62 00 9A 80 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DA 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 3B [08:39:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DA 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:39:46]wFMCommunicate OK [08:39:46]SAM_PROTO_GetFieldsCounters done [08:39:46]requested_item shift.num is exist - process it [08:39:46]requested_item shift.opened is exist - process it [08:39:46]req_shift_opened [08:39:46]FM_GetShiftState [08:39:46]SAM_PROTO_GetShiftState [08:39:46]wFMCommunicate request_size=4 [08:39:46]MH_SAM_APDU [08:39:46]CAPDU: 80 13 01 00 [08:39:46]Write to MH i2c: E2 08 00 9B 80 80 13 01 00 00 00 00 00 98 [08:39:46]Write i2c OK [08:39:46]MH_I2C_Read... [08:39:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:39:46]Read from MH i2c: E2 [08:39:46]MH_I2C_Read... [08:39:46]Read from MH i2c: E2 0E 00 [08:39:46]MH_I2C_Read... [08:39:46]Read from MH i2c: E2 0E 00 9B 80 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 44 [08:39:46]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [08:39:46]wFMCommunicate OK [08:39:46]SAM_PROTO_GetShiftState done [08:39:46]FM_GetShiftState done [08:39:46]req_shift_opened done [08:39:46]requested_item shift.open_date is exist - process it [08:39:46]req_shift_open_date [08:39:46]req_shift_open_date done [08:39:46]produce_requested_data done [08:39:46]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29146,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [08:39:46]process_action_free close_receipt [08:39:46]json_value_free [08:39:46]json_value_free done [08:39:46]process_json_proto returns [08:39:46]Send response to host [08:39:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29146,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [08:39:46]free response buf [08:39:46]execute_script done [08:39:46]execute_script returns [08:39:46]free content buf [08:39:46]Sock 7.Close socket [08:39:46]Sock 7.Thread stoped [08:39:46]accept exits with 9 [08:39:46]New connection [08:39:46]New thread 3066928484 created [08:39:46]Thread 3066785124 joined [08:39:46]Waiting for new connection... [08:39:46] Sock 9.Parse request [08:39:46]Sock 9.Check first char [08:39:46]Sock 9.First char is OK [08:39:46]request: POST /json_proto HTTP/1.0 [08:39:46]Method: POST [08:39:46]URL: /json_proto [08:39:46]Method is POST - this is cgi request [08:39:46]url: /json_proto [08:39:46]query_string will be loaded in cgi processing [08:39:46]execute_cgi json_proto POST (null) [08:39:46]execute_cgi path=json_proto method=POST [08:39:46]POST find Content-Length [08:39:46]Host: 172.17.33.3:8080 [08:39:46]Content-Length: 685 [08:39:46]Content-Type: application/json [08:39:46] [08:39:46]POST finish read [08:39:46]Found Content-Length = 685 [08:39:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347515", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 30.400, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:39:46]execute_script... [08:39: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)347515", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 30.400, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:39:46]POST & json_proto [08:39:46]process_json_proto [08:39:46]json parsed OK: [08:39:46]protocol is kg_v1.0 [08:39:46]action value=close_receipt [08:39:46]process_action close_receipt [08:39:46]cmd_close_receipt [08:39:46]MH_GetDate [08:39:46]Write to MH i2c: F0 00 00 9C 80 0B [08:39:46]Write i2c OK [08:39:46]MH_I2C_Read... [08:39:46]Read from MH i2c: F0 [08:39:46]MH_I2C_Read... [08:39:46]Read from MH i2c: F0 09 00 [08:39:46]MH_I2C_Read... [08:39:46]Read from MH i2c: F0 09 00 9C 80 00 5B 96 1B 66 23 5B 8F 65 F8 [08:39:46]GetLastDocTimeStamp 1713083991 [08:39:46]current date 1713083995 [08:39:46]FM_GetShiftState [08:39:46]SAM_PROTO_GetShiftState [08:39:46]wFMCommunicate request_size=4 [08:39:46]MH_SAM_APDU [08:39:46]CAPDU: 80 13 01 00 [08:39:46]Write to MH i2c: E2 08 00 9D 80 80 13 01 00 00 00 00 00 9A [08:39:46]Write i2c OK [08:39:46]MH_I2C_Read... [08:39:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:39:46]Read from MH i2c: E2 [08:39:46]MH_I2C_Read... [08:39:46]Read from MH i2c: E2 0E 00 [08:39:46]MH_I2C_Read... [08:39:46]Read from MH i2c: E2 0E 00 9D 80 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 46 [08:39:46]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [08:39:46]wFMCommunicate OK [08:39:46]SAM_PROTO_GetShiftState done [08:39:46]FM_GetShiftState done [08:39:46]opened in 1713053951 [08:39:46]opened+sec_in_day 1713140351 [08:39:46]quantity*price = 100016 [08:39:46]sum+1 = 100017 [08:39:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 57 14.04.2024 08:39 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29147 ФПД: 235048836095582 1/tax-web-control/client/api/v1/ticket?date=20240414T083955&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29147&fm=235048836095582&tin=02508201610067®Number=0000138879044617&sum=100000 [08:39:47]StoreToDocumentArchive [08:39:47]shift 116 fd 29147 [08:39:47]save to /storage/0116/doc_00029147 [08:39:47]save last doc name /storage/0116/doc_00029147 to /storage/kkm_last_doc_name [08:39:47]save OK [08:39:47]Clear old archive folders... [08:39:47]ProcessDocumentItem done err = 0, tmpTLVsize=250 [08:39:47]tlvbuf is 012246F0 [08:39:47]SAM_PROTO_ClearQueue [08:39:47]wFMCommunicate request_size=4 [08:39:47]MH_SAM_APDU [08:39:47]CAPDU: 80 09 00 00 [08:39:47]Write to MH i2c: E2 08 00 AA 80 80 09 00 00 00 00 00 00 9C [08:39:47]Write i2c OK [08:39:47]MH_I2C_Read... [08:39:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:39:47]Read from MH i2c: E2 [08:39:47]MH_I2C_Read... [08:39:47]Read from MH i2c: E2 03 00 [08:39:47]MH_I2C_Read... [08:39:47]Read from MH i2c: E2 03 00 AA 80 00 90 00 9E [08:39:47]RAPDU: 90 00 [08:39:47]wFMCommunicate OK [08:39:47]SAM_PROTO_ClearQueue done [08:39:47]KKMCreateOFDPacket [08:39:47]OFDProtocolAddRootSTLVToBuf [08:39:47]FM_MakeSignedData [08:39:47]FM_MakeSignedData [08:39:47]SAM_PROTO_SignData [08:39:47]wFMCommunicate request_size=4 [08:39:47]MH_SAM_APDU [08:39:47]CAPDU: 80 0D 01 02 [08:39:47]Write to MH i2c: E2 08 00 AB 80 80 0D 01 02 00 00 00 00 A4 [08:39:47]Write i2c OK [08:39:47]MH_I2C_Read... [08:39:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:39:47]Read from MH i2c: E2 [08:39:47]MH_I2C_Read... [08:39:47]Read from MH i2c: E2 03 00 [08:39:47]MH_I2C_Read... [08:39:47]Read from MH i2c: E2 03 00 AB 80 00 90 00 9F [08:39:47]RAPDU: 90 00 [08:39:47]wFMCommunicate OK [08:39:47]wFMCommunicate request_size=255 [08:39:47]MH_SAM_APDU [08:39:47]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 5B 96 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DB 71 00 00 35 04 06 00 D5 C6 [08:39:47]Write to MH i2c: E2 02 01 AC 80 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 5B 96 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DB 71 00 00 35 04 06 00 D5 C6 00 00 40 [08:39:47]Write i2c OK [08:39:47]MH_I2C_Read... [08:39:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:39:48]Read from MH i2c: E2 [08:39:48]MH_I2C_Read... [08:39:48]Read from MH i2c: E2 03 00 [08:39:48]MH_I2C_Read... [08:39:48]Read from MH i2c: E2 03 00 AC 80 00 90 00 A0 [08:39:48]RAPDU: 90 00 [08:39:48]wFMCommunicate OK [08:39:48]wFMCommunicate request_size=9 [08:39:48]MH_SAM_APDU [08:39:48]CAPDU: 80 0D 02 02 04 92 61 5E 5E [08:39:48]Write to MH i2c: E2 0C 00 AD 80 80 0D 02 02 04 00 92 61 5E 5E 00 00 5E [08:39:48]Write i2c OK [08:39:48]MH_I2C_Read... [08:39:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:39:48]Read from MH i2c: E2 [08:39:48]MH_I2C_Read... [08:39:48]Read from MH i2c: E2 03 00 [08:39:48]MH_I2C_Read... [08:39:48]Read from MH i2c: E2 03 00 AD 80 00 90 00 A1 [08:39:48]RAPDU: 90 00 [08:39:48]wFMCommunicate OK [08:39:48]wFMCommunicate request_size=4 [08:39:48]MH_SAM_APDU [08:39:48]CAPDU: 80 0D 03 02 [08:39:48]Write to MH i2c: E2 08 00 AE 80 80 0D 03 02 00 00 00 00 A9 [08:39:48]Write i2c OK [08:39:48]MH_I2C_Read... [08:39:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:39:48]Read from MH i2c: E2 [08:39:48]MH_I2C_Read... [08:39:48]Read from MH i2c: E2 0B 00 [08:39:48]MH_I2C_Read... [08:39:48]Read from MH i2c: E2 0B 00 AE 80 00 32 72 A1 F1 A0 35 54 B0 90 00 B9 [08:39:48]RAPDU: 32 72 A1 F1 A0 35 54 B0 90 00 [08:39:48]wFMCommunicate OK [08:39:48]SAM_PROTO_SignData done [08:39:48]FM_MakeSignedData done [08:39:48]CreateOFDProtocolMessage [08:39:48]wFMCommunicate request_size=4 [08:39:48]MH_SAM_APDU [08:39:48]CAPDU: 80 11 00 00 [08:39:48]Write to MH i2c: E2 08 00 AF 80 80 11 00 00 00 00 00 00 A9 [08:39:48]Write i2c OK [08:39:48]MH_I2C_Read... [08:39:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:39:48]Read from MH i2c: E2 [08:39:48]MH_I2C_Read... [08:39:48]Read from MH i2c: E2 17 00 [08:39:48]MH_I2C_Read... [08:39:48]Read from MH i2c: E2 17 00 AF 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F8 [08:39:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:39:48]wFMCommunicate OK [08:39:48]CreateOFDProtocolMessage done [08:39:48]OFDSenderStorePacket 29147 [08:39:48]StoreOFDPacket docnum=29147 [08:39:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 1F EE 06 01 A7 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 5B 96 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DB 71 00 00 35 04 06 00 D5 C6 92 61 5E 5E 32 72 A1 F1 A0 35 54 B0 [08:39:48]CheckFolder [08:39:48]dirname=/storage/ofd_packets [08:39:48]CheckFolder done [08:39:48]ProducePacketName [08:39:48]name=ofd_packets/00029147 [08:39:48]NVStorageSaveData ofd_packets/00029147 [08:39:48]File name is /storage/ofd_packets/00029147 [08:39:48]Write 300 bytes [08:39:48]NVStorageSaveData done [08:39:48]OFDSenderStorePacket done [08:39:48]KKMCreateOFDPacket done [08:39:48]NVStorageSaveData kkm_last_timestamp [08:39:48]File name is /storage/kkm_last_timestamp [08:39:48]Write 4 bytes [08:39:48]NVStorageSaveData done [08:39:48]ExternCall_PrintAddStr [08:39:48]wPrintStart [08:39:48]Write to MH i2c: 01 00 00 B0 80 30 [08:39:48]Write i2c OK [08:39:48]MH_I2C_Read... [08:39:48]Read from MH i2c: 01 [08:39:48]MH_I2C_Read... [08:39:48]Read from MH i2c: 01 07 00 [08:39:48]MH_I2C_Read... [08:39:48]Read from MH i2c: 01 07 00 B0 80 00 00 00 00 00 FF 0F 45 [08:39:48]RasterBufferAndPrint [08:39:48]line Счет N : (1)347515 [08:39:48]line ИНН: 02508201610067 [08:39:48]line Контрольно-Кассовый Чек [08:39:48]line ПРОДАЖА [08:39:48]line ТРК (МРК, ГНК) : 71 [08:39:48]line Товар: 2711129700 [08:39:48]line ГАЗ-К-5 [08:39:48]line 30.400 * 32.90 [08:39:48]line = 1000.16 [08:39:48]line НДС 12% НСП 1% [08:39:48]line > о реализуемом товаре [08:39:48]line ОКРУГЛЕНИЕ: -0.16 [08:39:48]line ИТОГО: 1000.00 [08:39:48]line Внесено: 1000.00 [08:39:48]line СДАЧА: 0.00 [08:39:48]line НСП 1% : 8.85 [08:39:48]line НДС 12% : 106.21 [08:39:48]line Наличными: 1000.00 [08:39:48]line Безнал.: 0.00 [08:39:48]line Место: АЗС № 108 "Партнер Нефть" [08:39:48]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:39:48]line СНО: Общий режим [08:39:48]line Чек 57 14.04.2024 08:39 [08:39:48]line Смена: 116 ФФД: 1.0 [08:39:48]line ЗНМ: 0300000027 [08:39:48]line РНМ: 0000138879044617 [08:39:48]line Версия ККМ: 001 [08:39:48]line ФМ: 0000000000963154 [08:39:48]line ФД: 29147 [08:39:48]line ФПД: 235048836095582 [08:39:48]line 1/tax-web-control/client/api/v1/ticket?date=20240414T083955&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29147&fm=235048836095582&tin=02508201610067®Number=0000138879044617&sum=100000 [08:39:48]OFD Sender: Processing packet 29147 [packets to send 8, broken 7] [08:39:48]ProducePacketName [08:39:48]name=ofd_packets/00029147 [08:39:48]OFD Sender: To server: pG, [08:39:48]CommunicateWithHost lk.salyk.kg:30040 [08:39:48]ConnectInit lk.salyk.kg [08:39:48]written 0, free lines is 4095 [08:39:48]Connected sock=10 [08:39:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 1F EE 06 01 A7 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 5B 96 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DB 71 00 00 35 04 06 00 D5 C6 92 61 5E 5E 32 72 A1 F1 A0 35 54 B0 [08:39:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 4A BF 47 00 17 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 39 36 33 31 35 34 10 04 04 00 DB 71 00 00 F4 03 04 00 00 41 1B 66 B6 04 01 00 00 70 F9 FA C9 30 EB 5F 59 [08:39:49]CommunicateWithHost err = 0 [08:39:49]CheckOFDResponse [08:39:49]1017 (14) - 77093643461234 [08:39:49]1041 (16) - 0000000000963154 [08:39:49]1040 (4) - 29147 [08:39:49]1012 (4) - 14.04.2024 02:35 [08:39:49]1206 (1) - 0 [08:39:49]OFD Sender: Remove packet 29147 [08:39:49]ProducePacketName [08:39:49]name=ofd_packets/00029147 [08:39:49]NVStorageDeleteData [08:39:49]Write to MH i2c: 01 00 00 DA 80 5A [08:39:49]Write i2c OK [08:39:49]MH_I2C_Read... [08:39:49]Read from MH i2c: 01 [08:39:49]MH_I2C_Read... [08:39:49]Read from MH i2c: 01 07 00 [08:39:49]MH_I2C_Read... [08:39:49]Read from MH i2c: 01 07 00 DA 80 00 00 00 00 00 D0 0C 3D [08:39:49]RasterBufferAndPrint [08:39:49]line [08:39:49]line [08:39:49]line [08:39:49]line [08:39:49]line [08:39:49]written 0, free lines is 3294 [08:39:49]MH_Cut [08:39:49]Write to MH i2c: D1 01 00 E1 80 01 33 [08:39:49]Write i2c OK [08:39:49]MH_I2C_Read... [08:39:49]Read from MH i2c: D1 [08:39:49]MH_I2C_Read... [08:39:49]Read from MH i2c: D1 01 00 [08:39:49]MH_I2C_Read... [08:39:49]Read from MH i2c: D1 01 00 E1 80 00 32 [08:39:49]Write to MH i2c: 01 00 00 E2 80 62 [08:39:49]Write i2c OK [08:39:49]MH_I2C_Read... [08:39:49]OFD Sender: No OFD packet to send [08:39:50]*** Cut start [08:39:50]*** Partial cut [08:39:50]*** CUTSNS_PIN = 1 [08:39:50]*** CUTSNS_PIN = 0 [08:39:50]*** Brake cut motor [08:39:50]Read from MH i2c: 01 [08:39:50]MH_I2C_Read... [08:39:50]*** Stop cut motor [08:39:50]*** Cut end [08:39:50]Read from MH i2c: 01 07 00 [08:39:50]MH_I2C_Read... [08:39:50]Read from MH i2c: 01 07 00 E2 80 00 00 00 00 00 FF 0F 77 [08:39:50]process_action close_receipt done [08:39:50]requested_data is exist [08:39:50]produce_requested_data [08:39:50]requested_item fm.sn is exist - process it [08:39:50]wFMCommunicate request_size=4 [08:39:50]MH_SAM_APDU [08:39:50]CAPDU: 80 11 00 00 [08:39:50]Write to MH i2c: E2 08 00 E3 80 80 11 00 00 00 00 00 00 DD [08:39:50]Write i2c OK [08:39:50]MH_I2C_Read... [08:39:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:39:50]Read from MH i2c: E2 [08:39:50]MH_I2C_Read... [08:39:50]Read from MH i2c: E2 17 00 [08:39:50]MH_I2C_Read... [08:39:50]Read from MH i2c: E2 17 00 E3 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 2C [08:39:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:39:50]wFMCommunicate OK [08:39:50]requested_item fd.num is exist - process it [08:39:50]SAM_PROTO_GetFieldsCounters [08:39:50]wFMCommunicate request_size=4 [08:39:50]MH_SAM_APDU [08:39:50]CAPDU: 80 13 00 00 [08:39:50]Write to MH i2c: E2 08 00 E4 80 80 13 00 00 00 00 00 00 E0 [08:39:50]Write i2c OK [08:39:50]MH_I2C_Read... [08:39:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:39:50]Read from MH i2c: E2 [08:39:50]MH_I2C_Read... [08:39:50]Read from MH i2c: E2 62 00 [08:39:50]MH_I2C_Read... [08:39:50]Read from MH i2c: E2 62 00 E4 80 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DB 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 89 [08:39:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DB 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:39:50]wFMCommunicate OK [08:39:50]SAM_PROTO_GetFieldsCounters done [08:39:50]requested_item shift.num is exist - process it [08:39:50]requested_item shift.opened is exist - process it [08:39:50]req_shift_opened [08:39:50]FM_GetShiftState [08:39:50]SAM_PROTO_GetShiftState [08:39:50]wFMCommunicate request_size=4 [08:39:50]MH_SAM_APDU [08:39:50]CAPDU: 80 13 01 00 [08:39:50]Write to MH i2c: E2 08 00 E5 80 80 13 01 00 00 00 00 00 E2 [08:39:50]Write i2c OK [08:39:50]MH_I2C_Read... [08:39:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:39:50]Read from MH i2c: E2 [08:39:50]MH_I2C_Read... [08:39:50]Read from MH i2c: E2 0E 00 [08:39:50]MH_I2C_Read... [08:39:50]Read from MH i2c: E2 0E 00 E5 80 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 8E [08:39:50]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [08:39:50]wFMCommunicate OK [08:39:50]SAM_PROTO_GetShiftState done [08:39:50]FM_GetShiftState done [08:39:50]req_shift_opened done [08:39:50]requested_item shift.open_date is exist - process it [08:39:50]req_shift_open_date [08:39:50]req_shift_open_date done [08:39:50]produce_requested_data done [08:39:50]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29147,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [08:39:50]process_action_free close_receipt [08:39:50]json_value_free [08:39:50]json_value_free done [08:39:50]process_json_proto returns [08:39:50]Send response to host [08:39:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29147,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [08:39:50]free response buf [08:39:50]execute_script done [08:39:50]execute_script returns [08:39:50]free content buf [08:39:50]Sock 9.Close socket [08:39:50]Sock 9.Thread stoped [08:39:54]OFD Sender: No OFD packet to send [08:39:59]OFD Sender: No OFD packet to send [08:40:04]OFD Sender: No OFD packet to send [08:40:09]OFD Sender: No OFD packet to send [08:40:14]OFD Sender: No OFD packet to send [08:40:19]OFD Sender: No OFD packet to send [08:40:24]OFD Sender: No OFD packet to send [08:40:29]OFD Sender: No OFD packet to send [08:40:34]OFD Sender: No OFD packet to send [08:40:39]OFD Sender: No OFD packet to send [08:40:44]OFD Sender: No OFD packet to send [08:40:49]OFD Sender: No OFD packet to send [08:40:54]OFD Sender: No OFD packet to send [08:40:59]OFD Sender: No OFD packet to send [08:41:04]OFD Sender: No OFD packet to send [08:41:09]OFD Sender: No OFD packet to send [08:41:14]OFD Sender: No OFD packet to send [08:41:19]OFD Sender: No OFD packet to send [08:41:24]OFD Sender: No OFD packet to send [08:41:29]accept exits with 7 [08:41:29]New connection [08:41:29]New thread 3066785124 created [08:41:29]Thread 3066928484 joined [08:41:29]Waiting for new connection... [08:41:29] Sock 7.Parse request [08:41:29]Sock 7.Check first char [08:41:29]Sock 7.First char is OK [08:41:29]request: POST /json_proto HTTP/1.0 [08:41:29]Method: POST [08:41:29]URL: /json_proto [08:41:29]Method is POST - this is cgi request [08:41:29]url: /json_proto [08:41:29]query_string will be loaded in cgi processing [08:41:29]execute_cgi json_proto POST (null) [08:41:29]execute_cgi path=json_proto method=POST [08:41:29]POST find Content-Length [08:41:29]Host: 172.17.33.3:8080 [08:41:29]Content-Length: 642 [08:41:29]Content-Type: application/json [08:41:29] [08:41:29]POST finish read [08:41:29]Found Content-Length = 642 [08:41:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347518", "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" : 30.000, "sum" : 1929.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1929.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:41:29]execute_script... [08:41: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)347518", "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" : 30.000, "sum" : 1929.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1929.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:41:29]POST & json_proto [08:41:29]process_json_proto [08:41:29]json parsed OK: [08:41:29]protocol is kg_v1.0 [08:41:29]action value=close_receipt [08:41:29]process_action close_receipt [08:41:29]cmd_close_receipt [08:41:29]MH_GetDate [08:41:29]Write to MH i2c: F0 00 00 E6 80 55 [08:41:29]Write i2c OK [08:41:29]MH_I2C_Read... [08:41:29]Read from MH i2c: F0 [08:41:29]MH_I2C_Read... [08:41:29]Read from MH i2c: F0 09 00 [08:41:29]MH_I2C_Read... [08:41:29]Read from MH i2c: F0 09 00 E6 80 00 C2 96 1B 66 23 5B 8F 65 A9 [08:41:29]GetLastDocTimeStamp 1713083995 [08:41:29]current date 1713084098 [08:41:29]FM_GetShiftState [08:41:29]SAM_PROTO_GetShiftState [08:41:29]wFMCommunicate request_size=4 [08:41:29]MH_SAM_APDU [08:41:29]CAPDU: 80 13 01 00 [08:41:29]Write to MH i2c: E2 08 00 E7 80 80 13 01 00 00 00 00 00 E4 [08:41:29]Write i2c OK [08:41:29]MH_I2C_Read... [08:41:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:41:29]Read from MH i2c: E2 [08:41:29]MH_I2C_Read... [08:41:29]Read from MH i2c: E2 0E 00 [08:41:29]MH_I2C_Read... [08:41:29]Read from MH i2c: E2 0E 00 E7 80 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 90 [08:41:29]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [08:41:29]wFMCommunicate OK [08:41:29]SAM_PROTO_GetShiftState done [08:41:29]FM_GetShiftState done [08:41:29]opened in 1713053951 [08:41:29]opened+sec_in_day 1713140351 [08:41:29]quantity*price = 192900 [08:41:29]sum+1 = 192901 [08:41:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1929.00 НСП 1% : 17.07 НДС 12% : 204.85 Наличными: 1929.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 58 14.04.2024 08:41 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29148 ФПД: 34230723555053 1/tax-web-control/client/api/v1/ticket?date=20240414T084138&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29148&fm=34230723555053&tin=02508201610067®Number=0000138879044617&sum=192900 [08:41:30]StoreToDocumentArchive [08:41:30]shift 116 fd 29148 [08:41:30]save to /storage/0116/doc_00029148 [08:41:30]save last doc name /storage/0116/doc_00029148 to /storage/kkm_last_doc_name [08:41:30]save OK [08:41:30]Clear old archive folders... [08:41:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:41:30]tlvbuf is 011F8550 [08:41:30]SAM_PROTO_ClearQueue [08:41:30]wFMCommunicate request_size=4 [08:41:30]MH_SAM_APDU [08:41:30]CAPDU: 80 09 00 00 [08:41:30]Write to MH i2c: E2 08 00 F4 80 80 09 00 00 00 00 00 00 E6 [08:41:30]Write i2c OK [08:41:30]MH_I2C_Read... [08:41:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:41:30]Read from MH i2c: E2 [08:41:30]MH_I2C_Read... [08:41:30]Read from MH i2c: E2 03 00 [08:41:30]MH_I2C_Read... [08:41:30]Read from MH i2c: E2 03 00 F4 80 00 90 00 E8 [08:41:30]RAPDU: 90 00 [08:41:30]wFMCommunicate OK [08:41:30]SAM_PROTO_ClearQueue done [08:41:30]KKMCreateOFDPacket [08:41:30]OFDProtocolAddRootSTLVToBuf [08:41:30]FM_MakeSignedData [08:41:30]FM_MakeSignedData [08:41:30]SAM_PROTO_SignData [08:41:30]wFMCommunicate request_size=4 [08:41:30]MH_SAM_APDU [08:41:30]CAPDU: 80 0D 01 02 [08:41:30]Write to MH i2c: E2 08 00 F5 80 80 0D 01 02 00 00 00 00 EE [08:41:30]Write i2c OK [08:41:30]MH_I2C_Read... [08:41:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:41:30]Read from MH i2c: E2 [08:41:30]MH_I2C_Read... [08:41:30]Read from MH i2c: E2 03 00 [08:41:30]MH_I2C_Read... [08:41:30]Read from MH i2c: E2 03 00 F5 80 00 90 00 E9 [08:41:30]RAPDU: 90 00 [08:41:30]wFMCommunicate OK [08:41:30]wFMCommunicate request_size=255 [08:41:30]MH_SAM_APDU [08:41: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 30 75 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 84 F1 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 F1 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 05 50 00 00 00 00 07 04 06 00 84 F1 02 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 C2 96 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DC 71 00 00 35 04 06 00 1F [08:41:30]Write to MH i2c: E2 02 01 F6 80 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 75 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 84 F1 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 F1 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 05 50 00 00 00 00 07 04 06 00 84 F1 02 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 C2 96 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DC 71 00 00 35 04 06 00 1F 00 00 4F [08:41:30]Write i2c OK [08:41:30]MH_I2C_Read... [08:41:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:41:30]Read from MH i2c: E2 [08:41:30]MH_I2C_Read... [08:41:30]Read from MH i2c: E2 03 00 [08:41:30]MH_I2C_Read... [08:41:30]Read from MH i2c: E2 03 00 F6 80 00 90 00 EA [08:41:30]RAPDU: 90 00 [08:41:30]wFMCommunicate OK [08:41:30]wFMCommunicate request_size=10 [08:41:30]MH_SAM_APDU [08:41:30]CAPDU: 80 0D 02 02 05 21 F6 1E 2E ED [08:41:30]Write to MH i2c: E2 0D 00 F7 80 80 0D 02 02 05 00 21 F6 1E 2E ED 00 00 4B [08:41:30]Write i2c OK [08:41:30]MH_I2C_Read... [08:41:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:41:31]Read from MH i2c: E2 [08:41:31]MH_I2C_Read... [08:41:31]Read from MH i2c: E2 03 00 [08:41:31]MH_I2C_Read... [08:41:31]Read from MH i2c: E2 03 00 F7 80 00 90 00 EB [08:41:31]RAPDU: 90 00 [08:41:31]wFMCommunicate OK [08:41:31]wFMCommunicate request_size=4 [08:41:31]MH_SAM_APDU [08:41:31]CAPDU: 80 0D 03 02 [08:41:31]Write to MH i2c: E2 08 00 F8 80 80 0D 03 02 00 00 00 00 F3 [08:41:31]Write i2c OK [08:41:31]MH_I2C_Read... [08:41:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:41:31]Read from MH i2c: E2 [08:41:31]MH_I2C_Read... [08:41:31]Read from MH i2c: E2 0B 00 [08:41:31]MH_I2C_Read... [08:41:31]Read from MH i2c: E2 0B 00 F8 80 00 AF 92 1C DA C7 C4 3C 32 90 00 24 [08:41:31]RAPDU: AF 92 1C DA C7 C4 3C 32 90 00 [08:41:31]wFMCommunicate OK [08:41:31]SAM_PROTO_SignData done [08:41:31]FM_MakeSignedData done [08:41:31]CreateOFDProtocolMessage [08:41:31]wFMCommunicate request_size=4 [08:41:31]MH_SAM_APDU [08:41:31]CAPDU: 80 11 00 00 [08:41:31]Write to MH i2c: E2 08 00 F9 80 80 11 00 00 00 00 00 00 F3 [08:41:31]Write i2c OK [08:41:31]MH_I2C_Read... [08:41:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:41:31]Read from MH i2c: E2 [08:41:31]MH_I2C_Read... [08:41:31]Read from MH i2c: E2 17 00 [08:41:31]MH_I2C_Read... [08:41:31]Read from MH i2c: E2 17 00 F9 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 42 [08:41:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:41:31]wFMCommunicate OK [08:41:31]CreateOFDProtocolMessage done [08:41:31]OFDSenderStorePacket 29148 [08:41:31]StoreOFDPacket docnum=29148 [08:41:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 3E 10 07 01 90 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 30 75 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 84 F1 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 F1 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 05 50 00 00 00 00 07 04 06 00 84 F1 02 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 C2 96 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DC 71 00 00 35 04 06 00 1F 21 F6 1E 2E ED AF 92 1C DA C7 C4 3C 32 [08:41:31]CheckFolder [08:41:31]dirname=/storage/ofd_packets [08:41:31]CheckFolder done [08:41:31]ProducePacketName [08:41:31]name=ofd_packets/00029148 [08:41:31]NVStorageSaveData ofd_packets/00029148 [08:41:31]File name is /storage/ofd_packets/00029148 [08:41:31]Write 301 bytes [08:41:31]NVStorageSaveData done [08:41:31]OFDSenderStorePacket done [08:41:31]KKMCreateOFDPacket done [08:41:31]NVStorageSaveData kkm_last_timestamp [08:41:31]File name is /storage/kkm_last_timestamp [08:41:31]Write 4 bytes [08:41:31]NVStorageSaveData done [08:41:31]ExternCall_PrintAddStr [08:41:31]wPrintStart [08:41:31]Write to MH i2c: 01 00 00 FA 80 7A [08:41:31]Write i2c OK [08:41:31]MH_I2C_Read... [08:41:31]Read from MH i2c: 01 [08:41:31]MH_I2C_Read... [08:41:31]Read from MH i2c: 01 07 00 [08:41:31]MH_I2C_Read... [08:41:31]Read from MH i2c: 01 07 00 FA 80 00 00 00 00 00 FF 0F 8F [08:41:31]RasterBufferAndPrint [08:41:31]line Счет N : (1)347518 [08:41:31]line ИНН: 02508201610067 [08:41:31]line Контрольно-Кассовый Чек [08:41:31]line ПРОДАЖА [08:41:31]line ТРК (МРК, ГНК) : 42 [08:41:31]line Товар: 2710124130 [08:41:31]line Аи-92-К-5 [08:41:31]line 30.000 * 64.30 [08:41:31]line = 1929.00 [08:41:31]line НДС 12% НСП 1% [08:41:31]line > о реализуемом товаре [08:41:31]line ИТОГО: 1929.00 [08:41:31]line НСП 1% : 17.07 [08:41:31]line НДС 12% : 204.85 [08:41:31]line Наличными: 1929.00 [08:41:31]line Безнал.: 0.00 [08:41:31]line Место: АЗС № 108 "Партнер Нефть" [08:41:31]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:41:31]line СНО: Общий режим [08:41:31]line Чек 58 14.04.2024 08:41 [08:41:31]line Смена: 116 ФФД: 1.0 [08:41:31]line ЗНМ: 0300000027 [08:41:31]line РНМ: 0000138879044617 [08:41:31]line Версия ККМ: 001 [08:41:31]line ФМ: 0000000000963154 [08:41:31]line ФД: 29148 [08:41:31]line ФПД: 34230723555053 [08:41:31]line 1/tax-web-control/client/api/v1/ticket?date=20240414T084138&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29148&fm=34230723555053&tin=02508201610067®Number=0000138879044617&sum=192900 [08:41:31]OFD Sender: Processing packet 29148 [packets to send 8, broken 7] [08:41:31]ProducePacketName [08:41:31]name=ofd_packets/00029148 [08:41:31]OFD Sender: To server: pG, [08:41:31]CommunicateWithHost lk.salyk.kg:30040 [08:41:31]ConnectInit lk.salyk.kg [08:41:31]written 0, free lines is 4095 [08:41:31]Connected sock=10 [08:41:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 3E 10 07 01 90 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 30 75 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 84 F1 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 F1 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 05 50 00 00 00 00 07 04 06 00 84 F1 02 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 C2 96 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DC 71 00 00 35 04 06 00 1F 21 F6 1E 2E ED AF 92 1C DA C7 C4 3C 32 [08:41:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 7A E6 47 00 D9 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 39 36 33 31 35 34 10 04 04 00 DC 71 00 00 F4 03 04 00 67 41 1B 66 B6 04 01 00 00 42 EB C3 72 D2 71 61 7D [08:41:31]CommunicateWithHost err = 0 [08:41:31]CheckOFDResponse [08:41:31]1017 (14) - 77093643461234 [08:41:31]1041 (16) - 0000000000963154 [08:41:31]1040 (4) - 29148 [08:41:31]1012 (4) - 14.04.2024 02:37 [08:41:31]1206 (1) - 0 [08:41:31]OFD Sender: Remove packet 29148 [08:41:31]ProducePacketName [08:41:31]name=ofd_packets/00029148 [08:41:31]NVStorageDeleteData [08:41:31]Write to MH i2c: 01 00 00 21 81 A2 [08:41:31]Write i2c OK [08:41:31]MH_I2C_Read... [08:41:31]Read from MH i2c: 01 [08:41:31]MH_I2C_Read... [08:41:31]Read from MH i2c: 01 07 00 [08:41:31]MH_I2C_Read... [08:41:31]Read from MH i2c: 01 07 00 21 81 00 00 00 00 00 FE 0C B3 [08:41:31]RasterBufferAndPrint [08:41:31]line [08:41:31]line [08:41:31]line [08:41:31]line [08:41:31]line [08:41:31]written 0, free lines is 3330 [08:41:31]MH_Cut [08:41:31]Write to MH i2c: D1 01 00 28 81 01 7B [08:41:31]Write i2c OK [08:41:31]MH_I2C_Read... [08:41:31]Read from MH i2c: D1 [08:41:31]MH_I2C_Read... [08:41:31]Read from MH i2c: D1 01 00 [08:41:31]MH_I2C_Read... [08:41:31]Read from MH i2c: D1 01 00 28 81 00 7A [08:41:31]Write to MH i2c: 01 00 00 29 81 AA [08:41:31]Write i2c OK [08:41:31]MH_I2C_Read... [08:41:32]OFD Sender: No OFD packet to send [08:41:32]*** Cut start [08:41:32]*** Partial cut [08:41:32]*** CUTSNS_PIN = 1 [08:41:32]*** CUTSNS_PIN = 0 [08:41:32]*** Brake cut motor [08:41:33]Read from MH i2c: 01 [08:41:33]MH_I2C_Read... [08:41:33]*** Stop cut motor [08:41:33]*** Cut end [08:41:33]Read from MH i2c: 01 07 00 [08:41:33]MH_I2C_Read... [08:41:33]Read from MH i2c: 01 07 00 29 81 00 00 00 00 00 FF 0F BF [08:41:33]process_action close_receipt done [08:41:33]requested_data is exist [08:41:33]produce_requested_data [08:41:33]requested_item fm.sn is exist - process it [08:41:33]wFMCommunicate request_size=4 [08:41:33]MH_SAM_APDU [08:41:33]CAPDU: 80 11 00 00 [08:41:33]Write to MH i2c: E2 08 00 2A 81 80 11 00 00 00 00 00 00 25 [08:41:33]Write i2c OK [08:41:33]MH_I2C_Read... [08:41:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:41:33]Read from MH i2c: E2 [08:41:33]MH_I2C_Read... [08:41:33]Read from MH i2c: E2 17 00 [08:41:33]MH_I2C_Read... [08:41:33]Read from MH i2c: E2 17 00 2A 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 74 [08:41:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:41:33]wFMCommunicate OK [08:41:33]requested_item fd.num is exist - process it [08:41:33]SAM_PROTO_GetFieldsCounters [08:41:33]wFMCommunicate request_size=4 [08:41:33]MH_SAM_APDU [08:41:33]CAPDU: 80 13 00 00 [08:41:33]Write to MH i2c: E2 08 00 2B 81 80 13 00 00 00 00 00 00 28 [08:41:33]Write i2c OK [08:41:33]MH_I2C_Read... [08:41:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:41:33]Read from MH i2c: E2 [08:41:33]MH_I2C_Read... [08:41:33]Read from MH i2c: E2 62 00 [08:41:33]MH_I2C_Read... [08:41:33]Read from MH i2c: E2 62 00 2B 81 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DC 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 D5 [08:41:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DC 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:41:33]wFMCommunicate OK [08:41:33]SAM_PROTO_GetFieldsCounters done [08:41:33]requested_item shift.num is exist - process it [08:41:33]requested_item shift.opened is exist - process it [08:41:33]req_shift_opened [08:41:33]FM_GetShiftState [08:41:33]SAM_PROTO_GetShiftState [08:41:33]wFMCommunicate request_size=4 [08:41:33]MH_SAM_APDU [08:41:33]CAPDU: 80 13 01 00 [08:41:33]Write to MH i2c: E2 08 00 2C 81 80 13 01 00 00 00 00 00 2A [08:41:33]Write i2c OK [08:41:33]MH_I2C_Read... [08:41:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:41:33]Read from MH i2c: E2 [08:41:33]MH_I2C_Read... [08:41:33]Read from MH i2c: E2 0E 00 [08:41:33]MH_I2C_Read... [08:41:33]Read from MH i2c: E2 0E 00 2C 81 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 D6 [08:41:33]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [08:41:33]wFMCommunicate OK [08:41:33]SAM_PROTO_GetShiftState done [08:41:33]FM_GetShiftState done [08:41:33]req_shift_opened done [08:41:33]requested_item shift.open_date is exist - process it [08:41:33]req_shift_open_date [08:41:33]req_shift_open_date done [08:41:33]produce_requested_data done [08:41:33]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29148,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [08:41:33]process_action_free close_receipt [08:41:33]json_value_free [08:41:33]json_value_free done [08:41:33]process_json_proto returns [08:41:33]Send response to host [08:41:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29148,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [08:41:33]free response buf [08:41:33]execute_script done [08:41:33]execute_script returns [08:41:33]free content buf [08:41:33]Sock 7.Close socket [08:41:33]Sock 7.Thread stoped [08:41:33]accept exits with 9 [08:41:33]New connection [08:41:33]New thread 3066928484 created [08:41:33]Thread 3066785124 joined [08:41:33]Waiting for new connection... [08:41:33] Sock 9.Parse request [08:41:33]Sock 9.Check first char [08:41:33]Sock 9.First char is OK [08:41:33]request: POST /json_proto HTTP/1.0 [08:41:33]Method: POST [08:41:33]URL: /json_proto [08:41:33]Method is POST - this is cgi request [08:41:33]url: /json_proto [08:41:33]query_string will be loaded in cgi processing [08:41:33]execute_cgi json_proto POST (null) [08:41:33]execute_cgi path=json_proto method=POST [08:41:33]POST find Content-Length [08:41:33]Host: 172.17.33.3:8080 [08:41:33]Content-Length: 682 [08:41:33]Content-Type: application/json [08:41:33] [08:41:33]POST finish read [08:41:33]Found Content-Length = 682 [08:41:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347517", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.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" ] } } [08:41:33]execute_script... [08:41: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)347517", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.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" ] } } [08:41:33]POST & json_proto [08:41:33]process_json_proto [08:41:33]json parsed OK: [08:41:33]protocol is kg_v1.0 [08:41:33]action value=close_receipt [08:41:33]process_action close_receipt [08:41:33]cmd_close_receipt [08:41:33]MH_GetDate [08:41:33]Write to MH i2c: F0 00 00 2D 81 9D [08:41:33]Write i2c OK [08:41:33]MH_I2C_Read... [08:41:33]Read from MH i2c: F0 [08:41:33]MH_I2C_Read... [08:41:33]Read from MH i2c: F0 09 00 [08:41:33]MH_I2C_Read... [08:41:33]Read from MH i2c: F0 09 00 2D 81 00 C6 96 1B 66 23 5B 8F 65 F5 [08:41:33]GetLastDocTimeStamp 1713084098 [08:41:33]current date 1713084102 [08:41:33]FM_GetShiftState [08:41:33]SAM_PROTO_GetShiftState [08:41:33]wFMCommunicate request_size=4 [08:41:33]MH_SAM_APDU [08:41:33]CAPDU: 80 13 01 00 [08:41:33]Write to MH i2c: E2 08 00 2E 81 80 13 01 00 00 00 00 00 2C [08:41:33]Write i2c OK [08:41:33]MH_I2C_Read... [08:41:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:41:33]Read from MH i2c: E2 [08:41:33]MH_I2C_Read... [08:41:33]Read from MH i2c: E2 0E 00 [08:41:33]MH_I2C_Read... [08:41:33]Read from MH i2c: E2 0E 00 2E 81 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 D8 [08:41:33]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [08:41:33]wFMCommunicate OK [08:41:33]SAM_PROTO_GetShiftState done [08:41:33]FM_GetShiftState done [08:41:33]opened in 1713053951 [08:41:33]opened+sec_in_day 1713140351 [08:41:33]quantity*price = 100050 [08:41:33]sum+1 = 100051 [08:41:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 59 14.04.2024 08:41 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29149 ФПД: 208150924893211 1/tax-web-control/client/api/v1/ticket?date=20240414T084143&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29149&fm=208150924893211&tin=02508201610067®Number=0000138879044617&sum=100000 [08:41:34]StoreToDocumentArchive [08:41:34]shift 116 fd 29149 [08:41:34]save to /storage/0116/doc_00029149 [08:41:34]save last doc name /storage/0116/doc_00029149 to /storage/kkm_last_doc_name [08:41:34]save OK [08:41:34]Clear old archive folders... [08:41:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:41:34]tlvbuf is 012CCA50 [08:41:34]SAM_PROTO_ClearQueue [08:41:34]wFMCommunicate request_size=4 [08:41:34]MH_SAM_APDU [08:41:34]CAPDU: 80 09 00 00 [08:41:34]Write to MH i2c: E2 08 00 3B 81 80 09 00 00 00 00 00 00 2E [08:41:34]Write i2c OK [08:41:34]MH_I2C_Read... [08:41:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:41:34]Read from MH i2c: E2 [08:41:34]MH_I2C_Read... [08:41:34]Read from MH i2c: E2 03 00 [08:41:34]MH_I2C_Read... [08:41:34]Read from MH i2c: E2 03 00 3B 81 00 90 00 30 [08:41:34]RAPDU: 90 00 [08:41:34]wFMCommunicate OK [08:41:34]SAM_PROTO_ClearQueue done [08:41:34]KKMCreateOFDPacket [08:41:34]OFDProtocolAddRootSTLVToBuf [08:41:34]FM_MakeSignedData [08:41:34]FM_MakeSignedData [08:41:34]SAM_PROTO_SignData [08:41:34]wFMCommunicate request_size=4 [08:41:34]MH_SAM_APDU [08:41:34]CAPDU: 80 0D 01 02 [08:41:34]Write to MH i2c: E2 08 00 3C 81 80 0D 01 02 00 00 00 00 36 [08:41:34]Write i2c OK [08:41:34]MH_I2C_Read... [08:41:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:41:34]Read from MH i2c: E2 [08:41:34]MH_I2C_Read... [08:41:34]Read from MH i2c: E2 03 00 [08:41:34]MH_I2C_Read... [08:41:34]Read from MH i2c: E2 03 00 3C 81 00 90 00 31 [08:41:34]RAPDU: 90 00 [08:41:34]wFMCommunicate OK [08:41:34]wFMCommunicate request_size=255 [08:41:34]MH_SAM_APDU [08:41: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 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 3B 00 00 00 F4 03 04 00 C7 96 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DD 71 00 00 35 04 06 00 BD [08:41:35]Write to MH i2c: E2 02 01 3D 81 80 0D 02 02 FA 00 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 3B 00 00 00 F4 03 04 00 C7 96 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DD 71 00 00 35 04 06 00 BD 00 00 4D [08:41:35]Write i2c OK [08:41:35]MH_I2C_Read... [08:41:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:41:35]Read from MH i2c: E2 [08:41:35]MH_I2C_Read... [08:41:35]Read from MH i2c: E2 03 00 [08:41:35]MH_I2C_Read... [08:41:35]Read from MH i2c: E2 03 00 3D 81 00 90 00 32 [08:41:35]RAPDU: 90 00 [08:41:35]wFMCommunicate OK [08:41:35]wFMCommunicate request_size=10 [08:41:35]MH_SAM_APDU [08:41:35]CAPDU: 80 0D 02 02 05 4F E9 F0 1C 1B [08:41:35]Write to MH i2c: E2 0D 00 3E 81 80 0D 02 02 05 00 4F E9 F0 1C 1B 00 00 A2 [08:41:35]Write i2c OK [08:41:35]MH_I2C_Read... [08:41:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:41:35]Read from MH i2c: E2 [08:41:35]MH_I2C_Read... [08:41:35]Read from MH i2c: E2 03 00 [08:41:35]MH_I2C_Read... [08:41:35]Read from MH i2c: E2 03 00 3E 81 00 90 00 33 [08:41:35]RAPDU: 90 00 [08:41:35]wFMCommunicate OK [08:41:35]wFMCommunicate request_size=4 [08:41:35]MH_SAM_APDU [08:41:35]CAPDU: 80 0D 03 02 [08:41:35]Write to MH i2c: E2 08 00 3F 81 80 0D 03 02 00 00 00 00 3B [08:41:35]Write i2c OK [08:41:35]MH_I2C_Read... [08:41:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:41:35]Read from MH i2c: E2 [08:41:35]MH_I2C_Read... [08:41:35]Read from MH i2c: E2 0B 00 [08:41:35]MH_I2C_Read... [08:41:35]Read from MH i2c: E2 0B 00 3F 81 00 B6 0F 37 A2 B5 C4 E5 33 90 00 6B [08:41:35]RAPDU: B6 0F 37 A2 B5 C4 E5 33 90 00 [08:41:35]wFMCommunicate OK [08:41:35]SAM_PROTO_SignData done [08:41:35]FM_MakeSignedData done [08:41:35]CreateOFDProtocolMessage [08:41:35]wFMCommunicate request_size=4 [08:41:35]MH_SAM_APDU [08:41:35]CAPDU: 80 11 00 00 [08:41:35]Write to MH i2c: E2 08 00 40 81 80 11 00 00 00 00 00 00 3B [08:41:35]Write i2c OK [08:41:35]MH_I2C_Read... [08:41:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:41:35]Read from MH i2c: E2 [08:41:35]MH_I2C_Read... [08:41:35]Read from MH i2c: E2 17 00 [08:41:35]MH_I2C_Read... [08:41:35]Read from MH i2c: E2 17 00 40 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 8A [08:41:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:41:35]wFMCommunicate OK [08:41:35]CreateOFDProtocolMessage done [08:41:35]OFDSenderStorePacket 29149 [08:41:35]StoreOFDPacket docnum=29149 [08:41:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 86 43 07 01 3A EF 5A 03 01 00 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 3B 00 00 00 F4 03 04 00 C7 96 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DD 71 00 00 35 04 06 00 BD 4F E9 F0 1C 1B B6 0F 37 A2 B5 C4 E5 33 [08:41:35]CheckFolder [08:41:35]dirname=/storage/ofd_packets [08:41:35]CheckFolder done [08:41:35]ProducePacketName [08:41:35]name=ofd_packets/00029149 [08:41:35]NVStorageSaveData ofd_packets/00029149 [08:41:35]File name is /storage/ofd_packets/00029149 [08:41:35]Write 301 bytes [08:41:35]NVStorageSaveData done [08:41:35]OFDSenderStorePacket done [08:41:35]KKMCreateOFDPacket done [08:41:35]NVStorageSaveData kkm_last_timestamp [08:41:35]File name is /storage/kkm_last_timestamp [08:41:35]Write 4 bytes [08:41:35]NVStorageSaveData done [08:41:35]ExternCall_PrintAddStr [08:41:35]wPrintStart [08:41:35]Write to MH i2c: 01 00 00 41 81 C2 [08:41:35]Write i2c OK [08:41:35]MH_I2C_Read... [08:41:35]Read from MH i2c: 01 [08:41:35]MH_I2C_Read... [08:41:35]Read from MH i2c: 01 07 00 [08:41:35]MH_I2C_Read... [08:41:35]Read from MH i2c: 01 07 00 41 81 00 00 00 00 00 FF 0F D7 [08:41:35]RasterBufferAndPrint [08:41:35]line Счет N : (1)347517 [08:41:35]line ИНН: 02508201610067 [08:41:35]line Контрольно-Кассовый Чек [08:41:35]line ПРОДАЖА [08:41:35]line ТРК (МРК, ГНК) : 33 [08:41:35]line Товар: 2710124500 [08:41:35]line Аи-95-К-5 [08:41:35]line 13.800 * 72.50 [08:41:35]line = 1000.50 [08:41:35]line НДС 12% НСП 1% [08:41:35]line > о реализуемом товаре [08:41:35]line ОКРУГЛЕНИЕ: -0.50 [08:41:35]line ИТОГО: 1000.00 [08:41:35]line Внесено: 1000.00 [08:41:35]line СДАЧА: 0.00 [08:41:35]line НСП 1% : 8.85 [08:41:35]line НДС 12% : 106.25 [08:41:35]line Наличными: 1000.00 [08:41:35]line Безнал.: 0.00 [08:41:35]line Место: АЗС № 108 "Партнер Нефть" [08:41:36]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:41:36]line СНО: Общий режим [08:41:36]line Чек 59 14.04.2024 08:41 [08:41:36]line Смена: 116 ФФД: 1.0 [08:41:36]line ЗНМ: 0300000027 [08:41:36]line РНМ: 0000138879044617 [08:41:36]line Версия ККМ: 001 [08:41:36]line ФМ: 0000000000963154 [08:41:36]line ФД: 29149 [08:41:36]line ФПД: 208150924893211 [08:41:36]line 1/tax-web-control/client/api/v1/ticket?date=20240414T084143&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29149&fm=208150924893211&tin=02508201610067®Number=0000138879044617&sum=100000 [08:41:36]OFD Sender: Processing packet 29149 [packets to send 8, broken 7] [08:41:36]ProducePacketName [08:41:36]name=ofd_packets/00029149 [08:41:36]OFD Sender: To server: pG, [08:41:36]CommunicateWithHost lk.salyk.kg:30040 [08:41:36]ConnectInit lk.salyk.kg [08:41:36]written 0, free lines is 4095 [08:41:36]Connected sock=10 [08:41:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 86 43 07 01 3A EF 5A 03 01 00 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 3B 00 00 00 F4 03 04 00 C7 96 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DD 71 00 00 35 04 06 00 BD 4F E9 F0 1C 1B B6 0F 37 A2 B5 C4 E5 33 [08:41:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 CD AD 47 00 B5 C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DD 71 00 00 F4 03 04 00 6B 41 1B 66 B6 04 01 00 00 CD 05 2E 02 C8 11 61 C4 [08:41:36]CommunicateWithHost err = 0 [08:41:36]CheckOFDResponse [08:41:36]1017 (14) - 77093643461234 [08:41:36]1041 (16) - 0000000000963154 [08:41:36]1040 (4) - 29149 [08:41:36]1012 (4) - 14.04.2024 02:37 [08:41:36]1206 (1) - 0 [08:41:36]OFD Sender: Remove packet 29149 [08:41:36]ProducePacketName [08:41:36]name=ofd_packets/00029149 [08:41:36]NVStorageDeleteData [08:41:36]Write to MH i2c: 01 00 00 6B 81 EC [08:41:36]Write i2c OK [08:41:36]MH_I2C_Read... [08:41:36]Read from MH i2c: 01 [08:41:36]MH_I2C_Read... [08:41:36]Read from MH i2c: 01 07 00 [08:41:36]MH_I2C_Read... [08:41:36]Read from MH i2c: 01 07 00 6B 81 00 00 00 00 00 DC 0C DB [08:41:36]RasterBufferAndPrint [08:41:36]line [08:41:36]line [08:41:36]line [08:41:36]line [08:41:36]line [08:41:36]written 0, free lines is 3303 [08:41:36]MH_Cut [08:41:36]Write to MH i2c: D1 01 00 72 81 01 C5 [08:41:36]Write i2c OK [08:41:36]MH_I2C_Read... [08:41:36]Read from MH i2c: D1 [08:41:36]MH_I2C_Read... [08:41:36]Read from MH i2c: D1 01 00 [08:41:36]MH_I2C_Read... [08:41:36]Read from MH i2c: D1 01 00 72 81 00 C4 [08:41:36]Write to MH i2c: 01 00 00 73 81 F4 [08:41:36]Write i2c OK [08:41:36]MH_I2C_Read... [08:41:37]OFD Sender: No OFD packet to send [08:41:37]*** Cut start [08:41:37]*** Partial cut [08:41:37]*** CUTSNS_PIN = 1 [08:41:37]*** CUTSNS_PIN = 0 [08:41:37]*** Brake cut motor [08:41:38]Read from MH i2c: 01 [08:41:38]MH_I2C_Read... [08:41:38]*** Stop cut motor [08:41:38]*** Cut end [08:41:38]Read from MH i2c: 01 07 00 [08:41:38]MH_I2C_Read... [08:41:38]Read from MH i2c: 01 07 00 73 81 00 00 00 00 00 FF 0F 09 [08:41:38]process_action close_receipt done [08:41:38]requested_data is exist [08:41:38]produce_requested_data [08:41:38]requested_item fm.sn is exist - process it [08:41:38]wFMCommunicate request_size=4 [08:41:38]MH_SAM_APDU [08:41:38]CAPDU: 80 11 00 00 [08:41:38]Write to MH i2c: E2 08 00 74 81 80 11 00 00 00 00 00 00 6F [08:41:38]Write i2c OK [08:41:38]MH_I2C_Read... [08:41:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:41:38]Read from MH i2c: E2 [08:41:38]MH_I2C_Read... [08:41:38]Read from MH i2c: E2 17 00 [08:41:38]MH_I2C_Read... [08:41:38]Read from MH i2c: E2 17 00 74 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 BE [08:41:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:41:38]wFMCommunicate OK [08:41:38]requested_item fd.num is exist - process it [08:41:38]SAM_PROTO_GetFieldsCounters [08:41:38]wFMCommunicate request_size=4 [08:41:38]MH_SAM_APDU [08:41:38]CAPDU: 80 13 00 00 [08:41:38]Write to MH i2c: E2 08 00 75 81 80 13 00 00 00 00 00 00 72 [08:41:38]Write i2c OK [08:41:38]MH_I2C_Read... [08:41:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:41:38]Read from MH i2c: E2 [08:41:38]MH_I2C_Read... [08:41:38]Read from MH i2c: E2 62 00 [08:41:38]MH_I2C_Read... [08:41:38]Read from MH i2c: E2 62 00 75 81 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DD 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 23 [08:41:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DD 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:41:38]wFMCommunicate OK [08:41:38]SAM_PROTO_GetFieldsCounters done [08:41:38]requested_item shift.num is exist - process it [08:41:38]requested_item shift.opened is exist - process it [08:41:38]req_shift_opened [08:41:38]FM_GetShiftState [08:41:38]SAM_PROTO_GetShiftState [08:41:38]wFMCommunicate request_size=4 [08:41:38]MH_SAM_APDU [08:41:38]CAPDU: 80 13 01 00 [08:41:38]Write to MH i2c: E2 08 00 76 81 80 13 01 00 00 00 00 00 74 [08:41:38]Write i2c OK [08:41:38]MH_I2C_Read... [08:41:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:41:38]Read from MH i2c: E2 [08:41:38]MH_I2C_Read... [08:41:38]Read from MH i2c: E2 0E 00 [08:41:38]MH_I2C_Read... [08:41:38]Read from MH i2c: E2 0E 00 76 81 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 20 [08:41:38]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [08:41:38]wFMCommunicate OK [08:41:38]SAM_PROTO_GetShiftState done [08:41:38]FM_GetShiftState done [08:41:38]req_shift_opened done [08:41:38]requested_item shift.open_date is exist - process it [08:41:38]req_shift_open_date [08:41:38]req_shift_open_date done [08:41:38]produce_requested_data done [08:41:38]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29149,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [08:41:38]process_action_free close_receipt [08:41:38]json_value_free [08:41:38]json_value_free done [08:41:38]process_json_proto returns [08:41:38]Send response to host [08:41:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29149,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [08:41:38]free response buf [08:41:38]execute_script done [08:41:38]execute_script returns [08:41:38]free content buf [08:41:38]Sock 9.Close socket [08:41:38]Sock 9.Thread stoped [08:41:42]OFD Sender: No OFD packet to send [08:41:47]OFD Sender: No OFD packet to send [08:41:52]OFD Sender: No OFD packet to send [08:41:57]OFD Sender: No OFD packet to send [08:42:02]OFD Sender: No OFD packet to send [08:42:07]OFD Sender: No OFD packet to send [08:42:12]OFD Sender: No OFD packet to send [08:42:17]OFD Sender: No OFD packet to send [08:42:22]OFD Sender: No OFD packet to send [08:42:27]OFD Sender: No OFD packet to send [08:42:32]OFD Sender: No OFD packet to send [08:42:37]OFD Sender: No OFD packet to send [08:42:42]OFD Sender: No OFD packet to send [08:42:47]OFD Sender: No OFD packet to send [08:42:52]OFD Sender: No OFD packet to send [08:42:57]OFD Sender: No OFD packet to send [08:43:02]OFD Sender: No OFD packet to send [08:43:07]OFD Sender: No OFD packet to send [08:43:12]OFD Sender: No OFD packet to send [08:43:17]OFD Sender: No OFD packet to send [08:43:22]OFD Sender: No OFD packet to send [08:43:27]OFD Sender: No OFD packet to send [08:43:32]OFD Sender: No OFD packet to send [08:43:37]OFD Sender: No OFD packet to send [08:43:42]OFD Sender: No OFD packet to send [08:43:47]OFD Sender: No OFD packet to send [08:43:52]OFD Sender: No OFD packet to send [08:43:57]OFD Sender: No OFD packet to send [08:44:02]OFD Sender: No OFD packet to send [08:44:07]OFD Sender: No OFD packet to send [08:44:12]OFD Sender: No OFD packet to send [08:44:17]OFD Sender: No OFD packet to send [08:44:22]OFD Sender: No OFD packet to send [08:44:27]OFD Sender: No OFD packet to send [08:44:32]OFD Sender: No OFD packet to send [08:44:37]OFD Sender: No OFD packet to send [08:44:42]OFD Sender: No OFD packet to send [08:44:47]OFD Sender: No OFD packet to send [08:44:52]OFD Sender: No OFD packet to send [08:44:57]OFD Sender: No OFD packet to send [08:45:02]OFD Sender: No OFD packet to send [08:45:07]OFD Sender: No OFD packet to send [08:45:12]OFD Sender: No OFD packet to send [08:45:12]accept exits with 7 [08:45:12]New connection [08:45:12]New thread 3066785124 created [08:45:12]Thread 3066928484 joined [08:45:12]Waiting for new connection... [08:45:12] Sock 7.Parse request [08:45:12]Sock 7.Check first char [08:45:12]Sock 7.First char is OK [08:45:12]request: POST /json_proto HTTP/1.0 [08:45:12]Method: POST [08:45:12]URL: /json_proto [08:45:12]Method is POST - this is cgi request [08:45:12]url: /json_proto [08:45:12]query_string will be loaded in cgi processing [08:45:12]execute_cgi json_proto POST (null) [08:45:12]execute_cgi path=json_proto method=POST [08:45:12]POST find Content-Length [08:45:12]Host: 172.17.33.3:8080 [08:45:12]Content-Length: 679 [08:45:12]Content-Type: application/json [08:45:12] [08:45:12]POST finish read [08:45:12]Found Content-Length = 679 [08:45:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347519", "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" ] } } [08:45:12]execute_script... [08:45: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)347519", "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" ] } } [08:45:12]POST & json_proto [08:45:12]process_json_proto [08:45:12]json parsed OK: [08:45:12]protocol is kg_v1.0 [08:45:12]action value=close_receipt [08:45:12]process_action close_receipt [08:45:12]cmd_close_receipt [08:45:12]MH_GetDate [08:45:12]Write to MH i2c: F0 00 00 77 81 E7 [08:45:12]Write i2c OK [08:45:12]MH_I2C_Read... [08:45:12]Read from MH i2c: F0 [08:45:12]MH_I2C_Read... [08:45:12]Read from MH i2c: F0 09 00 [08:45:12]MH_I2C_Read... [08:45:12]Read from MH i2c: F0 09 00 77 81 00 A1 97 1B 66 23 5B 8F 65 1B [08:45:12]GetLastDocTimeStamp 1713084103 [08:45:12]current date 1713084321 [08:45:12]FM_GetShiftState [08:45:12]SAM_PROTO_GetShiftState [08:45:12]wFMCommunicate request_size=4 [08:45:12]MH_SAM_APDU [08:45:12]CAPDU: 80 13 01 00 [08:45:12]Write to MH i2c: E2 08 00 78 81 80 13 01 00 00 00 00 00 76 [08:45:12]Write i2c OK [08:45:12]MH_I2C_Read... [08:45:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:45:12]Read from MH i2c: E2 [08:45:12]MH_I2C_Read... [08:45:12]Read from MH i2c: E2 0E 00 [08:45:12]MH_I2C_Read... [08:45:12]Read from MH i2c: E2 0E 00 78 81 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 22 [08:45:12]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [08:45:12]wFMCommunicate OK [08:45:12]SAM_PROTO_GetShiftState done [08:45:12]FM_GetShiftState done [08:45:12]opened in 1713053951 [08:45:12]opened+sec_in_day 1713140351 [08:45:12]quantity*price = 100056 [08:45:12]sum+1 = 100058 [08:45:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 60 14.04.2024 08:45 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29150 ФПД: 43733351370972 1/tax-web-control/client/api/v1/ticket?date=20240414T084521&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29150&fm=43733351370972&tin=02508201610067®Number=0000138879044617&sum=100000 [08:45:13]StoreToDocumentArchive [08:45:13]shift 116 fd 29150 [08:45:13]save to /storage/0116/doc_00029150 [08:45:13]save last doc name /storage/0116/doc_00029150 to /storage/kkm_last_doc_name [08:45:13]save OK [08:45:13]Clear old archive folders... [08:45:13]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:45:13]tlvbuf is 01208A20 [08:45:13]SAM_PROTO_ClearQueue [08:45:13]wFMCommunicate request_size=4 [08:45:13]MH_SAM_APDU [08:45:13]CAPDU: 80 09 00 00 [08:45:13]Write to MH i2c: E2 08 00 85 81 80 09 00 00 00 00 00 00 78 [08:45:13]Write i2c OK [08:45:13]MH_I2C_Read... [08:45:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:45:13]Read from MH i2c: E2 [08:45:13]MH_I2C_Read... [08:45:13]Read from MH i2c: E2 03 00 [08:45:13]MH_I2C_Read... [08:45:13]Read from MH i2c: E2 03 00 85 81 00 90 00 7A [08:45:13]RAPDU: 90 00 [08:45:13]wFMCommunicate OK [08:45:13]SAM_PROTO_ClearQueue done [08:45:13]KKMCreateOFDPacket [08:45:13]OFDProtocolAddRootSTLVToBuf [08:45:13]FM_MakeSignedData [08:45:13]FM_MakeSignedData [08:45:13]SAM_PROTO_SignData [08:45:13]wFMCommunicate request_size=4 [08:45:13]MH_SAM_APDU [08:45:13]CAPDU: 80 0D 01 02 [08:45:13]Write to MH i2c: E2 08 00 86 81 80 0D 01 02 00 00 00 00 80 [08:45:13]Write i2c OK [08:45:13]MH_I2C_Read... [08:45:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:45:13]Read from MH i2c: E2 [08:45:13]MH_I2C_Read... [08:45:13]Read from MH i2c: E2 03 00 [08:45:13]MH_I2C_Read... [08:45:13]Read from MH i2c: E2 03 00 86 81 00 90 00 7B [08:45:13]RAPDU: 90 00 [08:45:13]wFMCommunicate OK [08:45:13]wFMCommunicate request_size=255 [08:45:13]MH_SAM_APDU [08:45: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 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 3C 00 00 00 F4 03 04 00 A1 97 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DE 71 00 00 35 04 06 00 27 C6 76 DF [08:45:13]Write to MH i2c: E2 02 01 87 81 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 3C 00 00 00 F4 03 04 00 A1 97 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DE 71 00 00 35 04 06 00 27 C6 76 DF 00 00 59 [08:45:13]Write i2c OK [08:45:13]MH_I2C_Read... [08:45:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:45:14]Read from MH i2c: E2 [08:45:14]MH_I2C_Read... [08:45:14]Read from MH i2c: E2 03 00 [08:45:14]MH_I2C_Read... [08:45:14]Read from MH i2c: E2 03 00 87 81 00 90 00 7C [08:45:14]RAPDU: 90 00 [08:45:14]wFMCommunicate OK [08:45:14]wFMCommunicate request_size=7 [08:45:14]MH_SAM_APDU [08:45:14]CAPDU: 80 0D 02 02 02 90 DC [08:45:14]Write to MH i2c: E2 0A 00 88 81 80 0D 02 02 02 00 90 DC 00 00 F3 [08:45:14]Write i2c OK [08:45:14]MH_I2C_Read... [08:45:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:45:14]Read from MH i2c: E2 [08:45:14]MH_I2C_Read... [08:45:14]Read from MH i2c: E2 03 00 [08:45:14]MH_I2C_Read... [08:45:14]Read from MH i2c: E2 03 00 88 81 00 90 00 7D [08:45:14]RAPDU: 90 00 [08:45:14]wFMCommunicate OK [08:45:14]wFMCommunicate request_size=4 [08:45:14]MH_SAM_APDU [08:45:14]CAPDU: 80 0D 03 02 [08:45:14]Write to MH i2c: E2 08 00 89 81 80 0D 03 02 00 00 00 00 85 [08:45:14]Write i2c OK [08:45:14]MH_I2C_Read... [08:45:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:45:14]Read from MH i2c: E2 [08:45:14]MH_I2C_Read... [08:45:14]Read from MH i2c: E2 0B 00 [08:45:14]MH_I2C_Read... [08:45:14]Read from MH i2c: E2 0B 00 89 81 00 1D 30 5B 0F 83 E3 DA C5 90 00 42 [08:45:14]RAPDU: 1D 30 5B 0F 83 E3 DA C5 90 00 [08:45:14]wFMCommunicate OK [08:45:14]SAM_PROTO_SignData done [08:45:14]FM_MakeSignedData done [08:45:14]CreateOFDProtocolMessage [08:45:14]wFMCommunicate request_size=4 [08:45:14]MH_SAM_APDU [08:45:14]CAPDU: 80 11 00 00 [08:45:14]Write to MH i2c: E2 08 00 8A 81 80 11 00 00 00 00 00 00 85 [08:45:14]Write i2c OK [08:45:14]MH_I2C_Read... [08:45:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:45:14]Read from MH i2c: E2 [08:45:14]MH_I2C_Read... [08:45:14]Read from MH i2c: E2 17 00 [08:45:14]MH_I2C_Read... [08:45:14]Read from MH i2c: E2 17 00 8A 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D4 [08:45:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:45:14]wFMCommunicate OK [08:45:14]CreateOFDProtocolMessage done [08:45:14]OFDSenderStorePacket 29150 [08:45:14]StoreOFDPacket docnum=29150 [08:45:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 72 AC 04 01 C0 4C 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 3C 00 00 00 F4 03 04 00 A1 97 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DE 71 00 00 35 04 06 00 27 C6 76 DF 90 DC 1D 30 5B 0F 83 E3 DA C5 [08:45:14]CheckFolder [08:45:14]dirname=/storage/ofd_packets [08:45:14]CheckFolder done [08:45:14]ProducePacketName [08:45:14]name=ofd_packets/00029150 [08:45:14]NVStorageSaveData ofd_packets/00029150 [08:45:14]File name is /storage/ofd_packets/00029150 [08:45:14]Write 298 bytes [08:45:14]NVStorageSaveData done [08:45:14]OFDSenderStorePacket done [08:45:14]KKMCreateOFDPacket done [08:45:14]NVStorageSaveData kkm_last_timestamp [08:45:14]File name is /storage/kkm_last_timestamp [08:45:14]Write 4 bytes [08:45:14]NVStorageSaveData done [08:45:14]ExternCall_PrintAddStr [08:45:14]wPrintStart [08:45:14]Write to MH i2c: 01 00 00 8B 81 0C [08:45:14]Write i2c OK [08:45:14]MH_I2C_Read... [08:45:14]Read from MH i2c: 01 [08:45:14]MH_I2C_Read... [08:45:14]Read from MH i2c: 01 07 00 [08:45:14]MH_I2C_Read... [08:45:14]Read from MH i2c: 01 07 00 8B 81 00 00 00 00 00 FF 0F 21 [08:45:14]RasterBufferAndPrint [08:45:14]line Счет N : (1)347519 [08:45:14]line ИНН: 02508201610067 [08:45:14]line Контрольно-Кассовый Чек [08:45:14]line ПРОДАЖА [08:45:14]line ТРК (МРК, ГНК) : 51 [08:45:14]line Товар: 2710194210 [08:45:14]line ДТ-К-5 [08:45:14]line 13.820 * 72.40 [08:45:14]line = 1000.57 [08:45:14]line НДС 12% НСП 1% [08:45:14]line > о реализуемом товаре [08:45:14]line ОКРУГЛЕНИЕ: -0.57 [08:45:14]line ИТОГО: 1000.00 [08:45:14]line Внесено: 1000.00 [08:45:14]line СДАЧА: 0.00 [08:45:14]line НСП 1% : 8.85 [08:45:14]line НДС 12% : 106.25 [08:45:14]line Наличными: 1000.00 [08:45:14]line Безнал.: 0.00 [08:45:14]line Место: АЗС № 108 "Партнер Нефть" [08:45:14]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:45:14]line СНО: Общий режим [08:45:14]line Чек 60 14.04.2024 08:45 [08:45:14]line Смена: 116 ФФД: 1.0 [08:45:14]line ЗНМ: 0300000027 [08:45:14]line РНМ: 0000138879044617 [08:45:14]line Версия ККМ: 001 [08:45:14]line ФМ: 0000000000963154 [08:45:14]line ФД: 29150 [08:45:14]line ФПД: 43733351370972 [08:45:14]line 1/tax-web-control/client/api/v1/ticket?date=20240414T084521&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29150&fm=43733351370972&tin=02508201610067®Number=0000138879044617&sum=100000 [08:45:14]OFD Sender: Processing packet 29150 [packets to send 8, broken 7] [08:45:14]ProducePacketName [08:45:14]name=ofd_packets/00029150 [08:45:14]OFD Sender: To server: pG, [08:45:14]CommunicateWithHost lk.salyk.kg:30040 [08:45:14]ConnectInit lk.salyk.kg [08:45:14]written 0, free lines is 4095 [08:45:14]Connected sock=10 [08:45:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 72 AC 04 01 C0 4C 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 3C 00 00 00 F4 03 04 00 A1 97 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DE 71 00 00 35 04 06 00 27 C6 76 DF 90 DC 1D 30 5B 0F 83 E3 DA C5 [08:45:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 47 88 47 00 57 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 39 36 33 31 35 34 10 04 04 00 DE 71 00 00 F4 03 04 00 46 42 1B 66 B6 04 01 00 00 7C 20 B8 52 12 A9 2B D7 [08:45:14]CommunicateWithHost err = 0 [08:45:14]CheckOFDResponse [08:45:14]1017 (14) - 77093643461234 [08:45:14]1041 (16) - 0000000000963154 [08:45:14]1040 (4) - 29150 [08:45:14]1012 (4) - 14.04.2024 02:41 [08:45:14]1206 (1) - 0 [08:45:14]OFD Sender: Remove packet 29150 [08:45:14]ProducePacketName [08:45:14]name=ofd_packets/00029150 [08:45:14]NVStorageDeleteData [08:45:15]Write to MH i2c: 01 00 00 B5 81 36 [08:45:15]Write i2c OK [08:45:15]MH_I2C_Read... [08:45:15]Read from MH i2c: 01 [08:45:15]MH_I2C_Read... [08:45:15]Read from MH i2c: 01 07 00 [08:45:15]MH_I2C_Read... [08:45:15]Read from MH i2c: 01 07 00 B5 81 00 00 00 00 00 D1 0C 1A [08:45:15]RasterBufferAndPrint [08:45:15]line [08:45:15]line [08:45:15]line [08:45:15]line [08:45:15]line [08:45:15]written 0, free lines is 3288 [08:45:15]MH_Cut [08:45:15]Write to MH i2c: D1 01 00 BC 81 01 0F [08:45:15]Write i2c OK [08:45:15]MH_I2C_Read... [08:45:15]Read from MH i2c: D1 [08:45:15]MH_I2C_Read... [08:45:15]Read from MH i2c: D1 01 00 [08:45:15]MH_I2C_Read... [08:45:15]Read from MH i2c: D1 01 00 BC 81 00 0E [08:45:15]Write to MH i2c: 01 00 00 BD 81 3E [08:45:15]Write i2c OK [08:45:15]MH_I2C_Read... [08:45:15]OFD Sender: No OFD packet to send [08:45:15]*** Cut start [08:45:15]*** Partial cut [08:45:15]*** CUTSNS_PIN = 1 [08:45:15]*** CUTSNS_PIN = 0 [08:45:16]*** Brake cut motor [08:45:16]Read from MH i2c: 01 [08:45:16]MH_I2C_Read... [08:45:16]*** Stop cut motor [08:45:16]*** Cut end [08:45:16]Read from MH i2c: 01 07 00 [08:45:16]MH_I2C_Read... [08:45:16]Read from MH i2c: 01 07 00 BD 81 00 00 00 00 00 FF 0F 53 [08:45:16]process_action close_receipt done [08:45:16]requested_data is exist [08:45:16]produce_requested_data [08:45:16]requested_item fm.sn is exist - process it [08:45:16]wFMCommunicate request_size=4 [08:45:16]MH_SAM_APDU [08:45:16]CAPDU: 80 11 00 00 [08:45:16]Write to MH i2c: E2 08 00 BE 81 80 11 00 00 00 00 00 00 B9 [08:45:16]Write i2c OK [08:45:16]MH_I2C_Read... [08:45:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:45:16]Read from MH i2c: E2 [08:45:16]MH_I2C_Read... [08:45:16]Read from MH i2c: E2 17 00 [08:45:16]MH_I2C_Read... [08:45:16]Read from MH i2c: E2 17 00 BE 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 08 [08:45:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:45:16]wFMCommunicate OK [08:45:16]requested_item fd.num is exist - process it [08:45:16]SAM_PROTO_GetFieldsCounters [08:45:16]wFMCommunicate request_size=4 [08:45:16]MH_SAM_APDU [08:45:16]CAPDU: 80 13 00 00 [08:45:16]Write to MH i2c: E2 08 00 BF 81 80 13 00 00 00 00 00 00 BC [08:45:16]Write i2c OK [08:45:16]MH_I2C_Read... [08:45:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:45:16]Read from MH i2c: E2 [08:45:16]MH_I2C_Read... [08:45:16]Read from MH i2c: E2 62 00 [08:45:16]MH_I2C_Read... [08:45:16]Read from MH i2c: E2 62 00 BF 81 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DE 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 71 [08:45:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DE 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:45:16]wFMCommunicate OK [08:45:16]SAM_PROTO_GetFieldsCounters done [08:45:16]requested_item shift.num is exist - process it [08:45:16]requested_item shift.opened is exist - process it [08:45:16]req_shift_opened [08:45:16]FM_GetShiftState [08:45:16]SAM_PROTO_GetShiftState [08:45:16]wFMCommunicate request_size=4 [08:45:16]MH_SAM_APDU [08:45:16]CAPDU: 80 13 01 00 [08:45:16]Write to MH i2c: E2 08 00 C0 81 80 13 01 00 00 00 00 00 BE [08:45:16]Write i2c OK [08:45:16]MH_I2C_Read... [08:45:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:45:16]Read from MH i2c: E2 [08:45:16]MH_I2C_Read... [08:45:16]Read from MH i2c: E2 0E 00 [08:45:16]MH_I2C_Read... [08:45:16]Read from MH i2c: E2 0E 00 C0 81 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 6A [08:45:16]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [08:45:16]wFMCommunicate OK [08:45:16]SAM_PROTO_GetShiftState done [08:45:16]FM_GetShiftState done [08:45:16]req_shift_opened done [08:45:16]requested_item shift.open_date is exist - process it [08:45:16]req_shift_open_date [08:45:16]req_shift_open_date done [08:45:16]produce_requested_data done [08:45:16]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29150,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [08:45:16]process_action_free close_receipt [08:45:16]json_value_free [08:45:16]json_value_free done [08:45:16]process_json_proto returns [08:45:16]Send response to host [08:45:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29150,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [08:45:16]free response buf [08:45:16]execute_script done [08:45:16]execute_script returns [08:45:16]free content buf [08:45:16]Sock 7.Close socket [08:45:16]Sock 7.Thread stoped [08:45:20]OFD Sender: No OFD packet to send [08:45:25]OFD Sender: No OFD packet to send [08:45:30]OFD Sender: No OFD packet to send [08:45:35]OFD Sender: No OFD packet to send [08:45:40]OFD Sender: No OFD packet to send [08:45:45]OFD Sender: No OFD packet to send [08:45:50]OFD Sender: No OFD packet to send [08:45:55]OFD Sender: No OFD packet to send [08:46:00]OFD Sender: No OFD packet to send [08:46:05]OFD Sender: No OFD packet to send [08:46:10]OFD Sender: No OFD packet to send [08:46:15]OFD Sender: No OFD packet to send [08:46:20]OFD Sender: No OFD packet to send [08:46:25]OFD Sender: No OFD packet to send [08:46:30]OFD Sender: No OFD packet to send [08:46:35]OFD Sender: No OFD packet to send [08:46:40]OFD Sender: No OFD packet to send [08:46:45]OFD Sender: No OFD packet to send [08:46:50]OFD Sender: No OFD packet to send [08:46:55]OFD Sender: No OFD packet to send [08:47:00]OFD Sender: No OFD packet to send [08:47:05]OFD Sender: No OFD packet to send [08:47:10]OFD Sender: No OFD packet to send [08:47:15]OFD Sender: No OFD packet to send [08:47:20]OFD Sender: No OFD packet to send [08:47:25]OFD Sender: No OFD packet to send [08:47:30]OFD Sender: No OFD packet to send [08:47:35]OFD Sender: No OFD packet to send [08:47:40]OFD Sender: No OFD packet to send [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:10]OFD Sender: No OFD packet to send [08:48:15]OFD Sender: No OFD packet to send [08:48:20]OFD Sender: No OFD packet to send [08:48:25]OFD Sender: No OFD packet to send [08:48:30]OFD Sender: No OFD packet to send [08:48:35]OFD Sender: No OFD packet to send [08:48:40]accept exits with 9 [08:48:40]New connection [08:48:40]New thread 3066928484 created [08:48:40]Thread 3066785124 joined [08:48:40]Waiting for new connection... [08:48:40] Sock 9.Parse request [08:48:40]Sock 9.Check first char [08:48:40]Sock 9.First char is OK [08:48:40]request: POST /json_proto HTTP/1.0 [08:48:40]Method: POST [08:48:40]URL: /json_proto [08:48:40]Method is POST - this is cgi request [08:48:40]url: /json_proto [08:48:40]query_string will be loaded in cgi processing [08:48:40]execute_cgi json_proto POST (null) [08:48:40]execute_cgi path=json_proto method=POST [08:48:40]POST find Content-Length [08:48:40]Host: 172.17.33.3:8080 [08:48:40]Content-Length: 1161 [08:48:40]Content-Type: application/json [08:48:40] [08:48:40]POST finish read [08:48:40]Found Content-Length = 1161 [08:48:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043B\u0438\u043A\u0431\u0430\u0435\u0432\u0430. \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)347520\u000A14.04.2024 08:30\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 72.40\u000A\u0418\u0422\u041E\u0413: 1448.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30151353\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:48:40]execute_script... [08:48:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043B\u0438\u043A\u0431\u0430\u0435\u0432\u0430. \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)347520\u000A14.04.2024 08:30\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 72.40\u000A\u0418\u0422\u041E\u0413: 1448.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30151353\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:48:40]POST & json_proto [08:48:40]process_json_proto [08:48:40]json parsed OK: [08:48:40]protocol is kg_v1.0 [08:48:40]action value=print_text [08:48:40]process_action print_text [08:48:40]cmd_print_text [08:48:40]ExternCall_PrintAddStr [08:48:40]wPrintStart [08:48:40]Write to MH i2c: 01 00 00 C1 81 42 [08:48:40]Write i2c OK [08:48:40]MH_I2C_Read... [08:48:40]Read from MH i2c: 01 [08:48:40]MH_I2C_Read... [08:48:40]Read from MH i2c: 01 07 00 [08:48:40]MH_I2C_Read... [08:48:40]Read from MH i2c: 01 07 00 C1 81 00 00 00 00 00 FF 0F 57 [08:48:40]RasterBufferAndPrint [08:48:40]line *****ТОВАРНЫЙ ЧЕК***** [08:48:40]line АЗС 108 [08:48:40]line Партнер нефть [08:48:40]line 02508201610067 [08:48:40]line Кассир : Аликбаева. Д. [08:48:40]line Счет N : (1)347520 [08:48:40]line 14.04.2024 08:30 [08:48:40]line ПРОДАЖА [08:48:40]line ТРК (МРК, ГНК): 51 [08:48:40]line Вид ГСМ : 2710194210 [08:48:40]line ДТ-К-5 [08:48:40]line 20.000 x 72.40 [08:48:40]line ИТОГ: 1448.00 [08:48:40]line Тип оплаты: Талоны: ТК ГПНА Online [08:48:40]line 30151353 [08:48:40]line ______________________ [08:48:40]line (подпись) [08:48:40]written 0, free lines is 4095 [08:48:40]OFD Sender: No OFD packet to send [08:48:40]Write to MH i2c: 01 00 00 D5 81 56 [08:48:40]Write i2c OK [08:48:40]MH_I2C_Read... [08:48:40]Read from MH i2c: 01 [08:48:40]MH_I2C_Read... [08:48:40]Read from MH i2c: 01 07 00 [08:48:40]MH_I2C_Read... [08:48:40]Read from MH i2c: 01 07 00 D5 81 00 00 00 00 00 10 0E 7B [08:48:40]RasterBufferAndPrint [08:48:40]line [08:48:40]line [08:48:40]line [08:48:40]line [08:48:40]line [08:48:40]written 0, free lines is 3601 [08:48:40]MH_Cut [08:48:40]Write to MH i2c: D1 01 00 DC 81 01 2F [08:48:40]Write i2c OK [08:48:40]MH_I2C_Read... [08:48:40]Read from MH i2c: D1 [08:48:40]MH_I2C_Read... [08:48:40]Read from MH i2c: D1 01 00 [08:48:40]MH_I2C_Read... [08:48:40]Read from MH i2c: D1 01 00 DC 81 00 2E [08:48:40]Write to MH i2c: 01 00 00 DD 81 5E [08:48:40]Write i2c OK [08:48:40]MH_I2C_Read... [08:48:41]*** Cut start [08:48:41]*** Partial cut [08:48:41]*** CUTSNS_PIN = 1 [08:48:41]*** CUTSNS_PIN = 0 [08:48:41]*** Brake cut motor [08:48:41]Read from MH i2c: 01 [08:48:41]MH_I2C_Read... [08:48:41]*** Stop cut motor [08:48:41]*** Cut end [08:48:41]Read from MH i2c: 01 07 00 [08:48:41]MH_I2C_Read... [08:48:41]Read from MH i2c: 01 07 00 DD 81 00 00 00 00 00 FF 0F 73 [08:48:41]process_action print_text done [08:48:41]requested_data is exist [08:48:41]produce_requested_data [08:48:41]requested_item fm.sn is exist - process it [08:48:41]wFMCommunicate request_size=4 [08:48:41]MH_SAM_APDU [08:48:41]CAPDU: 80 11 00 00 [08:48:41]Write to MH i2c: E2 08 00 DE 81 80 11 00 00 00 00 00 00 D9 [08:48:41]Write i2c OK [08:48:41]MH_I2C_Read... [08:48:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:48:41]Read from MH i2c: E2 [08:48:41]MH_I2C_Read... [08:48:41]Read from MH i2c: E2 17 00 [08:48:41]MH_I2C_Read... [08:48:41]Read from MH i2c: E2 17 00 DE 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 28 [08:48:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:48:41]wFMCommunicate OK [08:48:41]requested_item fd.num is exist - process it [08:48:41]SAM_PROTO_GetFieldsCounters [08:48:41]wFMCommunicate request_size=4 [08:48:41]MH_SAM_APDU [08:48:41]CAPDU: 80 13 00 00 [08:48:41]Write to MH i2c: E2 08 00 DF 81 80 13 00 00 00 00 00 00 DC [08:48:41]Write i2c OK [08:48:41]MH_I2C_Read... [08:48:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:48:42]Read from MH i2c: E2 [08:48:42]MH_I2C_Read... [08:48:42]Read from MH i2c: E2 62 00 [08:48:42]MH_I2C_Read... [08:48:42]Read from MH i2c: E2 62 00 DF 81 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DE 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 91 [08:48:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DE 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:48:42]wFMCommunicate OK [08:48:42]SAM_PROTO_GetFieldsCounters done [08:48:42]requested_item shift.num is exist - process it [08:48:42]requested_item shift.opened is exist - process it [08:48:42]req_shift_opened [08:48:42]FM_GetShiftState [08:48:42]SAM_PROTO_GetShiftState [08:48:42]wFMCommunicate request_size=4 [08:48:42]MH_SAM_APDU [08:48:42]CAPDU: 80 13 01 00 [08:48:42]Write to MH i2c: E2 08 00 E0 81 80 13 01 00 00 00 00 00 DE [08:48:42]Write i2c OK [08:48:42]MH_I2C_Read... [08:48:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:48:42]Read from MH i2c: E2 [08:48:42]MH_I2C_Read... [08:48:42]Read from MH i2c: E2 0E 00 [08:48:42]MH_I2C_Read... [08:48:42]Read from MH i2c: E2 0E 00 E0 81 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 8A [08:48:42]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [08:48:42]wFMCommunicate OK [08:48:42]SAM_PROTO_GetShiftState done [08:48:42]FM_GetShiftState done [08:48:42]req_shift_opened done [08:48:42]requested_item shift.open_date is exist - process it [08:48:42]req_shift_open_date [08:48:42]req_shift_open_date done [08:48:42]produce_requested_data done [08:48:42]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29150,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [08:48:42]process_action_free print_text [08:48:42]json_value_free [08:48:42]json_value_free done [08:48:42]process_json_proto returns [08:48:42]Send response to host [08:48:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29150,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [08:48:42]free response buf [08:48:42]execute_script done [08:48:42]execute_script returns [08:48:42]free content buf [08:48:42]Sock 9.Close socket [08:48:42]Sock 9.Thread stoped [08:48:45]OFD Sender: No OFD packet to send [08:48:50]OFD Sender: No OFD packet to send [08:48:55]OFD Sender: No OFD packet to send [08:49:00]OFD Sender: No OFD packet to send [08:49:05]OFD Sender: No OFD packet to send [08:49:10]OFD Sender: No OFD packet to send [08:49:15]OFD Sender: No OFD packet to send [08:49:20]OFD Sender: No OFD packet to send [08:49:25]OFD Sender: No OFD packet to send [08:49:30]OFD Sender: No OFD packet to send [08:49:35]OFD Sender: No OFD packet to send [08:49:40]OFD Sender: No OFD packet to send [08:49:45]OFD Sender: No OFD packet to send [08:49:50]OFD Sender: No OFD packet to send [08:49:55]OFD Sender: No OFD packet to send [08:50:00]OFD Sender: No OFD packet to send [08:50:05]OFD Sender: No OFD packet to send [08:50:10]OFD Sender: No OFD packet to send [08:50:15]OFD Sender: No OFD packet to send [08:50:20]OFD Sender: No OFD packet to send [08:50:25]OFD Sender: No OFD packet to send [08:50:30]OFD Sender: No OFD packet to send [08:50:35]OFD Sender: No OFD packet to send [08:50:40]OFD Sender: No OFD packet to send [08:50:45]OFD Sender: No OFD packet to send [08:50:50]OFD Sender: No OFD packet to send [08:50:55]OFD Sender: No OFD packet to send [08:51:00]OFD Sender: No OFD packet to send [08:51:05]OFD Sender: No OFD packet to send [08:51:10]OFD Sender: No OFD packet to send [08:51:15]OFD Sender: No OFD packet to send [08:51:20]OFD Sender: No OFD packet to send [08:51:25]OFD Sender: No OFD packet to send [08:51:30]OFD Sender: No OFD packet to send [08:51:35]OFD Sender: No OFD packet to send [08:51:40]OFD Sender: No OFD packet to send [08:51:45]OFD Sender: No OFD packet to send [08:51:47]accept exits with 7 [08:51:47]New connection [08:51:47]New thread 3066785124 created [08:51:47]Thread 3066928484 joined [08:51:47]Waiting for new connection... [08:51:47] Sock 7.Parse request [08:51:47]Sock 7.Check first char [08:51:47]Sock 7.First char is OK [08:51:47]request: POST /json_proto HTTP/1.0 [08:51:47]Method: POST [08:51:47]URL: /json_proto [08:51:47]Method is POST - this is cgi request [08:51:47]url: /json_proto [08:51:47]query_string will be loaded in cgi processing [08:51:47]execute_cgi json_proto POST (null) [08:51:47]execute_cgi path=json_proto method=POST [08:51:47]POST find Content-Length [08:51:47]Host: 172.17.33.3:8080 [08:51:47]Content-Length: 681 [08:51:47]Content-Type: application/json [08:51:47] [08:51:47]POST finish read [08:51:47]Found Content-Length = 681 [08:51:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347521", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 15.200, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:51:47]execute_script... [08:51: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)347521", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 15.200, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:51:47]POST & json_proto [08:51:47]process_json_proto [08:51:47]json parsed OK: [08:51:47]protocol is kg_v1.0 [08:51:47]action value=close_receipt [08:51:47]process_action close_receipt [08:51:47]cmd_close_receipt [08:51:47]MH_GetDate [08:51:47]Write to MH i2c: F0 00 00 E1 81 51 [08:51:47]Write i2c OK [08:51:47]MH_I2C_Read... [08:51:47]Read from MH i2c: F0 [08:51:47]MH_I2C_Read... [08:51:47]Read from MH i2c: F0 09 00 [08:51:47]MH_I2C_Read... [08:51:47]Read from MH i2c: F0 09 00 E1 81 00 2C 99 1B 66 23 5B 8F 65 12 [08:51:47]GetLastDocTimeStamp 1713084321 [08:51:47]current date 1713084716 [08:51:47]FM_GetShiftState [08:51:47]SAM_PROTO_GetShiftState [08:51:47]wFMCommunicate request_size=4 [08:51:47]MH_SAM_APDU [08:51:47]CAPDU: 80 13 01 00 [08:51:47]Write to MH i2c: E2 08 00 E2 81 80 13 01 00 00 00 00 00 E0 [08:51:47]Write i2c OK [08:51:47]MH_I2C_Read... [08:51:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:51:47]Read from MH i2c: E2 [08:51:47]MH_I2C_Read... [08:51:47]Read from MH i2c: E2 0E 00 [08:51:47]MH_I2C_Read... [08:51:47]Read from MH i2c: E2 0E 00 E2 81 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 8C [08:51:47]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [08:51:47]wFMCommunicate OK [08:51:47]SAM_PROTO_GetShiftState done [08:51:47]FM_GetShiftState done [08:51:47]opened in 1713053951 [08:51:47]opened+sec_in_day 1713140351 [08:51:47]quantity*price = 50008 [08:51:47]sum+1 = 50009 [08:51:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 61 14.04.2024 08:51 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29151 ФПД: 22272412058769 1/tax-web-control/client/api/v1/ticket?date=20240414T085156&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29151&fm=22272412058769&tin=02508201610067®Number=0000138879044617&sum=50000 [08:51:48]StoreToDocumentArchive [08:51:48]shift 116 fd 29151 [08:51:48]save to /storage/0116/doc_00029151 [08:51:48]save last doc name /storage/0116/doc_00029151 to /storage/kkm_last_doc_name [08:51:48]save OK [08:51:48]Clear old archive folders... [08:51:48]ProcessDocumentItem done err = 0, tmpTLVsize=250 [08:51:48]tlvbuf is 01208620 [08:51:48]SAM_PROTO_ClearQueue [08:51:48]wFMCommunicate request_size=4 [08:51:48]MH_SAM_APDU [08:51:48]CAPDU: 80 09 00 00 [08:51:48]Write to MH i2c: E2 08 00 EF 81 80 09 00 00 00 00 00 00 E2 [08:51:48]Write i2c OK [08:51:48]MH_I2C_Read... [08:51:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:51:48]Read from MH i2c: E2 [08:51:48]MH_I2C_Read... [08:51:48]Read from MH i2c: E2 03 00 [08:51:48]MH_I2C_Read... [08:51:48]Read from MH i2c: E2 03 00 EF 81 00 90 00 E4 [08:51:48]RAPDU: 90 00 [08:51:48]wFMCommunicate OK [08:51:48]SAM_PROTO_ClearQueue done [08:51:48]KKMCreateOFDPacket [08:51:48]OFDProtocolAddRootSTLVToBuf [08:51:48]FM_MakeSignedData [08:51:48]FM_MakeSignedData [08:51:48]SAM_PROTO_SignData [08:51:48]wFMCommunicate request_size=4 [08:51:48]MH_SAM_APDU [08:51:48]CAPDU: 80 0D 01 02 [08:51:48]Write to MH i2c: E2 08 00 F0 81 80 0D 01 02 00 00 00 00 EA [08:51:48]Write i2c OK [08:51:48]MH_I2C_Read... [08:51:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:51:48]Read from MH i2c: E2 [08:51:48]MH_I2C_Read... [08:51:48]Read from MH i2c: E2 03 00 [08:51:48]MH_I2C_Read... [08:51:48]Read from MH i2c: E2 03 00 F0 81 00 90 00 E5 [08:51:48]RAPDU: 90 00 [08:51:48]wFMCommunicate OK [08:51:48]wFMCommunicate request_size=255 [08:51:48]MH_SAM_APDU [08:51: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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 2C 99 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DF 71 00 00 35 04 06 00 14 41 [08:51:48]Write to MH i2c: E2 02 01 F1 81 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 2C 99 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DF 71 00 00 35 04 06 00 14 41 00 00 AD [08:51:48]Write i2c OK [08:51:48]MH_I2C_Read... [08:51:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:51:48]Read from MH i2c: E2 [08:51:48]MH_I2C_Read... [08:51:48]Read from MH i2c: E2 03 00 [08:51:48]MH_I2C_Read... [08:51:48]Read from MH i2c: E2 03 00 F1 81 00 90 00 E6 [08:51:48]RAPDU: 90 00 [08:51:48]wFMCommunicate OK [08:51:48]wFMCommunicate request_size=9 [08:51:48]MH_SAM_APDU [08:51:48]CAPDU: 80 0D 02 02 04 B3 35 84 91 [08:51:48]Write to MH i2c: E2 0C 00 F2 81 80 0D 02 02 04 00 B3 35 84 91 00 00 F2 [08:51:48]Write i2c OK [08:51:48]MH_I2C_Read... [08:51:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:51:48]Read from MH i2c: E2 [08:51:48]MH_I2C_Read... [08:51:48]Read from MH i2c: E2 03 00 [08:51:48]MH_I2C_Read... [08:51:48]Read from MH i2c: E2 03 00 F2 81 00 90 00 E7 [08:51:48]RAPDU: 90 00 [08:51:48]wFMCommunicate OK [08:51:48]wFMCommunicate request_size=4 [08:51:48]MH_SAM_APDU [08:51:48]CAPDU: 80 0D 03 02 [08:51:48]Write to MH i2c: E2 08 00 F3 81 80 0D 03 02 00 00 00 00 EF [08:51:48]Write i2c OK [08:51:48]MH_I2C_Read... [08:51:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:51:48]Read from MH i2c: E2 [08:51:48]MH_I2C_Read... [08:51:48]Read from MH i2c: E2 0B 00 [08:51:48]MH_I2C_Read... [08:51:48]Read from MH i2c: E2 0B 00 F3 81 00 84 58 B0 71 AB B1 5E E3 90 00 8A [08:51:48]RAPDU: 84 58 B0 71 AB B1 5E E3 90 00 [08:51:48]wFMCommunicate OK [08:51:48]SAM_PROTO_SignData done [08:51:48]FM_MakeSignedData done [08:51:48]CreateOFDProtocolMessage [08:51:48]wFMCommunicate request_size=4 [08:51:48]MH_SAM_APDU [08:51:48]CAPDU: 80 11 00 00 [08:51:48]Write to MH i2c: E2 08 00 F4 81 80 11 00 00 00 00 00 00 EF [08:51:48]Write i2c OK [08:51:48]MH_I2C_Read... [08:51:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:51:48]Read from MH i2c: E2 [08:51:48]MH_I2C_Read... [08:51:48]Read from MH i2c: E2 17 00 [08:51:48]MH_I2C_Read... [08:51:48]Read from MH i2c: E2 17 00 F4 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 3E [08:51:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:51:48]wFMCommunicate OK [08:51:48]CreateOFDProtocolMessage done [08:51:48]OFDSenderStorePacket 29151 [08:51:48]StoreOFDPacket docnum=29151 [08:51:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 3A C4 06 01 F3 7C 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 2C 99 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DF 71 00 00 35 04 06 00 14 41 B3 35 84 91 84 58 B0 71 AB B1 5E E3 [08:51:48]CheckFolder [08:51:48]dirname=/storage/ofd_packets [08:51:48]CheckFolder done [08:51:48]ProducePacketName [08:51:48]name=ofd_packets/00029151 [08:51:48]NVStorageSaveData ofd_packets/00029151 [08:51:48]File name is /storage/ofd_packets/00029151 [08:51:48]Write 300 bytes [08:51:48]NVStorageSaveData done [08:51:48]OFDSenderStorePacket done [08:51:48]KKMCreateOFDPacket done [08:51:48]NVStorageSaveData kkm_last_timestamp [08:51:48]File name is /storage/kkm_last_timestamp [08:51:48]Write 4 bytes [08:51:48]NVStorageSaveData done [08:51:48]ExternCall_PrintAddStr [08:51:48]wPrintStart [08:51:48]Write to MH i2c: 01 00 00 F5 81 76 [08:51:48]Write i2c OK [08:51:48]MH_I2C_Read... [08:51:48]Read from MH i2c: 01 [08:51:48]MH_I2C_Read... [08:51:48]Read from MH i2c: 01 07 00 [08:51:48]MH_I2C_Read... [08:51:48]Read from MH i2c: 01 07 00 F5 81 00 00 00 00 00 FF 0F 8B [08:51:48]RasterBufferAndPrint [08:51:48]line Счет N : (1)347521 [08:51:48]line ИНН: 02508201610067 [08:51:48]line Контрольно-Кассовый Чек [08:51:48]line ПРОДАЖА [08:51:48]line ТРК (МРК, ГНК) : 71 [08:51:48]line Товар: 2711129700 [08:51:48]line ГАЗ-К-5 [08:51:48]line 15.200 * 32.90 [08:51:48]line = 500.08 [08:51:48]line НДС 12% НСП 1% [08:51:48]line > о реализуемом товаре [08:51:48]line ОКРУГЛЕНИЕ: -0.08 [08:51:48]line ИТОГО: 500.00 [08:51:48]line Внесено: 500.00 [08:51:48]line СДАЧА: 0.00 [08:51:48]line НСП 1% : 4.42 [08:51:48]line НДС 12% : 53.11 [08:51:48]line Наличными: 500.00 [08:51:48]line Безнал.: 0.00 [08:51:48]line Место: АЗС № 108 "Партнер Нефть" [08:51:48]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:51:48]line СНО: Общий режим [08:51:48]line Чек 61 14.04.2024 08:51 [08:51:48]line Смена: 116 ФФД: 1.0 [08:51:48]line ЗНМ: 0300000027 [08:51:48]line РНМ: 0000138879044617 [08:51:48]line Версия ККМ: 001 [08:51:48]line ФМ: 0000000000963154 [08:51:48]line ФД: 29151 [08:51:48]line ФПД: 22272412058769 [08:51:49]line 1/tax-web-control/client/api/v1/ticket?date=20240414T085156&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29151&fm=22272412058769&tin=02508201610067®Number=0000138879044617&sum=50000 [08:51:49]OFD Sender: Processing packet 29151 [packets to send 8, broken 7] [08:51:49]ProducePacketName [08:51:49]name=ofd_packets/00029151 [08:51:49]OFD Sender: To server: pG, [08:51:49]CommunicateWithHost lk.salyk.kg:30040 [08:51:49]ConnectInit lk.salyk.kg [08:51:49]written 0, free lines is 4095 [08:51:49]Connected sock=10 [08:51:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 3A C4 06 01 F3 7C 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 2C 99 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DF 71 00 00 35 04 06 00 14 41 B3 35 84 91 84 58 B0 71 AB B1 5E E3 [08:51:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 C3 9A 47 00 51 86 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DF 71 00 00 F4 03 04 00 D0 43 1B 66 B6 04 01 00 00 EA E8 DA D4 80 6A 5D 0D [08:51:49]CommunicateWithHost err = 0 [08:51:49]CheckOFDResponse [08:51:49]1017 (14) - 77093643461234 [08:51:49]1041 (16) - 0000000000963154 [08:51:49]1040 (4) - 29151 [08:51:49]1012 (4) - 14.04.2024 02:47 [08:51:49]1206 (1) - 0 [08:51:49]OFD Sender: Remove packet 29151 [08:51:49]ProducePacketName [08:51:49]name=ofd_packets/00029151 [08:51:49]NVStorageDeleteData [08:51:49]Write to MH i2c: 01 00 00 1F 82 A1 [08:51:49]Write i2c OK [08:51:49]MH_I2C_Read... [08:51:49]Read from MH i2c: 01 [08:51:49]MH_I2C_Read... [08:51:49]Read from MH i2c: 01 07 00 [08:51:49]MH_I2C_Read... [08:51:49]Read from MH i2c: 01 07 00 1F 82 00 00 00 00 00 BC 0C 70 [08:51:49]RasterBufferAndPrint [08:51:49]line [08:51:49]line [08:51:49]line [08:51:49]line [08:51:49]line [08:51:49]written 0, free lines is 3264 [08:51:49]MH_Cut [08:51:49]Write to MH i2c: D1 01 00 26 82 01 7A [08:51:49]Write i2c OK [08:51:49]MH_I2C_Read... [08:51:49]Read from MH i2c: D1 [08:51:49]MH_I2C_Read... [08:51:49]Read from MH i2c: D1 01 00 [08:51:49]MH_I2C_Read... [08:51:49]Read from MH i2c: D1 01 00 26 82 00 79 [08:51:49]Write to MH i2c: 01 00 00 27 82 A9 [08:51:49]Write i2c OK [08:51:49]MH_I2C_Read... [08:51:49]OFD Sender: No OFD packet to send [08:51:50]*** Cut start [08:51:50]*** Partial cut [08:51:50]*** CUTSNS_PIN = 1 [08:51:50]*** CUTSNS_PIN = 0 [08:51:50]*** Brake cut motor [08:51:51]Read from MH i2c: 01 [08:51:51]MH_I2C_Read... [08:51:51]*** Stop cut motor [08:51:51]*** Cut end [08:51:51]Read from MH i2c: 01 07 00 [08:51:51]MH_I2C_Read... [08:51:51]Read from MH i2c: 01 07 00 27 82 00 00 00 00 00 FF 0F BE [08:51:51]process_action close_receipt done [08:51:51]requested_data is exist [08:51:51]produce_requested_data [08:51:51]requested_item fm.sn is exist - process it [08:51:51]wFMCommunicate request_size=4 [08:51:51]MH_SAM_APDU [08:51:51]CAPDU: 80 11 00 00 [08:51:51]Write to MH i2c: E2 08 00 28 82 80 11 00 00 00 00 00 00 24 [08:51:51]Write i2c OK [08:51:51]MH_I2C_Read... [08:51:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:51:51]Read from MH i2c: E2 [08:51:51]MH_I2C_Read... [08:51:51]Read from MH i2c: E2 17 00 [08:51:51]MH_I2C_Read... [08:51:51]Read from MH i2c: E2 17 00 28 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 73 [08:51:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:51:51]wFMCommunicate OK [08:51:51]requested_item fd.num is exist - process it [08:51:51]SAM_PROTO_GetFieldsCounters [08:51:51]wFMCommunicate request_size=4 [08:51:51]MH_SAM_APDU [08:51:51]CAPDU: 80 13 00 00 [08:51:51]Write to MH i2c: E2 08 00 29 82 80 13 00 00 00 00 00 00 27 [08:51:51]Write i2c OK [08:51:51]MH_I2C_Read... [08:51:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:51:51]Read from MH i2c: E2 [08:51:51]MH_I2C_Read... [08:51:51]Read from MH i2c: E2 62 00 [08:51:51]MH_I2C_Read... [08:51:51]Read from MH i2c: E2 62 00 29 82 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DF 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 E0 [08:51:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DF 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:51:51]wFMCommunicate OK [08:51:51]SAM_PROTO_GetFieldsCounters done [08:51:51]requested_item shift.num is exist - process it [08:51:51]requested_item shift.opened is exist - process it [08:51:51]req_shift_opened [08:51:51]FM_GetShiftState [08:51:51]SAM_PROTO_GetShiftState [08:51:51]wFMCommunicate request_size=4 [08:51:51]MH_SAM_APDU [08:51:51]CAPDU: 80 13 01 00 [08:51:51]Write to MH i2c: E2 08 00 2A 82 80 13 01 00 00 00 00 00 29 [08:51:51]Write i2c OK [08:51:51]MH_I2C_Read... [08:51:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:51:51]Read from MH i2c: E2 [08:51:51]MH_I2C_Read... [08:51:51]Read from MH i2c: E2 0E 00 [08:51:51]MH_I2C_Read... [08:51:51]Read from MH i2c: E2 0E 00 2A 82 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 D5 [08:51:51]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [08:51:51]wFMCommunicate OK [08:51:51]SAM_PROTO_GetShiftState done [08:51:51]FM_GetShiftState done [08:51:51]req_shift_opened done [08:51:51]requested_item shift.open_date is exist - process it [08:51:51]req_shift_open_date [08:51:51]req_shift_open_date done [08:51:51]produce_requested_data done [08:51:51]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29151,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [08:51:51]process_action_free close_receipt [08:51:51]json_value_free [08:51:51]json_value_free done [08:51:51]process_json_proto returns [08:51:51]Send response to host [08:51:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29151,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [08:51:51]free response buf [08:51:51]execute_script done [08:51:51]execute_script returns [08:51:51]free content buf [08:51:51]Sock 7.Close socket [08:51:51]Sock 7.Thread stoped [08:51:54]OFD Sender: No OFD packet to send [08:51:56]accept exits with 9 [08:51:56]New connection [08:51:56]New thread 3066928484 created [08:51:56]Thread 3066785124 joined [08:51:56]Waiting for new connection... [08:51:56] Sock 9.Parse request [08:51:56]Sock 9.Check first char [08:51:56]Sock 9.First char is OK [08:51:56]request: POST /json_proto HTTP/1.0 [08:51:56]Method: POST [08:51:56]URL: /json_proto [08:51:56]Method is POST - this is cgi request [08:51:56]url: /json_proto [08:51:56]query_string will be loaded in cgi processing [08:51:56]execute_cgi json_proto POST (null) [08:51:56]execute_cgi path=json_proto method=POST [08:51:56]POST find Content-Length [08:51:56]Host: 172.17.33.3:8080 [08:51:56]Content-Length: 677 [08:51:56]Content-Type: application/json [08:51:56] [08:51:56]POST finish read [08:51:56]Found Content-Length = 677 [08:51:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347522", "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" ] } } [08:51:56]execute_script... [08:51: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)347522", "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" ] } } [08:51:56]POST & json_proto [08:51:56]process_json_proto [08:51:56]json parsed OK: [08:51:56]protocol is kg_v1.0 [08:51:56]action value=close_receipt [08:51:56]process_action close_receipt [08:51:56]cmd_close_receipt [08:51:56]MH_GetDate [08:51:56]Write to MH i2c: F0 00 00 2B 82 9C [08:51:56]Write i2c OK [08:51:56]MH_I2C_Read... [08:51:56]Read from MH i2c: F0 [08:51:56]MH_I2C_Read... [08:51:56]Read from MH i2c: F0 09 00 [08:51:56]MH_I2C_Read... [08:51:56]Read from MH i2c: F0 09 00 2B 82 00 35 99 1B 66 23 5B 8F 65 66 [08:51:56]GetLastDocTimeStamp 1713084716 [08:51:56]current date 1713084725 [08:51:56]FM_GetShiftState [08:51:56]SAM_PROTO_GetShiftState [08:51:56]wFMCommunicate request_size=4 [08:51:56]MH_SAM_APDU [08:51:56]CAPDU: 80 13 01 00 [08:51:56]Write to MH i2c: E2 08 00 2C 82 80 13 01 00 00 00 00 00 2B [08:51:56]Write i2c OK [08:51:56]MH_I2C_Read... [08:51:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:51:56]Read from MH i2c: E2 [08:51:56]MH_I2C_Read... [08:51:56]Read from MH i2c: E2 0E 00 [08:51:56]MH_I2C_Read... [08:51:56]Read from MH i2c: E2 0E 00 2C 82 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 D7 [08:51:56]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [08:51:56]wFMCommunicate OK [08:51:56]SAM_PROTO_GetShiftState done [08:51:56]FM_GetShiftState done [08:51:56]opened in 1713053951 [08:51:56]opened+sec_in_day 1713140351 [08:51:56]quantity*price = 60056 [08:51:56]sum+1 = 60057 [08:51:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.78 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 62 14.04.2024 08:52 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29152 ФПД: 256134365890262 1/tax-web-control/client/api/v1/ticket?date=20240414T085205&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29152&fm=256134365890262&tin=02508201610067®Number=0000138879044617&sum=60000 [08:51:57]StoreToDocumentArchive [08:51:57]shift 116 fd 29152 [08:51:57]save to /storage/0116/doc_00029152 [08:51:57]save last doc name /storage/0116/doc_00029152 to /storage/kkm_last_doc_name [08:51:57]save OK [08:51:57]Clear old archive folders... [08:51:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:51:57]tlvbuf is 012246F0 [08:51:57]SAM_PROTO_ClearQueue [08:51:57]wFMCommunicate request_size=4 [08:51:57]MH_SAM_APDU [08:51:57]CAPDU: 80 09 00 00 [08:51:57]Write to MH i2c: E2 08 00 39 82 80 09 00 00 00 00 00 00 2D [08:51:57]Write i2c OK [08:51:57]MH_I2C_Read... [08:51:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:51:57]Read from MH i2c: E2 [08:51:57]MH_I2C_Read... [08:51:57]Read from MH i2c: E2 03 00 [08:51:57]MH_I2C_Read... [08:51:57]Read from MH i2c: E2 03 00 39 82 00 90 00 2F [08:51:57]RAPDU: 90 00 [08:51:57]wFMCommunicate OK [08:51:57]SAM_PROTO_ClearQueue done [08:51:57]KKMCreateOFDPacket [08:51:57]OFDProtocolAddRootSTLVToBuf [08:51:57]FM_MakeSignedData [08:51:57]FM_MakeSignedData [08:51:57]SAM_PROTO_SignData [08:51:57]wFMCommunicate request_size=4 [08:51:57]MH_SAM_APDU [08:51:57]CAPDU: 80 0D 01 02 [08:51:57]Write to MH i2c: E2 08 00 3A 82 80 0D 01 02 00 00 00 00 35 [08:51:57]Write i2c OK [08:51:57]MH_I2C_Read... [08:51:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:51:57]Read from MH i2c: E2 [08:51:57]MH_I2C_Read... [08:51:57]Read from MH i2c: E2 03 00 [08:51:57]MH_I2C_Read... [08:51:57]Read from MH i2c: E2 03 00 3A 82 00 90 00 30 [08:51:57]RAPDU: 90 00 [08:51:57]wFMCommunicate OK [08:51:57]wFMCommunicate request_size=255 [08:51:57]MH_SAM_APDU [08:51: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 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 3E 00 00 00 F4 03 04 00 35 99 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E0 71 00 00 35 04 06 00 E8 [08:51:57]Write to MH i2c: E2 02 01 3B 82 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3E 00 00 00 F4 03 04 00 35 99 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E0 71 00 00 35 04 06 00 E8 00 00 9A [08:51:57]Write i2c OK [08:51:57]MH_I2C_Read... [08:51:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:51:58]Read from MH i2c: E2 [08:51:58]MH_I2C_Read... [08:51:58]Read from MH i2c: E2 03 00 [08:51:58]MH_I2C_Read... [08:51:58]Read from MH i2c: E2 03 00 3B 82 00 90 00 31 [08:51:58]RAPDU: 90 00 [08:51:58]wFMCommunicate OK [08:51:58]wFMCommunicate request_size=10 [08:51:58]MH_SAM_APDU [08:51:58]CAPDU: 80 0D 02 02 05 F3 ED E4 C6 D6 [08:51:58]Write to MH i2c: E2 0D 00 3C 82 80 0D 02 02 05 00 F3 ED E4 C6 D6 00 00 A2 [08:51:58]Write i2c OK [08:51:58]MH_I2C_Read... [08:51:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:51:58]Read from MH i2c: E2 [08:51:58]MH_I2C_Read... [08:51:58]Read from MH i2c: E2 03 00 [08:51:58]MH_I2C_Read... [08:51:58]Read from MH i2c: E2 03 00 3C 82 00 90 00 32 [08:51:58]RAPDU: 90 00 [08:51:58]wFMCommunicate OK [08:51:58]wFMCommunicate request_size=4 [08:51:58]MH_SAM_APDU [08:51:58]CAPDU: 80 0D 03 02 [08:51:58]Write to MH i2c: E2 08 00 3D 82 80 0D 03 02 00 00 00 00 3A [08:51:58]Write i2c OK [08:51:58]MH_I2C_Read... [08:51:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:51:58]Read from MH i2c: E2 [08:51:58]MH_I2C_Read... [08:51:58]Read from MH i2c: E2 0B 00 [08:51:58]MH_I2C_Read... [08:51:58]Read from MH i2c: E2 0B 00 3D 82 00 D9 89 24 17 19 11 78 EA 90 00 64 [08:51:58]RAPDU: D9 89 24 17 19 11 78 EA 90 00 [08:51:58]wFMCommunicate OK [08:51:58]SAM_PROTO_SignData done [08:51:58]FM_MakeSignedData done [08:51:58]CreateOFDProtocolMessage [08:51:58]wFMCommunicate request_size=4 [08:51:58]MH_SAM_APDU [08:51:58]CAPDU: 80 11 00 00 [08:51:58]Write to MH i2c: E2 08 00 3E 82 80 11 00 00 00 00 00 00 3A [08:51:58]Write i2c OK [08:51:58]MH_I2C_Read... [08:51:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:51:58]Read from MH i2c: E2 [08:51:58]MH_I2C_Read... [08:51:58]Read from MH i2c: E2 17 00 [08:51:58]MH_I2C_Read... [08:51:58]Read from MH i2c: E2 17 00 3E 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 89 [08:51:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:51:58]wFMCommunicate OK [08:51:58]CreateOFDProtocolMessage done [08:51:58]OFDSenderStorePacket 29152 [08:51:58]StoreOFDPacket docnum=29152 [08:51:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 7B C6 07 01 9E 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 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 3E 00 00 00 F4 03 04 00 35 99 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E0 71 00 00 35 04 06 00 E8 F3 ED E4 C6 D6 D9 89 24 17 19 11 78 EA [08:51:58]CheckFolder [08:51:58]dirname=/storage/ofd_packets [08:51:58]CheckFolder done [08:51:58]ProducePacketName [08:51:58]name=ofd_packets/00029152 [08:51:58]NVStorageSaveData ofd_packets/00029152 [08:51:58]File name is /storage/ofd_packets/00029152 [08:51:58]Write 301 bytes [08:51:58]NVStorageSaveData done [08:51:58]OFDSenderStorePacket done [08:51:58]KKMCreateOFDPacket done [08:51:58]NVStorageSaveData kkm_last_timestamp [08:51:58]File name is /storage/kkm_last_timestamp [08:51:58]Write 4 bytes [08:51:58]NVStorageSaveData done [08:51:58]ExternCall_PrintAddStr [08:51:58]wPrintStart [08:51:58]Write to MH i2c: 01 00 00 3F 82 C1 [08:51:58]Write i2c OK [08:51:58]MH_I2C_Read... [08:51:58]Read from MH i2c: 01 [08:51:58]MH_I2C_Read... [08:51:58]Read from MH i2c: 01 07 00 [08:51:58]MH_I2C_Read... [08:51:58]Read from MH i2c: 01 07 00 3F 82 00 00 00 00 00 FF 0F D6 [08:51:58]RasterBufferAndPrint [08:51:58]line Счет N : (1)347522 [08:51:58]line ИНН: 02508201610067 [08:51:58]line Контрольно-Кассовый Чек [08:51:58]line ПРОДАЖА [08:51:58]line ТРК (МРК, ГНК) : 32 [08:51:58]line Товар: 2710124130 [08:51:58]line Аи-92-К-5 [08:51:58]line 9.340 * 64.30 [08:51:58]line = 600.56 [08:51:58]line НДС 12% НСП 1% [08:51:58]line > о реализуемом товаре [08:51:58]line ОКРУГЛЕНИЕ: -0.56 [08:51:58]line ИТОГО: 600.00 [08:51:58]line Внесено: 600.00 [08:51:58]line СДАЧА: 0.00 [08:51:58]line НСП 1% : 5.31 [08:51:58]line НДС 12% : 63.78 [08:51:58]line Наличными: 600.00 [08:51:58]line Безнал.: 0.00 [08:51:58]line Место: АЗС № 108 "Партнер Нефть" [08:51:58]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:51:58]line СНО: Общий режим [08:51:58]line Чек 62 14.04.2024 08:52 [08:51:58]line Смена: 116 ФФД: 1.0 [08:51:58]line ЗНМ: 0300000027 [08:51:58]line РНМ: 0000138879044617 [08:51:58]line Версия ККМ: 001 [08:51:58]line ФМ: 0000000000963154 [08:51:58]line ФД: 29152 [08:51:58]line ФПД: 256134365890262 [08:51:58]line 1/tax-web-control/client/api/v1/ticket?date=20240414T085205&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29152&fm=256134365890262&tin=02508201610067®Number=0000138879044617&sum=60000 [08:51:58]written 0, free lines is 4095 [08:51:58]OFD Sender: Processing packet 29152 [packets to send 8, broken 7] [08:51:58]ProducePacketName [08:51:58]name=ofd_packets/00029152 [08:51:58]OFD Sender: To server: pG, [08:51:58]CommunicateWithHost lk.salyk.kg:30040 [08:51:58]ConnectInit lk.salyk.kg [08:51:58]Connected sock=10 [08:51:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 7B C6 07 01 9E 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 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 3E 00 00 00 F4 03 04 00 35 99 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E0 71 00 00 35 04 06 00 E8 F3 ED E4 C6 D6 D9 89 24 17 19 11 78 EA [08:51:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 33 BB 47 00 4C 5F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E0 71 00 00 F4 03 04 00 DA 43 1B 66 B6 04 01 00 00 AA F4 D2 30 3B 68 79 8B [08:51:58]CommunicateWithHost err = 0 [08:51:58]CheckOFDResponse [08:51:58]1017 (14) - 77093643461234 [08:51:58]1041 (16) - 0000000000963154 [08:51:58]1040 (4) - 29152 [08:51:58]1012 (4) - 14.04.2024 02:47 [08:51:58]1206 (1) - 0 [08:51:58]OFD Sender: Remove packet 29152 [08:51:58]ProducePacketName [08:51:58]name=ofd_packets/00029152 [08:51:58]NVStorageDeleteData [08:51:58]Write to MH i2c: 01 00 00 69 82 EB [08:51:58]Write i2c OK [08:51:58]MH_I2C_Read... [08:51:58]Read from MH i2c: 01 [08:51:58]MH_I2C_Read... [08:51:58]Read from MH i2c: 01 07 00 [08:51:58]MH_I2C_Read... [08:51:58]Read from MH i2c: 01 07 00 69 82 00 00 00 00 00 E2 0C E0 [08:51:58]RasterBufferAndPrint [08:51:58]line [08:51:58]line [08:51:58]line [08:51:58]line [08:51:58]line [08:51:58]written 0, free lines is 3307 [08:51:58]MH_Cut [08:51:58]Write to MH i2c: D1 01 00 70 82 01 C4 [08:51:58]Write i2c OK [08:51:58]MH_I2C_Read... [08:51:58]Read from MH i2c: D1 [08:51:58]MH_I2C_Read... [08:51:58]Read from MH i2c: D1 01 00 [08:51:58]MH_I2C_Read... [08:51:58]Read from MH i2c: D1 01 00 70 82 00 C3 [08:51:58]Write to MH i2c: 01 00 00 71 82 F3 [08:51:58]Write i2c OK [08:51:58]MH_I2C_Read... [08:51:59]OFD Sender: No OFD packet to send [08:51:59]*** Cut start [08:51:59]*** Partial cut [08:51:59]*** CUTSNS_PIN = 1 [08:51:59]*** CUTSNS_PIN = 0 [08:51:59]*** Brake cut motor [08:52:00]Read from MH i2c: 01 [08:52:00]MH_I2C_Read... [08:52:00]*** Stop cut motor [08:52:00]*** Cut end [08:52:00]Read from MH i2c: 01 07 00 [08:52:00]MH_I2C_Read... [08:52:00]Read from MH i2c: 01 07 00 71 82 00 00 00 00 00 FF 0F 08 [08:52:00]process_action close_receipt done [08:52:00]requested_data is exist [08:52:00]produce_requested_data [08:52:00]requested_item fm.sn is exist - process it [08:52:00]wFMCommunicate request_size=4 [08:52:00]MH_SAM_APDU [08:52:00]CAPDU: 80 11 00 00 [08:52:00]Write to MH i2c: E2 08 00 72 82 80 11 00 00 00 00 00 00 6E [08:52:00]Write i2c OK [08:52:00]MH_I2C_Read... [08:52:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:52:00]Read from MH i2c: E2 [08:52:00]MH_I2C_Read... [08:52:00]Read from MH i2c: E2 17 00 [08:52:00]MH_I2C_Read... [08:52:00]Read from MH i2c: E2 17 00 72 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 BD [08:52:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:52:00]wFMCommunicate OK [08:52:00]requested_item fd.num is exist - process it [08:52:00]SAM_PROTO_GetFieldsCounters [08:52:00]wFMCommunicate request_size=4 [08:52:00]MH_SAM_APDU [08:52:00]CAPDU: 80 13 00 00 [08:52:00]Write to MH i2c: E2 08 00 73 82 80 13 00 00 00 00 00 00 71 [08:52:00]Write i2c OK [08:52:00]MH_I2C_Read... [08:52:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:52:00]Read from MH i2c: E2 [08:52:00]MH_I2C_Read... [08:52:00]Read from MH i2c: E2 62 00 [08:52:00]MH_I2C_Read... [08:52:00]Read from MH i2c: E2 62 00 73 82 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E0 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 2E [08:52:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E0 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:52:00]wFMCommunicate OK [08:52:00]SAM_PROTO_GetFieldsCounters done [08:52:00]requested_item shift.num is exist - process it [08:52:00]requested_item shift.opened is exist - process it [08:52:00]req_shift_opened [08:52:00]FM_GetShiftState [08:52:00]SAM_PROTO_GetShiftState [08:52:00]wFMCommunicate request_size=4 [08:52:00]MH_SAM_APDU [08:52:00]CAPDU: 80 13 01 00 [08:52:00]Write to MH i2c: E2 08 00 74 82 80 13 01 00 00 00 00 00 73 [08:52:00]Write i2c OK [08:52:00]MH_I2C_Read... [08:52:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:52:00]Read from MH i2c: E2 [08:52:00]MH_I2C_Read... [08:52:00]Read from MH i2c: E2 0E 00 [08:52:00]MH_I2C_Read... [08:52:00]Read from MH i2c: E2 0E 00 74 82 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 1F [08:52:00]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [08:52:00]wFMCommunicate OK [08:52:00]SAM_PROTO_GetShiftState done [08:52:00]FM_GetShiftState done [08:52:00]req_shift_opened done [08:52:00]requested_item shift.open_date is exist - process it [08:52:00]req_shift_open_date [08:52:00]req_shift_open_date done [08:52:00]produce_requested_data done [08:52:00]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29152,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [08:52:00]process_action_free close_receipt [08:52:00]json_value_free [08:52:00]json_value_free done [08:52:00]process_json_proto returns [08:52:00]Send response to host [08:52:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29152,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [08:52:00]free response buf [08:52:00]execute_script done [08:52:00]execute_script returns [08:52:00]free content buf [08:52:00]Sock 9.Close socket [08:52:00]Sock 9.Thread stoped [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]accept exits with 7 [08:54:19]New connection [08:54:19]New thread 3066785124 created [08:54:19]Thread 3066928484 joined [08:54:19]Waiting for new connection... [08:54:19] Sock 7.Parse request [08:54:19]Sock 7.Check first char [08:54:19]Sock 7.First char is OK [08:54:19]request: POST /json_proto HTTP/1.0 [08:54:19]Method: POST [08:54:19]URL: /json_proto [08:54:19]Method is POST - this is cgi request [08:54:19]url: /json_proto [08:54:19]query_string will be loaded in cgi processing [08:54:19]execute_cgi json_proto POST (null) [08:54:19]execute_cgi path=json_proto method=POST [08:54:19]POST find Content-Length [08:54:19]Host: 172.17.33.3:8080 [08:54:19]Content-Length: 685 [08:54:19]Content-Type: application/json [08:54:19] [08:54:19]POST finish read [08:54:19]Found Content-Length = 685 [08:54:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347523", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 30.400, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:54:19]execute_script... [08:54: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)347523", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 30.400, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:54:19]POST & json_proto [08:54:19]process_json_proto [08:54:19]json parsed OK: [08:54:19]protocol is kg_v1.0 [08:54:19]action value=close_receipt [08:54:19]process_action close_receipt [08:54:19]cmd_close_receipt [08:54:19]MH_GetDate [08:54:19]Write to MH i2c: F0 00 00 75 82 E6 [08:54:19]Write i2c OK [08:54:19]MH_I2C_Read... [08:54:19]Read from MH i2c: F0 [08:54:19]MH_I2C_Read... [08:54:19]Read from MH i2c: F0 09 00 [08:54:19]MH_I2C_Read... [08:54:19]Read from MH i2c: F0 09 00 75 82 00 C4 99 1B 66 23 5B 8F 65 3F [08:54:19]GetLastDocTimeStamp 1713084725 [08:54:19]current date 1713084868 [08:54:19]FM_GetShiftState [08:54:19]SAM_PROTO_GetShiftState [08:54:19]wFMCommunicate request_size=4 [08:54:19]MH_SAM_APDU [08:54:19]CAPDU: 80 13 01 00 [08:54:19]Write to MH i2c: E2 08 00 76 82 80 13 01 00 00 00 00 00 75 [08:54:19]Write i2c OK [08:54:19]MH_I2C_Read... [08:54:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:54:19]Read from MH i2c: E2 [08:54:19]MH_I2C_Read... [08:54:19]Read from MH i2c: E2 0E 00 [08:54:19]MH_I2C_Read... [08:54:19]Read from MH i2c: E2 0E 00 76 82 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 21 [08:54:19]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [08:54:19]wFMCommunicate OK [08:54:19]SAM_PROTO_GetShiftState done [08:54:19]FM_GetShiftState done [08:54:19]opened in 1713053951 [08:54:19]opened+sec_in_day 1713140351 [08:54:19]quantity*price = 100016 [08:54:19]sum+1 = 100017 [08:54:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 63 14.04.2024 08:54 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29153 ФПД: 221218170934848 1/tax-web-control/client/api/v1/ticket?date=20240414T085428&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29153&fm=221218170934848&tin=02508201610067®Number=0000138879044617&sum=100000 [08:54:20]StoreToDocumentArchive [08:54:20]shift 116 fd 29153 [08:54:20]save to /storage/0116/doc_00029153 [08:54:20]save last doc name /storage/0116/doc_00029153 to /storage/kkm_last_doc_name [08:54:20]save OK [08:54:20]Clear old archive folders... [08:54:20]ProcessDocumentItem done err = 0, tmpTLVsize=250 [08:54:20]tlvbuf is 01250FB0 [08:54:20]SAM_PROTO_ClearQueue [08:54:20]wFMCommunicate request_size=4 [08:54:20]MH_SAM_APDU [08:54:20]CAPDU: 80 09 00 00 [08:54:20]Write to MH i2c: E2 08 00 83 82 80 09 00 00 00 00 00 00 77 [08:54:20]Write i2c OK [08:54:20]MH_I2C_Read... [08:54:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:54:20]Read from MH i2c: E2 [08:54:20]MH_I2C_Read... [08:54:20]Read from MH i2c: E2 03 00 [08:54:20]MH_I2C_Read... [08:54:20]Read from MH i2c: E2 03 00 83 82 00 90 00 79 [08:54:20]RAPDU: 90 00 [08:54:20]wFMCommunicate OK [08:54:20]SAM_PROTO_ClearQueue done [08:54:20]KKMCreateOFDPacket [08:54:20]OFDProtocolAddRootSTLVToBuf [08:54:20]FM_MakeSignedData [08:54:20]FM_MakeSignedData [08:54:20]SAM_PROTO_SignData [08:54:20]wFMCommunicate request_size=4 [08:54:20]MH_SAM_APDU [08:54:20]CAPDU: 80 0D 01 02 [08:54:20]Write to MH i2c: E2 08 00 84 82 80 0D 01 02 00 00 00 00 7F [08:54:20]Write i2c OK [08:54:20]MH_I2C_Read... [08:54:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:54:20]Read from MH i2c: E2 [08:54:20]MH_I2C_Read... [08:54:20]Read from MH i2c: E2 03 00 [08:54:20]MH_I2C_Read... [08:54:20]Read from MH i2c: E2 03 00 84 82 00 90 00 7A [08:54:20]RAPDU: 90 00 [08:54:20]wFMCommunicate OK [08:54:20]wFMCommunicate request_size=255 [08:54:20]MH_SAM_APDU [08:54: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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 C4 99 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E1 71 00 00 35 04 06 00 C9 32 [08:54:20]Write to MH i2c: E2 02 01 85 82 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 C4 99 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E1 71 00 00 35 04 06 00 C9 32 00 00 F3 [08:54:20]Write i2c OK [08:54:20]MH_I2C_Read... [08:54:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:54:20]Read from MH i2c: E2 [08:54:20]MH_I2C_Read... [08:54:20]Read from MH i2c: E2 03 00 [08:54:20]MH_I2C_Read... [08:54:20]Read from MH i2c: E2 03 00 85 82 00 90 00 7B [08:54:20]RAPDU: 90 00 [08:54:20]wFMCommunicate OK [08:54:20]wFMCommunicate request_size=9 [08:54:20]MH_SAM_APDU [08:54:20]CAPDU: 80 0D 02 02 04 5E 7F 16 40 [08:54:20]Write to MH i2c: E2 0C 00 86 82 80 0D 02 02 04 00 5E 7F 16 40 00 00 BD [08:54:20]Write i2c OK [08:54:20]MH_I2C_Read... [08:54:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:54:20]Read from MH i2c: E2 [08:54:20]MH_I2C_Read... [08:54:20]Read from MH i2c: E2 03 00 [08:54:20]MH_I2C_Read... [08:54:20]Read from MH i2c: E2 03 00 86 82 00 90 00 7C [08:54:20]RAPDU: 90 00 [08:54:20]wFMCommunicate OK [08:54:20]wFMCommunicate request_size=4 [08:54:20]MH_SAM_APDU [08:54:20]CAPDU: 80 0D 03 02 [08:54:20]Write to MH i2c: E2 08 00 87 82 80 0D 03 02 00 00 00 00 84 [08:54:20]Write i2c OK [08:54:20]MH_I2C_Read... [08:54:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:54:20]Read from MH i2c: E2 [08:54:20]MH_I2C_Read... [08:54:20]Read from MH i2c: E2 0B 00 [08:54:20]MH_I2C_Read... [08:54:20]Read from MH i2c: E2 0B 00 87 82 00 CB 49 A3 11 75 3D E4 91 90 00 74 [08:54:20]RAPDU: CB 49 A3 11 75 3D E4 91 90 00 [08:54:20]wFMCommunicate OK [08:54:20]SAM_PROTO_SignData done [08:54:20]FM_MakeSignedData done [08:54:20]CreateOFDProtocolMessage [08:54:20]wFMCommunicate request_size=4 [08:54:20]MH_SAM_APDU [08:54:20]CAPDU: 80 11 00 00 [08:54:20]Write to MH i2c: E2 08 00 88 82 80 11 00 00 00 00 00 00 84 [08:54:20]Write i2c OK [08:54:20]MH_I2C_Read... [08:54:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:54:20]Read from MH i2c: E2 [08:54:20]MH_I2C_Read... [08:54:20]Read from MH i2c: E2 17 00 [08:54:20]MH_I2C_Read... [08:54:20]Read from MH i2c: E2 17 00 88 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D3 [08:54:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:54:20]wFMCommunicate OK [08:54:20]CreateOFDProtocolMessage done [08:54:20]OFDSenderStorePacket 29153 [08:54:20]StoreOFDPacket docnum=29153 [08:54:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 68 E7 06 01 2A 6A 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 C4 99 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E1 71 00 00 35 04 06 00 C9 32 5E 7F 16 40 CB 49 A3 11 75 3D E4 91 [08:54:20]CheckFolder [08:54:20]dirname=/storage/ofd_packets [08:54:20]CheckFolder done [08:54:20]ProducePacketName [08:54:20]name=ofd_packets/00029153 [08:54:20]NVStorageSaveData ofd_packets/00029153 [08:54:20]File name is /storage/ofd_packets/00029153 [08:54:20]Write 300 bytes [08:54:20]NVStorageSaveData done [08:54:20]OFDSenderStorePacket done [08:54:20]KKMCreateOFDPacket done [08:54:20]NVStorageSaveData kkm_last_timestamp [08:54:20]File name is /storage/kkm_last_timestamp [08:54:20]Write 4 bytes [08:54:20]NVStorageSaveData done [08:54:20]ExternCall_PrintAddStr [08:54:20]wPrintStart [08:54:20]Write to MH i2c: 01 00 00 89 82 0B [08:54:20]Write i2c OK [08:54:20]MH_I2C_Read... [08:54:20]Read from MH i2c: 01 [08:54:20]MH_I2C_Read... [08:54:20]Read from MH i2c: 01 07 00 [08:54:20]MH_I2C_Read... [08:54:20]Read from MH i2c: 01 07 00 89 82 00 00 00 00 00 FF 0F 20 [08:54:20]RasterBufferAndPrint [08:54:20]line Счет N : (1)347523 [08:54:20]line ИНН: 02508201610067 [08:54:20]line Контрольно-Кассовый Чек [08:54:20]line ПРОДАЖА [08:54:20]line ТРК (МРК, ГНК) : 71 [08:54:20]line Товар: 2711129700 [08:54:20]line ГАЗ-К-5 [08:54:20]line 30.400 * 32.90 [08:54:20]line = 1000.16 [08:54:20]line НДС 12% НСП 1% [08:54:20]line > о реализуемом товаре [08:54:20]line ОКРУГЛЕНИЕ: -0.16 [08:54:20]line ИТОГО: 1000.00 [08:54:20]line Внесено: 1000.00 [08:54:20]line СДАЧА: 0.00 [08:54:20]line НСП 1% : 8.85 [08:54:20]line НДС 12% : 106.21 [08:54:20]line Наличными: 1000.00 [08:54:20]line Безнал.: 0.00 [08:54:20]line Место: АЗС № 108 "Партнер Нефть" [08:54:20]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:54:20]line СНО: Общий режим [08:54:20]line Чек 63 14.04.2024 08:54 [08:54:20]line Смена: 116 ФФД: 1.0 [08:54:20]line ЗНМ: 0300000027 [08:54:20]line РНМ: 0000138879044617 [08:54:20]line Версия ККМ: 001 [08:54:20]line ФМ: 0000000000963154 [08:54:20]line ФД: 29153 [08:54:20]line ФПД: 221218170934848 [08:54:21]line 1/tax-web-control/client/api/v1/ticket?date=20240414T085428&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29153&fm=221218170934848&tin=02508201610067®Number=0000138879044617&sum=100000 [08:54:21]OFD Sender: Processing packet 29153 [packets to send 8, broken 7] [08:54:21]ProducePacketName [08:54:21]name=ofd_packets/00029153 [08:54:21]OFD Sender: To server: pG, [08:54:21]CommunicateWithHost lk.salyk.kg:30040 [08:54:21]ConnectInit lk.salyk.kg [08:54:21]written 0, free lines is 4095 [08:54:21]Connected sock=10 [08:54:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 68 E7 06 01 2A 6A 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 C4 99 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E1 71 00 00 35 04 06 00 C9 32 5E 7F 16 40 CB 49 A3 11 75 3D E4 91 [08:54:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 0F 21 47 00 74 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 39 36 33 31 35 34 10 04 04 00 E1 71 00 00 F4 03 04 00 68 44 1B 66 B6 04 01 00 00 DE 84 8D 33 DC B6 FF DB [08:54:21]CommunicateWithHost err = 0 [08:54:21]CheckOFDResponse [08:54:21]1017 (14) - 77093643461234 [08:54:21]1041 (16) - 0000000000963154 [08:54:21]1040 (4) - 29153 [08:54:21]1012 (4) - 14.04.2024 02:50 [08:54:21]1206 (1) - 0 [08:54:21]OFD Sender: Remove packet 29153 [08:54:21]ProducePacketName [08:54:21]name=ofd_packets/00029153 [08:54:21]NVStorageDeleteData [08:54:21]Write to MH i2c: 01 00 00 B3 82 35 [08:54:21]Write i2c OK [08:54:21]MH_I2C_Read... [08:54:21]Read from MH i2c: 01 [08:54:21]MH_I2C_Read... [08:54:21]Read from MH i2c: 01 07 00 [08:54:21]MH_I2C_Read... [08:54:21]Read from MH i2c: 01 07 00 B3 82 00 00 00 00 00 C4 0C 0C [08:54:21]RasterBufferAndPrint [08:54:21]line [08:54:21]line [08:54:21]line [08:54:21]line [08:54:21]line [08:54:21]written 0, free lines is 3272 [08:54:21]MH_Cut [08:54:21]Write to MH i2c: D1 01 00 BA 82 01 0E [08:54:21]Write i2c OK [08:54:21]MH_I2C_Read... [08:54:21]Read from MH i2c: D1 [08:54:21]MH_I2C_Read... [08:54:21]Read from MH i2c: D1 01 00 [08:54:21]MH_I2C_Read... [08:54:21]Read from MH i2c: D1 01 00 BA 82 00 0D [08:54:21]Write to MH i2c: 01 00 00 BB 82 3D [08:54:21]Write i2c OK [08:54:21]MH_I2C_Read... [08:54:22]OFD Sender: No OFD packet to send [08:54:22]*** Cut start [08:54:22]*** Partial cut [08:54:22]*** CUTSNS_PIN = 1 [08:54:22]*** CUTSNS_PIN = 0 [08:54:22]*** Brake cut motor [08:54:23]Read from MH i2c: 01 [08:54:23]MH_I2C_Read... [08:54:23]*** Stop cut motor [08:54:23]*** Cut end [08:54:23]Read from MH i2c: 01 07 00 [08:54:23]MH_I2C_Read... [08:54:23]Read from MH i2c: 01 07 00 BB 82 00 00 00 00 00 FF 0F 52 [08:54:23]process_action close_receipt done [08:54:23]requested_data is exist [08:54:23]produce_requested_data [08:54:23]requested_item fm.sn is exist - process it [08:54:23]wFMCommunicate request_size=4 [08:54:23]MH_SAM_APDU [08:54:23]CAPDU: 80 11 00 00 [08:54:23]Write to MH i2c: E2 08 00 BC 82 80 11 00 00 00 00 00 00 B8 [08:54:23]Write i2c OK [08:54:23]MH_I2C_Read... [08:54:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:54:23]Read from MH i2c: E2 [08:54:23]MH_I2C_Read... [08:54:23]Read from MH i2c: E2 17 00 [08:54:23]MH_I2C_Read... [08:54:23]Read from MH i2c: E2 17 00 BC 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 07 [08:54:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:54:23]wFMCommunicate OK [08:54:23]requested_item fd.num is exist - process it [08:54:23]SAM_PROTO_GetFieldsCounters [08:54:23]wFMCommunicate request_size=4 [08:54:23]MH_SAM_APDU [08:54:23]CAPDU: 80 13 00 00 [08:54:23]Write to MH i2c: E2 08 00 BD 82 80 13 00 00 00 00 00 00 BB [08:54:23]Write i2c OK [08:54:23]MH_I2C_Read... [08:54:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:54:23]Read from MH i2c: E2 [08:54:23]MH_I2C_Read... [08:54:23]Read from MH i2c: E2 62 00 [08:54:23]MH_I2C_Read... [08:54:23]Read from MH i2c: E2 62 00 BD 82 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E1 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 7C [08:54:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E1 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:54:23]wFMCommunicate OK [08:54:23]SAM_PROTO_GetFieldsCounters done [08:54:23]requested_item shift.num is exist - process it [08:54:23]requested_item shift.opened is exist - process it [08:54:23]req_shift_opened [08:54:23]FM_GetShiftState [08:54:23]SAM_PROTO_GetShiftState [08:54:23]wFMCommunicate request_size=4 [08:54:23]MH_SAM_APDU [08:54:23]CAPDU: 80 13 01 00 [08:54:23]Write to MH i2c: E2 08 00 BE 82 80 13 01 00 00 00 00 00 BD [08:54:23]Write i2c OK [08:54:23]MH_I2C_Read... [08:54:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:54:23]Read from MH i2c: E2 [08:54:23]MH_I2C_Read... [08:54:23]Read from MH i2c: E2 0E 00 [08:54:23]MH_I2C_Read... [08:54:23]Read from MH i2c: E2 0E 00 BE 82 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 69 [08:54:23]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [08:54:23]wFMCommunicate OK [08:54:23]SAM_PROTO_GetShiftState done [08:54:23]FM_GetShiftState done [08:54:23]req_shift_opened done [08:54:23]requested_item shift.open_date is exist - process it [08:54:23]req_shift_open_date [08:54:23]req_shift_open_date done [08:54:23]produce_requested_data done [08:54:23]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29153,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [08:54:23]process_action_free close_receipt [08:54:23]json_value_free [08:54:23]json_value_free done [08:54:23]process_json_proto returns [08:54:23]Send response to host [08:54:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29153,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [08:54:23]free response buf [08:54:23]execute_script done [08:54:23]execute_script returns [08:54:23]free content buf [08:54:23]Sock 7.Close socket [08:54:23]Sock 7.Thread stoped [08:54:27]OFD Sender: No OFD packet to send [08:54:32]OFD Sender: No OFD packet to send [08:54:37]OFD Sender: No OFD packet to send [08:54:42]OFD Sender: No OFD packet to send [08:54:47]OFD Sender: No OFD packet to send [08:54:52]OFD Sender: No OFD packet to send [08:54:57]OFD Sender: No OFD packet to send [08:55:02]OFD Sender: No OFD packet to send [08:55:07]OFD Sender: No OFD packet to send [08:55:12]OFD Sender: No OFD packet to send [08:55:17]OFD Sender: No OFD packet to send [08:55:22]OFD Sender: No OFD packet to send [08:55:27]OFD Sender: No OFD packet to send [08:55:32]OFD Sender: No OFD packet to send [08:55:37]OFD Sender: No OFD packet to send [08:55:42]OFD Sender: No OFD packet to send [08:55:47]OFD Sender: No OFD packet to send [08:55:52]OFD Sender: No OFD packet to send [08:55:57]OFD Sender: No OFD packet to send [08:56:02]OFD Sender: No OFD packet to send [08:56:07]OFD Sender: No OFD packet to send [08:56:12]OFD Sender: No OFD packet to send [08:56:17]OFD Sender: No OFD packet to send [08:56:22]OFD Sender: No OFD packet to send [08:56:27]OFD Sender: No OFD packet to send [08:56:32]OFD Sender: No OFD packet to send [08:56:37]OFD Sender: No OFD packet to send [08:56:42]OFD Sender: No OFD packet to send [08:56:47]OFD Sender: No OFD packet to send [08:56:52]OFD Sender: No OFD packet to send [08:56:57]OFD Sender: No OFD packet to send [08:57:02]OFD Sender: No OFD packet to send [08:57:07]OFD Sender: No OFD packet to send [08:57:12]OFD Sender: No OFD packet to send [08:57:17]OFD Sender: No OFD packet to send [08:57:22]OFD Sender: No OFD packet to send [08:57:27]OFD Sender: No OFD packet to send [08:57:32]OFD Sender: No OFD packet to send [08:57:37]OFD Sender: No OFD packet to send [08:57:42]OFD Sender: No OFD packet to send [08:57:47]OFD Sender: No OFD packet to send [08:57:52]OFD Sender: No OFD packet to send [08:57:57]OFD Sender: No OFD packet to send [08:58:02]OFD Sender: No OFD packet to send [08:58:07]OFD Sender: No OFD packet to send [08:58:12]OFD Sender: No OFD packet to send [08:58:17]OFD Sender: No OFD packet to send [08:58:22]OFD Sender: No OFD packet to send [08:58:27]OFD Sender: No OFD packet to send [08:58:32]OFD Sender: No OFD packet to send [08:58:37]OFD Sender: No OFD packet to send [08:58:42]OFD Sender: No OFD packet to send [08:58:47]OFD Sender: No OFD packet to send [08:58:52]OFD Sender: No OFD packet to send [08:58:57]OFD Sender: No OFD packet to send [08:59:02]OFD Sender: No OFD packet to send [08:59:07]OFD Sender: No OFD packet to send [08:59:12]OFD Sender: No OFD packet to send [08:59:17]OFD Sender: No OFD packet to send [08:59:22]OFD Sender: No OFD packet to send [08:59:24]accept exits with 9 [08:59:24]New connection [08:59:24]New thread 3066928484 created [08:59:24]Thread 3066785124 joined [08:59:24]Waiting for new connection... [08:59:24] Sock 9.Parse request [08:59:24]Sock 9.Check first char [08:59:24]Sock 9.First char is OK [08:59:24]request: POST /json_proto HTTP/1.0 [08:59:24]Method: POST [08:59:24]URL: /json_proto [08:59:24]Method is POST - this is cgi request [08:59:24]url: /json_proto [08:59:24]query_string will be loaded in cgi processing [08:59:24]execute_cgi json_proto POST (null) [08:59:24]execute_cgi path=json_proto method=POST [08:59:24]POST find Content-Length [08:59:24]Host: 172.17.33.3:8080 [08:59:24]Content-Length: 678 [08:59:24]Content-Type: application/json [08:59:24] [08:59:24]POST finish read [08:59:24]Found Content-Length = 678 [08:59:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347524", "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" : 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" ] } } [08:59:24]execute_script... [08:59: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)347524", "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" : 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" ] } } [08:59:24]POST & json_proto [08:59:24]process_json_proto [08:59:24]json parsed OK: [08:59:24]protocol is kg_v1.0 [08:59:24]action value=close_receipt [08:59:24]process_action close_receipt [08:59:24]cmd_close_receipt [08:59:24]MH_GetDate [08:59:24]Write to MH i2c: F0 00 00 BF 82 30 [08:59:24]Write i2c OK [08:59:24]MH_I2C_Read... [08:59:24]Read from MH i2c: F0 [08:59:24]MH_I2C_Read... [08:59:24]Read from MH i2c: F0 09 00 [08:59:24]MH_I2C_Read... [08:59:24]Read from MH i2c: F0 09 00 BF 82 00 F5 9A 1B 66 23 5B 8F 65 BB [08:59:24]GetLastDocTimeStamp 1713084868 [08:59:24]current date 1713085173 [08:59:24]FM_GetShiftState [08:59:24]SAM_PROTO_GetShiftState [08:59:24]wFMCommunicate request_size=4 [08:59:24]MH_SAM_APDU [08:59:24]CAPDU: 80 13 01 00 [08:59:24]Write to MH i2c: E2 08 00 C0 82 80 13 01 00 00 00 00 00 BF [08:59:24]Write i2c OK [08:59:24]MH_I2C_Read... [08:59:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:59:24]Read from MH i2c: E2 [08:59:24]MH_I2C_Read... [08:59:24]Read from MH i2c: E2 0E 00 [08:59:24]MH_I2C_Read... [08:59:24]Read from MH i2c: E2 0E 00 C0 82 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 6B [08:59:24]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [08:59:24]wFMCommunicate OK [08:59:24]SAM_PROTO_GetShiftState done [08:59:24]FM_GetShiftState done [08:59:24]opened in 1713053951 [08:59:24]opened+sec_in_day 1713140351 [08:59:24]quantity*price = 80053 [08:59:24]sum+1 = 80055 [08:59:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.01 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 64 14.04.2024 08:59 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29154 ФПД: 1181415265907 1/tax-web-control/client/api/v1/ticket?date=20240414T085933&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29154&fm=1181415265907&tin=02508201610067®Number=0000138879044617&sum=80000 [08:59:25]StoreToDocumentArchive [08:59:25]shift 116 fd 29154 [08:59:25]save to /storage/0116/doc_00029154 [08:59:25]save last doc name /storage/0116/doc_00029154 to /storage/kkm_last_doc_name [08:59:25]save OK [08:59:25]Clear old archive folders... [08:59:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:59:25]tlvbuf is 01216200 [08:59:25]SAM_PROTO_ClearQueue [08:59:25]wFMCommunicate request_size=4 [08:59:25]MH_SAM_APDU [08:59:25]CAPDU: 80 09 00 00 [08:59:25]Write to MH i2c: E2 08 00 CD 82 80 09 00 00 00 00 00 00 C1 [08:59:25]Write i2c OK [08:59:25]MH_I2C_Read... [08:59:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:59:25]Read from MH i2c: E2 [08:59:25]MH_I2C_Read... [08:59:25]Read from MH i2c: E2 03 00 [08:59:25]MH_I2C_Read... [08:59:25]Read from MH i2c: E2 03 00 CD 82 00 90 00 C3 [08:59:25]RAPDU: 90 00 [08:59:25]wFMCommunicate OK [08:59:25]SAM_PROTO_ClearQueue done [08:59:25]KKMCreateOFDPacket [08:59:25]OFDProtocolAddRootSTLVToBuf [08:59:25]FM_MakeSignedData [08:59:25]FM_MakeSignedData [08:59:25]SAM_PROTO_SignData [08:59:25]wFMCommunicate request_size=4 [08:59:25]MH_SAM_APDU [08:59:25]CAPDU: 80 0D 01 02 [08:59:25]Write to MH i2c: E2 08 00 CE 82 80 0D 01 02 00 00 00 00 C9 [08:59:25]Write i2c OK [08:59:25]MH_I2C_Read... [08:59:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:59:25]Read from MH i2c: E2 [08:59:25]MH_I2C_Read... [08:59:25]Read from MH i2c: E2 03 00 [08:59:25]MH_I2C_Read... [08:59:25]Read from MH i2c: E2 03 00 CE 82 00 90 00 C4 [08:59:25]RAPDU: 90 00 [08:59:25]wFMCommunicate OK [08:59:25]wFMCommunicate request_size=255 [08:59:25]MH_SAM_APDU [08:59: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 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 40 00 00 00 F4 03 04 00 F5 9A 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E2 71 00 00 35 04 06 00 01 [08:59:25]Write to MH i2c: E2 02 01 CF 82 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 40 00 00 00 F4 03 04 00 F5 9A 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E2 71 00 00 35 04 06 00 01 00 00 8E [08:59:25]Write i2c OK [08:59:25]MH_I2C_Read... [08:59:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:59:26]Read from MH i2c: E2 [08:59:26]MH_I2C_Read... [08:59:26]Read from MH i2c: E2 03 00 [08:59:26]MH_I2C_Read... [08:59:26]Read from MH i2c: E2 03 00 CF 82 00 90 00 C5 [08:59:26]RAPDU: 90 00 [08:59:26]wFMCommunicate OK [08:59:26]wFMCommunicate request_size=10 [08:59:26]MH_SAM_APDU [08:59:26]CAPDU: 80 0D 02 02 05 13 11 D6 56 73 [08:59:26]Write to MH i2c: E2 0D 00 D0 82 80 0D 02 02 05 00 13 11 D6 56 73 00 00 99 [08:59:26]Write i2c OK [08:59:26]MH_I2C_Read... [08:59:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:59:26]Read from MH i2c: E2 [08:59:26]MH_I2C_Read... [08:59:26]Read from MH i2c: E2 03 00 [08:59:26]MH_I2C_Read... [08:59:26]Read from MH i2c: E2 03 00 D0 82 00 90 00 C6 [08:59:26]RAPDU: 90 00 [08:59:26]wFMCommunicate OK [08:59:26]wFMCommunicate request_size=4 [08:59:26]MH_SAM_APDU [08:59:26]CAPDU: 80 0D 03 02 [08:59:26]Write to MH i2c: E2 08 00 D1 82 80 0D 03 02 00 00 00 00 CE [08:59:26]Write i2c OK [08:59:26]MH_I2C_Read... [08:59:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:59:26]Read from MH i2c: E2 [08:59:26]MH_I2C_Read... [08:59:26]Read from MH i2c: E2 0B 00 [08:59:26]MH_I2C_Read... [08:59:26]Read from MH i2c: E2 0B 00 D1 82 00 8E 62 26 9A 0B 46 58 01 90 00 29 [08:59:26]RAPDU: 8E 62 26 9A 0B 46 58 01 90 00 [08:59:26]wFMCommunicate OK [08:59:26]SAM_PROTO_SignData done [08:59:26]FM_MakeSignedData done [08:59:26]CreateOFDProtocolMessage [08:59:26]wFMCommunicate request_size=4 [08:59:26]MH_SAM_APDU [08:59:26]CAPDU: 80 11 00 00 [08:59:26]Write to MH i2c: E2 08 00 D2 82 80 11 00 00 00 00 00 00 CE [08:59:26]Write i2c OK [08:59:26]MH_I2C_Read... [08:59:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:59:26]Read from MH i2c: E2 [08:59:26]MH_I2C_Read... [08:59:26]Read from MH i2c: E2 17 00 [08:59:26]MH_I2C_Read... [08:59:26]Read from MH i2c: E2 17 00 D2 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 1D [08:59:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:59:26]wFMCommunicate OK [08:59:26]CreateOFDProtocolMessage done [08:59:26]OFDSenderStorePacket 29154 [08:59:26]StoreOFDPacket docnum=29154 [08:59:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 5E EC 07 01 2D 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 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 40 00 00 00 F4 03 04 00 F5 9A 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E2 71 00 00 35 04 06 00 01 13 11 D6 56 73 8E 62 26 9A 0B 46 58 01 [08:59:26]CheckFolder [08:59:26]dirname=/storage/ofd_packets [08:59:26]CheckFolder done [08:59:26]ProducePacketName [08:59:26]name=ofd_packets/00029154 [08:59:26]NVStorageSaveData ofd_packets/00029154 [08:59:26]File name is /storage/ofd_packets/00029154 [08:59:26]Write 301 bytes [08:59:26]NVStorageSaveData done [08:59:26]OFDSenderStorePacket done [08:59:26]KKMCreateOFDPacket done [08:59:26]NVStorageSaveData kkm_last_timestamp [08:59:26]File name is /storage/kkm_last_timestamp [08:59:26]Write 4 bytes [08:59:26]NVStorageSaveData done [08:59:26]ExternCall_PrintAddStr [08:59:26]wPrintStart [08:59:26]Write to MH i2c: 01 00 00 D3 82 55 [08:59:26]Write i2c OK [08:59:26]MH_I2C_Read... [08:59:26]Read from MH i2c: 01 [08:59:26]MH_I2C_Read... [08:59:26]Read from MH i2c: 01 07 00 [08:59:26]MH_I2C_Read... [08:59:26]Read from MH i2c: 01 07 00 D3 82 00 00 00 00 00 FF 0F 6A [08:59:26]RasterBufferAndPrint [08:59:26]line Счет N : (1)347524 [08:59:26]line ИНН: 02508201610067 [08:59:26]line Контрольно-Кассовый Чек [08:59:26]line ПРОДАЖА [08:59:26]line ТРК (МРК, ГНК) : 42 [08:59:26]line Товар: 2710124130 [08:59:26]line Аи-92-К-5 [08:59:26]line 12.450 * 64.30 [08:59:26]line = 800.54 [08:59:26]line НДС 12% НСП 1% [08:59:26]line > о реализуемом товаре [08:59:26]line ОКРУГЛЕНИЕ: -0.54 [08:59:26]line ИТОГО: 800.00 [08:59:26]line Внесено: 800.00 [08:59:26]line СДАЧА: 0.00 [08:59:26]line НСП 1% : 7.08 [08:59:26]line НДС 12% : 85.01 [08:59:26]line Наличными: 800.00 [08:59:26]line Безнал.: 0.00 [08:59:26]line Место: АЗС № 108 "Партнер Нефть" [08:59:26]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:59:26]line СНО: Общий режим [08:59:26]line Чек 64 14.04.2024 08:59 [08:59:26]line Смена: 116 ФФД: 1.0 [08:59:26]line ЗНМ: 0300000027 [08:59:26]line РНМ: 0000138879044617 [08:59:26]line Версия ККМ: 001 [08:59:26]line ФМ: 0000000000963154 [08:59:26]line ФД: 29154 [08:59:26]line ФПД: 1181415265907 [08:59:26]line 1/tax-web-control/client/api/v1/ticket?date=20240414T085933&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29154&fm=1181415265907&tin=02508201610067®Number=0000138879044617&sum=80000 [08:59:26]OFD Sender: Processing packet 29154 [packets to send 8, broken 7] [08:59:26]ProducePacketName [08:59:26]name=ofd_packets/00029154 [08:59:26]OFD Sender: To server: pG, [08:59:26]CommunicateWithHost lk.salyk.kg:30040 [08:59:26]ConnectInit lk.salyk.kg [08:59:26]written 0, free lines is 4095 [08:59:26]Connected sock=10 [08:59:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 5E EC 07 01 2D 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 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 40 00 00 00 F4 03 04 00 F5 9A 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E2 71 00 00 35 04 06 00 01 13 11 D6 56 73 8E 62 26 9A 0B 46 58 01 [08:59:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 80 79 47 00 AB 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 39 36 33 31 35 34 10 04 04 00 E2 71 00 00 F4 03 04 00 9A 45 1B 66 B6 04 01 00 00 A5 EC 06 34 B5 BE 67 3D [08:59:26]CommunicateWithHost err = 0 [08:59:26]CheckOFDResponse [08:59:26]1017 (14) - 77093643461234 [08:59:26]1041 (16) - 0000000000963154 [08:59:26]1040 (4) - 29154 [08:59:26]1012 (4) - 14.04.2024 02:55 [08:59:26]1206 (1) - 0 [08:59:26]OFD Sender: Remove packet 29154 [08:59:26]ProducePacketName [08:59:26]name=ofd_packets/00029154 [08:59:26]NVStorageDeleteData [08:59:27]Write to MH i2c: 01 00 00 FD 82 7F [08:59:27]Write i2c OK [08:59:27]MH_I2C_Read... [08:59:27]Read from MH i2c: 01 [08:59:27]MH_I2C_Read... [08:59:27]Read from MH i2c: 01 07 00 [08:59:27]MH_I2C_Read... [08:59:27]Read from MH i2c: 01 07 00 FD 82 00 00 00 00 00 D0 0C 62 [08:59:27]RasterBufferAndPrint [08:59:27]line [08:59:27]line [08:59:27]line [08:59:27]line [08:59:27]line [08:59:27]written 0, free lines is 3286 [08:59:27]MH_Cut [08:59:27]Write to MH i2c: D1 01 00 04 83 01 59 [08:59:27]Write i2c OK [08:59:27]MH_I2C_Read... [08:59:27]Read from MH i2c: D1 [08:59:27]MH_I2C_Read... [08:59:27]Read from MH i2c: D1 01 00 [08:59:27]MH_I2C_Read... [08:59:27]Read from MH i2c: D1 01 00 04 83 00 58 [08:59:27]Write to MH i2c: 01 00 00 05 83 88 [08:59:27]Write i2c OK [08:59:27]MH_I2C_Read... [08:59:27]OFD Sender: No OFD packet to send [08:59:27]*** Cut start [08:59:27]*** Partial cut [08:59:27]*** CUTSNS_PIN = 1 [08:59:27]*** CUTSNS_PIN = 0 [08:59:28]*** Brake cut motor [08:59:28]Read from MH i2c: 01 [08:59:28]MH_I2C_Read... [08:59:28]*** Stop cut motor [08:59:28]*** Cut end [08:59:28]Read from MH i2c: 01 07 00 [08:59:28]MH_I2C_Read... [08:59:28]Read from MH i2c: 01 07 00 05 83 00 00 00 00 00 FF 0F 9D [08:59:28]process_action close_receipt done [08:59:28]requested_data is exist [08:59:28]produce_requested_data [08:59:28]requested_item fm.sn is exist - process it [08:59:28]wFMCommunicate request_size=4 [08:59:28]MH_SAM_APDU [08:59:28]CAPDU: 80 11 00 00 [08:59:28]Write to MH i2c: E2 08 00 06 83 80 11 00 00 00 00 00 00 03 [08:59:28]Write i2c OK [08:59:28]MH_I2C_Read... [08:59:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:59:28]Read from MH i2c: E2 [08:59:28]MH_I2C_Read... [08:59:28]Read from MH i2c: E2 17 00 [08:59:28]MH_I2C_Read... [08:59:28]Read from MH i2c: E2 17 00 06 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 52 [08:59:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:59:28]wFMCommunicate OK [08:59:28]requested_item fd.num is exist - process it [08:59:28]SAM_PROTO_GetFieldsCounters [08:59:28]wFMCommunicate request_size=4 [08:59:28]MH_SAM_APDU [08:59:28]CAPDU: 80 13 00 00 [08:59:28]Write to MH i2c: E2 08 00 07 83 80 13 00 00 00 00 00 00 06 [08:59:28]Write i2c OK [08:59:28]MH_I2C_Read... [08:59:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:59:28]Read from MH i2c: E2 [08:59:28]MH_I2C_Read... [08:59:28]Read from MH i2c: E2 62 00 [08:59:28]MH_I2C_Read... [08:59:28]Read from MH i2c: E2 62 00 07 83 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E2 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 CB [08:59:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E2 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:59:28]wFMCommunicate OK [08:59:28]SAM_PROTO_GetFieldsCounters done [08:59:28]requested_item shift.num is exist - process it [08:59:28]requested_item shift.opened is exist - process it [08:59:28]req_shift_opened [08:59:28]FM_GetShiftState [08:59:28]SAM_PROTO_GetShiftState [08:59:28]wFMCommunicate request_size=4 [08:59:28]MH_SAM_APDU [08:59:28]CAPDU: 80 13 01 00 [08:59:28]Write to MH i2c: E2 08 00 08 83 80 13 01 00 00 00 00 00 08 [08:59:28]Write i2c OK [08:59:28]MH_I2C_Read... [08:59:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:59:28]Read from MH i2c: E2 [08:59:28]MH_I2C_Read... [08:59:28]Read from MH i2c: E2 0E 00 [08:59:28]MH_I2C_Read... [08:59:28]Read from MH i2c: E2 0E 00 08 83 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 B4 [08:59:28]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [08:59:28]wFMCommunicate OK [08:59:28]SAM_PROTO_GetShiftState done [08:59:28]FM_GetShiftState done [08:59:28]req_shift_opened done [08:59:28]requested_item shift.open_date is exist - process it [08:59:28]req_shift_open_date [08:59:28]req_shift_open_date done [08:59:28]produce_requested_data done [08:59:28]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29154,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [08:59:28]process_action_free close_receipt [08:59:28]json_value_free [08:59:28]json_value_free done [08:59:28]process_json_proto returns [08:59:28]Send response to host [08:59:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29154,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [08:59:28]free response buf [08:59:28]execute_script done [08:59:28]execute_script returns [08:59:28]free content buf [08:59:28]Sock 9.Close socket [08:59:28]Sock 9.Thread stoped [08:59:32]OFD Sender: No OFD packet to send [08:59:37]OFD Sender: No OFD packet to send [08:59:42]OFD Sender: No OFD packet to send [08:59:47]OFD Sender: No OFD packet to send [08:59:52]OFD Sender: No OFD packet to send [08:59:57]OFD Sender: No OFD packet to send [09:00:02]OFD Sender: No OFD packet to send [09:00:07]OFD Sender: No OFD packet to send [09:00:12]OFD Sender: No OFD packet to send [09:00:17]OFD Sender: No OFD packet to send [09:00:22]OFD Sender: No OFD packet to send [09:00:27]OFD Sender: No OFD packet to send [09:00:32]OFD Sender: No OFD packet to send [09:00:37]OFD Sender: No OFD packet to send [09:00:42]OFD Sender: No OFD packet to send [09:00:47]OFD Sender: No OFD packet to send [09:00:52]OFD Sender: No OFD packet to send [09:00:57]OFD Sender: No OFD packet to send [09:01:02]OFD Sender: No OFD packet to send [09:01:07]OFD Sender: No OFD packet to send [09:01:12]OFD Sender: No OFD packet to send [09:01:14]accept exits with 7 [09:01:14]New connection [09:01:14]New thread 3066785124 created [09:01:14]Thread 3066928484 joined [09:01:14]Waiting for new connection... [09:01:14] Sock 7.Parse request [09:01:14]Sock 7.Check first char [09:01:14]Sock 7.First char is OK [09:01:14]request: POST /json_proto HTTP/1.0 [09:01:14]Method: POST [09:01:14]URL: /json_proto [09:01:14]Method is POST - this is cgi request [09:01:14]url: /json_proto [09:01:14]query_string will be loaded in cgi processing [09:01:14]execute_cgi json_proto POST (null) [09:01:14]execute_cgi path=json_proto method=POST [09:01:14]POST find Content-Length [09:01:14]Host: 172.17.33.3:8080 [09:01:14]Content-Length: 682 [09:01:14]Content-Type: application/json [09:01:14] [09:01:14]POST finish read [09:01:14]Found Content-Length = 682 [09:01:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347525", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 48.990, "sum" : 3150.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3500.00, "total" : 3150.00, "payments": [ { "type": 0, "sum" : 3150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:01:14]execute_script... [09:01: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)347525", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 48.990, "sum" : 3150.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3500.00, "total" : 3150.00, "payments": [ { "type": 0, "sum" : 3150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:01:14]POST & json_proto [09:01:14]process_json_proto [09:01:14]json parsed OK: [09:01:14]protocol is kg_v1.0 [09:01:14]action value=close_receipt [09:01:14]process_action close_receipt [09:01:14]cmd_close_receipt [09:01:14]MH_GetDate [09:01:14]Write to MH i2c: F0 00 00 09 83 7B [09:01:14]Write i2c OK [09:01:14]MH_I2C_Read... [09:01:14]Read from MH i2c: F0 [09:01:14]MH_I2C_Read... [09:01:14]Read from MH i2c: F0 09 00 [09:01:14]MH_I2C_Read... [09:01:14]Read from MH i2c: F0 09 00 09 83 00 63 9B 1B 66 23 5B 8F 65 75 [09:01:14]GetLastDocTimeStamp 1713085173 [09:01:14]current date 1713085283 [09:01:14]FM_GetShiftState [09:01:14]SAM_PROTO_GetShiftState [09:01:14]wFMCommunicate request_size=4 [09:01:14]MH_SAM_APDU [09:01:14]CAPDU: 80 13 01 00 [09:01:14]Write to MH i2c: E2 08 00 0A 83 80 13 01 00 00 00 00 00 0A [09:01:14]Write i2c OK [09:01:14]MH_I2C_Read... [09:01:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:01:14]Read from MH i2c: E2 [09:01:14]MH_I2C_Read... [09:01:14]Read from MH i2c: E2 0E 00 [09:01:14]MH_I2C_Read... [09:01:14]Read from MH i2c: E2 0E 00 0A 83 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 B6 [09:01:14]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [09:01:14]wFMCommunicate OK [09:01:14]SAM_PROTO_GetShiftState done [09:01:14]FM_GetShiftState done [09:01:14]opened in 1713053951 [09:01:14]opened+sec_in_day 1713140351 [09:01:14]quantity*price = 315005 [09:01:14]sum+1 = 315007 [09:01:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 3150.00 Внесено: 3500.00 СДАЧА: 350.00 НСП 1% : 27.88 НДС 12% : 334.52 Наличными: 3150.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 65 14.04.2024 09:01 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29155 ФПД: 127112510626650 1/tax-web-control/client/api/v1/ticket?date=20240414T090123&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29155&fm=127112510626650&tin=02508201610067®Number=0000138879044617&sum=315000 [09:01:15]StoreToDocumentArchive [09:01:15]shift 116 fd 29155 [09:01:15]save to /storage/0116/doc_00029155 [09:01:15]save last doc name /storage/0116/doc_00029155 to /storage/kkm_last_doc_name [09:01:15]save OK [09:01:15]Clear old archive folders... [09:01:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:01:15]tlvbuf is 01202FD0 [09:01:15]SAM_PROTO_ClearQueue [09:01:15]wFMCommunicate request_size=4 [09:01:15]MH_SAM_APDU [09:01:15]CAPDU: 80 09 00 00 [09:01:15]Write to MH i2c: E2 08 00 17 83 80 09 00 00 00 00 00 00 0C [09:01:15]Write i2c OK [09:01:15]MH_I2C_Read... [09:01:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:01:15]Read from MH i2c: E2 [09:01:15]MH_I2C_Read... [09:01:15]Read from MH i2c: E2 03 00 [09:01:15]MH_I2C_Read... [09:01:15]Read from MH i2c: E2 03 00 17 83 00 90 00 0E [09:01:15]RAPDU: 90 00 [09:01:15]wFMCommunicate OK [09:01:15]SAM_PROTO_ClearQueue done [09:01:15]KKMCreateOFDPacket [09:01:15]OFDProtocolAddRootSTLVToBuf [09:01:15]FM_MakeSignedData [09:01:15]FM_MakeSignedData [09:01:15]SAM_PROTO_SignData [09:01:15]wFMCommunicate request_size=4 [09:01:15]MH_SAM_APDU [09:01:15]CAPDU: 80 0D 01 02 [09:01:15]Write to MH i2c: E2 08 00 18 83 80 0D 01 02 00 00 00 00 14 [09:01:15]Write i2c OK [09:01:15]MH_I2C_Read... [09:01:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:01:15]Read from MH i2c: E2 [09:01:15]MH_I2C_Read... [09:01:15]Read from MH i2c: E2 03 00 [09:01:15]MH_I2C_Read... [09:01:15]Read from MH i2c: E2 03 00 18 83 00 90 00 0F [09:01:15]RAPDU: 90 00 [09:01:15]wFMCommunicate OK [09:01:15]wFMCommunicate request_size=255 [09:01:15]MH_SAM_APDU [09:01:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 BF 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7E CE 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 CE 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E4 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 82 00 00 00 00 07 04 06 00 78 CE 04 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 63 9B 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E3 71 00 00 35 04 06 00 73 [09:01:15]Write to MH i2c: E2 02 01 19 83 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 BF 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7E CE 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 CE 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E4 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 82 00 00 00 00 07 04 06 00 78 CE 04 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 63 9B 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E3 71 00 00 35 04 06 00 73 00 00 8A [09:01:15]Write i2c OK [09:01:15]MH_I2C_Read... [09:01:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:01:16]Read from MH i2c: E2 [09:01:16]MH_I2C_Read... [09:01:16]Read from MH i2c: E2 03 00 [09:01:16]MH_I2C_Read... [09:01:16]Read from MH i2c: E2 03 00 19 83 00 90 00 10 [09:01:16]RAPDU: 90 00 [09:01:16]wFMCommunicate OK [09:01:16]wFMCommunicate request_size=10 [09:01:16]MH_SAM_APDU [09:01:16]CAPDU: 80 0D 02 02 05 9B B0 0A DB 5A [09:01:16]Write to MH i2c: E2 0D 00 1A 83 80 0D 02 02 05 00 9B B0 0A DB 5A 00 00 AB [09:01:16]Write i2c OK [09:01:16]MH_I2C_Read... [09:01:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:01:16]Read from MH i2c: E2 [09:01:16]MH_I2C_Read... [09:01:16]Read from MH i2c: E2 03 00 [09:01:16]MH_I2C_Read... [09:01:16]Read from MH i2c: E2 03 00 1A 83 00 90 00 11 [09:01:16]RAPDU: 90 00 [09:01:16]wFMCommunicate OK [09:01:16]wFMCommunicate request_size=4 [09:01:16]MH_SAM_APDU [09:01:16]CAPDU: 80 0D 03 02 [09:01:16]Write to MH i2c: E2 08 00 1B 83 80 0D 03 02 00 00 00 00 19 [09:01:16]Write i2c OK [09:01:16]MH_I2C_Read... [09:01:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:01:16]Read from MH i2c: E2 [09:01:16]MH_I2C_Read... [09:01:16]Read from MH i2c: E2 0B 00 [09:01:16]MH_I2C_Read... [09:01:16]Read from MH i2c: E2 0B 00 1B 83 00 56 73 FE 86 F3 BC 8A 21 90 00 C1 [09:01:16]RAPDU: 56 73 FE 86 F3 BC 8A 21 90 00 [09:01:16]wFMCommunicate OK [09:01:16]SAM_PROTO_SignData done [09:01:16]FM_MakeSignedData done [09:01:16]CreateOFDProtocolMessage [09:01:16]wFMCommunicate request_size=4 [09:01:16]MH_SAM_APDU [09:01:16]CAPDU: 80 11 00 00 [09:01:16]Write to MH i2c: E2 08 00 1C 83 80 11 00 00 00 00 00 00 19 [09:01:16]Write i2c OK [09:01:16]MH_I2C_Read... [09:01:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:01:16]Read from MH i2c: E2 [09:01:16]MH_I2C_Read... [09:01:16]Read from MH i2c: E2 17 00 [09:01:16]MH_I2C_Read... [09:01:16]Read from MH i2c: E2 17 00 1C 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 68 [09:01:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:01:16]wFMCommunicate OK [09:01:16]CreateOFDProtocolMessage done [09:01:16]OFDSenderStorePacket 29155 [09:01:16]StoreOFDPacket docnum=29155 [09:01:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 68 80 07 01 08 B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5E BF 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7E CE 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 CE 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E4 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 82 00 00 00 00 07 04 06 00 78 CE 04 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 63 9B 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E3 71 00 00 35 04 06 00 73 9B B0 0A DB 5A 56 73 FE 86 F3 BC 8A 21 [09:01:16]CheckFolder [09:01:16]dirname=/storage/ofd_packets [09:01:16]CheckFolder done [09:01:16]ProducePacketName [09:01:16]name=ofd_packets/00029155 [09:01:16]NVStorageSaveData ofd_packets/00029155 [09:01:16]File name is /storage/ofd_packets/00029155 [09:01:16]Write 301 bytes [09:01:16]NVStorageSaveData done [09:01:16]OFDSenderStorePacket done [09:01:16]KKMCreateOFDPacket done [09:01:16]NVStorageSaveData kkm_last_timestamp [09:01:16]File name is /storage/kkm_last_timestamp [09:01:16]Write 4 bytes [09:01:16]NVStorageSaveData done [09:01:16]ExternCall_PrintAddStr [09:01:16]wPrintStart [09:01:16]Write to MH i2c: 01 00 00 1D 83 A0 [09:01:16]Write i2c OK [09:01:16]MH_I2C_Read... [09:01:16]Read from MH i2c: 01 [09:01:16]MH_I2C_Read... [09:01:16]Read from MH i2c: 01 07 00 [09:01:16]MH_I2C_Read... [09:01:16]Read from MH i2c: 01 07 00 1D 83 00 00 00 00 00 FF 0F B5 [09:01:16]RasterBufferAndPrint [09:01:16]line Счет N : (1)347525 [09:01:16]line ИНН: 02508201610067 [09:01:16]line Контрольно-Кассовый Чек [09:01:16]line ПРОДАЖА [09:01:16]line ТРК (МРК, ГНК) : 13 [09:01:16]line Товар: 2710124130 [09:01:16]line Аи-92-К-5 [09:01:16]line 48.990 * 64.30 [09:01:16]line = 3150.06 [09:01:16]line НДС 12% НСП 1% [09:01:16]line > о реализуемом товаре [09:01:16]line ОКРУГЛЕНИЕ: -0.06 [09:01:16]line ИТОГО: 3150.00 [09:01:16]line Внесено: 3500.00 [09:01:16]line СДАЧА: 350.00 [09:01:16]line НСП 1% : 27.88 [09:01:16]line НДС 12% : 334.52 [09:01:16]line Наличными: 3150.00 [09:01:16]line Безнал.: 0.00 [09:01:16]line Место: АЗС № 108 "Партнер Нефть" [09:01:16]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:01:16]line СНО: Общий режим [09:01:16]line Чек 65 14.04.2024 09:01 [09:01:16]line Смена: 116 ФФД: 1.0 [09:01:16]line ЗНМ: 0300000027 [09:01:16]line РНМ: 0000138879044617 [09:01:16]line Версия ККМ: 001 [09:01:16]line ФМ: 0000000000963154 [09:01:16]line ФД: 29155 [09:01:16]line ФПД: 127112510626650 [09:01:16]line 1/tax-web-control/client/api/v1/ticket?date=20240414T090123&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29155&fm=127112510626650&tin=02508201610067®Number=0000138879044617&sum=315000 [09:01:16]OFD Sender: Processing packet 29155 [packets to send 8, broken 7] [09:01:16]ProducePacketName [09:01:16]name=ofd_packets/00029155 [09:01:16]OFD Sender: To server: pG, [09:01:16]CommunicateWithHost lk.salyk.kg:30040 [09:01:16]ConnectInit lk.salyk.kg [09:01:16]written 0, free lines is 4095 [09:01:16]Connected sock=10 [09:01:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 68 80 07 01 08 B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5E BF 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7E CE 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 CE 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E4 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 82 00 00 00 00 07 04 06 00 78 CE 04 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 63 9B 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E3 71 00 00 35 04 06 00 73 9B B0 0A DB 5A 56 73 FE 86 F3 BC 8A 21 [09:01:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 A8 2C 47 00 F2 C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E3 71 00 00 F4 03 04 00 08 46 1B 66 B6 04 01 00 00 C7 8A 00 71 92 0C 94 46 [09:01:16]CommunicateWithHost err = 0 [09:01:16]CheckOFDResponse [09:01:16]1017 (14) - 77093643461234 [09:01:16]1041 (16) - 0000000000963154 [09:01:16]1040 (4) - 29155 [09:01:16]1012 (4) - 14.04.2024 02:57 [09:01:16]1206 (1) - 0 [09:01:16]OFD Sender: Remove packet 29155 [09:01:16]ProducePacketName [09:01:16]name=ofd_packets/00029155 [09:01:16]NVStorageDeleteData [09:01:17]Write to MH i2c: 01 00 00 47 83 CA [09:01:17]Write i2c OK [09:01:17]MH_I2C_Read... [09:01:17]Read from MH i2c: 01 [09:01:17]MH_I2C_Read... [09:01:17]Read from MH i2c: 01 07 00 [09:01:17]MH_I2C_Read... [09:01:17]Read from MH i2c: 01 07 00 47 83 00 00 00 00 00 D0 0C AD [09:01:17]RasterBufferAndPrint [09:01:17]line [09:01:17]line [09:01:17]line [09:01:17]line [09:01:17]line [09:01:17]written 0, free lines is 3284 [09:01:17]MH_Cut [09:01:17]Write to MH i2c: D1 01 00 4E 83 01 A3 [09:01:17]Write i2c OK [09:01:17]MH_I2C_Read... [09:01:17]Read from MH i2c: D1 [09:01:17]MH_I2C_Read... [09:01:17]Read from MH i2c: D1 01 00 [09:01:17]MH_I2C_Read... [09:01:17]Read from MH i2c: D1 01 00 4E 83 00 A2 [09:01:17]Write to MH i2c: 01 00 00 4F 83 D2 [09:01:17]Write i2c OK [09:01:17]MH_I2C_Read... [09:01:17]OFD Sender: No OFD packet to send [09:01:17]*** Cut start [09:01:17]*** Partial cut [09:01:17]*** CUTSNS_PIN = 1 [09:01:17]*** CUTSNS_PIN = 0 [09:01:18]*** Brake cut motor [09:01:18]Read from MH i2c: 01 [09:01:18]MH_I2C_Read... [09:01:18]*** Stop cut motor [09:01:18]*** Cut end [09:01:18]Read from MH i2c: 01 07 00 [09:01:18]MH_I2C_Read... [09:01:18]Read from MH i2c: 01 07 00 4F 83 00 00 00 00 00 FF 0F E7 [09:01:18]process_action close_receipt done [09:01:18]requested_data is exist [09:01:18]produce_requested_data [09:01:18]requested_item fm.sn is exist - process it [09:01:18]wFMCommunicate request_size=4 [09:01:18]MH_SAM_APDU [09:01:18]CAPDU: 80 11 00 00 [09:01:18]Write to MH i2c: E2 08 00 50 83 80 11 00 00 00 00 00 00 4D [09:01:18]Write i2c OK [09:01:18]MH_I2C_Read... [09:01:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:01:18]Read from MH i2c: E2 [09:01:18]MH_I2C_Read... [09:01:18]Read from MH i2c: E2 17 00 [09:01:18]MH_I2C_Read... [09:01:18]Read from MH i2c: E2 17 00 50 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 9C [09:01:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:01:18]wFMCommunicate OK [09:01:18]requested_item fd.num is exist - process it [09:01:18]SAM_PROTO_GetFieldsCounters [09:01:18]wFMCommunicate request_size=4 [09:01:18]MH_SAM_APDU [09:01:18]CAPDU: 80 13 00 00 [09:01:18]Write to MH i2c: E2 08 00 51 83 80 13 00 00 00 00 00 00 50 [09:01:18]Write i2c OK [09:01:18]MH_I2C_Read... [09:01:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:01:18]Read from MH i2c: E2 [09:01:18]MH_I2C_Read... [09:01:18]Read from MH i2c: E2 62 00 [09:01:18]MH_I2C_Read... [09:01:18]Read from MH i2c: E2 62 00 51 83 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E3 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 19 [09:01:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E3 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:01:18]wFMCommunicate OK [09:01:18]SAM_PROTO_GetFieldsCounters done [09:01:18]requested_item shift.num is exist - process it [09:01:18]requested_item shift.opened is exist - process it [09:01:18]req_shift_opened [09:01:18]FM_GetShiftState [09:01:18]SAM_PROTO_GetShiftState [09:01:18]wFMCommunicate request_size=4 [09:01:18]MH_SAM_APDU [09:01:18]CAPDU: 80 13 01 00 [09:01:18]Write to MH i2c: E2 08 00 52 83 80 13 01 00 00 00 00 00 52 [09:01:18]Write i2c OK [09:01:18]MH_I2C_Read... [09:01:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:01:18]Read from MH i2c: E2 [09:01:18]MH_I2C_Read... [09:01:18]Read from MH i2c: E2 0E 00 [09:01:18]MH_I2C_Read... [09:01:18]Read from MH i2c: E2 0E 00 52 83 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 FE [09:01:18]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [09:01:18]wFMCommunicate OK [09:01:18]SAM_PROTO_GetShiftState done [09:01:18]FM_GetShiftState done [09:01:18]req_shift_opened done [09:01:18]requested_item shift.open_date is exist - process it [09:01:18]req_shift_open_date [09:01:18]req_shift_open_date done [09:01:18]produce_requested_data done [09:01:18]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29155,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [09:01:18]process_action_free close_receipt [09:01:18]json_value_free [09:01:18]json_value_free done [09:01:18]process_json_proto returns [09:01:18]Send response to host [09:01:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29155,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [09:01:18]free response buf [09:01:18]execute_script done [09:01:18]execute_script returns [09:01:18]free content buf [09:01:18]Sock 7.Close socket [09:01:18]Sock 7.Thread stoped [09:01:22]OFD Sender: No OFD packet to send [09:01:27]OFD Sender: No OFD packet to send [09:01:32]OFD Sender: No OFD packet to send [09:01:37]OFD Sender: No OFD packet to send [09:01:42]OFD Sender: No OFD packet to send [09:01:47]OFD Sender: No OFD packet to send [09:01:52]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:14]accept exits with 9 [09:05:14]New connection [09:05:14]New thread 3066928484 created [09:05:14]Thread 3066785124 joined [09:05:14]Waiting for new connection... [09:05:14] Sock 9.Parse request [09:05:14]Sock 9.Check first char [09:05:14]Sock 9.First char is OK [09:05:14]request: POST /json_proto HTTP/1.0 [09:05:14]Method: POST [09:05:14]URL: /json_proto [09:05:14]Method is POST - this is cgi request [09:05:14]url: /json_proto [09:05:14]query_string will be loaded in cgi processing [09:05:14]execute_cgi json_proto POST (null) [09:05:14]execute_cgi path=json_proto method=POST [09:05:14]POST find Content-Length [09:05:14]Host: 172.17.33.3:8080 [09:05:14]Content-Length: 675 [09:05:14]Content-Type: application/json [09:05:14] [09:05:14]POST finish read [09:05:14]Found Content-Length = 675 [09:05:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347527", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.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:05:14]execute_script... [09:05: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)347527", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.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:05:14]POST & json_proto [09:05:14]process_json_proto [09:05:14]json parsed OK: [09:05:14]protocol is kg_v1.0 [09:05:14]action value=close_receipt [09:05:14]process_action close_receipt [09:05:14]cmd_close_receipt [09:05:14]MH_GetDate [09:05:14]Write to MH i2c: F0 00 00 53 83 C5 [09:05:14]Write i2c OK [09:05:14]MH_I2C_Read... [09:05:14]Read from MH i2c: F0 [09:05:14]MH_I2C_Read... [09:05:14]Read from MH i2c: F0 09 00 [09:05:14]MH_I2C_Read... [09:05:14]Read from MH i2c: F0 09 00 53 83 00 54 9C 1B 66 23 5B 8F 65 B1 [09:05:14]GetLastDocTimeStamp 1713085283 [09:05:14]current date 1713085524 [09:05:14]FM_GetShiftState [09:05:14]SAM_PROTO_GetShiftState [09:05:14]wFMCommunicate request_size=4 [09:05:14]MH_SAM_APDU [09:05:14]CAPDU: 80 13 01 00 [09:05:14]Write to MH i2c: E2 08 00 54 83 80 13 01 00 00 00 00 00 54 [09:05:14]Write i2c OK [09:05:14]MH_I2C_Read... [09:05:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:05:14]Read from MH i2c: E2 [09:05:14]MH_I2C_Read... [09:05:14]Read from MH i2c: E2 0E 00 [09:05:14]MH_I2C_Read... [09:05:14]Read from MH i2c: E2 0E 00 54 83 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 00 [09:05:14]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [09:05:14]wFMCommunicate OK [09:05:14]SAM_PROTO_GetShiftState done [09:05:14]FM_GetShiftState done [09:05:14]opened in 1713053951 [09:05:14]opened+sec_in_day 1713140351 [09:05:14]quantity*price = 100039 [09:05:14]sum+1 = 100041 [09:05:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 66 14.04.2024 09:05 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29156 ФПД: 128551686868319 1/tax-web-control/client/api/v1/ticket?date=20240414T090524&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29156&fm=128551686868319&tin=02508201610067®Number=0000138879044617&sum=100000 [09:05:15]StoreToDocumentArchive [09:05:15]shift 116 fd 29156 [09:05:15]save to /storage/0116/doc_00029156 [09:05:15]save last doc name /storage/0116/doc_00029156 to /storage/kkm_last_doc_name [09:05:15]save OK [09:05:15]Clear old archive folders... [09:05:15]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:05:15]tlvbuf is 011EE4E0 [09:05:15]SAM_PROTO_ClearQueue [09:05:15]wFMCommunicate request_size=4 [09:05:15]MH_SAM_APDU [09:05:15]CAPDU: 80 09 00 00 [09:05:15]Write to MH i2c: E2 08 00 61 83 80 09 00 00 00 00 00 00 56 [09:05:15]Write i2c OK [09:05:15]MH_I2C_Read... [09:05:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:05:16]Read from MH i2c: E2 [09:05:16]MH_I2C_Read... [09:05:16]Read from MH i2c: E2 03 00 [09:05:16]MH_I2C_Read... [09:05:16]Read from MH i2c: E2 03 00 61 83 00 90 00 58 [09:05:16]RAPDU: 90 00 [09:05:16]wFMCommunicate OK [09:05:16]SAM_PROTO_ClearQueue done [09:05:16]KKMCreateOFDPacket [09:05:16]OFDProtocolAddRootSTLVToBuf [09:05:16]FM_MakeSignedData [09:05:16]FM_MakeSignedData [09:05:16]SAM_PROTO_SignData [09:05:16]wFMCommunicate request_size=4 [09:05:16]MH_SAM_APDU [09:05:16]CAPDU: 80 0D 01 02 [09:05:16]Write to MH i2c: E2 08 00 62 83 80 0D 01 02 00 00 00 00 5E [09:05:16]Write i2c OK [09:05:16]MH_I2C_Read... [09:05:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:05:16]Read from MH i2c: E2 [09:05:16]MH_I2C_Read... [09:05:16]Read from MH i2c: E2 03 00 [09:05:16]MH_I2C_Read... [09:05:16]Read from MH i2c: E2 03 00 62 83 00 90 00 59 [09:05:16]RAPDU: 90 00 [09:05:16]wFMCommunicate OK [09:05:16]wFMCommunicate request_size=255 [09:05:16]MH_SAM_APDU [09:05:16]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 42 00 00 00 F4 03 04 00 54 9C 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E4 71 00 00 35 04 06 00 [09:05:16]Write to MH i2c: E2 02 01 63 83 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 42 00 00 00 F4 03 04 00 54 9C 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E4 71 00 00 35 04 06 00 00 00 17 [09:05:16]Write i2c OK [09:05:16]MH_I2C_Read... [09:05:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:05:16]Read from MH i2c: E2 [09:05:16]MH_I2C_Read... [09:05:16]Read from MH i2c: E2 03 00 [09:05:16]MH_I2C_Read... [09:05:16]Read from MH i2c: E2 03 00 63 83 00 90 00 5A [09:05:16]RAPDU: 90 00 [09:05:16]wFMCommunicate OK [09:05:16]wFMCommunicate request_size=11 [09:05:16]MH_SAM_APDU [09:05:16]CAPDU: 80 0D 02 02 06 74 EA C5 A1 8D 5F [09:05:16]Write to MH i2c: E2 0E 00 64 83 80 0D 02 02 06 00 74 EA C5 A1 8D 5F 00 00 1D [09:05:16]Write i2c OK [09:05:16]MH_I2C_Read... [09:05:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:05:16]Read from MH i2c: E2 [09:05:16]MH_I2C_Read... [09:05:16]Read from MH i2c: E2 03 00 [09:05:16]MH_I2C_Read... [09:05:16]Read from MH i2c: E2 03 00 64 83 00 90 00 5B [09:05:16]RAPDU: 90 00 [09:05:16]wFMCommunicate OK [09:05:16]wFMCommunicate request_size=4 [09:05:16]MH_SAM_APDU [09:05:16]CAPDU: 80 0D 03 02 [09:05:16]Write to MH i2c: E2 08 00 65 83 80 0D 03 02 00 00 00 00 63 [09:05:16]Write i2c OK [09:05:16]MH_I2C_Read... [09:05:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:05:16]Read from MH i2c: E2 [09:05:16]MH_I2C_Read... [09:05:16]Read from MH i2c: E2 0B 00 [09:05:16]MH_I2C_Read... [09:05:16]Read from MH i2c: E2 0B 00 65 83 00 4E E0 65 4A 98 16 7C BD 90 00 28 [09:05:16]RAPDU: 4E E0 65 4A 98 16 7C BD 90 00 [09:05:16]wFMCommunicate OK [09:05:16]SAM_PROTO_SignData done [09:05:16]FM_MakeSignedData done [09:05:16]CreateOFDProtocolMessage [09:05:16]wFMCommunicate request_size=4 [09:05:16]MH_SAM_APDU [09:05:16]CAPDU: 80 11 00 00 [09:05:16]Write to MH i2c: E2 08 00 66 83 80 11 00 00 00 00 00 00 63 [09:05:16]Write i2c OK [09:05:16]MH_I2C_Read... [09:05:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:05:16]Read from MH i2c: E2 [09:05:16]MH_I2C_Read... [09:05:16]Read from MH i2c: E2 17 00 [09:05:16]MH_I2C_Read... [09:05:16]Read from MH i2c: E2 17 00 66 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B2 [09:05:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:05:16]wFMCommunicate OK [09:05:16]CreateOFDProtocolMessage done [09:05:16]OFDSenderStorePacket 29156 [09:05:16]StoreOFDPacket docnum=29156 [09:05:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 68 4E 08 01 85 6E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 42 00 00 00 F4 03 04 00 54 9C 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E4 71 00 00 35 04 06 00 74 EA C5 A1 8D 5F 4E E0 65 4A 98 16 7C BD [09:05:16]CheckFolder [09:05:16]dirname=/storage/ofd_packets [09:05:16]CheckFolder done [09:05:16]ProducePacketName [09:05:16]name=ofd_packets/00029156 [09:05:16]NVStorageSaveData ofd_packets/00029156 [09:05:16]File name is /storage/ofd_packets/00029156 [09:05:16]Write 302 bytes [09:05:16]NVStorageSaveData done [09:05:16]OFDSenderStorePacket done [09:05:16]KKMCreateOFDPacket done [09:05:16]NVStorageSaveData kkm_last_timestamp [09:05:16]File name is /storage/kkm_last_timestamp [09:05:16]Write 4 bytes [09:05:16]NVStorageSaveData done [09:05:16]ExternCall_PrintAddStr [09:05:16]wPrintStart [09:05:16]Write to MH i2c: 01 00 00 67 83 EA [09:05:16]Write i2c OK [09:05:16]MH_I2C_Read... [09:05:16]Read from MH i2c: 01 [09:05:16]MH_I2C_Read... [09:05:16]Read from MH i2c: 01 07 00 [09:05:16]MH_I2C_Read... [09:05:16]Read from MH i2c: 01 07 00 67 83 00 00 00 00 00 FF 0F FF [09:05:16]RasterBufferAndPrint [09:05:16]line Счет N : (1)347527 [09:05:16]line ИНН: 02508201610067 [09:05:16]line Контрольно-Кассовый Чек [09:05:16]line ПРОДАЖА [09:05:16]line ТРК (МРК, ГНК) : 22 [09:05:16]line Товар: 2710124130 [09:05:16]line SUPER-92-К-5 [09:05:16]line 15.320 * 65.30 [09:05:16]line = 1000.40 [09:05:16]line НДС 12% НСП 1% [09:05:16]line > о реализуемом товаре [09:05:16]line ОКРУГЛЕНИЕ: -0.40 [09:05:16]line ИТОГО: 1000.00 [09:05:16]line Внесено: 1000.00 [09:05:16]line СДАЧА: 0.00 [09:05:16]line НСП 1% : 8.85 [09:05:16]line НДС 12% : 106.24 [09:05:16]line Наличными: 1000.00 [09:05:16]line Безнал.: 0.00 [09:05:16]line Место: АЗС № 108 "Партнер Нефть" [09:05:16]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:05:16]line СНО: Общий режим [09:05:16]line Чек 66 14.04.2024 09:05 [09:05:16]line Смена: 116 ФФД: 1.0 [09:05:16]line ЗНМ: 0300000027 [09:05:16]line РНМ: 0000138879044617 [09:05:16]line Версия ККМ: 001 [09:05:16]line ФМ: 0000000000963154 [09:05:16]line ФД: 29156 [09:05:16]line ФПД: 128551686868319 [09:05:16]line 1/tax-web-control/client/api/v1/ticket?date=20240414T090524&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29156&fm=128551686868319&tin=02508201610067®Number=0000138879044617&sum=100000 [09:05:16]OFD Sender: Processing packet 29156 [packets to send 8, broken 7] [09:05:16]ProducePacketName [09:05:16]name=ofd_packets/00029156 [09:05:16]OFD Sender: To server: pG, [09:05:16]CommunicateWithHost lk.salyk.kg:30040 [09:05:16]ConnectInit lk.salyk.kg [09:05:16]written 0, free lines is 4095 [09:05:16]Connected sock=11 [09:05:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 68 4E 08 01 85 6E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 42 00 00 00 F4 03 04 00 54 9C 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E4 71 00 00 35 04 06 00 74 EA C5 A1 8D 5F 4E E0 65 4A 98 16 7C BD [09:05:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 AD F8 47 00 E6 BD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E4 71 00 00 F4 03 04 00 F8 46 1B 66 B6 04 01 00 00 7C 20 19 E9 6D B3 00 8C [09:05:17]CommunicateWithHost err = 0 [09:05:17]CheckOFDResponse [09:05:17]1017 (14) - 77093643461234 [09:05:17]1041 (16) - 0000000000963154 [09:05:17]1040 (4) - 29156 [09:05:17]1012 (4) - 14.04.2024 03:01 [09:05:17]1206 (1) - 0 [09:05:17]OFD Sender: Remove packet 29156 [09:05:17]ProducePacketName [09:05:17]name=ofd_packets/00029156 [09:05:17]NVStorageDeleteData [09:05:17]Write to MH i2c: 01 00 00 91 83 14 [09:05:17]Write i2c OK [09:05:17]MH_I2C_Read... [09:05:17]Read from MH i2c: 01 [09:05:17]MH_I2C_Read... [09:05:17]Read from MH i2c: 01 07 00 [09:05:17]MH_I2C_Read... [09:05:17]Read from MH i2c: 01 07 00 91 83 00 00 00 00 00 DA 0C 01 [09:05:17]RasterBufferAndPrint [09:05:17]line [09:05:17]line [09:05:17]line [09:05:17]line [09:05:17]line [09:05:17]written 0, free lines is 3295 [09:05:17]MH_Cut [09:05:17]Write to MH i2c: D1 01 00 98 83 01 ED [09:05:17]Write i2c OK [09:05:17]MH_I2C_Read... [09:05:17]Read from MH i2c: D1 [09:05:17]MH_I2C_Read... [09:05:17]Read from MH i2c: D1 01 00 [09:05:17]MH_I2C_Read... [09:05:17]Read from MH i2c: D1 01 00 98 83 00 EC [09:05:17]Write to MH i2c: 01 00 00 99 83 1C [09:05:17]Write i2c OK [09:05:17]MH_I2C_Read... [09:05:17]OFD Sender: No OFD packet to send [09:05:18]*** Cut start [09:05:18]*** Partial cut [09:05:18]*** CUTSNS_PIN = 1 [09:05:18]*** CUTSNS_PIN = 0 [09:05:18]*** Brake cut motor [09:05:18]Read from MH i2c: 01 [09:05:18]MH_I2C_Read... [09:05:18]*** Stop cut motor [09:05:18]*** Cut end [09:05:18]Read from MH i2c: 01 07 00 [09:05:18]MH_I2C_Read... [09:05:18]Read from MH i2c: 01 07 00 99 83 00 00 00 00 00 FF 0F 31 [09:05:18]process_action close_receipt done [09:05:18]requested_data is exist [09:05:18]produce_requested_data [09:05:18]requested_item fm.sn is exist - process it [09:05:18]wFMCommunicate request_size=4 [09:05:18]MH_SAM_APDU [09:05:18]CAPDU: 80 11 00 00 [09:05:18]Write to MH i2c: E2 08 00 9A 83 80 11 00 00 00 00 00 00 97 [09:05:18]Write i2c OK [09:05:18]MH_I2C_Read... [09:05:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:05:18]Read from MH i2c: E2 [09:05:18]MH_I2C_Read... [09:05:18]Read from MH i2c: E2 17 00 [09:05:18]MH_I2C_Read... [09:05:18]Read from MH i2c: E2 17 00 9A 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E6 [09:05:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:05:18]wFMCommunicate OK [09:05:18]requested_item fd.num is exist - process it [09:05:18]SAM_PROTO_GetFieldsCounters [09:05:18]wFMCommunicate request_size=4 [09:05:18]MH_SAM_APDU [09:05:18]CAPDU: 80 13 00 00 [09:05:18]Write to MH i2c: E2 08 00 9B 83 80 13 00 00 00 00 00 00 9A [09:05:18]Write i2c OK [09:05:18]MH_I2C_Read... [09:05:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:05:18]Read from MH i2c: E2 [09:05:18]MH_I2C_Read... [09:05:18]Read from MH i2c: E2 62 00 [09:05:18]MH_I2C_Read... [09:05:18]Read from MH i2c: E2 62 00 9B 83 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E4 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 67 [09:05:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E4 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:05:18]wFMCommunicate OK [09:05:18]SAM_PROTO_GetFieldsCounters done [09:05:18]requested_item shift.num is exist - process it [09:05:18]requested_item shift.opened is exist - process it [09:05:18]req_shift_opened [09:05:18]FM_GetShiftState [09:05:18]SAM_PROTO_GetShiftState [09:05:18]wFMCommunicate request_size=4 [09:05:18]MH_SAM_APDU [09:05:18]CAPDU: 80 13 01 00 [09:05:18]Write to MH i2c: E2 08 00 9C 83 80 13 01 00 00 00 00 00 9C [09:05:18]Write i2c OK [09:05:18]MH_I2C_Read... [09:05:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:05:18]Read from MH i2c: E2 [09:05:18]MH_I2C_Read... [09:05:18]Read from MH i2c: E2 0E 00 [09:05:18]MH_I2C_Read... [09:05:18]Read from MH i2c: E2 0E 00 9C 83 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 48 [09:05:18]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [09:05:18]wFMCommunicate OK [09:05:18]SAM_PROTO_GetShiftState done [09:05:18]FM_GetShiftState done [09:05:18]req_shift_opened done [09:05:18]requested_item shift.open_date is exist - process it [09:05:18]req_shift_open_date [09:05:18]req_shift_open_date done [09:05:18]produce_requested_data done [09:05:18]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29156,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [09:05:18]process_action_free close_receipt [09:05:18]json_value_free [09:05:18]json_value_free done [09:05:18]process_json_proto returns [09:05:18]Send response to host [09:05:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29156,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [09:05:18]free response buf [09:05:18]execute_script done [09:05:18]execute_script returns [09:05:18]free content buf [09:05:18]Sock 9.Close socket [09:05:18]Sock 9.Thread stoped [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:45]accept exits with 7 [09:05:45]New connection [09:05:45]New thread 3066785124 created [09:05:45]Thread 3066928484 joined [09:05:45]Waiting for new connection... [09:05:45] Sock 7.Parse request [09:05:45]Sock 7.Check first char [09:05:45]Sock 7.First char is OK [09:05:45]request: POST /json_proto HTTP/1.0 [09:05:45]Method: POST [09:05:45]URL: /json_proto [09:05:45]Method is POST - this is cgi request [09:05:45]url: /json_proto [09:05:45]query_string will be loaded in cgi processing [09:05:45]execute_cgi json_proto POST (null) [09:05:45]execute_cgi path=json_proto method=POST [09:05:45]POST find Content-Length [09:05:45]Host: 172.17.33.3:8080 [09:05:45]Content-Length: 843 [09:05:45]Content-Type: application/json [09:05:45] [09:05:45]POST finish read [09:05:45]Found Content-Length = 843 [09:05:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347526", "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:05:45]execute_script... [09:05: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)347526", "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:05:45]POST & json_proto [09:05:45]process_json_proto [09:05:45]json parsed OK: [09:05:45]protocol is kg_v1.0 [09:05:45]action value=close_receipt [09:05:45]process_action close_receipt [09:05:45]cmd_close_receipt [09:05:45]MH_GetDate [09:05:45]Write to MH i2c: F0 00 00 9D 83 0F [09:05:45]Write i2c OK [09:05:45]MH_I2C_Read... [09:05:45]Read from MH i2c: F0 [09:05:45]MH_I2C_Read... [09:05:45]Read from MH i2c: F0 09 00 [09:05:45]MH_I2C_Read... [09:05:45]Read from MH i2c: F0 09 00 9D 83 00 73 9C 1B 66 23 5B 8F 65 1A [09:05:45]GetLastDocTimeStamp 1713085524 [09:05:45]current date 1713085555 [09:05:45]FM_GetShiftState [09:05:45]SAM_PROTO_GetShiftState [09:05:45]wFMCommunicate request_size=4 [09:05:45]MH_SAM_APDU [09:05:45]CAPDU: 80 13 01 00 [09:05:45]Write to MH i2c: E2 08 00 9E 83 80 13 01 00 00 00 00 00 9E [09:05:45]Write i2c OK [09:05:45]MH_I2C_Read... [09:05:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:05:45]Read from MH i2c: E2 [09:05:45]MH_I2C_Read... [09:05:45]Read from MH i2c: E2 0E 00 [09:05:45]MH_I2C_Read... [09:05:45]Read from MH i2c: E2 0E 00 9E 83 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 4A [09:05:45]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [09:05:45]wFMCommunicate OK [09:05:45]SAM_PROTO_GetShiftState done [09:05:45]FM_GetShiftState done [09:05:45]opened in 1713053951 [09:05:45]opened+sec_in_day 1713140351 [09:05:45]quantity*price = 100050 [09:05:45]sum+1 = 100052 [09:05:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 67 14.04.2024 09:05 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 29157 ФПД: 220767658681297 1/tax-web-control/client/api/v1/ticket?date=20240414T090555&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29157&fm=220767658681297&tin=02508201610067®Number=0000138879044617&sum=100051 [09:05:47]StoreToDocumentArchive [09:05:47]shift 116 fd 29157 [09:05:47]save to /storage/0116/doc_00029157 [09:05:47]save last doc name /storage/0116/doc_00029157 to /storage/kkm_last_doc_name [09:05:47]save OK [09:05:47]Clear old archive folders... [09:05:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:05:47]tlvbuf is 012F3640 [09:05:47]SAM_PROTO_ClearQueue [09:05:47]wFMCommunicate request_size=4 [09:05:47]MH_SAM_APDU [09:05:47]CAPDU: 80 09 00 00 [09:05:47]Write to MH i2c: E2 08 00 AB 83 80 09 00 00 00 00 00 00 A0 [09:05:47]Write i2c OK [09:05:47]MH_I2C_Read... [09:05:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:05:47]Read from MH i2c: E2 [09:05:47]MH_I2C_Read... [09:05:47]Read from MH i2c: E2 03 00 [09:05:47]MH_I2C_Read... [09:05:47]Read from MH i2c: E2 03 00 AB 83 00 90 00 A2 [09:05:47]RAPDU: 90 00 [09:05:47]wFMCommunicate OK [09:05:47]SAM_PROTO_ClearQueue done [09:05:47]KKMCreateOFDPacket [09:05:47]OFDProtocolAddRootSTLVToBuf [09:05:47]FM_MakeSignedData [09:05:47]FM_MakeSignedData [09:05:47]SAM_PROTO_SignData [09:05:47]wFMCommunicate request_size=4 [09:05:47]MH_SAM_APDU [09:05:47]CAPDU: 80 0D 01 02 [09:05:47]Write to MH i2c: E2 08 00 AC 83 80 0D 01 02 00 00 00 00 A8 [09:05:47]Write i2c OK [09:05:47]MH_I2C_Read... [09:05:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:05:47]Read from MH i2c: E2 [09:05:47]MH_I2C_Read... [09:05:47]Read from MH i2c: E2 03 00 [09:05:47]MH_I2C_Read... [09:05:47]Read from MH i2c: E2 03 00 AC 83 00 90 00 A3 [09:05:47]RAPDU: 90 00 [09:05:47]wFMCommunicate OK [09:05:47]wFMCommunicate request_size=255 [09:05:47]MH_SAM_APDU [09:05: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 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 43 00 00 00 F4 03 04 00 73 9C 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E5 71 00 00 35 04 06 00 C8 [09:05:47]Write to MH i2c: E2 02 01 AD 83 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 43 00 00 00 F4 03 04 00 73 9C 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E5 71 00 00 35 04 06 00 C8 00 00 9F [09:05:47]Write i2c OK [09:05:47]MH_I2C_Read... [09:05:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:05:47]Read from MH i2c: E2 [09:05:47]MH_I2C_Read... [09:05:47]Read from MH i2c: E2 03 00 [09:05:47]MH_I2C_Read... [09:05:47]Read from MH i2c: E2 03 00 AD 83 00 90 00 A4 [09:05:47]RAPDU: 90 00 [09:05:47]wFMCommunicate OK [09:05:47]wFMCommunicate request_size=10 [09:05:47]MH_SAM_APDU [09:05:47]CAPDU: 80 0D 02 02 05 C9 79 DF A3 D1 [09:05:47]Write to MH i2c: E2 0D 00 AE 83 80 0D 02 02 05 00 C9 79 DF A3 D1 00 00 4A [09:05:47]Write i2c OK [09:05:47]MH_I2C_Read... [09:05:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:05:47]Read from MH i2c: E2 [09:05:47]MH_I2C_Read... [09:05:47]Read from MH i2c: E2 03 00 [09:05:47]MH_I2C_Read... [09:05:47]Read from MH i2c: E2 03 00 AE 83 00 90 00 A5 [09:05:47]RAPDU: 90 00 [09:05:47]wFMCommunicate OK [09:05:47]wFMCommunicate request_size=4 [09:05:47]MH_SAM_APDU [09:05:47]CAPDU: 80 0D 03 02 [09:05:47]Write to MH i2c: E2 08 00 AF 83 80 0D 03 02 00 00 00 00 AD [09:05:47]Write i2c OK [09:05:47]MH_I2C_Read... [09:05:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:05:47]Read from MH i2c: E2 [09:05:47]MH_I2C_Read... [09:05:47]Read from MH i2c: E2 0B 00 [09:05:47]MH_I2C_Read... [09:05:47]Read from MH i2c: E2 0B 00 AF 83 00 D7 F7 6C C6 A1 5A 85 59 90 00 87 [09:05:47]RAPDU: D7 F7 6C C6 A1 5A 85 59 90 00 [09:05:47]wFMCommunicate OK [09:05:47]SAM_PROTO_SignData done [09:05:47]FM_MakeSignedData done [09:05:47]CreateOFDProtocolMessage [09:05:47]wFMCommunicate request_size=4 [09:05:47]MH_SAM_APDU [09:05:47]CAPDU: 80 11 00 00 [09:05:47]Write to MH i2c: E2 08 00 B0 83 80 11 00 00 00 00 00 00 AD [09:05:47]Write i2c OK [09:05:47]MH_I2C_Read... [09:05:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:05:47]Read from MH i2c: E2 [09:05:47]MH_I2C_Read... [09:05:47]Read from MH i2c: E2 17 00 [09:05:47]MH_I2C_Read... [09:05:47]Read from MH i2c: E2 17 00 B0 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 FC [09:05:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:05:47]wFMCommunicate OK [09:05:47]CreateOFDProtocolMessage done [09:05:47]OFDSenderStorePacket 29157 [09:05:47]StoreOFDPacket docnum=29157 [09:05:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 94 16 07 01 D1 C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 43 00 00 00 F4 03 04 00 73 9C 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E5 71 00 00 35 04 06 00 C8 C9 79 DF A3 D1 D7 F7 6C C6 A1 5A 85 59 [09:05:47]CheckFolder [09:05:47]dirname=/storage/ofd_packets [09:05:47]CheckFolder done [09:05:47]ProducePacketName [09:05:47]name=ofd_packets/00029157 [09:05:47]NVStorageSaveData ofd_packets/00029157 [09:05:47]File name is /storage/ofd_packets/00029157 [09:05:47]Write 301 bytes [09:05:47]NVStorageSaveData done [09:05:47]OFDSenderStorePacket done [09:05:47]KKMCreateOFDPacket done [09:05:47]NVStorageSaveData kkm_last_timestamp [09:05:47]File name is /storage/kkm_last_timestamp [09:05:47]Write 4 bytes [09:05:47]NVStorageSaveData done [09:05:47]ExternCall_PrintAddStr [09:05:47]wPrintStart [09:05:47]Write to MH i2c: 01 00 00 B1 83 34 [09:05:47]Write i2c OK [09:05:47]MH_I2C_Read... [09:05:47]Read from MH i2c: 01 [09:05:47]MH_I2C_Read... [09:05:47]Read from MH i2c: 01 07 00 [09:05:47]MH_I2C_Read... [09:05:47]Read from MH i2c: 01 07 00 B1 83 00 00 00 00 00 FF 0F 49 [09:05:47]RasterBufferAndPrint [09:05:47]line Счет N : (1)347526 [09:05:47]line ИНН: 02508201610067 [09:05:47]line Контрольно-Кассовый Чек [09:05:47]line ПРОДАЖА [09:05:47]line ТРК (МРК, ГНК) : 42 [09:05:47]line Товар: 2710124130 [09:05:47]line Аи-92-К-5 [09:05:47]line 15.560 * 64.30 [09:05:47]line = 1000.51 [09:05:47]line НДС 12% НСП 1% [09:05:47]line > о реализуемом товаре [09:05:47]line ИТОГО: 1000.51 [09:05:47]line НСП 1% : 8.85 [09:05:47]line НДС 12% : 106.25 [09:05:47]line Наличными: 0.00 [09:05:47]line Безнал.: 1000.51 [09:05:47]line Место: АЗС № 108 "Партнер Нефть" [09:05:47]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:05:47]line СНО: Общий режим [09:05:47]line Чек 67 14.04.2024 09:05 [09:05:47]line Смена: 116 ФФД: 1.0 [09:05:47]line ЗНМ: 0300000027 [09:05:47]line РНМ: 0000138879044617 [09:05:47]line Версия ККМ: 001 [09:05:47]line Платежная система: АКБ Кыргызстан [09:05:47]line ФМ: 0000000000963154 [09:05:47]line ФД: 29157 [09:05:47]line ФПД: 220767658681297 [09:05:47]line 1/tax-web-control/client/api/v1/ticket?date=20240414T090555&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29157&fm=220767658681297&tin=02508201610067®Number=0000138879044617&sum=100051 [09:05:47]written 0, free lines is 4095 [09:05:47]OFD Sender: Processing packet 29157 [packets to send 8, broken 7] [09:05:47]ProducePacketName [09:05:47]name=ofd_packets/00029157 [09:05:47]OFD Sender: To server: pG, [09:05:47]CommunicateWithHost lk.salyk.kg:30040 [09:05:47]ConnectInit lk.salyk.kg [09:05:47]Connected sock=10 [09:05:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 94 16 07 01 D1 C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 43 00 00 00 F4 03 04 00 73 9C 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E5 71 00 00 35 04 06 00 C8 C9 79 DF A3 D1 D7 F7 6C C6 A1 5A 85 59 [09:05:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 42 C9 47 00 5B 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 39 36 33 31 35 34 10 04 04 00 E5 71 00 00 F4 03 04 00 17 47 1B 66 B6 04 01 00 00 1E A2 8E 11 2D D1 72 4B [09:05:47]CommunicateWithHost err = 0 [09:05:47]CheckOFDResponse [09:05:47]1017 (14) - 77093643461234 [09:05:47]1041 (16) - 0000000000963154 [09:05:47]1040 (4) - 29157 [09:05:47]1012 (4) - 14.04.2024 03:01 [09:05:47]1206 (1) - 0 [09:05:47]OFD Sender: Remove packet 29157 [09:05:47]ProducePacketName [09:05:47]name=ofd_packets/00029157 [09:05:47]NVStorageDeleteData [09:05:48]Write to MH i2c: 01 00 00 DA 83 5D [09:05:48]Write i2c OK [09:05:48]MH_I2C_Read... [09:05:48]Read from MH i2c: 01 [09:05:48]MH_I2C_Read... [09:05:48]Read from MH i2c: 01 07 00 [09:05:48]MH_I2C_Read... [09:05:48]Read from MH i2c: 01 07 00 DA 83 00 00 00 00 00 E5 0C 55 [09:05:48]RasterBufferAndPrint [09:05:48]line [09:05:48]line [09:05:48]line [09:05:48]line [09:05:48]line [09:05:48]written 0, free lines is 3307 [09:05:48]MH_Cut [09:05:48]Write to MH i2c: D1 01 00 E1 83 01 36 [09:05:48]Write i2c OK [09:05:48]MH_I2C_Read... [09:05:48]Read from MH i2c: D1 [09:05:48]MH_I2C_Read... [09:05:48]Read from MH i2c: D1 01 00 [09:05:48]MH_I2C_Read... [09:05:48]Read from MH i2c: D1 01 00 E1 83 00 35 [09:05:48]Write to MH i2c: 01 00 00 E2 83 65 [09:05:48]Write i2c OK [09:05:48]MH_I2C_Read... [09:05:48]OFD Sender: No OFD packet to send [09:05:48]*** Cut start [09:05:48]*** Partial cut [09:05:48]*** CUTSNS_PIN = 1 [09:05:48]*** CUTSNS_PIN = 0 [09:05:49]*** Brake cut motor [09:05:49]Read from MH i2c: 01 [09:05:49]MH_I2C_Read... [09:05:49]*** Stop cut motor [09:05:49]*** Cut end [09:05:49]Read from MH i2c: 01 07 00 [09:05:49]MH_I2C_Read... [09:05:49]Read from MH i2c: 01 07 00 E2 83 00 00 00 00 00 FF 0F 7A [09:05:49]process_action close_receipt done [09:05:49]requested_data is exist [09:05:49]produce_requested_data [09:05:49]requested_item fm.sn is exist - process it [09:05:49]wFMCommunicate request_size=4 [09:05:49]MH_SAM_APDU [09:05:49]CAPDU: 80 11 00 00 [09:05:49]Write to MH i2c: E2 08 00 E3 83 80 11 00 00 00 00 00 00 E0 [09:05:49]Write i2c OK [09:05:49]MH_I2C_Read... [09:05:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:05:49]Read from MH i2c: E2 [09:05:49]MH_I2C_Read... [09:05:49]Read from MH i2c: E2 17 00 [09:05:49]MH_I2C_Read... [09:05:49]Read from MH i2c: E2 17 00 E3 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 2F [09:05:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:05:49]wFMCommunicate OK [09:05:49]requested_item fd.num is exist - process it [09:05:49]SAM_PROTO_GetFieldsCounters [09:05:49]wFMCommunicate request_size=4 [09:05:49]MH_SAM_APDU [09:05:49]CAPDU: 80 13 00 00 [09:05:49]Write to MH i2c: E2 08 00 E4 83 80 13 00 00 00 00 00 00 E3 [09:05:49]Write i2c OK [09:05:49]MH_I2C_Read... [09:05:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:05:49]Read from MH i2c: E2 [09:05:49]MH_I2C_Read... [09:05:49]Read from MH i2c: E2 62 00 [09:05:49]MH_I2C_Read... [09:05:49]Read from MH i2c: E2 62 00 E4 83 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E5 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 B4 [09:05:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E5 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:05:49]wFMCommunicate OK [09:05:49]SAM_PROTO_GetFieldsCounters done [09:05:49]requested_item shift.num is exist - process it [09:05:49]requested_item shift.opened is exist - process it [09:05:49]req_shift_opened [09:05:49]FM_GetShiftState [09:05:49]SAM_PROTO_GetShiftState [09:05:49]wFMCommunicate request_size=4 [09:05:49]MH_SAM_APDU [09:05:49]CAPDU: 80 13 01 00 [09:05:49]Write to MH i2c: E2 08 00 E5 83 80 13 01 00 00 00 00 00 E5 [09:05:49]Write i2c OK [09:05:49]MH_I2C_Read... [09:05:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:05:49]Read from MH i2c: E2 [09:05:49]MH_I2C_Read... [09:05:49]Read from MH i2c: E2 0E 00 [09:05:49]MH_I2C_Read... [09:05:49]Read from MH i2c: E2 0E 00 E5 83 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 91 [09:05:49]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [09:05:49]wFMCommunicate OK [09:05:49]SAM_PROTO_GetShiftState done [09:05:49]FM_GetShiftState done [09:05:49]req_shift_opened done [09:05:49]requested_item shift.open_date is exist - process it [09:05:49]req_shift_open_date [09:05:49]req_shift_open_date done [09:05:49]produce_requested_data done [09:05:49]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29157,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [09:05:49]process_action_free close_receipt [09:05:49]json_value_free [09:05:49]json_value_free done [09:05:49]process_json_proto returns [09:05:49]Send response to host [09:05:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29157,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [09:05:49]free response buf [09:05:49]execute_script done [09:05:49]execute_script returns [09:05:49]free content buf [09:05:49]Sock 7.Close socket [09:05:49]Sock 7.Thread stoped [09:05:53]OFD Sender: No OFD packet to send [09:05:58]OFD Sender: No OFD packet to send [09:06:03]OFD Sender: No OFD packet to send [09:06:08]OFD Sender: No OFD packet to send [09:06:13]OFD Sender: No OFD packet to send [09:06:18]OFD Sender: No OFD packet to send [09:06:23]OFD Sender: No OFD packet to send [09:06:28]OFD Sender: No OFD packet to send [09:06:33]OFD Sender: No OFD packet to send [09:06:38]OFD Sender: No OFD packet to send [09:06:43]OFD Sender: No OFD packet to send [09:06:48]OFD Sender: No OFD packet to send [09:06:53]OFD Sender: No OFD packet to send [09:06:58]OFD Sender: No OFD packet to send [09:07:03]OFD Sender: No OFD packet to send [09:07:08]OFD Sender: No OFD packet to send [09:07:13]OFD Sender: No OFD packet to send [09:07:18]OFD Sender: No OFD packet to send [09:07:21]accept exits with 9 [09:07:21]New connection [09:07:21]New thread 3066928484 created [09:07:21]Thread 3066785124 joined [09:07:21]Waiting for new connection... [09:07:21] Sock 9.Parse request [09:07:21]Sock 9.Check first char [09:07:21]Sock 9.First char is OK [09:07:21]request: POST /json_proto HTTP/1.0 [09:07:21]Method: POST [09:07:21]URL: /json_proto [09:07:21]Method is POST - this is cgi request [09:07:21]url: /json_proto [09:07:21]query_string will be loaded in cgi processing [09:07:21]execute_cgi json_proto POST (null) [09:07:21]execute_cgi path=json_proto method=POST [09:07:21]POST find Content-Length [09:07:21]Host: 172.17.33.3:8080 [09:07:21]Content-Length: 674 [09:07:21]Content-Type: application/json [09:07:21] [09:07:21]POST finish read [09:07:21]Found Content-Length = 674 [09:07:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347528", "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" : 9.870, "sum" : 714.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 714.00, "total" : 714.00, "payments": [ { "type": 0, "sum" : 714.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:07:21]execute_script... [09:07: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)347528", "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" : 9.870, "sum" : 714.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 714.00, "total" : 714.00, "payments": [ { "type": 0, "sum" : 714.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:07:21]POST & json_proto [09:07:21]process_json_proto [09:07:21]json parsed OK: [09:07:21]protocol is kg_v1.0 [09:07:21]action value=close_receipt [09:07:21]process_action close_receipt [09:07:21]cmd_close_receipt [09:07:21]MH_GetDate [09:07:21]Write to MH i2c: F0 00 00 E6 83 58 [09:07:21]Write i2c OK [09:07:21]MH_I2C_Read... [09:07:21]Read from MH i2c: F0 [09:07:21]MH_I2C_Read... [09:07:21]Read from MH i2c: F0 09 00 [09:07:21]MH_I2C_Read... [09:07:21]Read from MH i2c: F0 09 00 E6 83 00 D3 9C 1B 66 23 5B 8F 65 C3 [09:07:21]GetLastDocTimeStamp 1713085555 [09:07:21]current date 1713085651 [09:07:21]FM_GetShiftState [09:07:21]SAM_PROTO_GetShiftState [09:07:21]wFMCommunicate request_size=4 [09:07:21]MH_SAM_APDU [09:07:21]CAPDU: 80 13 01 00 [09:07:21]Write to MH i2c: E2 08 00 E7 83 80 13 01 00 00 00 00 00 E7 [09:07:21]Write i2c OK [09:07:21]MH_I2C_Read... [09:07:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:07:21]Read from MH i2c: E2 [09:07:21]MH_I2C_Read... [09:07:21]Read from MH i2c: E2 0E 00 [09:07:21]MH_I2C_Read... [09:07:21]Read from MH i2c: E2 0E 00 E7 83 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 93 [09:07:21]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [09:07:21]wFMCommunicate OK [09:07:21]SAM_PROTO_GetShiftState done [09:07:21]FM_GetShiftState done [09:07:21]opened in 1713053951 [09:07:21]opened+sec_in_day 1713140351 [09:07:21]quantity*price = 71458 [09:07:21]sum+1 = 71460 [09:07:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 714.00 Внесено: 714.00 СДАЧА: 0.00 НСП 1% : 6.32 НДС 12% : 75.89 Наличными: 714.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 68 14.04.2024 09:07 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29158 ФПД: 15369127499786 1/tax-web-control/client/api/v1/ticket?date=20240414T090731&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29158&fm=15369127499786&tin=02508201610067®Number=0000138879044617&sum=71400 [09:07:23]StoreToDocumentArchive [09:07:23]shift 116 fd 29158 [09:07:23]save to /storage/0116/doc_00029158 [09:07:23]save last doc name /storage/0116/doc_00029158 to /storage/kkm_last_doc_name [09:07:23]save OK [09:07:23]Clear old archive folders... [09:07:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:07:23]tlvbuf is 01230680 [09:07:23]SAM_PROTO_ClearQueue [09:07:23]wFMCommunicate request_size=4 [09:07:23]MH_SAM_APDU [09:07:23]CAPDU: 80 09 00 00 [09:07:23]Write to MH i2c: E2 08 00 F4 83 80 09 00 00 00 00 00 00 E9 [09:07:23]Write i2c OK [09:07:23]MH_I2C_Read... [09:07:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:07:23]Read from MH i2c: E2 [09:07:23]MH_I2C_Read... [09:07:23]Read from MH i2c: E2 03 00 [09:07:23]MH_I2C_Read... [09:07:23]Read from MH i2c: E2 03 00 F4 83 00 90 00 EB [09:07:23]RAPDU: 90 00 [09:07:23]wFMCommunicate OK [09:07:23]SAM_PROTO_ClearQueue done [09:07:23]KKMCreateOFDPacket [09:07:23]OFDProtocolAddRootSTLVToBuf [09:07:23]FM_MakeSignedData [09:07:23]FM_MakeSignedData [09:07:23]SAM_PROTO_SignData [09:07:23]wFMCommunicate request_size=4 [09:07:23]MH_SAM_APDU [09:07:23]CAPDU: 80 0D 01 02 [09:07:23]Write to MH i2c: E2 08 00 F5 83 80 0D 01 02 00 00 00 00 F1 [09:07:23]Write i2c OK [09:07:23]MH_I2C_Read... [09:07:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:07:23]Read from MH i2c: E2 [09:07:23]MH_I2C_Read... [09:07:23]Read from MH i2c: E2 03 00 [09:07:23]MH_I2C_Read... [09:07:23]Read from MH i2c: E2 03 00 F5 83 00 90 00 EC [09:07:23]RAPDU: 90 00 [09:07:23]wFMCommunicate OK [09:07:23]wFMCommunicate request_size=255 [09:07:23]MH_SAM_APDU [09:07:23]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 8E 26 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 23 17 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 16 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 1D 00 00 00 00 07 04 06 00 E8 16 01 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 D3 9C 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E6 71 00 00 35 04 06 00 0D FA 67 62 [09:07:23]Write to MH i2c: E2 02 01 F6 83 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 8E 26 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 23 17 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 16 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 1D 00 00 00 00 07 04 06 00 E8 16 01 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 D3 9C 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E6 71 00 00 35 04 06 00 0D FA 67 62 00 00 C7 [09:07:23]Write i2c OK [09:07:23]MH_I2C_Read... [09:07:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:07:23]Read from MH i2c: E2 [09:07:23]MH_I2C_Read... [09:07:23]Read from MH i2c: E2 03 00 [09:07:23]MH_I2C_Read... [09:07:23]Read from MH i2c: E2 03 00 F6 83 00 90 00 ED [09:07:23]RAPDU: 90 00 [09:07:23]wFMCommunicate OK [09:07:23]wFMCommunicate request_size=7 [09:07:23]MH_SAM_APDU [09:07:23]CAPDU: 80 0D 02 02 02 98 0A [09:07:23]Write to MH i2c: E2 0A 00 F7 83 80 0D 02 02 02 00 98 0A 00 00 9A [09:07:23]Write i2c OK [09:07:23]MH_I2C_Read... [09:07:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:07:23]Read from MH i2c: E2 [09:07:23]MH_I2C_Read... [09:07:23]Read from MH i2c: E2 03 00 [09:07:23]MH_I2C_Read... [09:07:23]Read from MH i2c: E2 03 00 F7 83 00 90 00 EE [09:07:23]RAPDU: 90 00 [09:07:23]wFMCommunicate OK [09:07:23]wFMCommunicate request_size=4 [09:07:23]MH_SAM_APDU [09:07:23]CAPDU: 80 0D 03 02 [09:07:23]Write to MH i2c: E2 08 00 F8 83 80 0D 03 02 00 00 00 00 F6 [09:07:23]Write i2c OK [09:07:23]MH_I2C_Read... [09:07:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:07:23]Read from MH i2c: E2 [09:07:23]MH_I2C_Read... [09:07:23]Read from MH i2c: E2 0B 00 [09:07:23]MH_I2C_Read... [09:07:23]Read from MH i2c: E2 0B 00 F8 83 00 B5 7D B9 EA D6 BD C7 9F 90 00 C5 [09:07:23]RAPDU: B5 7D B9 EA D6 BD C7 9F 90 00 [09:07:23]wFMCommunicate OK [09:07:23]SAM_PROTO_SignData done [09:07:23]FM_MakeSignedData done [09:07:23]CreateOFDProtocolMessage [09:07:23]wFMCommunicate request_size=4 [09:07:23]MH_SAM_APDU [09:07:23]CAPDU: 80 11 00 00 [09:07:23]Write to MH i2c: E2 08 00 F9 83 80 11 00 00 00 00 00 00 F6 [09:07:23]Write i2c OK [09:07:23]MH_I2C_Read... [09:07:23]OFD Sender: No OFD packet to send [09:07:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:07:23]Read from MH i2c: E2 [09:07:23]MH_I2C_Read... [09:07:23]Read from MH i2c: E2 17 00 [09:07:23]MH_I2C_Read... [09:07:23]Read from MH i2c: E2 17 00 F9 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 45 [09:07:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:07:23]wFMCommunicate OK [09:07:23]CreateOFDProtocolMessage done [09:07:23]OFDSenderStorePacket 29158 [09:07:23]StoreOFDPacket docnum=29158 [09:07:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 6E C2 04 01 44 06 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 8E 26 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 23 17 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 16 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 1D 00 00 00 00 07 04 06 00 E8 16 01 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 D3 9C 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E6 71 00 00 35 04 06 00 0D FA 67 62 98 0A B5 7D B9 EA D6 BD C7 9F [09:07:23]CheckFolder [09:07:23]dirname=/storage/ofd_packets [09:07:23]CheckFolder done [09:07:23]ProducePacketName [09:07:23]name=ofd_packets/00029158 [09:07:23]NVStorageSaveData ofd_packets/00029158 [09:07:23]File name is /storage/ofd_packets/00029158 [09:07:23]Write 298 bytes [09:07:23]NVStorageSaveData done [09:07:23]OFDSenderStorePacket done [09:07:23]KKMCreateOFDPacket done [09:07:23]NVStorageSaveData kkm_last_timestamp [09:07:23]File name is /storage/kkm_last_timestamp [09:07:23]Write 4 bytes [09:07:23]NVStorageSaveData done [09:07:23]ExternCall_PrintAddStr [09:07:23]wPrintStart [09:07:23]Write to MH i2c: 01 00 00 FA 83 7D [09:07:23]Write i2c OK [09:07:23]MH_I2C_Read... [09:07:23]Read from MH i2c: 01 [09:07:23]MH_I2C_Read... [09:07:23]Read from MH i2c: 01 07 00 [09:07:23]MH_I2C_Read... [09:07:23]Read from MH i2c: 01 07 00 FA 83 00 00 00 00 00 FF 0F 92 [09:07:23]RasterBufferAndPrint [09:07:23]line Счет N : (1)347528 [09:07:23]line ИНН: 02508201610067 [09:07:23]line Контрольно-Кассовый Чек [09:07:23]line ПРОДАЖА [09:07:23]line ТРК (МРК, ГНК) : 61 [09:07:23]line Товар: 2710194210 [09:07:23]line ДТ-К-5 [09:07:23]line 9.870 * 72.40 [09:07:23]line = 714.59 [09:07:23]line НДС 12% НСП 1% [09:07:23]line > о реализуемом товаре [09:07:23]line ОКРУГЛЕНИЕ: -0.59 [09:07:23]line ИТОГО: 714.00 [09:07:23]line Внесено: 714.00 [09:07:23]line СДАЧА: 0.00 [09:07:23]line НСП 1% : 6.32 [09:07:23]line НДС 12% : 75.89 [09:07:23]line Наличными: 714.00 [09:07:23]line Безнал.: 0.00 [09:07:23]line Место: АЗС № 108 "Партнер Нефть" [09:07:23]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:07:23]line СНО: Общий режим [09:07:23]line Чек 68 14.04.2024 09:07 [09:07:23]line Смена: 116 ФФД: 1.0 [09:07:23]line ЗНМ: 0300000027 [09:07:23]line РНМ: 0000138879044617 [09:07:23]line Версия ККМ: 001 [09:07:23]line ФМ: 0000000000963154 [09:07:23]line ФД: 29158 [09:07:23]line ФПД: 15369127499786 [09:07:23]line 1/tax-web-control/client/api/v1/ticket?date=20240414T090731&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29158&fm=15369127499786&tin=02508201610067®Number=0000138879044617&sum=71400 [09:07:23]written 0, free lines is 4095 [09:07:23]OFD Sender: Processing packet 29158 [packets to send 8, broken 7] [09:07:23]ProducePacketName [09:07:23]name=ofd_packets/00029158 [09:07:23]OFD Sender: To server: pG, [09:07:23]CommunicateWithHost lk.salyk.kg:30040 [09:07:23]ConnectInit lk.salyk.kg [09:07:23]Connected sock=10 [09:07:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 6E C2 04 01 44 06 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 8E 26 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 23 17 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 16 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 1D 00 00 00 00 07 04 06 00 E8 16 01 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 D3 9C 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E6 71 00 00 35 04 06 00 0D FA 67 62 98 0A B5 7D B9 EA D6 BD C7 9F [09:07:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 43 49 47 00 3B 21 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E6 71 00 00 F4 03 04 00 77 47 1B 66 B6 04 01 00 00 EF D9 60 00 A0 CC 6C C9 [09:07:23]CommunicateWithHost err = 0 [09:07:23]CheckOFDResponse [09:07:23]1017 (14) - 77093643461234 [09:07:23]1041 (16) - 0000000000963154 [09:07:23]1040 (4) - 29158 [09:07:23]1012 (4) - 14.04.2024 03:03 [09:07:23]1206 (1) - 0 [09:07:23]OFD Sender: Remove packet 29158 [09:07:23]ProducePacketName [09:07:23]name=ofd_packets/00029158 [09:07:23]NVStorageDeleteData [09:07:23]Write to MH i2c: 01 00 00 24 84 A8 [09:07:23]Write i2c OK [09:07:23]MH_I2C_Read... [09:07:23]Read from MH i2c: 01 [09:07:23]MH_I2C_Read... [09:07:23]Read from MH i2c: 01 07 00 [09:07:23]MH_I2C_Read... [09:07:23]Read from MH i2c: 01 07 00 24 84 00 00 00 00 00 C2 0C 7D [09:07:23]RasterBufferAndPrint [09:07:23]line [09:07:23]line [09:07:23]line [09:07:23]line [09:07:23]line [09:07:23]written 0, free lines is 3273 [09:07:24]MH_Cut [09:07:24]Write to MH i2c: D1 01 00 2B 84 01 81 [09:07:24]Write i2c OK [09:07:24]MH_I2C_Read... [09:07:24]Read from MH i2c: D1 [09:07:24]MH_I2C_Read... [09:07:24]Read from MH i2c: D1 01 00 [09:07:24]MH_I2C_Read... [09:07:24]Read from MH i2c: D1 01 00 2B 84 00 80 [09:07:24]Write to MH i2c: 01 00 00 2C 84 B0 [09:07:24]Write i2c OK [09:07:24]MH_I2C_Read... [09:07:24]OFD Sender: No OFD packet to send [09:07:24]*** Cut start [09:07:24]*** Partial cut [09:07:24]*** CUTSNS_PIN = 1 [09:07:24]*** CUTSNS_PIN = 0 [09:07:25]*** Brake cut motor [09:07:25]Read from MH i2c: 01 [09:07:25]MH_I2C_Read... [09:07:25]*** Stop cut motor [09:07:25]*** Cut end [09:07:25]Read from MH i2c: 01 07 00 [09:07:25]MH_I2C_Read... [09:07:25]Read from MH i2c: 01 07 00 2C 84 00 00 00 00 00 FF 0F C5 [09:07:25]process_action close_receipt done [09:07:25]requested_data is exist [09:07:25]produce_requested_data [09:07:25]requested_item fm.sn is exist - process it [09:07:25]wFMCommunicate request_size=4 [09:07:25]MH_SAM_APDU [09:07:25]CAPDU: 80 11 00 00 [09:07:25]Write to MH i2c: E2 08 00 2D 84 80 11 00 00 00 00 00 00 2B [09:07:25]Write i2c OK [09:07:25]MH_I2C_Read... [09:07:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:07:25]Read from MH i2c: E2 [09:07:25]MH_I2C_Read... [09:07:25]Read from MH i2c: E2 17 00 [09:07:25]MH_I2C_Read... [09:07:25]Read from MH i2c: E2 17 00 2D 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 7A [09:07:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:07:25]wFMCommunicate OK [09:07:25]requested_item fd.num is exist - process it [09:07:25]SAM_PROTO_GetFieldsCounters [09:07:25]wFMCommunicate request_size=4 [09:07:25]MH_SAM_APDU [09:07:25]CAPDU: 80 13 00 00 [09:07:25]Write to MH i2c: E2 08 00 2E 84 80 13 00 00 00 00 00 00 2E [09:07:25]Write i2c OK [09:07:25]MH_I2C_Read... [09:07:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:07:25]Read from MH i2c: E2 [09:07:25]MH_I2C_Read... [09:07:25]Read from MH i2c: E2 62 00 [09:07:25]MH_I2C_Read... [09:07:25]Read from MH i2c: E2 62 00 2E 84 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E6 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 03 [09:07:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E6 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:07:25]wFMCommunicate OK [09:07:25]SAM_PROTO_GetFieldsCounters done [09:07:25]requested_item shift.num is exist - process it [09:07:25]requested_item shift.opened is exist - process it [09:07:25]req_shift_opened [09:07:25]FM_GetShiftState [09:07:25]SAM_PROTO_GetShiftState [09:07:25]wFMCommunicate request_size=4 [09:07:25]MH_SAM_APDU [09:07:25]CAPDU: 80 13 01 00 [09:07:25]Write to MH i2c: E2 08 00 2F 84 80 13 01 00 00 00 00 00 30 [09:07:25]Write i2c OK [09:07:25]MH_I2C_Read... [09:07:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:07:25]Read from MH i2c: E2 [09:07:25]MH_I2C_Read... [09:07:25]Read from MH i2c: E2 0E 00 [09:07:25]MH_I2C_Read... [09:07:25]Read from MH i2c: E2 0E 00 2F 84 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 DC [09:07:25]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [09:07:25]wFMCommunicate OK [09:07:25]SAM_PROTO_GetShiftState done [09:07:25]FM_GetShiftState done [09:07:25]req_shift_opened done [09:07:25]requested_item shift.open_date is exist - process it [09:07:25]req_shift_open_date [09:07:25]req_shift_open_date done [09:07:25]produce_requested_data done [09:07:25]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29158,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [09:07:25]process_action_free close_receipt [09:07:25]json_value_free [09:07:25]json_value_free done [09:07:25]process_json_proto returns [09:07:25]Send response to host [09:07:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29158,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [09:07:25]free response buf [09:07:25]execute_script done [09:07:25]execute_script returns [09:07:25]free content buf [09:07:25]Sock 9.Close socket [09:07:25]Sock 9.Thread stoped [09:07:29]OFD Sender: No OFD packet to send [09:07:34]OFD Sender: No OFD packet to send [09:07:39]OFD Sender: No OFD packet to send [09:07:44]OFD Sender: No OFD packet to send [09:07:49]OFD Sender: No OFD packet to send [09:07:54]OFD Sender: No OFD packet to send [09:07:59]OFD Sender: No OFD packet to send [09:08:04]OFD Sender: No OFD packet to send [09:08:09]OFD Sender: No OFD packet to send [09:08:14]OFD Sender: No OFD packet to send [09:08:19]OFD Sender: No OFD packet to send [09:08:24]OFD Sender: No OFD packet to send [09:08:29]OFD Sender: No OFD packet to send [09:08:34]OFD Sender: No OFD packet to send [09:08:39]OFD Sender: No OFD packet to send [09:08:44]OFD Sender: No OFD packet to send [09:08:49]OFD Sender: No OFD packet to send [09:08:54]OFD Sender: No OFD packet to send [09:08:59]OFD Sender: No OFD packet to send [09:09:04]OFD Sender: No OFD packet to send [09:09:09]OFD Sender: No OFD packet to send [09:09:14]OFD Sender: No OFD packet to send [09:09:19]OFD Sender: No OFD packet to send [09:09:24]OFD Sender: No OFD packet to send [09:09:29]OFD Sender: No OFD packet to send [09:09:34]OFD Sender: No OFD packet to send [09:09:39]OFD Sender: No OFD packet to send [09:09:44]OFD Sender: No OFD packet to send [09:09:49]OFD Sender: No OFD packet to send [09:09:54]OFD Sender: No OFD packet to send [09:09:59]OFD Sender: No OFD packet to send [09:10:04]OFD Sender: No OFD packet to send [09:10:09]OFD Sender: No OFD packet to send [09:10:14]OFD Sender: No OFD packet to send [09:10:19]OFD Sender: No OFD packet to send [09:10:24]OFD Sender: No OFD packet to send [09:10:29]OFD Sender: No OFD packet to send [09:10:34]OFD Sender: No OFD packet to send [09:10:39]OFD Sender: No OFD packet to send [09:10:44]OFD Sender: No OFD packet to send [09:10:49]OFD Sender: No OFD packet to send [09:10:54]OFD Sender: No OFD packet to send [09:10:59]OFD Sender: No OFD packet to send [09:11:04]OFD Sender: No OFD packet to send [09:11:09]OFD Sender: No OFD packet to send [09:11:14]OFD Sender: No OFD packet to send [09:11:19]OFD Sender: No OFD packet to send [09:11:24]OFD Sender: No OFD packet to send [09:11:29]OFD Sender: No OFD packet to send [09:11:34]OFD Sender: No OFD packet to send [09:11:39]OFD Sender: No OFD packet to send [09:11:44]OFD Sender: No OFD packet to send [09:11:49]OFD Sender: No OFD packet to send [09:11:54]OFD Sender: No OFD packet to send [09:11:59]OFD Sender: No OFD packet to send [09:12:04]OFD Sender: No OFD packet to send [09:12:09]OFD Sender: No OFD packet to send [09:12:14]OFD Sender: No OFD packet to send [09:12:19]OFD Sender: No OFD packet to send [09:12:24]OFD Sender: No OFD packet to send [09:12:29]OFD Sender: No OFD packet to send [09:12:34]OFD Sender: No OFD packet to send [09:12:39]OFD Sender: No OFD packet to send [09:12:44]OFD Sender: No OFD packet to send [09:12:49]OFD Sender: No OFD packet to send [09:12:54]OFD Sender: No OFD packet to send [09:12:59]OFD Sender: No OFD packet to send [09:13:04]OFD Sender: No OFD packet to send [09:13:09]OFD Sender: No OFD packet to send [09:13:14]OFD Sender: No OFD packet to send [09:13:19]OFD Sender: No OFD packet to send [09:13:24]OFD Sender: No OFD packet to send [09:13:29]OFD Sender: No OFD packet to send [09:13:34]OFD Sender: No OFD packet to send [09:13:39]OFD Sender: No OFD packet to send [09:13:44]OFD Sender: No OFD packet to send [09:13:49]OFD Sender: No OFD packet to send [09:13:54]OFD Sender: No OFD packet to send [09:13:59]OFD Sender: No OFD packet to send [09:14:04]OFD Sender: No OFD packet to send [09:14:09]OFD Sender: No OFD packet to send [09:14:14]OFD Sender: No OFD packet to send [09:14:19]OFD Sender: No OFD packet to send [09:14:24]accept exits with 7 [09:14:24]New connection [09:14:24]New thread 3066785124 created [09:14:24]Thread 3066928484 joined [09:14:24]Waiting for new connection... [09:14:24] Sock 7.Parse request [09:14:24]Sock 7.Check first char [09:14:24]Sock 7.First char is OK [09:14:24]request: POST /json_proto HTTP/1.0 [09:14:24]Method: POST [09:14:24]URL: /json_proto [09:14:24]Method is POST - this is cgi request [09:14:24]url: /json_proto [09:14:24]query_string will be loaded in cgi processing [09:14:24]execute_cgi json_proto POST (null) [09:14:24]execute_cgi path=json_proto method=POST [09:14:24]POST find Content-Length [09:14:24]Host: 172.17.33.3:8080 [09:14:24]Content-Length: 670 [09:14:24]Content-Type: application/json [09:14:24] [09:14:24]POST finish read [09:14:24]Found Content-Length = 670 [09:14:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347530", "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" ] } } [09:14:24]execute_script... [09:14: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)347530", "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" ] } } [09:14:24]POST & json_proto [09:14:24]process_json_proto [09:14:24]json parsed OK: [09:14:24]protocol is kg_v1.0 [09:14:24]action value=close_receipt [09:14:24]process_action close_receipt [09:14:24]cmd_close_receipt [09:14:24]MH_GetDate [09:14:24]Write to MH i2c: F0 00 00 30 84 A3 [09:14:24]Write i2c OK [09:14:24]MH_I2C_Read... [09:14:24]Read from MH i2c: F0 [09:14:24]MH_I2C_Read... [09:14:24]Read from MH i2c: F0 09 00 [09:14:24]MH_I2C_Read... [09:14:24]Read from MH i2c: F0 09 00 30 84 00 79 9E 1B 66 23 5B 8F 65 B6 [09:14:24]GetLastDocTimeStamp 1713085651 [09:14:24]current date 1713086073 [09:14:24]FM_GetShiftState [09:14:24]SAM_PROTO_GetShiftState [09:14:24]wFMCommunicate request_size=4 [09:14:24]MH_SAM_APDU [09:14:24]CAPDU: 80 13 01 00 [09:14:24]Write to MH i2c: E2 08 00 31 84 80 13 01 00 00 00 00 00 32 [09:14:24]Write i2c OK [09:14:24]MH_I2C_Read... [09:14:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:14:24]Read from MH i2c: E2 [09:14:24]MH_I2C_Read... [09:14:24]Read from MH i2c: E2 0E 00 [09:14:24]MH_I2C_Read... [09:14:24]Read from MH i2c: E2 0E 00 31 84 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 DE [09:14:24]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [09:14:24]wFMCommunicate OK [09:14:24]SAM_PROTO_GetShiftState done [09:14:24]FM_GetShiftState done [09:14:24]opened in 1713053951 [09:14:24]opened+sec_in_day 1713140351 [09:14:24]quantity*price = 50019 [09:14:24]sum+1 = 50021 [09:14: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 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 69 14.04.2024 09:14 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29159 ФПД: 195312900146479 1/tax-web-control/client/api/v1/ticket?date=20240414T091433&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29159&fm=195312900146479&tin=02508201610067®Number=0000138879044617&sum=50000 [09:14:25]StoreToDocumentArchive [09:14:25]shift 116 fd 29159 [09:14:25]save to /storage/0116/doc_00029159 [09:14:25]save last doc name /storage/0116/doc_00029159 to /storage/kkm_last_doc_name [09:14:25]save OK [09:14:25]Clear old archive folders... [09:14:25]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:14:25]tlvbuf is 011B7710 [09:14:25]SAM_PROTO_ClearQueue [09:14:25]wFMCommunicate request_size=4 [09:14:25]MH_SAM_APDU [09:14:25]CAPDU: 80 09 00 00 [09:14:25]Write to MH i2c: E2 08 00 3E 84 80 09 00 00 00 00 00 00 34 [09:14:25]Write i2c OK [09:14:25]MH_I2C_Read... [09:14:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:14:25]Read from MH i2c: E2 [09:14:25]MH_I2C_Read... [09:14:25]Read from MH i2c: E2 03 00 [09:14:25]MH_I2C_Read... [09:14:25]Read from MH i2c: E2 03 00 3E 84 00 90 00 36 [09:14:25]RAPDU: 90 00 [09:14:25]wFMCommunicate OK [09:14:25]SAM_PROTO_ClearQueue done [09:14:25]KKMCreateOFDPacket [09:14:25]OFDProtocolAddRootSTLVToBuf [09:14:25]FM_MakeSignedData [09:14:25]FM_MakeSignedData [09:14:25]SAM_PROTO_SignData [09:14:25]wFMCommunicate request_size=4 [09:14:25]MH_SAM_APDU [09:14:25]CAPDU: 80 0D 01 02 [09:14:25]Write to MH i2c: E2 08 00 3F 84 80 0D 01 02 00 00 00 00 3C [09:14:25]Write i2c OK [09:14:25]MH_I2C_Read... [09:14:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:14:25]Read from MH i2c: E2 [09:14:25]MH_I2C_Read... [09:14:25]Read from MH i2c: E2 03 00 [09:14:25]MH_I2C_Read... [09:14:25]Read from MH i2c: E2 03 00 3F 84 00 90 00 37 [09:14:25]RAPDU: 90 00 [09:14:25]wFMCommunicate OK [09:14:25]wFMCommunicate request_size=255 [09:14:25]MH_SAM_APDU [09:14:25]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 45 00 00 00 F4 03 04 00 79 9E 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E7 71 00 00 35 04 06 00 [09:14:25]Write to MH i2c: E2 02 01 40 84 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 45 00 00 00 F4 03 04 00 79 9E 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E7 71 00 00 35 04 06 00 00 00 37 [09:14:25]Write i2c OK [09:14:25]MH_I2C_Read... [09:14:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:14:25]Read from MH i2c: E2 [09:14:25]MH_I2C_Read... [09:14:25]Read from MH i2c: E2 03 00 [09:14:25]MH_I2C_Read... [09:14:25]Read from MH i2c: E2 03 00 40 84 00 90 00 38 [09:14:25]RAPDU: 90 00 [09:14:25]wFMCommunicate OK [09:14:25]wFMCommunicate request_size=11 [09:14:25]MH_SAM_APDU [09:14:25]CAPDU: 80 0D 02 02 06 B1 A2 D4 08 85 2F [09:14:25]Write to MH i2c: E2 0E 00 41 84 80 0D 02 02 06 00 B1 A2 D4 08 85 2F 00 00 2E [09:14:25]Write i2c OK [09:14:25]MH_I2C_Read... [09:14:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:14:25]Read from MH i2c: E2 [09:14:25]MH_I2C_Read... [09:14:25]Read from MH i2c: E2 03 00 [09:14:25]MH_I2C_Read... [09:14:25]Read from MH i2c: E2 03 00 41 84 00 90 00 39 [09:14:25]RAPDU: 90 00 [09:14:25]wFMCommunicate OK [09:14:25]wFMCommunicate request_size=4 [09:14:25]MH_SAM_APDU [09:14:25]CAPDU: 80 0D 03 02 [09:14:25]Write to MH i2c: E2 08 00 42 84 80 0D 03 02 00 00 00 00 41 [09:14:25]Write i2c OK [09:14:25]MH_I2C_Read... [09:14:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:14:25]Read from MH i2c: E2 [09:14:25]MH_I2C_Read... [09:14:25]Read from MH i2c: E2 0B 00 [09:14:25]MH_I2C_Read... [09:14:25]Read from MH i2c: E2 0B 00 42 84 00 80 1B 28 4B EF 0C 6A CB 90 00 80 [09:14:25]RAPDU: 80 1B 28 4B EF 0C 6A CB 90 00 [09:14:25]wFMCommunicate OK [09:14:25]SAM_PROTO_SignData done [09:14:25]FM_MakeSignedData done [09:14:25]CreateOFDProtocolMessage [09:14:25]wFMCommunicate request_size=4 [09:14:25]MH_SAM_APDU [09:14:25]CAPDU: 80 11 00 00 [09:14:25]Write to MH i2c: E2 08 00 43 84 80 11 00 00 00 00 00 00 41 [09:14:25]Write i2c OK [09:14:25]MH_I2C_Read... [09:14:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:14:25]Read from MH i2c: E2 [09:14:25]MH_I2C_Read... [09:14:25]Read from MH i2c: E2 17 00 [09:14:25]MH_I2C_Read... [09:14:25]Read from MH i2c: E2 17 00 43 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 90 [09:14:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:14:25]wFMCommunicate OK [09:14:25]CreateOFDProtocolMessage done [09:14:25]OFDSenderStorePacket 29159 [09:14:25]StoreOFDPacket docnum=29159 [09:14:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 97 0F 08 01 65 33 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 45 00 00 00 F4 03 04 00 79 9E 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E7 71 00 00 35 04 06 00 B1 A2 D4 08 85 2F 80 1B 28 4B EF 0C 6A CB [09:14:25]CheckFolder [09:14:25]dirname=/storage/ofd_packets [09:14:25]CheckFolder done [09:14:25]ProducePacketName [09:14:25]name=ofd_packets/00029159 [09:14:25]NVStorageSaveData ofd_packets/00029159 [09:14:25]File name is /storage/ofd_packets/00029159 [09:14:25]Write 302 bytes [09:14:25]NVStorageSaveData done [09:14:25]OFDSenderStorePacket done [09:14:25]KKMCreateOFDPacket done [09:14:25]NVStorageSaveData kkm_last_timestamp [09:14:25]File name is /storage/kkm_last_timestamp [09:14:25]Write 4 bytes [09:14:25]NVStorageSaveData done [09:14:25]ExternCall_PrintAddStr [09:14:25]wPrintStart [09:14:25]Write to MH i2c: 01 00 00 44 84 C8 [09:14:25]Write i2c OK [09:14:25]MH_I2C_Read... [09:14:25]Read from MH i2c: 01 [09:14:25]MH_I2C_Read... [09:14:25]Read from MH i2c: 01 07 00 [09:14:25]MH_I2C_Read... [09:14:25]Read from MH i2c: 01 07 00 44 84 00 00 00 00 00 FF 0F DD [09:14:25]RasterBufferAndPrint [09:14:25]line Счет N : (1)347530 [09:14:25]line ИНН: 02508201610067 [09:14:25]line Контрольно-Кассовый Чек [09:14:25]line ПРОДАЖА [09:14:25]line ТРК (МРК, ГНК) : 41 [09:14:25]line Товар: 2710124130 [09:14:25]line SUPER-92-К-5 [09:14:25]line 7.660 * 65.30 [09:14:25]line = 500.20 [09:14:25]line НДС 12% НСП 1% [09:14:25]line > о реализуемом товаре [09:14:25]line ОКРУГЛЕНИЕ: -0.20 [09:14:25]line ИТОГО: 500.00 [09:14:25]line Внесено: 500.00 [09:14:25]line СДАЧА: 0.00 [09:14:25]line НСП 1% : 4.43 [09:14:25]line НДС 12% : 53.12 [09:14:25]line Наличными: 500.00 [09:14:25]line Безнал.: 0.00 [09:14:25]line Место: АЗС № 108 "Партнер Нефть" [09:14:25]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:14:25]line СНО: Общий режим [09:14:25]line Чек 69 14.04.2024 09:14 [09:14:25]line Смена: 116 ФФД: 1.0 [09:14:25]line ЗНМ: 0300000027 [09:14:25]line РНМ: 0000138879044617 [09:14:25]line Версия ККМ: 001 [09:14:25]line ФМ: 0000000000963154 [09:14:25]line ФД: 29159 [09:14:25]line ФПД: 195312900146479 [09:14:26]line 1/tax-web-control/client/api/v1/ticket?date=20240414T091433&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29159&fm=195312900146479&tin=02508201610067®Number=0000138879044617&sum=50000 [09:14:26]OFD Sender: Processing packet 29159 [packets to send 8, broken 7] [09:14:26]ProducePacketName [09:14:26]name=ofd_packets/00029159 [09:14:26]OFD Sender: To server: pG, [09:14:26]CommunicateWithHost lk.salyk.kg:30040 [09:14:26]written 0, free lines is 4095 [09:14:26]ConnectInit lk.salyk.kg [09:14:26]Connected sock=10 [09:14:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 97 0F 08 01 65 33 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 45 00 00 00 F4 03 04 00 79 9E 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E7 71 00 00 35 04 06 00 B1 A2 D4 08 85 2F 80 1B 28 4B EF 0C 6A CB [09:14:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 74 2B 47 00 12 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 39 36 33 31 35 34 10 04 04 00 E7 71 00 00 F4 03 04 00 1D 49 1B 66 B6 04 01 00 00 13 19 65 8E 11 36 29 2F [09:14:26]CommunicateWithHost err = 0 [09:14:26]CheckOFDResponse [09:14:26]1017 (14) - 77093643461234 [09:14:26]1041 (16) - 0000000000963154 [09:14:26]1040 (4) - 29159 [09:14:26]1012 (4) - 14.04.2024 03:10 [09:14:26]1206 (1) - 0 [09:14:26]OFD Sender: Remove packet 29159 [09:14:26]ProducePacketName [09:14:26]name=ofd_packets/00029159 [09:14:26]NVStorageDeleteData [09:14:26]Write to MH i2c: 01 00 00 6E 84 F2 [09:14:26]Write i2c OK [09:14:26]MH_I2C_Read... [09:14:26]Read from MH i2c: 01 [09:14:26]MH_I2C_Read... [09:14:26]Read from MH i2c: 01 07 00 [09:14:26]MH_I2C_Read... [09:14:26]Read from MH i2c: 01 07 00 6E 84 00 00 00 00 00 D9 0C DE [09:14:26]RasterBufferAndPrint [09:14:26]line [09:14:26]line [09:14:26]line [09:14:26]line [09:14:26]line [09:14:26]written 0, free lines is 3297 [09:14:26]MH_Cut [09:14:26]Write to MH i2c: D1 01 00 75 84 01 CB [09:14:26]Write i2c OK [09:14:26]MH_I2C_Read... [09:14:26]Read from MH i2c: D1 [09:14:26]MH_I2C_Read... [09:14:26]Read from MH i2c: D1 01 00 [09:14:26]MH_I2C_Read... [09:14:26]Read from MH i2c: D1 01 00 75 84 00 CA [09:14:26]Write to MH i2c: 01 00 00 76 84 FA [09:14:26]Write i2c OK [09:14:26]MH_I2C_Read... [09:14:26]OFD Sender: No OFD packet to send [09:14:27]*** Cut start [09:14:27]*** Partial cut [09:14:27]*** CUTSNS_PIN = 1 [09:14:27]*** CUTSNS_PIN = 0 [09:14:27]*** Brake cut motor [09:14:28]Read from MH i2c: 01 [09:14:28]MH_I2C_Read... [09:14:28]*** Stop cut motor [09:14:28]*** Cut end [09:14:28]Read from MH i2c: 01 07 00 [09:14:28]MH_I2C_Read... [09:14:28]Read from MH i2c: 01 07 00 76 84 00 00 00 00 00 FF 0F 0F [09:14:28]process_action close_receipt done [09:14:28]requested_data is exist [09:14:28]produce_requested_data [09:14:28]requested_item fm.sn is exist - process it [09:14:28]wFMCommunicate request_size=4 [09:14:28]MH_SAM_APDU [09:14:28]CAPDU: 80 11 00 00 [09:14:28]Write to MH i2c: E2 08 00 77 84 80 11 00 00 00 00 00 00 75 [09:14:28]Write i2c OK [09:14:28]MH_I2C_Read... [09:14:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:14:28]Read from MH i2c: E2 [09:14:28]MH_I2C_Read... [09:14:28]Read from MH i2c: E2 17 00 [09:14:28]MH_I2C_Read... [09:14:28]Read from MH i2c: E2 17 00 77 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C4 [09:14:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:14:28]wFMCommunicate OK [09:14:28]requested_item fd.num is exist - process it [09:14:28]SAM_PROTO_GetFieldsCounters [09:14:28]wFMCommunicate request_size=4 [09:14:28]MH_SAM_APDU [09:14:28]CAPDU: 80 13 00 00 [09:14:28]Write to MH i2c: E2 08 00 78 84 80 13 00 00 00 00 00 00 78 [09:14:28]Write i2c OK [09:14:28]MH_I2C_Read... [09:14:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:14:28]Read from MH i2c: E2 [09:14:28]MH_I2C_Read... [09:14:28]Read from MH i2c: E2 62 00 [09:14:28]MH_I2C_Read... [09:14:28]Read from MH i2c: E2 62 00 78 84 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E7 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 51 [09:14:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E7 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:14:28]wFMCommunicate OK [09:14:28]SAM_PROTO_GetFieldsCounters done [09:14:28]requested_item shift.num is exist - process it [09:14:28]requested_item shift.opened is exist - process it [09:14:28]req_shift_opened [09:14:28]FM_GetShiftState [09:14:28]SAM_PROTO_GetShiftState [09:14:28]wFMCommunicate request_size=4 [09:14:28]MH_SAM_APDU [09:14:28]CAPDU: 80 13 01 00 [09:14:28]Write to MH i2c: E2 08 00 79 84 80 13 01 00 00 00 00 00 7A [09:14:28]Write i2c OK [09:14:28]MH_I2C_Read... [09:14:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:14:28]Read from MH i2c: E2 [09:14:28]MH_I2C_Read... [09:14:28]Read from MH i2c: E2 0E 00 [09:14:28]MH_I2C_Read... [09:14:28]Read from MH i2c: E2 0E 00 79 84 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 26 [09:14:28]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [09:14:28]wFMCommunicate OK [09:14:28]SAM_PROTO_GetShiftState done [09:14:28]FM_GetShiftState done [09:14:28]req_shift_opened done [09:14:28]requested_item shift.open_date is exist - process it [09:14:28]req_shift_open_date [09:14:28]req_shift_open_date done [09:14:28]produce_requested_data done [09:14:28]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29159,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [09:14:28]process_action_free close_receipt [09:14:28]json_value_free [09:14:28]json_value_free done [09:14:28]process_json_proto returns [09:14:28]Send response to host [09:14:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29159,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [09:14:28]free response buf [09:14:28]execute_script done [09:14:28]execute_script returns [09:14:28]free content buf [09:14:28]Sock 7.Close socket [09:14:28]Sock 7.Thread stoped [09:14:31]OFD Sender: No OFD packet to send [09:14:36]OFD Sender: No OFD packet to send [09:14:41]OFD Sender: No OFD packet to send [09:14:46]OFD Sender: No OFD packet to send [09:14:51]OFD Sender: No OFD packet to send [09:14:56]OFD Sender: No OFD packet to send [09:15:01]OFD Sender: No OFD packet to send [09:15:06]OFD Sender: No OFD packet to send [09:15:11]OFD Sender: No OFD packet to send [09:15:16]OFD Sender: No OFD packet to send [09:15:21]OFD Sender: No OFD packet to send [09:15:26]OFD Sender: No OFD packet to send [09:15:31]OFD Sender: No OFD packet to send [09:15:36]OFD Sender: No OFD packet to send [09:15:41]OFD Sender: No OFD packet to send [09:15:46]OFD Sender: No OFD packet to send [09:15:51]OFD Sender: No OFD packet to send [09:15:56]OFD Sender: No OFD packet to send [09:16:01]OFD Sender: No OFD packet to send [09:16:06]OFD Sender: No OFD packet to send [09:16:11]OFD Sender: No OFD packet to send [09:16: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:17]OFD Sender: No OFD packet to send [09:17:22]OFD Sender: No OFD packet to send [09:17:27]OFD Sender: No OFD packet to send [09:17:30]accept exits with 9 [09:17:30]New connection [09:17:30]New thread 3066928484 created [09:17:30]Thread 3066785124 joined [09:17:30]Waiting for new connection... [09:17:30] Sock 9.Parse request [09:17:30]Sock 9.Check first char [09:17:30]Sock 9.First char is OK [09:17:30]request: POST /json_proto HTTP/1.0 [09:17:30]Method: POST [09:17:30]URL: /json_proto [09:17:30]Method is POST - this is cgi request [09:17:30]url: /json_proto [09:17:30]query_string will be loaded in cgi processing [09:17:30]execute_cgi json_proto POST (null) [09:17:30]execute_cgi path=json_proto method=POST [09:17:30]POST find Content-Length [09:17:30]Host: 172.17.33.3:8080 [09:17:30]Content-Length: 677 [09:17:30]Content-Type: application/json [09:17:30] [09:17:30]POST finish read [09:17:30]Found Content-Length = 677 [09:17:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347531", "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:17:30]execute_script... [09:17: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)347531", "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:17:30]POST & json_proto [09:17:30]process_json_proto [09:17:30]json parsed OK: [09:17:30]protocol is kg_v1.0 [09:17:30]action value=close_receipt [09:17:30]process_action close_receipt [09:17:30]cmd_close_receipt [09:17:30]MH_GetDate [09:17:30]Write to MH i2c: F0 00 00 7A 84 ED [09:17:30]Write i2c OK [09:17:30]MH_I2C_Read... [09:17:30]Read from MH i2c: F0 [09:17:30]MH_I2C_Read... [09:17:30]Read from MH i2c: F0 09 00 [09:17:30]MH_I2C_Read... [09:17:30]Read from MH i2c: F0 09 00 7A 84 00 33 9F 1B 66 23 5B 8F 65 BB [09:17:30]GetLastDocTimeStamp 1713086073 [09:17:30]current date 1713086259 [09:17:30]FM_GetShiftState [09:17:30]SAM_PROTO_GetShiftState [09:17:30]wFMCommunicate request_size=4 [09:17:30]MH_SAM_APDU [09:17:30]CAPDU: 80 13 01 00 [09:17:30]Write to MH i2c: E2 08 00 7B 84 80 13 01 00 00 00 00 00 7C [09:17:30]Write i2c OK [09:17:30]MH_I2C_Read... [09:17:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:17:30]Read from MH i2c: E2 [09:17:30]MH_I2C_Read... [09:17:30]Read from MH i2c: E2 0E 00 [09:17:30]MH_I2C_Read... [09:17:30]Read from MH i2c: E2 0E 00 7B 84 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 28 [09:17:30]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [09:17:30]wFMCommunicate OK [09:17:30]SAM_PROTO_GetShiftState done [09:17:30]FM_GetShiftState done [09:17:30]opened in 1713053951 [09:17:30]opened+sec_in_day 1713140351 [09:17:30]quantity*price = 50025 [09:17:30]sum+1 = 50026 [09:17: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 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 70 14.04.2024 09:17 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29160 ФПД: 63573474357881 1/tax-web-control/client/api/v1/ticket?date=20240414T091739&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29160&fm=63573474357881&tin=02508201610067®Number=0000138879044617&sum=50000 [09:17:31]StoreToDocumentArchive [09:17:31]shift 116 fd 29160 [09:17:31]save to /storage/0116/doc_00029160 [09:17:31]save last doc name /storage/0116/doc_00029160 to /storage/kkm_last_doc_name [09:17:31]save OK [09:17:31]Clear old archive folders... [09:17:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:17:31]tlvbuf is 011BCE20 [09:17:31]SAM_PROTO_ClearQueue [09:17:31]wFMCommunicate request_size=4 [09:17:31]MH_SAM_APDU [09:17:31]CAPDU: 80 09 00 00 [09:17:31]Write to MH i2c: E2 08 00 88 84 80 09 00 00 00 00 00 00 7E [09:17:31]Write i2c OK [09:17:31]MH_I2C_Read... [09:17:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:17:31]Read from MH i2c: E2 [09:17:31]MH_I2C_Read... [09:17:31]Read from MH i2c: E2 03 00 [09:17:31]MH_I2C_Read... [09:17:31]Read from MH i2c: E2 03 00 88 84 00 90 00 80 [09:17:31]RAPDU: 90 00 [09:17:31]wFMCommunicate OK [09:17:31]SAM_PROTO_ClearQueue done [09:17:31]KKMCreateOFDPacket [09:17:31]OFDProtocolAddRootSTLVToBuf [09:17:31]FM_MakeSignedData [09:17:31]FM_MakeSignedData [09:17:31]SAM_PROTO_SignData [09:17:31]wFMCommunicate request_size=4 [09:17:31]MH_SAM_APDU [09:17:31]CAPDU: 80 0D 01 02 [09:17:31]Write to MH i2c: E2 08 00 89 84 80 0D 01 02 00 00 00 00 86 [09:17:31]Write i2c OK [09:17:31]MH_I2C_Read... [09:17:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:17:31]Read from MH i2c: E2 [09:17:31]MH_I2C_Read... [09:17:31]Read from MH i2c: E2 03 00 [09:17:31]MH_I2C_Read... [09:17:31]Read from MH i2c: E2 03 00 89 84 00 90 00 81 [09:17:31]RAPDU: 90 00 [09:17:31]wFMCommunicate OK [09:17:31]wFMCommunicate request_size=255 [09:17:31]MH_SAM_APDU [09:17: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 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 46 00 00 00 F4 03 04 00 33 9F 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E8 71 00 00 35 04 06 00 39 [09:17:31]Write to MH i2c: E2 02 01 8A 84 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 46 00 00 00 F4 03 04 00 33 9F 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E8 71 00 00 35 04 06 00 39 00 00 E7 [09:17:31]Write i2c OK [09:17:31]MH_I2C_Read... [09:17:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:17:31]Read from MH i2c: E2 [09:17:31]MH_I2C_Read... [09:17:31]Read from MH i2c: E2 03 00 [09:17:31]MH_I2C_Read... [09:17:31]Read from MH i2c: E2 03 00 8A 84 00 90 00 82 [09:17:31]RAPDU: 90 00 [09:17:31]wFMCommunicate OK [09:17:31]wFMCommunicate request_size=10 [09:17:31]MH_SAM_APDU [09:17:31]CAPDU: 80 0D 02 02 05 D1 DA 5B 32 79 [09:17:31]Write to MH i2c: E2 0D 00 8B 84 80 0D 02 02 05 00 D1 DA 5B 32 79 00 00 44 [09:17:31]Write i2c OK [09:17:31]MH_I2C_Read... [09:17:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:17:31]Read from MH i2c: E2 [09:17:31]MH_I2C_Read... [09:17:31]Read from MH i2c: E2 03 00 [09:17:31]MH_I2C_Read... [09:17:31]Read from MH i2c: E2 03 00 8B 84 00 90 00 83 [09:17:31]RAPDU: 90 00 [09:17:31]wFMCommunicate OK [09:17:31]wFMCommunicate request_size=4 [09:17:31]MH_SAM_APDU [09:17:31]CAPDU: 80 0D 03 02 [09:17:31]Write to MH i2c: E2 08 00 8C 84 80 0D 03 02 00 00 00 00 8B [09:17:31]Write i2c OK [09:17:31]MH_I2C_Read... [09:17:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:17:31]Read from MH i2c: E2 [09:17:31]MH_I2C_Read... [09:17:31]Read from MH i2c: E2 0B 00 [09:17:31]MH_I2C_Read... [09:17:31]Read from MH i2c: E2 0B 00 8C 84 00 50 7F 78 EE 49 B6 66 88 90 00 AE [09:17:31]RAPDU: 50 7F 78 EE 49 B6 66 88 90 00 [09:17:31]wFMCommunicate OK [09:17:31]SAM_PROTO_SignData done [09:17:31]FM_MakeSignedData done [09:17:31]CreateOFDProtocolMessage [09:17:31]wFMCommunicate request_size=4 [09:17:31]MH_SAM_APDU [09:17:31]CAPDU: 80 11 00 00 [09:17:31]Write to MH i2c: E2 08 00 8D 84 80 11 00 00 00 00 00 00 8B [09:17:31]Write i2c OK [09:17:31]MH_I2C_Read... [09:17:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:17:31]Read from MH i2c: E2 [09:17:31]MH_I2C_Read... [09:17:31]Read from MH i2c: E2 17 00 [09:17:31]MH_I2C_Read... [09:17:31]Read from MH i2c: E2 17 00 8D 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 DA [09:17:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:17:31]wFMCommunicate OK [09:17:31]CreateOFDProtocolMessage done [09:17:31]OFDSenderStorePacket 29160 [09:17:31]StoreOFDPacket docnum=29160 [09:17:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 6B 4A 07 01 AE 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 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 46 00 00 00 F4 03 04 00 33 9F 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E8 71 00 00 35 04 06 00 39 D1 DA 5B 32 79 50 7F 78 EE 49 B6 66 88 [09:17:31]CheckFolder [09:17:31]dirname=/storage/ofd_packets [09:17:31]CheckFolder done [09:17:31]ProducePacketName [09:17:31]name=ofd_packets/00029160 [09:17:31]NVStorageSaveData ofd_packets/00029160 [09:17:31]File name is /storage/ofd_packets/00029160 [09:17:31]Write 301 bytes [09:17:31]NVStorageSaveData done [09:17:31]OFDSenderStorePacket done [09:17:31]KKMCreateOFDPacket done [09:17:31]NVStorageSaveData kkm_last_timestamp [09:17:31]File name is /storage/kkm_last_timestamp [09:17:31]Write 4 bytes [09:17:31]NVStorageSaveData done [09:17:31]ExternCall_PrintAddStr [09:17:31]wPrintStart [09:17:31]Write to MH i2c: 01 00 00 8E 84 12 [09:17:31]Write i2c OK [09:17:31]MH_I2C_Read... [09:17:31]Read from MH i2c: 01 [09:17:31]MH_I2C_Read... [09:17:31]Read from MH i2c: 01 07 00 [09:17:31]MH_I2C_Read... [09:17:31]Read from MH i2c: 01 07 00 8E 84 00 00 00 00 00 FF 0F 27 [09:17:31]RasterBufferAndPrint [09:17:31]line Счет N : (1)347531 [09:17:31]line ИНН: 02508201610067 [09:17:31]line Контрольно-Кассовый Чек [09:17:31]line ПРОДАЖА [09:17:31]line ТРК (МРК, ГНК) : 32 [09:17:31]line Товар: 2710124130 [09:17:31]line Аи-92-К-5 [09:17:31]line 7.780 * 64.30 [09:17:31]line = 500.25 [09:17:31]line НДС 12% НСП 1% [09:17:31]line > о реализуемом товаре [09:17:31]line ОКРУГЛЕНИЕ: -0.25 [09:17:31]line ИТОГО: 500.00 [09:17:31]line Внесено: 500.00 [09:17:31]line СДАЧА: 0.00 [09:17:31]line НСП 1% : 4.43 [09:17:31]line НДС 12% : 53.12 [09:17:31]line Наличными: 500.00 [09:17:31]line Безнал.: 0.00 [09:17:31]line Место: АЗС № 108 "Партнер Нефть" [09:17:31]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:17:31]line СНО: Общий режим [09:17:31]line Чек 70 14.04.2024 09:17 [09:17:31]line Смена: 116 ФФД: 1.0 [09:17:31]line ЗНМ: 0300000027 [09:17:31]line РНМ: 0000138879044617 [09:17:31]line Версия ККМ: 001 [09:17:31]line ФМ: 0000000000963154 [09:17:31]line ФД: 29160 [09:17:32]line ФПД: 63573474357881 [09:17:32]line 1/tax-web-control/client/api/v1/ticket?date=20240414T091739&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29160&fm=63573474357881&tin=02508201610067®Number=0000138879044617&sum=50000 [09:17:32]OFD Sender: Processing packet 29160 [packets to send 8, broken 7] [09:17:32]ProducePacketName [09:17:32]name=ofd_packets/00029160 [09:17:32]OFD Sender: To server: pG, [09:17:32]CommunicateWithHost lk.salyk.kg:30040 [09:17:32]ConnectInit lk.salyk.kg [09:17:32]written 0, free lines is 4095 [09:17:32]Connected sock=10 [09:17:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 6B 4A 07 01 AE 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 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 46 00 00 00 F4 03 04 00 33 9F 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E8 71 00 00 35 04 06 00 39 D1 DA 5B 32 79 50 7F 78 EE 49 B6 66 88 [09:17:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 08 0E 47 00 BE FE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E8 71 00 00 F4 03 04 00 D8 49 1B 66 B6 04 01 00 00 8F B9 5A E6 47 E4 95 E3 [09:17:32]CommunicateWithHost err = 0 [09:17:32]CheckOFDResponse [09:17:32]1017 (14) - 77093643461234 [09:17:32]1041 (16) - 0000000000963154 [09:17:32]1040 (4) - 29160 [09:17:32]1012 (4) - 14.04.2024 03:13 [09:17:32]1206 (1) - 0 [09:17:32]OFD Sender: Remove packet 29160 [09:17:32]ProducePacketName [09:17:32]name=ofd_packets/00029160 [09:17:32]NVStorageDeleteData [09:17:32]Write to MH i2c: 01 00 00 B8 84 3C [09:17:32]Write i2c OK [09:17:32]MH_I2C_Read... [09:17:32]Read from MH i2c: 01 [09:17:32]MH_I2C_Read... [09:17:32]Read from MH i2c: 01 07 00 [09:17:32]MH_I2C_Read... [09:17:32]Read from MH i2c: 01 07 00 B8 84 00 00 00 00 00 C0 0C 0F [09:17:32]RasterBufferAndPrint [09:17:32]line [09:17:32]line [09:17:32]line [09:17:32]line [09:17:32]line [09:17:32]written 0, free lines is 3268 [09:17:32]MH_Cut [09:17:32]Write to MH i2c: D1 01 00 BF 84 01 15 [09:17:32]Write i2c OK [09:17:32]MH_I2C_Read... [09:17:32]Read from MH i2c: D1 [09:17:32]MH_I2C_Read... [09:17:32]Read from MH i2c: D1 01 00 [09:17:32]MH_I2C_Read... [09:17:32]Read from MH i2c: D1 01 00 BF 84 00 14 [09:17:32]Write to MH i2c: 01 00 00 C0 84 44 [09:17:32]Write i2c OK [09:17:32]MH_I2C_Read... [09:17:33]OFD Sender: No OFD packet to send [09:17:33]*** Cut start [09:17:33]*** Partial cut [09:17:33]*** CUTSNS_PIN = 1 [09:17:33]*** CUTSNS_PIN = 0 [09:17:33]*** Brake cut motor [09:17:34]Read from MH i2c: 01 [09:17:34]MH_I2C_Read... [09:17:34]*** Stop cut motor [09:17:34]*** Cut end [09:17:34]Read from MH i2c: 01 07 00 [09:17:34]MH_I2C_Read... [09:17:34]Read from MH i2c: 01 07 00 C0 84 00 00 00 00 00 FF 0F 59 [09:17:34]process_action close_receipt done [09:17:34]requested_data is exist [09:17:34]produce_requested_data [09:17:34]requested_item fm.sn is exist - process it [09:17:34]wFMCommunicate request_size=4 [09:17:34]MH_SAM_APDU [09:17:34]CAPDU: 80 11 00 00 [09:17:34]Write to MH i2c: E2 08 00 C1 84 80 11 00 00 00 00 00 00 BF [09:17:34]Write i2c OK [09:17:34]MH_I2C_Read... [09:17:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:17:34]Read from MH i2c: E2 [09:17:34]MH_I2C_Read... [09:17:34]Read from MH i2c: E2 17 00 [09:17:34]MH_I2C_Read... [09:17:34]Read from MH i2c: E2 17 00 C1 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 0E [09:17:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:17:34]wFMCommunicate OK [09:17:34]requested_item fd.num is exist - process it [09:17:34]SAM_PROTO_GetFieldsCounters [09:17:34]wFMCommunicate request_size=4 [09:17:34]MH_SAM_APDU [09:17:34]CAPDU: 80 13 00 00 [09:17:34]Write to MH i2c: E2 08 00 C2 84 80 13 00 00 00 00 00 00 C2 [09:17:34]Write i2c OK [09:17:34]MH_I2C_Read... [09:17:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:17:34]Read from MH i2c: E2 [09:17:34]MH_I2C_Read... [09:17:34]Read from MH i2c: E2 62 00 [09:17:34]MH_I2C_Read... [09:17:34]Read from MH i2c: E2 62 00 C2 84 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E8 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 9F [09:17:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E8 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:17:34]wFMCommunicate OK [09:17:34]SAM_PROTO_GetFieldsCounters done [09:17:34]requested_item shift.num is exist - process it [09:17:34]requested_item shift.opened is exist - process it [09:17:34]req_shift_opened [09:17:34]FM_GetShiftState [09:17:34]SAM_PROTO_GetShiftState [09:17:34]wFMCommunicate request_size=4 [09:17:34]MH_SAM_APDU [09:17:34]CAPDU: 80 13 01 00 [09:17:34]Write to MH i2c: E2 08 00 C3 84 80 13 01 00 00 00 00 00 C4 [09:17:34]Write i2c OK [09:17:34]MH_I2C_Read... [09:17:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:17:34]Read from MH i2c: E2 [09:17:34]MH_I2C_Read... [09:17:34]Read from MH i2c: E2 0E 00 [09:17:34]MH_I2C_Read... [09:17:34]Read from MH i2c: E2 0E 00 C3 84 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 70 [09:17:34]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [09:17:34]wFMCommunicate OK [09:17:34]SAM_PROTO_GetShiftState done [09:17:34]FM_GetShiftState done [09:17:34]req_shift_opened done [09:17:34]requested_item shift.open_date is exist - process it [09:17:34]req_shift_open_date [09:17:34]req_shift_open_date done [09:17:34]produce_requested_data done [09:17:34]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29160,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [09:17:34]process_action_free close_receipt [09:17:34]json_value_free [09:17:34]json_value_free done [09:17:34]process_json_proto returns [09:17:34]Send response to host [09:17:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29160,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [09:17:34]free response buf [09:17:34]execute_script done [09:17:34]execute_script returns [09:17:34]free content buf [09:17:34]Sock 9.Close socket [09:17:34]Sock 9.Thread stoped [09:17:38]OFD Sender: No OFD packet to send [09:17:43]OFD Sender: No OFD packet to send [09:17:48]OFD Sender: No OFD packet to send [09:17:53]OFD Sender: No OFD packet to send [09:17:58]OFD Sender: No OFD packet to send [09:18:03]OFD Sender: No OFD packet to send [09:18:08]OFD Sender: No OFD packet to send [09:18:13]OFD Sender: No OFD packet to send [09:18:18]OFD Sender: No OFD packet to send [09:18:23]OFD Sender: No OFD packet to send [09:18:28]OFD Sender: No OFD packet to send [09:18:33]OFD Sender: No OFD packet to send [09:18:38]OFD Sender: No OFD packet to send [09:18:43]OFD Sender: No OFD packet to send [09:18:48]OFD Sender: No OFD packet to send [09:18:53]OFD Sender: No OFD packet to send [09:18:58]OFD Sender: No OFD packet to send [09:19:03]OFD Sender: No OFD packet to send [09:19:08]OFD Sender: No OFD packet to send [09:19:13]OFD Sender: No OFD packet to send [09:19:18]OFD Sender: No OFD packet to send [09:19:23]OFD Sender: No OFD packet to send [09:19:28]OFD Sender: No OFD packet to send [09:19:33]OFD Sender: No OFD packet to send [09:19:38]OFD Sender: No OFD packet to send [09:19:43]OFD Sender: No OFD packet to send [09:19:48]OFD Sender: No OFD packet to send [09:19:53]OFD Sender: No OFD packet to send [09:19:58]OFD Sender: No OFD packet to send [09:20:03]OFD Sender: No OFD packet to send [09:20:08]OFD Sender: No OFD packet to send [09:20:13]OFD Sender: No OFD packet to send [09:20:18]OFD Sender: No OFD packet to send [09:20:23]OFD Sender: No OFD packet to send [09:20:28]OFD Sender: No OFD packet to send [09:20:33]OFD Sender: No OFD packet to send [09:20:38]OFD Sender: No OFD packet to send [09:20:43]OFD Sender: No OFD packet to send [09:20:48]OFD Sender: No OFD packet to send [09:20:53]OFD Sender: No OFD packet to send [09:20:58]OFD Sender: No OFD packet to send [09:21:03]OFD Sender: No OFD packet to send [09:21:08]OFD Sender: No OFD packet to send [09:21:13]OFD Sender: No OFD packet to send [09:21:18]OFD Sender: No OFD packet to send [09:21:23]OFD Sender: No OFD packet to send [09:21:28]OFD Sender: No OFD packet to send [09:21:33]OFD Sender: No OFD packet to send [09:21:38]OFD Sender: No OFD packet to send [09:21:43]OFD Sender: No OFD packet to send [09:21:48]OFD Sender: No OFD packet to send [09:21:53]OFD Sender: No OFD packet to send [09:21:58]OFD Sender: No OFD packet to send [09:22:03]OFD Sender: No OFD packet to send [09:22:08]OFD Sender: No OFD packet to send [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:19]accept exits with 7 [09:24:19]New connection [09:24:19]New thread 3066785124 created [09:24:19]Thread 3066928484 joined [09:24:19]Waiting for new connection... [09:24:19] Sock 7.Parse request [09:24:19]Sock 7.Check first char [09:24:19]Sock 7.First char is OK [09:24:19]request: POST /json_proto HTTP/1.0 [09:24:19]Method: POST [09:24:19]URL: /json_proto [09:24:19]Method is POST - this is cgi request [09:24:19]url: /json_proto [09:24:19]query_string will be loaded in cgi processing [09:24:19]execute_cgi json_proto POST (null) [09:24:19]execute_cgi path=json_proto method=POST [09:24:19]POST find Content-Length [09:24:19]Host: 172.17.33.3:8080 [09:24:19]Content-Length: 812 [09:24:19]Content-Type: application/json [09:24:19] [09:24:19]POST finish read [09:24:19]Found Content-Length = 812 [09:24:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347532", "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 }]} ], "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" ] } } [09:24:19]execute_script... [09:24: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)347532", "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 }]} ], "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" ] } } [09:24:19]POST & json_proto [09:24:19]process_json_proto [09:24:19]json parsed OK: [09:24:19]protocol is kg_v1.0 [09:24:19]action value=close_receipt [09:24:19]process_action close_receipt [09:24:19]cmd_close_receipt [09:24:19]MH_GetDate [09:24:19]Write to MH i2c: F0 00 00 C4 84 37 [09:24:19]Write i2c OK [09:24:19]MH_I2C_Read... [09:24:19]Read from MH i2c: F0 [09:24:19]MH_I2C_Read... [09:24:19]Read from MH i2c: F0 09 00 [09:24:19]MH_I2C_Read... [09:24:19]Read from MH i2c: F0 09 00 C4 84 00 CC A0 1B 66 23 5B 8F 65 9F [09:24:19]GetLastDocTimeStamp 1713086259 [09:24:19]current date 1713086668 [09:24:19]FM_GetShiftState [09:24:19]SAM_PROTO_GetShiftState [09:24:19]wFMCommunicate request_size=4 [09:24:19]MH_SAM_APDU [09:24:19]CAPDU: 80 13 01 00 [09:24:19]Write to MH i2c: E2 08 00 C5 84 80 13 01 00 00 00 00 00 C6 [09:24:19]Write i2c OK [09:24:19]MH_I2C_Read... [09:24:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:24:19]Read from MH i2c: E2 [09:24:19]MH_I2C_Read... [09:24:19]Read from MH i2c: E2 0E 00 [09:24:19]MH_I2C_Read... [09:24:19]Read from MH i2c: E2 0E 00 C5 84 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 72 [09:24:19]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [09:24:19]wFMCommunicate OK [09:24:19]SAM_PROTO_GetShiftState done [09:24:19]FM_GetShiftState done [09:24:19]opened in 1713053951 [09:24:19]opened+sec_in_day 1713140351 [09:24:19]quantity*price = 200013 [09:24:19]sum+1 = 200015 [09:24:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.14 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 0.00 Безнал.: 2000.14 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 71 14.04.2024 09:24 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 29161 ФПД: 90322567988152 1/tax-web-control/client/api/v1/ticket?date=20240414T092428&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29161&fm=90322567988152&tin=02508201610067®Number=0000138879044617&sum=200014 [09:24:20]StoreToDocumentArchive [09:24:20]shift 116 fd 29161 [09:24:20]save to /storage/0116/doc_00029161 [09:24:20]save last doc name /storage/0116/doc_00029161 to /storage/kkm_last_doc_name [09:24:20]save OK [09:24:20]Clear old archive folders... [09:24:20]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:24:20]tlvbuf is 011E32F0 [09:24:20]SAM_PROTO_ClearQueue [09:24:20]wFMCommunicate request_size=4 [09:24:20]MH_SAM_APDU [09:24:20]CAPDU: 80 09 00 00 [09:24:20]Write to MH i2c: E2 08 00 D2 84 80 09 00 00 00 00 00 00 C8 [09:24:20]Write i2c OK [09:24:20]MH_I2C_Read... [09:24:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:24:20]Read from MH i2c: E2 [09:24:20]MH_I2C_Read... [09:24:20]Read from MH i2c: E2 03 00 [09:24:20]MH_I2C_Read... [09:24:20]Read from MH i2c: E2 03 00 D2 84 00 90 00 CA [09:24:20]RAPDU: 90 00 [09:24:20]wFMCommunicate OK [09:24:20]SAM_PROTO_ClearQueue done [09:24:20]KKMCreateOFDPacket [09:24:20]OFDProtocolAddRootSTLVToBuf [09:24:20]FM_MakeSignedData [09:24:20]FM_MakeSignedData [09:24:20]SAM_PROTO_SignData [09:24:20]wFMCommunicate request_size=4 [09:24:20]MH_SAM_APDU [09:24:20]CAPDU: 80 0D 01 02 [09:24:20]Write to MH i2c: E2 08 00 D3 84 80 0D 01 02 00 00 00 00 D0 [09:24:20]Write i2c OK [09:24:20]MH_I2C_Read... [09:24:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:24:20]Read from MH i2c: E2 [09:24:20]MH_I2C_Read... [09:24:20]Read from MH i2c: E2 03 00 [09:24:20]MH_I2C_Read... [09:24:20]Read from MH i2c: E2 03 00 D3 84 00 90 00 CB [09:24:20]RAPDU: 90 00 [09:24:20]wFMCommunicate OK [09:24:20]wFMCommunicate request_size=255 [09:24:20]MH_SAM_APDU [09:24: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 2D 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 47 00 00 00 F4 03 04 00 CC A0 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E9 71 00 00 35 04 06 00 [09:24:20]Write to MH i2c: E2 02 01 D4 84 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 47 00 00 00 F4 03 04 00 CC A0 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E9 71 00 00 35 04 06 00 00 00 AF [09:24:20]Write i2c OK [09:24:20]MH_I2C_Read... [09:24:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:24:20]Read from MH i2c: E2 [09:24:20]MH_I2C_Read... [09:24:20]Read from MH i2c: E2 03 00 [09:24:20]MH_I2C_Read... [09:24:20]Read from MH i2c: E2 03 00 D4 84 00 90 00 CC [09:24:20]RAPDU: 90 00 [09:24:20]wFMCommunicate OK [09:24:20]wFMCommunicate request_size=11 [09:24:20]MH_SAM_APDU [09:24:20]CAPDU: 80 0D 02 02 06 52 25 DC 94 83 B8 [09:24:20]Write to MH i2c: E2 0E 00 D5 84 80 0D 02 02 06 00 52 25 DC 94 83 B8 00 00 01 [09:24:20]Write i2c OK [09:24:20]MH_I2C_Read... [09:24:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:24:20]Read from MH i2c: E2 [09:24:20]MH_I2C_Read... [09:24:20]Read from MH i2c: E2 03 00 [09:24:20]MH_I2C_Read... [09:24:20]Read from MH i2c: E2 03 00 D5 84 00 90 00 CD [09:24:20]RAPDU: 90 00 [09:24:20]wFMCommunicate OK [09:24:20]wFMCommunicate request_size=4 [09:24:20]MH_SAM_APDU [09:24:20]CAPDU: 80 0D 03 02 [09:24:20]Write to MH i2c: E2 08 00 D6 84 80 0D 03 02 00 00 00 00 D5 [09:24:20]Write i2c OK [09:24:20]MH_I2C_Read... [09:24:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:24:20]Read from MH i2c: E2 [09:24:20]MH_I2C_Read... [09:24:20]Read from MH i2c: E2 0B 00 [09:24:20]MH_I2C_Read... [09:24:20]Read from MH i2c: E2 0B 00 D6 84 00 F7 ED BE E2 DF 0B C5 C0 90 00 C9 [09:24:20]RAPDU: F7 ED BE E2 DF 0B C5 C0 90 00 [09:24:20]wFMCommunicate OK [09:24:20]SAM_PROTO_SignData done [09:24:20]FM_MakeSignedData done [09:24:20]CreateOFDProtocolMessage [09:24:20]wFMCommunicate request_size=4 [09:24:20]MH_SAM_APDU [09:24:20]CAPDU: 80 11 00 00 [09:24:20]Write to MH i2c: E2 08 00 D7 84 80 11 00 00 00 00 00 00 D5 [09:24:20]Write i2c OK [09:24:20]MH_I2C_Read... [09:24:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:24:20]Read from MH i2c: E2 [09:24:20]MH_I2C_Read... [09:24:20]Read from MH i2c: E2 17 00 [09:24:20]MH_I2C_Read... [09:24:20]Read from MH i2c: E2 17 00 D7 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 24 [09:24:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:24:20]wFMCommunicate OK [09:24:20]CreateOFDProtocolMessage done [09:24:20]OFDSenderStorePacket 29161 [09:24:20]StoreOFDPacket docnum=29161 [09:24:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 3E 06 08 01 40 7F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 47 00 00 00 F4 03 04 00 CC A0 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E9 71 00 00 35 04 06 00 52 25 DC 94 83 B8 F7 ED BE E2 DF 0B C5 C0 [09:24:20]CheckFolder [09:24:20]dirname=/storage/ofd_packets [09:24:20]CheckFolder done [09:24:20]ProducePacketName [09:24:20]name=ofd_packets/00029161 [09:24:20]NVStorageSaveData ofd_packets/00029161 [09:24:20]File name is /storage/ofd_packets/00029161 [09:24:20]Write 302 bytes [09:24:20]NVStorageSaveData done [09:24:20]OFDSenderStorePacket done [09:24:20]KKMCreateOFDPacket done [09:24:20]NVStorageSaveData kkm_last_timestamp [09:24:20]File name is /storage/kkm_last_timestamp [09:24:20]Write 4 bytes [09:24:20]NVStorageSaveData done [09:24:20]ExternCall_PrintAddStr [09:24:20]wPrintStart [09:24:20]Write to MH i2c: 01 00 00 D8 84 5C [09:24:20]Write i2c OK [09:24:20]MH_I2C_Read... [09:24:20]Read from MH i2c: 01 [09:24:20]MH_I2C_Read... [09:24:20]Read from MH i2c: 01 07 00 [09:24:20]MH_I2C_Read... [09:24:20]Read from MH i2c: 01 07 00 D8 84 00 00 00 00 00 FF 0F 71 [09:24:20]RasterBufferAndPrint [09:24:20]line Счет N : (1)347532 [09:24:20]line ИНН: 02508201610067 [09:24:20]line Контрольно-Кассовый Чек [09:24:20]line ПРОДАЖА [09:24:20]line ТРК (МРК, ГНК) : 31 [09:24:20]line Товар: 2710124130 [09:24:20]line SUPER-92-К-5 [09:24:20]line 30.630 * 65.30 [09:24:20]line = 2000.14 [09:24:20]line НДС 12% НСП 1% [09:24:20]line > о реализуемом товаре [09:24:20]line ИТОГО: 2000.14 [09:24:20]line НСП 1% : 17.70 [09:24:20]line НДС 12% : 212.40 [09:24:20]line Наличными: 0.00 [09:24:20]line Безнал.: 2000.14 [09:24:20]line Место: АЗС № 108 "Партнер Нефть" [09:24:20]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:24:20]line СНО: Общий режим [09:24:20]line Чек 71 14.04.2024 09:24 [09:24:20]line Смена: 116 ФФД: 1.0 [09:24:20]line ЗНМ: 0300000027 [09:24:20]line РНМ: 0000138879044617 [09:24:20]line Версия ККМ: 001 [09:24:20]line Платежная система: Бакай Банк [09:24:20]line ФМ: 0000000000963154 [09:24:20]line ФД: 29161 [09:24:20]line ФПД: 90322567988152 [09:24:21]line 1/tax-web-control/client/api/v1/ticket?date=20240414T092428&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29161&fm=90322567988152&tin=02508201610067®Number=0000138879044617&sum=200014 [09:24:21]OFD Sender: Processing packet 29161 [packets to send 8, broken 7] [09:24:21]ProducePacketName [09:24:21]name=ofd_packets/00029161 [09:24:21]OFD Sender: To server: pG, [09:24:21]CommunicateWithHost lk.salyk.kg:30040 [09:24:21]ConnectInit lk.salyk.kg [09:24:21]written 0, free lines is 4095 [09:24:21]Connected sock=10 [09:24:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 3E 06 08 01 40 7F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 47 00 00 00 F4 03 04 00 CC A0 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E9 71 00 00 35 04 06 00 52 25 DC 94 83 B8 F7 ED BE E2 DF 0B C5 C0 [09:24:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 31 5B 47 00 16 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E9 71 00 00 F4 03 04 00 71 4B 1B 66 B6 04 01 00 00 01 08 26 D4 D4 1C 18 47 [09:24:21]CommunicateWithHost err = 0 [09:24:21]CheckOFDResponse [09:24:21]1017 (14) - 77093643461234 [09:24:21]1041 (16) - 0000000000963154 [09:24:21]1040 (4) - 29161 [09:24:21]1012 (4) - 14.04.2024 03:20 [09:24:21]1206 (1) - 0 [09:24:21]OFD Sender: Remove packet 29161 [09:24:21]ProducePacketName [09:24:21]name=ofd_packets/00029161 [09:24:21]NVStorageDeleteData [09:24:21]Write to MH i2c: 01 00 00 01 85 86 [09:24:21]Write i2c OK [09:24:21]MH_I2C_Read... [09:24:21]Read from MH i2c: 01 [09:24:21]MH_I2C_Read... [09:24:21]Read from MH i2c: 01 07 00 [09:24:21]MH_I2C_Read... [09:24:21]Read from MH i2c: 01 07 00 01 85 00 00 00 00 00 E3 0C 7C [09:24:21]RasterBufferAndPrint [09:24:21]line [09:24:21]line [09:24:21]line [09:24:21]line [09:24:21]line [09:24:21]written 0, free lines is 3305 [09:24:21]MH_Cut [09:24:21]Write to MH i2c: D1 01 00 08 85 01 5F [09:24:21]Write i2c OK [09:24:21]MH_I2C_Read... [09:24:21]Read from MH i2c: D1 [09:24:21]MH_I2C_Read... [09:24:21]Read from MH i2c: D1 01 00 [09:24:21]MH_I2C_Read... [09:24:21]Read from MH i2c: D1 01 00 08 85 00 5E [09:24:21]Write to MH i2c: 01 00 00 09 85 8E [09:24:21]Write i2c OK [09:24:21]MH_I2C_Read... [09:24:22]OFD Sender: No OFD packet to send [09:24:22]*** Cut start [09:24:22]*** Partial cut [09:24:22]*** CUTSNS_PIN = 1 [09:24:22]*** CUTSNS_PIN = 0 [09:24:22]*** Brake cut motor [09:24:23]Read from MH i2c: 01 [09:24:23]MH_I2C_Read... [09:24:23]*** Stop cut motor [09:24:23]*** Cut end [09:24:23]Read from MH i2c: 01 07 00 [09:24:23]MH_I2C_Read... [09:24:23]Read from MH i2c: 01 07 00 09 85 00 00 00 00 00 FF 0F A3 [09:24:23]process_action close_receipt done [09:24:23]requested_data is exist [09:24:23]produce_requested_data [09:24:23]requested_item fm.sn is exist - process it [09:24:23]wFMCommunicate request_size=4 [09:24:23]MH_SAM_APDU [09:24:23]CAPDU: 80 11 00 00 [09:24:23]Write to MH i2c: E2 08 00 0A 85 80 11 00 00 00 00 00 00 09 [09:24:23]Write i2c OK [09:24:23]MH_I2C_Read... [09:24:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:24:23]Read from MH i2c: E2 [09:24:23]MH_I2C_Read... [09:24:23]Read from MH i2c: E2 17 00 [09:24:23]MH_I2C_Read... [09:24:23]Read from MH i2c: E2 17 00 0A 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 58 [09:24:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:24:23]wFMCommunicate OK [09:24:23]requested_item fd.num is exist - process it [09:24:23]SAM_PROTO_GetFieldsCounters [09:24:23]wFMCommunicate request_size=4 [09:24:23]MH_SAM_APDU [09:24:23]CAPDU: 80 13 00 00 [09:24:23]Write to MH i2c: E2 08 00 0B 85 80 13 00 00 00 00 00 00 0C [09:24:23]Write i2c OK [09:24:23]MH_I2C_Read... [09:24:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:24:23]Read from MH i2c: E2 [09:24:23]MH_I2C_Read... [09:24:23]Read from MH i2c: E2 62 00 [09:24:23]MH_I2C_Read... [09:24:23]Read from MH i2c: E2 62 00 0B 85 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E9 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 ED [09:24:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E9 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:24:23]wFMCommunicate OK [09:24:23]SAM_PROTO_GetFieldsCounters done [09:24:23]requested_item shift.num is exist - process it [09:24:23]requested_item shift.opened is exist - process it [09:24:23]req_shift_opened [09:24:23]FM_GetShiftState [09:24:23]SAM_PROTO_GetShiftState [09:24:23]wFMCommunicate request_size=4 [09:24:23]MH_SAM_APDU [09:24:23]CAPDU: 80 13 01 00 [09:24:23]Write to MH i2c: E2 08 00 0C 85 80 13 01 00 00 00 00 00 0E [09:24:23]Write i2c OK [09:24:23]MH_I2C_Read... [09:24:23]Read from MH i2c: E2 [09:24:23]MH_I2C_Read... [09:24:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:24:23]Read from MH i2c: E2 0E 00 [09:24:23]MH_I2C_Read... [09:24:23]Read from MH i2c: E2 0E 00 0C 85 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 BA [09:24:23]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [09:24:23]wFMCommunicate OK [09:24:23]SAM_PROTO_GetShiftState done [09:24:23]FM_GetShiftState done [09:24:23]req_shift_opened done [09:24:23]requested_item shift.open_date is exist - process it [09:24:23]req_shift_open_date [09:24:23]req_shift_open_date done [09:24:23]produce_requested_data done [09:24:23]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29161,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [09:24:23]process_action_free close_receipt [09:24:23]json_value_free [09:24:23]json_value_free done [09:24:23]process_json_proto returns [09:24:23]Send response to host [09:24:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29161,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [09:24:23]free response buf [09:24:23]execute_script done [09:24:23]execute_script returns [09:24:23]free content buf [09:24:23]Sock 7.Close socket [09:24:23]Sock 7.Thread stoped [09:24:27]OFD Sender: No OFD packet to send [09:24:32]OFD Sender: No OFD packet to send [09:24:37]OFD Sender: No OFD packet to send [09:24:42]OFD Sender: No OFD packet to send [09:24:47]OFD Sender: No OFD packet to send [09:24:52]OFD Sender: No OFD packet to send [09:24:57]OFD Sender: No OFD packet to send [09:25:02]OFD Sender: No OFD packet to send [09:25:07]OFD Sender: No OFD packet to send [09:25:12]OFD Sender: No OFD packet to send [09:25:17]OFD Sender: No OFD packet to send [09:25:22]OFD Sender: No OFD packet to send [09:25:27]OFD Sender: No OFD packet to send [09:25:32]OFD Sender: No OFD packet to send [09:25:37]OFD Sender: No OFD packet to send [09:25:42]OFD Sender: No OFD packet to send [09:25:47]OFD Sender: No OFD packet to send [09:25:52]OFD Sender: No OFD packet to send [09:25:57]OFD Sender: No OFD packet to send [09:26:02]OFD Sender: No OFD packet to send [09:26:07]OFD Sender: No OFD packet to send [09:26:12]OFD Sender: No OFD packet to send [09:26:17]OFD Sender: No OFD packet to send [09:26:22]OFD Sender: No OFD packet to send [09:26:27]OFD Sender: No OFD packet to send [09:26:32]OFD Sender: No OFD packet to send [09:26:37]OFD Sender: No OFD packet to send [09:26:42]OFD Sender: No OFD packet to send [09:26:47]OFD Sender: No OFD packet to send [09:26:52]OFD Sender: No OFD packet to send [09:26:57]OFD Sender: No OFD packet to send [09:27:02]OFD Sender: No OFD packet to send [09:27:07]OFD Sender: No OFD packet to send [09:27:12]OFD Sender: No OFD packet to send [09:27:17]OFD Sender: No OFD packet to send [09:27:22]OFD Sender: No OFD packet to send [09:27:27]OFD Sender: No OFD packet to send [09:27:32]OFD Sender: No OFD packet to send [09:27:37]OFD Sender: No OFD packet to send [09:27:42]OFD Sender: No OFD packet to send [09:27:47]OFD Sender: No OFD packet to send [09:27:52]OFD Sender: No OFD packet to send [09:27:57]OFD Sender: No OFD packet to send [09:28:02]OFD Sender: No OFD packet to send [09:28:07]OFD Sender: No OFD packet to send [09:28:12]OFD Sender: No OFD packet to send [09:28:17]OFD Sender: No OFD packet to send [09:28:22]OFD Sender: No OFD packet to send [09:28:27]OFD Sender: No OFD packet to send [09:28:32]OFD Sender: No OFD packet to send [09:28:37]OFD Sender: No OFD packet to send [09:28:42]OFD Sender: No OFD packet to send [09:28:47]OFD Sender: No OFD packet to send [09:28:52]OFD Sender: No OFD packet to send [09:28:57]OFD Sender: No OFD packet to send [09:29:02]OFD Sender: No OFD packet to send [09:29:07]OFD Sender: No OFD packet to send [09:29:12]OFD Sender: No OFD packet to send [09:29:17]OFD Sender: No OFD packet to send [09:29:22]OFD Sender: No OFD packet to send [09:29:27]OFD Sender: No OFD packet to send [09:29:32]OFD Sender: No OFD packet to send [09:29:37]OFD Sender: No OFD packet to send [09:29:42]OFD Sender: No OFD packet to send [09:29:47]OFD Sender: No OFD packet to send [09:29:52]OFD Sender: No OFD packet to send [09:29:57]OFD Sender: No OFD packet to send [09:30:02]OFD Sender: No OFD packet to send [09:30:07]OFD Sender: No OFD packet to send [09:30:12]OFD Sender: No OFD packet to send [09:30:17]OFD Sender: No OFD packet to send [09:30:22]OFD Sender: No OFD packet to send [09:30:25]accept exits with 9 [09:30:25]New connection [09:30:25]New thread 3066928484 created [09:30:25]Thread 3066785124 joined [09:30:25]Waiting for new connection... [09:30:25] Sock 9.Parse request [09:30:25]Sock 9.Check first char [09:30:25]Sock 9.First char is OK [09:30:25]request: POST /json_proto HTTP/1.0 [09:30:25]Method: POST [09:30:25]URL: /json_proto [09:30:25]Method is POST - this is cgi request [09:30:25]url: /json_proto [09:30:25]query_string will be loaded in cgi processing [09:30:25]execute_cgi json_proto POST (null) [09:30:25]execute_cgi path=json_proto method=POST [09:30:25]POST find Content-Length [09:30:25]Host: 172.17.33.3:8080 [09:30:25]Content-Length: 675 [09:30:25]Content-Type: application/json [09:30:25] [09:30:25]POST finish read [09:30:25]Found Content-Length = 675 [09:30:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347533", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 18.380, "sum" : 1200.21, "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" ] } } [09:30:25]execute_script... [09:30: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)347533", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 18.380, "sum" : 1200.21, "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" ] } } [09:30:25]POST & json_proto [09:30:25]process_json_proto [09:30:25]json parsed OK: [09:30:25]protocol is kg_v1.0 [09:30:25]action value=close_receipt [09:30:25]process_action close_receipt [09:30:25]cmd_close_receipt [09:30:25]MH_GetDate [09:30:25]Write to MH i2c: F0 00 00 0D 85 81 [09:30:25]Write i2c OK [09:30:25]MH_I2C_Read... [09:30:25]Read from MH i2c: F0 [09:30:25]MH_I2C_Read... [09:30:25]Read from MH i2c: F0 09 00 [09:30:25]MH_I2C_Read... [09:30:25]Read from MH i2c: F0 09 00 0D 85 00 3A A2 1B 66 23 5B 8F 65 59 [09:30:25]GetLastDocTimeStamp 1713086668 [09:30:25]current date 1713087034 [09:30:25]FM_GetShiftState [09:30:25]SAM_PROTO_GetShiftState [09:30:25]wFMCommunicate request_size=4 [09:30:25]MH_SAM_APDU [09:30:25]CAPDU: 80 13 01 00 [09:30:25]Write to MH i2c: E2 08 00 0E 85 80 13 01 00 00 00 00 00 10 [09:30:25]Write i2c OK [09:30:25]MH_I2C_Read... [09:30:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:30:25]Read from MH i2c: E2 [09:30:25]MH_I2C_Read... [09:30:25]Read from MH i2c: E2 0E 00 [09:30:25]MH_I2C_Read... [09:30:25]Read from MH i2c: E2 0E 00 0E 85 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 BC [09:30:25]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [09:30:25]wFMCommunicate OK [09:30:25]SAM_PROTO_GetShiftState done [09:30:25]FM_GetShiftState done [09:30:25]opened in 1713053951 [09:30:25]opened+sec_in_day 1713140351 [09:30:25]quantity*price = 120021 [09:30:25]sum+1 = 120022 [09:30:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.46 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 72 14.04.2024 09:30 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29162 ФПД: 148099641798512 1/tax-web-control/client/api/v1/ticket?date=20240414T093034&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29162&fm=148099641798512&tin=02508201610067®Number=0000138879044617&sum=120000 [09:30:26]StoreToDocumentArchive [09:30:26]shift 116 fd 29162 [09:30:26]save to /storage/0116/doc_00029162 [09:30:26]save last doc name /storage/0116/doc_00029162 to /storage/kkm_last_doc_name [09:30:26]save OK [09:30:26]Clear old archive folders... [09:30:26]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:30:26]tlvbuf is 011A2360 [09:30:26]SAM_PROTO_ClearQueue [09:30:26]wFMCommunicate request_size=4 [09:30:26]MH_SAM_APDU [09:30:26]CAPDU: 80 09 00 00 [09:30:26]Write to MH i2c: E2 08 00 1B 85 80 09 00 00 00 00 00 00 12 [09:30:26]Write i2c OK [09:30:26]MH_I2C_Read... [09:30:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:30:26]Read from MH i2c: E2 [09:30:26]MH_I2C_Read... [09:30:26]Read from MH i2c: E2 03 00 [09:30:26]MH_I2C_Read... [09:30:26]Read from MH i2c: E2 03 00 1B 85 00 90 00 14 [09:30:26]RAPDU: 90 00 [09:30:26]wFMCommunicate OK [09:30:26]SAM_PROTO_ClearQueue done [09:30:26]KKMCreateOFDPacket [09:30:26]OFDProtocolAddRootSTLVToBuf [09:30:26]FM_MakeSignedData [09:30:26]FM_MakeSignedData [09:30:26]SAM_PROTO_SignData [09:30:26]wFMCommunicate request_size=4 [09:30:26]MH_SAM_APDU [09:30:26]CAPDU: 80 0D 01 02 [09:30:26]Write to MH i2c: E2 08 00 1C 85 80 0D 01 02 00 00 00 00 1A [09:30:26]Write i2c OK [09:30:26]MH_I2C_Read... [09:30:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:30:26]Read from MH i2c: E2 [09:30:26]MH_I2C_Read... [09:30:26]Read from MH i2c: E2 03 00 [09:30:26]MH_I2C_Read... [09:30:26]Read from MH i2c: E2 03 00 1C 85 00 90 00 15 [09:30:26]RAPDU: 90 00 [09:30:26]wFMCommunicate OK [09:30:26]wFMCommunicate request_size=255 [09:30:26]MH_SAM_APDU [09:30: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 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 47 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 D5 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 CA 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 48 00 00 00 F4 03 04 00 3A A2 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EA 71 00 00 35 04 06 00 [09:30:26]Write to MH i2c: E2 02 01 1D 85 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 47 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 D5 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 CA 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 48 00 00 00 F4 03 04 00 3A A2 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EA 71 00 00 35 04 06 00 00 00 06 [09:30:26]Write i2c OK [09:30:26]MH_I2C_Read... [09:30:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:30:26]Read from MH i2c: E2 [09:30:26]MH_I2C_Read... [09:30:26]Read from MH i2c: E2 03 00 [09:30:26]MH_I2C_Read... [09:30:26]Read from MH i2c: E2 03 00 1D 85 00 90 00 16 [09:30:26]RAPDU: 90 00 [09:30:26]wFMCommunicate OK [09:30:26]wFMCommunicate request_size=11 [09:30:26]MH_SAM_APDU [09:30:26]CAPDU: 80 0D 02 02 06 86 B2 22 8A 6F 70 [09:30:26]Write to MH i2c: E2 0E 00 1E 85 80 0D 02 02 06 00 86 B2 22 8A 6F 70 00 00 EC [09:30:26]Write i2c OK [09:30:26]MH_I2C_Read... [09:30:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:30:26]Read from MH i2c: E2 [09:30:26]MH_I2C_Read... [09:30:26]Read from MH i2c: E2 03 00 [09:30:26]MH_I2C_Read... [09:30:26]Read from MH i2c: E2 03 00 1E 85 00 90 00 17 [09:30:26]RAPDU: 90 00 [09:30:26]wFMCommunicate OK [09:30:26]wFMCommunicate request_size=4 [09:30:26]MH_SAM_APDU [09:30:26]CAPDU: 80 0D 03 02 [09:30:26]Write to MH i2c: E2 08 00 1F 85 80 0D 03 02 00 00 00 00 1F [09:30:26]Write i2c OK [09:30:26]MH_I2C_Read... [09:30:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:30:26]Read from MH i2c: E2 [09:30:26]MH_I2C_Read... [09:30:26]Read from MH i2c: E2 0B 00 [09:30:26]MH_I2C_Read... [09:30:26]Read from MH i2c: E2 0B 00 1F 85 00 8D C0 A6 24 A9 71 04 48 90 00 9D [09:30:26]RAPDU: 8D C0 A6 24 A9 71 04 48 90 00 [09:30:26]wFMCommunicate OK [09:30:26]SAM_PROTO_SignData done [09:30:26]FM_MakeSignedData done [09:30:26]CreateOFDProtocolMessage [09:30:26]wFMCommunicate request_size=4 [09:30:26]MH_SAM_APDU [09:30:26]CAPDU: 80 11 00 00 [09:30:26]Write to MH i2c: E2 08 00 20 85 80 11 00 00 00 00 00 00 1F [09:30:26]Write i2c OK [09:30:26]MH_I2C_Read... [09:30:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:30:26]Read from MH i2c: E2 [09:30:26]MH_I2C_Read... [09:30:26]Read from MH i2c: E2 17 00 [09:30:26]MH_I2C_Read... [09:30:26]Read from MH i2c: E2 17 00 20 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 6E [09:30:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:30:26]wFMCommunicate OK [09:30:26]CreateOFDProtocolMessage done [09:30:26]OFDSenderStorePacket 29162 [09:30:26]StoreOFDPacket docnum=29162 [09:30:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 AD D4 08 01 91 38 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 47 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 D5 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 CA 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 48 00 00 00 F4 03 04 00 3A A2 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EA 71 00 00 35 04 06 00 86 B2 22 8A 6F 70 8D C0 A6 24 A9 71 04 48 [09:30:26]CheckFolder [09:30:26]dirname=/storage/ofd_packets [09:30:26]CheckFolder done [09:30:26]ProducePacketName [09:30:26]name=ofd_packets/00029162 [09:30:26]NVStorageSaveData ofd_packets/00029162 [09:30:26]File name is /storage/ofd_packets/00029162 [09:30:26]Write 302 bytes [09:30:26]NVStorageSaveData done [09:30:26]OFDSenderStorePacket done [09:30:26]KKMCreateOFDPacket done [09:30:26]NVStorageSaveData kkm_last_timestamp [09:30:26]File name is /storage/kkm_last_timestamp [09:30:26]Write 4 bytes [09:30:26]NVStorageSaveData done [09:30:26]ExternCall_PrintAddStr [09:30:26]wPrintStart [09:30:26]Write to MH i2c: 01 00 00 21 85 A6 [09:30:26]Write i2c OK [09:30:26]MH_I2C_Read... [09:30:26]Read from MH i2c: 01 [09:30:26]MH_I2C_Read... [09:30:26]Read from MH i2c: 01 07 00 [09:30:26]MH_I2C_Read... [09:30:26]Read from MH i2c: 01 07 00 21 85 00 00 00 00 00 FF 0F BB [09:30:26]RasterBufferAndPrint [09:30:26]line Счет N : (1)347533 [09:30:26]line ИНН: 02508201610067 [09:30:26]line Контрольно-Кассовый Чек [09:30:26]line ПРОДАЖА [09:30:26]line ТРК (МРК, ГНК) : 22 [09:30:26]line Товар: 2710124130 [09:30:26]line SUPER-92-К-5 [09:30:26]line 18.380 * 65.30 [09:30:26]line = 1200.21 [09:30:26]line НДС 12% НСП 1% [09:30:26]line > о реализуемом товаре [09:30:26]line ОКРУГЛЕНИЕ: -0.21 [09:30:26]line ИТОГО: 1200.00 [09:30:26]line Внесено: 1200.00 [09:30:26]line СДАЧА: 0.00 [09:30:26]line НСП 1% : 10.62 [09:30:26]line НДС 12% : 127.46 [09:30:26]line Наличными: 1200.00 [09:30:26]line Безнал.: 0.00 [09:30:26]line Место: АЗС № 108 "Партнер Нефть" [09:30:26]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:30:26]line СНО: Общий режим [09:30:26]line Чек 72 14.04.2024 09:30 [09:30:26]line Смена: 116 ФФД: 1.0 [09:30:26]line ЗНМ: 0300000027 [09:30:26]line РНМ: 0000138879044617 [09:30:26]line Версия ККМ: 001 [09:30:26]line ФМ: 0000000000963154 [09:30:27]line ФД: 29162 [09:30:27]line ФПД: 148099641798512 [09:30:27]line 1/tax-web-control/client/api/v1/ticket?date=20240414T093034&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29162&fm=148099641798512&tin=02508201610067®Number=0000138879044617&sum=120000 [09:30:27]OFD Sender: Processing packet 29162 [packets to send 8, broken 7] [09:30:27]ProducePacketName [09:30:27]name=ofd_packets/00029162 [09:30:27]OFD Sender: To server: pG, [09:30:27]CommunicateWithHost lk.salyk.kg:30040 [09:30:27]ConnectInit lk.salyk.kg [09:30:27]written 0, free lines is 4095 [09:30:27]Connected sock=10 [09:30:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 AD D4 08 01 91 38 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 47 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 D5 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 CA 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 48 00 00 00 F4 03 04 00 3A A2 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EA 71 00 00 35 04 06 00 86 B2 22 8A 6F 70 8D C0 A6 24 A9 71 04 48 [09:30:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 AC 77 47 00 69 93 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EA 71 00 00 F4 03 04 00 DE 4C 1B 66 B6 04 01 00 00 7D A9 84 6A 12 D9 3F A1 [09:30:27]CommunicateWithHost err = 0 [09:30:27]CheckOFDResponse [09:30:27]1017 (14) - 77093643461234 [09:30:27]1041 (16) - 0000000000963154 [09:30:27]1040 (4) - 29162 [09:30:27]1012 (4) - 14.04.2024 03:26 [09:30:27]1206 (1) - 0 [09:30:27]OFD Sender: Remove packet 29162 [09:30:27]ProducePacketName [09:30:27]name=ofd_packets/00029162 [09:30:27]NVStorageDeleteData [09:30:27]Write to MH i2c: 01 00 00 4B 85 D0 [09:30:27]Write i2c OK [09:30:27]MH_I2C_Read... [09:30:27]Read from MH i2c: 01 [09:30:27]MH_I2C_Read... [09:30:27]Read from MH i2c: 01 07 00 [09:30:27]MH_I2C_Read... [09:30:27]Read from MH i2c: 01 07 00 4B 85 00 00 00 00 00 C8 0C AB [09:30:27]RasterBufferAndPrint [09:30:27]line [09:30:27]line [09:30:27]line [09:30:27]line [09:30:27]line [09:30:27]written 0, free lines is 3277 [09:30:27]MH_Cut [09:30:27]Write to MH i2c: D1 01 00 52 85 01 A9 [09:30:27]Write i2c OK [09:30:27]MH_I2C_Read... [09:30:27]Read from MH i2c: D1 [09:30:27]MH_I2C_Read... [09:30:27]Read from MH i2c: D1 01 00 [09:30:27]MH_I2C_Read... [09:30:27]Read from MH i2c: D1 01 00 52 85 00 A8 [09:30:27]Write to MH i2c: 01 00 00 53 85 D8 [09:30:27]Write i2c OK [09:30:27]MH_I2C_Read... [09:30:27]OFD Sender: No OFD packet to send [09:30:28]*** Cut start [09:30:28]*** Partial cut [09:30:28]*** CUTSNS_PIN = 1 [09:30:28]*** CUTSNS_PIN = 0 [09:30:28]*** Brake cut motor [09:30:28]Read from MH i2c: 01 [09:30:28]MH_I2C_Read... [09:30:28]*** Stop cut motor [09:30:28]*** Cut end [09:30:28]Read from MH i2c: 01 07 00 [09:30:28]MH_I2C_Read... [09:30:28]Read from MH i2c: 01 07 00 53 85 00 00 00 00 00 FF 0F ED [09:30:28]process_action close_receipt done [09:30:28]requested_data is exist [09:30:28]produce_requested_data [09:30:28]requested_item fm.sn is exist - process it [09:30:28]wFMCommunicate request_size=4 [09:30:28]MH_SAM_APDU [09:30:28]CAPDU: 80 11 00 00 [09:30:28]Write to MH i2c: E2 08 00 54 85 80 11 00 00 00 00 00 00 53 [09:30:28]Write i2c OK [09:30:28]MH_I2C_Read... [09:30:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:30:29]Read from MH i2c: E2 [09:30:29]MH_I2C_Read... [09:30:29]Read from MH i2c: E2 17 00 [09:30:29]MH_I2C_Read... [09:30:29]Read from MH i2c: E2 17 00 54 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A2 [09:30:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:30:29]wFMCommunicate OK [09:30:29]requested_item fd.num is exist - process it [09:30:29]SAM_PROTO_GetFieldsCounters [09:30:29]wFMCommunicate request_size=4 [09:30:29]MH_SAM_APDU [09:30:29]CAPDU: 80 13 00 00 [09:30:29]Write to MH i2c: E2 08 00 55 85 80 13 00 00 00 00 00 00 56 [09:30:29]Write i2c OK [09:30:29]MH_I2C_Read... [09:30:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:30:29]Read from MH i2c: E2 [09:30:29]MH_I2C_Read... [09:30:29]Read from MH i2c: E2 62 00 [09:30:29]MH_I2C_Read... [09:30:29]Read from MH i2c: E2 62 00 55 85 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 EA 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 3B [09:30:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 EA 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:30:29]wFMCommunicate OK [09:30:29]SAM_PROTO_GetFieldsCounters done [09:30:29]requested_item shift.num is exist - process it [09:30:29]requested_item shift.opened is exist - process it [09:30:29]req_shift_opened [09:30:29]FM_GetShiftState [09:30:29]SAM_PROTO_GetShiftState [09:30:29]wFMCommunicate request_size=4 [09:30:29]MH_SAM_APDU [09:30:29]CAPDU: 80 13 01 00 [09:30:29]Write to MH i2c: E2 08 00 56 85 80 13 01 00 00 00 00 00 58 [09:30:29]Write i2c OK [09:30:29]MH_I2C_Read... [09:30:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:30:29]Read from MH i2c: E2 [09:30:29]MH_I2C_Read... [09:30:29]Read from MH i2c: E2 0E 00 [09:30:29]MH_I2C_Read... [09:30:29]Read from MH i2c: E2 0E 00 56 85 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 04 [09:30:29]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [09:30:29]wFMCommunicate OK [09:30:29]SAM_PROTO_GetShiftState done [09:30:29]FM_GetShiftState done [09:30:29]req_shift_opened done [09:30:29]requested_item shift.open_date is exist - process it [09:30:29]req_shift_open_date [09:30:29]req_shift_open_date done [09:30:29]produce_requested_data done [09:30:29]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29162,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [09:30:29]process_action_free close_receipt [09:30:29]json_value_free [09:30:29]json_value_free done [09:30:29]process_json_proto returns [09:30:29]Send response to host [09:30:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29162,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [09:30:29]free response buf [09:30:29]execute_script done [09:30:29]execute_script returns [09:30:29]free content buf [09:30:29]Sock 9.Close socket [09:30:29]Sock 9.Thread stoped [09:30:32]OFD Sender: No OFD packet to send [09:30:37]OFD Sender: No OFD packet to send [09:30:42]OFD Sender: No OFD packet to send [09:30:47]OFD Sender: No OFD packet to send [09:30:52]OFD Sender: No OFD packet to send [09:30:57]OFD Sender: No OFD packet to send [09:31:02]OFD Sender: No OFD packet to send [09:31:07]OFD Sender: No OFD packet to send [09:31:12]OFD Sender: No OFD packet to send [09:31:17]OFD Sender: No OFD packet to send [09:31:22]OFD Sender: No OFD packet to send [09:31:27]OFD Sender: No OFD packet to send [09:31:32]OFD Sender: No OFD packet to send [09:31:37]OFD Sender: No OFD packet to send [09:31:42]OFD Sender: No OFD packet to send [09:31:47]OFD Sender: No OFD packet to send [09:31:52]OFD Sender: No OFD packet to send [09:31:55]accept exits with 7 [09:31:55]New connection [09:31:55]New thread 3066785124 created [09:31:55]Thread 3066928484 joined [09:31:55]Waiting for new connection... [09:31:55] Sock 7.Parse request [09:31:55]Sock 7.Check first char [09:31:55]Sock 7.First char is OK [09:31:55]request: POST /json_proto HTTP/1.0 [09:31:55]Method: POST [09:31:55]URL: /json_proto [09:31:55]Method is POST - this is cgi request [09:31:55]url: /json_proto [09:31:55]query_string will be loaded in cgi processing [09:31:55]execute_cgi json_proto POST (null) [09:31:55]execute_cgi path=json_proto method=POST [09:31:55]POST find Content-Length [09:31:55]Host: 172.17.33.3:8080 [09:31:55]Content-Length: 1208 [09:31:55]Content-Type: application/json [09:31:55] [09:31:55]POST finish read [09:31:55]Found Content-Length = 1208 [09:31: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 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043B\u0438\u043A\u0431\u0430\u0435\u0432\u0430. \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)347534\u000A14.04.2024 09:13\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 13\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 64.30\u000A\u0418\u0422\u041E\u0413: 1929.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3859259;3859258;3859257\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:31:55]execute_script... [09:31: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 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043B\u0438\u043A\u0431\u0430\u0435\u0432\u0430. \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)347534\u000A14.04.2024 09:13\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 13\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 64.30\u000A\u0418\u0422\u041E\u0413: 1929.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3859259;3859258;3859257\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:31:55]POST & json_proto [09:31:55]process_json_proto [09:31:55]json parsed OK: [09:31:55]protocol is kg_v1.0 [09:31:55]action value=print_text [09:31:55]process_action print_text [09:31:55]cmd_print_text [09:31:55]ExternCall_PrintAddStr [09:31:55]wPrintStart [09:31:55]Write to MH i2c: 01 00 00 57 85 DC [09:31:55]Write i2c OK [09:31:55]MH_I2C_Read... [09:31:55]Read from MH i2c: 01 [09:31:55]MH_I2C_Read... [09:31:55]Read from MH i2c: 01 07 00 [09:31:55]MH_I2C_Read... [09:31:55]Read from MH i2c: 01 07 00 57 85 00 00 00 00 00 FF 0F F1 [09:31:55]RasterBufferAndPrint [09:31:55]line *****ТОВАРНЫЙ ЧЕК***** [09:31:55]line АЗС 108 [09:31:55]line Партнер нефть [09:31:55]line 02508201610067 [09:31:55]line Кассир : Аликбаева. Д. [09:31:55]line Счет N : (1)347534 [09:31:55]line 14.04.2024 09:13 [09:31:55]line ПРОДАЖА [09:31:55]line ТРК (МРК, ГНК): 13 [09:31:55]line Вид ГСМ : 2710124130 [09:31:55]line Аи-92-К-5 [09:31:55]line 30.000 x 64.30 [09:31:55]line ИТОГ: 1929.00 [09:31:55]line Тип оплаты: Талоны: Партнер нефть [09:31:55]line 3859259;3859258;3859257 [09:31:55]line ______________________ [09:31:55]line (подпись) [09:31:55]written 0, free lines is 4095 [09:31:56]Write to MH i2c: 01 00 00 6B 85 F0 [09:31:56]Write i2c OK [09:31:56]MH_I2C_Read... [09:31:56]Read from MH i2c: 01 [09:31:56]MH_I2C_Read... [09:31:56]Read from MH i2c: 01 07 00 [09:31:56]MH_I2C_Read... [09:31:56]Read from MH i2c: 01 07 00 6B 85 00 00 00 00 00 1C 0E 21 [09:31:56]RasterBufferAndPrint [09:31:56]line [09:31:56]line [09:31:56]line [09:31:56]line [09:31:56]line [09:31:56]written 0, free lines is 3614 [09:31:56]MH_Cut [09:31:56]Write to MH i2c: D1 01 00 72 85 01 C9 [09:31:56]Write i2c OK [09:31:56]MH_I2C_Read... [09:31:56]Read from MH i2c: D1 [09:31:56]MH_I2C_Read... [09:31:56]Read from MH i2c: D1 01 00 [09:31:56]MH_I2C_Read... [09:31:56]Read from MH i2c: D1 01 00 72 85 00 C8 [09:31:56]Write to MH i2c: 01 00 00 73 85 F8 [09:31:56]Write i2c OK [09:31:56]MH_I2C_Read... [09:31:56]*** Cut start [09:31:56]*** Partial cut [09:31:56]*** CUTSNS_PIN = 1 [09:31:56]*** CUTSNS_PIN = 0 [09:31:57]*** Brake cut motor [09:31:57]Read from MH i2c: 01 [09:31:57]MH_I2C_Read... [09:31:57]*** Stop cut motor [09:31:57]*** Cut end [09:31:57]Read from MH i2c: 01 07 00 [09:31:57]MH_I2C_Read... [09:31:57]Read from MH i2c: 01 07 00 73 85 00 00 00 00 00 FF 0F 0D [09:31:57]process_action print_text done [09:31:57]requested_data is exist [09:31:57]produce_requested_data [09:31:57]requested_item fm.sn is exist - process it [09:31:57]wFMCommunicate request_size=4 [09:31:57]MH_SAM_APDU [09:31:57]CAPDU: 80 11 00 00 [09:31:57]Write to MH i2c: E2 08 00 74 85 80 11 00 00 00 00 00 00 73 [09:31:57]Write i2c OK [09:31:57]MH_I2C_Read... [09:31:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:31:57]Read from MH i2c: E2 [09:31:57]MH_I2C_Read... [09:31:57]Read from MH i2c: E2 17 00 [09:31:57]MH_I2C_Read... [09:31:57]Read from MH i2c: E2 17 00 74 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C2 [09:31:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:31:57]wFMCommunicate OK [09:31:57]requested_item fd.num is exist - process it [09:31:57]SAM_PROTO_GetFieldsCounters [09:31:57]wFMCommunicate request_size=4 [09:31:57]MH_SAM_APDU [09:31:57]CAPDU: 80 13 00 00 [09:31:57]Write to MH i2c: E2 08 00 75 85 80 13 00 00 00 00 00 00 76 [09:31:57]Write i2c OK [09:31:57]MH_I2C_Read... [09:31:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:31:57]Read from MH i2c: E2 [09:31:57]MH_I2C_Read... [09:31:57]Read from MH i2c: E2 62 00 [09:31:57]MH_I2C_Read... [09:31:57]Read from MH i2c: E2 62 00 75 85 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 EA 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 5B [09:31:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 EA 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:31:57]wFMCommunicate OK [09:31:57]SAM_PROTO_GetFieldsCounters done [09:31:57]requested_item shift.num is exist - process it [09:31:57]requested_item shift.opened is exist - process it [09:31:57]req_shift_opened [09:31:57]FM_GetShiftState [09:31:57]SAM_PROTO_GetShiftState [09:31:57]wFMCommunicate request_size=4 [09:31:57]MH_SAM_APDU [09:31:57]CAPDU: 80 13 01 00 [09:31:57]Write to MH i2c: E2 08 00 76 85 80 13 01 00 00 00 00 00 78 [09:31:57]Write i2c OK [09:31:57]MH_I2C_Read... [09:31:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:31:57]Read from MH i2c: E2 [09:31:57]MH_I2C_Read... [09:31:57]Read from MH i2c: E2 0E 00 [09:31:57]MH_I2C_Read... [09:31:57]Read from MH i2c: E2 0E 00 76 85 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 24 [09:31:57]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [09:31:57]wFMCommunicate OK [09:31:57]SAM_PROTO_GetShiftState done [09:31:57]FM_GetShiftState done [09:31:57]req_shift_opened done [09:31:57]requested_item shift.open_date is exist - process it [09:31:57]req_shift_open_date [09:31:57]req_shift_open_date done [09:31:57]produce_requested_data done [09:31:57]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29162,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [09:31:57]process_action_free print_text [09:31:57]json_value_free [09:31:57]json_value_free done [09:31:57]process_json_proto returns [09:31:57]Send response to host [09:31:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29162,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [09:31:57]free response buf [09:31:57]execute_script done [09:31:57]execute_script returns [09:31:57]free content buf [09:31:57]Sock 7.Close socket [09:31:57]Sock 7.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:13]OFD Sender: No OFD packet to send [09:33:18]OFD Sender: No OFD packet to send [09:33:23]OFD Sender: No OFD packet to send [09:33:28]OFD Sender: No OFD packet to send [09:33:33]OFD Sender: No OFD packet to send [09:33:38]OFD Sender: No OFD packet to send [09:33:43]OFD Sender: No OFD packet to send [09:33:48]OFD Sender: No OFD packet to send [09:33:53]OFD Sender: No OFD packet to send [09:33:58]OFD Sender: No OFD packet to send [09:34:03]OFD Sender: No OFD packet to send [09:34:08]OFD Sender: No OFD packet to send [09:34:13]OFD Sender: No OFD packet to send [09:34:18]OFD Sender: No OFD packet to send [09:34:23]OFD Sender: No OFD packet to send [09:34:28]OFD Sender: No OFD packet to send [09:34:33]OFD Sender: No OFD packet to send [09:34:38]OFD Sender: No OFD packet to send [09:34:43]OFD Sender: No OFD packet to send [09:34:48]OFD Sender: No OFD packet to send [09:34:53]OFD Sender: No OFD packet to send [09:34:58]OFD Sender: No OFD packet to send [09:35:03]OFD Sender: No OFD packet to send [09:35:08]OFD Sender: No OFD packet to send [09:35:13]OFD Sender: No OFD packet to send [09:35:18]OFD Sender: No OFD packet to send [09:35:23]OFD Sender: No OFD packet to send [09:35:28]OFD Sender: No OFD packet to send [09:35:33]OFD Sender: No OFD packet to send [09:35:38]OFD Sender: No OFD packet to send [09:35:43]OFD Sender: No OFD packet to send [09:35:48]OFD Sender: No OFD packet to send [09:35:53]OFD Sender: No OFD packet to send [09:35:58]OFD Sender: No OFD packet to send [09:36:03]OFD Sender: No OFD packet to send [09:36:08]OFD Sender: No OFD packet to send [09:36:13]OFD Sender: No OFD packet to send [09:36:18]OFD Sender: No OFD packet to send [09:36:23]OFD Sender: No OFD packet to send [09:36:28]OFD Sender: No OFD packet to send [09:36:33]OFD Sender: No OFD packet to send [09:36:38]OFD Sender: No OFD packet to send [09:36:43]OFD Sender: No OFD packet to send [09:36:48]OFD Sender: No OFD packet to send [09:36:53]OFD Sender: No OFD packet to send [09:36:58]OFD Sender: No OFD packet to send [09:37:03]OFD Sender: No OFD packet to send [09:37:08]OFD Sender: No OFD packet to send [09:37:13]OFD Sender: No OFD packet to send [09:37:18]OFD Sender: No OFD packet to send [09:37:23]OFD Sender: No OFD packet to send [09:37:28]OFD Sender: No OFD packet to send [09:37:33]OFD Sender: No OFD packet to send [09:37:38]OFD Sender: No OFD packet to send [09:37:43]OFD Sender: No OFD packet to send [09:37:48]OFD Sender: No OFD packet to send [09:37:53]OFD Sender: No OFD packet to send [09:37:58]OFD Sender: No OFD packet to send [09:38:03]OFD Sender: No OFD packet to send [09:38:08]OFD Sender: No OFD packet to send [09:38:13]OFD Sender: No OFD packet to send [09:38:18]OFD Sender: No OFD packet to send [09:38:23]OFD Sender: No OFD packet to send [09:38:28]OFD Sender: No OFD packet to send [09:38:33]OFD Sender: No OFD packet to send [09:38:38]OFD Sender: No OFD packet to send [09:38:43]OFD Sender: No OFD packet to send [09:41:08]OFD Sender: No OFD packet to send [09:41:13]OFD Sender: No OFD packet to send [09:41:18]OFD Sender: No OFD packet to send [09:41:23]OFD Sender: No OFD packet to send [09:41:28]OFD Sender: No OFD packet to send [09:41:33]OFD Sender: No OFD packet to send [09:41:38]OFD Sender: No OFD packet to send [09:41:43]OFD Sender: No OFD packet to send [09:41:48]OFD Sender: No OFD packet to send [09:41:53]OFD Sender: No OFD packet to send [09:41:58]OFD Sender: No OFD packet to send [09:42:03]OFD Sender: No OFD packet to send [09:42:08]OFD Sender: No OFD packet to send [09:42:13]OFD Sender: No OFD packet to send [09:42:18]OFD Sender: No OFD packet to send [09:42:23]OFD Sender: No OFD packet to send [09:42:28]OFD Sender: No OFD packet to send [09:42:33]OFD Sender: No OFD packet to send [09:42:38]OFD Sender: No OFD packet to send [09:42:43]OFD Sender: No OFD packet to send [09:42:48]OFD Sender: No OFD packet to send [09:42:53]OFD Sender: No OFD packet to send [09:42:58]OFD Sender: No OFD packet to send [09:43:03]OFD Sender: No OFD packet to send [09:43:08]OFD Sender: No OFD packet to send [09:43:13]OFD Sender: No OFD packet to send [09:43:18]OFD Sender: No OFD packet to send [09:43:18]ConnectInit Can't connect to host [09:43:23]OFD Sender: No OFD packet to send [09:43:28]OFD Sender: No OFD packet to send [09:43:33]OFD Sender: No OFD packet to send [09:43:38]OFD Sender: No OFD packet to send [09:43:43]OFD Sender: No OFD packet to send [09:43:48]OFD Sender: No OFD packet to send [09:43:53]OFD Sender: No OFD packet to send [09:43:58]OFD Sender: No OFD packet to send [09:44:03]OFD Sender: No OFD packet to send [09:44:08]OFD Sender: No OFD packet to send [09:44:13]OFD Sender: No OFD packet to send [09:44:18]OFD Sender: No OFD packet to send [09:44:23]OFD Sender: No OFD packet to send [09:44:27]accept exits with 9 [09:44:27]New connection [09:44:27]New thread 3066928484 created [09:44:27]Thread 3066785124 joined [09:44:27]Waiting for new connection... [09:44:27] Sock 9.Parse request [09:44:27]Sock 9.Check first char [09:44:27]Sock 9.First char is OK [09:44:27]request: POST /json_proto HTTP/1.0 [09:44:27]Method: POST [09:44:27]URL: /json_proto [09:44:27]Method is POST - this is cgi request [09:44:27]url: /json_proto [09:44:27]query_string will be loaded in cgi processing [09:44:27]execute_cgi json_proto POST (null) [09:44:27]execute_cgi path=json_proto method=POST [09:44:27]POST find Content-Length [09:44:27]Host: 172.17.33.3:8080 [09:44:27]Content-Length: 674 [09:44:27]Content-Type: application/json [09:44:27] [09:44:27]POST finish read [09:44:27]Found Content-Length = 674 [09:44:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347535", "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" ] } } [09:44:27]execute_script... [09:44: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)347535", "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" ] } } [09:44:27]POST & json_proto [09:44:27]process_json_proto [09:44:27]json parsed OK: [09:44:27]protocol is kg_v1.0 [09:44:27]action value=close_receipt [09:44:27]process_action close_receipt [09:44:27]cmd_close_receipt [09:44:27]MH_GetDate [09:44:27]Write to MH i2c: F0 00 00 77 85 EB [09:44:27]Write i2c OK [09:44:27]MH_I2C_Read... [09:44:27]Read from MH i2c: F0 [09:44:27]MH_I2C_Read... [09:44:27]Read from MH i2c: F0 09 00 [09:44:27]MH_I2C_Read... [09:44:27]Read from MH i2c: F0 09 00 77 85 00 84 A5 1B 66 23 5B 8F 65 10 [09:44:27]GetLastDocTimeStamp 1713087034 [09:44:27]current date 1713087876 [09:44:27]FM_GetShiftState [09:44:27]SAM_PROTO_GetShiftState [09:44:27]wFMCommunicate request_size=4 [09:44:27]MH_SAM_APDU [09:44:27]CAPDU: 80 13 01 00 [09:44:27]Write to MH i2c: E2 08 00 78 85 80 13 01 00 00 00 00 00 7A [09:44:27]Write i2c OK [09:44:27]MH_I2C_Read... [09:44:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:27]Read from MH i2c: E2 [09:44:27]MH_I2C_Read... [09:44:27]Read from MH i2c: E2 0E 00 [09:44:27]MH_I2C_Read... [09:44:27]Read from MH i2c: E2 0E 00 78 85 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 26 [09:44:27]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [09:44:27]wFMCommunicate OK [09:44:27]SAM_PROTO_GetShiftState done [09:44:27]FM_GetShiftState done [09:44:27]opened in 1713053951 [09:44:27]opened+sec_in_day 1713140351 [09:44:27]quantity*price = 60019 [09:44:27]sum+1 = 60021 [09:44:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 73 14.04.2024 09:44 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29163 ФПД: 101966114811378 1/tax-web-control/client/api/v1/ticket?date=20240414T094436&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29163&fm=101966114811378&tin=02508201610067®Number=0000138879044617&sum=60000 [09:44:28]StoreToDocumentArchive [09:44:28]shift 116 fd 29163 [09:44:28]save to /storage/0116/doc_00029163 [09:44:28]save last doc name /storage/0116/doc_00029163 to /storage/kkm_last_doc_name [09:44:28]save OK [09:44:28]Clear old archive folders... [09:44:28]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:44:28]tlvbuf is 012F38E0 [09:44:28]SAM_PROTO_ClearQueue [09:44:28]wFMCommunicate request_size=4 [09:44:28]MH_SAM_APDU [09:44:28]CAPDU: 80 09 00 00 [09:44:28]Write to MH i2c: E2 08 00 85 85 80 09 00 00 00 00 00 00 7C [09:44:28]Write i2c OK [09:44:28]MH_I2C_Read... [09:44:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:44:28]Read from MH i2c: E2 [09:44:28]MH_I2C_Read... [09:44:28]Read from MH i2c: E2 03 00 [09:44:28]MH_I2C_Read... [09:44:28]Read from MH i2c: E2 03 00 85 85 00 90 00 7E [09:44:28]RAPDU: 90 00 [09:44:28]wFMCommunicate OK [09:44:28]SAM_PROTO_ClearQueue done [09:44:28]KKMCreateOFDPacket [09:44:28]OFDProtocolAddRootSTLVToBuf [09:44:28]FM_MakeSignedData [09:44:28]FM_MakeSignedData [09:44:28]SAM_PROTO_SignData [09:44:28]wFMCommunicate request_size=4 [09:44:28]MH_SAM_APDU [09:44:28]CAPDU: 80 0D 01 02 [09:44:28]Write to MH i2c: E2 08 00 86 85 80 0D 01 02 00 00 00 00 84 [09:44:28]Write i2c OK [09:44:28]MH_I2C_Read... [09:44:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:44:28]Read from MH i2c: E2 [09:44:28]MH_I2C_Read... [09:44:28]Read from MH i2c: E2 03 00 [09:44:28]MH_I2C_Read... [09:44:28]Read from MH i2c: E2 03 00 86 85 00 90 00 7F [09:44:28]RAPDU: 90 00 [09:44:28]wFMCommunicate OK [09:44:28]wFMCommunicate request_size=255 [09:44:28]MH_SAM_APDU [09:44: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 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 49 00 00 00 F4 03 04 00 84 A5 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EB 71 00 00 35 04 06 00 5C BC D6 0D [09:44:28]Write to MH i2c: E2 02 01 87 85 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 49 00 00 00 F4 03 04 00 84 A5 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EB 71 00 00 35 04 06 00 5C BC D6 0D 00 00 A7 [09:44:28]Write i2c OK [09:44:28]MH_I2C_Read... [09:44:28]OFD Sender: No OFD packet to send [09:44:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:28]Read from MH i2c: E2 [09:44:28]MH_I2C_Read... [09:44:28]Read from MH i2c: E2 03 00 [09:44:28]MH_I2C_Read... [09:44:28]Read from MH i2c: E2 03 00 87 85 00 90 00 80 [09:44:28]RAPDU: 90 00 [09:44:28]wFMCommunicate OK [09:44:28]wFMCommunicate request_size=7 [09:44:28]MH_SAM_APDU [09:44:28]CAPDU: 80 0D 02 02 02 6D F2 [09:44:28]Write to MH i2c: E2 0A 00 88 85 80 0D 02 02 02 00 6D F2 00 00 EA [09:44:28]Write i2c OK [09:44:28]MH_I2C_Read... [09:44:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:28]Read from MH i2c: E2 [09:44:28]MH_I2C_Read... [09:44:28]Read from MH i2c: E2 03 00 [09:44:28]MH_I2C_Read... [09:44:28]Read from MH i2c: E2 03 00 88 85 00 90 00 81 [09:44:28]RAPDU: 90 00 [09:44:28]wFMCommunicate OK [09:44:28]wFMCommunicate request_size=4 [09:44:28]MH_SAM_APDU [09:44:28]CAPDU: 80 0D 03 02 [09:44:28]Write to MH i2c: E2 08 00 89 85 80 0D 03 02 00 00 00 00 89 [09:44:28]Write i2c OK [09:44:28]MH_I2C_Read... [09:44:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:44:28]Read from MH i2c: E2 [09:44:28]MH_I2C_Read... [09:44:28]Read from MH i2c: E2 0B 00 [09:44:28]MH_I2C_Read... [09:44:28]Read from MH i2c: E2 0B 00 89 85 00 7A 81 13 4A BE FF 68 D5 90 00 DC [09:44:28]RAPDU: 7A 81 13 4A BE FF 68 D5 90 00 [09:44:28]wFMCommunicate OK [09:44:28]SAM_PROTO_SignData done [09:44:28]FM_MakeSignedData done [09:44:28]CreateOFDProtocolMessage [09:44:28]wFMCommunicate request_size=4 [09:44:28]MH_SAM_APDU [09:44:28]CAPDU: 80 11 00 00 [09:44:28]Write to MH i2c: E2 08 00 8A 85 80 11 00 00 00 00 00 00 89 [09:44:28]Write i2c OK [09:44:28]MH_I2C_Read... [09:44:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:28]Read from MH i2c: E2 [09:44:28]MH_I2C_Read... [09:44:28]Read from MH i2c: E2 17 00 [09:44:28]MH_I2C_Read... [09:44:28]Read from MH i2c: E2 17 00 8A 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D8 [09:44:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:44:28]wFMCommunicate OK [09:44:28]CreateOFDProtocolMessage done [09:44:28]OFDSenderStorePacket 29163 [09:44:28]StoreOFDPacket docnum=29163 [09:44:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 A3 2B 04 01 3D A2 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 49 00 00 00 F4 03 04 00 84 A5 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EB 71 00 00 35 04 06 00 5C BC D6 0D 6D F2 7A 81 13 4A BE FF 68 D5 [09:44:28]CheckFolder [09:44:28]dirname=/storage/ofd_packets [09:44:28]CheckFolder done [09:44:28]ProducePacketName [09:44:28]name=ofd_packets/00029163 [09:44:28]NVStorageSaveData ofd_packets/00029163 [09:44:28]File name is /storage/ofd_packets/00029163 [09:44:28]Write 298 bytes [09:44:28]NVStorageSaveData done [09:44:28]OFDSenderStorePacket done [09:44:28]KKMCreateOFDPacket done [09:44:28]NVStorageSaveData kkm_last_timestamp [09:44:28]File name is /storage/kkm_last_timestamp [09:44:28]Write 4 bytes [09:44:28]NVStorageSaveData done [09:44:28]ExternCall_PrintAddStr [09:44:28]wPrintStart [09:44:28]Write to MH i2c: 01 00 00 8B 85 10 [09:44:28]Write i2c OK [09:44:28]MH_I2C_Read... [09:44:28]Read from MH i2c: 01 [09:44:28]MH_I2C_Read... [09:44:28]Read from MH i2c: 01 07 00 [09:44:28]MH_I2C_Read... [09:44:28]Read from MH i2c: 01 07 00 8B 85 00 00 00 00 00 FF 0F 25 [09:44:28]RasterBufferAndPrint [09:44:28]line Счет N : (1)347535 [09:44:28]line ИНН: 02508201610067 [09:44:28]line Контрольно-Кассовый Чек [09:44:28]line ПРОДАЖА [09:44:28]line ТРК (МРК, ГНК) : 61 [09:44:28]line Товар: 2710194210 [09:44:28]line ДТ-К-5 [09:44:28]line 8.290 * 72.40 [09:44:28]line = 600.20 [09:44:28]line НДС 12% НСП 1% [09:44:28]line > о реализуемом товаре [09:44:28]line ОКРУГЛЕНИЕ: -0.20 [09:44:28]line ИТОГО: 600.00 [09:44:28]line Внесено: 600.00 [09:44:28]line СДАЧА: 0.00 [09:44:28]line НСП 1% : 5.31 [09:44:28]line НДС 12% : 63.74 [09:44:28]line Наличными: 600.00 [09:44:28]line Безнал.: 0.00 [09:44:28]line Место: АЗС № 108 "Партнер Нефть" [09:44:28]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:44:28]line СНО: Общий режим [09:44:28]line Чек 73 14.04.2024 09:44 [09:44:28]line Смена: 116 ФФД: 1.0 [09:44:28]line ЗНМ: 0300000027 [09:44:28]line РНМ: 0000138879044617 [09:44:28]line Версия ККМ: 001 [09:44:28]line ФМ: 0000000000963154 [09:44:28]line ФД: 29163 [09:44:28]line ФПД: 101966114811378 [09:44:29]line 1/tax-web-control/client/api/v1/ticket?date=20240414T094436&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29163&fm=101966114811378&tin=02508201610067®Number=0000138879044617&sum=60000 [09:44:29]OFD Sender: Processing packet 29163 [packets to send 8, broken 7] [09:44:29]ProducePacketName [09:44:29]name=ofd_packets/00029163 [09:44:29]OFD Sender: To server: pG, [09:44:29]CommunicateWithHost lk.salyk.kg:30040 [09:44:29]ConnectInit lk.salyk.kg [09:44:29]written 0, free lines is 4095 [09:44:29]Connected sock=7 [09:44:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 A3 2B 04 01 3D A2 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 49 00 00 00 F4 03 04 00 84 A5 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EB 71 00 00 35 04 06 00 5C BC D6 0D 6D F2 7A 81 13 4A BE FF 68 D5 [09:44:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 83 C8 47 00 75 E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EB 71 00 00 F4 03 04 00 28 50 1B 66 B6 04 01 00 00 F5 5F 54 BF FA 56 CA 6A [09:44:29]CommunicateWithHost err = 0 [09:44:29]CheckOFDResponse [09:44:29]1017 (14) - 77093643461234 [09:44:29]1041 (16) - 0000000000963154 [09:44:29]1040 (4) - 29163 [09:44:29]1012 (4) - 14.04.2024 03:40 [09:44:29]1206 (1) - 0 [09:44:29]OFD Sender: Remove packet 29163 [09:44:29]ProducePacketName [09:44:29]name=ofd_packets/00029163 [09:44:29]NVStorageDeleteData [09:44:29]Write to MH i2c: 01 00 00 B5 85 3A [09:44:29]Write i2c OK [09:44:29]MH_I2C_Read... [09:44:29]Read from MH i2c: 01 [09:44:29]MH_I2C_Read... [09:44:29]Read from MH i2c: 01 07 00 [09:44:29]MH_I2C_Read... [09:44:29]Read from MH i2c: 01 07 00 B5 85 00 00 00 00 00 BC 0C 09 [09:44:29]RasterBufferAndPrint [09:44:29]line [09:44:29]line [09:44:29]line [09:44:29]line [09:44:29]line [09:44:29]written 0, free lines is 3266 [09:44:29]MH_Cut [09:44:29]Write to MH i2c: D1 01 00 BC 85 01 13 [09:44:29]Write i2c OK [09:44:29]MH_I2C_Read... [09:44:29]Read from MH i2c: D1 [09:44:29]MH_I2C_Read... [09:44:29]Read from MH i2c: D1 01 00 [09:44:29]MH_I2C_Read... [09:44:29]Read from MH i2c: D1 01 00 BC 85 00 12 [09:44:29]Write to MH i2c: 01 00 00 BD 85 42 [09:44:29]Write i2c OK [09:44:29]MH_I2C_Read... [09:44:29]OFD Sender: No OFD packet to send [09:44:30]*** Cut start [09:44:30]*** Partial cut [09:44:30]*** CUTSNS_PIN = 1 [09:44:30]*** CUTSNS_PIN = 0 [09:44:30]*** Brake cut motor [09:44:30]Read from MH i2c: 01 [09:44:30]MH_I2C_Read... [09:44:30]*** Stop cut motor [09:44:30]*** Cut end [09:44:30]Read from MH i2c: 01 07 00 [09:44:30]MH_I2C_Read... [09:44:30]Read from MH i2c: 01 07 00 BD 85 00 00 00 00 00 FF 0F 57 [09:44:30]process_action close_receipt done [09:44:30]requested_data is exist [09:44:30]produce_requested_data [09:44:30]requested_item fm.sn is exist - process it [09:44:30]wFMCommunicate request_size=4 [09:44:30]MH_SAM_APDU [09:44:30]CAPDU: 80 11 00 00 [09:44:30]Write to MH i2c: E2 08 00 BE 85 80 11 00 00 00 00 00 00 BD [09:44:30]Write i2c OK [09:44:30]MH_I2C_Read... [09:44:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:31]Read from MH i2c: E2 [09:44:31]MH_I2C_Read... [09:44:31]Read from MH i2c: E2 17 00 [09:44:31]MH_I2C_Read... [09:44:31]Read from MH i2c: E2 17 00 BE 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 0C [09:44:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:44:31]wFMCommunicate OK [09:44:31]requested_item fd.num is exist - process it [09:44:31]SAM_PROTO_GetFieldsCounters [09:44:31]wFMCommunicate request_size=4 [09:44:31]MH_SAM_APDU [09:44:31]CAPDU: 80 13 00 00 [09:44:31]Write to MH i2c: E2 08 00 BF 85 80 13 00 00 00 00 00 00 C0 [09:44:31]Write i2c OK [09:44:31]MH_I2C_Read... [09:44:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:44:31]Read from MH i2c: E2 [09:44:31]MH_I2C_Read... [09:44:31]Read from MH i2c: E2 62 00 [09:44:31]MH_I2C_Read... [09:44:31]Read from MH i2c: E2 62 00 BF 85 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 EB 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 A9 [09:44:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 EB 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:44:31]wFMCommunicate OK [09:44:31]SAM_PROTO_GetFieldsCounters done [09:44:31]requested_item shift.num is exist - process it [09:44:31]requested_item shift.opened is exist - process it [09:44:31]req_shift_opened [09:44:31]FM_GetShiftState [09:44:31]SAM_PROTO_GetShiftState [09:44:31]wFMCommunicate request_size=4 [09:44:31]MH_SAM_APDU [09:44:31]CAPDU: 80 13 01 00 [09:44:31]Write to MH i2c: E2 08 00 C0 85 80 13 01 00 00 00 00 00 C2 [09:44:31]Write i2c OK [09:44:31]MH_I2C_Read... [09:44:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:31]Read from MH i2c: E2 [09:44:31]MH_I2C_Read... [09:44:31]Read from MH i2c: E2 0E 00 [09:44:31]MH_I2C_Read... [09:44:31]Read from MH i2c: E2 0E 00 C0 85 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 6E [09:44:31]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [09:44:31]wFMCommunicate OK [09:44:31]SAM_PROTO_GetShiftState done [09:44:31]FM_GetShiftState done [09:44:31]req_shift_opened done [09:44:31]requested_item shift.open_date is exist - process it [09:44:31]req_shift_open_date [09:44:31]req_shift_open_date done [09:44:31]produce_requested_data done [09:44:31]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29163,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [09:44:31]process_action_free close_receipt [09:44:31]json_value_free [09:44:31]json_value_free done [09:44:31]process_json_proto returns [09:44:31]Send response to host [09:44:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29163,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [09:44:31]free response buf [09:44:31]execute_script done [09:44:31]execute_script returns [09:44:31]free content buf [09:44:31]Sock 9.Close socket [09:44:31]Sock 9.Thread stoped [09:44:34]OFD Sender: No OFD packet to send [09:44:39]OFD Sender: No OFD packet to send [09:44:44]OFD Sender: No OFD packet to send [09:44:49]OFD Sender: No OFD packet to send [09:44:54]OFD Sender: No OFD packet to send [09:44:59]OFD Sender: No OFD packet to send [09:45:04]OFD Sender: No OFD packet to send [09:45:09]OFD Sender: No OFD packet to send [09:45:14]OFD Sender: No OFD packet to send [09:45:19]OFD Sender: No OFD packet to send [09:45:24]OFD Sender: No OFD packet to send [09:45:25]accept exits with 10 [09:45:25]New connection [09:45:25]New thread 3066785124 created [09:45:25]Thread 3066928484 joined [09:45:25]Waiting for new connection... [09:45:25] Sock 10.Parse request [09:45:25]Sock 10.Check first char [09:45:25]Sock 10.First char is OK [09:45:25]request: POST /json_proto HTTP/1.0 [09:45:25]Method: POST [09:45:25]URL: /json_proto [09:45:25]Method is POST - this is cgi request [09:45:25]url: /json_proto [09:45:25]query_string will be loaded in cgi processing [09:45:25]execute_cgi json_proto POST (null) [09:45:25]execute_cgi path=json_proto method=POST [09:45:25]POST find Content-Length [09:45:25]Host: 172.17.33.3:8080 [09:45:25]Content-Length: 817 [09:45:25]Content-Type: application/json [09:45:25] [09:45:25]POST finish read [09:45:25]Found Content-Length = 817 [09:45:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347536", "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 }]} ], "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" ] } } [09:45:25]execute_script... [09:45: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)347536", "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 }]} ], "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" ] } } [09:45:25]POST & json_proto [09:45:25]process_json_proto [09:45:25]json parsed OK: [09:45:25]protocol is kg_v1.0 [09:45:25]action value=close_receipt [09:45:25]process_action close_receipt [09:45:25]cmd_close_receipt [09:45:25]MH_GetDate [09:45:25]Write to MH i2c: F0 00 00 C1 85 35 [09:45:25]Write i2c OK [09:45:25]MH_I2C_Read... [09:45:25]Read from MH i2c: F0 [09:45:25]MH_I2C_Read... [09:45:25]Read from MH i2c: F0 09 00 [09:45:25]MH_I2C_Read... [09:45:25]Read from MH i2c: F0 09 00 C1 85 00 BE A5 1B 66 23 5B 8F 65 94 [09:45:25]GetLastDocTimeStamp 1713087876 [09:45:25]current date 1713087934 [09:45:25]FM_GetShiftState [09:45:25]SAM_PROTO_GetShiftState [09:45:25]wFMCommunicate request_size=4 [09:45:25]MH_SAM_APDU [09:45:25]CAPDU: 80 13 01 00 [09:45:25]Write to MH i2c: E2 08 00 C2 85 80 13 01 00 00 00 00 00 C4 [09:45:25]Write i2c OK [09:45:25]MH_I2C_Read... [09:45:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:45:25]Read from MH i2c: E2 [09:45:25]MH_I2C_Read... [09:45:25]Read from MH i2c: E2 0E 00 [09:45:25]MH_I2C_Read... [09:45:25]Read from MH i2c: E2 0E 00 C2 85 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 70 [09:45:25]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [09:45:25]wFMCommunicate OK [09:45:25]SAM_PROTO_GetShiftState done [09:45:25]FM_GetShiftState done [09:45:25]opened in 1713053951 [09:45:25]opened+sec_in_day 1713140351 [09:45:25]quantity*price = 70022 [09:45:25]sum+1 = 70024 [09:45:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.23 НСП 1% : 6.20 НДС 12% : 74.36 Наличными: 0.00 Безнал.: 700.23 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 74 14.04.2024 09:45 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 29164 ФПД: 28971663750398 1/tax-web-control/client/api/v1/ticket?date=20240414T094534&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29164&fm=28971663750398&tin=02508201610067®Number=0000138879044617&sum=70023 [09:45:26]StoreToDocumentArchive [09:45:26]shift 116 fd 29164 [09:45:26]save to /storage/0116/doc_00029164 [09:45:26]save last doc name /storage/0116/doc_00029164 to /storage/kkm_last_doc_name [09:45:26]save OK [09:45:26]Clear old archive folders... [09:45:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:45:26]tlvbuf is 011ECAB0 [09:45:26]SAM_PROTO_ClearQueue [09:45:26]wFMCommunicate request_size=4 [09:45:26]MH_SAM_APDU [09:45:26]CAPDU: 80 09 00 00 [09:45:26]Write to MH i2c: E2 08 00 CF 85 80 09 00 00 00 00 00 00 C6 [09:45:26]Write i2c OK [09:45:26]MH_I2C_Read... [09:45:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:45:26]Read from MH i2c: E2 [09:45:26]MH_I2C_Read... [09:45:26]Read from MH i2c: E2 03 00 [09:45:26]MH_I2C_Read... [09:45:26]Read from MH i2c: E2 03 00 CF 85 00 90 00 C8 [09:45:26]RAPDU: 90 00 [09:45:26]wFMCommunicate OK [09:45:26]SAM_PROTO_ClearQueue done [09:45:26]KKMCreateOFDPacket [09:45:26]OFDProtocolAddRootSTLVToBuf [09:45:26]FM_MakeSignedData [09:45:26]FM_MakeSignedData [09:45:26]SAM_PROTO_SignData [09:45:26]wFMCommunicate request_size=4 [09:45:26]MH_SAM_APDU [09:45:26]CAPDU: 80 0D 01 02 [09:45:26]Write to MH i2c: E2 08 00 D0 85 80 0D 01 02 00 00 00 00 CE [09:45:26]Write i2c OK [09:45:26]MH_I2C_Read... [09:45:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:45:26]Read from MH i2c: E2 [09:45:26]MH_I2C_Read... [09:45:26]Read from MH i2c: E2 03 00 [09:45:26]MH_I2C_Read... [09:45:26]Read from MH i2c: E2 03 00 D0 85 00 90 00 C9 [09:45:26]RAPDU: 90 00 [09:45:26]wFMCommunicate OK [09:45:26]wFMCommunicate request_size=255 [09:45:26]MH_SAM_APDU [09:45: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 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 4A 00 00 00 F4 03 04 00 BE A5 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EC 71 00 00 35 04 06 00 1A [09:45:26]Write to MH i2c: E2 02 01 D1 85 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 4A 00 00 00 F4 03 04 00 BE A5 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EC 71 00 00 35 04 06 00 1A 00 00 5B [09:45:26]Write i2c OK [09:45:26]MH_I2C_Read... [09:45:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:45:26]Read from MH i2c: E2 [09:45:26]MH_I2C_Read... [09:45:26]Read from MH i2c: E2 03 00 [09:45:26]MH_I2C_Read... [09:45:26]Read from MH i2c: E2 03 00 D1 85 00 90 00 CA [09:45:26]RAPDU: 90 00 [09:45:26]wFMCommunicate OK [09:45:26]wFMCommunicate request_size=10 [09:45:26]MH_SAM_APDU [09:45:26]CAPDU: 80 0D 02 02 05 59 7D B9 F4 FE [09:45:26]Write to MH i2c: E2 0D 00 D2 85 80 0D 02 02 05 00 59 7D B9 F4 FE 00 00 5C [09:45:26]Write i2c OK [09:45:26]MH_I2C_Read... [09:45:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:45:26]Read from MH i2c: E2 [09:45:26]MH_I2C_Read... [09:45:26]Read from MH i2c: E2 03 00 [09:45:26]MH_I2C_Read... [09:45:26]Read from MH i2c: E2 03 00 D2 85 00 90 00 CB [09:45:26]RAPDU: 90 00 [09:45:26]wFMCommunicate OK [09:45:26]wFMCommunicate request_size=4 [09:45:26]MH_SAM_APDU [09:45:26]CAPDU: 80 0D 03 02 [09:45:26]Write to MH i2c: E2 08 00 D3 85 80 0D 03 02 00 00 00 00 D3 [09:45:26]Write i2c OK [09:45:26]MH_I2C_Read... [09:45:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:45:26]Read from MH i2c: E2 [09:45:26]MH_I2C_Read... [09:45:26]Read from MH i2c: E2 0B 00 [09:45:26]MH_I2C_Read... [09:45:26]Read from MH i2c: E2 0B 00 D3 85 00 C9 CB 75 62 D2 EE 4C E8 90 00 33 [09:45:26]RAPDU: C9 CB 75 62 D2 EE 4C E8 90 00 [09:45:26]wFMCommunicate OK [09:45:26]SAM_PROTO_SignData done [09:45:26]FM_MakeSignedData done [09:45:26]CreateOFDProtocolMessage [09:45:26]wFMCommunicate request_size=4 [09:45:26]MH_SAM_APDU [09:45:26]CAPDU: 80 11 00 00 [09:45:26]Write to MH i2c: E2 08 00 D4 85 80 11 00 00 00 00 00 00 D3 [09:45:26]Write i2c OK [09:45:26]MH_I2C_Read... [09:45:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:45:26]Read from MH i2c: E2 [09:45:26]MH_I2C_Read... [09:45:26]Read from MH i2c: E2 17 00 [09:45:26]MH_I2C_Read... [09:45:26]Read from MH i2c: E2 17 00 D4 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 22 [09:45:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:45:26]wFMCommunicate OK [09:45:26]CreateOFDProtocolMessage done [09:45:26]OFDSenderStorePacket 29164 [09:45:26]StoreOFDPacket docnum=29164 [09:45:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 FE 97 07 01 AF 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 4A 00 00 00 F4 03 04 00 BE A5 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EC 71 00 00 35 04 06 00 1A 59 7D B9 F4 FE C9 CB 75 62 D2 EE 4C E8 [09:45:26]CheckFolder [09:45:26]dirname=/storage/ofd_packets [09:45:26]CheckFolder done [09:45:26]ProducePacketName [09:45:26]name=ofd_packets/00029164 [09:45:26]NVStorageSaveData ofd_packets/00029164 [09:45:26]File name is /storage/ofd_packets/00029164 [09:45:26]Write 301 bytes [09:45:26]NVStorageSaveData done [09:45:26]OFDSenderStorePacket done [09:45:26]KKMCreateOFDPacket done [09:45:26]NVStorageSaveData kkm_last_timestamp [09:45:26]File name is /storage/kkm_last_timestamp [09:45:26]Write 4 bytes [09:45:26]NVStorageSaveData done [09:45:26]ExternCall_PrintAddStr [09:45:26]wPrintStart [09:45:26]Write to MH i2c: 01 00 00 D5 85 5A [09:45:26]Write i2c OK [09:45:26]MH_I2C_Read... [09:45:26]Read from MH i2c: 01 [09:45:26]MH_I2C_Read... [09:45:26]Read from MH i2c: 01 07 00 [09:45:26]MH_I2C_Read... [09:45:26]Read from MH i2c: 01 07 00 D5 85 00 00 00 00 00 FF 0F 6F [09:45:26]RasterBufferAndPrint [09:45:26]line Счет N : (1)347536 [09:45:26]line ИНН: 02508201610067 [09:45:26]line Контрольно-Кассовый Чек [09:45:26]line ПРОДАЖА [09:45:26]line ТРК (МРК, ГНК) : 42 [09:45:26]line Товар: 2710124130 [09:45:26]line Аи-92-К-5 [09:45:26]line 10.890 * 64.30 [09:45:26]line = 700.23 [09:45:26]line НДС 12% НСП 1% [09:45:26]line > о реализуемом товаре [09:45:26]line ИТОГО: 700.23 [09:45:26]line НСП 1% : 6.20 [09:45:26]line НДС 12% : 74.36 [09:45:26]line Наличными: 0.00 [09:45:26]line Безнал.: 700.23 [09:45:26]line Место: АЗС № 108 "Партнер Нефть" [09:45:26]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:45:26]line СНО: Общий режим [09:45:26]line Чек 74 14.04.2024 09:45 [09:45:26]line Смена: 116 ФФД: 1.0 [09:45:26]line ЗНМ: 0300000027 [09:45:26]line РНМ: 0000138879044617 [09:45:26]line Версия ККМ: 001 [09:45:26]line Платежная система: Бакай Банк [09:45:26]line ФМ: 0000000000963154 [09:45:26]line ФД: 29164 [09:45:26]line ФПД: 28971663750398 [09:45:26]line 1/tax-web-control/client/api/v1/ticket?date=20240414T094534&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29164&fm=28971663750398&tin=02508201610067®Number=0000138879044617&sum=70023 [09:45:27]OFD Sender: Processing packet 29164 [packets to send 8, broken 7] [09:45:27]ProducePacketName [09:45:27]name=ofd_packets/00029164 [09:45:27]OFD Sender: To server: pG, [09:45:27]CommunicateWithHost lk.salyk.kg:30040 [09:45:27]ConnectInit lk.salyk.kg [09:45:27]written 0, free lines is 4095 [09:45:27]Connected sock=9 [09:45:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 FE 97 07 01 AF 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 4A 00 00 00 F4 03 04 00 BE A5 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EC 71 00 00 35 04 06 00 1A 59 7D B9 F4 FE C9 CB 75 62 D2 EE 4C E8 [09:45:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 59 63 47 00 E8 27 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EC 71 00 00 F4 03 04 00 62 50 1B 66 B6 04 01 00 00 A0 6A 6B 2E 4E A0 23 DD [09:45:27]CommunicateWithHost err = 0 [09:45:27]CheckOFDResponse [09:45:27]1017 (14) - 77093643461234 [09:45:27]1041 (16) - 0000000000963154 [09:45:27]1040 (4) - 29164 [09:45:27]1012 (4) - 14.04.2024 03:41 [09:45:27]1206 (1) - 0 [09:45:27]OFD Sender: Remove packet 29164 [09:45:27]ProducePacketName [09:45:27]name=ofd_packets/00029164 [09:45:27]NVStorageDeleteData [09:45:27]Write to MH i2c: 01 00 00 FE 85 83 [09:45:27]Write i2c OK [09:45:27]MH_I2C_Read... [09:45:27]Read from MH i2c: 01 [09:45:27]MH_I2C_Read... [09:45:27]Read from MH i2c: 01 07 00 [09:45:27]MH_I2C_Read... [09:45:27]Read from MH i2c: 01 07 00 FE 85 00 00 00 00 00 DA 0C 70 [09:45:27]RasterBufferAndPrint [09:45:27]line [09:45:27]line [09:45:27]line [09:45:27]line [09:45:27]line [09:45:27]written 0, free lines is 3298 [09:45:27]MH_Cut [09:45:27]Write to MH i2c: D1 01 00 05 86 01 5D [09:45:27]Write i2c OK [09:45:27]MH_I2C_Read... [09:45:27]Read from MH i2c: D1 [09:45:27]MH_I2C_Read... [09:45:27]Read from MH i2c: D1 01 00 [09:45:27]MH_I2C_Read... [09:45:27]Read from MH i2c: D1 01 00 05 86 00 5C [09:45:27]Write to MH i2c: 01 00 00 06 86 8C [09:45:27]Write i2c OK [09:45:27]MH_I2C_Read... [09:45:27]OFD Sender: No OFD packet to send [09:45:28]*** Cut start [09:45:28]*** Partial cut [09:45:28]*** CUTSNS_PIN = 1 [09:45:28]*** CUTSNS_PIN = 0 [09:45:28]*** Brake cut motor [09:45:28]Read from MH i2c: 01 [09:45:28]MH_I2C_Read... [09:45:28]*** Stop cut motor [09:45:28]*** Cut end [09:45:28]Read from MH i2c: 01 07 00 [09:45:28]MH_I2C_Read... [09:45:28]Read from MH i2c: 01 07 00 06 86 00 00 00 00 00 FF 0F A1 [09:45:28]process_action close_receipt done [09:45:28]requested_data is exist [09:45:28]produce_requested_data [09:45:28]requested_item fm.sn is exist - process it [09:45:28]wFMCommunicate request_size=4 [09:45:28]MH_SAM_APDU [09:45:28]CAPDU: 80 11 00 00 [09:45:28]Write to MH i2c: E2 08 00 07 86 80 11 00 00 00 00 00 00 07 [09:45:28]Write i2c OK [09:45:28]MH_I2C_Read... [09:45:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:45:28]Read from MH i2c: E2 [09:45:28]MH_I2C_Read... [09:45:28]Read from MH i2c: E2 17 00 [09:45:28]MH_I2C_Read... [09:45:28]Read from MH i2c: E2 17 00 07 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 56 [09:45:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:45:28]wFMCommunicate OK [09:45:28]requested_item fd.num is exist - process it [09:45:28]SAM_PROTO_GetFieldsCounters [09:45:28]wFMCommunicate request_size=4 [09:45:28]MH_SAM_APDU [09:45:28]CAPDU: 80 13 00 00 [09:45:28]Write to MH i2c: E2 08 00 08 86 80 13 00 00 00 00 00 00 0A [09:45:28]Write i2c OK [09:45:28]MH_I2C_Read... [09:45:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:45:29]Read from MH i2c: E2 [09:45:29]MH_I2C_Read... [09:45:29]Read from MH i2c: E2 62 00 [09:45:29]MH_I2C_Read... [09:45:29]Read from MH i2c: E2 62 00 08 86 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 EC 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 F7 [09:45:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 EC 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:45:29]wFMCommunicate OK [09:45:29]SAM_PROTO_GetFieldsCounters done [09:45:29]requested_item shift.num is exist - process it [09:45:29]requested_item shift.opened is exist - process it [09:45:29]req_shift_opened [09:45:29]FM_GetShiftState [09:45:29]SAM_PROTO_GetShiftState [09:45:29]wFMCommunicate request_size=4 [09:45:29]MH_SAM_APDU [09:45:29]CAPDU: 80 13 01 00 [09:45:29]Write to MH i2c: E2 08 00 09 86 80 13 01 00 00 00 00 00 0C [09:45:29]Write i2c OK [09:45:29]MH_I2C_Read... [09:45:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:45:29]Read from MH i2c: E2 [09:45:29]MH_I2C_Read... [09:45:29]Read from MH i2c: E2 0E 00 [09:45:29]MH_I2C_Read... [09:45:29]Read from MH i2c: E2 0E 00 09 86 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 B8 [09:45:29]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [09:45:29]wFMCommunicate OK [09:45:29]SAM_PROTO_GetShiftState done [09:45:29]FM_GetShiftState done [09:45:29]req_shift_opened done [09:45:29]requested_item shift.open_date is exist - process it [09:45:29]req_shift_open_date [09:45:29]req_shift_open_date done [09:45:29]produce_requested_data done [09:45:29]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29164,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [09:45:29]process_action_free close_receipt [09:45:29]json_value_free [09:45:29]json_value_free done [09:45:29]process_json_proto returns [09:45:29]Send response to host [09:45:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29164,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [09:45:29]free response buf [09:45:29]execute_script done [09:45:29]execute_script returns [09:45:29]free content buf [09:45:29]Sock 10.Close socket [09:45:29]Sock 10.Thread stoped [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:12]OFD Sender: No OFD packet to send [09:46:17]OFD Sender: No OFD packet to send [09:46:22]OFD Sender: No OFD packet to send [09:46:27]OFD Sender: No OFD packet to send [09:46:32]OFD Sender: No OFD packet to send [09:46:37]OFD Sender: No OFD packet to send [09:46:42]OFD Sender: No OFD packet to send [09:46:47]OFD Sender: No OFD packet to send [09:46:52]OFD Sender: No OFD packet to send [09:46:57]OFD Sender: No OFD packet to send [09:47:02]OFD Sender: No OFD packet to send [09:47:07]OFD Sender: No OFD packet to send [09:47:12]OFD Sender: No OFD packet to send [09:47:17]OFD Sender: No OFD packet to send [09:47:22]OFD Sender: No OFD packet to send [09:47:27]OFD Sender: No OFD packet to send [09:47:32]OFD Sender: No OFD packet to send [09:47:37]OFD Sender: No OFD packet to send [09:47:42]OFD Sender: No OFD packet to send [09:47:47]OFD Sender: No OFD packet to send [09:47:52]OFD Sender: No OFD packet to send [09:47:57]OFD Sender: No OFD packet to send [09:48:02]OFD Sender: No OFD packet to send [09:48:07]OFD Sender: No OFD packet to send [09:48:12]OFD Sender: No OFD packet to send [09:48:17]OFD Sender: No OFD packet to send [09:48:22]OFD Sender: No OFD packet to send [09:48:27]OFD Sender: No OFD packet to send [09:48:32]OFD Sender: No OFD packet to send [09:48:37]OFD Sender: No OFD packet to send [09:48:43]OFD Sender: No OFD packet to send [09:48:48]OFD Sender: No OFD packet to send [09:48:53]OFD Sender: No OFD packet to send [09:48:58]OFD Sender: No OFD packet to send [09:49:03]OFD Sender: No OFD packet to send [09:49:08]OFD Sender: No OFD packet to send [09:49:13]OFD Sender: No OFD packet to send [09:49:18]OFD Sender: No OFD packet to send [09:49:23]OFD Sender: No OFD packet to send [09:49:28]OFD Sender: No OFD packet to send [09:49:33]OFD Sender: No OFD packet to send [09:49:38]OFD Sender: No OFD packet to send [09:49:43]OFD Sender: No OFD packet to send [09:49:48]OFD Sender: No OFD packet to send [09:49:53]OFD Sender: No OFD packet to send [09:49:58]OFD Sender: No OFD packet to send [09:50:03]OFD Sender: No OFD packet to send [09:50:08]OFD Sender: No OFD packet to send [09:50:13]OFD Sender: No OFD packet to send [09:50:18]OFD Sender: No OFD packet to send [09:50:23]OFD Sender: No OFD packet to send [09:50:28]OFD Sender: No OFD packet to send [09:50:33]OFD Sender: No OFD packet to send [09:50:38]OFD Sender: No OFD packet to send [09:50:43]OFD Sender: No OFD packet to send [09:50:48]OFD Sender: No OFD packet to send [09:50:53]OFD Sender: No OFD packet to send [09:50:58]OFD Sender: No OFD packet to send [09:51:03]OFD Sender: No OFD packet to send [09:51:08]OFD Sender: No OFD packet to send [09:51:13]OFD Sender: No OFD packet to send [09:51:18]OFD Sender: No OFD packet to send [09:51:23]OFD Sender: No OFD packet to send [09:51:28]OFD Sender: No OFD packet to send [09:51:33]OFD Sender: No OFD packet to send [09:51:38]OFD Sender: No OFD packet to send [09:51:43]OFD Sender: No OFD packet to send [09:51:48]OFD Sender: No OFD packet to send [09:51:53]OFD Sender: No OFD packet to send [09:51:58]OFD Sender: No OFD packet to send [09:52:03]OFD Sender: No OFD packet to send [09:52:08]OFD Sender: No OFD packet to send [09:52:13]OFD Sender: No OFD packet to send [09:52:18]OFD Sender: No OFD packet to send [09:52:23]OFD Sender: No OFD packet to send [09:52:28]OFD Sender: No OFD packet to send [09:52:33]OFD Sender: No OFD packet to send [09:52:38]OFD Sender: No OFD packet to send [09:52:43]OFD Sender: No OFD packet to send [09:52:44]accept exits with 7 [09:52:44]New connection [09:52:44]New thread 3066928484 created [09:52:44]Thread 3066785124 joined [09:52:44]Waiting for new connection... [09:52:44] Sock 7.Parse request [09:52:44]Sock 7.Check first char [09:52:44]Sock 7.First char is OK [09:52:44]request: POST /json_proto HTTP/1.0 [09:52:44]Method: POST [09:52:44]URL: /json_proto [09:52:44]Method is POST - this is cgi request [09:52:44]url: /json_proto [09:52:44]query_string will be loaded in cgi processing [09:52:44]execute_cgi json_proto POST (null) [09:52:44]execute_cgi path=json_proto method=POST [09:52:44]POST find Content-Length [09:52:44]Host: 172.17.33.3:8080 [09:52:44]Content-Length: 677 [09:52:44]Content-Type: application/json [09:52:44] [09:52:44]POST finish read [09:52:44]Found Content-Length = 677 [09:52:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347537", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.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" ] } } [09:52:44]execute_script... [09:52: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)347537", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.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" ] } } [09:52:44]POST & json_proto [09:52:44]process_json_proto [09:52:44]json parsed OK: [09:52:44]protocol is kg_v1.0 [09:52:44]action value=close_receipt [09:52:44]process_action close_receipt [09:52:44]cmd_close_receipt [09:52:44]MH_GetDate [09:52:44]Write to MH i2c: F0 00 00 0A 86 7F [09:52:44]Write i2c OK [09:52:44]MH_I2C_Read... [09:52:44]Read from MH i2c: F0 [09:52:44]MH_I2C_Read... [09:52:44]Read from MH i2c: F0 09 00 [09:52:44]MH_I2C_Read... [09:52:44]Read from MH i2c: F0 09 00 0A 86 00 75 A7 1B 66 23 5B 8F 65 97 [09:52:44]GetLastDocTimeStamp 1713087934 [09:52:44]current date 1713088373 [09:52:44]FM_GetShiftState [09:52:44]SAM_PROTO_GetShiftState [09:52:44]wFMCommunicate request_size=4 [09:52:44]MH_SAM_APDU [09:52:44]CAPDU: 80 13 01 00 [09:52:44]Write to MH i2c: E2 08 00 0B 86 80 13 01 00 00 00 00 00 0E [09:52:44]Write i2c OK [09:52:44]MH_I2C_Read... [09:52:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:44]Read from MH i2c: E2 [09:52:44]MH_I2C_Read... [09:52:44]Read from MH i2c: E2 0E 00 [09:52:44]MH_I2C_Read... [09:52:44]Read from MH i2c: E2 0E 00 0B 86 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 BA [09:52:44]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [09:52:44]wFMCommunicate OK [09:52:44]SAM_PROTO_GetShiftState done [09:52:44]FM_GetShiftState done [09:52:44]opened in 1713053951 [09:52:44]opened+sec_in_day 1713140351 [09:52:44]quantity*price = 50025 [09:52:44]sum+1 = 50026 [09:52: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 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 75 14.04.2024 09:52 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29165 ФПД: 210269338916557 1/tax-web-control/client/api/v1/ticket?date=20240414T095253&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29165&fm=210269338916557&tin=02508201610067®Number=0000138879044617&sum=50000 [09:52:45]StoreToDocumentArchive [09:52:45]shift 116 fd 29165 [09:52:45]save to /storage/0116/doc_00029165 [09:52:45]save last doc name /storage/0116/doc_00029165 to /storage/kkm_last_doc_name [09:52:45]save OK [09:52:45]Clear old archive folders... [09:52:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:52:45]tlvbuf is 012F3790 [09:52:45]SAM_PROTO_ClearQueue [09:52:45]wFMCommunicate request_size=4 [09:52:45]MH_SAM_APDU [09:52:45]CAPDU: 80 09 00 00 [09:52:45]Write to MH i2c: E2 08 00 18 86 80 09 00 00 00 00 00 00 10 [09:52:45]Write i2c OK [09:52:45]MH_I2C_Read... [09:52:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:52:45]Read from MH i2c: E2 [09:52:45]MH_I2C_Read... [09:52:45]Read from MH i2c: E2 03 00 [09:52:45]MH_I2C_Read... [09:52:45]Read from MH i2c: E2 03 00 18 86 00 90 00 12 [09:52:45]RAPDU: 90 00 [09:52:45]wFMCommunicate OK [09:52:45]SAM_PROTO_ClearQueue done [09:52:45]KKMCreateOFDPacket [09:52:45]OFDProtocolAddRootSTLVToBuf [09:52:45]FM_MakeSignedData [09:52:45]FM_MakeSignedData [09:52:45]SAM_PROTO_SignData [09:52:45]wFMCommunicate request_size=4 [09:52:45]MH_SAM_APDU [09:52:45]CAPDU: 80 0D 01 02 [09:52:45]Write to MH i2c: E2 08 00 19 86 80 0D 01 02 00 00 00 00 18 [09:52:45]Write i2c OK [09:52:45]MH_I2C_Read... [09:52:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:52:45]Read from MH i2c: E2 [09:52:45]MH_I2C_Read... [09:52:45]Read from MH i2c: E2 03 00 [09:52:45]MH_I2C_Read... [09:52:45]Read from MH i2c: E2 03 00 19 86 00 90 00 13 [09:52:45]RAPDU: 90 00 [09:52:45]wFMCommunicate OK [09:52:45]wFMCommunicate request_size=255 [09:52:45]MH_SAM_APDU [09:52: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 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 4B 00 00 00 F4 03 04 00 75 A7 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 ED 71 00 00 35 04 06 00 BF [09:52:45]Write to MH i2c: E2 02 01 1A 86 80 0D 02 02 FA 00 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 4B 00 00 00 F4 03 04 00 75 A7 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 ED 71 00 00 35 04 06 00 BF 00 00 1A [09:52:45]Write i2c OK [09:52:45]MH_I2C_Read... [09:52:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:45]Read from MH i2c: E2 [09:52:45]MH_I2C_Read... [09:52:45]Read from MH i2c: E2 03 00 [09:52:45]MH_I2C_Read... [09:52:45]Read from MH i2c: E2 03 00 1A 86 00 90 00 14 [09:52:45]RAPDU: 90 00 [09:52:45]wFMCommunicate OK [09:52:45]wFMCommunicate request_size=10 [09:52:45]MH_SAM_APDU [09:52:45]CAPDU: 80 0D 02 02 05 3D 25 40 D6 CD [09:52:45]Write to MH i2c: E2 0D 00 1B 86 80 0D 02 02 05 00 3D 25 40 D6 CD 00 00 6A [09:52:45]Write i2c OK [09:52:45]MH_I2C_Read... [09:52:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:45]Read from MH i2c: E2 [09:52:45]MH_I2C_Read... [09:52:45]Read from MH i2c: E2 03 00 [09:52:45]MH_I2C_Read... [09:52:45]Read from MH i2c: E2 03 00 1B 86 00 90 00 15 [09:52:45]RAPDU: 90 00 [09:52:45]wFMCommunicate OK [09:52:45]wFMCommunicate request_size=4 [09:52:45]MH_SAM_APDU [09:52:45]CAPDU: 80 0D 03 02 [09:52:45]Write to MH i2c: E2 08 00 1C 86 80 0D 03 02 00 00 00 00 1D [09:52:45]Write i2c OK [09:52:45]MH_I2C_Read... [09:52:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:52:45]Read from MH i2c: E2 [09:52:45]MH_I2C_Read... [09:52:45]Read from MH i2c: E2 0B 00 [09:52:45]MH_I2C_Read... [09:52:45]Read from MH i2c: E2 0B 00 1C 86 00 F7 BC 9E 94 20 C6 2F 61 90 00 79 [09:52:45]RAPDU: F7 BC 9E 94 20 C6 2F 61 90 00 [09:52:45]wFMCommunicate OK [09:52:45]SAM_PROTO_SignData done [09:52:45]FM_MakeSignedData done [09:52:45]CreateOFDProtocolMessage [09:52:45]wFMCommunicate request_size=4 [09:52:45]MH_SAM_APDU [09:52:45]CAPDU: 80 11 00 00 [09:52:45]Write to MH i2c: E2 08 00 1D 86 80 11 00 00 00 00 00 00 1D [09:52:45]Write i2c OK [09:52:45]MH_I2C_Read... [09:52:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:45]Read from MH i2c: E2 [09:52:45]MH_I2C_Read... [09:52:45]Read from MH i2c: E2 17 00 [09:52:45]MH_I2C_Read... [09:52:45]Read from MH i2c: E2 17 00 1D 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 6C [09:52:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:52:46]wFMCommunicate OK [09:52:46]CreateOFDProtocolMessage done [09:52:46]OFDSenderStorePacket 29165 [09:52:46]StoreOFDPacket docnum=29165 [09:52:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 A9 5F 07 01 46 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 4B 00 00 00 F4 03 04 00 75 A7 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 ED 71 00 00 35 04 06 00 BF 3D 25 40 D6 CD F7 BC 9E 94 20 C6 2F 61 [09:52:46]CheckFolder [09:52:46]dirname=/storage/ofd_packets [09:52:46]CheckFolder done [09:52:46]ProducePacketName [09:52:46]name=ofd_packets/00029165 [09:52:46]NVStorageSaveData ofd_packets/00029165 [09:52:46]File name is /storage/ofd_packets/00029165 [09:52:46]Write 301 bytes [09:52:46]NVStorageSaveData done [09:52:46]OFDSenderStorePacket done [09:52:46]KKMCreateOFDPacket done [09:52:46]NVStorageSaveData kkm_last_timestamp [09:52:46]File name is /storage/kkm_last_timestamp [09:52:46]Write 4 bytes [09:52:46]NVStorageSaveData done [09:52:46]ExternCall_PrintAddStr [09:52:46]wPrintStart [09:52:46]Write to MH i2c: 01 00 00 1E 86 A4 [09:52:46]Write i2c OK [09:52:46]MH_I2C_Read... [09:52:46]Read from MH i2c: 01 [09:52:46]MH_I2C_Read... [09:52:46]Read from MH i2c: 01 07 00 [09:52:46]MH_I2C_Read... [09:52:46]Read from MH i2c: 01 07 00 1E 86 00 00 00 00 00 FF 0F B9 [09:52:46]RasterBufferAndPrint [09:52:46]line Счет N : (1)347537 [09:52:46]line ИНН: 02508201610067 [09:52:46]line Контрольно-Кассовый Чек [09:52:46]line ПРОДАЖА [09:52:46]line ТРК (МРК, ГНК) : 43 [09:52:46]line Товар: 2710124500 [09:52:46]line Аи-95-К-5 [09:52:46]line 6.900 * 72.50 [09:52:46]line = 500.25 [09:52:46]line НДС 12% НСП 1% [09:52:46]line > о реализуемом товаре [09:52:46]line ОКРУГЛЕНИЕ: -0.25 [09:52:46]line ИТОГО: 500.00 [09:52:46]line Внесено: 500.00 [09:52:46]line СДАЧА: 0.00 [09:52:46]line НСП 1% : 4.43 [09:52:46]line НДС 12% : 53.12 [09:52:46]line Наличными: 500.00 [09:52:46]line Безнал.: 0.00 [09:52:46]line Место: АЗС № 108 "Партнер Нефть" [09:52:46]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:52:46]line СНО: Общий режим [09:52:46]line Чек 75 14.04.2024 09:52 [09:52:46]line Смена: 116 ФФД: 1.0 [09:52:46]line ЗНМ: 0300000027 [09:52:46]line РНМ: 0000138879044617 [09:52:46]line Версия ККМ: 001 [09:52:46]line ФМ: 0000000000963154 [09:52:46]line ФД: 29165 [09:52:46]line ФПД: 210269338916557 [09:52:46]line 1/tax-web-control/client/api/v1/ticket?date=20240414T095253&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29165&fm=210269338916557&tin=02508201610067®Number=0000138879044617&sum=50000 [09:52:46]OFD Sender: Processing packet 29165 [packets to send 8, broken 7] [09:52:46]ProducePacketName [09:52:46]name=ofd_packets/00029165 [09:52:46]OFD Sender: To server: pG, [09:52:46]CommunicateWithHost lk.salyk.kg:30040 [09:52:46]ConnectInit lk.salyk.kg [09:52:46]written 0, free lines is 4095 [09:52:46]Connected sock=10 [09:52:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 A9 5F 07 01 46 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 4B 00 00 00 F4 03 04 00 75 A7 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 ED 71 00 00 35 04 06 00 BF 3D 25 40 D6 CD F7 BC 9E 94 20 C6 2F 61 [09:52:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 69 22 47 00 75 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 39 36 33 31 35 34 10 04 04 00 ED 71 00 00 F4 03 04 00 1A 52 1B 66 B6 04 01 00 00 AB 4C 19 53 0A CD 20 3C [09:52:46]CommunicateWithHost err = 0 [09:52:46]CheckOFDResponse [09:52:46]1017 (14) - 77093643461234 [09:52:46]1041 (16) - 0000000000963154 [09:52:46]1040 (4) - 29165 [09:52:46]1012 (4) - 14.04.2024 03:48 [09:52:46]1206 (1) - 0 [09:52:46]OFD Sender: Remove packet 29165 [09:52:46]ProducePacketName [09:52:46]name=ofd_packets/00029165 [09:52:46]NVStorageDeleteData [09:52:46]Write to MH i2c: 01 00 00 48 86 CE [09:52:46]Write i2c OK [09:52:46]MH_I2C_Read... [09:52:46]Read from MH i2c: 01 [09:52:46]MH_I2C_Read... [09:52:46]Read from MH i2c: 01 07 00 [09:52:46]MH_I2C_Read... [09:52:46]Read from MH i2c: 01 07 00 48 86 00 00 00 00 00 C0 0C A1 [09:52:46]RasterBufferAndPrint [09:52:46]line [09:52:46]line [09:52:46]line [09:52:46]line [09:52:46]line [09:52:46]written 0, free lines is 3270 [09:52:46]MH_Cut [09:52:46]Write to MH i2c: D1 01 00 4F 86 01 A7 [09:52:46]Write i2c OK [09:52:46]MH_I2C_Read... [09:52:46]Read from MH i2c: D1 [09:52:46]MH_I2C_Read... [09:52:46]Read from MH i2c: D1 01 00 [09:52:46]MH_I2C_Read... [09:52:46]Read from MH i2c: D1 01 00 4F 86 00 A6 [09:52:46]Write to MH i2c: 01 00 00 50 86 D6 [09:52:46]Write i2c OK [09:52:46]MH_I2C_Read... [09:52:47]OFD Sender: No OFD packet to send [09:52:47]*** Cut start [09:52:47]*** Partial cut [09:52:47]*** CUTSNS_PIN = 1 [09:52:47]*** CUTSNS_PIN = 0 [09:52:47]*** Brake cut motor [09:52:48]Read from MH i2c: 01 [09:52:48]MH_I2C_Read... [09:52:48]*** Stop cut motor [09:52:48]*** Cut end [09:52:48]Read from MH i2c: 01 07 00 [09:52:48]MH_I2C_Read... [09:52:48]Read from MH i2c: 01 07 00 50 86 00 00 00 00 00 FF 0F EB [09:52:48]process_action close_receipt done [09:52:48]requested_data is exist [09:52:48]produce_requested_data [09:52:48]requested_item fm.sn is exist - process it [09:52:48]wFMCommunicate request_size=4 [09:52:48]MH_SAM_APDU [09:52:48]CAPDU: 80 11 00 00 [09:52:48]Write to MH i2c: E2 08 00 51 86 80 11 00 00 00 00 00 00 51 [09:52:48]Write i2c OK [09:52:48]MH_I2C_Read... [09:52:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:48]Read from MH i2c: E2 [09:52:48]MH_I2C_Read... [09:52:48]Read from MH i2c: E2 17 00 [09:52:48]MH_I2C_Read... [09:52:48]Read from MH i2c: E2 17 00 51 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A0 [09:52:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:52:48]wFMCommunicate OK [09:52:48]requested_item fd.num is exist - process it [09:52:48]SAM_PROTO_GetFieldsCounters [09:52:48]wFMCommunicate request_size=4 [09:52:48]MH_SAM_APDU [09:52:48]CAPDU: 80 13 00 00 [09:52:48]Write to MH i2c: E2 08 00 52 86 80 13 00 00 00 00 00 00 54 [09:52:48]Write i2c OK [09:52:48]MH_I2C_Read... [09:52:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:52:48]Read from MH i2c: E2 [09:52:48]MH_I2C_Read... [09:52:48]Read from MH i2c: E2 62 00 [09:52:48]MH_I2C_Read... [09:52:48]Read from MH i2c: E2 62 00 52 86 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 ED 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 45 [09:52:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 ED 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:52:48]wFMCommunicate OK [09:52:48]SAM_PROTO_GetFieldsCounters done [09:52:48]requested_item shift.num is exist - process it [09:52:48]requested_item shift.opened is exist - process it [09:52:48]req_shift_opened [09:52:48]FM_GetShiftState [09:52:48]SAM_PROTO_GetShiftState [09:52:48]wFMCommunicate request_size=4 [09:52:48]MH_SAM_APDU [09:52:48]CAPDU: 80 13 01 00 [09:52:48]Write to MH i2c: E2 08 00 53 86 80 13 01 00 00 00 00 00 56 [09:52:48]Write i2c OK [09:52:48]MH_I2C_Read... [09:52:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:48]Read from MH i2c: E2 [09:52:48]MH_I2C_Read... [09:52:48]Read from MH i2c: E2 0E 00 [09:52:48]MH_I2C_Read... [09:52:48]Read from MH i2c: E2 0E 00 53 86 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 02 [09:52:48]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [09:52:48]wFMCommunicate OK [09:52:48]SAM_PROTO_GetShiftState done [09:52:48]FM_GetShiftState done [09:52:48]req_shift_opened done [09:52:48]requested_item shift.open_date is exist - process it [09:52:48]req_shift_open_date [09:52:48]req_shift_open_date done [09:52:48]produce_requested_data done [09:52:48]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29165,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [09:52:48]process_action_free close_receipt [09:52:48]json_value_free [09:52:48]json_value_free done [09:52:48]process_json_proto returns [09:52:48]Send response to host [09:52:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29165,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [09:52:48]free response buf [09:52:48]execute_script done [09:52:48]execute_script returns [09:52:48]free content buf [09:52:48]Sock 7.Close socket [09:52:48]Sock 7.Thread stoped [09:52:52]OFD Sender: No OFD packet to send [09:52:57]OFD Sender: No OFD packet to send [09:53:02]OFD Sender: No OFD packet to send [09:53:07]OFD Sender: No OFD packet to send [09:53:12]OFD Sender: No OFD packet to send [09:53:17]OFD Sender: No OFD packet to send [09:53:22]OFD Sender: No OFD packet to send [09:53:27]OFD Sender: No OFD packet to send [09:53:32]OFD Sender: No OFD packet to send [09:53:37]OFD Sender: No OFD packet to send [09:53:42]OFD Sender: No OFD packet to send [09:53:47]OFD Sender: No OFD packet to send [09:53:52]OFD Sender: No OFD packet to send [09:53:57]OFD Sender: No OFD packet to send [09:54:02]OFD Sender: No OFD packet to send [09:54:07]OFD Sender: No OFD packet to send [09:54:12]OFD Sender: No OFD packet to send [09:54:17]OFD Sender: No OFD packet to send [09:54:22]OFD Sender: No OFD packet to send [09:54:27]OFD Sender: No OFD packet to send [09:54:32]OFD Sender: No OFD packet to send [09:54:37]OFD Sender: No OFD packet to send [09:54:42]OFD Sender: No OFD packet to send [09:54:47]OFD Sender: No OFD packet to send [09:54:52]OFD Sender: No OFD packet to send [09:54:57]OFD Sender: No OFD packet to send [09:55:02]OFD Sender: No OFD packet to send [09:55:07]OFD Sender: No OFD packet to send [09:55:12]OFD Sender: No OFD packet to send [09:55:17]OFD Sender: No OFD packet to send [09:55:22]OFD Sender: No OFD packet to send [09:55:27]OFD Sender: No OFD packet to send [09:55:32]OFD Sender: No OFD packet to send [09:55:37]OFD Sender: No OFD packet to send [09:55:42]OFD Sender: No OFD packet to send [09:55:47]OFD Sender: No OFD packet to send [09:55:52]OFD Sender: No OFD packet to send [09:55:57]OFD Sender: No OFD packet to send [09:56:02]OFD Sender: No OFD packet to send [09:56:07]OFD Sender: No OFD packet to send [09:56:12]OFD Sender: No OFD packet to send [09:56:17]OFD Sender: No OFD packet to send [09:56:22]OFD Sender: No OFD packet to send [09:56:27]OFD Sender: No OFD packet to send [09:56:32]OFD Sender: No OFD packet to send [09:56:37]OFD Sender: No OFD packet to send [09:56:42]OFD Sender: No OFD packet to send [09:56:47]OFD Sender: No OFD packet to send [09:56:52]OFD Sender: No OFD packet to send [09:56:57]OFD Sender: No OFD packet to send [09:57:02]OFD Sender: No OFD packet to send [09:57:07]OFD Sender: No OFD packet to send [09:57:12]OFD Sender: No OFD packet to send [09:57:17]OFD Sender: No OFD packet to send [09:57:22]OFD Sender: No OFD packet to send [09:57:27]OFD Sender: No OFD packet to send [09:57:32]OFD Sender: No OFD packet to send [09:57:37]OFD Sender: No OFD packet to send [09:57:42]OFD Sender: No OFD packet to send [09:57:47]OFD Sender: No OFD packet to send [09:57:52]OFD Sender: No OFD packet to send [09:57:57]OFD Sender: No OFD packet to send [09:58:02]OFD Sender: No OFD packet to send [09:58:07]OFD Sender: No OFD packet to send [09:58:12]OFD Sender: No OFD packet to send [09:58:17]OFD Sender: No OFD packet to send [09:58:22]OFD Sender: No OFD packet to send [09:58:27]OFD Sender: No OFD packet to send [09:58:32]OFD Sender: No OFD packet to send [09:58:37]OFD Sender: No OFD packet to send [09:58:42]OFD Sender: No OFD packet to send [09:58:47]OFD Sender: No OFD packet to send [09:58:52]OFD Sender: No OFD packet to send [09:58:57]OFD Sender: No OFD packet to send [09:58:57]accept exits with 9 [09:58:57]New connection [09:58:57]New thread 3066785124 created [09:58:57]Thread 3066928484 joined [09:58:57]Waiting for new connection... [09:58:57] Sock 9.Parse request [09:58:57]Sock 9.Check first char [09:58:57]Sock 9.First char is OK [09:58:57]request: POST /json_proto HTTP/1.0 [09:58:57]Method: POST [09:58:57]URL: /json_proto [09:58:57]Method is POST - this is cgi request [09:58:57]url: /json_proto [09:58:57]query_string will be loaded in cgi processing [09:58:57]execute_cgi json_proto POST (null) [09:58:57]execute_cgi path=json_proto method=POST [09:58:57]POST find Content-Length [09:58:57]Host: 172.17.33.3:8080 [09:58:57]Content-Length: 677 [09:58:57]Content-Type: application/json [09:58:57] [09:58:57]POST finish read [09:58:57]Found Content-Length = 677 [09:58:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347538", "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" ] } } [09:58:57]execute_script... [09:58: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)347538", "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" ] } } [09:58:57]POST & json_proto [09:58:57]process_json_proto [09:58:57]json parsed OK: [09:58:57]protocol is kg_v1.0 [09:58:57]action value=close_receipt [09:58:57]process_action close_receipt [09:58:57]cmd_close_receipt [09:58:57]MH_GetDate [09:58:57]Write to MH i2c: F0 00 00 54 86 C9 [09:58:57]Write i2c OK [09:58:57]MH_I2C_Read... [09:58:57]Read from MH i2c: F0 [09:58:57]MH_I2C_Read... [09:58:57]Read from MH i2c: F0 09 00 [09:58:57]MH_I2C_Read... [09:58:57]Read from MH i2c: F0 09 00 54 86 00 EB A8 1B 66 23 5B 8F 65 58 [09:58:57]GetLastDocTimeStamp 1713088373 [09:58:57]current date 1713088747 [09:58:57]FM_GetShiftState [09:58:57]SAM_PROTO_GetShiftState [09:58:57]wFMCommunicate request_size=4 [09:58:57]MH_SAM_APDU [09:58:57]CAPDU: 80 13 01 00 [09:58:57]Write to MH i2c: E2 08 00 55 86 80 13 01 00 00 00 00 00 58 [09:58:57]Write i2c OK [09:58:57]MH_I2C_Read... [09:58:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:58:57]Read from MH i2c: E2 [09:58:57]MH_I2C_Read... [09:58:57]Read from MH i2c: E2 0E 00 [09:58:57]MH_I2C_Read... [09:58:57]Read from MH i2c: E2 0E 00 55 86 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 04 [09:58:57]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [09:58:57]wFMCommunicate OK [09:58:57]SAM_PROTO_GetShiftState done [09:58:57]FM_GetShiftState done [09:58:57]opened in 1713053951 [09:58:57]opened+sec_in_day 1713140351 [09:58:57]quantity*price = 30028 [09:58:57]sum+1 = 30029 [09:58: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 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 76 14.04.2024 09:59 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29166 ФПД: 156276293468046 1/tax-web-control/client/api/v1/ticket?date=20240414T095907&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29166&fm=156276293468046&tin=02508201610067®Number=0000138879044617&sum=30000 [09:58:59]StoreToDocumentArchive [09:58:59]shift 116 fd 29166 [09:58:59]save to /storage/0116/doc_00029166 [09:58:59]save last doc name /storage/0116/doc_00029166 to /storage/kkm_last_doc_name [09:58:59]save OK [09:58:59]Clear old archive folders... [09:58:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:58:59]tlvbuf is 012F37B0 [09:58:59]SAM_PROTO_ClearQueue [09:58:59]wFMCommunicate request_size=4 [09:58:59]MH_SAM_APDU [09:58:59]CAPDU: 80 09 00 00 [09:58:59]Write to MH i2c: E2 08 00 62 86 80 09 00 00 00 00 00 00 5A [09:58:59]Write i2c OK [09:58:59]MH_I2C_Read... [09:58:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:58:59]Read from MH i2c: E2 [09:58:59]MH_I2C_Read... [09:58:59]Read from MH i2c: E2 03 00 [09:58:59]MH_I2C_Read... [09:58:59]Read from MH i2c: E2 03 00 62 86 00 90 00 5C [09:58:59]RAPDU: 90 00 [09:58:59]wFMCommunicate OK [09:58:59]SAM_PROTO_ClearQueue done [09:58:59]KKMCreateOFDPacket [09:58:59]OFDProtocolAddRootSTLVToBuf [09:58:59]FM_MakeSignedData [09:58:59]FM_MakeSignedData [09:58:59]SAM_PROTO_SignData [09:58:59]wFMCommunicate request_size=4 [09:58:59]MH_SAM_APDU [09:58:59]CAPDU: 80 0D 01 02 [09:58:59]Write to MH i2c: E2 08 00 63 86 80 0D 01 02 00 00 00 00 62 [09:58:59]Write i2c OK [09:58:59]MH_I2C_Read... [09:58:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:58:59]Read from MH i2c: E2 [09:58:59]MH_I2C_Read... [09:58:59]Read from MH i2c: E2 03 00 [09:58:59]MH_I2C_Read... [09:58:59]Read from MH i2c: E2 03 00 63 86 00 90 00 5D [09:58:59]RAPDU: 90 00 [09:58:59]wFMCommunicate OK [09:58:59]wFMCommunicate request_size=255 [09:58:59]MH_SAM_APDU [09:58: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 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 4C 00 00 00 F4 03 04 00 EB A8 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EE 71 00 00 35 04 06 00 8E [09:58:59]Write to MH i2c: E2 02 01 64 86 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 4C 00 00 00 F4 03 04 00 EB A8 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EE 71 00 00 35 04 06 00 8E 00 00 68 [09:58:59]Write i2c OK [09:58:59]MH_I2C_Read... [09:58:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:58:59]Read from MH i2c: E2 [09:58:59]MH_I2C_Read... [09:58:59]Read from MH i2c: E2 03 00 [09:58:59]MH_I2C_Read... [09:58:59]Read from MH i2c: E2 03 00 64 86 00 90 00 5E [09:58:59]RAPDU: 90 00 [09:58:59]wFMCommunicate OK [09:58:59]wFMCommunicate request_size=10 [09:58:59]MH_SAM_APDU [09:58:59]CAPDU: 80 0D 02 02 05 21 E8 F5 7F 8E [09:58:59]Write to MH i2c: E2 0D 00 65 86 80 0D 02 02 05 00 21 E8 F5 7F 8E 00 00 7A [09:58:59]Write i2c OK [09:58:59]MH_I2C_Read... [09:58:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:58:59]Read from MH i2c: E2 [09:58:59]MH_I2C_Read... [09:58:59]Read from MH i2c: E2 03 00 [09:58:59]MH_I2C_Read... [09:58:59]Read from MH i2c: E2 03 00 65 86 00 90 00 5F [09:58:59]RAPDU: 90 00 [09:58:59]wFMCommunicate OK [09:58:59]wFMCommunicate request_size=4 [09:58:59]MH_SAM_APDU [09:58:59]CAPDU: 80 0D 03 02 [09:58:59]Write to MH i2c: E2 08 00 66 86 80 0D 03 02 00 00 00 00 67 [09:58:59]Write i2c OK [09:58:59]MH_I2C_Read... [09:58:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:58:59]Read from MH i2c: E2 [09:58:59]MH_I2C_Read... [09:58:59]Read from MH i2c: E2 0B 00 [09:58:59]MH_I2C_Read... [09:58:59]Read from MH i2c: E2 0B 00 66 86 00 01 DD C9 2A 8F E4 C8 3D 90 00 B1 [09:58:59]RAPDU: 01 DD C9 2A 8F E4 C8 3D 90 00 [09:58:59]wFMCommunicate OK [09:58:59]SAM_PROTO_SignData done [09:58:59]FM_MakeSignedData done [09:58:59]CreateOFDProtocolMessage [09:58:59]wFMCommunicate request_size=4 [09:58:59]MH_SAM_APDU [09:58:59]CAPDU: 80 11 00 00 [09:58:59]Write to MH i2c: E2 08 00 67 86 80 11 00 00 00 00 00 00 67 [09:58:59]Write i2c OK [09:58:59]MH_I2C_Read... [09:58:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:58:59]Read from MH i2c: E2 [09:58:59]MH_I2C_Read... [09:58:59]Read from MH i2c: E2 17 00 [09:58:59]MH_I2C_Read... [09:58:59]Read from MH i2c: E2 17 00 67 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B6 [09:58:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:58:59]wFMCommunicate OK [09:58:59]CreateOFDProtocolMessage done [09:58:59]OFDSenderStorePacket 29166 [09:58:59]StoreOFDPacket docnum=29166 [09:58:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 64 29 07 01 7D 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 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 4C 00 00 00 F4 03 04 00 EB A8 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EE 71 00 00 35 04 06 00 8E 21 E8 F5 7F 8E 01 DD C9 2A 8F E4 C8 3D [09:58:59]CheckFolder [09:58:59]dirname=/storage/ofd_packets [09:58:59]CheckFolder done [09:58:59]ProducePacketName [09:58:59]name=ofd_packets/00029166 [09:58:59]NVStorageSaveData ofd_packets/00029166 [09:58:59]File name is /storage/ofd_packets/00029166 [09:58:59]Write 301 bytes [09:58:59]NVStorageSaveData done [09:58:59]OFDSenderStorePacket done [09:58:59]KKMCreateOFDPacket done [09:58:59]NVStorageSaveData kkm_last_timestamp [09:58:59]File name is /storage/kkm_last_timestamp [09:58:59]Write 4 bytes [09:58:59]NVStorageSaveData done [09:58:59]ExternCall_PrintAddStr [09:58:59]wPrintStart [09:58:59]Write to MH i2c: 01 00 00 68 86 EE [09:58:59]OFD Sender: Processing packet 29166 [packets to send 8, broken 7] [09:58:59]ProducePacketName [09:58:59]name=ofd_packets/00029166 [09:58:59]OFD Sender: To server: pG, [09:58:59]CommunicateWithHost lk.salyk.kg:30040 [09:58:59]ConnectInit lk.salyk.kg [09:58:59]Write i2c OK [09:58:59]MH_I2C_Read... [09:58:59]Read from MH i2c: 01 [09:58:59]MH_I2C_Read... [09:58:59]Read from MH i2c: 01 07 00 [09:58:59]MH_I2C_Read... [09:58:59]Read from MH i2c: 01 07 00 68 86 00 00 00 00 00 FF 0F 03 [09:58:59]RasterBufferAndPrint [09:58:59]line Счет N : (1)347538 [09:58:59]line ИНН: 02508201610067 [09:58:59]line Контрольно-Кассовый Чек [09:58:59]line ПРОДАЖА [09:58:59]line ТРК (МРК, ГНК) : 42 [09:58:59]line Товар: 2710124130 [09:58:59]line Аи-92-К-5 [09:58:59]line 4.670 * 64.30 [09:58:59]line = 300.28 [09:58:59]line НДС 12% НСП 1% [09:58:59]line > о реализуемом товаре [09:58:59]line ОКРУГЛЕНИЕ: -0.28 [09:58:59]line ИТОГО: 300.00 [09:58:59]line Внесено: 300.00 [09:58:59]line СДАЧА: 0.00 [09:58:59]line НСП 1% : 2.66 [09:58:59]line НДС 12% : 31.89 [09:58:59]line Наличными: 300.00 [09:58:59]line Безнал.: 0.00 [09:58:59]line Место: АЗС № 108 "Партнер Нефть" [09:58:59]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:58:59]line СНО: Общий режим [09:58:59]line Чек 76 14.04.2024 09:59 [09:58:59]line Смена: 116 ФФД: 1.0 [09:58:59]line ЗНМ: 0300000027 [09:58:59]line РНМ: 0000138879044617 [09:58:59]line Версия ККМ: 001 [09:58:59]line ФМ: 0000000000963154 [09:58:59]line ФД: 29166 [09:58:59]line ФПД: 156276293468046 [09:58:59]line 1/tax-web-control/client/api/v1/ticket?date=20240414T095907&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29166&fm=156276293468046&tin=02508201610067®Number=0000138879044617&sum=30000 [09:58:59]Connected sock=10 [09:58:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 64 29 07 01 7D 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 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 4C 00 00 00 F4 03 04 00 EB A8 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EE 71 00 00 35 04 06 00 8E 21 E8 F5 7F 8E 01 DD C9 2A 8F E4 C8 3D [09:58:59]written 0, free lines is 4095 [09:59:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 B5 4A 47 00 C7 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 39 36 33 31 35 34 10 04 04 00 EE 71 00 00 F4 03 04 00 8F 53 1B 66 B6 04 01 00 00 AE 08 B4 A2 43 D4 45 C4 [09:59:00]CommunicateWithHost err = 0 [09:59:00]CheckOFDResponse [09:59:00]1017 (14) - 77093643461234 [09:59:00]1041 (16) - 0000000000963154 [09:59:00]1040 (4) - 29166 [09:59:00]1012 (4) - 14.04.2024 03:54 [09:59:00]1206 (1) - 0 [09:59:00]OFD Sender: Remove packet 29166 [09:59:00]ProducePacketName [09:59:00]name=ofd_packets/00029166 [09:59:00]NVStorageDeleteData [09:59:00]Write to MH i2c: 01 00 00 92 86 18 [09:59:00]Write i2c OK [09:59:00]MH_I2C_Read... [09:59:00]Read from MH i2c: 01 [09:59:00]MH_I2C_Read... [09:59:00]Read from MH i2c: 01 07 00 [09:59:00]MH_I2C_Read... [09:59:00]Read from MH i2c: 01 07 00 92 86 00 00 00 00 00 CD 0C F8 [09:59:00]RasterBufferAndPrint [09:59:00]line [09:59:00]line [09:59:00]line [09:59:00]line [09:59:00]line [09:59:00]written 0, free lines is 3285 [09:59:00]MH_Cut [09:59:00]Write to MH i2c: D1 01 00 99 86 01 F1 [09:59:00]Write i2c OK [09:59:00]MH_I2C_Read... [09:59:00]Read from MH i2c: D1 [09:59:00]MH_I2C_Read... [09:59:00]Read from MH i2c: D1 01 00 [09:59:00]MH_I2C_Read... [09:59:00]Read from MH i2c: D1 01 00 99 86 00 F0 [09:59:00]Write to MH i2c: 01 00 00 9A 86 20 [09:59:00]Write i2c OK [09:59:00]MH_I2C_Read... [09:59:00]OFD Sender: No OFD packet to send [09:59:01]*** Cut start [09:59:01]*** Partial cut [09:59:01]*** CUTSNS_PIN = 1 [09:59:01]*** CUTSNS_PIN = 0 [09:59:01]*** Brake cut motor [09:59:01]Read from MH i2c: 01 [09:59:01]MH_I2C_Read... [09:59:01]*** Stop cut motor [09:59:01]*** Cut end [09:59:01]Read from MH i2c: 01 07 00 [09:59:01]MH_I2C_Read... [09:59:01]Read from MH i2c: 01 07 00 9A 86 00 00 00 00 00 FF 0F 35 [09:59:01]process_action close_receipt done [09:59:01]requested_data is exist [09:59:01]produce_requested_data [09:59:01]requested_item fm.sn is exist - process it [09:59:01]wFMCommunicate request_size=4 [09:59:01]MH_SAM_APDU [09:59:01]CAPDU: 80 11 00 00 [09:59:01]Write to MH i2c: E2 08 00 9B 86 80 11 00 00 00 00 00 00 9B [09:59:01]Write i2c OK [09:59:01]MH_I2C_Read... [09:59:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:01]Read from MH i2c: E2 [09:59:01]MH_I2C_Read... [09:59:01]Read from MH i2c: E2 17 00 [09:59:01]MH_I2C_Read... [09:59:01]Read from MH i2c: E2 17 00 9B 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 EA [09:59:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:59:01]wFMCommunicate OK [09:59:01]requested_item fd.num is exist - process it [09:59:01]SAM_PROTO_GetFieldsCounters [09:59:01]wFMCommunicate request_size=4 [09:59:01]MH_SAM_APDU [09:59:01]CAPDU: 80 13 00 00 [09:59:01]Write to MH i2c: E2 08 00 9C 86 80 13 00 00 00 00 00 00 9E [09:59:01]Write i2c OK [09:59:01]MH_I2C_Read... [09:59:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:59:02]Read from MH i2c: E2 [09:59:02]MH_I2C_Read... [09:59:02]Read from MH i2c: E2 62 00 [09:59:02]MH_I2C_Read... [09:59:02]Read from MH i2c: E2 62 00 9C 86 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 EE 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [09:59:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 EE 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:59:02]wFMCommunicate OK [09:59:02]SAM_PROTO_GetFieldsCounters done [09:59:02]requested_item shift.num is exist - process it [09:59:02]requested_item shift.opened is exist - process it [09:59:02]req_shift_opened [09:59:02]FM_GetShiftState [09:59:02]SAM_PROTO_GetShiftState [09:59:02]wFMCommunicate request_size=4 [09:59:02]MH_SAM_APDU [09:59:02]CAPDU: 80 13 01 00 [09:59:02]Write to MH i2c: E2 08 00 9D 86 80 13 01 00 00 00 00 00 A0 [09:59:02]Write i2c OK [09:59:02]MH_I2C_Read... [09:59:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:02]Read from MH i2c: E2 [09:59:02]MH_I2C_Read... [09:59:02]Read from MH i2c: E2 0E 00 [09:59:02]MH_I2C_Read... [09:59:02]Read from MH i2c: E2 0E 00 9D 86 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 4C [09:59:02]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [09:59:02]wFMCommunicate OK [09:59:02]SAM_PROTO_GetShiftState done [09:59:02]FM_GetShiftState done [09:59:02]req_shift_opened done [09:59:02]requested_item shift.open_date is exist - process it [09:59:02]req_shift_open_date [09:59:02]req_shift_open_date done [09:59:02]produce_requested_data done [09:59:02]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29166,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [09:59:02]process_action_free close_receipt [09:59:02]json_value_free [09:59:02]json_value_free done [09:59:02]process_json_proto returns [09:59:02]Send response to host [09:59:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29166,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [09:59:02]free response buf [09:59:02]execute_script done [09:59:02]execute_script returns [09:59:02]free content buf [09:59:02]Sock 9.Close socket [09:59:02]Sock 9.Thread stoped [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:25]OFD Sender: No OFD packet to send [09:59:30]OFD Sender: No OFD packet to send [09:59:35]OFD Sender: No OFD packet to send [09:59:40]OFD Sender: No OFD packet to send [09:59:45]OFD Sender: No OFD packet to send [09:59:50]OFD Sender: No OFD packet to send [09:59:55]OFD Sender: No OFD packet to send [10:00:00]OFD Sender: No OFD packet to send [10:00:05]OFD Sender: No OFD packet to send [10:00:10]OFD Sender: No OFD packet to send [10:00:15]OFD Sender: No OFD packet to send [10:00:20]OFD Sender: No OFD packet to send [10:00:25]OFD Sender: No OFD packet to send [10:00:30]OFD Sender: No OFD packet to send [10:00:35]OFD Sender: No OFD packet to send [10:00:40]OFD Sender: No OFD packet to send [10:00:45]OFD Sender: No OFD packet to send [10:00:50]OFD Sender: No OFD packet to send [10:00:55]OFD Sender: No OFD packet to send [10:01:00]OFD Sender: No OFD packet to send [10:01:05]OFD Sender: No OFD packet to send [10:01:10]OFD Sender: No OFD packet to send [10:01:15]OFD Sender: No OFD packet to send [10:01:20]OFD Sender: No OFD packet to send [10:01:25]OFD Sender: No OFD packet to send [10:01:30]OFD Sender: No OFD packet to send [10:01:35]OFD Sender: No OFD packet to send [10:01:40]OFD Sender: No OFD packet to send [10:01:45]OFD Sender: No OFD packet to send [10:01:50]OFD Sender: No OFD packet to send [10:01:55]OFD Sender: No OFD packet to send [10:02:00]OFD Sender: No OFD packet to send [10:02:05]OFD Sender: No OFD packet to send [10:02:10]OFD Sender: No OFD packet to send [10:02:15]OFD Sender: No OFD packet to send [10:02:20]OFD Sender: No OFD packet to send [10:02:25]OFD Sender: No OFD packet to send [10:02:30]OFD Sender: No OFD packet to send [10:02:35]OFD Sender: No OFD packet to send [10:02:40]OFD Sender: No OFD packet to send [10:02:45]OFD Sender: No OFD packet to send [10:02:50]OFD Sender: No OFD packet to send [10:02:55]OFD Sender: No OFD packet to send [10:03:00]OFD Sender: No OFD packet to send [10:03:05]OFD Sender: No OFD packet to send [10:03:10]OFD Sender: No OFD packet to send [10:03:15]OFD Sender: No OFD packet to send [10:03:20]OFD Sender: No OFD packet to send [10:03:25]OFD Sender: No OFD packet to send [10:03:30]OFD Sender: No OFD packet to send [10:03:35]OFD Sender: No OFD packet to send [10:03:40]OFD Sender: No OFD packet to send [10:03:45]OFD Sender: No OFD packet to send [10:03:50]OFD Sender: No OFD packet to send [10:03:55]OFD Sender: No OFD packet to send [10:04:00]OFD Sender: No OFD packet to send [10:04:05]OFD Sender: No OFD packet to send [10:04:10]OFD Sender: No OFD packet to send [10:04:15]OFD Sender: No OFD packet to send [10:04:19]accept exits with 7 [10:04:19]New connection [10:04:19]New thread 3066928484 created [10:04:19]Thread 3066785124 joined [10:04:19]Waiting for new connection... [10:04:19] Sock 7.Parse request [10:04:19]Sock 7.Check first char [10:04:19]Sock 7.First char is OK [10:04:19]request: POST /json_proto HTTP/1.0 [10:04:19]Method: POST [10:04:19]URL: /json_proto [10:04:19]Method is POST - this is cgi request [10:04:19]url: /json_proto [10:04:19]query_string will be loaded in cgi processing [10:04:19]execute_cgi json_proto POST (null) [10:04:19]execute_cgi path=json_proto method=POST [10:04:19]POST find Content-Length [10:04:19]Host: 172.17.33.3:8080 [10:04:19]Content-Length: 675 [10:04:19]Content-Type: application/json [10:04:19] [10:04:19]POST finish read [10:04:19]Found Content-Length = 675 [10:04:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347540", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 19.910, "sum" : 1300.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:04:19]execute_script... [10:04: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)347540", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 19.910, "sum" : 1300.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:04:19]POST & json_proto [10:04:19]process_json_proto [10:04:19]json parsed OK: [10:04:19]protocol is kg_v1.0 [10:04:19]action value=close_receipt [10:04:19]process_action close_receipt [10:04:19]cmd_close_receipt [10:04:19]MH_GetDate [10:04:19]Write to MH i2c: F0 00 00 9E 86 13 [10:04:19]Write i2c OK [10:04:19]MH_I2C_Read... [10:04:19]Read from MH i2c: F0 [10:04:19]MH_I2C_Read... [10:04:19]Read from MH i2c: F0 09 00 [10:04:19]MH_I2C_Read... [10:04:19]Read from MH i2c: F0 09 00 9E 86 00 2C AA 1B 66 23 5B 8F 65 E5 [10:04:19]GetLastDocTimeStamp 1713088747 [10:04:19]current date 1713089068 [10:04:19]FM_GetShiftState [10:04:19]SAM_PROTO_GetShiftState [10:04:19]wFMCommunicate request_size=4 [10:04:19]MH_SAM_APDU [10:04:19]CAPDU: 80 13 01 00 [10:04:19]Write to MH i2c: E2 08 00 9F 86 80 13 01 00 00 00 00 00 A2 [10:04:19]Write i2c OK [10:04:19]MH_I2C_Read... [10:04:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:19]Read from MH i2c: E2 [10:04:19]MH_I2C_Read... [10:04:19]Read from MH i2c: E2 0E 00 [10:04:19]MH_I2C_Read... [10:04:19]Read from MH i2c: E2 0E 00 9F 86 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 4E [10:04:19]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [10:04:19]wFMCommunicate OK [10:04:19]SAM_PROTO_GetShiftState done [10:04:19]FM_GetShiftState done [10:04:19]opened in 1713053951 [10:04:19]opened+sec_in_day 1713140351 [10:04:19]quantity*price = 130012 [10:04:19]sum+1 = 130013 [10:04:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 1300.00 Внесено: 1300.00 СДАЧА: 0.00 НСП 1% : 11.50 НДС 12% : 138.07 Наличными: 1300.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 77 14.04.2024 10:04 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29167 ФПД: 158331941646271 1/tax-web-control/client/api/v1/ticket?date=20240414T100428&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29167&fm=158331941646271&tin=02508201610067®Number=0000138879044617&sum=130000 [10:04:20]StoreToDocumentArchive [10:04:20]shift 116 fd 29167 [10:04:20]save to /storage/0116/doc_00029167 [10:04:20]save last doc name /storage/0116/doc_00029167 to /storage/kkm_last_doc_name [10:04:20]save OK [10:04:20]Clear old archive folders... [10:04:20]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:04:20]tlvbuf is 012F3DB0 [10:04:20]SAM_PROTO_ClearQueue [10:04:20]wFMCommunicate request_size=4 [10:04:20]MH_SAM_APDU [10:04:20]CAPDU: 80 09 00 00 [10:04:20]Write to MH i2c: E2 08 00 AC 86 80 09 00 00 00 00 00 00 A4 [10:04:20]Write i2c OK [10:04:20]MH_I2C_Read... [10:04:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:04:20]Read from MH i2c: E2 [10:04:20]MH_I2C_Read... [10:04:20]Read from MH i2c: E2 03 00 [10:04:20]MH_I2C_Read... [10:04:20]Read from MH i2c: E2 03 00 AC 86 00 90 00 A6 [10:04:20]RAPDU: 90 00 [10:04:20]wFMCommunicate OK [10:04:20]SAM_PROTO_ClearQueue done [10:04:20]KKMCreateOFDPacket [10:04:20]OFDProtocolAddRootSTLVToBuf [10:04:20]FM_MakeSignedData [10:04:20]FM_MakeSignedData [10:04:20]SAM_PROTO_SignData [10:04:20]wFMCommunicate request_size=4 [10:04:20]MH_SAM_APDU [10:04:20]CAPDU: 80 0D 01 02 [10:04:20]Write to MH i2c: E2 08 00 AD 86 80 0D 01 02 00 00 00 00 AC [10:04:20]Write i2c OK [10:04:20]MH_I2C_Read... [10:04:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:04:20]Read from MH i2c: E2 [10:04:20]MH_I2C_Read... [10:04:20]Read from MH i2c: E2 03 00 [10:04:20]MH_I2C_Read... [10:04:20]Read from MH i2c: E2 03 00 AD 86 00 90 00 A7 [10:04:20]RAPDU: 90 00 [10:04:20]wFMCommunicate OK [10:04:20]wFMCommunicate request_size=255 [10:04:20]MH_SAM_APDU [10:04: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 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C6 4D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 DC FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 35 00 00 00 00 07 04 06 00 D0 FB 01 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 2C AA 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EF 71 00 00 35 04 06 00 [10:04:20]Write to MH i2c: E2 02 01 AE 86 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C6 4D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 DC FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 35 00 00 00 00 07 04 06 00 D0 FB 01 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 2C AA 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EF 71 00 00 35 04 06 00 00 00 B9 [10:04:20]Write i2c OK [10:04:20]MH_I2C_Read... [10:04:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:20]Read from MH i2c: E2 [10:04:20]MH_I2C_Read... [10:04:20]Read from MH i2c: E2 03 00 [10:04:20]MH_I2C_Read... [10:04:20]Read from MH i2c: E2 03 00 AE 86 00 90 00 A8 [10:04:20]RAPDU: 90 00 [10:04:20]wFMCommunicate OK [10:04:20]wFMCommunicate request_size=11 [10:04:20]MH_SAM_APDU [10:04:20]CAPDU: 80 0D 02 02 06 90 00 87 23 6F BF [10:04:20]Write to MH i2c: E2 0E 00 AF 86 80 0D 02 02 06 00 90 00 87 23 6F BF 00 00 23 [10:04:20]Write i2c OK [10:04:20]MH_I2C_Read... [10:04:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:20]Read from MH i2c: E2 [10:04:20]MH_I2C_Read... [10:04:20]Read from MH i2c: E2 03 00 [10:04:20]MH_I2C_Read... [10:04:20]Read from MH i2c: E2 03 00 AF 86 00 90 00 A9 [10:04:20]RAPDU: 90 00 [10:04:20]wFMCommunicate OK [10:04:20]wFMCommunicate request_size=4 [10:04:20]MH_SAM_APDU [10:04:20]CAPDU: 80 0D 03 02 [10:04:20]Write to MH i2c: E2 08 00 B0 86 80 0D 03 02 00 00 00 00 B1 [10:04:20]Write i2c OK [10:04:20]MH_I2C_Read... [10:04:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:04:20]Read from MH i2c: E2 [10:04:20]MH_I2C_Read... [10:04:20]Read from MH i2c: E2 0B 00 [10:04:20]MH_I2C_Read... [10:04:20]Read from MH i2c: E2 0B 00 B0 86 00 55 5E 8A 82 99 27 14 4C 90 00 91 [10:04:20]RAPDU: 55 5E 8A 82 99 27 14 4C 90 00 [10:04:20]wFMCommunicate OK [10:04:20]SAM_PROTO_SignData done [10:04:20]FM_MakeSignedData done [10:04:20]CreateOFDProtocolMessage [10:04:20]wFMCommunicate request_size=4 [10:04:20]MH_SAM_APDU [10:04:20]CAPDU: 80 11 00 00 [10:04:20]Write to MH i2c: E2 08 00 B1 86 80 11 00 00 00 00 00 00 B1 [10:04:20]Write i2c OK [10:04:20]MH_I2C_Read... [10:04:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:20]Read from MH i2c: E2 [10:04:20]MH_I2C_Read... [10:04:20]Read from MH i2c: E2 17 00 [10:04:20]MH_I2C_Read... [10:04:20]Read from MH i2c: E2 17 00 B1 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 00 [10:04:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:04:20]wFMCommunicate OK [10:04:20]CreateOFDProtocolMessage done [10:04:20]OFDSenderStorePacket 29167 [10:04:20]StoreOFDPacket docnum=29167 [10:04:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 82 D0 08 01 72 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 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C6 4D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 DC FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 35 00 00 00 00 07 04 06 00 D0 FB 01 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 2C AA 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EF 71 00 00 35 04 06 00 90 00 87 23 6F BF 55 5E 8A 82 99 27 14 4C [10:04:20]CheckFolder [10:04:20]dirname=/storage/ofd_packets [10:04:20]CheckFolder done [10:04:20]ProducePacketName [10:04:20]name=ofd_packets/00029167 [10:04:20]NVStorageSaveData ofd_packets/00029167 [10:04:20]File name is /storage/ofd_packets/00029167 [10:04:20]Write 302 bytes [10:04:20]NVStorageSaveData done [10:04:20]OFDSenderStorePacket done [10:04:20]KKMCreateOFDPacket done [10:04:20]NVStorageSaveData kkm_last_timestamp [10:04:20]File name is /storage/kkm_last_timestamp [10:04:20]Write 4 bytes [10:04:20]NVStorageSaveData done [10:04:20]ExternCall_PrintAddStr [10:04:20]wPrintStart [10:04:20]Write to MH i2c: 01 00 00 B2 86 38 [10:04:20]Write i2c OK [10:04:20]MH_I2C_Read... [10:04:20]Read from MH i2c: 01 [10:04:20]MH_I2C_Read... [10:04:20]Read from MH i2c: 01 07 00 [10:04:20]MH_I2C_Read... [10:04:20]Read from MH i2c: 01 07 00 B2 86 00 00 00 00 00 FF 0F 4D [10:04:20]RasterBufferAndPrint [10:04:20]line Счет N : (1)347540 [10:04:20]line ИНН: 02508201610067 [10:04:20]line Контрольно-Кассовый Чек [10:04:20]line ПРОДАЖА [10:04:20]line ТРК (МРК, ГНК) : 22 [10:04:20]line Товар: 2710124130 [10:04:20]line SUPER-92-К-5 [10:04:20]line 19.910 * 65.30 [10:04:20]line = 1300.12 [10:04:20]line НДС 12% НСП 1% [10:04:20]line > о реализуемом товаре [10:04:20]line ОКРУГЛЕНИЕ: -0.12 [10:04:20]line ИТОГО: 1300.00 [10:04:20]line Внесено: 1300.00 [10:04:20]line СДАЧА: 0.00 [10:04:20]line НСП 1% : 11.50 [10:04:20]line НДС 12% : 138.07 [10:04:20]line Наличными: 1300.00 [10:04:20]line Безнал.: 0.00 [10:04:20]line Место: АЗС № 108 "Партнер Нефть" [10:04:20]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:04:20]line СНО: Общий режим [10:04:20]line Чек 77 14.04.2024 10:04 [10:04:20]line Смена: 116 ФФД: 1.0 [10:04:20]line ЗНМ: 0300000027 [10:04:20]line РНМ: 0000138879044617 [10:04:20]line Версия ККМ: 001 [10:04:20]line ФМ: 0000000000963154 [10:04:20]line ФД: 29167 [10:04:20]line ФПД: 158331941646271 [10:04:20]line 1/tax-web-control/client/api/v1/ticket?date=20240414T100428&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29167&fm=158331941646271&tin=02508201610067®Number=0000138879044617&sum=130000 [10:04:21]OFD Sender: Processing packet 29167 [packets to send 8, broken 7] [10:04:21]ProducePacketName [10:04:21]name=ofd_packets/00029167 [10:04:21]OFD Sender: To server: pG, [10:04:21]CommunicateWithHost lk.salyk.kg:30040 [10:04:21]ConnectInit lk.salyk.kg [10:04:21]written 0, free lines is 4095 [10:04:21]Connected sock=10 [10:04:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 82 D0 08 01 72 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 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C6 4D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 DC FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 35 00 00 00 00 07 04 06 00 D0 FB 01 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 2C AA 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EF 71 00 00 35 04 06 00 90 00 87 23 6F BF 55 5E 8A 82 99 27 14 4C [10:04:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 DF 54 47 00 3B 86 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EF 71 00 00 F4 03 04 00 D1 54 1B 66 B6 04 01 00 00 11 0D AF D4 7C B6 F8 CA [10:04:21]CommunicateWithHost err = 0 [10:04:21]CheckOFDResponse [10:04:21]1017 (14) - 77093643461234 [10:04:21]1041 (16) - 0000000000963154 [10:04:21]1040 (4) - 29167 [10:04:21]1012 (4) - 14.04.2024 04:00 [10:04:21]1206 (1) - 0 [10:04:21]OFD Sender: Remove packet 29167 [10:04:21]ProducePacketName [10:04:21]name=ofd_packets/00029167 [10:04:21]NVStorageDeleteData [10:04:21]Write to MH i2c: 01 00 00 DC 86 62 [10:04:21]Write i2c OK [10:04:21]MH_I2C_Read... [10:04:21]Read from MH i2c: 01 [10:04:21]MH_I2C_Read... [10:04:21]Read from MH i2c: 01 07 00 [10:04:21]MH_I2C_Read... [10:04:21]Read from MH i2c: 01 07 00 DC 86 00 00 00 00 00 C0 0C 35 [10:04:21]RasterBufferAndPrint [10:04:21]line [10:04:21]line [10:04:21]line [10:04:21]line [10:04:21]line [10:04:21]written 0, free lines is 3270 [10:04:21]MH_Cut [10:04:21]Write to MH i2c: D1 01 00 E3 86 01 3B [10:04:21]Write i2c OK [10:04:21]MH_I2C_Read... [10:04:21]Read from MH i2c: D1 [10:04:21]MH_I2C_Read... [10:04:21]Read from MH i2c: D1 01 00 [10:04:21]MH_I2C_Read... [10:04:21]Read from MH i2c: D1 01 00 E3 86 00 3A [10:04:21]Write to MH i2c: 01 00 00 E4 86 6A [10:04:21]Write i2c OK [10:04:21]MH_I2C_Read... [10:04:21]OFD Sender: No OFD packet to send [10:04:22]*** Cut start [10:04:22]*** Partial cut [10:04:22]*** CUTSNS_PIN = 1 [10:04:22]*** CUTSNS_PIN = 0 [10:04:22]*** Brake cut motor [10:04:23]Read from MH i2c: 01 [10:04:23]MH_I2C_Read... [10:04:23]*** Stop cut motor [10:04:23]*** Cut end [10:04:23]Read from MH i2c: 01 07 00 [10:04:23]MH_I2C_Read... [10:04:23]Read from MH i2c: 01 07 00 E4 86 00 00 00 00 00 FF 0F 7F [10:04:23]process_action close_receipt done [10:04:23]requested_data is exist [10:04:23]produce_requested_data [10:04:23]requested_item fm.sn is exist - process it [10:04:23]wFMCommunicate request_size=4 [10:04:23]MH_SAM_APDU [10:04:23]CAPDU: 80 11 00 00 [10:04:23]Write to MH i2c: E2 08 00 E5 86 80 11 00 00 00 00 00 00 E5 [10:04:23]Write i2c OK [10:04:23]MH_I2C_Read... [10:04:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:23]Read from MH i2c: E2 [10:04:23]MH_I2C_Read... [10:04:23]Read from MH i2c: E2 17 00 [10:04:23]MH_I2C_Read... [10:04:23]Read from MH i2c: E2 17 00 E5 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 34 [10:04:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:04:23]wFMCommunicate OK [10:04:23]requested_item fd.num is exist - process it [10:04:23]SAM_PROTO_GetFieldsCounters [10:04:23]wFMCommunicate request_size=4 [10:04:23]MH_SAM_APDU [10:04:23]CAPDU: 80 13 00 00 [10:04:23]Write to MH i2c: E2 08 00 E6 86 80 13 00 00 00 00 00 00 E8 [10:04:23]Write i2c OK [10:04:23]MH_I2C_Read... [10:04:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:04:23]Read from MH i2c: E2 [10:04:23]MH_I2C_Read... [10:04:23]Read from MH i2c: E2 62 00 [10:04:23]MH_I2C_Read... [10:04:23]Read from MH i2c: E2 62 00 E6 86 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 EF 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 E1 [10:04:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 EF 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:04:23]wFMCommunicate OK [10:04:23]SAM_PROTO_GetFieldsCounters done [10:04:23]requested_item shift.num is exist - process it [10:04:23]requested_item shift.opened is exist - process it [10:04:23]req_shift_opened [10:04:23]FM_GetShiftState [10:04:23]SAM_PROTO_GetShiftState [10:04:23]wFMCommunicate request_size=4 [10:04:23]MH_SAM_APDU [10:04:23]CAPDU: 80 13 01 00 [10:04:23]Write to MH i2c: E2 08 00 E7 86 80 13 01 00 00 00 00 00 EA [10:04:23]Write i2c OK [10:04:23]MH_I2C_Read... [10:04:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:23]Read from MH i2c: E2 [10:04:23]MH_I2C_Read... [10:04:23]Read from MH i2c: E2 0E 00 [10:04:23]MH_I2C_Read... [10:04:23]Read from MH i2c: E2 0E 00 E7 86 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 96 [10:04:23]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [10:04:23]wFMCommunicate OK [10:04:23]SAM_PROTO_GetShiftState done [10:04:23]FM_GetShiftState done [10:04:23]req_shift_opened done [10:04:23]requested_item shift.open_date is exist - process it [10:04:23]req_shift_open_date [10:04:23]req_shift_open_date done [10:04:23]produce_requested_data done [10:04:23]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29167,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [10:04:23]process_action_free close_receipt [10:04:23]json_value_free [10:04:23]json_value_free done [10:04:23]process_json_proto returns [10:04:23]Send response to host [10:04:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29167,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [10:04:23]free response buf [10:04:23]execute_script done [10:04:23]execute_script returns [10:04:23]free content buf [10:04:23]Sock 7.Close socket [10:04:23]Sock 7.Thread stoped [10:04:24]accept exits with 9 [10:04:24]New connection [10:04:24]New thread 3066785124 created [10:04:24]Thread 3066928484 joined [10:04:24]Waiting for new connection... [10:04:24] Sock 9.Parse request [10:04:24]Sock 9.Check first char [10:04:24]Sock 9.First char is OK [10:04:24]request: POST /json_proto HTTP/1.0 [10:04:24]Method: POST [10:04:24]URL: /json_proto [10:04:24]Method is POST - this is cgi request [10:04:24]url: /json_proto [10:04:24]query_string will be loaded in cgi processing [10:04:24]execute_cgi json_proto POST (null) [10:04:24]execute_cgi path=json_proto method=POST [10:04:24]POST find Content-Length [10:04:24]Host: 172.17.33.3:8080 [10:04:24]Content-Length: 834 [10:04:24]Content-Type: application/json [10:04:24] [10:04:24]POST finish read [10:04:24]Found Content-Length = 834 [10:04:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347539", "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.000, "sum" : 979.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 979.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:04:24]execute_script... [10: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 : (1)347539", "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.000, "sum" : 979.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 979.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:04:24]POST & json_proto [10:04:24]process_json_proto [10:04:24]json parsed OK: [10:04:24]protocol is kg_v1.0 [10:04:24]action value=close_receipt [10:04:24]process_action close_receipt [10:04:24]cmd_close_receipt [10:04:24]MH_GetDate [10:04:24]Write to MH i2c: F0 00 00 E8 86 5D [10:04:24]Write i2c OK [10:04:24]MH_I2C_Read... [10:04:24]Read from MH i2c: F0 [10:04:24]MH_I2C_Read... [10:04:24]Read from MH i2c: F0 09 00 [10:04:24]MH_I2C_Read... [10:04:24]Read from MH i2c: F0 09 00 E8 86 00 31 AA 1B 66 23 5B 8F 65 34 [10:04:24]GetLastDocTimeStamp 1713089068 [10:04:24]current date 1713089073 [10:04:24]FM_GetShiftState [10:04:24]SAM_PROTO_GetShiftState [10:04:24]wFMCommunicate request_size=4 [10:04:24]MH_SAM_APDU [10:04:24]CAPDU: 80 13 01 00 [10:04:24]Write to MH i2c: E2 08 00 E9 86 80 13 01 00 00 00 00 00 EC [10:04:24]Write i2c OK [10:04:24]MH_I2C_Read... [10:04:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:24]Read from MH i2c: E2 [10:04:24]MH_I2C_Read... [10:04:24]Read from MH i2c: E2 0E 00 [10:04:24]MH_I2C_Read... [10:04:24]Read from MH i2c: E2 0E 00 E9 86 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 98 [10:04:24]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [10:04:24]wFMCommunicate OK [10:04:24]SAM_PROTO_GetShiftState done [10:04:24]FM_GetShiftState done [10:04:24]opened in 1713053951 [10:04:24]opened+sec_in_day 1713140351 [10:04:24]quantity*price = 97950 [10:04:24]sum+1 = 97951 [10:04:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 979.50 НСП 1% : 8.67 НДС 12% : 104.02 Наличными: 0.00 Безнал.: 979.50 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 78 14.04.2024 10:04 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 29168 ФПД: 106543883948196 1/tax-web-control/client/api/v1/ticket?date=20240414T100433&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29168&fm=106543883948196&tin=02508201610067®Number=0000138879044617&sum=97950 [10:04:25]StoreToDocumentArchive [10:04:25]shift 116 fd 29168 [10:04:25]save to /storage/0116/doc_00029168 [10:04:25]save last doc name /storage/0116/doc_00029168 to /storage/kkm_last_doc_name [10:04:25]save OK [10:04:25]Clear old archive folders... [10:04:25]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:04:25]tlvbuf is 01384B00 [10:04:25]SAM_PROTO_ClearQueue [10:04:25]wFMCommunicate request_size=4 [10:04:25]MH_SAM_APDU [10:04:25]CAPDU: 80 09 00 00 [10:04:25]Write to MH i2c: E2 08 00 F6 86 80 09 00 00 00 00 00 00 EE [10:04:25]Write i2c OK [10:04:25]MH_I2C_Read... [10:04:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:04:25]Read from MH i2c: E2 [10:04:25]MH_I2C_Read... [10:04:25]Read from MH i2c: E2 03 00 [10:04:25]MH_I2C_Read... [10:04:25]Read from MH i2c: E2 03 00 F6 86 00 90 00 F0 [10:04:25]RAPDU: 90 00 [10:04:25]wFMCommunicate OK [10:04:25]SAM_PROTO_ClearQueue done [10:04:25]KKMCreateOFDPacket [10:04:25]OFDProtocolAddRootSTLVToBuf [10:04:25]FM_MakeSignedData [10:04:25]FM_MakeSignedData [10:04:25]SAM_PROTO_SignData [10:04:25]wFMCommunicate request_size=4 [10:04:25]MH_SAM_APDU [10:04:25]CAPDU: 80 0D 01 02 [10:04:25]Write to MH i2c: E2 08 00 F7 86 80 0D 01 02 00 00 00 00 F6 [10:04:25]Write i2c OK [10:04:25]MH_I2C_Read... [10:04:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:04:25]Read from MH i2c: E2 [10:04:25]MH_I2C_Read... [10:04:25]Read from MH i2c: E2 03 00 [10:04:25]MH_I2C_Read... [10:04:25]Read from MH i2c: E2 03 00 F7 86 00 90 00 F1 [10:04:25]RAPDU: 90 00 [10:04:25]wFMCommunicate OK [10:04:25]wFMCommunicate request_size=255 [10:04:25]MH_SAM_APDU [10:04:25]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 9E 7E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9E 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 A2 28 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9E 7E 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 31 AA 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F0 71 00 00 35 04 06 00 [10:04:26]Write to MH i2c: E2 02 01 F8 86 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 9E 7E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9E 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 A2 28 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9E 7E 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 31 AA 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F0 71 00 00 35 04 06 00 00 00 3A [10:04:26]Write i2c OK [10:04:26]MH_I2C_Read... [10:04:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:26]Read from MH i2c: E2 [10:04:26]MH_I2C_Read... [10:04:26]Read from MH i2c: E2 03 00 [10:04:26]MH_I2C_Read... [10:04:26]Read from MH i2c: E2 03 00 F8 86 00 90 00 F2 [10:04:26]RAPDU: 90 00 [10:04:26]wFMCommunicate OK [10:04:26]wFMCommunicate request_size=11 [10:04:26]MH_SAM_APDU [10:04:26]CAPDU: 80 0D 02 02 06 60 E6 AE 5B 10 A4 [10:04:26]Write to MH i2c: E2 0E 00 F9 86 80 0D 02 02 06 00 60 E6 AE 5B 10 A4 00 00 08 [10:04:26]Write i2c OK [10:04:26]MH_I2C_Read... [10:04:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:26]Read from MH i2c: E2 [10:04:26]MH_I2C_Read... [10:04:26]Read from MH i2c: E2 03 00 [10:04:26]MH_I2C_Read... [10:04:26]Read from MH i2c: E2 03 00 F9 86 00 90 00 F3 [10:04:26]RAPDU: 90 00 [10:04:26]wFMCommunicate OK [10:04:26]wFMCommunicate request_size=4 [10:04:26]MH_SAM_APDU [10:04:26]CAPDU: 80 0D 03 02 [10:04:26]Write to MH i2c: E2 08 00 FA 86 80 0D 03 02 00 00 00 00 FB [10:04:26]Write i2c OK [10:04:26]MH_I2C_Read... [10:04:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:04:26]Read from MH i2c: E2 [10:04:26]MH_I2C_Read... [10:04:26]Read from MH i2c: E2 0B 00 [10:04:26]MH_I2C_Read... [10:04:26]Read from MH i2c: E2 0B 00 FA 86 00 E2 C7 0F 0E 02 10 83 DF 90 00 36 [10:04:26]RAPDU: E2 C7 0F 0E 02 10 83 DF 90 00 [10:04:26]wFMCommunicate OK [10:04:26]SAM_PROTO_SignData done [10:04:26]FM_MakeSignedData done [10:04:26]CreateOFDProtocolMessage [10:04:26]wFMCommunicate request_size=4 [10:04:26]MH_SAM_APDU [10:04:26]CAPDU: 80 11 00 00 [10:04:26]Write to MH i2c: E2 08 00 FB 86 80 11 00 00 00 00 00 00 FB [10:04:26]Write i2c OK [10:04:26]MH_I2C_Read... [10:04:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:26]Read from MH i2c: E2 [10:04:26]MH_I2C_Read... [10:04:26]Read from MH i2c: E2 17 00 [10:04:26]MH_I2C_Read... [10:04:26]Read from MH i2c: E2 17 00 FB 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 4A [10:04:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:04:26]wFMCommunicate OK [10:04:26]CreateOFDProtocolMessage done [10:04:26]OFDSenderStorePacket 29168 [10:04:26]StoreOFDPacket docnum=29168 [10:04:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 43 42 08 01 B4 2F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 9E 7E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9E 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 A2 28 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9E 7E 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 31 AA 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F0 71 00 00 35 04 06 00 60 E6 AE 5B 10 A4 E2 C7 0F 0E 02 10 83 DF [10:04:26]CheckFolder [10:04:26]dirname=/storage/ofd_packets [10:04:26]CheckFolder done [10:04:26]ProducePacketName [10:04:26]name=ofd_packets/00029168 [10:04:26]NVStorageSaveData ofd_packets/00029168 [10:04:26]File name is /storage/ofd_packets/00029168 [10:04:26]Write 302 bytes [10:04:26]NVStorageSaveData done [10:04:26]OFDSenderStorePacket done [10:04:26]KKMCreateOFDPacket done [10:04:26]NVStorageSaveData kkm_last_timestamp [10:04:26]File name is /storage/kkm_last_timestamp [10:04:26]Write 4 bytes [10:04:26]NVStorageSaveData done [10:04:26]ExternCall_PrintAddStr [10:04:26]wPrintStart [10:04:26]Write to MH i2c: 01 00 00 FC 86 82 [10:04:26]Write i2c OK [10:04:26]MH_I2C_Read... [10:04:26]Read from MH i2c: 01 [10:04:26]MH_I2C_Read... [10:04:26]Read from MH i2c: 01 07 00 [10:04:26]MH_I2C_Read... [10:04:26]Read from MH i2c: 01 07 00 FC 86 00 00 00 00 00 FF 0F 97 [10:04:26]RasterBufferAndPrint [10:04:26]line Счет N : (1)347539 [10:04:26]line ИНН: 02508201610067 [10:04:26]line Контрольно-Кассовый Чек [10:04:26]line ПРОДАЖА [10:04:26]line ТРК (МРК, ГНК) : 31 [10:04:26]line Товар: 2710124130 [10:04:26]line SUPER-92-К-5 [10:04:26]line 15.000 * 65.30 [10:04:26]line = 979.50 [10:04:26]line НДС 12% НСП 1% [10:04:26]line > о реализуемом товаре [10:04:26]line ИТОГО: 979.50 [10:04:26]line НСП 1% : 8.67 [10:04:26]line НДС 12% : 104.02 [10:04:26]line Наличными: 0.00 [10:04:26]line Безнал.: 979.50 [10:04:26]line Место: АЗС № 108 "Партнер Нефть" [10:04:26]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:04:26]line СНО: Общий режим [10:04:26]line Чек 78 14.04.2024 10:04 [10:04:26]line Смена: 116 ФФД: 1.0 [10:04:26]line ЗНМ: 0300000027 [10:04:26]line РНМ: 0000138879044617 [10:04:26]line Версия ККМ: 001 [10:04:26]line Платежная система: АКБ Кыргызстан [10:04:26]line ФМ: 0000000000963154 [10:04:26]line ФД: 29168 [10:04:26]line ФПД: 106543883948196 [10:04:26]line 1/tax-web-control/client/api/v1/ticket?date=20240414T100433&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29168&fm=106543883948196&tin=02508201610067®Number=0000138879044617&sum=97950 [10:04:26]OFD Sender: Processing packet 29168 [packets to send 8, broken 7] [10:04:26]ProducePacketName [10:04:26]name=ofd_packets/00029168 [10:04:26]OFD Sender: To server: pG, [10:04:26]CommunicateWithHost lk.salyk.kg:30040 [10:04:26]ConnectInit lk.salyk.kg [10:04:26]written 0, free lines is 4095 [10:04:26]Connected sock=10 [10:04:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 43 42 08 01 B4 2F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 9E 7E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9E 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 A2 28 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9E 7E 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 31 AA 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F0 71 00 00 35 04 06 00 60 E6 AE 5B 10 A4 E2 C7 0F 0E 02 10 83 DF [10:04:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 81 33 47 00 88 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 39 36 33 31 35 34 10 04 04 00 F0 71 00 00 F4 03 04 00 D6 54 1B 66 B6 04 01 00 00 B8 EB AC E5 BB 3F C2 D8 [10:04:26]CommunicateWithHost err = 0 [10:04:26]CheckOFDResponse [10:04:26]1017 (14) - 77093643461234 [10:04:26]1041 (16) - 0000000000963154 [10:04:26]1040 (4) - 29168 [10:04:26]1012 (4) - 14.04.2024 04:00 [10:04:26]1206 (1) - 0 [10:04:26]OFD Sender: Remove packet 29168 [10:04:26]ProducePacketName [10:04:26]name=ofd_packets/00029168 [10:04:26]NVStorageDeleteData [10:04:26]Write to MH i2c: 01 00 00 25 87 AC [10:04:26]Write i2c OK [10:04:26]MH_I2C_Read... [10:04:26]Read from MH i2c: 01 [10:04:26]MH_I2C_Read... [10:04:26]Read from MH i2c: 01 07 00 [10:04:26]MH_I2C_Read... [10:04:26]Read from MH i2c: 01 07 00 25 87 00 00 00 00 00 EF 0C AE [10:04:26]RasterBufferAndPrint [10:04:26]line [10:04:26]line [10:04:26]line [10:04:26]line [10:04:26]line [10:04:26]written 0, free lines is 3326 [10:04:26]MH_Cut [10:04:26]Write to MH i2c: D1 01 00 2C 87 01 85 [10:04:26]Write i2c OK [10:04:26]MH_I2C_Read... [10:04:26]Read from MH i2c: D1 [10:04:26]MH_I2C_Read... [10:04:26]Read from MH i2c: D1 01 00 [10:04:26]MH_I2C_Read... [10:04:26]Read from MH i2c: D1 01 00 2C 87 00 84 [10:04:26]Write to MH i2c: 01 00 00 2D 87 B4 [10:04:26]Write i2c OK [10:04:26]MH_I2C_Read... [10:04:27]OFD Sender: No OFD packet to send [10:04:27]*** Cut start [10:04:27]*** Partial cut [10:04:27]*** CUTSNS_PIN = 1 [10:04:27]*** CUTSNS_PIN = 0 [10:04:28]*** Brake cut motor [10:04:28]Read from MH i2c: 01 [10:04:28]MH_I2C_Read... [10:04:28]*** Stop cut motor [10:04:28]*** Cut end [10:04:28]Read from MH i2c: 01 07 00 [10:04:28]MH_I2C_Read... [10:04:28]Read from MH i2c: 01 07 00 2D 87 00 00 00 00 00 FF 0F C9 [10:04:28]process_action close_receipt done [10:04:28]requested_data is exist [10:04:28]produce_requested_data [10:04:28]requested_item fm.sn is exist - process it [10:04:28]wFMCommunicate request_size=4 [10:04:28]MH_SAM_APDU [10:04:28]CAPDU: 80 11 00 00 [10:04:28]Write to MH i2c: E2 08 00 2E 87 80 11 00 00 00 00 00 00 2F [10:04:28]Write i2c OK [10:04:28]MH_I2C_Read... [10:04:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:28]Read from MH i2c: E2 [10:04:28]MH_I2C_Read... [10:04:28]Read from MH i2c: E2 17 00 [10:04:28]MH_I2C_Read... [10:04:28]Read from MH i2c: E2 17 00 2E 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 7E [10:04:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:04:28]wFMCommunicate OK [10:04:28]requested_item fd.num is exist - process it [10:04:28]SAM_PROTO_GetFieldsCounters [10:04:28]wFMCommunicate request_size=4 [10:04:28]MH_SAM_APDU [10:04:28]CAPDU: 80 13 00 00 [10:04:28]Write to MH i2c: E2 08 00 2F 87 80 13 00 00 00 00 00 00 32 [10:04:28]Write i2c OK [10:04:28]MH_I2C_Read... [10:04:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:04:28]Read from MH i2c: E2 [10:04:28]MH_I2C_Read... [10:04:28]Read from MH i2c: E2 62 00 [10:04:28]MH_I2C_Read... [10:04:28]Read from MH i2c: E2 62 00 2F 87 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F0 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 2F [10:04:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F0 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:04:28]wFMCommunicate OK [10:04:28]SAM_PROTO_GetFieldsCounters done [10:04:28]requested_item shift.num is exist - process it [10:04:28]requested_item shift.opened is exist - process it [10:04:28]req_shift_opened [10:04:28]FM_GetShiftState [10:04:28]SAM_PROTO_GetShiftState [10:04:28]wFMCommunicate request_size=4 [10:04:28]MH_SAM_APDU [10:04:28]CAPDU: 80 13 01 00 [10:04:28]Write to MH i2c: E2 08 00 30 87 80 13 01 00 00 00 00 00 34 [10:04:28]Write i2c OK [10:04:28]MH_I2C_Read... [10:04:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:28]Read from MH i2c: E2 [10:04:28]MH_I2C_Read... [10:04:28]Read from MH i2c: E2 0E 00 [10:04:28]MH_I2C_Read... [10:04:28]Read from MH i2c: E2 0E 00 30 87 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 E0 [10:04:28]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [10:04:28]wFMCommunicate OK [10:04:28]SAM_PROTO_GetShiftState done [10:04:28]FM_GetShiftState done [10:04:28]req_shift_opened done [10:04:28]requested_item shift.open_date is exist - process it [10:04:28]req_shift_open_date [10:04:28]req_shift_open_date done [10:04:28]produce_requested_data done [10:04:28]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29168,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [10:04:28]process_action_free close_receipt [10:04:28]json_value_free [10:04:28]json_value_free done [10:04:28]process_json_proto returns [10:04:28]Send response to host [10:04:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29168,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [10:04:28]free response buf [10:04:28]execute_script done [10:04:28]execute_script returns [10:04:28]free content buf [10:04:28]Sock 9.Close socket [10:04:28]Sock 9.Thread stoped [10:04:32]OFD Sender: No OFD packet to send [10:04:37]OFD Sender: No OFD packet to send [10:04:42]OFD Sender: No OFD packet to send [10:04:47]OFD Sender: No OFD packet to send [10:04:52]OFD Sender: No OFD packet to send [10:04:57]OFD Sender: No OFD packet to send [10:05:02]OFD Sender: No OFD packet to send [10:05:07]OFD Sender: No OFD packet to send [10:05:12]OFD Sender: No OFD packet to send [10:05:17]OFD Sender: No OFD packet to send [10:05:22]OFD Sender: No OFD packet to send [10:05:27]OFD Sender: No OFD packet to send [10:05:32]OFD Sender: No OFD packet to send [10:05:37]OFD Sender: No OFD packet to send [10:05:42]OFD Sender: No OFD packet to send [10:05:47]OFD Sender: No OFD packet to send [10:05:52]OFD Sender: No OFD packet to send [10:05:57]OFD Sender: No OFD packet to send [10:06:02]OFD Sender: No OFD packet to send [10:06:07]OFD Sender: No OFD packet to send [10:06:12]OFD Sender: No OFD packet to send [10:06:17]OFD Sender: No OFD packet to send [10:06:22]OFD Sender: No OFD packet to send [10:06:27]OFD Sender: No OFD packet to send [10:06:32]OFD Sender: No OFD packet to send [10:06:37]OFD Sender: No OFD packet to send [10:06:42]OFD Sender: No OFD packet to send [10:06:47]OFD Sender: No OFD packet to send [10:06:52]OFD Sender: No OFD packet to send [10:06:57]OFD Sender: No OFD packet to send [10:07:02]OFD Sender: No OFD packet to send [10:07:07]OFD Sender: No OFD packet to send [10:07:12]OFD Sender: No OFD packet to send [10:07:17]OFD Sender: No OFD packet to send [10:07:22]OFD Sender: No OFD packet to send [10:07:27]OFD Sender: No OFD packet to send [10:07:32]OFD Sender: No OFD packet to send [10:07:37]OFD Sender: No OFD packet to send [10:07:42]OFD Sender: No OFD packet to send [10:07:47]OFD Sender: No OFD packet to send [10:07:52]OFD Sender: No OFD packet to send [10:07:57]OFD Sender: No OFD packet to send [10:08:02]OFD Sender: No OFD packet to send [10:08:07]OFD Sender: No OFD packet to send [10:08:12]OFD Sender: No OFD packet to send [10:08:17]OFD Sender: No OFD packet to send [10:08:22]OFD Sender: No OFD packet to send [10:08:27]accept exits with 7 [10:08:27]New connection [10:08:27]New thread 3066928484 created [10:08:27]Thread 3066785124 joined [10:08:27]Waiting for new connection... [10:08:27]OFD Sender: No OFD packet to send [10:08:27] Sock 7.Parse request [10:08:27]Sock 7.Check first char [10:08:27]Sock 7.First char is OK [10:08:27]request: POST /json_proto HTTP/1.0 [10:08:27]Method: POST [10:08:27]URL: /json_proto [10:08:27]Method is POST - this is cgi request [10:08:27]url: /json_proto [10:08:27]query_string will be loaded in cgi processing [10:08:27]execute_cgi json_proto POST (null) [10:08:27]execute_cgi path=json_proto method=POST [10:08:27]POST find Content-Length [10:08:27]Host: 172.17.33.3:8080 [10:08:27]Content-Length: 810 [10:08:27]Content-Type: application/json [10:08:27] [10:08:27]POST finish read [10:08:27]Found Content-Length = 810 [10:08:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347541", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 11.490, "sum" : 750.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 750.30 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:08:27]execute_script... [10:08: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)347541", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 11.490, "sum" : 750.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 750.30 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:08:27]POST & json_proto [10:08:27]process_json_proto [10:08:27]json parsed OK: [10:08:27]protocol is kg_v1.0 [10:08:27]action value=close_receipt [10:08:27]process_action close_receipt [10:08:27]cmd_close_receipt [10:08:27]MH_GetDate [10:08:27]Write to MH i2c: F0 00 00 31 87 A7 [10:08:27]Write i2c OK [10:08:27]MH_I2C_Read... [10:08:27]Read from MH i2c: F0 [10:08:27]MH_I2C_Read... [10:08:27]Read from MH i2c: F0 09 00 [10:08:27]MH_I2C_Read... [10:08:27]Read from MH i2c: F0 09 00 31 87 00 25 AB 1B 66 23 5B 8F 65 73 [10:08:27]GetLastDocTimeStamp 1713089073 [10:08:27]current date 1713089317 [10:08:27]FM_GetShiftState [10:08:27]SAM_PROTO_GetShiftState [10:08:27]wFMCommunicate request_size=4 [10:08:27]MH_SAM_APDU [10:08:27]CAPDU: 80 13 01 00 [10:08:27]Write to MH i2c: E2 08 00 32 87 80 13 01 00 00 00 00 00 36 [10:08:27]Write i2c OK [10:08:27]MH_I2C_Read... [10:08:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:27]Read from MH i2c: E2 [10:08:27]MH_I2C_Read... [10:08:27]Read from MH i2c: E2 0E 00 [10:08:27]MH_I2C_Read... [10:08:27]Read from MH i2c: E2 0E 00 32 87 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 E2 [10:08:27]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [10:08:27]wFMCommunicate OK [10:08:27]SAM_PROTO_GetShiftState done [10:08:27]FM_GetShiftState done [10:08:27]opened in 1713053951 [10:08:27]opened+sec_in_day 1713140351 [10:08:27]quantity*price = 75029 [10:08:27]sum+1 = 75031 [10:08:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 750.30 НСП 1% : 6.64 НДС 12% : 79.68 Наличными: 0.00 Безнал.: 750.30 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 79 14.04.2024 10:08 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 29169 ФПД: 36083746199984 1/tax-web-control/client/api/v1/ticket?date=20240414T100837&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29169&fm=36083746199984&tin=02508201610067®Number=0000138879044617&sum=75030 [10:08:28]StoreToDocumentArchive [10:08:28]shift 116 fd 29169 [10:08:28]save to /storage/0116/doc_00029169 [10:08:28]save last doc name /storage/0116/doc_00029169 to /storage/kkm_last_doc_name [10:08:28]save OK [10:08:28]Clear old archive folders... [10:08:28]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:08:28]tlvbuf is 011CB0F0 [10:08:28]SAM_PROTO_ClearQueue [10:08:28]wFMCommunicate request_size=4 [10:08:28]MH_SAM_APDU [10:08:28]CAPDU: 80 09 00 00 [10:08:28]Write to MH i2c: E2 08 00 3F 87 80 09 00 00 00 00 00 00 38 [10:08:28]Write i2c OK [10:08:28]MH_I2C_Read... [10:08:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:08:28]Read from MH i2c: E2 [10:08:28]MH_I2C_Read... [10:08:28]Read from MH i2c: E2 03 00 [10:08:28]MH_I2C_Read... [10:08:28]Read from MH i2c: E2 03 00 3F 87 00 90 00 3A [10:08:28]RAPDU: 90 00 [10:08:28]wFMCommunicate OK [10:08:28]SAM_PROTO_ClearQueue done [10:08:28]KKMCreateOFDPacket [10:08:28]OFDProtocolAddRootSTLVToBuf [10:08:28]FM_MakeSignedData [10:08:28]FM_MakeSignedData [10:08:28]SAM_PROTO_SignData [10:08:28]wFMCommunicate request_size=4 [10:08:28]MH_SAM_APDU [10:08:28]CAPDU: 80 0D 01 02 [10:08:28]Write to MH i2c: E2 08 00 40 87 80 0D 01 02 00 00 00 00 40 [10:08:28]Write i2c OK [10:08:28]MH_I2C_Read... [10:08:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:08:28]Read from MH i2c: E2 [10:08:28]MH_I2C_Read... [10:08:28]Read from MH i2c: E2 03 00 [10:08:28]MH_I2C_Read... [10:08:28]Read from MH i2c: E2 03 00 40 87 00 90 00 3B [10:08:28]RAPDU: 90 00 [10:08:28]wFMCommunicate OK [10:08:28]wFMCommunicate request_size=255 [10:08:28]MH_SAM_APDU [10:08:28]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E2 2C 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 16 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 25 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 1F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 16 25 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 25 AB 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F1 71 00 00 35 04 06 00 [10:08:28]Write to MH i2c: E2 02 01 41 87 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E2 2C 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 16 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 25 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 1F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 16 25 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 25 AB 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F1 71 00 00 35 04 06 00 00 00 BD [10:08:28]Write i2c OK [10:08:28]MH_I2C_Read... [10:08:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:29]Read from MH i2c: E2 [10:08:29]MH_I2C_Read... [10:08:29]Read from MH i2c: E2 03 00 [10:08:29]MH_I2C_Read... [10:08:29]Read from MH i2c: E2 03 00 41 87 00 90 00 3C [10:08:29]RAPDU: 90 00 [10:08:29]wFMCommunicate OK [10:08:29]wFMCommunicate request_size=11 [10:08:29]MH_SAM_APDU [10:08:29]CAPDU: 80 0D 02 02 06 20 D1 66 DF D9 B0 [10:08:29]Write to MH i2c: E2 0E 00 42 87 80 0D 02 02 06 00 20 D1 66 DF D9 B0 00 00 0E [10:08:29]Write i2c OK [10:08:29]MH_I2C_Read... [10:08:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:29]Read from MH i2c: E2 [10:08:29]MH_I2C_Read... [10:08:29]Read from MH i2c: E2 03 00 [10:08:29]MH_I2C_Read... [10:08:29]Read from MH i2c: E2 03 00 42 87 00 90 00 3D [10:08:29]RAPDU: 90 00 [10:08:29]wFMCommunicate OK [10:08:29]wFMCommunicate request_size=4 [10:08:29]MH_SAM_APDU [10:08:29]CAPDU: 80 0D 03 02 [10:08:29]Write to MH i2c: E2 08 00 43 87 80 0D 03 02 00 00 00 00 45 [10:08:29]Write i2c OK [10:08:29]MH_I2C_Read... [10:08:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:08:29]Read from MH i2c: E2 [10:08:29]MH_I2C_Read... [10:08:29]Read from MH i2c: E2 0B 00 [10:08:29]MH_I2C_Read... [10:08:29]Read from MH i2c: E2 0B 00 43 87 00 1C 6D 7E 75 94 F8 BC F5 90 00 FF [10:08:29]RAPDU: 1C 6D 7E 75 94 F8 BC F5 90 00 [10:08:29]wFMCommunicate OK [10:08:29]SAM_PROTO_SignData done [10:08:29]FM_MakeSignedData done [10:08:29]CreateOFDProtocolMessage [10:08:29]wFMCommunicate request_size=4 [10:08:29]MH_SAM_APDU [10:08:29]CAPDU: 80 11 00 00 [10:08:29]Write to MH i2c: E2 08 00 44 87 80 11 00 00 00 00 00 00 45 [10:08:29]Write i2c OK [10:08:29]MH_I2C_Read... [10:08:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:29]Read from MH i2c: E2 [10:08:29]MH_I2C_Read... [10:08:29]Read from MH i2c: E2 17 00 [10:08:29]MH_I2C_Read... [10:08:29]Read from MH i2c: E2 17 00 44 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 94 [10:08:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:08:29]wFMCommunicate OK [10:08:29]CreateOFDProtocolMessage done [10:08:29]OFDSenderStorePacket 29169 [10:08:29]StoreOFDPacket docnum=29169 [10:08:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 2C 77 08 01 86 28 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E2 2C 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 16 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 25 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 1F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 16 25 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 25 AB 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F1 71 00 00 35 04 06 00 20 D1 66 DF D9 B0 1C 6D 7E 75 94 F8 BC F5 [10:08:29]CheckFolder [10:08:29]dirname=/storage/ofd_packets [10:08:29]CheckFolder done [10:08:29]ProducePacketName [10:08:29]name=ofd_packets/00029169 [10:08:29]NVStorageSaveData ofd_packets/00029169 [10:08:29]File name is /storage/ofd_packets/00029169 [10:08:29]Write 302 bytes [10:08:29]NVStorageSaveData done [10:08:29]OFDSenderStorePacket done [10:08:29]KKMCreateOFDPacket done [10:08:29]NVStorageSaveData kkm_last_timestamp [10:08:29]File name is /storage/kkm_last_timestamp [10:08:29]Write 4 bytes [10:08:29]NVStorageSaveData done [10:08:29]ExternCall_PrintAddStr [10:08:29]wPrintStart [10:08:29]Write to MH i2c: 01 00 00 45 87 CC [10:08:29]Write i2c OK [10:08:29]MH_I2C_Read... [10:08:29]Read from MH i2c: 01 [10:08:29]MH_I2C_Read... [10:08:29]Read from MH i2c: 01 07 00 [10:08:29]MH_I2C_Read... [10:08:29]Read from MH i2c: 01 07 00 45 87 00 00 00 00 00 FF 0F E1 [10:08:29]RasterBufferAndPrint [10:08:29]line Счет N : (1)347541 [10:08:29]line ИНН: 02508201610067 [10:08:29]line Контрольно-Кассовый Чек [10:08:29]line ПРОДАЖА [10:08:29]line ТРК (МРК, ГНК) : 12 [10:08:29]line Товар: 2710124130 [10:08:29]line SUPER-92-К-5 [10:08:29]line 11.490 * 65.30 [10:08:29]line = 750.30 [10:08:29]line НДС 12% НСП 1% [10:08:29]line > о реализуемом товаре [10:08:29]line ИТОГО: 750.30 [10:08:29]line НСП 1% : 6.64 [10:08:29]line НДС 12% : 79.68 [10:08:29]line Наличными: 0.00 [10:08:29]line Безнал.: 750.30 [10:08:29]line Место: АЗС № 108 "Партнер Нефть" [10:08:29]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:08:29]line СНО: Общий режим [10:08:29]line Чек 79 14.04.2024 10:08 [10:08:29]line Смена: 116 ФФД: 1.0 [10:08:29]line ЗНМ: 0300000027 [10:08:29]line РНМ: 0000138879044617 [10:08:29]line Версия ККМ: 001 [10:08:29]line Платежная система: Бакай Банк [10:08:29]line ФМ: 0000000000963154 [10:08:29]line ФД: 29169 [10:08:29]line ФПД: 36083746199984 [10:08:29]line 1/tax-web-control/client/api/v1/ticket?date=20240414T100837&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29169&fm=36083746199984&tin=02508201610067®Number=0000138879044617&sum=75030 [10:08:29]OFD Sender: Processing packet 29169 [packets to send 8, broken 7] [10:08:29]ProducePacketName [10:08:29]name=ofd_packets/00029169 [10:08:29]OFD Sender: To server: pG, [10:08:29]CommunicateWithHost lk.salyk.kg:30040 [10:08:29]ConnectInit lk.salyk.kg [10:08:29]written 0, free lines is 4095 [10:08:29]Connected sock=10 [10:08:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 2C 77 08 01 86 28 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E2 2C 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 16 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 25 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 1F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 16 25 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 25 AB 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F1 71 00 00 35 04 06 00 20 D1 66 DF D9 B0 1C 6D 7E 75 94 F8 BC F5 [10:08:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 61 C2 47 00 F6 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F1 71 00 00 F4 03 04 00 C9 55 1B 66 B6 04 01 00 00 8C 5F 49 60 32 E9 A7 94 [10:08:29]CommunicateWithHost err = 0 [10:08:29]CheckOFDResponse [10:08:29]1017 (14) - 77093643461234 [10:08:29]1041 (16) - 0000000000963154 [10:08:29]1040 (4) - 29169 [10:08:29]1012 (4) - 14.04.2024 04:04 [10:08:29]1206 (1) - 0 [10:08:29]OFD Sender: Remove packet 29169 [10:08:29]ProducePacketName [10:08:29]name=ofd_packets/00029169 [10:08:29]NVStorageDeleteData [10:08:30]Write to MH i2c: 01 00 00 6E 87 F5 [10:08:30]Write i2c OK [10:08:30]MH_I2C_Read... [10:08:30]Read from MH i2c: 01 [10:08:30]MH_I2C_Read... [10:08:30]Read from MH i2c: 01 07 00 [10:08:30]MH_I2C_Read... [10:08:30]Read from MH i2c: 01 07 00 6E 87 00 00 00 00 00 E9 0C F1 [10:08:30]RasterBufferAndPrint [10:08:30]line [10:08:30]line [10:08:30]line [10:08:30]line [10:08:30]line [10:08:30]written 0, free lines is 3312 [10:08:30]MH_Cut [10:08:30]Write to MH i2c: D1 01 00 75 87 01 CE [10:08:30]Write i2c OK [10:08:30]MH_I2C_Read... [10:08:30]Read from MH i2c: D1 [10:08:30]MH_I2C_Read... [10:08:30]Read from MH i2c: D1 01 00 [10:08:30]MH_I2C_Read... [10:08:30]Read from MH i2c: D1 01 00 75 87 00 CD [10:08:30]Write to MH i2c: 01 00 00 76 87 FD [10:08:30]Write i2c OK [10:08:30]MH_I2C_Read... [10:08:30]OFD Sender: No OFD packet to send [10:08:30]*** Cut start [10:08:30]*** Partial cut [10:08:30]*** CUTSNS_PIN = 1 [10:08:30]*** CUTSNS_PIN = 0 [10:08:31]*** Brake cut motor [10:08:31]Read from MH i2c: 01 [10:08:31]MH_I2C_Read... [10:08:31]*** Stop cut motor [10:08:31]*** Cut end [10:08:31]Read from MH i2c: 01 07 00 [10:08:31]MH_I2C_Read... [10:08:31]Read from MH i2c: 01 07 00 76 87 00 00 00 00 00 FF 0F 12 [10:08:31]process_action close_receipt done [10:08:31]requested_data is exist [10:08:31]produce_requested_data [10:08:31]requested_item fm.sn is exist - process it [10:08:31]wFMCommunicate request_size=4 [10:08:31]MH_SAM_APDU [10:08:31]CAPDU: 80 11 00 00 [10:08:31]Write to MH i2c: E2 08 00 77 87 80 11 00 00 00 00 00 00 78 [10:08:31]Write i2c OK [10:08:31]MH_I2C_Read... [10:08:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:31]Read from MH i2c: E2 [10:08:31]MH_I2C_Read... [10:08:31]Read from MH i2c: E2 17 00 [10:08:31]MH_I2C_Read... [10:08:31]Read from MH i2c: E2 17 00 77 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C7 [10:08:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:08:31]wFMCommunicate OK [10:08:31]requested_item fd.num is exist - process it [10:08:31]SAM_PROTO_GetFieldsCounters [10:08:31]wFMCommunicate request_size=4 [10:08:31]MH_SAM_APDU [10:08:31]CAPDU: 80 13 00 00 [10:08:31]Write to MH i2c: E2 08 00 78 87 80 13 00 00 00 00 00 00 7B [10:08:31]Write i2c OK [10:08:31]MH_I2C_Read... [10:08:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:08:31]Read from MH i2c: E2 [10:08:31]MH_I2C_Read... [10:08:31]Read from MH i2c: E2 62 00 [10:08:31]MH_I2C_Read... [10:08:31]Read from MH i2c: E2 62 00 78 87 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F1 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 7C [10:08:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F1 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:08:31]wFMCommunicate OK [10:08:31]SAM_PROTO_GetFieldsCounters done [10:08:31]requested_item shift.num is exist - process it [10:08:31]requested_item shift.opened is exist - process it [10:08:31]req_shift_opened [10:08:31]FM_GetShiftState [10:08:31]SAM_PROTO_GetShiftState [10:08:31]wFMCommunicate request_size=4 [10:08:31]MH_SAM_APDU [10:08:31]CAPDU: 80 13 01 00 [10:08:31]Write to MH i2c: E2 08 00 79 87 80 13 01 00 00 00 00 00 7D [10:08:31]Write i2c OK [10:08:31]MH_I2C_Read... [10:08:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:31]Read from MH i2c: E2 [10:08:31]MH_I2C_Read... [10:08:31]Read from MH i2c: E2 0E 00 [10:08:31]MH_I2C_Read... [10:08:31]Read from MH i2c: E2 0E 00 79 87 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 29 [10:08:31]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [10:08:31]wFMCommunicate OK [10:08:31]SAM_PROTO_GetShiftState done [10:08:31]FM_GetShiftState done [10:08:31]req_shift_opened done [10:08:31]requested_item shift.open_date is exist - process it [10:08:31]req_shift_open_date [10:08:31]req_shift_open_date done [10:08:31]produce_requested_data done [10:08:31]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29169,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [10:08:31]process_action_free close_receipt [10:08:31]json_value_free [10:08:31]json_value_free done [10:08:31]process_json_proto returns [10:08:31]Send response to host [10:08:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29169,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [10:08:31]free response buf [10:08:31]execute_script done [10:08:31]execute_script returns [10:08:31]free content buf [10:08:31]Sock 7.Close socket [10:08:31]Sock 7.Thread stoped [10:08:35]OFD Sender: No OFD packet to send [10:08:40]OFD Sender: No OFD packet to send [10:08:45]OFD Sender: No OFD packet to send [10:08:50]OFD Sender: No OFD packet to send [10:08:55]OFD Sender: No OFD packet to send [10:09:00]OFD Sender: No OFD packet to send [10:09:05]OFD Sender: No OFD packet to send [10:09:10]OFD Sender: No OFD packet to send [10:09:15]OFD Sender: No OFD packet to send [10:09:20]OFD Sender: No OFD packet to send [10:09:25]OFD Sender: No OFD packet to send [10:09:30]OFD Sender: No OFD packet to send [10:09:35]OFD Sender: No OFD packet to send [10:09:40]OFD Sender: No OFD packet to send [10:09:43]accept exits with 9 [10:09:43]New connection [10:09:43]New thread 3066785124 created [10:09:43]Thread 3066928484 joined [10:09:43]Waiting for new connection... [10:09:43] Sock 9.Parse request [10:09:43]Sock 9.Check first char [10:09:43]Sock 9.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.33.3:8080 [10:09:43]Content-Length: 677 [10:09:43]Content-Type: application/json [10:09:43] [10:09:43]POST finish read [10:09:43]Found Content-Length = 677 [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)347542", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.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" ] } } [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)347542", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.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" ] } } [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 7A 87 F0 [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 7A 87 00 71 AB 1B 66 23 5B 8F 65 08 [10:09:43]GetLastDocTimeStamp 1713089317 [10:09:43]current date 1713089393 [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 7B 87 80 13 01 00 00 00 00 00 7F [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 7B 87 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 2B [10:09:43]RAPDU: 09 00 01 FF 20 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 1713053951 [10:09:43]opened+sec_in_day 1713140351 [10:09:43]quantity*price = 60030 [10:09:43]sum+1 = 60031 [10:09:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.75 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 80 14.04.2024 10:09 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29170 ФПД: 36470490775200 1/tax-web-control/client/api/v1/ticket?date=20240414T100953&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29170&fm=36470490775200&tin=02508201610067®Number=0000138879044617&sum=60000 [10:09:44]StoreToDocumentArchive [10:09:44]shift 116 fd 29170 [10:09:44]save to /storage/0116/doc_00029170 [10:09:44]save last doc name /storage/0116/doc_00029170 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 012246D0 [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 88 87 80 09 00 00 00 00 00 00 81 [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 88 87 00 90 00 83 [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 89 87 80 0D 01 02 00 00 00 00 89 [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: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 89 87 00 90 00 84 [10:09:44]RAPDU: 90 00 [10:09:44]wFMCommunicate OK [10:09:44]wFMCommunicate request_size=255 [10:09:44]MH_SAM_APDU [10:09: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 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 50 00 00 00 F4 03 04 00 71 AB 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F2 71 00 00 35 04 06 00 21 [10:09:44]Write to MH i2c: E2 02 01 8A 87 80 0D 02 02 FA 00 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 50 00 00 00 F4 03 04 00 71 AB 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F2 71 00 00 35 04 06 00 21 00 00 8F [10:09:44]Write i2c OK [10:09:44]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 8A 87 00 90 00 85 [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 2B 72 A5 BE A0 [10:09:45]Write to MH i2c: E2 0D 00 8B 87 80 0D 02 02 05 00 2B 72 A5 BE A0 00 00 36 [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 8B 87 00 90 00 86 [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 8C 87 80 0D 03 02 00 00 00 00 8E [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 8C 87 00 A3 7A 78 D0 96 9C BC 72 90 00 54 [10:09:45]RAPDU: A3 7A 78 D0 96 9C BC 72 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 8D 87 80 11 00 00 00 00 00 00 8E [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 8D 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 DD [10:09:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:09:45]wFMCommunicate OK [10:09:45]CreateOFDProtocolMessage done [10:09:45]OFDSenderStorePacket 29170 [10:09:45]StoreOFDPacket docnum=29170 [10:09:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 B1 F5 07 01 A6 5F 5A 03 01 00 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 50 00 00 00 F4 03 04 00 71 AB 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F2 71 00 00 35 04 06 00 21 2B 72 A5 BE A0 A3 7A 78 D0 96 9C BC 72 [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/00029170 [10:09:45]NVStorageSaveData ofd_packets/00029170 [10:09:45]File name is /storage/ofd_packets/00029170 [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 8E 87 15 [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 8E 87 00 00 00 00 00 FF 0F 2A [10:09:45]RasterBufferAndPrint [10:09:45]line Счет N : (1)347542 [10:09:45]line ИНН: 02508201610067 [10:09:45]line Контрольно-Кассовый Чек [10:09:45]line ПРОДАЖА [10:09:45]line ТРК (МРК, ГНК) : 43 [10:09:45]line Товар: 2710124500 [10:09:45]line Аи-95-К-5 [10:09:45]line 8.280 * 72.50 [10:09:45]line = 600.30 [10:09:45]line НДС 12% НСП 1% [10:09:45]line > о реализуемом товаре [10:09:45]line ОКРУГЛЕНИЕ: -0.30 [10:09:45]line ИТОГО: 600.00 [10:09:45]line Внесено: 600.00 [10:09:45]line СДАЧА: 0.00 [10:09:45]line НСП 1% : 5.31 [10:09:45]line НДС 12% : 63.75 [10:09:45]line Наличными: 600.00 [10:09:45]line Безнал.: 0.00 [10:09:45]line Место: АЗС № 108 "Партнер Нефть" [10:09:45]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:09:45]line СНО: Общий режим [10:09:45]line Чек 80 14.04.2024 10:09 [10:09:45]line Смена: 116 ФФД: 1.0 [10:09:45]line ЗНМ: 0300000027 [10:09:45]line РНМ: 0000138879044617 [10:09:45]line Версия ККМ: 001 [10:09:45]line ФМ: 0000000000963154 [10:09:45]line ФД: 29170 [10:09:45]line ФПД: 36470490775200 [10:09:45]line 1/tax-web-control/client/api/v1/ticket?date=20240414T100953&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29170&fm=36470490775200&tin=02508201610067®Number=0000138879044617&sum=60000 [10:09:45]OFD Sender: Processing packet 29170 [packets to send 8, broken 7] [10:09:45]ProducePacketName [10:09:45]name=ofd_packets/00029170 [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]written 0, free lines is 4095 [10:09:46]Write to MH i2c: 01 00 00 B8 87 3F [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 B8 87 00 00 00 00 00 C2 0C 14 [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 3270 [10:09:46]MH_Cut [10:09:46]Write to MH i2c: D1 01 00 BF 87 01 18 [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 BF 87 00 17 [10:09:46]Write to MH i2c: 01 00 00 C0 87 47 [10:09:46]Write i2c OK [10:09:46]MH_I2C_Read... [10:09:46]*** Cut start [10:09:46]*** Partial cut [10:09:46]*** CUTSNS_PIN = 1 [10:09:46]*** 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 C0 87 00 00 00 00 00 FF 0F 5C [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 C1 87 80 11 00 00 00 00 00 00 C2 [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 C1 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 11 [10:09:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 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 C2 87 80 13 00 00 00 00 00 00 C5 [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 C2 87 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F2 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 CA [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 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F2 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [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 C3 87 80 13 01 00 00 00 00 00 C7 [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 C3 87 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 73 [10:09:47]RAPDU: 09 00 01 FF 20 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":"0000000000963154","fd.num":29170,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [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":"0000000000963154","fd.num":29170,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [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 9.Close socket [10:09:47]Sock 9.Thread stoped [10:11:59]ConnectInit Can't connect to host [10:11:59]CommunicateWithHost connect error [10:11:59]CommunicateWithHost err = -1 [10:11:59]OFD Sender: Server communicate error [10:12:04]OFD Sender: Processing packet 29170 [packets to send 8, broken 7] [10:12:04]ProducePacketName [10:12:04]name=ofd_packets/00029170 [10:12:04]OFD Sender: To server: pG, [10:12:04]CommunicateWithHost lk.salyk.kg:30040 [10:12:04]ConnectInit lk.salyk.kg [10:12:04]Connected sock=9 [10:12:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 B1 F5 07 01 A6 5F 5A 03 01 00 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 50 00 00 00 F4 03 04 00 71 AB 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F2 71 00 00 35 04 06 00 21 2B 72 A5 BE A0 A3 7A 78 D0 96 9C BC 72 [10:12:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 CA C5 47 00 12 CE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F2 71 00 00 F4 03 04 00 9F 56 1B 66 B6 04 01 00 00 FA 9F 34 EA 8F F6 C8 03 [10:12:04]CommunicateWithHost err = 0 [10:12:04]CheckOFDResponse [10:12:04]1017 (14) - 77093643461234 [10:12:04]1041 (16) - 0000000000963154 [10:12:04]1040 (4) - 29170 [10:12:04]1012 (4) - 14.04.2024 04:07 [10:12:04]1206 (1) - 0 [10:12:04]OFD Sender: Remove packet 29170 [10:12:04]ProducePacketName [10:12:04]name=ofd_packets/00029170 [10:12:04]NVStorageDeleteData [10:12:04]OFD Sender: No OFD packet to send [10:12:09]OFD Sender: No OFD packet to send [10:12:14]OFD Sender: No OFD packet to send [10:12:19]OFD Sender: No OFD packet to send [10:12:24]OFD Sender: No OFD packet to send [10:12:29]OFD Sender: No OFD packet to send [10:12:34]OFD Sender: No OFD packet to send [10:12:39]OFD Sender: No OFD packet to send [10:12:44]OFD Sender: No OFD packet to send [10:12:49]OFD Sender: No OFD packet to send [10:12:54]OFD Sender: No OFD packet to send [10:12:59]OFD Sender: No OFD packet to send [10:13:04]OFD Sender: No OFD packet to send [10:13:09]OFD Sender: No OFD packet to send [10:13:14]OFD Sender: No OFD packet to send [10:13:19]OFD Sender: No OFD packet to send [10:13:24]OFD Sender: No OFD packet to send [10:13:29]OFD Sender: No OFD packet to send [10:13:34]OFD Sender: No OFD packet to send [10:13:39]OFD Sender: No OFD packet to send [10:13:44]OFD Sender: No OFD packet to send [10:13:49]OFD Sender: No OFD packet to send [10:13:54]OFD Sender: No OFD packet to send [10:13:59]OFD Sender: No OFD packet to send [10:14:04]OFD Sender: No OFD packet to send [10:14:09]OFD Sender: No OFD packet to send [10:14:14]OFD Sender: No OFD packet to send [10:14:19]OFD Sender: No OFD packet to send [10:14:24]OFD Sender: No OFD packet to send [10:14:29]OFD Sender: No OFD packet to send [10:14:34]OFD Sender: No OFD packet to send [10:14:39]OFD Sender: No OFD packet to send [10:14:44]OFD Sender: No OFD packet to send [10:14:49]OFD Sender: No OFD packet to send [10:14:54]OFD Sender: No OFD packet to send [10:14:59]OFD Sender: No OFD packet to send [10:15:04]OFD Sender: No OFD packet to send [10:15:09]OFD Sender: No OFD packet to send [10:15:14]OFD Sender: No OFD packet to send [10:15:19]OFD Sender: No OFD packet to send [10:15:24]OFD Sender: No OFD packet to send [10:15:29]OFD Sender: No OFD packet to send [10:15:34]OFD Sender: No OFD packet to send [10:15:39]OFD Sender: No OFD packet to send [10:15:44]OFD Sender: No OFD packet to send [10:15:49]OFD Sender: No OFD packet to send [10:15:54]OFD Sender: No OFD packet to send [10:15:59]OFD Sender: No OFD packet to send [10:16:04]OFD Sender: No OFD packet to send [10:16:09]OFD Sender: No OFD packet to send [10:16:14]OFD Sender: No OFD packet to send [10:16:19]OFD Sender: No OFD packet to send [10:16:25]OFD Sender: No OFD packet to send [10:16:30]OFD Sender: No OFD packet to send [10:16:35]OFD Sender: No OFD packet to send [10:16:40]OFD Sender: No OFD packet to send [10:16:45]OFD Sender: No OFD packet to send [10:16:50]OFD Sender: No OFD packet to send [10:16:55]OFD Sender: No OFD packet to send [10:17:00]OFD Sender: No OFD packet to send [10:17:05]OFD Sender: No OFD packet to send [10:17:10]OFD Sender: No OFD packet to send [10:17:15]OFD Sender: No OFD packet to send [10:17:20]OFD Sender: No OFD packet to send [10:17:25]OFD Sender: No OFD packet to send [10:17:30]OFD Sender: No OFD packet to send [10:17:35]OFD Sender: No OFD packet to send [10:17:40]OFD Sender: No OFD packet to send [10:17:45]OFD Sender: No OFD packet to send [10:17:50]OFD Sender: No OFD packet to send [10:17:55]OFD Sender: No OFD packet to send [10:18:00]OFD Sender: No OFD packet to send [10:18:03]accept exits with 7 [10:18:03]New connection [10:18:03]New thread 3066928484 created [10:18:03]Thread 3066785124 joined [10:18:03]Waiting for new connection... [10:18:03] Sock 7.Parse request [10:18:03]Sock 7.Check first char [10:18:03]Sock 7.First char is OK [10:18:03]request: POST /json_proto HTTP/1.0 [10:18:03]Method: POST [10:18:03]URL: /json_proto [10:18:03]Method is POST - this is cgi request [10:18:03]url: /json_proto [10:18:03]query_string will be loaded in cgi processing [10:18:03]execute_cgi json_proto POST (null) [10:18:03]execute_cgi path=json_proto method=POST [10:18:03]POST find Content-Length [10:18:03]Host: 172.17.33.3:8080 [10:18:03]Content-Length: 677 [10:18:03]Content-Type: application/json [10:18:03] [10:18:03]POST finish read [10:18:03]Found Content-Length = 677 [10:18:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347543", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.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:18:03]execute_script... [10:18: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)347543", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.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:18:03]POST & json_proto [10:18:03]process_json_proto [10:18:03]json parsed OK: [10:18:03]protocol is kg_v1.0 [10:18:03]action value=close_receipt [10:18:03]process_action close_receipt [10:18:03]cmd_close_receipt [10:18:03]MH_GetDate [10:18:03]Write to MH i2c: F0 00 00 C4 87 3A [10:18:03]Write i2c OK [10:18:03]MH_I2C_Read... [10:18:03]Read from MH i2c: F0 [10:18:03]MH_I2C_Read... [10:18:03]Read from MH i2c: F0 09 00 [10:18:03]MH_I2C_Read... [10:18:03]Read from MH i2c: F0 09 00 C4 87 00 65 AD 1B 66 23 5B 8F 65 48 [10:18:03]GetLastDocTimeStamp 1713089393 [10:18:03]current date 1713089893 [10:18:03]FM_GetShiftState [10:18:03]SAM_PROTO_GetShiftState [10:18:03]wFMCommunicate request_size=4 [10:18:03]MH_SAM_APDU [10:18:03]CAPDU: 80 13 01 00 [10:18:03]Write to MH i2c: E2 08 00 C5 87 80 13 01 00 00 00 00 00 C9 [10:18:03]Write i2c OK [10:18:03]MH_I2C_Read... [10:18:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:18:03]Read from MH i2c: E2 [10:18:03]MH_I2C_Read... [10:18:03]Read from MH i2c: E2 0E 00 [10:18:03]MH_I2C_Read... [10:18:03]Read from MH i2c: E2 0E 00 C5 87 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 75 [10:18:03]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [10:18:03]wFMCommunicate OK [10:18:03]SAM_PROTO_GetShiftState done [10:18:03]FM_GetShiftState done [10:18:03]opened in 1713053951 [10:18:03]opened+sec_in_day 1713140351 [10:18:03]quantity*price = 50025 [10:18:03]sum+1 = 50026 [10:18: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 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 81 14.04.2024 10:18 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29171 ФПД: 192283271365178 1/tax-web-control/client/api/v1/ticket?date=20240414T101813&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29171&fm=192283271365178&tin=02508201610067®Number=0000138879044617&sum=50000 [10:18:04]StoreToDocumentArchive [10:18:04]shift 116 fd 29171 [10:18:04]save to /storage/0116/doc_00029171 [10:18:04]save last doc name /storage/0116/doc_00029171 to /storage/kkm_last_doc_name [10:18:04]save OK [10:18:04]Clear old archive folders... [10:18:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:18:04]tlvbuf is 011EB360 [10:18:04]SAM_PROTO_ClearQueue [10:18:04]wFMCommunicate request_size=4 [10:18:04]MH_SAM_APDU [10:18:04]CAPDU: 80 09 00 00 [10:18:04]Write to MH i2c: E2 08 00 D2 87 80 09 00 00 00 00 00 00 CB [10:18:04]Write i2c OK [10:18:04]MH_I2C_Read... [10:18:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:18:04]Read from MH i2c: E2 [10:18:04]MH_I2C_Read... [10:18:04]Read from MH i2c: E2 03 00 [10:18:04]MH_I2C_Read... [10:18:04]Read from MH i2c: E2 03 00 D2 87 00 90 00 CD [10:18:04]RAPDU: 90 00 [10:18:04]wFMCommunicate OK [10:18:04]SAM_PROTO_ClearQueue done [10:18:04]KKMCreateOFDPacket [10:18:04]OFDProtocolAddRootSTLVToBuf [10:18:04]FM_MakeSignedData [10:18:04]FM_MakeSignedData [10:18:04]SAM_PROTO_SignData [10:18:04]wFMCommunicate request_size=4 [10:18:04]MH_SAM_APDU [10:18:04]CAPDU: 80 0D 01 02 [10:18:04]Write to MH i2c: E2 08 00 D3 87 80 0D 01 02 00 00 00 00 D3 [10:18:04]Write i2c OK [10:18:04]MH_I2C_Read... [10:18:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:18:04]Read from MH i2c: E2 [10:18:04]MH_I2C_Read... [10:18:04]Read from MH i2c: E2 03 00 [10:18:04]MH_I2C_Read... [10:18:04]Read from MH i2c: E2 03 00 D3 87 00 90 00 CE [10:18:04]RAPDU: 90 00 [10:18:04]wFMCommunicate OK [10:18:04]wFMCommunicate request_size=255 [10:18:04]MH_SAM_APDU [10:18: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 51 00 00 00 F4 03 04 00 65 AD 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F3 71 00 00 35 04 06 00 AE [10:18:04]Write to MH i2c: E2 02 01 D4 87 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 51 00 00 00 F4 03 04 00 65 AD 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F3 71 00 00 35 04 06 00 AE 00 00 FF [10:18:04]Write i2c OK [10:18:04]MH_I2C_Read... [10:18:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:18:05]Read from MH i2c: E2 [10:18:05]MH_I2C_Read... [10:18:05]Read from MH i2c: E2 03 00 [10:18:05]MH_I2C_Read... [10:18:05]Read from MH i2c: E2 03 00 D4 87 00 90 00 CF [10:18:05]RAPDU: 90 00 [10:18:05]wFMCommunicate OK [10:18:05]wFMCommunicate request_size=10 [10:18:05]MH_SAM_APDU [10:18:05]CAPDU: 80 0D 02 02 05 E1 70 16 02 3A [10:18:05]Write to MH i2c: E2 0D 00 D5 87 80 0D 02 02 05 00 E1 70 16 02 3A 00 00 83 [10:18:05]Write i2c OK [10:18:05]MH_I2C_Read... [10:18:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:18:05]Read from MH i2c: E2 [10:18:05]MH_I2C_Read... [10:18:05]Read from MH i2c: E2 03 00 [10:18:05]MH_I2C_Read... [10:18:05]Read from MH i2c: E2 03 00 D5 87 00 90 00 D0 [10:18:05]RAPDU: 90 00 [10:18:05]wFMCommunicate OK [10:18:05]wFMCommunicate request_size=4 [10:18:05]MH_SAM_APDU [10:18:05]CAPDU: 80 0D 03 02 [10:18:05]Write to MH i2c: E2 08 00 D6 87 80 0D 03 02 00 00 00 00 D8 [10:18:05]OFD Sender: No OFD packet to send [10:18:05]Write i2c OK [10:18:05]MH_I2C_Read... [10:18:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:18:05]Read from MH i2c: E2 [10:18:05]MH_I2C_Read... [10:18:05]Read from MH i2c: E2 0B 00 [10:18:05]MH_I2C_Read... [10:18:05]Read from MH i2c: E2 0B 00 D6 87 00 EC 97 B5 88 36 C7 32 07 90 00 CF [10:18:05]RAPDU: EC 97 B5 88 36 C7 32 07 90 00 [10:18:05]wFMCommunicate OK [10:18:05]SAM_PROTO_SignData done [10:18:05]FM_MakeSignedData done [10:18:05]CreateOFDProtocolMessage [10:18:05]wFMCommunicate request_size=4 [10:18:05]MH_SAM_APDU [10:18:05]CAPDU: 80 11 00 00 [10:18:05]Write to MH i2c: E2 08 00 D7 87 80 11 00 00 00 00 00 00 D8 [10:18:05]Write i2c OK [10:18:05]MH_I2C_Read... [10:18:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:18:05]Read from MH i2c: E2 [10:18:05]MH_I2C_Read... [10:18:05]Read from MH i2c: E2 17 00 [10:18:05]MH_I2C_Read... [10:18:05]Read from MH i2c: E2 17 00 D7 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 27 [10:18:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:18:05]wFMCommunicate OK [10:18:05]CreateOFDProtocolMessage done [10:18:05]OFDSenderStorePacket 29171 [10:18:05]StoreOFDPacket docnum=29171 [10:18:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 3E 04 07 01 EB 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 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 51 00 00 00 F4 03 04 00 65 AD 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F3 71 00 00 35 04 06 00 AE E1 70 16 02 3A EC 97 B5 88 36 C7 32 07 [10:18:05]CheckFolder [10:18:05]dirname=/storage/ofd_packets [10:18:05]CheckFolder done [10:18:05]ProducePacketName [10:18:05]name=ofd_packets/00029171 [10:18:05]NVStorageSaveData ofd_packets/00029171 [10:18:05]File name is /storage/ofd_packets/00029171 [10:18:05]Write 301 bytes [10:18:05]NVStorageSaveData done [10:18:05]OFDSenderStorePacket done [10:18:05]KKMCreateOFDPacket done [10:18:05]NVStorageSaveData kkm_last_timestamp [10:18:05]File name is /storage/kkm_last_timestamp [10:18:05]OFD Sender: Processing packet 29171 [packets to send 8, broken 7] [10:18:05]ProducePacketName [10:18:05]name=ofd_packets/00029171 [10:18:05]OFD Sender: To server: pG, [10:18:05]CommunicateWithHost lk.salyk.kg:30040 [10:18:05]ConnectInit lk.salyk.kg [10:18:05]Write 4 bytes [10:18:05]NVStorageSaveData done [10:18:05]ExternCall_PrintAddStr [10:18:05]wPrintStart [10:18:05]Write to MH i2c: 01 00 00 D8 87 5F [10:18:05]Write i2c OK [10:18:05]MH_I2C_Read... [10:18:05]Read from MH i2c: 01 [10:18:05]MH_I2C_Read... [10:18:05]Read from MH i2c: 01 07 00 [10:18:05]MH_I2C_Read... [10:18:05]Read from MH i2c: 01 07 00 D8 87 00 00 00 00 00 FF 0F 74 [10:18:05]RasterBufferAndPrint [10:18:05]line Счет N : (1)347543 [10:18:05]line ИНН: 02508201610067 [10:18:05]line Контрольно-Кассовый Чек [10:18:05]line ПРОДАЖА [10:18:05]line ТРК (МРК, ГНК) : 23 [10:18:05]line Товар: 2710124130 [10:18:05]line Аи-92-К-5 [10:18:05]line 7.780 * 64.30 [10:18:05]line = 500.25 [10:18:05]line НДС 12% НСП 1% [10:18:05]line > о реализуемом товаре [10:18:05]line ОКРУГЛЕНИЕ: -0.25 [10:18:05]line ИТОГО: 500.00 [10:18:05]line Внесено: 500.00 [10:18:05]line СДАЧА: 0.00 [10:18:05]line НСП 1% : 4.43 [10:18:05]line НДС 12% : 53.12 [10:18:05]line Наличными: 500.00 [10:18:05]line Безнал.: 0.00 [10:18:05]line Место: АЗС № 108 "Партнер Нефть" [10:18:05]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:18:05]line СНО: Общий режим [10:18:05]line Чек 81 14.04.2024 10:18 [10:18:05]line Смена: 116 ФФД: 1.0 [10:18:05]line ЗНМ: 0300000027 [10:18:05]line РНМ: 0000138879044617 [10:18:05]line Версия ККМ: 001 [10:18:05]line ФМ: 0000000000963154 [10:18:05]line ФД: 29171 [10:18:05]line ФПД: 192283271365178 [10:18:05]line 1/tax-web-control/client/api/v1/ticket?date=20240414T101813&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29171&fm=192283271365178&tin=02508201610067®Number=0000138879044617&sum=50000 [10:18:05]Connected sock=11 [10:18:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 3E 04 07 01 EB 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 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 51 00 00 00 F4 03 04 00 65 AD 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F3 71 00 00 35 04 06 00 AE E1 70 16 02 3A EC 97 B5 88 36 C7 32 07 [10:18:05]written 0, free lines is 4095 [10:18:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 C0 0C 47 00 7C 3A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F3 71 00 00 F4 03 04 00 09 58 1B 66 B6 04 01 00 00 6C 60 AA 72 91 43 D9 F2 [10:18:05]CommunicateWithHost err = 0 [10:18:05]CheckOFDResponse [10:18:05]1017 (14) - 77093643461234 [10:18:05]1041 (16) - 0000000000963154 [10:18:05]1040 (4) - 29171 [10:18:05]1012 (4) - 14.04.2024 04:14 [10:18:05]1206 (1) - 0 [10:18:05]OFD Sender: Remove packet 29171 [10:18:05]ProducePacketName [10:18:05]name=ofd_packets/00029171 [10:18:05]NVStorageDeleteData [10:18:06]Write to MH i2c: 01 00 00 02 88 8A [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 02 88 00 00 00 00 00 CE 0C 6B [10:18:06]RasterBufferAndPrint [10:18:06]line [10:18:06]line [10:18:06]line [10:18:06]line [10:18:06]line [10:18:06]written 0, free lines is 3285 [10:18:06]MH_Cut [10:18:06]Write to MH i2c: D1 01 00 09 88 01 63 [10:18:06]Write i2c OK [10:18:06]MH_I2C_Read... [10:18:06]Read from MH i2c: D1 [10:18:06]MH_I2C_Read... [10:18:06]Read from MH i2c: D1 01 00 [10:18:06]MH_I2C_Read... [10:18:06]Read from MH i2c: D1 01 00 09 88 00 62 [10:18:06]Write to MH i2c: 01 00 00 0A 88 92 [10:18:06]Write i2c OK [10:18:06]MH_I2C_Read... [10:18:06]OFD Sender: No OFD packet to send [10:18:06]*** Cut start [10:18:06]*** Partial cut [10:18:06]*** CUTSNS_PIN = 1 [10:18:06]*** CUTSNS_PIN = 0 [10:18:07]*** Brake cut motor [10:18:07]Read from MH i2c: 01 [10:18:07]MH_I2C_Read... [10:18:07]*** Stop cut motor [10:18:07]*** Cut end [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 0A 88 00 00 00 00 00 FF 0F A7 [10:18:07]process_action close_receipt done [10:18:07]requested_data is exist [10:18:07]produce_requested_data [10:18:07]requested_item fm.sn is exist - process it [10:18:07]wFMCommunicate request_size=4 [10:18:07]MH_SAM_APDU [10:18:07]CAPDU: 80 11 00 00 [10:18:07]Write to MH i2c: E2 08 00 0B 88 80 11 00 00 00 00 00 00 0D [10:18:07]Write i2c OK [10:18:07]MH_I2C_Read... [10:18:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:18:07]Read from MH i2c: E2 [10:18:07]MH_I2C_Read... [10:18:07]Read from MH i2c: E2 17 00 [10:18:07]MH_I2C_Read... [10:18:07]Read from MH i2c: E2 17 00 0B 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 5C [10:18:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:18:07]wFMCommunicate OK [10:18:07]requested_item fd.num is exist - process it [10:18:07]SAM_PROTO_GetFieldsCounters [10:18:07]wFMCommunicate request_size=4 [10:18:07]MH_SAM_APDU [10:18:07]CAPDU: 80 13 00 00 [10:18:07]Write to MH i2c: E2 08 00 0C 88 80 13 00 00 00 00 00 00 10 [10:18:07]Write i2c OK [10:18:07]MH_I2C_Read... [10:18:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:18:07]Read from MH i2c: E2 [10:18:07]MH_I2C_Read... [10:18:07]Read from MH i2c: E2 62 00 [10:18:07]MH_I2C_Read... [10:18:07]Read from MH i2c: E2 62 00 0C 88 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F3 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 19 [10:18:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F3 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:18:07]wFMCommunicate OK [10:18:07]SAM_PROTO_GetFieldsCounters done [10:18:07]requested_item shift.num is exist - process it [10:18:07]requested_item shift.opened is exist - process it [10:18:07]req_shift_opened [10:18:07]FM_GetShiftState [10:18:07]SAM_PROTO_GetShiftState [10:18:07]wFMCommunicate request_size=4 [10:18:07]MH_SAM_APDU [10:18:07]CAPDU: 80 13 01 00 [10:18:07]Write to MH i2c: E2 08 00 0D 88 80 13 01 00 00 00 00 00 12 [10:18:07]Write i2c OK [10:18:07]MH_I2C_Read... [10:18:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:18:07]Read from MH i2c: E2 [10:18:07]MH_I2C_Read... [10:18:07]Read from MH i2c: E2 0E 00 [10:18:07]MH_I2C_Read... [10:18:07]Read from MH i2c: E2 0E 00 0D 88 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 BE [10:18:07]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [10:18:07]wFMCommunicate OK [10:18:07]SAM_PROTO_GetShiftState done [10:18:07]FM_GetShiftState done [10:18:07]req_shift_opened done [10:18:07]requested_item shift.open_date is exist - process it [10:18:07]req_shift_open_date [10:18:07]req_shift_open_date done [10:18:07]produce_requested_data done [10:18:07]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29171,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [10:18:07]process_action_free close_receipt [10:18:07]json_value_free [10:18:07]json_value_free done [10:18:07]process_json_proto returns [10:18:07]Send response to host [10:18:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29171,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [10:18:07]free response buf [10:18:07]execute_script done [10:18:07]execute_script returns [10:18:07]free content buf [10:18:07]Sock 7.Close socket [10:18:07]Sock 7.Thread stoped [10:18:11]OFD Sender: No OFD packet to send [10:18:16]OFD Sender: No OFD packet to send [10:18:21]OFD Sender: No OFD packet to send [10:18:26]OFD Sender: No OFD packet to send [10:18:31]OFD Sender: No OFD packet to send [10:18:36]OFD Sender: No OFD packet to send [10:18:41]OFD Sender: No OFD packet to send [10:18:46]OFD Sender: No OFD packet to send [10:18:51]OFD Sender: No OFD packet to send [10:18:56]OFD Sender: No OFD packet to send [10:19:01]OFD Sender: No OFD packet to send [10:19:06]OFD Sender: No OFD packet to send [10:19:11]OFD Sender: No OFD packet to send [10:19:16]OFD Sender: No OFD packet to send [10:19:21]OFD Sender: No OFD packet to send [10:19:26]OFD Sender: No OFD packet to send [10:19:31]OFD Sender: No OFD packet to send [10:19:36]OFD Sender: No OFD packet to send [10:19:41]OFD Sender: No OFD packet to send [10:19:46]OFD Sender: No OFD packet to send [10:19:51]OFD Sender: No OFD packet to send [10:19:56]OFD Sender: No OFD packet to send [10:20:01]OFD Sender: No OFD packet to send [10:20:06]OFD Sender: No OFD packet to send [10:20:11]OFD Sender: No OFD packet to send [10:20:16]OFD Sender: No OFD packet to send [10:20:18]accept exits with 9 [10:20:18]New connection [10:20:18]New thread 3066785124 created [10:20:18]Thread 3066928484 joined [10:20:18]Waiting for new connection... [10:20:18] Sock 9.Parse request [10:20:18]Sock 9.Check first char [10:20:18]Sock 9.First char is OK [10:20:18]request: POST /json_proto HTTP/1.0 [10:20:18]Method: POST [10:20:18]URL: /json_proto [10:20:18]Method is POST - this is cgi request [10:20:18]url: /json_proto [10:20:18]query_string will be loaded in cgi processing [10:20:18]execute_cgi json_proto POST (null) [10:20:18]execute_cgi path=json_proto method=POST [10:20:18]POST find Content-Length [10:20:18]Host: 172.17.33.3:8080 [10:20:18]Content-Length: 642 [10:20:18]Content-Type: application/json [10:20:18] [10:20:18]POST finish read [10:20:18]Found Content-Length = 642 [10:20:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347545", "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" : 20.000, "sum" : 1286.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1286.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:20:18]execute_script... [10:20: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)347545", "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" : 20.000, "sum" : 1286.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1286.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:20:18]POST & json_proto [10:20:18]process_json_proto [10:20:18]json parsed OK: [10:20:18]protocol is kg_v1.0 [10:20:18]action value=close_receipt [10:20:18]process_action close_receipt [10:20:18]cmd_close_receipt [10:20:18]MH_GetDate [10:20:18]Write to MH i2c: F0 00 00 0E 88 85 [10:20:18]Write i2c OK [10:20:18]MH_I2C_Read... [10:20:18]Read from MH i2c: F0 [10:20:18]MH_I2C_Read... [10:20:18]Read from MH i2c: F0 09 00 [10:20:18]MH_I2C_Read... [10:20:18]Read from MH i2c: F0 09 00 0E 88 00 EC AD 1B 66 23 5B 8F 65 1A [10:20:18]GetLastDocTimeStamp 1713089893 [10:20:18]current date 1713090028 [10:20:18]FM_GetShiftState [10:20:18]SAM_PROTO_GetShiftState [10:20:18]wFMCommunicate request_size=4 [10:20:18]MH_SAM_APDU [10:20:18]CAPDU: 80 13 01 00 [10:20:18]Write to MH i2c: E2 08 00 0F 88 80 13 01 00 00 00 00 00 14 [10:20:18]Write i2c OK [10:20:18]MH_I2C_Read... [10:20:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:18]Read from MH i2c: E2 [10:20:18]MH_I2C_Read... [10:20:18]Read from MH i2c: E2 0E 00 [10:20:18]MH_I2C_Read... [10:20:18]Read from MH i2c: E2 0E 00 0F 88 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 C0 [10:20:18]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [10:20:18]wFMCommunicate OK [10:20:18]SAM_PROTO_GetShiftState done [10:20:18]FM_GetShiftState done [10:20:18]opened in 1713053951 [10:20:18]opened+sec_in_day 1713140351 [10:20:18]quantity*price = 128600 [10:20:18]sum+1 = 128601 [10:20:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1286.00 НСП 1% : 11.38 НДС 12% : 136.57 Наличными: 1286.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 82 14.04.2024 10:20 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29172 ФПД: 267828585693959 1/tax-web-control/client/api/v1/ticket?date=20240414T102028&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29172&fm=267828585693959&tin=02508201610067®Number=0000138879044617&sum=128600 [10:20:19]StoreToDocumentArchive [10:20:19]shift 116 fd 29172 [10:20:19]save to /storage/0116/doc_00029172 [10:20:19]save last doc name /storage/0116/doc_00029172 to /storage/kkm_last_doc_name [10:20:19]save OK [10:20:19]Clear old archive folders... [10:20:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:20:19]tlvbuf is 011FB2C0 [10:20:19]SAM_PROTO_ClearQueue [10:20:19]wFMCommunicate request_size=4 [10:20:19]MH_SAM_APDU [10:20:19]CAPDU: 80 09 00 00 [10:20:19]Write to MH i2c: E2 08 00 1C 88 80 09 00 00 00 00 00 00 16 [10:20:19]Write i2c OK [10:20:19]MH_I2C_Read... [10:20:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:20:19]Read from MH i2c: E2 [10:20:19]MH_I2C_Read... [10:20:19]Read from MH i2c: E2 03 00 [10:20:19]MH_I2C_Read... [10:20:19]Read from MH i2c: E2 03 00 1C 88 00 90 00 18 [10:20:19]RAPDU: 90 00 [10:20:19]wFMCommunicate OK [10:20:19]SAM_PROTO_ClearQueue done [10:20:19]KKMCreateOFDPacket [10:20:19]OFDProtocolAddRootSTLVToBuf [10:20:19]FM_MakeSignedData [10:20:19]FM_MakeSignedData [10:20:19]SAM_PROTO_SignData [10:20:19]wFMCommunicate request_size=4 [10:20:19]MH_SAM_APDU [10:20:19]CAPDU: 80 0D 01 02 [10:20:19]Write to MH i2c: E2 08 00 1D 88 80 0D 01 02 00 00 00 00 1E [10:20:19]Write i2c OK [10:20:19]MH_I2C_Read... [10:20:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:20:19]Read from MH i2c: E2 [10:20:19]MH_I2C_Read... [10:20:19]Read from MH i2c: E2 03 00 [10:20:19]MH_I2C_Read... [10:20:19]Read from MH i2c: E2 03 00 1D 88 00 90 00 19 [10:20:19]RAPDU: 90 00 [10:20:19]wFMCommunicate OK [10:20:19]wFMCommunicate request_size=255 [10:20:19]MH_SAM_APDU [10:20:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 52 00 00 00 F4 03 04 00 EC AD 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F4 71 00 00 35 04 06 00 F3 [10:20:19]Write to MH i2c: E2 02 01 1E 88 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 52 00 00 00 F4 03 04 00 EC AD 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F4 71 00 00 35 04 06 00 F3 00 00 13 [10:20:19]Write i2c OK [10:20:19]MH_I2C_Read... [10:20:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:20]Read from MH i2c: E2 [10:20:20]MH_I2C_Read... [10:20:20]Read from MH i2c: E2 03 00 [10:20:20]MH_I2C_Read... [10:20:20]Read from MH i2c: E2 03 00 1E 88 00 90 00 1A [10:20:20]RAPDU: 90 00 [10:20:20]wFMCommunicate OK [10:20:20]wFMCommunicate request_size=10 [10:20:20]MH_SAM_APDU [10:20:20]CAPDU: 80 0D 02 02 05 96 B3 B6 03 07 [10:20:20]Write to MH i2c: E2 0D 00 1F 88 80 0D 02 02 05 00 96 B3 B6 03 07 00 00 34 [10:20:20]Write i2c OK [10:20:20]MH_I2C_Read... [10:20:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:20]Read from MH i2c: E2 [10:20:20]MH_I2C_Read... [10:20:20]Read from MH i2c: E2 03 00 [10:20:20]MH_I2C_Read... [10:20:20]Read from MH i2c: E2 03 00 1F 88 00 90 00 1B [10:20:20]RAPDU: 90 00 [10:20:20]wFMCommunicate OK [10:20:20]wFMCommunicate request_size=4 [10:20:20]MH_SAM_APDU [10:20:20]CAPDU: 80 0D 03 02 [10:20:20]Write to MH i2c: E2 08 00 20 88 80 0D 03 02 00 00 00 00 23 [10:20:20]Write i2c OK [10:20:20]MH_I2C_Read... [10:20:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:20:20]Read from MH i2c: E2 [10:20:20]MH_I2C_Read... [10:20:20]Read from MH i2c: E2 0B 00 [10:20:20]MH_I2C_Read... [10:20:20]Read from MH i2c: E2 0B 00 20 88 00 3F 94 48 C9 1E 56 1F D8 90 00 73 [10:20:20]RAPDU: 3F 94 48 C9 1E 56 1F D8 90 00 [10:20:20]wFMCommunicate OK [10:20:20]SAM_PROTO_SignData done [10:20:20]FM_MakeSignedData done [10:20:20]CreateOFDProtocolMessage [10:20:20]wFMCommunicate request_size=4 [10:20:20]MH_SAM_APDU [10:20:20]CAPDU: 80 11 00 00 [10:20:20]Write to MH i2c: E2 08 00 21 88 80 11 00 00 00 00 00 00 23 [10:20:20]Write i2c OK [10:20:20]MH_I2C_Read... [10:20:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:20]Read from MH i2c: E2 [10:20:20]MH_I2C_Read... [10:20:20]Read from MH i2c: E2 17 00 [10:20:20]MH_I2C_Read... [10:20:20]Read from MH i2c: E2 17 00 21 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 72 [10:20:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:20:20]wFMCommunicate OK [10:20:20]CreateOFDProtocolMessage done [10:20:20]OFDSenderStorePacket 29172 [10:20:20]StoreOFDPacket docnum=29172 [10:20:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 63 EB 07 01 94 29 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 52 00 00 00 F4 03 04 00 EC AD 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F4 71 00 00 35 04 06 00 F3 96 B3 B6 03 07 3F 94 48 C9 1E 56 1F D8 [10:20:20]CheckFolder [10:20:20]dirname=/storage/ofd_packets [10:20:20]CheckFolder done [10:20:20]ProducePacketName [10:20:20]name=ofd_packets/00029172 [10:20:20]NVStorageSaveData ofd_packets/00029172 [10:20:20]File name is /storage/ofd_packets/00029172 [10:20:20]Write 301 bytes [10:20:20]NVStorageSaveData done [10:20:20]OFDSenderStorePacket done [10:20:20]KKMCreateOFDPacket done [10:20:20]NVStorageSaveData kkm_last_timestamp [10:20:20]File name is /storage/kkm_last_timestamp [10:20:20]Write 4 bytes [10:20:20]NVStorageSaveData done [10:20:20]ExternCall_PrintAddStr [10:20:20]wPrintStart [10:20:20]Write to MH i2c: 01 00 00 22 88 AA [10:20:20]Write i2c OK [10:20:20]MH_I2C_Read... [10:20:20]Read from MH i2c: 01 [10:20:20]MH_I2C_Read... [10:20:20]Read from MH i2c: 01 07 00 [10:20:20]MH_I2C_Read... [10:20:20]Read from MH i2c: 01 07 00 22 88 00 00 00 00 00 FF 0F BF [10:20:20]RasterBufferAndPrint [10:20:20]line Счет N : (1)347545 [10:20:20]line ИНН: 02508201610067 [10:20:20]line Контрольно-Кассовый Чек [10:20:20]line ПРОДАЖА [10:20:20]line ТРК (МРК, ГНК) : 32 [10:20:20]line Товар: 2710124130 [10:20:20]line Аи-92-К-5 [10:20:20]line 20.000 * 64.30 [10:20:20]line = 1286.00 [10:20:20]line НДС 12% НСП 1% [10:20:20]line > о реализуемом товаре [10:20:20]line ИТОГО: 1286.00 [10:20:20]line НСП 1% : 11.38 [10:20:20]line НДС 12% : 136.57 [10:20:20]line Наличными: 1286.00 [10:20:20]line Безнал.: 0.00 [10:20:20]line Место: АЗС № 108 "Партнер Нефть" [10:20:20]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:20:20]line СНО: Общий режим [10:20:20]line Чек 82 14.04.2024 10:20 [10:20:20]line Смена: 116 ФФД: 1.0 [10:20:20]line ЗНМ: 0300000027 [10:20:20]line РНМ: 0000138879044617 [10:20:20]line Версия ККМ: 001 [10:20:20]line ФМ: 0000000000963154 [10:20:20]line ФД: 29172 [10:20:20]line ФПД: 267828585693959 [10:20:20]line 1/tax-web-control/client/api/v1/ticket?date=20240414T102028&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29172&fm=267828585693959&tin=02508201610067®Number=0000138879044617&sum=128600 [10:20:20]written 0, free lines is 4095 [10:20:20]OFD Sender: Processing packet 29172 [packets to send 8, broken 7] [10:20:20]ProducePacketName [10:20:20]name=ofd_packets/00029172 [10:20:20]OFD Sender: To server: pG, [10:20:20]CommunicateWithHost lk.salyk.kg:30040 [10:20:20]ConnectInit lk.salyk.kg [10:20:20]Connected sock=10 [10:20:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 63 EB 07 01 94 29 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 52 00 00 00 F4 03 04 00 EC AD 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F4 71 00 00 35 04 06 00 F3 96 B3 B6 03 07 3F 94 48 C9 1E 56 1F D8 [10:20:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 B9 FE 47 00 76 FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F4 71 00 00 F4 03 04 00 90 58 1B 66 B6 04 01 00 00 91 FD CE 27 6B F5 CA 05 [10:20:20]CommunicateWithHost err = 0 [10:20:20]CheckOFDResponse [10:20:20]1017 (14) - 77093643461234 [10:20:20]1041 (16) - 0000000000963154 [10:20:20]1040 (4) - 29172 [10:20:20]1012 (4) - 14.04.2024 04:16 [10:20:20]1206 (1) - 0 [10:20:20]OFD Sender: Remove packet 29172 [10:20:20]ProducePacketName [10:20:20]name=ofd_packets/00029172 [10:20:20]NVStorageDeleteData [10:20:20]Write to MH i2c: 01 00 00 49 88 D1 [10:20:21]Write i2c OK [10:20:21]MH_I2C_Read... [10:20:21]Read from MH i2c: 01 [10:20:21]MH_I2C_Read... [10:20:21]Read from MH i2c: 01 07 00 [10:20:21]MH_I2C_Read... [10:20:21]Read from MH i2c: 01 07 00 49 88 00 00 00 00 00 09 0D EE [10:20:21]RasterBufferAndPrint [10:20:21]line [10:20:21]line [10:20:21]line [10:20:21]line [10:20:21]line [10:20:21]written 0, free lines is 3343 [10:20:21]MH_Cut [10:20:21]Write to MH i2c: D1 01 00 50 88 01 AA [10:20:21]Write i2c OK [10:20:21]MH_I2C_Read... [10:20:21]Read from MH i2c: D1 [10:20:21]MH_I2C_Read... [10:20:21]Read from MH i2c: D1 01 00 [10:20:21]MH_I2C_Read... [10:20:21]Read from MH i2c: D1 01 00 50 88 00 A9 [10:20:21]Write to MH i2c: 01 00 00 51 88 D9 [10:20:21]Write i2c OK [10:20:21]MH_I2C_Read... [10:20:21]OFD Sender: No OFD packet to send [10:20:21]*** Cut start [10:20:21]*** Partial cut [10:20:21]*** CUTSNS_PIN = 1 [10:20:21]*** CUTSNS_PIN = 0 [10:20:22]*** Brake cut motor [10:20:22]Read from MH i2c: 01 [10:20:22]MH_I2C_Read... [10:20:22]*** Stop cut motor [10:20:22]*** Cut end [10:20:22]Read from MH i2c: 01 07 00 [10:20:22]MH_I2C_Read... [10:20:22]Read from MH i2c: 01 07 00 51 88 00 00 00 00 00 FF 0F EE [10:20:22]process_action close_receipt done [10:20:22]requested_data is exist [10:20:22]produce_requested_data [10:20:22]requested_item fm.sn is exist - process it [10:20:22]wFMCommunicate request_size=4 [10:20:22]MH_SAM_APDU [10:20:22]CAPDU: 80 11 00 00 [10:20:22]Write to MH i2c: E2 08 00 52 88 80 11 00 00 00 00 00 00 54 [10:20:22]Write i2c OK [10:20:22]MH_I2C_Read... [10:20:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:22]Read from MH i2c: E2 [10:20:22]MH_I2C_Read... [10:20:22]Read from MH i2c: E2 17 00 [10:20:22]MH_I2C_Read... [10:20:22]Read from MH i2c: E2 17 00 52 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A3 [10:20:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:20:22]wFMCommunicate OK [10:20:22]requested_item fd.num is exist - process it [10:20:22]SAM_PROTO_GetFieldsCounters [10:20:22]wFMCommunicate request_size=4 [10:20:22]MH_SAM_APDU [10:20:22]CAPDU: 80 13 00 00 [10:20:22]Write to MH i2c: E2 08 00 53 88 80 13 00 00 00 00 00 00 57 [10:20:22]Write i2c OK [10:20:22]MH_I2C_Read... [10:20:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:20:22]Read from MH i2c: E2 [10:20:22]MH_I2C_Read... [10:20:22]Read from MH i2c: E2 62 00 [10:20:22]MH_I2C_Read... [10:20:22]Read from MH i2c: E2 62 00 53 88 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F4 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 64 [10:20:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F4 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:20:22]wFMCommunicate OK [10:20:22]SAM_PROTO_GetFieldsCounters done [10:20:22]requested_item shift.num is exist - process it [10:20:22]requested_item shift.opened is exist - process it [10:20:22]req_shift_opened [10:20:22]FM_GetShiftState [10:20:22]SAM_PROTO_GetShiftState [10:20:22]wFMCommunicate request_size=4 [10:20:22]MH_SAM_APDU [10:20:22]CAPDU: 80 13 01 00 [10:20:22]Write to MH i2c: E2 08 00 54 88 80 13 01 00 00 00 00 00 59 [10:20:22]Write i2c OK [10:20:22]MH_I2C_Read... [10:20:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:22]Read from MH i2c: E2 [10:20:22]MH_I2C_Read... [10:20:22]Read from MH i2c: E2 0E 00 [10:20:22]MH_I2C_Read... [10:20:22]Read from MH i2c: E2 0E 00 54 88 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 05 [10:20:22]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [10:20:22]wFMCommunicate OK [10:20:22]SAM_PROTO_GetShiftState done [10:20:22]FM_GetShiftState done [10:20:22]req_shift_opened done [10:20:22]requested_item shift.open_date is exist - process it [10:20:22]req_shift_open_date [10:20:22]req_shift_open_date done [10:20:22]produce_requested_data done [10:20:22]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29172,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [10:20:22]process_action_free close_receipt [10:20:22]json_value_free [10:20:22]json_value_free done [10:20:22]process_json_proto returns [10:20:22]Send response to host [10:20:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29172,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [10:20:22]free response buf [10:20:22]execute_script done [10:20:22]execute_script returns [10:20:22]free content buf [10:20:22]Sock 9.Close socket [10:20:22]Sock 9.Thread stoped [10:20:26]OFD Sender: No OFD packet to send [10:20:31]OFD Sender: No OFD packet to send [10:20:36]OFD Sender: No OFD packet to send [10:20:41]OFD Sender: No OFD packet to send [10:20:44]accept exits with 7 [10:20:44]New connection [10:20:44]New thread 3066928484 created [10:20:44]Thread 3066785124 joined [10:20:44]Waiting for new connection... [10:20:44] Sock 7.Parse request [10:20:44]Sock 7.Check first char [10:20:44]Sock 7.First char is OK [10:20:44]request: POST /json_proto HTTP/1.0 [10:20:44]Method: POST [10:20:44]URL: /json_proto [10:20:44]Method is POST - this is cgi request [10:20:44]url: /json_proto [10:20:44]query_string will be loaded in cgi processing [10:20:44]execute_cgi json_proto POST (null) [10:20:44]execute_cgi path=json_proto method=POST [10:20:44]POST find Content-Length [10:20:44]Host: 172.17.33.3:8080 [10:20:44]Content-Length: 805 [10:20:44]Content-Type: application/json [10:20:44] [10:20:44]POST finish read [10:20:44]Found Content-Length = 805 [10:20:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347544", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:20:44]execute_script... [10:20: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)347544", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:20:44]POST & json_proto [10:20:44]process_json_proto [10:20:44]json parsed OK: [10:20:44]protocol is kg_v1.0 [10:20:44]action value=close_receipt [10:20:44]process_action close_receipt [10:20:44]cmd_close_receipt [10:20:44]MH_GetDate [10:20:44]Write to MH i2c: F0 00 00 55 88 CC [10:20:44]Write i2c OK [10:20:44]MH_I2C_Read... [10:20:44]Read from MH i2c: F0 [10:20:44]MH_I2C_Read... [10:20:44]Read from MH i2c: F0 09 00 [10:20:44]MH_I2C_Read... [10:20:44]Read from MH i2c: F0 09 00 55 88 00 05 AE 1B 66 23 5B 8F 65 7B [10:20:44]GetLastDocTimeStamp 1713090028 [10:20:44]current date 1713090053 [10:20:44]FM_GetShiftState [10:20:44]SAM_PROTO_GetShiftState [10:20:44]wFMCommunicate request_size=4 [10:20:44]MH_SAM_APDU [10:20:44]CAPDU: 80 13 01 00 [10:20:44]Write to MH i2c: E2 08 00 56 88 80 13 01 00 00 00 00 00 5B [10:20:44]Write i2c OK [10:20:44]MH_I2C_Read... [10:20:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:44]Read from MH i2c: E2 [10:20:44]MH_I2C_Read... [10:20:44]Read from MH i2c: E2 0E 00 [10:20:44]MH_I2C_Read... [10:20:44]Read from MH i2c: E2 0E 00 56 88 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 07 [10:20:44]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [10:20:44]wFMCommunicate OK [10:20:44]SAM_PROTO_GetShiftState done [10:20:44]FM_GetShiftState done [10:20:44]opened in 1713053951 [10:20:44]opened+sec_in_day 1713140351 [10:20:44]quantity*price = 200041 [10:20:44]sum+1 = 200042 [10:20:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.41 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 0.00 Безнал.: 2000.41 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 83 14.04.2024 10:20 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29173 ФПД: 248285962798448 1/tax-web-control/client/api/v1/ticket?date=20240414T102053&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29173&fm=248285962798448&tin=02508201610067®Number=0000138879044617&sum=200041 [10:20:45]StoreToDocumentArchive [10:20:45]shift 116 fd 29173 [10:20:45]save to /storage/0116/doc_00029173 [10:20:45]save last doc name /storage/0116/doc_00029173 to /storage/kkm_last_doc_name [10:20:45]save OK [10:20:45]Clear old archive folders... [10:20:45]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:20:45]tlvbuf is 012087F0 [10:20:45]SAM_PROTO_ClearQueue [10:20:45]wFMCommunicate request_size=4 [10:20:45]MH_SAM_APDU [10:20:45]CAPDU: 80 09 00 00 [10:20:45]Write to MH i2c: E2 08 00 63 88 80 09 00 00 00 00 00 00 5D [10:20:45]Write i2c OK [10:20:45]MH_I2C_Read... [10:20:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:20:45]Read from MH i2c: E2 [10:20:45]MH_I2C_Read... [10:20:45]Read from MH i2c: E2 03 00 [10:20:45]MH_I2C_Read... [10:20:45]Read from MH i2c: E2 03 00 63 88 00 90 00 5F [10:20:45]RAPDU: 90 00 [10:20:45]wFMCommunicate OK [10:20:45]SAM_PROTO_ClearQueue done [10:20:45]KKMCreateOFDPacket [10:20:45]OFDProtocolAddRootSTLVToBuf [10:20:45]FM_MakeSignedData [10:20:45]FM_MakeSignedData [10:20:45]SAM_PROTO_SignData [10:20:45]wFMCommunicate request_size=4 [10:20:45]MH_SAM_APDU [10:20:45]CAPDU: 80 0D 01 02 [10:20:45]Write to MH i2c: E2 08 00 64 88 80 0D 01 02 00 00 00 00 65 [10:20:45]Write i2c OK [10:20:45]MH_I2C_Read... [10:20:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:20:45]Read from MH i2c: E2 [10:20:45]MH_I2C_Read... [10:20:45]Read from MH i2c: E2 03 00 [10:20:45]MH_I2C_Read... [10:20:45]Read from MH i2c: E2 03 00 64 88 00 90 00 60 [10:20:45]RAPDU: 90 00 [10:20:45]wFMCommunicate OK [10:20:45]wFMCommunicate request_size=255 [10:20:45]MH_SAM_APDU [10:20: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 53 00 00 00 F4 03 04 00 05 AE 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F5 71 00 00 35 04 06 00 E1 D0 94 9D [10:20:45]Write to MH i2c: E2 02 01 65 88 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 53 00 00 00 F4 03 04 00 05 AE 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F5 71 00 00 35 04 06 00 E1 D0 94 9D 00 00 87 [10:20:45]Write i2c OK [10:20:45]MH_I2C_Read... [10:20:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:45]Read from MH i2c: E2 [10:20:45]MH_I2C_Read... [10:20:45]Read from MH i2c: E2 03 00 [10:20:45]MH_I2C_Read... [10:20:45]Read from MH i2c: E2 03 00 65 88 00 90 00 61 [10:20:45]RAPDU: 90 00 [10:20:45]wFMCommunicate OK [10:20:45]wFMCommunicate request_size=7 [10:20:45]MH_SAM_APDU [10:20:45]CAPDU: 80 0D 02 02 02 85 70 [10:20:45]Write to MH i2c: E2 0A 00 66 88 80 0D 02 02 02 00 85 70 00 00 61 [10:20:45]Write i2c OK [10:20:45]MH_I2C_Read... [10:20:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:45]Read from MH i2c: E2 [10:20:45]MH_I2C_Read... [10:20:45]Read from MH i2c: E2 03 00 [10:20:45]MH_I2C_Read... [10:20:45]Read from MH i2c: E2 03 00 66 88 00 90 00 62 [10:20:45]RAPDU: 90 00 [10:20:45]wFMCommunicate OK [10:20:45]wFMCommunicate request_size=4 [10:20:45]MH_SAM_APDU [10:20:45]CAPDU: 80 0D 03 02 [10:20:45]Write to MH i2c: E2 08 00 67 88 80 0D 03 02 00 00 00 00 6A [10:20:45]Write i2c OK [10:20:45]MH_I2C_Read... [10:20:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:20:45]Read from MH i2c: E2 [10:20:45]MH_I2C_Read... [10:20:45]Read from MH i2c: E2 0B 00 [10:20:45]MH_I2C_Read... [10:20:45]Read from MH i2c: E2 0B 00 67 88 00 56 06 DD 44 61 33 2C B4 90 00 5C [10:20:45]RAPDU: 56 06 DD 44 61 33 2C B4 90 00 [10:20:45]wFMCommunicate OK [10:20:45]SAM_PROTO_SignData done [10:20:45]FM_MakeSignedData done [10:20:45]CreateOFDProtocolMessage [10:20:45]wFMCommunicate request_size=4 [10:20:45]MH_SAM_APDU [10:20:45]CAPDU: 80 11 00 00 [10:20:45]Write to MH i2c: E2 08 00 68 88 80 11 00 00 00 00 00 00 6A [10:20:45]Write i2c OK [10:20:45]MH_I2C_Read... [10:20:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:45]Read from MH i2c: E2 [10:20:45]MH_I2C_Read... [10:20:45]Read from MH i2c: E2 17 00 [10:20:45]MH_I2C_Read... [10:20:45]Read from MH i2c: E2 17 00 68 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B9 [10:20:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:20:45]wFMCommunicate OK [10:20:45]CreateOFDProtocolMessage done [10:20:45]OFDSenderStorePacket 29173 [10:20:45]StoreOFDPacket docnum=29173 [10:20:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 B2 42 04 01 88 4E 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 53 00 00 00 F4 03 04 00 05 AE 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F5 71 00 00 35 04 06 00 E1 D0 94 9D 85 70 56 06 DD 44 61 33 2C B4 [10:20:45]CheckFolder [10:20:45]dirname=/storage/ofd_packets [10:20:45]CheckFolder done [10:20:45]ProducePacketName [10:20:45]name=ofd_packets/00029173 [10:20:45]NVStorageSaveData ofd_packets/00029173 [10:20:45]File name is /storage/ofd_packets/00029173 [10:20:45]Write 298 bytes [10:20:45]NVStorageSaveData done [10:20:45]OFDSenderStorePacket done [10:20:45]KKMCreateOFDPacket done [10:20:45]NVStorageSaveData kkm_last_timestamp [10:20:45]File name is /storage/kkm_last_timestamp [10:20:45]Write 4 bytes [10:20:45]NVStorageSaveData done [10:20:45]ExternCall_PrintAddStr [10:20:45]wPrintStart [10:20:45]Write to MH i2c: 01 00 00 69 88 F1 [10:20:45]Write i2c OK [10:20:45]MH_I2C_Read... [10:20:45]Read from MH i2c: 01 [10:20:45]MH_I2C_Read... [10:20:45]Read from MH i2c: 01 07 00 [10:20:45]MH_I2C_Read... [10:20:45]Read from MH i2c: 01 07 00 69 88 00 00 00 00 00 FF 0F 06 [10:20:45]RasterBufferAndPrint [10:20:45]line Счет N : (1)347544 [10:20:45]line ИНН: 02508201610067 [10:20:45]line Контрольно-Кассовый Чек [10:20:45]line ПРОДАЖА [10:20:45]line ТРК (МРК, ГНК) : 61 [10:20:45]line Товар: 2710194210 [10:20:45]line ДТ-К-5 [10:20:45]line 27.630 * 72.40 [10:20:45]line = 2000.41 [10:20:45]line НДС 12% НСП 1% [10:20:45]line > о реализуемом товаре [10:20:45]line ИТОГО: 2000.41 [10:20:45]line НСП 1% : 17.70 [10:20:45]line НДС 12% : 212.43 [10:20:45]line Наличными: 0.00 [10:20:45]line Безнал.: 2000.41 [10:20:45]line Место: АЗС № 108 "Партнер Нефть" [10:20:45]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:20:45]line СНО: Общий режим [10:20:45]line Чек 83 14.04.2024 10:20 [10:20:45]line Смена: 116 ФФД: 1.0 [10:20:45]line ЗНМ: 0300000027 [10:20:45]line РНМ: 0000138879044617 [10:20:45]line Версия ККМ: 001 [10:20:45]line Платежная система: О! деньги [10:20:45]line ФМ: 0000000000963154 [10:20:45]line ФД: 29173 [10:20:45]line ФПД: 248285962798448 [10:20:46]line 1/tax-web-control/client/api/v1/ticket?date=20240414T102053&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29173&fm=248285962798448&tin=02508201610067®Number=0000138879044617&sum=200041 [10:20:46]OFD Sender: Processing packet 29173 [packets to send 8, broken 7] [10:20:46]ProducePacketName [10:20:46]name=ofd_packets/00029173 [10:20:46]OFD Sender: To server: pG, [10:20:46]CommunicateWithHost lk.salyk.kg:30040 [10:20:46]ConnectInit lk.salyk.kg [10:20:46]written 0, free lines is 4095 [10:20:46]Connected sock=10 [10:20:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 B2 42 04 01 88 4E 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 53 00 00 00 F4 03 04 00 05 AE 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F5 71 00 00 35 04 06 00 E1 D0 94 9D 85 70 56 06 DD 44 61 33 2C B4 [10:20:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 3F A6 47 00 92 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 39 36 33 31 35 34 10 04 04 00 F5 71 00 00 F4 03 04 00 AA 58 1B 66 B6 04 01 00 00 8A D8 05 34 17 7A 04 AF [10:20:46]CommunicateWithHost err = 0 [10:20:46]CheckOFDResponse [10:20:46]1017 (14) - 77093643461234 [10:20:46]1041 (16) - 0000000000963154 [10:20:46]1040 (4) - 29173 [10:20:46]1012 (4) - 14.04.2024 04:16 [10:20:46]1206 (1) - 0 [10:20:46]OFD Sender: Remove packet 29173 [10:20:46]ProducePacketName [10:20:46]name=ofd_packets/00029173 [10:20:46]NVStorageDeleteData [10:20:46]Write to MH i2c: 01 00 00 92 88 1A [10:20:46]Write i2c OK [10:20:46]MH_I2C_Read... [10:20:46]Read from MH i2c: 01 [10:20:46]MH_I2C_Read... [10:20:46]Read from MH i2c: 01 07 00 [10:20:46]MH_I2C_Read... [10:20:46]Read from MH i2c: 01 07 00 92 88 00 00 00 00 00 E9 0C 16 [10:20:46]RasterBufferAndPrint [10:20:46]line [10:20:46]line [10:20:46]line [10:20:46]line [10:20:46]line [10:20:46]written 0, free lines is 3313 [10:20:46]MH_Cut [10:20:46]Write to MH i2c: D1 01 00 99 88 01 F3 [10:20:46]Write i2c OK [10:20:46]MH_I2C_Read... [10:20:46]Read from MH i2c: D1 [10:20:46]MH_I2C_Read... [10:20:46]Read from MH i2c: D1 01 00 [10:20:46]MH_I2C_Read... [10:20:46]Read from MH i2c: D1 01 00 99 88 00 F2 [10:20:46]Write to MH i2c: 01 00 00 9A 88 22 [10:20:46]Write i2c OK [10:20:46]MH_I2C_Read... [10:20:46]OFD Sender: No OFD packet to send [10:20:47]*** Cut start [10:20:47]*** Partial cut [10:20:47]*** CUTSNS_PIN = 1 [10:20:47]*** CUTSNS_PIN = 0 [10:20:47]*** Brake cut motor [10:20:48]Read from MH i2c: 01 [10:20:48]MH_I2C_Read... [10:20:48]*** Stop cut motor [10:20:48]*** Cut end [10:20:48]Read from MH i2c: 01 07 00 [10:20:48]MH_I2C_Read... [10:20:48]Read from MH i2c: 01 07 00 9A 88 00 00 00 00 00 FF 0F 37 [10:20:48]process_action close_receipt done [10:20:48]requested_data is exist [10:20:48]produce_requested_data [10:20:48]requested_item fm.sn is exist - process it [10:20:48]wFMCommunicate request_size=4 [10:20:48]MH_SAM_APDU [10:20:48]CAPDU: 80 11 00 00 [10:20:48]Write to MH i2c: E2 08 00 9B 88 80 11 00 00 00 00 00 00 9D [10:20:48]Write i2c OK [10:20:48]MH_I2C_Read... [10:20:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:48]Read from MH i2c: E2 [10:20:48]MH_I2C_Read... [10:20:48]Read from MH i2c: E2 17 00 [10:20:48]MH_I2C_Read... [10:20:48]Read from MH i2c: E2 17 00 9B 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 EC [10:20:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:20:48]wFMCommunicate OK [10:20:48]requested_item fd.num is exist - process it [10:20:48]SAM_PROTO_GetFieldsCounters [10:20:48]wFMCommunicate request_size=4 [10:20:48]MH_SAM_APDU [10:20:48]CAPDU: 80 13 00 00 [10:20:48]Write to MH i2c: E2 08 00 9C 88 80 13 00 00 00 00 00 00 A0 [10:20:48]Write i2c OK [10:20:48]MH_I2C_Read... [10:20:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:20:48]Read from MH i2c: E2 [10:20:48]MH_I2C_Read... [10:20:48]Read from MH i2c: E2 62 00 [10:20:48]MH_I2C_Read... [10:20:48]Read from MH i2c: E2 62 00 9C 88 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F5 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 B1 [10:20:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F5 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:20:48]wFMCommunicate OK [10:20:48]SAM_PROTO_GetFieldsCounters done [10:20:48]requested_item shift.num is exist - process it [10:20:48]requested_item shift.opened is exist - process it [10:20:48]req_shift_opened [10:20:48]FM_GetShiftState [10:20:48]SAM_PROTO_GetShiftState [10:20:48]wFMCommunicate request_size=4 [10:20:48]MH_SAM_APDU [10:20:48]CAPDU: 80 13 01 00 [10:20:48]Write to MH i2c: E2 08 00 9D 88 80 13 01 00 00 00 00 00 A2 [10:20:48]Write i2c OK [10:20:48]MH_I2C_Read... [10:20:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:48]Read from MH i2c: E2 [10:20:48]MH_I2C_Read... [10:20:48]Read from MH i2c: E2 0E 00 [10:20:48]MH_I2C_Read... [10:20:48]Read from MH i2c: E2 0E 00 9D 88 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 4E [10:20:48]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [10:20:48]wFMCommunicate OK [10:20:48]SAM_PROTO_GetShiftState done [10:20:48]FM_GetShiftState done [10:20:48]req_shift_opened done [10:20:48]requested_item shift.open_date is exist - process it [10:20:48]req_shift_open_date [10:20:48]req_shift_open_date done [10:20:48]produce_requested_data done [10:20:48]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29173,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [10:20:48]process_action_free close_receipt [10:20:48]json_value_free [10:20:48]json_value_free done [10:20:48]process_json_proto returns [10:20:48]Send response to host [10:20:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29173,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [10:20:48]free response buf [10:20:48]execute_script done [10:20:48]execute_script returns [10:20:48]free content buf [10:20:48]Sock 7.Close socket [10:20:48]Sock 7.Thread stoped [10:20:51]OFD Sender: No OFD packet to send [10:20:56]OFD Sender: No OFD packet to send [10:21:01]OFD Sender: No OFD packet to send [10:21:06]OFD Sender: No OFD packet to send [10:21:11]OFD Sender: No OFD packet to send [10:21:16]OFD Sender: No OFD packet to send [10:21:21]OFD Sender: No OFD packet to send [10:21:26]OFD Sender: No OFD packet to send [10:21:32]OFD Sender: No OFD packet to send [10:21:37]OFD Sender: No OFD packet to send [10:21:42]OFD Sender: No OFD packet to send [10:21:47]OFD Sender: No OFD packet to send [10:21:52]OFD Sender: No OFD packet to send [10:21:57]OFD Sender: No OFD packet to send [10:22:02]OFD Sender: No OFD packet to send [10:22:07]OFD Sender: No OFD packet to send [10:22:12]OFD Sender: No OFD packet to send [10:22:17]OFD Sender: No OFD packet to send [10:22:22]OFD Sender: No OFD packet to send [10:22:27]OFD Sender: No OFD packet to send [10:22:32]OFD Sender: No OFD packet to send [10:22:37]OFD Sender: No OFD packet to send [10:22:42]OFD Sender: No OFD packet to send [10:22:47]OFD Sender: No OFD packet to send [10:22:52]OFD Sender: No OFD packet to send [10:22:57]OFD Sender: No OFD packet to send [10:23:02]OFD Sender: No OFD packet to send [10:23:07]OFD Sender: No OFD packet to send [10:23:12]OFD Sender: No OFD packet to send [10:23:17]OFD Sender: No OFD packet to send [10:23:22]OFD Sender: No OFD packet to send [10:23:27]OFD Sender: No OFD packet to send [10:23:32]OFD Sender: No OFD packet to send [10:23:37]OFD Sender: No OFD packet to send [10:23:42]OFD Sender: No OFD packet to send [10:23:47]OFD Sender: No OFD packet to send [10:23:52]OFD Sender: No OFD packet to send [10:23:57]OFD Sender: No OFD packet to send [10:24:00]accept exits with 9 [10:24:00]New connection [10:24:00]New thread 3066785124 created [10:24:00]Thread 3066928484 joined [10:24:00]Waiting for new connection... [10:24:00] Sock 9.Parse request [10:24:00]Sock 9.Check first char [10:24:00]Sock 9.First char is OK [10:24:00]request: POST /json_proto HTTP/1.0 [10:24:00]Method: POST [10:24:00]URL: /json_proto [10:24:00]Method is POST - this is cgi request [10:24:00]url: /json_proto [10:24:00]query_string will be loaded in cgi processing [10:24:00]execute_cgi json_proto POST (null) [10:24:00]execute_cgi path=json_proto method=POST [10:24:00]POST find Content-Length [10:24:00]Host: 172.17.33.3:8080 [10:24:00]Content-Length: 682 [10:24:00]Content-Type: application/json [10:24:00] [10:24:00]POST finish read [10:24:00]Found Content-Length = 682 [10:24:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347547", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.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" ] } } [10:24:00]execute_script... [10:24: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)347547", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.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" ] } } [10:24:00]POST & json_proto [10:24:00]process_json_proto [10:24:00]json parsed OK: [10:24:00]protocol is kg_v1.0 [10:24:00]action value=close_receipt [10:24:00]process_action close_receipt [10:24:00]cmd_close_receipt [10:24:00]MH_GetDate [10:24:00]Write to MH i2c: F0 00 00 9E 88 15 [10:24:00]Write i2c OK [10:24:00]MH_I2C_Read... [10:24:00]Read from MH i2c: F0 [10:24:00]MH_I2C_Read... [10:24:00]Read from MH i2c: F0 09 00 [10:24:00]MH_I2C_Read... [10:24:00]Read from MH i2c: F0 09 00 9E 88 00 CA AE 1B 66 23 5B 8F 65 89 [10:24:00]GetLastDocTimeStamp 1713090053 [10:24:00]current date 1713090250 [10:24:00]FM_GetShiftState [10:24:00]SAM_PROTO_GetShiftState [10:24:00]wFMCommunicate request_size=4 [10:24:00]MH_SAM_APDU [10:24:00]CAPDU: 80 13 01 00 [10:24:00]Write to MH i2c: E2 08 00 9F 88 80 13 01 00 00 00 00 00 A4 [10:24:00]Write i2c OK [10:24:00]MH_I2C_Read... [10:24:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:00]Read from MH i2c: E2 [10:24:00]MH_I2C_Read... [10:24:00]Read from MH i2c: E2 0E 00 [10:24:00]MH_I2C_Read... [10:24:00]Read from MH i2c: E2 0E 00 9F 88 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 50 [10:24:00]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [10:24:00]wFMCommunicate OK [10:24:00]SAM_PROTO_GetShiftState done [10:24:00]FM_GetShiftState done [10:24:00]opened in 1713053951 [10:24:00]opened+sec_in_day 1713140351 [10:24:00]quantity*price = 100050 [10:24:00]sum+1 = 100051 [10:24:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 84 14.04.2024 10:24 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29174 ФПД: 159417809489977 1/tax-web-control/client/api/v1/ticket?date=20240414T102410&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29174&fm=159417809489977&tin=02508201610067®Number=0000138879044617&sum=100000 [10:24:01]StoreToDocumentArchive [10:24:01]shift 116 fd 29174 [10:24:01]save to /storage/0116/doc_00029174 [10:24:01]save last doc name /storage/0116/doc_00029174 to /storage/kkm_last_doc_name [10:24:01]save OK [10:24:01]Clear old archive folders... [10:24:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:24:01]tlvbuf is 012F09A0 [10:24:01]SAM_PROTO_ClearQueue [10:24:01]wFMCommunicate request_size=4 [10:24:01]MH_SAM_APDU [10:24:01]CAPDU: 80 09 00 00 [10:24:01]Write to MH i2c: E2 08 00 AC 88 80 09 00 00 00 00 00 00 A6 [10:24:01]Write i2c OK [10:24:01]MH_I2C_Read... [10:24:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:24:01]Read from MH i2c: E2 [10:24:01]MH_I2C_Read... [10:24:01]Read from MH i2c: E2 03 00 [10:24:01]MH_I2C_Read... [10:24:01]Read from MH i2c: E2 03 00 AC 88 00 90 00 A8 [10:24:01]RAPDU: 90 00 [10:24:01]wFMCommunicate OK [10:24:01]SAM_PROTO_ClearQueue done [10:24:01]KKMCreateOFDPacket [10:24:01]OFDProtocolAddRootSTLVToBuf [10:24:01]FM_MakeSignedData [10:24:01]FM_MakeSignedData [10:24:01]SAM_PROTO_SignData [10:24:01]wFMCommunicate request_size=4 [10:24:01]MH_SAM_APDU [10:24:01]CAPDU: 80 0D 01 02 [10:24:01]Write to MH i2c: E2 08 00 AD 88 80 0D 01 02 00 00 00 00 AE [10:24:01]Write i2c OK [10:24:01]MH_I2C_Read... [10:24:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:24:01]Read from MH i2c: E2 [10:24:01]MH_I2C_Read... [10:24:01]Read from MH i2c: E2 03 00 [10:24:01]MH_I2C_Read... [10:24:01]Read from MH i2c: E2 03 00 AD 88 00 90 00 A9 [10:24:01]RAPDU: 90 00 [10:24:01]wFMCommunicate OK [10:24:01]wFMCommunicate request_size=255 [10:24:01]MH_SAM_APDU [10:24: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 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 54 00 00 00 F4 03 04 00 CA AE 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F6 71 00 00 35 04 06 00 90 [10:24:01]Write to MH i2c: E2 02 01 AE 88 80 0D 02 02 FA 00 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 54 00 00 00 F4 03 04 00 CA AE 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F6 71 00 00 35 04 06 00 90 00 00 E5 [10:24:01]Write i2c OK [10:24:01]MH_I2C_Read... [10:24:02]OFD Sender: No OFD packet to send [10:24:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:24:02]Read from MH i2c: E2 [10:24:02]MH_I2C_Read... [10:24:02]Read from MH i2c: E2 03 00 [10:24:02]MH_I2C_Read... [10:24:02]Read from MH i2c: E2 03 00 AE 88 00 90 00 AA [10:24:02]RAPDU: 90 00 [10:24:02]wFMCommunicate OK [10:24:02]wFMCommunicate request_size=10 [10:24:02]MH_SAM_APDU [10:24:02]CAPDU: 80 0D 02 02 05 FD 59 E7 D0 39 [10:24:02]Write to MH i2c: E2 0D 00 AF 88 80 0D 02 02 05 00 FD 59 E7 D0 39 00 00 01 [10:24:02]Write i2c OK [10:24:02]MH_I2C_Read... [10:24:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:24:02]Read from MH i2c: E2 [10:24:02]MH_I2C_Read... [10:24:02]Read from MH i2c: E2 03 00 [10:24:02]MH_I2C_Read... [10:24:02]Read from MH i2c: E2 03 00 AF 88 00 90 00 AB [10:24:02]RAPDU: 90 00 [10:24:02]wFMCommunicate OK [10:24:02]wFMCommunicate request_size=4 [10:24:02]MH_SAM_APDU [10:24:02]CAPDU: 80 0D 03 02 [10:24:02]Write to MH i2c: E2 08 00 B0 88 80 0D 03 02 00 00 00 00 B3 [10:24:02]Write i2c OK [10:24:02]MH_I2C_Read... [10:24:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:24:02]Read from MH i2c: E2 [10:24:02]MH_I2C_Read... [10:24:02]Read from MH i2c: E2 0B 00 [10:24:02]MH_I2C_Read... [10:24:02]Read from MH i2c: E2 0B 00 B0 88 00 76 BB FA A8 01 1F AC 89 90 00 DC [10:24:02]RAPDU: 76 BB FA A8 01 1F AC 89 90 00 [10:24:02]wFMCommunicate OK [10:24:02]SAM_PROTO_SignData done [10:24:02]FM_MakeSignedData done [10:24:02]CreateOFDProtocolMessage [10:24:02]wFMCommunicate request_size=4 [10:24:02]MH_SAM_APDU [10:24:02]CAPDU: 80 11 00 00 [10:24:02]Write to MH i2c: E2 08 00 B1 88 80 11 00 00 00 00 00 00 B3 [10:24:02]Write i2c OK [10:24:02]MH_I2C_Read... [10:24:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:02]Read from MH i2c: E2 [10:24:02]MH_I2C_Read... [10:24:02]Read from MH i2c: E2 17 00 [10:24:02]MH_I2C_Read... [10:24:02]Read from MH i2c: E2 17 00 B1 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 02 [10:24:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:24:02]wFMCommunicate OK [10:24:02]CreateOFDProtocolMessage done [10:24:02]OFDSenderStorePacket 29174 [10:24:02]StoreOFDPacket docnum=29174 [10:24:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 15 86 07 01 6B 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 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 54 00 00 00 F4 03 04 00 CA AE 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F6 71 00 00 35 04 06 00 90 FD 59 E7 D0 39 76 BB FA A8 01 1F AC 89 [10:24:02]CheckFolder [10:24:02]dirname=/storage/ofd_packets [10:24:02]CheckFolder done [10:24:02]ProducePacketName [10:24:02]name=ofd_packets/00029174 [10:24:02]NVStorageSaveData ofd_packets/00029174 [10:24:02]File name is /storage/ofd_packets/00029174 [10:24:02]Write 301 bytes [10:24:02]NVStorageSaveData done [10:24:02]OFDSenderStorePacket done [10:24:02]KKMCreateOFDPacket done [10:24:02]NVStorageSaveData kkm_last_timestamp [10:24:02]File name is /storage/kkm_last_timestamp [10:24:02]Write 4 bytes [10:24:02]NVStorageSaveData done [10:24:02]ExternCall_PrintAddStr [10:24:02]wPrintStart [10:24:02]Write to MH i2c: 01 00 00 B2 88 3A [10:24:02]Write i2c OK [10:24:02]MH_I2C_Read... [10:24:02]Read from MH i2c: 01 [10:24:02]MH_I2C_Read... [10:24:02]Read from MH i2c: 01 07 00 [10:24:02]MH_I2C_Read... [10:24:02]Read from MH i2c: 01 07 00 B2 88 00 00 00 00 00 FF 0F 4F [10:24:02]RasterBufferAndPrint [10:24:02]line Счет N : (1)347547 [10:24:02]line ИНН: 02508201610067 [10:24:02]line Контрольно-Кассовый Чек [10:24:02]line ПРОДАЖА [10:24:02]line ТРК (МРК, ГНК) : 33 [10:24:02]line Товар: 2710124500 [10:24:02]line Аи-95-К-5 [10:24:02]line 13.800 * 72.50 [10:24:02]line = 1000.50 [10:24:02]line НДС 12% НСП 1% [10:24:02]line > о реализуемом товаре [10:24:02]line ОКРУГЛЕНИЕ: -0.50 [10:24:02]line ИТОГО: 1000.00 [10:24:02]line Внесено: 1000.00 [10:24:02]line СДАЧА: 0.00 [10:24:02]line НСП 1% : 8.85 [10:24:02]line НДС 12% : 106.25 [10:24:02]line Наличными: 1000.00 [10:24:02]line Безнал.: 0.00 [10:24:02]line Место: АЗС № 108 "Партнер Нефть" [10:24:02]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:24:02]line СНО: Общий режим [10:24:02]line Чек 84 14.04.2024 10:24 [10:24:02]line Смена: 116 ФФД: 1.0 [10:24:02]line ЗНМ: 0300000027 [10:24:02]line РНМ: 0000138879044617 [10:24:02]line Версия ККМ: 001 [10:24:02]line ФМ: 0000000000963154 [10:24:02]line ФД: 29174 [10:24:02]line ФПД: 159417809489977 [10:24:02]line 1/tax-web-control/client/api/v1/ticket?date=20240414T102410&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29174&fm=159417809489977&tin=02508201610067®Number=0000138879044617&sum=100000 [10:24:02]OFD Sender: Processing packet 29174 [packets to send 8, broken 7] [10:24:02]ProducePacketName [10:24:02]name=ofd_packets/00029174 [10:24:02]OFD Sender: To server: pG, [10:24:02]CommunicateWithHost lk.salyk.kg:30040 [10:24:02]ConnectInit lk.salyk.kg [10:24:02]written 0, free lines is 4095 [10:24:02]Connected sock=11 [10:24:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 15 86 07 01 6B 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 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 54 00 00 00 F4 03 04 00 CA AE 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F6 71 00 00 35 04 06 00 90 FD 59 E7 D0 39 76 BB FA A8 01 1F AC 89 [10:24:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 CA BD 47 00 DF 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F6 71 00 00 F4 03 04 00 6E 59 1B 66 B6 04 01 00 00 10 E1 6C 52 0D 68 B3 4E [10:24:02]CommunicateWithHost err = 0 [10:24:02]CheckOFDResponse [10:24:02]1017 (14) - 77093643461234 [10:24:02]1041 (16) - 0000000000963154 [10:24:02]1040 (4) - 29174 [10:24:02]1012 (4) - 14.04.2024 04:19 [10:24:02]1206 (1) - 0 [10:24:02]OFD Sender: Remove packet 29174 [10:24:02]ProducePacketName [10:24:02]name=ofd_packets/00029174 [10:24:02]NVStorageDeleteData [10:24:03]Write to MH i2c: 01 00 00 DC 88 64 [10:24:03]Write i2c OK [10:24:03]MH_I2C_Read... [10:24:03]Read from MH i2c: 01 [10:24:03]MH_I2C_Read... [10:24:03]Read from MH i2c: 01 07 00 [10:24:03]MH_I2C_Read... [10:24:03]Read from MH i2c: 01 07 00 DC 88 00 00 00 00 00 C8 0C 3F [10:24:03]RasterBufferAndPrint [10:24:03]line [10:24:03]line [10:24:03]line [10:24:03]line [10:24:03]line [10:24:03]written 0, free lines is 3278 [10:24:03]MH_Cut [10:24:03]Write to MH i2c: D1 01 00 E3 88 01 3D [10:24:03]Write i2c OK [10:24:03]MH_I2C_Read... [10:24:03]Read from MH i2c: D1 [10:24:03]MH_I2C_Read... [10:24:03]Read from MH i2c: D1 01 00 [10:24:03]MH_I2C_Read... [10:24:03]Read from MH i2c: D1 01 00 E3 88 00 3C [10:24:03]Write to MH i2c: 01 00 00 E4 88 6C [10:24:03]Write i2c OK [10:24:03]MH_I2C_Read... [10:24:03]OFD Sender: No OFD packet to send [10:24:03]*** Cut start [10:24:03]*** Partial cut [10:24:03]*** CUTSNS_PIN = 1 [10:24:04]*** CUTSNS_PIN = 0 [10:24:04]*** Brake cut motor [10:24:04]Read from MH i2c: 01 [10:24:04]MH_I2C_Read... [10:24:04]*** Stop cut motor [10:24:04]*** Cut end [10:24:04]Read from MH i2c: 01 07 00 [10:24:04]MH_I2C_Read... [10:24:04]Read from MH i2c: 01 07 00 E4 88 00 00 00 00 00 FF 0F 81 [10:24:04]process_action close_receipt done [10:24:04]requested_data is exist [10:24:04]produce_requested_data [10:24:04]requested_item fm.sn is exist - process it [10:24:04]wFMCommunicate request_size=4 [10:24:04]MH_SAM_APDU [10:24:04]CAPDU: 80 11 00 00 [10:24:04]Write to MH i2c: E2 08 00 E5 88 80 11 00 00 00 00 00 00 E7 [10:24:04]Write i2c OK [10:24:04]MH_I2C_Read... [10:24:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:04]Read from MH i2c: E2 [10:24:04]MH_I2C_Read... [10:24:04]Read from MH i2c: E2 17 00 [10:24:04]MH_I2C_Read... [10:24:04]Read from MH i2c: E2 17 00 E5 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 36 [10:24:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:24:04]wFMCommunicate OK [10:24:04]requested_item fd.num is exist - process it [10:24:04]SAM_PROTO_GetFieldsCounters [10:24:04]wFMCommunicate request_size=4 [10:24:04]MH_SAM_APDU [10:24:04]CAPDU: 80 13 00 00 [10:24:04]Write to MH i2c: E2 08 00 E6 88 80 13 00 00 00 00 00 00 EA [10:24:04]Write i2c OK [10:24:04]MH_I2C_Read... [10:24:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:24:04]Read from MH i2c: E2 [10:24:04]MH_I2C_Read... [10:24:04]Read from MH i2c: E2 62 00 [10:24:04]MH_I2C_Read... [10:24:04]Read from MH i2c: E2 62 00 E6 88 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F6 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 FF [10:24:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F6 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:24:04]wFMCommunicate OK [10:24:04]SAM_PROTO_GetFieldsCounters done [10:24:04]requested_item shift.num is exist - process it [10:24:04]requested_item shift.opened is exist - process it [10:24:04]req_shift_opened [10:24:04]FM_GetShiftState [10:24:04]SAM_PROTO_GetShiftState [10:24:04]wFMCommunicate request_size=4 [10:24:04]MH_SAM_APDU [10:24:04]CAPDU: 80 13 01 00 [10:24:04]Write to MH i2c: E2 08 00 E7 88 80 13 01 00 00 00 00 00 EC [10:24:04]Write i2c OK [10:24:04]MH_I2C_Read... [10:24:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:04]Read from MH i2c: E2 [10:24:04]MH_I2C_Read... [10:24:04]Read from MH i2c: E2 0E 00 [10:24:04]MH_I2C_Read... [10:24:04]Read from MH i2c: E2 0E 00 E7 88 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 98 [10:24:04]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [10:24:04]wFMCommunicate OK [10:24:04]SAM_PROTO_GetShiftState done [10:24:04]FM_GetShiftState done [10:24:04]req_shift_opened done [10:24:04]requested_item shift.open_date is exist - process it [10:24:04]req_shift_open_date [10:24:04]req_shift_open_date done [10:24:04]produce_requested_data done [10:24:04]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29174,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [10:24:04]process_action_free close_receipt [10:24:04]json_value_free [10:24:04]json_value_free done [10:24:04]process_json_proto returns [10:24:04]Send response to host [10:24:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29174,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [10:24:04]free response buf [10:24:04]execute_script done [10:24:04]execute_script returns [10:24:04]free content buf [10:24:04]Sock 9.Close socket [10:24:04]Sock 9.Thread stoped [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:57]accept exits with 7 [10:24:57]New connection [10:24:57]New thread 3066928484 created [10:24:57]Thread 3066785124 joined [10:24:57]Waiting for new connection... [10:24:57] Sock 7.Parse request [10:24:57]Sock 7.Check first char [10:24:57]Sock 7.First char is OK [10:24:57]request: POST /json_proto HTTP/1.0 [10:24:57]Method: POST [10:24:57]URL: /json_proto [10:24:57]Method is POST - this is cgi request [10:24:57]url: /json_proto [10:24:57]query_string will be loaded in cgi processing [10:24:57]execute_cgi json_proto POST (null) [10:24:57]execute_cgi path=json_proto method=POST [10:24:57]POST find Content-Length [10:24:57]Host: 172.17.33.3:8080 [10:24:57]Content-Length: 808 [10:24:57]Content-Type: application/json [10:24:57] [10:24:57]POST finish read [10:24:57]Found Content-Length = 808 [10:24:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347546", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.37 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:24:57]execute_script... [10:24: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)347546", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.37 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:24:57]POST & json_proto [10:24:57]process_json_proto [10:24:57]json parsed OK: [10:24:57]protocol is kg_v1.0 [10:24:57]action value=close_receipt [10:24:57]process_action close_receipt [10:24:57]cmd_close_receipt [10:24:57]MH_GetDate [10:24:57]Write to MH i2c: F0 00 00 E8 88 5F [10:24:57]Write i2c OK [10:24:57]MH_I2C_Read... [10:24:57]Read from MH i2c: F0 [10:24:57]MH_I2C_Read... [10:24:57]Read from MH i2c: F0 09 00 [10:24:57]MH_I2C_Read... [10:24:57]Read from MH i2c: F0 09 00 E8 88 00 02 AF 1B 66 23 5B 8F 65 0C [10:24:57]GetLastDocTimeStamp 1713090250 [10:24:57]current date 1713090306 [10:24:57]FM_GetShiftState [10:24:57]SAM_PROTO_GetShiftState [10:24:57]wFMCommunicate request_size=4 [10:24:57]MH_SAM_APDU [10:24:57]CAPDU: 80 13 01 00 [10:24:57]Write to MH i2c: E2 08 00 E9 88 80 13 01 00 00 00 00 00 EE [10:24:57]Write i2c OK [10:24:57]MH_I2C_Read... [10:24:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:57]Read from MH i2c: E2 [10:24:57]MH_I2C_Read... [10:24:57]Read from MH i2c: E2 0E 00 [10:24:57]MH_I2C_Read... [10:24:57]Read from MH i2c: E2 0E 00 E9 88 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 9A [10:24:57]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [10:24:57]wFMCommunicate OK [10:24:57]SAM_PROTO_GetShiftState done [10:24:57]FM_GetShiftState done [10:24:57]opened in 1713053951 [10:24:57]opened+sec_in_day 1713140351 [10:24:57]quantity*price = 200037 [10:24:57]sum+1 = 200038 [10:24:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.37 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 0.00 Безнал.: 2000.37 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 85 14.04.2024 10:25 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29175 ФПД: 66827657945297 1/tax-web-control/client/api/v1/ticket?date=20240414T102506&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29175&fm=66827657945297&tin=02508201610067®Number=0000138879044617&sum=200037 [10:24:58]StoreToDocumentArchive [10:24:58]shift 116 fd 29175 [10:24:58]save to /storage/0116/doc_00029175 [10:24:58]save last doc name /storage/0116/doc_00029175 to /storage/kkm_last_doc_name [10:24:58]save OK [10:24:58]Clear old archive folders... [10:24:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:24:58]tlvbuf is 011F81E0 [10:24:58]SAM_PROTO_ClearQueue [10:24:58]wFMCommunicate request_size=4 [10:24:58]MH_SAM_APDU [10:24:58]CAPDU: 80 09 00 00 [10:24:58]Write to MH i2c: E2 08 00 F6 88 80 09 00 00 00 00 00 00 F0 [10:24:58]Write i2c OK [10:24:58]MH_I2C_Read... [10:24:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:24:58]Read from MH i2c: E2 [10:24:58]MH_I2C_Read... [10:24:58]Read from MH i2c: E2 03 00 [10:24:58]MH_I2C_Read... [10:24:58]Read from MH i2c: E2 03 00 F6 88 00 90 00 F2 [10:24:58]RAPDU: 90 00 [10:24:58]wFMCommunicate OK [10:24:58]SAM_PROTO_ClearQueue done [10:24:58]KKMCreateOFDPacket [10:24:58]OFDProtocolAddRootSTLVToBuf [10:24:58]FM_MakeSignedData [10:24:58]FM_MakeSignedData [10:24:58]SAM_PROTO_SignData [10:24:58]wFMCommunicate request_size=4 [10:24:58]MH_SAM_APDU [10:24:58]CAPDU: 80 0D 01 02 [10:24:58]Write to MH i2c: E2 08 00 F7 88 80 0D 01 02 00 00 00 00 F8 [10:24:58]Write i2c OK [10:24:58]MH_I2C_Read... [10:24:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:24:58]Read from MH i2c: E2 [10:24:58]MH_I2C_Read... [10:24:58]Read from MH i2c: E2 03 00 [10:24:58]MH_I2C_Read... [10:24:58]Read from MH i2c: E2 03 00 F7 88 00 90 00 F3 [10:24:58]RAPDU: 90 00 [10:24:58]wFMCommunicate OK [10:24:58]wFMCommunicate request_size=255 [10:24:58]MH_SAM_APDU [10:24: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 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 55 00 00 00 F4 03 04 00 02 AF 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F7 71 00 00 35 04 06 00 3C [10:24:58]Write to MH i2c: E2 02 01 F8 88 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 55 00 00 00 F4 03 04 00 02 AF 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F7 71 00 00 35 04 06 00 3C 00 00 90 [10:24:58]Write i2c OK [10:24:58]MH_I2C_Read... [10:24:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:24:58]Read from MH i2c: E2 [10:24:58]MH_I2C_Read... [10:24:58]Read from MH i2c: E2 03 00 [10:24:58]MH_I2C_Read... [10:24:58]Read from MH i2c: E2 03 00 F8 88 00 90 00 F4 [10:24:58]RAPDU: 90 00 [10:24:58]wFMCommunicate OK [10:24:58]wFMCommunicate request_size=10 [10:24:58]MH_SAM_APDU [10:24:58]CAPDU: 80 0D 02 02 05 C7 86 D0 20 D1 [10:24:58]Write to MH i2c: E2 0D 00 F9 88 80 0D 02 02 05 00 C7 86 D0 20 D1 00 00 13 [10:24:58]Write i2c OK [10:24:58]MH_I2C_Read... [10:24:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:24:58]Read from MH i2c: E2 [10:24:58]MH_I2C_Read... [10:24:58]Read from MH i2c: E2 03 00 [10:24:58]MH_I2C_Read... [10:24:58]Read from MH i2c: E2 03 00 F9 88 00 90 00 F5 [10:24:58]RAPDU: 90 00 [10:24:58]wFMCommunicate OK [10:24:58]wFMCommunicate request_size=4 [10:24:58]MH_SAM_APDU [10:24:58]CAPDU: 80 0D 03 02 [10:24:58]Write to MH i2c: E2 08 00 FA 88 80 0D 03 02 00 00 00 00 FD [10:24:59]Write i2c OK [10:24:59]MH_I2C_Read... [10:24:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:24:59]Read from MH i2c: E2 [10:24:59]MH_I2C_Read... [10:24:59]Read from MH i2c: E2 0B 00 [10:24:59]MH_I2C_Read... [10:24:59]Read from MH i2c: E2 0B 00 FA 88 00 3D 93 1A A9 B2 EA 8B FE 90 00 B6 [10:24:59]RAPDU: 3D 93 1A A9 B2 EA 8B FE 90 00 [10:24:59]wFMCommunicate OK [10:24:59]SAM_PROTO_SignData done [10:24:59]FM_MakeSignedData done [10:24:59]CreateOFDProtocolMessage [10:24:59]wFMCommunicate request_size=4 [10:24:59]MH_SAM_APDU [10:24:59]CAPDU: 80 11 00 00 [10:24:59]Write to MH i2c: E2 08 00 FB 88 80 11 00 00 00 00 00 00 FD [10:24:59]Write i2c OK [10:24:59]MH_I2C_Read... [10:24:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:59]Read from MH i2c: E2 [10:24:59]MH_I2C_Read... [10:24:59]Read from MH i2c: E2 17 00 [10:24:59]MH_I2C_Read... [10:24:59]Read from MH i2c: E2 17 00 FB 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 4C [10:24:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:24:59]wFMCommunicate OK [10:24:59]CreateOFDProtocolMessage done [10:24:59]OFDSenderStorePacket 29175 [10:24:59]StoreOFDPacket docnum=29175 [10:24:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 CB 68 07 01 E0 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 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 55 00 00 00 F4 03 04 00 02 AF 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F7 71 00 00 35 04 06 00 3C C7 86 D0 20 D1 3D 93 1A A9 B2 EA 8B FE [10:24:59]CheckFolder [10:24:59]dirname=/storage/ofd_packets [10:24:59]CheckFolder done [10:24:59]ProducePacketName [10:24:59]name=ofd_packets/00029175 [10:24:59]NVStorageSaveData ofd_packets/00029175 [10:24:59]File name is /storage/ofd_packets/00029175 [10:24:59]Write 301 bytes [10:24:59]NVStorageSaveData done [10:24:59]OFDSenderStorePacket done [10:24:59]KKMCreateOFDPacket done [10:24:59]NVStorageSaveData kkm_last_timestamp [10:24:59]File name is /storage/kkm_last_timestamp [10:24:59]Write 4 bytes [10:24:59]NVStorageSaveData done [10:24:59]ExternCall_PrintAddStr [10:24:59]wPrintStart [10:24:59]Write to MH i2c: 01 00 00 FC 88 84 [10:24:59]Write i2c OK [10:24:59]MH_I2C_Read... [10:24:59]Read from MH i2c: 01 [10:24:59]MH_I2C_Read... [10:24:59]Read from MH i2c: 01 07 00 [10:24:59]MH_I2C_Read... [10:24:59]Read from MH i2c: 01 07 00 FC 88 00 00 00 00 00 FF 0F 99 [10:24:59]RasterBufferAndPrint [10:24:59]line Счет N : (1)347546 [10:24:59]line ИНН: 02508201610067 [10:24:59]line Контрольно-Кассовый Чек [10:24:59]line ПРОДАЖА [10:24:59]line ТРК (МРК, ГНК) : 13 [10:24:59]line Товар: 2710124130 [10:24:59]line Аи-92-К-5 [10:24:59]line 31.110 * 64.30 [10:24:59]line = 2000.37 [10:24:59]line НДС 12% НСП 1% [10:24:59]line > о реализуемом товаре [10:24:59]line ИТОГО: 2000.37 [10:24:59]line НСП 1% : 17.70 [10:24:59]line НДС 12% : 212.43 [10:24:59]line Наличными: 0.00 [10:24:59]line Безнал.: 2000.37 [10:24:59]line Место: АЗС № 108 "Партнер Нефть" [10:24:59]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:24:59]line СНО: Общий режим [10:24:59]line Чек 85 14.04.2024 10:25 [10:24:59]line Смена: 116 ФФД: 1.0 [10:24:59]line ЗНМ: 0300000027 [10:24:59]line РНМ: 0000138879044617 [10:24:59]line Версия ККМ: 001 [10:24:59]line Платежная система: О! деньги [10:24:59]line ФМ: 0000000000963154 [10:24:59]line ФД: 29175 [10:24:59]line ФПД: 66827657945297 [10:24:59]line 1/tax-web-control/client/api/v1/ticket?date=20240414T102506&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29175&fm=66827657945297&tin=02508201610067®Number=0000138879044617&sum=200037 [10:24:59]OFD Sender: Processing packet 29175 [packets to send 8, broken 7] [10:24:59]ProducePacketName [10:24:59]name=ofd_packets/00029175 [10:24:59]OFD Sender: To server: pG, [10:24:59]CommunicateWithHost lk.salyk.kg:30040 [10:24:59]ConnectInit lk.salyk.kg [10:24:59]written 0, free lines is 4095 [10:24:59]Connected sock=10 [10:24:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 CB 68 07 01 E0 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 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 55 00 00 00 F4 03 04 00 02 AF 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F7 71 00 00 35 04 06 00 3C C7 86 D0 20 D1 3D 93 1A A9 B2 EA 8B FE [10:24:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 BA F2 47 00 AC D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F7 71 00 00 F4 03 04 00 A7 59 1B 66 B6 04 01 00 00 10 BA BD 74 79 00 2E BC [10:24:59]CommunicateWithHost err = 0 [10:24:59]CheckOFDResponse [10:24:59]1017 (14) - 77093643461234 [10:24:59]1041 (16) - 0000000000963154 [10:24:59]1040 (4) - 29175 [10:24:59]1012 (4) - 14.04.2024 04:20 [10:24:59]1206 (1) - 0 [10:24:59]OFD Sender: Remove packet 29175 [10:24:59]ProducePacketName [10:24:59]name=ofd_packets/00029175 [10:24:59]NVStorageDeleteData [10:24:59]Write to MH i2c: 01 00 00 25 89 AE [10:24:59]Write i2c OK [10:24:59]MH_I2C_Read... [10:24:59]Read from MH i2c: 01 [10:24:59]MH_I2C_Read... [10:24:59]Read from MH i2c: 01 07 00 [10:24:59]MH_I2C_Read... [10:24:59]Read from MH i2c: 01 07 00 25 89 00 00 00 00 00 EC 0C AD [10:24:59]RasterBufferAndPrint [10:24:59]line [10:24:59]line [10:24:59]line [10:24:59]line [10:24:59]line [10:24:59]written 0, free lines is 3315 [10:24:59]MH_Cut [10:24:59]Write to MH i2c: D1 01 00 2C 89 01 87 [10:24:59]Write i2c OK [10:24:59]MH_I2C_Read... [10:24:59]Read from MH i2c: D1 [10:24:59]MH_I2C_Read... [10:24:59]Read from MH i2c: D1 01 00 [10:24:59]MH_I2C_Read... [10:24:59]Read from MH i2c: D1 01 00 2C 89 00 86 [10:24:59]Write to MH i2c: 01 00 00 2D 89 B6 [10:24:59]Write i2c OK [10:24:59]MH_I2C_Read... [10:25:00]OFD Sender: No OFD packet to send [10:25:00]*** Cut start [10:25:00]*** Partial cut [10:25:00]*** CUTSNS_PIN = 1 [10:25:00]*** CUTSNS_PIN = 0 [10:25:00]*** Brake cut motor [10:25:01]Read from MH i2c: 01 [10:25:01]MH_I2C_Read... [10:25:01]*** Stop cut motor [10:25:01]*** Cut end [10:25:01]Read from MH i2c: 01 07 00 [10:25:01]MH_I2C_Read... [10:25:01]Read from MH i2c: 01 07 00 2D 89 00 00 00 00 00 FF 0F CB [10:25:01]process_action close_receipt done [10:25:01]requested_data is exist [10:25:01]produce_requested_data [10:25:01]requested_item fm.sn is exist - process it [10:25:01]wFMCommunicate request_size=4 [10:25:01]MH_SAM_APDU [10:25:01]CAPDU: 80 11 00 00 [10:25:01]Write to MH i2c: E2 08 00 2E 89 80 11 00 00 00 00 00 00 31 [10:25:01]Write i2c OK [10:25:01]MH_I2C_Read... [10:25:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:01]Read from MH i2c: E2 [10:25:01]MH_I2C_Read... [10:25:01]Read from MH i2c: E2 17 00 [10:25:01]MH_I2C_Read... [10:25:01]Read from MH i2c: E2 17 00 2E 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 80 [10:25:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:25:01]wFMCommunicate OK [10:25:01]requested_item fd.num is exist - process it [10:25:01]SAM_PROTO_GetFieldsCounters [10:25:01]wFMCommunicate request_size=4 [10:25:01]MH_SAM_APDU [10:25:01]CAPDU: 80 13 00 00 [10:25:01]Write to MH i2c: E2 08 00 2F 89 80 13 00 00 00 00 00 00 34 [10:25:01]Write i2c OK [10:25:01]MH_I2C_Read... [10:25:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:25:01]Read from MH i2c: E2 [10:25:01]MH_I2C_Read... [10:25:01]Read from MH i2c: E2 62 00 [10:25:01]MH_I2C_Read... [10:25:01]Read from MH i2c: E2 62 00 2F 89 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F7 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 4D [10:25:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F7 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:25:01]wFMCommunicate OK [10:25:01]SAM_PROTO_GetFieldsCounters done [10:25:01]requested_item shift.num is exist - process it [10:25:01]requested_item shift.opened is exist - process it [10:25:01]req_shift_opened [10:25:01]FM_GetShiftState [10:25:01]SAM_PROTO_GetShiftState [10:25:01]wFMCommunicate request_size=4 [10:25:01]MH_SAM_APDU [10:25:01]CAPDU: 80 13 01 00 [10:25:01]Write to MH i2c: E2 08 00 30 89 80 13 01 00 00 00 00 00 36 [10:25:01]Write i2c OK [10:25:01]MH_I2C_Read... [10:25:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:01]Read from MH i2c: E2 [10:25:01]MH_I2C_Read... [10:25:01]Read from MH i2c: E2 0E 00 [10:25:01]MH_I2C_Read... [10:25:01]Read from MH i2c: E2 0E 00 30 89 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 E2 [10:25:01]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [10:25:01]wFMCommunicate OK [10:25:01]SAM_PROTO_GetShiftState done [10:25:01]FM_GetShiftState done [10:25:01]req_shift_opened done [10:25:01]requested_item shift.open_date is exist - process it [10:25:01]req_shift_open_date [10:25:01]req_shift_open_date done [10:25:01]produce_requested_data done [10:25:01]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29175,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [10:25:01]process_action_free close_receipt [10:25:01]json_value_free [10:25:01]json_value_free done [10:25:01]process_json_proto returns [10:25:01]Send response to host [10:25:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29175,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [10:25:01]free response buf [10:25:01]execute_script done [10:25:01]execute_script returns [10:25:01]free content buf [10:25:01]Sock 7.Close socket [10:25:01]Sock 7.Thread stoped [10:25:05]OFD Sender: No OFD packet to send [10:25:10]OFD Sender: No OFD packet to send [10:25:15]OFD Sender: No OFD packet to send [10:25:20]OFD Sender: No OFD packet to send [10:25:25]OFD Sender: No OFD packet to send [10:25:30]OFD Sender: No OFD packet to send [10:25:35]OFD Sender: No OFD packet to send [10:25:40]OFD Sender: No OFD packet to send [10:25:45]OFD Sender: No OFD packet to send [10:25:50]OFD Sender: No OFD packet to send [10:25:55]OFD Sender: No OFD packet to send [10:26:00]OFD Sender: No OFD packet to send [10:26:05]OFD Sender: No OFD packet to send [10:26:10]OFD Sender: No OFD packet to send [10:26:15]OFD Sender: No OFD packet to send [10:26:20]OFD Sender: No OFD packet to send [10:26:25]OFD Sender: No OFD packet to send [10:26:30]OFD Sender: No OFD packet to send [10:26:35]OFD Sender: No OFD packet to send [10:26:40]OFD Sender: No OFD packet to send [10:26:45]OFD Sender: No OFD packet to send [10:26:50]OFD Sender: No OFD packet to send [10:26:55]OFD Sender: No OFD packet to send [10:27:00]OFD Sender: No OFD packet to send [10:27:05]OFD Sender: No OFD packet to send [10:27:10]OFD Sender: No OFD packet to send [10:27:15]OFD Sender: No OFD packet to send [10:27:20]OFD Sender: No OFD packet to send [10:27:25]OFD Sender: No OFD packet to send [10:27:30]OFD Sender: No OFD packet to send [10:27:35]OFD Sender: No OFD packet to send [10:27:40]OFD Sender: No OFD packet to send [10:27:45]OFD Sender: No OFD packet to send [10:27:50]OFD Sender: No OFD packet to send [10:27:55]OFD Sender: No OFD packet to send [10:28:00]OFD Sender: No OFD packet to send [10:28:05]OFD Sender: No OFD packet to send [10:28:10]OFD Sender: No OFD packet to send [10:28:15]OFD Sender: No OFD packet to send [10:28:20]OFD Sender: No OFD packet to send [10:28:25]OFD Sender: No OFD packet to send [10:28:30]OFD Sender: No OFD packet to send [10:28:35]OFD Sender: No OFD packet to send [10:28:40]OFD Sender: No OFD packet to send [10:28:45]OFD Sender: No OFD packet to send [10:28:50]OFD Sender: No OFD packet to send [10:28:55]OFD Sender: No OFD packet to send [10:29:00]OFD Sender: No OFD packet to send [10:29:05]accept exits with 9 [10:29:05]New connection [10:29:05]New thread 3066785124 created [10:29:05]Thread 3066928484 joined [10:29:05]Waiting for new connection... [10:29:05] Sock 9.Parse request [10:29:05]Sock 9.Check first char [10:29:05]Sock 9.First char is OK [10:29:05]request: POST /json_proto HTTP/1.0 [10:29:05]Method: POST [10:29:05]URL: /json_proto [10:29:05]Method is POST - this is cgi request [10:29:05]url: /json_proto [10:29:05]query_string will be loaded in cgi processing [10:29:05]execute_cgi json_proto POST (null) [10:29:05]execute_cgi path=json_proto method=POST [10:29:05]POST find Content-Length [10:29:05]Host: 172.17.33.3:8080 [10:29:05]Content-Length: 808 [10:29:05]Content-Type: application/json [10:29:05] [10:29:05]POST finish read [10:29:05]Found Content-Length = 808 [10:29:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347548", "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" : 40.440, "sum" : 2600.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" : 2600.29 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:29:05]execute_script... [10:29: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)347548", "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" : 40.440, "sum" : 2600.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" : 2600.29 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:29:05]POST & json_proto [10:29:05]process_json_proto [10:29:05]json parsed OK: [10:29:05]protocol is kg_v1.0 [10:29:05]action value=close_receipt [10:29:05]process_action close_receipt [10:29:05]cmd_close_receipt [10:29:05]MH_GetDate [10:29:05]Write to MH i2c: F0 00 00 31 89 A9 [10:29:05]Write i2c OK [10:29:05]MH_I2C_Read... [10:29:05]Read from MH i2c: F0 [10:29:05]MH_I2C_Read... [10:29:05]Read from MH i2c: F0 09 00 [10:29:05]MH_I2C_Read... [10:29:05]Read from MH i2c: F0 09 00 31 89 00 FA AF 1B 66 23 5B 8F 65 4E [10:29:05]GetLastDocTimeStamp 1713090306 [10:29:05]current date 1713090554 [10:29:05]FM_GetShiftState [10:29:05]SAM_PROTO_GetShiftState [10:29:05]wFMCommunicate request_size=4 [10:29:05]MH_SAM_APDU [10:29:05]CAPDU: 80 13 01 00 [10:29:05]Write to MH i2c: E2 08 00 32 89 80 13 01 00 00 00 00 00 38 [10:29:05]Write i2c OK [10:29:05]MH_I2C_Read... [10:29:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:05]Read from MH i2c: E2 [10:29:05]MH_I2C_Read... [10:29:05]Read from MH i2c: E2 0E 00 [10:29:05]MH_I2C_Read... [10:29:05]Read from MH i2c: E2 0E 00 32 89 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 E4 [10:29:05]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [10:29:05]wFMCommunicate OK [10:29:05]SAM_PROTO_GetShiftState done [10:29:05]FM_GetShiftState done [10:29:05]opened in 1713053951 [10:29:05]opened+sec_in_day 1713140351 [10:29:05]quantity*price = 260029 [10:29:05]sum+1 = 260030 [10:29:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2600.29 НСП 1% : 23.01 НДС 12% : 276.14 Наличными: 0.00 Безнал.: 2600.29 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 86 14.04.2024 10:29 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29176 ФПД: 128738680994589 1/tax-web-control/client/api/v1/ticket?date=20240414T102914&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29176&fm=128738680994589&tin=02508201610067®Number=0000138879044617&sum=260029 [10:29:06]StoreToDocumentArchive [10:29:06]shift 116 fd 29176 [10:29:06]save to /storage/0116/doc_00029176 [10:29:06]save last doc name /storage/0116/doc_00029176 to /storage/kkm_last_doc_name [10:29:06]save OK [10:29:06]Clear old archive folders... [10:29:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:29:06]tlvbuf is 011EB310 [10:29:06]SAM_PROTO_ClearQueue [10:29:06]wFMCommunicate request_size=4 [10:29:06]MH_SAM_APDU [10:29:06]CAPDU: 80 09 00 00 [10:29:06]Write to MH i2c: E2 08 00 3F 89 80 09 00 00 00 00 00 00 3A [10:29:06]Write i2c OK [10:29:06]MH_I2C_Read... [10:29:06]*** iso7816_exchange 80 09 00 00... 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 3F 89 00 90 00 3C [10:29:06]RAPDU: 90 00 [10:29:06]wFMCommunicate OK [10:29:06]SAM_PROTO_ClearQueue done [10:29:06]KKMCreateOFDPacket [10:29:06]OFDProtocolAddRootSTLVToBuf [10:29:06]FM_MakeSignedData [10:29:06]FM_MakeSignedData [10:29:06]SAM_PROTO_SignData [10:29:06]wFMCommunicate request_size=4 [10:29:06]MH_SAM_APDU [10:29:06]CAPDU: 80 0D 01 02 [10:29:06]Write to MH i2c: E2 08 00 40 89 80 0D 01 02 00 00 00 00 42 [10:29:06]Write i2c OK [10:29:06]MH_I2C_Read... [10:29:06]*** iso7816_exchange 80 0D 01 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 40 89 00 90 00 3D [10:29:06]RAPDU: 90 00 [10:29:06]wFMCommunicate OK [10:29:06]wFMCommunicate request_size=255 [10:29:06]MH_SAM_APDU [10:29: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 F8 9D 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 BD F7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BD F7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 6B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BD F7 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 FA AF 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F8 71 00 00 35 04 06 00 75 [10:29:06]Write to MH i2c: E2 02 01 41 89 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 BD F7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BD F7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 6B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BD F7 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 FA AF 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F8 71 00 00 35 04 06 00 75 00 00 7A [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 41 89 00 90 00 3E [10:29:06]RAPDU: 90 00 [10:29:06]wFMCommunicate OK [10:29:06]wFMCommunicate request_size=10 [10:29:06]MH_SAM_APDU [10:29:06]CAPDU: 80 0D 02 02 05 16 4F 59 7B 1D [10:29:06]Write to MH i2c: E2 0D 00 42 89 80 0D 02 02 05 00 16 4F 59 7B 1D 00 00 A5 [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 42 89 00 90 00 3F [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 43 89 80 0D 03 02 00 00 00 00 47 [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 43 89 00 3B 39 18 F4 3A 9B D1 D4 90 00 42 [10:29:06]RAPDU: 3B 39 18 F4 3A 9B D1 D4 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 44 89 80 11 00 00 00 00 00 00 47 [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 44 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 96 [10:29:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:29:06]wFMCommunicate OK [10:29:06]CreateOFDProtocolMessage done [10:29:06]OFDSenderStorePacket 29176 [10:29:06]StoreOFDPacket docnum=29176 [10:29:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 D6 57 07 01 AE 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 F8 9D 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 BD F7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BD F7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 6B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BD F7 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 FA AF 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F8 71 00 00 35 04 06 00 75 16 4F 59 7B 1D 3B 39 18 F4 3A 9B D1 D4 [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/00029176 [10:29:06]NVStorageSaveData ofd_packets/00029176 [10:29:06]File name is /storage/ofd_packets/00029176 [10:29:06]Write 301 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 45 89 CE [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 45 89 00 00 00 00 00 FF 0F E3 [10:29:06]RasterBufferAndPrint [10:29:06]line Счет N : (1)347548 [10:29:06]line ИНН: 02508201610067 [10:29:06]line Контрольно-Кассовый Чек [10:29:06]line ПРОДАЖА [10:29:06]line ТРК (МРК, ГНК) : 42 [10:29:06]line Товар: 2710124130 [10:29:06]line Аи-92-К-5 [10:29:06]line 40.440 * 64.30 [10:29:06]line = 2600.29 [10:29:06]line НДС 12% НСП 1% [10:29:06]line > о реализуемом товаре [10:29:06]line ИТОГО: 2600.29 [10:29:06]line НСП 1% : 23.01 [10:29:06]line НДС 12% : 276.14 [10:29:06]line Наличными: 0.00 [10:29:06]line Безнал.: 2600.29 [10:29:06]line Место: АЗС № 108 "Партнер Нефть" [10:29:06]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:29:06]line СНО: Общий режим [10:29:06]line Чек 86 14.04.2024 10:29 [10:29:06]line Смена: 116 ФФД: 1.0 [10:29:06]line ЗНМ: 0300000027 [10:29:06]line РНМ: 0000138879044617 [10:29:06]line Версия ККМ: 001 [10:29:06]line Платежная система: О! деньги [10:29:06]line ФМ: 0000000000963154 [10:29:06]line ФД: 29176 [10:29:06]line ФПД: 128738680994589 [10:29:07]line 1/tax-web-control/client/api/v1/ticket?date=20240414T102914&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29176&fm=128738680994589&tin=02508201610067®Number=0000138879044617&sum=260029 [10:29:07]OFD Sender: Processing packet 29176 [packets to send 8, broken 7] [10:29:07]ProducePacketName [10:29:07]name=ofd_packets/00029176 [10:29:07]OFD Sender: To server: pG, [10:29:07]CommunicateWithHost lk.salyk.kg:30040 [10:29:07]ConnectInit lk.salyk.kg [10:29:07]written 0, free lines is 4095 [10:29:07]Connected sock=10 [10:29:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 D6 57 07 01 AE 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 F8 9D 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 BD F7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BD F7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 6B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BD F7 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 FA AF 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F8 71 00 00 35 04 06 00 75 16 4F 59 7B 1D 3B 39 18 F4 3A 9B D1 D4 [10:29:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 D0 3D 47 00 F2 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 39 36 33 31 35 34 10 04 04 00 F8 71 00 00 F4 03 04 00 9F 5A 1B 66 B6 04 01 00 00 25 D1 38 36 80 6C 47 61 [10:29:07]CommunicateWithHost err = 0 [10:29:07]CheckOFDResponse [10:29:07]1017 (14) - 77093643461234 [10:29:07]1041 (16) - 0000000000963154 [10:29:07]1040 (4) - 29176 [10:29:07]1012 (4) - 14.04.2024 04:25 [10:29:07]1206 (1) - 0 [10:29:07]OFD Sender: Remove packet 29176 [10:29:07]ProducePacketName [10:29:07]name=ofd_packets/00029176 [10:29:07]NVStorageDeleteData [10:29:07]Write to MH i2c: 01 00 00 6E 89 F7 [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 6E 89 00 00 00 00 00 E9 0C F3 [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 3312 [10:29:07]MH_Cut [10:29:07]Write to MH i2c: D1 01 00 75 89 01 D0 [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 75 89 00 CF [10:29:07]Write to MH i2c: 01 00 00 76 89 FF [10:29:07]Write i2c OK [10:29:07]MH_I2C_Read... [10:29:07]OFD Sender: No OFD packet to send [10:29:08]*** Cut start [10:29:08]*** Partial cut [10:29:08]*** CUTSNS_PIN = 1 [10:29:08]*** CUTSNS_PIN = 0 [10:29:08]*** Brake cut motor [10:29:09]Read from MH i2c: 01 [10:29:09]MH_I2C_Read... [10:29:09]*** Stop cut motor [10:29:09]*** Cut end [10:29:09]Read from MH i2c: 01 07 00 [10:29:09]MH_I2C_Read... [10:29:09]Read from MH i2c: 01 07 00 76 89 00 00 00 00 00 FF 0F 14 [10:29:09]process_action close_receipt done [10:29:09]requested_data is exist [10:29:09]produce_requested_data [10:29:09]requested_item fm.sn is exist - process it [10:29:09]wFMCommunicate request_size=4 [10:29:09]MH_SAM_APDU [10:29:09]CAPDU: 80 11 00 00 [10:29:09]Write to MH i2c: E2 08 00 77 89 80 11 00 00 00 00 00 00 7A [10:29:09]Write i2c OK [10:29:09]MH_I2C_Read... [10:29:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:09]Read from MH i2c: E2 [10:29:09]MH_I2C_Read... [10:29:09]Read from MH i2c: E2 17 00 [10:29:09]MH_I2C_Read... [10:29:09]Read from MH i2c: E2 17 00 77 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C9 [10:29:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:29:09]wFMCommunicate OK [10:29:09]requested_item fd.num is exist - process it [10:29:09]SAM_PROTO_GetFieldsCounters [10:29:09]wFMCommunicate request_size=4 [10:29:09]MH_SAM_APDU [10:29:09]CAPDU: 80 13 00 00 [10:29:09]Write to MH i2c: E2 08 00 78 89 80 13 00 00 00 00 00 00 7D [10:29:09]Write i2c OK [10:29:09]MH_I2C_Read... [10:29:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:29:09]Read from MH i2c: E2 [10:29:09]MH_I2C_Read... [10:29:09]Read from MH i2c: E2 62 00 [10:29:09]MH_I2C_Read... [10:29:09]Read from MH i2c: E2 62 00 78 89 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F8 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 9A [10:29:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F8 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:29:09]wFMCommunicate OK [10:29:09]SAM_PROTO_GetFieldsCounters done [10:29:09]requested_item shift.num is exist - process it [10:29:09]requested_item shift.opened is exist - process it [10:29:09]req_shift_opened [10:29:09]FM_GetShiftState [10:29:09]SAM_PROTO_GetShiftState [10:29:09]wFMCommunicate request_size=4 [10:29:09]MH_SAM_APDU [10:29:09]CAPDU: 80 13 01 00 [10:29:09]Write to MH i2c: E2 08 00 79 89 80 13 01 00 00 00 00 00 7F [10:29:09]Write i2c OK [10:29:09]MH_I2C_Read... [10:29:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:09]Read from MH i2c: E2 [10:29:09]MH_I2C_Read... [10:29:09]Read from MH i2c: E2 0E 00 [10:29:09]MH_I2C_Read... [10:29:09]Read from MH i2c: E2 0E 00 79 89 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 2B [10:29:09]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [10:29:09]wFMCommunicate OK [10:29:09]SAM_PROTO_GetShiftState done [10:29:09]FM_GetShiftState done [10:29:09]req_shift_opened done [10:29:09]requested_item shift.open_date is exist - process it [10:29:09]req_shift_open_date [10:29:09]req_shift_open_date done [10:29:09]produce_requested_data done [10:29:09]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29176,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [10:29:09]process_action_free close_receipt [10:29:09]json_value_free [10:29:09]json_value_free done [10:29:09]process_json_proto returns [10:29:09]Send response to host [10:29:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29176,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [10:29:09]free response buf [10:29:09]execute_script done [10:29:09]execute_script returns [10:29:09]free content buf [10:29:09]Sock 9.Close socket [10:29:09]Sock 9.Thread stoped [10:29:12]OFD Sender: No OFD packet to send [10:29:17]OFD Sender: No OFD packet to send [10:29:22]OFD Sender: No OFD packet to send [10:29:27]OFD Sender: No OFD packet to send [10:29:32]OFD Sender: No OFD packet to send [10:29:37]OFD Sender: No OFD packet to send [10:29:42]OFD Sender: No OFD packet to send [10:29:47]OFD Sender: No OFD packet to send [10:29:52]OFD Sender: No OFD packet to send [10:29:57]OFD Sender: No OFD packet to send [10:30:02]OFD Sender: No OFD packet to send [10:30:07]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:05]accept exits with 7 [10:31:05]New connection [10:31:05]New thread 3066928484 created [10:31:05]Thread 3066785124 joined [10:31:05]Waiting for new connection... [10:31:05] Sock 7.Parse request [10:31:05]Sock 7.Check first char [10:31:05]Sock 7.First char is OK [10:31:05]request: POST /json_proto HTTP/1.0 [10:31:05]Method: POST [10:31:05]URL: /json_proto [10:31:05]Method is POST - this is cgi request [10:31:05]url: /json_proto [10:31:05]query_string will be loaded in cgi processing [10:31:05]execute_cgi json_proto POST (null) [10:31:05]execute_cgi path=json_proto method=POST [10:31:05]POST find Content-Length [10:31:05]Host: 172.17.33.3:8080 [10:31:05]Content-Length: 675 [10:31:05]Content-Type: application/json [10:31:05] [10:31:05]POST finish read [10:31:05]Found Content-Length = 675 [10:31:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347549", "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" : 11.050, "sum" : 800.02, "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" ] } } [10:31:05]execute_script... [10:31: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)347549", "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" : 11.050, "sum" : 800.02, "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" ] } } [10:31:05]POST & json_proto [10:31:05]process_json_proto [10:31:05]json parsed OK: [10:31:05]protocol is kg_v1.0 [10:31:05]action value=close_receipt [10:31:05]process_action close_receipt [10:31:05]cmd_close_receipt [10:31:05]MH_GetDate [10:31:05]Write to MH i2c: F0 00 00 7A 89 F2 [10:31:05]Write i2c OK [10:31:05]MH_I2C_Read... [10:31:05]Read from MH i2c: F0 [10:31:05]MH_I2C_Read... [10:31:05]Read from MH i2c: F0 09 00 [10:31:05]MH_I2C_Read... [10:31:05]Read from MH i2c: F0 09 00 7A 89 00 72 B0 1B 66 23 5B 8F 65 10 [10:31:05]GetLastDocTimeStamp 1713090554 [10:31:05]current date 1713090674 [10:31:05]FM_GetShiftState [10:31:05]SAM_PROTO_GetShiftState [10:31:05]wFMCommunicate request_size=4 [10:31:05]MH_SAM_APDU [10:31:05]CAPDU: 80 13 01 00 [10:31:05]Write to MH i2c: E2 08 00 7B 89 80 13 01 00 00 00 00 00 81 [10:31:05]Write i2c OK [10:31:05]MH_I2C_Read... [10:31:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:05]Read from MH i2c: E2 [10:31:05]MH_I2C_Read... [10:31:05]Read from MH i2c: E2 0E 00 [10:31:05]MH_I2C_Read... [10:31:05]Read from MH i2c: E2 0E 00 7B 89 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 2D [10:31:05]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [10:31:05]wFMCommunicate OK [10:31:05]SAM_PROTO_GetShiftState done [10:31:05]FM_GetShiftState done [10:31:05]opened in 1713053951 [10:31:05]opened+sec_in_day 1713140351 [10:31:05]quantity*price = 80002 [10:31:05]sum+1 = 80003 [10:31:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.96 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 87 14.04.2024 10:31 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29177 ФПД: 218299966744453 1/tax-web-control/client/api/v1/ticket?date=20240414T103114&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29177&fm=218299966744453&tin=02508201610067®Number=0000138879044617&sum=80000 [10:31:06]StoreToDocumentArchive [10:31:06]shift 116 fd 29177 [10:31:06]save to /storage/0116/doc_00029177 [10:31:06]save last doc name /storage/0116/doc_00029177 to /storage/kkm_last_doc_name [10:31:06]save OK [10:31:06]Clear old archive folders... [10:31:06]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:31:06]tlvbuf is 0121DBF0 [10:31:06]SAM_PROTO_ClearQueue [10:31:06]wFMCommunicate request_size=4 [10:31:06]MH_SAM_APDU [10:31:06]CAPDU: 80 09 00 00 [10:31:06]Write to MH i2c: E2 08 00 88 89 80 09 00 00 00 00 00 00 83 [10:31:06]Write i2c OK [10:31:06]MH_I2C_Read... [10:31:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:31:06]Read from MH i2c: E2 [10:31:06]MH_I2C_Read... [10:31:06]Read from MH i2c: E2 03 00 [10:31:06]MH_I2C_Read... [10:31:06]Read from MH i2c: E2 03 00 88 89 00 90 00 85 [10:31:06]RAPDU: 90 00 [10:31:06]wFMCommunicate OK [10:31:06]SAM_PROTO_ClearQueue done [10:31:06]KKMCreateOFDPacket [10:31:06]OFDProtocolAddRootSTLVToBuf [10:31:06]FM_MakeSignedData [10:31:06]FM_MakeSignedData [10:31:06]SAM_PROTO_SignData [10:31:06]wFMCommunicate request_size=4 [10:31:06]MH_SAM_APDU [10:31:06]CAPDU: 80 0D 01 02 [10:31:06]Write to MH i2c: E2 08 00 89 89 80 0D 01 02 00 00 00 00 8B [10:31:06]Write i2c OK [10:31:06]MH_I2C_Read... [10:31:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:31:06]Read from MH i2c: E2 [10:31:06]MH_I2C_Read... [10:31:06]Read from MH i2c: E2 03 00 [10:31:06]MH_I2C_Read... [10:31:06]Read from MH i2c: E2 03 00 89 89 00 90 00 86 [10:31:06]RAPDU: 90 00 [10:31:06]wFMCommunicate OK [10:31:06]wFMCommunicate request_size=255 [10:31:06]MH_SAM_APDU [10:31: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 2A 2B 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 82 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 30 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 57 00 00 00 F4 03 04 00 72 B0 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F9 71 00 00 35 04 06 00 C6 8A EB F8 [10:31:06]Write to MH i2c: E2 02 01 8A 89 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 2A 2B 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 82 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 30 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 57 00 00 00 F4 03 04 00 72 B0 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F9 71 00 00 35 04 06 00 C6 8A EB F8 00 00 0D [10:31:06]Write i2c OK [10:31:06]MH_I2C_Read... [10:31:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:31:06]Read from MH i2c: E2 [10:31:06]MH_I2C_Read... [10:31:06]Read from MH i2c: E2 03 00 [10:31:06]MH_I2C_Read... [10:31:06]Read from MH i2c: E2 03 00 8A 89 00 90 00 87 [10:31:06]RAPDU: 90 00 [10:31:06]wFMCommunicate OK [10:31:06]wFMCommunicate request_size=7 [10:31:06]MH_SAM_APDU [10:31:06]CAPDU: 80 0D 02 02 02 E7 85 [10:31:06]Write to MH i2c: E2 0A 00 8B 89 80 0D 02 02 02 00 E7 85 00 00 FE [10:31:06]Write i2c OK [10:31:06]MH_I2C_Read... [10:31:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:31:06]Read from MH i2c: E2 [10:31:06]MH_I2C_Read... [10:31:06]Read from MH i2c: E2 03 00 [10:31:06]MH_I2C_Read... [10:31:06]Read from MH i2c: E2 03 00 8B 89 00 90 00 88 [10:31:06]RAPDU: 90 00 [10:31:06]wFMCommunicate OK [10:31:06]wFMCommunicate request_size=4 [10:31:06]MH_SAM_APDU [10:31:06]CAPDU: 80 0D 03 02 [10:31:06]Write to MH i2c: E2 08 00 8C 89 80 0D 03 02 00 00 00 00 90 [10:31:06]Write i2c OK [10:31:06]MH_I2C_Read... [10:31:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:31:06]Read from MH i2c: E2 [10:31:06]MH_I2C_Read... [10:31:06]Read from MH i2c: E2 0B 00 [10:31:06]MH_I2C_Read... [10:31:06]Read from MH i2c: E2 0B 00 8C 89 00 67 49 5E 21 04 DE 2C 65 90 00 33 [10:31:06]RAPDU: 67 49 5E 21 04 DE 2C 65 90 00 [10:31:06]wFMCommunicate OK [10:31:06]SAM_PROTO_SignData done [10:31:06]FM_MakeSignedData done [10:31:06]CreateOFDProtocolMessage [10:31:06]wFMCommunicate request_size=4 [10:31:06]MH_SAM_APDU [10:31:06]CAPDU: 80 11 00 00 [10:31:06]Write to MH i2c: E2 08 00 8D 89 80 11 00 00 00 00 00 00 90 [10:31:06]Write i2c OK [10:31:06]MH_I2C_Read... [10:31:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:31:06]Read from MH i2c: E2 [10:31:06]MH_I2C_Read... [10:31:06]Read from MH i2c: E2 17 00 [10:31:06]MH_I2C_Read... [10:31:06]Read from MH i2c: E2 17 00 8D 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 DF [10:31:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:31:06]wFMCommunicate OK [10:31:06]CreateOFDProtocolMessage done [10:31:06]OFDSenderStorePacket 29177 [10:31:06]StoreOFDPacket docnum=29177 [10:31:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 23 57 04 01 4A C7 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 2A 2B 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 82 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 30 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 57 00 00 00 F4 03 04 00 72 B0 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F9 71 00 00 35 04 06 00 C6 8A EB F8 E7 85 67 49 5E 21 04 DE 2C 65 [10:31:06]CheckFolder [10:31:06]dirname=/storage/ofd_packets [10:31:06]CheckFolder done [10:31:06]ProducePacketName [10:31:06]name=ofd_packets/00029177 [10:31:06]NVStorageSaveData ofd_packets/00029177 [10:31:06]File name is /storage/ofd_packets/00029177 [10:31:06]Write 298 bytes [10:31:06]NVStorageSaveData done [10:31:06]OFDSenderStorePacket done [10:31:06]KKMCreateOFDPacket done [10:31:06]NVStorageSaveData kkm_last_timestamp [10:31:06]File name is /storage/kkm_last_timestamp [10:31:06]Write 4 bytes [10:31:06]NVStorageSaveData done [10:31:06]ExternCall_PrintAddStr [10:31:06]wPrintStart [10:31:06]Write to MH i2c: 01 00 00 8E 89 17 [10:31:06]Write i2c OK [10:31:06]MH_I2C_Read... [10:31:06]Read from MH i2c: 01 [10:31:06]MH_I2C_Read... [10:31:06]Read from MH i2c: 01 07 00 [10:31:06]MH_I2C_Read... [10:31:06]Read from MH i2c: 01 07 00 8E 89 00 00 00 00 00 FF 0F 2C [10:31:06]RasterBufferAndPrint [10:31:06]line Счет N : (1)347549 [10:31:06]line ИНН: 02508201610067 [10:31:06]line Контрольно-Кассовый Чек [10:31:06]line ПРОДАЖА [10:31:06]line ТРК (МРК, ГНК) : 61 [10:31:06]line Товар: 2710194210 [10:31:06]line ДТ-К-5 [10:31:06]line 11.050 * 72.40 [10:31:06]line = 800.02 [10:31:06]line НДС 12% НСП 1% [10:31:06]line > о реализуемом товаре [10:31:06]line ОКРУГЛЕНИЕ: -0.02 [10:31:06]line ИТОГО: 800.00 [10:31:06]line Внесено: 800.00 [10:31:06]line СДАЧА: 0.00 [10:31:06]line НСП 1% : 7.08 [10:31:06]line НДС 12% : 84.96 [10:31:06]line Наличными: 800.00 [10:31:06]line Безнал.: 0.00 [10:31:06]line Место: АЗС № 108 "Партнер Нефть" [10:31:06]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:31:06]line СНО: Общий режим [10:31:06]line Чек 87 14.04.2024 10:31 [10:31:06]line Смена: 116 ФФД: 1.0 [10:31:06]line ЗНМ: 0300000027 [10:31:06]line РНМ: 0000138879044617 [10:31:06]line Версия ККМ: 001 [10:31:06]line ФМ: 0000000000963154 [10:31:06]line ФД: 29177 [10:31:06]line ФПД: 218299966744453 [10:31:07]line 1/tax-web-control/client/api/v1/ticket?date=20240414T103114&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29177&fm=218299966744453&tin=02508201610067®Number=0000138879044617&sum=80000 [10:31:07]OFD Sender: Processing packet 29177 [packets to send 8, broken 7] [10:31:07]ProducePacketName [10:31:07]name=ofd_packets/00029177 [10:31:07]OFD Sender: To server: pG, [10:31:07]CommunicateWithHost lk.salyk.kg:30040 [10:31:07]ConnectInit lk.salyk.kg [10:31:07]written 0, free lines is 4095 [10:31:07]Connected sock=11 [10:31:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 23 57 04 01 4A C7 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 2A 2B 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 82 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 30 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 57 00 00 00 F4 03 04 00 72 B0 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F9 71 00 00 35 04 06 00 C6 8A EB F8 E7 85 67 49 5E 21 04 DE 2C 65 [10:31:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 C4 85 47 00 B1 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 39 36 33 31 35 34 10 04 04 00 F9 71 00 00 F4 03 04 00 17 5B 1B 66 B6 04 01 00 00 84 33 9E 4A 74 C7 F4 3E [10:31:07]CommunicateWithHost err = 0 [10:31:07]CheckOFDResponse [10:31:07]1017 (14) - 77093643461234 [10:31:07]1041 (16) - 0000000000963154 [10:31:07]1040 (4) - 29177 [10:31:07]1012 (4) - 14.04.2024 04:27 [10:31:07]1206 (1) - 0 [10:31:07]OFD Sender: Remove packet 29177 [10:31:07]ProducePacketName [10:31:07]name=ofd_packets/00029177 [10:31:07]NVStorageDeleteData [10:31:07]Write to MH i2c: 01 00 00 B8 89 41 [10:31:07]Write i2c OK [10:31:07]MH_I2C_Read... [10:31:07]Read from MH i2c: 01 [10:31:07]MH_I2C_Read... [10:31:07]Read from MH i2c: 01 07 00 [10:31:07]MH_I2C_Read... [10:31:07]Read from MH i2c: 01 07 00 B8 89 00 00 00 00 00 C9 0C 1D [10:31:07]RasterBufferAndPrint [10:31:07]line [10:31:07]line [10:31:07]line [10:31:07]line [10:31:07]line [10:31:07]written 0, free lines is 3278 [10:31:07]MH_Cut [10:31:07]Write to MH i2c: D1 01 00 BF 89 01 1A [10:31:07]Write i2c OK [10:31:07]MH_I2C_Read... [10:31:07]Read from MH i2c: D1 [10:31:07]MH_I2C_Read... [10:31:07]Read from MH i2c: D1 01 00 [10:31:07]MH_I2C_Read... [10:31:07]Read from MH i2c: D1 01 00 BF 89 00 19 [10:31:07]Write to MH i2c: 01 00 00 C0 89 49 [10:31:07]Write i2c OK [10:31:07]MH_I2C_Read... [10:31:08]OFD Sender: No OFD packet to send [10:31:08]*** Cut start [10:31:08]*** Partial cut [10:31:08]*** CUTSNS_PIN = 1 [10:31:08]*** CUTSNS_PIN = 0 [10:31:08]*** Brake cut motor [10:31:09]Read from MH i2c: 01 [10:31:09]MH_I2C_Read... [10:31:09]*** Stop cut motor [10:31:09]*** Cut end [10:31:09]Read from MH i2c: 01 07 00 [10:31:09]MH_I2C_Read... [10:31:09]Read from MH i2c: 01 07 00 C0 89 00 00 00 00 00 FF 0F 5E [10:31:09]process_action close_receipt done [10:31:09]requested_data is exist [10:31:09]produce_requested_data [10:31:09]requested_item fm.sn is exist - process it [10:31:09]wFMCommunicate request_size=4 [10:31:09]MH_SAM_APDU [10:31:09]CAPDU: 80 11 00 00 [10:31:09]Write to MH i2c: E2 08 00 C1 89 80 11 00 00 00 00 00 00 C4 [10:31:09]Write i2c OK [10:31:09]MH_I2C_Read... [10:31:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:31:09]Read from MH i2c: E2 [10:31:09]MH_I2C_Read... [10:31:09]Read from MH i2c: E2 17 00 [10:31:09]MH_I2C_Read... [10:31:09]Read from MH i2c: E2 17 00 C1 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 13 [10:31:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:31:09]wFMCommunicate OK [10:31:09]requested_item fd.num is exist - process it [10:31:09]SAM_PROTO_GetFieldsCounters [10:31:09]wFMCommunicate request_size=4 [10:31:09]MH_SAM_APDU [10:31:09]CAPDU: 80 13 00 00 [10:31:09]Write to MH i2c: E2 08 00 C2 89 80 13 00 00 00 00 00 00 C7 [10:31:09]Write i2c OK [10:31:09]MH_I2C_Read... [10:31:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:31:09]Read from MH i2c: E2 [10:31:09]MH_I2C_Read... [10:31:09]Read from MH i2c: E2 62 00 [10:31:09]MH_I2C_Read... [10:31:09]Read from MH i2c: E2 62 00 C2 89 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F9 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 E8 [10:31:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F9 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:31:09]wFMCommunicate OK [10:31:09]SAM_PROTO_GetFieldsCounters done [10:31:09]requested_item shift.num is exist - process it [10:31:09]requested_item shift.opened is exist - process it [10:31:09]req_shift_opened [10:31:09]FM_GetShiftState [10:31:09]SAM_PROTO_GetShiftState [10:31:09]wFMCommunicate request_size=4 [10:31:09]MH_SAM_APDU [10:31:09]CAPDU: 80 13 01 00 [10:31:09]Write to MH i2c: E2 08 00 C3 89 80 13 01 00 00 00 00 00 C9 [10:31:09]Write i2c OK [10:31:09]MH_I2C_Read... [10:31:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:09]Read from MH i2c: E2 [10:31:09]MH_I2C_Read... [10:31:09]Read from MH i2c: E2 0E 00 [10:31:09]MH_I2C_Read... [10:31:09]Read from MH i2c: E2 0E 00 C3 89 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 75 [10:31:09]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [10:31:09]wFMCommunicate OK [10:31:09]SAM_PROTO_GetShiftState done [10:31:09]FM_GetShiftState done [10:31:09]req_shift_opened done [10:31:09]requested_item shift.open_date is exist - process it [10:31:09]req_shift_open_date [10:31:09]req_shift_open_date done [10:31:09]produce_requested_data done [10:31:09]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29177,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [10:31:09]process_action_free close_receipt [10:31:09]json_value_free [10:31:09]json_value_free done [10:31:09]process_json_proto returns [10:31:09]Send response to host [10:31:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29177,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [10:31:09]free response buf [10:31:09]execute_script done [10:31:09]execute_script returns [10:31:09]free content buf [10:31:09]Sock 7.Close socket [10:31:09]Sock 7.Thread stoped [10:31:11]accept exits with 9 [10:31:11]New connection [10:31:11]New thread 3066785124 created [10:31:11]Thread 3066928484 joined [10:31:11]Waiting for new connection... [10:31:11] Sock 9.Parse request [10:31:11]Sock 9.Check first char [10:31:11]Sock 9.First char is OK [10:31:11]request: POST /json_proto HTTP/1.0 [10:31:11]Method: POST [10:31:11]URL: /json_proto [10:31:11]Method is POST - this is cgi request [10:31:11]url: /json_proto [10:31:11]query_string will be loaded in cgi processing [10:31:11]execute_cgi json_proto POST (null) [10:31:11]execute_cgi path=json_proto method=POST [10:31:11]POST find Content-Length [10:31:11]Host: 172.17.33.3:8080 [10:31:11]Content-Length: 731 [10:31:11]Content-Type: application/json [10:31:11] [10:31:11]POST finish read [10:31:11]Found Content-Length = 731 [10:31:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 29177, "base_FM": "0000000000963154", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347549", "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" : 11.050, "sum" : 800.02, "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" ] } } [10:31:11]execute_script... [10:31:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 29177, "base_FM": "0000000000963154", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347549", "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" : 11.050, "sum" : 800.02, "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" ] } } [10:31:11]POST & json_proto [10:31:11]process_json_proto [10:31:11]json parsed OK: [10:31:11]protocol is kg_v1.0 [10:31:11]action value=close_receipt [10:31:11]process_action close_receipt [10:31:11]cmd_close_receipt [10:31:11]MH_GetDate [10:31:11]Write to MH i2c: F0 00 00 C4 89 3C [10:31:11]Write i2c OK [10:31:11]MH_I2C_Read... [10:31:11]Read from MH i2c: F0 [10:31:11]MH_I2C_Read... [10:31:11]Read from MH i2c: F0 09 00 [10:31:11]MH_I2C_Read... [10:31:11]Read from MH i2c: F0 09 00 C4 89 00 79 B0 1B 66 23 5B 8F 65 61 [10:31:11]GetLastDocTimeStamp 1713090674 [10:31:11]current date 1713090681 [10:31:11]FM_GetShiftState [10:31:11]SAM_PROTO_GetShiftState [10:31:11]wFMCommunicate request_size=4 [10:31:11]MH_SAM_APDU [10:31:11]CAPDU: 80 13 01 00 [10:31:11]Write to MH i2c: E2 08 00 C5 89 80 13 01 00 00 00 00 00 CB [10:31:11]Write i2c OK [10:31:11]MH_I2C_Read... [10:31:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:11]Read from MH i2c: E2 [10:31:11]MH_I2C_Read... [10:31:11]Read from MH i2c: E2 0E 00 [10:31:11]MH_I2C_Read... [10:31:11]Read from MH i2c: E2 0E 00 C5 89 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 77 [10:31:11]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [10:31:11]wFMCommunicate OK [10:31:11]SAM_PROTO_GetShiftState done [10:31:11]FM_GetShiftState done [10:31:11]opened in 1713053951 [10:31:11]opened+sec_in_day 1713140351 [10:31:11]quantity*price = 80002 [10:31:11]sum+1 = 80003 [10:31:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 800.00 НСП 1% : 7.08 НДС 12% : 84.96 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 88 14.04.2024 10:31 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФД осн.: 29177 ФМ осн.: 0000000000963154 ФМ: 0000000000963154 ФД: 29178 ФПД: 256748093213805 1/tax-web-control/client/api/v1/ticket?date=20240414T103121&type=2&operation_type=1&fn_number=0000000000963154&fd_number=29178&fm=256748093213805&tin=02508201610067®Number=0000138879044617&sum=80000 [10:31:12]StoreToDocumentArchive [10:31:12]shift 116 fd 29178 [10:31:12]save to /storage/0116/doc_00029178 [10:31:12]save last doc name /storage/0116/doc_00029178 to /storage/kkm_last_doc_name [10:31:12]save OK [10:31:12]Clear old archive folders... [10:31:12]ProcessDocumentItem done err = 0, tmpTLVsize=276 [10:31:12]tlvbuf is 012F0BC0 [10:31:12]SAM_PROTO_ClearQueue [10:31:12]wFMCommunicate request_size=4 [10:31:12]MH_SAM_APDU [10:31:12]CAPDU: 80 09 00 00 [10:31:12]Write to MH i2c: E2 08 00 D4 89 80 09 00 00 00 00 00 00 CF [10:31:12]Write i2c OK [10:31:12]MH_I2C_Read... [10:31:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:31:12]Read from MH i2c: E2 [10:31:12]MH_I2C_Read... [10:31:12]Read from MH i2c: E2 03 00 [10:31:12]MH_I2C_Read... [10:31:12]Read from MH i2c: E2 03 00 D4 89 00 90 00 D1 [10:31:12]RAPDU: 90 00 [10:31:12]wFMCommunicate OK [10:31:12]SAM_PROTO_ClearQueue done [10:31:12]KKMCreateOFDPacket [10:31:12]OFDProtocolAddRootSTLVToBuf [10:31:12]FM_MakeSignedData [10:31:12]FM_MakeSignedData [10:31:12]SAM_PROTO_SignData [10:31:12]wFMCommunicate request_size=4 [10:31:12]MH_SAM_APDU [10:31:12]CAPDU: 80 0D 01 02 [10:31:12]Write to MH i2c: E2 08 00 D5 89 80 0D 01 02 00 00 00 00 D7 [10:31:12]Write i2c OK [10:31:12]MH_I2C_Read... [10:31:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:31:12]Read from MH i2c: E2 [10:31:12]MH_I2C_Read... [10:31:12]Read from MH i2c: E2 03 00 [10:31:12]MH_I2C_Read... [10:31:12]Read from MH i2c: E2 03 00 D5 89 00 90 00 D2 [10:31:12]RAPDU: 90 00 [10:31:12]wFMCommunicate OK [10:31:12]wFMCommunicate request_size=255 [10:31:12]MH_SAM_APDU [10:31:12]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 02 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 2A 2B 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 82 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 30 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 58 00 00 00 F4 03 04 00 79 B0 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 F9 71 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 30 30 30 30 [10:31:12]Write to MH i2c: E2 02 01 D6 89 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 02 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 2A 2B 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 82 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 30 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 58 00 00 00 F4 03 04 00 79 B0 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 F9 71 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 30 30 30 30 00 00 20 [10:31:12]Write i2c OK [10:31:12]MH_I2C_Read... [10:31:13]OFD Sender: No OFD packet to send [10:31:13]Read from MH i2c: E2 [10:31:13]MH_I2C_Read... [10:31:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:31:13]Read from MH i2c: E2 03 00 [10:31:13]MH_I2C_Read... [10:31:13]Read from MH i2c: E2 03 00 D6 89 00 90 00 D3 [10:31:13]RAPDU: 90 00 [10:31:13]wFMCommunicate OK [10:31:13]wFMCommunicate request_size=35 [10:31:13]MH_SAM_APDU [10:31:13]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FA 71 00 00 35 04 06 00 E9 82 D2 E4 8C 6D [10:31:13]Write to MH i2c: E2 26 00 D7 89 80 0D 02 02 1E 00 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FA 71 00 00 35 04 06 00 E9 82 D2 E4 8C 6D 00 00 4E [10:31:13]Write i2c OK [10:31:13]MH_I2C_Read... [10:31:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:31:13]Read from MH i2c: E2 [10:31:13]MH_I2C_Read... [10:31:13]Read from MH i2c: E2 03 00 [10:31:13]MH_I2C_Read... [10:31:13]Read from MH i2c: E2 03 00 D7 89 00 90 00 D4 [10:31:13]RAPDU: 90 00 [10:31:13]wFMCommunicate OK [10:31:13]wFMCommunicate request_size=4 [10:31:13]MH_SAM_APDU [10:31:13]CAPDU: 80 0D 03 02 [10:31:13]Write to MH i2c: E2 08 00 D8 89 80 0D 03 02 00 00 00 00 DC [10:31:13]Write i2c OK [10:31:13]MH_I2C_Read... [10:31:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:31:13]Read from MH i2c: E2 [10:31:13]MH_I2C_Read... [10:31:13]Read from MH i2c: E2 0B 00 [10:31:13]MH_I2C_Read... [10:31:13]Read from MH i2c: E2 0B 00 D8 89 00 9D 89 3A 82 49 68 51 F7 90 00 B8 [10:31:13]RAPDU: 9D 89 3A 82 49 68 51 F7 90 00 [10:31:13]wFMCommunicate OK [10:31:13]SAM_PROTO_SignData done [10:31:13]FM_MakeSignedData done [10:31:13]CreateOFDProtocolMessage [10:31:13]wFMCommunicate request_size=4 [10:31:13]MH_SAM_APDU [10:31:13]CAPDU: 80 11 00 00 [10:31:13]Write to MH i2c: E2 08 00 D9 89 80 11 00 00 00 00 00 00 DC [10:31:13]Write i2c OK [10:31:13]MH_I2C_Read... [10:31:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:31:13]Read from MH i2c: E2 [10:31:13]MH_I2C_Read... [10:31:13]Read from MH i2c: E2 17 00 [10:31:13]MH_I2C_Read... [10:31:13]Read from MH i2c: E2 17 00 D9 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 2B [10:31:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:31:13]wFMCommunicate OK [10:31:13]CreateOFDProtocolMessage done [10:31:13]OFDSenderStorePacket 29178 [10:31:13]StoreOFDPacket docnum=29178 [10:31:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 28 01 00 00 0D 3E 20 01 8C 23 5A 03 01 00 03 00 14 01 1E 04 01 00 02 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 2A 2B 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 82 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 30 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 58 00 00 00 F4 03 04 00 79 B0 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 F9 71 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FA 71 00 00 35 04 06 00 E9 82 D2 E4 8C 6D 9D 89 3A 82 49 68 51 F7 [10:31:13]CheckFolder [10:31:13]dirname=/storage/ofd_packets [10:31:13]CheckFolder done [10:31:13]ProducePacketName [10:31:13]name=ofd_packets/00029178 [10:31:13]NVStorageSaveData ofd_packets/00029178 [10:31:13]File name is /storage/ofd_packets/00029178 [10:31:13]Write 326 bytes [10:31:13]NVStorageSaveData done [10:31:13]OFDSenderStorePacket done [10:31:13]KKMCreateOFDPacket done [10:31:13]NVStorageSaveData kkm_last_timestamp [10:31:13]File name is /storage/kkm_last_timestamp [10:31:13]Write 4 bytes [10:31:13]NVStorageSaveData done [10:31:13]ExternCall_PrintAddStr [10:31:13]wPrintStart [10:31:13]Write to MH i2c: 01 00 00 DA 89 63 [10:31:13]Write i2c OK [10:31:13]MH_I2C_Read... [10:31:13]Read from MH i2c: 01 [10:31:13]MH_I2C_Read... [10:31:13]Read from MH i2c: 01 07 00 [10:31:13]MH_I2C_Read... [10:31:13]Read from MH i2c: 01 07 00 DA 89 00 00 00 00 00 FF 0F 78 [10:31:13]RasterBufferAndPrint [10:31:13]line Счет N : (1)347549 [10:31:13]line ИНН: 02508201610067 [10:31:13]line Контрольно-Кассовый Чек [10:31:13]line ВОЗВРАТ ПРОДАЖИ [10:31:13]line ТРК (МРК, ГНК) : 61 [10:31:13]line Товар: 2710194210 [10:31:13]line ДТ-К-5 [10:31:13]line 11.050 * 72.40 [10:31:13]line = 800.02 [10:31:13]line НДС 12% НСП 1% [10:31:13]line > о реализуемом товаре [10:31:13]line ОКРУГЛЕНИЕ: -0.02 [10:31:13]line ИТОГО: 800.00 [10:31:13]line НСП 1% : 7.08 [10:31:13]line НДС 12% : 84.96 [10:31:13]line Наличными: 800.00 [10:31:13]line Безнал.: 0.00 [10:31:13]line Место: АЗС № 108 "Партнер Нефть" [10:31:13]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:31:13]line СНО: Общий режим [10:31:13]line Чек 88 14.04.2024 10:31 [10:31:13]line Смена: 116 ФФД: 1.0 [10:31:13]line ЗНМ: 0300000027 [10:31:13]line РНМ: 0000138879044617 [10:31:13]line Версия ККМ: 001 [10:31:13]line ФД осн.: 29177 [10:31:13]line ФМ осн.: 0000000000963154 [10:31:13]line ФМ: 0000000000963154 [10:31:13]line ФД: 29178 [10:31:13]line ФПД: 256748093213805 [10:31:13]line 1/tax-web-control/client/api/v1/ticket?date=20240414T103121&type=2&operation_type=1&fn_number=0000000000963154&fd_number=29178&fm=256748093213805&tin=02508201610067®Number=0000138879044617&sum=80000 [10:31:13]written 0, free lines is 4095 [10:31:13]OFD Sender: Processing packet 29178 [packets to send 8, broken 7] [10:31:13]ProducePacketName [10:31:13]name=ofd_packets/00029178 [10:31:13]OFD Sender: To server: pG, [10:31:13]CommunicateWithHost lk.salyk.kg:30040 [10:31:13]ConnectInit lk.salyk.kg [10:31:13]Connected sock=10 [10:31:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 28 01 00 00 0D 3E 20 01 8C 23 5A 03 01 00 03 00 14 01 1E 04 01 00 02 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 2A 2B 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 82 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 30 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 58 00 00 00 F4 03 04 00 79 B0 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 F9 71 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FA 71 00 00 35 04 06 00 E9 82 D2 E4 8C 6D 9D 89 3A 82 49 68 51 F7 [10:31:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 08 C7 47 00 2A 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FA 71 00 00 F4 03 04 00 1D 5B 1B 66 B6 04 01 00 00 45 EA 6A 09 96 6D 7C 8F [10:31:13]CommunicateWithHost err = 0 [10:31:13]CheckOFDResponse [10:31:13]1017 (14) - 77093643461234 [10:31:13]1041 (16) - 0000000000963154 [10:31:13]1040 (4) - 29178 [10:31:13]1012 (4) - 14.04.2024 04:27 [10:31:13]1206 (1) - 0 [10:31:13]OFD Sender: Remove packet 29178 [10:31:13]ProducePacketName [10:31:13]name=ofd_packets/00029178 [10:31:13]NVStorageDeleteData [10:31:13]Write to MH i2c: 01 00 00 04 8A 8E [10:31:13]Write i2c OK [10:31:13]MH_I2C_Read... [10:31:13]Read from MH i2c: 01 [10:31:13]MH_I2C_Read... [10:31:13]Read from MH i2c: 01 07 00 [10:31:13]MH_I2C_Read... [10:31:13]Read from MH i2c: 01 07 00 04 8A 00 00 00 00 00 EA 0C 8B [10:31:13]RasterBufferAndPrint [10:31:13]line [10:31:13]line [10:31:13]line [10:31:13]line [10:31:13]line [10:31:13]written 0, free lines is 3316 [10:31:13]MH_Cut [10:31:13]Write to MH i2c: D1 01 00 0B 8A 01 67 [10:31:13]Write i2c OK [10:31:13]MH_I2C_Read... [10:31:13]Read from MH i2c: D1 [10:31:13]MH_I2C_Read... [10:31:13]Read from MH i2c: D1 01 00 [10:31:13]MH_I2C_Read... [10:31:13]Read from MH i2c: D1 01 00 0B 8A 00 66 [10:31:13]Write to MH i2c: 01 00 00 0C 8A 96 [10:31:13]Write i2c OK [10:31:13]MH_I2C_Read... [10:31:14]OFD Sender: No OFD packet to send [10:31:14]*** Cut start [10:31:14]*** Partial cut [10:31:14]*** CUTSNS_PIN = 1 [10:31:14]*** CUTSNS_PIN = 0 [10:31:14]*** Brake cut motor [10:31:15]Read from MH i2c: 01 [10:31:15]MH_I2C_Read... [10:31:15]*** Stop cut motor [10:31:15]*** Cut end [10:31:15]Read from MH i2c: 01 07 00 [10:31:15]MH_I2C_Read... [10:31:15]Read from MH i2c: 01 07 00 0C 8A 00 00 00 00 00 FF 0F AB [10:31:15]process_action close_receipt done [10:31:15]requested_data is exist [10:31:15]produce_requested_data [10:31:15]requested_item fm.sn is exist - process it [10:31:15]wFMCommunicate request_size=4 [10:31:15]MH_SAM_APDU [10:31:15]CAPDU: 80 11 00 00 [10:31:15]Write to MH i2c: E2 08 00 0D 8A 80 11 00 00 00 00 00 00 11 [10:31:15]Write i2c OK [10:31:15]MH_I2C_Read... [10:31:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:31:15]Read from MH i2c: E2 [10:31:15]MH_I2C_Read... [10:31:15]Read from MH i2c: E2 17 00 [10:31:15]MH_I2C_Read... [10:31:15]Read from MH i2c: E2 17 00 0D 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 60 [10:31:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:31:15]wFMCommunicate OK [10:31:15]requested_item fd.num is exist - process it [10:31:15]SAM_PROTO_GetFieldsCounters [10:31:15]wFMCommunicate request_size=4 [10:31:15]MH_SAM_APDU [10:31:15]CAPDU: 80 13 00 00 [10:31:15]Write to MH i2c: E2 08 00 0E 8A 80 13 00 00 00 00 00 00 14 [10:31:15]Write i2c OK [10:31:15]MH_I2C_Read... [10:31:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:31:15]Read from MH i2c: E2 [10:31:15]MH_I2C_Read... [10:31:15]Read from MH i2c: E2 62 00 [10:31:15]MH_I2C_Read... [10:31:15]Read from MH i2c: E2 62 00 0E 8A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 FA 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 39 [10:31:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 FA 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:31:15]wFMCommunicate OK [10:31:15]SAM_PROTO_GetFieldsCounters done [10:31:15]requested_item shift.num is exist - process it [10:31:15]requested_item shift.opened is exist - process it [10:31:15]req_shift_opened [10:31:15]FM_GetShiftState [10:31:15]SAM_PROTO_GetShiftState [10:31:15]wFMCommunicate request_size=4 [10:31:15]MH_SAM_APDU [10:31:15]CAPDU: 80 13 01 00 [10:31:15]Write to MH i2c: E2 08 00 0F 8A 80 13 01 00 00 00 00 00 16 [10:31:15]Write i2c OK [10:31:15]MH_I2C_Read... [10:31:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:15]Read from MH i2c: E2 [10:31:15]MH_I2C_Read... [10:31:15]Read from MH i2c: E2 0E 00 [10:31:15]MH_I2C_Read... [10:31:15]Read from MH i2c: E2 0E 00 0F 8A 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 C2 [10:31:15]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [10:31:15]wFMCommunicate OK [10:31:15]SAM_PROTO_GetShiftState done [10:31:15]FM_GetShiftState done [10:31:15]req_shift_opened done [10:31:15]requested_item shift.open_date is exist - process it [10:31:15]req_shift_open_date [10:31:15]req_shift_open_date done [10:31:15]produce_requested_data done [10:31:15]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29178,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [10:31:15]process_action_free close_receipt [10:31:15]json_value_free [10:31:15]json_value_free done [10:31:15]process_json_proto returns [10:31:15]Send response to host [10:31:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29178,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [10:31:15]free response buf [10:31:15]execute_script done [10:31:15]execute_script returns [10:31:15]free content buf [10:31:15]Sock 9.Close socket [10:31:15]Sock 9.Thread stoped [10:31:19]OFD Sender: No OFD packet to send [10:31:24]OFD Sender: No OFD packet to send [10:31:29]OFD Sender: No OFD packet to send [10:31:34]OFD Sender: No OFD packet to send [10:31:39]OFD Sender: No OFD packet to send [10:31:44]OFD Sender: No OFD packet to send [10:31:49]OFD Sender: No OFD packet to send [10:31:54]OFD Sender: No OFD packet to send [10:31:59]OFD Sender: No OFD packet to send [10:32:04]OFD Sender: No OFD packet to send [10:32:09]OFD Sender: No OFD packet to send [10:32:14]OFD Sender: No OFD packet to send [10:32:19]OFD Sender: No OFD packet to send [10:32:21]accept exits with 7 [10:32:21]New connection [10:32:21]New thread 3066928484 created [10:32:21]Thread 3066785124 joined [10:32:21]Waiting for new connection... [10:32:21] Sock 7.Parse request [10:32:21]Sock 7.Check first char [10:32:21]Sock 7.First char is OK [10:32:21]request: POST /json_proto HTTP/1.0 [10:32:21]Method: POST [10:32:21]URL: /json_proto [10:32:21]Method is POST - this is cgi request [10:32:21]url: /json_proto [10:32:21]query_string will be loaded in cgi processing [10:32:21]execute_cgi json_proto POST (null) [10:32:21]execute_cgi path=json_proto method=POST [10:32:21]POST find Content-Length [10:32:21]Host: 172.17.33.3:8080 [10:32:21]Content-Length: 674 [10:32:21]Content-Type: application/json [10:32:21] [10:32:21]POST finish read [10:32:21]Found Content-Length = 674 [10:32:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347550", "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" ] } } [10:32:21]execute_script... [10:32: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)347550", "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" ] } } [10:32:21]POST & json_proto [10:32:21]process_json_proto [10:32:21]json parsed OK: [10:32:21]protocol is kg_v1.0 [10:32:21]action value=close_receipt [10:32:21]process_action close_receipt [10:32:21]cmd_close_receipt [10:32:21]MH_GetDate [10:32:21]Write to MH i2c: F0 00 00 10 8A 89 [10:32:21]Write i2c OK [10:32:21]MH_I2C_Read... [10:32:21]Read from MH i2c: F0 [10:32:21]MH_I2C_Read... [10:32:21]Read from MH i2c: F0 09 00 [10:32:21]MH_I2C_Read... [10:32:21]Read from MH i2c: F0 09 00 10 8A 00 BE B0 1B 66 23 5B 8F 65 F3 [10:32:21]GetLastDocTimeStamp 1713090681 [10:32:21]current date 1713090750 [10:32:21]FM_GetShiftState [10:32:21]SAM_PROTO_GetShiftState [10:32:21]wFMCommunicate request_size=4 [10:32:21]MH_SAM_APDU [10:32:21]CAPDU: 80 13 01 00 [10:32:21]Write to MH i2c: E2 08 00 11 8A 80 13 01 00 00 00 00 00 18 [10:32:21]Write i2c OK [10:32:21]MH_I2C_Read... [10:32:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:21]Read from MH i2c: E2 [10:32:21]MH_I2C_Read... [10:32:21]Read from MH i2c: E2 0E 00 [10:32:21]MH_I2C_Read... [10:32:21]Read from MH i2c: E2 0E 00 11 8A 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 C4 [10:32:21]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [10:32:21]wFMCommunicate OK [10:32:21]SAM_PROTO_GetShiftState done [10:32:21]FM_GetShiftState done [10:32:21]opened in 1713053951 [10:32:21]opened+sec_in_day 1713140351 [10:32:21]quantity*price = 70010 [10:32:21]sum+1 = 70012 [10:32:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.35 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 89 14.04.2024 10:32 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29179 ФПД: 63278803870000 1/tax-web-control/client/api/v1/ticket?date=20240414T103230&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29179&fm=63278803870000&tin=02508201610067®Number=0000138879044617&sum=70000 [10:32:22]StoreToDocumentArchive [10:32:22]shift 116 fd 29179 [10:32:22]save to /storage/0116/doc_00029179 [10:32:22]save last doc name /storage/0116/doc_00029179 to /storage/kkm_last_doc_name [10:32:22]save OK [10:32:22]Clear old archive folders... [10:32:22]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:32:22]tlvbuf is 0121E2D0 [10:32:22]SAM_PROTO_ClearQueue [10:32:22]wFMCommunicate request_size=4 [10:32:22]MH_SAM_APDU [10:32:22]CAPDU: 80 09 00 00 [10:32:22]Write to MH i2c: E2 08 00 1E 8A 80 09 00 00 00 00 00 00 1A [10:32:22]Write i2c OK [10:32:22]MH_I2C_Read... [10:32:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:32:22]Read from MH i2c: E2 [10:32:22]MH_I2C_Read... [10:32:22]Read from MH i2c: E2 03 00 [10:32:22]MH_I2C_Read... [10:32:22]Read from MH i2c: E2 03 00 1E 8A 00 90 00 1C [10:32:22]RAPDU: 90 00 [10:32:22]wFMCommunicate OK [10:32:22]SAM_PROTO_ClearQueue done [10:32:22]KKMCreateOFDPacket [10:32:22]OFDProtocolAddRootSTLVToBuf [10:32:22]FM_MakeSignedData [10:32:22]FM_MakeSignedData [10:32:22]SAM_PROTO_SignData [10:32:22]wFMCommunicate request_size=4 [10:32:22]MH_SAM_APDU [10:32:22]CAPDU: 80 0D 01 02 [10:32:22]Write to MH i2c: E2 08 00 1F 8A 80 0D 01 02 00 00 00 00 22 [10:32:22]Write i2c OK [10:32:22]MH_I2C_Read... [10:32:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:32:22]Read from MH i2c: E2 [10:32:22]MH_I2C_Read... [10:32:22]Read from MH i2c: E2 03 00 [10:32:22]MH_I2C_Read... [10:32:22]Read from MH i2c: E2 03 00 1F 8A 00 90 00 1D [10:32:22]RAPDU: 90 00 [10:32:22]wFMCommunicate OK [10:32:22]wFMCommunicate request_size=255 [10:32:22]MH_SAM_APDU [10:32:22]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 59 00 00 00 F4 03 04 00 BE B0 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FB 71 00 00 35 04 06 00 39 8D 3E A0 [10:32:22]Write to MH i2c: E2 02 01 20 8A 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 59 00 00 00 F4 03 04 00 BE B0 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FB 71 00 00 35 04 06 00 39 8D 3E A0 00 00 DE [10:32:22]Write i2c OK [10:32:22]MH_I2C_Read... [10:32:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:22]Read from MH i2c: E2 [10:32:22]MH_I2C_Read... [10:32:22]Read from MH i2c: E2 03 00 [10:32:22]MH_I2C_Read... [10:32:22]Read from MH i2c: E2 03 00 20 8A 00 90 00 1E [10:32:22]RAPDU: 90 00 [10:32:22]wFMCommunicate OK [10:32:22]wFMCommunicate request_size=7 [10:32:22]MH_SAM_APDU [10:32:22]CAPDU: 80 0D 02 02 02 61 30 [10:32:22]Write to MH i2c: E2 0A 00 21 8A 80 0D 02 02 02 00 61 30 00 00 BA [10:32:22]Write i2c OK [10:32:22]MH_I2C_Read... [10:32:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:22]Read from MH i2c: E2 [10:32:22]MH_I2C_Read... [10:32:22]Read from MH i2c: E2 03 00 [10:32:22]MH_I2C_Read... [10:32:22]Read from MH i2c: E2 03 00 21 8A 00 90 00 1F [10:32:22]RAPDU: 90 00 [10:32:22]wFMCommunicate OK [10:32:22]wFMCommunicate request_size=4 [10:32:22]MH_SAM_APDU [10:32:22]CAPDU: 80 0D 03 02 [10:32:22]Write to MH i2c: E2 08 00 22 8A 80 0D 03 02 00 00 00 00 27 [10:32:22]Write i2c OK [10:32:22]MH_I2C_Read... [10:32:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:32:22]Read from MH i2c: E2 [10:32:22]MH_I2C_Read... [10:32:22]Read from MH i2c: E2 0B 00 [10:32:22]MH_I2C_Read... [10:32:22]Read from MH i2c: E2 0B 00 22 8A 00 52 BF 59 BC D2 F8 24 FF 90 00 3B [10:32:22]RAPDU: 52 BF 59 BC D2 F8 24 FF 90 00 [10:32:22]wFMCommunicate OK [10:32:22]SAM_PROTO_SignData done [10:32:22]FM_MakeSignedData done [10:32:22]CreateOFDProtocolMessage [10:32:22]wFMCommunicate request_size=4 [10:32:22]MH_SAM_APDU [10:32:22]CAPDU: 80 11 00 00 [10:32:22]Write to MH i2c: E2 08 00 23 8A 80 11 00 00 00 00 00 00 27 [10:32:22]Write i2c OK [10:32:22]MH_I2C_Read... [10:32:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:22]Read from MH i2c: E2 [10:32:22]MH_I2C_Read... [10:32:22]Read from MH i2c: E2 17 00 [10:32:22]MH_I2C_Read... [10:32:22]Read from MH i2c: E2 17 00 23 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 76 [10:32:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:32:22]wFMCommunicate OK [10:32:22]CreateOFDProtocolMessage done [10:32:22]OFDSenderStorePacket 29179 [10:32:22]StoreOFDPacket docnum=29179 [10:32:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 2F D5 04 01 A9 26 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 59 00 00 00 F4 03 04 00 BE B0 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FB 71 00 00 35 04 06 00 39 8D 3E A0 61 30 52 BF 59 BC D2 F8 24 FF [10:32:22]CheckFolder [10:32:22]dirname=/storage/ofd_packets [10:32:22]CheckFolder done [10:32:22]ProducePacketName [10:32:22]name=ofd_packets/00029179 [10:32:22]NVStorageSaveData ofd_packets/00029179 [10:32:22]File name is /storage/ofd_packets/00029179 [10:32:22]Write 298 bytes [10:32:22]NVStorageSaveData done [10:32:22]OFDSenderStorePacket done [10:32:22]KKMCreateOFDPacket done [10:32:22]NVStorageSaveData kkm_last_timestamp [10:32:22]File name is /storage/kkm_last_timestamp [10:32:22]Write 4 bytes [10:32:22]NVStorageSaveData done [10:32:22]ExternCall_PrintAddStr [10:32:22]wPrintStart [10:32:22]Write to MH i2c: 01 00 00 24 8A AE [10:32:22]Write i2c OK [10:32:22]MH_I2C_Read... [10:32:22]Read from MH i2c: 01 [10:32:22]MH_I2C_Read... [10:32:22]Read from MH i2c: 01 07 00 [10:32:22]MH_I2C_Read... [10:32:22]Read from MH i2c: 01 07 00 24 8A 00 00 00 00 00 FF 0F C3 [10:32:22]RasterBufferAndPrint [10:32:22]line Счет N : (1)347550 [10:32:22]line ИНН: 02508201610067 [10:32:22]line Контрольно-Кассовый Чек [10:32:22]line ПРОДАЖА [10:32:22]line ТРК (МРК, ГНК) : 51 [10:32:22]line Товар: 2710194210 [10:32:22]line ДТ-К-5 [10:32:22]line 9.670 * 72.40 [10:32:22]line = 700.11 [10:32:22]line НДС 12% НСП 1% [10:32:22]line > о реализуемом товаре [10:32:22]line ОКРУГЛЕНИЕ: -0.11 [10:32:22]line ИТОГО: 700.00 [10:32:22]line Внесено: 700.00 [10:32:22]line СДАЧА: 0.00 [10:32:22]line НСП 1% : 6.20 [10:32:22]line НДС 12% : 74.35 [10:32:22]line Наличными: 700.00 [10:32:22]line Безнал.: 0.00 [10:32:22]line Место: АЗС № 108 "Партнер Нефть" [10:32:22]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:32:22]line СНО: Общий режим [10:32:22]line Чек 89 14.04.2024 10:32 [10:32:22]line Смена: 116 ФФД: 1.0 [10:32:22]line ЗНМ: 0300000027 [10:32:22]line РНМ: 0000138879044617 [10:32:22]line Версия ККМ: 001 [10:32:22]line ФМ: 0000000000963154 [10:32:22]line ФД: 29179 [10:32:22]line ФПД: 63278803870000 [10:32:23]line 1/tax-web-control/client/api/v1/ticket?date=20240414T103230&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29179&fm=63278803870000&tin=02508201610067®Number=0000138879044617&sum=70000 [10:32:23]OFD Sender: Processing packet 29179 [packets to send 8, broken 7] [10:32:23]ProducePacketName [10:32:23]name=ofd_packets/00029179 [10:32:23]OFD Sender: To server: pG, [10:32:23]CommunicateWithHost lk.salyk.kg:30040 [10:32:23]ConnectInit lk.salyk.kg [10:32:23]written 0, free lines is 4095 [10:32:23]Connected sock=10 [10:32:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 2F D5 04 01 A9 26 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 59 00 00 00 F4 03 04 00 BE B0 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FB 71 00 00 35 04 06 00 39 8D 3E A0 61 30 52 BF 59 BC D2 F8 24 FF [10:32:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 B9 D6 47 00 6A 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 39 36 33 31 35 34 10 04 04 00 FB 71 00 00 F4 03 04 00 63 5B 1B 66 B6 04 01 00 00 B8 9D 44 D3 CD A7 76 7D [10:32:23]CommunicateWithHost err = 0 [10:32:23]CheckOFDResponse [10:32:23]1017 (14) - 77093643461234 [10:32:23]1041 (16) - 0000000000963154 [10:32:23]1040 (4) - 29179 [10:32:23]1012 (4) - 14.04.2024 04:28 [10:32:23]1206 (1) - 0 [10:32:23]OFD Sender: Remove packet 29179 [10:32:23]ProducePacketName [10:32:23]name=ofd_packets/00029179 [10:32:23]NVStorageDeleteData [10:32:23]Write to MH i2c: 01 00 00 4E 8A D8 [10:32:23]Write i2c OK [10:32:23]MH_I2C_Read... [10:32:23]Read from MH i2c: 01 [10:32:23]MH_I2C_Read... [10:32:23]Read from MH i2c: 01 07 00 [10:32:23]MH_I2C_Read... [10:32:23]Read from MH i2c: 01 07 00 4E 8A 00 00 00 00 00 CC 0C B7 [10:32:23]RasterBufferAndPrint [10:32:23]line [10:32:23]line [10:32:23]line [10:32:23]line [10:32:23]line [10:32:23]written 0, free lines is 3282 [10:32:23]MH_Cut [10:32:23]Write to MH i2c: D1 01 00 55 8A 01 B1 [10:32:23]Write i2c OK [10:32:23]MH_I2C_Read... [10:32:23]Read from MH i2c: D1 [10:32:23]MH_I2C_Read... [10:32:23]Read from MH i2c: D1 01 00 [10:32:23]MH_I2C_Read... [10:32:23]Read from MH i2c: D1 01 00 55 8A 00 B0 [10:32:23]Write to MH i2c: 01 00 00 56 8A E0 [10:32:23]Write i2c OK [10:32:23]MH_I2C_Read... [10:32:24]OFD Sender: No OFD packet to send [10:32:24]*** Cut start [10:32:24]*** Partial cut [10:32:24]*** CUTSNS_PIN = 1 [10:32:24]*** CUTSNS_PIN = 0 [10:32:24]*** Brake cut motor [10:32:25]Read from MH i2c: 01 [10:32:25]MH_I2C_Read... [10:32:25]*** Stop cut motor [10:32:25]*** Cut end [10:32:25]Read from MH i2c: 01 07 00 [10:32:25]MH_I2C_Read... [10:32:25]Read from MH i2c: 01 07 00 56 8A 00 00 00 00 00 FF 0F F5 [10:32:25]process_action close_receipt done [10:32:25]requested_data is exist [10:32:25]produce_requested_data [10:32:25]requested_item fm.sn is exist - process it [10:32:25]wFMCommunicate request_size=4 [10:32:25]MH_SAM_APDU [10:32:25]CAPDU: 80 11 00 00 [10:32:25]Write to MH i2c: E2 08 00 57 8A 80 11 00 00 00 00 00 00 5B [10:32:25]Write i2c OK [10:32:25]MH_I2C_Read... [10:32:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:25]Read from MH i2c: E2 [10:32:25]MH_I2C_Read... [10:32:25]Read from MH i2c: E2 17 00 [10:32:25]MH_I2C_Read... [10:32:25]Read from MH i2c: E2 17 00 57 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 AA [10:32:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:32:25]wFMCommunicate OK [10:32:25]requested_item fd.num is exist - process it [10:32:25]SAM_PROTO_GetFieldsCounters [10:32:25]wFMCommunicate request_size=4 [10:32:25]MH_SAM_APDU [10:32:25]CAPDU: 80 13 00 00 [10:32:25]Write to MH i2c: E2 08 00 58 8A 80 13 00 00 00 00 00 00 5E [10:32:25]Write i2c OK [10:32:25]MH_I2C_Read... [10:32:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:32:25]Read from MH i2c: E2 [10:32:25]MH_I2C_Read... [10:32:25]Read from MH i2c: E2 62 00 [10:32:25]MH_I2C_Read... [10:32:25]Read from MH i2c: E2 62 00 58 8A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 FB 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 87 [10:32:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 FB 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:32:25]wFMCommunicate OK [10:32:25]SAM_PROTO_GetFieldsCounters done [10:32:25]requested_item shift.num is exist - process it [10:32:25]requested_item shift.opened is exist - process it [10:32:25]req_shift_opened [10:32:25]FM_GetShiftState [10:32:25]SAM_PROTO_GetShiftState [10:32:25]wFMCommunicate request_size=4 [10:32:25]MH_SAM_APDU [10:32:25]CAPDU: 80 13 01 00 [10:32:25]Write to MH i2c: E2 08 00 59 8A 80 13 01 00 00 00 00 00 60 [10:32:25]Write i2c OK [10:32:25]MH_I2C_Read... [10:32:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:25]Read from MH i2c: E2 [10:32:25]MH_I2C_Read... [10:32:25]Read from MH i2c: E2 0E 00 [10:32:25]MH_I2C_Read... [10:32:25]Read from MH i2c: E2 0E 00 59 8A 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 0C [10:32:25]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [10:32:25]wFMCommunicate OK [10:32:25]SAM_PROTO_GetShiftState done [10:32:25]FM_GetShiftState done [10:32:25]req_shift_opened done [10:32:25]requested_item shift.open_date is exist - process it [10:32:25]req_shift_open_date [10:32:25]req_shift_open_date done [10:32:25]produce_requested_data done [10:32:25]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29179,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [10:32:25]process_action_free close_receipt [10:32:25]json_value_free [10:32:25]json_value_free done [10:32:25]process_json_proto returns [10:32:25]Send response to host [10:32:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29179,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [10:32:25]free response buf [10:32:25]execute_script done [10:32:25]execute_script returns [10:32:25]free content buf [10:32:25]Sock 7.Close socket [10:32:25]Sock 7.Thread stoped [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:40]accept exits with 9 [10:33:40]New connection [10:33:40]New thread 3066785124 created [10:33:40]Thread 3066928484 joined [10:33:40]Waiting for new connection... [10:33:40] Sock 9.Parse request [10:33:40]Sock 9.Check first char [10:33:40]Sock 9.First char is OK [10:33:40]request: POST /json_proto HTTP/1.0 [10:33:40]Method: POST [10:33:40]URL: /json_proto [10:33:40]Method is POST - this is cgi request [10:33:40]url: /json_proto [10:33:40]query_string will be loaded in cgi processing [10:33:40]execute_cgi json_proto POST (null) [10:33:40]execute_cgi path=json_proto method=POST [10:33:40]POST find Content-Length [10:33:40]Host: 172.17.33.3:8080 [10:33:40]Content-Length: 677 [10:33:40]Content-Type: application/json [10:33:40] [10:33:40]POST finish read [10:33:40]Found Content-Length = 677 [10:33:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347552", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.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:33:40]execute_script... [10:33: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)347552", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.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:33:40]POST & json_proto [10:33:40]process_json_proto [10:33:40]json parsed OK: [10:33:40]protocol is kg_v1.0 [10:33:40]action value=close_receipt [10:33:40]process_action close_receipt [10:33:40]cmd_close_receipt [10:33:40]MH_GetDate [10:33:40]Write to MH i2c: F0 00 00 5A 8A D3 [10:33:40]Write i2c OK [10:33:40]MH_I2C_Read... [10:33:40]Read from MH i2c: F0 [10:33:40]MH_I2C_Read... [10:33:40]Read from MH i2c: F0 09 00 [10:33:40]MH_I2C_Read... [10:33:40]Read from MH i2c: F0 09 00 5A 8A 00 0E B1 1B 66 23 5B 8F 65 8E [10:33:40]GetLastDocTimeStamp 1713090750 [10:33:40]current date 1713090830 [10:33:40]FM_GetShiftState [10:33:40]SAM_PROTO_GetShiftState [10:33:40]wFMCommunicate request_size=4 [10:33:40]MH_SAM_APDU [10:33:40]CAPDU: 80 13 01 00 [10:33:40]Write to MH i2c: E2 08 00 5B 8A 80 13 01 00 00 00 00 00 62 [10:33:40]Write i2c OK [10:33:40]MH_I2C_Read... [10:33:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:33:40]Read from MH i2c: E2 [10:33:40]MH_I2C_Read... [10:33:40]Read from MH i2c: E2 0E 00 [10:33:40]MH_I2C_Read... [10:33:40]Read from MH i2c: E2 0E 00 5B 8A 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 0E [10:33:40]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [10:33:40]wFMCommunicate OK [10:33:40]SAM_PROTO_GetShiftState done [10:33:40]FM_GetShiftState done [10:33:40]opened in 1713053951 [10:33:40]opened+sec_in_day 1713140351 [10:33:40]quantity*price = 60056 [10:33:40]sum+1 = 60057 [10:33: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 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 90 14.04.2024 10:33 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29180 ФПД: 4412786298875 1/tax-web-control/client/api/v1/ticket?date=20240414T103350&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29180&fm=4412786298875&tin=02508201610067®Number=0000138879044617&sum=60000 [10:33:41]StoreToDocumentArchive [10:33:41]shift 116 fd 29180 [10:33:41]save to /storage/0116/doc_00029180 [10:33:41]save last doc name /storage/0116/doc_00029180 to /storage/kkm_last_doc_name [10:33:41]save OK [10:33:41]Clear old archive folders... [10:33:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:33:41]tlvbuf is 0121A810 [10:33:41]SAM_PROTO_ClearQueue [10:33:41]wFMCommunicate request_size=4 [10:33:41]MH_SAM_APDU [10:33:41]CAPDU: 80 09 00 00 [10:33:41]Write to MH i2c: E2 08 00 68 8A 80 09 00 00 00 00 00 00 64 [10:33:41]Write i2c OK [10:33:41]MH_I2C_Read... [10:33:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:33:41]Read from MH i2c: E2 [10:33:41]MH_I2C_Read... [10:33:41]Read from MH i2c: E2 03 00 [10:33:41]MH_I2C_Read... [10:33:41]Read from MH i2c: E2 03 00 68 8A 00 90 00 66 [10:33:41]RAPDU: 90 00 [10:33:41]wFMCommunicate OK [10:33:41]SAM_PROTO_ClearQueue done [10:33:41]KKMCreateOFDPacket [10:33:41]OFDProtocolAddRootSTLVToBuf [10:33:41]FM_MakeSignedData [10:33:41]FM_MakeSignedData [10:33:41]SAM_PROTO_SignData [10:33:41]wFMCommunicate request_size=4 [10:33:41]MH_SAM_APDU [10:33:41]CAPDU: 80 0D 01 02 [10:33:41]Write to MH i2c: E2 08 00 69 8A 80 0D 01 02 00 00 00 00 6C [10:33:41]Write i2c OK [10:33:41]MH_I2C_Read... [10:33:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:33:41]Read from MH i2c: E2 [10:33:41]MH_I2C_Read... [10:33:41]Read from MH i2c: E2 03 00 [10:33:41]MH_I2C_Read... [10:33:41]Read from MH i2c: E2 03 00 69 8A 00 90 00 67 [10:33:41]RAPDU: 90 00 [10:33:41]wFMCommunicate OK [10:33:41]wFMCommunicate request_size=255 [10:33:41]MH_SAM_APDU [10:33: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 5A 00 00 00 F4 03 04 00 0E B1 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FC 71 00 00 35 04 06 00 04 [10:33:41]Write to MH i2c: E2 02 01 6A 8A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 5A 00 00 00 F4 03 04 00 0E B1 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FC 71 00 00 35 04 06 00 04 00 00 16 [10:33:41]Write i2c OK [10:33:41]MH_I2C_Read... [10:33:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:33:42]Read from MH i2c: E2 [10:33:42]MH_I2C_Read... [10:33:42]Read from MH i2c: E2 03 00 [10:33:42]MH_I2C_Read... [10:33:42]Read from MH i2c: E2 03 00 6A 8A 00 90 00 68 [10:33:42]RAPDU: 90 00 [10:33:42]wFMCommunicate OK [10:33:42]wFMCommunicate request_size=10 [10:33:42]MH_SAM_APDU [10:33:42]CAPDU: 80 0D 02 02 05 03 6E 8F 4F FB [10:33:42]Write to MH i2c: E2 0D 00 6B 8A 80 0D 02 02 05 00 03 6E 8F 4F FB 00 00 C3 [10:33:42]Write i2c OK [10:33:42]MH_I2C_Read... [10:33:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:33:42]Read from MH i2c: E2 [10:33:42]MH_I2C_Read... [10:33:42]Read from MH i2c: E2 03 00 [10:33:42]MH_I2C_Read... [10:33:42]Read from MH i2c: E2 03 00 6B 8A 00 90 00 69 [10:33:42]RAPDU: 90 00 [10:33:42]wFMCommunicate OK [10:33:42]wFMCommunicate request_size=4 [10:33:42]MH_SAM_APDU [10:33:42]CAPDU: 80 0D 03 02 [10:33:42]Write to MH i2c: E2 08 00 6C 8A 80 0D 03 02 00 00 00 00 71 [10:33:42]Write i2c OK [10:33:42]MH_I2C_Read... [10:33:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:33:42]Read from MH i2c: E2 [10:33:42]MH_I2C_Read... [10:33:42]Read from MH i2c: E2 0B 00 [10:33:42]MH_I2C_Read... [10:33:42]Read from MH i2c: E2 0B 00 6C 8A 00 E1 9E 66 C8 C0 36 5C 92 90 00 03 [10:33:42]RAPDU: E1 9E 66 C8 C0 36 5C 92 90 00 [10:33:42]wFMCommunicate OK [10:33:42]SAM_PROTO_SignData done [10:33:42]FM_MakeSignedData done [10:33:42]CreateOFDProtocolMessage [10:33:42]wFMCommunicate request_size=4 [10:33:42]MH_SAM_APDU [10:33:42]CAPDU: 80 11 00 00 [10:33:42]Write to MH i2c: E2 08 00 6D 8A 80 11 00 00 00 00 00 00 71 [10:33:42]Write i2c OK [10:33:42]MH_I2C_Read... [10:33:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:33:42]Read from MH i2c: E2 [10:33:42]MH_I2C_Read... [10:33:42]Read from MH i2c: E2 17 00 [10:33:42]MH_I2C_Read... [10:33:42]Read from MH i2c: E2 17 00 6D 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C0 [10:33:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:33:42]wFMCommunicate OK [10:33:42]CreateOFDProtocolMessage done [10:33:42]OFDSenderStorePacket 29180 [10:33:42]StoreOFDPacket docnum=29180 [10:33:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 27 12 07 01 46 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 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 5A 00 00 00 F4 03 04 00 0E B1 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FC 71 00 00 35 04 06 00 04 03 6E 8F 4F FB E1 9E 66 C8 C0 36 5C 92 [10:33:42]CheckFolder [10:33:42]dirname=/storage/ofd_packets [10:33:42]CheckFolder done [10:33:42]ProducePacketName [10:33:42]name=ofd_packets/00029180 [10:33:42]NVStorageSaveData ofd_packets/00029180 [10:33:42]File name is /storage/ofd_packets/00029180 [10:33:42]Write 301 bytes [10:33:42]NVStorageSaveData done [10:33:42]OFDSenderStorePacket done [10:33:42]KKMCreateOFDPacket done [10:33:42]NVStorageSaveData kkm_last_timestamp [10:33:42]File name is /storage/kkm_last_timestamp [10:33:42]Write 4 bytes [10:33:42]NVStorageSaveData done [10:33:42]ExternCall_PrintAddStr [10:33:42]wPrintStart [10:33:42]Write to MH i2c: 01 00 00 6E 8A F8 [10:33:42]Write i2c OK [10:33:42]MH_I2C_Read... [10:33:42]Read from MH i2c: 01 [10:33:42]MH_I2C_Read... [10:33:42]Read from MH i2c: 01 07 00 [10:33:42]MH_I2C_Read... [10:33:42]Read from MH i2c: 01 07 00 6E 8A 00 00 00 00 00 FF 0F 0D [10:33:42]RasterBufferAndPrint [10:33:42]line Счет N : (1)347552 [10:33:42]line ИНН: 02508201610067 [10:33:42]line Контрольно-Кассовый Чек [10:33:42]line ПРОДАЖА [10:33:42]line ТРК (МРК, ГНК) : 23 [10:33:42]line Товар: 2710124130 [10:33:42]line Аи-92-К-5 [10:33:42]line 9.340 * 64.30 [10:33:42]line = 600.56 [10:33:42]line НДС 12% НСП 1% [10:33:42]line > о реализуемом товаре [10:33:42]line ОКРУГЛЕНИЕ: -0.56 [10:33:42]line ИТОГО: 600.00 [10:33:42]line Внесено: 600.00 [10:33:42]line СДАЧА: 0.00 [10:33:42]line НСП 1% : 5.31 [10:33:42]line НДС 12% : 63.78 [10:33:42]line Наличными: 600.00 [10:33:42]line Безнал.: 0.00 [10:33:42]line Место: АЗС № 108 "Партнер Нефть" [10:33:42]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:33:42]line СНО: Общий режим [10:33:42]line Чек 90 14.04.2024 10:33 [10:33:42]line Смена: 116 ФФД: 1.0 [10:33:42]line ЗНМ: 0300000027 [10:33:42]line РНМ: 0000138879044617 [10:33:42]line Версия ККМ: 001 [10:33:42]line ФМ: 0000000000963154 [10:33:42]line ФД: 29180 [10:33:42]line ФПД: 4412786298875 [10:33:42]line 1/tax-web-control/client/api/v1/ticket?date=20240414T103350&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29180&fm=4412786298875&tin=02508201610067®Number=0000138879044617&sum=60000 [10:33:42]OFD Sender: Processing packet 29180 [packets to send 8, broken 7] [10:33:42]ProducePacketName [10:33:42]name=ofd_packets/00029180 [10:33:42]OFD Sender: To server: pG, [10:33:42]CommunicateWithHost lk.salyk.kg:30040 [10:33:42]ConnectInit lk.salyk.kg [10:33:42]written 0, free lines is 4095 [10:33:42]Connected sock=10 [10:33:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 27 12 07 01 46 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 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 5A 00 00 00 F4 03 04 00 0E B1 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FC 71 00 00 35 04 06 00 04 03 6E 8F 4F FB E1 9E 66 C8 C0 36 5C 92 [10:33:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 99 F5 47 00 39 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 39 36 33 31 35 34 10 04 04 00 FC 71 00 00 F4 03 04 00 B2 5B 1B 66 B6 04 01 00 00 2F 0E 0C A8 A0 B4 44 94 [10:33:42]CommunicateWithHost err = 0 [10:33:42]CheckOFDResponse [10:33:42]1017 (14) - 77093643461234 [10:33:42]1041 (16) - 0000000000963154 [10:33:42]1040 (4) - 29180 [10:33:42]1012 (4) - 14.04.2024 04:29 [10:33:42]1206 (1) - 0 [10:33:42]OFD Sender: Remove packet 29180 [10:33:42]ProducePacketName [10:33:42]name=ofd_packets/00029180 [10:33:42]NVStorageDeleteData [10:33:42]Write to MH i2c: 01 00 00 98 8A 22 [10:33:42]Write i2c OK [10:33:42]MH_I2C_Read... [10:33:42]Read from MH i2c: 01 [10:33:42]MH_I2C_Read... [10:33:42]Read from MH i2c: 01 07 00 [10:33:42]MH_I2C_Read... [10:33:42]Read from MH i2c: 01 07 00 98 8A 00 00 00 00 00 D3 0C 08 [10:33:42]RasterBufferAndPrint [10:33:42]line [10:33:42]line [10:33:42]line [10:33:42]line [10:33:42]line [10:33:42]written 0, free lines is 3289 [10:33:42]MH_Cut [10:33:42]Write to MH i2c: D1 01 00 9F 8A 01 FB [10:33:42]Write i2c OK [10:33:42]MH_I2C_Read... [10:33:42]Read from MH i2c: D1 [10:33:42]MH_I2C_Read... [10:33:42]Read from MH i2c: D1 01 00 [10:33:42]MH_I2C_Read... [10:33:42]Read from MH i2c: D1 01 00 9F 8A 00 FA [10:33:42]Write to MH i2c: 01 00 00 A0 8A 2A [10:33:42]Write i2c OK [10:33:42]MH_I2C_Read... [10:33:43]OFD Sender: No OFD packet to send [10:33:43]*** Cut start [10:33:43]*** Partial cut [10:33:43]*** CUTSNS_PIN = 1 [10:33:43]*** CUTSNS_PIN = 0 [10:33:44]*** Brake cut motor [10:33:44]Read from MH i2c: 01 [10:33:44]MH_I2C_Read... [10:33:44]*** Stop cut motor [10:33:44]*** Cut end [10:33:44]Read from MH i2c: 01 07 00 [10:33:44]MH_I2C_Read... [10:33:44]Read from MH i2c: 01 07 00 A0 8A 00 00 00 00 00 FF 0F 3F [10:33:44]process_action close_receipt done [10:33:44]requested_data is exist [10:33:44]produce_requested_data [10:33:44]requested_item fm.sn is exist - process it [10:33:44]wFMCommunicate request_size=4 [10:33:44]MH_SAM_APDU [10:33:44]CAPDU: 80 11 00 00 [10:33:44]Write to MH i2c: E2 08 00 A1 8A 80 11 00 00 00 00 00 00 A5 [10:33:44]Write i2c OK [10:33:44]MH_I2C_Read... [10:33:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:33:44]Read from MH i2c: E2 [10:33:44]MH_I2C_Read... [10:33:44]Read from MH i2c: E2 17 00 [10:33:44]MH_I2C_Read... [10:33:44]Read from MH i2c: E2 17 00 A1 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F4 [10:33:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:33:44]wFMCommunicate OK [10:33:44]requested_item fd.num is exist - process it [10:33:44]SAM_PROTO_GetFieldsCounters [10:33:44]wFMCommunicate request_size=4 [10:33:44]MH_SAM_APDU [10:33:44]CAPDU: 80 13 00 00 [10:33:44]Write to MH i2c: E2 08 00 A2 8A 80 13 00 00 00 00 00 00 A8 [10:33:44]Write i2c OK [10:33:44]MH_I2C_Read... [10:33:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:33:44]Read from MH i2c: E2 [10:33:44]MH_I2C_Read... [10:33:44]Read from MH i2c: E2 62 00 [10:33:44]MH_I2C_Read... [10:33:44]Read from MH i2c: E2 62 00 A2 8A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 FC 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 D5 [10:33:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 FC 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:33:44]wFMCommunicate OK [10:33:44]SAM_PROTO_GetFieldsCounters done [10:33:44]requested_item shift.num is exist - process it [10:33:44]requested_item shift.opened is exist - process it [10:33:44]req_shift_opened [10:33:44]FM_GetShiftState [10:33:44]SAM_PROTO_GetShiftState [10:33:44]wFMCommunicate request_size=4 [10:33:44]MH_SAM_APDU [10:33:44]CAPDU: 80 13 01 00 [10:33:44]Write to MH i2c: E2 08 00 A3 8A 80 13 01 00 00 00 00 00 AA [10:33:44]Write i2c OK [10:33:44]MH_I2C_Read... [10:33:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:33:44]Read from MH i2c: E2 [10:33:44]MH_I2C_Read... [10:33:44]Read from MH i2c: E2 0E 00 [10:33:44]MH_I2C_Read... [10:33:44]Read from MH i2c: E2 0E 00 A3 8A 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 56 [10:33:44]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [10:33:44]wFMCommunicate OK [10:33:44]SAM_PROTO_GetShiftState done [10:33:44]FM_GetShiftState done [10:33:44]req_shift_opened done [10:33:44]requested_item shift.open_date is exist - process it [10:33:44]req_shift_open_date [10:33:44]req_shift_open_date done [10:33:44]produce_requested_data done [10:33:44]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29180,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [10:33:44]process_action_free close_receipt [10:33:44]json_value_free [10:33:44]json_value_free done [10:33:44]process_json_proto returns [10:33:44]Send response to host [10:33:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29180,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [10:33:44]free response buf [10:33:44]execute_script done [10:33:44]execute_script returns [10:33:44]free content buf [10:33:44]Sock 9.Close socket [10:33:44]Sock 9.Thread stoped [10:33:48]OFD Sender: No OFD packet to send [10:33:53]OFD Sender: No OFD packet to send [10:33:58]OFD Sender: No OFD packet to send [10:34:03]OFD Sender: No OFD packet to send [10:34:08]OFD Sender: No OFD packet to send [10:34:13]OFD Sender: No OFD packet to send [10:34:18]OFD Sender: No OFD packet to send [10:34:23]OFD Sender: No OFD packet to send [10:34:28]OFD Sender: No OFD packet to send [10:34:33]OFD Sender: No OFD packet to send [10:34:38]OFD Sender: No OFD packet to send [10:34:43]OFD Sender: No OFD packet to send [10:34:48]OFD Sender: No OFD packet to send [10:34:53]OFD Sender: No OFD packet to send [10:34:58]OFD Sender: No OFD packet to send [10:35:03]OFD Sender: No OFD packet to send [10:35:08]OFD Sender: No OFD packet to send [10:35:13]OFD Sender: No OFD packet to send [10:35:18]OFD Sender: No OFD packet to send [10:35:22]accept exits with 7 [10:35:22]New connection [10:35:22]New thread 3066928484 created [10:35:22]Thread 3066785124 joined [10:35:22]Waiting for new connection... [10:35:22] Sock 7.Parse request [10:35:22]Sock 7.Check first char [10:35:22]Sock 7.First char is OK [10:35:22]request: POST /json_proto HTTP/1.0 [10:35:22]Method: POST [10:35:22]URL: /json_proto [10:35:22]Method is POST - this is cgi request [10:35:22]url: /json_proto [10:35:22]query_string will be loaded in cgi processing [10:35:22]execute_cgi json_proto POST (null) [10:35:22]execute_cgi path=json_proto method=POST [10:35:22]POST find Content-Length [10:35:22]Host: 172.17.33.3:8080 [10:35:22]Content-Length: 805 [10:35:22]Content-Type: application/json [10:35:22] [10:35:22]POST finish read [10:35:22]Found Content-Length = 805 [10:35:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347553", "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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:35:22]execute_script... [10:35: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)347553", "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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:35:22]POST & json_proto [10:35:22]process_json_proto [10:35:22]json parsed OK: [10:35:22]protocol is kg_v1.0 [10:35:22]action value=close_receipt [10:35:22]process_action close_receipt [10:35:22]cmd_close_receipt [10:35:22]MH_GetDate [10:35:22]Write to MH i2c: F0 00 00 A4 8A 1D [10:35:22]Write i2c OK [10:35:22]MH_I2C_Read... [10:35:22]Read from MH i2c: F0 [10:35:22]MH_I2C_Read... [10:35:22]Read from MH i2c: F0 09 00 [10:35:22]MH_I2C_Read... [10:35:22]Read from MH i2c: F0 09 00 A4 8A 00 74 B1 1B 66 23 5B 8F 65 3E [10:35:22]GetLastDocTimeStamp 1713090830 [10:35:22]current date 1713090932 [10:35:22]FM_GetShiftState [10:35:22]SAM_PROTO_GetShiftState [10:35:22]wFMCommunicate request_size=4 [10:35:22]MH_SAM_APDU [10:35:22]CAPDU: 80 13 01 00 [10:35:22]Write to MH i2c: E2 08 00 A5 8A 80 13 01 00 00 00 00 00 AC [10:35:22]Write i2c OK [10:35:22]MH_I2C_Read... [10:35:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:35:22]Read from MH i2c: E2 [10:35:22]MH_I2C_Read... [10:35:22]Read from MH i2c: E2 0E 00 [10:35:22]MH_I2C_Read... [10:35:22]Read from MH i2c: E2 0E 00 A5 8A 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 58 [10:35:22]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [10:35:22]wFMCommunicate OK [10:35:22]SAM_PROTO_GetShiftState done [10:35:22]FM_GetShiftState done [10:35:22]opened in 1713053951 [10:35:22]opened+sec_in_day 1713140351 [10:35:22]quantity*price = 100056 [10:35:22]sum+1 = 100058 [10:35:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.57 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.57 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 91 14.04.2024 10:35 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29181 ФПД: 143840579617110 1/tax-web-control/client/api/v1/ticket?date=20240414T103532&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29181&fm=143840579617110&tin=02508201610067®Number=0000138879044617&sum=100057 [10:35:23]StoreToDocumentArchive [10:35:23]shift 116 fd 29181 [10:35:23]save to /storage/0116/doc_00029181 [10:35:23]save last doc name /storage/0116/doc_00029181 to /storage/kkm_last_doc_name [10:35:23]save OK [10:35:23]Clear old archive folders... [10:35:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:35:23]tlvbuf is 012249F0 [10:35:23]SAM_PROTO_ClearQueue [10:35:23]wFMCommunicate request_size=4 [10:35:23]MH_SAM_APDU [10:35:23]CAPDU: 80 09 00 00 [10:35:23]Write to MH i2c: E2 08 00 B2 8A 80 09 00 00 00 00 00 00 AE [10:35:23]Write i2c OK [10:35:23]MH_I2C_Read... [10:35:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:35:23]Read from MH i2c: E2 [10:35:23]MH_I2C_Read... [10:35:23]Read from MH i2c: E2 03 00 [10:35:23]MH_I2C_Read... [10:35:23]Read from MH i2c: E2 03 00 B2 8A 00 90 00 B0 [10:35:23]RAPDU: 90 00 [10:35:23]wFMCommunicate OK [10:35:23]SAM_PROTO_ClearQueue done [10:35:23]KKMCreateOFDPacket [10:35:23]OFDProtocolAddRootSTLVToBuf [10:35:23]FM_MakeSignedData [10:35:23]FM_MakeSignedData [10:35:23]SAM_PROTO_SignData [10:35:23]wFMCommunicate request_size=4 [10:35:23]MH_SAM_APDU [10:35:23]CAPDU: 80 0D 01 02 [10:35:23]Write to MH i2c: E2 08 00 B3 8A 80 0D 01 02 00 00 00 00 B6 [10:35:23]Write i2c OK [10:35:23]MH_I2C_Read... [10:35:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:35:23]Read from MH i2c: E2 [10:35:23]MH_I2C_Read... [10:35:23]Read from MH i2c: E2 03 00 [10:35:23]MH_I2C_Read... [10:35:23]Read from MH i2c: E2 03 00 B3 8A 00 90 00 B1 [10:35:23]RAPDU: 90 00 [10:35:23]wFMCommunicate OK [10:35:23]wFMCommunicate request_size=255 [10:35:23]MH_SAM_APDU [10:35:23]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 5B 00 00 00 F4 03 04 00 74 B1 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FD 71 00 00 35 04 06 00 82 D2 7E A7 [10:35:23]Write to MH i2c: E2 02 01 B4 8A 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 5B 00 00 00 F4 03 04 00 74 B1 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FD 71 00 00 35 04 06 00 82 D2 7E A7 00 00 63 [10:35:23]Write i2c OK [10:35:23]MH_I2C_Read... [10:35:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:35:24]Read from MH i2c: E2 [10:35:24]MH_I2C_Read... [10:35:24]Read from MH i2c: E2 03 00 [10:35:24]MH_I2C_Read... [10:35:24]Read from MH i2c: E2 03 00 B4 8A 00 90 00 B2 [10:35:24]RAPDU: 90 00 [10:35:24]wFMCommunicate OK [10:35:24]wFMCommunicate request_size=7 [10:35:24]MH_SAM_APDU [10:35:24]CAPDU: 80 0D 02 02 02 01 56 [10:35:24]Write to MH i2c: E2 0A 00 B5 8A 80 0D 02 02 02 00 01 56 00 00 14 [10:35:24]Write i2c OK [10:35:24]MH_I2C_Read... [10:35:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:35:24]Read from MH i2c: E2 [10:35:24]MH_I2C_Read... [10:35:24]Read from MH i2c: E2 03 00 [10:35:24]MH_I2C_Read... [10:35:24]Read from MH i2c: E2 03 00 B5 8A 00 90 00 B3 [10:35:24]RAPDU: 90 00 [10:35:24]wFMCommunicate OK [10:35:24]wFMCommunicate request_size=4 [10:35:24]MH_SAM_APDU [10:35:24]CAPDU: 80 0D 03 02 [10:35:24]Write to MH i2c: E2 08 00 B6 8A 80 0D 03 02 00 00 00 00 BB [10:35:24]Write i2c OK [10:35:24]MH_I2C_Read... [10:35:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:35:24]Read from MH i2c: E2 [10:35:24]MH_I2C_Read... [10:35:24]Read from MH i2c: E2 0B 00 [10:35:24]MH_I2C_Read... [10:35:24]Read from MH i2c: E2 0B 00 B6 8A 00 24 DD 8A C5 98 23 8F DC 90 00 32 [10:35:24]RAPDU: 24 DD 8A C5 98 23 8F DC 90 00 [10:35:24]wFMCommunicate OK [10:35:24]SAM_PROTO_SignData done [10:35:24]FM_MakeSignedData done [10:35:24]CreateOFDProtocolMessage [10:35:24]wFMCommunicate request_size=4 [10:35:24]MH_SAM_APDU [10:35:24]CAPDU: 80 11 00 00 [10:35:24]Write to MH i2c: E2 08 00 B7 8A 80 11 00 00 00 00 00 00 BB [10:35:24]Write i2c OK [10:35:24]MH_I2C_Read... [10:35:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:35:24]Read from MH i2c: E2 [10:35:24]MH_I2C_Read... [10:35:24]Read from MH i2c: E2 17 00 [10:35:24]MH_I2C_Read... [10:35:24]Read from MH i2c: E2 17 00 B7 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 0A [10:35:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:35:24]wFMCommunicate OK [10:35:24]CreateOFDProtocolMessage done [10:35:24]OFDSenderStorePacket 29181 [10:35:24]StoreOFDPacket docnum=29181 [10:35:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 B5 04 04 01 95 70 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 5B 00 00 00 F4 03 04 00 74 B1 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FD 71 00 00 35 04 06 00 82 D2 7E A7 01 56 24 DD 8A C5 98 23 8F DC [10:35:24]CheckFolder [10:35:24]dirname=/storage/ofd_packets [10:35:24]CheckFolder done [10:35:24]ProducePacketName [10:35:24]name=ofd_packets/00029181 [10:35:24]NVStorageSaveData ofd_packets/00029181 [10:35:24]File name is /storage/ofd_packets/00029181 [10:35:24]Write 298 bytes [10:35:24]NVStorageSaveData done [10:35:24]OFDSenderStorePacket done [10:35:24]KKMCreateOFDPacket done [10:35:24]NVStorageSaveData kkm_last_timestamp [10:35:24]File name is /storage/kkm_last_timestamp [10:35:24]Write 4 bytes [10:35:24]NVStorageSaveData done [10:35:24]ExternCall_PrintAddStr [10:35:24]wPrintStart [10:35:24]Write to MH i2c: 01 00 00 B8 8A 42 [10:35:24]Write i2c OK [10:35:24]MH_I2C_Read... [10:35:24]Read from MH i2c: 01 [10:35:24]MH_I2C_Read... [10:35:24]Read from MH i2c: 01 07 00 [10:35:24]MH_I2C_Read... [10:35:24]Read from MH i2c: 01 07 00 B8 8A 00 00 00 00 00 FF 0F 57 [10:35:24]RasterBufferAndPrint [10:35:24]line Счет N : (1)347553 [10:35:24]line ИНН: 02508201610067 [10:35:24]line Контрольно-Кассовый Чек [10:35:24]line ПРОДАЖА [10:35:24]line ТРК (МРК, ГНК) : 51 [10:35:24]line Товар: 2710194210 [10:35:24]line ДТ-К-5 [10:35:24]line 13.820 * 72.40 [10:35:24]line = 1000.57 [10:35:24]line НДС 12% НСП 1% [10:35:24]line > о реализуемом товаре [10:35:24]line ИТОГО: 1000.57 [10:35:24]line НСП 1% : 8.85 [10:35:24]line НДС 12% : 106.25 [10:35:24]line Наличными: 0.00 [10:35:24]line Безнал.: 1000.57 [10:35:24]line Место: АЗС № 108 "Партнер Нефть" [10:35:24]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:35:24]line СНО: Общий режим [10:35:24]line Чек 91 14.04.2024 10:35 [10:35:24]line Смена: 116 ФФД: 1.0 [10:35:24]line ЗНМ: 0300000027 [10:35:24]line РНМ: 0000138879044617 [10:35:24]line Версия ККМ: 001 [10:35:24]line Платежная система: О! деньги [10:35:24]line ФМ: 0000000000963154 [10:35:24]line ФД: 29181 [10:35:24]line ФПД: 143840579617110 [10:35:24]line 1/tax-web-control/client/api/v1/ticket?date=20240414T103532&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29181&fm=143840579617110&tin=02508201610067®Number=0000138879044617&sum=100057 [10:35:24]OFD Sender: Processing packet 29181 [packets to send 8, broken 7] [10:35:24]ProducePacketName [10:35:24]name=ofd_packets/00029181 [10:35:24]OFD Sender: To server: pG, [10:35:24]CommunicateWithHost lk.salyk.kg:30040 [10:35:24]ConnectInit lk.salyk.kg [10:35:24]written 0, free lines is 4095 [10:35:24]Connected sock=10 [10:35:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 B5 04 04 01 95 70 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 5B 00 00 00 F4 03 04 00 74 B1 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FD 71 00 00 35 04 06 00 82 D2 7E A7 01 56 24 DD 8A C5 98 23 8F DC [10:35:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 02 A4 47 00 FC 2A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FD 71 00 00 F4 03 04 00 18 5C 1B 66 B6 04 01 00 00 F2 85 ED 44 F7 14 07 FF [10:35:24]CommunicateWithHost err = 0 [10:35:24]CheckOFDResponse [10:35:24]1017 (14) - 77093643461234 [10:35:24]1041 (16) - 0000000000963154 [10:35:24]1040 (4) - 29181 [10:35:24]1012 (4) - 14.04.2024 04:31 [10:35:24]1206 (1) - 0 [10:35:24]OFD Sender: Remove packet 29181 [10:35:24]ProducePacketName [10:35:24]name=ofd_packets/00029181 [10:35:24]NVStorageDeleteData [10:35:25]Write to MH i2c: 01 00 00 E1 8A 6B [10:35:25]Write i2c OK [10:35:25]MH_I2C_Read... [10:35:25]Read from MH i2c: 01 [10:35:25]MH_I2C_Read... [10:35:25]Read from MH i2c: 01 07 00 [10:35:25]MH_I2C_Read... [10:35:25]Read from MH i2c: 01 07 00 E1 8A 00 00 00 00 00 E0 0C 5E [10:35:25]RasterBufferAndPrint [10:35:25]line [10:35:25]line [10:35:25]line [10:35:25]line [10:35:25]line [10:35:25]written 0, free lines is 3302 [10:35:25]MH_Cut [10:35:25]Write to MH i2c: D1 01 00 E8 8A 01 44 [10:35:25]Write i2c OK [10:35:25]MH_I2C_Read... [10:35:25]Read from MH i2c: D1 [10:35:25]MH_I2C_Read... [10:35:25]Read from MH i2c: D1 01 00 [10:35:25]MH_I2C_Read... [10:35:25]Read from MH i2c: D1 01 00 E8 8A 00 43 [10:35:25]Write to MH i2c: 01 00 00 E9 8A 73 [10:35:25]Write i2c OK [10:35:25]MH_I2C_Read... [10:35:25]OFD Sender: No OFD packet to send [10:35:25]*** Cut start [10:35:25]*** Partial cut [10:35:25]*** CUTSNS_PIN = 1 [10:35:26]*** CUTSNS_PIN = 0 [10:35:26]*** Brake cut motor [10:35:26]Read from MH i2c: 01 [10:35:26]MH_I2C_Read... [10:35:26]*** Stop cut motor [10:35:26]*** Cut end [10:35:26]Read from MH i2c: 01 07 00 [10:35:26]MH_I2C_Read... [10:35:26]Read from MH i2c: 01 07 00 E9 8A 00 00 00 00 00 FF 0F 88 [10:35:26]process_action close_receipt done [10:35:26]requested_data is exist [10:35:26]produce_requested_data [10:35:26]requested_item fm.sn is exist - process it [10:35:26]wFMCommunicate request_size=4 [10:35:26]MH_SAM_APDU [10:35:26]CAPDU: 80 11 00 00 [10:35:26]Write to MH i2c: E2 08 00 EA 8A 80 11 00 00 00 00 00 00 EE [10:35:26]Write i2c OK [10:35:26]MH_I2C_Read... [10:35:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:35:26]Read from MH i2c: E2 [10:35:26]MH_I2C_Read... [10:35:26]Read from MH i2c: E2 17 00 [10:35:26]MH_I2C_Read... [10:35:26]Read from MH i2c: E2 17 00 EA 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 3D [10:35:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:35:26]wFMCommunicate OK [10:35:26]requested_item fd.num is exist - process it [10:35:26]SAM_PROTO_GetFieldsCounters [10:35:26]wFMCommunicate request_size=4 [10:35:26]MH_SAM_APDU [10:35:26]CAPDU: 80 13 00 00 [10:35:26]Write to MH i2c: E2 08 00 EB 8A 80 13 00 00 00 00 00 00 F1 [10:35:26]Write i2c OK [10:35:26]MH_I2C_Read... [10:35:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:35:26]Read from MH i2c: E2 [10:35:26]MH_I2C_Read... [10:35:26]Read from MH i2c: E2 62 00 [10:35:26]MH_I2C_Read... [10:35:26]Read from MH i2c: E2 62 00 EB 8A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 FD 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 22 [10:35:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 FD 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:35:26]wFMCommunicate OK [10:35:26]SAM_PROTO_GetFieldsCounters done [10:35:26]requested_item shift.num is exist - process it [10:35:26]requested_item shift.opened is exist - process it [10:35:26]req_shift_opened [10:35:26]FM_GetShiftState [10:35:26]SAM_PROTO_GetShiftState [10:35:26]wFMCommunicate request_size=4 [10:35:26]MH_SAM_APDU [10:35:26]CAPDU: 80 13 01 00 [10:35:26]Write to MH i2c: E2 08 00 EC 8A 80 13 01 00 00 00 00 00 F3 [10:35:26]Write i2c OK [10:35:26]MH_I2C_Read... [10:35:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:35:26]Read from MH i2c: E2 [10:35:26]MH_I2C_Read... [10:35:26]Read from MH i2c: E2 0E 00 [10:35:26]MH_I2C_Read... [10:35:26]Read from MH i2c: E2 0E 00 EC 8A 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 9F [10:35:26]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [10:35:26]wFMCommunicate OK [10:35:26]SAM_PROTO_GetShiftState done [10:35:26]FM_GetShiftState done [10:35:26]req_shift_opened done [10:35:26]requested_item shift.open_date is exist - process it [10:35:26]req_shift_open_date [10:35:26]req_shift_open_date done [10:35:26]produce_requested_data done [10:35:26]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29181,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [10:35:26]process_action_free close_receipt [10:35:26]json_value_free [10:35:26]json_value_free done [10:35:26]process_json_proto returns [10:35:26]Send response to host [10:35:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29181,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [10:35:26]free response buf [10:35:26]execute_script done [10:35:26]execute_script returns [10:35:26]free content buf [10:35:26]Sock 7.Close socket [10:35:26]Sock 7.Thread stoped [10:35:30]OFD Sender: No OFD packet to send [10:35:35]OFD Sender: No OFD packet to send [10:35:40]OFD Sender: No OFD packet to send [10:35:45]OFD Sender: No OFD packet to send [10:35:50]OFD Sender: No OFD packet to send [10:35:55]OFD Sender: No OFD packet to send [10:36:00]OFD Sender: No OFD packet to send [10:36:05]OFD Sender: No OFD packet to send [10:36:10]OFD Sender: No OFD packet to send [10:36:15]OFD Sender: No OFD packet to send [10:36:20]OFD Sender: No OFD packet to send [10:36:25]OFD Sender: No OFD packet to send [10:36:30]OFD Sender: No OFD packet to send [10:36:35]OFD Sender: No OFD packet to send [10:36:40]OFD Sender: No OFD packet to send [10:36:45]OFD Sender: No OFD packet to send [10:36:50]OFD Sender: No OFD packet to send [10:36:51]accept exits with 9 [10:36:51]New connection [10:36:51]New thread 3066785124 created [10:36:51]Thread 3066928484 joined [10:36:51]Waiting for new connection... [10:36:51] Sock 9.Parse request [10:36:51]Sock 9.Check first char [10:36:51]Sock 9.First char is OK [10:36:51]request: POST /json_proto HTTP/1.0 [10:36:51]Method: POST [10:36:51]URL: /json_proto [10:36:51]Method is POST - this is cgi request [10:36:51]url: /json_proto [10:36:51]query_string will be loaded in cgi processing [10:36:51]execute_cgi json_proto POST (null) [10:36:51]execute_cgi path=json_proto method=POST [10:36:51]POST find Content-Length [10:36:51]Host: 172.17.33.3:8080 [10:36:51]Content-Length: 685 [10:36:51]Content-Type: application/json [10:36:51] [10:36:51]POST finish read [10:36:51]Found Content-Length = 685 [10:36:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347551", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 52.900, "sum" : 1740.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 1740.00, "payments": [ { "type": 0, "sum" : 1740.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:36:51]execute_script... [10:36: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)347551", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 52.900, "sum" : 1740.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 1740.00, "payments": [ { "type": 0, "sum" : 1740.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:36:51]POST & json_proto [10:36:51]process_json_proto [10:36:51]json parsed OK: [10:36:51]protocol is kg_v1.0 [10:36:51]action value=close_receipt [10:36:51]process_action close_receipt [10:36:51]cmd_close_receipt [10:36:51]MH_GetDate [10:36:51]Write to MH i2c: F0 00 00 ED 8A 66 [10:36:51]Write i2c OK [10:36:51]MH_I2C_Read... [10:36:51]Read from MH i2c: F0 [10:36:51]MH_I2C_Read... [10:36:51]Read from MH i2c: F0 09 00 [10:36:51]MH_I2C_Read... [10:36:51]Read from MH i2c: F0 09 00 ED 8A 00 CD B1 1B 66 23 5B 8F 65 E0 [10:36:51]GetLastDocTimeStamp 1713090932 [10:36:51]current date 1713091021 [10:36:51]FM_GetShiftState [10:36:51]SAM_PROTO_GetShiftState [10:36:51]wFMCommunicate request_size=4 [10:36:51]MH_SAM_APDU [10:36:51]CAPDU: 80 13 01 00 [10:36:51]Write to MH i2c: E2 08 00 EE 8A 80 13 01 00 00 00 00 00 F5 [10:36:51]Write i2c OK [10:36:51]MH_I2C_Read... [10:36:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:51]Read from MH i2c: E2 [10:36:51]MH_I2C_Read... [10:36:51]Read from MH i2c: E2 0E 00 [10:36:51]MH_I2C_Read... [10:36:51]Read from MH i2c: E2 0E 00 EE 8A 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 A1 [10:36:51]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [10:36:51]wFMCommunicate OK [10:36:51]SAM_PROTO_GetShiftState done [10:36:51]FM_GetShiftState done [10:36:51]opened in 1713053951 [10:36:51]opened+sec_in_day 1713140351 [10:36:51]quantity*price = 174041 [10:36:51]sum+1 = 174042 [10:36:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 1740.00 Внесено: 3000.00 СДАЧА: 1260.00 НСП 1% : 15.40 НДС 12% : 184.82 Наличными: 1740.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 92 14.04.2024 10:37 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29182 ФПД: 103800342384274 1/tax-web-control/client/api/v1/ticket?date=20240414T103701&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29182&fm=103800342384274&tin=02508201610067®Number=0000138879044617&sum=174000 [10:36:53]StoreToDocumentArchive [10:36:53]shift 116 fd 29182 [10:36:53]save to /storage/0116/doc_00029182 [10:36:53]save last doc name /storage/0116/doc_00029182 to /storage/kkm_last_doc_name [10:36:53]save OK [10:36:53]Clear old archive folders... [10:36:53]ProcessDocumentItem done err = 0, tmpTLVsize=250 [10:36:53]tlvbuf is 011E3A80 [10:36:53]SAM_PROTO_ClearQueue [10:36:53]wFMCommunicate request_size=4 [10:36:53]MH_SAM_APDU [10:36:53]CAPDU: 80 09 00 00 [10:36:53]Write to MH i2c: E2 08 00 FB 8A 80 09 00 00 00 00 00 00 F7 [10:36:53]Write i2c OK [10:36:53]MH_I2C_Read... [10:36:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:36:53]Read from MH i2c: E2 [10:36:53]MH_I2C_Read... [10:36:53]Read from MH i2c: E2 03 00 [10:36:53]MH_I2C_Read... [10:36:53]Read from MH i2c: E2 03 00 FB 8A 00 90 00 F9 [10:36:53]RAPDU: 90 00 [10:36:53]wFMCommunicate OK [10:36:53]SAM_PROTO_ClearQueue done [10:36:53]KKMCreateOFDPacket [10:36:53]OFDProtocolAddRootSTLVToBuf [10:36:53]FM_MakeSignedData [10:36:53]FM_MakeSignedData [10:36:53]SAM_PROTO_SignData [10:36:53]wFMCommunicate request_size=4 [10:36:53]MH_SAM_APDU [10:36:53]CAPDU: 80 0D 01 02 [10:36:53]Write to MH i2c: E2 08 00 FC 8A 80 0D 01 02 00 00 00 00 FF [10:36:53]Write i2c OK [10:36:53]MH_I2C_Read... [10:36:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:36:53]Read from MH i2c: E2 [10:36:53]MH_I2C_Read... [10:36:53]Read from MH i2c: E2 03 00 [10:36:53]MH_I2C_Read... [10:36:53]Read from MH i2c: E2 03 00 FC 8A 00 90 00 FA [10:36:53]RAPDU: 90 00 [10:36:53]wFMCommunicate OK [10:36:53]wFMCommunicate request_size=255 [10:36:53]MH_SAM_APDU [10:36:53]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 A4 CE 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 D9 A7 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 A7 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 04 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 48 00 00 00 00 07 04 06 00 B0 A7 02 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 CD B1 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FE 71 00 00 35 04 06 00 5E 67 [10:36:53]Write to MH i2c: E2 02 01 FD 8A 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 A4 CE 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 D9 A7 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 A7 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 04 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 48 00 00 00 00 07 04 06 00 B0 A7 02 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 CD B1 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FE 71 00 00 35 04 06 00 5E 67 00 00 E9 [10:36:53]Write i2c OK [10:36:53]MH_I2C_Read... [10:36:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:53]Read from MH i2c: E2 [10:36:53]MH_I2C_Read... [10:36:53]Read from MH i2c: E2 03 00 [10:36:53]MH_I2C_Read... [10:36:53]Read from MH i2c: E2 03 00 FD 8A 00 90 00 FB [10:36:53]RAPDU: 90 00 [10:36:53]wFMCommunicate OK [10:36:53]wFMCommunicate request_size=9 [10:36:53]MH_SAM_APDU [10:36:53]CAPDU: 80 0D 02 02 04 E6 89 0E 92 [10:36:53]Write to MH i2c: E2 0C 00 FE 8A 80 0D 02 02 04 00 E6 89 0E 92 00 00 19 [10:36:53]Write i2c OK [10:36:53]MH_I2C_Read... [10:36:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:53]Read from MH i2c: E2 [10:36:53]MH_I2C_Read... [10:36:53]Read from MH i2c: E2 03 00 [10:36:53]MH_I2C_Read... [10:36:53]Read from MH i2c: E2 03 00 FE 8A 00 90 00 FC [10:36:53]RAPDU: 90 00 [10:36:53]wFMCommunicate OK [10:36:53]wFMCommunicate request_size=4 [10:36:53]MH_SAM_APDU [10:36:53]CAPDU: 80 0D 03 02 [10:36:53]Write to MH i2c: E2 08 00 FF 8A 80 0D 03 02 00 00 00 00 04 [10:36:53]Write i2c OK [10:36:53]MH_I2C_Read... [10:36:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:36:53]Read from MH i2c: E2 [10:36:53]MH_I2C_Read... [10:36:53]Read from MH i2c: E2 0B 00 [10:36:53]MH_I2C_Read... [10:36:53]Read from MH i2c: E2 0B 00 FF 8A 00 7E DB EF C7 3C 7A C1 09 90 00 94 [10:36:53]RAPDU: 7E DB EF C7 3C 7A C1 09 90 00 [10:36:53]wFMCommunicate OK [10:36:53]SAM_PROTO_SignData done [10:36:53]FM_MakeSignedData done [10:36:53]CreateOFDProtocolMessage [10:36:53]wFMCommunicate request_size=4 [10:36:53]MH_SAM_APDU [10:36:53]CAPDU: 80 11 00 00 [10:36:53]Write to MH i2c: E2 08 00 00 8B 80 11 00 00 00 00 00 00 05 [10:36:53]Write i2c OK [10:36:53]MH_I2C_Read... [10:36:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:53]Read from MH i2c: E2 [10:36:53]MH_I2C_Read... [10:36:53]Read from MH i2c: E2 17 00 [10:36:53]MH_I2C_Read... [10:36:53]Read from MH i2c: E2 17 00 00 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 54 [10:36:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:36:53]wFMCommunicate OK [10:36:53]CreateOFDProtocolMessage done [10:36:53]OFDSenderStorePacket 29182 [10:36:53]StoreOFDPacket docnum=29182 [10:36:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 AA DA 06 01 95 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 A4 CE 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 D9 A7 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 A7 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 04 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 48 00 00 00 00 07 04 06 00 B0 A7 02 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 CD B1 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FE 71 00 00 35 04 06 00 5E 67 E6 89 0E 92 7E DB EF C7 3C 7A C1 09 [10:36:53]CheckFolder [10:36:53]dirname=/storage/ofd_packets [10:36:53]CheckFolder done [10:36:53]ProducePacketName [10:36:53]name=ofd_packets/00029182 [10:36:53]NVStorageSaveData ofd_packets/00029182 [10:36:53]File name is /storage/ofd_packets/00029182 [10:36:53]Write 300 bytes [10:36:53]NVStorageSaveData done [10:36:53]OFDSenderStorePacket done [10:36:53]KKMCreateOFDPacket done [10:36:53]NVStorageSaveData kkm_last_timestamp [10:36:53]File name is /storage/kkm_last_timestamp [10:36:53]Write 4 bytes [10:36:53]NVStorageSaveData done [10:36:53]ExternCall_PrintAddStr [10:36:53]wPrintStart [10:36:53]Write to MH i2c: 01 00 00 01 8B 8C [10:36:53]Write i2c OK [10:36:53]MH_I2C_Read... [10:36:53]Read from MH i2c: 01 [10:36:53]MH_I2C_Read... [10:36:53]Read from MH i2c: 01 07 00 [10:36:53]MH_I2C_Read... [10:36:53]Read from MH i2c: 01 07 00 01 8B 00 00 00 00 00 FF 0F A1 [10:36:53]RasterBufferAndPrint [10:36:53]line Счет N : (1)347551 [10:36:53]line ИНН: 02508201610067 [10:36:53]line Контрольно-Кассовый Чек [10:36:53]line ПРОДАЖА [10:36:53]line ТРК (МРК, ГНК) : 71 [10:36:53]line Товар: 2711129700 [10:36:53]line ГАЗ-К-5 [10:36:53]line 52.900 * 32.90 [10:36:53]line = 1740.41 [10:36:53]line НДС 12% НСП 1% [10:36:53]line > о реализуемом товаре [10:36:53]line ОКРУГЛЕНИЕ: -0.41 [10:36:53]line ИТОГО: 1740.00 [10:36:53]line Внесено: 3000.00 [10:36:53]line СДАЧА: 1260.00 [10:36:53]line НСП 1% : 15.40 [10:36:53]line НДС 12% : 184.82 [10:36:53]line Наличными: 1740.00 [10:36:53]line Безнал.: 0.00 [10:36:53]line Место: АЗС № 108 "Партнер Нефть" [10:36:53]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:36:53]line СНО: Общий режим [10:36:53]line Чек 92 14.04.2024 10:37 [10:36:53]line Смена: 116 ФФД: 1.0 [10:36:53]line ЗНМ: 0300000027 [10:36:53]line РНМ: 0000138879044617 [10:36:53]line Версия ККМ: 001 [10:36:53]line ФМ: 0000000000963154 [10:36:53]line ФД: 29182 [10:36:53]line ФПД: 103800342384274 [10:36:53]line 1/tax-web-control/client/api/v1/ticket?date=20240414T103701&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29182&fm=103800342384274&tin=02508201610067®Number=0000138879044617&sum=174000 [10:36:53]OFD Sender: Processing packet 29182 [packets to send 8, broken 7] [10:36:53]ProducePacketName [10:36:53]name=ofd_packets/00029182 [10:36:53]OFD Sender: To server: pG, [10:36:53]CommunicateWithHost lk.salyk.kg:30040 [10:36:53]ConnectInit lk.salyk.kg [10:36:53]written 0, free lines is 4095 [10:36:54]Connected sock=10 [10:36:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 AA DA 06 01 95 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 A4 CE 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 D9 A7 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 A7 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 04 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 48 00 00 00 00 07 04 06 00 B0 A7 02 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 CD B1 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FE 71 00 00 35 04 06 00 5E 67 E6 89 0E 92 7E DB EF C7 3C 7A C1 09 [10:36:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 6F 28 47 00 88 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FE 71 00 00 F4 03 04 00 71 5C 1B 66 B6 04 01 00 00 5B DA 02 8D 0A 45 D4 0C [10:36:54]CommunicateWithHost err = 0 [10:36:54]CheckOFDResponse [10:36:54]1017 (14) - 77093643461234 [10:36:54]1041 (16) - 0000000000963154 [10:36:54]1040 (4) - 29182 [10:36:54]1012 (4) - 14.04.2024 04:32 [10:36:54]1206 (1) - 0 [10:36:54]OFD Sender: Remove packet 29182 [10:36:54]ProducePacketName [10:36:54]name=ofd_packets/00029182 [10:36:54]NVStorageDeleteData [10:36:54]Write to MH i2c: 01 00 00 2B 8B B6 [10:36:54]Write i2c OK [10:36:54]MH_I2C_Read... [10:36:54]Read from MH i2c: 01 [10:36:54]MH_I2C_Read... [10:36:54]Read from MH i2c: 01 07 00 [10:36:54]MH_I2C_Read... [10:36:54]Read from MH i2c: 01 07 00 2B 8B 00 00 00 00 00 CA 0C 93 [10:36:54]RasterBufferAndPrint [10:36:54]line [10:36:54]line [10:36:54]line [10:36:54]line [10:36:54]line [10:36:54]written 0, free lines is 3278 [10:36:54]MH_Cut [10:36:54]Write to MH i2c: D1 01 00 32 8B 01 8F [10:36:54]Write i2c OK [10:36:54]MH_I2C_Read... [10:36:54]Read from MH i2c: D1 [10:36:54]MH_I2C_Read... [10:36:54]Read from MH i2c: D1 01 00 [10:36:54]MH_I2C_Read... [10:36:54]Read from MH i2c: D1 01 00 32 8B 00 8E [10:36:54]Write to MH i2c: 01 00 00 33 8B BE [10:36:54]Write i2c OK [10:36:54]MH_I2C_Read... [10:36:54]OFD Sender: No OFD packet to send [10:36:55]*** Cut start [10:36:55]*** Partial cut [10:36:55]*** CUTSNS_PIN = 1 [10:36:55]*** CUTSNS_PIN = 0 [10:36:55]*** Brake cut motor [10:36:55]Read from MH i2c: 01 [10:36:55]MH_I2C_Read... [10:36:55]*** Stop cut motor [10:36:55]*** Cut end [10:36:55]Read from MH i2c: 01 07 00 [10:36:55]MH_I2C_Read... [10:36:55]Read from MH i2c: 01 07 00 33 8B 00 00 00 00 00 FF 0F D3 [10:36:55]process_action close_receipt done [10:36:55]requested_data is exist [10:36:55]produce_requested_data [10:36:55]requested_item fm.sn is exist - process it [10:36:55]wFMCommunicate request_size=4 [10:36:55]MH_SAM_APDU [10:36:55]CAPDU: 80 11 00 00 [10:36:55]Write to MH i2c: E2 08 00 34 8B 80 11 00 00 00 00 00 00 39 [10:36:55]Write i2c OK [10:36:55]MH_I2C_Read... [10:36:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:55]Read from MH i2c: E2 [10:36:55]MH_I2C_Read... [10:36:55]Read from MH i2c: E2 17 00 [10:36:55]MH_I2C_Read... [10:36:55]Read from MH i2c: E2 17 00 34 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 88 [10:36:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:36:55]wFMCommunicate OK [10:36:55]requested_item fd.num is exist - process it [10:36:55]SAM_PROTO_GetFieldsCounters [10:36:55]wFMCommunicate request_size=4 [10:36:55]MH_SAM_APDU [10:36:55]CAPDU: 80 13 00 00 [10:36:55]Write to MH i2c: E2 08 00 35 8B 80 13 00 00 00 00 00 00 3C [10:36:55]Write i2c OK [10:36:55]MH_I2C_Read... [10:36:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:36:55]Read from MH i2c: E2 [10:36:55]MH_I2C_Read... [10:36:55]Read from MH i2c: E2 62 00 [10:36:55]MH_I2C_Read... [10:36:55]Read from MH i2c: E2 62 00 35 8B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 FE 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 71 [10:36:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 FE 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:36:56]wFMCommunicate OK [10:36:56]SAM_PROTO_GetFieldsCounters done [10:36:56]requested_item shift.num is exist - process it [10:36:56]requested_item shift.opened is exist - process it [10:36:56]req_shift_opened [10:36:56]FM_GetShiftState [10:36:56]SAM_PROTO_GetShiftState [10:36:56]wFMCommunicate request_size=4 [10:36:56]MH_SAM_APDU [10:36:56]CAPDU: 80 13 01 00 [10:36:56]Write to MH i2c: E2 08 00 36 8B 80 13 01 00 00 00 00 00 3E [10:36:56]Write i2c OK [10:36:56]MH_I2C_Read... [10:36:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:56]Read from MH i2c: E2 [10:36:56]MH_I2C_Read... [10:36:56]Read from MH i2c: E2 0E 00 [10:36:56]MH_I2C_Read... [10:36:56]Read from MH i2c: E2 0E 00 36 8B 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 EA [10:36:56]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [10:36:56]wFMCommunicate OK [10:36:56]SAM_PROTO_GetShiftState done [10:36:56]FM_GetShiftState done [10:36:56]req_shift_opened done [10:36:56]requested_item shift.open_date is exist - process it [10:36:56]req_shift_open_date [10:36:56]req_shift_open_date done [10:36:56]produce_requested_data done [10:36:56]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29182,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [10:36:56]process_action_free close_receipt [10:36:56]json_value_free [10:36:56]json_value_free done [10:36:56]process_json_proto returns [10:36:56]Send response to host [10:36:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29182,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [10:36:56]free response buf [10:36:56]execute_script done [10:36:56]execute_script returns [10:36:56]free content buf [10:36:56]Sock 9.Close socket [10:36:56]Sock 9.Thread stoped [10:36:59]OFD Sender: No OFD packet to send [10:37:04]OFD Sender: No OFD packet to send [10:37:09]OFD Sender: No OFD packet to send [10:37:14]OFD Sender: No OFD packet to send [10:37:19]OFD Sender: No OFD packet to send [10:37:24]OFD Sender: No OFD packet to send [10:37:29]OFD Sender: No OFD packet to send [10:37:34]OFD Sender: No OFD packet to send [10:37:39]OFD Sender: No OFD packet to send [10:37:44]OFD Sender: No OFD packet to send [10:37:49]OFD Sender: No OFD packet to send [10:37:54]OFD Sender: No OFD packet to send [10:37:59]OFD Sender: No OFD packet to send [10:38:04]OFD Sender: No OFD packet to send [10:38:09]OFD Sender: No OFD packet to send [10:38:14]OFD Sender: No OFD packet to send [10:38:19]OFD Sender: No OFD packet to send [10:38:24]OFD Sender: No OFD packet to send [10:38:29]OFD Sender: No OFD packet to send [10:38:34]OFD Sender: No OFD packet to send [10:38:39]OFD Sender: No OFD packet to send [10:38:44]OFD Sender: No OFD packet to send [10:38:49]OFD Sender: No OFD packet to send [10:38:54]OFD Sender: No OFD packet to send [10:38:56]accept exits with 7 [10:38:56]New connection [10:38:56]New thread 3066928484 created [10:38:56]Thread 3066785124 joined [10:38:56]Waiting for new connection... [10:38:56] Sock 7.Parse request [10:38:56]Sock 7.Check first char [10:38:56]Sock 7.First char is OK [10:38:56]request: POST /json_proto HTTP/1.0 [10:38:56]Method: POST [10:38:56]URL: /json_proto [10:38:56]Method is POST - this is cgi request [10:38:56]url: /json_proto [10:38:56]query_string will be loaded in cgi processing [10:38:56]execute_cgi json_proto POST (null) [10:38:56]execute_cgi path=json_proto method=POST [10:38:56]POST find Content-Length [10:38:56]Host: 172.17.33.3:8080 [10:38:56]Content-Length: 682 [10:38:56]Content-Type: application/json [10:38:56] [10:38:56]POST finish read [10:38:56]Found Content-Length = 682 [10:38:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347554", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.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" ] } } [10:38:56]execute_script... [10:38: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)347554", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.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" ] } } [10:38:56]POST & json_proto [10:38:56]process_json_proto [10:38:56]json parsed OK: [10:38:56]protocol is kg_v1.0 [10:38:56]action value=close_receipt [10:38:56]process_action close_receipt [10:38:56]cmd_close_receipt [10:38:56]MH_GetDate [10:38:56]Write to MH i2c: F0 00 00 37 8B B1 [10:38:56]Write i2c OK [10:38:56]MH_I2C_Read... [10:38:56]Read from MH i2c: F0 [10:38:56]MH_I2C_Read... [10:38:56]Read from MH i2c: F0 09 00 [10:38:56]MH_I2C_Read... [10:38:56]Read from MH i2c: F0 09 00 37 8B 00 4A B2 1B 66 23 5B 8F 65 A9 [10:38:56]GetLastDocTimeStamp 1713091021 [10:38:56]current date 1713091146 [10:38:56]FM_GetShiftState [10:38:56]SAM_PROTO_GetShiftState [10:38:56]wFMCommunicate request_size=4 [10:38:56]MH_SAM_APDU [10:38:56]CAPDU: 80 13 01 00 [10:38:56]Write to MH i2c: E2 08 00 38 8B 80 13 01 00 00 00 00 00 40 [10:38:56]Write i2c OK [10:38:56]MH_I2C_Read... [10:38:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:56]Read from MH i2c: E2 [10:38:56]MH_I2C_Read... [10:38:56]Read from MH i2c: E2 0E 00 [10:38:56]MH_I2C_Read... [10:38:56]Read from MH i2c: E2 0E 00 38 8B 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 EC [10:38:56]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [10:38:56]wFMCommunicate OK [10:38:56]SAM_PROTO_GetShiftState done [10:38:56]FM_GetShiftState done [10:38:56]opened in 1713053951 [10:38:56]opened+sec_in_day 1713140351 [10:38:56]quantity*price = 100050 [10:38:56]sum+1 = 100051 [10:38:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 93 14.04.2024 10:39 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29183 ФПД: 159117933060911 1/tax-web-control/client/api/v1/ticket?date=20240414T103906&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29183&fm=159117933060911&tin=02508201610067®Number=0000138879044617&sum=100000 [10:38:57]StoreToDocumentArchive [10:38:57]shift 116 fd 29183 [10:38:57]save to /storage/0116/doc_00029183 [10:38:57]save last doc name /storage/0116/doc_00029183 to /storage/kkm_last_doc_name [10:38:57]save OK [10:38:57]Clear old archive folders... [10:38:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:38:57]tlvbuf is 0121DBF0 [10:38:57]SAM_PROTO_ClearQueue [10:38:57]wFMCommunicate request_size=4 [10:38:57]MH_SAM_APDU [10:38:57]CAPDU: 80 09 00 00 [10:38:57]Write to MH i2c: E2 08 00 45 8B 80 09 00 00 00 00 00 00 42 [10:38:57]Write i2c OK [10:38:57]MH_I2C_Read... [10:38:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:38:57]Read from MH i2c: E2 [10:38:57]MH_I2C_Read... [10:38:57]Read from MH i2c: E2 03 00 [10:38:57]MH_I2C_Read... [10:38:57]Read from MH i2c: E2 03 00 45 8B 00 90 00 44 [10:38:57]RAPDU: 90 00 [10:38:57]wFMCommunicate OK [10:38:57]SAM_PROTO_ClearQueue done [10:38:57]KKMCreateOFDPacket [10:38:57]OFDProtocolAddRootSTLVToBuf [10:38:57]FM_MakeSignedData [10:38:57]FM_MakeSignedData [10:38:57]SAM_PROTO_SignData [10:38:57]wFMCommunicate request_size=4 [10:38:57]MH_SAM_APDU [10:38:57]CAPDU: 80 0D 01 02 [10:38:57]Write to MH i2c: E2 08 00 46 8B 80 0D 01 02 00 00 00 00 4A [10:38:57]Write i2c OK [10:38:57]MH_I2C_Read... [10:38:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:38:57]Read from MH i2c: E2 [10:38:57]MH_I2C_Read... [10:38:57]Read from MH i2c: E2 03 00 [10:38:57]MH_I2C_Read... [10:38:57]Read from MH i2c: E2 03 00 46 8B 00 90 00 45 [10:38:57]RAPDU: 90 00 [10:38:57]wFMCommunicate OK [10:38:57]wFMCommunicate request_size=255 [10:38:57]MH_SAM_APDU [10:38: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 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 5D 00 00 00 F4 03 04 00 4A B2 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FF 71 00 00 35 04 06 00 90 [10:38:57]Write to MH i2c: E2 02 01 47 8B 80 0D 02 02 FA 00 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 5D 00 00 00 F4 03 04 00 4A B2 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FF 71 00 00 35 04 06 00 90 00 00 17 [10:38:57]Write i2c OK [10:38:57]MH_I2C_Read... [10:38:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:58]Read from MH i2c: E2 [10:38:58]MH_I2C_Read... [10:38:58]Read from MH i2c: E2 03 00 [10:38:58]MH_I2C_Read... [10:38:58]Read from MH i2c: E2 03 00 47 8B 00 90 00 46 [10:38:58]RAPDU: 90 00 [10:38:58]wFMCommunicate OK [10:38:58]wFMCommunicate request_size=10 [10:38:58]MH_SAM_APDU [10:38:58]CAPDU: 80 0D 02 02 05 B7 87 E0 A3 2F [10:38:58]Write to MH i2c: E2 0D 00 48 8B 80 0D 02 02 05 00 B7 87 E0 A3 2F 00 00 47 [10:38:58]Write i2c OK [10:38:58]MH_I2C_Read... [10:38:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:58]Read from MH i2c: E2 [10:38:58]MH_I2C_Read... [10:38:58]Read from MH i2c: E2 03 00 [10:38:58]MH_I2C_Read... [10:38:58]Read from MH i2c: E2 03 00 48 8B 00 90 00 47 [10:38:58]RAPDU: 90 00 [10:38:58]wFMCommunicate OK [10:38:58]wFMCommunicate request_size=4 [10:38:58]MH_SAM_APDU [10:38:58]CAPDU: 80 0D 03 02 [10:38:58]Write to MH i2c: E2 08 00 49 8B 80 0D 03 02 00 00 00 00 4F [10:38:58]Write i2c OK [10:38:58]MH_I2C_Read... [10:38:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:38:58]Read from MH i2c: E2 [10:38:58]MH_I2C_Read... [10:38:58]Read from MH i2c: E2 0B 00 [10:38:58]MH_I2C_Read... [10:38:58]Read from MH i2c: E2 0B 00 49 8B 00 8B 2D A3 36 04 9A 19 79 90 00 11 [10:38:58]RAPDU: 8B 2D A3 36 04 9A 19 79 90 00 [10:38:58]wFMCommunicate OK [10:38:58]SAM_PROTO_SignData done [10:38:58]FM_MakeSignedData done [10:38:58]CreateOFDProtocolMessage [10:38:58]wFMCommunicate request_size=4 [10:38:58]MH_SAM_APDU [10:38:58]CAPDU: 80 11 00 00 [10:38:58]Write to MH i2c: E2 08 00 4A 8B 80 11 00 00 00 00 00 00 4F [10:38:58]Write i2c OK [10:38:58]MH_I2C_Read... [10:38:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:58]Read from MH i2c: E2 [10:38:58]MH_I2C_Read... [10:38:58]Read from MH i2c: E2 17 00 [10:38:58]MH_I2C_Read... [10:38:58]Read from MH i2c: E2 17 00 4A 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 9E [10:38:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:38:58]wFMCommunicate OK [10:38:58]CreateOFDProtocolMessage done [10:38:58]OFDSenderStorePacket 29183 [10:38:58]StoreOFDPacket docnum=29183 [10:38:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 DD 4E 07 01 BD 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 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 5D 00 00 00 F4 03 04 00 4A B2 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FF 71 00 00 35 04 06 00 90 B7 87 E0 A3 2F 8B 2D A3 36 04 9A 19 79 [10:38:58]CheckFolder [10:38:58]dirname=/storage/ofd_packets [10:38:58]CheckFolder done [10:38:58]ProducePacketName [10:38:58]name=ofd_packets/00029183 [10:38:58]NVStorageSaveData ofd_packets/00029183 [10:38:58]File name is /storage/ofd_packets/00029183 [10:38:58]Write 301 bytes [10:38:58]NVStorageSaveData done [10:38:58]OFDSenderStorePacket done [10:38:58]KKMCreateOFDPacket done [10:38:58]NVStorageSaveData kkm_last_timestamp [10:38:58]File name is /storage/kkm_last_timestamp [10:38:58]Write 4 bytes [10:38:58]NVStorageSaveData done [10:38:58]ExternCall_PrintAddStr [10:38:58]wPrintStart [10:38:58]Write to MH i2c: 01 00 00 4B 8B D6 [10:38:58]Write i2c OK [10:38:58]MH_I2C_Read... [10:38:58]Read from MH i2c: 01 [10:38:58]MH_I2C_Read... [10:38:58]Read from MH i2c: 01 07 00 [10:38:58]MH_I2C_Read... [10:38:58]Read from MH i2c: 01 07 00 4B 8B 00 00 00 00 00 FF 0F EB [10:38:58]RasterBufferAndPrint [10:38:58]line Счет N : (1)347554 [10:38:58]line ИНН: 02508201610067 [10:38:58]line Контрольно-Кассовый Чек [10:38:58]line ПРОДАЖА [10:38:58]line ТРК (МРК, ГНК) : 33 [10:38:58]line Товар: 2710124500 [10:38:58]line Аи-95-К-5 [10:38:58]line 13.800 * 72.50 [10:38:58]line = 1000.50 [10:38:58]line НДС 12% НСП 1% [10:38:58]line > о реализуемом товаре [10:38:58]line ОКРУГЛЕНИЕ: -0.50 [10:38:58]line ИТОГО: 1000.00 [10:38:58]line Внесено: 1000.00 [10:38:58]line СДАЧА: 0.00 [10:38:58]line НСП 1% : 8.85 [10:38:58]line НДС 12% : 106.25 [10:38:58]line Наличными: 1000.00 [10:38:58]line Безнал.: 0.00 [10:38:58]line Место: АЗС № 108 "Партнер Нефть" [10:38:58]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:38:58]line СНО: Общий режим [10:38:58]line Чек 93 14.04.2024 10:39 [10:38:58]line Смена: 116 ФФД: 1.0 [10:38:58]line ЗНМ: 0300000027 [10:38:58]line РНМ: 0000138879044617 [10:38:58]line Версия ККМ: 001 [10:38:58]line ФМ: 0000000000963154 [10:38:58]line ФД: 29183 [10:38:58]line ФПД: 159117933060911 [10:38:58]line 1/tax-web-control/client/api/v1/ticket?date=20240414T103906&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29183&fm=159117933060911&tin=02508201610067®Number=0000138879044617&sum=100000 [10:38:58]OFD Sender: Processing packet 29183 [packets to send 8, broken 7] [10:38:58]ProducePacketName [10:38:58]name=ofd_packets/00029183 [10:38:58]OFD Sender: To server: pG, [10:38:58]CommunicateWithHost lk.salyk.kg:30040 [10:38:58]ConnectInit lk.salyk.kg [10:38:58]written 0, free lines is 4095 [10:38:58]Connected sock=10 [10:38:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 DD 4E 07 01 BD 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 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 5D 00 00 00 F4 03 04 00 4A B2 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FF 71 00 00 35 04 06 00 90 B7 87 E0 A3 2F 8B 2D A3 36 04 9A 19 79 [10:38:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 1E 84 47 00 D2 F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FF 71 00 00 F4 03 04 00 EE 5C 1B 66 B6 04 01 00 00 19 67 87 6A EE E8 71 5C [10:38:58]CommunicateWithHost err = 0 [10:38:58]CheckOFDResponse [10:38:58]1017 (14) - 77093643461234 [10:38:58]1041 (16) - 0000000000963154 [10:38:58]1040 (4) - 29183 [10:38:58]1012 (4) - 14.04.2024 04:34 [10:38:58]1206 (1) - 0 [10:38:58]OFD Sender: Remove packet 29183 [10:38:58]ProducePacketName [10:38:58]name=ofd_packets/00029183 [10:38:58]NVStorageDeleteData [10:38:59]Write to MH i2c: 01 00 00 75 8B 00 [10:38:59]Write i2c OK [10:38:59]MH_I2C_Read... [10:38:59]Read from MH i2c: 01 [10:38:59]MH_I2C_Read... [10:38:59]Read from MH i2c: 01 07 00 [10:38:59]MH_I2C_Read... [10:38:59]Read from MH i2c: 01 07 00 75 8B 00 00 00 00 00 E6 0C F9 [10:38:59]RasterBufferAndPrint [10:38:59]line [10:38:59]line [10:38:59]line [10:38:59]line [10:38:59]line [10:38:59]written 0, free lines is 3308 [10:38:59]MH_Cut [10:38:59]Write to MH i2c: D1 01 00 7C 8B 01 D9 [10:38:59]Write i2c OK [10:38:59]MH_I2C_Read... [10:38:59]Read from MH i2c: D1 [10:38:59]MH_I2C_Read... [10:38:59]Read from MH i2c: D1 01 00 [10:38:59]MH_I2C_Read... [10:38:59]Read from MH i2c: D1 01 00 7C 8B 00 D8 [10:38:59]Write to MH i2c: 01 00 00 7D 8B 08 [10:38:59]Write i2c OK [10:38:59]MH_I2C_Read... [10:38:59]OFD Sender: No OFD packet to send [10:38:59]*** Cut start [10:38:59]*** Partial cut [10:38:59]*** CUTSNS_PIN = 1 [10:38:59]*** CUTSNS_PIN = 0 [10:39:00]*** Brake cut motor [10:39:00]Read from MH i2c: 01 [10:39:00]MH_I2C_Read... [10:39:00]*** Stop cut motor [10:39:00]*** Cut end [10:39:00]Read from MH i2c: 01 07 00 [10:39:00]MH_I2C_Read... [10:39:00]Read from MH i2c: 01 07 00 7D 8B 00 00 00 00 00 FF 0F 1D [10:39:00]process_action close_receipt done [10:39:00]requested_data is exist [10:39:00]produce_requested_data [10:39:00]requested_item fm.sn is exist - process it [10:39:00]wFMCommunicate request_size=4 [10:39:00]MH_SAM_APDU [10:39:00]CAPDU: 80 11 00 00 [10:39:00]Write to MH i2c: E2 08 00 7E 8B 80 11 00 00 00 00 00 00 83 [10:39:00]Write i2c OK [10:39:00]MH_I2C_Read... [10:39:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:39:00]Read from MH i2c: E2 [10:39:00]MH_I2C_Read... [10:39:00]Read from MH i2c: E2 17 00 [10:39:00]MH_I2C_Read... [10:39:00]Read from MH i2c: E2 17 00 7E 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D2 [10:39:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:39:00]wFMCommunicate OK [10:39:00]requested_item fd.num is exist - process it [10:39:00]SAM_PROTO_GetFieldsCounters [10:39:00]wFMCommunicate request_size=4 [10:39:00]MH_SAM_APDU [10:39:00]CAPDU: 80 13 00 00 [10:39:00]Write to MH i2c: E2 08 00 7F 8B 80 13 00 00 00 00 00 00 86 [10:39:00]Write i2c OK [10:39:00]MH_I2C_Read... [10:39:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:39:00]Read from MH i2c: E2 [10:39:00]MH_I2C_Read... [10:39:00]Read from MH i2c: E2 62 00 [10:39:00]MH_I2C_Read... [10:39:00]Read from MH i2c: E2 62 00 7F 8B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 FF 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 BF [10:39:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 FF 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:39:00]wFMCommunicate OK [10:39:00]SAM_PROTO_GetFieldsCounters done [10:39:00]requested_item shift.num is exist - process it [10:39:00]requested_item shift.opened is exist - process it [10:39:00]req_shift_opened [10:39:00]FM_GetShiftState [10:39:00]SAM_PROTO_GetShiftState [10:39:00]wFMCommunicate request_size=4 [10:39:00]MH_SAM_APDU [10:39:00]CAPDU: 80 13 01 00 [10:39:00]Write to MH i2c: E2 08 00 80 8B 80 13 01 00 00 00 00 00 88 [10:39:00]Write i2c OK [10:39:00]MH_I2C_Read... [10:39:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:39:00]Read from MH i2c: E2 [10:39:00]MH_I2C_Read... [10:39:00]Read from MH i2c: E2 0E 00 [10:39:00]MH_I2C_Read... [10:39:00]Read from MH i2c: E2 0E 00 80 8B 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 34 [10:39:00]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [10:39:00]wFMCommunicate OK [10:39:00]SAM_PROTO_GetShiftState done [10:39:00]FM_GetShiftState done [10:39:00]req_shift_opened done [10:39:00]requested_item shift.open_date is exist - process it [10:39:00]req_shift_open_date [10:39:00]req_shift_open_date done [10:39:00]produce_requested_data done [10:39:00]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29183,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [10:39:00]process_action_free close_receipt [10:39:00]json_value_free [10:39:00]json_value_free done [10:39:00]process_json_proto returns [10:39:00]Send response to host [10:39:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29183,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [10:39:00]free response buf [10:39:00]execute_script done [10:39:00]execute_script returns [10:39:00]free content buf [10:39:00]Sock 7.Close socket [10:39:00]Sock 7.Thread stoped [10:39:04]OFD Sender: No OFD packet to send [10:39:09]OFD Sender: No OFD packet to send [10:39:14]OFD Sender: No OFD packet to send [10:39:19]OFD Sender: No OFD packet to send [10:39:24]OFD Sender: No OFD packet to send [10:39:29]OFD Sender: No OFD packet to send [10:39:34]OFD Sender: No OFD packet to send [10:39:39]OFD Sender: No OFD packet to send [10:39:44]OFD Sender: No OFD packet to send [10:39:49]OFD Sender: No OFD packet to send [10:39:53]accept exits with 9 [10:39:53]New connection [10:39:53]New thread 3066785124 created [10:39:53]Thread 3066928484 joined [10:39:53]Waiting for new connection... [10:39:53] Sock 9.Parse request [10:39:53]Sock 9.Check first char [10:39:53]Sock 9.First char is OK [10:39:53]request: POST /json_proto HTTP/1.0 [10:39:53]Method: POST [10:39:53]URL: /json_proto [10:39:53]Method is POST - this is cgi request [10:39:53]url: /json_proto [10:39:53]query_string will be loaded in cgi processing [10:39:53]execute_cgi json_proto POST (null) [10:39:53]execute_cgi path=json_proto method=POST [10:39:53]POST find Content-Length [10:39:53]Host: 172.17.33.3:8080 [10:39:53]Content-Length: 677 [10:39:53]Content-Type: application/json [10:39:53] [10:39:53]POST finish read [10:39:53]Found Content-Length = 677 [10:39:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347555", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.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:39:53]execute_script... [10:39:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347555", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.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:39:53]POST & json_proto [10:39:53]process_json_proto [10:39:53]json parsed OK: [10:39:53]protocol is kg_v1.0 [10:39:53]action value=close_receipt [10:39:53]process_action close_receipt [10:39:53]cmd_close_receipt [10:39:53]MH_GetDate [10:39:53]Write to MH i2c: F0 00 00 81 8B FB [10:39:53]Write i2c OK [10:39:53]MH_I2C_Read... [10:39:53]Read from MH i2c: F0 [10:39:53]MH_I2C_Read... [10:39:53]Read from MH i2c: F0 09 00 [10:39:53]MH_I2C_Read... [10:39:53]Read from MH i2c: F0 09 00 81 8B 00 82 B2 1B 66 23 5B 8F 65 2B [10:39:53]GetLastDocTimeStamp 1713091146 [10:39:53]current date 1713091202 [10:39:53]FM_GetShiftState [10:39:53]SAM_PROTO_GetShiftState [10:39:53]wFMCommunicate request_size=4 [10:39:53]MH_SAM_APDU [10:39:53]CAPDU: 80 13 01 00 [10:39:53]Write to MH i2c: E2 08 00 82 8B 80 13 01 00 00 00 00 00 8A [10:39:53]Write i2c OK [10:39:53]MH_I2C_Read... [10:39:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:39:53]Read from MH i2c: E2 [10:39:53]MH_I2C_Read... [10:39:53]Read from MH i2c: E2 0E 00 [10:39:53]MH_I2C_Read... [10:39:53]Read from MH i2c: E2 0E 00 82 8B 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 36 [10:39:53]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [10:39:53]wFMCommunicate OK [10:39:53]SAM_PROTO_GetShiftState done [10:39:53]FM_GetShiftState done [10:39:53]opened in 1713053951 [10:39:53]opened+sec_in_day 1713140351 [10:39:53]quantity*price = 60056 [10:39:53]sum+1 = 60057 [10:39: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 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 94 14.04.2024 10:40 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29184 ФПД: 100883784455449 1/tax-web-control/client/api/v1/ticket?date=20240414T104002&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29184&fm=100883784455449&tin=02508201610067®Number=0000138879044617&sum=60000 [10:39:54]StoreToDocumentArchive [10:39:54]shift 116 fd 29184 [10:39:54]save to /storage/0116/doc_00029184 [10:39:54]save last doc name /storage/0116/doc_00029184 to /storage/kkm_last_doc_name [10:39:54]save OK [10:39:54]Clear old archive folders... [10:39:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:39:54]tlvbuf is 011D4FE0 [10:39:54]SAM_PROTO_ClearQueue [10:39:54]wFMCommunicate request_size=4 [10:39:54]MH_SAM_APDU [10:39:54]CAPDU: 80 09 00 00 [10:39:54]Write to MH i2c: E2 08 00 8F 8B 80 09 00 00 00 00 00 00 8C [10:39:54]Write i2c OK [10:39:54]MH_I2C_Read... [10:39:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:39:54]Read from MH i2c: E2 [10:39:54]MH_I2C_Read... [10:39:54]Read from MH i2c: E2 03 00 [10:39:54]MH_I2C_Read... [10:39:54]Read from MH i2c: E2 03 00 8F 8B 00 90 00 8E [10:39:54]RAPDU: 90 00 [10:39:54]wFMCommunicate OK [10:39:54]SAM_PROTO_ClearQueue done [10:39:54]KKMCreateOFDPacket [10:39:54]OFDProtocolAddRootSTLVToBuf [10:39:54]FM_MakeSignedData [10:39:54]FM_MakeSignedData [10:39:54]SAM_PROTO_SignData [10:39:54]wFMCommunicate request_size=4 [10:39:54]MH_SAM_APDU [10:39:54]CAPDU: 80 0D 01 02 [10:39:54]Write to MH i2c: E2 08 00 90 8B 80 0D 01 02 00 00 00 00 94 [10:39:54]Write i2c OK [10:39:54]MH_I2C_Read... [10:39:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:39:54]Read from MH i2c: E2 [10:39:54]MH_I2C_Read... [10:39:54]Read from MH i2c: E2 03 00 [10:39:54]MH_I2C_Read... [10:39:54]Read from MH i2c: E2 03 00 90 8B 00 90 00 8F [10:39:54]RAPDU: 90 00 [10:39:54]wFMCommunicate OK [10:39:54]wFMCommunicate request_size=255 [10:39:54]MH_SAM_APDU [10:39: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 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 5E 00 00 00 F4 03 04 00 82 B2 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 00 72 00 00 35 04 06 00 5B [10:39:54]Write to MH i2c: E2 02 01 91 8B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 5E 00 00 00 F4 03 04 00 82 B2 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 00 72 00 00 35 04 06 00 5B 00 00 13 [10:39:54]Write i2c OK [10:39:54]MH_I2C_Read... [10:39:54]OFD Sender: No OFD packet to send [10:39:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:39:54]Read from MH i2c: E2 [10:39:54]MH_I2C_Read... [10:39:54]Read from MH i2c: E2 03 00 [10:39:54]MH_I2C_Read... [10:39:54]Read from MH i2c: E2 03 00 91 8B 00 90 00 90 [10:39:54]RAPDU: 90 00 [10:39:54]wFMCommunicate OK [10:39:54]wFMCommunicate request_size=10 [10:39:54]MH_SAM_APDU [10:39:54]CAPDU: 80 0D 02 02 05 C0 D6 22 D5 19 [10:39:54]Write to MH i2c: E2 0D 00 92 8B 80 0D 02 02 05 00 C0 D6 22 D5 19 00 00 47 [10:39:54]Write i2c OK [10:39:54]MH_I2C_Read... [10:39:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:39:54]Read from MH i2c: E2 [10:39:54]MH_I2C_Read... [10:39:54]Read from MH i2c: E2 03 00 [10:39:54]MH_I2C_Read... [10:39:54]Read from MH i2c: E2 03 00 92 8B 00 90 00 91 [10:39:54]RAPDU: 90 00 [10:39:54]wFMCommunicate OK [10:39:54]wFMCommunicate request_size=4 [10:39:54]MH_SAM_APDU [10:39:54]CAPDU: 80 0D 03 02 [10:39:54]Write to MH i2c: E2 08 00 93 8B 80 0D 03 02 00 00 00 00 99 [10:39:54]Write i2c OK [10:39:54]MH_I2C_Read... [10:39:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:39:54]Read from MH i2c: E2 [10:39:54]MH_I2C_Read... [10:39:54]Read from MH i2c: E2 0B 00 [10:39:54]MH_I2C_Read... [10:39:54]Read from MH i2c: E2 0B 00 93 8B 00 FB 6E 93 96 06 01 5B 1B 90 00 A9 [10:39:54]RAPDU: FB 6E 93 96 06 01 5B 1B 90 00 [10:39:54]wFMCommunicate OK [10:39:54]SAM_PROTO_SignData done [10:39:54]FM_MakeSignedData done [10:39:54]CreateOFDProtocolMessage [10:39:54]wFMCommunicate request_size=4 [10:39:54]MH_SAM_APDU [10:39:54]CAPDU: 80 11 00 00 [10:39:54]Write to MH i2c: E2 08 00 94 8B 80 11 00 00 00 00 00 00 99 [10:39:54]Write i2c OK [10:39:54]MH_I2C_Read... [10:39:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:39:54]Read from MH i2c: E2 [10:39:54]MH_I2C_Read... [10:39:54]Read from MH i2c: E2 17 00 [10:39:54]MH_I2C_Read... [10:39:54]Read from MH i2c: E2 17 00 94 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E8 [10:39:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:39:54]wFMCommunicate OK [10:39:54]CreateOFDProtocolMessage done [10:39:54]OFDSenderStorePacket 29184 [10:39:54]StoreOFDPacket docnum=29184 [10:39:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 8E 78 07 01 E7 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 5E 00 00 00 F4 03 04 00 82 B2 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 00 72 00 00 35 04 06 00 5B C0 D6 22 D5 19 FB 6E 93 96 06 01 5B 1B [10:39:54]CheckFolder [10:39:54]dirname=/storage/ofd_packets [10:39:54]CheckFolder done [10:39:54]ProducePacketName [10:39:54]name=ofd_packets/00029184 [10:39:54]NVStorageSaveData ofd_packets/00029184 [10:39:54]File name is /storage/ofd_packets/00029184 [10:39:54]Write 301 bytes [10:39:54]NVStorageSaveData done [10:39:54]OFDSenderStorePacket done [10:39:54]KKMCreateOFDPacket done [10:39:54]NVStorageSaveData kkm_last_timestamp [10:39:54]File name is /storage/kkm_last_timestamp [10:39:54]Write 4 bytes [10:39:54]NVStorageSaveData done [10:39:54]ExternCall_PrintAddStr [10:39:54]wPrintStart [10:39:54]Write to MH i2c: 01 00 00 95 8B 20 [10:39:54]Write i2c OK [10:39:54]MH_I2C_Read... [10:39:54]Read from MH i2c: 01 [10:39:54]MH_I2C_Read... [10:39:54]Read from MH i2c: 01 07 00 [10:39:54]MH_I2C_Read... [10:39:54]Read from MH i2c: 01 07 00 95 8B 00 00 00 00 00 FF 0F 35 [10:39:54]RasterBufferAndPrint [10:39:54]line Счет N : (1)347555 [10:39:54]line ИНН: 02508201610067 [10:39:54]line Контрольно-Кассовый Чек [10:39:54]line ПРОДАЖА [10:39:54]line ТРК (МРК, ГНК) : 13 [10:39:54]line Товар: 2710124130 [10:39:54]line Аи-92-К-5 [10:39:54]line 9.340 * 64.30 [10:39:54]line = 600.56 [10:39:54]line НДС 12% НСП 1% [10:39:54]line > о реализуемом товаре [10:39:54]line ОКРУГЛЕНИЕ: -0.56 [10:39:54]line ИТОГО: 600.00 [10:39:54]line Внесено: 600.00 [10:39:54]line СДАЧА: 0.00 [10:39:54]line НСП 1% : 5.31 [10:39:54]line НДС 12% : 63.78 [10:39:54]line Наличными: 600.00 [10:39:54]line Безнал.: 0.00 [10:39:54]line Место: АЗС № 108 "Партнер Нефть" [10:39:54]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:39:54]line СНО: Общий режим [10:39:54]line Чек 94 14.04.2024 10:40 [10:39:54]line Смена: 116 ФФД: 1.0 [10:39:54]line ЗНМ: 0300000027 [10:39:54]line РНМ: 0000138879044617 [10:39:54]line Версия ККМ: 001 [10:39:54]line ФМ: 0000000000963154 [10:39:54]line ФД: 29184 [10:39:54]line ФПД: 100883784455449 [10:39:55]line 1/tax-web-control/client/api/v1/ticket?date=20240414T104002&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29184&fm=100883784455449&tin=02508201610067®Number=0000138879044617&sum=60000 [10:39:55]OFD Sender: Processing packet 29184 [packets to send 8, broken 7] [10:39:55]ProducePacketName [10:39:55]name=ofd_packets/00029184 [10:39:55]OFD Sender: To server: pG, [10:39:55]CommunicateWithHost lk.salyk.kg:30040 [10:39:55]ConnectInit lk.salyk.kg [10:39:55]written 0, free lines is 4095 [10:39:55]Connected sock=10 [10:39:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 8E 78 07 01 E7 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 5E 00 00 00 F4 03 04 00 82 B2 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 00 72 00 00 35 04 06 00 5B C0 D6 22 D5 19 FB 6E 93 96 06 01 5B 1B [10:39:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 0B 79 47 00 38 28 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 00 72 00 00 F4 03 04 00 27 5D 1B 66 B6 04 01 00 00 EB E7 E9 73 8C 62 F8 BA [10:39:55]CommunicateWithHost err = 0 [10:39:55]CheckOFDResponse [10:39:55]1017 (14) - 77093643461234 [10:39:55]1041 (16) - 0000000000963154 [10:39:55]1040 (4) - 29184 [10:39:55]1012 (4) - 14.04.2024 04:35 [10:39:55]1206 (1) - 0 [10:39:55]OFD Sender: Remove packet 29184 [10:39:55]ProducePacketName [10:39:55]name=ofd_packets/00029184 [10:39:55]NVStorageDeleteData [10:39:55]Write to MH i2c: 01 00 00 BF 8B 4A [10:39:55]Write i2c OK [10:39:55]MH_I2C_Read... [10:39:55]Read from MH i2c: 01 [10:39:55]MH_I2C_Read... [10:39:55]Read from MH i2c: 01 07 00 [10:39:55]MH_I2C_Read... [10:39:55]Read from MH i2c: 01 07 00 BF 8B 00 00 00 00 00 D8 0C 35 [10:39:55]RasterBufferAndPrint [10:39:55]line [10:39:55]line [10:39:55]line [10:39:55]line [10:39:55]line [10:39:55]written 0, free lines is 3296 [10:39:55]MH_Cut [10:39:55]Write to MH i2c: D1 01 00 C6 8B 01 23 [10:39:55]Write i2c OK [10:39:55]MH_I2C_Read... [10:39:55]Read from MH i2c: D1 [10:39:55]MH_I2C_Read... [10:39:55]Read from MH i2c: D1 01 00 [10:39:55]MH_I2C_Read... [10:39:55]Read from MH i2c: D1 01 00 C6 8B 00 22 [10:39:55]Write to MH i2c: 01 00 00 C7 8B 52 [10:39:55]Write i2c OK [10:39:55]MH_I2C_Read... [10:39:55]OFD Sender: No OFD packet to send [10:39:56]*** Cut start [10:39:56]*** Partial cut [10:39:56]*** CUTSNS_PIN = 1 [10:39:56]*** CUTSNS_PIN = 0 [10:39:56]*** Brake cut motor [10:39:57]Read from MH i2c: 01 [10:39:57]MH_I2C_Read... [10:39:57]*** Stop cut motor [10:39:57]*** Cut end [10:39:57]Read from MH i2c: 01 07 00 [10:39:57]MH_I2C_Read... [10:39:57]Read from MH i2c: 01 07 00 C7 8B 00 00 00 00 00 FF 0F 67 [10:39:57]process_action close_receipt done [10:39:57]requested_data is exist [10:39:57]produce_requested_data [10:39:57]requested_item fm.sn is exist - process it [10:39:57]wFMCommunicate request_size=4 [10:39:57]MH_SAM_APDU [10:39:57]CAPDU: 80 11 00 00 [10:39:57]Write to MH i2c: E2 08 00 C8 8B 80 11 00 00 00 00 00 00 CD [10:39:57]Write i2c OK [10:39:57]MH_I2C_Read... [10:39:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:39:57]Read from MH i2c: E2 [10:39:57]MH_I2C_Read... [10:39:57]Read from MH i2c: E2 17 00 [10:39:57]MH_I2C_Read... [10:39:57]Read from MH i2c: E2 17 00 C8 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 1C [10:39:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:39:57]wFMCommunicate OK [10:39:57]requested_item fd.num is exist - process it [10:39:57]SAM_PROTO_GetFieldsCounters [10:39:57]wFMCommunicate request_size=4 [10:39:57]MH_SAM_APDU [10:39:57]CAPDU: 80 13 00 00 [10:39:57]Write to MH i2c: E2 08 00 C9 8B 80 13 00 00 00 00 00 00 D0 [10:39:57]Write i2c OK [10:39:57]MH_I2C_Read... [10:39:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:39:57]Read from MH i2c: E2 [10:39:57]MH_I2C_Read... [10:39:57]Read from MH i2c: E2 62 00 [10:39:57]MH_I2C_Read... [10:39:57]Read from MH i2c: E2 62 00 C9 8B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 00 72 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 0E [10:39:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 00 72 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:39:57]wFMCommunicate OK [10:39:57]SAM_PROTO_GetFieldsCounters done [10:39:57]requested_item shift.num is exist - process it [10:39:57]requested_item shift.opened is exist - process it [10:39:57]req_shift_opened [10:39:57]FM_GetShiftState [10:39:57]SAM_PROTO_GetShiftState [10:39:57]wFMCommunicate request_size=4 [10:39:57]MH_SAM_APDU [10:39:57]CAPDU: 80 13 01 00 [10:39:57]Write to MH i2c: E2 08 00 CA 8B 80 13 01 00 00 00 00 00 D2 [10:39:57]Write i2c OK [10:39:57]MH_I2C_Read... [10:39:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:39:57]Read from MH i2c: E2 [10:39:57]MH_I2C_Read... [10:39:57]Read from MH i2c: E2 0E 00 [10:39:57]MH_I2C_Read... [10:39:57]Read from MH i2c: E2 0E 00 CA 8B 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 7E [10:39:57]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [10:39:57]wFMCommunicate OK [10:39:57]SAM_PROTO_GetShiftState done [10:39:57]FM_GetShiftState done [10:39:57]req_shift_opened done [10:39:57]requested_item shift.open_date is exist - process it [10:39:57]req_shift_open_date [10:39:57]req_shift_open_date done [10:39:57]produce_requested_data done [10:39:57]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29184,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [10:39:57]process_action_free close_receipt [10:39:57]json_value_free [10:39:57]json_value_free done [10:39:57]process_json_proto returns [10:39:57]Send response to host [10:39:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29184,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [10:39:57]free response buf [10:39:57]execute_script done [10:39:57]execute_script returns [10:39:57]free content buf [10:39:57]Sock 9.Close socket [10:39:57]Sock 9.Thread stoped [10:40:00]OFD Sender: No OFD packet to send [10:40:05]OFD Sender: No OFD packet to send [10:40:10]OFD Sender: No OFD packet to send [10:40:15]OFD Sender: No OFD packet to send [10:40:20]OFD Sender: No OFD packet to send [10:40:25]OFD Sender: No OFD packet to send [10:40:30]OFD Sender: No OFD packet to send [10:40:36]OFD Sender: No OFD packet to send [10:40:41]OFD Sender: No OFD packet to send [10:40:46]OFD Sender: No OFD packet to send [10:40:51]OFD Sender: No OFD packet to send [10:40:56]OFD Sender: No OFD packet to send [10:41:01]OFD Sender: No OFD packet to send [10:41:06]OFD Sender: No OFD packet to send [10:41:11]OFD Sender: No OFD packet to send [10:41:16]OFD Sender: No OFD packet to send [10:41:21]OFD Sender: No OFD packet to send [10:41:26]OFD Sender: No OFD packet to send [10:41:31]OFD Sender: No OFD packet to send [10:41:36]OFD Sender: No OFD packet to send [10:41:41]OFD Sender: No OFD packet to send [10:41:46]OFD Sender: No OFD packet to send [10:41:51]OFD Sender: No OFD packet to send [10:41:56]OFD Sender: No OFD packet to send [10:42:01]OFD Sender: No OFD packet to send [10:42:06]OFD Sender: No OFD packet to send [10:42:11]OFD Sender: No OFD packet to send [10:42:16]OFD Sender: No OFD packet to send [10:42:21]OFD Sender: No OFD packet to send [10:42:26]OFD Sender: No OFD packet to send [10:42:31]OFD Sender: No OFD packet to send [10:42:36]OFD Sender: No OFD packet to send [10:42:41]OFD Sender: No OFD packet to send [10:42:46]OFD Sender: No OFD packet to send [10:42:51]OFD Sender: No OFD packet to send [10:42:56]OFD Sender: No OFD packet to send [10:43:01]OFD Sender: No OFD packet to send [10:43:06]OFD Sender: No OFD packet to send [10:43:06]accept exits with 7 [10:43:06]New connection [10:43:06]New thread 3066928484 created [10:43:06]Thread 3066785124 joined [10:43:06]Waiting for new connection... [10:43:06] Sock 7.Parse request [10:43:06]Sock 7.Check first char [10:43:06]Sock 7.First char is OK [10:43:06]request: POST /json_proto HTTP/1.0 [10:43:06]Method: POST [10:43:06]URL: /json_proto [10:43:06]Method is POST - this is cgi request [10:43:06]url: /json_proto [10:43:06]query_string will be loaded in cgi processing [10:43:06]execute_cgi json_proto POST (null) [10:43:06]execute_cgi path=json_proto method=POST [10:43:06]POST find Content-Length [10:43:06]Host: 172.17.33.3:8080 [10:43:06]Content-Length: 808 [10:43:06]Content-Type: application/json [10:43:06] [10:43:06]POST finish read [10:43:06]Found Content-Length = 808 [10:43:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347556", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:43:06]execute_script... [10:43: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)347556", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:43:06]POST & json_proto [10:43:06]process_json_proto [10:43:06]json parsed OK: [10:43:06]protocol is kg_v1.0 [10:43:06]action value=close_receipt [10:43:06]process_action close_receipt [10:43:06]cmd_close_receipt [10:43:06]MH_GetDate [10:43:06]Write to MH i2c: F0 00 00 CB 8B 45 [10:43:06]Write i2c OK [10:43:06]MH_I2C_Read... [10:43:06]Read from MH i2c: F0 [10:43:06]MH_I2C_Read... [10:43:06]Read from MH i2c: F0 09 00 [10:43:06]MH_I2C_Read... [10:43:06]Read from MH i2c: F0 09 00 CB 8B 00 43 B3 1B 66 23 5B 8F 65 37 [10:43:06]GetLastDocTimeStamp 1713091202 [10:43:06]current date 1713091395 [10:43:06]FM_GetShiftState [10:43:06]SAM_PROTO_GetShiftState [10:43:06]wFMCommunicate request_size=4 [10:43:06]MH_SAM_APDU [10:43:06]CAPDU: 80 13 01 00 [10:43:06]Write to MH i2c: E2 08 00 CC 8B 80 13 01 00 00 00 00 00 D4 [10:43:06]Write i2c OK [10:43:06]MH_I2C_Read... [10:43:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:43:06]Read from MH i2c: E2 [10:43:06]MH_I2C_Read... [10:43:06]Read from MH i2c: E2 0E 00 [10:43:06]MH_I2C_Read... [10:43:06]Read from MH i2c: E2 0E 00 CC 8B 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 80 [10:43:06]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [10:43:06]wFMCommunicate OK [10:43:06]SAM_PROTO_GetShiftState done [10:43:06]FM_GetShiftState done [10:43:06]opened in 1713053951 [10:43:06]opened+sec_in_day 1713140351 [10:43:06]quantity*price = 100050 [10:43:06]sum+1 = 100052 [10:43:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 95 14.04.2024 10:43 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29185 ФПД: 9919312735341 1/tax-web-control/client/api/v1/ticket?date=20240414T104315&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29185&fm=9919312735341&tin=02508201610067®Number=0000138879044617&sum=100051 [10:43:07]StoreToDocumentArchive [10:43:07]shift 116 fd 29185 [10:43:07]save to /storage/0116/doc_00029185 [10:43:07]save last doc name /storage/0116/doc_00029185 to /storage/kkm_last_doc_name [10:43:07]save OK [10:43:07]Clear old archive folders... [10:43:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:43:07]tlvbuf is 0121A140 [10:43:07]SAM_PROTO_ClearQueue [10:43:07]wFMCommunicate request_size=4 [10:43:07]MH_SAM_APDU [10:43:07]CAPDU: 80 09 00 00 [10:43:07]Write to MH i2c: E2 08 00 D9 8B 80 09 00 00 00 00 00 00 D6 [10:43:07]Write i2c OK [10:43:07]MH_I2C_Read... [10:43:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:43:07]Read from MH i2c: E2 [10:43:07]MH_I2C_Read... [10:43:07]Read from MH i2c: E2 03 00 [10:43:07]MH_I2C_Read... [10:43:07]Read from MH i2c: E2 03 00 D9 8B 00 90 00 D8 [10:43:07]RAPDU: 90 00 [10:43:07]wFMCommunicate OK [10:43:07]SAM_PROTO_ClearQueue done [10:43:07]KKMCreateOFDPacket [10:43:07]OFDProtocolAddRootSTLVToBuf [10:43:07]FM_MakeSignedData [10:43:07]FM_MakeSignedData [10:43:07]SAM_PROTO_SignData [10:43:07]wFMCommunicate request_size=4 [10:43:07]MH_SAM_APDU [10:43:07]CAPDU: 80 0D 01 02 [10:43:07]Write to MH i2c: E2 08 00 DA 8B 80 0D 01 02 00 00 00 00 DE [10:43:07]Write i2c OK [10:43:07]MH_I2C_Read... [10:43:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:43:07]Read from MH i2c: E2 [10:43:07]MH_I2C_Read... [10:43:07]Read from MH i2c: E2 03 00 [10:43:07]MH_I2C_Read... [10:43:07]Read from MH i2c: E2 03 00 DA 8B 00 90 00 D9 [10:43:07]RAPDU: 90 00 [10:43:07]wFMCommunicate OK [10:43:07]wFMCommunicate request_size=255 [10:43:07]MH_SAM_APDU [10:43: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 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 5F 00 00 00 F4 03 04 00 43 B3 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 01 72 00 00 35 04 06 00 09 [10:43:07]Write to MH i2c: E2 02 01 DB 8B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 5F 00 00 00 F4 03 04 00 43 B3 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 01 72 00 00 35 04 06 00 09 00 00 36 [10:43:07]Write i2c OK [10:43:07]MH_I2C_Read... [10:43:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:43:07]Read from MH i2c: E2 [10:43:07]MH_I2C_Read... [10:43:07]Read from MH i2c: E2 03 00 [10:43:07]MH_I2C_Read... [10:43:07]Read from MH i2c: E2 03 00 DB 8B 00 90 00 DA [10:43:07]RAPDU: 90 00 [10:43:07]wFMCommunicate OK [10:43:07]wFMCommunicate request_size=10 [10:43:07]MH_SAM_APDU [10:43:07]CAPDU: 80 0D 02 02 05 05 85 1C AC 6D [10:43:07]Write to MH i2c: E2 0D 00 DC 8B 80 0D 02 02 05 00 05 85 1C AC 6D 00 00 AA [10:43:07]Write i2c OK [10:43:07]MH_I2C_Read... [10:43:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:43:07]Read from MH i2c: E2 [10:43:07]MH_I2C_Read... [10:43:07]Read from MH i2c: E2 03 00 [10:43:07]MH_I2C_Read... [10:43:07]Read from MH i2c: E2 03 00 DC 8B 00 90 00 DB [10:43:07]RAPDU: 90 00 [10:43:07]wFMCommunicate OK [10:43:07]wFMCommunicate request_size=4 [10:43:07]MH_SAM_APDU [10:43:07]CAPDU: 80 0D 03 02 [10:43:07]Write to MH i2c: E2 08 00 DD 8B 80 0D 03 02 00 00 00 00 E3 [10:43:07]Write i2c OK [10:43:07]MH_I2C_Read... [10:43:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:43:07]Read from MH i2c: E2 [10:43:07]MH_I2C_Read... [10:43:07]Read from MH i2c: E2 0B 00 [10:43:07]MH_I2C_Read... [10:43:07]Read from MH i2c: E2 0B 00 DD 8B 00 0A 45 7B 71 32 AE 6D 26 90 00 92 [10:43:07]RAPDU: 0A 45 7B 71 32 AE 6D 26 90 00 [10:43:07]wFMCommunicate OK [10:43:07]SAM_PROTO_SignData done [10:43:07]FM_MakeSignedData done [10:43:07]CreateOFDProtocolMessage [10:43:07]wFMCommunicate request_size=4 [10:43:07]MH_SAM_APDU [10:43:07]CAPDU: 80 11 00 00 [10:43:07]Write to MH i2c: E2 08 00 DE 8B 80 11 00 00 00 00 00 00 E3 [10:43:07]Write i2c OK [10:43:07]MH_I2C_Read... [10:43:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:43:07]Read from MH i2c: E2 [10:43:07]MH_I2C_Read... [10:43:07]Read from MH i2c: E2 17 00 [10:43:07]MH_I2C_Read... [10:43:07]Read from MH i2c: E2 17 00 DE 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 32 [10:43:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:43:07]wFMCommunicate OK [10:43:07]CreateOFDProtocolMessage done [10:43:07]OFDSenderStorePacket 29185 [10:43:07]StoreOFDPacket docnum=29185 [10:43:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 C4 AB 07 01 CE 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 5F 00 00 00 F4 03 04 00 43 B3 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 01 72 00 00 35 04 06 00 09 05 85 1C AC 6D 0A 45 7B 71 32 AE 6D 26 [10:43:07]CheckFolder [10:43:07]dirname=/storage/ofd_packets [10:43:07]CheckFolder done [10:43:07]ProducePacketName [10:43:07]name=ofd_packets/00029185 [10:43:07]NVStorageSaveData ofd_packets/00029185 [10:43:07]File name is /storage/ofd_packets/00029185 [10:43:07]Write 301 bytes [10:43:07]NVStorageSaveData done [10:43:07]OFDSenderStorePacket done [10:43:07]KKMCreateOFDPacket done [10:43:07]NVStorageSaveData kkm_last_timestamp [10:43:07]File name is /storage/kkm_last_timestamp [10:43:07]Write 4 bytes [10:43:07]NVStorageSaveData done [10:43:07]ExternCall_PrintAddStr [10:43:07]wPrintStart [10:43:07]Write to MH i2c: 01 00 00 DF 8B 6A [10:43:07]Write i2c OK [10:43:07]MH_I2C_Read... [10:43:07]Read from MH i2c: 01 [10:43:07]MH_I2C_Read... [10:43:07]Read from MH i2c: 01 07 00 [10:43:07]MH_I2C_Read... [10:43:07]Read from MH i2c: 01 07 00 DF 8B 00 00 00 00 00 FF 0F 7F [10:43:07]RasterBufferAndPrint [10:43:07]line Счет N : (1)347556 [10:43:07]line ИНН: 02508201610067 [10:43:07]line Контрольно-Кассовый Чек [10:43:07]line ПРОДАЖА [10:43:07]line ТРК (МРК, ГНК) : 13 [10:43:07]line Товар: 2710124130 [10:43:07]line Аи-92-К-5 [10:43:07]line 15.560 * 64.30 [10:43:07]line = 1000.51 [10:43:07]line НДС 12% НСП 1% [10:43:07]line > о реализуемом товаре [10:43:07]line ИТОГО: 1000.51 [10:43:07]line НСП 1% : 8.85 [10:43:07]line НДС 12% : 106.25 [10:43:07]line Наличными: 0.00 [10:43:07]line Безнал.: 1000.51 [10:43:07]line Место: АЗС № 108 "Партнер Нефть" [10:43:07]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:43:07]line СНО: Общий режим [10:43:07]line Чек 95 14.04.2024 10:43 [10:43:07]line Смена: 116 ФФД: 1.0 [10:43:07]line ЗНМ: 0300000027 [10:43:07]line РНМ: 0000138879044617 [10:43:07]line Версия ККМ: 001 [10:43:07]line Платежная система: О! деньги [10:43:07]line ФМ: 0000000000963154 [10:43:07]line ФД: 29185 [10:43:07]line ФПД: 9919312735341 [10:43:07]line 1/tax-web-control/client/api/v1/ticket?date=20240414T104315&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29185&fm=9919312735341&tin=02508201610067®Number=0000138879044617&sum=100051 [10:43:08]OFD Sender: Processing packet 29185 [packets to send 8, broken 7] [10:43:08]ProducePacketName [10:43:08]name=ofd_packets/00029185 [10:43:08]OFD Sender: To server: pG, [10:43:08]CommunicateWithHost lk.salyk.kg:30040 [10:43:08]ConnectInit lk.salyk.kg [10:43:08]written 0, free lines is 4095 [10:43:08]Connected sock=10 [10:43:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 C4 AB 07 01 CE 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 5F 00 00 00 F4 03 04 00 43 B3 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 01 72 00 00 35 04 06 00 09 05 85 1C AC 6D 0A 45 7B 71 32 AE 6D 26 [10:43:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 17 21 47 00 9D D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 01 72 00 00 F4 03 04 00 E8 5D 1B 66 B6 04 01 00 00 13 E9 25 48 D8 A8 91 45 [10:43:08]CommunicateWithHost err = 0 [10:43:08]CheckOFDResponse [10:43:08]1017 (14) - 77093643461234 [10:43:08]1041 (16) - 0000000000963154 [10:43:08]1040 (4) - 29185 [10:43:08]1012 (4) - 14.04.2024 04:39 [10:43:08]1206 (1) - 0 [10:43:08]OFD Sender: Remove packet 29185 [10:43:08]ProducePacketName [10:43:08]name=ofd_packets/00029185 [10:43:08]NVStorageDeleteData [10:43:08]Write to MH i2c: 01 00 00 08 8C 94 [10:43:08]Write i2c OK [10:43:08]MH_I2C_Read... [10:43:08]Read from MH i2c: 01 [10:43:08]MH_I2C_Read... [10:43:08]Read from MH i2c: 01 07 00 [10:43:08]MH_I2C_Read... [10:43:08]Read from MH i2c: 01 07 00 08 8C 00 00 00 00 00 E0 0C 87 [10:43:08]RasterBufferAndPrint [10:43:08]line [10:43:08]line [10:43:08]line [10:43:08]line [10:43:08]line [10:43:08]written 0, free lines is 3302 [10:43:08]MH_Cut [10:43:08]Write to MH i2c: D1 01 00 0F 8C 01 6D [10:43:08]Write i2c OK [10:43:08]MH_I2C_Read... [10:43:08]Read from MH i2c: D1 [10:43:08]MH_I2C_Read... [10:43:08]Read from MH i2c: D1 01 00 [10:43:08]MH_I2C_Read... [10:43:08]Read from MH i2c: D1 01 00 0F 8C 00 6C [10:43:08]Write to MH i2c: 01 00 00 10 8C 9C [10:43:08]Write i2c OK [10:43:08]MH_I2C_Read... [10:43:08]OFD Sender: No OFD packet to send [10:43:09]*** Cut start [10:43:09]*** Partial cut [10:43:09]*** CUTSNS_PIN = 1 [10:43:09]*** CUTSNS_PIN = 0 [10:43:09]*** Brake cut motor [10:43:10]Read from MH i2c: 01 [10:43:10]MH_I2C_Read... [10:43:10]*** Stop cut motor [10:43:10]*** Cut end [10:43:10]Read from MH i2c: 01 07 00 [10:43:10]MH_I2C_Read... [10:43:10]Read from MH i2c: 01 07 00 10 8C 00 00 00 00 00 FF 0F B1 [10:43:10]process_action close_receipt done [10:43:10]requested_data is exist [10:43:10]produce_requested_data [10:43:10]requested_item fm.sn is exist - process it [10:43:10]wFMCommunicate request_size=4 [10:43:10]MH_SAM_APDU [10:43:10]CAPDU: 80 11 00 00 [10:43:10]Write to MH i2c: E2 08 00 11 8C 80 11 00 00 00 00 00 00 17 [10:43:10]Write i2c OK [10:43:10]MH_I2C_Read... [10:43:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:43:10]Read from MH i2c: E2 [10:43:10]MH_I2C_Read... [10:43:10]Read from MH i2c: E2 17 00 [10:43:10]MH_I2C_Read... [10:43:10]Read from MH i2c: E2 17 00 11 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 66 [10:43:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:43:10]wFMCommunicate OK [10:43:10]requested_item fd.num is exist - process it [10:43:10]SAM_PROTO_GetFieldsCounters [10:43:10]wFMCommunicate request_size=4 [10:43:10]MH_SAM_APDU [10:43:10]CAPDU: 80 13 00 00 [10:43:10]Write to MH i2c: E2 08 00 12 8C 80 13 00 00 00 00 00 00 1A [10:43:10]Write i2c OK [10:43:10]MH_I2C_Read... [10:43:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:43:10]Read from MH i2c: E2 [10:43:10]MH_I2C_Read... [10:43:10]Read from MH i2c: E2 62 00 [10:43:10]MH_I2C_Read... [10:43:10]Read from MH i2c: E2 62 00 12 8C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 01 72 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 5C [10:43:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 01 72 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:43:10]wFMCommunicate OK [10:43:10]SAM_PROTO_GetFieldsCounters done [10:43:10]requested_item shift.num is exist - process it [10:43:10]requested_item shift.opened is exist - process it [10:43:10]req_shift_opened [10:43:10]FM_GetShiftState [10:43:10]SAM_PROTO_GetShiftState [10:43:10]wFMCommunicate request_size=4 [10:43:10]MH_SAM_APDU [10:43:10]CAPDU: 80 13 01 00 [10:43:10]Write to MH i2c: E2 08 00 13 8C 80 13 01 00 00 00 00 00 1C [10:43:10]Write i2c OK [10:43:10]MH_I2C_Read... [10:43:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:43:10]Read from MH i2c: E2 [10:43:10]MH_I2C_Read... [10:43:10]Read from MH i2c: E2 0E 00 [10:43:10]MH_I2C_Read... [10:43:10]Read from MH i2c: E2 0E 00 13 8C 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 C8 [10:43:10]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [10:43:10]wFMCommunicate OK [10:43:10]SAM_PROTO_GetShiftState done [10:43:10]FM_GetShiftState done [10:43:10]req_shift_opened done [10:43:10]requested_item shift.open_date is exist - process it [10:43:10]req_shift_open_date [10:43:10]req_shift_open_date done [10:43:10]produce_requested_data done [10:43:10]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29185,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [10:43:10]process_action_free close_receipt [10:43:10]json_value_free [10:43:10]json_value_free done [10:43:10]process_json_proto returns [10:43:10]Send response to host [10:43:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29185,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [10:43:10]free response buf [10:43:10]execute_script done [10:43:10]execute_script returns [10:43:10]free content buf [10:43:10]Sock 7.Close socket [10:43:10]Sock 7.Thread stoped [10:43:13]OFD Sender: No OFD packet to send [10:43:18]OFD Sender: No OFD packet to send [10:43:23]OFD Sender: No OFD packet to send [10:43:28]OFD Sender: No OFD packet to send [10:43:33]OFD Sender: No OFD packet to send [10:43:35]accept exits with 9 [10:43:35]New connection [10:43:35]New thread 3066785124 created [10:43:35]Thread 3066928484 joined [10:43:35]Waiting for new connection... [10:43:35] Sock 9.Parse request [10:43:35]Sock 9.Check first char [10:43:35]Sock 9.First char is OK [10:43:35]request: POST /json_proto HTTP/1.0 [10:43:35]Method: POST [10:43:35]URL: /json_proto [10:43:35]Method is POST - this is cgi request [10:43:35]url: /json_proto [10:43:35]query_string will be loaded in cgi processing [10:43:35]execute_cgi json_proto POST (null) [10:43:35]execute_cgi path=json_proto method=POST [10:43:35]POST find Content-Length [10:43:35]Host: 172.17.33.3:8080 [10:43:35]Content-Length: 670 [10:43:35]Content-Type: application/json [10:43:35] [10:43:35]POST finish read [10:43:35]Found Content-Length = 670 [10:43:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347557", "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" ] } } [10:43:35]execute_script... [10: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 : (1)347557", "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" ] } } [10:43:35]POST & json_proto [10:43:35]process_json_proto [10:43:35]json parsed OK: [10:43:35]protocol is kg_v1.0 [10:43:35]action value=close_receipt [10:43:35]process_action close_receipt [10:43:35]cmd_close_receipt [10:43:35]MH_GetDate [10:43:35]Write to MH i2c: F0 00 00 14 8C 8F [10:43:35]Write i2c OK [10:43:35]MH_I2C_Read... [10:43:35]Read from MH i2c: F0 [10:43:35]MH_I2C_Read... [10:43:35]Read from MH i2c: F0 09 00 [10:43:35]MH_I2C_Read... [10:43:35]Read from MH i2c: F0 09 00 14 8C 00 61 B3 1B 66 23 5B 8F 65 9F [10:43:35]GetLastDocTimeStamp 1713091395 [10:43:35]current date 1713091425 [10:43:35]FM_GetShiftState [10:43:35]SAM_PROTO_GetShiftState [10:43:35]wFMCommunicate request_size=4 [10:43:35]MH_SAM_APDU [10:43:35]CAPDU: 80 13 01 00 [10:43:35]Write to MH i2c: E2 08 00 15 8C 80 13 01 00 00 00 00 00 1E [10:43:35]Write i2c OK [10:43:35]MH_I2C_Read... [10:43:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:43:35]Read from MH i2c: E2 [10:43:35]MH_I2C_Read... [10:43:35]Read from MH i2c: E2 0E 00 [10:43:35]MH_I2C_Read... [10:43:35]Read from MH i2c: E2 0E 00 15 8C 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 CA [10:43:35]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [10:43:35]wFMCommunicate OK [10:43:35]SAM_PROTO_GetShiftState done [10:43:35]FM_GetShiftState done [10:43:35]opened in 1713053951 [10:43:35]opened+sec_in_day 1713140351 [10:43:35]quantity*price = 50019 [10:43:35]sum+1 = 50021 [10:43:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 96 14.04.2024 10:43 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29186 ФПД: 131696548318134 1/tax-web-control/client/api/v1/ticket?date=20240414T104345&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29186&fm=131696548318134&tin=02508201610067®Number=0000138879044617&sum=50000 [10:43:36]StoreToDocumentArchive [10:43:36]shift 116 fd 29186 [10:43:36]save to /storage/0116/doc_00029186 [10:43:36]save last doc name /storage/0116/doc_00029186 to /storage/kkm_last_doc_name [10:43:36]save OK [10:43:36]Clear old archive folders... [10:43:36]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:43:36]tlvbuf is 0121A140 [10:43:36]SAM_PROTO_ClearQueue [10:43:36]wFMCommunicate request_size=4 [10:43:36]MH_SAM_APDU [10:43:36]CAPDU: 80 09 00 00 [10:43:36]Write to MH i2c: E2 08 00 22 8C 80 09 00 00 00 00 00 00 20 [10:43:36]Write i2c OK [10:43:36]MH_I2C_Read... [10:43:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:43:36]Read from MH i2c: E2 [10:43:36]MH_I2C_Read... [10:43:36]Read from MH i2c: E2 03 00 [10:43:36]MH_I2C_Read... [10:43:36]Read from MH i2c: E2 03 00 22 8C 00 90 00 22 [10:43:36]RAPDU: 90 00 [10:43:36]wFMCommunicate OK [10:43:36]SAM_PROTO_ClearQueue done [10:43:36]KKMCreateOFDPacket [10:43:36]OFDProtocolAddRootSTLVToBuf [10:43:36]FM_MakeSignedData [10:43:36]FM_MakeSignedData [10:43:36]SAM_PROTO_SignData [10:43:36]wFMCommunicate request_size=4 [10:43:36]MH_SAM_APDU [10:43:36]CAPDU: 80 0D 01 02 [10:43:36]Write to MH i2c: E2 08 00 23 8C 80 0D 01 02 00 00 00 00 28 [10:43:36]Write i2c OK [10:43:36]MH_I2C_Read... [10:43:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:43:36]Read from MH i2c: E2 [10:43:36]MH_I2C_Read... [10:43:37]Read from MH i2c: E2 03 00 [10:43:37]MH_I2C_Read... [10:43:37]Read from MH i2c: E2 03 00 23 8C 00 90 00 23 [10:43:37]RAPDU: 90 00 [10:43:37]wFMCommunicate OK [10:43:37]wFMCommunicate request_size=255 [10:43:37]MH_SAM_APDU [10:43: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 2D 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 00 00 00 F4 03 04 00 61 B3 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 02 72 00 00 35 04 06 00 [10:43:37]Write to MH i2c: E2 02 01 24 8C 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 00 00 00 F4 03 04 00 61 B3 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 02 72 00 00 35 04 06 00 00 00 57 [10:43:37]Write i2c OK [10:43:37]MH_I2C_Read... [10:43:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:43:37]Read from MH i2c: E2 [10:43:37]MH_I2C_Read... [10:43:37]Read from MH i2c: E2 03 00 [10:43:37]MH_I2C_Read... [10:43:37]Read from MH i2c: E2 03 00 24 8C 00 90 00 24 [10:43:37]RAPDU: 90 00 [10:43:37]wFMCommunicate OK [10:43:37]wFMCommunicate request_size=11 [10:43:37]MH_SAM_APDU [10:43:37]CAPDU: 80 0D 02 02 06 77 C6 FD FB 0B B6 [10:43:37]Write to MH i2c: E2 0E 00 25 8C 80 0D 02 02 06 00 77 C6 FD FB 0B B6 00 00 2D [10:43:37]Write i2c OK [10:43:37]MH_I2C_Read... [10:43:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:43:37]Read from MH i2c: E2 [10:43:37]MH_I2C_Read... [10:43:37]Read from MH i2c: E2 03 00 [10:43:37]MH_I2C_Read... [10:43:37]Read from MH i2c: E2 03 00 25 8C 00 90 00 25 [10:43:37]RAPDU: 90 00 [10:43:37]wFMCommunicate OK [10:43:37]wFMCommunicate request_size=4 [10:43:37]MH_SAM_APDU [10:43:37]CAPDU: 80 0D 03 02 [10:43:37]Write to MH i2c: E2 08 00 26 8C 80 0D 03 02 00 00 00 00 2D [10:43:37]Write i2c OK [10:43:37]MH_I2C_Read... [10:43:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:43:37]Read from MH i2c: E2 [10:43:37]MH_I2C_Read... [10:43:37]Read from MH i2c: E2 0B 00 [10:43:37]MH_I2C_Read... [10:43:37]Read from MH i2c: E2 0B 00 26 8C 00 A2 B7 F9 72 C3 31 76 96 90 00 F2 [10:43:37]RAPDU: A2 B7 F9 72 C3 31 76 96 90 00 [10:43:37]wFMCommunicate OK [10:43:37]SAM_PROTO_SignData done [10:43:37]FM_MakeSignedData done [10:43:37]CreateOFDProtocolMessage [10:43:37]wFMCommunicate request_size=4 [10:43:37]MH_SAM_APDU [10:43:37]CAPDU: 80 11 00 00 [10:43:37]Write to MH i2c: E2 08 00 27 8C 80 11 00 00 00 00 00 00 2D [10:43:37]Write i2c OK [10:43:37]MH_I2C_Read... [10:43:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:43:37]Read from MH i2c: E2 [10:43:37]MH_I2C_Read... [10:43:37]Read from MH i2c: E2 17 00 [10:43:37]MH_I2C_Read... [10:43:37]Read from MH i2c: E2 17 00 27 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 7C [10:43:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:43:37]wFMCommunicate OK [10:43:37]CreateOFDProtocolMessage done [10:43:37]OFDSenderStorePacket 29186 [10:43:37]StoreOFDPacket docnum=29186 [10:43:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 82 16 08 01 5C 99 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 00 00 00 F4 03 04 00 61 B3 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 02 72 00 00 35 04 06 00 77 C6 FD FB 0B B6 A2 B7 F9 72 C3 31 76 96 [10:43:37]CheckFolder [10:43:37]dirname=/storage/ofd_packets [10:43:37]CheckFolder done [10:43:37]ProducePacketName [10:43:37]name=ofd_packets/00029186 [10:43:37]NVStorageSaveData ofd_packets/00029186 [10:43:37]File name is /storage/ofd_packets/00029186 [10:43:37]Write 302 bytes [10:43:37]NVStorageSaveData done [10:43:37]OFDSenderStorePacket done [10:43:37]KKMCreateOFDPacket done [10:43:37]NVStorageSaveData kkm_last_timestamp [10:43:37]File name is /storage/kkm_last_timestamp [10:43:37]Write 4 bytes [10:43:37]NVStorageSaveData done [10:43:37]ExternCall_PrintAddStr [10:43:37]wPrintStart [10:43:37]Write to MH i2c: 01 00 00 28 8C B4 [10:43:37]Write i2c OK [10:43:37]MH_I2C_Read... [10:43:37]Read from MH i2c: 01 [10:43:37]MH_I2C_Read... [10:43:37]Read from MH i2c: 01 07 00 [10:43:37]MH_I2C_Read... [10:43:37]Read from MH i2c: 01 07 00 28 8C 00 00 00 00 00 FF 0F C9 [10:43:37]RasterBufferAndPrint [10:43:37]line Счет N : (1)347557 [10:43:37]line ИНН: 02508201610067 [10:43:37]line Контрольно-Кассовый Чек [10:43:37]line ПРОДАЖА [10:43:37]line ТРК (МРК, ГНК) : 41 [10:43:37]line Товар: 2710124130 [10:43:37]line SUPER-92-К-5 [10:43:37]line 7.660 * 65.30 [10:43:37]line = 500.20 [10:43:37]line НДС 12% НСП 1% [10:43:37]line > о реализуемом товаре [10:43:37]line ОКРУГЛЕНИЕ: -0.20 [10:43:37]line ИТОГО: 500.00 [10:43:37]line Внесено: 500.00 [10:43:37]line СДАЧА: 0.00 [10:43:37]line НСП 1% : 4.43 [10:43:37]line НДС 12% : 53.12 [10:43:37]line Наличными: 500.00 [10:43:37]line Безнал.: 0.00 [10:43:37]line Место: АЗС № 108 "Партнер Нефть" [10:43:37]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:43:37]line СНО: Общий режим [10:43:37]line Чек 96 14.04.2024 10:43 [10:43:37]line Смена: 116 ФФД: 1.0 [10:43:37]line ЗНМ: 0300000027 [10:43:37]line РНМ: 0000138879044617 [10:43:37]line Версия ККМ: 001 [10:43:37]line ФМ: 0000000000963154 [10:43:37]line ФД: 29186 [10:43:37]line ФПД: 131696548318134 [10:43:37]line 1/tax-web-control/client/api/v1/ticket?date=20240414T104345&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29186&fm=131696548318134&tin=02508201610067®Number=0000138879044617&sum=50000 [10:43:37]OFD Sender: Processing packet 29186 [packets to send 8, broken 7] [10:43:37]ProducePacketName [10:43:37]name=ofd_packets/00029186 [10:43:37]OFD Sender: To server: pG, [10:43:37]CommunicateWithHost lk.salyk.kg:30040 [10:43:37]ConnectInit lk.salyk.kg [10:43:37]written 0, free lines is 4095 [10:43:37]Connected sock=10 [10:43:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 82 16 08 01 5C 99 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 00 00 00 F4 03 04 00 61 B3 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 02 72 00 00 35 04 06 00 77 C6 FD FB 0B B6 A2 B7 F9 72 C3 31 76 96 [10:43:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 4D E8 47 00 56 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 39 36 33 31 35 34 10 04 04 00 02 72 00 00 F4 03 04 00 05 5E 1B 66 B6 04 01 00 00 15 04 DD A3 B9 07 D1 8F [10:43:38]CommunicateWithHost err = 0 [10:43:38]CheckOFDResponse [10:43:38]1017 (14) - 77093643461234 [10:43:38]1041 (16) - 0000000000963154 [10:43:38]1040 (4) - 29186 [10:43:38]1012 (4) - 14.04.2024 04:39 [10:43:38]1206 (1) - 0 [10:43:38]OFD Sender: Remove packet 29186 [10:43:38]ProducePacketName [10:43:38]name=ofd_packets/00029186 [10:43:38]NVStorageDeleteData [10:43:38]Write to MH i2c: 01 00 00 52 8C DE [10:43:38]Write i2c OK [10:43:38]MH_I2C_Read... [10:43:38]Read from MH i2c: 01 [10:43:38]MH_I2C_Read... [10:43:38]Read from MH i2c: 01 07 00 [10:43:38]MH_I2C_Read... [10:43:38]Read from MH i2c: 01 07 00 52 8C 00 00 00 00 00 CA 0C BB [10:43:38]RasterBufferAndPrint [10:43:38]line [10:43:38]line [10:43:38]line [10:43:38]line [10:43:38]line [10:43:38]written 0, free lines is 3280 [10:43:38]MH_Cut [10:43:38]Write to MH i2c: D1 01 00 59 8C 01 B7 [10:43:38]Write i2c OK [10:43:38]MH_I2C_Read... [10:43:38]Read from MH i2c: D1 [10:43:38]MH_I2C_Read... [10:43:38]Read from MH i2c: D1 01 00 [10:43:38]MH_I2C_Read... [10:43:38]Read from MH i2c: D1 01 00 59 8C 00 B6 [10:43:38]Write to MH i2c: 01 00 00 5A 8C E6 [10:43:38]Write i2c OK [10:43:38]MH_I2C_Read... [10:43:38]OFD Sender: No OFD packet to send [10:43:39]*** Cut start [10:43:39]*** Partial cut [10:43:39]*** CUTSNS_PIN = 1 [10:43:39]*** CUTSNS_PIN = 0 [10:43:39]*** Brake cut motor [10:43:39]Read from MH i2c: 01 [10:43:39]MH_I2C_Read... [10:43:39]*** Stop cut motor [10:43:39]*** Cut end [10:43:39]Read from MH i2c: 01 07 00 [10:43:39]MH_I2C_Read... [10:43:39]Read from MH i2c: 01 07 00 5A 8C 00 00 00 00 00 FF 0F FB [10:43:39]process_action close_receipt done [10:43:39]requested_data is exist [10:43:39]produce_requested_data [10:43:39]requested_item fm.sn is exist - process it [10:43:39]wFMCommunicate request_size=4 [10:43:39]MH_SAM_APDU [10:43:39]CAPDU: 80 11 00 00 [10:43:39]Write to MH i2c: E2 08 00 5B 8C 80 11 00 00 00 00 00 00 61 [10:43:39]Write i2c OK [10:43:39]MH_I2C_Read... [10:43:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:43:39]Read from MH i2c: E2 [10:43:39]MH_I2C_Read... [10:43:39]Read from MH i2c: E2 17 00 [10:43:39]MH_I2C_Read... [10:43:39]Read from MH i2c: E2 17 00 5B 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B0 [10:43:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:43:39]wFMCommunicate OK [10:43:39]requested_item fd.num is exist - process it [10:43:39]SAM_PROTO_GetFieldsCounters [10:43:39]wFMCommunicate request_size=4 [10:43:39]MH_SAM_APDU [10:43:39]CAPDU: 80 13 00 00 [10:43:39]Write to MH i2c: E2 08 00 5C 8C 80 13 00 00 00 00 00 00 64 [10:43:39]Write i2c OK [10:43:39]MH_I2C_Read... [10:43:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:43:39]Read from MH i2c: E2 [10:43:39]MH_I2C_Read... [10:43:39]Read from MH i2c: E2 62 00 [10:43:39]MH_I2C_Read... [10:43:39]Read from MH i2c: E2 62 00 5C 8C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 02 72 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 AA [10:43:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 02 72 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:43:39]wFMCommunicate OK [10:43:39]SAM_PROTO_GetFieldsCounters done [10:43:39]requested_item shift.num is exist - process it [10:43:39]requested_item shift.opened is exist - process it [10:43:39]req_shift_opened [10:43:39]FM_GetShiftState [10:43:39]SAM_PROTO_GetShiftState [10:43:39]wFMCommunicate request_size=4 [10:43:39]MH_SAM_APDU [10:43:39]CAPDU: 80 13 01 00 [10:43:39]Write to MH i2c: E2 08 00 5D 8C 80 13 01 00 00 00 00 00 66 [10:43:39]Write i2c OK [10:43:39]MH_I2C_Read... [10:43:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:43:39]Read from MH i2c: E2 [10:43:39]MH_I2C_Read... [10:43:39]Read from MH i2c: E2 0E 00 [10:43:39]MH_I2C_Read... [10:43:39]Read from MH i2c: E2 0E 00 5D 8C 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 12 [10:43:39]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [10:43:39]wFMCommunicate OK [10:43:39]SAM_PROTO_GetShiftState done [10:43:39]FM_GetShiftState done [10:43:39]req_shift_opened done [10:43:39]requested_item shift.open_date is exist - process it [10:43:39]req_shift_open_date [10:43:39]req_shift_open_date done [10:43:39]produce_requested_data done [10:43:39]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29186,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [10:43:39]process_action_free close_receipt [10:43:39]json_value_free [10:43:39]json_value_free done [10:43:39]process_json_proto returns [10:43:39]Send response to host [10:43:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29186,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [10:43:39]free response buf [10:43:39]execute_script done [10:43:39]execute_script returns [10:43:39]free content buf [10:43:39]Sock 9.Close socket [10:43:39]Sock 9.Thread stoped [10:43:43]OFD Sender: No OFD packet to send [10:43:48]OFD Sender: No OFD packet to send [10:43:53]OFD Sender: No OFD packet to send [10:43:58]OFD Sender: No OFD packet to send [10:44:03]OFD Sender: No OFD packet to send [10:44:08]OFD Sender: No OFD packet to send [10:44:13]OFD Sender: No OFD packet to send [10:44:18]OFD Sender: No OFD packet to send [10:44:23]OFD Sender: No OFD packet to send [10:44:28]OFD Sender: No OFD packet to send [10:44:33]OFD Sender: No OFD packet to send [10:44:38]OFD Sender: No OFD packet to send [10:44:43]OFD Sender: No OFD packet to send [10:44:48]OFD Sender: No OFD packet to send [10:44:53]OFD Sender: No OFD packet to send [10:44:58]OFD Sender: No OFD packet to send [10:45:03]OFD Sender: No OFD packet to send [10:45:08]OFD Sender: No OFD packet to send [10:45:13]OFD Sender: No OFD packet to send [10:45:18]OFD Sender: No OFD packet to send [10:45:23]OFD Sender: No OFD packet to send [10:45:28]OFD Sender: No OFD packet to send [10:45:33]OFD Sender: No OFD packet to send [10:45:38]OFD Sender: No OFD packet to send [10:45:43]OFD Sender: No OFD packet to send [10:45:48]OFD Sender: No OFD packet to send [10:45:53]OFD Sender: No OFD packet to send [10:45:58]OFD Sender: No OFD packet to send [10:46:03]OFD Sender: No OFD packet to send [10:46:08]OFD Sender: No OFD packet to send [10:46:13]OFD Sender: No OFD packet to send [10:46:18]OFD Sender: No OFD packet to send [10:46:23]OFD Sender: No OFD packet to send [10:46:28]OFD Sender: No OFD packet to send [10:46:33]OFD Sender: No OFD packet to send [10:46:38]OFD Sender: No OFD packet to send [10:46:43]OFD Sender: No OFD packet to send [10:46:48]OFD Sender: No OFD packet to send [10:46:53]OFD Sender: No OFD packet to send [10:46:58]OFD Sender: No OFD packet to send [10:47:03]OFD Sender: No OFD packet to send [10:47:08]OFD Sender: No OFD packet to send [10:47:13]OFD Sender: No OFD packet to send [10:47:18]OFD Sender: No OFD packet to send [10:47:23]OFD Sender: No OFD packet to send [10:47:24]accept exits with 7 [10:47:24]New connection [10:47:24]New thread 3066928484 created [10:47:24]Thread 3066785124 joined [10:47:24]Waiting for new connection... [10:47:24] Sock 7.Parse request [10:47:24]Sock 7.Check first char [10:47:24]Sock 7.First char is OK [10:47:24]request: POST /json_proto HTTP/1.0 [10:47:24]Method: POST [10:47:24]URL: /json_proto [10:47:24]Method is POST - this is cgi request [10:47:24]url: /json_proto [10:47:24]query_string will be loaded in cgi processing [10:47:24]execute_cgi json_proto POST (null) [10:47:24]execute_cgi path=json_proto method=POST [10:47:24]POST find Content-Length [10:47:24]Host: 172.17.33.3:8080 [10:47:24]Content-Length: 1164 [10:47:24]Content-Type: application/json [10:47:24] [10:47:24]POST finish read [10:47:24]Found Content-Length = 1164 [10:47:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043B\u0438\u043A\u0431\u0430\u0435\u0432\u0430. \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)347558\u000A14.04.2024 10:29\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 15.560 x 64.30\u000A\u0418\u0422\u041E\u0413: 1000.51\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30029823\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:47:24]execute_script... [10:47:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043B\u0438\u043A\u0431\u0430\u0435\u0432\u0430. \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)347558\u000A14.04.2024 10:29\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 15.560 x 64.30\u000A\u0418\u0422\u041E\u0413: 1000.51\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30029823\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:47:24]POST & json_proto [10:47:24]process_json_proto [10:47:24]json parsed OK: [10:47:24]protocol is kg_v1.0 [10:47:24]action value=print_text [10:47:24]process_action print_text [10:47:24]cmd_print_text [10:47:24]ExternCall_PrintAddStr [10:47:24]wPrintStart [10:47:24]Write to MH i2c: 01 00 00 5E 8C EA [10:47:24]Write i2c OK [10:47:24]MH_I2C_Read... [10:47:24]Read from MH i2c: 01 [10:47:24]MH_I2C_Read... [10:47:24]Read from MH i2c: 01 07 00 [10:47:24]MH_I2C_Read... [10:47:24]Read from MH i2c: 01 07 00 5E 8C 00 00 00 00 00 FF 0F FF [10:47:24]RasterBufferAndPrint [10:47:24]line *****ТОВАРНЫЙ ЧЕК***** [10:47:24]line АЗС 108 [10:47:24]line Партнер нефть [10:47:24]line 02508201610067 [10:47:24]line Кассир : Аликбаева. Д. [10:47:24]line Счет N : (1)347558 [10:47:24]line 14.04.2024 10:29 [10:47:24]line ПРОДАЖА [10:47:24]line ТРК (МРК, ГНК): 32 [10:47:24]line Вид ГСМ : 2710124130 [10:47:24]line Аи-92-К-5 [10:47:24]line 15.560 x 64.30 [10:47:24]line ИТОГ: 1000.51 [10:47:24]line Тип оплаты: Талоны: ТК ГПНА Online [10:47:24]line 30029823 [10:47:24]line ______________________ [10:47:24]line (подпись) [10:47:24]written 0, free lines is 4095 [10:47:24]Write to MH i2c: 01 00 00 72 8C FE [10:47:24]Write i2c OK [10:47:24]MH_I2C_Read... [10:47:24]Read from MH i2c: 01 [10:47:24]MH_I2C_Read... [10:47:24]Read from MH i2c: 01 07 00 [10:47:24]MH_I2C_Read... [10:47:24]Read from MH i2c: 01 07 00 72 8C 00 00 00 00 00 12 0E 25 [10:47:24]RasterBufferAndPrint [10:47:24]line [10:47:24]line [10:47:24]line [10:47:24]line [10:47:24]line [10:47:24]written 0, free lines is 3604 [10:47:24]MH_Cut [10:47:24]Write to MH i2c: D1 01 00 79 8C 01 D7 [10:47:24]Write i2c OK [10:47:24]MH_I2C_Read... [10:47:24]Read from MH i2c: D1 [10:47:24]MH_I2C_Read... [10:47:24]Read from MH i2c: D1 01 00 [10:47:24]MH_I2C_Read... [10:47:24]Read from MH i2c: D1 01 00 79 8C 00 D6 [10:47:24]Write to MH i2c: 01 00 00 7A 8C 06 [10:47:24]Write i2c OK [10:47:24]MH_I2C_Read... [10:47:25]*** Cut start [10:47:25]*** Partial cut [10:47:25]*** CUTSNS_PIN = 1 [10:47:25]*** CUTSNS_PIN = 0 [10:47:25]*** Brake cut motor [10:47:25]Read from MH i2c: 01 [10:47:25]MH_I2C_Read... [10:47:25]*** Stop cut motor [10:47:25]*** Cut end [10:47:25]Read from MH i2c: 01 07 00 [10:47:25]MH_I2C_Read... [10:47:25]Read from MH i2c: 01 07 00 7A 8C 00 00 00 00 00 FF 0F 1B [10:47:25]process_action print_text done [10:47:25]requested_data is exist [10:47:25]produce_requested_data [10:47:25]requested_item fm.sn is exist - process it [10:47:25]wFMCommunicate request_size=4 [10:47:25]MH_SAM_APDU [10:47:25]CAPDU: 80 11 00 00 [10:47:25]Write to MH i2c: E2 08 00 7B 8C 80 11 00 00 00 00 00 00 81 [10:47:25]Write i2c OK [10:47:25]MH_I2C_Read... [10:47:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:26]Read from MH i2c: E2 [10:47:26]MH_I2C_Read... [10:47:26]Read from MH i2c: E2 17 00 [10:47:26]MH_I2C_Read... [10:47:26]Read from MH i2c: E2 17 00 7B 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D0 [10:47:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:47:26]wFMCommunicate OK [10:47:26]requested_item fd.num is exist - process it [10:47:26]SAM_PROTO_GetFieldsCounters [10:47:26]wFMCommunicate request_size=4 [10:47:26]MH_SAM_APDU [10:47:26]CAPDU: 80 13 00 00 [10:47:26]Write to MH i2c: E2 08 00 7C 8C 80 13 00 00 00 00 00 00 84 [10:47:26]Write i2c OK [10:47:26]MH_I2C_Read... [10:47:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:47:26]Read from MH i2c: E2 [10:47:26]MH_I2C_Read... [10:47:26]Read from MH i2c: E2 62 00 [10:47:26]MH_I2C_Read... [10:47:26]Read from MH i2c: E2 62 00 7C 8C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 02 72 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 CA [10:47:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 02 72 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:47:26]wFMCommunicate OK [10:47:26]SAM_PROTO_GetFieldsCounters done [10:47:26]requested_item shift.num is exist - process it [10:47:26]requested_item shift.opened is exist - process it [10:47:26]req_shift_opened [10:47:26]FM_GetShiftState [10:47:26]SAM_PROTO_GetShiftState [10:47:26]wFMCommunicate request_size=4 [10:47:26]MH_SAM_APDU [10:47:26]CAPDU: 80 13 01 00 [10:47:26]Write to MH i2c: E2 08 00 7D 8C 80 13 01 00 00 00 00 00 86 [10:47:26]Write i2c OK [10:47:26]MH_I2C_Read... [10:47:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:47:26]Read from MH i2c: E2 [10:47:26]MH_I2C_Read... [10:47:26]Read from MH i2c: E2 0E 00 [10:47:26]MH_I2C_Read... [10:47:26]Read from MH i2c: E2 0E 00 7D 8C 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 32 [10:47:26]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [10:47:26]wFMCommunicate OK [10:47:26]SAM_PROTO_GetShiftState done [10:47:26]FM_GetShiftState done [10:47:26]req_shift_opened done [10:47:26]requested_item shift.open_date is exist - process it [10:47:26]req_shift_open_date [10:47:26]req_shift_open_date done [10:47:26]produce_requested_data done [10:47:26]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29186,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [10:47:26]process_action_free print_text [10:47:26]json_value_free [10:47:26]json_value_free done [10:47:26]process_json_proto returns [10:47:26]Send response to host [10:47:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29186,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [10:47:26]free response buf [10:47:26]execute_script done [10:47:26]execute_script returns [10:47:26]free content buf [10:47:26]Sock 7.Close socket [10:47:26]Sock 7.Thread stoped [10:47:28]OFD Sender: No OFD packet to send [10:47:33]OFD Sender: No OFD packet to send [10:47:38]OFD Sender: No OFD packet to send [10:47:43]OFD Sender: No OFD packet to send [10:47:48]OFD Sender: No OFD packet to send [10:47:53]OFD Sender: No OFD packet to send [10:47:58]OFD Sender: No OFD packet to send [10:48:03]OFD Sender: No OFD packet to send [10:48:08]OFD Sender: No OFD packet to send [10:48:13]OFD Sender: No OFD packet to send [10:48:18]OFD Sender: No OFD packet to send [10:48:22]accept exits with 9 [10:48:22]New connection [10:48:22]New thread 3066785124 created [10:48:22]Thread 3066928484 joined [10:48:22]Waiting for new connection... [10:48:22] Sock 9.Parse request [10:48:22]Sock 9.Check first char [10:48:22]Sock 9.First char is OK [10:48:22]request: POST /json_proto HTTP/1.0 [10:48:22]Method: POST [10:48:22]URL: /json_proto [10:48:22]Method is POST - this is cgi request [10:48:22]url: /json_proto [10:48:22]query_string will be loaded in cgi processing [10:48:22]execute_cgi json_proto POST (null) [10:48:22]execute_cgi path=json_proto method=POST [10:48:22]POST find Content-Length [10:48:22]Host: 172.17.33.3:8080 [10:48:22]Content-Length: 812 [10:48:22]Content-Type: application/json [10:48:22] [10:48:22]POST finish read [10:48:22]Found Content-Length = 812 [10:48:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347559", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.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" ] } } [10:48:22]execute_script... [10:48: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)347559", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.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" ] } } [10:48:22]POST & json_proto [10:48:22]process_json_proto [10:48:22]json parsed OK: [10:48:22]protocol is kg_v1.0 [10:48:22]action value=close_receipt [10:48:22]process_action close_receipt [10:48:22]cmd_close_receipt [10:48:22]MH_GetDate [10:48:22]Write to MH i2c: F0 00 00 7E 8C F9 [10:48:22]Write i2c OK [10:48:22]MH_I2C_Read... [10:48:22]Read from MH i2c: F0 [10:48:22]MH_I2C_Read... [10:48:22]Read from MH i2c: F0 09 00 [10:48:22]MH_I2C_Read... [10:48:22]Read from MH i2c: F0 09 00 7E 8C 00 7F B4 1B 66 23 5B 8F 65 28 [10:48:22]GetLastDocTimeStamp 1713091425 [10:48:22]current date 1713091711 [10:48:22]FM_GetShiftState [10:48:22]SAM_PROTO_GetShiftState [10:48:22]wFMCommunicate request_size=4 [10:48:22]MH_SAM_APDU [10:48:22]CAPDU: 80 13 01 00 [10:48:22]Write to MH i2c: E2 08 00 7F 8C 80 13 01 00 00 00 00 00 88 [10:48:22]Write i2c OK [10:48:22]MH_I2C_Read... [10:48:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:48:22]Read from MH i2c: E2 [10:48:22]MH_I2C_Read... [10:48:22]Read from MH i2c: E2 0E 00 [10:48:22]MH_I2C_Read... [10:48:22]Read from MH i2c: E2 0E 00 7F 8C 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 34 [10:48:22]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [10:48:22]wFMCommunicate OK [10:48:22]SAM_PROTO_GetShiftState done [10:48:22]FM_GetShiftState done [10:48:22]opened in 1713053951 [10:48:22]opened+sec_in_day 1713140351 [10:48:22]quantity*price = 100039 [10:48:22]sum+1 = 100041 [10:48:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.40 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 0.00 Безнал.: 1000.40 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 97 14.04.2024 10:48 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 29187 ФПД: 17981410556213 1/tax-web-control/client/api/v1/ticket?date=20240414T104831&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29187&fm=17981410556213&tin=02508201610067®Number=0000138879044617&sum=100040 [10:48:23]StoreToDocumentArchive [10:48:23]shift 116 fd 29187 [10:48:23]save to /storage/0116/doc_00029187 [10:48:23]save last doc name /storage/0116/doc_00029187 to /storage/kkm_last_doc_name [10:48:23]save OK [10:48:23]Clear old archive folders... [10:48:23]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:48:23]tlvbuf is 011FB800 [10:48:23]SAM_PROTO_ClearQueue [10:48:23]wFMCommunicate request_size=4 [10:48:23]MH_SAM_APDU [10:48:23]CAPDU: 80 09 00 00 [10:48:23]Write to MH i2c: E2 08 00 8C 8C 80 09 00 00 00 00 00 00 8A [10:48:23]Write i2c OK [10:48:23]MH_I2C_Read... [10:48:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:48:23]Read from MH i2c: E2 [10:48:23]MH_I2C_Read... [10:48:23]Read from MH i2c: E2 03 00 [10:48:23]MH_I2C_Read... [10:48:23]Read from MH i2c: E2 03 00 8C 8C 00 90 00 8C [10:48:23]RAPDU: 90 00 [10:48:23]wFMCommunicate OK [10:48:23]SAM_PROTO_ClearQueue done [10:48:23]KKMCreateOFDPacket [10:48:23]OFDProtocolAddRootSTLVToBuf [10:48:23]FM_MakeSignedData [10:48:23]FM_MakeSignedData [10:48:23]SAM_PROTO_SignData [10:48:23]wFMCommunicate request_size=4 [10:48:23]MH_SAM_APDU [10:48:23]CAPDU: 80 0D 01 02 [10:48:23]Write to MH i2c: E2 08 00 8D 8C 80 0D 01 02 00 00 00 00 92 [10:48:23]Write i2c OK [10:48:23]MH_I2C_Read... [10:48:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:48:23]Read from MH i2c: E2 [10:48:23]MH_I2C_Read... [10:48:23]Read from MH i2c: E2 03 00 [10:48:23]MH_I2C_Read... [10:48:23]Read from MH i2c: E2 03 00 8D 8C 00 90 00 8D [10:48:23]RAPDU: 90 00 [10:48:23]wFMCommunicate OK [10:48:23]wFMCommunicate request_size=255 [10:48:23]MH_SAM_APDU [10:48: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 2D 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 61 00 00 00 F4 03 04 00 7F B4 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 03 72 00 00 35 04 06 00 [10:48:23]Write to MH i2c: E2 02 01 8E 8C 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 61 00 00 00 F4 03 04 00 7F B4 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 03 72 00 00 35 04 06 00 00 00 1D [10:48:23]Write i2c OK [10:48:23]MH_I2C_Read... [10:48:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:48:23]Read from MH i2c: E2 [10:48:23]MH_I2C_Read... [10:48:23]Read from MH i2c: E2 03 00 [10:48:23]MH_I2C_Read... [10:48:23]Read from MH i2c: E2 03 00 8E 8C 00 90 00 8E [10:48:23]RAPDU: 90 00 [10:48:23]wFMCommunicate OK [10:48:23]wFMCommunicate request_size=11 [10:48:23]MH_SAM_APDU [10:48:23]CAPDU: 80 0D 02 02 06 10 5A 9F 96 B9 35 [10:48:23]Write to MH i2c: E2 0E 00 8F 8C 80 0D 02 02 06 00 10 5A 9F 96 B9 35 00 00 2E [10:48:23]Write i2c OK [10:48:23]MH_I2C_Read... [10:48:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:48:23]Read from MH i2c: E2 [10:48:23]MH_I2C_Read... [10:48:23]Read from MH i2c: E2 03 00 [10:48:23]MH_I2C_Read... [10:48:23]Read from MH i2c: E2 03 00 8F 8C 00 90 00 8F [10:48:23]RAPDU: 90 00 [10:48:23]wFMCommunicate OK [10:48:23]wFMCommunicate request_size=4 [10:48:23]MH_SAM_APDU [10:48:23]CAPDU: 80 0D 03 02 [10:48:23]Write to MH i2c: E2 08 00 90 8C 80 0D 03 02 00 00 00 00 97 [10:48:23]Write i2c OK [10:48:23]MH_I2C_Read... [10:48:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:48:23]OFD Sender: No OFD packet to send [10:48:23]Read from MH i2c: E2 [10:48:23]MH_I2C_Read... [10:48:23]Read from MH i2c: E2 0B 00 [10:48:23]MH_I2C_Read... [10:48:23]Read from MH i2c: E2 0B 00 90 8C 00 F0 B3 09 38 75 A9 0E 53 90 00 FB [10:48:23]RAPDU: F0 B3 09 38 75 A9 0E 53 90 00 [10:48:23]wFMCommunicate OK [10:48:23]SAM_PROTO_SignData done [10:48:23]FM_MakeSignedData done [10:48:23]CreateOFDProtocolMessage [10:48:23]wFMCommunicate request_size=4 [10:48:23]MH_SAM_APDU [10:48:23]CAPDU: 80 11 00 00 [10:48:23]Write to MH i2c: E2 08 00 91 8C 80 11 00 00 00 00 00 00 97 [10:48:23]Write i2c OK [10:48:23]MH_I2C_Read... [10:48:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:48:23]Read from MH i2c: E2 [10:48:23]MH_I2C_Read... [10:48:23]Read from MH i2c: E2 17 00 [10:48:23]MH_I2C_Read... [10:48:23]Read from MH i2c: E2 17 00 91 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E6 [10:48:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:48:23]wFMCommunicate OK [10:48:23]CreateOFDProtocolMessage done [10:48:23]OFDSenderStorePacket 29187 [10:48:23]StoreOFDPacket docnum=29187 [10:48:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 33 98 08 01 7A AD 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 61 00 00 00 F4 03 04 00 7F B4 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 03 72 00 00 35 04 06 00 10 5A 9F 96 B9 35 F0 B3 09 38 75 A9 0E 53 [10:48:23]CheckFolder [10:48:23]dirname=/storage/ofd_packets [10:48:23]CheckFolder done [10:48:23]ProducePacketName [10:48:23]name=ofd_packets/00029187 [10:48:23]NVStorageSaveData ofd_packets/00029187 [10:48:23]File name is /storage/ofd_packets/00029187 [10:48:23]Write 302 bytes [10:48:23]NVStorageSaveData done [10:48:23]OFDSenderStorePacket done [10:48:23]KKMCreateOFDPacket done [10:48:23]NVStorageSaveData kkm_last_timestamp [10:48:23]File name is /storage/kkm_last_timestamp [10:48:23]Write 4 bytes [10:48:23]NVStorageSaveData done [10:48:23]ExternCall_PrintAddStr [10:48:23]wPrintStart [10:48:23]Write to MH i2c: 01 00 00 92 8C 1E [10:48:23]Write i2c OK [10:48:23]MH_I2C_Read... [10:48:23]Read from MH i2c: 01 [10:48:23]MH_I2C_Read... [10:48:23]Read from MH i2c: 01 07 00 [10:48:23]MH_I2C_Read... [10:48:23]Read from MH i2c: 01 07 00 92 8C 00 00 00 00 00 FF 0F 33 [10:48:23]RasterBufferAndPrint [10:48:23]line Счет N : (1)347559 [10:48:23]line ИНН: 02508201610067 [10:48:23]line Контрольно-Кассовый Чек [10:48:23]line ПРОДАЖА [10:48:23]line ТРК (МРК, ГНК) : 12 [10:48:23]line Товар: 2710124130 [10:48:23]line SUPER-92-К-5 [10:48:23]line 15.320 * 65.30 [10:48:23]line = 1000.40 [10:48:23]line НДС 12% НСП 1% [10:48:23]line > о реализуемом товаре [10:48:23]line ИТОГО: 1000.40 [10:48:23]line НСП 1% : 8.85 [10:48:23]line НДС 12% : 106.24 [10:48:23]line Наличными: 0.00 [10:48:23]line Безнал.: 1000.40 [10:48:23]line Место: АЗС № 108 "Партнер Нефть" [10:48:23]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:48:23]line СНО: Общий режим [10:48:23]line Чек 97 14.04.2024 10:48 [10:48:23]line Смена: 116 ФФД: 1.0 [10:48:23]line ЗНМ: 0300000027 [10:48:23]line РНМ: 0000138879044617 [10:48:23]line Версия ККМ: 001 [10:48:23]line Платежная система: Бакай Банк [10:48:23]line ФМ: 0000000000963154 [10:48:23]line ФД: 29187 [10:48:23]line ФПД: 17981410556213 [10:48:24]line 1/tax-web-control/client/api/v1/ticket?date=20240414T104831&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29187&fm=17981410556213&tin=02508201610067®Number=0000138879044617&sum=100040 [10:48:24]OFD Sender: Processing packet 29187 [packets to send 8, broken 7] [10:48:24]ProducePacketName [10:48:24]name=ofd_packets/00029187 [10:48:24]OFD Sender: To server: pG, [10:48:24]CommunicateWithHost lk.salyk.kg:30040 [10:48:24]ConnectInit lk.salyk.kg [10:48:24]written 0, free lines is 4095 [10:48:24]Connected sock=10 [10:48:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 33 98 08 01 7A AD 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 61 00 00 00 F4 03 04 00 7F B4 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 03 72 00 00 35 04 06 00 10 5A 9F 96 B9 35 F0 B3 09 38 75 A9 0E 53 [10:48:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 CF 59 47 00 84 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 39 36 33 31 35 34 10 04 04 00 03 72 00 00 F4 03 04 00 24 5F 1B 66 B6 04 01 00 00 C3 37 D9 BB FF 0B 98 46 [10:48:24]CommunicateWithHost err = 0 [10:48:24]CheckOFDResponse [10:48:24]1017 (14) - 77093643461234 [10:48:24]1041 (16) - 0000000000963154 [10:48:24]1040 (4) - 29187 [10:48:24]1012 (4) - 14.04.2024 04:44 [10:48:24]1206 (1) - 0 [10:48:24]OFD Sender: Remove packet 29187 [10:48:24]ProducePacketName [10:48:24]name=ofd_packets/00029187 [10:48:24]NVStorageDeleteData [10:48:24]Write to MH i2c: 01 00 00 BB 8C 47 [10:48:24]Write i2c OK [10:48:24]MH_I2C_Read... [10:48:24]Read from MH i2c: 01 [10:48:24]MH_I2C_Read... [10:48:24]Read from MH i2c: 01 07 00 [10:48:24]MH_I2C_Read... [10:48:24]Read from MH i2c: 01 07 00 BB 8C 00 00 00 00 00 E7 0C 41 [10:48:24]RasterBufferAndPrint [10:48:24]line [10:48:24]line [10:48:24]line [10:48:24]line [10:48:24]line [10:48:24]written 0, free lines is 3312 [10:48:24]MH_Cut [10:48:24]Write to MH i2c: D1 01 00 C2 8C 01 20 [10:48:24]Write i2c OK [10:48:24]MH_I2C_Read... [10:48:24]Read from MH i2c: D1 [10:48:24]MH_I2C_Read... [10:48:24]Read from MH i2c: D1 01 00 [10:48:24]MH_I2C_Read... [10:48:24]Read from MH i2c: D1 01 00 C2 8C 00 1F [10:48:24]Write to MH i2c: 01 00 00 C3 8C 4F [10:48:24]Write i2c OK [10:48:24]MH_I2C_Read... [10:48:24]OFD Sender: No OFD packet to send [10:48:25]*** Cut start [10:48:25]*** Partial cut [10:48:25]*** CUTSNS_PIN = 1 [10:48:25]*** CUTSNS_PIN = 0 [10:48:25]*** Brake cut motor [10:48:26]Read from MH i2c: 01 [10:48:26]MH_I2C_Read... [10:48:26]*** Stop cut motor [10:48:26]*** Cut end [10:48:26]Read from MH i2c: 01 07 00 [10:48:26]MH_I2C_Read... [10:48:26]Read from MH i2c: 01 07 00 C3 8C 00 00 00 00 00 FF 0F 64 [10:48:26]process_action close_receipt done [10:48:26]requested_data is exist [10:48:26]produce_requested_data [10:48:26]requested_item fm.sn is exist - process it [10:48:26]wFMCommunicate request_size=4 [10:48:26]MH_SAM_APDU [10:48:26]CAPDU: 80 11 00 00 [10:48:26]Write to MH i2c: E2 08 00 C4 8C 80 11 00 00 00 00 00 00 CA [10:48:26]Write i2c OK [10:48:26]MH_I2C_Read... [10:48:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:48:26]Read from MH i2c: E2 [10:48:26]MH_I2C_Read... [10:48:26]Read from MH i2c: E2 17 00 [10:48:26]MH_I2C_Read... [10:48:26]Read from MH i2c: E2 17 00 C4 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 19 [10:48:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:48:26]wFMCommunicate OK [10:48:26]requested_item fd.num is exist - process it [10:48:26]SAM_PROTO_GetFieldsCounters [10:48:26]wFMCommunicate request_size=4 [10:48:26]MH_SAM_APDU [10:48:26]CAPDU: 80 13 00 00 [10:48:26]Write to MH i2c: E2 08 00 C5 8C 80 13 00 00 00 00 00 00 CD [10:48:26]Write i2c OK [10:48:26]MH_I2C_Read... [10:48:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:48:26]Read from MH i2c: E2 [10:48:26]MH_I2C_Read... [10:48:26]Read from MH i2c: E2 62 00 [10:48:26]MH_I2C_Read... [10:48:26]Read from MH i2c: E2 62 00 C5 8C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 03 72 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 17 [10:48:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 03 72 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:48:26]wFMCommunicate OK [10:48:26]SAM_PROTO_GetFieldsCounters done [10:48:26]requested_item shift.num is exist - process it [10:48:26]requested_item shift.opened is exist - process it [10:48:26]req_shift_opened [10:48:26]FM_GetShiftState [10:48:26]SAM_PROTO_GetShiftState [10:48:26]wFMCommunicate request_size=4 [10:48:26]MH_SAM_APDU [10:48:26]CAPDU: 80 13 01 00 [10:48:26]Write to MH i2c: E2 08 00 C6 8C 80 13 01 00 00 00 00 00 CF [10:48:26]Write i2c OK [10:48:26]MH_I2C_Read... [10:48:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:48:26]Read from MH i2c: E2 [10:48:26]MH_I2C_Read... [10:48:26]Read from MH i2c: E2 0E 00 [10:48:26]MH_I2C_Read... [10:48:26]Read from MH i2c: E2 0E 00 C6 8C 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 7B [10:48:26]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [10:48:26]wFMCommunicate OK [10:48:26]SAM_PROTO_GetShiftState done [10:48:26]FM_GetShiftState done [10:48:26]req_shift_opened done [10:48:26]requested_item shift.open_date is exist - process it [10:48:26]req_shift_open_date [10:48:26]req_shift_open_date done [10:48:26]produce_requested_data done [10:48:26]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29187,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [10:48:26]process_action_free close_receipt [10:48:26]json_value_free [10:48:26]json_value_free done [10:48:26]process_json_proto returns [10:48:26]Send response to host [10:48:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29187,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [10:48:26]free response buf [10:48:26]execute_script done [10:48:26]execute_script returns [10:48:26]free content buf [10:48:26]Sock 9.Close socket [10:48:26]Sock 9.Thread stoped [10:48:29]OFD Sender: No OFD packet to send [10:48:34]OFD Sender: No OFD packet to send [10:48:39]OFD Sender: No OFD packet to send [10:48:44]OFD Sender: No OFD packet to send [10:48:49]OFD Sender: No OFD packet to send [10:48:54]OFD Sender: No OFD packet to send [10:48:59]OFD Sender: No OFD packet to send [10:49:04]OFD Sender: No OFD packet to send [10:49:09]OFD Sender: No OFD packet to send [10:49:14]OFD Sender: No OFD packet to send [10:49:19]OFD Sender: No OFD packet to send [10:49:25]OFD Sender: No OFD packet to send [10:49:30]OFD Sender: No OFD packet to send [10:49:35]OFD Sender: No OFD packet to send [10:49:40]OFD Sender: No OFD packet to send [10:49:45]OFD Sender: No OFD packet to send [10:49:50]OFD Sender: No OFD packet to send [10:49:55]OFD Sender: No OFD packet to send [10:50:00]OFD Sender: No OFD packet to send [10:50:05]OFD Sender: No OFD packet to send [10:50:10]OFD Sender: No OFD packet to send [10:50:15]OFD Sender: No OFD packet to send [10:50:20]OFD Sender: No OFD packet to send [10:50:25]OFD Sender: No OFD packet to send [10:50:30]OFD Sender: No OFD packet to send [10:50:35]OFD Sender: No OFD packet to send [10:50:40]OFD Sender: No OFD packet to send [10:50:45]OFD Sender: No OFD packet to send [10:50:50]OFD Sender: No OFD packet to send [10:50:55]OFD Sender: No OFD packet to send [10:50:56]accept exits with 7 [10:50:56]New connection [10:50:56]New thread 3066928484 created [10:50:56]Thread 3066785124 joined [10:50:56]Waiting for new connection... [10:50:56] Sock 7.Parse request [10:50:56]Sock 7.Check first char [10:50:56]Sock 7.First char is OK [10:50:56]request: POST /json_proto HTTP/1.0 [10:50:56]Method: POST [10:50:56]URL: /json_proto [10:50:56]Method is POST - this is cgi request [10:50:56]url: /json_proto [10:50:56]query_string will be loaded in cgi processing [10:50:56]execute_cgi json_proto POST (null) [10:50:56]execute_cgi path=json_proto method=POST [10:50:56]POST find Content-Length [10:50:56]Host: 172.17.33.3:8080 [10:50:56]Content-Length: 808 [10:50:56]Content-Type: application/json [10:50:56] [10:50:56]POST finish read [10:50:56]Found Content-Length = 808 [10:50:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347560", "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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:50:56]execute_script... [10:50: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)347560", "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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:50:56]POST & json_proto [10:50:56]process_json_proto [10:50:56]json parsed OK: [10:50:56]protocol is kg_v1.0 [10:50:56]action value=close_receipt [10:50:56]process_action close_receipt [10:50:56]cmd_close_receipt [10:50:56]MH_GetDate [10:50:56]Write to MH i2c: F0 00 00 C7 8C 42 [10:50:56]Write i2c OK [10:50:56]MH_I2C_Read... [10:50:56]Read from MH i2c: F0 [10:50:56]MH_I2C_Read... [10:50:56]Read from MH i2c: F0 09 00 [10:50:56]MH_I2C_Read... [10:50:56]Read from MH i2c: F0 09 00 C7 8C 00 1A B5 1B 66 23 5B 8F 65 0D [10:50:56]GetLastDocTimeStamp 1713091711 [10:50:56]current date 1713091866 [10:50:56]FM_GetShiftState [10:50:56]SAM_PROTO_GetShiftState [10:50:56]wFMCommunicate request_size=4 [10:50:56]MH_SAM_APDU [10:50:56]CAPDU: 80 13 01 00 [10:50:56]Write to MH i2c: E2 08 00 C8 8C 80 13 01 00 00 00 00 00 D1 [10:50:56]Write i2c OK [10:50:56]MH_I2C_Read... [10:50:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:56]Read from MH i2c: E2 [10:50:56]MH_I2C_Read... [10:50:56]Read from MH i2c: E2 0E 00 [10:50:56]MH_I2C_Read... [10:50:56]Read from MH i2c: E2 0E 00 C8 8C 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 7D [10:50:56]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [10:50:56]wFMCommunicate OK [10:50:56]SAM_PROTO_GetShiftState done [10:50:56]FM_GetShiftState done [10:50:56]opened in 1713053951 [10:50:56]opened+sec_in_day 1713140351 [10:50:56]quantity*price = 100050 [10:50:56]sum+1 = 100052 [10:50:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 98 14.04.2024 10:51 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29188 ФПД: 244550114562292 1/tax-web-control/client/api/v1/ticket?date=20240414T105106&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29188&fm=244550114562292&tin=02508201610067®Number=0000138879044617&sum=100051 [10:50:58]StoreToDocumentArchive [10:50:58]shift 116 fd 29188 [10:50:58]save to /storage/0116/doc_00029188 [10:50:58]save last doc name /storage/0116/doc_00029188 to /storage/kkm_last_doc_name [10:50:58]save OK [10:50:58]Clear old archive folders... [10:50:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:50:58]tlvbuf is 011EC840 [10:50:58]SAM_PROTO_ClearQueue [10:50:58]wFMCommunicate request_size=4 [10:50:58]MH_SAM_APDU [10:50:58]CAPDU: 80 09 00 00 [10:50:58]Write to MH i2c: E2 08 00 D5 8C 80 09 00 00 00 00 00 00 D3 [10:50:58]Write i2c OK [10:50:58]MH_I2C_Read... [10:50:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:50:58]Read from MH i2c: E2 [10:50:58]MH_I2C_Read... [10:50:58]Read from MH i2c: E2 03 00 [10:50:58]MH_I2C_Read... [10:50:58]Read from MH i2c: E2 03 00 D5 8C 00 90 00 D5 [10:50:58]RAPDU: 90 00 [10:50:58]wFMCommunicate OK [10:50:58]SAM_PROTO_ClearQueue done [10:50:58]KKMCreateOFDPacket [10:50:58]OFDProtocolAddRootSTLVToBuf [10:50:58]FM_MakeSignedData [10:50:58]FM_MakeSignedData [10:50:58]SAM_PROTO_SignData [10:50:58]wFMCommunicate request_size=4 [10:50:58]MH_SAM_APDU [10:50:58]CAPDU: 80 0D 01 02 [10:50:58]Write to MH i2c: E2 08 00 D6 8C 80 0D 01 02 00 00 00 00 DB [10:50:58]Write i2c OK [10:50:58]MH_I2C_Read... [10:50:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:50:58]Read from MH i2c: E2 [10:50:58]MH_I2C_Read... [10:50:58]Read from MH i2c: E2 03 00 [10:50:58]MH_I2C_Read... [10:50:58]Read from MH i2c: E2 03 00 D6 8C 00 90 00 D6 [10:50:58]RAPDU: 90 00 [10:50:58]wFMCommunicate OK [10:50:58]wFMCommunicate request_size=255 [10:50:58]MH_SAM_APDU [10:50: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 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 62 00 00 00 F4 03 04 00 1A B5 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 04 72 00 00 35 04 06 00 DE [10:50:58]Write to MH i2c: E2 02 01 D7 8C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 62 00 00 00 F4 03 04 00 1A B5 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 04 72 00 00 35 04 06 00 DE 00 00 E7 [10:50:58]Write i2c OK [10:50:58]MH_I2C_Read... [10:50:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:58]Read from MH i2c: E2 [10:50:58]MH_I2C_Read... [10:50:58]Read from MH i2c: E2 03 00 [10:50:58]MH_I2C_Read... [10:50:58]Read from MH i2c: E2 03 00 D7 8C 00 90 00 D7 [10:50:58]RAPDU: 90 00 [10:50:58]wFMCommunicate OK [10:50:58]wFMCommunicate request_size=10 [10:50:58]MH_SAM_APDU [10:50:58]CAPDU: 80 0D 02 02 05 6A C2 B5 50 F4 [10:50:58]Write to MH i2c: E2 0D 00 D8 8C 80 0D 02 02 05 00 6A C2 B5 50 F4 00 00 0D [10:50:58]Write i2c OK [10:50:58]MH_I2C_Read... [10:50:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:58]Read from MH i2c: E2 [10:50:58]MH_I2C_Read... [10:50:58]Read from MH i2c: E2 03 00 [10:50:58]MH_I2C_Read... [10:50:58]Read from MH i2c: E2 03 00 D8 8C 00 90 00 D8 [10:50:58]RAPDU: 90 00 [10:50:58]wFMCommunicate OK [10:50:58]wFMCommunicate request_size=4 [10:50:58]MH_SAM_APDU [10:50:58]CAPDU: 80 0D 03 02 [10:50:58]Write to MH i2c: E2 08 00 D9 8C 80 0D 03 02 00 00 00 00 E0 [10:50:58]Write i2c OK [10:50:58]MH_I2C_Read... [10:50:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:50:58]Read from MH i2c: E2 [10:50:58]MH_I2C_Read... [10:50:58]Read from MH i2c: E2 0B 00 [10:50:58]MH_I2C_Read... [10:50:58]Read from MH i2c: E2 0B 00 D9 8C 00 39 1B F4 7C 2F A6 33 9D 90 00 4A [10:50:58]RAPDU: 39 1B F4 7C 2F A6 33 9D 90 00 [10:50:58]wFMCommunicate OK [10:50:58]SAM_PROTO_SignData done [10:50:58]FM_MakeSignedData done [10:50:58]CreateOFDProtocolMessage [10:50:58]wFMCommunicate request_size=4 [10:50:58]MH_SAM_APDU [10:50:58]CAPDU: 80 11 00 00 [10:50:58]Write to MH i2c: E2 08 00 DA 8C 80 11 00 00 00 00 00 00 E0 [10:50:58]Write i2c OK [10:50:58]MH_I2C_Read... [10:50:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:58]Read from MH i2c: E2 [10:50:58]MH_I2C_Read... [10:50:58]Read from MH i2c: E2 17 00 [10:50:58]MH_I2C_Read... [10:50:58]Read from MH i2c: E2 17 00 DA 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 2F [10:50:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:50:58]wFMCommunicate OK [10:50:58]CreateOFDProtocolMessage done [10:50:58]OFDSenderStorePacket 29188 [10:50:58]StoreOFDPacket docnum=29188 [10:50:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 96 2D 07 01 0A 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 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 62 00 00 00 F4 03 04 00 1A B5 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 04 72 00 00 35 04 06 00 DE 6A C2 B5 50 F4 39 1B F4 7C 2F A6 33 9D [10:50:58]CheckFolder [10:50:58]dirname=/storage/ofd_packets [10:50:58]CheckFolder done [10:50:58]ProducePacketName [10:50:58]name=ofd_packets/00029188 [10:50:58]NVStorageSaveData ofd_packets/00029188 [10:50:58]File name is /storage/ofd_packets/00029188 [10:50:58]Write 301 bytes [10:50:58]NVStorageSaveData done [10:50:58]OFDSenderStorePacket done [10:50:58]KKMCreateOFDPacket done [10:50:58]NVStorageSaveData kkm_last_timestamp [10:50:58]File name is /storage/kkm_last_timestamp [10:50:58]Write 4 bytes [10:50:58]NVStorageSaveData done [10:50:58]ExternCall_PrintAddStr [10:50:58]wPrintStart [10:50:58]Write to MH i2c: 01 00 00 DB 8C 67 [10:50:58]Write i2c OK [10:50:58]MH_I2C_Read... [10:50:58]Read from MH i2c: 01 [10:50:58]MH_I2C_Read... [10:50:58]Read from MH i2c: 01 07 00 [10:50:58]MH_I2C_Read... [10:50:58]Read from MH i2c: 01 07 00 DB 8C 00 00 00 00 00 FF 0F 7C [10:50:58]RasterBufferAndPrint [10:50:58]line Счет N : (1)347560 [10:50:58]line ИНН: 02508201610067 [10:50:58]line Контрольно-Кассовый Чек [10:50:58]line ПРОДАЖА [10:50:58]line ТРК (МРК, ГНК) : 32 [10:50:58]line Товар: 2710124130 [10:50:58]line Аи-92-К-5 [10:50:58]line 15.560 * 64.30 [10:50:58]line = 1000.51 [10:50:58]line НДС 12% НСП 1% [10:50:58]line > о реализуемом товаре [10:50:58]line ИТОГО: 1000.51 [10:50:58]line НСП 1% : 8.85 [10:50:58]line НДС 12% : 106.25 [10:50:58]line Наличными: 0.00 [10:50:58]line Безнал.: 1000.51 [10:50:58]line Место: АЗС № 108 "Партнер Нефть" [10:50:58]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:50:58]line СНО: Общий режим [10:50:58]line Чек 98 14.04.2024 10:51 [10:50:58]line Смена: 116 ФФД: 1.0 [10:50:58]line ЗНМ: 0300000027 [10:50:58]line РНМ: 0000138879044617 [10:50:58]line Версия ККМ: 001 [10:50:58]line Платежная система: О! деньги [10:50:58]line ФМ: 0000000000963154 [10:50:58]line ФД: 29188 [10:50:58]line ФПД: 244550114562292 [10:50:58]line 1/tax-web-control/client/api/v1/ticket?date=20240414T105106&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29188&fm=244550114562292&tin=02508201610067®Number=0000138879044617&sum=100051 [10:50:58]OFD Sender: Processing packet 29188 [packets to send 8, broken 7] [10:50:58]ProducePacketName [10:50:58]name=ofd_packets/00029188 [10:50:58]OFD Sender: To server: pG, [10:50:58]CommunicateWithHost lk.salyk.kg:30040 [10:50:58]ConnectInit lk.salyk.kg [10:50:58]written 0, free lines is 4095 [10:50:59]Connected sock=10 [10:50:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 96 2D 07 01 0A 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 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 62 00 00 00 F4 03 04 00 1A B5 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 04 72 00 00 35 04 06 00 DE 6A C2 B5 50 F4 39 1B F4 7C 2F A6 33 9D [10:50:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 B7 6F 47 00 31 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 39 36 33 31 35 34 10 04 04 00 04 72 00 00 F4 03 04 00 BE 5F 1B 66 B6 04 01 00 00 F5 88 CC EE 74 6B 7A 98 [10:50:59]CommunicateWithHost err = 0 [10:50:59]CheckOFDResponse [10:50:59]1017 (14) - 77093643461234 [10:50:59]1041 (16) - 0000000000963154 [10:50:59]1040 (4) - 29188 [10:50:59]1012 (4) - 14.04.2024 04:46 [10:50:59]1206 (1) - 0 [10:50:59]OFD Sender: Remove packet 29188 [10:50:59]ProducePacketName [10:50:59]name=ofd_packets/00029188 [10:50:59]NVStorageDeleteData [10:50:59]Write to MH i2c: 01 00 00 04 8D 91 [10:50:59]Write i2c OK [10:50:59]MH_I2C_Read... [10:50:59]Read from MH i2c: 01 [10:50:59]MH_I2C_Read... [10:50:59]Read from MH i2c: 01 07 00 [10:50:59]MH_I2C_Read... [10:50:59]Read from MH i2c: 01 07 00 04 8D 00 00 00 00 00 E0 0C 84 [10:50:59]RasterBufferAndPrint [10:50:59]line [10:50:59]line [10:50:59]line [10:50:59]line [10:50:59]line [10:50:59]written 0, free lines is 3302 [10:50:59]MH_Cut [10:50:59]Write to MH i2c: D1 01 00 0B 8D 01 6A [10:50:59]Write i2c OK [10:50:59]MH_I2C_Read... [10:50:59]Read from MH i2c: D1 [10:50:59]MH_I2C_Read... [10:50:59]Read from MH i2c: D1 01 00 [10:50:59]MH_I2C_Read... [10:50:59]Read from MH i2c: D1 01 00 0B 8D 00 69 [10:50:59]Write to MH i2c: 01 00 00 0C 8D 99 [10:50:59]Write i2c OK [10:50:59]MH_I2C_Read... [10:50:59]OFD Sender: No OFD packet to send [10:51:00]*** Cut start [10:51:00]*** Partial cut [10:51:00]*** CUTSNS_PIN = 1 [10:51:00]*** CUTSNS_PIN = 0 [10:51:00]*** Brake cut motor [10:51:00]Read from MH i2c: 01 [10:51:00]MH_I2C_Read... [10:51:00]*** Stop cut motor [10:51:00]*** Cut end [10:51:00]Read from MH i2c: 01 07 00 [10:51:00]MH_I2C_Read... [10:51:00]Read from MH i2c: 01 07 00 0C 8D 00 00 00 00 00 FF 0F AE [10:51:00]process_action close_receipt done [10:51:00]requested_data is exist [10:51:00]produce_requested_data [10:51:00]requested_item fm.sn is exist - process it [10:51:00]wFMCommunicate request_size=4 [10:51:00]MH_SAM_APDU [10:51:00]CAPDU: 80 11 00 00 [10:51:00]Write to MH i2c: E2 08 00 0D 8D 80 11 00 00 00 00 00 00 14 [10:51:00]Write i2c OK [10:51:00]MH_I2C_Read... [10:51:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:51:00]Read from MH i2c: E2 [10:51:00]MH_I2C_Read... [10:51:00]Read from MH i2c: E2 17 00 [10:51:00]MH_I2C_Read... [10:51:00]Read from MH i2c: E2 17 00 0D 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 63 [10:51:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:51:00]wFMCommunicate OK [10:51:00]requested_item fd.num is exist - process it [10:51:00]SAM_PROTO_GetFieldsCounters [10:51:00]wFMCommunicate request_size=4 [10:51:00]MH_SAM_APDU [10:51:00]CAPDU: 80 13 00 00 [10:51:00]Write to MH i2c: E2 08 00 0E 8D 80 13 00 00 00 00 00 00 17 [10:51:00]Write i2c OK [10:51:00]MH_I2C_Read... [10:51:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:51:00]Read from MH i2c: E2 [10:51:00]MH_I2C_Read... [10:51:00]Read from MH i2c: E2 62 00 [10:51:00]MH_I2C_Read... [10:51:01]Read from MH i2c: E2 62 00 0E 8D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 04 72 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 65 [10:51:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 04 72 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:51:01]wFMCommunicate OK [10:51:01]SAM_PROTO_GetFieldsCounters done [10:51:01]requested_item shift.num is exist - process it [10:51:01]requested_item shift.opened is exist - process it [10:51:01]req_shift_opened [10:51:01]FM_GetShiftState [10:51:01]SAM_PROTO_GetShiftState [10:51:01]wFMCommunicate request_size=4 [10:51:01]MH_SAM_APDU [10:51:01]CAPDU: 80 13 01 00 [10:51:01]Write to MH i2c: E2 08 00 0F 8D 80 13 01 00 00 00 00 00 19 [10:51:01]Write i2c OK [10:51:01]MH_I2C_Read... [10:51:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:51:01]Read from MH i2c: E2 [10:51:01]MH_I2C_Read... [10:51:01]Read from MH i2c: E2 0E 00 [10:51:01]MH_I2C_Read... [10:51:01]Read from MH i2c: E2 0E 00 0F 8D 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 C5 [10:51:01]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [10:51:01]wFMCommunicate OK [10:51:01]SAM_PROTO_GetShiftState done [10:51:01]FM_GetShiftState done [10:51:01]req_shift_opened done [10:51:01]requested_item shift.open_date is exist - process it [10:51:01]req_shift_open_date [10:51:01]req_shift_open_date done [10:51:01]produce_requested_data done [10:51:01]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29188,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [10:51:01]process_action_free close_receipt [10:51:01]json_value_free [10:51:01]json_value_free done [10:51:01]process_json_proto returns [10:51:01]Send response to host [10:51:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29188,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [10:51:01]free response buf [10:51:01]execute_script done [10:51:01]execute_script returns [10:51:01]free content buf [10:51:01]Sock 7.Close socket [10:51:01]Sock 7.Thread stoped [10:51:04]OFD Sender: No OFD packet to send [10:51:09]OFD Sender: No OFD packet to send [10:51:14]OFD Sender: No OFD packet to send [10:51:19]OFD Sender: No OFD packet to send [10:51:24]OFD Sender: No OFD packet to send [10:51:29]OFD Sender: No OFD packet to send [10:51:34]OFD Sender: No OFD packet to send [10:51:39]OFD Sender: No OFD packet to send [10:51:44]OFD Sender: No OFD packet to send [10:51:49]OFD Sender: No OFD packet to send [10:51:54]OFD Sender: No OFD packet to send [10:51:59]OFD Sender: No OFD packet to send [10:52:04]OFD Sender: No OFD packet to send [10:52:09]OFD Sender: No OFD packet to send [10:52:14]OFD Sender: No OFD packet to send [10:52:19]OFD Sender: No OFD packet to send [10:52:24]OFD Sender: No OFD packet to send [10:52:29]OFD Sender: No OFD packet to send [10:52:34]OFD Sender: No OFD packet to send [10:52:39]OFD Sender: No OFD packet to send [10:52:44]OFD Sender: No OFD packet to send [10:52:49]OFD Sender: No OFD packet to send [10:52:54]OFD Sender: No OFD packet to send [10:52:59]OFD Sender: No OFD packet to send [10:53:04]OFD Sender: No OFD packet to send [10:53:09]OFD Sender: No OFD packet to send [10:53:14]OFD Sender: No OFD packet to send [10:53:19]OFD Sender: No OFD packet to send [10:53:24]OFD Sender: No OFD packet to send [10:53:29]OFD Sender: No OFD packet to send [10:53:34]OFD Sender: No OFD packet to send [10:53:39]OFD Sender: No OFD packet to send [10:53:44]OFD Sender: No OFD packet to send [10:53:49]OFD Sender: No OFD packet to send [10:53:54]OFD Sender: No OFD packet to send [10:53:59]OFD Sender: No OFD packet to send [10:54:04]OFD Sender: No OFD packet to send [10:54:09]OFD Sender: No OFD packet to send [10:54:14]OFD Sender: No OFD packet to send [10:54:19]OFD Sender: No OFD packet to send [10:54:24]OFD Sender: No OFD packet to send [10:54:29]OFD Sender: No OFD packet to send [10:54:34]OFD Sender: No OFD packet to send [10:54:39]OFD Sender: No OFD packet to send [10:54:44]OFD Sender: No OFD packet to send [10:54:49]OFD Sender: No OFD packet to send [10:54:54]OFD Sender: No OFD packet to send [10:54:59]OFD Sender: No OFD packet to send [10:55:04]OFD Sender: No OFD packet to send [10:55:09]OFD Sender: No OFD packet to send [10:55:14]OFD Sender: No OFD packet to send [10:55:19]OFD Sender: No OFD packet to send [10:55:24]OFD Sender: No OFD packet to send [10:55:29]OFD Sender: No OFD packet to send [10:55:34]OFD Sender: No OFD packet to send [10:55:39]OFD Sender: No OFD packet to send [10:55:44]OFD Sender: No OFD packet to send [10:55:49]OFD Sender: No OFD packet to send [10:55:54]OFD Sender: No OFD packet to send [10:55:59]OFD Sender: No OFD packet to send [10:56:04]OFD Sender: No OFD packet to send [10:56:09]OFD Sender: No OFD packet to send [10:56:12]accept exits with 9 [10:56:12]New connection [10:56:12]New thread 3066785124 created [10:56:12]Thread 3066928484 joined [10:56:12]Waiting for new connection... [10:56:12] Sock 9.Parse request [10:56:12]Sock 9.Check first char [10:56:12]Sock 9.First char is OK [10:56:12]request: POST /json_proto HTTP/1.0 [10:56:12]Method: POST [10:56:12]URL: /json_proto [10:56:12]Method is POST - this is cgi request [10:56:12]url: /json_proto [10:56:12]query_string will be loaded in cgi processing [10:56:12]execute_cgi json_proto POST (null) [10:56:12]execute_cgi path=json_proto method=POST [10:56:12]POST find Content-Length [10:56:12]Host: 172.17.33.3:8080 [10:56:12]Content-Length: 801 [10:56:12]Content-Type: application/json [10:56:12] [10:56:12]POST finish read [10:56:12]Found Content-Length = 801 [10:56:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347561", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 18.380, "sum" : 1200.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1200.21 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:56:12]execute_script... [10:56: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)347561", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 18.380, "sum" : 1200.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1200.21 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:56:12]POST & json_proto [10:56:12]process_json_proto [10:56:12]json parsed OK: [10:56:12]protocol is kg_v1.0 [10:56:12]action value=close_receipt [10:56:12]process_action close_receipt [10:56:12]cmd_close_receipt [10:56:12]MH_GetDate [10:56:12]Write to MH i2c: F0 00 00 10 8D 8C [10:56:12]Write i2c OK [10:56:12]MH_I2C_Read... [10:56:12]Read from MH i2c: F0 [10:56:12]MH_I2C_Read... [10:56:12]Read from MH i2c: F0 09 00 [10:56:12]MH_I2C_Read... [10:56:12]Read from MH i2c: F0 09 00 10 8D 00 56 B6 1B 66 23 5B 8F 65 94 [10:56:12]GetLastDocTimeStamp 1713091866 [10:56:12]current date 1713092182 [10:56:12]FM_GetShiftState [10:56:12]SAM_PROTO_GetShiftState [10:56:12]wFMCommunicate request_size=4 [10:56:12]MH_SAM_APDU [10:56:12]CAPDU: 80 13 01 00 [10:56:12]Write to MH i2c: E2 08 00 11 8D 80 13 01 00 00 00 00 00 1B [10:56:12]Write i2c OK [10:56:12]MH_I2C_Read... [10:56:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:56:12]Read from MH i2c: E2 [10:56:12]MH_I2C_Read... [10:56:12]Read from MH i2c: E2 0E 00 [10:56:12]MH_I2C_Read... [10:56:12]Read from MH i2c: E2 0E 00 11 8D 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 C7 [10:56:12]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [10:56:12]wFMCommunicate OK [10:56:12]SAM_PROTO_GetShiftState done [10:56:12]FM_GetShiftState done [10:56:12]opened in 1713053951 [10:56:12]opened+sec_in_day 1713140351 [10:56:12]quantity*price = 120021 [10:56:12]sum+1 = 120022 [10:56:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1200.21 НСП 1% : 10.62 НДС 12% : 127.46 Наличными: 0.00 Безнал.: 1200.21 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 99 14.04.2024 10:56 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29189 ФПД: 254024424976972 1/tax-web-control/client/api/v1/ticket?date=20240414T105622&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29189&fm=254024424976972&tin=02508201610067®Number=0000138879044617&sum=120021 [10:56:13]StoreToDocumentArchive [10:56:13]shift 116 fd 29189 [10:56:13]save to /storage/0116/doc_00029189 [10:56:13]save last doc name /storage/0116/doc_00029189 to /storage/kkm_last_doc_name [10:56:13]save OK [10:56:13]Clear old archive folders... [10:56:13]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:56:13]tlvbuf is 012086E0 [10:56:13]SAM_PROTO_ClearQueue [10:56:13]wFMCommunicate request_size=4 [10:56:13]MH_SAM_APDU [10:56:13]CAPDU: 80 09 00 00 [10:56:13]Write to MH i2c: E2 08 00 1E 8D 80 09 00 00 00 00 00 00 1D [10:56:13]Write i2c OK [10:56:13]MH_I2C_Read... [10:56:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:56:13]Read from MH i2c: E2 [10:56:13]MH_I2C_Read... [10:56:13]Read from MH i2c: E2 03 00 [10:56:13]MH_I2C_Read... [10:56:13]Read from MH i2c: E2 03 00 1E 8D 00 90 00 1F [10:56:13]RAPDU: 90 00 [10:56:13]wFMCommunicate OK [10:56:13]SAM_PROTO_ClearQueue done [10:56:13]KKMCreateOFDPacket [10:56:13]OFDProtocolAddRootSTLVToBuf [10:56:13]FM_MakeSignedData [10:56:13]FM_MakeSignedData [10:56:13]SAM_PROTO_SignData [10:56:13]wFMCommunicate request_size=4 [10:56:13]MH_SAM_APDU [10:56:13]CAPDU: 80 0D 01 02 [10:56:13]Write to MH i2c: E2 08 00 1F 8D 80 0D 01 02 00 00 00 00 25 [10:56:13]Write i2c OK [10:56:13]MH_I2C_Read... [10:56:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:56:13]Read from MH i2c: E2 [10:56:13]MH_I2C_Read... [10:56:13]Read from MH i2c: E2 03 00 [10:56:13]MH_I2C_Read... [10:56:13]Read from MH i2c: E2 03 00 1F 8D 00 90 00 20 [10:56:13]RAPDU: 90 00 [10:56:13]wFMCommunicate OK [10:56:13]wFMCommunicate request_size=255 [10:56:13]MH_SAM_APDU [10:56:13]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 47 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 D5 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D5 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 CA 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D5 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 56 B6 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 05 72 00 00 35 04 06 00 [10:56:13]Write to MH i2c: E2 02 01 20 8D 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 47 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 D5 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D5 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 CA 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D5 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 56 B6 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 05 72 00 00 35 04 06 00 00 00 A2 [10:56:13]Write i2c OK [10:56:13]MH_I2C_Read... [10:56:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:56:14]Read from MH i2c: E2 [10:56:14]MH_I2C_Read... [10:56:14]Read from MH i2c: E2 03 00 [10:56:14]MH_I2C_Read... [10:56:14]Read from MH i2c: E2 03 00 20 8D 00 90 00 21 [10:56:14]RAPDU: 90 00 [10:56:14]wFMCommunicate OK [10:56:14]wFMCommunicate request_size=11 [10:56:14]MH_SAM_APDU [10:56:14]CAPDU: 80 0D 02 02 06 E7 08 AB 9D 72 4C [10:56:14]Write to MH i2c: E2 0E 00 21 8D 80 0D 02 02 06 00 E7 08 AB 9D 72 4C 00 00 29 [10:56:14]Write i2c OK [10:56:14]MH_I2C_Read... [10:56:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:56:14]Read from MH i2c: E2 [10:56:14]MH_I2C_Read... [10:56:14]Read from MH i2c: E2 03 00 [10:56:14]MH_I2C_Read... [10:56:14]Read from MH i2c: E2 03 00 21 8D 00 90 00 22 [10:56:14]RAPDU: 90 00 [10:56:14]wFMCommunicate OK [10:56:14]wFMCommunicate request_size=4 [10:56:14]MH_SAM_APDU [10:56:14]CAPDU: 80 0D 03 02 [10:56:14]Write to MH i2c: E2 08 00 22 8D 80 0D 03 02 00 00 00 00 2A [10:56:14]Write i2c OK [10:56:14]MH_I2C_Read... [10:56:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:56:14]Read from MH i2c: E2 [10:56:14]MH_I2C_Read... [10:56:14]Read from MH i2c: E2 0B 00 [10:56:14]MH_I2C_Read... [10:56:14]Read from MH i2c: E2 0B 00 22 8D 00 F9 1F 6E 39 B5 F0 8C 09 90 00 24 [10:56:14]RAPDU: F9 1F 6E 39 B5 F0 8C 09 90 00 [10:56:14]wFMCommunicate OK [10:56:14]SAM_PROTO_SignData done [10:56:14]FM_MakeSignedData done [10:56:14]CreateOFDProtocolMessage [10:56:14]wFMCommunicate request_size=4 [10:56:14]MH_SAM_APDU [10:56:14]CAPDU: 80 11 00 00 [10:56:14]Write to MH i2c: E2 08 00 23 8D 80 11 00 00 00 00 00 00 2A [10:56:14]Write i2c OK [10:56:14]MH_I2C_Read... [10:56:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:56:14]Read from MH i2c: E2 [10:56:14]MH_I2C_Read... [10:56:14]Read from MH i2c: E2 17 00 [10:56:14]MH_I2C_Read... [10:56:14]Read from MH i2c: E2 17 00 23 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 79 [10:56:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:56:14]wFMCommunicate OK [10:56:14]CreateOFDProtocolMessage done [10:56:14]OFDSenderStorePacket 29189 [10:56:14]StoreOFDPacket docnum=29189 [10:56:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 3E 2E 08 01 C0 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 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 47 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 D5 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D5 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 CA 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D5 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 56 B6 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 05 72 00 00 35 04 06 00 E7 08 AB 9D 72 4C F9 1F 6E 39 B5 F0 8C 09 [10:56:14]CheckFolder [10:56:14]dirname=/storage/ofd_packets [10:56:14]CheckFolder done [10:56:14]ProducePacketName [10:56:14]name=ofd_packets/00029189 [10:56:14]NVStorageSaveData ofd_packets/00029189 [10:56:14]File name is /storage/ofd_packets/00029189 [10:56:14]Write 302 bytes [10:56:14]NVStorageSaveData done [10:56:14]OFDSenderStorePacket done [10:56:14]KKMCreateOFDPacket done [10:56:14]NVStorageSaveData kkm_last_timestamp [10:56:14]File name is /storage/kkm_last_timestamp [10:56:14]Write 4 bytes [10:56:14]NVStorageSaveData done [10:56:14]ExternCall_PrintAddStr [10:56:14]wPrintStart [10:56:14]Write to MH i2c: 01 00 00 24 8D B1 [10:56:14]Write i2c OK [10:56:14]MH_I2C_Read... [10:56:14]Read from MH i2c: 01 [10:56:14]MH_I2C_Read... [10:56:14]Read from MH i2c: 01 07 00 [10:56:14]MH_I2C_Read... [10:56:14]Read from MH i2c: 01 07 00 24 8D 00 00 00 00 00 FF 0F C6 [10:56:14]RasterBufferAndPrint [10:56:14]line Счет N : (1)347561 [10:56:14]line ИНН: 02508201610067 [10:56:14]line Контрольно-Кассовый Чек [10:56:14]line ПРОДАЖА [10:56:14]line ТРК (МРК, ГНК) : 22 [10:56:14]line Товар: 2710124130 [10:56:14]line SUPER-92-К-5 [10:56:14]line 18.380 * 65.30 [10:56:14]line = 1200.21 [10:56:14]line НДС 12% НСП 1% [10:56:14]line > о реализуемом товаре [10:56:14]line ИТОГО: 1200.21 [10:56:14]line НСП 1% : 10.62 [10:56:14]line НДС 12% : 127.46 [10:56:14]line Наличными: 0.00 [10:56:14]line Безнал.: 1200.21 [10:56:14]line Место: АЗС № 108 "Партнер Нефть" [10:56:14]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:56:14]line СНО: Общий режим [10:56:14]line Чек 99 14.04.2024 10:56 [10:56:14]line Смена: 116 ФФД: 1.0 [10:56:14]line ЗНМ: 0300000027 [10:56:14]line РНМ: 0000138879044617 [10:56:14]line Версия ККМ: 001 [10:56:14]line Платежная система: О! деньги [10:56:14]line ФМ: 0000000000963154 [10:56:14]line ФД: 29189 [10:56:14]line ФПД: 254024424976972 [10:56:14]line 1/tax-web-control/client/api/v1/ticket?date=20240414T105622&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29189&fm=254024424976972&tin=02508201610067®Number=0000138879044617&sum=120021 [10:56:14]OFD Sender: Processing packet 29189 [packets to send 8, broken 7] [10:56:14]ProducePacketName [10:56:14]name=ofd_packets/00029189 [10:56:14]OFD Sender: To server: pG, [10:56:14]CommunicateWithHost lk.salyk.kg:30040 [10:56:14]ConnectInit lk.salyk.kg [10:56:14]written 0, free lines is 4095 [10:56:14]Connected sock=10 [10:56:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 3E 2E 08 01 C0 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 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 47 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 D5 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D5 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 CA 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D5 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 56 B6 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 05 72 00 00 35 04 06 00 E7 08 AB 9D 72 4C F9 1F 6E 39 B5 F0 8C 09 [10:56:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 F8 EA 47 00 6A 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 05 72 00 00 F4 03 04 00 FA 60 1B 66 B6 04 01 00 00 10 97 94 5E 51 33 DE 50 [10:56:14]CommunicateWithHost err = 0 [10:56:14]CheckOFDResponse [10:56:14]1017 (14) - 77093643461234 [10:56:14]1041 (16) - 0000000000963154 [10:56:14]1040 (4) - 29189 [10:56:14]1012 (4) - 14.04.2024 04:52 [10:56:14]1206 (1) - 0 [10:56:14]OFD Sender: Remove packet 29189 [10:56:14]ProducePacketName [10:56:14]name=ofd_packets/00029189 [10:56:14]NVStorageDeleteData [10:56:14]Write to MH i2c: 01 00 00 4D 8D DA [10:56:14]Write i2c OK [10:56:14]MH_I2C_Read... [10:56:14]Read from MH i2c: 01 [10:56:14]MH_I2C_Read... [10:56:14]Read from MH i2c: 01 07 00 [10:56:14]MH_I2C_Read... [10:56:14]Read from MH i2c: 01 07 00 4D 8D 00 00 00 00 00 F0 0C DD [10:56:14]RasterBufferAndPrint [10:56:14]line [10:56:14]line [10:56:14]line [10:56:14]line [10:56:14]line [10:56:14]written 0, free lines is 3319 [10:56:15]MH_Cut [10:56:15]Write to MH i2c: D1 01 00 54 8D 01 B3 [10:56:15]Write i2c OK [10:56:15]MH_I2C_Read... [10:56:15]Read from MH i2c: D1 [10:56:15]MH_I2C_Read... [10:56:15]Read from MH i2c: D1 01 00 [10:56:15]MH_I2C_Read... [10:56:15]Read from MH i2c: D1 01 00 54 8D 00 B2 [10:56:15]Write to MH i2c: 01 00 00 55 8D E2 [10:56:15]Write i2c OK [10:56:15]MH_I2C_Read... [10:56:15]OFD Sender: No OFD packet to send [10:56:15]*** Cut start [10:56:15]*** Partial cut [10:56:15]*** CUTSNS_PIN = 1 [10:56:15]*** CUTSNS_PIN = 0 [10:56:16]*** Brake cut motor [10:56:16]Read from MH i2c: 01 [10:56:16]MH_I2C_Read... [10:56:16]*** Stop cut motor [10:56:16]*** Cut end [10:56:16]Read from MH i2c: 01 07 00 [10:56:16]MH_I2C_Read... [10:56:16]Read from MH i2c: 01 07 00 55 8D 00 00 00 00 00 FF 0F F7 [10:56:16]process_action close_receipt done [10:56:16]requested_data is exist [10:56:16]produce_requested_data [10:56:16]requested_item fm.sn is exist - process it [10:56:16]wFMCommunicate request_size=4 [10:56:16]MH_SAM_APDU [10:56:16]CAPDU: 80 11 00 00 [10:56:16]Write to MH i2c: E2 08 00 56 8D 80 11 00 00 00 00 00 00 5D [10:56:16]Write i2c OK [10:56:16]MH_I2C_Read... [10:56:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:56:16]Read from MH i2c: E2 [10:56:16]MH_I2C_Read... [10:56:16]Read from MH i2c: E2 17 00 [10:56:16]MH_I2C_Read... [10:56:16]Read from MH i2c: E2 17 00 56 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 AC [10:56:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:56:16]wFMCommunicate OK [10:56:16]requested_item fd.num is exist - process it [10:56:16]SAM_PROTO_GetFieldsCounters [10:56:16]wFMCommunicate request_size=4 [10:56:16]MH_SAM_APDU [10:56:16]CAPDU: 80 13 00 00 [10:56:16]Write to MH i2c: E2 08 00 57 8D 80 13 00 00 00 00 00 00 60 [10:56:16]Write i2c OK [10:56:16]MH_I2C_Read... [10:56:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:56:16]Read from MH i2c: E2 [10:56:16]MH_I2C_Read... [10:56:16]Read from MH i2c: E2 62 00 [10:56:16]MH_I2C_Read... [10:56:16]Read from MH i2c: E2 62 00 57 8D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 05 72 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 B2 [10:56:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 05 72 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:56:16]wFMCommunicate OK [10:56:16]SAM_PROTO_GetFieldsCounters done [10:56:16]requested_item shift.num is exist - process it [10:56:16]requested_item shift.opened is exist - process it [10:56:16]req_shift_opened [10:56:16]FM_GetShiftState [10:56:16]SAM_PROTO_GetShiftState [10:56:16]wFMCommunicate request_size=4 [10:56:16]MH_SAM_APDU [10:56:16]CAPDU: 80 13 01 00 [10:56:16]Write to MH i2c: E2 08 00 58 8D 80 13 01 00 00 00 00 00 62 [10:56:16]Write i2c OK [10:56:16]MH_I2C_Read... [10:56:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:56:16]Read from MH i2c: E2 [10:56:16]MH_I2C_Read... [10:56:16]Read from MH i2c: E2 0E 00 [10:56:16]MH_I2C_Read... [10:56:16]Read from MH i2c: E2 0E 00 58 8D 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 0E [10:56:16]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [10:56:16]wFMCommunicate OK [10:56:16]SAM_PROTO_GetShiftState done [10:56:16]FM_GetShiftState done [10:56:16]req_shift_opened done [10:56:16]requested_item shift.open_date is exist - process it [10:56:16]req_shift_open_date [10:56:16]req_shift_open_date done [10:56:16]produce_requested_data done [10:56:16]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29189,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [10:56:16]process_action_free close_receipt [10:56:16]json_value_free [10:56:16]json_value_free done [10:56:16]process_json_proto returns [10:56:16]Send response to host [10:56:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29189,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [10:56:16]free response buf [10:56:16]execute_script done [10:56:16]execute_script returns [10:56:16]free content buf [10:56:16]Sock 9.Close socket [10:56:16]Sock 9.Thread stoped [10:56:20]OFD Sender: No OFD packet to send [10:56:25]OFD Sender: No OFD packet to send [10:56:30]OFD Sender: No OFD packet to send [10:56:35]OFD Sender: No OFD packet to send [10:56:40]OFD Sender: No OFD packet to send [10:56:45]OFD Sender: No OFD packet to send [10:56:50]OFD Sender: No OFD packet to send [10:56:55]OFD Sender: No OFD packet to send [10:57:00]OFD Sender: No OFD packet to send [10:57:05]OFD Sender: No OFD packet to send [10:57:10]OFD Sender: No OFD packet to send [10:57:15]OFD Sender: No OFD packet to send [10:57:20]OFD Sender: No OFD packet to send [10:57:24]accept exits with 7 [10:57:24]New connection [10:57:24]New thread 3066928484 created [10:57:24]Thread 3066785124 joined [10:57:24]Waiting for new connection... [10:57:24] Sock 7.Parse request [10:57:24]Sock 7.Check first char [10:57:24]Sock 7.First char is OK [10:57:24]request: POST /json_proto HTTP/1.0 [10:57:24]Method: POST [10:57:24]URL: /json_proto [10:57:24]Method is POST - this is cgi request [10:57:24]url: /json_proto [10:57:24]query_string will be loaded in cgi processing [10:57:24]execute_cgi json_proto POST (null) [10:57:24]execute_cgi path=json_proto method=POST [10:57:24]POST find Content-Length [10:57:24]Host: 172.17.33.3:8080 [10:57:24]Content-Length: 833 [10:57:24]Content-Type: application/json [10:57:24] [10:57:24]POST finish read [10:57:24]Found Content-Length = 833 [10:57:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347562", "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.190, "sum" : 600.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 600.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:57:24]execute_script... [10:57: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)347562", "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.190, "sum" : 600.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 600.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:57:24]POST & json_proto [10:57:24]process_json_proto [10:57:24]json parsed OK: [10:57:24]protocol is kg_v1.0 [10:57:24]action value=close_receipt [10:57:24]process_action close_receipt [10:57:24]cmd_close_receipt [10:57:24]MH_GetDate [10:57:24]Write to MH i2c: F0 00 00 59 8D D5 [10:57:24]Write i2c OK [10:57:24]MH_I2C_Read... [10:57:24]Read from MH i2c: F0 [10:57:24]MH_I2C_Read... [10:57:24]Read from MH i2c: F0 09 00 [10:57:24]MH_I2C_Read... [10:57:24]Read from MH i2c: F0 09 00 59 8D 00 9E B6 1B 66 23 5B 8F 65 25 [10:57:24]GetLastDocTimeStamp 1713092182 [10:57:24]current date 1713092254 [10:57:24]FM_GetShiftState [10:57:24]SAM_PROTO_GetShiftState [10:57:24]wFMCommunicate request_size=4 [10:57:24]MH_SAM_APDU [10:57:24]CAPDU: 80 13 01 00 [10:57:24]Write to MH i2c: E2 08 00 5A 8D 80 13 01 00 00 00 00 00 64 [10:57:24]Write i2c OK [10:57:24]MH_I2C_Read... [10:57:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:57:24]Read from MH i2c: E2 [10:57:24]MH_I2C_Read... [10:57:24]Read from MH i2c: E2 0E 00 [10:57:24]MH_I2C_Read... [10:57:24]Read from MH i2c: E2 0E 00 5A 8D 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 10 [10:57:24]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [10:57:24]wFMCommunicate OK [10:57:24]SAM_PROTO_GetShiftState done [10:57:24]FM_GetShiftState done [10:57:24]opened in 1713053951 [10:57:24]opened+sec_in_day 1713140351 [10:57:24]quantity*price = 60010 [10:57:24]sum+1 = 60012 [10:57:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.11 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 0.00 Безнал.: 600.11 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 100 14.04.2024 10:57 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 29190 ФПД: 177267855258726 1/tax-web-control/client/api/v1/ticket?date=20240414T105734&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29190&fm=177267855258726&tin=02508201610067®Number=0000138879044617&sum=60011 [10:57:25]StoreToDocumentArchive [10:57:25]shift 116 fd 29190 [10:57:25]save to /storage/0116/doc_00029190 [10:57:25]save last doc name /storage/0116/doc_00029190 to /storage/kkm_last_doc_name [10:57:25]save OK [10:57:25]Clear old archive folders... [10:57:25]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:57:25]tlvbuf is 01230190 [10:57:25]SAM_PROTO_ClearQueue [10:57:25]wFMCommunicate request_size=4 [10:57:25]MH_SAM_APDU [10:57:25]CAPDU: 80 09 00 00 [10:57:25]Write to MH i2c: E2 08 00 67 8D 80 09 00 00 00 00 00 00 66 [10:57:25]Write i2c OK [10:57:25]MH_I2C_Read... [10:57:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:57:25]Read from MH i2c: E2 [10:57:25]MH_I2C_Read... [10:57:25]Read from MH i2c: E2 03 00 [10:57:25]MH_I2C_Read... [10:57:25]Read from MH i2c: E2 03 00 67 8D 00 90 00 68 [10:57:25]RAPDU: 90 00 [10:57:25]wFMCommunicate OK [10:57:25]SAM_PROTO_ClearQueue done [10:57:25]KKMCreateOFDPacket [10:57:25]OFDProtocolAddRootSTLVToBuf [10:57:25]FM_MakeSignedData [10:57:25]FM_MakeSignedData [10:57:25]SAM_PROTO_SignData [10:57:25]wFMCommunicate request_size=4 [10:57:25]MH_SAM_APDU [10:57:25]CAPDU: 80 0D 01 02 [10:57:25]Write to MH i2c: E2 08 00 68 8D 80 0D 01 02 00 00 00 00 6E [10:57:25]Write i2c OK [10:57:25]MH_I2C_Read... [10:57:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:57:26]Read from MH i2c: E2 [10:57:26]MH_I2C_Read... [10:57:26]Read from MH i2c: E2 03 00 [10:57:26]MH_I2C_Read... [10:57:26]Read from MH i2c: E2 03 00 68 8D 00 90 00 69 [10:57:26]RAPDU: 90 00 [10:57:26]wFMCommunicate OK [10:57:26]wFMCommunicate request_size=255 [10:57:26]MH_SAM_APDU [10:57: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 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 6B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 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 E5 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 9E B6 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 06 72 00 00 35 04 06 00 [10:57:26]Write to MH i2c: E2 02 01 69 8D 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 6B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 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 E5 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 9E B6 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 06 72 00 00 35 04 06 00 00 00 19 [10:57:26]Write i2c OK [10:57:26]MH_I2C_Read... [10:57:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:57:26]Read from MH i2c: E2 [10:57:26]MH_I2C_Read... [10:57:26]Read from MH i2c: E2 03 00 [10:57:26]MH_I2C_Read... [10:57:26]Read from MH i2c: E2 03 00 69 8D 00 90 00 6A [10:57:26]RAPDU: 90 00 [10:57:26]wFMCommunicate OK [10:57:26]wFMCommunicate request_size=11 [10:57:26]MH_SAM_APDU [10:57:26]CAPDU: 80 0D 02 02 06 A1 39 63 8A F4 66 [10:57:26]Write to MH i2c: E2 0E 00 6A 8D 80 0D 02 02 06 00 A1 39 63 8A F4 66 00 00 9E [10:57:26]Write i2c OK [10:57:26]MH_I2C_Read... [10:57:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:57:26]Read from MH i2c: E2 [10:57:26]MH_I2C_Read... [10:57:26]Read from MH i2c: E2 03 00 [10:57:26]MH_I2C_Read... [10:57:26]Read from MH i2c: E2 03 00 6A 8D 00 90 00 6B [10:57:26]RAPDU: 90 00 [10:57:26]wFMCommunicate OK [10:57:26]wFMCommunicate request_size=4 [10:57:26]MH_SAM_APDU [10:57:26]CAPDU: 80 0D 03 02 [10:57:26]Write to MH i2c: E2 08 00 6B 8D 80 0D 03 02 00 00 00 00 73 [10:57:26]Write i2c OK [10:57:26]MH_I2C_Read... [10:57:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:57:26]Read from MH i2c: E2 [10:57:26]MH_I2C_Read... [10:57:26]Read from MH i2c: E2 0B 00 [10:57:26]MH_I2C_Read... [10:57:26]Read from MH i2c: E2 0B 00 6B 8D 00 41 0A DD 60 5A F2 6B 6B 90 00 1E [10:57:26]RAPDU: 41 0A DD 60 5A F2 6B 6B 90 00 [10:57:26]wFMCommunicate OK [10:57:26]SAM_PROTO_SignData done [10:57:26]FM_MakeSignedData done [10:57:26]CreateOFDProtocolMessage [10:57:26]wFMCommunicate request_size=4 [10:57:26]MH_SAM_APDU [10:57:26]CAPDU: 80 11 00 00 [10:57:26]Write to MH i2c: E2 08 00 6C 8D 80 11 00 00 00 00 00 00 73 [10:57:26]Write i2c OK [10:57:26]MH_I2C_Read... [10:57:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:57:26]Read from MH i2c: E2 [10:57:26]MH_I2C_Read... [10:57:26]Read from MH i2c: E2 17 00 [10:57:26]MH_I2C_Read... [10:57:26]Read from MH i2c: E2 17 00 6C 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C2 [10:57:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:57:26]wFMCommunicate OK [10:57:26]CreateOFDProtocolMessage done [10:57:26]OFDSenderStorePacket 29190 [10:57:26]StoreOFDPacket docnum=29190 [10:57:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 B1 45 08 01 CF 9B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 6B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 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 E5 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 9E B6 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 06 72 00 00 35 04 06 00 A1 39 63 8A F4 66 41 0A DD 60 5A F2 6B 6B [10:57:26]CheckFolder [10:57:26]dirname=/storage/ofd_packets [10:57:26]CheckFolder done [10:57:26]ProducePacketName [10:57:26]name=ofd_packets/00029190 [10:57:26]NVStorageSaveData ofd_packets/00029190 [10:57:26]File name is /storage/ofd_packets/00029190 [10:57:26]Write 302 bytes [10:57:26]NVStorageSaveData done [10:57:26]OFDSenderStorePacket done [10:57:26]KKMCreateOFDPacket done [10:57:26]NVStorageSaveData kkm_last_timestamp [10:57:26]File name is /storage/kkm_last_timestamp [10:57:26]Write 4 bytes [10:57:26]NVStorageSaveData done [10:57:26]ExternCall_PrintAddStr [10:57:26]wPrintStart [10:57:26]Write to MH i2c: 01 00 00 6D 8D FA [10:57:26]Write i2c OK [10:57:26]MH_I2C_Read... [10:57:26]Read from MH i2c: 01 [10:57:26]MH_I2C_Read... [10:57:26]Read from MH i2c: 01 07 00 [10:57:26]MH_I2C_Read... [10:57:26]Read from MH i2c: 01 07 00 6D 8D 00 00 00 00 00 FF 0F 0F [10:57:26]RasterBufferAndPrint [10:57:26]line Счет N : (1)347562 [10:57:26]line ИНН: 02508201610067 [10:57:26]line Контрольно-Кассовый Чек [10:57:26]line ПРОДАЖА [10:57:26]line ТРК (МРК, ГНК) : 41 [10:57:26]line Товар: 2710124130 [10:57:26]line SUPER-92-К-5 [10:57:26]line 9.190 * 65.30 [10:57:26]line = 600.11 [10:57:26]line НДС 12% НСП 1% [10:57:26]line > о реализуемом товаре [10:57:26]line ИТОГО: 600.11 [10:57:26]line НСП 1% : 5.31 [10:57:26]line НДС 12% : 63.73 [10:57:26]line Наличными: 0.00 [10:57:26]line Безнал.: 600.11 [10:57:26]line Место: АЗС № 108 "Партнер Нефть" [10:57:26]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:57:26]line СНО: Общий режим [10:57:26]line Чек 100 14.04.2024 10:57 [10:57:26]line Смена: 116 ФФД: 1.0 [10:57:26]line ЗНМ: 0300000027 [10:57:26]line РНМ: 0000138879044617 [10:57:26]line Версия ККМ: 001 [10:57:26]line Платежная система: АКБ Кыргызстан [10:57:26]line ФМ: 0000000000963154 [10:57:26]line ФД: 29190 [10:57:26]line ФПД: 177267855258726 [10:57:26]line 1/tax-web-control/client/api/v1/ticket?date=20240414T105734&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29190&fm=177267855258726&tin=02508201610067®Number=0000138879044617&sum=60011 [10:57:26]OFD Sender: Processing packet 29190 [packets to send 8, broken 7] [10:57:26]ProducePacketName [10:57:26]name=ofd_packets/00029190 [10:57:26]OFD Sender: To server: pG, [10:57:26]CommunicateWithHost lk.salyk.kg:30040 [10:57:26]ConnectInit lk.salyk.kg [10:57:26]written 0, free lines is 4095 [10:57:26]Connected sock=10 [10:57:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 B1 45 08 01 CF 9B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 6B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 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 E5 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 9E B6 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 06 72 00 00 35 04 06 00 A1 39 63 8A F4 66 41 0A DD 60 5A F2 6B 6B [10:57:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 32 13 47 00 55 DC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 06 72 00 00 F4 03 04 00 42 61 1B 66 B6 04 01 00 00 59 AE D5 D1 3F B0 34 B8 [10:57:27]CommunicateWithHost err = 0 [10:57:27]CheckOFDResponse [10:57:27]1017 (14) - 77093643461234 [10:57:27]1041 (16) - 0000000000963154 [10:57:27]1040 (4) - 29190 [10:57:27]1012 (4) - 14.04.2024 04:53 [10:57:27]1206 (1) - 0 [10:57:27]OFD Sender: Remove packet 29190 [10:57:27]ProducePacketName [10:57:27]name=ofd_packets/00029190 [10:57:27]NVStorageDeleteData [10:57:27]Write to MH i2c: 01 00 00 96 8D 23 [10:57:27]Write i2c OK [10:57:27]MH_I2C_Read... [10:57:27]Read from MH i2c: 01 [10:57:27]MH_I2C_Read... [10:57:27]Read from MH i2c: 01 07 00 [10:57:27]MH_I2C_Read... [10:57:27]Read from MH i2c: 01 07 00 96 8D 00 00 00 00 00 E3 0C 19 [10:57:27]RasterBufferAndPrint [10:57:27]line [10:57:27]line [10:57:27]line [10:57:27]line [10:57:27]line [10:57:27]written 0, free lines is 3305 [10:57:27]MH_Cut [10:57:27]Write to MH i2c: D1 01 00 9D 8D 01 FC [10:57:27]Write i2c OK [10:57:27]MH_I2C_Read... [10:57:27]Read from MH i2c: D1 [10:57:27]MH_I2C_Read... [10:57:27]Read from MH i2c: D1 01 00 [10:57:27]MH_I2C_Read... [10:57:27]Read from MH i2c: D1 01 00 9D 8D 00 FB [10:57:27]Write to MH i2c: 01 00 00 9E 8D 2B [10:57:27]Write i2c OK [10:57:27]MH_I2C_Read... [10:57:27]OFD Sender: No OFD packet to send [10:57:27]*** Cut start [10:57:27]*** Partial cut [10:57:27]*** CUTSNS_PIN = 1 [10:57:28]*** CUTSNS_PIN = 0 [10:57:28]*** Brake cut motor [10:57:28]Read from MH i2c: 01 [10:57:28]MH_I2C_Read... [10:57:28]*** Stop cut motor [10:57:28]*** Cut end [10:57:28]Read from MH i2c: 01 07 00 [10:57:28]MH_I2C_Read... [10:57:28]Read from MH i2c: 01 07 00 9E 8D 00 00 00 00 00 FF 0F 40 [10:57:28]process_action close_receipt done [10:57:28]requested_data is exist [10:57:28]produce_requested_data [10:57:28]requested_item fm.sn is exist - process it [10:57:28]wFMCommunicate request_size=4 [10:57:28]MH_SAM_APDU [10:57:28]CAPDU: 80 11 00 00 [10:57:28]Write to MH i2c: E2 08 00 9F 8D 80 11 00 00 00 00 00 00 A6 [10:57:28]Write i2c OK [10:57:28]MH_I2C_Read... [10:57:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:57:28]Read from MH i2c: E2 [10:57:28]MH_I2C_Read... [10:57:28]Read from MH i2c: E2 17 00 [10:57:28]MH_I2C_Read... [10:57:28]Read from MH i2c: E2 17 00 9F 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F5 [10:57:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:57:28]wFMCommunicate OK [10:57:28]requested_item fd.num is exist - process it [10:57:28]SAM_PROTO_GetFieldsCounters [10:57:28]wFMCommunicate request_size=4 [10:57:28]MH_SAM_APDU [10:57:28]CAPDU: 80 13 00 00 [10:57:28]Write to MH i2c: E2 08 00 A0 8D 80 13 00 00 00 00 00 00 A9 [10:57:28]Write i2c OK [10:57:28]MH_I2C_Read... [10:57:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:57:28]Read from MH i2c: E2 [10:57:28]MH_I2C_Read... [10:57:28]Read from MH i2c: E2 62 00 [10:57:28]MH_I2C_Read... [10:57:28]Read from MH i2c: E2 62 00 A0 8D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 06 72 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 FF [10:57:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 06 72 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:57:28]wFMCommunicate OK [10:57:28]SAM_PROTO_GetFieldsCounters done [10:57:28]requested_item shift.num is exist - process it [10:57:28]requested_item shift.opened is exist - process it [10:57:28]req_shift_opened [10:57:28]FM_GetShiftState [10:57:28]SAM_PROTO_GetShiftState [10:57:28]wFMCommunicate request_size=4 [10:57:28]MH_SAM_APDU [10:57:28]CAPDU: 80 13 01 00 [10:57:28]Write to MH i2c: E2 08 00 A1 8D 80 13 01 00 00 00 00 00 AB [10:57:28]Write i2c OK [10:57:28]MH_I2C_Read... [10:57:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:57:28]Read from MH i2c: E2 [10:57:28]MH_I2C_Read... [10:57:28]Read from MH i2c: E2 0E 00 [10:57:28]MH_I2C_Read... [10:57:28]Read from MH i2c: E2 0E 00 A1 8D 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 57 [10:57:28]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [10:57:28]wFMCommunicate OK [10:57:28]SAM_PROTO_GetShiftState done [10:57:28]FM_GetShiftState done [10:57:28]req_shift_opened done [10:57:28]requested_item shift.open_date is exist - process it [10:57:28]req_shift_open_date [10:57:28]req_shift_open_date done [10:57:28]produce_requested_data done [10:57:28]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29190,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [10:57:28]process_action_free close_receipt [10:57:28]json_value_free [10:57:28]json_value_free done [10:57:28]process_json_proto returns [10:57:28]Send response to host [10:57:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29190,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [10:57:28]free response buf [10:57:28]execute_script done [10:57:28]execute_script returns [10:57:28]free content buf [10:57:28]Sock 7.Close socket [10:57:28]Sock 7.Thread stoped [10:57:32]OFD Sender: No OFD packet to send [10:57:37]OFD Sender: No OFD packet to send [10:57:42]OFD Sender: No OFD packet to send [10:57:47]OFD Sender: No OFD packet to send [10:57:52]OFD Sender: No OFD packet to send [10:57:57]OFD Sender: No OFD packet to send [10:58:02]OFD Sender: No OFD packet to send [10:58:07]OFD Sender: No OFD packet to send [10:58:12]OFD Sender: No OFD packet to send [10:58:17]OFD Sender: No OFD packet to send [10:58:22]OFD Sender: No OFD packet to send [10:58:27]OFD Sender: No OFD packet to send [10:58:32]OFD Sender: No OFD packet to send [10:58:37]OFD Sender: No OFD packet to send [10:58:42]OFD Sender: No OFD packet to send [10:58:47]OFD Sender: No OFD packet to send [10:58:52]OFD Sender: No OFD packet to send [10:58:55]accept exits with 9 [10:58:55]New connection [10:58:55]New thread 3066785124 created [10:58:55]Thread 3066928484 joined [10:58:55]Waiting for new connection... [10:58:55] Sock 9.Parse request [10:58:55]Sock 9.Check first char [10:58:55]Sock 9.First char is OK [10:58:55]request: POST /json_proto HTTP/1.0 [10:58:55]Method: POST [10:58:55]URL: /json_proto [10:58:55]Method is POST - this is cgi request [10:58:55]url: /json_proto [10:58:55]query_string will be loaded in cgi processing [10:58:55]execute_cgi json_proto POST (null) [10:58:55]execute_cgi path=json_proto method=POST [10:58:55]POST find Content-Length [10:58:55]Host: 172.17.33.3:8080 [10:58:55]Content-Length: 680 [10:58:55]Content-Type: application/json [10:58:55] [10:58:55]POST finish read [10:58:55]Found Content-Length = 680 [10:58:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347563", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 9.430, "sum" : 310.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 310.00, "total" : 310.00, "payments": [ { "type": 0, "sum" : 310.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:58:55]execute_script... [10:58: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)347563", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 9.430, "sum" : 310.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 310.00, "total" : 310.00, "payments": [ { "type": 0, "sum" : 310.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:58:55]POST & json_proto [10:58:55]process_json_proto [10:58:55]json parsed OK: [10:58:55]protocol is kg_v1.0 [10:58:55]action value=close_receipt [10:58:55]process_action close_receipt [10:58:55]cmd_close_receipt [10:58:55]MH_GetDate [10:58:55]Write to MH i2c: F0 00 00 A2 8D 1E [10:58:55]Write i2c OK [10:58:55]MH_I2C_Read... [10:58:55]Read from MH i2c: F0 [10:58:55]MH_I2C_Read... [10:58:55]Read from MH i2c: F0 09 00 [10:58:55]MH_I2C_Read... [10:58:55]Read from MH i2c: F0 09 00 A2 8D 00 F9 B6 1B 66 23 5B 8F 65 C9 [10:58:55]GetLastDocTimeStamp 1713092254 [10:58:55]current date 1713092345 [10:58:55]FM_GetShiftState [10:58:55]SAM_PROTO_GetShiftState [10:58:55]wFMCommunicate request_size=4 [10:58:55]MH_SAM_APDU [10:58:55]CAPDU: 80 13 01 00 [10:58:55]Write to MH i2c: E2 08 00 A3 8D 80 13 01 00 00 00 00 00 AD [10:58:55]Write i2c OK [10:58:55]MH_I2C_Read... [10:58:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:58:55]Read from MH i2c: E2 [10:58:55]MH_I2C_Read... [10:58:55]Read from MH i2c: E2 0E 00 [10:58:55]MH_I2C_Read... [10:58:55]Read from MH i2c: E2 0E 00 A3 8D 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 59 [10:58:55]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [10:58:55]wFMCommunicate OK [10:58:55]SAM_PROTO_GetShiftState done [10:58:55]FM_GetShiftState done [10:58:55]opened in 1713053951 [10:58:55]opened+sec_in_day 1713140351 [10:58:55]quantity*price = 31024 [10:58:55]sum+1 = 31026 [10:58:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 310.00 Внесено: 310.00 СДАЧА: 0.00 НСП 1% : 2.75 НДС 12% : 32.95 Наличными: 310.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 101 14.04.2024 10:59 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29191 ФПД: 81932857944617 1/tax-web-control/client/api/v1/ticket?date=20240414T105905&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29191&fm=81932857944617&tin=02508201610067®Number=0000138879044617&sum=31000 [10:58:57]StoreToDocumentArchive [10:58:57]shift 116 fd 29191 [10:58:57]save to /storage/0116/doc_00029191 [10:58:57]save last doc name /storage/0116/doc_00029191 to /storage/kkm_last_doc_name [10:58:57]save OK [10:58:57]Clear old archive folders... [10:58:57]ProcessDocumentItem done err = 0, tmpTLVsize=250 [10:58:57]tlvbuf is 011E3980 [10:58:57]SAM_PROTO_ClearQueue [10:58:57]wFMCommunicate request_size=4 [10:58:57]MH_SAM_APDU [10:58:57]CAPDU: 80 09 00 00 [10:58:57]Write to MH i2c: E2 08 00 B0 8D 80 09 00 00 00 00 00 00 AF [10:58:57]Write i2c OK [10:58:57]MH_I2C_Read... [10:58:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:58:57]Read from MH i2c: E2 [10:58:57]MH_I2C_Read... [10:58:57]Read from MH i2c: E2 03 00 [10:58:57]MH_I2C_Read... [10:58:57]Read from MH i2c: E2 03 00 B0 8D 00 90 00 B1 [10:58:57]RAPDU: 90 00 [10:58:57]wFMCommunicate OK [10:58:57]SAM_PROTO_ClearQueue done [10:58:57]KKMCreateOFDPacket [10:58:57]OFDProtocolAddRootSTLVToBuf [10:58:57]FM_MakeSignedData [10:58:57]FM_MakeSignedData [10:58:57]SAM_PROTO_SignData [10:58:57]wFMCommunicate request_size=4 [10:58:57]MH_SAM_APDU [10:58:57]CAPDU: 80 0D 01 02 [10:58:57]Write to MH i2c: E2 08 00 B1 8D 80 0D 01 02 00 00 00 00 B7 [10:58:57]Write i2c OK [10:58:57]MH_I2C_Read... [10:58:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:58:57]Read from MH i2c: E2 [10:58:57]MH_I2C_Read... [10:58:57]Read from MH i2c: E2 03 00 [10:58:57]MH_I2C_Read... [10:58:57]Read from MH i2c: E2 03 00 B1 8D 00 90 00 B2 [10:58:57]RAPDU: 90 00 [10:58:57]wFMCommunicate OK [10:58:57]wFMCommunicate request_size=255 [10:58:57]MH_SAM_APDU [10:58:57]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 D6 24 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 31 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 0C 00 00 00 00 07 04 06 00 18 79 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 F9 B6 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 07 72 00 00 35 04 06 00 4A 84 [10:58:57]Write to MH i2c: E2 02 01 B2 8D 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 D6 24 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 31 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 0C 00 00 00 00 07 04 06 00 18 79 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 F9 B6 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 07 72 00 00 35 04 06 00 4A 84 00 00 89 [10:58:57]Write i2c OK [10:58:57]MH_I2C_Read... [10:58:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:58:57]Read from MH i2c: E2 [10:58:57]MH_I2C_Read... [10:58:57]Read from MH i2c: E2 03 00 [10:58:57]MH_I2C_Read... [10:58:57]Read from MH i2c: E2 03 00 B2 8D 00 90 00 B3 [10:58:57]RAPDU: 90 00 [10:58:57]wFMCommunicate OK [10:58:57]wFMCommunicate request_size=9 [10:58:57]MH_SAM_APDU [10:58:57]CAPDU: 80 0D 02 02 04 7A E4 AA 29 [10:58:57]Write to MH i2c: E2 0C 00 B3 8D 80 0D 02 02 04 00 7A E4 AA 29 00 00 F3 [10:58:57]Write i2c OK [10:58:57]MH_I2C_Read... [10:58:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:58:57]Read from MH i2c: E2 [10:58:57]MH_I2C_Read... [10:58:57]Read from MH i2c: E2 03 00 [10:58:57]MH_I2C_Read... [10:58:57]Read from MH i2c: E2 03 00 B3 8D 00 90 00 B4 [10:58:57]RAPDU: 90 00 [10:58:57]wFMCommunicate OK [10:58:57]wFMCommunicate request_size=4 [10:58:57]MH_SAM_APDU [10:58:57]CAPDU: 80 0D 03 02 [10:58:57]Write to MH i2c: E2 08 00 B4 8D 80 0D 03 02 00 00 00 00 BC [10:58:57]Write i2c OK [10:58:57]MH_I2C_Read... [10:58:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:58:57]Read from MH i2c: E2 [10:58:57]MH_I2C_Read... [10:58:57]Read from MH i2c: E2 0B 00 [10:58:57]MH_I2C_Read... [10:58:57]Read from MH i2c: E2 0B 00 B4 8D 00 10 3B 18 92 87 49 69 7A 90 00 65 [10:58:57]RAPDU: 10 3B 18 92 87 49 69 7A 90 00 [10:58:57]wFMCommunicate OK [10:58:57]SAM_PROTO_SignData done [10:58:57]FM_MakeSignedData done [10:58:57]CreateOFDProtocolMessage [10:58:57]wFMCommunicate request_size=4 [10:58:57]MH_SAM_APDU [10:58:57]CAPDU: 80 11 00 00 [10:58:57]Write to MH i2c: E2 08 00 B5 8D 80 11 00 00 00 00 00 00 BC [10:58:57]Write i2c OK [10:58:57]MH_I2C_Read... [10:58:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:58:57]Read from MH i2c: E2 [10:58:57]MH_I2C_Read... [10:58:57]Read from MH i2c: E2 17 00 [10:58:57]MH_I2C_Read... [10:58:57]Read from MH i2c: E2 17 00 B5 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 0B [10:58:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:58:57]wFMCommunicate OK [10:58:57]CreateOFDProtocolMessage done [10:58:57]OFDSenderStorePacket 29191 [10:58:57]StoreOFDPacket docnum=29191 [10:58:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 D0 D8 06 01 E0 E9 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 D6 24 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 31 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 0C 00 00 00 00 07 04 06 00 18 79 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 F9 B6 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 07 72 00 00 35 04 06 00 4A 84 7A E4 AA 29 10 3B 18 92 87 49 69 7A [10:58:57]CheckFolder [10:58:57]dirname=/storage/ofd_packets [10:58:57]CheckFolder done [10:58:57]ProducePacketName [10:58:57]name=ofd_packets/00029191 [10:58:57]NVStorageSaveData ofd_packets/00029191 [10:58:57]File name is /storage/ofd_packets/00029191 [10:58:57]Write 300 bytes [10:58:57]NVStorageSaveData done [10:58:57]OFDSenderStorePacket done [10:58:57]KKMCreateOFDPacket done [10:58:57]NVStorageSaveData kkm_last_timestamp [10:58:57]File name is /storage/kkm_last_timestamp [10:58:57]Write 4 bytes [10:58:57]NVStorageSaveData done [10:58:57]ExternCall_PrintAddStr [10:58:57]wPrintStart [10:58:57]Write to MH i2c: 01 00 00 B6 8D 43 [10:58:57]Write i2c OK [10:58:57]MH_I2C_Read... [10:58:57]Read from MH i2c: 01 [10:58:57]MH_I2C_Read... [10:58:57]Read from MH i2c: 01 07 00 [10:58:57]MH_I2C_Read... [10:58:57]Read from MH i2c: 01 07 00 B6 8D 00 00 00 00 00 FF 0F 58 [10:58:57]RasterBufferAndPrint [10:58:57]line Счет N : (1)347563 [10:58:57]line ИНН: 02508201610067 [10:58:57]line Контрольно-Кассовый Чек [10:58:57]line ПРОДАЖА [10:58:57]line ТРК (МРК, ГНК) : 71 [10:58:57]line Товар: 2711129700 [10:58:57]line ГАЗ-К-5 [10:58:57]line 9.430 * 32.90 [10:58:57]line = 310.25 [10:58:57]line НДС 12% НСП 1% [10:58:57]line > о реализуемом товаре [10:58:57]line ОКРУГЛЕНИЕ: -0.25 [10:58:57]line ИТОГО: 310.00 [10:58:57]line Внесено: 310.00 [10:58:57]line СДАЧА: 0.00 [10:58:57]line НСП 1% : 2.75 [10:58:57]line НДС 12% : 32.95 [10:58:57]line Наличными: 310.00 [10:58:57]line Безнал.: 0.00 [10:58:57]line Место: АЗС № 108 "Партнер Нефть" [10:58:57]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:58:57]line СНО: Общий режим [10:58:57]line Чек 101 14.04.2024 10:59 [10:58:57]line Смена: 116 ФФД: 1.0 [10:58:57]line ЗНМ: 0300000027 [10:58:57]line РНМ: 0000138879044617 [10:58:57]line Версия ККМ: 001 [10:58:57]line ФМ: 0000000000963154 [10:58:57]line ФД: 29191 [10:58:57]line ФПД: 81932857944617 [10:58:57]line 1/tax-web-control/client/api/v1/ticket?date=20240414T105905&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29191&fm=81932857944617&tin=02508201610067®Number=0000138879044617&sum=31000 [10:58:57]OFD Sender: Processing packet 29191 [packets to send 8, broken 7] [10:58:57]ProducePacketName [10:58:57]name=ofd_packets/00029191 [10:58:57]OFD Sender: To server: pG, [10:58:57]CommunicateWithHost lk.salyk.kg:30040 [10:58:57]ConnectInit lk.salyk.kg [10:58:57]written 0, free lines is 4095 [10:58:57]Connected sock=10 [10:58:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 D0 D8 06 01 E0 E9 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 D6 24 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 31 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 0C 00 00 00 00 07 04 06 00 18 79 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 F9 B6 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 07 72 00 00 35 04 06 00 4A 84 7A E4 AA 29 10 3B 18 92 87 49 69 7A [10:58:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 A6 7B 47 00 ED 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 07 72 00 00 F4 03 04 00 9D 61 1B 66 B6 04 01 00 00 3C 7D 0A CA F2 44 02 F8 [10:58:58]CommunicateWithHost err = 0 [10:58:58]CheckOFDResponse [10:58:58]1017 (14) - 77093643461234 [10:58:58]1041 (16) - 0000000000963154 [10:58:58]1040 (4) - 29191 [10:58:58]1012 (4) - 14.04.2024 04:54 [10:58:58]1206 (1) - 0 [10:58:58]OFD Sender: Remove packet 29191 [10:58:58]ProducePacketName [10:58:58]name=ofd_packets/00029191 [10:58:58]NVStorageDeleteData [10:58:58]Write to MH i2c: 01 00 00 E0 8D 6D [10:58:58]Write i2c OK [10:58:58]MH_I2C_Read... [10:58:58]Read from MH i2c: 01 [10:58:58]MH_I2C_Read... [10:58:58]Read from MH i2c: 01 07 00 [10:58:58]MH_I2C_Read... [10:58:58]Read from MH i2c: 01 07 00 E0 8D 00 00 00 00 00 CC 0C 4C [10:58:58]RasterBufferAndPrint [10:58:58]line [10:58:58]line [10:58:58]line [10:58:58]line [10:58:58]line [10:58:58]written 0, free lines is 3284 [10:58:58]MH_Cut [10:58:58]Write to MH i2c: D1 01 00 E7 8D 01 46 [10:58:58]Write i2c OK [10:58:58]MH_I2C_Read... [10:58:58]Read from MH i2c: D1 [10:58:58]MH_I2C_Read... [10:58:58]Read from MH i2c: D1 01 00 [10:58:58]MH_I2C_Read... [10:58:58]Read from MH i2c: D1 01 00 E7 8D 00 45 [10:58:58]Write to MH i2c: 01 00 00 E8 8D 75 [10:58:58]Write i2c OK [10:58:58]MH_I2C_Read... [10:58:58]OFD Sender: No OFD packet to send [10:58:59]*** Cut start [10:58:59]*** Partial cut [10:58:59]*** CUTSNS_PIN = 1 [10:58:59]*** CUTSNS_PIN = 0 [10:58:59]*** Brake cut motor [10:58:59]Read from MH i2c: 01 [10:58:59]MH_I2C_Read... [10:58:59]*** Stop cut motor [10:58:59]*** Cut end [10:58:59]Read from MH i2c: 01 07 00 [10:58:59]MH_I2C_Read... [10:58:59]Read from MH i2c: 01 07 00 E8 8D 00 00 00 00 00 FF 0F 8A [10:58:59]process_action close_receipt done [10:58:59]requested_data is exist [10:58:59]produce_requested_data [10:58:59]requested_item fm.sn is exist - process it [10:58:59]wFMCommunicate request_size=4 [10:58:59]MH_SAM_APDU [10:58:59]CAPDU: 80 11 00 00 [10:58:59]Write to MH i2c: E2 08 00 E9 8D 80 11 00 00 00 00 00 00 F0 [10:58:59]Write i2c OK [10:58:59]MH_I2C_Read... [10:58:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:58:59]Read from MH i2c: E2 [10:58:59]MH_I2C_Read... [10:58:59]Read from MH i2c: E2 17 00 [10:58:59]MH_I2C_Read... [10:58:59]Read from MH i2c: E2 17 00 E9 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 3F [10:58:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:58:59]wFMCommunicate OK [10:58:59]requested_item fd.num is exist - process it [10:58:59]SAM_PROTO_GetFieldsCounters [10:58:59]wFMCommunicate request_size=4 [10:58:59]MH_SAM_APDU [10:58:59]CAPDU: 80 13 00 00 [10:58:59]Write to MH i2c: E2 08 00 EA 8D 80 13 00 00 00 00 00 00 F3 [10:58:59]Write i2c OK [10:58:59]MH_I2C_Read... [10:58:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:58:59]Read from MH i2c: E2 [10:58:59]MH_I2C_Read... [10:58:59]Read from MH i2c: E2 62 00 [10:58:59]MH_I2C_Read... [10:58:59]Read from MH i2c: E2 62 00 EA 8D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 07 72 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 4D [10:58:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 07 72 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:58:59]wFMCommunicate OK [10:58:59]SAM_PROTO_GetFieldsCounters done [10:58:59]requested_item shift.num is exist - process it [10:58:59]requested_item shift.opened is exist - process it [10:58:59]req_shift_opened [10:58:59]FM_GetShiftState [10:58:59]SAM_PROTO_GetShiftState [10:58:59]wFMCommunicate request_size=4 [10:58:59]MH_SAM_APDU [10:58:59]CAPDU: 80 13 01 00 [10:58:59]Write to MH i2c: E2 08 00 EB 8D 80 13 01 00 00 00 00 00 F5 [10:58:59]Write i2c OK [10:58:59]MH_I2C_Read... [10:58:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:58:59]Read from MH i2c: E2 [10:58:59]MH_I2C_Read... [10:58:59]Read from MH i2c: E2 0E 00 [10:58:59]MH_I2C_Read... [10:58:59]Read from MH i2c: E2 0E 00 EB 8D 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 A1 [10:58:59]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [10:58:59]wFMCommunicate OK [10:58:59]SAM_PROTO_GetShiftState done [10:58:59]FM_GetShiftState done [10:58:59]req_shift_opened done [10:58:59]requested_item shift.open_date is exist - process it [10:58:59]req_shift_open_date [10:58:59]req_shift_open_date done [10:58:59]produce_requested_data done [10:58:59]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29191,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [10:58:59]process_action_free close_receipt [10:58:59]json_value_free [10:58:59]json_value_free done [10:58:59]process_json_proto returns [10:58:59]Send response to host [10:58:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29191,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [10:58:59]free response buf [10:58:59]execute_script done [10:58:59]execute_script returns [10:58:59]free content buf [10:58:59]Sock 9.Close socket [10:58:59]Sock 9.Thread stoped [10:59:03]OFD Sender: No OFD packet to send [10:59:08]OFD Sender: No OFD packet to send [10:59:13]OFD Sender: No OFD packet to send [10:59:18]OFD Sender: No OFD packet to send [10:59:23]OFD Sender: No OFD packet to send [10:59:28]OFD Sender: No OFD packet to send [10:59:33]OFD Sender: No OFD packet to send [10:59:38]OFD Sender: No OFD packet to send [10:59:43]OFD Sender: No OFD packet to send [10:59:48]OFD Sender: No OFD packet to send [10:59:53]OFD Sender: No OFD packet to send [10:59:58]OFD Sender: No OFD packet to send [11:00:03]OFD Sender: No OFD packet to send [11:00:08]OFD Sender: No OFD packet to send [11:00:13]OFD Sender: No OFD packet to send [11:00:18]OFD Sender: No OFD packet to send [11:00:23]OFD Sender: No OFD packet to send [11:00:28]OFD Sender: No OFD packet to send [11:00:33]OFD Sender: No OFD packet to send [11:00:38]OFD Sender: No OFD packet to send [11:00:43]OFD Sender: No OFD packet to send [11:00:43]accept exits with 7 [11:00:43]New connection [11:00:43]New thread 3066928484 created [11:00:43]Thread 3066785124 joined [11:00:43]Waiting for new connection... [11:00:43] Sock 7.Parse request [11:00:43]Sock 7.Check first char [11:00:43]Sock 7.First char is OK [11:00:43]request: POST /json_proto HTTP/1.0 [11:00:43]Method: POST [11:00:43]URL: /json_proto [11:00:43]Method is POST - this is cgi request [11:00:43]url: /json_proto [11:00:43]query_string will be loaded in cgi processing [11:00:43]execute_cgi json_proto POST (null) [11:00:43]execute_cgi path=json_proto method=POST [11:00:43]POST find Content-Length [11:00:43]Host: 172.17.33.3:8080 [11:00:43]Content-Length: 805 [11:00:43]Content-Type: application/json [11:00:43] [11:00:43]POST finish read [11:00:43]Found Content-Length = 805 [11:00:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347565", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:00:43]execute_script... [11:00: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)347565", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:00:43]POST & json_proto [11:00:43]process_json_proto [11:00:43]json parsed OK: [11:00:43]protocol is kg_v1.0 [11:00:43]action value=close_receipt [11:00:43]process_action close_receipt [11:00:43]cmd_close_receipt [11:00:43]MH_GetDate [11:00:43]Write to MH i2c: F0 00 00 EC 8D 68 [11:00:43]Write i2c OK [11:00:43]MH_I2C_Read... [11:00:43]Read from MH i2c: F0 [11:00:43]MH_I2C_Read... [11:00:43]Read from MH i2c: F0 09 00 [11:00:43]MH_I2C_Read... [11:00:43]Read from MH i2c: F0 09 00 EC 8D 00 65 B7 1B 66 23 5B 8F 65 80 [11:00:43]GetLastDocTimeStamp 1713092345 [11:00:43]current date 1713092453 [11:00:43]FM_GetShiftState [11:00:43]SAM_PROTO_GetShiftState [11:00:43]wFMCommunicate request_size=4 [11:00:43]MH_SAM_APDU [11:00:43]CAPDU: 80 13 01 00 [11:00:43]Write to MH i2c: E2 08 00 ED 8D 80 13 01 00 00 00 00 00 F7 [11:00:43]Write i2c OK [11:00:43]MH_I2C_Read... [11:00:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:43]Read from MH i2c: E2 [11:00:43]MH_I2C_Read... [11:00:43]Read from MH i2c: E2 0E 00 [11:00:43]MH_I2C_Read... [11:00:43]Read from MH i2c: E2 0E 00 ED 8D 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 A3 [11:00:43]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [11:00:43]wFMCommunicate OK [11:00:43]SAM_PROTO_GetShiftState done [11:00:43]FM_GetShiftState done [11:00:43]opened in 1713053951 [11:00:43]opened+sec_in_day 1713140351 [11:00:43]quantity*price = 100056 [11:00:43]sum+1 = 100058 [11:00:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.57 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.57 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 102 14.04.2024 11:00 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29192 ФПД: 9400052395863 1/tax-web-control/client/api/v1/ticket?date=20240414T110053&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29192&fm=9400052395863&tin=02508201610067®Number=0000138879044617&sum=100057 [11:00:44]StoreToDocumentArchive [11:00:44]shift 116 fd 29192 [11:00:44]save to /storage/0116/doc_00029192 [11:00:44]save last doc name /storage/0116/doc_00029192 to /storage/kkm_last_doc_name [11:00:44]save OK [11:00:44]Clear old archive folders... [11:00:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:00:44]tlvbuf is 0120A370 [11:00:44]SAM_PROTO_ClearQueue [11:00:44]wFMCommunicate request_size=4 [11:00:44]MH_SAM_APDU [11:00:44]CAPDU: 80 09 00 00 [11:00:44]Write to MH i2c: E2 08 00 FA 8D 80 09 00 00 00 00 00 00 F9 [11:00:44]Write i2c OK [11:00:44]MH_I2C_Read... [11:00:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:00:45]Read from MH i2c: E2 [11:00:45]MH_I2C_Read... [11:00:45]Read from MH i2c: E2 03 00 [11:00:45]MH_I2C_Read... [11:00:45]Read from MH i2c: E2 03 00 FA 8D 00 90 00 FB [11:00:45]RAPDU: 90 00 [11:00:45]wFMCommunicate OK [11:00:45]SAM_PROTO_ClearQueue done [11:00:45]KKMCreateOFDPacket [11:00:45]OFDProtocolAddRootSTLVToBuf [11:00:45]FM_MakeSignedData [11:00:45]FM_MakeSignedData [11:00:45]SAM_PROTO_SignData [11:00:45]wFMCommunicate request_size=4 [11:00:45]MH_SAM_APDU [11:00:45]CAPDU: 80 0D 01 02 [11:00:45]Write to MH i2c: E2 08 00 FB 8D 80 0D 01 02 00 00 00 00 01 [11:00:45]Write i2c OK [11:00:45]MH_I2C_Read... [11:00:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:00:45]Read from MH i2c: E2 [11:00:45]MH_I2C_Read... [11:00:45]Read from MH i2c: E2 03 00 [11:00:45]MH_I2C_Read... [11:00:45]Read from MH i2c: E2 03 00 FB 8D 00 90 00 FC [11:00:45]RAPDU: 90 00 [11:00:45]wFMCommunicate OK [11:00:45]wFMCommunicate request_size=255 [11:00:45]MH_SAM_APDU [11:00: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 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 66 00 00 00 F4 03 04 00 65 B7 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 08 72 00 00 35 04 06 00 08 8C 9E C8 [11:00:45]Write to MH i2c: E2 02 01 FC 8D 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 66 00 00 00 F4 03 04 00 65 B7 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 08 72 00 00 35 04 06 00 08 8C 9E C8 00 00 3D [11:00:45]Write i2c OK [11:00:45]MH_I2C_Read... [11:00:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:45]Read from MH i2c: E2 [11:00:45]MH_I2C_Read... [11:00:45]Read from MH i2c: E2 03 00 [11:00:45]MH_I2C_Read... [11:00:45]Read from MH i2c: E2 03 00 FC 8D 00 90 00 FD [11:00:45]RAPDU: 90 00 [11:00:45]wFMCommunicate OK [11:00:45]wFMCommunicate request_size=7 [11:00:45]MH_SAM_APDU [11:00:45]CAPDU: 80 0D 02 02 02 AF 57 [11:00:45]Write to MH i2c: E2 0A 00 FD 8D 80 0D 02 02 02 00 AF 57 00 00 0E [11:00:45]Write i2c OK [11:00:45]MH_I2C_Read... [11:00:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:45]Read from MH i2c: E2 [11:00:45]MH_I2C_Read... [11:00:45]Read from MH i2c: E2 03 00 [11:00:45]MH_I2C_Read... [11:00:45]Read from MH i2c: E2 03 00 FD 8D 00 90 00 FE [11:00:45]RAPDU: 90 00 [11:00:45]wFMCommunicate OK [11:00:45]wFMCommunicate request_size=4 [11:00:45]MH_SAM_APDU [11:00:45]CAPDU: 80 0D 03 02 [11:00:45]Write to MH i2c: E2 08 00 FE 8D 80 0D 03 02 00 00 00 00 06 [11:00:45]Write i2c OK [11:00:45]MH_I2C_Read... [11:00:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:00:45]Read from MH i2c: E2 [11:00:45]MH_I2C_Read... [11:00:45]Read from MH i2c: E2 0B 00 [11:00:45]MH_I2C_Read... [11:00:45]Read from MH i2c: E2 0B 00 FE 8D 00 BB 93 6C F7 1C 6A F8 FE 90 00 34 [11:00:45]RAPDU: BB 93 6C F7 1C 6A F8 FE 90 00 [11:00:45]wFMCommunicate OK [11:00:45]SAM_PROTO_SignData done [11:00:45]FM_MakeSignedData done [11:00:45]CreateOFDProtocolMessage [11:00:45]wFMCommunicate request_size=4 [11:00:45]MH_SAM_APDU [11:00:45]CAPDU: 80 11 00 00 [11:00:45]Write to MH i2c: E2 08 00 FF 8D 80 11 00 00 00 00 00 00 06 [11:00:45]Write i2c OK [11:00:45]MH_I2C_Read... [11:00:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:45]Read from MH i2c: E2 [11:00:45]MH_I2C_Read... [11:00:45]Read from MH i2c: E2 17 00 [11:00:45]MH_I2C_Read... [11:00:45]Read from MH i2c: E2 17 00 FF 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 55 [11:00:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:00:45]wFMCommunicate OK [11:00:45]CreateOFDProtocolMessage done [11:00:45]OFDSenderStorePacket 29192 [11:00:45]StoreOFDPacket docnum=29192 [11:00:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 70 08 04 01 46 70 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 66 00 00 00 F4 03 04 00 65 B7 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 08 72 00 00 35 04 06 00 08 8C 9E C8 AF 57 BB 93 6C F7 1C 6A F8 FE [11:00:45]CheckFolder [11:00:45]dirname=/storage/ofd_packets [11:00:45]CheckFolder done [11:00:45]ProducePacketName [11:00:45]name=ofd_packets/00029192 [11:00:45]NVStorageSaveData ofd_packets/00029192 [11:00:45]File name is /storage/ofd_packets/00029192 [11:00:45]Write 298 bytes [11:00:45]NVStorageSaveData done [11:00:45]OFDSenderStorePacket done [11:00:45]KKMCreateOFDPacket done [11:00:45]NVStorageSaveData kkm_last_timestamp [11:00:45]File name is /storage/kkm_last_timestamp [11:00:45]Write 4 bytes [11:00:45]NVStorageSaveData done [11:00:45]ExternCall_PrintAddStr [11:00:45]wPrintStart [11:00:45]Write to MH i2c: 01 00 00 00 8E 8E [11:00:45]Write i2c OK [11:00:45]MH_I2C_Read... [11:00:45]Read from MH i2c: 01 [11:00:45]MH_I2C_Read... [11:00:45]Read from MH i2c: 01 07 00 [11:00:45]MH_I2C_Read... [11:00:45]Read from MH i2c: 01 07 00 00 8E 00 00 00 00 00 FF 0F A3 [11:00:45]RasterBufferAndPrint [11:00:45]line Счет N : (1)347565 [11:00:45]line ИНН: 02508201610067 [11:00:45]line Контрольно-Кассовый Чек [11:00:45]line ПРОДАЖА [11:00:45]line ТРК (МРК, ГНК) : 11 [11:00:45]line Товар: 2710194210 [11:00:45]line ДТ-К-5 [11:00:45]line 13.820 * 72.40 [11:00:45]line = 1000.57 [11:00:45]line НДС 12% НСП 1% [11:00:45]line > о реализуемом товаре [11:00:45]line ИТОГО: 1000.57 [11:00:45]line НСП 1% : 8.85 [11:00:45]line НДС 12% : 106.25 [11:00:45]line Наличными: 0.00 [11:00:45]line Безнал.: 1000.57 [11:00:45]line Место: АЗС № 108 "Партнер Нефть" [11:00:45]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [11:00:45]line СНО: Общий режим [11:00:45]line Чек 102 14.04.2024 11:00 [11:00:45]line Смена: 116 ФФД: 1.0 [11:00:45]line ЗНМ: 0300000027 [11:00:45]line РНМ: 0000138879044617 [11:00:45]line Версия ККМ: 001 [11:00:45]line Платежная система: О! деньги [11:00:45]line ФМ: 0000000000963154 [11:00:45]line ФД: 29192 [11:00:45]line ФПД: 9400052395863 [11:00:45]line 1/tax-web-control/client/api/v1/ticket?date=20240414T110053&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29192&fm=9400052395863&tin=02508201610067®Number=0000138879044617&sum=100057 [11:00:45]OFD Sender: Processing packet 29192 [packets to send 8, broken 7] [11:00:45]ProducePacketName [11:00:45]name=ofd_packets/00029192 [11:00:45]OFD Sender: To server: pG, [11:00:45]CommunicateWithHost lk.salyk.kg:30040 [11:00:45]ConnectInit lk.salyk.kg [11:00:45]written 0, free lines is 4095 [11:00:45]Connected sock=10 [11:00:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 70 08 04 01 46 70 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 66 00 00 00 F4 03 04 00 65 B7 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 08 72 00 00 35 04 06 00 08 8C 9E C8 AF 57 BB 93 6C F7 1C 6A F8 FE [11:00:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 90 60 47 00 5C 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 39 36 33 31 35 34 10 04 04 00 08 72 00 00 F4 03 04 00 09 62 1B 66 B6 04 01 00 00 83 D7 B4 32 2C 64 E3 74 [11:00:46]CommunicateWithHost err = 0 [11:00:46]CheckOFDResponse [11:00:46]1017 (14) - 77093643461234 [11:00:46]1041 (16) - 0000000000963154 [11:00:46]1040 (4) - 29192 [11:00:46]1012 (4) - 14.04.2024 04:56 [11:00:46]1206 (1) - 0 [11:00:46]OFD Sender: Remove packet 29192 [11:00:46]ProducePacketName [11:00:46]name=ofd_packets/00029192 [11:00:46]NVStorageDeleteData [11:00:46]Write to MH i2c: 01 00 00 29 8E B7 [11:00:46]Write i2c OK [11:00:46]MH_I2C_Read... [11:00:46]Read from MH i2c: 01 [11:00:46]MH_I2C_Read... [11:00:46]Read from MH i2c: 01 07 00 [11:00:46]MH_I2C_Read... [11:00:46]Read from MH i2c: 01 07 00 29 8E 00 00 00 00 00 DA 0C A4 [11:00:46]RasterBufferAndPrint [11:00:46]line [11:00:46]line [11:00:46]line [11:00:46]line [11:00:46]line [11:00:46]written 0, free lines is 3296 [11:00:46]MH_Cut [11:00:46]Write to MH i2c: D1 01 00 30 8E 01 90 [11:00:46]Write i2c OK [11:00:46]MH_I2C_Read... [11:00:46]Read from MH i2c: D1 [11:00:46]MH_I2C_Read... [11:00:46]Read from MH i2c: D1 01 00 [11:00:46]MH_I2C_Read... [11:00:46]Read from MH i2c: D1 01 00 30 8E 00 8F [11:00:46]Write to MH i2c: 01 00 00 31 8E BF [11:00:46]Write i2c OK [11:00:46]MH_I2C_Read... [11:00:46]OFD Sender: No OFD packet to send [11:00:47]*** Cut start [11:00:47]*** Partial cut [11:00:47]*** CUTSNS_PIN = 1 [11:00:47]*** CUTSNS_PIN = 0 [11:00:47]*** Brake cut motor [11:00:47]Read from MH i2c: 01 [11:00:47]MH_I2C_Read... [11:00:47]*** Stop cut motor [11:00:47]*** Cut end [11:00:47]Read from MH i2c: 01 07 00 [11:00:47]MH_I2C_Read... [11:00:47]Read from MH i2c: 01 07 00 31 8E 00 00 00 00 00 FF 0F D4 [11:00:47]process_action close_receipt done [11:00:47]requested_data is exist [11:00:47]produce_requested_data [11:00:47]requested_item fm.sn is exist - process it [11:00:47]wFMCommunicate request_size=4 [11:00:47]MH_SAM_APDU [11:00:47]CAPDU: 80 11 00 00 [11:00:47]Write to MH i2c: E2 08 00 32 8E 80 11 00 00 00 00 00 00 3A [11:00:47]Write i2c OK [11:00:47]MH_I2C_Read... [11:00:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:47]Read from MH i2c: E2 [11:00:47]MH_I2C_Read... [11:00:47]Read from MH i2c: E2 17 00 [11:00:47]MH_I2C_Read... [11:00:47]Read from MH i2c: E2 17 00 32 8E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 89 [11:00:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:00:47]wFMCommunicate OK [11:00:47]requested_item fd.num is exist - process it [11:00:47]SAM_PROTO_GetFieldsCounters [11:00:47]wFMCommunicate request_size=4 [11:00:47]MH_SAM_APDU [11:00:47]CAPDU: 80 13 00 00 [11:00:47]Write to MH i2c: E2 08 00 33 8E 80 13 00 00 00 00 00 00 3D [11:00:47]Write i2c OK [11:00:47]MH_I2C_Read... [11:00:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:00:47]Read from MH i2c: E2 [11:00:47]MH_I2C_Read... [11:00:47]Read from MH i2c: E2 62 00 [11:00:47]MH_I2C_Read... [11:00:47]Read from MH i2c: E2 62 00 33 8E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 08 72 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 9B [11:00:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 08 72 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:00:47]wFMCommunicate OK [11:00:47]SAM_PROTO_GetFieldsCounters done [11:00:47]requested_item shift.num is exist - process it [11:00:47]requested_item shift.opened is exist - process it [11:00:47]req_shift_opened [11:00:47]FM_GetShiftState [11:00:47]SAM_PROTO_GetShiftState [11:00:47]wFMCommunicate request_size=4 [11:00:47]MH_SAM_APDU [11:00:47]CAPDU: 80 13 01 00 [11:00:47]Write to MH i2c: E2 08 00 34 8E 80 13 01 00 00 00 00 00 3F [11:00:47]Write i2c OK [11:00:47]MH_I2C_Read... [11:00:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:47]Read from MH i2c: E2 [11:00:47]MH_I2C_Read... [11:00:47]Read from MH i2c: E2 0E 00 [11:00:47]MH_I2C_Read... [11:00:47]Read from MH i2c: E2 0E 00 34 8E 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 EB [11:00:47]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [11:00:47]wFMCommunicate OK [11:00:47]SAM_PROTO_GetShiftState done [11:00:47]FM_GetShiftState done [11:00:47]req_shift_opened done [11:00:47]requested_item shift.open_date is exist - process it [11:00:47]req_shift_open_date [11:00:47]req_shift_open_date done [11:00:47]produce_requested_data done [11:00:47]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29192,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [11:00:47]process_action_free close_receipt [11:00:47]json_value_free [11:00:47]json_value_free done [11:00:47]process_json_proto returns [11:00:47]Send response to host [11:00:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29192,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [11:00:47]free response buf [11:00:47]execute_script done [11:00:47]execute_script returns [11:00:47]free content buf [11:00:47]Sock 7.Close socket [11:00:47]Sock 7.Thread stoped [11:00:51]OFD Sender: No OFD packet to send [11:00:56]OFD Sender: No OFD packet to send [11:01:01]OFD Sender: No OFD packet to send [11:01:06]OFD Sender: No OFD packet to send [11:01:11]OFD Sender: No OFD packet to send [11:01:16]OFD Sender: No OFD packet to send [11:01:21]OFD Sender: No OFD packet to send [11:01:26]OFD Sender: No OFD packet to send [11:01:31]OFD Sender: No OFD packet to send [11:01:36]OFD Sender: No OFD packet to send [11:01:41]OFD Sender: No OFD packet to send [11:01:46]OFD Sender: No OFD packet to send [11:01:51]OFD Sender: No OFD packet to send [11:01:56]OFD Sender: No OFD packet to send [11:02:01]OFD Sender: No OFD packet to send [11:02:06]OFD Sender: No OFD packet to send [11:02:11]OFD Sender: No OFD packet to send [11:02:16]OFD Sender: No OFD packet to send [11:02:21]OFD Sender: No OFD packet to send [11:02:26]OFD Sender: No OFD packet to send [11:02:31]OFD Sender: No OFD packet to send [11:02:36]OFD Sender: No OFD packet to send [11:02:41]OFD Sender: No OFD packet to send [11:02:46]OFD Sender: No OFD packet to send [11:02:51]OFD Sender: No OFD packet to send [11:02:56]OFD Sender: No OFD packet to send [11:03:01]OFD Sender: No OFD packet to send [11:03:06]OFD Sender: No OFD packet to send [11:03:11]OFD Sender: No OFD packet to send [11:03:16]OFD Sender: No OFD packet to send [11:03:21]OFD Sender: No OFD packet to send [11:03:26]OFD Sender: No OFD packet to send [11:03:31]OFD Sender: No OFD packet to send [11:03:36]OFD Sender: No OFD packet to send [11:03:41]OFD Sender: No OFD packet to send [11:03:46]OFD Sender: No OFD packet to send [11:03:51]OFD Sender: No OFD packet to send [11:03:56]OFD Sender: No OFD packet to send [11:04:01]OFD Sender: No OFD packet to send [11:04:06]OFD Sender: No OFD packet to send [11:04:11]OFD Sender: No OFD packet to send [11:04:16]OFD Sender: No OFD packet to send [11:04:21]OFD Sender: No OFD packet to send [11:04:26]OFD Sender: No OFD packet to send [11:04:31]OFD Sender: No OFD packet to send [11:04:36]OFD Sender: No OFD packet to send [11:04:41]OFD Sender: No OFD packet to send [11:04:42]accept exits with 9 [11:04:42]New connection [11:04:42]New thread 3066785124 created [11:04:42]Thread 3066928484 joined [11:04:42]Waiting for new connection... [11:04:42] Sock 9.Parse request [11:04:42]Sock 9.Check first char [11:04:42]Sock 9.First char is OK [11:04:42]request: POST /json_proto HTTP/1.0 [11:04:42]Method: POST [11:04:42]URL: /json_proto [11:04:42]Method is POST - this is cgi request [11:04:42]url: /json_proto [11:04:42]query_string will be loaded in cgi processing [11:04:42]execute_cgi json_proto POST (null) [11:04:42]execute_cgi path=json_proto method=POST [11:04:42]POST find Content-Length [11:04:42]Host: 172.17.33.3:8080 [11:04:42]Content-Length: 682 [11:04:42]Content-Type: application/json [11:04:42] [11:04:42]POST finish read [11:04:42]Found Content-Length = 682 [11:04:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347564", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.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" ] } } [11:04:42]execute_script... [11:04: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)347564", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.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" ] } } [11:04:42]POST & json_proto [11:04:42]process_json_proto [11:04:42]json parsed OK: [11:04:42]protocol is kg_v1.0 [11:04:42]action value=close_receipt [11:04:42]process_action close_receipt [11:04:42]cmd_close_receipt [11:04:42]MH_GetDate [11:04:42]Write to MH i2c: F0 00 00 35 8E B2 [11:04:42]Write i2c OK [11:04:42]MH_I2C_Read... [11:04:42]Read from MH i2c: F0 [11:04:42]MH_I2C_Read... [11:04:42]Read from MH i2c: F0 09 00 [11:04:42]MH_I2C_Read... [11:04:42]Read from MH i2c: F0 09 00 35 8E 00 54 B8 1B 66 23 5B 8F 65 BA [11:04:42]GetLastDocTimeStamp 1713092453 [11:04:42]current date 1713092692 [11:04:42]FM_GetShiftState [11:04:42]SAM_PROTO_GetShiftState [11:04:42]wFMCommunicate request_size=4 [11:04:42]MH_SAM_APDU [11:04:42]CAPDU: 80 13 01 00 [11:04:42]Write to MH i2c: E2 08 00 36 8E 80 13 01 00 00 00 00 00 41 [11:04:42]Write i2c OK [11:04:42]MH_I2C_Read... [11:04:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:04:42]Read from MH i2c: E2 [11:04:42]MH_I2C_Read... [11:04:42]Read from MH i2c: E2 0E 00 [11:04:42]MH_I2C_Read... [11:04:42]Read from MH i2c: E2 0E 00 36 8E 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 ED [11:04:42]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [11:04:42]wFMCommunicate OK [11:04:42]SAM_PROTO_GetShiftState done [11:04:42]FM_GetShiftState done [11:04:42]opened in 1713053951 [11:04:42]opened+sec_in_day 1713140351 [11:04:42]quantity*price = 100050 [11:04:42]sum+1 = 100052 [11:04:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 103 14.04.2024 11:04 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29193 ФПД: 69526609510987 1/tax-web-control/client/api/v1/ticket?date=20240414T110452&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29193&fm=69526609510987&tin=02508201610067®Number=0000138879044617&sum=100000 [11:04:43]StoreToDocumentArchive [11:04:43]shift 116 fd 29193 [11:04:43]save to /storage/0116/doc_00029193 [11:04:43]save last doc name /storage/0116/doc_00029193 to /storage/kkm_last_doc_name [11:04:43]save OK [11:04:43]Clear old archive folders... [11:04:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:04:43]tlvbuf is 011FB1E0 [11:04:43]SAM_PROTO_ClearQueue [11:04:43]wFMCommunicate request_size=4 [11:04:43]MH_SAM_APDU [11:04:43]CAPDU: 80 09 00 00 [11:04:43]Write to MH i2c: E2 08 00 43 8E 80 09 00 00 00 00 00 00 43 [11:04:43]Write i2c OK [11:04:43]MH_I2C_Read... [11:04:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:04:43]Read from MH i2c: E2 [11:04:43]MH_I2C_Read... [11:04:43]Read from MH i2c: E2 03 00 [11:04:43]MH_I2C_Read... [11:04:43]Read from MH i2c: E2 03 00 43 8E 00 90 00 45 [11:04:43]RAPDU: 90 00 [11:04:43]wFMCommunicate OK [11:04:43]SAM_PROTO_ClearQueue done [11:04:43]KKMCreateOFDPacket [11:04:43]OFDProtocolAddRootSTLVToBuf [11:04:43]FM_MakeSignedData [11:04:43]FM_MakeSignedData [11:04:43]SAM_PROTO_SignData [11:04:43]wFMCommunicate request_size=4 [11:04:43]MH_SAM_APDU [11:04:43]CAPDU: 80 0D 01 02 [11:04:43]Write to MH i2c: E2 08 00 44 8E 80 0D 01 02 00 00 00 00 4B [11:04:43]Write i2c OK [11:04:43]MH_I2C_Read... [11:04:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:04:43]Read from MH i2c: E2 [11:04:43]MH_I2C_Read... [11:04:43]Read from MH i2c: E2 03 00 [11:04:43]MH_I2C_Read... [11:04:43]Read from MH i2c: E2 03 00 44 8E 00 90 00 46 [11:04:43]RAPDU: 90 00 [11:04:43]wFMCommunicate OK [11:04:43]wFMCommunicate request_size=255 [11:04:43]MH_SAM_APDU [11:04: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 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 67 00 00 00 F4 03 04 00 54 B8 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 09 72 00 00 35 04 06 00 3F [11:04:43]Write to MH i2c: E2 02 01 45 8E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 67 00 00 00 F4 03 04 00 54 B8 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 09 72 00 00 35 04 06 00 3F 00 00 99 [11:04:43]Write i2c OK [11:04:43]MH_I2C_Read... [11:04:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:04:43]Read from MH i2c: E2 [11:04:43]MH_I2C_Read... [11:04:43]Read from MH i2c: E2 03 00 [11:04:43]MH_I2C_Read... [11:04:43]Read from MH i2c: E2 03 00 45 8E 00 90 00 47 [11:04:43]RAPDU: 90 00 [11:04:43]wFMCommunicate OK [11:04:43]wFMCommunicate request_size=10 [11:04:43]MH_SAM_APDU [11:04:43]CAPDU: 80 0D 02 02 05 3B EC DC C2 4B [11:04:43]Write to MH i2c: E2 0D 00 46 8E 80 0D 02 02 05 00 3B EC DC C2 4B 00 00 68 [11:04:43]Write i2c OK [11:04:43]MH_I2C_Read... [11:04:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:04:43]Read from MH i2c: E2 [11:04:43]MH_I2C_Read... [11:04:43]Read from MH i2c: E2 03 00 [11:04:43]MH_I2C_Read... [11:04:43]Read from MH i2c: E2 03 00 46 8E 00 90 00 48 [11:04:43]RAPDU: 90 00 [11:04:43]wFMCommunicate OK [11:04:43]wFMCommunicate request_size=4 [11:04:43]MH_SAM_APDU [11:04:43]CAPDU: 80 0D 03 02 [11:04:43]Write to MH i2c: E2 08 00 47 8E 80 0D 03 02 00 00 00 00 50 [11:04:43]Write i2c OK [11:04:43]MH_I2C_Read... [11:04:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:04:43]Read from MH i2c: E2 [11:04:43]MH_I2C_Read... [11:04:43]Read from MH i2c: E2 0B 00 [11:04:43]MH_I2C_Read... [11:04:43]Read from MH i2c: E2 0B 00 47 8E 00 E9 15 0D 29 82 4E F0 8D 90 00 D2 [11:04:43]RAPDU: E9 15 0D 29 82 4E F0 8D 90 00 [11:04:43]wFMCommunicate OK [11:04:43]SAM_PROTO_SignData done [11:04:43]FM_MakeSignedData done [11:04:43]CreateOFDProtocolMessage [11:04:43]wFMCommunicate request_size=4 [11:04:43]MH_SAM_APDU [11:04:43]CAPDU: 80 11 00 00 [11:04:43]Write to MH i2c: E2 08 00 48 8E 80 11 00 00 00 00 00 00 50 [11:04:43]Write i2c OK [11:04:43]MH_I2C_Read... [11:04:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:04:44]Read from MH i2c: E2 [11:04:44]MH_I2C_Read... [11:04:44]Read from MH i2c: E2 17 00 [11:04:44]MH_I2C_Read... [11:04:44]Read from MH i2c: E2 17 00 48 8E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 9F [11:04:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:04:44]wFMCommunicate OK [11:04:44]CreateOFDProtocolMessage done [11:04:44]OFDSenderStorePacket 29193 [11:04:44]StoreOFDPacket docnum=29193 [11:04:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 7E CC 07 01 F5 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 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 67 00 00 00 F4 03 04 00 54 B8 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 09 72 00 00 35 04 06 00 3F 3B EC DC C2 4B E9 15 0D 29 82 4E F0 8D [11:04:44]CheckFolder [11:04:44]dirname=/storage/ofd_packets [11:04:44]CheckFolder done [11:04:44]ProducePacketName [11:04:44]name=ofd_packets/00029193 [11:04:44]NVStorageSaveData ofd_packets/00029193 [11:04:44]File name is /storage/ofd_packets/00029193 [11:04:44]Write 301 bytes [11:04:44]NVStorageSaveData done [11:04:44]OFDSenderStorePacket done [11:04:44]KKMCreateOFDPacket done [11:04:44]NVStorageSaveData kkm_last_timestamp [11:04:44]File name is /storage/kkm_last_timestamp [11:04:44]Write 4 bytes [11:04:44]NVStorageSaveData done [11:04:44]ExternCall_PrintAddStr [11:04:44]wPrintStart [11:04:44]Write to MH i2c: 01 00 00 49 8E D7 [11:04:44]Write i2c OK [11:04:44]MH_I2C_Read... [11:04:44]Read from MH i2c: 01 [11:04:44]MH_I2C_Read... [11:04:44]Read from MH i2c: 01 07 00 [11:04:44]MH_I2C_Read... [11:04:44]Read from MH i2c: 01 07 00 49 8E 00 00 00 00 00 FF 0F EC [11:04:44]RasterBufferAndPrint [11:04:44]line Счет N : (1)347564 [11:04:44]line ИНН: 02508201610067 [11:04:44]line Контрольно-Кассовый Чек [11:04:44]line ПРОДАЖА [11:04:44]line ТРК (МРК, ГНК) : 23 [11:04:44]line Товар: 2710124130 [11:04:44]line Аи-92-К-5 [11:04:44]line 15.560 * 64.30 [11:04:44]line = 1000.51 [11:04:44]line НДС 12% НСП 1% [11:04:44]line > о реализуемом товаре [11:04:44]line ОКРУГЛЕНИЕ: -0.51 [11:04:44]line ИТОГО: 1000.00 [11:04:44]line Внесено: 1000.00 [11:04:44]line СДАЧА: 0.00 [11:04:44]line НСП 1% : 8.85 [11:04:44]line НДС 12% : 106.25 [11:04:44]line Наличными: 1000.00 [11:04:44]line Безнал.: 0.00 [11:04:44]line Место: АЗС № 108 "Партнер Нефть" [11:04:44]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [11:04:44]line СНО: Общий режим [11:04:44]line Чек 103 14.04.2024 11:04 [11:04:44]line Смена: 116 ФФД: 1.0 [11:04:44]line ЗНМ: 0300000027 [11:04:44]line РНМ: 0000138879044617 [11:04:44]line Версия ККМ: 001 [11:04:44]line ФМ: 0000000000963154 [11:04:44]line ФД: 29193 [11:04:44]line ФПД: 69526609510987 [11:04:44]line 1/tax-web-control/client/api/v1/ticket?date=20240414T110452&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29193&fm=69526609510987&tin=02508201610067®Number=0000138879044617&sum=100000 [11:04:44]OFD Sender: Processing packet 29193 [packets to send 8, broken 7] [11:04:44]ProducePacketName [11:04:44]name=ofd_packets/00029193 [11:04:44]OFD Sender: To server: pG, [11:04:44]CommunicateWithHost lk.salyk.kg:30040 [11:04:44]ConnectInit lk.salyk.kg [11:04:44]written 0, free lines is 4095 [11:04:44]Connected sock=10 [11:04:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 7E CC 07 01 F5 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 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 67 00 00 00 F4 03 04 00 54 B8 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 09 72 00 00 35 04 06 00 3F 3B EC DC C2 4B E9 15 0D 29 82 4E F0 8D [11:04:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 E6 16 47 00 69 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 09 72 00 00 F4 03 04 00 F8 62 1B 66 B6 04 01 00 00 22 90 16 F1 32 A1 A3 F6 [11:04:44]CommunicateWithHost err = 0 [11:04:44]CheckOFDResponse [11:04:44]1017 (14) - 77093643461234 [11:04:44]1041 (16) - 0000000000963154 [11:04:44]1040 (4) - 29193 [11:04:44]1012 (4) - 14.04.2024 05:00 [11:04:44]1206 (1) - 0 [11:04:44]OFD Sender: Remove packet 29193 [11:04:44]ProducePacketName [11:04:44]name=ofd_packets/00029193 [11:04:44]NVStorageDeleteData [11:04:44]Write to MH i2c: 01 00 00 73 8E 01 [11:04:44]Write i2c OK [11:04:44]MH_I2C_Read... [11:04:44]Read from MH i2c: 01 [11:04:44]MH_I2C_Read... [11:04:44]Read from MH i2c: 01 07 00 [11:04:44]MH_I2C_Read... [11:04:44]Read from MH i2c: 01 07 00 73 8E 00 00 00 00 00 C2 0C D6 [11:04:44]RasterBufferAndPrint [11:04:44]line [11:04:44]line [11:04:44]line [11:04:44]line [11:04:44]line [11:04:44]written 0, free lines is 3272 [11:04:44]MH_Cut [11:04:44]Write to MH i2c: D1 01 00 7A 8E 01 DA [11:04:44]Write i2c OK [11:04:44]MH_I2C_Read... [11:04:44]Read from MH i2c: D1 [11:04:44]MH_I2C_Read... [11:04:44]Read from MH i2c: D1 01 00 [11:04:44]MH_I2C_Read... [11:04:44]Read from MH i2c: D1 01 00 7A 8E 00 D9 [11:04:44]Write to MH i2c: 01 00 00 7B 8E 09 [11:04:44]Write i2c OK [11:04:44]MH_I2C_Read... [11:04:45]OFD Sender: No OFD packet to send [11:04:45]*** Cut start [11:04:45]*** Partial cut [11:04:45]*** CUTSNS_PIN = 1 [11:04:45]*** CUTSNS_PIN = 0 [11:04:45]*** Brake cut motor [11:04:46]Read from MH i2c: 01 [11:04:46]MH_I2C_Read... [11:04:46]*** Stop cut motor [11:04:46]Read from MH i2c: 01 07 00 [11:04:46]MH_I2C_Read... [11:04:46]*** Cut end [11:04:46]Read from MH i2c: 01 07 00 7B 8E 00 00 00 00 00 FF 0F 1E [11:04:46]process_action close_receipt done [11:04:46]requested_data is exist [11:04:46]produce_requested_data [11:04:46]requested_item fm.sn is exist - process it [11:04:46]wFMCommunicate request_size=4 [11:04:46]MH_SAM_APDU [11:04:46]CAPDU: 80 11 00 00 [11:04:46]Write to MH i2c: E2 08 00 7C 8E 80 11 00 00 00 00 00 00 84 [11:04:46]Write i2c OK [11:04:46]MH_I2C_Read... [11:04:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:04:46]Read from MH i2c: E2 [11:04:46]MH_I2C_Read... [11:04:46]Read from MH i2c: E2 17 00 [11:04:46]MH_I2C_Read... [11:04:46]Read from MH i2c: E2 17 00 7C 8E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D3 [11:04:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:04:46]wFMCommunicate OK [11:04:46]requested_item fd.num is exist - process it [11:04:46]SAM_PROTO_GetFieldsCounters [11:04:46]wFMCommunicate request_size=4 [11:04:46]MH_SAM_APDU [11:04:46]CAPDU: 80 13 00 00 [11:04:46]Write to MH i2c: E2 08 00 7D 8E 80 13 00 00 00 00 00 00 87 [11:04:46]Write i2c OK [11:04:46]MH_I2C_Read... [11:04:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:04:46]Read from MH i2c: E2 [11:04:46]MH_I2C_Read... [11:04:46]Read from MH i2c: E2 62 00 [11:04:46]MH_I2C_Read... [11:04:46]Read from MH i2c: E2 62 00 7D 8E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 09 72 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 E9 [11:04:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 09 72 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:04:46]wFMCommunicate OK [11:04:46]SAM_PROTO_GetFieldsCounters done [11:04:46]requested_item shift.num is exist - process it [11:04:46]requested_item shift.opened is exist - process it [11:04:46]req_shift_opened [11:04:46]FM_GetShiftState [11:04:46]SAM_PROTO_GetShiftState [11:04:46]wFMCommunicate request_size=4 [11:04:46]MH_SAM_APDU [11:04:46]CAPDU: 80 13 01 00 [11:04:46]Write to MH i2c: E2 08 00 7E 8E 80 13 01 00 00 00 00 00 89 [11:04:46]Write i2c OK [11:04:46]MH_I2C_Read... [11:04:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:04:46]Read from MH i2c: E2 [11:04:46]MH_I2C_Read... [11:04:46]Read from MH i2c: E2 0E 00 [11:04:46]MH_I2C_Read... [11:04:46]Read from MH i2c: E2 0E 00 7E 8E 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 35 [11:04:46]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [11:04:46]wFMCommunicate OK [11:04:46]SAM_PROTO_GetShiftState done [11:04:46]FM_GetShiftState done [11:04:46]req_shift_opened done [11:04:46]requested_item shift.open_date is exist - process it [11:04:46]req_shift_open_date [11:04:46]req_shift_open_date done [11:04:46]produce_requested_data done [11:04:46]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29193,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [11:04:46]process_action_free close_receipt [11:04:46]json_value_free [11:04:46]json_value_free done [11:04:46]process_json_proto returns [11:04:46]Send response to host [11:04:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29193,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [11:04:46]free response buf [11:04:46]execute_script done [11:04:46]execute_script returns [11:04:46]free content buf [11:04:46]Sock 9.Close socket [11:04:46]Sock 9.Thread stoped [11:04:50]OFD Sender: No OFD packet to send [11:04:55]OFD Sender: No OFD packet to send [11:05:00]OFD Sender: No OFD packet to send [11:05:05]OFD Sender: No OFD packet to send [11:05:10]OFD Sender: No OFD packet to send [11:05:15]OFD Sender: No OFD packet to send [11:05:20]OFD Sender: No OFD packet to send [11:05:25]OFD Sender: No OFD packet to send [11:05:30]OFD Sender: No OFD packet to send [11:05:35]OFD Sender: No OFD packet to send [11:05:40]OFD Sender: No OFD packet to send [11:05:45]OFD Sender: No OFD packet to send [11:05:50]OFD Sender: No OFD packet to send [11:05:55]OFD Sender: No OFD packet to send [11:06:00]OFD Sender: No OFD packet to send [11:06:05]OFD Sender: No OFD packet to send [11:06:10]OFD Sender: No OFD packet to send [11:06:15]OFD Sender: No OFD packet to send [11:06:20]OFD Sender: No OFD packet to send [11:06:25]OFD Sender: No OFD packet to send [11:06:30]OFD Sender: No OFD packet to send [11:06:35]OFD Sender: No OFD packet to send [11:06:40]OFD Sender: No OFD packet to send [11:06:45]OFD Sender: No OFD packet to send [11:06:50]OFD Sender: No OFD packet to send [11:06:55]OFD Sender: No OFD packet to send [11:07:00]OFD Sender: No OFD packet to send [11:07:05]OFD Sender: No OFD packet to send [11:07:10]OFD Sender: No OFD packet to send [11:07:15]OFD Sender: No OFD packet to send [11:07:20]OFD Sender: No OFD packet to send [11:07:25]OFD Sender: No OFD packet to send [11:07:30]OFD Sender: No OFD packet to send [11:07:35]OFD Sender: No OFD packet to send [11:07:40]OFD Sender: No OFD packet to send [11:07:45]OFD Sender: No OFD packet to send [11:07:50]OFD Sender: No OFD packet to send [11:07:55]OFD Sender: No OFD packet to send [11:08:00]OFD Sender: No OFD packet to send [11:08:05]OFD Sender: No OFD packet to send [11:08:10]OFD Sender: No OFD packet to send [11:08:15]OFD Sender: No OFD packet to send [11:08:20]OFD Sender: No OFD packet to send [11:08:25]OFD Sender: No OFD packet to send [11:08:30]OFD Sender: No OFD packet to send [11:08:35]OFD Sender: No OFD packet to send [11:08:40]OFD Sender: No OFD packet to send [11:08:45]OFD Sender: No OFD packet to send [11:08:50]OFD Sender: No OFD packet to send [11:08:55]OFD Sender: No OFD packet to send [11:09:00]OFD Sender: No OFD packet to send [11:09:05]OFD Sender: No OFD packet to send [11:09:10]OFD Sender: No OFD packet to send [11:09:15]OFD Sender: No OFD packet to send [11:09:20]OFD Sender: No OFD packet to send [11:09:25]OFD Sender: No OFD packet to send [11:09:30]OFD Sender: No OFD packet to send [11:09:35]OFD Sender: No OFD packet to send [11:09:40]OFD Sender: No OFD packet to send [11:09:45]OFD Sender: No OFD packet to send [11:09:50]OFD Sender: No OFD packet to send [11:09:55]OFD Sender: No OFD packet to send [11:10:00]OFD Sender: No OFD packet to send [11:10:05]OFD Sender: No OFD packet to send [11:10:10]OFD Sender: No OFD packet to send [11:10:15]OFD Sender: No OFD packet to send [11:10:20]OFD Sender: No OFD packet to send [11:10:25]OFD Sender: No OFD packet to send [11:10:30]OFD Sender: No OFD packet to send [11:10:35]OFD Sender: No OFD packet to send [11:10:40]OFD Sender: No OFD packet to send [11:10:45]OFD Sender: No OFD packet to send [11:10:50]OFD Sender: No OFD packet to send [11:10:55]OFD Sender: No OFD packet to send [11:11:00]OFD Sender: No OFD packet to send [11:11:05]OFD Sender: No OFD packet to send [11:11:10]OFD Sender: No OFD packet to send [11:11:15]OFD Sender: No OFD packet to send [11:11:20]OFD Sender: No OFD packet to send [11:11:25]OFD Sender: No OFD packet to send [11:11:30]OFD Sender: No OFD packet to send [11:11:35]OFD Sender: No OFD packet to send [11:11:40]OFD Sender: No OFD packet to send [11:11:45]OFD Sender: No OFD packet to send [11:11:50]OFD Sender: No OFD packet to send [11:11:55]OFD Sender: No OFD packet to send [11:12:00]OFD Sender: No OFD packet to send [11:12:05]OFD Sender: No OFD packet to send [11:12:10]OFD Sender: No OFD packet to send [11:12:15]OFD Sender: No OFD packet to send [11:12:20]OFD Sender: No OFD packet to send [11:12:25]OFD Sender: No OFD packet to send [11:12:30]OFD Sender: No OFD packet to send [11:12:35]OFD Sender: No OFD packet to send [11:12:40]OFD Sender: No OFD packet to send [11:12:45]OFD Sender: No OFD packet to send [11:12:50]OFD Sender: No OFD packet to send [11:12:55]OFD Sender: No OFD packet to send [11:13:00]OFD Sender: No OFD packet to send [11:13:05]OFD Sender: No OFD packet to send [11:13:10]OFD Sender: No OFD packet to send [11:13:15]OFD Sender: No OFD packet to send [11:13:20]OFD Sender: No OFD packet to send [11:13:25]OFD Sender: No OFD packet to send [11:13:30]OFD Sender: No OFD packet to send [11:13:35]OFD Sender: No OFD packet to send [11:13:40]OFD Sender: No OFD packet to send [11:13:45]OFD Sender: No OFD packet to send [11:13:50]OFD Sender: No OFD packet to send [11:13:55]OFD Sender: No OFD packet to send [11:14:00]OFD Sender: No OFD packet to send [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:45]OFD Sender: No OFD packet to send [11:14:50]OFD Sender: No OFD packet to send [11:14:55]OFD Sender: No OFD packet to send [11:15:00]OFD Sender: No OFD packet to send [11:15:05]OFD Sender: No OFD packet to send [11:15:10]OFD Sender: No OFD packet to send [11:15:15]OFD Sender: No OFD packet to send [11:15:20]OFD Sender: No OFD packet to send [11:15:25]OFD Sender: No OFD packet to send [11:15:30]OFD Sender: No OFD packet to send [11:15:35]OFD Sender: No OFD packet to send [11:15:40]OFD Sender: No OFD packet to send [11:15:45]OFD Sender: No OFD packet to send [11:15:50]OFD Sender: No OFD packet to send [11:15:55]OFD Sender: No OFD packet to send [11:16:00]OFD Sender: No OFD packet to send [11:16:05]OFD Sender: No OFD packet to send [11:16:10]OFD Sender: No OFD packet to send [11:16:15]OFD Sender: No OFD packet to send [11:16:20]OFD Sender: No OFD packet to send [11:16:25]OFD Sender: No OFD packet to send [11:16:30]OFD Sender: No OFD packet to send [11:16:35]OFD Sender: No OFD packet to send [11:16:38]accept exits with 7 [11:16:38]New connection [11:16:38]New thread 3066928484 created [11:16:38]Thread 3066785124 joined [11:16:38]Waiting for new connection... [11:16:38] Sock 7.Parse request [11:16:38]Sock 7.Check first char [11:16:38]Sock 7.First char is OK [11:16:38]request: POST /json_proto HTTP/1.0 [11:16:38]Method: POST [11:16:38]URL: /json_proto [11:16:38]Method is POST - this is cgi request [11:16:38]url: /json_proto [11:16:38]query_string will be loaded in cgi processing [11:16:38]execute_cgi json_proto POST (null) [11:16:38]execute_cgi path=json_proto method=POST [11:16:38]POST find Content-Length [11:16:38]Host: 172.17.33.3:8080 [11:16:38]Content-Length: 677 [11:16:38]Content-Type: application/json [11:16:38] [11:16:38]POST finish read [11:16:38]Found Content-Length = 677 [11:16:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347566", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.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" ] } } [11:16:38]execute_script... [11: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 : (1)347566", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.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" ] } } [11:16:38]POST & json_proto [11:16:38]process_json_proto [11:16:38]json parsed OK: [11:16:38]protocol is kg_v1.0 [11:16:38]action value=close_receipt [11:16:38]process_action close_receipt [11:16:38]cmd_close_receipt [11:16:38]MH_GetDate [11:16:38]Write to MH i2c: F0 00 00 7F 8E FC [11:16:38]Write i2c OK [11:16:38]MH_I2C_Read... [11:16:38]Read from MH i2c: F0 [11:16:38]MH_I2C_Read... [11:16:38]Read from MH i2c: F0 09 00 [11:16:38]MH_I2C_Read... [11:16:38]Read from MH i2c: F0 09 00 7F 8E 00 20 BB 1B 66 23 5B 8F 65 D3 [11:16:38]GetLastDocTimeStamp 1713092692 [11:16:38]current date 1713093408 [11:16:38]FM_GetShiftState [11:16:38]SAM_PROTO_GetShiftState [11:16:38]wFMCommunicate request_size=4 [11:16:38]MH_SAM_APDU [11:16:38]CAPDU: 80 13 01 00 [11:16:38]Write to MH i2c: E2 08 00 80 8E 80 13 01 00 00 00 00 00 8B [11:16:38]Write i2c OK [11:16:38]MH_I2C_Read... [11:16:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:38]Read from MH i2c: E2 [11:16:38]MH_I2C_Read... [11:16:38]Read from MH i2c: E2 0E 00 [11:16:38]MH_I2C_Read... [11:16:38]Read from MH i2c: E2 0E 00 80 8E 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 37 [11:16:38]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [11:16:38]wFMCommunicate OK [11:16:38]SAM_PROTO_GetShiftState done [11:16:38]FM_GetShiftState done [11:16:38]opened in 1713053951 [11:16:38]opened+sec_in_day 1713140351 [11:16:38]quantity*price = 40058 [11:16:38]sum+1 = 40060 [11:16: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 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 104 14.04.2024 11:16 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29194 ФПД: 105818622389005 1/tax-web-control/client/api/v1/ticket?date=20240414T111648&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29194&fm=105818622389005&tin=02508201610067®Number=0000138879044617&sum=40000 [11:16:39]StoreToDocumentArchive [11:16:39]shift 116 fd 29194 [11:16:39]save to /storage/0116/doc_00029194 [11:16:39]save last doc name /storage/0116/doc_00029194 to /storage/kkm_last_doc_name [11:16:39]save OK [11:16:39]Clear old archive folders... [11:16:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:16:39]tlvbuf is 0140A520 [11:16:39]SAM_PROTO_ClearQueue [11:16:39]wFMCommunicate request_size=4 [11:16:39]MH_SAM_APDU [11:16:39]CAPDU: 80 09 00 00 [11:16:39]Write to MH i2c: E2 08 00 8D 8E 80 09 00 00 00 00 00 00 8D [11:16:39]Write i2c OK [11:16:39]MH_I2C_Read... [11:16:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:16:39]Read from MH i2c: E2 [11:16:39]MH_I2C_Read... [11:16:39]Read from MH i2c: E2 03 00 [11:16:39]MH_I2C_Read... [11:16:39]Read from MH i2c: E2 03 00 8D 8E 00 90 00 8F [11:16:39]RAPDU: 90 00 [11:16:39]wFMCommunicate OK [11:16:39]SAM_PROTO_ClearQueue done [11:16:39]KKMCreateOFDPacket [11:16:39]OFDProtocolAddRootSTLVToBuf [11:16:39]FM_MakeSignedData [11:16:39]FM_MakeSignedData [11:16:39]SAM_PROTO_SignData [11:16:39]wFMCommunicate request_size=4 [11:16:39]MH_SAM_APDU [11:16:39]CAPDU: 80 0D 01 02 [11:16:39]Write to MH i2c: E2 08 00 8E 8E 80 0D 01 02 00 00 00 00 95 [11:16:39]Write i2c OK [11:16:39]MH_I2C_Read... [11:16:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:16:39]Read from MH i2c: E2 [11:16:39]MH_I2C_Read... [11:16:39]Read from MH i2c: E2 03 00 [11:16:39]MH_I2C_Read... [11:16:39]Read from MH i2c: E2 03 00 8E 8E 00 90 00 90 [11:16:39]RAPDU: 90 00 [11:16:39]wFMCommunicate OK [11:16:39]wFMCommunicate request_size=255 [11:16:39]MH_SAM_APDU [11:16: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 68 00 00 00 F4 03 04 00 20 BB 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0A 72 00 00 35 04 06 00 60 [11:16:39]Write to MH i2c: E2 02 01 8F 8E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 68 00 00 00 F4 03 04 00 20 BB 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0A 72 00 00 35 04 06 00 60 00 00 55 [11:16:39]Write i2c OK [11:16:39]MH_I2C_Read... [11:16:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:40]Read from MH i2c: E2 [11:16:40]MH_I2C_Read... [11:16:40]Read from MH i2c: E2 03 00 [11:16:40]MH_I2C_Read... [11:16:40]Read from MH i2c: E2 03 00 8F 8E 00 90 00 91 [11:16:40]RAPDU: 90 00 [11:16:40]wFMCommunicate OK [11:16:40]wFMCommunicate request_size=10 [11:16:40]MH_SAM_APDU [11:16:40]CAPDU: 80 0D 02 02 05 3D D1 65 EB 0D [11:16:40]Write to MH i2c: E2 0D 00 90 8E 80 0D 02 02 05 00 3D D1 65 EB 0D 00 00 0D [11:16:40]Write i2c OK [11:16:40]MH_I2C_Read... [11:16:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:40]Read from MH i2c: E2 [11:16:40]MH_I2C_Read... [11:16:40]Read from MH i2c: E2 03 00 [11:16:40]MH_I2C_Read... [11:16:40]Read from MH i2c: E2 03 00 90 8E 00 90 00 92 [11:16:40]RAPDU: 90 00 [11:16:40]wFMCommunicate OK [11:16:40]wFMCommunicate request_size=4 [11:16:40]MH_SAM_APDU [11:16:40]CAPDU: 80 0D 03 02 [11:16:40]Write to MH i2c: E2 08 00 91 8E 80 0D 03 02 00 00 00 00 9A [11:16:40]Write i2c OK [11:16:40]MH_I2C_Read... [11:16:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:16:40]Read from MH i2c: E2 [11:16:40]MH_I2C_Read... [11:16:40]Read from MH i2c: E2 0B 00 [11:16:40]MH_I2C_Read... [11:16:40]Read from MH i2c: E2 0B 00 91 8E 00 E4 18 DF 7A 8D 73 27 D2 90 00 E9 [11:16:40]RAPDU: E4 18 DF 7A 8D 73 27 D2 90 00 [11:16:40]wFMCommunicate OK [11:16:40]SAM_PROTO_SignData done [11:16:40]FM_MakeSignedData done [11:16:40]CreateOFDProtocolMessage [11:16:40]wFMCommunicate request_size=4 [11:16:40]MH_SAM_APDU [11:16:40]CAPDU: 80 11 00 00 [11:16:40]Write to MH i2c: E2 08 00 92 8E 80 11 00 00 00 00 00 00 9A [11:16:40]Write i2c OK [11:16:40]MH_I2C_Read... [11:16:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:40]Read from MH i2c: E2 [11:16:40]MH_I2C_Read... [11:16:40]Read from MH i2c: E2 17 00 [11:16:40]MH_I2C_Read... [11:16:40]Read from MH i2c: E2 17 00 92 8E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E9 [11:16:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:16:40]wFMCommunicate OK [11:16:40]CreateOFDProtocolMessage done [11:16:40]OFDSenderStorePacket 29194 [11:16:40]StoreOFDPacket docnum=29194 [11:16:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 7C A8 07 01 59 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 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 68 00 00 00 F4 03 04 00 20 BB 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0A 72 00 00 35 04 06 00 60 3D D1 65 EB 0D E4 18 DF 7A 8D 73 27 D2 [11:16:40]CheckFolder [11:16:40]dirname=/storage/ofd_packets [11:16:40]CheckFolder done [11:16:40]ProducePacketName [11:16:40]name=ofd_packets/00029194 [11:16:40]NVStorageSaveData ofd_packets/00029194 [11:16:40]File name is /storage/ofd_packets/00029194 [11:16:40]Write 301 bytes [11:16:40]NVStorageSaveData done [11:16:40]OFDSenderStorePacket done [11:16:40]KKMCreateOFDPacket done [11:16:40]NVStorageSaveData kkm_last_timestamp [11:16:40]File name is /storage/kkm_last_timestamp [11:16:40]Write 4 bytes [11:16:40]NVStorageSaveData done [11:16:40]ExternCall_PrintAddStr [11:16:40]wPrintStart [11:16:40]Write to MH i2c: 01 00 00 93 8E 21 [11:16:40]Write i2c OK [11:16:40]MH_I2C_Read... [11:16:40]Read from MH i2c: 01 [11:16:40]MH_I2C_Read... [11:16:40]Read from MH i2c: 01 07 00 [11:16:40]MH_I2C_Read... [11:16:40]Read from MH i2c: 01 07 00 93 8E 00 00 00 00 00 FF 0F 36 [11:16:40]RasterBufferAndPrint [11:16:40]line Счет N : (1)347566 [11:16:40]line ИНН: 02508201610067 [11:16:40]line Контрольно-Кассовый Чек [11:16:40]line ПРОДАЖА [11:16:40]line ТРК (МРК, ГНК) : 23 [11:16:40]line Товар: 2710124130 [11:16:40]line Аи-92-К-5 [11:16:40]line 6.230 * 64.30 [11:16:40]line = 400.59 [11:16:40]line НДС 12% НСП 1% [11:16:40]line > о реализуемом товаре [11:16:40]line ОКРУГЛЕНИЕ: -0.59 [11:16:40]line ИТОГО: 400.00 [11:16:40]line Внесено: 400.00 [11:16:40]line СДАЧА: 0.00 [11:16:40]line НСП 1% : 3.54 [11:16:40]line НДС 12% : 42.54 [11:16:40]line Наличными: 400.00 [11:16:40]line Безнал.: 0.00 [11:16:40]line Место: АЗС № 108 "Партнер Нефть" [11:16:40]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [11:16:40]line СНО: Общий режим [11:16:40]line Чек 104 14.04.2024 11:16 [11:16:40]line Смена: 116 ФФД: 1.0 [11:16:40]line ЗНМ: 0300000027 [11:16:40]line РНМ: 0000138879044617 [11:16:40]line Версия ККМ: 001 [11:16:40]line ФМ: 0000000000963154 [11:16:40]line ФД: 29194 [11:16:40]line ФПД: 105818622389005 [11:16:40]line 1/tax-web-control/client/api/v1/ticket?date=20240414T111648&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29194&fm=105818622389005&tin=02508201610067®Number=0000138879044617&sum=40000 [11:16:40]OFD Sender: Processing packet 29194 [packets to send 8, broken 7] [11:16:40]ProducePacketName [11:16:40]name=ofd_packets/00029194 [11:16:40]OFD Sender: To server: pG, [11:16:40]CommunicateWithHost lk.salyk.kg:30040 [11:16:40]ConnectInit lk.salyk.kg [11:16:40]written 0, free lines is 4095 [11:16:40]Connected sock=10 [11:16:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 7C A8 07 01 59 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 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 68 00 00 00 F4 03 04 00 20 BB 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0A 72 00 00 35 04 06 00 60 3D D1 65 EB 0D E4 18 DF 7A 8D 73 27 D2 [11:16:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 DA 3E 47 00 FC 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0A 72 00 00 F4 03 04 00 C4 65 1B 66 B6 04 01 00 00 42 D1 D3 BA 5C CB AD 6C [11:16:40]CommunicateWithHost err = 0 [11:16:40]CheckOFDResponse [11:16:40]1017 (14) - 77093643461234 [11:16:40]1041 (16) - 0000000000963154 [11:16:40]1040 (4) - 29194 [11:16:40]1012 (4) - 14.04.2024 05:12 [11:16:40]1206 (1) - 0 [11:16:40]OFD Sender: Remove packet 29194 [11:16:40]ProducePacketName [11:16:40]name=ofd_packets/00029194 [11:16:40]NVStorageDeleteData [11:16:41]Write to MH i2c: 01 00 00 BD 8E 4B [11:16:41]Write i2c OK [11:16:41]MH_I2C_Read... [11:16:41]Read from MH i2c: 01 [11:16:41]MH_I2C_Read... [11:16:41]Read from MH i2c: 01 07 00 [11:16:41]MH_I2C_Read... [11:16:41]Read from MH i2c: 01 07 00 BD 8E 00 00 00 00 00 C6 0C 24 [11:16:41]RasterBufferAndPrint [11:16:41]line [11:16:41]line [11:16:41]line [11:16:41]line [11:16:41]line [11:16:41]written 0, free lines is 3275 [11:16:41]MH_Cut [11:16:41]Write to MH i2c: D1 01 00 C4 8E 01 24 [11:16:41]Write i2c OK [11:16:41]MH_I2C_Read... [11:16:41]Read from MH i2c: D1 [11:16:41]MH_I2C_Read... [11:16:41]Read from MH i2c: D1 01 00 [11:16:41]MH_I2C_Read... [11:16:41]Read from MH i2c: D1 01 00 C4 8E 00 23 [11:16:41]Write to MH i2c: 01 00 00 C5 8E 53 [11:16:41]Write i2c OK [11:16:41]MH_I2C_Read... [11:16:41]OFD Sender: No OFD packet to send [11:16:41]*** Cut start [11:16:41]*** Partial cut [11:16:41]*** CUTSNS_PIN = 1 [11:16:41]*** CUTSNS_PIN = 0 [11:16:42]*** Brake cut motor [11:16:42]Read from MH i2c: 01 [11:16:42]MH_I2C_Read... [11:16:42]*** Stop cut motor [11:16:42]*** Cut end [11:16:42]Read from MH i2c: 01 07 00 [11:16:42]MH_I2C_Read... [11:16:42]Read from MH i2c: 01 07 00 C5 8E 00 00 00 00 00 FF 0F 68 [11:16:42]process_action close_receipt done [11:16:42]requested_data is exist [11:16:42]produce_requested_data [11:16:42]requested_item fm.sn is exist - process it [11:16:42]wFMCommunicate request_size=4 [11:16:42]MH_SAM_APDU [11:16:42]CAPDU: 80 11 00 00 [11:16:42]Write to MH i2c: E2 08 00 C6 8E 80 11 00 00 00 00 00 00 CE [11:16:42]Write i2c OK [11:16:42]MH_I2C_Read... [11:16:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:42]Read from MH i2c: E2 [11:16:42]MH_I2C_Read... [11:16:42]Read from MH i2c: E2 17 00 [11:16:42]MH_I2C_Read... [11:16:42]Read from MH i2c: E2 17 00 C6 8E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 1D [11:16:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:16:42]wFMCommunicate OK [11:16:42]requested_item fd.num is exist - process it [11:16:42]SAM_PROTO_GetFieldsCounters [11:16:42]wFMCommunicate request_size=4 [11:16:42]MH_SAM_APDU [11:16:42]CAPDU: 80 13 00 00 [11:16:42]Write to MH i2c: E2 08 00 C7 8E 80 13 00 00 00 00 00 00 D1 [11:16:42]Write i2c OK [11:16:42]MH_I2C_Read... [11:16:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:16:42]Read from MH i2c: E2 [11:16:42]MH_I2C_Read... [11:16:42]Read from MH i2c: E2 62 00 [11:16:42]MH_I2C_Read... [11:16:42]Read from MH i2c: E2 62 00 C7 8E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 0A 72 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 37 [11:16:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 0A 72 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:16:42]wFMCommunicate OK [11:16:42]SAM_PROTO_GetFieldsCounters done [11:16:42]requested_item shift.num is exist - process it [11:16:42]requested_item shift.opened is exist - process it [11:16:42]req_shift_opened [11:16:42]FM_GetShiftState [11:16:42]SAM_PROTO_GetShiftState [11:16:42]wFMCommunicate request_size=4 [11:16:42]MH_SAM_APDU [11:16:42]CAPDU: 80 13 01 00 [11:16:42]Write to MH i2c: E2 08 00 C8 8E 80 13 01 00 00 00 00 00 D3 [11:16:42]Write i2c OK [11:16:42]MH_I2C_Read... [11:16:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:42]Read from MH i2c: E2 [11:16:42]MH_I2C_Read... [11:16:42]Read from MH i2c: E2 0E 00 [11:16:42]MH_I2C_Read... [11:16:42]Read from MH i2c: E2 0E 00 C8 8E 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 7F [11:16:42]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [11:16:42]wFMCommunicate OK [11:16:42]SAM_PROTO_GetShiftState done [11:16:42]FM_GetShiftState done [11:16:42]req_shift_opened done [11:16:42]requested_item shift.open_date is exist - process it [11:16:42]req_shift_open_date [11:16:42]req_shift_open_date done [11:16:42]produce_requested_data done [11:16:42]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29194,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [11:16:42]process_action_free close_receipt [11:16:42]json_value_free [11:16:42]json_value_free done [11:16:42]process_json_proto returns [11:16:42]Send response to host [11:16:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29194,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [11:16:42]free response buf [11:16:42]execute_script done [11:16:42]execute_script returns [11:16:42]free content buf [11:16:42]Sock 7.Close socket [11:16:42]Sock 7.Thread stoped [11:16:46]OFD Sender: No OFD packet to send [11:16:51]OFD Sender: No OFD packet to send [11:16:56]OFD Sender: No OFD packet to send [11:17:01]OFD Sender: No OFD packet to send [11:17:06]OFD Sender: No OFD packet to send [11:17:11]OFD Sender: No OFD packet to send [11:17:16]OFD Sender: No OFD packet to send [11:17:21]OFD Sender: No OFD packet to send [11:17:26]OFD Sender: No OFD packet to send [11:17:31]OFD Sender: No OFD packet to send [11:17:36]OFD Sender: No OFD packet to send [11:17:41]OFD Sender: No OFD packet to send [11:17:46]OFD Sender: No OFD packet to send [11:17:51]OFD Sender: No OFD packet to send [11:17:56]OFD Sender: No OFD packet to send [11:18:01]OFD Sender: No OFD packet to send [11:18:06]OFD Sender: No OFD packet to send [11:18:11]OFD Sender: No OFD packet to send [11:18:16]OFD Sender: No OFD packet to send [11:18:21]OFD Sender: No OFD packet to send [11:18:26]OFD Sender: No OFD packet to send [11:18:31]OFD Sender: No OFD packet to send [11:18:36]OFD Sender: No OFD packet to send [11:18:41]OFD Sender: No OFD packet to send [11:18:46]OFD Sender: No OFD packet to send [11:18:51]OFD Sender: No OFD packet to send [11:18:56]OFD Sender: No OFD packet to send [11:19:01]OFD Sender: No OFD packet to send [11:19:06]OFD Sender: No OFD packet to send [11:19:11]OFD Sender: No OFD packet to send [11:19:16]OFD Sender: No OFD packet to send [11:19:21]OFD Sender: No OFD packet to send [11:19:26]OFD Sender: No OFD packet to send [11:19:31]OFD Sender: No OFD packet to send [11:19:36]OFD Sender: No OFD packet to send [11:19:41]OFD Sender: No OFD packet to send [11:19:46]OFD Sender: No OFD packet to send [11:19:51]OFD Sender: No OFD packet to send [11:19:56]OFD Sender: No OFD packet to send [11:20:01]OFD Sender: No OFD packet to send [11:20:06]OFD Sender: No OFD packet to send [11:20:11]OFD Sender: No OFD packet to send [11:20:16]OFD Sender: No OFD packet to send [11:20:21]OFD Sender: No OFD packet to send [11:20:26]OFD Sender: No OFD packet to send [11:20:31]OFD Sender: No OFD packet to send [11:20:36]OFD Sender: No OFD packet to send [11:20:41]OFD Sender: No OFD packet to send [11:20:46]OFD Sender: No OFD packet to send [11:20:51]OFD Sender: No OFD packet to send [11:20:56]OFD Sender: No OFD packet to send [11:21:01]OFD Sender: No OFD packet to send [11:21:06]OFD Sender: No OFD packet to send [11:21:11]OFD Sender: No OFD packet to send [11:21:16]OFD Sender: No OFD packet to send [11:21:21]OFD Sender: No OFD packet to send [11:21:26]OFD Sender: No OFD packet to send [11:21:31]OFD Sender: No OFD packet to send [11:21:36]OFD Sender: No OFD packet to send [11:21:39]accept exits with 9 [11:21:39]New connection [11:21:39]New thread 3066785124 created [11:21:39]Thread 3066928484 joined [11:21:39]Waiting for new connection... [11:21:39] Sock 9.Parse request [11:21:39]Sock 9.Check first char [11:21:39]Sock 9.First char is OK [11:21:39]request: POST /json_proto HTTP/1.0 [11:21:39]Method: POST [11:21:39]URL: /json_proto [11:21:39]Method is POST - this is cgi request [11:21:39]url: /json_proto [11:21:39]query_string will be loaded in cgi processing [11:21:39]execute_cgi json_proto POST (null) [11:21:39]execute_cgi path=json_proto method=POST [11:21:39]POST find Content-Length [11:21:39]Host: 172.17.33.3:8080 [11:21:39]Content-Length: 674 [11:21:39]Content-Type: application/json [11:21:39] [11:21:39]POST finish read [11:21:39]Found Content-Length = 674 [11:21:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347567", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.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" ] } } [11:21:39]execute_script... [11:21: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)347567", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.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" ] } } [11:21:39]POST & json_proto [11:21:39]process_json_proto [11:21:39]json parsed OK: [11:21:39]protocol is kg_v1.0 [11:21:39]action value=close_receipt [11:21:39]process_action close_receipt [11:21:39]cmd_close_receipt [11:21:39]MH_GetDate [11:21:39]Write to MH i2c: F0 00 00 C9 8E 46 [11:21:39]Write i2c OK [11:21:39]MH_I2C_Read... [11:21:39]Read from MH i2c: F0 [11:21:39]MH_I2C_Read... [11:21:39]Read from MH i2c: F0 09 00 [11:21:39]MH_I2C_Read... [11:21:39]Read from MH i2c: F0 09 00 C9 8E 00 4D BC 1B 66 23 5B 8F 65 4B [11:21:39]GetLastDocTimeStamp 1713093408 [11:21:39]current date 1713093709 [11:21:39]FM_GetShiftState [11:21:39]SAM_PROTO_GetShiftState [11:21:39]wFMCommunicate request_size=4 [11:21:39]MH_SAM_APDU [11:21:39]CAPDU: 80 13 01 00 [11:21:39]Write to MH i2c: E2 08 00 CA 8E 80 13 01 00 00 00 00 00 D5 [11:21:39]Write i2c OK [11:21:39]MH_I2C_Read... [11:21:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:21:39]Read from MH i2c: E2 [11:21:39]MH_I2C_Read... [11:21:39]Read from MH i2c: E2 0E 00 [11:21:39]MH_I2C_Read... [11:21:39]Read from MH i2c: E2 0E 00 CA 8E 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 81 [11:21:39]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [11:21:39]wFMCommunicate OK [11:21:39]SAM_PROTO_GetShiftState done [11:21:39]FM_GetShiftState done [11:21:39]opened in 1713053951 [11:21:39]opened+sec_in_day 1713140351 [11:21:39]quantity*price = 70010 [11:21:39]sum+1 = 70012 [11:21:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.35 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 105 14.04.2024 11:21 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29195 ФПД: 163248580006687 1/tax-web-control/client/api/v1/ticket?date=20240414T112149&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29195&fm=163248580006687&tin=02508201610067®Number=0000138879044617&sum=70000 [11:21:40]StoreToDocumentArchive [11:21:40]shift 116 fd 29195 [11:21:40]save to /storage/0116/doc_00029195 [11:21:40]save last doc name /storage/0116/doc_00029195 to /storage/kkm_last_doc_name [11:21:40]save OK [11:21:40]Clear old archive folders... [11:21:40]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:21:40]tlvbuf is 011EAF70 [11:21:40]SAM_PROTO_ClearQueue [11:21:40]wFMCommunicate request_size=4 [11:21:40]MH_SAM_APDU [11:21:40]CAPDU: 80 09 00 00 [11:21:40]Write to MH i2c: E2 08 00 D7 8E 80 09 00 00 00 00 00 00 D7 [11:21:40]Write i2c OK [11:21:40]MH_I2C_Read... [11:21:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:21:40]Read from MH i2c: E2 [11:21:40]MH_I2C_Read... [11:21:40]Read from MH i2c: E2 03 00 [11:21:40]MH_I2C_Read... [11:21:40]Read from MH i2c: E2 03 00 D7 8E 00 90 00 D9 [11:21:40]RAPDU: 90 00 [11:21:40]wFMCommunicate OK [11:21:40]SAM_PROTO_ClearQueue done [11:21:40]KKMCreateOFDPacket [11:21:40]OFDProtocolAddRootSTLVToBuf [11:21:40]FM_MakeSignedData [11:21:40]FM_MakeSignedData [11:21:40]SAM_PROTO_SignData [11:21:40]wFMCommunicate request_size=4 [11:21:40]MH_SAM_APDU [11:21:40]CAPDU: 80 0D 01 02 [11:21:40]Write to MH i2c: E2 08 00 D8 8E 80 0D 01 02 00 00 00 00 DF [11:21:40]Write i2c OK [11:21:40]MH_I2C_Read... [11:21:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:21:40]Read from MH i2c: E2 [11:21:40]MH_I2C_Read... [11:21:40]Read from MH i2c: E2 03 00 [11:21:40]MH_I2C_Read... [11:21:40]Read from MH i2c: E2 03 00 D8 8E 00 90 00 DA [11:21:40]RAPDU: 90 00 [11:21:40]wFMCommunicate OK [11:21:40]wFMCommunicate request_size=255 [11:21:40]MH_SAM_APDU [11:21:40]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 69 00 00 00 F4 03 04 00 4D BC 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0B 72 00 00 35 04 06 00 94 79 45 9F [11:21:40]Write to MH i2c: E2 02 01 D9 8E 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 69 00 00 00 F4 03 04 00 4D BC 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0B 72 00 00 35 04 06 00 94 79 45 9F 00 00 A4 [11:21:40]Write i2c OK [11:21:40]MH_I2C_Read... [11:21:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:21:41]Read from MH i2c: E2 [11:21:41]MH_I2C_Read... [11:21:41]Read from MH i2c: E2 03 00 [11:21:41]MH_I2C_Read... [11:21:41]Read from MH i2c: E2 03 00 D9 8E 00 90 00 DB [11:21:41]RAPDU: 90 00 [11:21:41]wFMCommunicate OK [11:21:41]wFMCommunicate request_size=7 [11:21:41]MH_SAM_APDU [11:21:41]CAPDU: 80 0D 02 02 02 13 1F [11:21:41]Write to MH i2c: E2 0A 00 DA 8E 80 0D 02 02 02 00 13 1F 00 00 18 [11:21:41]Write i2c OK [11:21:41]MH_I2C_Read... [11:21:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:21:41]Read from MH i2c: E2 [11:21:41]MH_I2C_Read... [11:21:41]Read from MH i2c: E2 03 00 [11:21:41]MH_I2C_Read... [11:21:41]Read from MH i2c: E2 03 00 DA 8E 00 90 00 DC [11:21:41]RAPDU: 90 00 [11:21:41]wFMCommunicate OK [11:21:41]wFMCommunicate request_size=4 [11:21:41]MH_SAM_APDU [11:21:41]CAPDU: 80 0D 03 02 [11:21:41]Write to MH i2c: E2 08 00 DB 8E 80 0D 03 02 00 00 00 00 E4 [11:21:41]Write i2c OK [11:21:41]MH_I2C_Read... [11:21:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:21:41]Read from MH i2c: E2 [11:21:41]MH_I2C_Read... [11:21:41]Read from MH i2c: E2 0B 00 [11:21:41]MH_I2C_Read... [11:21:41]Read from MH i2c: E2 0B 00 DB 8E 00 13 B3 88 BA 38 E2 C4 15 90 00 E0 [11:21:41]RAPDU: 13 B3 88 BA 38 E2 C4 15 90 00 [11:21:41]wFMCommunicate OK [11:21:41]SAM_PROTO_SignData done [11:21:41]FM_MakeSignedData done [11:21:41]CreateOFDProtocolMessage [11:21:41]wFMCommunicate request_size=4 [11:21:41]MH_SAM_APDU [11:21:41]CAPDU: 80 11 00 00 [11:21:41]Write to MH i2c: E2 08 00 DC 8E 80 11 00 00 00 00 00 00 E4 [11:21:41]Write i2c OK [11:21:41]MH_I2C_Read... [11:21:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:21:41]Read from MH i2c: E2 [11:21:41]MH_I2C_Read... [11:21:41]Read from MH i2c: E2 17 00 [11:21:41]MH_I2C_Read... [11:21:41]Read from MH i2c: E2 17 00 DC 8E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 33 [11:21:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:21:41]wFMCommunicate OK [11:21:41]CreateOFDProtocolMessage done [11:21:41]OFDSenderStorePacket 29195 [11:21:41]StoreOFDPacket docnum=29195 [11:21:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 E6 70 04 01 A1 E9 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 69 00 00 00 F4 03 04 00 4D BC 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0B 72 00 00 35 04 06 00 94 79 45 9F 13 1F 13 B3 88 BA 38 E2 C4 15 [11:21:41]CheckFolder [11:21:41]dirname=/storage/ofd_packets [11:21:41]CheckFolder done [11:21:41]ProducePacketName [11:21:41]name=ofd_packets/00029195 [11:21:41]NVStorageSaveData ofd_packets/00029195 [11:21:41]File name is /storage/ofd_packets/00029195 [11:21:41]Write 298 bytes [11:21:41]NVStorageSaveData done [11:21:41]OFDSenderStorePacket done [11:21:41]KKMCreateOFDPacket done [11:21:41]NVStorageSaveData kkm_last_timestamp [11:21:41]File name is /storage/kkm_last_timestamp [11:21:41]Write 4 bytes [11:21:41]NVStorageSaveData done [11:21:41]ExternCall_PrintAddStr [11:21:41]wPrintStart [11:21:41]Write to MH i2c: 01 00 00 DD 8E 6B [11:21:41]Write i2c OK [11:21:41]MH_I2C_Read... [11:21:41]Read from MH i2c: 01 [11:21:41]MH_I2C_Read... [11:21:41]Read from MH i2c: 01 07 00 [11:21:41]MH_I2C_Read... [11:21:41]Read from MH i2c: 01 07 00 DD 8E 00 00 00 00 00 FF 0F 80 [11:21:41]RasterBufferAndPrint [11:21:41]line Счет N : (1)347567 [11:21:41]line ИНН: 02508201610067 [11:21:41]line Контрольно-Кассовый Чек [11:21:41]line ПРОДАЖА [11:21:41]line ТРК (МРК, ГНК) : 11 [11:21:41]line Товар: 2710194210 [11:21:41]line ДТ-К-5 [11:21:41]line 9.670 * 72.40 [11:21:41]line = 700.11 [11:21:41]line НДС 12% НСП 1% [11:21:41]line > о реализуемом товаре [11:21:41]line ОКРУГЛЕНИЕ: -0.11 [11:21:41]line ИТОГО: 700.00 [11:21:41]line Внесено: 700.00 [11:21:41]line СДАЧА: 0.00 [11:21:41]line НСП 1% : 6.20 [11:21:41]line НДС 12% : 74.35 [11:21:41]line Наличными: 700.00 [11:21:41]line Безнал.: 0.00 [11:21:41]line Место: АЗС № 108 "Партнер Нефть" [11:21:41]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [11:21:41]line СНО: Общий режим [11:21:41]line Чек 105 14.04.2024 11:21 [11:21:41]line Смена: 116 ФФД: 1.0 [11:21:41]line ЗНМ: 0300000027 [11:21:41]line РНМ: 0000138879044617 [11:21:41]line Версия ККМ: 001 [11:21:41]line ФМ: 0000000000963154 [11:21:41]line ФД: 29195 [11:21:41]line ФПД: 163248580006687 [11:21:41]line 1/tax-web-control/client/api/v1/ticket?date=20240414T112149&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29195&fm=163248580006687&tin=02508201610067®Number=0000138879044617&sum=70000 [11:21:41]OFD Sender: Processing packet 29195 [packets to send 8, broken 7] [11:21:41]ProducePacketName [11:21:41]name=ofd_packets/00029195 [11:21:41]OFD Sender: To server: pG, [11:21:41]CommunicateWithHost lk.salyk.kg:30040 [11:21:41]ConnectInit lk.salyk.kg [11:21:41]written 0, free lines is 4095 [11:21:41]Connected sock=10 [11:21:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 E6 70 04 01 A1 E9 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 69 00 00 00 F4 03 04 00 4D BC 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0B 72 00 00 35 04 06 00 94 79 45 9F 13 1F 13 B3 88 BA 38 E2 C4 15 [11:21:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 66 74 47 00 5A 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 39 36 33 31 35 34 10 04 04 00 0B 72 00 00 F4 03 04 00 F1 66 1B 66 B6 04 01 00 00 1F 73 9F C5 4A 19 52 6F [11:21:41]CommunicateWithHost err = 0 [11:21:41]CheckOFDResponse [11:21:41]1017 (14) - 77093643461234 [11:21:41]1041 (16) - 0000000000963154 [11:21:41]1040 (4) - 29195 [11:21:41]1012 (4) - 14.04.2024 05:17 [11:21:41]1206 (1) - 0 [11:21:41]OFD Sender: Remove packet 29195 [11:21:41]ProducePacketName [11:21:41]name=ofd_packets/00029195 [11:21:41]NVStorageDeleteData [11:21:42]Write to MH i2c: 01 00 00 07 8F 96 [11:21:42]Write i2c OK [11:21:42]MH_I2C_Read... [11:21:42]Read from MH i2c: 01 [11:21:42]MH_I2C_Read... [11:21:42]Read from MH i2c: 01 07 00 [11:21:42]MH_I2C_Read... [11:21:42]Read from MH i2c: 01 07 00 07 8F 00 00 00 00 00 BD 0C 66 [11:21:42]RasterBufferAndPrint [11:21:42]line [11:21:42]line [11:21:42]line [11:21:42]line [11:21:42]line [11:21:42]written 0, free lines is 3268 [11:21:42]MH_Cut [11:21:42]Write to MH i2c: D1 01 00 0E 8F 01 6F [11:21:42]Write i2c OK [11:21:42]MH_I2C_Read... [11:21:42]Read from MH i2c: D1 [11:21:42]MH_I2C_Read... [11:21:42]Read from MH i2c: D1 01 00 [11:21:42]MH_I2C_Read... [11:21:42]Read from MH i2c: D1 01 00 0E 8F 00 6E [11:21:42]Write to MH i2c: 01 00 00 0F 8F 9E [11:21:42]Write i2c OK [11:21:42]MH_I2C_Read... [11:21:42]OFD Sender: No OFD packet to send [11:21:42]*** Cut start [11:21:42]*** Partial cut [11:21:42]*** CUTSNS_PIN = 1 [11:21:42]*** CUTSNS_PIN = 0 [11:21:43]*** Brake cut motor [11:21:43]Read from MH i2c: 01 [11:21:43]MH_I2C_Read... [11:21:43]*** Stop cut motor [11:21:43]*** Cut end [11:21:43]Read from MH i2c: 01 07 00 [11:21:43]MH_I2C_Read... [11:21:43]Read from MH i2c: 01 07 00 0F 8F 00 00 00 00 00 FF 0F B3 [11:21:43]process_action close_receipt done [11:21:43]requested_data is exist [11:21:43]produce_requested_data [11:21:43]requested_item fm.sn is exist - process it [11:21:43]wFMCommunicate request_size=4 [11:21:43]MH_SAM_APDU [11:21:43]CAPDU: 80 11 00 00 [11:21:43]Write to MH i2c: E2 08 00 10 8F 80 11 00 00 00 00 00 00 19 [11:21:43]Write i2c OK [11:21:43]MH_I2C_Read... [11:21:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:21:43]Read from MH i2c: E2 [11:21:43]MH_I2C_Read... [11:21:43]Read from MH i2c: E2 17 00 [11:21:43]MH_I2C_Read... [11:21:43]Read from MH i2c: E2 17 00 10 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 68 [11:21:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:21:43]wFMCommunicate OK [11:21:43]requested_item fd.num is exist - process it [11:21:43]SAM_PROTO_GetFieldsCounters [11:21:43]wFMCommunicate request_size=4 [11:21:43]MH_SAM_APDU [11:21:43]CAPDU: 80 13 00 00 [11:21:43]Write to MH i2c: E2 08 00 11 8F 80 13 00 00 00 00 00 00 1C [11:21:43]Write i2c OK [11:21:43]MH_I2C_Read... [11:21:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:21:43]Read from MH i2c: E2 [11:21:43]MH_I2C_Read... [11:21:43]Read from MH i2c: E2 62 00 [11:21:43]MH_I2C_Read... [11:21:43]Read from MH i2c: E2 62 00 11 8F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 0B 72 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 86 [11:21:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 0B 72 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:21:43]wFMCommunicate OK [11:21:43]SAM_PROTO_GetFieldsCounters done [11:21:43]requested_item shift.num is exist - process it [11:21:43]requested_item shift.opened is exist - process it [11:21:43]req_shift_opened [11:21:43]FM_GetShiftState [11:21:43]SAM_PROTO_GetShiftState [11:21:43]wFMCommunicate request_size=4 [11:21:43]MH_SAM_APDU [11:21:43]CAPDU: 80 13 01 00 [11:21:43]Write to MH i2c: E2 08 00 12 8F 80 13 01 00 00 00 00 00 1E [11:21:43]Write i2c OK [11:21:43]MH_I2C_Read... [11:21:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:21:43]Read from MH i2c: E2 [11:21:43]MH_I2C_Read... [11:21:43]Read from MH i2c: E2 0E 00 [11:21:43]MH_I2C_Read... [11:21:43]Read from MH i2c: E2 0E 00 12 8F 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 CA [11:21:43]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [11:21:43]wFMCommunicate OK [11:21:43]SAM_PROTO_GetShiftState done [11:21:43]FM_GetShiftState done [11:21:43]req_shift_opened done [11:21:43]requested_item shift.open_date is exist - process it [11:21:43]req_shift_open_date [11:21:43]req_shift_open_date done [11:21:43]produce_requested_data done [11:21:43]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29195,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [11:21:43]process_action_free close_receipt [11:21:43]json_value_free [11:21:43]json_value_free done [11:21:43]process_json_proto returns [11:21:43]Send response to host [11:21:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29195,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [11:21:43]free response buf [11:21:43]execute_script done [11:21:43]execute_script returns [11:21:43]free content buf [11:21:43]Sock 9.Close socket [11:21:43]Sock 9.Thread stoped [11:21:47]OFD Sender: No OFD packet to send [11:21:52]OFD Sender: No OFD packet to send [11:21:57]OFD Sender: No OFD packet to send [11:22:02]OFD Sender: No OFD packet to send [11:22:07]OFD Sender: No OFD packet to send [11:22:12]OFD Sender: No OFD packet to send [11:22:17]OFD Sender: No OFD packet to send [11:22:22]OFD Sender: No OFD packet to send [11:22:27]OFD Sender: No OFD packet to send [11:22:32]OFD Sender: No OFD packet to send [11:22:37]OFD Sender: No OFD packet to send [11:22:42]OFD Sender: No OFD packet to send [11:22:47]OFD Sender: No OFD packet to send [11:22:52]OFD Sender: No OFD packet to send [11:22:57]OFD Sender: No OFD packet to send [11:23:02]OFD Sender: No OFD packet to send [11:23:07]OFD Sender: No OFD packet to send [11:23:12]OFD Sender: No OFD packet to send [11:23:17]OFD Sender: No OFD packet to send [11:23:22]OFD Sender: No OFD packet to send [11:23:24]accept exits with 7 [11:23:24]New connection [11:23:24]New thread 3066928484 created [11:23:24]Thread 3066785124 joined [11:23:24]Waiting for new connection... [11:23:24] Sock 7.Parse request [11:23:24]Sock 7.Check first char [11:23:24]Sock 7.First char is OK [11:23:24]request: POST /json_proto HTTP/1.0 [11:23:24]Method: POST [11:23:24]URL: /json_proto [11:23:24]Method is POST - this is cgi request [11:23:24]url: /json_proto [11:23:24]query_string will be loaded in cgi processing [11:23:24]execute_cgi json_proto POST (null) [11:23:24]execute_cgi path=json_proto method=POST [11:23:24]POST find Content-Length [11:23:24]Host: 172.17.33.3:8080 [11:23:24]Content-Length: 682 [11:23:24]Content-Type: application/json [11:23:24] [11:23:24]POST finish read [11:23:24]Found Content-Length = 682 [11:23:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347568", "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" ] } } [11:23:24]execute_script... [11: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)347568", "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" ] } } [11:23:24]POST & json_proto [11:23:24]process_json_proto [11:23:24]json parsed OK: [11:23:24]protocol is kg_v1.0 [11:23:24]action value=close_receipt [11:23:24]process_action close_receipt [11:23:24]cmd_close_receipt [11:23:24]MH_GetDate [11:23:24]Write to MH i2c: F0 00 00 13 8F 91 [11:23:24]Write i2c OK [11:23:24]MH_I2C_Read... [11:23:24]Read from MH i2c: F0 [11:23:24]MH_I2C_Read... [11:23:24]Read from MH i2c: F0 09 00 [11:23:24]MH_I2C_Read... [11:23:24]Read from MH i2c: F0 09 00 13 8F 00 B6 BC 1B 66 23 5B 8F 65 FF [11:23:24]GetLastDocTimeStamp 1713093709 [11:23:24]current date 1713093814 [11:23:24]FM_GetShiftState [11:23:24]SAM_PROTO_GetShiftState [11:23:24]wFMCommunicate request_size=4 [11:23:24]MH_SAM_APDU [11:23:24]CAPDU: 80 13 01 00 [11:23:24]Write to MH i2c: E2 08 00 14 8F 80 13 01 00 00 00 00 00 20 [11:23:24]Write i2c OK [11:23:24]MH_I2C_Read... [11:23:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:24]Read from MH i2c: E2 [11:23:24]MH_I2C_Read... [11:23:24]Read from MH i2c: E2 0E 00 [11:23:24]MH_I2C_Read... [11:23:24]Read from MH i2c: E2 0E 00 14 8F 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 CC [11:23:24]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [11:23:24]wFMCommunicate OK [11:23:24]SAM_PROTO_GetShiftState done [11:23:24]FM_GetShiftState done [11:23:24]opened in 1713053951 [11:23:24]opened+sec_in_day 1713140351 [11:23:24]quantity*price = 100050 [11:23:24]sum+1 = 100052 [11:23:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 106 14.04.2024 11:23 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29196 ФПД: 91436944014143 1/tax-web-control/client/api/v1/ticket?date=20240414T112334&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29196&fm=91436944014143&tin=02508201610067®Number=0000138879044617&sum=100000 [11:23:25]StoreToDocumentArchive [11:23:25]shift 116 fd 29196 [11:23:25]save to /storage/0116/doc_00029196 [11:23:25]save last doc name /storage/0116/doc_00029196 to /storage/kkm_last_doc_name [11:23:25]save OK [11:23:25]Clear old archive folders... [11:23:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:23:25]tlvbuf is 012F3680 [11:23:25]SAM_PROTO_ClearQueue [11:23:25]wFMCommunicate request_size=4 [11:23:25]MH_SAM_APDU [11:23:25]CAPDU: 80 09 00 00 [11:23:25]Write to MH i2c: E2 08 00 21 8F 80 09 00 00 00 00 00 00 22 [11:23:25]Write i2c OK [11:23:25]MH_I2C_Read... [11:23:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:23:25]Read from MH i2c: E2 [11:23:25]MH_I2C_Read... [11:23:25]Read from MH i2c: E2 03 00 [11:23:25]MH_I2C_Read... [11:23:25]Read from MH i2c: E2 03 00 21 8F 00 90 00 24 [11:23:25]RAPDU: 90 00 [11:23:25]wFMCommunicate OK [11:23:25]SAM_PROTO_ClearQueue done [11:23:25]KKMCreateOFDPacket [11:23:25]OFDProtocolAddRootSTLVToBuf [11:23:25]FM_MakeSignedData [11:23:25]FM_MakeSignedData [11:23:25]SAM_PROTO_SignData [11:23:25]wFMCommunicate request_size=4 [11:23:25]MH_SAM_APDU [11:23:25]CAPDU: 80 0D 01 02 [11:23:25]Write to MH i2c: E2 08 00 22 8F 80 0D 01 02 00 00 00 00 2A [11:23:25]Write i2c OK [11:23:25]MH_I2C_Read... [11:23:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:23:25]Read from MH i2c: E2 [11:23:25]MH_I2C_Read... [11:23:25]Read from MH i2c: E2 03 00 [11:23:25]MH_I2C_Read... [11:23:25]Read from MH i2c: E2 03 00 22 8F 00 90 00 25 [11:23:25]RAPDU: 90 00 [11:23:25]wFMCommunicate OK [11:23:25]wFMCommunicate request_size=255 [11:23:25]MH_SAM_APDU [11:23: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 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 6A 00 00 00 F4 03 04 00 B6 BC 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0C 72 00 00 35 04 06 00 53 [11:23:25]Write to MH i2c: E2 02 01 23 8F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 6A 00 00 00 F4 03 04 00 B6 BC 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0C 72 00 00 35 04 06 00 53 00 00 F8 [11:23:25]Write i2c OK [11:23:25]MH_I2C_Read... [11:23:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:26]Read from MH i2c: E2 [11:23:26]MH_I2C_Read... [11:23:26]Read from MH i2c: E2 03 00 [11:23:26]MH_I2C_Read... [11:23:26]Read from MH i2c: E2 03 00 23 8F 00 90 00 26 [11:23:26]RAPDU: 90 00 [11:23:26]wFMCommunicate OK [11:23:26]wFMCommunicate request_size=10 [11:23:26]MH_SAM_APDU [11:23:26]CAPDU: 80 0D 02 02 05 29 52 91 3B 3F [11:23:26]Write to MH i2c: E2 0D 00 24 8F 80 0D 02 02 05 00 29 52 91 3B 3F 00 00 BD [11:23:26]Write i2c OK [11:23:26]MH_I2C_Read... [11:23:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:26]Read from MH i2c: E2 [11:23:26]MH_I2C_Read... [11:23:26]Read from MH i2c: E2 03 00 [11:23:26]MH_I2C_Read... [11:23:26]Read from MH i2c: E2 03 00 24 8F 00 90 00 27 [11:23:26]RAPDU: 90 00 [11:23:26]wFMCommunicate OK [11:23:26]wFMCommunicate request_size=4 [11:23:26]MH_SAM_APDU [11:23:26]CAPDU: 80 0D 03 02 [11:23:26]Write to MH i2c: E2 08 00 25 8F 80 0D 03 02 00 00 00 00 2F [11:23:26]Write i2c OK [11:23:26]MH_I2C_Read... [11:23:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:23:26]Read from MH i2c: E2 [11:23:26]MH_I2C_Read... [11:23:26]Read from MH i2c: E2 0B 00 [11:23:26]MH_I2C_Read... [11:23:26]Read from MH i2c: E2 0B 00 25 8F 00 9F 66 B4 51 E7 57 5D 24 90 00 F9 [11:23:26]RAPDU: 9F 66 B4 51 E7 57 5D 24 90 00 [11:23:26]wFMCommunicate OK [11:23:26]SAM_PROTO_SignData done [11:23:26]FM_MakeSignedData done [11:23:26]CreateOFDProtocolMessage [11:23:26]wFMCommunicate request_size=4 [11:23:26]MH_SAM_APDU [11:23:26]CAPDU: 80 11 00 00 [11:23:26]Write to MH i2c: E2 08 00 26 8F 80 11 00 00 00 00 00 00 2F [11:23:26]Write i2c OK [11:23:26]MH_I2C_Read... [11:23:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:26]Read from MH i2c: E2 [11:23:26]MH_I2C_Read... [11:23:26]Read from MH i2c: E2 17 00 [11:23:26]MH_I2C_Read... [11:23:26]Read from MH i2c: E2 17 00 26 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 7E [11:23:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:23:26]wFMCommunicate OK [11:23:26]CreateOFDProtocolMessage done [11:23:26]OFDSenderStorePacket 29196 [11:23:26]StoreOFDPacket docnum=29196 [11:23:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 CE 8F 07 01 C1 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 6A 00 00 00 F4 03 04 00 B6 BC 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0C 72 00 00 35 04 06 00 53 29 52 91 3B 3F 9F 66 B4 51 E7 57 5D 24 [11:23:26]CheckFolder [11:23:26]dirname=/storage/ofd_packets [11:23:26]CheckFolder done [11:23:26]ProducePacketName [11:23:26]name=ofd_packets/00029196 [11:23:26]NVStorageSaveData ofd_packets/00029196 [11:23:26]File name is /storage/ofd_packets/00029196 [11:23:26]Write 301 bytes [11:23:26]NVStorageSaveData done [11:23:26]OFDSenderStorePacket done [11:23:26]KKMCreateOFDPacket done [11:23:26]NVStorageSaveData kkm_last_timestamp [11:23:26]File name is /storage/kkm_last_timestamp [11:23:26]Write 4 bytes [11:23:26]NVStorageSaveData done [11:23:26]ExternCall_PrintAddStr [11:23:26]wPrintStart [11:23:26]Write to MH i2c: 01 00 00 27 8F B6 [11:23:26]Write i2c OK [11:23:26]MH_I2C_Read... [11:23:26]Read from MH i2c: 01 [11:23:26]MH_I2C_Read... [11:23:26]Read from MH i2c: 01 07 00 [11:23:26]MH_I2C_Read... [11:23:26]Read from MH i2c: 01 07 00 27 8F 00 00 00 00 00 FF 0F CB [11:23:26]RasterBufferAndPrint [11:23:26]line Счет N : (1)347568 [11:23:26]line ИНН: 02508201610067 [11:23:26]line Контрольно-Кассовый Чек [11:23:26]line ПРОДАЖА [11:23:26]line ТРК (МРК, ГНК) : 32 [11:23:26]line Товар: 2710124130 [11:23:26]line Аи-92-К-5 [11:23:26]line 15.560 * 64.30 [11:23:26]line = 1000.51 [11:23:26]line НДС 12% НСП 1% [11:23:26]line > о реализуемом товаре [11:23:26]line ОКРУГЛЕНИЕ: -0.51 [11:23:26]line ИТОГО: 1000.00 [11:23:26]line Внесено: 1000.00 [11:23:26]line СДАЧА: 0.00 [11:23:26]line НСП 1% : 8.85 [11:23:26]line НДС 12% : 106.25 [11:23:26]line Наличными: 1000.00 [11:23:26]line Безнал.: 0.00 [11:23:26]line Место: АЗС № 108 "Партнер Нефть" [11:23:26]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [11:23:26]line СНО: Общий режим [11:23:26]line Чек 106 14.04.2024 11:23 [11:23:26]line Смена: 116 ФФД: 1.0 [11:23:26]line ЗНМ: 0300000027 [11:23:26]line РНМ: 0000138879044617 [11:23:26]line Версия ККМ: 001 [11:23:26]line ФМ: 0000000000963154 [11:23:26]line ФД: 29196 [11:23:26]line ФПД: 91436944014143 [11:23:26]line 1/tax-web-control/client/api/v1/ticket?date=20240414T112334&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29196&fm=91436944014143&tin=02508201610067®Number=0000138879044617&sum=100000 [11:23:26]OFD Sender: Processing packet 29196 [packets to send 8, broken 7] [11:23:26]ProducePacketName [11:23:26]name=ofd_packets/00029196 [11:23:26]OFD Sender: To server: pG, [11:23:26]CommunicateWithHost lk.salyk.kg:30040 [11:23:26]ConnectInit lk.salyk.kg [11:23:26]written 0, free lines is 4095 [11:23:26]Connected sock=10 [11:23:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 CE 8F 07 01 C1 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 6A 00 00 00 F4 03 04 00 B6 BC 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0C 72 00 00 35 04 06 00 53 29 52 91 3B 3F 9F 66 B4 51 E7 57 5D 24 [11:23:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 15 C1 47 00 E4 F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0C 72 00 00 F4 03 04 00 5A 67 1B 66 B6 04 01 00 00 3E 1D 72 9A C1 7E 84 CA [11:23:26]CommunicateWithHost err = 0 [11:23:26]CheckOFDResponse [11:23:26]1017 (14) - 77093643461234 [11:23:26]1041 (16) - 0000000000963154 [11:23:26]1040 (4) - 29196 [11:23:26]1012 (4) - 14.04.2024 05:19 [11:23:26]1206 (1) - 0 [11:23:26]OFD Sender: Remove packet 29196 [11:23:26]ProducePacketName [11:23:26]name=ofd_packets/00029196 [11:23:26]NVStorageDeleteData [11:23:27]Write to MH i2c: 01 00 00 51 8F E0 [11:23:27]Write i2c OK [11:23:27]MH_I2C_Read... [11:23:27]Read from MH i2c: 01 [11:23:27]MH_I2C_Read... [11:23:27]Read from MH i2c: 01 07 00 [11:23:27]MH_I2C_Read... [11:23:27]Read from MH i2c: 01 07 00 51 8F 00 00 00 00 00 C0 0C B3 [11:23:27]RasterBufferAndPrint [11:23:27]line [11:23:27]line [11:23:27]line [11:23:27]line [11:23:27]line [11:23:27]written 0, free lines is 3270 [11:23:27]MH_Cut [11:23:27]Write to MH i2c: D1 01 00 58 8F 01 B9 [11:23:27]Write i2c OK [11:23:27]MH_I2C_Read... [11:23:27]Read from MH i2c: D1 [11:23:27]MH_I2C_Read... [11:23:27]Read from MH i2c: D1 01 00 [11:23:27]MH_I2C_Read... [11:23:27]Read from MH i2c: D1 01 00 58 8F 00 B8 [11:23:27]Write to MH i2c: 01 00 00 59 8F E8 [11:23:27]Write i2c OK [11:23:27]MH_I2C_Read... [11:23:27]OFD Sender: No OFD packet to send [11:23:27]*** Cut start [11:23:27]*** Partial cut [11:23:27]*** CUTSNS_PIN = 1 [11:23:27]*** CUTSNS_PIN = 0 [11:23:28]*** Brake cut motor [11:23:28]Read from MH i2c: 01 [11:23:28]MH_I2C_Read... [11:23:28]*** Stop cut motor [11:23:28]*** Cut end [11:23:28]Read from MH i2c: 01 07 00 [11:23:28]MH_I2C_Read... [11:23:28]Read from MH i2c: 01 07 00 59 8F 00 00 00 00 00 FF 0F FD [11:23:28]process_action close_receipt done [11:23:28]requested_data is exist [11:23:28]produce_requested_data [11:23:28]requested_item fm.sn is exist - process it [11:23:28]wFMCommunicate request_size=4 [11:23:28]MH_SAM_APDU [11:23:28]CAPDU: 80 11 00 00 [11:23:28]Write to MH i2c: E2 08 00 5A 8F 80 11 00 00 00 00 00 00 63 [11:23:28]Write i2c OK [11:23:28]MH_I2C_Read... [11:23:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:28]Read from MH i2c: E2 [11:23:28]MH_I2C_Read... [11:23:28]Read from MH i2c: E2 17 00 [11:23:28]MH_I2C_Read... [11:23:28]Read from MH i2c: E2 17 00 5A 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B2 [11:23:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:23:28]wFMCommunicate OK [11:23:28]requested_item fd.num is exist - process it [11:23:28]SAM_PROTO_GetFieldsCounters [11:23:28]wFMCommunicate request_size=4 [11:23:28]MH_SAM_APDU [11:23:28]CAPDU: 80 13 00 00 [11:23:28]Write to MH i2c: E2 08 00 5B 8F 80 13 00 00 00 00 00 00 66 [11:23:28]Write i2c OK [11:23:28]MH_I2C_Read... [11:23:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:23:28]Read from MH i2c: E2 [11:23:28]MH_I2C_Read... [11:23:28]Read from MH i2c: E2 62 00 [11:23:28]MH_I2C_Read... [11:23:28]Read from MH i2c: E2 62 00 5B 8F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 0C 72 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 D4 [11:23:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 0C 72 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:23:28]wFMCommunicate OK [11:23:28]SAM_PROTO_GetFieldsCounters done [11:23:28]requested_item shift.num is exist - process it [11:23:28]requested_item shift.opened is exist - process it [11:23:28]req_shift_opened [11:23:28]FM_GetShiftState [11:23:28]SAM_PROTO_GetShiftState [11:23:28]wFMCommunicate request_size=4 [11:23:28]MH_SAM_APDU [11:23:28]CAPDU: 80 13 01 00 [11:23:28]Write to MH i2c: E2 08 00 5C 8F 80 13 01 00 00 00 00 00 68 [11:23:28]Write i2c OK [11:23:28]MH_I2C_Read... [11:23:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:28]Read from MH i2c: E2 [11:23:28]MH_I2C_Read... [11:23:28]Read from MH i2c: E2 0E 00 [11:23:28]MH_I2C_Read... [11:23:28]Read from MH i2c: E2 0E 00 5C 8F 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 14 [11:23:28]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [11:23:28]wFMCommunicate OK [11:23:28]SAM_PROTO_GetShiftState done [11:23:28]FM_GetShiftState done [11:23:28]req_shift_opened done [11:23:28]requested_item shift.open_date is exist - process it [11:23:28]req_shift_open_date [11:23:28]req_shift_open_date done [11:23:28]produce_requested_data done [11:23:28]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29196,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [11:23:28]process_action_free close_receipt [11:23:28]json_value_free [11:23:28]json_value_free done [11:23:28]process_json_proto returns [11:23:28]Send response to host [11:23:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29196,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [11:23:28]free response buf [11:23:28]execute_script done [11:23:28]execute_script returns [11:23:28]free content buf [11:23:28]Sock 7.Close socket [11:23:28]Sock 7.Thread stoped [11:23:32]OFD Sender: No OFD packet to send [11:23:37]OFD Sender: No OFD packet to send [11:23:42]OFD Sender: No OFD packet to send [11:23:47]OFD Sender: No OFD packet to send [11:23:52]OFD Sender: No OFD packet to send [11:23:57]OFD Sender: No OFD packet to send [11:24:02]OFD Sender: No OFD packet to send [11:24:07]OFD Sender: No OFD packet to send [11:24:12]OFD Sender: No OFD packet to send [11:24:17]OFD Sender: No OFD packet to send [11:24:22]OFD Sender: No OFD packet to send [11:24:27]OFD Sender: No OFD packet to send [11:24:28]accept exits with 9 [11:24:28]New connection [11:24:28]New thread 3066785124 created [11:24:28]Thread 3066928484 joined [11:24:28]Waiting for new connection... [11:24:28] Sock 9.Parse request [11:24:28]Sock 9.Check first char [11:24:28]Sock 9.First char is OK [11:24:28]request: POST /json_proto HTTP/1.0 [11:24:28]Method: POST [11:24:28]URL: /json_proto [11:24:28]Method is POST - this is cgi request [11:24:28]url: /json_proto [11:24:28]query_string will be loaded in cgi processing [11:24:28]execute_cgi json_proto POST (null) [11:24:28]execute_cgi path=json_proto method=POST [11:24:28]POST find Content-Length [11:24:28]Host: 172.17.33.3:8080 [11:24:28]Content-Length: 640 [11:24:28]Content-Type: application/json [11:24:28] [11:24:28]POST finish read [11:24:28]Found Content-Length = 640 [11:24:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347569", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 10.000, "sum" : 643.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 643.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:24:28]execute_script... [11: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)347569", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 10.000, "sum" : 643.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 643.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:24:28]POST & json_proto [11:24:28]process_json_proto [11:24:28]json parsed OK: [11:24:28]protocol is kg_v1.0 [11:24:28]action value=close_receipt [11:24:28]process_action close_receipt [11:24:28]cmd_close_receipt [11:24:28]MH_GetDate [11:24:28]Write to MH i2c: F0 00 00 5D 8F DB [11:24:28]Write i2c OK [11:24:28]MH_I2C_Read... [11:24:28]Read from MH i2c: F0 [11:24:28]MH_I2C_Read... [11:24:28]Read from MH i2c: F0 09 00 [11:24:28]MH_I2C_Read... [11:24:28]Read from MH i2c: F0 09 00 5D 8F 00 F6 BC 1B 66 23 5B 8F 65 89 [11:24:28]GetLastDocTimeStamp 1713093814 [11:24:28]current date 1713093878 [11:24:28]FM_GetShiftState [11:24:28]SAM_PROTO_GetShiftState [11:24:28]wFMCommunicate request_size=4 [11:24:28]MH_SAM_APDU [11:24:28]CAPDU: 80 13 01 00 [11:24:28]Write to MH i2c: E2 08 00 5E 8F 80 13 01 00 00 00 00 00 6A [11:24:28]Write i2c OK [11:24:28]MH_I2C_Read... [11:24:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:24:28]Read from MH i2c: E2 [11:24:28]MH_I2C_Read... [11:24:28]Read from MH i2c: E2 0E 00 [11:24:28]MH_I2C_Read... [11:24:28]Read from MH i2c: E2 0E 00 5E 8F 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 16 [11:24:28]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [11:24:28]wFMCommunicate OK [11:24:28]SAM_PROTO_GetShiftState done [11:24:28]FM_GetShiftState done [11:24:28]opened in 1713053951 [11:24:28]opened+sec_in_day 1713140351 [11:24:28]quantity*price = 64300 [11:24:28]sum+1 = 64301 [11:24:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 643.00 НСП 1% : 5.69 НДС 12% : 68.28 Наличными: 643.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 107 14.04.2024 11:24 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29197 ФПД: 132799334183052 1/tax-web-control/client/api/v1/ticket?date=20240414T112438&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29197&fm=132799334183052&tin=02508201610067®Number=0000138879044617&sum=64300 [11:24:29]StoreToDocumentArchive [11:24:29]shift 116 fd 29197 [11:24:29]save to /storage/0116/doc_00029197 [11:24:29]save last doc name /storage/0116/doc_00029197 to /storage/kkm_last_doc_name [11:24:29]save OK [11:24:29]Clear old archive folders... [11:24:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:24:29]tlvbuf is 01285F20 [11:24:29]SAM_PROTO_ClearQueue [11:24:29]wFMCommunicate request_size=4 [11:24:29]MH_SAM_APDU [11:24:29]CAPDU: 80 09 00 00 [11:24:29]Write to MH i2c: E2 08 00 6B 8F 80 09 00 00 00 00 00 00 6C [11:24:29]Write i2c OK [11:24:29]MH_I2C_Read... [11:24:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:24:29]Read from MH i2c: E2 [11:24:29]MH_I2C_Read... [11:24:29]Read from MH i2c: E2 03 00 [11:24:29]MH_I2C_Read... [11:24:29]Read from MH i2c: E2 03 00 6B 8F 00 90 00 6E [11:24:29]RAPDU: 90 00 [11:24:29]wFMCommunicate OK [11:24:29]SAM_PROTO_ClearQueue done [11:24:29]KKMCreateOFDPacket [11:24:29]OFDProtocolAddRootSTLVToBuf [11:24:29]FM_MakeSignedData [11:24:29]FM_MakeSignedData [11:24:29]SAM_PROTO_SignData [11:24:29]wFMCommunicate request_size=4 [11:24:29]MH_SAM_APDU [11:24:29]CAPDU: 80 0D 01 02 [11:24:29]Write to MH i2c: E2 08 00 6C 8F 80 0D 01 02 00 00 00 00 74 [11:24:29]Write i2c OK [11:24:29]MH_I2C_Read... [11:24:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:24:29]Read from MH i2c: E2 [11:24:29]MH_I2C_Read... [11:24:29]Read from MH i2c: E2 03 00 [11:24:29]MH_I2C_Read... [11:24:29]Read from MH i2c: E2 03 00 6C 8F 00 90 00 6F [11:24:29]RAPDU: 90 00 [11:24:29]wFMCommunicate OK [11:24:29]wFMCommunicate request_size=255 [11:24:29]MH_SAM_APDU [11: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 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 6B 00 00 00 F4 03 04 00 F6 BC 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0D 72 00 00 35 04 06 00 78 [11:24:29]Write to MH i2c: E2 02 01 6D 8F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 6B 00 00 00 F4 03 04 00 F6 BC 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0D 72 00 00 35 04 06 00 78 00 00 88 [11:24:30]Write i2c OK [11:24:30]MH_I2C_Read... [11:24:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:24:30]Read from MH i2c: E2 [11:24:30]MH_I2C_Read... [11:24:30]Read from MH i2c: E2 03 00 [11:24:30]MH_I2C_Read... [11:24:30]Read from MH i2c: E2 03 00 6D 8F 00 90 00 70 [11:24:30]RAPDU: 90 00 [11:24:30]wFMCommunicate OK [11:24:30]wFMCommunicate request_size=10 [11:24:30]MH_SAM_APDU [11:24:30]CAPDU: 80 0D 02 02 05 C7 C1 23 F0 8C [11:24:30]Write to MH i2c: E2 0D 00 6E 8F 80 0D 02 02 05 00 C7 C1 23 F0 8C 00 00 A8 [11:24:30]Write i2c OK [11:24:30]MH_I2C_Read... [11:24:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:24:30]Read from MH i2c: E2 [11:24:30]MH_I2C_Read... [11:24:30]Read from MH i2c: E2 03 00 [11:24:30]MH_I2C_Read... [11:24:30]Read from MH i2c: E2 03 00 6E 8F 00 90 00 71 [11:24:30]RAPDU: 90 00 [11:24:30]wFMCommunicate OK [11:24:30]wFMCommunicate request_size=4 [11:24:30]MH_SAM_APDU [11:24:30]CAPDU: 80 0D 03 02 [11:24:30]Write to MH i2c: E2 08 00 6F 8F 80 0D 03 02 00 00 00 00 79 [11:24:30]Write i2c OK [11:24:30]MH_I2C_Read... [11:24:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:24:30]Read from MH i2c: E2 [11:24:30]MH_I2C_Read... [11:24:30]Read from MH i2c: E2 0B 00 [11:24:30]MH_I2C_Read... [11:24:30]Read from MH i2c: E2 0B 00 6F 8F 00 4E C3 36 52 AB 61 15 1F 90 00 53 [11:24:30]RAPDU: 4E C3 36 52 AB 61 15 1F 90 00 [11:24:30]wFMCommunicate OK [11:24:30]SAM_PROTO_SignData done [11:24:30]FM_MakeSignedData done [11:24:30]CreateOFDProtocolMessage [11:24:30]wFMCommunicate request_size=4 [11:24:30]MH_SAM_APDU [11:24:30]CAPDU: 80 11 00 00 [11:24:30]Write to MH i2c: E2 08 00 70 8F 80 11 00 00 00 00 00 00 79 [11:24:30]Write i2c OK [11:24:30]MH_I2C_Read... [11:24:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:24:30]Read from MH i2c: E2 [11:24:30]MH_I2C_Read... [11:24:30]Read from MH i2c: E2 17 00 [11:24:30]MH_I2C_Read... [11:24:30]Read from MH i2c: E2 17 00 70 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C8 [11:24:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:24:30]wFMCommunicate OK [11:24:30]CreateOFDProtocolMessage done [11:24:30]OFDSenderStorePacket 29197 [11:24:30]StoreOFDPacket docnum=29197 [11:24:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 48 9C 07 01 71 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 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 6B 00 00 00 F4 03 04 00 F6 BC 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0D 72 00 00 35 04 06 00 78 C7 C1 23 F0 8C 4E C3 36 52 AB 61 15 1F [11:24:30]CheckFolder [11:24:30]dirname=/storage/ofd_packets [11:24:30]CheckFolder done [11:24:30]ProducePacketName [11:24:30]name=ofd_packets/00029197 [11:24:30]NVStorageSaveData ofd_packets/00029197 [11:24:30]File name is /storage/ofd_packets/00029197 [11:24:30]Write 301 bytes [11:24:30]NVStorageSaveData done [11:24:30]OFDSenderStorePacket done [11:24:30]KKMCreateOFDPacket done [11:24:30]NVStorageSaveData kkm_last_timestamp [11:24:30]File name is /storage/kkm_last_timestamp [11:24:30]Write 4 bytes [11:24:30]NVStorageSaveData done [11:24:30]ExternCall_PrintAddStr [11:24:30]wPrintStart [11:24:30]Write to MH i2c: 01 00 00 71 8F 00 [11:24:30]Write i2c OK [11:24:30]MH_I2C_Read... [11:24:30]Read from MH i2c: 01 [11:24:30]MH_I2C_Read... [11:24:30]Read from MH i2c: 01 07 00 [11:24:30]MH_I2C_Read... [11:24:30]Read from MH i2c: 01 07 00 71 8F 00 00 00 00 00 FF 0F 15 [11:24:30]RasterBufferAndPrint [11:24:30]line Счет N : (1)347569 [11:24:30]line ИНН: 02508201610067 [11:24:30]line Контрольно-Кассовый Чек [11:24:30]line ПРОДАЖА [11:24:30]line ТРК (МРК, ГНК) : 13 [11:24:30]line Товар: 2710124130 [11:24:30]line Аи-92-К-5 [11:24:30]line 10.000 * 64.30 [11:24:30]line = 643.00 [11:24:30]line НДС 12% НСП 1% [11:24:30]line > о реализуемом товаре [11:24:30]line ИТОГО: 643.00 [11:24:30]line НСП 1% : 5.69 [11:24:30]line НДС 12% : 68.28 [11:24:30]line Наличными: 643.00 [11:24:30]line Безнал.: 0.00 [11:24:30]line Место: АЗС № 108 "Партнер Нефть" [11:24:30]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [11:24:30]line СНО: Общий режим [11:24:30]line Чек 107 14.04.2024 11:24 [11:24:30]line Смена: 116 ФФД: 1.0 [11:24:30]line ЗНМ: 0300000027 [11:24:30]line РНМ: 0000138879044617 [11:24:30]line Версия ККМ: 001 [11:24:30]line ФМ: 0000000000963154 [11:24:30]line ФД: 29197 [11:24:30]line ФПД: 132799334183052 [11:24:30]line 1/tax-web-control/client/api/v1/ticket?date=20240414T112438&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29197&fm=132799334183052&tin=02508201610067®Number=0000138879044617&sum=64300 [11:24:30]written 0, free lines is 4095 [11:24:30]OFD Sender: Processing packet 29197 [packets to send 8, broken 7] [11:24:30]ProducePacketName [11:24:30]name=ofd_packets/00029197 [11:24:30]OFD Sender: To server: pG, [11:24:30]CommunicateWithHost lk.salyk.kg:30040 [11:24:30]ConnectInit lk.salyk.kg [11:24:30]Connected sock=10 [11:24:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 48 9C 07 01 71 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 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 6B 00 00 00 F4 03 04 00 F6 BC 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0D 72 00 00 35 04 06 00 78 C7 C1 23 F0 8C 4E C3 36 52 AB 61 15 1F [11:24:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 90 44 47 00 3E 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0D 72 00 00 F4 03 04 00 9A 67 1B 66 B6 04 01 00 00 82 AC 09 7B 8E 07 AC D1 [11:24:31]CommunicateWithHost err = 0 [11:24:31]CheckOFDResponse [11:24:31]1017 (14) - 77093643461234 [11:24:31]1041 (16) - 0000000000963154 [11:24:31]1040 (4) - 29197 [11:24:31]1012 (4) - 14.04.2024 05:20 [11:24:31]1206 (1) - 0 [11:24:31]OFD Sender: Remove packet 29197 [11:24:31]ProducePacketName [11:24:31]name=ofd_packets/00029197 [11:24:31]NVStorageDeleteData [11:24:31]Write to MH i2c: 01 00 00 98 8F 27 [11:24:31]Write i2c OK [11:24:31]MH_I2C_Read... [11:24:31]Read from MH i2c: 01 [11:24:31]MH_I2C_Read... [11:24:31]Read from MH i2c: 01 07 00 [11:24:31]MH_I2C_Read... [11:24:31]Read from MH i2c: 01 07 00 98 8F 00 00 00 00 00 FC 0C 36 [11:24:31]RasterBufferAndPrint [11:24:31]line [11:24:31]line [11:24:31]line [11:24:31]line [11:24:31]line [11:24:31]written 0, free lines is 3329 [11:24:31]MH_Cut [11:24:31]Write to MH i2c: D1 01 00 9F 8F 01 00 [11:24:31]Write i2c OK [11:24:31]MH_I2C_Read... [11:24:31]Read from MH i2c: D1 [11:24:31]MH_I2C_Read... [11:24:31]Read from MH i2c: D1 01 00 [11:24:31]MH_I2C_Read... [11:24:31]Read from MH i2c: D1 01 00 9F 8F 00 FF [11:24:31]Write to MH i2c: 01 00 00 A0 8F 2F [11:24:31]Write i2c OK [11:24:31]MH_I2C_Read... [11:24:31]OFD Sender: No OFD packet to send [11:24:31]*** Cut start [11:24:31]*** Partial cut [11:24:31]*** CUTSNS_PIN = 1 [11:24:31]*** CUTSNS_PIN = 0 [11:24:32]*** Brake cut motor [11:24:32]Read from MH i2c: 01 [11:24:32]MH_I2C_Read... [11:24:32]*** Stop cut motor [11:24:32]*** Cut end [11:24:32]Read from MH i2c: 01 07 00 [11:24:32]MH_I2C_Read... [11:24:32]Read from MH i2c: 01 07 00 A0 8F 00 00 00 00 00 FF 0F 44 [11:24:32]process_action close_receipt done [11:24:32]requested_data is exist [11:24:32]produce_requested_data [11:24:32]requested_item fm.sn is exist - process it [11:24:32]wFMCommunicate request_size=4 [11:24:32]MH_SAM_APDU [11:24:32]CAPDU: 80 11 00 00 [11:24:32]Write to MH i2c: E2 08 00 A1 8F 80 11 00 00 00 00 00 00 AA [11:24:32]Write i2c OK [11:24:32]MH_I2C_Read... [11:24:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:24:32]Read from MH i2c: E2 [11:24:32]MH_I2C_Read... [11:24:32]Read from MH i2c: E2 17 00 [11:24:32]MH_I2C_Read... [11:24:32]Read from MH i2c: E2 17 00 A1 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F9 [11:24:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:24:32]wFMCommunicate OK [11:24:32]requested_item fd.num is exist - process it [11:24:32]SAM_PROTO_GetFieldsCounters [11:24:32]wFMCommunicate request_size=4 [11:24:32]MH_SAM_APDU [11:24:32]CAPDU: 80 13 00 00 [11:24:32]Write to MH i2c: E2 08 00 A2 8F 80 13 00 00 00 00 00 00 AD [11:24:32]Write i2c OK [11:24:32]MH_I2C_Read... [11:24:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:24:32]Read from MH i2c: E2 [11:24:32]MH_I2C_Read... [11:24:32]Read from MH i2c: E2 62 00 [11:24:32]MH_I2C_Read... [11:24:32]Read from MH i2c: E2 62 00 A2 8F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 0D 72 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 1F [11:24:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 0D 72 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:24:32]wFMCommunicate OK [11:24:32]SAM_PROTO_GetFieldsCounters done [11:24:32]requested_item shift.num is exist - process it [11:24:32]requested_item shift.opened is exist - process it [11:24:32]req_shift_opened [11:24:32]FM_GetShiftState [11:24:32]SAM_PROTO_GetShiftState [11:24:32]wFMCommunicate request_size=4 [11:24:32]MH_SAM_APDU [11:24:32]CAPDU: 80 13 01 00 [11:24:32]Write to MH i2c: E2 08 00 A3 8F 80 13 01 00 00 00 00 00 AF [11:24:32]Write i2c OK [11:24:32]MH_I2C_Read... [11:24:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:24:32]Read from MH i2c: E2 [11:24:32]MH_I2C_Read... [11:24:32]Read from MH i2c: E2 0E 00 [11:24:32]MH_I2C_Read... [11:24:32]Read from MH i2c: E2 0E 00 A3 8F 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 5B [11:24:32]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [11:24:32]wFMCommunicate OK [11:24:32]SAM_PROTO_GetShiftState done [11:24:32]FM_GetShiftState done [11:24:32]req_shift_opened done [11:24:32]requested_item shift.open_date is exist - process it [11:24:32]req_shift_open_date [11:24:32]req_shift_open_date done [11:24:32]produce_requested_data done [11:24:32]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29197,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [11:24:32]process_action_free close_receipt [11:24:32]json_value_free [11:24:32]json_value_free done [11:24:32]process_json_proto returns [11:24:32]Send response to host [11:24:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29197,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [11:24:32]free response buf [11:24:32]execute_script done [11:24:32]execute_script returns [11:24:32]free content buf [11:24:32]Sock 9.Close socket [11:24:32]Sock 9.Thread stoped [11:24:36]OFD Sender: No OFD packet to send [11:24:41]OFD Sender: No OFD packet to send [11:24:46]OFD Sender: No OFD packet to send [11:24:51]OFD Sender: No OFD packet to send [11:24:56]OFD Sender: No OFD packet to send [11:25:01]OFD Sender: No OFD packet to send [11:25:06]OFD Sender: No OFD packet to send [11:25:11]OFD Sender: No OFD packet to send [11:25:16]OFD Sender: No OFD packet to send [11:25:21]OFD Sender: No OFD packet to send [11:25:26]OFD Sender: No OFD packet to send [11:25:31]OFD Sender: No OFD packet to send [11:25:36]OFD Sender: No OFD packet to send [11:25:41]OFD Sender: No OFD packet to send [11:25:46]OFD Sender: No OFD packet to send [11:25:51]OFD Sender: No OFD packet to send [11:25:56]OFD Sender: No OFD packet to send [11:26:01]OFD Sender: No OFD packet to send [11:26:06]OFD Sender: No OFD packet to send [11:26:11]OFD Sender: No OFD packet to send [11:26:16]OFD Sender: No OFD packet to send [11:26:21]OFD Sender: No OFD packet to send [11:26:26]OFD Sender: No OFD packet to send [11:26:31]OFD Sender: No OFD packet to send [11:26:36]OFD Sender: No OFD packet to send [11:26:41]OFD Sender: No OFD packet to send [11:26:46]OFD Sender: No OFD packet to send [11:26:51]OFD Sender: No OFD packet to send [11:26:56]OFD Sender: No OFD packet to send [11:27:01]OFD Sender: No OFD packet to send [11:27:06]OFD Sender: No OFD packet to send [11:27:11]OFD Sender: No OFD packet to send [11:27:16]OFD Sender: No OFD packet to send [11:27:21]OFD Sender: No OFD packet to send [11:27:26]OFD Sender: No OFD packet to send [11:27:31]OFD Sender: No OFD packet to send [11:27:36]OFD Sender: No OFD packet to send [11:27:41]OFD Sender: No OFD packet to send [11:27:46]OFD Sender: No OFD packet to send [11:27:51]OFD Sender: No OFD packet to send [11:27:56]OFD Sender: No OFD packet to send [11:28:01]OFD Sender: No OFD packet to send [11:28:06]accept exits with 7 [11:28:06]New connection [11:28:06]New thread 3066928484 created [11:28:06]Thread 3066785124 joined [11:28:06]Waiting for new connection... [11:28:06] Sock 7.Parse request [11:28:06]Sock 7.Check first char [11:28:06]Sock 7.First char is OK [11:28:06]request: POST /json_proto HTTP/1.0 [11:28:06]Method: POST [11:28:06]URL: /json_proto [11:28:06]Method is POST - this is cgi request [11:28:06]url: /json_proto [11:28:06]query_string will be loaded in cgi processing [11:28:06]execute_cgi json_proto POST (null) [11:28:06]execute_cgi path=json_proto method=POST [11:28:06]POST find Content-Length [11:28:06]Host: 172.17.33.3:8080 [11:28:06]Content-Length: 801 [11:28:06]Content-Type: application/json [11:28:06] [11:28:06]POST finish read [11:28:06]Found Content-Length = 801 [11:28:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347570", "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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:06]execute_script... [11:28: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)347570", "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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:06]POST & json_proto [11:28:06]process_json_proto [11:28:06]json parsed OK: [11:28:06]protocol is kg_v1.0 [11:28:06]action value=close_receipt [11:28:06]process_action close_receipt [11:28:06]cmd_close_receipt [11:28:06]MH_GetDate [11:28:06]Write to MH i2c: F0 00 00 A4 8F 22 [11:28:06]Write i2c OK [11:28:06]MH_I2C_Read... [11:28:06]Read from MH i2c: F0 [11:28:06]MH_I2C_Read... [11:28:06]Read from MH i2c: F0 09 00 [11:28:06]MH_I2C_Read... [11:28:06]Read from MH i2c: F0 09 00 A4 8F 00 CF BD 1B 66 23 5B 8F 65 AA [11:28:06]GetLastDocTimeStamp 1713093878 [11:28:06]current date 1713094095 [11:28:06]FM_GetShiftState [11:28:06]SAM_PROTO_GetShiftState [11:28:06]wFMCommunicate request_size=4 [11:28:06]MH_SAM_APDU [11:28:06]CAPDU: 80 13 01 00 [11:28:06]Write to MH i2c: E2 08 00 A5 8F 80 13 01 00 00 00 00 00 B1 [11:28:06]Write i2c OK [11:28:06]MH_I2C_Read... [11:28:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:06]Read from MH i2c: E2 [11:28:06]MH_I2C_Read... [11:28:06]Read from MH i2c: E2 0E 00 [11:28:06]MH_I2C_Read... [11:28:06]Read from MH i2c: E2 0E 00 A5 8F 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 5D [11:28:06]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [11:28:06]wFMCommunicate OK [11:28:06]SAM_PROTO_GetShiftState done [11:28:06]FM_GetShiftState done [11:28:06]opened in 1713053951 [11:28:06]opened+sec_in_day 1713140351 [11:28:06]quantity*price = 100039 [11:28:06]sum+1 = 100041 [11:28:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.40 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 0.00 Безнал.: 1000.40 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 108 14.04.2024 11:28 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29198 ФПД: 93430037180639 1/tax-web-control/client/api/v1/ticket?date=20240414T112815&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29198&fm=93430037180639&tin=02508201610067®Number=0000138879044617&sum=100040 [11:28:07]StoreToDocumentArchive [11:28:07]shift 116 fd 29198 [11:28:07]save to /storage/0116/doc_00029198 [11:28:07]save last doc name /storage/0116/doc_00029198 to /storage/kkm_last_doc_name [11:28:07]save OK [11:28:07]Clear old archive folders... [11:28:07]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:28:07]tlvbuf is 01214610 [11:28:07]SAM_PROTO_ClearQueue [11:28:07]wFMCommunicate request_size=4 [11:28:07]MH_SAM_APDU [11:28:07]CAPDU: 80 09 00 00 [11:28:07]Write to MH i2c: E2 08 00 B2 8F 80 09 00 00 00 00 00 00 B3 [11:28:07]Write i2c OK [11:28:07]MH_I2C_Read... [11:28:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:28:07]Read from MH i2c: E2 [11:28:07]MH_I2C_Read... [11:28:07]Read from MH i2c: E2 03 00 [11:28:07]MH_I2C_Read... [11:28:07]Read from MH i2c: E2 03 00 B2 8F 00 90 00 B5 [11:28:07]RAPDU: 90 00 [11:28:07]wFMCommunicate OK [11:28:07]SAM_PROTO_ClearQueue done [11:28:07]KKMCreateOFDPacket [11:28:07]OFDProtocolAddRootSTLVToBuf [11:28:07]FM_MakeSignedData [11:28:07]FM_MakeSignedData [11:28:07]SAM_PROTO_SignData [11:28:07]wFMCommunicate request_size=4 [11:28:07]MH_SAM_APDU [11:28:07]CAPDU: 80 0D 01 02 [11:28:07]Write to MH i2c: E2 08 00 B3 8F 80 0D 01 02 00 00 00 00 BB [11:28:07]Write i2c OK [11:28:07]MH_I2C_Read... [11:28:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:28:07]Read from MH i2c: E2 [11:28:07]MH_I2C_Read... [11:28:07]Read from MH i2c: E2 03 00 [11:28:07]MH_I2C_Read... [11:28:07]Read from MH i2c: E2 03 00 B3 8F 00 90 00 B6 [11:28:07]RAPDU: 90 00 [11:28:07]wFMCommunicate OK [11:28:07]wFMCommunicate request_size=255 [11:28:07]MH_SAM_APDU [11:28: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 2D 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 6C 00 00 00 F4 03 04 00 CF BD 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0E 72 00 00 35 04 06 00 [11:28:07]Write to MH i2c: E2 02 01 B4 8F 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 6C 00 00 00 F4 03 04 00 CF BD 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0E 72 00 00 35 04 06 00 00 00 B5 [11:28:07]Write i2c OK [11:28:07]MH_I2C_Read... [11:28:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:07]Read from MH i2c: E2 [11:28:07]MH_I2C_Read... [11:28:07]Read from MH i2c: E2 03 00 [11:28:07]MH_I2C_Read... [11:28:07]Read from MH i2c: E2 03 00 B4 8F 00 90 00 B7 [11:28:07]RAPDU: 90 00 [11:28:07]wFMCommunicate OK [11:28:07]wFMCommunicate request_size=11 [11:28:07]MH_SAM_APDU [11:28:07]CAPDU: 80 0D 02 02 06 54 F9 60 2D 70 DF [11:28:07]Write to MH i2c: E2 0E 00 B5 8F 80 0D 02 02 06 00 54 F9 60 2D 70 DF 00 00 F3 [11:28:07]Write i2c OK [11:28:07]MH_I2C_Read... [11:28:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:07]Read from MH i2c: E2 [11:28:07]MH_I2C_Read... [11:28:07]Read from MH i2c: E2 03 00 [11:28:07]MH_I2C_Read... [11:28:07]Read from MH i2c: E2 03 00 B5 8F 00 90 00 B8 [11:28:07]RAPDU: 90 00 [11:28:07]wFMCommunicate OK [11:28:07]wFMCommunicate request_size=4 [11:28:07]MH_SAM_APDU [11:28:07]CAPDU: 80 0D 03 02 [11:28:07]Write to MH i2c: E2 08 00 B6 8F 80 0D 03 02 00 00 00 00 C0 [11:28:07]Write i2c OK [11:28:07]MH_I2C_Read... [11:28:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:28:07]Read from MH i2c: E2 [11:28:07]MH_I2C_Read... [11:28:07]Read from MH i2c: E2 0B 00 [11:28:07]MH_I2C_Read... [11:28:07]Read from MH i2c: E2 0B 00 B6 8F 00 B5 0E 11 69 C8 38 6D 17 90 00 82 [11:28:07]RAPDU: B5 0E 11 69 C8 38 6D 17 90 00 [11:28:07]wFMCommunicate OK [11:28:07]SAM_PROTO_SignData done [11:28:07]FM_MakeSignedData done [11:28:07]CreateOFDProtocolMessage [11:28:07]wFMCommunicate request_size=4 [11:28:07]MH_SAM_APDU [11:28:07]CAPDU: 80 11 00 00 [11:28:07]Write to MH i2c: E2 08 00 B7 8F 80 11 00 00 00 00 00 00 C0 [11:28:07]Write i2c OK [11:28:07]MH_I2C_Read... [11:28:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:07]Read from MH i2c: E2 [11:28:07]MH_I2C_Read... [11:28:07]Read from MH i2c: E2 17 00 [11:28:07]MH_I2C_Read... [11:28:07]Read from MH i2c: E2 17 00 B7 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 0F [11:28:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:28:07]wFMCommunicate OK [11:28:07]CreateOFDProtocolMessage done [11:28:07]OFDSenderStorePacket 29198 [11:28:07]StoreOFDPacket docnum=29198 [11:28:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 14 51 08 01 0F FE 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 6C 00 00 00 F4 03 04 00 CF BD 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0E 72 00 00 35 04 06 00 54 F9 60 2D 70 DF B5 0E 11 69 C8 38 6D 17 [11:28:07]CheckFolder [11:28:07]dirname=/storage/ofd_packets [11:28:07]CheckFolder done [11:28:07]ProducePacketName [11:28:07]name=ofd_packets/00029198 [11:28:07]NVStorageSaveData ofd_packets/00029198 [11:28:07]File name is /storage/ofd_packets/00029198 [11:28:07]Write 302 bytes [11:28:07]NVStorageSaveData done [11:28:07]OFDSenderStorePacket done [11:28:07]KKMCreateOFDPacket done [11:28:07]NVStorageSaveData kkm_last_timestamp [11:28:07]File name is /storage/kkm_last_timestamp [11:28:07]Write 4 bytes [11:28:07]NVStorageSaveData done [11:28:07]ExternCall_PrintAddStr [11:28:07]wPrintStart [11:28:07]Write to MH i2c: 01 00 00 B8 8F 47 [11:28:07]Write i2c OK [11:28:07]MH_I2C_Read... [11:28:07]Read from MH i2c: 01 [11:28:07]MH_I2C_Read... [11:28:07]Read from MH i2c: 01 07 00 [11:28:07]MH_I2C_Read... [11:28:07]Read from MH i2c: 01 07 00 B8 8F 00 00 00 00 00 FF 0F 5C [11:28:07]RasterBufferAndPrint [11:28:07]line Счет N : (1)347570 [11:28:07]line ИНН: 02508201610067 [11:28:07]line Контрольно-Кассовый Чек [11:28:07]line ПРОДАЖА [11:28:07]line ТРК (МРК, ГНК) : 41 [11:28:07]line Товар: 2710124130 [11:28:07]line SUPER-92-К-5 [11:28:07]line 15.320 * 65.30 [11:28:07]line = 1000.40 [11:28:07]line НДС 12% НСП 1% [11:28:07]line > о реализуемом товаре [11:28:07]line ИТОГО: 1000.40 [11:28:07]line НСП 1% : 8.85 [11:28:07]line НДС 12% : 106.24 [11:28:07]line Наличными: 0.00 [11:28:07]line Безнал.: 1000.40 [11:28:07]line Место: АЗС № 108 "Партнер Нефть" [11:28:07]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [11:28:07]line СНО: Общий режим [11:28:07]line Чек 108 14.04.2024 11:28 [11:28:07]line Смена: 116 ФФД: 1.0 [11:28:07]line ЗНМ: 0300000027 [11:28:07]line РНМ: 0000138879044617 [11:28:07]line Версия ККМ: 001 [11:28:07]line Платежная система: О! деньги [11:28:07]line ФМ: 0000000000963154 [11:28:07]line ФД: 29198 [11:28:07]line ФПД: 93430037180639 [11:28:07]line 1/tax-web-control/client/api/v1/ticket?date=20240414T112815&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29198&fm=93430037180639&tin=02508201610067®Number=0000138879044617&sum=100040 [11:28:08]OFD Sender: Processing packet 29198 [packets to send 8, broken 7] [11:28:08]ProducePacketName [11:28:08]name=ofd_packets/00029198 [11:28:08]OFD Sender: To server: pG, [11:28:08]CommunicateWithHost lk.salyk.kg:30040 [11:28:08]ConnectInit lk.salyk.kg [11:28:08]written 0, free lines is 4095 [11:28:08]Connected sock=9 [11:28:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 14 51 08 01 0F FE 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 6C 00 00 00 F4 03 04 00 CF BD 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0E 72 00 00 35 04 06 00 54 F9 60 2D 70 DF B5 0E 11 69 C8 38 6D 17 [11:28:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 FA D7 47 00 EC 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 39 36 33 31 35 34 10 04 04 00 0E 72 00 00 F4 03 04 00 74 68 1B 66 B6 04 01 00 00 9B E6 01 0E 03 72 34 DF [11:28:08]CommunicateWithHost err = 0 [11:28:08]CheckOFDResponse [11:28:08]1017 (14) - 77093643461234 [11:28:08]1041 (16) - 0000000000963154 [11:28:08]1040 (4) - 29198 [11:28:08]1012 (4) - 14.04.2024 05:24 [11:28:08]1206 (1) - 0 [11:28:08]OFD Sender: Remove packet 29198 [11:28:08]ProducePacketName [11:28:08]name=ofd_packets/00029198 [11:28:08]NVStorageDeleteData [11:28:08]Write to MH i2c: 01 00 00 E1 8F 70 [11:28:08]Write i2c OK [11:28:08]MH_I2C_Read... [11:28:08]Read from MH i2c: 01 [11:28:08]MH_I2C_Read... [11:28:08]Read from MH i2c: 01 07 00 [11:28:08]MH_I2C_Read... [11:28:08]Read from MH i2c: 01 07 00 E1 8F 00 00 00 00 00 E1 0C 64 [11:28:08]RasterBufferAndPrint [11:28:08]line [11:28:08]line [11:28:08]line [11:28:08]line [11:28:08]line [11:28:08]written 0, free lines is 3306 [11:28:08]MH_Cut [11:28:08]Write to MH i2c: D1 01 00 E8 8F 01 49 [11:28:08]Write i2c OK [11:28:08]MH_I2C_Read... [11:28:08]Read from MH i2c: D1 [11:28:08]MH_I2C_Read... [11:28:08]Read from MH i2c: D1 01 00 [11:28:08]MH_I2C_Read... [11:28:08]Read from MH i2c: D1 01 00 E8 8F 00 48 [11:28:08]Write to MH i2c: 01 00 00 E9 8F 78 [11:28:08]Write i2c OK [11:28:08]MH_I2C_Read... [11:28:08]OFD Sender: No OFD packet to send [11:28:09]*** Cut start [11:28:09]*** Partial cut [11:28:09]*** CUTSNS_PIN = 1 [11:28:09]*** CUTSNS_PIN = 0 [11:28:09]*** Brake cut motor [11:28:09]Read from MH i2c: 01 [11:28:09]MH_I2C_Read... [11:28:09]*** Stop cut motor [11:28:09]*** Cut end [11:28:09]Read from MH i2c: 01 07 00 [11:28:09]MH_I2C_Read... [11:28:09]Read from MH i2c: 01 07 00 E9 8F 00 00 00 00 00 FF 0F 8D [11:28:09]process_action close_receipt done [11:28:09]requested_data is exist [11:28:09]produce_requested_data [11:28:09]requested_item fm.sn is exist - process it [11:28:09]wFMCommunicate request_size=4 [11:28:09]MH_SAM_APDU [11:28:09]CAPDU: 80 11 00 00 [11:28:09]Write to MH i2c: E2 08 00 EA 8F 80 11 00 00 00 00 00 00 F3 [11:28:09]Write i2c OK [11:28:09]MH_I2C_Read... [11:28:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:10]Read from MH i2c: E2 [11:28:10]MH_I2C_Read... [11:28:10]Read from MH i2c: E2 17 00 [11:28:10]MH_I2C_Read... [11:28:10]Read from MH i2c: E2 17 00 EA 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 42 [11:28:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:28:10]wFMCommunicate OK [11:28:10]requested_item fd.num is exist - process it [11:28:10]SAM_PROTO_GetFieldsCounters [11:28:10]wFMCommunicate request_size=4 [11:28:10]MH_SAM_APDU [11:28:10]CAPDU: 80 13 00 00 [11:28:10]Write to MH i2c: E2 08 00 EB 8F 80 13 00 00 00 00 00 00 F6 [11:28:10]Write i2c OK [11:28:10]MH_I2C_Read... [11:28:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:28:10]Read from MH i2c: E2 [11:28:10]MH_I2C_Read... [11:28:10]Read from MH i2c: E2 62 00 [11:28:10]MH_I2C_Read... [11:28:10]Read from MH i2c: E2 62 00 EB 8F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 0E 72 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 6C [11:28:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 0E 72 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:28:10]wFMCommunicate OK [11:28:10]SAM_PROTO_GetFieldsCounters done [11:28:10]requested_item shift.num is exist - process it [11:28:10]requested_item shift.opened is exist - process it [11:28:10]req_shift_opened [11:28:10]FM_GetShiftState [11:28:10]SAM_PROTO_GetShiftState [11:28:10]wFMCommunicate request_size=4 [11:28:10]MH_SAM_APDU [11:28:10]CAPDU: 80 13 01 00 [11:28:10]Write to MH i2c: E2 08 00 EC 8F 80 13 01 00 00 00 00 00 F8 [11:28:10]Write i2c OK [11:28:10]MH_I2C_Read... [11:28:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:10]Read from MH i2c: E2 [11:28:10]MH_I2C_Read... [11:28:10]Read from MH i2c: E2 0E 00 [11:28:10]MH_I2C_Read... [11:28:10]Read from MH i2c: E2 0E 00 EC 8F 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 A4 [11:28:10]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [11:28:10]wFMCommunicate OK [11:28:10]SAM_PROTO_GetShiftState done [11:28:10]FM_GetShiftState done [11:28:10]req_shift_opened done [11:28:10]requested_item shift.open_date is exist - process it [11:28:10]req_shift_open_date [11:28:10]req_shift_open_date done [11:28:10]produce_requested_data done [11:28:10]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29198,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [11:28:10]process_action_free close_receipt [11:28:10]json_value_free [11:28:10]json_value_free done [11:28:10]process_json_proto returns [11:28:10]Send response to host [11:28:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29198,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [11:28:10]free response buf [11:28:10]execute_script done [11:28:10]execute_script returns [11:28:10]free content buf [11:28:10]Sock 7.Close socket [11:28:10]Sock 7.Thread stoped [11:28:13]OFD Sender: No OFD packet to send [11:28:18]OFD Sender: No OFD packet to send [11:28:23]OFD Sender: No OFD packet to send [11:28:28]OFD Sender: No OFD packet to send [11:28:33]OFD Sender: No OFD packet to send [11:28:38]OFD Sender: No OFD packet to send [11:28:43]OFD Sender: No OFD packet to send [11:28:48]OFD Sender: No OFD packet to send [11:28:53]OFD Sender: No OFD packet to send [11:28:58]OFD Sender: No OFD packet to send [11:29:03]OFD Sender: No OFD packet to send [11:29:08]OFD Sender: No OFD packet to send [11:29:13]OFD Sender: No OFD packet to send [11:29:18]OFD Sender: No OFD packet to send [11:29:23]OFD Sender: No OFD packet to send [11:29:28]OFD Sender: No OFD packet to send [11:29:33]OFD Sender: No OFD packet to send [11:29:38]OFD Sender: No OFD packet to send [11:29:41]accept exits with 10 [11:29:41]New connection [11:29:41]New thread 3066785124 created [11:29:41]Thread 3066928484 joined [11:29:41]Waiting for new connection... [11:29:41] Sock 10.Parse request [11:29:41]Sock 10.Check first char [11:29:41]Sock 10.First char is OK [11:29:41]request: POST /json_proto HTTP/1.0 [11:29:42]Method: POST [11:29:42]URL: /json_proto [11:29:42]Method is POST - this is cgi request [11:29:42]url: /json_proto [11:29:42]query_string will be loaded in cgi processing [11:29:42]execute_cgi json_proto POST (null) [11:29:42]execute_cgi path=json_proto method=POST [11:29:42]POST find Content-Length [11:29:42]Host: 172.17.33.3:8080 [11:29:42]Content-Length: 805 [11:29:42]Content-Type: application/json [11:29:42] [11:29:42]POST finish read [11:29:42]Found Content-Length = 805 [11:29:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347571", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:29:42]execute_script... [11:29: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)347571", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:29:42]POST & json_proto [11:29:42]process_json_proto [11:29:42]json parsed OK: [11:29:42]protocol is kg_v1.0 [11:29:42]action value=close_receipt [11:29:42]process_action close_receipt [11:29:42]cmd_close_receipt [11:29:42]MH_GetDate [11:29:42]Write to MH i2c: F0 00 00 ED 8F 6B [11:29:42]Write i2c OK [11:29:42]MH_I2C_Read... [11:29:42]Read from MH i2c: F0 [11:29:42]MH_I2C_Read... [11:29:42]Read from MH i2c: F0 09 00 [11:29:42]MH_I2C_Read... [11:29:42]Read from MH i2c: F0 09 00 ED 8F 00 2F BE 1B 66 23 5B 8F 65 54 [11:29:42]GetLastDocTimeStamp 1713094095 [11:29:42]current date 1713094191 [11:29:42]FM_GetShiftState [11:29:42]SAM_PROTO_GetShiftState [11:29:42]wFMCommunicate request_size=4 [11:29:42]MH_SAM_APDU [11:29:42]CAPDU: 80 13 01 00 [11:29:42]Write to MH i2c: E2 08 00 EE 8F 80 13 01 00 00 00 00 00 FA [11:29:42]Write i2c OK [11:29:42]MH_I2C_Read... [11:29:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:42]Read from MH i2c: E2 [11:29:42]MH_I2C_Read... [11:29:42]Read from MH i2c: E2 0E 00 [11:29:42]MH_I2C_Read... [11:29:42]Read from MH i2c: E2 0E 00 EE 8F 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 A6 [11:29:42]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [11:29:42]wFMCommunicate OK [11:29:42]SAM_PROTO_GetShiftState done [11:29:42]FM_GetShiftState done [11:29:42]opened in 1713053951 [11:29:42]opened+sec_in_day 1713140351 [11:29:42]quantity*price = 200041 [11:29:42]sum+1 = 200042 [11:29:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.41 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 0.00 Безнал.: 2000.41 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 109 14.04.2024 11:29 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29199 ФПД: 202342801312542 1/tax-web-control/client/api/v1/ticket?date=20240414T112951&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29199&fm=202342801312542&tin=02508201610067®Number=0000138879044617&sum=200041 [11:29:43]StoreToDocumentArchive [11:29:43]shift 116 fd 29199 [11:29:43]save to /storage/0116/doc_00029199 [11:29:43]save last doc name /storage/0116/doc_00029199 to /storage/kkm_last_doc_name [11:29:43]save OK [11:29:43]Clear old archive folders... [11:29:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:29:43]tlvbuf is 0121A140 [11:29:43]SAM_PROTO_ClearQueue [11:29:43]wFMCommunicate request_size=4 [11:29:43]MH_SAM_APDU [11:29:43]CAPDU: 80 09 00 00 [11:29:43]Write to MH i2c: E2 08 00 FB 8F 80 09 00 00 00 00 00 00 FC [11:29:43]Write i2c OK [11:29:43]MH_I2C_Read... [11:29:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:29:43]Read from MH i2c: E2 [11:29:43]MH_I2C_Read... [11:29:43]Read from MH i2c: E2 03 00 [11:29:43]MH_I2C_Read... [11:29:43]Read from MH i2c: E2 03 00 FB 8F 00 90 00 FE [11:29:43]RAPDU: 90 00 [11:29:43]wFMCommunicate OK [11:29:43]SAM_PROTO_ClearQueue done [11:29:43]KKMCreateOFDPacket [11:29:43]OFDProtocolAddRootSTLVToBuf [11:29:43]FM_MakeSignedData [11:29:43]FM_MakeSignedData [11:29:43]SAM_PROTO_SignData [11:29:43]wFMCommunicate request_size=4 [11:29:43]MH_SAM_APDU [11:29:43]CAPDU: 80 0D 01 02 [11:29:43]Write to MH i2c: E2 08 00 FC 8F 80 0D 01 02 00 00 00 00 04 [11:29:43]Write i2c OK [11:29:43]MH_I2C_Read... [11:29:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:29:43]Read from MH i2c: E2 [11:29:43]MH_I2C_Read... [11:29:43]Read from MH i2c: E2 03 00 [11:29:43]MH_I2C_Read... [11:29:43]Read from MH i2c: E2 03 00 FC 8F 00 90 00 FF [11:29:43]RAPDU: 90 00 [11:29:43]wFMCommunicate OK [11:29:43]wFMCommunicate request_size=255 [11:29:43]MH_SAM_APDU [11:29:43]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 6D 00 00 00 F4 03 04 00 2F BE 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0F 72 00 00 35 04 06 00 B8 07 9A CB [11:29:43]Write to MH i2c: E2 02 01 FD 8F 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 6D 00 00 00 F4 03 04 00 2F BE 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0F 72 00 00 35 04 06 00 B8 07 9A CB 00 00 D7 [11:29:43]Write i2c OK [11:29:43]MH_I2C_Read... [11:29:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:43]Read from MH i2c: E2 [11:29:43]MH_I2C_Read... [11:29:43]Read from MH i2c: E2 03 00 [11:29:43]MH_I2C_Read... [11:29:43]Read from MH i2c: E2 03 00 FD 8F 00 90 00 00 [11:29:43]RAPDU: 90 00 [11:29:43]wFMCommunicate OK [11:29:43]wFMCommunicate request_size=7 [11:29:43]MH_SAM_APDU [11:29:43]CAPDU: 80 0D 02 02 02 8B 1E [11:29:43]Write to MH i2c: E2 0A 00 FE 8F 80 0D 02 02 02 00 8B 1E 00 00 B4 [11:29:43]Write i2c OK [11:29:43]MH_I2C_Read... [11:29:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:43]Read from MH i2c: E2 [11:29:43]MH_I2C_Read... [11:29:43]Read from MH i2c: E2 03 00 [11:29:43]MH_I2C_Read... [11:29:43]Read from MH i2c: E2 03 00 FE 8F 00 90 00 01 [11:29:43]RAPDU: 90 00 [11:29:43]wFMCommunicate OK [11:29:43]wFMCommunicate request_size=4 [11:29:43]MH_SAM_APDU [11:29:43]CAPDU: 80 0D 03 02 [11:29:43]Write to MH i2c: E2 08 00 FF 8F 80 0D 03 02 00 00 00 00 09 [11:29:43]Write i2c OK [11:29:43]MH_I2C_Read... [11:29:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:29:43]Read from MH i2c: E2 [11:29:43]MH_I2C_Read... [11:29:43]Read from MH i2c: E2 0B 00 [11:29:43]MH_I2C_Read... [11:29:43]Read from MH i2c: E2 0B 00 FF 8F 00 90 AF CB 71 BA 4B 1A 6F 90 00 13 [11:29:43]RAPDU: 90 AF CB 71 BA 4B 1A 6F 90 00 [11:29:43]wFMCommunicate OK [11:29:43]SAM_PROTO_SignData done [11:29:43]FM_MakeSignedData done [11:29:43]CreateOFDProtocolMessage [11:29:43]wFMCommunicate request_size=4 [11:29:43]MH_SAM_APDU [11:29:43]CAPDU: 80 11 00 00 [11:29:43]Write to MH i2c: E2 08 00 00 90 80 11 00 00 00 00 00 00 0A [11:29:43]Write i2c OK [11:29:43]MH_I2C_Read... [11:29:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:43]Read from MH i2c: E2 [11:29:43]MH_I2C_Read... [11:29:43]Read from MH i2c: E2 17 00 [11:29:43]MH_I2C_Read... [11:29:43]Read from MH i2c: E2 17 00 00 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 59 [11:29:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:29:43]wFMCommunicate OK [11:29:43]CreateOFDProtocolMessage done [11:29:43]OFDSenderStorePacket 29199 [11:29:43]StoreOFDPacket docnum=29199 [11:29:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 8D 7D 04 01 44 D3 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 6D 00 00 00 F4 03 04 00 2F BE 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0F 72 00 00 35 04 06 00 B8 07 9A CB 8B 1E 90 AF CB 71 BA 4B 1A 6F [11:29:43]CheckFolder [11:29:43]dirname=/storage/ofd_packets [11:29:43]CheckFolder done [11:29:43]ProducePacketName [11:29:43]name=ofd_packets/00029199 [11:29:43]NVStorageSaveData ofd_packets/00029199 [11:29:43]File name is /storage/ofd_packets/00029199 [11:29:43]Write 298 bytes [11:29:43]NVStorageSaveData done [11:29:43]OFDSenderStorePacket done [11:29:43]KKMCreateOFDPacket done [11:29:43]NVStorageSaveData kkm_last_timestamp [11:29:43]File name is /storage/kkm_last_timestamp [11:29:43]Write 4 bytes [11:29:43]NVStorageSaveData done [11:29:43]ExternCall_PrintAddStr [11:29:43]wPrintStart [11:29:43]Write to MH i2c: 01 00 00 01 90 91 [11:29:43]Write i2c OK [11:29:43]MH_I2C_Read... [11:29:43]Read from MH i2c: 01 [11:29:43]MH_I2C_Read... [11:29:43]Read from MH i2c: 01 07 00 [11:29:43]MH_I2C_Read... [11:29:43]Read from MH i2c: 01 07 00 01 90 00 00 00 00 00 FF 0F A6 [11:29:43]RasterBufferAndPrint [11:29:43]line Счет N : (1)347571 [11:29:43]line ИНН: 02508201610067 [11:29:43]line Контрольно-Кассовый Чек [11:29:43]line ПРОДАЖА [11:29:43]line ТРК (МРК, ГНК) : 11 [11:29:43]line Товар: 2710194210 [11:29:43]line ДТ-К-5 [11:29:43]line 27.630 * 72.40 [11:29:43]line = 2000.41 [11:29:43]line НДС 12% НСП 1% [11:29:43]line > о реализуемом товаре [11:29:43]line ИТОГО: 2000.41 [11:29:43]line НСП 1% : 17.70 [11:29:43]line НДС 12% : 212.43 [11:29:43]line Наличными: 0.00 [11:29:43]line Безнал.: 2000.41 [11:29:43]line Место: АЗС № 108 "Партнер Нефть" [11:29:43]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [11:29:43]line СНО: Общий режим [11:29:43]line Чек 109 14.04.2024 11:29 [11:29:43]line Смена: 116 ФФД: 1.0 [11:29:43]line ЗНМ: 0300000027 [11:29:43]line РНМ: 0000138879044617 [11:29:43]line Версия ККМ: 001 [11:29:43]line Платежная система: О! деньги [11:29:43]line ФМ: 0000000000963154 [11:29:43]line ФД: 29199 [11:29:43]line ФПД: 202342801312542 [11:29:44]line 1/tax-web-control/client/api/v1/ticket?date=20240414T112951&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29199&fm=202342801312542&tin=02508201610067®Number=0000138879044617&sum=200041 [11:29:44]OFD Sender: Processing packet 29199 [packets to send 8, broken 7] [11:29:44]ProducePacketName [11:29:44]name=ofd_packets/00029199 [11:29:44]OFD Sender: To server: pG, [11:29:44]CommunicateWithHost lk.salyk.kg:30040 [11:29:44]ConnectInit lk.salyk.kg [11:29:44]written 0, free lines is 4095 [11:29:44]Connected sock=9 [11:29:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 8D 7D 04 01 44 D3 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 6D 00 00 00 F4 03 04 00 2F BE 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0F 72 00 00 35 04 06 00 B8 07 9A CB 8B 1E 90 AF CB 71 BA 4B 1A 6F [11:29:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 EE BE 47 00 2E D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0F 72 00 00 F4 03 04 00 D4 68 1B 66 B6 04 01 00 00 73 6F B9 11 9C FF 28 32 [11:29:44]CommunicateWithHost err = 0 [11:29:44]CheckOFDResponse [11:29:44]1017 (14) - 77093643461234 [11:29:44]1041 (16) - 0000000000963154 [11:29:44]1040 (4) - 29199 [11:29:44]1012 (4) - 14.04.2024 05:25 [11:29:44]1206 (1) - 0 [11:29:44]OFD Sender: Remove packet 29199 [11:29:44]ProducePacketName [11:29:44]name=ofd_packets/00029199 [11:29:44]NVStorageDeleteData [11:29:44]Write to MH i2c: 01 00 00 2A 90 BA [11:29:44]Write i2c OK [11:29:44]MH_I2C_Read... [11:29:44]Read from MH i2c: 01 [11:29:44]MH_I2C_Read... [11:29:44]Read from MH i2c: 01 07 00 [11:29:44]MH_I2C_Read... [11:29:44]Read from MH i2c: 01 07 00 2A 90 00 00 00 00 00 D5 0C A2 [11:29:44]RasterBufferAndPrint [11:29:44]line [11:29:44]line [11:29:44]line [11:29:44]line [11:29:44]line [11:29:44]written 0, free lines is 3291 [11:29:44]MH_Cut [11:29:44]Write to MH i2c: D1 01 00 31 90 01 93 [11:29:44]Write i2c OK [11:29:44]MH_I2C_Read... [11:29:44]Read from MH i2c: D1 [11:29:44]MH_I2C_Read... [11:29:44]Read from MH i2c: D1 01 00 [11:29:44]MH_I2C_Read... [11:29:44]Read from MH i2c: D1 01 00 31 90 00 92 [11:29:44]Write to MH i2c: 01 00 00 32 90 C2 [11:29:44]Write i2c OK [11:29:44]MH_I2C_Read... [11:29:44]OFD Sender: No OFD packet to send [11:29:45]*** Cut start [11:29:45]*** Partial cut [11:29:45]*** CUTSNS_PIN = 1 [11:29:45]*** CUTSNS_PIN = 0 [11:29:45]*** Brake cut motor [11:29:45]Read from MH i2c: 01 [11:29:45]MH_I2C_Read... [11:29:45]*** Stop cut motor [11:29:45]*** Cut end [11:29:45]Read from MH i2c: 01 07 00 [11:29:45]MH_I2C_Read... [11:29:45]Read from MH i2c: 01 07 00 32 90 00 00 00 00 00 FF 0F D7 [11:29:45]process_action close_receipt done [11:29:45]requested_data is exist [11:29:45]produce_requested_data [11:29:45]requested_item fm.sn is exist - process it [11:29:45]wFMCommunicate request_size=4 [11:29:45]MH_SAM_APDU [11:29:45]CAPDU: 80 11 00 00 [11:29:45]Write to MH i2c: E2 08 00 33 90 80 11 00 00 00 00 00 00 3D [11:29:45]Write i2c OK [11:29:45]MH_I2C_Read... [11:29:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:45]Read from MH i2c: E2 [11:29:45]MH_I2C_Read... [11:29:45]Read from MH i2c: E2 17 00 [11:29:45]MH_I2C_Read... [11:29:45]Read from MH i2c: E2 17 00 33 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 8C [11:29:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:29:45]wFMCommunicate OK [11:29:45]requested_item fd.num is exist - process it [11:29:45]SAM_PROTO_GetFieldsCounters [11:29:45]wFMCommunicate request_size=4 [11:29:45]MH_SAM_APDU [11:29:45]CAPDU: 80 13 00 00 [11:29:45]Write to MH i2c: E2 08 00 34 90 80 13 00 00 00 00 00 00 40 [11:29:45]Write i2c OK [11:29:45]MH_I2C_Read... [11:29:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:29:46]Read from MH i2c: E2 [11:29:46]MH_I2C_Read... [11:29:46]Read from MH i2c: E2 62 00 [11:29:46]MH_I2C_Read... [11:29:46]Read from MH i2c: E2 62 00 34 90 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 0F 72 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 BA [11:29:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 0F 72 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:29:46]wFMCommunicate OK [11:29:46]SAM_PROTO_GetFieldsCounters done [11:29:46]requested_item shift.num is exist - process it [11:29:46]requested_item shift.opened is exist - process it [11:29:46]req_shift_opened [11:29:46]FM_GetShiftState [11:29:46]SAM_PROTO_GetShiftState [11:29:46]wFMCommunicate request_size=4 [11:29:46]MH_SAM_APDU [11:29:46]CAPDU: 80 13 01 00 [11:29:46]Write to MH i2c: E2 08 00 35 90 80 13 01 00 00 00 00 00 42 [11:29:46]Write i2c OK [11:29:46]MH_I2C_Read... [11:29:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:46]Read from MH i2c: E2 [11:29:46]MH_I2C_Read... [11:29:46]Read from MH i2c: E2 0E 00 [11:29:46]MH_I2C_Read... [11:29:46]Read from MH i2c: E2 0E 00 35 90 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 EE [11:29:46]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [11:29:46]wFMCommunicate OK [11:29:46]SAM_PROTO_GetShiftState done [11:29:46]FM_GetShiftState done [11:29:46]req_shift_opened done [11:29:46]requested_item shift.open_date is exist - process it [11:29:46]req_shift_open_date [11:29:46]req_shift_open_date done [11:29:46]produce_requested_data done [11:29:46]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29199,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [11:29:46]process_action_free close_receipt [11:29:46]json_value_free [11:29:46]json_value_free done [11:29:46]process_json_proto returns [11:29:46]Send response to host [11:29:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29199,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [11:29:46]free response buf [11:29:46]execute_script done [11:29:46]execute_script returns [11:29:46]free content buf [11:29:46]Sock 10.Close socket [11:29:46]Sock 10.Thread stoped [11:29:49]OFD Sender: No OFD packet to send [11:29:54]OFD Sender: No OFD packet to send [11:29:59]OFD Sender: No OFD packet to send [11:30:04]OFD Sender: No OFD packet to send [11:30:08]accept exits with 7 [11:30:08]New connection [11:30:08]New thread 3066928484 created [11:30:08]Thread 3066785124 joined [11:30:08]Waiting for new connection... [11:30:08] Sock 7.Parse request [11:30:08]Sock 7.Check first char [11:30:08]Sock 7.First char is OK [11:30:08]request: POST /json_proto HTTP/1.0 [11:30:08]Method: POST [11:30:08]URL: /json_proto [11:30:08]Method is POST - this is cgi request [11:30:08]url: /json_proto [11:30:08]query_string will be loaded in cgi processing [11:30:08]execute_cgi json_proto POST (null) [11:30:08]execute_cgi path=json_proto method=POST [11:30:08]POST find Content-Length [11:30:08]Host: 172.17.33.3:8080 [11:30:08]Content-Length: 808 [11:30:08]Content-Type: application/json [11:30:08] [11:30:08]POST finish read [11:30:08]Found Content-Length = 808 [11:30:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347572", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.50, "quantity" : 27.590, "sum" : 2000.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" : 2000.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:30:08]execute_script... [11:30: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)347572", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.50, "quantity" : 27.590, "sum" : 2000.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" : 2000.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:30:08]POST & json_proto [11:30:08]process_json_proto [11:30:08]json parsed OK: [11:30:08]protocol is kg_v1.0 [11:30:08]action value=close_receipt [11:30:08]process_action close_receipt [11:30:08]cmd_close_receipt [11:30:08]MH_GetDate [11:30:08]Write to MH i2c: F0 00 00 36 90 B5 [11:30:08]Write i2c OK [11:30:08]MH_I2C_Read... [11:30:08]Read from MH i2c: F0 [11:30:08]MH_I2C_Read... [11:30:08]Read from MH i2c: F0 09 00 [11:30:08]MH_I2C_Read... [11:30:08]Read from MH i2c: F0 09 00 36 90 00 4A BE 1B 66 23 5B 8F 65 B9 [11:30:08]GetLastDocTimeStamp 1713094191 [11:30:08]current date 1713094218 [11:30:08]FM_GetShiftState [11:30:08]SAM_PROTO_GetShiftState [11:30:08]wFMCommunicate request_size=4 [11:30:08]MH_SAM_APDU [11:30:08]CAPDU: 80 13 01 00 [11:30:08]Write to MH i2c: E2 08 00 37 90 80 13 01 00 00 00 00 00 44 [11:30:08]Write i2c OK [11:30:08]MH_I2C_Read... [11:30:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:08]Read from MH i2c: E2 [11:30:08]MH_I2C_Read... [11:30:08]Read from MH i2c: E2 0E 00 [11:30:08]MH_I2C_Read... [11:30:08]Read from MH i2c: E2 0E 00 37 90 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 F0 [11:30:08]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [11:30:08]wFMCommunicate OK [11:30:08]SAM_PROTO_GetShiftState done [11:30:08]FM_GetShiftState done [11:30:08]opened in 1713053951 [11:30:08]opened+sec_in_day 1713140351 [11:30:08]quantity*price = 200027 [11:30:08]sum+1 = 200029 [11:30:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.28 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.28 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 110 14.04.2024 11:30 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29200 ФПД: 17804981801462 1/tax-web-control/client/api/v1/ticket?date=20240414T113018&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29200&fm=17804981801462&tin=02508201610067®Number=0000138879044617&sum=200028 [11:30:09]StoreToDocumentArchive [11:30:09]shift 116 fd 29200 [11:30:09]save to /storage/0116/doc_00029200 [11:30:09]save last doc name /storage/0116/doc_00029200 to /storage/kkm_last_doc_name [11:30:09]save OK [11:30:09]Clear old archive folders... [11:30:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:30:09]tlvbuf is 012F37A0 [11:30:09]SAM_PROTO_ClearQueue [11:30:09]wFMCommunicate request_size=4 [11:30:09]MH_SAM_APDU [11:30:09]CAPDU: 80 09 00 00 [11:30:09]Write to MH i2c: E2 08 00 44 90 80 09 00 00 00 00 00 00 46 [11:30:09]Write i2c OK [11:30:09]MH_I2C_Read... [11:30:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:30:09]Read from MH i2c: E2 [11:30:09]MH_I2C_Read... [11:30:09]Read from MH i2c: E2 03 00 [11:30:09]MH_I2C_Read... [11:30:09]Read from MH i2c: E2 03 00 44 90 00 90 00 48 [11:30:09]RAPDU: 90 00 [11:30:09]wFMCommunicate OK [11:30:09]SAM_PROTO_ClearQueue done [11:30:09]KKMCreateOFDPacket [11:30:09]OFDProtocolAddRootSTLVToBuf [11:30:09]FM_MakeSignedData [11:30:09]FM_MakeSignedData [11:30:09]SAM_PROTO_SignData [11:30:09]wFMCommunicate request_size=4 [11:30:09]MH_SAM_APDU [11:30:09]CAPDU: 80 0D 01 02 [11:30:09]Write to MH i2c: E2 08 00 45 90 80 0D 01 02 00 00 00 00 4E [11:30:09]Write i2c OK [11:30:09]MH_I2C_Read... [11:30:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:30:09]Read from MH i2c: E2 [11:30:09]MH_I2C_Read... [11:30:09]Read from MH i2c: E2 03 00 [11:30:09]MH_I2C_Read... [11:30:09]Read from MH i2c: E2 03 00 45 90 00 90 00 49 [11:30:09]RAPDU: 90 00 [11:30:09]wFMCommunicate OK [11:30:09]wFMCommunicate request_size=255 [11:30:09]MH_SAM_APDU [11:30: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 C6 6B 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 5C 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 4A BE 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 10 72 00 00 35 04 06 00 10 [11:30:09]Write to MH i2c: E2 02 01 46 90 80 0D 02 02 FA 00 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 C6 6B 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 5C 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 4A BE 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 10 72 00 00 35 04 06 00 10 00 00 95 [11:30:09]Write i2c OK [11:30:09]MH_I2C_Read... [11:30:09]OFD Sender: No OFD packet to send [11:30:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:10]Read from MH i2c: E2 [11:30:10]MH_I2C_Read... [11:30:10]Read from MH i2c: E2 03 00 [11:30:10]MH_I2C_Read... [11:30:10]Read from MH i2c: E2 03 00 46 90 00 90 00 4A [11:30:10]RAPDU: 90 00 [11:30:10]wFMCommunicate OK [11:30:10]wFMCommunicate request_size=10 [11:30:10]MH_SAM_APDU [11:30:10]CAPDU: 80 0D 02 02 05 31 8B 9D 91 F6 [11:30:10]Write to MH i2c: E2 0D 00 47 90 80 0D 02 02 05 00 31 8B 9D 91 F6 00 00 3B [11:30:10]Write i2c OK [11:30:10]MH_I2C_Read... [11:30:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:10]Read from MH i2c: E2 [11:30:10]MH_I2C_Read... [11:30:10]Read from MH i2c: E2 03 00 [11:30:10]MH_I2C_Read... [11:30:10]Read from MH i2c: E2 03 00 47 90 00 90 00 4B [11:30:10]RAPDU: 90 00 [11:30:10]wFMCommunicate OK [11:30:10]wFMCommunicate request_size=4 [11:30:10]MH_SAM_APDU [11:30:10]CAPDU: 80 0D 03 02 [11:30:10]Write to MH i2c: E2 08 00 48 90 80 0D 03 02 00 00 00 00 53 [11:30:10]Write i2c OK [11:30:10]MH_I2C_Read... [11:30:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:30:10]Read from MH i2c: E2 [11:30:10]MH_I2C_Read... [11:30:10]Read from MH i2c: E2 0B 00 [11:30:10]MH_I2C_Read... [11:30:10]Read from MH i2c: E2 0B 00 48 90 00 6A 36 CB F5 BB 97 B8 D7 90 00 95 [11:30:10]RAPDU: 6A 36 CB F5 BB 97 B8 D7 90 00 [11:30:10]wFMCommunicate OK [11:30:10]SAM_PROTO_SignData done [11:30:10]FM_MakeSignedData done [11:30:10]CreateOFDProtocolMessage [11:30:10]wFMCommunicate request_size=4 [11:30:10]MH_SAM_APDU [11:30:10]CAPDU: 80 11 00 00 [11:30:10]Write to MH i2c: E2 08 00 49 90 80 11 00 00 00 00 00 00 53 [11:30:10]Write i2c OK [11:30:10]MH_I2C_Read... [11:30:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:10]Read from MH i2c: E2 [11:30:10]MH_I2C_Read... [11:30:10]Read from MH i2c: E2 17 00 [11:30:10]MH_I2C_Read... [11:30:10]Read from MH i2c: E2 17 00 49 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A2 [11:30:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:30:10]wFMCommunicate OK [11:30:10]CreateOFDProtocolMessage done [11:30:10]OFDSenderStorePacket 29200 [11:30:10]StoreOFDPacket docnum=29200 [11:30:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 70 D0 07 01 C7 55 5A 03 01 00 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 C6 6B 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 5C 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 4A BE 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 10 72 00 00 35 04 06 00 10 31 8B 9D 91 F6 6A 36 CB F5 BB 97 B8 D7 [11:30:10]CheckFolder [11:30:10]dirname=/storage/ofd_packets [11:30:10]CheckFolder done [11:30:10]ProducePacketName [11:30:10]name=ofd_packets/00029200 [11:30:10]NVStorageSaveData ofd_packets/00029200 [11:30:10]File name is /storage/ofd_packets/00029200 [11:30:10]Write 301 bytes [11:30:10]NVStorageSaveData done [11:30:10]OFDSenderStorePacket done [11:30:10]KKMCreateOFDPacket done [11:30:10]NVStorageSaveData kkm_last_timestamp [11:30:10]File name is /storage/kkm_last_timestamp [11:30:10]Write 4 bytes [11:30:10]NVStorageSaveData done [11:30:10]ExternCall_PrintAddStr [11:30:10]wPrintStart [11:30:10]Write to MH i2c: 01 00 00 4A 90 DA [11:30:10]OFD Sender: Processing packet 29200 [packets to send 8, broken 7] [11:30:10]ProducePacketName [11:30:10]name=ofd_packets/00029200 [11:30:10]OFD Sender: To server: pG, [11:30:10]CommunicateWithHost lk.salyk.kg:30040 [11:30:10]ConnectInit lk.salyk.kg [11:30:10]Write i2c OK [11:30:10]MH_I2C_Read... [11:30:10]Read from MH i2c: 01 [11:30:10]MH_I2C_Read... [11:30:10]Read from MH i2c: 01 07 00 [11:30:10]MH_I2C_Read... [11:30:10]Read from MH i2c: 01 07 00 4A 90 00 00 00 00 00 FF 0F EF [11:30:10]RasterBufferAndPrint [11:30:10]line Счет N : (1)347572 [11:30:10]line ИНН: 02508201610067 [11:30:10]line Контрольно-Кассовый Чек [11:30:10]line ПРОДАЖА [11:30:10]line ТРК (МРК, ГНК) : 33 [11:30:10]line Товар: 2710124500 [11:30:10]line Аи-95-К-5 [11:30:10]line 27.590 * 72.50 [11:30:10]line = 2000.28 [11:30:10]line НДС 12% НСП 1% [11:30:10]line > о реализуемом товаре [11:30:10]line ИТОГО: 2000.28 [11:30:10]line НСП 1% : 17.70 [11:30:10]line НДС 12% : 212.42 [11:30:10]line Наличными: 0.00 [11:30:10]line Безнал.: 2000.28 [11:30:10]line Место: АЗС № 108 "Партнер Нефть" [11:30:10]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [11:30:10]line СНО: Общий режим [11:30:10]line Чек 110 14.04.2024 11:30 [11:30:10]line Смена: 116 ФФД: 1.0 [11:30:10]line ЗНМ: 0300000027 [11:30:10]line РНМ: 0000138879044617 [11:30:10]line Версия ККМ: 001 [11:30:10]line Платежная система: О! деньги [11:30:10]line ФМ: 0000000000963154 [11:30:10]line ФД: 29200 [11:30:10]line ФПД: 17804981801462 [11:30:10]line 1/tax-web-control/client/api/v1/ticket?date=20240414T113018&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29200&fm=17804981801462&tin=02508201610067®Number=0000138879044617&sum=200028 [11:30:10]Connected sock=10 [11:30:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 70 D0 07 written 0, free lines is 4095 [11:30:10]01 C7 55 5A 03 01 00 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 C6 6B 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 5C 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 4A BE 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 10 72 00 00 35 04 06 00 10 31 8B 9D 91 F6 6A 36 CB F5 BB 97 B8 D7 [11:30:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 FA 21 47 00 9E 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 39 36 33 31 35 34 10 04 04 00 10 72 00 00 F4 03 04 00 EE 68 1B 66 B6 04 01 00 00 80 51 95 DB 3A AF CC 6C [11:30:10]CommunicateWithHost err = 0 [11:30:10]CheckOFDResponse [11:30:10]1017 (14) - 77093643461234 [11:30:10]1041 (16) - 0000000000963154 [11:30:10]1040 (4) - 29200 [11:30:10]1012 (4) - 14.04.2024 05:26 [11:30:10]1206 (1) - 0 [11:30:10]OFD Sender: Remove packet 29200 [11:30:10]ProducePacketName [11:30:10]name=ofd_packets/00029200 [11:30:10]NVStorageDeleteData [11:30:10]Write to MH i2c: 01 00 00 73 90 03 [11:30:10]Write i2c OK [11:30:10]MH_I2C_Read... [11:30:10]Read from MH i2c: 01 [11:30:10]MH_I2C_Read... [11:30:10]Read from MH i2c: 01 07 00 [11:30:10]MH_I2C_Read... [11:30:10]Read from MH i2c: 01 07 00 73 90 00 00 00 00 00 DC 0C F2 [11:30:10]RasterBufferAndPrint [11:30:10]line [11:30:10]line [11:30:10]line [11:30:10]line [11:30:10]line [11:30:10]written 0, free lines is 3298 [11:30:10]MH_Cut [11:30:10]Write to MH i2c: D1 01 00 7A 90 01 DC [11:30:10]Write i2c OK [11:30:10]MH_I2C_Read... [11:30:10]Read from MH i2c: D1 [11:30:10]MH_I2C_Read... [11:30:10]Read from MH i2c: D1 01 00 [11:30:10]MH_I2C_Read... [11:30:10]Read from MH i2c: D1 01 00 7A 90 00 DB [11:30:10]Write to MH i2c: 01 00 00 7B 90 0B [11:30:10]Write i2c OK [11:30:10]MH_I2C_Read... [11:30:11]OFD Sender: No OFD packet to send [11:30:11]*** Cut start [11:30:11]*** Partial cut [11:30:11]*** CUTSNS_PIN = 1 [11:30:11]*** CUTSNS_PIN = 0 [11:30:12]*** Brake cut motor [11:30:12]Read from MH i2c: 01 [11:30:12]MH_I2C_Read... [11:30:12]*** Stop cut motor [11:30:12]*** Cut end [11:30:12]Read from MH i2c: 01 07 00 [11:30:12]MH_I2C_Read... [11:30:12]Read from MH i2c: 01 07 00 7B 90 00 00 00 00 00 FF 0F 20 [11:30:12]process_action close_receipt done [11:30:12]requested_data is exist [11:30:12]produce_requested_data [11:30:12]requested_item fm.sn is exist - process it [11:30:12]wFMCommunicate request_size=4 [11:30:12]MH_SAM_APDU [11:30:12]CAPDU: 80 11 00 00 [11:30:12]Write to MH i2c: E2 08 00 7C 90 80 11 00 00 00 00 00 00 86 [11:30:12]Write i2c OK [11:30:12]MH_I2C_Read... [11:30:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:12]Read from MH i2c: E2 [11:30:12]MH_I2C_Read... [11:30:12]Read from MH i2c: E2 17 00 [11:30:12]MH_I2C_Read... [11:30:12]Read from MH i2c: E2 17 00 7C 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D5 [11:30:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:30:12]wFMCommunicate OK [11:30:12]requested_item fd.num is exist - process it [11:30:12]SAM_PROTO_GetFieldsCounters [11:30:12]wFMCommunicate request_size=4 [11:30:12]MH_SAM_APDU [11:30:12]CAPDU: 80 13 00 00 [11:30:12]Write to MH i2c: E2 08 00 7D 90 80 13 00 00 00 00 00 00 89 [11:30:12]Write i2c OK [11:30:12]MH_I2C_Read... [11:30:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:30:12]Read from MH i2c: E2 [11:30:12]MH_I2C_Read... [11:30:12]Read from MH i2c: E2 62 00 [11:30:12]MH_I2C_Read... [11:30:12]Read from MH i2c: E2 62 00 7D 90 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 10 72 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 07 [11:30:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 10 72 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:30:12]wFMCommunicate OK [11:30:12]SAM_PROTO_GetFieldsCounters done [11:30:12]requested_item shift.num is exist - process it [11:30:12]requested_item shift.opened is exist - process it [11:30:12]req_shift_opened [11:30:12]FM_GetShiftState [11:30:12]SAM_PROTO_GetShiftState [11:30:12]wFMCommunicate request_size=4 [11:30:12]MH_SAM_APDU [11:30:12]CAPDU: 80 13 01 00 [11:30:12]Write to MH i2c: E2 08 00 7E 90 80 13 01 00 00 00 00 00 8B [11:30:12]Write i2c OK [11:30:12]MH_I2C_Read... [11:30:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:12]Read from MH i2c: E2 [11:30:12]MH_I2C_Read... [11:30:12]Read from MH i2c: E2 0E 00 [11:30:12]MH_I2C_Read... [11:30:12]Read from MH i2c: E2 0E 00 7E 90 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 37 [11:30:12]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [11:30:12]wFMCommunicate OK [11:30:12]SAM_PROTO_GetShiftState done [11:30:12]FM_GetShiftState done [11:30:12]req_shift_opened done [11:30:12]requested_item shift.open_date is exist - process it [11:30:12]req_shift_open_date [11:30:12]req_shift_open_date done [11:30:12]produce_requested_data done [11:30:12]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29200,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [11:30:12]process_action_free close_receipt [11:30:12]json_value_free [11:30:12]json_value_free done [11:30:12]process_json_proto returns [11:30:12]Send response to host [11:30:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29200,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [11:30:12]free response buf [11:30:12]execute_script done [11:30:12]execute_script returns [11:30:12]free content buf [11:30:12]Sock 7.Close socket [11:30:12]Sock 7.Thread stoped [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:45]accept exits with 9 [11:31:45]New connection [11:31:45]New thread 3066785124 created [11:31:45]Thread 3066928484 joined [11:31:45]Waiting for new connection... [11:31:45] Sock 9.Parse request [11:31:45]Sock 9.Check first char [11:31:45]Sock 9.First char is OK [11:31:45]request: POST /json_proto HTTP/1.0 [11:31:45]Method: POST [11:31:45]URL: /json_proto [11:31:45]Method is POST - this is cgi request [11:31:45]url: /json_proto [11:31:45]query_string will be loaded in cgi processing [11:31:45]execute_cgi json_proto POST (null) [11:31:45]execute_cgi path=json_proto method=POST [11:31:45]POST find Content-Length [11:31:45]Host: 172.17.33.3:8080 [11:31:45]Content-Length: 675 [11:31:45]Content-Type: application/json [11:31:45] [11:31:45]POST finish read [11:31:45]Found Content-Length = 675 [11:31:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347573", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.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:31:45]execute_script... [11: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)347573", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.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:31:45]POST & json_proto [11:31:45]process_json_proto [11:31:45]json parsed OK: [11:31:45]protocol is kg_v1.0 [11:31:45]action value=close_receipt [11:31:45]process_action close_receipt [11:31:45]cmd_close_receipt [11:31:45]MH_GetDate [11:31:45]Write to MH i2c: F0 00 00 7F 90 FE [11:31:45]Write i2c OK [11:31:45]MH_I2C_Read... [11:31:45]Read from MH i2c: F0 [11:31:45]MH_I2C_Read... [11:31:45]Read from MH i2c: F0 09 00 [11:31:45]MH_I2C_Read... [11:31:45]Read from MH i2c: F0 09 00 7F 90 00 AB BE 1B 66 23 5B 8F 65 63 [11:31:45]GetLastDocTimeStamp 1713094218 [11:31:45]current date 1713094315 [11:31:45]FM_GetShiftState [11:31:45]SAM_PROTO_GetShiftState [11:31:45]wFMCommunicate request_size=4 [11:31:45]MH_SAM_APDU [11:31:45]CAPDU: 80 13 01 00 [11:31:45]Write to MH i2c: E2 08 00 80 90 80 13 01 00 00 00 00 00 8D [11:31:45]Write i2c OK [11:31:45]MH_I2C_Read... [11:31:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:31:45]Read from MH i2c: E2 [11:31:45]MH_I2C_Read... [11:31:45]Read from MH i2c: E2 0E 00 [11:31:45]MH_I2C_Read... [11:31:45]Read from MH i2c: E2 0E 00 80 90 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 39 [11:31:45]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [11:31:45]wFMCommunicate OK [11:31:45]SAM_PROTO_GetShiftState done [11:31:45]FM_GetShiftState done [11:31:45]opened in 1713053951 [11:31:45]opened+sec_in_day 1713140351 [11:31:45]quantity*price = 100039 [11:31:45]sum+1 = 100041 [11:31:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 111 14.04.2024 11:31 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29201 ФПД: 270778240875751 1/tax-web-control/client/api/v1/ticket?date=20240414T113155&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29201&fm=270778240875751&tin=02508201610067®Number=0000138879044617&sum=100000 [11:31:46]StoreToDocumentArchive [11:31:46]shift 116 fd 29201 [11:31:46]save to /storage/0116/doc_00029201 [11:31:46]save last doc name /storage/0116/doc_00029201 to /storage/kkm_last_doc_name [11:31:46]save OK [11:31:46]Clear old archive folders... [11:31:46]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:31:46]tlvbuf is 012161C0 [11:31:46]SAM_PROTO_ClearQueue [11:31:46]wFMCommunicate request_size=4 [11:31:46]MH_SAM_APDU [11:31:46]CAPDU: 80 09 00 00 [11:31:46]Write to MH i2c: E2 08 00 8D 90 80 09 00 00 00 00 00 00 8F [11:31:46]Write i2c OK [11:31:46]MH_I2C_Read... [11:31:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:31:46]Read from MH i2c: E2 [11:31:46]MH_I2C_Read... [11:31:46]Read from MH i2c: E2 03 00 [11:31:46]MH_I2C_Read... [11:31:46]Read from MH i2c: E2 03 00 8D 90 00 90 00 91 [11:31:46]RAPDU: 90 00 [11:31:46]wFMCommunicate OK [11:31:46]SAM_PROTO_ClearQueue done [11:31:46]KKMCreateOFDPacket [11:31:46]OFDProtocolAddRootSTLVToBuf [11:31:46]FM_MakeSignedData [11:31:46]FM_MakeSignedData [11:31:46]SAM_PROTO_SignData [11:31:46]wFMCommunicate request_size=4 [11:31:46]MH_SAM_APDU [11:31:46]CAPDU: 80 0D 01 02 [11:31:46]Write to MH i2c: E2 08 00 8E 90 80 0D 01 02 00 00 00 00 97 [11:31:46]Write i2c OK [11:31:46]MH_I2C_Read... [11:31:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:31:46]Read from MH i2c: E2 [11:31:46]MH_I2C_Read... [11:31:46]Read from MH i2c: E2 03 00 [11:31:46]MH_I2C_Read... [11:31:46]Read from MH i2c: E2 03 00 8E 90 00 90 00 92 [11:31:46]RAPDU: 90 00 [11:31:46]wFMCommunicate OK [11:31:46]wFMCommunicate request_size=255 [11:31:46]MH_SAM_APDU [11: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 2D 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 6F 00 00 00 F4 03 04 00 AB BE 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 11 72 00 00 35 04 06 00 [11:31:46]Write to MH i2c: E2 02 01 8F 90 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 6F 00 00 00 F4 03 04 00 AB BE 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 11 72 00 00 35 04 06 00 00 00 24 [11:31:46]Write i2c OK [11:31:46]MH_I2C_Read... [11:31:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:31:47]Read from MH i2c: E2 [11:31:47]MH_I2C_Read... [11:31:47]Read from MH i2c: E2 03 00 [11:31:47]MH_I2C_Read... [11:31:47]Read from MH i2c: E2 03 00 8F 90 00 90 00 93 [11:31:47]RAPDU: 90 00 [11:31:47]wFMCommunicate OK [11:31:47]wFMCommunicate request_size=11 [11:31:47]MH_SAM_APDU [11:31:47]CAPDU: 80 0D 02 02 06 F6 45 78 DC 3C E7 [11:31:47]Write to MH i2c: E2 0E 00 90 90 80 0D 02 02 06 00 F6 45 78 DC 3C E7 00 00 58 [11:31:47]Write i2c OK [11:31:47]MH_I2C_Read... [11:31:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:31:47]Read from MH i2c: E2 [11:31:47]MH_I2C_Read... [11:31:47]Read from MH i2c: E2 03 00 [11:31:47]MH_I2C_Read... [11:31:47]Read from MH i2c: E2 03 00 90 90 00 90 00 94 [11:31:47]RAPDU: 90 00 [11:31:47]wFMCommunicate OK [11:31:47]wFMCommunicate request_size=4 [11:31:47]MH_SAM_APDU [11:31:47]CAPDU: 80 0D 03 02 [11:31:47]Write to MH i2c: E2 08 00 91 90 80 0D 03 02 00 00 00 00 9C [11:31:47]Write i2c OK [11:31:47]MH_I2C_Read... [11:31:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:31:47]Read from MH i2c: E2 [11:31:47]MH_I2C_Read... [11:31:47]Read from MH i2c: E2 0B 00 [11:31:47]MH_I2C_Read... [11:31:47]Read from MH i2c: E2 0B 00 91 90 00 21 B2 FE EF F3 4E 89 1E 90 00 45 [11:31:47]RAPDU: 21 B2 FE EF F3 4E 89 1E 90 00 [11:31:47]wFMCommunicate OK [11:31:47]SAM_PROTO_SignData done [11:31:47]FM_MakeSignedData done [11:31:47]CreateOFDProtocolMessage [11:31:47]wFMCommunicate request_size=4 [11:31:47]MH_SAM_APDU [11:31:47]CAPDU: 80 11 00 00 [11:31:47]Write to MH i2c: E2 08 00 92 90 80 11 00 00 00 00 00 00 9C [11:31:47]Write i2c OK [11:31:47]MH_I2C_Read... [11:31:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:31:47]Read from MH i2c: E2 [11:31:47]MH_I2C_Read... [11:31:47]Read from MH i2c: E2 17 00 [11:31:47]MH_I2C_Read... [11:31:47]Read from MH i2c: E2 17 00 92 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 EB [11:31:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:31:47]wFMCommunicate OK [11:31:47]CreateOFDProtocolMessage done [11:31:47]OFDSenderStorePacket 29201 [11:31:47]StoreOFDPacket docnum=29201 [11:31:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 5E 1E 08 01 1D A6 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 6F 00 00 00 F4 03 04 00 AB BE 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 11 72 00 00 35 04 06 00 F6 45 78 DC 3C E7 21 B2 FE EF F3 4E 89 1E [11:31:47]CheckFolder [11:31:47]dirname=/storage/ofd_packets [11:31:47]CheckFolder done [11:31:47]ProducePacketName [11:31:47]name=ofd_packets/00029201 [11:31:47]NVStorageSaveData ofd_packets/00029201 [11:31:47]File name is /storage/ofd_packets/00029201 [11:31:47]Write 302 bytes [11:31:47]NVStorageSaveData done [11:31:47]OFDSenderStorePacket done [11:31:47]KKMCreateOFDPacket done [11:31:47]NVStorageSaveData kkm_last_timestamp [11:31:47]File name is /storage/kkm_last_timestamp [11:31:47]Write 4 bytes [11:31:47]NVStorageSaveData done [11:31:47]ExternCall_PrintAddStr [11:31:47]wPrintStart [11:31:47]Write to MH i2c: 01 00 00 93 90 23 [11:31:47]Write i2c OK [11:31:47]MH_I2C_Read... [11:31:47]Read from MH i2c: 01 [11:31:47]MH_I2C_Read... [11:31:47]Read from MH i2c: 01 07 00 [11:31:47]MH_I2C_Read... [11:31:47]Read from MH i2c: 01 07 00 93 90 00 00 00 00 00 FF 0F 38 [11:31:47]RasterBufferAndPrint [11:31:47]line Счет N : (1)347573 [11:31:47]line ИНН: 02508201610067 [11:31:47]line Контрольно-Кассовый Чек [11:31:47]line ПРОДАЖА [11:31:47]line ТРК (МРК, ГНК) : 12 [11:31:47]line Товар: 2710124130 [11:31:47]line SUPER-92-К-5 [11:31:47]line 15.320 * 65.30 [11:31:47]line = 1000.40 [11:31:47]line НДС 12% НСП 1% [11:31:47]line > о реализуемом товаре [11:31:47]line ОКРУГЛЕНИЕ: -0.40 [11:31:47]line ИТОГО: 1000.00 [11:31:47]line Внесено: 1000.00 [11:31:47]line СДАЧА: 0.00 [11:31:47]line НСП 1% : 8.85 [11:31:47]line НДС 12% : 106.24 [11:31:47]line Наличными: 1000.00 [11:31:47]line Безнал.: 0.00 [11:31:47]line Место: АЗС № 108 "Партнер Нефть" [11:31:47]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [11:31:47]line СНО: Общий режим [11:31:47]line Чек 111 14.04.2024 11:31 [11:31:47]line Смена: 116 ФФД: 1.0 [11:31:47]line ЗНМ: 0300000027 [11:31:47]line РНМ: 0000138879044617 [11:31:47]line Версия ККМ: 001 [11:31:47]line ФМ: 0000000000963154 [11:31:47]line ФД: 29201 [11:31:47]line ФПД: 270778240875751 [11:31:47]line 1/tax-web-control/client/api/v1/ticket?date=20240414T113155&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29201&fm=270778240875751&tin=02508201610067®Number=0000138879044617&sum=100000 [11:31:47]OFD Sender: Processing packet 29201 [packets to send 8, broken 7] [11:31:47]ProducePacketName [11:31:47]name=ofd_packets/00029201 [11:31:47]OFD Sender: To server: pG, [11:31:47]CommunicateWithHost lk.salyk.kg:30040 [11:31:47]ConnectInit lk.salyk.kg [11:31:47]written 0, free lines is 4095 [11:31:47]Connected sock=10 [11:31:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 5E 1E 08 01 1D A6 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 6F 00 00 00 F4 03 04 00 AB BE 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 11 72 00 00 35 04 06 00 F6 45 78 DC 3C E7 21 B2 FE EF F3 4E 89 1E [11:31:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 9C 3A 47 00 8A F2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 11 72 00 00 F4 03 04 00 4F 69 1B 66 B6 04 01 00 00 6F 5F CD 09 BE 19 49 5C [11:31:47]CommunicateWithHost err = 0 [11:31:47]CheckOFDResponse [11:31:47]1017 (14) - 77093643461234 [11:31:47]1041 (16) - 0000000000963154 [11:31:47]1040 (4) - 29201 [11:31:47]1012 (4) - 14.04.2024 05:27 [11:31:47]1206 (1) - 0 [11:31:47]OFD Sender: Remove packet 29201 [11:31:47]ProducePacketName [11:31:47]name=ofd_packets/00029201 [11:31:47]NVStorageDeleteData [11:31:47]Write to MH i2c: 01 00 00 BD 90 4D [11:31:47]Write i2c OK [11:31:47]MH_I2C_Read... [11:31:47]Read from MH i2c: 01 [11:31:47]MH_I2C_Read... [11:31:47]Read from MH i2c: 01 07 00 [11:31:47]MH_I2C_Read... [11:31:47]Read from MH i2c: 01 07 00 BD 90 00 00 00 00 00 CB 0C 2B [11:31:47]RasterBufferAndPrint [11:31:47]line [11:31:47]line [11:31:47]line [11:31:47]line [11:31:47]line [11:31:47]written 0, free lines is 3281 [11:31:47]MH_Cut [11:31:47]Write to MH i2c: D1 01 00 C4 90 01 26 [11:31:47]Write i2c OK [11:31:47]MH_I2C_Read... [11:31:47]Read from MH i2c: D1 [11:31:47]MH_I2C_Read... [11:31:47]Read from MH i2c: D1 01 00 [11:31:47]MH_I2C_Read... [11:31:47]Read from MH i2c: D1 01 00 C4 90 00 25 [11:31:47]Write to MH i2c: 01 00 00 C5 90 55 [11:31:47]Write i2c OK [11:31:47]MH_I2C_Read... [11:31:48]OFD Sender: No OFD packet to send [11:31:48]*** Cut start [11:31:48]*** Partial cut [11:31:48]*** CUTSNS_PIN = 1 [11:31:48]*** CUTSNS_PIN = 0 [11:31:49]*** Brake cut motor [11:31:49]Read from MH i2c: 01 [11:31:49]MH_I2C_Read... [11:31:49]*** Stop cut motor [11:31:49]*** Cut end [11:31:49]Read from MH i2c: 01 07 00 [11:31:49]MH_I2C_Read... [11:31:49]Read from MH i2c: 01 07 00 C5 90 00 00 00 00 00 FF 0F 6A [11:31:49]process_action close_receipt done [11:31:49]requested_data is exist [11:31:49]produce_requested_data [11:31:49]requested_item fm.sn is exist - process it [11:31:49]wFMCommunicate request_size=4 [11:31:49]MH_SAM_APDU [11:31:49]CAPDU: 80 11 00 00 [11:31:49]Write to MH i2c: E2 08 00 C6 90 80 11 00 00 00 00 00 00 D0 [11:31:49]Write i2c OK [11:31:49]MH_I2C_Read... [11:31:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:31:49]Read from MH i2c: E2 [11:31:49]MH_I2C_Read... [11:31:49]Read from MH i2c: E2 17 00 [11:31:49]MH_I2C_Read... [11:31:49]Read from MH i2c: E2 17 00 C6 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 1F [11:31:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:31:49]wFMCommunicate OK [11:31:49]requested_item fd.num is exist - process it [11:31:49]SAM_PROTO_GetFieldsCounters [11:31:49]wFMCommunicate request_size=4 [11:31:49]MH_SAM_APDU [11:31:49]CAPDU: 80 13 00 00 [11:31:49]Write to MH i2c: E2 08 00 C7 90 80 13 00 00 00 00 00 00 D3 [11:31:49]Write i2c OK [11:31:49]MH_I2C_Read... [11:31:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:31:49]Read from MH i2c: E2 [11:31:49]MH_I2C_Read... [11:31:49]Read from MH i2c: E2 62 00 [11:31:49]MH_I2C_Read... [11:31:49]Read from MH i2c: E2 62 00 C7 90 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 11 72 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 55 [11:31:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 11 72 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:31:49]wFMCommunicate OK [11:31:49]SAM_PROTO_GetFieldsCounters done [11:31:49]requested_item shift.num is exist - process it [11:31:49]requested_item shift.opened is exist - process it [11:31:49]req_shift_opened [11:31:49]FM_GetShiftState [11:31:49]SAM_PROTO_GetShiftState [11:31:49]wFMCommunicate request_size=4 [11:31:49]MH_SAM_APDU [11:31:49]CAPDU: 80 13 01 00 [11:31:49]Write to MH i2c: E2 08 00 C8 90 80 13 01 00 00 00 00 00 D5 [11:31:49]Write i2c OK [11:31:49]MH_I2C_Read... [11:31:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:31:49]Read from MH i2c: E2 [11:31:49]MH_I2C_Read... [11:31:49]Read from MH i2c: E2 0E 00 [11:31:49]MH_I2C_Read... [11:31:49]Read from MH i2c: E2 0E 00 C8 90 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 81 [11:31:49]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [11:31:49]wFMCommunicate OK [11:31:49]SAM_PROTO_GetShiftState done [11:31:49]FM_GetShiftState done [11:31:49]req_shift_opened done [11:31:49]requested_item shift.open_date is exist - process it [11:31:49]req_shift_open_date [11:31:49]req_shift_open_date done [11:31:49]produce_requested_data done [11:31:49]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29201,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [11:31:49]process_action_free close_receipt [11:31:49]json_value_free [11:31:49]json_value_free done [11:31:49]process_json_proto returns [11:31:49]Send response to host [11:31:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29201,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [11:31:49]free response buf [11:31:49]execute_script done [11:31:49]execute_script returns [11:31:49]free content buf [11:31:49]Sock 9.Close socket [11:31:49]Sock 9.Thread stoped [11:31:53]OFD Sender: No OFD packet to send [11:31:58]OFD Sender: No OFD packet to send [11:32:03]OFD Sender: No OFD packet to send [11:32:08]OFD Sender: No OFD packet to send [11:32:13]OFD Sender: No OFD packet to send [11:32:18]OFD Sender: No OFD packet to send [11:32:23]OFD Sender: No OFD packet to send [11:32:28]OFD Sender: No OFD packet to send [11:32:33]OFD Sender: No OFD packet to send [11:32:38]OFD Sender: No OFD packet to send [11:32:43]OFD Sender: No OFD packet to send [11:32:48]OFD Sender: No OFD packet to send [11:32:53]OFD Sender: No OFD packet to send [11:32:58]OFD Sender: No OFD packet to send [11:33:03]OFD Sender: No OFD packet to send [11:33:08]OFD Sender: No OFD packet to send [11:33:13]OFD Sender: No OFD packet to send [11:33:18]OFD Sender: No OFD packet to send [11:33:23]OFD Sender: No OFD packet to send [11:33:28]OFD Sender: No OFD packet to send [11:33:33]OFD Sender: No OFD packet to send [11:33:38]OFD Sender: No OFD packet to send [11:33:43]OFD Sender: No OFD packet to send [11:33:48]OFD Sender: No OFD packet to send [11:33:53]OFD Sender: No OFD packet to send [11:33:58]OFD Sender: No OFD packet to send [11:34:03]OFD Sender: No OFD packet to send [11:34:08]OFD Sender: No OFD packet to send [11:34:13]OFD Sender: No OFD packet to send [11:34:18]OFD Sender: No OFD packet to send [11:34:23]OFD Sender: No OFD packet to send [11:34:28]OFD Sender: No OFD packet to send [11:34:33]OFD Sender: No OFD packet to send [11:34:38]OFD Sender: No OFD packet to send [11:34:38]accept exits with 7 [11:34:38]New connection [11:34:38]New thread 3066928484 created [11:34:38]Thread 3066785124 joined [11:34:38]Waiting for new connection... [11:34:38] Sock 7.Parse request [11:34:38]Sock 7.Check first char [11:34:38]Sock 7.First char is OK [11:34:38]request: POST /json_proto HTTP/1.0 [11:34:38]Method: POST [11:34:38]URL: /json_proto [11:34:38]Method is POST - this is cgi request [11:34:38]url: /json_proto [11:34:38]query_string will be loaded in cgi processing [11:34:38]execute_cgi json_proto POST (null) [11:34:38]execute_cgi path=json_proto method=POST [11:34:38]POST find Content-Length [11:34:38]Host: 172.17.33.3:8080 [11:34:38]Content-Length: 679 [11:34:38]Content-Type: application/json [11:34:38] [11:34:38]POST finish read [11:34:38]Found Content-Length = 679 [11:34:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347575", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.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" ] } } [11:34:38]execute_script... [11:34: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)347575", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.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" ] } } [11:34:38]POST & json_proto [11:34:38]process_json_proto [11:34:38]json parsed OK: [11:34:38]protocol is kg_v1.0 [11:34:38]action value=close_receipt [11:34:38]process_action close_receipt [11:34:38]cmd_close_receipt [11:34:38]MH_GetDate [11:34:38]Write to MH i2c: F0 00 00 C9 90 48 [11:34:38]Write i2c OK [11:34:38]MH_I2C_Read... [11:34:38]Read from MH i2c: F0 [11:34:38]MH_I2C_Read... [11:34:38]Read from MH i2c: F0 09 00 [11:34:38]MH_I2C_Read... [11:34:38]Read from MH i2c: F0 09 00 C9 90 00 58 BF 1B 66 23 5B 8F 65 5B [11:34:38]GetLastDocTimeStamp 1713094315 [11:34:38]current date 1713094488 [11:34:38]FM_GetShiftState [11:34:38]SAM_PROTO_GetShiftState [11:34:38]wFMCommunicate request_size=4 [11:34:38]MH_SAM_APDU [11:34:38]CAPDU: 80 13 01 00 [11:34:38]Write to MH i2c: E2 08 00 CA 90 80 13 01 00 00 00 00 00 D7 [11:34:38]Write i2c OK [11:34:38]MH_I2C_Read... [11:34:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:34:38]Read from MH i2c: E2 [11:34:38]MH_I2C_Read... [11:34:38]Read from MH i2c: E2 0E 00 [11:34:38]MH_I2C_Read... [11:34:38]Read from MH i2c: E2 0E 00 CA 90 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 83 [11:34:38]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [11:34:38]wFMCommunicate OK [11:34:38]SAM_PROTO_GetShiftState done [11:34:38]FM_GetShiftState done [11:34:38]opened in 1713053951 [11:34:38]opened+sec_in_day 1713140351 [11:34:38]quantity*price = 100056 [11:34:38]sum+1 = 100058 [11:34:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 112 14.04.2024 11:34 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29202 ФПД: 161904301864481 1/tax-web-control/client/api/v1/ticket?date=20240414T113448&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29202&fm=161904301864481&tin=02508201610067®Number=0000138879044617&sum=100000 [11:34:39]StoreToDocumentArchive [11:34:39]shift 116 fd 29202 [11:34:39]save to /storage/0116/doc_00029202 [11:34:39]save last doc name /storage/0116/doc_00029202 to /storage/kkm_last_doc_name [11:34:39]save OK [11:34:39]Clear old archive folders... [11:34:39]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:34:39]tlvbuf is 011EAF70 [11:34:39]SAM_PROTO_ClearQueue [11:34:39]wFMCommunicate request_size=4 [11:34:39]MH_SAM_APDU [11:34:39]CAPDU: 80 09 00 00 [11:34:39]Write to MH i2c: E2 08 00 D7 90 80 09 00 00 00 00 00 00 D9 [11:34:39]Write i2c OK [11:34:39]MH_I2C_Read... [11:34:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:34:39]Read from MH i2c: E2 [11:34:39]MH_I2C_Read... [11:34:39]Read from MH i2c: E2 03 00 [11:34:39]MH_I2C_Read... [11:34:39]Read from MH i2c: E2 03 00 D7 90 00 90 00 DB [11:34:39]RAPDU: 90 00 [11:34:39]wFMCommunicate OK [11:34:39]SAM_PROTO_ClearQueue done [11:34:39]KKMCreateOFDPacket [11:34:39]OFDProtocolAddRootSTLVToBuf [11:34:39]FM_MakeSignedData [11:34:39]FM_MakeSignedData [11:34:39]SAM_PROTO_SignData [11:34:39]wFMCommunicate request_size=4 [11:34:39]MH_SAM_APDU [11:34:39]CAPDU: 80 0D 01 02 [11:34:39]Write to MH i2c: E2 08 00 D8 90 80 0D 01 02 00 00 00 00 E1 [11:34:39]Write i2c OK [11:34:39]MH_I2C_Read... [11:34:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:34:39]Read from MH i2c: E2 [11:34:39]MH_I2C_Read... [11:34:39]Read from MH i2c: E2 03 00 [11:34:39]MH_I2C_Read... [11:34:39]Read from MH i2c: E2 03 00 D8 90 00 90 00 DC [11:34:39]RAPDU: 90 00 [11:34:39]wFMCommunicate OK [11:34:39]wFMCommunicate request_size=255 [11:34:39]MH_SAM_APDU [11:34:39]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 70 00 00 00 F4 03 04 00 58 BF 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 12 72 00 00 35 04 06 00 93 40 48 66 [11:34:39]Write to MH i2c: E2 02 01 D9 90 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 70 00 00 00 F4 03 04 00 58 BF 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 12 72 00 00 35 04 06 00 93 40 48 66 00 00 41 [11:34:39]Write i2c OK [11:34:39]MH_I2C_Read... [11:34:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:34:40]Read from MH i2c: E2 [11:34:40]MH_I2C_Read... [11:34:40]Read from MH i2c: E2 03 00 [11:34:40]MH_I2C_Read... [11:34:40]Read from MH i2c: E2 03 00 D9 90 00 90 00 DD [11:34:40]RAPDU: 90 00 [11:34:40]wFMCommunicate OK [11:34:40]wFMCommunicate request_size=7 [11:34:40]MH_SAM_APDU [11:34:40]CAPDU: 80 0D 02 02 02 76 21 [11:34:40]Write to MH i2c: E2 0A 00 DA 90 80 0D 02 02 02 00 76 21 00 00 7F [11:34:40]Write i2c OK [11:34:40]MH_I2C_Read... [11:34:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:34:40]Read from MH i2c: E2 [11:34:40]MH_I2C_Read... [11:34:40]Read from MH i2c: E2 03 00 [11:34:40]MH_I2C_Read... [11:34:40]Read from MH i2c: E2 03 00 DA 90 00 90 00 DE [11:34:40]RAPDU: 90 00 [11:34:40]wFMCommunicate OK [11:34:40]wFMCommunicate request_size=4 [11:34:40]MH_SAM_APDU [11:34:40]CAPDU: 80 0D 03 02 [11:34:40]Write to MH i2c: E2 08 00 DB 90 80 0D 03 02 00 00 00 00 E6 [11:34:40]Write i2c OK [11:34:40]MH_I2C_Read... [11:34:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:34:40]Read from MH i2c: E2 [11:34:40]MH_I2C_Read... [11:34:40]Read from MH i2c: E2 0B 00 [11:34:40]MH_I2C_Read... [11:34:40]Read from MH i2c: E2 0B 00 DB 90 00 8C E2 E2 0C 45 D6 73 3B 90 00 0C [11:34:40]RAPDU: 8C E2 E2 0C 45 D6 73 3B 90 00 [11:34:40]wFMCommunicate OK [11:34:40]SAM_PROTO_SignData done [11:34:40]FM_MakeSignedData done [11:34:40]CreateOFDProtocolMessage [11:34:40]wFMCommunicate request_size=4 [11:34:40]MH_SAM_APDU [11:34:40]CAPDU: 80 11 00 00 [11:34:40]Write to MH i2c: E2 08 00 DC 90 80 11 00 00 00 00 00 00 E6 [11:34:40]Write i2c OK [11:34:40]MH_I2C_Read... [11:34:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:34:40]Read from MH i2c: E2 [11:34:40]MH_I2C_Read... [11:34:40]Read from MH i2c: E2 17 00 [11:34:40]MH_I2C_Read... [11:34:40]Read from MH i2c: E2 17 00 DC 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 35 [11:34:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:34:40]wFMCommunicate OK [11:34:40]CreateOFDProtocolMessage done [11:34:40]OFDSenderStorePacket 29202 [11:34:40]StoreOFDPacket docnum=29202 [11:34:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 D3 5D 04 01 76 0D 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 70 00 00 00 F4 03 04 00 58 BF 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 12 72 00 00 35 04 06 00 93 40 48 66 76 21 8C E2 E2 0C 45 D6 73 3B [11:34:40]CheckFolder [11:34:40]dirname=/storage/ofd_packets [11:34:40]CheckFolder done [11:34:40]ProducePacketName [11:34:40]name=ofd_packets/00029202 [11:34:40]NVStorageSaveData ofd_packets/00029202 [11:34:40]File name is /storage/ofd_packets/00029202 [11:34:40]Write 298 bytes [11:34:40]NVStorageSaveData done [11:34:40]OFDSenderStorePacket done [11:34:40]KKMCreateOFDPacket done [11:34:40]NVStorageSaveData kkm_last_timestamp [11:34:40]File name is /storage/kkm_last_timestamp [11:34:40]Write 4 bytes [11:34:40]NVStorageSaveData done [11:34:40]ExternCall_PrintAddStr [11:34:40]wPrintStart [11:34:40]Write to MH i2c: 01 00 00 DD 90 6D [11:34:40]Write i2c OK [11:34:40]MH_I2C_Read... [11:34:40]Read from MH i2c: 01 [11:34:40]MH_I2C_Read... [11:34:40]Read from MH i2c: 01 07 00 [11:34:40]MH_I2C_Read... [11:34:40]Read from MH i2c: 01 07 00 DD 90 00 00 00 00 00 FF 0F 82 [11:34:40]RasterBufferAndPrint [11:34:40]line Счет N : (1)347575 [11:34:40]line ИНН: 02508201610067 [11:34:40]line Контрольно-Кассовый Чек [11:34:40]line ПРОДАЖА [11:34:40]line ТРК (МРК, ГНК) : 21 [11:34:40]line Товар: 2710194210 [11:34:40]line ДТ-К-5 [11:34:40]line 13.820 * 72.40 [11:34:40]line = 1000.57 [11:34:40]line НДС 12% НСП 1% [11:34:40]line > о реализуемом товаре [11:34:40]line ОКРУГЛЕНИЕ: -0.57 [11:34:40]line ИТОГО: 1000.00 [11:34:40]line Внесено: 1000.00 [11:34:40]line СДАЧА: 0.00 [11:34:40]line НСП 1% : 8.85 [11:34:40]line НДС 12% : 106.25 [11:34:40]line Наличными: 1000.00 [11:34:40]line Безнал.: 0.00 [11:34:40]line Место: АЗС № 108 "Партнер Нефть" [11:34:40]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [11:34:40]line СНО: Общий режим [11:34:40]line Чек 112 14.04.2024 11:34 [11:34:40]line Смена: 116 ФФД: 1.0 [11:34:40]line ЗНМ: 0300000027 [11:34:40]line РНМ: 0000138879044617 [11:34:40]line Версия ККМ: 001 [11:34:40]line ФМ: 0000000000963154 [11:34:40]line ФД: 29202 [11:34:40]line ФПД: 161904301864481 [11:34:40]line 1/tax-web-control/client/api/v1/ticket?date=20240414T113448&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29202&fm=161904301864481&tin=02508201610067®Number=0000138879044617&sum=100000 [11:34:40]OFD Sender: Processing packet 29202 [packets to send 8, broken 7] [11:34:40]ProducePacketName [11:34:40]name=ofd_packets/00029202 [11:34:40]OFD Sender: To server: pG, [11:34:40]CommunicateWithHost lk.salyk.kg:30040 [11:34:40]ConnectInit lk.salyk.kg [11:34:40]written 0, free lines is 4095 [11:34:40]Connected sock=10 [11:34:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 D3 5D 04 01 76 0D 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 70 00 00 00 F4 03 04 00 58 BF 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 12 72 00 00 35 04 06 00 93 40 48 66 76 21 8C E2 E2 0C 45 D6 73 3B [11:34:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 7D 4B 47 00 D2 A7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 12 72 00 00 F4 03 04 00 FC 69 1B 66 B6 04 01 00 00 B9 20 3A 98 A4 35 44 43 [11:34:40]CommunicateWithHost err = 0 [11:34:40]CheckOFDResponse [11:34:40]1017 (14) - 77093643461234 [11:34:40]1041 (16) - 0000000000963154 [11:34:40]1040 (4) - 29202 [11:34:40]1012 (4) - 14.04.2024 05:30 [11:34:40]1206 (1) - 0 [11:34:40]OFD Sender: Remove packet 29202 [11:34:40]ProducePacketName [11:34:40]name=ofd_packets/00029202 [11:34:40]NVStorageDeleteData [11:34:41]Write to MH i2c: 01 00 00 07 91 98 [11:34:41]Write i2c OK [11:34:41]MH_I2C_Read... [11:34:41]Read from MH i2c: 01 [11:34:41]MH_I2C_Read... [11:34:41]Read from MH i2c: 01 07 00 [11:34:41]MH_I2C_Read... [11:34:41]Read from MH i2c: 01 07 00 07 91 00 00 00 00 00 C9 0C 74 [11:34:41]RasterBufferAndPrint [11:34:41]line [11:34:41]line [11:34:41]line [11:34:41]line [11:34:41]line [11:34:41]written 0, free lines is 3279 [11:34:41]MH_Cut [11:34:41]Write to MH i2c: D1 01 00 0E 91 01 71 [11:34:41]Write i2c OK [11:34:41]MH_I2C_Read... [11:34:41]Read from MH i2c: D1 [11:34:41]MH_I2C_Read... [11:34:41]Read from MH i2c: D1 01 00 [11:34:41]MH_I2C_Read... [11:34:41]Read from MH i2c: D1 01 00 0E 91 00 70 [11:34:41]Write to MH i2c: 01 00 00 0F 91 A0 [11:34:41]Write i2c OK [11:34:41]MH_I2C_Read... [11:34:41]OFD Sender: No OFD packet to send [11:34:41]*** Cut start [11:34:41]*** Partial cut [11:34:41]*** CUTSNS_PIN = 1 [11:34:41]*** CUTSNS_PIN = 0 [11:34:42]*** Brake cut motor [11:34:42]Read from MH i2c: 01 [11:34:42]MH_I2C_Read... [11:34:42]*** Stop cut motor [11:34:42]*** Cut end [11:34:42]Read from MH i2c: 01 07 00 [11:34:42]MH_I2C_Read... [11:34:42]Read from MH i2c: 01 07 00 0F 91 00 00 00 00 00 FF 0F B5 [11:34:42]process_action close_receipt done [11:34:42]requested_data is exist [11:34:42]produce_requested_data [11:34:42]requested_item fm.sn is exist - process it [11:34:42]wFMCommunicate request_size=4 [11:34:42]MH_SAM_APDU [11:34:42]CAPDU: 80 11 00 00 [11:34:42]Write to MH i2c: E2 08 00 10 91 80 11 00 00 00 00 00 00 1B [11:34:42]Write i2c OK [11:34:42]MH_I2C_Read... [11:34:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:34:42]Read from MH i2c: E2 [11:34:42]MH_I2C_Read... [11:34:42]Read from MH i2c: E2 17 00 [11:34:42]MH_I2C_Read... [11:34:42]Read from MH i2c: E2 17 00 10 91 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 6A [11:34:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:34:42]wFMCommunicate OK [11:34:42]requested_item fd.num is exist - process it [11:34:42]SAM_PROTO_GetFieldsCounters [11:34:42]wFMCommunicate request_size=4 [11:34:42]MH_SAM_APDU [11:34:42]CAPDU: 80 13 00 00 [11:34:42]Write to MH i2c: E2 08 00 11 91 80 13 00 00 00 00 00 00 1E [11:34:42]Write i2c OK [11:34:42]MH_I2C_Read... [11:34:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:34:42]Read from MH i2c: E2 [11:34:42]MH_I2C_Read... [11:34:42]Read from MH i2c: E2 62 00 [11:34:42]MH_I2C_Read... [11:34:42]Read from MH i2c: E2 62 00 11 91 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 12 72 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 A4 [11:34:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 12 72 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:34:42]wFMCommunicate OK [11:34:42]SAM_PROTO_GetFieldsCounters done [11:34:42]requested_item shift.num is exist - process it [11:34:42]requested_item shift.opened is exist - process it [11:34:42]req_shift_opened [11:34:42]FM_GetShiftState [11:34:42]SAM_PROTO_GetShiftState [11:34:42]wFMCommunicate request_size=4 [11:34:42]MH_SAM_APDU [11:34:42]CAPDU: 80 13 01 00 [11:34:42]Write to MH i2c: E2 08 00 12 91 80 13 01 00 00 00 00 00 20 [11:34:42]Write i2c OK [11:34:42]MH_I2C_Read... [11:34:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:34:42]Read from MH i2c: E2 [11:34:42]MH_I2C_Read... [11:34:42]Read from MH i2c: E2 0E 00 [11:34:42]MH_I2C_Read... [11:34:42]Read from MH i2c: E2 0E 00 12 91 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 CC [11:34:42]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [11:34:42]wFMCommunicate OK [11:34:42]SAM_PROTO_GetShiftState done [11:34:42]FM_GetShiftState done [11:34:42]req_shift_opened done [11:34:42]requested_item shift.open_date is exist - process it [11:34:42]req_shift_open_date [11:34:42]req_shift_open_date done [11:34:42]produce_requested_data done [11:34:42]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29202,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [11:34:42]process_action_free close_receipt [11:34:42]json_value_free [11:34:42]json_value_free done [11:34:42]process_json_proto returns [11:34:42]Send response to host [11:34:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29202,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [11:34:42]free response buf [11:34:42]execute_script done [11:34:42]execute_script returns [11:34:42]free content buf [11:34:42]Sock 7.Close socket [11:34:42]Sock 7.Thread stoped [11:34:46]OFD Sender: No OFD packet to send [11:34:51]OFD Sender: No OFD packet to send [11:34:56]OFD Sender: No OFD packet to send [11:35:01]OFD Sender: No OFD packet to send [11:35:06]OFD Sender: No OFD packet to send [11:35:11]OFD Sender: No OFD packet to send [11:35:16]OFD Sender: No OFD packet to send [11:35:21]OFD Sender: No OFD packet to send [11:35:25]accept exits with 9 [11:35:25]New connection [11:35:25]New thread 3066785124 created [11:35:25]Thread 3066928484 joined [11:35:25]Waiting for new connection... [11:35:25] Sock 9.Parse request [11:35:25]Sock 9.Check first char [11:35:25]Sock 9.First char is OK [11:35:25]request: POST /json_proto HTTP/1.0 [11:35:25]Method: POST [11:35:25]URL: /json_proto [11:35:25]Method is POST - this is cgi request [11:35:25]url: /json_proto [11:35:25]query_string will be loaded in cgi processing [11:35:25]execute_cgi json_proto POST (null) [11:35:25]execute_cgi path=json_proto method=POST [11:35:25]POST find Content-Length [11:35:25]Host: 172.17.33.3:8080 [11:35:25]Content-Length: 1202 [11:35:25]Content-Type: application/json [11:35:25] [11:35:25]POST finish read [11:35:25]Found Content-Length = 1202 [11:35:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043B\u0438\u043A\u0431\u0430\u0435\u0432\u0430. \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)347574\u000A14.04.2024 11:17\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 23.330 x 64.30\u000A\u0418\u0422\u041E\u0413: 1500.12\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\u000A68809\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:35:25]execute_script... [11:35:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043B\u0438\u043A\u0431\u0430\u0435\u0432\u0430. \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)347574\u000A14.04.2024 11:17\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 23.330 x 64.30\u000A\u0418\u0422\u041E\u0413: 1500.12\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\u000A68809\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:35:25]POST & json_proto [11:35:25]process_json_proto [11:35:25]json parsed OK: [11:35:25]protocol is kg_v1.0 [11:35:25]action value=print_text [11:35:25]process_action print_text [11:35:25]cmd_print_text [11:35:25]ExternCall_PrintAddStr [11:35:25]wPrintStart [11:35:25]Write to MH i2c: 01 00 00 13 91 A4 [11:35:25]Write i2c OK [11:35:25]MH_I2C_Read... [11:35:25]Read from MH i2c: 01 [11:35:25]MH_I2C_Read... [11:35:25]Read from MH i2c: 01 07 00 [11:35:25]MH_I2C_Read... [11:35:25]Read from MH i2c: 01 07 00 13 91 00 00 00 00 00 FF 0F B9 [11:35:25]RasterBufferAndPrint [11:35:25]line *****ТОВАРНЫЙ ЧЕК***** [11:35:25]line АЗС 108 [11:35:25]line Партнер нефть [11:35:25]line 02508201610067 [11:35:25]line Кассир : Аликбаева. Д. [11:35:25]line Счет N : (1)347574 [11:35:25]line 14.04.2024 11:17 [11:35:25]line ПРОДАЖА [11:35:25]line ТРК (МРК, ГНК): 32 [11:35:25]line Вид ГСМ : 2710124130 [11:35:25]line Аи-92-К-5 [11:35:25]line 23.330 x 64.30 [11:35:25]line ИТОГ: 1500.12 [11:35:25]line Тип оплаты: Талоны: Топливная Карта [11:35:25]line 68809 [11:35:25]line ______________________ [11:35:25]line (подпись) [11:35:25]written 0, free lines is 4095 [11:35:25]Write to MH i2c: 01 00 00 27 91 B8 [11:35:25]Write i2c OK [11:35:25]MH_I2C_Read... [11:35:25]Read from MH i2c: 01 [11:35:25]MH_I2C_Read... [11:35:25]Read from MH i2c: 01 07 00 [11:35:25]MH_I2C_Read... [11:35:25]Read from MH i2c: 01 07 00 27 91 00 00 00 00 00 11 0E DE [11:35:25]RasterBufferAndPrint [11:35:25]line [11:35:25]line [11:35:25]line [11:35:25]line [11:35:25]line [11:35:25]written 0, free lines is 3603 [11:35:25]MH_Cut [11:35:25]Write to MH i2c: D1 01 00 2E 91 01 91 [11:35:25]Write i2c OK [11:35:25]MH_I2C_Read... [11:35:25]Read from MH i2c: D1 [11:35:25]MH_I2C_Read... [11:35:25]Read from MH i2c: D1 01 00 [11:35:25]MH_I2C_Read... [11:35:25]Read from MH i2c: D1 01 00 2E 91 00 90 [11:35:25]Write to MH i2c: 01 00 00 2F 91 C0 [11:35:25]Write i2c OK [11:35:25]MH_I2C_Read... [11:35:26]*** Cut start [11:35:26]*** Partial cut [11:35:26]*** CUTSNS_PIN = 1 [11:35:26]OFD Sender: No OFD packet to send [11:35:26]*** CUTSNS_PIN = 0 [11:35:26]*** Brake cut motor [11:35:27]Read from MH i2c: 01 [11:35:27]MH_I2C_Read... [11:35:27]Read from MH i2c: 01 07 00 [11:35:27]MH_I2C_Read... [11:35:27]*** Stop cut motor [11:35:27]*** Cut end [11:35:27]Read from MH i2c: 01 07 00 2F 91 00 00 00 00 00 FF 0F D5 [11:35:27]process_action print_text done [11:35:27]requested_data is exist [11:35:27]produce_requested_data [11:35:27]requested_item fm.sn is exist - process it [11:35:27]wFMCommunicate request_size=4 [11:35:27]MH_SAM_APDU [11:35:27]CAPDU: 80 11 00 00 [11:35:27]Write to MH i2c: E2 08 00 30 91 80 11 00 00 00 00 00 00 3B [11:35:27]Write i2c OK [11:35:27]MH_I2C_Read... [11:35:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:27]Read from MH i2c: E2 [11:35:27]MH_I2C_Read... [11:35:27]Read from MH i2c: E2 17 00 [11:35:27]MH_I2C_Read... [11:35:27]Read from MH i2c: E2 17 00 30 91 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 8A [11:35:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:35:27]wFMCommunicate OK [11:35:27]requested_item fd.num is exist - process it [11:35:27]SAM_PROTO_GetFieldsCounters [11:35:27]wFMCommunicate request_size=4 [11:35:27]MH_SAM_APDU [11:35:27]CAPDU: 80 13 00 00 [11:35:27]Write to MH i2c: E2 08 00 31 91 80 13 00 00 00 00 00 00 3E [11:35:27]Write i2c OK [11:35:27]MH_I2C_Read... [11:35:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:35:27]Read from MH i2c: E2 [11:35:27]MH_I2C_Read... [11:35:27]Read from MH i2c: E2 62 00 [11:35:27]MH_I2C_Read... [11:35:27]Read from MH i2c: E2 62 00 31 91 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 12 72 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 C4 [11:35:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 12 72 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:35:27]wFMCommunicate OK [11:35:27]SAM_PROTO_GetFieldsCounters done [11:35:27]requested_item shift.num is exist - process it [11:35:27]requested_item shift.opened is exist - process it [11:35:27]req_shift_opened [11:35:27]FM_GetShiftState [11:35:27]SAM_PROTO_GetShiftState [11:35:27]wFMCommunicate request_size=4 [11:35:27]MH_SAM_APDU [11:35:27]CAPDU: 80 13 01 00 [11:35:27]Write to MH i2c: E2 08 00 32 91 80 13 01 00 00 00 00 00 40 [11:35:27]Write i2c OK [11:35:27]MH_I2C_Read... [11:35:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:27]Read from MH i2c: E2 [11:35:27]MH_I2C_Read... [11:35:27]Read from MH i2c: E2 0E 00 [11:35:27]MH_I2C_Read... [11:35:27]Read from MH i2c: E2 0E 00 32 91 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 EC [11:35:27]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [11:35:27]wFMCommunicate OK [11:35:27]SAM_PROTO_GetShiftState done [11:35:27]FM_GetShiftState done [11:35:27]req_shift_opened done [11:35:27]requested_item shift.open_date is exist - process it [11:35:27]req_shift_open_date [11:35:27]req_shift_open_date done [11:35:27]produce_requested_data done [11:35:27]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29202,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [11:35:27]process_action_free print_text [11:35:27]json_value_free [11:35:27]json_value_free done [11:35:27]process_json_proto returns [11:35:27]Send response to host [11:35:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29202,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [11:35:27]free response buf [11:35:27]execute_script done [11:35:27]execute_script returns [11:35:27]free content buf [11:35:27]Sock 9.Close socket [11:35:27]Sock 9.Thread stoped [11:35:31]OFD Sender: No OFD packet to send [11:35:36]OFD Sender: No OFD packet to send [11:35:41]OFD Sender: No OFD packet to send [11:35:46]OFD Sender: No OFD packet to send [11:35:51]OFD Sender: No OFD packet to send [11:35:56]OFD Sender: No OFD packet to send [11:36:01]OFD Sender: No OFD packet to send [11:36:06]OFD Sender: No OFD packet to send [11:36:11]OFD Sender: No OFD packet to send [11:36:16]OFD Sender: No OFD packet to send [11:36:21]OFD Sender: No OFD packet to send [11:36:26]OFD Sender: No OFD packet to send [11:36:31]OFD Sender: No OFD packet to send [11:36:36]OFD Sender: No OFD packet to send [11:36:41]OFD Sender: No OFD packet to send [11:36:46]OFD Sender: No OFD packet to send [11:36:51]OFD Sender: No OFD packet to send [11:36:56]OFD Sender: No OFD packet to send [11:37:01]OFD Sender: No OFD packet to send [11:37:06]OFD Sender: No OFD packet to send [11:37:11]OFD Sender: No OFD packet to send [11:37:16]OFD Sender: No OFD packet to send [11:37:21]OFD Sender: No OFD packet to send [11:37:26]OFD Sender: No OFD packet to send [11:37:31]OFD Sender: No OFD packet to send [11:37:36]OFD Sender: No OFD packet to send [11:37:41]OFD Sender: No OFD packet to send [11:37:46]OFD Sender: No OFD packet to send [11:37:51]OFD Sender: No OFD packet to send [11:37:56]OFD Sender: No OFD packet to send [11:38:01]OFD Sender: No OFD packet to send [11:38:06]OFD Sender: No OFD packet to send [11:38:11]OFD Sender: No OFD packet to send [11:38:16]OFD Sender: No OFD packet to send [11:38:21]OFD Sender: No OFD packet to send [11:38:26]OFD Sender: No OFD packet to send [11:38:31]OFD Sender: No OFD packet to send [11:38:36]OFD Sender: No OFD packet to send [11:38:41]OFD Sender: No OFD packet to send [11:38:46]OFD Sender: No OFD packet to send [11:38:51]OFD Sender: No OFD packet to send [11:38:56]OFD Sender: No OFD packet to send [11:39:01]OFD Sender: No OFD packet to send [11:39:06]OFD Sender: No OFD packet to send [11:39:11]OFD Sender: No OFD packet to send [11:39:16]OFD Sender: No OFD packet to send [11:39:19]accept exits with 7 [11:39:19]New connection [11:39:19]New thread 3066928484 created [11:39:19]Thread 3066785124 joined [11:39:19]Waiting for new connection... [11:39:19] Sock 7.Parse request [11:39:19]Sock 7.Check first char [11:39:19]Sock 7.First char is OK [11:39:19]request: POST /json_proto HTTP/1.0 [11:39:19]Method: POST [11:39:19]URL: /json_proto [11:39:19]Method is POST - this is cgi request [11:39:19]url: /json_proto [11:39:19]query_string will be loaded in cgi processing [11:39:19]execute_cgi json_proto POST (null) [11:39:19]execute_cgi path=json_proto method=POST [11:39:19]POST find Content-Length [11:39:19]Host: 172.17.33.3:8080 [11:39:19]Content-Length: 679 [11:39:19]Content-Type: application/json [11:39:19] [11:39:19]POST finish read [11:39:19]Found Content-Length = 679 [11:39:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347576", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.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" ] } } [11:39:19]execute_script... [11: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)347576", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.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" ] } } [11:39:19]POST & json_proto [11:39:19]process_json_proto [11:39:19]json parsed OK: [11:39:19]protocol is kg_v1.0 [11:39:19]action value=close_receipt [11:39:19]process_action close_receipt [11:39:19]cmd_close_receipt [11:39:19]MH_GetDate [11:39:19]Write to MH i2c: F0 00 00 33 91 B3 [11:39:19]Write i2c OK [11:39:19]MH_I2C_Read... [11:39:19]Read from MH i2c: F0 [11:39:19]MH_I2C_Read... [11:39:19]Read from MH i2c: F0 09 00 [11:39:19]MH_I2C_Read... [11:39:19]Read from MH i2c: F0 09 00 33 91 00 71 C0 1B 66 23 5B 8F 65 E0 [11:39:19]GetLastDocTimeStamp 1713094488 [11:39:19]current date 1713094769 [11:39:19]FM_GetShiftState [11:39:19]SAM_PROTO_GetShiftState [11:39:19]wFMCommunicate request_size=4 [11:39:19]MH_SAM_APDU [11:39:19]CAPDU: 80 13 01 00 [11:39:19]Write to MH i2c: E2 08 00 34 91 80 13 01 00 00 00 00 00 42 [11:39:19]Write i2c OK [11:39:19]MH_I2C_Read... [11:39:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:39:19]Read from MH i2c: E2 [11:39:19]MH_I2C_Read... [11:39:19]Read from MH i2c: E2 0E 00 [11:39:19]MH_I2C_Read... [11:39:19]Read from MH i2c: E2 0E 00 34 91 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 EE [11:39:19]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [11:39:19]wFMCommunicate OK [11:39:19]SAM_PROTO_GetShiftState done [11:39:19]FM_GetShiftState done [11:39:19]opened in 1713053951 [11:39:19]opened+sec_in_day 1713140351 [11:39:19]quantity*price = 150012 [11:39:19]sum+1 = 150014 [11:39:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.27 НДС 12% : 159.31 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 113 14.04.2024 11:39 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29203 ФПД: 184287734223954 1/tax-web-control/client/api/v1/ticket?date=20240414T113929&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29203&fm=184287734223954&tin=02508201610067®Number=0000138879044617&sum=150000 [11:39:21]StoreToDocumentArchive [11:39:21]shift 116 fd 29203 [11:39:21]save to /storage/0116/doc_00029203 [11:39:21]save last doc name /storage/0116/doc_00029203 to /storage/kkm_last_doc_name [11:39:21]save OK [11:39:21]Clear old archive folders... [11:39:21]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:39:21]tlvbuf is 011CB270 [11:39:21]SAM_PROTO_ClearQueue [11:39:21]wFMCommunicate request_size=4 [11:39:21]MH_SAM_APDU [11:39:21]CAPDU: 80 09 00 00 [11:39:21]Write to MH i2c: E2 08 00 41 91 80 09 00 00 00 00 00 00 44 [11:39:21]Write i2c OK [11:39:21]MH_I2C_Read... [11:39:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:39:21]Read from MH i2c: E2 [11:39:21]MH_I2C_Read... [11:39:21]Read from MH i2c: E2 03 00 [11:39:21]MH_I2C_Read... [11:39:21]Read from MH i2c: E2 03 00 41 91 00 90 00 46 [11:39:21]RAPDU: 90 00 [11:39:21]wFMCommunicate OK [11:39:21]SAM_PROTO_ClearQueue done [11:39:21]KKMCreateOFDPacket [11:39:21]OFDProtocolAddRootSTLVToBuf [11:39:21]FM_MakeSignedData [11:39:21]FM_MakeSignedData [11:39:21]SAM_PROTO_SignData [11:39:21]wFMCommunicate request_size=4 [11:39:21]MH_SAM_APDU [11:39:21]CAPDU: 80 0D 01 02 [11:39:21]Write to MH i2c: E2 08 00 42 91 80 0D 01 02 00 00 00 00 4C [11:39:21]Write i2c OK [11:39:21]MH_I2C_Read... [11:39:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:39:21]Read from MH i2c: E2 [11:39:21]MH_I2C_Read... [11:39:21]Read from MH i2c: E2 03 00 [11:39:21]MH_I2C_Read... [11:39:21]Read from MH i2c: E2 03 00 42 91 00 90 00 47 [11:39:21]RAPDU: 90 00 [11:39:21]wFMCommunicate OK [11:39:21]wFMCommunicate request_size=255 [11:39:21]MH_SAM_APDU [11:39: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 71 00 00 00 F4 03 04 00 71 C0 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 13 72 00 00 35 04 06 00 A7 9B D4 EF [11:39:21]Write to MH i2c: E2 02 01 43 91 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 71 00 00 00 F4 03 04 00 71 C0 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 13 72 00 00 35 04 06 00 A7 9B D4 EF 00 00 F6 [11:39:21]Write i2c OK [11:39:21]MH_I2C_Read... [11:39:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:39:21]Read from MH i2c: E2 [11:39:21]MH_I2C_Read... [11:39:21]Read from MH i2c: E2 03 00 [11:39:21]MH_I2C_Read... [11:39:21]Read from MH i2c: E2 03 00 43 91 00 90 00 48 [11:39:21]RAPDU: 90 00 [11:39:21]wFMCommunicate OK [11:39:21]wFMCommunicate request_size=7 [11:39:21]MH_SAM_APDU [11:39:21]CAPDU: 80 0D 02 02 02 54 52 [11:39:21]Write to MH i2c: E2 0A 00 44 91 80 0D 02 02 02 00 54 52 00 00 F9 [11:39:21]Write i2c OK [11:39:21]MH_I2C_Read... [11:39:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:39:21]Read from MH i2c: E2 [11:39:21]MH_I2C_Read... [11:39:21]Read from MH i2c: E2 03 00 [11:39:21]MH_I2C_Read... [11:39:21]Read from MH i2c: E2 03 00 44 91 00 90 00 49 [11:39:21]RAPDU: 90 00 [11:39:21]wFMCommunicate OK [11:39:21]wFMCommunicate request_size=4 [11:39:21]MH_SAM_APDU [11:39:21]CAPDU: 80 0D 03 02 [11:39:21]Write to MH i2c: E2 08 00 45 91 80 0D 03 02 00 00 00 00 51 [11:39:21]Write i2c OK [11:39:21]MH_I2C_Read... [11:39:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:39:21]Read from MH i2c: E2 [11:39:21]MH_I2C_Read... [11:39:21]Read from MH i2c: E2 0B 00 [11:39:21]MH_I2C_Read... [11:39:21]Read from MH i2c: E2 0B 00 45 91 00 3F 19 C6 41 78 AF 2A 82 90 00 84 [11:39:21]RAPDU: 3F 19 C6 41 78 AF 2A 82 90 00 [11:39:21]wFMCommunicate OK [11:39:21]SAM_PROTO_SignData done [11:39:21]FM_MakeSignedData done [11:39:21]CreateOFDProtocolMessage [11:39:21]wFMCommunicate request_size=4 [11:39:21]MH_SAM_APDU [11:39:21]CAPDU: 80 11 00 00 [11:39:21]Write to MH i2c: E2 08 00 46 91 80 11 00 00 00 00 00 00 51 [11:39:21]Write i2c OK [11:39:21]MH_I2C_Read... [11:39:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:39:21]Read from MH i2c: E2 [11:39:21]MH_I2C_Read... [11:39:21]Read from MH i2c: E2 17 00 [11:39:21]MH_I2C_Read... [11:39:21]Read from MH i2c: E2 17 00 46 91 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A0 [11:39:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:39:21]wFMCommunicate OK [11:39:21]CreateOFDProtocolMessage done [11:39:21]OFDSenderStorePacket 29203 [11:39:21]StoreOFDPacket docnum=29203 [11:39:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 A3 FC 04 01 AC FB 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 71 00 00 00 F4 03 04 00 71 C0 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 13 72 00 00 35 04 06 00 A7 9B D4 EF 54 52 3F 19 C6 41 78 AF 2A 82 [11:39:21]CheckFolder [11:39:21]dirname=/storage/ofd_packets [11:39:21]CheckFolder done [11:39:21]ProducePacketName [11:39:21]name=ofd_packets/00029203 [11:39:21]NVStorageSaveData ofd_packets/00029203 [11:39:21]File name is /storage/ofd_packets/00029203 [11:39:21]Write 298 bytes [11:39:21]NVStorageSaveData done [11:39:21]OFDSenderStorePacket done [11:39:21]KKMCreateOFDPacket done [11:39:21]NVStorageSaveData kkm_last_timestamp [11:39:21]File name is /storage/kkm_last_timestamp [11:39:21]Write 4 bytes [11:39:21]NVStorageSaveData done [11:39:21]ExternCall_PrintAddStr [11:39:21]wPrintStart [11:39:21]Write to MH i2c: 01 00 00 47 91 D8 [11:39:21]Write i2c OK [11:39:21]MH_I2C_Read... [11:39:21]Read from MH i2c: 01 [11:39:21]MH_I2C_Read... [11:39:21]Read from MH i2c: 01 07 00 [11:39:21]MH_I2C_Read... [11:39:21]Read from MH i2c: 01 07 00 47 91 00 00 00 00 00 FF 0F ED [11:39:21]RasterBufferAndPrint [11:39:21]line Счет N : (1)347576 [11:39:21]line ИНН: 02508201610067 [11:39:21]line Контрольно-Кассовый Чек [11:39:21]line ПРОДАЖА [11:39:21]line ТРК (МРК, ГНК) : 21 [11:39:21]line Товар: 2710194210 [11:39:21]line ДТ-К-5 [11:39:21]line 20.720 * 72.40 [11:39:21]line = 1500.13 [11:39:21]line НДС 12% НСП 1% [11:39:21]line > о реализуемом товаре [11:39:21]line ОКРУГЛЕНИЕ: -0.13 [11:39:21]line ИТОГО: 1500.00 [11:39:21]line Внесено: 1500.00 [11:39:21]line СДАЧА: 0.00 [11:39:21]line НСП 1% : 13.27 [11:39:21]line НДС 12% : 159.31 [11:39:21]line Наличными: 1500.00 [11:39:21]line Безнал.: 0.00 [11:39:21]line Место: АЗС № 108 "Партнер Нефть" [11:39:21]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [11:39:21]line СНО: Общий режим [11:39:21]line Чек 113 14.04.2024 11:39 [11:39:21]line Смена: 116 ФФД: 1.0 [11:39:21]line ЗНМ: 0300000027 [11:39:21]line РНМ: 0000138879044617 [11:39:21]line Версия ККМ: 001 [11:39:21]line ФМ: 0000000000963154 [11:39:21]line ФД: 29203 [11:39:21]line ФПД: 184287734223954 [11:39:21]line 1/tax-web-control/client/api/v1/ticket?date=20240414T113929&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29203&fm=184287734223954&tin=02508201610067®Number=0000138879044617&sum=150000 [11:39:21]OFD Sender: Processing packet 29203 [packets to send 8, broken 7] [11:39:21]ProducePacketName [11:39:21]name=ofd_packets/00029203 [11:39:21]OFD Sender: To server: pG, [11:39:21]CommunicateWithHost lk.salyk.kg:30040 [11:39:21]ConnectInit lk.salyk.kg [11:39:21]written 0, free lines is 4095 [11:39:21]Connected sock=10 [11:39:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 A3 FC 04 01 AC FB 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 71 00 00 00 F4 03 04 00 71 C0 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 13 72 00 00 35 04 06 00 A7 9B D4 EF 54 52 3F 19 C6 41 78 AF 2A 82 [11:39:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 25 2A 47 00 E2 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 39 36 33 31 35 34 10 04 04 00 13 72 00 00 F4 03 04 00 15 6B 1B 66 B6 04 01 00 00 EE 35 B3 AC 22 DF 8F A9 [11:39:22]CommunicateWithHost err = 0 [11:39:22]CheckOFDResponse [11:39:22]1017 (14) - 77093643461234 [11:39:22]1041 (16) - 0000000000963154 [11:39:22]1040 (4) - 29203 [11:39:22]1012 (4) - 14.04.2024 05:35 [11:39:22]1206 (1) - 0 [11:39:22]OFD Sender: Remove packet 29203 [11:39:22]ProducePacketName [11:39:22]name=ofd_packets/00029203 [11:39:22]NVStorageDeleteData [11:39:22]Write to MH i2c: 01 00 00 71 91 02 [11:39:22]Write i2c OK [11:39:22]MH_I2C_Read... [11:39:22]Read from MH i2c: 01 [11:39:22]MH_I2C_Read... [11:39:22]Read from MH i2c: 01 07 00 [11:39:22]MH_I2C_Read... [11:39:22]Read from MH i2c: 01 07 00 71 91 00 00 00 00 00 C0 0C D5 [11:39:22]RasterBufferAndPrint [11:39:22]line [11:39:22]line [11:39:22]line [11:39:22]line [11:39:22]line [11:39:22]written 0, free lines is 3268 [11:39:22]MH_Cut [11:39:22]Write to MH i2c: D1 01 00 78 91 01 DB [11:39:22]Write i2c OK [11:39:22]MH_I2C_Read... [11:39:22]Read from MH i2c: D1 [11:39:22]MH_I2C_Read... [11:39:22]Read from MH i2c: D1 01 00 [11:39:22]MH_I2C_Read... [11:39:22]Read from MH i2c: D1 01 00 78 91 00 DA [11:39:22]Write to MH i2c: 01 00 00 79 91 0A [11:39:22]Write i2c OK [11:39:22]MH_I2C_Read... [11:39:22]OFD Sender: No OFD packet to send [11:39:23]*** Cut start [11:39:23]*** Partial cut [11:39:23]*** CUTSNS_PIN = 1 [11:39:23]*** CUTSNS_PIN = 0 [11:39:23]*** Brake cut motor [11:39:23]Read from MH i2c: 01 [11:39:23]MH_I2C_Read... [11:39:23]*** Stop cut motor [11:39:23]*** Cut end [11:39:23]Read from MH i2c: 01 07 00 [11:39:23]MH_I2C_Read... [11:39:23]Read from MH i2c: 01 07 00 79 91 00 00 00 00 00 FF 0F 1F [11:39:23]process_action close_receipt done [11:39:23]requested_data is exist [11:39:23]produce_requested_data [11:39:23]requested_item fm.sn is exist - process it [11:39:23]wFMCommunicate request_size=4 [11:39:23]MH_SAM_APDU [11:39:23]CAPDU: 80 11 00 00 [11:39:23]Write to MH i2c: E2 08 00 7A 91 80 11 00 00 00 00 00 00 85 [11:39:23]Write i2c OK [11:39:23]MH_I2C_Read... [11:39:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:39:23]Read from MH i2c: E2 [11:39:23]MH_I2C_Read... [11:39:23]Read from MH i2c: E2 17 00 [11:39:23]MH_I2C_Read... [11:39:23]Read from MH i2c: E2 17 00 7A 91 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D4 [11:39:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:39:23]wFMCommunicate OK [11:39:23]requested_item fd.num is exist - process it [11:39:23]SAM_PROTO_GetFieldsCounters [11:39:23]wFMCommunicate request_size=4 [11:39:23]MH_SAM_APDU [11:39:23]CAPDU: 80 13 00 00 [11:39:23]Write to MH i2c: E2 08 00 7B 91 80 13 00 00 00 00 00 00 88 [11:39:23]Write i2c OK [11:39:23]MH_I2C_Read... [11:39:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:39:23]Read from MH i2c: E2 [11:39:23]MH_I2C_Read... [11:39:23]Read from MH i2c: E2 62 00 [11:39:23]MH_I2C_Read... [11:39:23]Read from MH i2c: E2 62 00 7B 91 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 13 72 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 12 [11:39:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 13 72 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:39:23]wFMCommunicate OK [11:39:23]SAM_PROTO_GetFieldsCounters done [11:39:23]requested_item shift.num is exist - process it [11:39:23]requested_item shift.opened is exist - process it [11:39:23]req_shift_opened [11:39:23]FM_GetShiftState [11:39:23]SAM_PROTO_GetShiftState [11:39:23]wFMCommunicate request_size=4 [11:39:23]MH_SAM_APDU [11:39:23]CAPDU: 80 13 01 00 [11:39:23]Write to MH i2c: E2 08 00 7C 91 80 13 01 00 00 00 00 00 8A [11:39:23]Write i2c OK [11:39:23]MH_I2C_Read... [11:39:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:39:24]Read from MH i2c: E2 [11:39:24]MH_I2C_Read... [11:39:24]Read from MH i2c: E2 0E 00 [11:39:24]MH_I2C_Read... [11:39:24]Read from MH i2c: E2 0E 00 7C 91 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 36 [11:39:24]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [11:39:24]wFMCommunicate OK [11:39:24]SAM_PROTO_GetShiftState done [11:39:24]FM_GetShiftState done [11:39:24]req_shift_opened done [11:39:24]requested_item shift.open_date is exist - process it [11:39:24]req_shift_open_date [11:39:24]req_shift_open_date done [11:39:24]produce_requested_data done [11:39:24]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29203,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [11:39:24]process_action_free close_receipt [11:39:24]json_value_free [11:39:24]json_value_free done [11:39:24]process_json_proto returns [11:39:24]Send response to host [11:39:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29203,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [11:39:24]free response buf [11:39:24]execute_script done [11:39:24]execute_script returns [11:39:24]free content buf [11:39:24]Sock 7.Close socket [11:39:24]Sock 7.Thread stoped [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:17]OFD Sender: No OFD packet to send [11:40:22]OFD Sender: No OFD packet to send [11:40:27]OFD Sender: No OFD packet to send [11:40:32]OFD Sender: No OFD packet to send [11:40:37]OFD Sender: No OFD packet to send [11:40:42]OFD Sender: No OFD packet to send [11:40:47]OFD Sender: No OFD packet to send [11:40:52]OFD Sender: No OFD packet to send [11:40:57]OFD Sender: No OFD packet to send [11:41:02]OFD Sender: No OFD packet to send [11:41:07]OFD Sender: No OFD packet to send [11:41:12]OFD Sender: No OFD packet to send [11:41:17]OFD Sender: No OFD packet to send [11:41:22]OFD Sender: No OFD packet to send [11:41:27]OFD Sender: No OFD packet to send [11:41:32]OFD Sender: No OFD packet to send [11:41:37]OFD Sender: No OFD packet to send [11:41:42]OFD Sender: No OFD packet to send [11:41:47]OFD Sender: No OFD packet to send [11:41:52]OFD Sender: No OFD packet to send [11:41:57]OFD Sender: No OFD packet to send [11:42:02]OFD Sender: No OFD packet to send [11:42:07]OFD Sender: No OFD packet to send [11:42:12]OFD Sender: No OFD packet to send [11:42:17]OFD Sender: No OFD packet to send [11:42:22]OFD Sender: No OFD packet to send [11:42:27]OFD Sender: No OFD packet to send [11:42:32]OFD Sender: No OFD packet to send [11:42:37]OFD Sender: No OFD packet to send [11:42:42]OFD Sender: No OFD packet to send [11:42:47]OFD Sender: No OFD packet to send [11:42:52]OFD Sender: No OFD packet to send [11:42:57]OFD Sender: No OFD packet to send [11:43:02]OFD Sender: No OFD packet to send [11:43:07]OFD Sender: No OFD packet to send [11:43:12]OFD Sender: No OFD packet to send [11:43:17]OFD Sender: No OFD packet to send [11:43:22]OFD Sender: No OFD packet to send [11:43:27]OFD Sender: No OFD packet to send [11:43:32]OFD Sender: No OFD packet to send [11:43:37]OFD Sender: No OFD packet to send [11:43:42]OFD Sender: No OFD packet to send [11:43:47]OFD Sender: No OFD packet to send [11:43:52]OFD Sender: No OFD packet to send [11:43:57]OFD Sender: No OFD packet to send [11:44:02]OFD Sender: No OFD packet to send [11:44:07]OFD Sender: No OFD packet to send [11:44:12]OFD Sender: No OFD packet to send [11:44:17]OFD Sender: No OFD packet to send [11:44:22]OFD Sender: No OFD packet to send [11:44:27]OFD Sender: No OFD packet to send [11:44:32]OFD Sender: No OFD packet to send [11:44:37]OFD Sender: No OFD packet to send [11:44:42]OFD Sender: No OFD packet to send [11:44:47]OFD Sender: No OFD packet to send [11:44:52]OFD Sender: No OFD packet to send [11:44:57]OFD Sender: No OFD packet to send [11:45:02]accept exits with 9 [11:45:02]New connection [11:45:02]New thread 3066785124 created [11:45:02]Thread 3066928484 joined [11:45:02]Waiting for new connection... [11:45:02] Sock 9.Parse request [11:45:02]Sock 9.Check first char [11:45:02]Sock 9.First char is OK [11:45:02]request: POST /json_proto HTTP/1.0 [11:45:02]Method: POST [11:45:02]URL: /json_proto [11:45:02]Method is POST - this is cgi request [11:45:02]url: /json_proto [11:45:02]query_string will be loaded in cgi processing [11:45:02]execute_cgi json_proto POST (null) [11:45:02]execute_cgi path=json_proto method=POST [11:45:02]POST find Content-Length [11:45:02]Host: 172.17.33.3:8080 [11:45:02]Content-Length: 678 [11:45:02]Content-Type: application/json [11:45:02] [11:45:02]POST finish read [11:45:02]Found Content-Length = 678 [11:45:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347578", "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.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" ] } } [11:45:02]execute_script... [11:45: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)347578", "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.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" ] } } [11:45:02]POST & json_proto [11:45:02]process_json_proto [11:45:02]json parsed OK: [11:45:02]protocol is kg_v1.0 [11:45:02]action value=close_receipt [11:45:02]process_action close_receipt [11:45:02]cmd_close_receipt [11:45:02]MH_GetDate [11:45:02]Write to MH i2c: F0 00 00 7D 91 FD [11:45:02]Write i2c OK [11:45:02]MH_I2C_Read... [11:45:02]Read from MH i2c: F0 [11:45:02]MH_I2C_Read... [11:45:02]Read from MH i2c: F0 09 00 [11:45:02]MH_I2C_Read... [11:45:02]Read from MH i2c: F0 09 00 7D 91 00 C7 C1 1B 66 23 5B 8F 65 81 [11:45:02]GetLastDocTimeStamp 1713094769 [11:45:02]current date 1713095111 [11:45:02]FM_GetShiftState [11:45:02]SAM_PROTO_GetShiftState [11:45:02]wFMCommunicate request_size=4 [11:45:02]MH_SAM_APDU [11:45:02]CAPDU: 80 13 01 00 [11:45:02]Write to MH i2c: E2 08 00 7E 91 80 13 01 00 00 00 00 00 8C [11:45:02]Write i2c OK [11:45:02]MH_I2C_Read... [11:45:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:45:02]Read from MH i2c: E2 [11:45:02]MH_I2C_Read... [11:45:02]Read from MH i2c: E2 0E 00 [11:45:02]MH_I2C_Read... [11:45:02]Read from MH i2c: E2 0E 00 7E 91 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 38 [11:45:02]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [11:45:02]wFMCommunicate OK [11:45:02]SAM_PROTO_GetShiftState done [11:45:02]FM_GetShiftState done [11:45:02]opened in 1713053951 [11:45:02]opened+sec_in_day 1713140351 [11:45:02]quantity*price = 65007 [11:45:02]sum+1 = 65008 [11:45:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.75 НДС 12% : 69.03 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 114 14.04.2024 11:45 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29204 ФПД: 37515956002428 1/tax-web-control/client/api/v1/ticket?date=20240414T114512&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29204&fm=37515956002428&tin=02508201610067®Number=0000138879044617&sum=65000 [11:45:03]StoreToDocumentArchive [11:45:03]shift 116 fd 29204 [11:45:03]save to /storage/0116/doc_00029204 [11:45:03]save last doc name /storage/0116/doc_00029204 to /storage/kkm_last_doc_name [11:45:03]save OK [11:45:03]Clear old archive folders... [11:45:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:45:03]tlvbuf is 013316F0 [11:45:03]SAM_PROTO_ClearQueue [11:45:03]wFMCommunicate request_size=4 [11:45:03]MH_SAM_APDU [11:45:03]CAPDU: 80 09 00 00 [11:45:03]Write to MH i2c: E2 08 00 8B 91 80 09 00 00 00 00 00 00 8E [11:45:03]Write i2c OK [11:45:03]MH_I2C_Read... [11:45:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:45:03]Read from MH i2c: E2 [11:45:03]MH_I2C_Read... [11:45:03]Read from MH i2c: E2 03 00 [11:45:03]MH_I2C_Read... [11:45:03]Read from MH i2c: E2 03 00 8B 91 00 90 00 90 [11:45:03]RAPDU: 90 00 [11:45:03]wFMCommunicate OK [11:45:03]SAM_PROTO_ClearQueue done [11:45:03]KKMCreateOFDPacket [11:45:03]OFDProtocolAddRootSTLVToBuf [11:45:03]FM_MakeSignedData [11:45:03]FM_MakeSignedData [11:45:03]SAM_PROTO_SignData [11:45:03]wFMCommunicate request_size=4 [11:45:03]MH_SAM_APDU [11:45:03]CAPDU: 80 0D 01 02 [11:45:03]Write to MH i2c: E2 08 00 8C 91 80 0D 01 02 00 00 00 00 96 [11:45:03]Write i2c OK [11:45:03]MH_I2C_Read... [11:45:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:45:03]Read from MH i2c: E2 [11:45:03]MH_I2C_Read... [11:45:03]Read from MH i2c: E2 03 00 [11:45:03]MH_I2C_Read... [11:45:03]Read from MH i2c: E2 03 00 8C 91 00 90 00 91 [11:45:03]RAPDU: 90 00 [11:45:03]wFMCommunicate OK [11:45:03]wFMCommunicate request_size=255 [11:45:03]MH_SAM_APDU [11:45: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 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 72 00 00 00 F4 03 04 00 C8 C1 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 14 72 00 00 35 04 06 00 22 [11:45:03]Write to MH i2c: E2 02 01 8D 91 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 72 00 00 00 F4 03 04 00 C8 C1 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 14 72 00 00 35 04 06 00 22 00 00 39 [11:45:03]Write i2c OK [11:45:03]MH_I2C_Read... [11:45:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:45:03]Read from MH i2c: E2 [11:45:03]MH_I2C_Read... [11:45:03]Read from MH i2c: E2 03 00 [11:45:03]MH_I2C_Read... [11:45:03]Read from MH i2c: E2 03 00 8D 91 00 90 00 92 [11:45:03]RAPDU: 90 00 [11:45:03]wFMCommunicate OK [11:45:03]wFMCommunicate request_size=10 [11:45:03]MH_SAM_APDU [11:45:03]CAPDU: 80 0D 02 02 05 1E DD 3B 1E 7C [11:45:03]Write to MH i2c: E2 0D 00 8E 91 80 0D 02 02 05 00 1E DD 3B 1E 7C 00 00 73 [11:45:03]Write i2c OK [11:45:03]MH_I2C_Read... [11:45:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:45:03]Read from MH i2c: E2 [11:45:03]MH_I2C_Read... [11:45:03]Read from MH i2c: E2 03 00 [11:45:03]MH_I2C_Read... [11:45:03]Read from MH i2c: E2 03 00 8E 91 00 90 00 93 [11:45:03]RAPDU: 90 00 [11:45:03]wFMCommunicate OK [11:45:03]wFMCommunicate request_size=4 [11:45:03]MH_SAM_APDU [11:45:03]CAPDU: 80 0D 03 02 [11:45:03]Write to MH i2c: E2 08 00 8F 91 80 0D 03 02 00 00 00 00 9B [11:45:03]Write i2c OK [11:45:03]MH_I2C_Read... [11:45:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:45:03]Read from MH i2c: E2 [11:45:03]MH_I2C_Read... [11:45:03]Read from MH i2c: E2 0B 00 [11:45:03]MH_I2C_Read... [11:45:03]Read from MH i2c: E2 0B 00 8F 91 00 95 7F 8B 18 AF 92 52 8E 90 00 74 [11:45:03]RAPDU: 95 7F 8B 18 AF 92 52 8E 90 00 [11:45:03]wFMCommunicate OK [11:45:03]SAM_PROTO_SignData done [11:45:03]FM_MakeSignedData done [11:45:03]CreateOFDProtocolMessage [11:45:03]wFMCommunicate request_size=4 [11:45:03]MH_SAM_APDU [11:45:03]CAPDU: 80 11 00 00 [11:45:03]Write to MH i2c: E2 08 00 90 91 80 11 00 00 00 00 00 00 9B [11:45:03]Write i2c OK [11:45:03]MH_I2C_Read... [11:45:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:45:03]Read from MH i2c: E2 [11:45:03]MH_I2C_Read... [11:45:03]Read from MH i2c: E2 17 00 [11:45:03]MH_I2C_Read... [11:45:03]Read from MH i2c: E2 17 00 90 91 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 EA [11:45:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:45:03]wFMCommunicate OK [11:45:03]CreateOFDProtocolMessage done [11:45:03]OFDSenderStorePacket 29204 [11:45:03]StoreOFDPacket docnum=29204 [11:45:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 3F C9 07 01 37 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 72 00 00 00 F4 03 04 00 C8 C1 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 14 72 00 00 35 04 06 00 22 1E DD 3B 1E 7C 95 7F 8B 18 AF 92 52 8E [11:45:03]CheckFolder [11:45:03]dirname=/storage/ofd_packets [11:45:03]CheckFolder done [11:45:03]ProducePacketName [11:45:03]name=ofd_packets/00029204 [11:45:03]NVStorageSaveData ofd_packets/00029204 [11:45:03]File name is /storage/ofd_packets/00029204 [11:45:03]Write 301 bytes [11:45:03]NVStorageSaveData done [11:45:03]OFDSenderStorePacket done [11:45:03]KKMCreateOFDPacket done [11:45:03]NVStorageSaveData kkm_last_timestamp [11:45:03]File name is /storage/kkm_last_timestamp [11:45:03]Write 4 bytes [11:45:03]NVStorageSaveData done [11:45:03]ExternCall_PrintAddStr [11:45:03]wPrintStart [11:45:03]Write to MH i2c: 01 00 00 91 91 22 [11:45:03]Write i2c OK [11:45:03]MH_I2C_Read... [11:45:03]Read from MH i2c: 01 [11:45:03]MH_I2C_Read... [11:45:03]Read from MH i2c: 01 07 00 [11:45:03]MH_I2C_Read... [11:45:03]Read from MH i2c: 01 07 00 91 91 00 00 00 00 00 FF 0F 37 [11:45:03]RasterBufferAndPrint [11:45:03]line Счет N : (1)347578 [11:45:03]line ИНН: 02508201610067 [11:45:03]line Контрольно-Кассовый Чек [11:45:03]line ПРОДАЖА [11:45:03]line ТРК (МРК, ГНК) : 32 [11:45:03]line Товар: 2710124130 [11:45:03]line Аи-92-К-5 [11:45:03]line 10.110 * 64.30 [11:45:03]line = 650.07 [11:45:03]line НДС 12% НСП 1% [11:45:03]line > о реализуемом товаре [11:45:03]line ОКРУГЛЕНИЕ: -0.07 [11:45:03]line ИТОГО: 650.00 [11:45:03]line Внесено: 650.00 [11:45:03]line СДАЧА: 0.00 [11:45:03]line НСП 1% : 5.75 [11:45:03]line НДС 12% : 69.03 [11:45:03]line Наличными: 650.00 [11:45:03]line Безнал.: 0.00 [11:45:03]line Место: АЗС № 108 "Партнер Нефть" [11:45:03]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [11:45:03]line СНО: Общий режим [11:45:03]line Чек 114 14.04.2024 11:45 [11:45:03]line Смена: 116 ФФД: 1.0 [11:45:03]line ЗНМ: 0300000027 [11:45:03]line РНМ: 0000138879044617 [11:45:03]line Версия ККМ: 001 [11:45:03]line ФМ: 0000000000963154 [11:45:03]line ФД: 29204 [11:45:04]line ФПД: 37515956002428 [11:45:04]line 1/tax-web-control/client/api/v1/ticket?date=20240414T114512&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29204&fm=37515956002428&tin=02508201610067®Number=0000138879044617&sum=65000 [11:45:04]OFD Sender: Processing packet 29204 [packets to send 8, broken 7] [11:45:04]ProducePacketName [11:45:04]name=ofd_packets/00029204 [11:45:04]OFD Sender: To server: pG, [11:45:04]CommunicateWithHost lk.salyk.kg:30040 [11:45:04]ConnectInit lk.salyk.kg [11:45:04]written 0, free lines is 4095 [11:45:04]Connected sock=10 [11:45:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 3F C9 07 01 37 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 72 00 00 00 F4 03 04 00 C8 C1 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 14 72 00 00 35 04 06 00 22 1E DD 3B 1E 7C 95 7F 8B 18 AF 92 52 8E [11:45:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 C1 DC 47 00 EE 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 39 36 33 31 35 34 10 04 04 00 14 72 00 00 F4 03 04 00 6C 6C 1B 66 B6 04 01 00 00 D5 96 7A 24 0A 36 E6 06 [11:45:04]CommunicateWithHost err = 0 [11:45:04]CheckOFDResponse [11:45:04]1017 (14) - 77093643461234 [11:45:04]1041 (16) - 0000000000963154 [11:45:04]1040 (4) - 29204 [11:45:04]1012 (4) - 14.04.2024 05:41 [11:45:04]1206 (1) - 0 [11:45:04]OFD Sender: Remove packet 29204 [11:45:04]ProducePacketName [11:45:04]name=ofd_packets/00029204 [11:45:04]NVStorageDeleteData [11:45:04]Write to MH i2c: 01 00 00 BB 91 4C [11:45:04]Write i2c OK [11:45:04]MH_I2C_Read... [11:45:04]Read from MH i2c: 01 [11:45:04]MH_I2C_Read... [11:45:04]Read from MH i2c: 01 07 00 [11:45:04]MH_I2C_Read... [11:45:04]Read from MH i2c: 01 07 00 BB 91 00 00 00 00 00 C6 0C 25 [11:45:04]RasterBufferAndPrint [11:45:04]line [11:45:04]line [11:45:04]line [11:45:04]line [11:45:04]line [11:45:04]written 0, free lines is 3273 [11:45:04]MH_Cut [11:45:04]Write to MH i2c: D1 01 00 C2 91 01 25 [11:45:04]Write i2c OK [11:45:04]MH_I2C_Read... [11:45:04]Read from MH i2c: D1 [11:45:04]MH_I2C_Read... [11:45:04]Read from MH i2c: D1 01 00 [11:45:04]MH_I2C_Read... [11:45:04]Read from MH i2c: D1 01 00 C2 91 00 24 [11:45:04]Write to MH i2c: 01 00 00 C3 91 54 [11:45:04]Write i2c OK [11:45:04]MH_I2C_Read... [11:45:04]OFD Sender: No OFD packet to send [11:45:05]*** Cut start [11:45:05]*** Partial cut [11:45:05]*** CUTSNS_PIN = 1 [11:45:05]*** CUTSNS_PIN = 0 [11:45:05]*** Brake cut motor [11:45:05]Read from MH i2c: 01 [11:45:05]MH_I2C_Read... [11:45:06]*** Stop cut motor [11:45:06]*** Cut end [11:45:06]Read from MH i2c: 01 07 00 [11:45:06]MH_I2C_Read... [11:45:06]Read from MH i2c: 01 07 00 C3 91 00 00 00 00 00 FF 0F 69 [11:45:06]process_action close_receipt done [11:45:06]requested_data is exist [11:45:06]produce_requested_data [11:45:06]requested_item fm.sn is exist - process it [11:45:06]wFMCommunicate request_size=4 [11:45:06]MH_SAM_APDU [11:45:06]CAPDU: 80 11 00 00 [11:45:06]Write to MH i2c: E2 08 00 C4 91 80 11 00 00 00 00 00 00 CF [11:45:06]Write i2c OK [11:45:06]MH_I2C_Read... [11:45:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:45:06]Read from MH i2c: E2 [11:45:06]MH_I2C_Read... [11:45:06]Read from MH i2c: E2 17 00 [11:45:06]MH_I2C_Read... [11:45:06]Read from MH i2c: E2 17 00 C4 91 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 1E [11:45:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:45:06]wFMCommunicate OK [11:45:06]requested_item fd.num is exist - process it [11:45:06]SAM_PROTO_GetFieldsCounters [11:45:06]wFMCommunicate request_size=4 [11:45:06]MH_SAM_APDU [11:45:06]CAPDU: 80 13 00 00 [11:45:06]Write to MH i2c: E2 08 00 C5 91 80 13 00 00 00 00 00 00 D2 [11:45:06]Write i2c OK [11:45:06]MH_I2C_Read... [11:45:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:45:06]Read from MH i2c: E2 [11:45:06]MH_I2C_Read... [11:45:06]Read from MH i2c: E2 62 00 [11:45:06]MH_I2C_Read... [11:45:06]Read from MH i2c: E2 62 00 C5 91 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 14 72 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 60 [11:45:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 14 72 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:45:06]wFMCommunicate OK [11:45:06]SAM_PROTO_GetFieldsCounters done [11:45:06]requested_item shift.num is exist - process it [11:45:06]requested_item shift.opened is exist - process it [11:45:06]req_shift_opened [11:45:06]FM_GetShiftState [11:45:06]SAM_PROTO_GetShiftState [11:45:06]wFMCommunicate request_size=4 [11:45:06]MH_SAM_APDU [11:45:06]CAPDU: 80 13 01 00 [11:45:06]Write to MH i2c: E2 08 00 C6 91 80 13 01 00 00 00 00 00 D4 [11:45:06]Write i2c OK [11:45:06]MH_I2C_Read... [11:45:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:45:06]Read from MH i2c: E2 [11:45:06]MH_I2C_Read... [11:45:06]Read from MH i2c: E2 0E 00 [11:45:06]MH_I2C_Read... [11:45:06]Read from MH i2c: E2 0E 00 C6 91 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 80 [11:45:06]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [11:45:06]wFMCommunicate OK [11:45:06]SAM_PROTO_GetShiftState done [11:45:06]FM_GetShiftState done [11:45:06]req_shift_opened done [11:45:06]requested_item shift.open_date is exist - process it [11:45:06]req_shift_open_date [11:45:06]req_shift_open_date done [11:45:06]produce_requested_data done [11:45:06]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29204,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [11:45:06]process_action_free close_receipt [11:45:06]json_value_free [11:45:06]json_value_free done [11:45:06]process_json_proto returns [11:45:06]Send response to host [11:45:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29204,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [11:45:06]free response buf [11:45:06]execute_script done [11:45:06]execute_script returns [11:45:06]free content buf [11:45:06]Sock 9.Close socket [11:45:06]Sock 9.Thread stoped [11:45:09]OFD Sender: No OFD packet to send [11:45:14]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:45]OFD Sender: No OFD packet to send [11:46:50]OFD Sender: No OFD packet to send [11:46:55]OFD Sender: No OFD packet to send [11:47:00]OFD Sender: No OFD packet to send [11:47:04]accept exits with 7 [11:47:04]New connection [11:47:04]New thread 3066928484 created [11:47:04]Thread 3066785124 joined [11:47:04]Waiting for new connection... [11:47:04] Sock 7.Parse request [11:47:04]Sock 7.Check first char [11:47:04]Sock 7.First char is OK [11:47:04]request: POST /json_proto HTTP/1.0 [11:47:04]Method: POST [11:47:04]URL: /json_proto [11:47:04]Method is POST - this is cgi request [11:47:04]url: /json_proto [11:47:04]query_string will be loaded in cgi processing [11:47:04]execute_cgi json_proto POST (null) [11:47:04]execute_cgi path=json_proto method=POST [11:47:04]POST find Content-Length [11:47:04]Host: 172.17.33.3:8080 [11:47:04]Content-Length: 788 [11:47:04]Content-Type: application/json [11:47:04] [11:47:04]POST finish read [11:47:04]Found Content-Length = 788 [11:47:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347577", "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" : 11.050, "sum" : 800.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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 800.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:47:04]execute_script... [11:47: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)347577", "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" : 11.050, "sum" : 800.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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 800.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:47:04]POST & json_proto [11:47:04]process_json_proto [11:47:04]json parsed OK: [11:47:04]protocol is kg_v1.0 [11:47:04]action value=close_receipt [11:47:04]process_action close_receipt [11:47:04]cmd_close_receipt [11:47:04]MH_GetDate [11:47:04]Write to MH i2c: F0 00 00 C7 91 47 [11:47:04]Write i2c OK [11:47:04]MH_I2C_Read... [11:47:04]Read from MH i2c: F0 [11:47:04]MH_I2C_Read... [11:47:04]Read from MH i2c: F0 09 00 [11:47:04]MH_I2C_Read... [11:47:04]Read from MH i2c: F0 09 00 C7 91 00 42 C2 1B 66 23 5B 8F 65 47 [11:47:04]GetLastDocTimeStamp 1713095112 [11:47:04]current date 1713095234 [11:47:04]FM_GetShiftState [11:47:04]SAM_PROTO_GetShiftState [11:47:04]wFMCommunicate request_size=4 [11:47:04]MH_SAM_APDU [11:47:04]CAPDU: 80 13 01 00 [11:47:04]Write to MH i2c: E2 08 00 C8 91 80 13 01 00 00 00 00 00 D6 [11:47:04]Write i2c OK [11:47:04]MH_I2C_Read... [11:47:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:47:04]Read from MH i2c: E2 [11:47:04]MH_I2C_Read... [11:47:04]Read from MH i2c: E2 0E 00 [11:47:04]MH_I2C_Read... [11:47:04]Read from MH i2c: E2 0E 00 C8 91 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 82 [11:47:04]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [11:47:04]wFMCommunicate OK [11:47:04]SAM_PROTO_GetShiftState done [11:47:04]FM_GetShiftState done [11:47:04]opened in 1713053951 [11:47:04]opened+sec_in_day 1713140351 [11:47:04]quantity*price = 80002 [11:47:04]sum+1 = 80003 [11:47:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 800.02 НСП 1% : 7.08 НДС 12% : 84.96 Наличными: 0.00 Безнал.: 800.02 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 115 14.04.2024 11:47 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000963154 ФД: 29205 ФПД: 105525602937394 1/tax-web-control/client/api/v1/ticket?date=20240414T114714&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29205&fm=105525602937394&tin=02508201610067®Number=0000138879044617&sum=80002 [11:47:05]StoreToDocumentArchive [11:47:05]shift 116 fd 29205 [11:47:05]save to /storage/0116/doc_00029205 [11:47:05]save last doc name /storage/0116/doc_00029205 to /storage/kkm_last_doc_name [11:47:05]save OK [11:47:05]Clear old archive folders... [11:47:05]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:47:05]tlvbuf is 011D47C0 [11:47:05]SAM_PROTO_ClearQueue [11:47:05]wFMCommunicate request_size=4 [11:47:05]MH_SAM_APDU [11:47:05]CAPDU: 80 09 00 00 [11:47:05]Write to MH i2c: E2 08 00 D5 91 80 09 00 00 00 00 00 00 D8 [11:47:05]Write i2c OK [11:47:05]MH_I2C_Read... [11:47:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:47:05]Read from MH i2c: E2 [11:47:05]MH_I2C_Read... [11:47:05]Read from MH i2c: E2 03 00 [11:47:05]MH_I2C_Read... [11:47:05]Read from MH i2c: E2 03 00 D5 91 00 90 00 DA [11:47:05]RAPDU: 90 00 [11:47:05]wFMCommunicate OK [11:47:05]SAM_PROTO_ClearQueue done [11:47:05]KKMCreateOFDPacket [11:47:05]OFDProtocolAddRootSTLVToBuf [11:47:05]FM_MakeSignedData [11:47:05]FM_MakeSignedData [11:47:05]SAM_PROTO_SignData [11:47:05]wFMCommunicate request_size=4 [11:47:05]MH_SAM_APDU [11:47:05]CAPDU: 80 0D 01 02 [11:47:05]Write to MH i2c: E2 08 00 D6 91 80 0D 01 02 00 00 00 00 E0 [11:47:05]Write i2c OK [11:47:05]MH_I2C_Read... [11:47:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:47:06]Read from MH i2c: E2 [11:47:06]MH_I2C_Read... [11:47:06]Read from MH i2c: E2 03 00 [11:47:06]MH_I2C_Read... [11:47:06]Read from MH i2c: E2 03 00 D6 91 00 90 00 DB [11:47:06]RAPDU: 90 00 [11:47:06]wFMCommunicate OK [11:47:06]wFMCommunicate request_size=255 [11:47:06]MH_SAM_APDU [11:47: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 2A 2B 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 82 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 82 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 30 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 82 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 42 C2 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 15 72 00 00 35 04 06 00 5F F9 98 13 [11:47:06]Write to MH i2c: E2 02 01 D7 91 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 2A 2B 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 82 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 82 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 30 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 82 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 42 C2 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 15 72 00 00 35 04 06 00 5F F9 98 13 00 00 51 [11:47:06]Write i2c OK [11:47:06]MH_I2C_Read... [11:47:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:47:06]Read from MH i2c: E2 [11:47:06]MH_I2C_Read... [11:47:06]Read from MH i2c: E2 03 00 [11:47:06]MH_I2C_Read... [11:47:06]Read from MH i2c: E2 03 00 D7 91 00 90 00 DC [11:47:06]RAPDU: 90 00 [11:47:06]wFMCommunicate OK [11:47:06]wFMCommunicate request_size=7 [11:47:06]MH_SAM_APDU [11:47:06]CAPDU: 80 0D 02 02 02 EA 32 [11:47:06]Write to MH i2c: E2 0A 00 D8 91 80 0D 02 02 02 00 EA 32 00 00 03 [11:47:06]Write i2c OK [11:47:06]MH_I2C_Read... [11:47:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:47:06]Read from MH i2c: E2 [11:47:06]MH_I2C_Read... [11:47:06]Read from MH i2c: E2 03 00 [11:47:06]MH_I2C_Read... [11:47:06]Read from MH i2c: E2 03 00 D8 91 00 90 00 DD [11:47:06]RAPDU: 90 00 [11:47:06]wFMCommunicate OK [11:47:06]wFMCommunicate request_size=4 [11:47:06]MH_SAM_APDU [11:47:06]CAPDU: 80 0D 03 02 [11:47:06]Write to MH i2c: E2 08 00 D9 91 80 0D 03 02 00 00 00 00 E5 [11:47:06]Write i2c OK [11:47:06]MH_I2C_Read... [11:47:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:47:06]Read from MH i2c: E2 [11:47:06]MH_I2C_Read... [11:47:06]Read from MH i2c: E2 0B 00 [11:47:06]MH_I2C_Read... [11:47:06]Read from MH i2c: E2 0B 00 D9 91 00 CF 1E E3 84 66 8B C5 57 90 00 47 [11:47:06]RAPDU: CF 1E E3 84 66 8B C5 57 90 00 [11:47:06]wFMCommunicate OK [11:47:06]SAM_PROTO_SignData done [11:47:06]FM_MakeSignedData done [11:47:06]CreateOFDProtocolMessage [11:47:06]wFMCommunicate request_size=4 [11:47:06]MH_SAM_APDU [11:47:06]CAPDU: 80 11 00 00 [11:47:06]Write to MH i2c: E2 08 00 DA 91 80 11 00 00 00 00 00 00 E5 [11:47:06]Write i2c OK [11:47:06]MH_I2C_Read... [11:47:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:47:06]Read from MH i2c: E2 [11:47:06]MH_I2C_Read... [11:47:06]Read from MH i2c: E2 17 00 [11:47:06]MH_I2C_Read... [11:47:06]Read from MH i2c: E2 17 00 DA 91 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 34 [11:47:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:47:06]wFMCommunicate OK [11:47:06]CreateOFDProtocolMessage done [11:47:06]OFDSenderStorePacket 29205 [11:47:06]StoreOFDPacket docnum=29205 [11:47:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 7F F8 04 01 85 4E 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 2A 2B 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 82 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 82 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 30 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 82 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 42 C2 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 15 72 00 00 35 04 06 00 5F F9 98 13 EA 32 CF 1E E3 84 66 8B C5 57 [11:47:06]CheckFolder [11:47:06]dirname=/storage/ofd_packets [11:47:06]CheckFolder done [11:47:06]ProducePacketName [11:47:06]name=ofd_packets/00029205 [11:47:06]NVStorageSaveData ofd_packets/00029205 [11:47:06]File name is /storage/ofd_packets/00029205 [11:47:06]Write 298 bytes [11:47:06]NVStorageSaveData done [11:47:06]OFDSenderStorePacket done [11:47:06]KKMCreateOFDPacket done [11:47:06]NVStorageSaveData kkm_last_timestamp [11:47:06]File name is /storage/kkm_last_timestamp [11:47:06]Write 4 bytes [11:47:06]NVStorageSaveData done [11:47:06]ExternCall_PrintAddStr [11:47:06]wPrintStart [11:47:06]Write to MH i2c: 01 00 00 DB 91 6C [11:47:06]Write i2c OK [11:47:06]MH_I2C_Read... [11:47:06]Read from MH i2c: 01 [11:47:06]MH_I2C_Read... [11:47:06]Read from MH i2c: 01 07 00 [11:47:06]MH_I2C_Read... [11:47:06]Read from MH i2c: 01 07 00 DB 91 00 00 00 00 00 FF 0F 81 [11:47:06]RasterBufferAndPrint [11:47:06]line Счет N : (1)347577 [11:47:06]line ИНН: 02508201610067 [11:47:06]line Контрольно-Кассовый Чек [11:47:06]line ПРОДАЖА [11:47:06]line ТРК (МРК, ГНК) : 61 [11:47:06]line Товар: 2710194210 [11:47:06]line ДТ-К-5 [11:47:06]line 11.050 * 72.40 [11:47:06]line = 800.02 [11:47:06]line НДС 12% НСП 1% [11:47:06]line > о реализуемом товаре [11:47:06]line ИТОГО: 800.02 [11:47:06]line НСП 1% : 7.08 [11:47:06]line НДС 12% : 84.96 [11:47:06]line Наличными: 0.00 [11:47:06]line Безнал.: 800.02 [11:47:06]line Место: АЗС № 108 "Партнер Нефть" [11:47:06]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [11:47:06]line СНО: Общий режим [11:47:06]line Чек 115 14.04.2024 11:47 [11:47:06]line Смена: 116 ФФД: 1.0 [11:47:06]line ЗНМ: 0300000027 [11:47:06]line РНМ: 0000138879044617 [11:47:06]line Версия ККМ: 001 [11:47:06]line Платежная система: KICB Банк [11:47:06]line ФМ: 0000000000963154 [11:47:06]line ФД: 29205 [11:47:06]line ФПД: 105525602937394 [11:47:06]line 1/tax-web-control/client/api/v1/ticket?date=20240414T114714&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29205&fm=105525602937394&tin=02508201610067®Number=0000138879044617&sum=80002 [11:47:06]OFD Sender: Processing packet 29205 [packets to send 8, broken 7] [11:47:06]ProducePacketName [11:47:06]name=ofd_packets/00029205 [11:47:06]OFD Sender: To server: pG, [11:47:06]CommunicateWithHost lk.salyk.kg:30040 [11:47:06]ConnectInit lk.salyk.kg [11:47:06]written 0, free lines is 4095 [11:47:06]Connected sock=10 [11:47:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 7F F8 04 01 85 4E 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 2A 2B 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 82 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 82 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 30 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 82 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 42 C2 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 15 72 00 00 35 04 06 00 5F F9 98 13 EA 32 CF 1E E3 84 66 8B C5 57 [11:47:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 B7 F5 47 00 A3 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 15 72 00 00 F4 03 04 00 E6 6C 1B 66 B6 04 01 00 00 67 F8 08 1A F0 56 11 A1 [11:47:07]CommunicateWithHost err = 0 [11:47:07]CheckOFDResponse [11:47:07]1017 (14) - 77093643461234 [11:47:07]1041 (16) - 0000000000963154 [11:47:07]1040 (4) - 29205 [11:47:07]1012 (4) - 14.04.2024 05:43 [11:47:07]1206 (1) - 0 [11:47:07]OFD Sender: Remove packet 29205 [11:47:07]ProducePacketName [11:47:07]name=ofd_packets/00029205 [11:47:07]NVStorageDeleteData [11:47:07]Write to MH i2c: 01 00 00 04 92 96 [11:47:07]Write i2c OK [11:47:07]MH_I2C_Read... [11:47:07]Read from MH i2c: 01 [11:47:07]MH_I2C_Read... [11:47:07]Read from MH i2c: 01 07 00 [11:47:07]MH_I2C_Read... [11:47:07]Read from MH i2c: 01 07 00 04 92 00 00 00 00 00 D1 0C 7A [11:47:07]RasterBufferAndPrint [11:47:07]line [11:47:07]line [11:47:07]line [11:47:07]line [11:47:07]line [11:47:07]written 0, free lines is 3288 [11:47:07]MH_Cut [11:47:07]Write to MH i2c: D1 01 00 0B 92 01 6F [11:47:07]Write i2c OK [11:47:07]MH_I2C_Read... [11:47:07]Read from MH i2c: D1 [11:47:07]MH_I2C_Read... [11:47:07]Read from MH i2c: D1 01 00 [11:47:07]MH_I2C_Read... [11:47:07]Read from MH i2c: D1 01 00 0B 92 00 6E [11:47:07]Write to MH i2c: 01 00 00 0C 92 9E [11:47:07]Write i2c OK [11:47:07]MH_I2C_Read... [11:47:07]OFD Sender: No OFD packet to send [11:47:07]*** Cut start [11:47:07]*** Partial cut [11:47:07]*** CUTSNS_PIN = 1 [11:47:08]*** CUTSNS_PIN = 0 [11:47:08]*** Brake cut motor [11:47:08]Read from MH i2c: 01 [11:47:08]MH_I2C_Read... [11:47:08]*** Stop cut motor [11:47:08]*** Cut end [11:47:08]Read from MH i2c: 01 07 00 [11:47:08]MH_I2C_Read... [11:47:08]Read from MH i2c: 01 07 00 0C 92 00 00 00 00 00 FF 0F B3 [11:47:08]process_action close_receipt done [11:47:08]requested_data is exist [11:47:08]produce_requested_data [11:47:08]requested_item fm.sn is exist - process it [11:47:08]wFMCommunicate request_size=4 [11:47:08]MH_SAM_APDU [11:47:08]CAPDU: 80 11 00 00 [11:47:08]Write to MH i2c: E2 08 00 0D 92 80 11 00 00 00 00 00 00 19 [11:47:08]Write i2c OK [11:47:08]MH_I2C_Read... [11:47:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:47:08]Read from MH i2c: E2 [11:47:08]MH_I2C_Read... [11:47:08]Read from MH i2c: E2 17 00 [11:47:08]MH_I2C_Read... [11:47:08]Read from MH i2c: E2 17 00 0D 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 68 [11:47:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:47:08]wFMCommunicate OK [11:47:08]requested_item fd.num is exist - process it [11:47:08]SAM_PROTO_GetFieldsCounters [11:47:08]wFMCommunicate request_size=4 [11:47:08]MH_SAM_APDU [11:47:08]CAPDU: 80 13 00 00 [11:47:08]Write to MH i2c: E2 08 00 0E 92 80 13 00 00 00 00 00 00 1C [11:47:08]Write i2c OK [11:47:08]MH_I2C_Read... [11:47:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:47:08]Read from MH i2c: E2 [11:47:08]MH_I2C_Read... [11:47:08]Read from MH i2c: E2 62 00 [11:47:08]MH_I2C_Read... [11:47:08]Read from MH i2c: E2 62 00 0E 92 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 15 72 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 AE [11:47:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 15 72 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:47:08]wFMCommunicate OK [11:47:08]SAM_PROTO_GetFieldsCounters done [11:47:08]requested_item shift.num is exist - process it [11:47:08]requested_item shift.opened is exist - process it [11:47:08]req_shift_opened [11:47:08]FM_GetShiftState [11:47:08]SAM_PROTO_GetShiftState [11:47:08]wFMCommunicate request_size=4 [11:47:08]MH_SAM_APDU [11:47:08]CAPDU: 80 13 01 00 [11:47:08]Write to MH i2c: E2 08 00 0F 92 80 13 01 00 00 00 00 00 1E [11:47:08]Write i2c OK [11:47:08]MH_I2C_Read... [11:47:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:47:08]Read from MH i2c: E2 [11:47:08]MH_I2C_Read... [11:47:08]Read from MH i2c: E2 0E 00 [11:47:08]MH_I2C_Read... [11:47:08]Read from MH i2c: E2 0E 00 0F 92 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 CA [11:47:08]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [11:47:08]wFMCommunicate OK [11:47:08]SAM_PROTO_GetShiftState done [11:47:08]FM_GetShiftState done [11:47:08]req_shift_opened done [11:47:08]requested_item shift.open_date is exist - process it [11:47:08]req_shift_open_date [11:47:08]req_shift_open_date done [11:47:08]produce_requested_data done [11:47:08]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29205,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [11:47:08]process_action_free close_receipt [11:47:08]json_value_free [11:47:08]json_value_free done [11:47:08]process_json_proto returns [11:47:08]Send response to host [11:47:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29205,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [11:47:08]free response buf [11:47:08]execute_script done [11:47:08]execute_script returns [11:47:08]free content buf [11:47:08]Sock 7.Close socket [11:47:08]Sock 7.Thread stoped [11:47:12]OFD Sender: No OFD packet to send [11:47:17]OFD Sender: No OFD packet to send [11:47:22]OFD Sender: No OFD packet to send [11:47:27]OFD Sender: No OFD packet to send [11:47:32]OFD Sender: No OFD packet to send [11:47:37]OFD Sender: No OFD packet to send [11:47:42]OFD Sender: No OFD packet to send [11:47:47]OFD Sender: No OFD packet to send [11:47:52]OFD Sender: No OFD packet to send [11:47:57]OFD Sender: No OFD packet to send [11:48:02]OFD Sender: No OFD packet to send [11:48:07]OFD Sender: No OFD packet to send [11:48:12]OFD Sender: No OFD packet to send [11:48:17]OFD Sender: No OFD packet to send [11:48:22]OFD Sender: No OFD packet to send [11:48:26]accept exits with 9 [11:48:26]New connection [11:48:26]New thread 3066785124 created [11:48:26]Thread 3066928484 joined [11:48:26]Waiting for new connection... [11:48:26] Sock 9.Parse request [11:48:26]Sock 9.Check first char [11:48:26]Sock 9.First char is OK [11:48:26]request: POST /json_proto HTTP/1.0 [11:48:26]Method: POST [11:48:26]URL: /json_proto [11:48:26]Method is POST - this is cgi request [11:48:26]url: /json_proto [11:48:26]query_string will be loaded in cgi processing [11:48:26]execute_cgi json_proto POST (null) [11:48:26]execute_cgi path=json_proto method=POST [11:48:26]POST find Content-Length [11:48:26]Host: 172.17.33.3:8080 [11:48:26]Content-Length: 837 [11:48:26]Content-Type: application/json [11:48:26] [11:48:26]POST finish read [11:48:26]Found Content-Length = 837 [11:48:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347581", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:26]execute_script... [11:48: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)347581", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:26]POST & json_proto [11:48:26]process_json_proto [11:48:26]json parsed OK: [11:48:26]protocol is kg_v1.0 [11:48:26]action value=close_receipt [11:48:26]process_action close_receipt [11:48:26]cmd_close_receipt [11:48:26]MH_GetDate [11:48:26]Write to MH i2c: F0 00 00 10 92 91 [11:48:26]Write i2c OK [11:48:26]MH_I2C_Read... [11:48:26]Read from MH i2c: F0 [11:48:26]MH_I2C_Read... [11:48:26]Read from MH i2c: F0 09 00 [11:48:26]MH_I2C_Read... [11:48:26]Read from MH i2c: F0 09 00 10 92 00 94 C2 1B 66 23 5B 8F 65 E3 [11:48:26]GetLastDocTimeStamp 1713095234 [11:48:26]current date 1713095316 [11:48:26]FM_GetShiftState [11:48:26]SAM_PROTO_GetShiftState [11:48:26]wFMCommunicate request_size=4 [11:48:26]MH_SAM_APDU [11:48:26]CAPDU: 80 13 01 00 [11:48:26]Write to MH i2c: E2 08 00 11 92 80 13 01 00 00 00 00 00 20 [11:48:26]Write i2c OK [11:48:26]MH_I2C_Read... [11:48:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:26]Read from MH i2c: E2 [11:48:26]MH_I2C_Read... [11:48:26]Read from MH i2c: E2 0E 00 [11:48:26]MH_I2C_Read... [11:48:26]Read from MH i2c: E2 0E 00 11 92 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 CC [11:48:26]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [11:48:26]wFMCommunicate OK [11:48:26]SAM_PROTO_GetShiftState done [11:48:26]FM_GetShiftState done [11:48:26]opened in 1713053951 [11:48:26]opened+sec_in_day 1713140351 [11:48:26]quantity*price = 50028 [11:48:26]sum+1 = 50029 [11:48:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.28 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 0.00 Безнал.: 500.28 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 116 14.04.2024 11:48 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 29206 ФПД: 43195638353132 1/tax-web-control/client/api/v1/ticket?date=20240414T114836&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29206&fm=43195638353132&tin=02508201610067®Number=0000138879044617&sum=50028 [11:48:28]StoreToDocumentArchive [11:48:28]shift 116 fd 29206 [11:48:28]save to /storage/0116/doc_00029206 [11:48:28]save last doc name /storage/0116/doc_00029206 to /storage/kkm_last_doc_name [11:48:28]save OK [11:48:28]Clear old archive folders... [11:48:28]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:48:28]tlvbuf is 011E37C0 [11:48:28]SAM_PROTO_ClearQueue [11:48:28]wFMCommunicate request_size=4 [11:48:28]MH_SAM_APDU [11:48:28]CAPDU: 80 09 00 00 [11:48:28]Write to MH i2c: E2 08 00 1E 92 80 09 00 00 00 00 00 00 22 [11:48:28]Write i2c OK [11:48:28]MH_I2C_Read... [11:48:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:48:28]Read from MH i2c: E2 [11:48:28]MH_I2C_Read... [11:48:28]Read from MH i2c: E2 03 00 [11:48:28]MH_I2C_Read... [11:48:28]Read from MH i2c: E2 03 00 1E 92 00 90 00 24 [11:48:28]RAPDU: 90 00 [11:48:28]wFMCommunicate OK [11:48:28]SAM_PROTO_ClearQueue done [11:48:28]KKMCreateOFDPacket [11:48:28]OFDProtocolAddRootSTLVToBuf [11:48:28]FM_MakeSignedData [11:48:28]FM_MakeSignedData [11:48:28]SAM_PROTO_SignData [11:48:28]wFMCommunicate request_size=4 [11:48:28]MH_SAM_APDU [11:48:28]CAPDU: 80 0D 01 02 [11:48:28]Write to MH i2c: E2 08 00 1F 92 80 0D 01 02 00 00 00 00 2A [11:48:28]Write i2c OK [11:48:28]MH_I2C_Read... [11:48:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:48:28]Read from MH i2c: E2 [11:48:28]MH_I2C_Read... [11:48:28]Read from MH i2c: E2 03 00 [11:48:28]MH_I2C_Read... [11:48:28]Read from MH i2c: E2 03 00 1F 92 00 90 00 25 [11:48:28]RAPDU: 90 00 [11:48:28]wFMCommunicate OK [11:48:28]wFMCommunicate request_size=255 [11:48:28]MH_SAM_APDU [11:48: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 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 74 00 00 00 F4 03 04 00 94 C2 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 16 72 00 00 35 04 06 00 27 49 44 AE [11:48:28]Write to MH i2c: E2 02 01 20 92 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 74 00 00 00 F4 03 04 00 94 C2 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 16 72 00 00 35 04 06 00 27 49 44 AE 00 00 E7 [11:48:28]Write i2c OK [11:48:28]MH_I2C_Read... [11:48:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:28]Read from MH i2c: E2 [11:48:28]MH_I2C_Read... [11:48:28]Read from MH i2c: E2 03 00 [11:48:28]MH_I2C_Read... [11:48:28]Read from MH i2c: E2 03 00 20 92 00 90 00 26 [11:48:28]RAPDU: 90 00 [11:48:28]wFMCommunicate OK [11:48:28]wFMCommunicate request_size=7 [11:48:28]MH_SAM_APDU [11:48:28]CAPDU: 80 0D 02 02 02 0C EC [11:48:28]Write to MH i2c: E2 0A 00 21 92 80 0D 02 02 02 00 0C EC 00 00 29 [11:48:28]Write i2c OK [11:48:28]MH_I2C_Read... [11:48:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:28]Read from MH i2c: E2 [11:48:28]MH_I2C_Read... [11:48:28]Read from MH i2c: E2 03 00 [11:48:28]MH_I2C_Read... [11:48:28]Read from MH i2c: E2 03 00 21 92 00 90 00 27 [11:48:28]RAPDU: 90 00 [11:48:28]wFMCommunicate OK [11:48:28]wFMCommunicate request_size=4 [11:48:28]MH_SAM_APDU [11:48:28]CAPDU: 80 0D 03 02 [11:48:28]Write to MH i2c: E2 08 00 22 92 80 0D 03 02 00 00 00 00 2F [11:48:28]Write i2c OK [11:48:28]MH_I2C_Read... [11:48:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:48:28]Read from MH i2c: E2 [11:48:28]MH_I2C_Read... [11:48:28]Read from MH i2c: E2 0B 00 [11:48:28]MH_I2C_Read... [11:48:28]Read from MH i2c: E2 0B 00 22 92 00 1A 25 E0 3A 25 65 3E CA 90 00 1B [11:48:28]RAPDU: 1A 25 E0 3A 25 65 3E CA 90 00 [11:48:28]wFMCommunicate OK [11:48:28]SAM_PROTO_SignData done [11:48:28]FM_MakeSignedData done [11:48:28]CreateOFDProtocolMessage [11:48:28]wFMCommunicate request_size=4 [11:48:28]MH_SAM_APDU [11:48:28]CAPDU: 80 11 00 00 [11:48:28]Write to MH i2c: E2 08 00 23 92 80 11 00 00 00 00 00 00 2F [11:48:28]Write i2c OK [11:48:28]MH_I2C_Read... [11:48:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:28]Read from MH i2c: E2 [11:48:28]MH_I2C_Read... [11:48:28]Read from MH i2c: E2 17 00 [11:48:28]MH_I2C_Read... [11:48:28]Read from MH i2c: E2 17 00 23 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 7E [11:48:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:48:28]wFMCommunicate OK [11:48:28]CreateOFDProtocolMessage done [11:48:28]OFDSenderStorePacket 29206 [11:48:28]StoreOFDPacket docnum=29206 [11:48:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 53 1E 04 01 1A 46 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 74 00 00 00 F4 03 04 00 94 C2 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 16 72 00 00 35 04 06 00 27 49 44 AE 0C EC 1A 25 E0 3A 25 65 3E CA [11:48:28]CheckFolder [11:48:28]dirname=/storage/ofd_packets [11:48:28]CheckFolder done [11:48:28]ProducePacketName [11:48:28]name=ofd_packets/00029206 [11:48:28]NVStorageSaveData ofd_packets/00029206 [11:48:28]File name is /storage/ofd_packets/00029206 [11:48:28]Write 298 bytes [11:48:28]NVStorageSaveData done [11:48:28]OFDSenderStorePacket done [11:48:28]KKMCreateOFDPacket done [11:48:28]NVStorageSaveData kkm_last_timestamp [11:48:28]File name is /storage/kkm_last_timestamp [11:48:28]Write 4 bytes [11:48:28]NVStorageSaveData done [11:48:28]ExternCall_PrintAddStr [11:48:28]wPrintStart [11:48:28]Write to MH i2c: 01 00 00 24 92 B6 [11:48:28]Write i2c OK [11:48:28]MH_I2C_Read... [11:48:28]Read from MH i2c: 01 [11:48:28]MH_I2C_Read... [11:48:28]Read from MH i2c: 01 07 00 [11:48:28]MH_I2C_Read... [11:48:28]Read from MH i2c: 01 07 00 24 92 00 00 00 00 00 FF 0F CB [11:48:28]RasterBufferAndPrint [11:48:28]line Счет N : (1)347581 [11:48:28]line ИНН: 02508201610067 [11:48:28]line Контрольно-Кассовый Чек [11:48:28]line ПРОДАЖА [11:48:28]line ТРК (МРК, ГНК) : 11 [11:48:28]line Товар: 2710194210 [11:48:28]line ДТ-К-5 [11:48:28]line 6.910 * 72.40 [11:48:28]line = 500.28 [11:48:28]line НДС 12% НСП 1% [11:48:28]line > о реализуемом товаре [11:48:28]line ИТОГО: 500.28 [11:48:28]line НСП 1% : 4.43 [11:48:28]line НДС 12% : 53.13 [11:48:28]line Наличными: 0.00 [11:48:28]line Безнал.: 500.28 [11:48:28]line Место: АЗС № 108 "Партнер Нефть" [11:48:28]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [11:48:28]line СНО: Общий режим [11:48:28]line Чек 116 14.04.2024 11:48 [11:48:28]line Смена: 116 ФФД: 1.0 [11:48:28]line ЗНМ: 0300000027 [11:48:28]line РНМ: 0000138879044617 [11:48:28]line Версия ККМ: 001 [11:48:28]line Платежная система: АКБ Кыргызстан [11:48:28]line ФМ: 0000000000963154 [11:48:28]line ФД: 29206 [11:48:28]line ФПД: 43195638353132 [11:48:28]line 1/tax-web-control/client/api/v1/ticket?date=20240414T114836&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29206&fm=43195638353132&tin=02508201610067®Number=0000138879044617&sum=50028 [11:48:28]OFD Sender: Processing packet 29206 [packets to send 8, broken 7] [11:48:28]ProducePacketName [11:48:28]name=ofd_packets/00029206 [11:48:28]OFD Sender: To server: pG, [11:48:28]CommunicateWithHost lk.salyk.kg:30040 [11:48:28]ConnectInit lk.salyk.kg [11:48:28]written 0, free lines is 4095 [11:48:28]Connected sock=10 [11:48:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 53 1E 04 01 1A 46 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 74 00 00 00 F4 03 04 00 94 C2 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 16 72 00 00 35 04 06 00 27 49 44 AE 0C EC 1A 25 E0 3A 25 65 3E CA [11:48:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 4E 41 47 00 DB 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 39 36 33 31 35 34 10 04 04 00 16 72 00 00 F4 03 04 00 38 6D 1B 66 B6 04 01 00 00 6F 2D F7 E9 BD 66 46 05 [11:48:29]CommunicateWithHost err = 0 [11:48:29]CheckOFDResponse [11:48:29]1017 (14) - 77093643461234 [11:48:29]1041 (16) - 0000000000963154 [11:48:29]1040 (4) - 29206 [11:48:29]1012 (4) - 14.04.2024 05:44 [11:48:29]1206 (1) - 0 [11:48:29]OFD Sender: Remove packet 29206 [11:48:29]ProducePacketName [11:48:29]name=ofd_packets/00029206 [11:48:29]NVStorageDeleteData [11:48:29]Write to MH i2c: 01 00 00 4D 92 DF [11:48:29]Write i2c OK [11:48:29]MH_I2C_Read... [11:48:29]Read from MH i2c: 01 [11:48:29]MH_I2C_Read... [11:48:29]Read from MH i2c: 01 07 00 [11:48:29]MH_I2C_Read... [11:48:29]Read from MH i2c: 01 07 00 4D 92 00 00 00 00 00 DA 0C CC [11:48:29]RasterBufferAndPrint [11:48:29]line [11:48:29]line [11:48:29]line [11:48:29]line [11:48:29]line [11:48:29]written 0, free lines is 3297 [11:48:29]MH_Cut [11:48:29]Write to MH i2c: D1 01 00 54 92 01 B8 [11:48:29]Write i2c OK [11:48:29]MH_I2C_Read... [11:48:29]Read from MH i2c: D1 [11:48:29]MH_I2C_Read... [11:48:29]Read from MH i2c: D1 01 00 [11:48:29]MH_I2C_Read... [11:48:29]Read from MH i2c: D1 01 00 54 92 00 B7 [11:48:29]Write to MH i2c: 01 00 00 55 92 E7 [11:48:29]Write i2c OK [11:48:29]MH_I2C_Read... [11:48:29]OFD Sender: No OFD packet to send [11:48:30]*** Cut start [11:48:30]*** Partial cut [11:48:30]*** CUTSNS_PIN = 1 [11:48:30]*** CUTSNS_PIN = 0 [11:48:30]*** Brake cut motor [11:48:30]Read from MH i2c: 01 [11:48:30]MH_I2C_Read... [11:48:30]*** Stop cut motor [11:48:30]*** Cut end [11:48:30]Read from MH i2c: 01 07 00 [11:48:30]MH_I2C_Read... [11:48:30]Read from MH i2c: 01 07 00 55 92 00 00 00 00 00 FF 0F FC [11:48:30]process_action close_receipt done [11:48:30]requested_data is exist [11:48:30]produce_requested_data [11:48:30]requested_item fm.sn is exist - process it [11:48:30]wFMCommunicate request_size=4 [11:48:30]MH_SAM_APDU [11:48:30]CAPDU: 80 11 00 00 [11:48:30]Write to MH i2c: E2 08 00 56 92 80 11 00 00 00 00 00 00 62 [11:48:30]Write i2c OK [11:48:30]MH_I2C_Read... [11:48:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:30]Read from MH i2c: E2 [11:48:30]MH_I2C_Read... [11:48:30]Read from MH i2c: E2 17 00 [11:48:30]MH_I2C_Read... [11:48:30]Read from MH i2c: E2 17 00 56 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B1 [11:48:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:48:30]wFMCommunicate OK [11:48:30]requested_item fd.num is exist - process it [11:48:30]SAM_PROTO_GetFieldsCounters [11:48:30]wFMCommunicate request_size=4 [11:48:30]MH_SAM_APDU [11:48:30]CAPDU: 80 13 00 00 [11:48:30]Write to MH i2c: E2 08 00 57 92 80 13 00 00 00 00 00 00 65 [11:48:30]Write i2c OK [11:48:30]MH_I2C_Read... [11:48:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:48:30]Read from MH i2c: E2 [11:48:30]MH_I2C_Read... [11:48:30]Read from MH i2c: E2 62 00 [11:48:30]MH_I2C_Read... [11:48:30]Read from MH i2c: E2 62 00 57 92 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 16 72 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 FB [11:48:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 16 72 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:48:30]wFMCommunicate OK [11:48:30]SAM_PROTO_GetFieldsCounters done [11:48:30]requested_item shift.num is exist - process it [11:48:30]requested_item shift.opened is exist - process it [11:48:30]req_shift_opened [11:48:30]FM_GetShiftState [11:48:30]SAM_PROTO_GetShiftState [11:48:30]wFMCommunicate request_size=4 [11:48:30]MH_SAM_APDU [11:48:30]CAPDU: 80 13 01 00 [11:48:30]Write to MH i2c: E2 08 00 58 92 80 13 01 00 00 00 00 00 67 [11:48:30]Write i2c OK [11:48:30]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 58 92 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 13 [11:48:31]RAPDU: 09 00 01 FF 20 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]req_shift_opened done [11:48:31]requested_item shift.open_date is exist - process it [11:48:31]req_shift_open_date [11:48:31]req_shift_open_date done [11:48:31]produce_requested_data done [11:48:31]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29206,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [11:48:31]process_action_free close_receipt [11:48:31]json_value_free [11:48:31]json_value_free done [11:48:31]process_json_proto returns [11:48:31]Send response to host [11:48:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29206,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [11:48:31]free response buf [11:48:31]execute_script done [11:48:31]execute_script returns [11:48:31]free content buf [11:48:31]Sock 9.Close socket [11:48:31]Sock 9.Thread stoped [11:48:34]OFD Sender: No OFD packet to send [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:34]OFD Sender: No OFD packet to send [11:49:39]OFD Sender: No OFD packet to send [11:49:44]OFD Sender: No OFD packet to send [11:49:49]OFD Sender: No OFD packet to send [11:49:54]OFD Sender: No OFD packet to send [11:49:59]OFD Sender: No OFD packet to send [11:50:04]OFD Sender: No OFD packet to send [11:50:09]OFD Sender: No OFD packet to send [11:50:14]OFD Sender: No OFD packet to send [11:50:19]OFD Sender: No OFD packet to send [11:50:24]OFD Sender: No OFD packet to send [11:50:28]accept exits with 7 [11:50:28]New connection [11:50:28]New thread 3066928484 created [11:50:28]Thread 3066785124 joined [11:50:28]Waiting for new connection... [11:50:28] Sock 7.Parse request [11:50:28]Sock 7.Check first char [11:50:28]Sock 7.First char is OK [11:50:28]request: POST /json_proto HTTP/1.0 [11:50:28]Method: POST [11:50:28]URL: /json_proto [11:50:28]Method is POST - this is cgi request [11:50:28]url: /json_proto [11:50:28]query_string will be loaded in cgi processing [11:50:28]execute_cgi json_proto POST (null) [11:50:28]execute_cgi path=json_proto method=POST [11:50:28]POST find Content-Length [11:50:28]Host: 172.17.33.3:8080 [11:50:28]Content-Length: 682 [11:50:28]Content-Type: application/json [11:50:28] [11:50:28]POST finish read [11:50:28]Found Content-Length = 682 [11:50:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347582", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 25.820, "sum" : 1660.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1660.00, "total" : 1660.00, "payments": [ { "type": 0, "sum" : 1660.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:50:28]execute_script... [11:50: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)347582", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 25.820, "sum" : 1660.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1660.00, "total" : 1660.00, "payments": [ { "type": 0, "sum" : 1660.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:50:28]POST & json_proto [11:50:28]process_json_proto [11:50:28]json parsed OK: [11:50:28]protocol is kg_v1.0 [11:50:28]action value=close_receipt [11:50:28]process_action close_receipt [11:50:28]cmd_close_receipt [11:50:28]MH_GetDate [11:50:28]Write to MH i2c: F0 00 00 59 92 DA [11:50:28]Write i2c OK [11:50:28]MH_I2C_Read... [11:50:28]Read from MH i2c: F0 [11:50:28]MH_I2C_Read... [11:50:28]Read from MH i2c: F0 09 00 [11:50:28]MH_I2C_Read... [11:50:28]Read from MH i2c: F0 09 00 59 92 00 0E C3 1B 66 23 5B 8F 65 A7 [11:50:28]GetLastDocTimeStamp 1713095316 [11:50:28]current date 1713095438 [11:50:28]FM_GetShiftState [11:50:28]SAM_PROTO_GetShiftState [11:50:28]wFMCommunicate request_size=4 [11:50:28]MH_SAM_APDU [11:50:28]CAPDU: 80 13 01 00 [11:50:28]Write to MH i2c: E2 08 00 5A 92 80 13 01 00 00 00 00 00 69 [11:50:28]Write i2c OK [11:50:28]MH_I2C_Read... [11:50:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:50:28]Read from MH i2c: E2 [11:50:28]MH_I2C_Read... [11:50:28]Read from MH i2c: E2 0E 00 [11:50:28]MH_I2C_Read... [11:50:28]Read from MH i2c: E2 0E 00 5A 92 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 15 [11:50:28]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [11:50:28]wFMCommunicate OK [11:50:28]SAM_PROTO_GetShiftState done [11:50:28]FM_GetShiftState done [11:50:28]opened in 1713053951 [11:50:28]opened+sec_in_day 1713140351 [11:50:28]quantity*price = 166022 [11:50:28]sum+1 = 166024 [11:50:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 1660.00 Внесено: 1660.00 СДАЧА: 0.00 НСП 1% : 14.69 НДС 12% : 176.31 Наличными: 1660.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 117 14.04.2024 11:50 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29207 ФПД: 145284091378964 1/tax-web-control/client/api/v1/ticket?date=20240414T115038&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29207&fm=145284091378964&tin=02508201610067®Number=0000138879044617&sum=166000 [11:50:29]StoreToDocumentArchive [11:50:29]shift 116 fd 29207 [11:50:29]save to /storage/0116/doc_00029207 [11:50:29]save last doc name /storage/0116/doc_00029207 to /storage/kkm_last_doc_name [11:50:29]save OK [11:50:29]Clear old archive folders... [11:50:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:50:29]tlvbuf is 011FB020 [11:50:29]SAM_PROTO_ClearQueue [11:50:29]wFMCommunicate request_size=4 [11:50:29]MH_SAM_APDU [11:50:29]CAPDU: 80 09 00 00 [11:50:29]Write to MH i2c: E2 08 00 67 92 80 09 00 00 00 00 00 00 6B [11:50:29]Write i2c OK [11:50:29]MH_I2C_Read... [11:50:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:50:29]Read from MH i2c: E2 [11:50:29]MH_I2C_Read... [11:50:29]Read from MH i2c: E2 03 00 [11:50:29]MH_I2C_Read... [11:50:29]Read from MH i2c: E2 03 00 67 92 00 90 00 6D [11:50:29]RAPDU: 90 00 [11:50:29]wFMCommunicate OK [11:50:29]SAM_PROTO_ClearQueue done [11:50:29]KKMCreateOFDPacket [11:50:29]OFDProtocolAddRootSTLVToBuf [11:50:29]FM_MakeSignedData [11:50:29]FM_MakeSignedData [11:50:29]SAM_PROTO_SignData [11:50:29]wFMCommunicate request_size=4 [11:50:29]MH_SAM_APDU [11:50:29]CAPDU: 80 0D 01 02 [11:50:29]Write to MH i2c: E2 08 00 68 92 80 0D 01 02 00 00 00 00 73 [11:50:29]Write i2c OK [11:50:29]MH_I2C_Read... [11:50:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:50:29]Read from MH i2c: E2 [11:50:29]MH_I2C_Read... [11:50:29]Read from MH i2c: E2 03 00 [11:50:29]MH_I2C_Read... [11:50:29]Read from MH i2c: E2 03 00 68 92 00 90 00 6E [11:50:29]RAPDU: 90 00 [11:50:29]wFMCommunicate OK [11:50:29]wFMCommunicate request_size=255 [11:50:29]MH_SAM_APDU [11:50: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 DC 64 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 87 88 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 88 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BD 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 44 00 00 00 00 07 04 06 00 70 88 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 0E C3 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 17 72 00 00 35 04 06 00 84 [11:50:29]Write to MH i2c: E2 02 01 69 92 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 64 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 87 88 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 88 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BD 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 44 00 00 00 00 07 04 06 00 70 88 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 0E C3 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 17 72 00 00 35 04 06 00 84 00 00 43 [11:50:29]Write i2c OK [11:50:29]MH_I2C_Read... [11:50:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:50:30]Read from MH i2c: E2 [11:50:30]MH_I2C_Read... [11:50:30]Read from MH i2c: E2 03 00 [11:50:30]MH_I2C_Read... [11:50:30]Read from MH i2c: E2 03 00 69 92 00 90 00 6F [11:50:30]RAPDU: 90 00 [11:50:30]wFMCommunicate OK [11:50:30]wFMCommunicate request_size=10 [11:50:30]MH_SAM_APDU [11:50:30]CAPDU: 80 0D 02 02 05 22 96 A8 7D 14 [11:50:30]Write to MH i2c: E2 0D 00 6A 92 80 0D 02 02 05 00 22 96 A8 7D 14 00 00 71 [11:50:30]Write i2c OK [11:50:30]MH_I2C_Read... [11:50:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:50:30]Read from MH i2c: E2 [11:50:30]MH_I2C_Read... [11:50:30]Read from MH i2c: E2 03 00 [11:50:30]MH_I2C_Read... [11:50:30]Read from MH i2c: E2 03 00 6A 92 00 90 00 70 [11:50:30]RAPDU: 90 00 [11:50:30]wFMCommunicate OK [11:50:30]wFMCommunicate request_size=4 [11:50:30]MH_SAM_APDU [11:50:30]CAPDU: 80 0D 03 02 [11:50:30]Write to MH i2c: E2 08 00 6B 92 80 0D 03 02 00 00 00 00 78 [11:50:30]Write i2c OK [11:50:30]MH_I2C_Read... [11:50:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:50:30]Read from MH i2c: E2 [11:50:30]MH_I2C_Read... [11:50:30]Read from MH i2c: E2 0B 00 [11:50:30]MH_I2C_Read... [11:50:30]Read from MH i2c: E2 0B 00 6B 92 00 15 F7 83 E6 59 20 AD C6 90 00 DA [11:50:30]RAPDU: 15 F7 83 E6 59 20 AD C6 90 00 [11:50:30]wFMCommunicate OK [11:50:30]SAM_PROTO_SignData done [11:50:30]FM_MakeSignedData done [11:50:30]CreateOFDProtocolMessage [11:50:30]wFMCommunicate request_size=4 [11:50:30]MH_SAM_APDU [11:50:30]CAPDU: 80 11 00 00 [11:50:30]Write to MH i2c: E2 08 00 6C 92 80 11 00 00 00 00 00 00 78 [11:50:30]Write i2c OK [11:50:30]MH_I2C_Read... [11:50:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:50:30]Read from MH i2c: E2 [11:50:30]MH_I2C_Read... [11:50:30]Read from MH i2c: E2 17 00 [11:50:30]MH_I2C_Read... [11:50:30]Read from MH i2c: E2 17 00 6C 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C7 [11:50:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:50:30]wFMCommunicate OK [11:50:30]CreateOFDProtocolMessage done [11:50:30]OFDSenderStorePacket 29207 [11:50:30]StoreOFDPacket docnum=29207 [11:50:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 48 E8 07 01 45 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 64 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 87 88 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 88 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BD 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 44 00 00 00 00 07 04 06 00 70 88 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 0E C3 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 17 72 00 00 35 04 06 00 84 22 96 A8 7D 14 15 F7 83 E6 59 20 AD C6 [11:50:30]CheckFolder [11:50:30]dirname=/storage/ofd_packets [11:50:30]CheckFolder done [11:50:30]ProducePacketName [11:50:30]name=ofd_packets/00029207 [11:50:30]NVStorageSaveData ofd_packets/00029207 [11:50:30]File name is /storage/ofd_packets/00029207 [11:50:30]Write 301 bytes [11:50:30]NVStorageSaveData done [11:50:30]OFDSenderStorePacket done [11:50:30]KKMCreateOFDPacket done [11:50:30]NVStorageSaveData kkm_last_timestamp [11:50:30]File name is /storage/kkm_last_timestamp [11:50:30]Write 4 bytes [11:50:30]NVStorageSaveData done [11:50:30]ExternCall_PrintAddStr [11:50:30]wPrintStart [11:50:30]Write to MH i2c: 01 00 00 6D 92 FF [11:50:30]Write i2c OK [11:50:30]MH_I2C_Read... [11:50:30]Read from MH i2c: 01 [11:50:30]MH_I2C_Read... [11:50:30]Read from MH i2c: 01 07 00 [11:50:30]MH_I2C_Read... [11:50:30]Read from MH i2c: 01 07 00 6D 92 00 00 00 00 00 FF 0F 14 [11:50:30]RasterBufferAndPrint [11:50:30]line Счет N : (1)347582 [11:50:30]line ИНН: 02508201610067 [11:50:30]line Контрольно-Кассовый Чек [11:50:30]line ПРОДАЖА [11:50:30]line ТРК (МРК, ГНК) : 23 [11:50:30]line Товар: 2710124130 [11:50:30]line Аи-92-К-5 [11:50:30]line 25.820 * 64.30 [11:50:30]line = 1660.23 [11:50:30]line НДС 12% НСП 1% [11:50:30]line > о реализуемом товаре [11:50:30]line ОКРУГЛЕНИЕ: -0.23 [11:50:30]line ИТОГО: 1660.00 [11:50:30]line Внесено: 1660.00 [11:50:30]line СДАЧА: 0.00 [11:50:30]line НСП 1% : 14.69 [11:50:30]line НДС 12% : 176.31 [11:50:30]line Наличными: 1660.00 [11:50:30]line Безнал.: 0.00 [11:50:30]line Место: АЗС № 108 "Партнер Нефть" [11:50:30]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [11:50:30]line СНО: Общий режим [11:50:30]line Чек 117 14.04.2024 11:50 [11:50:30]line Смена: 116 ФФД: 1.0 [11:50:30]line ЗНМ: 0300000027 [11:50:30]line РНМ: 0000138879044617 [11:50:30]line Версия ККМ: 001 [11:50:30]line ФМ: 0000000000963154 [11:50:30]line ФД: 29207 [11:50:30]line ФПД: 145284091378964 [11:50:30]line 1/tax-web-control/client/api/v1/ticket?date=20240414T115038&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29207&fm=145284091378964&tin=02508201610067®Number=0000138879044617&sum=166000 [11:50:30]OFD Sender: Processing packet 29207 [packets to send 8, broken 7] [11:50:30]ProducePacketName [11:50:30]name=ofd_packets/00029207 [11:50:30]OFD Sender: To server: pG, [11:50:30]CommunicateWithHost lk.salyk.kg:30040 [11:50:30]ConnectInit lk.salyk.kg [11:50:30]written 0, free lines is 4095 [11:50:30]Connected sock=9 [11:50:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 48 E8 07 01 45 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 64 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 87 88 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 88 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BD 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 44 00 00 00 00 07 04 06 00 70 88 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 0E C3 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 17 72 00 00 35 04 06 00 84 22 96 A8 7D 14 15 F7 83 E6 59 20 AD C6 [11:50:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 DF 9D 47 00 E9 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 39 36 33 31 35 34 10 04 04 00 17 72 00 00 F4 03 04 00 B2 6D 1B 66 B6 04 01 00 00 BA 34 0B 7C B4 D5 51 0D [11:50:31]CommunicateWithHost err = 0 [11:50:31]CheckOFDResponse [11:50:31]1017 (14) - 77093643461234 [11:50:31]1041 (16) - 0000000000963154 [11:50:31]1040 (4) - 29207 [11:50:31]1012 (4) - 14.04.2024 05:46 [11:50:31]1206 (1) - 0 [11:50:31]OFD Sender: Remove packet 29207 [11:50:31]ProducePacketName [11:50:31]name=ofd_packets/00029207 [11:50:31]NVStorageDeleteData [11:50:31]Write to MH i2c: 01 00 00 97 92 29 [11:50:31]Write i2c OK [11:50:31]MH_I2C_Read... [11:50:31]Read from MH i2c: 01 [11:50:31]MH_I2C_Read... [11:50:31]Read from MH i2c: 01 07 00 [11:50:31]MH_I2C_Read... [11:50:31]Read from MH i2c: 01 07 00 97 92 00 00 00 00 00 C9 0C 05 [11:50:31]RasterBufferAndPrint [11:50:31]line [11:50:31]line [11:50:31]line [11:50:31]line [11:50:31]line [11:50:31]written 0, free lines is 3278 [11:50:31]MH_Cut [11:50:31]Write to MH i2c: D1 01 00 9E 92 01 02 [11:50:31]Write i2c OK [11:50:31]MH_I2C_Read... [11:50:31]Read from MH i2c: D1 [11:50:31]MH_I2C_Read... [11:50:31]Read from MH i2c: D1 01 00 [11:50:31]MH_I2C_Read... [11:50:31]Read from MH i2c: D1 01 00 9E 92 00 01 [11:50:31]Write to MH i2c: 01 00 00 9F 92 31 [11:50:31]Write i2c OK [11:50:31]MH_I2C_Read... [11:50:31]OFD Sender: No OFD packet to send [11:50:31]*** Cut start [11:50:31]*** Partial cut [11:50:31]*** CUTSNS_PIN = 1 [11:50:32]*** CUTSNS_PIN = 0 [11:50:32]*** Brake cut motor [11:50:32]Read from MH i2c: 01 [11:50:32]MH_I2C_Read... [11:50:32]*** Stop cut motor [11:50:32]*** Cut end [11:50:32]Read from MH i2c: 01 07 00 [11:50:32]MH_I2C_Read... [11:50:32]Read from MH i2c: 01 07 00 9F 92 00 00 00 00 00 FF 0F 46 [11:50:32]process_action close_receipt done [11:50:32]requested_data is exist [11:50:32]produce_requested_data [11:50:32]requested_item fm.sn is exist - process it [11:50:32]wFMCommunicate request_size=4 [11:50:32]MH_SAM_APDU [11:50:32]CAPDU: 80 11 00 00 [11:50:32]Write to MH i2c: E2 08 00 A0 92 80 11 00 00 00 00 00 00 AC [11:50:32]Write i2c OK [11:50:32]MH_I2C_Read... [11:50:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:50:32]Read from MH i2c: E2 [11:50:32]MH_I2C_Read... [11:50:32]Read from MH i2c: E2 17 00 [11:50:32]MH_I2C_Read... [11:50:32]Read from MH i2c: E2 17 00 A0 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 FB [11:50:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:50:32]wFMCommunicate OK [11:50:32]requested_item fd.num is exist - process it [11:50:32]SAM_PROTO_GetFieldsCounters [11:50:32]wFMCommunicate request_size=4 [11:50:32]MH_SAM_APDU [11:50:32]CAPDU: 80 13 00 00 [11:50:32]Write to MH i2c: E2 08 00 A1 92 80 13 00 00 00 00 00 00 AF [11:50:32]Write i2c OK [11:50:32]MH_I2C_Read... [11:50:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:50:32]Read from MH i2c: E2 [11:50:32]MH_I2C_Read... [11:50:32]Read from MH i2c: E2 62 00 [11:50:32]MH_I2C_Read... [11:50:32]Read from MH i2c: E2 62 00 A1 92 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 17 72 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 49 [11:50:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 17 72 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:50:32]wFMCommunicate OK [11:50:32]SAM_PROTO_GetFieldsCounters done [11:50:32]requested_item shift.num is exist - process it [11:50:32]requested_item shift.opened is exist - process it [11:50:32]req_shift_opened [11:50:32]FM_GetShiftState [11:50:32]SAM_PROTO_GetShiftState [11:50:32]wFMCommunicate request_size=4 [11:50:32]MH_SAM_APDU [11:50:32]CAPDU: 80 13 01 00 [11:50:32]Write to MH i2c: E2 08 00 A2 92 80 13 01 00 00 00 00 00 B1 [11:50:32]Write i2c OK [11:50:32]MH_I2C_Read... [11:50:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:50:32]Read from MH i2c: E2 [11:50:32]MH_I2C_Read... [11:50:32]Read from MH i2c: E2 0E 00 [11:50:32]MH_I2C_Read... [11:50:32]Read from MH i2c: E2 0E 00 A2 92 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 5D [11:50:32]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [11:50:32]wFMCommunicate OK [11:50:32]SAM_PROTO_GetShiftState done [11:50:32]FM_GetShiftState done [11:50:32]req_shift_opened done [11:50:32]requested_item shift.open_date is exist - process it [11:50:32]req_shift_open_date [11:50:32]req_shift_open_date done [11:50:32]produce_requested_data done [11:50:32]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29207,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [11:50:32]process_action_free close_receipt [11:50:32]json_value_free [11:50:32]json_value_free done [11:50:32]process_json_proto returns [11:50:32]Send response to host [11:50:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29207,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [11:50:32]free response buf [11:50:32]execute_script done [11:50:32]execute_script returns [11:50:32]free content buf [11:50:32]Sock 7.Close socket [11:50:32]Sock 7.Thread stoped [11:50:36]OFD Sender: No OFD packet to send [11:50:41]OFD Sender: No OFD packet to send [11:50:46]OFD Sender: No OFD packet to send [11:50:51]OFD Sender: No OFD packet to send [11:50:56]OFD Sender: No OFD packet to send [11:51:01]OFD Sender: No OFD packet to send [11:51:06]OFD Sender: No OFD packet to send [11:51:11]OFD Sender: No OFD packet to send [11:51:16]OFD Sender: No OFD packet to send [11:51:21]OFD Sender: No OFD packet to send [11:51:26]OFD Sender: No OFD packet to send [11:51:31]OFD Sender: No OFD packet to send [11:51:36]OFD Sender: No OFD packet to send [11:51:41]OFD Sender: No OFD packet to send [11:51:46]OFD Sender: No OFD packet to send [11:51:51]OFD Sender: No OFD packet to send [11:51:56]OFD Sender: No OFD packet to send [11:52:01]OFD Sender: No OFD packet to send [11:52:06]OFD Sender: No OFD packet to send [11:52:11]OFD Sender: No OFD packet to send [11:52:16]OFD Sender: No OFD packet to send [11:52:21]OFD Sender: No OFD packet to send [11:52:26]OFD Sender: No OFD packet to send [11:52:31]OFD Sender: No OFD packet to send [11:52:36]OFD Sender: No OFD packet to send [11:52:41]OFD Sender: No OFD packet to send [11:52:46]OFD Sender: No OFD packet to send [11:52:51]OFD Sender: No OFD packet to send [11:52:56]OFD Sender: No OFD packet to send [11:53:01]OFD Sender: No OFD packet to send [11:53:06]OFD Sender: No OFD packet to send [11:53:11]OFD Sender: No OFD packet to send [11:53:16]OFD Sender: No OFD packet to send [11:53:21]OFD Sender: No OFD packet to send [11:53:26]OFD Sender: No OFD packet to send [11:53:31]OFD Sender: No OFD packet to send [11:53:36]OFD Sender: No OFD packet to send [11:53:41]OFD Sender: No OFD packet to send [11:53:46]OFD Sender: No OFD packet to send [11:53:51]OFD Sender: No OFD packet to send [11:53:56]OFD Sender: No OFD packet to send [11:54:01]OFD Sender: No OFD packet to send [11:54:06]OFD Sender: No OFD packet to send [11:54:11]OFD Sender: No OFD packet to send [11:54:16]OFD Sender: No OFD packet to send [11:54:21]OFD Sender: No OFD packet to send [11:54:26]OFD Sender: No OFD packet to send [11:54:31]OFD Sender: No OFD packet to send [11:54:36]OFD Sender: No OFD packet to send [11:54:41]OFD Sender: No OFD packet to send [11:54:46]OFD Sender: No OFD packet to send [11:54:51]OFD Sender: No OFD packet to send [11:54:56]OFD Sender: No OFD packet to send [11:55:01]OFD Sender: No OFD packet to send [11:55:06]OFD Sender: No OFD packet to send [11:55:11]OFD Sender: No OFD packet to send [11:55:16]OFD Sender: No OFD packet to send [11:55:21]OFD Sender: No OFD packet to send [11:55:26]OFD Sender: No OFD packet to send [11:55:31]OFD Sender: No OFD packet to send [11:55:36]OFD Sender: No OFD packet to send [11:55:41]OFD Sender: No OFD packet to send [11:55:46]OFD Sender: No OFD packet to send [11:55:51]OFD Sender: No OFD packet to send [11:55:56]OFD Sender: No OFD packet to send [11:56:01]OFD Sender: No OFD packet to send [11:56:06]OFD Sender: No OFD packet to send [11:56:11]OFD Sender: No OFD packet to send [11:56:16]OFD Sender: No OFD packet to send [11:56:21]OFD Sender: No OFD packet to send [11:56:26]OFD Sender: No OFD packet to send [11:56:31]OFD Sender: No OFD packet to send [11:56:36]OFD Sender: No OFD packet to send [11:56:41]OFD Sender: No OFD packet to send [11:56:46]OFD Sender: No OFD packet to send [11:56:51]OFD Sender: No OFD packet to send [11:56:56]OFD Sender: No OFD packet to send [11:57:01]OFD Sender: No OFD packet to send [11:57:06]OFD Sender: No OFD packet to send [11:57:11]OFD Sender: No OFD packet to send [11:57:16]OFD Sender: No OFD packet to send [11:57:21]OFD Sender: No OFD packet to send [11:57:26]OFD Sender: No OFD packet to send [11:57:31]OFD Sender: No OFD packet to send [11:57:36]OFD Sender: No OFD packet to send [11:57:41]OFD Sender: No OFD packet to send [11:57:46]OFD Sender: No OFD packet to send [11:57:51]OFD Sender: No OFD packet to send [11:57:56]OFD Sender: No OFD packet to send [11:58:01]OFD Sender: No OFD packet to send [11:58:06]OFD Sender: No OFD packet to send [11:58:11]OFD Sender: No OFD packet to send [11:58:16]OFD Sender: No OFD packet to send [11:58:21]OFD Sender: No OFD packet to send [11:58:26]OFD Sender: No OFD packet to send [11:58:31]OFD Sender: No OFD packet to send [11:58:36]OFD Sender: No OFD packet to send [11:58:41]OFD Sender: No OFD packet to send [11:58:46]OFD Sender: No OFD packet to send [11:58:51]OFD Sender: No OFD packet to send [11:58:56]OFD Sender: No OFD packet to send [11:59:01]OFD Sender: No OFD packet to send [11:59:06]OFD Sender: No OFD packet to send [11:59:11]OFD Sender: No OFD packet to send [11:59:16]OFD Sender: No OFD packet to send [11:59:21]OFD Sender: No OFD packet to send [11:59:26]OFD Sender: No OFD packet to send [11:59:31]OFD Sender: No OFD packet to send [11:59:36]OFD Sender: No OFD packet to send [11:59:41]OFD Sender: No OFD packet to send [11:59:46]OFD Sender: No OFD packet to send [11:59:51]OFD Sender: No OFD packet to send [11:59:56]OFD Sender: No OFD packet to send [12:00:01]OFD Sender: No OFD packet to send [12:00:06]OFD Sender: No OFD packet to send [12:00:11]OFD Sender: No OFD packet to send [12:00:16]OFD Sender: No OFD packet to send [12:00:21]OFD Sender: No OFD packet to send [12:00:26]OFD Sender: No OFD packet to send [12:00:31]OFD Sender: No OFD packet to send [12:00:36]OFD Sender: No OFD packet to send [12:00:41]OFD Sender: No OFD packet to send [12:00:46]OFD Sender: No OFD packet to send [12:00:51]OFD Sender: No OFD packet to send [12:00:57]OFD Sender: No OFD packet to send [12:01:02]OFD Sender: No OFD packet to send [12:01:07]OFD Sender: No OFD packet to send [12:01:12]OFD Sender: No OFD packet to send [12:01:17]OFD Sender: No OFD packet to send [12:01:19]accept exits with 10 [12:01:19]New connection [12:01:19]New thread 3066785124 created [12:01:19]Thread 3066928484 joined [12:01:19]Waiting for new connection... [12:01:19] Sock 10.Parse request [12:01:19]Sock 10.Check first char [12:01:19]Sock 10.First char is OK [12:01:19]request: POST /json_proto HTTP/1.0 [12:01:19]Method: POST [12:01:19]URL: /json_proto [12:01:19]Method is POST - this is cgi request [12:01:19]url: /json_proto [12:01:19]query_string will be loaded in cgi processing [12:01:19]execute_cgi json_proto POST (null) [12:01:19]execute_cgi path=json_proto method=POST [12:01:19]POST find Content-Length [12:01:19]Host: 172.17.33.3:8080 [12:01:19]Content-Length: 1164 [12:01:19]Content-Type: application/json [12:01:19] [12:01:19]POST finish read [12:01:19]Found Content-Length = 1164 [12:01:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043B\u0438\u043A\u0431\u0430\u0435\u0432\u0430. \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)347583\u000A14.04.2024 11: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 30.000 x 64.30\u000A\u0418\u0422\u041E\u0413: 1929.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30103198\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:01:19]execute_script... [12:01:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043B\u0438\u043A\u0431\u0430\u0435\u0432\u0430. \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)347583\u000A14.04.2024 11: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 30.000 x 64.30\u000A\u0418\u0422\u041E\u0413: 1929.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30103198\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:01:19]POST & json_proto [12:01:19]process_json_proto [12:01:19]json parsed OK: [12:01:19]protocol is kg_v1.0 [12:01:19]action value=print_text [12:01:19]process_action print_text [12:01:19]cmd_print_text [12:01:19]ExternCall_PrintAddStr [12:01:19]wPrintStart [12:01:19]Write to MH i2c: 01 00 00 A3 92 35 [12:01:19]Write i2c OK [12:01:19]MH_I2C_Read... [12:01:19]Read from MH i2c: 01 [12:01:19]MH_I2C_Read... [12:01:19]Read from MH i2c: 01 07 00 [12:01:19]MH_I2C_Read... [12:01:19]Read from MH i2c: 01 07 00 A3 92 00 00 00 00 00 FF 0F 4A [12:01:19]RasterBufferAndPrint [12:01:19]line *****ТОВАРНЫЙ ЧЕК***** [12:01:19]line АЗС 108 [12:01:19]line Партнер нефть [12:01:19]line 02508201610067 [12:01:19]line Кассир : Аликбаева. Д. [12:01:19]line Счет N : (1)347583 [12:01:19]line 14.04.2024 11:43 [12:01:19]line ПРОДАЖА [12:01:19]line ТРК (МРК, ГНК): 42 [12:01:19]line Вид ГСМ : 2710124130 [12:01:19]line Аи-92-К-5 [12:01:19]line 30.000 x 64.30 [12:01:19]line ИТОГ: 1929.00 [12:01:19]line Тип оплаты: Талоны: ТК ГПНА Online [12:01:19]line 30103198 [12:01:19]line ______________________ [12:01:19]line (подпись) [12:01:19]written 0, free lines is 4095 [12:01:20]Write to MH i2c: 01 00 00 B7 92 49 [12:01:20]Write i2c OK [12:01:20]MH_I2C_Read... [12:01:20]Read from MH i2c: 01 [12:01:20]MH_I2C_Read... [12:01:20]Read from MH i2c: 01 07 00 [12:01:20]MH_I2C_Read... [12:01:20]Read from MH i2c: 01 07 00 B7 92 00 00 00 00 00 11 0E 6F [12:01:20]RasterBufferAndPrint [12:01:20]line [12:01:20]line [12:01:20]line [12:01:20]line [12:01:20]line [12:01:20]written 0, free lines is 3602 [12:01:20]MH_Cut [12:01:20]Write to MH i2c: D1 01 00 BE 92 01 22 [12:01:20]Write i2c OK [12:01:20]MH_I2C_Read... [12:01:20]Read from MH i2c: D1 [12:01:20]MH_I2C_Read... [12:01:20]Read from MH i2c: D1 01 00 [12:01:20]MH_I2C_Read... [12:01:20]Read from MH i2c: D1 01 00 BE 92 00 21 [12:01:20]Write to MH i2c: 01 00 00 BF 92 51 [12:01:20]Write i2c OK [12:01:20]MH_I2C_Read... [12:01:20]*** Cut start [12:01:20]*** Partial cut [12:01:20]*** CUTSNS_PIN = 1 [12:01:20]*** CUTSNS_PIN = 0 [12:01:20]*** Brake cut motor [12:01:21]Read from MH i2c: 01 [12:01:21]MH_I2C_Read... [12:01:21]*** Stop cut motor [12:01:21]*** Cut end [12:01:21]Read from MH i2c: 01 07 00 [12:01:21]MH_I2C_Read... [12:01:21]Read from MH i2c: 01 07 00 BF 92 00 00 00 00 00 FF 0F 66 [12:01:21]process_action print_text done [12:01:21]requested_data is exist [12:01:21]produce_requested_data [12:01:21]requested_item fm.sn is exist - process it [12:01:21]wFMCommunicate request_size=4 [12:01:21]MH_SAM_APDU [12:01:21]CAPDU: 80 11 00 00 [12:01:21]Write to MH i2c: E2 08 00 C0 92 80 11 00 00 00 00 00 00 CC [12:01:21]Write i2c OK [12:01:21]MH_I2C_Read... [12:01:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:01:21]Read from MH i2c: E2 [12:01:21]MH_I2C_Read... [12:01:21]Read from MH i2c: E2 17 00 [12:01:21]MH_I2C_Read... [12:01:21]Read from MH i2c: E2 17 00 C0 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 1B [12:01:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:01:21]wFMCommunicate OK [12:01:21]requested_item fd.num is exist - process it [12:01:21]SAM_PROTO_GetFieldsCounters [12:01:21]wFMCommunicate request_size=4 [12:01:21]MH_SAM_APDU [12:01:21]CAPDU: 80 13 00 00 [12:01:21]Write to MH i2c: E2 08 00 C1 92 80 13 00 00 00 00 00 00 CF [12:01:21]Write i2c OK [12:01:21]MH_I2C_Read... [12:01:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:01:21]Read from MH i2c: E2 [12:01:21]MH_I2C_Read... [12:01:21]Read from MH i2c: E2 62 00 [12:01:21]MH_I2C_Read... [12:01:21]Read from MH i2c: E2 62 00 C1 92 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 17 72 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 69 [12:01:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 17 72 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:01:21]wFMCommunicate OK [12:01:21]SAM_PROTO_GetFieldsCounters done [12:01:21]requested_item shift.num is exist - process it [12:01:21]requested_item shift.opened is exist - process it [12:01:21]req_shift_opened [12:01:21]FM_GetShiftState [12:01:21]SAM_PROTO_GetShiftState [12:01:21]wFMCommunicate request_size=4 [12:01:21]MH_SAM_APDU [12:01:21]CAPDU: 80 13 01 00 [12:01:21]Write to MH i2c: E2 08 00 C2 92 80 13 01 00 00 00 00 00 D1 [12:01:21]Write i2c OK [12:01:21]MH_I2C_Read... [12:01:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:01:21]Read from MH i2c: E2 [12:01:21]MH_I2C_Read... [12:01:21]Read from MH i2c: E2 0E 00 [12:01:21]MH_I2C_Read... [12:01:21]Read from MH i2c: E2 0E 00 C2 92 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 7D [12:01:21]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [12:01:21]wFMCommunicate OK [12:01:21]SAM_PROTO_GetShiftState done [12:01:21]FM_GetShiftState done [12:01:21]req_shift_opened done [12:01:21]requested_item shift.open_date is exist - process it [12:01:21]req_shift_open_date [12:01:21]req_shift_open_date done [12:01:21]produce_requested_data done [12:01:21]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29207,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [12:01:21]process_action_free print_text [12:01:21]json_value_free [12:01:21]json_value_free done [12:01:21]process_json_proto returns [12:01:21]Send response to host [12:01:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29207,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [12:01:21]free response buf [12:01:21]execute_script done [12:01:21]execute_script returns [12:01:21]free content buf [12:01:21]Sock 10.Close socket [12:01:21]Sock 10.Thread stoped [12:01:22]OFD Sender: No OFD packet to send [12:01:27]OFD Sender: No OFD packet to send [12:01:32]OFD Sender: No OFD packet to send [12:01:35]int [12:01:35]Write to MH i2c: 01 00 00 C3 92 55 [12:01:35]*** FLAG_PRN_PAP1 set [12:01:35]Write i2c OK [12:01:35]MH_I2C_Read... [12:01:35]Read from MH i2c: 01 [12:01:35]MH_I2C_Read... [12:01:35]Read from MH i2c: 01 07 00 [12:01:35]MH_I2C_Read... [12:01:35]Read from MH i2c: 01 07 00 C3 92 00 01 00 00 00 FF 0F 6B [12:01:35]state=0 [12:01:35]No paper [12:01:35]int [12:01:35]Write to MH i2c: 01 00 00 C4 92 56 [12:01:35]*** FLAG_PRN_PAP2 set [12:01:35]Write i2c OK [12:01:35]MH_I2C_Read... [12:01:35]Read from MH i2c: 01 [12:01:35]MH_I2C_Read... [12:01:35]Read from MH i2c: 01 07 00 [12:01:35]MH_I2C_Read... [12:01:35]Read from MH i2c: 01 07 00 C4 92 00 03 00 00 00 FF 0F 6E [12:01:35]state=0 [12:01:35]No paper [12:01:35]Cover opened [12:01:37]OFD Sender: No OFD packet to send [12:01:40]Write to MH i2c: 01 00 00 C5 92 57 [12:01:40]Write i2c OK [12:01:40]MH_I2C_Read... [12:01:40]Read from MH i2c: 01 [12:01:40]MH_I2C_Read... [12:01:40]Read from MH i2c: 01 07 00 [12:01:40]MH_I2C_Read... [12:01:40]Read from MH i2c: 01 07 00 C5 92 00 03 00 00 00 FF 0F 6F [12:01:40]state=3 [12:01:40]No paper [12:01:40]Cover opened [12:01:42]OFD Sender: No OFD packet to send [12:01:42]int [12:01:42]Write to MH i2c: 01 00 00 C6 92 58 [12:01:42]*** FLAG_PRN_PAP2 reset [12:01:42]Write i2c OK [12:01:42]MH_I2C_Read... [12:01:42]Read from MH i2c: 01 [12:01:42]MH_I2C_Read... [12:01:42]Read from MH i2c: 01 07 00 [12:01:42]MH_I2C_Read... [12:01:42]Read from MH i2c: 01 07 00 C6 92 00 01 00 00 00 FF 0F 6E [12:01:42]state=3 [12:01:42]No paper [12:01:42]Cover closed [12:01:42]int [12:01:42]Write to MH i2c: 01 00 00 C7 92 59 [12:01:42]*** FLAG_PRN_PAP1 reset [12:01:42]Write i2c OK [12:01:42]MH_I2C_Read... [12:01:42]Read from MH i2c: 01 [12:01:42]MH_I2C_Read... [12:01:42]Read from MH i2c: 01 07 00 [12:01:42]MH_I2C_Read... [12:01:42]Read from MH i2c: 01 07 00 C7 92 00 00 00 00 00 FF 0F 6E [12:01:42]state=0 [12:01:47]OFD Sender: No OFD packet to send [12:01:52]OFD Sender: No OFD packet to send [12:01:57]OFD Sender: No OFD packet to send [12:02:02]OFD Sender: No OFD packet to send [12:02:07]OFD Sender: No OFD packet to send [12:02:12]OFD Sender: No OFD packet to send [12:02:17]OFD Sender: No OFD packet to send [12:02:22]OFD Sender: No OFD packet to send [12:02:27]OFD Sender: No OFD packet to send [12:02:32]OFD Sender: No OFD packet to send [12:02:37]OFD Sender: No OFD packet to send [12:02:42]OFD Sender: No OFD packet to send [12:02:47]OFD Sender: No OFD packet to send [12:02:52]OFD Sender: No OFD packet to send [12:02:53]accept exits with 7 [12:02:53]New connection [12:02:53]New thread 3066928484 created [12:02:53]Thread 3066785124 joined [12:02:53]Waiting for new connection... [12:02:53] Sock 7.Parse request [12:02:53]Sock 7.Check first char [12:02:53]Sock 7.First char is OK [12:02:53]request: POST /json_proto HTTP/1.0 [12:02:53]Method: POST [12:02:53]URL: /json_proto [12:02:53]Method is POST - this is cgi request [12:02:53]url: /json_proto [12:02:53]query_string will be loaded in cgi processing [12:02:53]execute_cgi json_proto POST (null) [12:02:53]execute_cgi path=json_proto method=POST [12:02:53]POST find Content-Length [12:02:53]Host: 172.17.33.3:8080 [12:02:53]Content-Length: 1164 [12:02:53]Content-Type: application/json [12:02:53] [12:02:53]POST finish read [12:02:53]Found Content-Length = 1164 [12:02:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043B\u0438\u043A\u0431\u0430\u0435\u0432\u0430. \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)347584\u000A14.04.2024 11:44\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 30.000 x 72.50\u000A\u0418\u0422\u041E\u0413: 2175.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30065223\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:02:53]execute_script... [12:02:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043B\u0438\u043A\u0431\u0430\u0435\u0432\u0430. \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)347584\u000A14.04.2024 11:44\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 30.000 x 72.50\u000A\u0418\u0422\u041E\u0413: 2175.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30065223\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:02:53]POST & json_proto [12:02:53]process_json_proto [12:02:53]json parsed OK: [12:02:53]protocol is kg_v1.0 [12:02:53]action value=print_text [12:02:53]process_action print_text [12:02:53]cmd_print_text [12:02:53]ExternCall_PrintAddStr [12:02:53]wPrintStart [12:02:53]Write to MH i2c: 01 00 00 C8 92 5A [12:02:53]Write i2c OK [12:02:53]MH_I2C_Read... [12:02:53]Read from MH i2c: 01 [12:02:53]MH_I2C_Read... [12:02:53]Read from MH i2c: 01 07 00 [12:02:53]MH_I2C_Read... [12:02:53]Read from MH i2c: 01 07 00 C8 92 00 00 00 00 00 FF 0F 6F [12:02:53]RasterBufferAndPrint [12:02:53]line *****ТОВАРНЫЙ ЧЕК***** [12:02:53]line АЗС 108 [12:02:53]line Партнер нефть [12:02:53]line 02508201610067 [12:02:53]line Кассир : Аликбаева. Д. [12:02:53]line Счет N : (1)347584 [12:02:53]line 14.04.2024 11:44 [12:02:53]line ПРОДАЖА [12:02:53]line ТРК (МРК, ГНК): 33 [12:02:53]line Вид ГСМ : 2710124500 [12:02:53]line Аи-95-К-5 [12:02:53]line 30.000 x 72.50 [12:02:53]line ИТОГ: 2175.00 [12:02:53]line Тип оплаты: Талоны: ТК ГПНА Online [12:02:53]line 30065223 [12:02:53]line ______________________ [12:02:53]line (подпись) [12:02:53]written 0, free lines is 4095 [12:02:53]Write to MH i2c: 01 00 00 DC 92 6E [12:02:53]Write i2c OK [12:02:53]MH_I2C_Read... [12:02:53]Read from MH i2c: 01 [12:02:53]MH_I2C_Read... [12:02:53]Read from MH i2c: 01 07 00 [12:02:53]MH_I2C_Read... [12:02:53]Read from MH i2c: 01 07 00 DC 92 00 00 00 00 00 11 0E 94 [12:02:53]RasterBufferAndPrint [12:02:53]line [12:02:53]line [12:02:53]line [12:02:53]line [12:02:53]line [12:02:53]written 0, free lines is 3602 [12:02:53]MH_Cut [12:02:53]Write to MH i2c: D1 01 00 E3 92 01 47 [12:02:53]Write i2c OK [12:02:53]MH_I2C_Read... [12:02:53]Read from MH i2c: D1 [12:02:53]MH_I2C_Read... [12:02:53]Read from MH i2c: D1 01 00 [12:02:53]MH_I2C_Read... [12:02:53]Read from MH i2c: D1 01 00 E3 92 00 46 [12:02:53]Write to MH i2c: 01 00 00 E4 92 76 [12:02:53]Write i2c OK [12:02:53]MH_I2C_Read... [12:02:54]*** Cut start [12:02:54]*** Partial cut [12:02:54]*** CUTSNS_PIN = 1 [12:02:54]*** CUTSNS_PIN = 0 [12:02:54]*** Brake cut motor [12:02:54]Read from MH i2c: 01 [12:02:54]MH_I2C_Read... [12:02:54]Read from MH i2c: 01 07 00 [12:02:54]MH_I2C_Read... [12:02:54]*** Stop cut motor [12:02:54]*** Cut end [12:02:54]Read from MH i2c: 01 07 00 E4 92 00 00 00 00 00 FF 0F 8B [12:02:54]process_action print_text done [12:02:54]requested_data is exist [12:02:54]produce_requested_data [12:02:54]requested_item fm.sn is exist - process it [12:02:54]wFMCommunicate request_size=4 [12:02:54]MH_SAM_APDU [12:02:54]CAPDU: 80 11 00 00 [12:02:54]Write to MH i2c: E2 08 00 E5 92 80 11 00 00 00 00 00 00 F1 [12:02:54]Write i2c OK [12:02:54]MH_I2C_Read... [12:02:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:54]Read from MH i2c: E2 [12:02:54]MH_I2C_Read... [12:02:54]Read from MH i2c: E2 17 00 [12:02:54]MH_I2C_Read... [12:02:54]Read from MH i2c: E2 17 00 E5 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 40 [12:02:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:02:54]wFMCommunicate OK [12:02:54]requested_item fd.num is exist - process it [12:02:54]SAM_PROTO_GetFieldsCounters [12:02:54]wFMCommunicate request_size=4 [12:02:54]MH_SAM_APDU [12:02:54]CAPDU: 80 13 00 00 [12:02:54]Write to MH i2c: E2 08 00 E6 92 80 13 00 00 00 00 00 00 F4 [12:02:54]Write i2c OK [12:02:54]MH_I2C_Read... [12:02:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:02:55]Read from MH i2c: E2 [12:02:55]MH_I2C_Read... [12:02:55]Read from MH i2c: E2 62 00 [12:02:55]MH_I2C_Read... [12:02:55]Read from MH i2c: E2 62 00 E6 92 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 17 72 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 8E [12:02:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 17 72 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:02:55]wFMCommunicate OK [12:02:55]SAM_PROTO_GetFieldsCounters done [12:02:55]requested_item shift.num is exist - process it [12:02:55]requested_item shift.opened is exist - process it [12:02:55]req_shift_opened [12:02:55]FM_GetShiftState [12:02:55]SAM_PROTO_GetShiftState [12:02:55]wFMCommunicate request_size=4 [12:02:55]MH_SAM_APDU [12:02:55]CAPDU: 80 13 01 00 [12:02:55]Write to MH i2c: E2 08 00 E7 92 80 13 01 00 00 00 00 00 F6 [12:02:55]Write i2c OK [12:02:55]MH_I2C_Read... [12:02:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:55]Read from MH i2c: E2 [12:02:55]MH_I2C_Read... [12:02:55]Read from MH i2c: E2 0E 00 [12:02:55]MH_I2C_Read... [12:02:55]Read from MH i2c: E2 0E 00 E7 92 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 A2 [12:02:55]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [12:02:55]wFMCommunicate OK [12:02:55]SAM_PROTO_GetShiftState done [12:02:55]FM_GetShiftState done [12:02:55]req_shift_opened done [12:02:55]requested_item shift.open_date is exist - process it [12:02:55]req_shift_open_date [12:02:55]req_shift_open_date done [12:02:55]produce_requested_data done [12:02:55]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29207,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [12:02:55]process_action_free print_text [12:02:55]json_value_free [12:02:55]json_value_free done [12:02:55]process_json_proto returns [12:02:55]Send response to host [12:02:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29207,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [12:02:55]free response buf [12:02:55]execute_script done [12:02:55]execute_script returns [12:02:55]free content buf [12:02:55]Sock 7.Close socket [12:02:55]Sock 7.Thread stoped [12:02:57]OFD Sender: No OFD packet to send [12:03:02]OFD Sender: No OFD packet to send [12:03:07]OFD Sender: No OFD packet to send [12:03:12]OFD Sender: No OFD packet to send [12:03:17]OFD Sender: No OFD packet to send [12:03:22]OFD Sender: No OFD packet to send [12:03:27]OFD Sender: No OFD packet to send [12:03:32]OFD Sender: No OFD packet to send [12:03:37]OFD Sender: No OFD packet to send [12:03:42]OFD Sender: No OFD packet to send [12:03:47]OFD Sender: No OFD packet to send [12:03:52]OFD Sender: No OFD packet to send [12:03:57]OFD Sender: No OFD packet to send [12:04:02]OFD Sender: No OFD packet to send [12:04:07]OFD Sender: No OFD packet to send [12:04:12]OFD Sender: No OFD packet to send [12:04:17]OFD Sender: No OFD packet to send [12:04:22]OFD Sender: No OFD packet to send [12:04:27]OFD Sender: No OFD packet to send [12:04:32]OFD Sender: No OFD packet to send [12:04:37]OFD Sender: No OFD packet to send [12:04:42]OFD Sender: No OFD packet to send [12:04:47]OFD Sender: No OFD packet to send [12:04:52]OFD Sender: No OFD packet to send [12:04:57]OFD Sender: No OFD packet to send [12:05:02]OFD Sender: No OFD packet to send [12:05:07]OFD Sender: No OFD packet to send [12:05:12]OFD Sender: No OFD packet to send [12:05:17]OFD Sender: No OFD packet to send [12:05:22]OFD Sender: No OFD packet to send [12:05:27]OFD Sender: No OFD packet to send [12:05:32]OFD Sender: No OFD packet to send [12:05:37]OFD Sender: No OFD packet to send [12:05:42]OFD Sender: No OFD packet to send [12:05:47]OFD Sender: No OFD packet to send [12:05:52]OFD Sender: No OFD packet to send [12:05:57]OFD Sender: No OFD packet to send [12:06:02]OFD Sender: No OFD packet to send [12:06:07]OFD Sender: No OFD packet to send [12:06:12]OFD Sender: No OFD packet to send [12:06:17]OFD Sender: No OFD packet to send [12:06:22]OFD Sender: No OFD packet to send [12:06:27]OFD Sender: No OFD packet to send [12:06:32]OFD Sender: No OFD packet to send [12:06:37]OFD Sender: No OFD packet to send [12:06:42]OFD Sender: No OFD packet to send [12:06:47]OFD Sender: No OFD packet to send [12:06:52]OFD Sender: No OFD packet to send [12:06:57]OFD Sender: No OFD packet to send [12:07:02]OFD Sender: No OFD packet to send [12:07:07]OFD Sender: No OFD packet to send [12:07:12]OFD Sender: No OFD packet to send [12:07:17]OFD Sender: No OFD packet to send [12:07:22]OFD Sender: No OFD packet to send [12:07:27]OFD Sender: No OFD packet to send [12:07:32]OFD Sender: No OFD packet to send [12:07:37]OFD Sender: No OFD packet to send [12:07:42]OFD Sender: No OFD packet to send [12:07:47]OFD Sender: No OFD packet to send [12:07:52]OFD Sender: No OFD packet to send [12:07:57]OFD Sender: No OFD packet to send [12:08:02]OFD Sender: No OFD packet to send [12:08:07]OFD Sender: No OFD packet to send [12:08:12]OFD Sender: No OFD packet to send [12:08:17]OFD Sender: No OFD packet to send [12:08:22]OFD Sender: No OFD packet to send [12:08:27]OFD Sender: No OFD packet to send [12:08:32]OFD Sender: No OFD packet to send [12:08:37]OFD Sender: No OFD packet to send [12:08:42]OFD Sender: No OFD packet to send [12:08:47]OFD Sender: No OFD packet to send [12:08:52]OFD Sender: No OFD packet to send [12:08:57]OFD Sender: No OFD packet to send [12:09:02]OFD Sender: No OFD packet to send [12:09:07]OFD Sender: No OFD packet to send [12:09:12]OFD Sender: No OFD packet to send [12:09:17]OFD Sender: No OFD packet to send [12:09:22]OFD Sender: No OFD packet to send [12:09:27]OFD Sender: No OFD packet to send [12:09:32]OFD Sender: No OFD packet to send [12:09:37]OFD Sender: No OFD packet to send [12:09:42]OFD Sender: No OFD packet to send [12:09:47]OFD Sender: No OFD packet to send [12:09:52]OFD Sender: No OFD packet to send [12:09:57]OFD Sender: No OFD packet to send [12:10:02]OFD Sender: No OFD packet to send [12:10:07]OFD Sender: No OFD packet to send [12:10:12]OFD Sender: No OFD packet to send [12:10:17]OFD Sender: No OFD packet to send [12:10:20]accept exits with 9 [12:10:20]New connection [12:10:20]New thread 3066785124 created [12:10:20]Thread 3066928484 joined [12:10:20]Waiting for new connection... [12:10:20] Sock 9.Parse request [12:10:20]Sock 9.Check first char [12:10:20]Sock 9.First char is OK [12:10:20]request: POST /json_proto HTTP/1.0 [12:10:20]Method: POST [12:10:20]URL: /json_proto [12:10:20]Method is POST - this is cgi request [12:10:20]url: /json_proto [12:10:20]query_string will be loaded in cgi processing [12:10:20]execute_cgi json_proto POST (null) [12:10:20]execute_cgi path=json_proto method=POST [12:10:20]POST find Content-Length [12:10:20]Host: 172.17.33.3:8080 [12:10:20]Content-Length: 677 [12:10:20]Content-Type: application/json [12:10:20] [12:10:20]POST finish read [12:10:20]Found Content-Length = 677 [12:10:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347585", "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:10:20]execute_script... [12:10: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)347585", "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:10:20]POST & json_proto [12:10:20]process_json_proto [12:10:20]json parsed OK: [12:10:20]protocol is kg_v1.0 [12:10:20]action value=close_receipt [12:10:20]process_action close_receipt [12:10:20]cmd_close_receipt [12:10:20]MH_GetDate [12:10:20]Write to MH i2c: F0 00 00 E8 92 69 [12:10:20]Write i2c OK [12:10:20]MH_I2C_Read... [12:10:20]Read from MH i2c: F0 [12:10:20]MH_I2C_Read... [12:10:20]Read from MH i2c: F0 09 00 [12:10:20]MH_I2C_Read... [12:10:20]Read from MH i2c: F0 09 00 E8 92 00 B6 C7 1B 66 23 5B 8F 65 E2 [12:10:20]GetLastDocTimeStamp 1713095438 [12:10:20]current date 1713096630 [12:10:20]FM_GetShiftState [12:10:20]SAM_PROTO_GetShiftState [12:10:20]wFMCommunicate request_size=4 [12:10:20]MH_SAM_APDU [12:10:20]CAPDU: 80 13 01 00 [12:10:20]Write to MH i2c: E2 08 00 E9 92 80 13 01 00 00 00 00 00 F8 [12:10:20]Write i2c OK [12:10:20]MH_I2C_Read... [12:10:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:20]Read from MH i2c: E2 [12:10:20]MH_I2C_Read... [12:10:20]Read from MH i2c: E2 0E 00 [12:10:20]MH_I2C_Read... [12:10:20]Read from MH i2c: E2 0E 00 E9 92 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 A4 [12:10:20]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [12:10:20]wFMCommunicate OK [12:10:20]SAM_PROTO_GetShiftState done [12:10:20]FM_GetShiftState done [12:10:20]opened in 1713053951 [12:10:20]opened+sec_in_day 1713140351 [12:10:20]quantity*price = 60056 [12:10:20]sum+1 = 60057 [12:10:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.78 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 118 14.04.2024 12:10 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29208 ФПД: 231823731199881 1/tax-web-control/client/api/v1/ticket?date=20240414T121030&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29208&fm=231823731199881&tin=02508201610067®Number=0000138879044617&sum=60000 [12:10:21]StoreToDocumentArchive [12:10:21]shift 116 fd 29208 [12:10:21]save to /storage/0116/doc_00029208 [12:10:21]save last doc name /storage/0116/doc_00029208 to /storage/kkm_last_doc_name [12:10:21]save OK [12:10:21]Clear old archive folders... [12:10:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:10:21]tlvbuf is 01214460 [12:10:21]SAM_PROTO_ClearQueue [12:10:21]wFMCommunicate request_size=4 [12:10:21]MH_SAM_APDU [12:10:21]CAPDU: 80 09 00 00 [12:10:21]Write to MH i2c: E2 08 00 F6 92 80 09 00 00 00 00 00 00 FA [12:10:21]Write i2c OK [12:10:21]MH_I2C_Read... [12:10:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:10:21]Read from MH i2c: E2 [12:10:21]MH_I2C_Read... [12:10:21]Read from MH i2c: E2 03 00 [12:10:21]MH_I2C_Read... [12:10:21]Read from MH i2c: E2 03 00 F6 92 00 90 00 FC [12:10:21]RAPDU: 90 00 [12:10:21]wFMCommunicate OK [12:10:21]SAM_PROTO_ClearQueue done [12:10:21]KKMCreateOFDPacket [12:10:21]OFDProtocolAddRootSTLVToBuf [12:10:21]FM_MakeSignedData [12:10:21]FM_MakeSignedData [12:10:21]SAM_PROTO_SignData [12:10:21]wFMCommunicate request_size=4 [12:10:21]MH_SAM_APDU [12:10:21]CAPDU: 80 0D 01 02 [12:10:21]Write to MH i2c: E2 08 00 F7 92 80 0D 01 02 00 00 00 00 02 [12:10:21]Write i2c OK [12:10:21]MH_I2C_Read... [12:10:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:10:21]Read from MH i2c: E2 [12:10:21]MH_I2C_Read... [12:10:21]Read from MH i2c: E2 03 00 [12:10:21]MH_I2C_Read... [12:10:21]Read from MH i2c: E2 03 00 F7 92 00 90 00 FD [12:10:21]RAPDU: 90 00 [12:10:21]wFMCommunicate OK [12:10:21]wFMCommunicate request_size=255 [12:10:21]MH_SAM_APDU [12:10: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 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 76 00 00 00 F4 03 04 00 B6 C7 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 18 72 00 00 35 04 06 00 D2 [12:10:21]Write to MH i2c: E2 02 01 F8 92 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 76 00 00 00 F4 03 04 00 B6 C7 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 18 72 00 00 35 04 06 00 D2 00 00 71 [12:10:21]Write i2c OK [12:10:21]MH_I2C_Read... [12:10:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:10:21]Read from MH i2c: E2 [12:10:21]MH_I2C_Read... [12:10:21]Read from MH i2c: E2 03 00 [12:10:21]MH_I2C_Read... [12:10:21]Read from MH i2c: E2 03 00 F8 92 00 90 00 FE [12:10:21]RAPDU: 90 00 [12:10:21]wFMCommunicate OK [12:10:21]wFMCommunicate request_size=10 [12:10:21]MH_SAM_APDU [12:10:21]CAPDU: 80 0D 02 02 05 D7 AB 26 0F 89 [12:10:21]Write to MH i2c: E2 0D 00 F9 92 80 0D 02 02 05 00 D7 AB 26 0F 89 00 00 4F [12:10:21]Write i2c OK [12:10:21]MH_I2C_Read... [12:10:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:10:22]Read from MH i2c: E2 [12:10:22]MH_I2C_Read... [12:10:22]Read from MH i2c: E2 03 00 [12:10:22]MH_I2C_Read... [12:10:22]Read from MH i2c: E2 03 00 F9 92 00 90 00 FF [12:10:22]RAPDU: 90 00 [12:10:22]wFMCommunicate OK [12:10:22]wFMCommunicate request_size=4 [12:10:22]MH_SAM_APDU [12:10:22]CAPDU: 80 0D 03 02 [12:10:22]Write to MH i2c: E2 08 00 FA 92 80 0D 03 02 00 00 00 00 07 [12:10:22]Write i2c OK [12:10:22]MH_I2C_Read... [12:10:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:10:22]Read from MH i2c: E2 [12:10:22]MH_I2C_Read... [12:10:22]Read from MH i2c: E2 0B 00 [12:10:22]MH_I2C_Read... [12:10:22]Read from MH i2c: E2 0B 00 FA 92 00 FB CC 4C F9 DF A1 BA A7 90 00 F5 [12:10:22]RAPDU: FB CC 4C F9 DF A1 BA A7 90 00 [12:10:22]wFMCommunicate OK [12:10:22]SAM_PROTO_SignData done [12:10:22]FM_MakeSignedData done [12:10:22]CreateOFDProtocolMessage [12:10:22]wFMCommunicate request_size=4 [12:10:22]MH_SAM_APDU [12:10:22]CAPDU: 80 11 00 00 [12:10:22]Write to MH i2c: E2 08 00 FB 92 80 11 00 00 00 00 00 00 07 [12:10:22]Write i2c OK [12:10:22]MH_I2C_Read... [12:10:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:22]Read from MH i2c: E2 [12:10:22]MH_I2C_Read... [12:10:22]Read from MH i2c: E2 17 00 [12:10:22]MH_I2C_Read... [12:10:22]Read from MH i2c: E2 17 00 FB 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 56 [12:10:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:10:22]wFMCommunicate OK [12:10:22]CreateOFDProtocolMessage done [12:10:22]OFDSenderStorePacket 29208 [12:10:22]StoreOFDPacket docnum=29208 [12:10:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 4E 99 07 01 AB DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 76 00 00 00 F4 03 04 00 B6 C7 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 18 72 00 00 35 04 06 00 D2 D7 AB 26 0F 89 FB CC 4C F9 DF A1 BA A7 [12:10:22]CheckFolder [12:10:22]dirname=/storage/ofd_packets [12:10:22]CheckFolder done [12:10:22]ProducePacketName [12:10:22]name=ofd_packets/00029208 [12:10:22]NVStorageSaveData ofd_packets/00029208 [12:10:22]File name is /storage/ofd_packets/00029208 [12:10:22]Write 301 bytes [12:10:22]NVStorageSaveData done [12:10:22]OFDSenderStorePacket done [12:10:22]KKMCreateOFDPacket done [12:10:22]NVStorageSaveData kkm_last_timestamp [12:10:22]File name is /storage/kkm_last_timestamp [12:10:22]Write 4 bytes [12:10:22]NVStorageSaveData done [12:10:22]ExternCall_PrintAddStr [12:10:22]wPrintStart [12:10:22]Write to MH i2c: 01 00 00 FC 92 8E [12:10:22]Write i2c OK [12:10:22]MH_I2C_Read... [12:10:22]Read from MH i2c: 01 [12:10:22]MH_I2C_Read... [12:10:22]Read from MH i2c: 01 07 00 [12:10:22]MH_I2C_Read... [12:10:22]Read from MH i2c: 01 07 00 FC 92 00 00 00 00 00 FF 0F A3 [12:10:22]RasterBufferAndPrint [12:10:22]line Счет N : (1)347585 [12:10:22]line ИНН: 02508201610067 [12:10:22]line Контрольно-Кассовый Чек [12:10:22]line ПРОДАЖА [12:10:22]line ТРК (МРК, ГНК) : 32 [12:10:22]line Товар: 2710124130 [12:10:22]line Аи-92-К-5 [12:10:22]line 9.340 * 64.30 [12:10:22]line = 600.56 [12:10:22]line НДС 12% НСП 1% [12:10:22]line > о реализуемом товаре [12:10:22]line ОКРУГЛЕНИЕ: -0.56 [12:10:22]line ИТОГО: 600.00 [12:10:22]line Внесено: 600.00 [12:10:22]line СДАЧА: 0.00 [12:10:22]line НСП 1% : 5.31 [12:10:22]line НДС 12% : 63.78 [12:10:22]line Наличными: 600.00 [12:10:22]line Безнал.: 0.00 [12:10:22]line Место: АЗС № 108 "Партнер Нефть" [12:10:22]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [12:10:22]line СНО: Общий режим [12:10:22]line Чек 118 14.04.2024 12:10 [12:10:22]line Смена: 116 ФФД: 1.0 [12:10:22]line ЗНМ: 0300000027 [12:10:22]line РНМ: 0000138879044617 [12:10:22]line Версия ККМ: 001 [12:10:22]line ФМ: 0000000000963154 [12:10:22]line ФД: 29208 [12:10:22]line ФПД: 231823731199881 [12:10:22]line 1/tax-web-control/client/api/v1/ticket?date=20240414T121030&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29208&fm=231823731199881&tin=02508201610067®Number=0000138879044617&sum=60000 [12:10:22]OFD Sender: Processing packet 29208 [packets to send 8, broken 7] [12:10:22]ProducePacketName [12:10:22]name=ofd_packets/00029208 [12:10:22]OFD Sender: To server: pG, [12:10:22]CommunicateWithHost lk.salyk.kg:30040 [12:10:22]ConnectInit lk.salyk.kg [12:10:22]written 0, free lines is 4095 [12:10:22]Connected sock=10 [12:10:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 4E 99 07 01 AB DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 76 00 00 00 F4 03 04 00 B6 C7 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 18 72 00 00 35 04 06 00 D2 D7 AB 26 0F 89 FB CC 4C F9 DF A1 BA A7 [12:10:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 EA FE 47 00 54 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 18 72 00 00 F4 03 04 00 5A 72 1B 66 B6 04 01 00 00 02 BB FF 6E 95 F7 B7 82 [12:10:22]CommunicateWithHost err = 0 [12:10:22]CheckOFDResponse [12:10:22]1017 (14) - 77093643461234 [12:10:22]1041 (16) - 0000000000963154 [12:10:22]1040 (4) - 29208 [12:10:22]1012 (4) - 14.04.2024 06:06 [12:10:22]1206 (1) - 0 [12:10:22]OFD Sender: Remove packet 29208 [12:10:22]ProducePacketName [12:10:22]name=ofd_packets/00029208 [12:10:22]NVStorageDeleteData [12:10:22]Write to MH i2c: 01 00 00 26 93 B9 [12:10:22]Write i2c OK [12:10:22]MH_I2C_Read... [12:10:22]Read from MH i2c: 01 [12:10:22]MH_I2C_Read... [12:10:22]Read from MH i2c: 01 07 00 [12:10:22]MH_I2C_Read... [12:10:22]Read from MH i2c: 01 07 00 26 93 00 00 00 00 00 C0 0C 8C [12:10:22]RasterBufferAndPrint [12:10:22]line [12:10:22]line [12:10:22]line [12:10:22]line [12:10:22]line [12:10:22]written 0, free lines is 3268 [12:10:22]MH_Cut [12:10:22]Write to MH i2c: D1 01 00 2D 93 01 92 [12:10:22]Write i2c OK [12:10:22]MH_I2C_Read... [12:10:22]Read from MH i2c: D1 [12:10:22]MH_I2C_Read... [12:10:22]Read from MH i2c: D1 01 00 [12:10:22]MH_I2C_Read... [12:10:22]Read from MH i2c: D1 01 00 2D 93 00 91 [12:10:22]Write to MH i2c: 01 00 00 2E 93 C1 [12:10:22]Write i2c OK [12:10:22]MH_I2C_Read... [12:10:23]OFD Sender: No OFD packet to send [12:10:23]*** Cut start [12:10:23]*** Partial cut [12:10:23]*** CUTSNS_PIN = 1 [12:10:23]*** CUTSNS_PIN = 0 [12:10:24]*** Brake cut motor [12:10:24]Read from MH i2c: 01 [12:10:24]MH_I2C_Read... [12:10:24]*** Stop cut motor [12:10:24]*** Cut end [12:10:24]Read from MH i2c: 01 07 00 [12:10:24]MH_I2C_Read... [12:10:24]Read from MH i2c: 01 07 00 2E 93 00 00 00 00 00 FF 0F D6 [12:10:24]process_action close_receipt done [12:10:24]requested_data is exist [12:10:24]produce_requested_data [12:10:24]requested_item fm.sn is exist - process it [12:10:24]wFMCommunicate request_size=4 [12:10:24]MH_SAM_APDU [12:10:24]CAPDU: 80 11 00 00 [12:10:24]Write to MH i2c: E2 08 00 2F 93 80 11 00 00 00 00 00 00 3C [12:10:24]Write i2c OK [12:10:24]MH_I2C_Read... [12:10:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:24]Read from MH i2c: E2 [12:10:24]MH_I2C_Read... [12:10:24]Read from MH i2c: E2 17 00 [12:10:24]MH_I2C_Read... [12:10:24]Read from MH i2c: E2 17 00 2F 93 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 8B [12:10:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:10:24]wFMCommunicate OK [12:10:24]requested_item fd.num is exist - process it [12:10:24]SAM_PROTO_GetFieldsCounters [12:10:24]wFMCommunicate request_size=4 [12:10:24]MH_SAM_APDU [12:10:24]CAPDU: 80 13 00 00 [12:10:24]Write to MH i2c: E2 08 00 30 93 80 13 00 00 00 00 00 00 3F [12:10:24]Write i2c OK [12:10:24]MH_I2C_Read... [12:10:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:10:24]Read from MH i2c: E2 [12:10:24]MH_I2C_Read... [12:10:24]Read from MH i2c: E2 62 00 [12:10:24]MH_I2C_Read... [12:10:24]Read from MH i2c: E2 62 00 30 93 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 18 72 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [12:10:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 18 72 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:10:24]wFMCommunicate OK [12:10:24]SAM_PROTO_GetFieldsCounters done [12:10:24]requested_item shift.num is exist - process it [12:10:24]requested_item shift.opened is exist - process it [12:10:24]req_shift_opened [12:10:24]FM_GetShiftState [12:10:24]SAM_PROTO_GetShiftState [12:10:24]wFMCommunicate request_size=4 [12:10:24]MH_SAM_APDU [12:10:24]CAPDU: 80 13 01 00 [12:10:24]Write to MH i2c: E2 08 00 31 93 80 13 01 00 00 00 00 00 41 [12:10:24]Write i2c OK [12:10:24]MH_I2C_Read... [12:10:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:24]Read from MH i2c: E2 [12:10:24]MH_I2C_Read... [12:10:24]Read from MH i2c: E2 0E 00 [12:10:24]MH_I2C_Read... [12:10:24]Read from MH i2c: E2 0E 00 31 93 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 ED [12:10:24]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [12:10:24]wFMCommunicate OK [12:10:24]SAM_PROTO_GetShiftState done [12:10:24]FM_GetShiftState done [12:10:24]req_shift_opened done [12:10:24]requested_item shift.open_date is exist - process it [12:10:24]req_shift_open_date [12:10:24]req_shift_open_date done [12:10:24]produce_requested_data done [12:10:24]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29208,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [12:10:24]process_action_free close_receipt [12:10:24]json_value_free [12:10:24]json_value_free done [12:10:24]process_json_proto returns [12:10:24]Send response to host [12:10:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29208,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [12:10:24]free response buf [12:10:24]execute_script done [12:10:24]execute_script returns [12:10:24]free content buf [12:10:24]Sock 9.Close socket [12:10:24]Sock 9.Thread stoped [12:10:28]OFD Sender: No OFD packet to send [12:10:33]OFD Sender: No OFD packet to send [12:10:38]OFD Sender: No OFD packet to send [12:10:43]OFD Sender: No OFD packet to send [12:10:48]OFD Sender: No OFD packet to send [12:10:53]OFD Sender: No OFD packet to send [12:10:58]OFD Sender: No OFD packet to send [12:11:03]OFD Sender: No OFD packet to send [12:11:08]OFD Sender: No OFD packet to send [12:11:13]OFD Sender: No OFD packet to send [12:11:18]OFD Sender: No OFD packet to send [12:11:23]OFD Sender: No OFD packet to send [12:11:28]OFD Sender: No OFD packet to send [12:11:33]OFD Sender: No OFD packet to send [12:11:38]OFD Sender: No OFD packet to send [12:11:43]OFD Sender: No OFD packet to send [12:11:48]OFD Sender: No OFD packet to send [12:11:53]OFD Sender: No OFD packet to send [12:11:58]OFD Sender: No OFD packet to send [12:12:03]OFD Sender: No OFD packet to send [12:12:08]OFD Sender: No OFD packet to send [12:12:13]OFD Sender: No OFD packet to send [12:12:18]OFD Sender: No OFD packet to send [12:12:23]OFD Sender: No OFD packet to send [12:12:28]OFD Sender: No OFD packet to send [12:12:33]OFD Sender: No OFD packet to send [12:12:38]OFD Sender: No OFD packet to send [12:12:43]OFD Sender: No OFD packet to send [12:12:48]OFD Sender: No OFD packet to send [12:12:53]OFD Sender: No OFD packet to send [12:12:58]OFD Sender: No OFD packet to send [12:13:03]OFD Sender: No OFD packet to send [12:13:08]OFD Sender: No OFD packet to send [12:13:13]OFD Sender: No OFD packet to send [12:13:18]OFD Sender: No OFD packet to send [12:13:23]OFD Sender: No OFD packet to send [12:13:28]OFD Sender: No OFD packet to send [12:13:33]OFD Sender: No OFD packet to send [12:13:38]OFD Sender: No OFD packet to send [12:13:43]OFD Sender: No OFD packet to send [12:13:48]OFD Sender: No OFD packet to send [12:13:53]OFD Sender: No OFD packet to send [12:13:58]OFD Sender: No OFD packet to send [12:14:03]OFD Sender: No OFD packet to send [12:14:08]OFD Sender: No OFD packet to send [12:14:13]OFD Sender: No OFD packet to send [12:14:18]OFD Sender: No OFD packet to send [12:14:23]OFD Sender: No OFD packet to send [12:14:28]OFD Sender: No OFD packet to send [12:14:33]OFD Sender: No OFD packet to send [12:14:38]OFD Sender: No OFD packet to send [12:14:43]OFD Sender: No OFD packet to send [12:14:48]OFD Sender: No OFD packet to send [12:14:53]OFD Sender: No OFD packet to send [12:14:58]OFD Sender: No OFD packet to send [12:15:03]OFD Sender: No OFD packet to send [12:15:08]OFD Sender: No OFD packet to send [12:15:13]OFD Sender: No OFD packet to send [12:15:18]OFD Sender: No OFD packet to send [12:15:23]OFD Sender: No OFD packet to send [12:15:28]OFD Sender: No OFD packet to send [12:15:33]OFD Sender: No OFD packet to send [12:15:38]OFD Sender: No OFD packet to send [12:15:43]OFD Sender: No OFD packet to send [12:15:48]OFD Sender: No OFD packet to send [12:15:53]OFD Sender: No OFD packet to send [12:15:58]OFD Sender: No OFD packet to send [12:16:03]OFD Sender: No OFD packet to send [12:16:08]OFD Sender: No OFD packet to send [12:16:13]OFD Sender: No OFD packet to send [12:16:18]OFD Sender: No OFD packet to send [12:16:23]OFD Sender: No OFD packet to send [12:16:28]OFD Sender: No OFD packet to send [12:16:33]OFD Sender: No OFD packet to send [12:16:38]OFD Sender: No OFD packet to send [12:16:43]OFD Sender: No OFD packet to send [12:16:48]OFD Sender: No OFD packet to send [12:16:53]OFD Sender: No OFD packet to send [12:16:58]OFD Sender: No OFD packet to send [12:17:03]OFD Sender: No OFD packet to send [12:17:08]OFD Sender: No OFD packet to send [12:17:13]OFD Sender: No OFD packet to send [12:17:18]OFD Sender: No OFD packet to send [12:17:23]OFD Sender: No OFD packet to send [12:17:28]OFD Sender: No OFD packet to send [12:17:33]OFD Sender: No OFD packet to send [12:17:38]OFD Sender: No OFD packet to send [12:17:43]OFD Sender: No OFD packet to send [12:17:48]OFD Sender: No OFD packet to send [12:17:53]OFD Sender: No OFD packet to send [12:17:58]OFD Sender: No OFD packet to send [12:18:03]OFD Sender: No OFD packet to send [12:18:08]OFD Sender: No OFD packet to send [12:18:13]OFD Sender: No OFD packet to send [12:18:18]OFD Sender: No OFD packet to send [12:18:23]OFD Sender: No OFD packet to send [12:18:28]OFD Sender: No OFD packet to send [12:18:33]OFD Sender: No OFD packet to send [12:18:38]OFD Sender: No OFD packet to send [12:18:43]OFD Sender: No OFD packet to send [12:18:48]OFD Sender: No OFD packet to send [12:18:53]OFD Sender: No OFD packet to send [12:18:58]OFD Sender: No OFD packet to send [12:19:03]OFD Sender: No OFD packet to send [12:19:08]OFD Sender: No OFD packet to send [12:19:13]OFD Sender: No OFD packet to send [12:19:18]OFD Sender: No OFD packet to send [12:19:23]OFD Sender: No OFD packet to send [12:19:28]OFD Sender: No OFD packet to send [12:19:33]OFD Sender: No OFD packet to send [12:19:38]OFD Sender: No OFD packet to send [12:19:43]OFD Sender: No OFD packet to send [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:34]accept exits with 7 [12:20:34]New connection [12:20:34]New thread 3066928484 created [12:20:34]Thread 3066785124 joined [12:20:34]Waiting for new connection... [12:20:34] Sock 7.Parse request [12:20:34]Sock 7.Check first char [12:20:34]Sock 7.First char is OK [12:20:34]request: POST /json_proto HTTP/1.0 [12:20:34]Method: POST [12:20:34]URL: /json_proto [12:20:34]Method is POST - this is cgi request [12:20:34]url: /json_proto [12:20:34]query_string will be loaded in cgi processing [12:20:34]execute_cgi json_proto POST (null) [12:20:34]execute_cgi path=json_proto method=POST [12:20:34]POST find Content-Length [12:20:34]Host: 172.17.33.3:8080 [12:20:34]Content-Length: 679 [12:20:34]Content-Type: application/json [12:20:34] [12:20:34]POST finish read [12:20:34]Found Content-Length = 679 [12:20:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347586", "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.890, "sum" : 1005.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1005.00, "total" : 1005.00, "payments": [ { "type": 0, "sum" : 1005.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:20:34]execute_script... [12:20: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)347586", "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.890, "sum" : 1005.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1005.00, "total" : 1005.00, "payments": [ { "type": 0, "sum" : 1005.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:20:34]POST & json_proto [12:20:34]process_json_proto [12:20:34]json parsed OK: [12:20:34]protocol is kg_v1.0 [12:20:34]action value=close_receipt [12:20:34]process_action close_receipt [12:20:34]cmd_close_receipt [12:20:34]MH_GetDate [12:20:34]Write to MH i2c: F0 00 00 32 93 B4 [12:20:34]Write i2c OK [12:20:34]MH_I2C_Read... [12:20:34]Read from MH i2c: F0 [12:20:34]MH_I2C_Read... [12:20:34]Read from MH i2c: F0 09 00 [12:20:34]MH_I2C_Read... [12:20:34]Read from MH i2c: F0 09 00 32 93 00 1C CA 1B 66 23 5B 8F 65 96 [12:20:34]GetLastDocTimeStamp 1713096630 [12:20:34]current date 1713097244 [12:20:34]FM_GetShiftState [12:20:34]SAM_PROTO_GetShiftState [12:20:34]wFMCommunicate request_size=4 [12:20:34]MH_SAM_APDU [12:20:34]CAPDU: 80 13 01 00 [12:20:34]Write to MH i2c: E2 08 00 33 93 80 13 01 00 00 00 00 00 43 [12:20:34]Write i2c OK [12:20:34]MH_I2C_Read... [12:20:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:34]Read from MH i2c: E2 [12:20:34]MH_I2C_Read... [12:20:34]Read from MH i2c: E2 0E 00 [12:20:34]MH_I2C_Read... [12:20:34]Read from MH i2c: E2 0E 00 33 93 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 EF [12:20:34]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [12:20:34]wFMCommunicate OK [12:20:34]SAM_PROTO_GetShiftState done [12:20:34]FM_GetShiftState done [12:20:34]opened in 1713053951 [12:20:34]opened+sec_in_day 1713140351 [12:20:34]quantity*price = 100563 [12:20:34]sum+1 = 100565 [12:20:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 1005.00 Внесено: 1005.00 СДАЧА: 0.00 НСП 1% : 8.90 НДС 12% : 106.79 Наличными: 1005.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 119 14.04.2024 12:20 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29209 ФПД: 29589276103227 1/tax-web-control/client/api/v1/ticket?date=20240414T122044&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29209&fm=29589276103227&tin=02508201610067®Number=0000138879044617&sum=100500 [12:20:35]StoreToDocumentArchive [12:20:35]shift 116 fd 29209 [12:20:35]save to /storage/0116/doc_00029209 [12:20:35]save last doc name /storage/0116/doc_00029209 to /storage/kkm_last_doc_name [12:20:35]save OK [12:20:35]Clear old archive folders... [12:20:35]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:20:35]tlvbuf is 011E36A0 [12:20:35]SAM_PROTO_ClearQueue [12:20:35]wFMCommunicate request_size=4 [12:20:35]MH_SAM_APDU [12:20:35]CAPDU: 80 09 00 00 [12:20:35]Write to MH i2c: E2 08 00 40 93 80 09 00 00 00 00 00 00 45 [12:20:35]Write i2c OK [12:20:35]MH_I2C_Read... [12:20:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:20:35]Read from MH i2c: E2 [12:20:35]MH_I2C_Read... [12:20:35]Read from MH i2c: E2 03 00 [12:20:35]MH_I2C_Read... [12:20:35]Read from MH i2c: E2 03 00 40 93 00 90 00 47 [12:20:35]RAPDU: 90 00 [12:20:35]wFMCommunicate OK [12:20:35]SAM_PROTO_ClearQueue done [12:20:35]KKMCreateOFDPacket [12:20:35]OFDProtocolAddRootSTLVToBuf [12:20:35]FM_MakeSignedData [12:20:35]FM_MakeSignedData [12:20:35]SAM_PROTO_SignData [12:20:35]wFMCommunicate request_size=4 [12:20:35]MH_SAM_APDU [12:20:35]CAPDU: 80 0D 01 02 [12:20:35]Write to MH i2c: E2 08 00 41 93 80 0D 01 02 00 00 00 00 4D [12:20:35]Write i2c OK [12:20:35]MH_I2C_Read... [12:20:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:20:35]Read from MH i2c: E2 [12:20:35]MH_I2C_Read... [12:20:35]Read from MH i2c: E2 03 00 [12:20:35]MH_I2C_Read... [12:20:35]Read from MH i2c: E2 03 00 41 93 00 90 00 48 [12:20:35]RAPDU: 90 00 [12:20:35]wFMCommunicate OK [12:20:35]wFMCommunicate request_size=255 [12:20:35]MH_SAM_APDU [12:20: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 42 36 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D4 88 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 88 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 29 00 00 00 00 07 04 06 00 94 88 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 1C CA 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 19 72 00 00 35 04 06 00 1A E9 4A 4A [12:20:35]Write to MH i2c: E2 02 01 42 93 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 42 36 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D4 88 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 88 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 29 00 00 00 00 07 04 06 00 94 88 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 1C CA 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 19 72 00 00 35 04 06 00 1A E9 4A 4A 00 00 0B [12:20:35]Write i2c OK [12:20:35]MH_I2C_Read... [12:20:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:35]Read from MH i2c: E2 [12:20:35]MH_I2C_Read... [12:20:35]Read from MH i2c: E2 03 00 [12:20:35]MH_I2C_Read... [12:20:35]Read from MH i2c: E2 03 00 42 93 00 90 00 49 [12:20:35]RAPDU: 90 00 [12:20:35]wFMCommunicate OK [12:20:35]wFMCommunicate request_size=7 [12:20:35]MH_SAM_APDU [12:20:35]CAPDU: 80 0D 02 02 02 92 3B [12:20:35]Write to MH i2c: E2 0A 00 43 93 80 0D 02 02 02 00 92 3B 00 00 21 [12:20:35]Write i2c OK [12:20:35]MH_I2C_Read... [12:20:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:35]Read from MH i2c: E2 [12:20:35]MH_I2C_Read... [12:20:35]Read from MH i2c: E2 03 00 [12:20:35]MH_I2C_Read... [12:20:35]Read from MH i2c: E2 03 00 43 93 00 90 00 4A [12:20:35]RAPDU: 90 00 [12:20:35]wFMCommunicate OK [12:20:35]wFMCommunicate request_size=4 [12:20:35]MH_SAM_APDU [12:20:35]CAPDU: 80 0D 03 02 [12:20:35]Write to MH i2c: E2 08 00 44 93 80 0D 03 02 00 00 00 00 52 [12:20:35]Write i2c OK [12:20:35]MH_I2C_Read... [12:20:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:20:35]Read from MH i2c: E2 [12:20:35]MH_I2C_Read... [12:20:35]Read from MH i2c: E2 0B 00 [12:20:35]MH_I2C_Read... [12:20:35]Read from MH i2c: E2 0B 00 44 93 00 F1 8A AF B1 49 2D 15 8D 90 00 46 [12:20:35]RAPDU: F1 8A AF B1 49 2D 15 8D 90 00 [12:20:35]wFMCommunicate OK [12:20:35]SAM_PROTO_SignData done [12:20:35]FM_MakeSignedData done [12:20:35]CreateOFDProtocolMessage [12:20:35]wFMCommunicate request_size=4 [12:20:35]MH_SAM_APDU [12:20:35]CAPDU: 80 11 00 00 [12:20:35]Write to MH i2c: E2 08 00 45 93 80 11 00 00 00 00 00 00 52 [12:20:35]Write i2c OK [12:20:35]MH_I2C_Read... [12:20:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:35]Read from MH i2c: E2 [12:20:35]MH_I2C_Read... [12:20:35]Read from MH i2c: E2 17 00 [12:20:35]MH_I2C_Read... [12:20:35]Read from MH i2c: E2 17 00 45 93 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A1 [12:20:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:20:35]wFMCommunicate OK [12:20:35]CreateOFDProtocolMessage done [12:20:35]OFDSenderStorePacket 29209 [12:20:35]StoreOFDPacket docnum=29209 [12:20:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 FD 9B 04 01 C9 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 42 36 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D4 88 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 88 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 29 00 00 00 00 07 04 06 00 94 88 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 1C CA 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 19 72 00 00 35 04 06 00 1A E9 4A 4A 92 3B F1 8A AF B1 49 2D 15 8D [12:20:35]CheckFolder [12:20:35]dirname=/storage/ofd_packets [12:20:35]CheckFolder done [12:20:35]ProducePacketName [12:20:35]name=ofd_packets/00029209 [12:20:35]NVStorageSaveData ofd_packets/00029209 [12:20:35]File name is /storage/ofd_packets/00029209 [12:20:35]Write 298 bytes [12:20:35]NVStorageSaveData done [12:20:35]OFDSenderStorePacket done [12:20:35]KKMCreateOFDPacket done [12:20:35]NVStorageSaveData kkm_last_timestamp [12:20:35]File name is /storage/kkm_last_timestamp [12:20:35]Write 4 bytes [12:20:35]NVStorageSaveData done [12:20:35]ExternCall_PrintAddStr [12:20:35]wPrintStart [12:20:35]Write to MH i2c: 01 00 00 46 93 D9 [12:20:35]Write i2c OK [12:20:35]MH_I2C_Read... [12:20:35]Read from MH i2c: 01 [12:20:35]MH_I2C_Read... [12:20:35]Read from MH i2c: 01 07 00 [12:20:35]MH_I2C_Read... [12:20:35]Read from MH i2c: 01 07 00 46 93 00 00 00 00 00 FF 0F EE [12:20:35]RasterBufferAndPrint [12:20:35]line Счет N : (1)347586 [12:20:35]line ИНН: 02508201610067 [12:20:35]line Контрольно-Кассовый Чек [12:20:35]line ПРОДАЖА [12:20:35]line ТРК (МРК, ГНК) : 61 [12:20:35]line Товар: 2710194210 [12:20:35]line ДТ-К-5 [12:20:35]line 13.890 * 72.40 [12:20:35]line = 1005.64 [12:20:35]line НДС 12% НСП 1% [12:20:35]line > о реализуемом товаре [12:20:35]line ОКРУГЛЕНИЕ: -0.64 [12:20:35]line ИТОГО: 1005.00 [12:20:35]line Внесено: 1005.00 [12:20:35]line СДАЧА: 0.00 [12:20:35]line НСП 1% : 8.90 [12:20:35]line НДС 12% : 106.79 [12:20:35]line Наличными: 1005.00 [12:20:35]line Безнал.: 0.00 [12:20:35]line Место: АЗС № 108 "Партнер Нефть" [12:20:35]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [12:20:35]line СНО: Общий режим [12:20:35]line Чек 119 14.04.2024 12:20 [12:20:35]line Смена: 116 ФФД: 1.0 [12:20:35]line ЗНМ: 0300000027 [12:20:35]line РНМ: 0000138879044617 [12:20:35]line Версия ККМ: 001 [12:20:35]line ФМ: 0000000000963154 [12:20:35]line ФД: 29209 [12:20:35]line ФПД: 29589276103227 [12:20:36]line 1/tax-web-control/client/api/v1/ticket?date=20240414T122044&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29209&fm=29589276103227&tin=02508201610067®Number=0000138879044617&sum=100500 [12:20:36]OFD Sender: Processing packet 29209 [packets to send 8, broken 7] [12:20:36]ProducePacketName [12:20:36]name=ofd_packets/00029209 [12:20:36]OFD Sender: To server: pG, [12:20:36]CommunicateWithHost lk.salyk.kg:30040 [12:20:36]ConnectInit lk.salyk.kg [12:20:36]written 0, free lines is 4095 [12:20:36]Connected sock=10 [12:20:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 FD 9B 04 01 C9 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 42 36 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D4 88 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 88 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 29 00 00 00 00 07 04 06 00 94 88 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 1C CA 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 19 72 00 00 35 04 06 00 1A E9 4A 4A 92 3B F1 8A AF B1 49 2D 15 8D [12:20:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 15 A1 47 00 3C 77 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 19 72 00 00 F4 03 04 00 C0 74 1B 66 B6 04 01 00 00 56 A5 7B B8 3F 8C 88 8B [12:20:36]CommunicateWithHost err = 0 [12:20:36]CheckOFDResponse [12:20:36]1017 (14) - 77093643461234 [12:20:36]1041 (16) - 0000000000963154 [12:20:36]1040 (4) - 29209 [12:20:36]1012 (4) - 14.04.2024 06:16 [12:20:36]1206 (1) - 0 [12:20:36]OFD Sender: Remove packet 29209 [12:20:36]ProducePacketName [12:20:36]name=ofd_packets/00029209 [12:20:36]NVStorageDeleteData [12:20:36]Write to MH i2c: 01 00 00 70 93 03 [12:20:36]Write i2c OK [12:20:36]MH_I2C_Read... [12:20:36]Read from MH i2c: 01 [12:20:36]MH_I2C_Read... [12:20:36]Read from MH i2c: 01 07 00 [12:20:36]MH_I2C_Read... [12:20:36]Read from MH i2c: 01 07 00 70 93 00 00 00 00 00 CA 0C E0 [12:20:36]RasterBufferAndPrint [12:20:36]line [12:20:36]line [12:20:36]line [12:20:36]line [12:20:36]line [12:20:36]written 0, free lines is 3280 [12:20:36]MH_Cut [12:20:36]Write to MH i2c: D1 01 00 77 93 01 DC [12:20:36]Write i2c OK [12:20:36]MH_I2C_Read... [12:20:36]Read from MH i2c: D1 [12:20:36]MH_I2C_Read... [12:20:36]Read from MH i2c: D1 01 00 [12:20:36]MH_I2C_Read... [12:20:36]Read from MH i2c: D1 01 00 77 93 00 DB [12:20:36]Write to MH i2c: 01 00 00 78 93 0B [12:20:36]Write i2c OK [12:20:36]MH_I2C_Read... [12:20:37]OFD Sender: No OFD packet to send [12:20:37]*** Cut start [12:20:37]*** Partial cut [12:20:37]*** CUTSNS_PIN = 1 [12:20:37]*** CUTSNS_PIN = 0 [12:20:37]*** Brake cut motor [12:20:38]Read from MH i2c: 01 [12:20:38]MH_I2C_Read... [12:20:38]*** Stop cut motor [12:20:38]*** Cut end [12:20:38]Read from MH i2c: 01 07 00 [12:20:38]MH_I2C_Read... [12:20:38]Read from MH i2c: 01 07 00 78 93 00 00 00 00 00 FF 0F 20 [12:20:38]process_action close_receipt done [12:20:38]requested_data is exist [12:20:38]produce_requested_data [12:20:38]requested_item fm.sn is exist - process it [12:20:38]wFMCommunicate request_size=4 [12:20:38]MH_SAM_APDU [12:20:38]CAPDU: 80 11 00 00 [12:20:38]Write to MH i2c: E2 08 00 79 93 80 11 00 00 00 00 00 00 86 [12:20:38]Write i2c OK [12:20:38]MH_I2C_Read... [12:20:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:38]Read from MH i2c: E2 [12:20:38]MH_I2C_Read... [12:20:38]Read from MH i2c: E2 17 00 [12:20:38]MH_I2C_Read... [12:20:38]Read from MH i2c: E2 17 00 79 93 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D5 [12:20:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:20:38]wFMCommunicate OK [12:20:38]requested_item fd.num is exist - process it [12:20:38]SAM_PROTO_GetFieldsCounters [12:20:38]wFMCommunicate request_size=4 [12:20:38]MH_SAM_APDU [12:20:38]CAPDU: 80 13 00 00 [12:20:38]Write to MH i2c: E2 08 00 7A 93 80 13 00 00 00 00 00 00 89 [12:20:38]Write i2c OK [12:20:38]MH_I2C_Read... [12:20:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:20:38]Read from MH i2c: E2 [12:20:38]MH_I2C_Read... [12:20:38]Read from MH i2c: E2 62 00 [12:20:38]MH_I2C_Read... [12:20:38]Read from MH i2c: E2 62 00 7A 93 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 19 72 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 2B [12:20:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 19 72 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:20:38]wFMCommunicate OK [12:20:38]SAM_PROTO_GetFieldsCounters done [12:20:38]requested_item shift.num is exist - process it [12:20:38]requested_item shift.opened is exist - process it [12:20:38]req_shift_opened [12:20:38]FM_GetShiftState [12:20:38]SAM_PROTO_GetShiftState [12:20:38]wFMCommunicate request_size=4 [12:20:38]MH_SAM_APDU [12:20:38]CAPDU: 80 13 01 00 [12:20:38]Write to MH i2c: E2 08 00 7B 93 80 13 01 00 00 00 00 00 8B [12:20:38]Write i2c OK [12:20:38]MH_I2C_Read... [12:20:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:38]Read from MH i2c: E2 [12:20:38]MH_I2C_Read... [12:20:38]Read from MH i2c: E2 0E 00 [12:20:38]MH_I2C_Read... [12:20:38]Read from MH i2c: E2 0E 00 7B 93 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 37 [12:20:38]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [12:20:38]wFMCommunicate OK [12:20:38]SAM_PROTO_GetShiftState done [12:20:38]FM_GetShiftState done [12:20:38]req_shift_opened done [12:20:38]requested_item shift.open_date is exist - process it [12:20:38]req_shift_open_date [12:20:38]req_shift_open_date done [12:20:38]produce_requested_data done [12:20:38]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29209,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [12:20:38]process_action_free close_receipt [12:20:38]json_value_free [12:20:38]json_value_free done [12:20:38]process_json_proto returns [12:20:38]Send response to host [12:20:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29209,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [12:20:38]free response buf [12:20:38]execute_script done [12:20:38]execute_script returns [12:20:38]free content buf [12:20:38]Sock 7.Close socket [12:20:38]Sock 7.Thread stoped [12:20:42]OFD Sender: No OFD packet to send [12:20:47]OFD Sender: No OFD packet to send [12:20:52]OFD Sender: No OFD packet to send [12:20:57]OFD Sender: No OFD packet to send [12:21:02]OFD Sender: No OFD packet to send [12:21:07]OFD Sender: No OFD packet to send [12:21:12]OFD Sender: No OFD packet to send [12:21:17]OFD Sender: No OFD packet to send [12:21:22]OFD Sender: No OFD packet to send [12:21:27]OFD Sender: No OFD packet to send [12:21:32]OFD Sender: No OFD packet to send [12:21:37]OFD Sender: No OFD packet to send [12:21:42]OFD Sender: No OFD packet to send [12:21:47]OFD Sender: No OFD packet to send [12:21:52]OFD Sender: No OFD packet to send [12:21:57]OFD Sender: No OFD packet to send [12:22:02]OFD Sender: No OFD packet to send [12:22:07]OFD Sender: No OFD packet to send [12:22:12]OFD Sender: No OFD packet to send [12:22:17]OFD Sender: No OFD packet to send [12:22:22]OFD Sender: No OFD packet to send [12:22:27]OFD Sender: No OFD packet to send [12:22:32]OFD Sender: No OFD packet to send [12:22:37]OFD Sender: No OFD packet to send [12:22:42]OFD Sender: No OFD packet to send [12:22:47]OFD Sender: No OFD packet to send [12:22:52]OFD Sender: No OFD packet to send [12:22:57]OFD Sender: No OFD packet to send [12:23:02]OFD Sender: No OFD packet to send [12:23:07]OFD Sender: No OFD packet to send [12:23:12]OFD Sender: No OFD packet to send [12:23:17]OFD Sender: No OFD packet to send [12:23:22]OFD Sender: No OFD packet to send [12:23:27]OFD Sender: No OFD packet to send [12:23:32]OFD Sender: No OFD packet to send [12:23:37]OFD Sender: No OFD packet to send [12:23:39]accept exits with 9 [12:23:39]New connection [12:23:39]New thread 3066785124 created [12:23:39]Thread 3066928484 joined [12:23:39]Waiting for new connection... [12:23:39] Sock 9.Parse request [12:23:39]Sock 9.Check first char [12:23:39]Sock 9.First char is OK [12:23:39]request: POST /json_proto HTTP/1.0 [12:23:39]Method: POST [12:23:39]URL: /json_proto [12:23:39]Method is POST - this is cgi request [12:23:39]url: /json_proto [12:23:39]query_string will be loaded in cgi processing [12:23:39]execute_cgi json_proto POST (null) [12:23:39]execute_cgi path=json_proto method=POST [12:23:39]POST find Content-Length [12:23:39]Host: 172.17.33.3:8080 [12:23:39]Content-Length: 677 [12:23:39]Content-Type: application/json [12:23:39] [12:23:39]POST finish read [12:23:39]Found Content-Length = 677 [12:23:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347588", "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" ] } } [12:23:39]execute_script... [12:23: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)347588", "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" ] } } [12:23:39]POST & json_proto [12:23:39]process_json_proto [12:23:39]json parsed OK: [12:23:39]protocol is kg_v1.0 [12:23:39]action value=close_receipt [12:23:39]process_action close_receipt [12:23:39]cmd_close_receipt [12:23:39]MH_GetDate [12:23:39]Write to MH i2c: F0 00 00 7C 93 FE [12:23:39]Write i2c OK [12:23:39]MH_I2C_Read... [12:23:39]Read from MH i2c: F0 [12:23:39]MH_I2C_Read... [12:23:39]Read from MH i2c: F0 09 00 [12:23:39]MH_I2C_Read... [12:23:39]Read from MH i2c: F0 09 00 7C 93 00 D5 CA 1B 66 23 5B 8F 65 99 [12:23:39]GetLastDocTimeStamp 1713097244 [12:23:39]current date 1713097429 [12:23:39]FM_GetShiftState [12:23:39]SAM_PROTO_GetShiftState [12:23:39]wFMCommunicate request_size=4 [12:23:39]MH_SAM_APDU [12:23:39]CAPDU: 80 13 01 00 [12:23:39]Write to MH i2c: E2 08 00 7D 93 80 13 01 00 00 00 00 00 8D [12:23:39]Write i2c OK [12:23:39]MH_I2C_Read... [12:23:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:23:39]Read from MH i2c: E2 [12:23:39]MH_I2C_Read... [12:23:39]Read from MH i2c: E2 0E 00 [12:23:39]MH_I2C_Read... [12:23:39]Read from MH i2c: E2 0E 00 7D 93 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 39 [12:23:39]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [12:23:39]wFMCommunicate OK [12:23:39]SAM_PROTO_GetShiftState done [12:23:39]FM_GetShiftState done [12:23:39]opened in 1713053951 [12:23:39]opened+sec_in_day 1713140351 [12:23:39]quantity*price = 40058 [12:23:39]sum+1 = 40060 [12:23:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.54 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 120 14.04.2024 12:23 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29210 ФПД: 73374210689550 1/tax-web-control/client/api/v1/ticket?date=20240414T122349&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29210&fm=73374210689550&tin=02508201610067®Number=0000138879044617&sum=40000 [12:23:40]StoreToDocumentArchive [12:23:40]shift 116 fd 29210 [12:23:40]save to /storage/0116/doc_00029210 [12:23:40]save last doc name /storage/0116/doc_00029210 to /storage/kkm_last_doc_name [12:23:40]save OK [12:23:40]Clear old archive folders... [12:23:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:23:40]tlvbuf is 013416E0 [12:23:40]SAM_PROTO_ClearQueue [12:23:40]wFMCommunicate request_size=4 [12:23:40]MH_SAM_APDU [12:23:40]CAPDU: 80 09 00 00 [12:23:40]Write to MH i2c: E2 08 00 8A 93 80 09 00 00 00 00 00 00 8F [12:23:40]Write i2c OK [12:23:40]MH_I2C_Read... [12:23:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:23:40]Read from MH i2c: E2 [12:23:40]MH_I2C_Read... [12:23:40]Read from MH i2c: E2 03 00 [12:23:40]MH_I2C_Read... [12:23:40]Read from MH i2c: E2 03 00 8A 93 00 90 00 91 [12:23:40]RAPDU: 90 00 [12:23:40]wFMCommunicate OK [12:23:40]SAM_PROTO_ClearQueue done [12:23:40]KKMCreateOFDPacket [12:23:40]OFDProtocolAddRootSTLVToBuf [12:23:40]FM_MakeSignedData [12:23:40]FM_MakeSignedData [12:23:40]SAM_PROTO_SignData [12:23:40]wFMCommunicate request_size=4 [12:23:40]MH_SAM_APDU [12:23:40]CAPDU: 80 0D 01 02 [12:23:40]Write to MH i2c: E2 08 00 8B 93 80 0D 01 02 00 00 00 00 97 [12:23:40]Write i2c OK [12:23:40]MH_I2C_Read... [12:23:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:23:40]Read from MH i2c: E2 [12:23:40]MH_I2C_Read... [12:23:40]Read from MH i2c: E2 03 00 [12:23:40]MH_I2C_Read... [12:23:40]Read from MH i2c: E2 03 00 8B 93 00 90 00 92 [12:23:40]RAPDU: 90 00 [12:23:40]wFMCommunicate OK [12:23:40]wFMCommunicate request_size=255 [12:23:40]MH_SAM_APDU [12:23: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 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 78 00 00 00 F4 03 04 00 D5 CA 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1A 72 00 00 35 04 06 00 42 [12:23:40]Write to MH i2c: E2 02 01 8C 93 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 78 00 00 00 F4 03 04 00 D5 CA 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1A 72 00 00 35 04 06 00 42 00 00 1D [12:23:40]Write i2c OK [12:23:40]MH_I2C_Read... [12:23:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:23:41]Read from MH i2c: E2 [12:23:41]MH_I2C_Read... [12:23:41]Read from MH i2c: E2 03 00 [12:23:41]MH_I2C_Read... [12:23:41]Read from MH i2c: E2 03 00 8C 93 00 90 00 93 [12:23:41]RAPDU: 90 00 [12:23:41]wFMCommunicate OK [12:23:41]wFMCommunicate request_size=10 [12:23:41]MH_SAM_APDU [12:23:41]CAPDU: 80 0D 02 02 05 BB C3 C3 8A 0E [12:23:41]Write to MH i2c: E2 0D 00 8D 93 80 0D 02 02 05 00 BB C3 C3 8A 0E 00 00 7D [12:23:41]Write i2c OK [12:23:41]MH_I2C_Read... [12:23:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:23:41]Read from MH i2c: E2 [12:23:41]MH_I2C_Read... [12:23:41]Read from MH i2c: E2 03 00 [12:23:41]MH_I2C_Read... [12:23:41]Read from MH i2c: E2 03 00 8D 93 00 90 00 94 [12:23:41]RAPDU: 90 00 [12:23:41]wFMCommunicate OK [12:23:41]wFMCommunicate request_size=4 [12:23:41]MH_SAM_APDU [12:23:41]CAPDU: 80 0D 03 02 [12:23:41]Write to MH i2c: E2 08 00 8E 93 80 0D 03 02 00 00 00 00 9C [12:23:41]Write i2c OK [12:23:41]MH_I2C_Read... [12:23:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:23:41]Read from MH i2c: E2 [12:23:41]MH_I2C_Read... [12:23:41]Read from MH i2c: E2 0B 00 [12:23:41]MH_I2C_Read... [12:23:41]Read from MH i2c: E2 0B 00 8E 93 00 45 59 EB 7A EE B6 66 1B 90 00 C5 [12:23:41]RAPDU: 45 59 EB 7A EE B6 66 1B 90 00 [12:23:41]wFMCommunicate OK [12:23:41]SAM_PROTO_SignData done [12:23:41]FM_MakeSignedData done [12:23:41]CreateOFDProtocolMessage [12:23:41]wFMCommunicate request_size=4 [12:23:41]MH_SAM_APDU [12:23:41]CAPDU: 80 11 00 00 [12:23:41]Write to MH i2c: E2 08 00 8F 93 80 11 00 00 00 00 00 00 9C [12:23:41]Write i2c OK [12:23:41]MH_I2C_Read... [12:23:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:23:41]Read from MH i2c: E2 [12:23:41]MH_I2C_Read... [12:23:41]Read from MH i2c: E2 17 00 [12:23:41]MH_I2C_Read... [12:23:41]Read from MH i2c: E2 17 00 8F 93 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 EB [12:23:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:23:41]wFMCommunicate OK [12:23:41]CreateOFDProtocolMessage done [12:23:41]OFDSenderStorePacket 29210 [12:23:41]StoreOFDPacket docnum=29210 [12:23:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 06 4B 07 01 C4 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 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 78 00 00 00 F4 03 04 00 D5 CA 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1A 72 00 00 35 04 06 00 42 BB C3 C3 8A 0E 45 59 EB 7A EE B6 66 1B [12:23:41]CheckFolder [12:23:41]dirname=/storage/ofd_packets [12:23:41]CheckFolder done [12:23:41]ProducePacketName [12:23:41]name=ofd_packets/00029210 [12:23:41]NVStorageSaveData ofd_packets/00029210 [12:23:41]File name is /storage/ofd_packets/00029210 [12:23:41]Write 301 bytes [12:23:41]NVStorageSaveData done [12:23:41]OFDSenderStorePacket done [12:23:41]KKMCreateOFDPacket done [12:23:41]NVStorageSaveData kkm_last_timestamp [12:23:41]File name is /storage/kkm_last_timestamp [12:23:41]Write 4 bytes [12:23:41]NVStorageSaveData done [12:23:41]ExternCall_PrintAddStr [12:23:41]wPrintStart [12:23:41]Write to MH i2c: 01 00 00 90 93 23 [12:23:41]Write i2c OK [12:23:41]MH_I2C_Read... [12:23:41]Read from MH i2c: 01 [12:23:41]MH_I2C_Read... [12:23:41]Read from MH i2c: 01 07 00 [12:23:41]MH_I2C_Read... [12:23:41]Read from MH i2c: 01 07 00 90 93 00 00 00 00 00 FF 0F 38 [12:23:41]RasterBufferAndPrint [12:23:41]line Счет N : (1)347588 [12:23:41]line ИНН: 02508201610067 [12:23:41]line Контрольно-Кассовый Чек [12:23:41]line ПРОДАЖА [12:23:41]line ТРК (МРК, ГНК) : 32 [12:23:41]line Товар: 2710124130 [12:23:41]line Аи-92-К-5 [12:23:41]line 6.230 * 64.30 [12:23:41]line = 400.59 [12:23:41]line НДС 12% НСП 1% [12:23:41]line > о реализуемом товаре [12:23:41]line ОКРУГЛЕНИЕ: -0.59 [12:23:41]line ИТОГО: 400.00 [12:23:41]line Внесено: 400.00 [12:23:41]line СДАЧА: 0.00 [12:23:41]line НСП 1% : 3.54 [12:23:41]line НДС 12% : 42.54 [12:23:41]line Наличными: 400.00 [12:23:41]line Безнал.: 0.00 [12:23:41]line Место: АЗС № 108 "Партнер Нефть" [12:23:41]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [12:23:41]line СНО: Общий режим [12:23:41]line Чек 120 14.04.2024 12:23 [12:23:41]line Смена: 116 ФФД: 1.0 [12:23:41]line ЗНМ: 0300000027 [12:23:41]line РНМ: 0000138879044617 [12:23:41]line Версия ККМ: 001 [12:23:41]line ФМ: 0000000000963154 [12:23:41]line ФД: 29210 [12:23:41]line ФПД: 73374210689550 [12:23:41]line 1/tax-web-control/client/api/v1/ticket?date=20240414T122349&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29210&fm=73374210689550&tin=02508201610067®Number=0000138879044617&sum=40000 [12:23:41]OFD Sender: Processing packet 29210 [packets to send 8, broken 7] [12:23:41]ProducePacketName [12:23:41]name=ofd_packets/00029210 [12:23:41]OFD Sender: To server: pG, [12:23:41]CommunicateWithHost lk.salyk.kg:30040 [12:23:41]ConnectInit lk.salyk.kg [12:23:41]written 0, free lines is 4095 [12:23:41]Connected sock=10 [12:23:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 06 4B 07 01 C4 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 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 78 00 00 00 F4 03 04 00 D5 CA 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1A 72 00 00 35 04 06 00 42 BB C3 C3 8A 0E 45 59 EB 7A EE B6 66 1B [12:23:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 6A 11 47 00 6A F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1A 72 00 00 F4 03 04 00 79 75 1B 66 B6 04 01 00 00 E9 26 C4 01 A9 C1 77 B3 [12:23:41]CommunicateWithHost err = 0 [12:23:41]CheckOFDResponse [12:23:41]1017 (14) - 77093643461234 [12:23:41]1041 (16) - 0000000000963154 [12:23:41]1040 (4) - 29210 [12:23:41]1012 (4) - 14.04.2024 06:19 [12:23:41]1206 (1) - 0 [12:23:41]OFD Sender: Remove packet 29210 [12:23:41]ProducePacketName [12:23:41]name=ofd_packets/00029210 [12:23:41]NVStorageDeleteData [12:23:41]Write to MH i2c: 01 00 00 BA 93 4D [12:23:41]Write i2c OK [12:23:41]MH_I2C_Read... [12:23:41]Read from MH i2c: 01 [12:23:41]MH_I2C_Read... [12:23:41]Read from MH i2c: 01 07 00 [12:23:41]MH_I2C_Read... [12:23:41]Read from MH i2c: 01 07 00 BA 93 00 00 00 00 00 C0 0C 20 [12:23:41]RasterBufferAndPrint [12:23:41]line [12:23:41]line [12:23:41]line [12:23:41]line [12:23:41]line [12:23:41]written 0, free lines is 3268 [12:23:41]MH_Cut [12:23:41]Write to MH i2c: D1 01 00 C1 93 01 26 [12:23:41]Write i2c OK [12:23:41]MH_I2C_Read... [12:23:41]Read from MH i2c: D1 [12:23:41]MH_I2C_Read... [12:23:41]Read from MH i2c: D1 01 00 [12:23:41]MH_I2C_Read... [12:23:41]Read from MH i2c: D1 01 00 C1 93 00 25 [12:23:41]Write to MH i2c: 01 00 00 C2 93 55 [12:23:41]Write i2c OK [12:23:41]MH_I2C_Read... [12:23:42]OFD Sender: No OFD packet to send [12:23:42]*** Cut start [12:23:42]*** Partial cut [12:23:42]*** CUTSNS_PIN = 1 [12:23:42]*** CUTSNS_PIN = 0 [12:23:43]*** Brake cut motor [12:23:43]Read from MH i2c: 01 [12:23:43]MH_I2C_Read... [12:23:43]*** Stop cut motor [12:23:43]*** Cut end [12:23:43]Read from MH i2c: 01 07 00 [12:23:43]MH_I2C_Read... [12:23:43]Read from MH i2c: 01 07 00 C2 93 00 00 00 00 00 FF 0F 6A [12:23:43]process_action close_receipt done [12:23:43]requested_data is exist [12:23:43]produce_requested_data [12:23:43]requested_item fm.sn is exist - process it [12:23:43]wFMCommunicate request_size=4 [12:23:43]MH_SAM_APDU [12:23:43]CAPDU: 80 11 00 00 [12:23:43]Write to MH i2c: E2 08 00 C3 93 80 11 00 00 00 00 00 00 D0 [12:23:43]Write i2c OK [12:23:43]MH_I2C_Read... [12:23:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:23:43]Read from MH i2c: E2 [12:23:43]MH_I2C_Read... [12:23:43]Read from MH i2c: E2 17 00 [12:23:43]MH_I2C_Read... [12:23:43]Read from MH i2c: E2 17 00 C3 93 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 1F [12:23:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:23:43]wFMCommunicate OK [12:23:43]requested_item fd.num is exist - process it [12:23:43]SAM_PROTO_GetFieldsCounters [12:23:43]wFMCommunicate request_size=4 [12:23:43]MH_SAM_APDU [12:23:43]CAPDU: 80 13 00 00 [12:23:43]Write to MH i2c: E2 08 00 C4 93 80 13 00 00 00 00 00 00 D3 [12:23:43]Write i2c OK [12:23:43]MH_I2C_Read... [12:23:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:23:43]Read from MH i2c: E2 [12:23:43]MH_I2C_Read... [12:23:43]Read from MH i2c: E2 62 00 [12:23:43]MH_I2C_Read... [12:23:43]Read from MH i2c: E2 62 00 C4 93 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 1A 72 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 79 [12:23:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 1A 72 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:23:43]wFMCommunicate OK [12:23:43]SAM_PROTO_GetFieldsCounters done [12:23:43]requested_item shift.num is exist - process it [12:23:43]requested_item shift.opened is exist - process it [12:23:43]req_shift_opened [12:23:43]FM_GetShiftState [12:23:43]SAM_PROTO_GetShiftState [12:23:43]wFMCommunicate request_size=4 [12:23:43]MH_SAM_APDU [12:23:43]CAPDU: 80 13 01 00 [12:23:43]Write to MH i2c: E2 08 00 C5 93 80 13 01 00 00 00 00 00 D5 [12:23:43]Write i2c OK [12:23:43]MH_I2C_Read... [12:23:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:23:43]Read from MH i2c: E2 [12:23:43]MH_I2C_Read... [12:23:43]Read from MH i2c: E2 0E 00 [12:23:43]MH_I2C_Read... [12:23:43]Read from MH i2c: E2 0E 00 C5 93 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 81 [12:23:43]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [12:23:43]wFMCommunicate OK [12:23:43]SAM_PROTO_GetShiftState done [12:23:43]FM_GetShiftState done [12:23:43]req_shift_opened done [12:23:43]requested_item shift.open_date is exist - process it [12:23:43]req_shift_open_date [12:23:43]req_shift_open_date done [12:23:43]produce_requested_data done [12:23:43]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29210,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [12:23:43]process_action_free close_receipt [12:23:43]json_value_free [12:23:43]json_value_free done [12:23:43]process_json_proto returns [12:23:43]Send response to host [12:23:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29210,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [12:23:43]free response buf [12:23:43]execute_script done [12:23:43]execute_script returns [12:23:43]free content buf [12:23:43]Sock 9.Close socket [12:23:43]Sock 9.Thread stoped [12:23:43]accept exits with 7 [12:23:43]New connection [12:23:43]New thread 3066928484 created [12:23:43]Thread 3066785124 joined [12:23:43]Waiting for new connection... [12:23:43] Sock 7.Parse request [12:23:43]Sock 7.Check first char [12:23:43]Sock 7.First char is OK [12:23:43]request: POST /json_proto HTTP/1.0 [12:23:43]Method: POST [12:23:43]URL: /json_proto [12:23:43]Method is POST - this is cgi request [12:23:43]url: /json_proto [12:23:43]query_string will be loaded in cgi processing [12:23:43]execute_cgi json_proto POST (null) [12:23:43]execute_cgi path=json_proto method=POST [12:23:43]POST find Content-Length [12:23:43]Host: 172.17.33.3:8080 [12:23:43]Content-Length: 637 [12:23:43]Content-Type: application/json [12:23:43] [12:23:43]POST finish read [12:23:43]Found Content-Length = 637 [12:23:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347589", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 10.000, "sum" : 724.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 724.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:23:43]execute_script... [12:23: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)347589", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 10.000, "sum" : 724.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 724.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:23:43]POST & json_proto [12:23:43]process_json_proto [12:23:43]json parsed OK: [12:23:43]protocol is kg_v1.0 [12:23:43]action value=close_receipt [12:23:43]process_action close_receipt [12:23:43]cmd_close_receipt [12:23:43]MH_GetDate [12:23:43]Write to MH i2c: F0 00 00 C6 93 48 [12:23:43]Write i2c OK [12:23:43]MH_I2C_Read... [12:23:43]Read from MH i2c: F0 [12:23:43]MH_I2C_Read... [12:23:43]Read from MH i2c: F0 09 00 [12:23:43]MH_I2C_Read... [12:23:43]Read from MH i2c: F0 09 00 C6 93 00 D9 CA 1B 66 23 5B 8F 65 E7 [12:23:43]GetLastDocTimeStamp 1713097429 [12:23:43]current date 1713097433 [12:23:43]FM_GetShiftState [12:23:43]SAM_PROTO_GetShiftState [12:23:43]wFMCommunicate request_size=4 [12:23:43]MH_SAM_APDU [12:23:43]CAPDU: 80 13 01 00 [12:23:43]Write to MH i2c: E2 08 00 C7 93 80 13 01 00 00 00 00 00 D7 [12:23:43]Write i2c OK [12:23:43]MH_I2C_Read... [12:23:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:23:43]Read from MH i2c: E2 [12:23:43]MH_I2C_Read... [12:23:43]Read from MH i2c: E2 0E 00 [12:23:43]MH_I2C_Read... [12:23:43]Read from MH i2c: E2 0E 00 C7 93 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 83 [12:23:43]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [12:23:43]wFMCommunicate OK [12:23:43]SAM_PROTO_GetShiftState done [12:23:43]FM_GetShiftState done [12:23:43]opened in 1713053951 [12:23:43]opened+sec_in_day 1713140351 [12:23:43]quantity*price = 72400 [12:23:43]sum+1 = 72401 [12:23:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 724.00 НСП 1% : 6.41 НДС 12% : 76.88 Наличными: 724.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 121 14.04.2024 12:23 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29211 ФПД: 10809033892287 1/tax-web-control/client/api/v1/ticket?date=20240414T122353&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29211&fm=10809033892287&tin=02508201610067®Number=0000138879044617&sum=72400 [12:23:45]StoreToDocumentArchive [12:23:45]shift 116 fd 29211 [12:23:45]save to /storage/0116/doc_00029211 [12:23:45]save last doc name /storage/0116/doc_00029211 to /storage/kkm_last_doc_name [12:23:45]save OK [12:23:45]Clear old archive folders... [12:23:45]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:23:45]tlvbuf is 013DD340 [12:23:45]SAM_PROTO_ClearQueue [12:23:45]wFMCommunicate request_size=4 [12:23:45]MH_SAM_APDU [12:23:45]CAPDU: 80 09 00 00 [12:23:45]Write to MH i2c: E2 08 00 D4 93 80 09 00 00 00 00 00 00 D9 [12:23:45]Write i2c OK [12:23:45]MH_I2C_Read... [12:23:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:23:45]Read from MH i2c: E2 [12:23:45]MH_I2C_Read... [12:23:45]Read from MH i2c: E2 03 00 [12:23:45]MH_I2C_Read... [12:23:45]Read from MH i2c: E2 03 00 D4 93 00 90 00 DB [12:23:45]RAPDU: 90 00 [12:23:45]wFMCommunicate OK [12:23:45]SAM_PROTO_ClearQueue done [12:23:45]KKMCreateOFDPacket [12:23:45]OFDProtocolAddRootSTLVToBuf [12:23:45]FM_MakeSignedData [12:23:45]FM_MakeSignedData [12:23:45]SAM_PROTO_SignData [12:23:45]wFMCommunicate request_size=4 [12:23:45]MH_SAM_APDU [12:23:45]CAPDU: 80 0D 01 02 [12:23:45]Write to MH i2c: E2 08 00 D5 93 80 0D 01 02 00 00 00 00 E1 [12:23:45]Write i2c OK [12:23:45]MH_I2C_Read... [12:23:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:23:45]Read from MH i2c: E2 [12:23:45]MH_I2C_Read... [12:23:45]Read from MH i2c: E2 03 00 [12:23:45]MH_I2C_Read... [12:23:45]Read from MH i2c: E2 03 00 D5 93 00 90 00 DC [12:23:45]RAPDU: 90 00 [12:23:45]wFMCommunicate OK [12:23:45]wFMCommunicate request_size=255 [12:23:45]MH_SAM_APDU [12:23: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 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 D0 1A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 D9 CA 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1B 72 00 00 35 04 06 00 09 D4 AC A0 [12:23:45]Write to MH i2c: E2 02 01 D6 93 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 D0 1A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 D9 CA 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1B 72 00 00 35 04 06 00 09 D4 AC A0 00 00 27 [12:23:45]Write i2c OK [12:23:45]MH_I2C_Read... [12:23:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:23:45]Read from MH i2c: E2 [12:23:45]MH_I2C_Read... [12:23:45]Read from MH i2c: E2 03 00 [12:23:45]MH_I2C_Read... [12:23:45]Read from MH i2c: E2 03 00 D6 93 00 90 00 DD [12:23:45]RAPDU: 90 00 [12:23:45]wFMCommunicate OK [12:23:45]wFMCommunicate request_size=7 [12:23:45]MH_SAM_APDU [12:23:45]CAPDU: 80 0D 02 02 02 21 BF [12:23:45]Write to MH i2c: E2 0A 00 D7 93 80 0D 02 02 02 00 21 BF 00 00 C8 [12:23:45]Write i2c OK [12:23:45]MH_I2C_Read... [12:23:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:23:45]Read from MH i2c: E2 [12:23:45]MH_I2C_Read... [12:23:45]Read from MH i2c: E2 03 00 [12:23:45]MH_I2C_Read... [12:23:45]Read from MH i2c: E2 03 00 D7 93 00 90 00 DE [12:23:45]RAPDU: 90 00 [12:23:45]wFMCommunicate OK [12:23:45]wFMCommunicate request_size=4 [12:23:45]MH_SAM_APDU [12:23:45]CAPDU: 80 0D 03 02 [12:23:45]Write to MH i2c: E2 08 00 D8 93 80 0D 03 02 00 00 00 00 E6 [12:23:45]Write i2c OK [12:23:45]MH_I2C_Read... [12:23:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:23:45]Read from MH i2c: E2 [12:23:45]MH_I2C_Read... [12:23:45]Read from MH i2c: E2 0B 00 [12:23:45]MH_I2C_Read... [12:23:45]Read from MH i2c: E2 0B 00 D8 93 00 54 67 5B 1A 7E A5 08 A3 90 00 E5 [12:23:45]RAPDU: 54 67 5B 1A 7E A5 08 A3 90 00 [12:23:45]wFMCommunicate OK [12:23:45]SAM_PROTO_SignData done [12:23:45]FM_MakeSignedData done [12:23:45]CreateOFDProtocolMessage [12:23:45]wFMCommunicate request_size=4 [12:23:45]MH_SAM_APDU [12:23:45]CAPDU: 80 11 00 00 [12:23:45]Write to MH i2c: E2 08 00 D9 93 80 11 00 00 00 00 00 00 E6 [12:23:45]Write i2c OK [12:23:45]MH_I2C_Read... [12:23:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:23:45]Read from MH i2c: E2 [12:23:45]MH_I2C_Read... [12:23:45]Read from MH i2c: E2 17 00 [12:23:45]MH_I2C_Read... [12:23:45]Read from MH i2c: E2 17 00 D9 93 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 35 [12:23:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:23:45]wFMCommunicate OK [12:23:45]CreateOFDProtocolMessage done [12:23:45]OFDSenderStorePacket 29211 [12:23:45]StoreOFDPacket docnum=29211 [12:23:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 B6 8C 04 01 E0 84 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 D0 1A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 D9 CA 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1B 72 00 00 35 04 06 00 09 D4 AC A0 21 BF 54 67 5B 1A 7E A5 08 A3 [12:23:46]CheckFolder [12:23:46]dirname=/storage/ofd_packets [12:23:46]CheckFolder done [12:23:46]ProducePacketName [12:23:46]name=ofd_packets/00029211 [12:23:46]NVStorageSaveData ofd_packets/00029211 [12:23:46]File name is /storage/ofd_packets/00029211 [12:23:46]Write 298 bytes [12:23:46]NVStorageSaveData done [12:23:46]OFDSenderStorePacket done [12:23:46]KKMCreateOFDPacket done [12:23:46]NVStorageSaveData kkm_last_timestamp [12:23:46]File name is /storage/kkm_last_timestamp [12:23:46]Write 4 bytes [12:23:46]NVStorageSaveData done [12:23:46]ExternCall_PrintAddStr [12:23:46]wPrintStart [12:23:46]Write to MH i2c: 01 00 00 DA 93 6D [12:23:46]Write i2c OK [12:23:46]MH_I2C_Read... [12:23:46]Read from MH i2c: 01 [12:23:46]MH_I2C_Read... [12:23:46]Read from MH i2c: 01 07 00 [12:23:46]MH_I2C_Read... [12:23:46]Read from MH i2c: 01 07 00 DA 93 00 00 00 00 00 FF 0F 82 [12:23:46]RasterBufferAndPrint [12:23:46]line Счет N : (1)347589 [12:23:46]line ИНН: 02508201610067 [12:23:46]line Контрольно-Кассовый Чек [12:23:46]line ПРОДАЖА [12:23:46]line ТРК (МРК, ГНК) : 11 [12:23:46]line Товар: 2710194210 [12:23:46]line ДТ-К-5 [12:23:46]line 10.000 * 72.40 [12:23:46]line = 724.00 [12:23:46]line НДС 12% НСП 1% [12:23:46]line > о реализуемом товаре [12:23:46]line ИТОГО: 724.00 [12:23:46]line НСП 1% : 6.41 [12:23:46]line НДС 12% : 76.88 [12:23:46]line Наличными: 724.00 [12:23:46]line Безнал.: 0.00 [12:23:46]line Место: АЗС № 108 "Партнер Нефть" [12:23:46]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [12:23:46]line СНО: Общий режим [12:23:46]line Чек 121 14.04.2024 12:23 [12:23:46]line Смена: 116 ФФД: 1.0 [12:23:46]line ЗНМ: 0300000027 [12:23:46]line РНМ: 0000138879044617 [12:23:46]line Версия ККМ: 001 [12:23:46]line ФМ: 0000000000963154 [12:23:46]line ФД: 29211 [12:23:46]line ФПД: 10809033892287 [12:23:46]line 1/tax-web-control/client/api/v1/ticket?date=20240414T122353&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29211&fm=10809033892287&tin=02508201610067®Number=0000138879044617&sum=72400 [12:23:46]OFD Sender: Processing packet 29211 [packets to send 8, broken 7] [12:23:46]ProducePacketName [12:23:46]name=ofd_packets/00029211 [12:23:46]OFD Sender: To server: pG, [12:23:46]CommunicateWithHost lk.salyk.kg:30040 [12:23:46]ConnectInit lk.salyk.kg [12:23:46]written 0, free lines is 4095 [12:23:46]Connected sock=10 [12:23:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 B6 8C 04 01 E0 84 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 D0 1A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 D9 CA 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1B 72 00 00 35 04 06 00 09 D4 AC A0 21 BF 54 67 5B 1A 7E A5 08 A3 [12:23:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 0E AE 47 00 FB 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 39 36 33 31 35 34 10 04 04 00 1B 72 00 00 F4 03 04 00 7E 75 1B 66 B6 04 01 00 00 F2 02 31 57 30 CB 4B A9 [12:23:46]CommunicateWithHost err = 0 [12:23:46]CheckOFDResponse [12:23:46]1017 (14) - 77093643461234 [12:23:46]1041 (16) - 0000000000963154 [12:23:46]1040 (4) - 29211 [12:23:46]1012 (4) - 14.04.2024 06:19 [12:23:46]1206 (1) - 0 [12:23:46]OFD Sender: Remove packet 29211 [12:23:46]ProducePacketName [12:23:46]name=ofd_packets/00029211 [12:23:46]NVStorageDeleteData [12:23:46]Write to MH i2c: 01 00 00 01 94 95 [12:23:46]Write i2c OK [12:23:46]MH_I2C_Read... [12:23:46]Read from MH i2c: 01 [12:23:46]MH_I2C_Read... [12:23:46]Read from MH i2c: 01 07 00 [12:23:46]MH_I2C_Read... [12:23:46]Read from MH i2c: 01 07 00 01 94 00 00 00 00 00 0B 0D B4 [12:23:46]RasterBufferAndPrint [12:23:46]line [12:23:46]line [12:23:46]line [12:23:46]line [12:23:46]line [12:23:46]written 0, free lines is 3351 [12:23:46]MH_Cut [12:23:46]Write to MH i2c: D1 01 00 08 94 01 6E [12:23:46]Write i2c OK [12:23:46]MH_I2C_Read... [12:23:46]Read from MH i2c: D1 [12:23:46]MH_I2C_Read... [12:23:46]Read from MH i2c: D1 01 00 [12:23:46]MH_I2C_Read... [12:23:46]Read from MH i2c: D1 01 00 08 94 00 6D [12:23:46]Write to MH i2c: 01 00 00 09 94 9D [12:23:46]Write i2c OK [12:23:46]MH_I2C_Read... [12:23:47]OFD Sender: No OFD packet to send [12:23:47]*** Cut start [12:23:47]*** Partial cut [12:23:47]*** CUTSNS_PIN = 1 [12:23:47]*** CUTSNS_PIN = 0 [12:23:47]*** Brake cut motor [12:23:48]Read from MH i2c: 01 [12:23:48]MH_I2C_Read... [12:23:48]*** Stop cut motor [12:23:48]*** Cut end [12:23:48]Read from MH i2c: 01 07 00 [12:23:48]MH_I2C_Read... [12:23:48]Read from MH i2c: 01 07 00 09 94 00 00 00 00 00 FF 0F B2 [12:23:48]process_action close_receipt done [12:23:48]requested_data is exist [12:23:48]produce_requested_data [12:23:48]requested_item fm.sn is exist - process it [12:23:48]wFMCommunicate request_size=4 [12:23:48]MH_SAM_APDU [12:23:48]CAPDU: 80 11 00 00 [12:23:48]Write to MH i2c: E2 08 00 0A 94 80 11 00 00 00 00 00 00 18 [12:23:48]Write i2c OK [12:23:48]MH_I2C_Read... [12:23:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:23:48]Read from MH i2c: E2 [12:23:48]MH_I2C_Read... [12:23:48]Read from MH i2c: E2 17 00 [12:23:48]MH_I2C_Read... [12:23:48]Read from MH i2c: E2 17 00 0A 94 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 67 [12:23:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:23:48]wFMCommunicate OK [12:23:48]requested_item fd.num is exist - process it [12:23:48]SAM_PROTO_GetFieldsCounters [12:23:48]wFMCommunicate request_size=4 [12:23:48]MH_SAM_APDU [12:23:48]CAPDU: 80 13 00 00 [12:23:48]Write to MH i2c: E2 08 00 0B 94 80 13 00 00 00 00 00 00 1B [12:23:48]Write i2c OK [12:23:48]MH_I2C_Read... [12:23:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:23:48]Read from MH i2c: E2 [12:23:48]MH_I2C_Read... [12:23:48]Read from MH i2c: E2 62 00 [12:23:48]MH_I2C_Read... [12:23:48]Read from MH i2c: E2 62 00 0B 94 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 1B 72 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 C5 [12:23:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 1B 72 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:23:48]wFMCommunicate OK [12:23:48]SAM_PROTO_GetFieldsCounters done [12:23:48]requested_item shift.num is exist - process it [12:23:48]requested_item shift.opened is exist - process it [12:23:48]req_shift_opened [12:23:48]FM_GetShiftState [12:23:48]SAM_PROTO_GetShiftState [12:23:48]wFMCommunicate request_size=4 [12:23:48]MH_SAM_APDU [12:23:48]CAPDU: 80 13 01 00 [12:23:48]Write to MH i2c: E2 08 00 0C 94 80 13 01 00 00 00 00 00 1D [12:23:48]Write i2c OK [12:23:48]MH_I2C_Read... [12:23:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:23:48]Read from MH i2c: E2 [12:23:48]MH_I2C_Read... [12:23:48]Read from MH i2c: E2 0E 00 [12:23:48]MH_I2C_Read... [12:23:48]Read from MH i2c: E2 0E 00 0C 94 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 C9 [12:23:48]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [12:23:48]wFMCommunicate OK [12:23:48]SAM_PROTO_GetShiftState done [12:23:48]FM_GetShiftState done [12:23:48]req_shift_opened done [12:23:48]requested_item shift.open_date is exist - process it [12:23:48]req_shift_open_date [12:23:48]req_shift_open_date done [12:23:48]produce_requested_data done [12:23:48]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29211,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [12:23:48]process_action_free close_receipt [12:23:48]json_value_free [12:23:48]json_value_free done [12:23:48]process_json_proto returns [12:23:48]Send response to host [12:23:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29211,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [12:23:48]free response buf [12:23:48]execute_script done [12:23:48]execute_script returns [12:23:48]free content buf [12:23:48]Sock 7.Close socket [12:23:48]Sock 7.Thread stoped [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:37]OFD Sender: No OFD packet to send [12:24:42]OFD Sender: No OFD packet to send [12:24:47]OFD Sender: No OFD packet to send [12:24:52]OFD Sender: No OFD packet to send [12:24:57]OFD Sender: No OFD packet to send [12:25:02]OFD Sender: No OFD packet to send [12:25:07]OFD Sender: No OFD packet to send [12:25:12]OFD Sender: No OFD packet to send [12:25:17]OFD Sender: No OFD packet to send [12:25:22]OFD Sender: No OFD packet to send [12:25:27]OFD Sender: No OFD packet to send [12:25:32]OFD Sender: No OFD packet to send [12:25:37]OFD Sender: No OFD packet to send [12:25:42]OFD Sender: No OFD packet to send [12:25:47]OFD Sender: No OFD packet to send [12:25:52]OFD Sender: No OFD packet to send [12:25:57]OFD Sender: No OFD packet to send [12:26:02]OFD Sender: No OFD packet to send [12:26:07]OFD Sender: No OFD packet to send [12:26:12]OFD Sender: No OFD packet to send [12:26:17]OFD Sender: No OFD packet to send [12:26:22]OFD Sender: No OFD packet to send [12:26:27]OFD Sender: No OFD packet to send [12:26:32]OFD Sender: No OFD packet to send [12:26:37]OFD Sender: No OFD packet to send [12:26:42]OFD Sender: No OFD packet to send [12:26:47]OFD Sender: No OFD packet to send [12:26:52]OFD Sender: No OFD packet to send [12:26:57]OFD Sender: No OFD packet to send [12:27:01]accept exits with 9 [12:27:01]New connection [12:27:01]New thread 3066785124 created [12:27:01]Thread 3066928484 joined [12:27:01]Waiting for new connection... [12:27:01] Sock 9.Parse request [12:27:01]Sock 9.Check first char [12:27:01]Sock 9.First char is OK [12:27:01]request: POST /json_proto HTTP/1.0 [12:27:01]Method: POST [12:27:01]URL: /json_proto [12:27:01]Method is POST - this is cgi request [12:27:01]url: /json_proto [12:27:01]query_string will be loaded in cgi processing [12:27:01]execute_cgi json_proto POST (null) [12:27:01]execute_cgi path=json_proto method=POST [12:27:01]POST find Content-Length [12:27:01]Host: 172.17.33.3:8080 [12:27:01]Content-Length: 678 [12:27:01]Content-Type: application/json [12:27:01] [12:27:01]POST finish read [12:27:01]Found Content-Length = 678 [12:27:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347590", "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" ] } } [12:27:01]execute_script... [12:27:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347590", "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" ] } } [12:27:01]POST & json_proto [12:27:01]process_json_proto [12:27:01]json parsed OK: [12:27:01]protocol is kg_v1.0 [12:27:01]action value=close_receipt [12:27:01]process_action close_receipt [12:27:01]cmd_close_receipt [12:27:01]MH_GetDate [12:27:01]Write to MH i2c: F0 00 00 0D 94 90 [12:27:01]Write i2c OK [12:27:01]MH_I2C_Read... [12:27:01]Read from MH i2c: F0 [12:27:01]MH_I2C_Read... [12:27:01]Read from MH i2c: F0 09 00 [12:27:01]MH_I2C_Read... [12:27:01]Read from MH i2c: F0 09 00 0D 94 00 9F CB 1B 66 23 5B 8F 65 F6 [12:27:01]GetLastDocTimeStamp 1713097433 [12:27:01]current date 1713097631 [12:27:01]FM_GetShiftState [12:27:01]SAM_PROTO_GetShiftState [12:27:01]wFMCommunicate request_size=4 [12:27:01]MH_SAM_APDU [12:27:01]CAPDU: 80 13 01 00 [12:27:01]Write to MH i2c: E2 08 00 0E 94 80 13 01 00 00 00 00 00 1F [12:27:01]Write i2c OK [12:27:01]MH_I2C_Read... [12:27:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:27:01]Read from MH i2c: E2 [12:27:01]MH_I2C_Read... [12:27:01]Read from MH i2c: E2 0E 00 [12:27:01]MH_I2C_Read... [12:27:01]Read from MH i2c: E2 0E 00 0E 94 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 CB [12:27:01]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [12:27:01]wFMCommunicate OK [12:27:01]SAM_PROTO_GetShiftState done [12:27:01]FM_GetShiftState done [12:27:01]opened in 1713053951 [12:27:01]opened+sec_in_day 1713140351 [12:27:01]quantity*price = 70022 [12:27:01]sum+1 = 70024 [12:27:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.36 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 122 14.04.2024 12:27 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29212 ФПД: 247962186715902 1/tax-web-control/client/api/v1/ticket?date=20240414T122711&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29212&fm=247962186715902&tin=02508201610067®Number=0000138879044617&sum=70000 [12:27:02]StoreToDocumentArchive [12:27:02]shift 116 fd 29212 [12:27:02]save to /storage/0116/doc_00029212 [12:27:02]save last doc name /storage/0116/doc_00029212 to /storage/kkm_last_doc_name [12:27:02]save OK [12:27:02]Clear old archive folders... [12:27:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:27:02]tlvbuf is 0120ECA0 [12:27:02]SAM_PROTO_ClearQueue [12:27:02]wFMCommunicate request_size=4 [12:27:02]MH_SAM_APDU [12:27:02]CAPDU: 80 09 00 00 [12:27:02]Write to MH i2c: E2 08 00 1B 94 80 09 00 00 00 00 00 00 21 [12:27:02]Write i2c OK [12:27:02]MH_I2C_Read... [12:27:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:27:02]Read from MH i2c: E2 [12:27:02]MH_I2C_Read... [12:27:02]Read from MH i2c: E2 03 00 [12:27:02]MH_I2C_Read... [12:27:02]Read from MH i2c: E2 03 00 1B 94 00 90 00 23 [12:27:02]RAPDU: 90 00 [12:27:02]wFMCommunicate OK [12:27:02]SAM_PROTO_ClearQueue done [12:27:02]KKMCreateOFDPacket [12:27:02]OFDProtocolAddRootSTLVToBuf [12:27:02]FM_MakeSignedData [12:27:02]FM_MakeSignedData [12:27:02]SAM_PROTO_SignData [12:27:02]wFMCommunicate request_size=4 [12:27:02]MH_SAM_APDU [12:27:02]CAPDU: 80 0D 01 02 [12:27:02]Write to MH i2c: E2 08 00 1C 94 80 0D 01 02 00 00 00 00 29 [12:27:02]Write i2c OK [12:27:02]MH_I2C_Read... [12:27:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:27:02]Read from MH i2c: E2 [12:27:02]MH_I2C_Read... [12:27:02]Read from MH i2c: E2 03 00 [12:27:02]MH_I2C_Read... [12:27:02]Read from MH i2c: E2 03 00 1C 94 00 90 00 24 [12:27:02]RAPDU: 90 00 [12:27:02]wFMCommunicate OK [12:27:02]wFMCommunicate request_size=255 [12:27:02]MH_SAM_APDU [12:27: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 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 7A 00 00 00 F4 03 04 00 9F CB 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1C 72 00 00 35 04 06 00 E1 [12:27:02]Write to MH i2c: E2 02 01 1D 94 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 7A 00 00 00 F4 03 04 00 9F CB 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1C 72 00 00 35 04 06 00 E1 00 00 B7 [12:27:02]Write i2c OK [12:27:02]MH_I2C_Read... [12:27:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:27:02]Read from MH i2c: E2 [12:27:02]MH_I2C_Read... [12:27:02]Read from MH i2c: E2 03 00 [12:27:02]MH_I2C_Read... [12:27:02]Read from MH i2c: E2 03 00 1D 94 00 90 00 25 [12:27:02]RAPDU: 90 00 [12:27:02]wFMCommunicate OK [12:27:02]wFMCommunicate request_size=10 [12:27:02]MH_SAM_APDU [12:27:02]CAPDU: 80 0D 02 02 05 85 32 0E 92 FE [12:27:02]Write to MH i2c: E2 0D 00 1E 94 80 0D 02 02 05 00 85 32 0E 92 FE 00 00 8B [12:27:02]Write i2c OK [12:27:02]MH_I2C_Read... [12:27:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:27:02]Read from MH i2c: E2 [12:27:02]MH_I2C_Read... [12:27:02]Read from MH i2c: E2 03 00 [12:27:02]MH_I2C_Read... [12:27:02]Read from MH i2c: E2 03 00 1E 94 00 90 00 26 [12:27:02]RAPDU: 90 00 [12:27:02]wFMCommunicate OK [12:27:02]wFMCommunicate request_size=4 [12:27:02]MH_SAM_APDU [12:27:02]CAPDU: 80 0D 03 02 [12:27:02]Write to MH i2c: E2 08 00 1F 94 80 0D 03 02 00 00 00 00 2E [12:27:02]Write i2c OK [12:27:02]MH_I2C_Read... [12:27:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:27:02]Read from MH i2c: E2 [12:27:02]MH_I2C_Read... [12:27:02]Read from MH i2c: E2 0B 00 [12:27:02]MH_I2C_Read... [12:27:02]Read from MH i2c: E2 0B 00 1F 94 00 85 8A 35 6D F1 D9 06 7B 90 00 2B [12:27:02]RAPDU: 85 8A 35 6D F1 D9 06 7B 90 00 [12:27:02]wFMCommunicate OK [12:27:02]SAM_PROTO_SignData done [12:27:02]FM_MakeSignedData done [12:27:02]CreateOFDProtocolMessage [12:27:02]wFMCommunicate request_size=4 [12:27:02]MH_SAM_APDU [12:27:02]CAPDU: 80 11 00 00 [12:27:02]Write to MH i2c: E2 08 00 20 94 80 11 00 00 00 00 00 00 2E [12:27:02]Write i2c OK [12:27:02]MH_I2C_Read... [12:27:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:27:02]Read from MH i2c: E2 [12:27:02]MH_I2C_Read... [12:27:02]Read from MH i2c: E2 17 00 [12:27:02]MH_I2C_Read... [12:27:02]Read from MH i2c: E2 17 00 20 94 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 7D [12:27:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:27:02]wFMCommunicate OK [12:27:02]CreateOFDProtocolMessage done [12:27:02]OFDSenderStorePacket 29212 [12:27:02]StoreOFDPacket docnum=29212 [12:27:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 1C 32 07 01 97 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 7A 00 00 00 F4 03 04 00 9F CB 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1C 72 00 00 35 04 06 00 E1 85 32 0E 92 FE 85 8A 35 6D F1 D9 06 7B [12:27:02]CheckFolder [12:27:02]dirname=/storage/ofd_packets [12:27:02]CheckFolder done [12:27:02]ProducePacketName [12:27:02]name=ofd_packets/00029212 [12:27:02]NVStorageSaveData ofd_packets/00029212 [12:27:02]File name is /storage/ofd_packets/00029212 [12:27:02]Write 301 bytes [12:27:02]NVStorageSaveData done [12:27:02]OFDSenderStorePacket done [12:27:02]KKMCreateOFDPacket done [12:27:02]NVStorageSaveData kkm_last_timestamp [12:27:02]File name is /storage/kkm_last_timestamp [12:27:02]Write 4 bytes [12:27:02]NVStorageSaveData done [12:27:02]ExternCall_PrintAddStr [12:27:02]wPrintStart [12:27:02]Write to MH i2c: 01 00 00 21 94 B5 [12:27:02]Write i2c OK [12:27:02]MH_I2C_Read... [12:27:02]Read from MH i2c: 01 [12:27:02]MH_I2C_Read... [12:27:02]Read from MH i2c: 01 07 00 [12:27:02]MH_I2C_Read... [12:27:02]Read from MH i2c: 01 07 00 21 94 00 00 00 00 00 FF 0F CA [12:27:02]RasterBufferAndPrint [12:27:02]line Счет N : (1)347590 [12:27:02]line ИНН: 02508201610067 [12:27:02]line Контрольно-Кассовый Чек [12:27:02]line ПРОДАЖА [12:27:02]line ТРК (МРК, ГНК) : 42 [12:27:02]line Товар: 2710124130 [12:27:02]line Аи-92-К-5 [12:27:02]line 10.890 * 64.30 [12:27:02]line = 700.23 [12:27:02]line НДС 12% НСП 1% [12:27:02]line > о реализуемом товаре [12:27:02]line ОКРУГЛЕНИЕ: -0.23 [12:27:02]line ИТОГО: 700.00 [12:27:02]line Внесено: 700.00 [12:27:02]line СДАЧА: 0.00 [12:27:02]line НСП 1% : 6.20 [12:27:02]line НДС 12% : 74.36 [12:27:02]line Наличными: 700.00 [12:27:02]line Безнал.: 0.00 [12:27:02]line Место: АЗС № 108 "Партнер Нефть" [12:27:02]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [12:27:02]line СНО: Общий режим [12:27:02]line Чек 122 14.04.2024 12:27 [12:27:02]line Смена: 116 ФФД: 1.0 [12:27:02]line ЗНМ: 0300000027 [12:27:02]line РНМ: 0000138879044617 [12:27:02]line Версия ККМ: 001 [12:27:02]line ФМ: 0000000000963154 [12:27:02]line ФД: 29212 [12:27:02]line ФПД: 247962186715902 [12:27:02]line 1/tax-web-control/client/api/v1/ticket?date=20240414T122711&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29212&fm=247962186715902&tin=02508201610067®Number=0000138879044617&sum=70000 [12:27:03]OFD Sender: Processing packet 29212 [packets to send 8, broken 7] [12:27:03]ProducePacketName [12:27:03]name=ofd_packets/00029212 [12:27:03]OFD Sender: To server: pG, [12:27:03]CommunicateWithHost lk.salyk.kg:30040 [12:27:03]ConnectInit lk.salyk.kg [12:27:03]written 0, free lines is 4095 [12:27:03]Connected sock=10 [12:27:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 1C 32 07 01 97 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 7A 00 00 00 F4 03 04 00 9F CB 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1C 72 00 00 35 04 06 00 E1 85 32 0E 92 FE 85 8A 35 6D F1 D9 06 7B [12:27:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 3C 0F 47 00 3C 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 39 36 33 31 35 34 10 04 04 00 1C 72 00 00 F4 03 04 00 43 76 1B 66 B6 04 01 00 00 94 D4 DD BF 84 BA 00 DC [12:27:03]CommunicateWithHost err = 0 [12:27:03]CheckOFDResponse [12:27:03]1017 (14) - 77093643461234 [12:27:03]1041 (16) - 0000000000963154 [12:27:03]1040 (4) - 29212 [12:27:03]1012 (4) - 14.04.2024 06:22 [12:27:03]1206 (1) - 0 [12:27:03]OFD Sender: Remove packet 29212 [12:27:03]ProducePacketName [12:27:03]name=ofd_packets/00029212 [12:27:03]NVStorageDeleteData [12:27:03]Write to MH i2c: 01 00 00 4B 94 DF [12:27:03]Write i2c OK [12:27:03]MH_I2C_Read... [12:27:03]Read from MH i2c: 01 [12:27:03]MH_I2C_Read... [12:27:03]Read from MH i2c: 01 07 00 [12:27:03]MH_I2C_Read... [12:27:03]Read from MH i2c: 01 07 00 4B 94 00 00 00 00 00 D3 0C C5 [12:27:03]RasterBufferAndPrint [12:27:03]line [12:27:03]line [12:27:03]line [12:27:03]line [12:27:03]line [12:27:03]written 0, free lines is 3290 [12:27:03]MH_Cut [12:27:03]Write to MH i2c: D1 01 00 52 94 01 B8 [12:27:03]Write i2c OK [12:27:03]MH_I2C_Read... [12:27:03]Read from MH i2c: D1 [12:27:03]MH_I2C_Read... [12:27:03]Read from MH i2c: D1 01 00 [12:27:03]MH_I2C_Read... [12:27:03]Read from MH i2c: D1 01 00 52 94 00 B7 [12:27:03]Write to MH i2c: 01 00 00 53 94 E7 [12:27:03]Write i2c OK [12:27:03]MH_I2C_Read... [12:27:04]OFD Sender: No OFD packet to send [12:27:04]*** Cut start [12:27:04]*** Partial cut [12:27:04]*** CUTSNS_PIN = 1 [12:27:04]*** CUTSNS_PIN = 0 [12:27:04]*** Brake cut motor [12:27:05]Read from MH i2c: 01 [12:27:05]MH_I2C_Read... [12:27:05]*** Stop cut motor [12:27:05]*** Cut end [12:27:05]Read from MH i2c: 01 07 00 [12:27:05]MH_I2C_Read... [12:27:05]Read from MH i2c: 01 07 00 53 94 00 00 00 00 00 FF 0F FC [12:27:05]process_action close_receipt done [12:27:05]requested_data is exist [12:27:05]produce_requested_data [12:27:05]requested_item fm.sn is exist - process it [12:27:05]wFMCommunicate request_size=4 [12:27:05]MH_SAM_APDU [12:27:05]CAPDU: 80 11 00 00 [12:27:05]Write to MH i2c: E2 08 00 54 94 80 11 00 00 00 00 00 00 62 [12:27:05]Write i2c OK [12:27:05]MH_I2C_Read... [12:27:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:27:05]Read from MH i2c: E2 [12:27:05]MH_I2C_Read... [12:27:05]Read from MH i2c: E2 17 00 [12:27:05]MH_I2C_Read... [12:27:05]Read from MH i2c: E2 17 00 54 94 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B1 [12:27:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:27:05]wFMCommunicate OK [12:27:05]requested_item fd.num is exist - process it [12:27:05]SAM_PROTO_GetFieldsCounters [12:27:05]wFMCommunicate request_size=4 [12:27:05]MH_SAM_APDU [12:27:05]CAPDU: 80 13 00 00 [12:27:05]Write to MH i2c: E2 08 00 55 94 80 13 00 00 00 00 00 00 65 [12:27:05]Write i2c OK [12:27:05]MH_I2C_Read... [12:27:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:27:05]Read from MH i2c: E2 [12:27:05]MH_I2C_Read... [12:27:05]Read from MH i2c: E2 62 00 [12:27:05]MH_I2C_Read... [12:27:05]Read from MH i2c: E2 62 00 55 94 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 1C 72 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 13 [12:27:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 1C 72 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:27:05]wFMCommunicate OK [12:27:05]SAM_PROTO_GetFieldsCounters done [12:27:05]requested_item shift.num is exist - process it [12:27:05]requested_item shift.opened is exist - process it [12:27:05]req_shift_opened [12:27:05]FM_GetShiftState [12:27:05]SAM_PROTO_GetShiftState [12:27:05]wFMCommunicate request_size=4 [12:27:05]MH_SAM_APDU [12:27:05]CAPDU: 80 13 01 00 [12:27:05]Write to MH i2c: E2 08 00 56 94 80 13 01 00 00 00 00 00 67 [12:27:05]Write i2c OK [12:27:05]MH_I2C_Read... [12:27:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:27:05]Read from MH i2c: E2 [12:27:05]MH_I2C_Read... [12:27:05]Read from MH i2c: E2 0E 00 [12:27:05]MH_I2C_Read... [12:27:05]Read from MH i2c: E2 0E 00 56 94 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 13 [12:27:05]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [12:27:05]wFMCommunicate OK [12:27:05]SAM_PROTO_GetShiftState done [12:27:05]FM_GetShiftState done [12:27:05]req_shift_opened done [12:27:05]requested_item shift.open_date is exist - process it [12:27:05]req_shift_open_date [12:27:05]req_shift_open_date done [12:27:05]produce_requested_data done [12:27:05]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29212,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [12:27:05]process_action_free close_receipt [12:27:05]json_value_free [12:27:05]json_value_free done [12:27:05]process_json_proto returns [12:27:05]Send response to host [12:27:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29212,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [12:27:05]free response buf [12:27:05]execute_script done [12:27:05]execute_script returns [12:27:05]free content buf [12:27:05]Sock 9.Close socket [12:27:05]Sock 9.Thread stoped [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:32]accept exits with 7 [12:28:32]New connection [12:28:32]New thread 3066928484 created [12:28:32]Thread 3066785124 joined [12:28:32]Waiting for new connection... [12:28:32] Sock 7.Parse request [12:28:32]Sock 7.Check first char [12:28:32]Sock 7.First char is OK [12:28:32]request: POST /json_proto HTTP/1.0 [12:28:32]Method: POST [12:28:32]URL: /json_proto [12:28:32]Method is POST - this is cgi request [12:28:32]url: /json_proto [12:28:32]query_string will be loaded in cgi processing [12:28:32]execute_cgi json_proto POST (null) [12:28:32]execute_cgi path=json_proto method=POST [12:28:32]POST find Content-Length [12:28:32]Host: 172.17.33.3:8080 [12:28:32]Content-Length: 645 [12:28:32]Content-Type: application/json [12:28:32] [12:28:32]POST finish read [12:28:32]Found Content-Length = 645 [12:28:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347591", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 650.000, "sum" : 41795.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 41795.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:28:32]execute_script... [12:28: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)347591", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 650.000, "sum" : 41795.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 41795.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:28:32]POST & json_proto [12:28:32]process_json_proto [12:28:32]json parsed OK: [12:28:32]protocol is kg_v1.0 [12:28:32]action value=close_receipt [12:28:32]process_action close_receipt [12:28:32]cmd_close_receipt [12:28:32]MH_GetDate [12:28:32]Write to MH i2c: F0 00 00 57 94 DA [12:28:32]Write i2c OK [12:28:32]MH_I2C_Read... [12:28:32]Read from MH i2c: F0 [12:28:32]MH_I2C_Read... [12:28:32]Read from MH i2c: F0 09 00 [12:28:32]MH_I2C_Read... [12:28:32]Read from MH i2c: F0 09 00 57 94 00 FA CB 1B 66 23 5B 8F 65 9B [12:28:32]GetLastDocTimeStamp 1713097631 [12:28:32]current date 1713097722 [12:28:32]FM_GetShiftState [12:28:32]SAM_PROTO_GetShiftState [12:28:32]wFMCommunicate request_size=4 [12:28:32]MH_SAM_APDU [12:28:32]CAPDU: 80 13 01 00 [12:28:32]Write to MH i2c: E2 08 00 58 94 80 13 01 00 00 00 00 00 69 [12:28:32]Write i2c OK [12:28:32]MH_I2C_Read... [12:28:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:28:32]Read from MH i2c: E2 [12:28:32]MH_I2C_Read... [12:28:32]Read from MH i2c: E2 0E 00 [12:28:32]MH_I2C_Read... [12:28:32]Read from MH i2c: E2 0E 00 58 94 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 15 [12:28:32]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [12:28:32]wFMCommunicate OK [12:28:32]SAM_PROTO_GetShiftState done [12:28:32]FM_GetShiftState done [12:28:32]opened in 1713053951 [12:28:32]opened+sec_in_day 1713140351 [12:28:32]quantity*price = 4179500 [12:28:32]sum+1 = 4179501 [12:28:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 41795.00 НСП 1% : 369.87 НДС 12% : 4438.41 Наличными: 41795.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 123 14.04.2024 12:28 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29213 ФПД: 217511774517688 1/tax-web-control/client/api/v1/ticket?date=20240414T122842&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29213&fm=217511774517688&tin=02508201610067®Number=0000138879044617&sum=4179500 [12:28:33]StoreToDocumentArchive [12:28:33]shift 116 fd 29213 [12:28:33]save to /storage/0116/doc_00029213 [12:28:33]save last doc name /storage/0116/doc_00029213 to /storage/kkm_last_doc_name [12:28:33]save OK [12:28:33]Clear old archive folders... [12:28:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:28:33]tlvbuf is 01208D50 [12:28:33]SAM_PROTO_ClearQueue [12:28:33]wFMCommunicate request_size=4 [12:28:33]MH_SAM_APDU [12:28:33]CAPDU: 80 09 00 00 [12:28:33]Write to MH i2c: E2 08 00 65 94 80 09 00 00 00 00 00 00 6B [12:28:34]Write i2c OK [12:28:34]MH_I2C_Read... [12:28:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:28:34]Read from MH i2c: E2 [12:28:34]MH_I2C_Read... [12:28:34]Read from MH i2c: E2 03 00 [12:28:34]MH_I2C_Read... [12:28:34]Read from MH i2c: E2 03 00 65 94 00 90 00 6D [12:28:34]RAPDU: 90 00 [12:28:34]wFMCommunicate OK [12:28:34]SAM_PROTO_ClearQueue done [12:28:34]KKMCreateOFDPacket [12:28:34]OFDProtocolAddRootSTLVToBuf [12:28:34]FM_MakeSignedData [12:28:34]FM_MakeSignedData [12:28:34]SAM_PROTO_SignData [12:28:34]wFMCommunicate request_size=4 [12:28:34]MH_SAM_APDU [12:28:34]CAPDU: 80 0D 01 02 [12:28:34]Write to MH i2c: E2 08 00 66 94 80 0D 01 02 00 00 00 00 73 [12:28:34]Write i2c OK [12:28:34]MH_I2C_Read... [12:28:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:28:34]Read from MH i2c: E2 [12:28:34]MH_I2C_Read... [12:28:34]Read from MH i2c: E2 03 00 [12:28:34]MH_I2C_Read... [12:28:34]Read from MH i2c: E2 03 00 66 94 00 90 00 6E [12:28:34]RAPDU: 90 00 [12:28:34]wFMCommunicate OK [12:28:34]wFMCommunicate request_size=255 [12:28:34]MH_SAM_APDU [12:28: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 10 EB 09 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 2C C6 3F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C C6 3F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 90 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 C5 06 00 00 00 07 04 06 00 2C C6 3F 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 FA CB 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1D 72 00 00 35 04 06 00 C5 [12:28:34]Write to MH i2c: E2 02 01 67 94 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 EB 09 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 2C C6 3F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C C6 3F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 90 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 C5 06 00 00 00 07 04 06 00 2C C6 3F 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 FA CB 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1D 72 00 00 35 04 06 00 C5 00 00 88 [12:28:34]Write i2c OK [12:28:34]MH_I2C_Read... [12:28:34]OFD Sender: No OFD packet to send [12:28:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:28:34]Read from MH i2c: E2 [12:28:34]MH_I2C_Read... [12:28:34]Read from MH i2c: E2 03 00 [12:28:34]MH_I2C_Read... [12:28:34]Read from MH i2c: E2 03 00 67 94 00 90 00 6F [12:28:34]RAPDU: 90 00 [12:28:34]wFMCommunicate OK [12:28:34]wFMCommunicate request_size=10 [12:28:34]MH_SAM_APDU [12:28:34]CAPDU: 80 0D 02 02 05 D3 68 0D F9 B8 [12:28:34]Write to MH i2c: E2 0D 00 68 94 80 0D 02 02 05 00 D3 68 0D F9 B8 00 00 79 [12:28:34]Write i2c OK [12:28:34]MH_I2C_Read... [12:28:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:28:34]Read from MH i2c: E2 [12:28:34]MH_I2C_Read... [12:28:34]Read from MH i2c: E2 03 00 [12:28:34]MH_I2C_Read... [12:28:34]Read from MH i2c: E2 03 00 68 94 00 90 00 70 [12:28:34]RAPDU: 90 00 [12:28:34]wFMCommunicate OK [12:28:34]wFMCommunicate request_size=4 [12:28:34]MH_SAM_APDU [12:28:34]CAPDU: 80 0D 03 02 [12:28:34]Write to MH i2c: E2 08 00 69 94 80 0D 03 02 00 00 00 00 78 [12:28:34]Write i2c OK [12:28:34]MH_I2C_Read... [12:28:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:28:34]Read from MH i2c: E2 [12:28:34]MH_I2C_Read... [12:28:34]Read from MH i2c: E2 0B 00 [12:28:34]MH_I2C_Read... [12:28:34]Read from MH i2c: E2 0B 00 69 94 00 E5 97 69 0A DB ED AF 19 90 00 F8 [12:28:34]RAPDU: E5 97 69 0A DB ED AF 19 90 00 [12:28:34]wFMCommunicate OK [12:28:34]SAM_PROTO_SignData done [12:28:34]FM_MakeSignedData done [12:28:34]CreateOFDProtocolMessage [12:28:34]wFMCommunicate request_size=4 [12:28:34]MH_SAM_APDU [12:28:34]CAPDU: 80 11 00 00 [12:28:34]Write to MH i2c: E2 08 00 6A 94 80 11 00 00 00 00 00 00 78 [12:28:34]Write i2c OK [12:28:34]MH_I2C_Read... [12:28:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:28:34]Read from MH i2c: E2 [12:28:34]MH_I2C_Read... [12:28:34]Read from MH i2c: E2 17 00 [12:28:34]MH_I2C_Read... [12:28:34]Read from MH i2c: E2 17 00 6A 94 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C7 [12:28:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:28:34]wFMCommunicate OK [12:28:34]CreateOFDProtocolMessage done [12:28:34]OFDSenderStorePacket 29213 [12:28:34]StoreOFDPacket docnum=29213 [12:28:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 95 8D 07 01 8B 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 10 EB 09 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 2C C6 3F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C C6 3F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 90 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 C5 06 00 00 00 07 04 06 00 2C C6 3F 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 FA CB 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1D 72 00 00 35 04 06 00 C5 D3 68 0D F9 B8 E5 97 69 0A DB ED AF 19 [12:28:34]CheckFolder [12:28:34]dirname=/storage/ofd_packets [12:28:34]CheckFolder done [12:28:34]ProducePacketName [12:28:34]name=ofd_packets/00029213 [12:28:34]NVStorageSaveData ofd_packets/00029213 [12:28:34]File name is /storage/ofd_packets/00029213 [12:28:34]Write 301 bytes [12:28:34]NVStorageSaveData done [12:28:34]OFDSenderStorePacket done [12:28:34]KKMCreateOFDPacket done [12:28:34]NVStorageSaveData kkm_last_timestamp [12:28:34]File name is /storage/kkm_last_timestamp [12:28:34]Write 4 bytes [12:28:34]NVStorageSaveData done [12:28:34]ExternCall_PrintAddStr [12:28:34]wPrintStart [12:28:34]Write to MH i2c: 01 00 00 6B 94 FF [12:28:34]Write i2c OK [12:28:34]MH_I2C_Read... [12:28:34]Read from MH i2c: 01 [12:28:34]MH_I2C_Read... [12:28:34]Read from MH i2c: 01 07 00 [12:28:34]MH_I2C_Read... [12:28:34]Read from MH i2c: 01 07 00 6B 94 00 00 00 00 00 FF 0F 14 [12:28:34]RasterBufferAndPrint [12:28:34]line Счет N : (1)347591 [12:28:34]line ИНН: 02508201610067 [12:28:34]line Контрольно-Кассовый Чек [12:28:34]line ПРОДАЖА [12:28:34]line ТРК (МРК, ГНК) : 13 [12:28:34]line Товар: 2710124130 [12:28:34]line Аи-92-К-5 [12:28:34]line 650.000 * 64.30 [12:28:34]line = 41795.00 [12:28:34]line НДС 12% НСП 1% [12:28:34]line > о реализуемом товаре [12:28:34]line ИТОГО: 41795.00 [12:28:34]line НСП 1% : 369.87 [12:28:34]line НДС 12% : 4438.41 [12:28:34]line Наличными: 41795.00 [12:28:34]line Безнал.: 0.00 [12:28:34]line Место: АЗС № 108 "Партнер Нефть" [12:28:34]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [12:28:34]line СНО: Общий режим [12:28:34]line Чек 123 14.04.2024 12:28 [12:28:34]line Смена: 116 ФФД: 1.0 [12:28:34]line ЗНМ: 0300000027 [12:28:34]line РНМ: 0000138879044617 [12:28:34]line Версия ККМ: 001 [12:28:34]line ФМ: 0000000000963154 [12:28:34]line ФД: 29213 [12:28:34]line ФПД: 217511774517688 [12:28:34]line 1/tax-web-control/client/api/v1/ticket?date=20240414T122842&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29213&fm=217511774517688&tin=02508201610067®Number=0000138879044617&sum=4179500 [12:28:34]OFD Sender: Processing packet 29213 [packets to send 8, broken 7] [12:28:34]ProducePacketName [12:28:34]name=ofd_packets/00029213 [12:28:34]OFD Sender: To server: pG, [12:28:34]CommunicateWithHost lk.salyk.kg:30040 [12:28:34]ConnectInit lk.salyk.kg [12:28:34]written 0, free lines is 4095 [12:28:34]Connected sock=10 [12:28:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 95 8D 07 01 8B 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 10 EB 09 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 2C C6 3F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C C6 3F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 90 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 C5 06 00 00 00 07 04 06 00 2C C6 3F 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 FA CB 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1D 72 00 00 35 04 06 00 C5 D3 68 0D F9 B8 E5 97 69 0A DB ED AF 19 [12:28:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 01 BF 47 00 9A 11 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1D 72 00 00 F4 03 04 00 9E 76 1B 66 B6 04 01 00 00 C4 4A 0E AB 5A 6F E7 A0 [12:28:35]CommunicateWithHost err = 0 [12:28:35]CheckOFDResponse [12:28:35]1017 (14) - 77093643461234 [12:28:35]1041 (16) - 0000000000963154 [12:28:35]1040 (4) - 29213 [12:28:35]1012 (4) - 14.04.2024 06:24 [12:28:35]1206 (1) - 0 [12:28:35]OFD Sender: Remove packet 29213 [12:28:35]ProducePacketName [12:28:35]name=ofd_packets/00029213 [12:28:35]NVStorageDeleteData [12:28:35]Write to MH i2c: 01 00 00 92 94 26 [12:28:35]Write i2c OK [12:28:35]MH_I2C_Read... [12:28:35]Read from MH i2c: 01 [12:28:35]MH_I2C_Read... [12:28:35]Read from MH i2c: 01 07 00 [12:28:35]MH_I2C_Read... [12:28:35]Read from MH i2c: 01 07 00 92 94 00 00 00 00 00 0C 0D 46 [12:28:35]RasterBufferAndPrint [12:28:35]line [12:28:35]line [12:28:35]line [12:28:35]line [12:28:35]line [12:28:35]written 0, free lines is 3344 [12:28:35]MH_Cut [12:28:35]Write to MH i2c: D1 01 00 99 94 01 FF [12:28:35]Write i2c OK [12:28:35]MH_I2C_Read... [12:28:35]Read from MH i2c: D1 [12:28:35]MH_I2C_Read... [12:28:35]Read from MH i2c: D1 01 00 [12:28:35]MH_I2C_Read... [12:28:35]Read from MH i2c: D1 01 00 99 94 00 FE [12:28:35]Write to MH i2c: 01 00 00 9A 94 2E [12:28:35]Write i2c OK [12:28:35]MH_I2C_Read... [12:28:35]OFD Sender: No OFD packet to send [12:28:36]*** Cut start [12:28:36]*** Partial cut [12:28:36]*** CUTSNS_PIN = 1 [12:28:36]*** CUTSNS_PIN = 0 [12:28:36]*** Brake cut motor [12:28:36]Read from MH i2c: 01 [12:28:36]MH_I2C_Read... [12:28:36]*** Stop cut motor [12:28:36]*** Cut end [12:28:36]Read from MH i2c: 01 07 00 [12:28:36]MH_I2C_Read... [12:28:36]Read from MH i2c: 01 07 00 9A 94 00 00 00 00 00 FF 0F 43 [12:28:36]process_action close_receipt done [12:28:36]requested_data is exist [12:28:36]produce_requested_data [12:28:36]requested_item fm.sn is exist - process it [12:28:36]wFMCommunicate request_size=4 [12:28:36]MH_SAM_APDU [12:28:36]CAPDU: 80 11 00 00 [12:28:36]Write to MH i2c: E2 08 00 9B 94 80 11 00 00 00 00 00 00 A9 [12:28:36]Write i2c OK [12:28:36]MH_I2C_Read... [12:28:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:28:36]Read from MH i2c: E2 [12:28:36]MH_I2C_Read... [12:28:36]Read from MH i2c: E2 17 00 [12:28:36]MH_I2C_Read... [12:28:36]Read from MH i2c: E2 17 00 9B 94 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F8 [12:28:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:28:36]wFMCommunicate OK [12:28:36]requested_item fd.num is exist - process it [12:28:36]SAM_PROTO_GetFieldsCounters [12:28:36]wFMCommunicate request_size=4 [12:28:36]MH_SAM_APDU [12:28:36]CAPDU: 80 13 00 00 [12:28:36]Write to MH i2c: E2 08 00 9C 94 80 13 00 00 00 00 00 00 AC [12:28:36]Write i2c OK [12:28:36]MH_I2C_Read... [12:28:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:28:36]Read from MH i2c: E2 [12:28:36]MH_I2C_Read... [12:28:36]Read from MH i2c: E2 62 00 [12:28:36]MH_I2C_Read... [12:28:36]Read from MH i2c: E2 62 00 9C 94 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 1D 72 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 5E [12:28:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 1D 72 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:28:36]wFMCommunicate OK [12:28:36]SAM_PROTO_GetFieldsCounters done [12:28:36]requested_item shift.num is exist - process it [12:28:36]requested_item shift.opened is exist - process it [12:28:36]req_shift_opened [12:28:36]FM_GetShiftState [12:28:36]SAM_PROTO_GetShiftState [12:28:36]wFMCommunicate request_size=4 [12:28:36]MH_SAM_APDU [12:28:36]CAPDU: 80 13 01 00 [12:28:36]Write to MH i2c: E2 08 00 9D 94 80 13 01 00 00 00 00 00 AE [12:28:36]Write i2c OK [12:28:36]MH_I2C_Read... [12:28:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:28:36]Read from MH i2c: E2 [12:28:36]MH_I2C_Read... [12:28:36]Read from MH i2c: E2 0E 00 [12:28:36]MH_I2C_Read... [12:28:36]Read from MH i2c: E2 0E 00 9D 94 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 5A [12:28:36]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [12:28:36]wFMCommunicate OK [12:28:36]SAM_PROTO_GetShiftState done [12:28:36]FM_GetShiftState done [12:28:36]req_shift_opened done [12:28:36]requested_item shift.open_date is exist - process it [12:28:36]req_shift_open_date [12:28:36]req_shift_open_date done [12:28:36]produce_requested_data done [12:28:36]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29213,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [12:28:36]process_action_free close_receipt [12:28:36]json_value_free [12:28:36]json_value_free done [12:28:36]process_json_proto returns [12:28:36]Send response to host [12:28:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29213,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [12:28:36]free response buf [12:28:36]execute_script done [12:28:36]execute_script returns [12:28:36]free content buf [12:28:36]Sock 7.Close socket [12:28:36]Sock 7.Thread stoped [12:28:38]accept exits with 9 [12:28:38]New connection [12:28:38]New thread 3066785124 created [12:28:38]Thread 3066928484 joined [12:28:38]Waiting for new connection... [12:28:38] Sock 9.Parse request [12:28:38]Sock 9.Check first char [12:28:38]Sock 9.First char is OK [12:28:38]request: POST /json_proto HTTP/1.0 [12:28:38]Method: POST [12:28:38]URL: /json_proto [12:28:38]Method is POST - this is cgi request [12:28:38]url: /json_proto [12:28:38]query_string will be loaded in cgi processing [12:28:38]execute_cgi json_proto POST (null) [12:28:38]execute_cgi path=json_proto method=POST [12:28:38]POST find Content-Length [12:28:38]Host: 172.17.33.3:8080 [12:28:38]Content-Length: 701 [12:28:38]Content-Type: application/json [12:28:38] [12:28:38]POST finish read [12:28:38]Found Content-Length = 701 [12:28:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 29213, "base_FM": "0000000000963154", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347591", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 650.000, "sum" : 41795.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 41795.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:28:38]execute_script... [12:28:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 29213, "base_FM": "0000000000963154", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347591", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 650.000, "sum" : 41795.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 41795.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:28:38]POST & json_proto [12:28:38]process_json_proto [12:28:38]json parsed OK: [12:28:38]protocol is kg_v1.0 [12:28:38]action value=close_receipt [12:28:38]process_action close_receipt [12:28:38]cmd_close_receipt [12:28:38]MH_GetDate [12:28:38]Write to MH i2c: F0 00 00 9E 94 21 [12:28:38]Write i2c OK [12:28:38]MH_I2C_Read... [12:28:38]Read from MH i2c: F0 [12:28:38]MH_I2C_Read... [12:28:38]Read from MH i2c: F0 09 00 [12:28:38]MH_I2C_Read... [12:28:38]Read from MH i2c: F0 09 00 9E 94 00 00 CC 1B 66 23 5B 8F 65 E9 [12:28:38]GetLastDocTimeStamp 1713097722 [12:28:38]current date 1713097728 [12:28:38]FM_GetShiftState [12:28:38]SAM_PROTO_GetShiftState [12:28:38]wFMCommunicate request_size=4 [12:28:38]MH_SAM_APDU [12:28:38]CAPDU: 80 13 01 00 [12:28:38]Write to MH i2c: E2 08 00 9F 94 80 13 01 00 00 00 00 00 B0 [12:28:38]Write i2c OK [12:28:38]MH_I2C_Read... [12:28:38]Read from MH i2c: E2 [12:28:38]MH_I2C_Read... [12:28:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:28:38]Read from MH i2c: E2 0E 00 [12:28:38]MH_I2C_Read... [12:28:38]Read from MH i2c: E2 0E 00 9F 94 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 5C [12:28:38]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [12:28:38]wFMCommunicate OK [12:28:38]SAM_PROTO_GetShiftState done [12:28:38]FM_GetShiftState done [12:28:38]opened in 1713053951 [12:28:38]opened+sec_in_day 1713140351 [12:28:38]quantity*price = 4179500 [12:28:38]sum+1 = 4179501 [12:28:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 41795.00 НСП 1% : 369.87 НДС 12% : 4438.41 Наличными: 41795.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 124 14.04.2024 12:28 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФД осн.: 29213 ФМ осн.: 0000000000963154 ФМ: 0000000000963154 ФД: 29214 ФПД: 186222350975228 1/tax-web-control/client/api/v1/ticket?date=20240414T122848&type=2&operation_type=1&fn_number=0000000000963154&fd_number=29214&fm=186222350975228&tin=02508201610067®Number=0000138879044617&sum=4179500 [12:28:40]StoreToDocumentArchive [12:28:40]shift 116 fd 29214 [12:28:40]save to /storage/0116/doc_00029214 [12:28:40]save last doc name /storage/0116/doc_00029214 to /storage/kkm_last_doc_name [12:28:40]save OK [12:28:40]Clear old archive folders... [12:28:40]ProcessDocumentItem done err = 0, tmpTLVsize=279 [12:28:40]tlvbuf is 011DA4C0 [12:28:40]SAM_PROTO_ClearQueue [12:28:40]wFMCommunicate request_size=4 [12:28:40]MH_SAM_APDU [12:28:40]CAPDU: 80 09 00 00 [12:28:40]Write to MH i2c: E2 08 00 AE 94 80 09 00 00 00 00 00 00 B4 [12:28:40]Write i2c OK [12:28:40]MH_I2C_Read... [12:28:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:28:40]Read from MH i2c: E2 [12:28:40]MH_I2C_Read... [12:28:40]Read from MH i2c: E2 03 00 [12:28:40]MH_I2C_Read... [12:28:40]Read from MH i2c: E2 03 00 AE 94 00 90 00 B6 [12:28:40]RAPDU: 90 00 [12:28:40]wFMCommunicate OK [12:28:40]SAM_PROTO_ClearQueue done [12:28:40]KKMCreateOFDPacket [12:28:40]OFDProtocolAddRootSTLVToBuf [12:28:40]FM_MakeSignedData [12:28:40]FM_MakeSignedData [12:28:40]SAM_PROTO_SignData [12:28:40]wFMCommunicate request_size=4 [12:28:40]MH_SAM_APDU [12:28:40]CAPDU: 80 0D 01 02 [12:28:40]Write to MH i2c: E2 08 00 AF 94 80 0D 01 02 00 00 00 00 BC [12:28:40]Write i2c OK [12:28:40]MH_I2C_Read... [12:28:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:28:40]Read from MH i2c: E2 [12:28:40]MH_I2C_Read... [12:28:40]Read from MH i2c: E2 03 00 [12:28:40]MH_I2C_Read... [12:28:40]Read from MH i2c: E2 03 00 AF 94 00 90 00 B7 [12:28:40]RAPDU: 90 00 [12:28:40]wFMCommunicate OK [12:28:40]wFMCommunicate request_size=255 [12:28:40]MH_SAM_APDU [12:28:40]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 10 EB 09 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 2C C6 3F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C C6 3F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 90 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 C5 06 00 00 00 07 04 06 00 2C C6 3F 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 00 CC 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 1D 72 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 30 [12:28:40]Write to MH i2c: E2 02 01 B0 94 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 10 EB 09 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 2C C6 3F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C C6 3F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 90 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 C5 06 00 00 00 07 04 06 00 2C C6 3F 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 00 CC 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 1D 72 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 30 00 00 76 [12:28:40]Write i2c OK [12:28:40]MH_I2C_Read... [12:28:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:28:40]Read from MH i2c: E2 [12:28:40]MH_I2C_Read... [12:28:40]Read from MH i2c: E2 03 00 [12:28:40]MH_I2C_Read... [12:28:40]Read from MH i2c: E2 03 00 B0 94 00 90 00 B8 [12:28:40]RAPDU: 90 00 [12:28:40]wFMCommunicate OK [12:28:40]wFMCommunicate request_size=38 [12:28:40]MH_SAM_APDU [12:28:40]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1E 72 00 00 35 04 06 00 A9 5E 45 14 40 FC [12:28:40]Write to MH i2c: E2 29 00 B1 94 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1E 72 00 00 35 04 06 00 A9 5E 45 14 40 FC 00 00 70 [12:28:40]Write i2c OK [12:28:40]MH_I2C_Read... [12:28:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:28:40]Read from MH i2c: E2 [12:28:40]MH_I2C_Read... [12:28:40]Read from MH i2c: E2 03 00 [12:28:40]MH_I2C_Read... [12:28:40]Read from MH i2c: E2 03 00 B1 94 00 90 00 B9 [12:28:40]RAPDU: 90 00 [12:28:40]wFMCommunicate OK [12:28:40]wFMCommunicate request_size=4 [12:28:40]MH_SAM_APDU [12:28:40]CAPDU: 80 0D 03 02 [12:28:40]Write to MH i2c: E2 08 00 B2 94 80 0D 03 02 00 00 00 00 C1 [12:28:40]Write i2c OK [12:28:40]MH_I2C_Read... [12:28:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:28:40]Read from MH i2c: E2 [12:28:40]MH_I2C_Read... [12:28:40]Read from MH i2c: E2 0B 00 [12:28:40]MH_I2C_Read... [12:28:40]Read from MH i2c: E2 0B 00 B2 94 00 E5 E8 D7 D2 BE E4 11 8C 90 00 77 [12:28:40]RAPDU: E5 E8 D7 D2 BE E4 11 8C 90 00 [12:28:40]wFMCommunicate OK [12:28:40]SAM_PROTO_SignData done [12:28:40]FM_MakeSignedData done [12:28:40]CreateOFDProtocolMessage [12:28:40]wFMCommunicate request_size=4 [12:28:40]MH_SAM_APDU [12:28:40]CAPDU: 80 11 00 00 [12:28:40]Write to MH i2c: E2 08 00 B3 94 80 11 00 00 00 00 00 00 C1 [12:28:40]Write i2c OK [12:28:40]MH_I2C_Read... [12:28:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:28:40]Read from MH i2c: E2 [12:28:40]MH_I2C_Read... [12:28:40]Read from MH i2c: E2 17 00 [12:28:40]MH_I2C_Read... [12:28:40]Read from MH i2c: E2 17 00 B3 94 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 10 [12:28:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:28:40]wFMCommunicate OK [12:28:40]CreateOFDProtocolMessage done [12:28:40]OFDSenderStorePacket 29214 [12:28:40]StoreOFDPacket docnum=29214 [12:28:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 2B 01 00 00 CC B1 23 01 8E AC 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 10 EB 09 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 2C C6 3F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C C6 3F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 90 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 C5 06 00 00 00 07 04 06 00 2C C6 3F 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 00 CC 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 1D 72 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1E 72 00 00 35 04 06 00 A9 5E 45 14 40 FC E5 E8 D7 D2 BE E4 11 8C [12:28:40]CheckFolder [12:28:40]dirname=/storage/ofd_packets [12:28:40]CheckFolder done [12:28:40]ProducePacketName [12:28:40]name=ofd_packets/00029214 [12:28:40]NVStorageSaveData ofd_packets/00029214 [12:28:40]File name is /storage/ofd_packets/00029214 [12:28:40]Write 329 bytes [12:28:40]NVStorageSaveData done [12:28:40]OFDSenderStorePacket done [12:28:40]KKMCreateOFDPacket done [12:28:40]NVStorageSaveData kkm_last_timestamp [12:28:40]File name is /storage/kkm_last_timestamp [12:28:40]Write 4 bytes [12:28:40]NVStorageSaveData done [12:28:40]ExternCall_PrintAddStr [12:28:40]wPrintStart [12:28:40]Write to MH i2c: 01 00 00 B4 94 48 [12:28:40]Write i2c OK [12:28:40]MH_I2C_Read... [12:28:40]Read from MH i2c: 01 [12:28:40]MH_I2C_Read... [12:28:40]Read from MH i2c: 01 07 00 [12:28:40]MH_I2C_Read... [12:28:40]Read from MH i2c: 01 07 00 B4 94 00 00 00 00 00 FF 0F 5D [12:28:40]RasterBufferAndPrint [12:28:40]line Счет N : (1)347591 [12:28:40]line ИНН: 02508201610067 [12:28:40]line Контрольно-Кассовый Чек [12:28:40]line ВОЗВРАТ ПРОДАЖИ [12:28:40]line ТРК (МРК, ГНК) : 13 [12:28:40]line Товар: 2710124130 [12:28:40]line Аи-92-К-5 [12:28:40]line 650.000 * 64.30 [12:28:40]line = 41795.00 [12:28:40]line НДС 12% НСП 1% [12:28:40]line > о реализуемом товаре [12:28:40]line ИТОГО: 41795.00 [12:28:40]line НСП 1% : 369.87 [12:28:40]line НДС 12% : 4438.41 [12:28:40]line Наличными: 41795.00 [12:28:40]line Безнал.: 0.00 [12:28:40]line Место: АЗС № 108 "Партнер Нефть" [12:28:40]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [12:28:40]line СНО: Общий режим [12:28:40]line Чек 124 14.04.2024 12:28 [12:28:40]line Смена: 116 ФФД: 1.0 [12:28:40]line ЗНМ: 0300000027 [12:28:40]line РНМ: 0000138879044617 [12:28:40]line Версия ККМ: 001 [12:28:40]line ФД осн.: 29213 [12:28:40]line ФМ осн.: 0000000000963154 [12:28:40]line ФМ: 0000000000963154 [12:28:40]line ФД: 29214 [12:28:40]line ФПД: 186222350975228 [12:28:40]line 1/tax-web-control/client/api/v1/ticket?date=20240414T122848&type=2&operation_type=1&fn_number=0000000000963154&fd_number=29214&fm=186222350975228&tin=02508201610067®Number=0000138879044617&sum=4179500 [12:28:40]OFD Sender: Processing packet 29214 [packets to send 8, broken 7] [12:28:40]ProducePacketName [12:28:40]name=ofd_packets/00029214 [12:28:40]OFD Sender: To server: pG, [12:28:40]CommunicateWithHost lk.salyk.kg:30040 [12:28:40]ConnectInit lk.salyk.kg [12:28:40]written 0, free lines is 4095 [12:28:41]Connected sock=10 [12:28:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 2B 01 00 00 CC B1 23 01 8E AC 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 10 EB 09 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 2C C6 3F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C C6 3F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 90 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 C5 06 00 00 00 07 04 06 00 2C C6 3F 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 00 CC 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 1D 72 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1E 72 00 00 35 04 06 00 A9 5E 45 14 40 FC E5 E8 D7 D2 BE E4 11 8C [12:28:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 06 9C 47 00 0D 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 39 36 33 31 35 34 10 04 04 00 1E 72 00 00 F4 03 04 00 A5 76 1B 66 B6 04 01 00 00 9B DF 5E 56 2E 77 CD 40 [12:28:41]CommunicateWithHost err = 0 [12:28:41]CheckOFDResponse [12:28:41]1017 (14) - 77093643461234 [12:28:41]1041 (16) - 0000000000963154 [12:28:41]1040 (4) - 29214 [12:28:41]1012 (4) - 14.04.2024 06:24 [12:28:41]1206 (1) - 0 [12:28:41]OFD Sender: Remove packet 29214 [12:28:41]ProducePacketName [12:28:41]name=ofd_packets/00029214 [12:28:41]NVStorageDeleteData [12:28:41]Write to MH i2c: 01 00 00 DD 94 71 [12:28:41]Write i2c OK [12:28:41]MH_I2C_Read... [12:28:41]Read from MH i2c: 01 [12:28:41]MH_I2C_Read... [12:28:41]Read from MH i2c: 01 07 00 [12:28:41]MH_I2C_Read... [12:28:41]Read from MH i2c: 01 07 00 DD 94 00 00 00 00 00 FA 0C 7E [12:28:41]RasterBufferAndPrint [12:28:41]line [12:28:41]line [12:28:41]line [12:28:41]line [12:28:41]line [12:28:41]written 0, free lines is 3334 [12:28:41]MH_Cut [12:28:41]Write to MH i2c: D1 01 00 E4 94 01 4A [12:28:41]Write i2c OK [12:28:41]MH_I2C_Read... [12:28:41]Read from MH i2c: D1 [12:28:41]MH_I2C_Read... [12:28:41]Read from MH i2c: D1 01 00 [12:28:41]MH_I2C_Read... [12:28:41]Read from MH i2c: D1 01 00 E4 94 00 49 [12:28:41]Write to MH i2c: 01 00 00 E5 94 79 [12:28:41]Write i2c OK [12:28:41]MH_I2C_Read... [12:28:41]OFD Sender: No OFD packet to send [12:28:42]*** Cut start [12:28:42]*** Partial cut [12:28:42]*** CUTSNS_PIN = 1 [12:28:42]*** CUTSNS_PIN = 0 [12:28:42]*** Brake cut motor [12:28:42]Read from MH i2c: 01 [12:28:42]MH_I2C_Read... [12:28:42]*** Stop cut motor [12:28:42]*** Cut end [12:28:42]Read from MH i2c: 01 07 00 [12:28:42]MH_I2C_Read... [12:28:42]Read from MH i2c: 01 07 00 E5 94 00 00 00 00 00 FF 0F 8E [12:28:42]process_action close_receipt done [12:28:42]requested_data is exist [12:28:42]produce_requested_data [12:28:42]requested_item fm.sn is exist - process it [12:28:42]wFMCommunicate request_size=4 [12:28:42]MH_SAM_APDU [12:28:42]CAPDU: 80 11 00 00 [12:28:42]Write to MH i2c: E2 08 00 E6 94 80 11 00 00 00 00 00 00 F4 [12:28:42]Write i2c OK [12:28:42]MH_I2C_Read... [12:28:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:28:42]Read from MH i2c: E2 [12:28:42]MH_I2C_Read... [12:28:42]Read from MH i2c: E2 17 00 [12:28:42]MH_I2C_Read... [12:28:42]Read from MH i2c: E2 17 00 E6 94 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 43 [12:28:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:28:42]wFMCommunicate OK [12:28:42]requested_item fd.num is exist - process it [12:28:42]SAM_PROTO_GetFieldsCounters [12:28:42]wFMCommunicate request_size=4 [12:28:42]MH_SAM_APDU [12:28:42]CAPDU: 80 13 00 00 [12:28:42]Write to MH i2c: E2 08 00 E7 94 80 13 00 00 00 00 00 00 F7 [12:28:42]Write i2c OK [12:28:42]MH_I2C_Read... [12:28:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:28:43]Read from MH i2c: E2 [12:28:43]MH_I2C_Read... [12:28:43]Read from MH i2c: E2 62 00 [12:28:43]MH_I2C_Read... [12:28:43]Read from MH i2c: E2 62 00 E7 94 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 1E 72 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 AD [12:28:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 1E 72 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:28:43]wFMCommunicate OK [12:28:43]SAM_PROTO_GetFieldsCounters done [12:28:43]requested_item shift.num is exist - process it [12:28:43]requested_item shift.opened is exist - process it [12:28:43]req_shift_opened [12:28:43]FM_GetShiftState [12:28:43]SAM_PROTO_GetShiftState [12:28:43]wFMCommunicate request_size=4 [12:28:43]MH_SAM_APDU [12:28:43]CAPDU: 80 13 01 00 [12:28:43]Write to MH i2c: E2 08 00 E8 94 80 13 01 00 00 00 00 00 F9 [12:28:43]Write i2c OK [12:28:43]MH_I2C_Read... [12:28:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:28:43]Read from MH i2c: E2 [12:28:43]MH_I2C_Read... [12:28:43]Read from MH i2c: E2 0E 00 [12:28:43]MH_I2C_Read... [12:28:43]Read from MH i2c: E2 0E 00 E8 94 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 A5 [12:28:43]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [12:28:43]wFMCommunicate OK [12:28:43]SAM_PROTO_GetShiftState done [12:28:43]FM_GetShiftState done [12:28:43]req_shift_opened done [12:28:43]requested_item shift.open_date is exist - process it [12:28:43]req_shift_open_date [12:28:43]req_shift_open_date done [12:28:43]produce_requested_data done [12:28:43]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29214,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [12:28:43]process_action_free close_receipt [12:28:43]json_value_free [12:28:43]json_value_free done [12:28:43]process_json_proto returns [12:28:43]Send response to host [12:28:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29214,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [12:28:43]free response buf [12:28:43]execute_script done [12:28:43]execute_script returns [12:28:43]free content buf [12:28:43]Sock 9.Close socket [12:28:43]Sock 9.Thread stoped [12:28:46]int [12:28:46]Write to MH i2c: 01 00 00 E9 94 7D [12:28:46]*** FLAG_PRN_PAP1 set [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 E9 94 00 01 00 00 00 FF 0F 93 [12:28:46]state=0 [12:28:46]No paper [12:28:46]int [12:28:46]Write to MH i2c: 01 00 00 EA 94 7E [12:28:46]*** FLAG_PRN_PAP2 set [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 EA 94 00 03 00 00 00 FF 0F 96 [12:28:46]state=0 [12:28:46]No paper [12:28:46]Cover opened [12:28:46]OFD Sender: No OFD packet to send [12:28:50]int [12:28:50]Write to MH i2c: 01 00 00 EB 94 7F [12:28:50]*** FLAG_PRN_PAP2 reset [12:28:50]Write i2c OK [12:28:50]MH_I2C_Read... [12:28:50]Read from MH i2c: 01 [12:28:50]MH_I2C_Read... [12:28:50]Read from MH i2c: 01 07 00 [12:28:50]MH_I2C_Read... [12:28:50]Read from MH i2c: 01 07 00 EB 94 00 01 00 00 00 FF 0F 95 [12:28:50]state=3 [12:28:50]No paper [12:28:50]Cover closed [12:28:50]int [12:28:50]Write to MH i2c: 01 00 00 EC 94 80 [12:28:50]*** FLAG_PRN_PAP1 reset [12:28:50]Write i2c OK [12:28:50]MH_I2C_Read... [12:28:50]Read from MH i2c: 01 [12:28:50]MH_I2C_Read... [12:28:50]Read from MH i2c: 01 07 00 [12:28:50]MH_I2C_Read... [12:28:50]Read from MH i2c: 01 07 00 EC 94 00 00 00 00 00 FF 0F 95 [12:28:50]state=0 [12:28:51]OFD Sender: No OFD packet to send [12:28:56]OFD Sender: No OFD packet to send [12:29:01]OFD Sender: No OFD packet to send [12:29:06]int [12:29:06]Write to MH i2c: 01 00 00 ED 94 81 [12:29:06]*** FLAG_PRN_PAP1 set [12:29:06]Write i2c OK [12:29:06]MH_I2C_Read... [12:29:06]Read from MH i2c: 01 [12:29:06]MH_I2C_Read... [12:29:06]Read from MH i2c: 01 07 00 [12:29:06]MH_I2C_Read... [12:29:06]Read from MH i2c: 01 07 00 ED 94 00 01 00 00 00 FF 0F 97 [12:29:06]state=0 [12:29:06]No paper [12:29:06]int [12:29:06]Write to MH i2c: 01 00 00 EE 94 82 [12:29:06]*** FLAG_PRN_PAP2 set [12:29:06]Write i2c OK [12:29:06]MH_I2C_Read... [12:29:06]Read from MH i2c: 01 [12:29:06]MH_I2C_Read... [12:29:06]Read from MH i2c: 01 07 00 [12:29:06]MH_I2C_Read... [12:29:06]Read from MH i2c: 01 07 00 EE 94 00 03 00 00 00 FF 0F 9A [12:29:06]state=0 [12:29:06]No paper [12:29:06]Cover opened [12:29:06]OFD Sender: No OFD packet to send [12:29:11]Write to MH i2c: 01 00 00 EF 94 83 [12:29:11]Write i2c OK [12:29:11]MH_I2C_Read... [12:29:11]Read from MH i2c: 01 [12:29:11]MH_I2C_Read... [12:29:11]Read from MH i2c: 01 07 00 [12:29:11]MH_I2C_Read... [12:29:11]Read from MH i2c: 01 07 00 EF 94 00 03 00 00 00 FF 0F 9B [12:29:11]state=3 [12:29:11]No paper [12:29:11]Cover opened [12:29:11]int [12:29:11]Write to MH i2c: 01 00 00 F0 94 84 [12:29:11]*** FLAG_PRN_PAP2 reset [12:29:11]Write i2c OK [12:29:11]MH_I2C_Read... [12:29:11]Read from MH i2c: 01 [12:29:11]MH_I2C_Read... [12:29:11]Read from MH i2c: 01 07 00 [12:29:11]MH_I2C_Read... [12:29:11]Read from MH i2c: 01 07 00 F0 94 00 01 00 00 00 FF 0F 9A [12:29:11]state=3 [12:29:11]No paper [12:29:11]Cover closed [12:29:11]int [12:29:11]Write to MH i2c: 01 00 00 F1 94 85 [12:29:11]*** FLAG_PRN_PAP1 reset [12:29:11]Write i2c OK [12:29:11]MH_I2C_Read... [12:29:11]Read from MH i2c: 01 [12:29:11]MH_I2C_Read... [12:29:11]Read from MH i2c: 01 07 00 [12:29:11]MH_I2C_Read... [12:29:11]Read from MH i2c: 01 07 00 F1 94 00 00 00 00 00 FF 0F 9A [12:29:11]state=0 [12:29:11]OFD Sender: No OFD packet to send [12:29:15]accept exits with 7 [12:29:15]New connection [12:29:15]New thread 3066928484 created [12:29:15]Thread 3066785124 joined [12:29:15]Waiting for new connection... [12:29:15] Sock 7.Parse request [12:29:15]Sock 7.Check first char [12:29:15]Sock 7.First char is OK [12:29:15]request: POST /json_proto HTTP/1.0 [12:29:15]Method: POST [12:29:15]URL: /json_proto [12:29:15]Method is POST - this is cgi request [12:29:15]url: /json_proto [12:29:15]query_string will be loaded in cgi processing [12:29:15]execute_cgi json_proto POST (null) [12:29:15]execute_cgi path=json_proto method=POST [12:29:15]POST find Content-Length [12:29:15]Host: 172.17.33.3:8080 [12:29:15]Content-Length: 678 [12:29:15]Content-Type: application/json [12:29:15] [12:29:15]POST finish read [12:29:15]Found Content-Length = 678 [12:29:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347592", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.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" ] } } [12:29:15]execute_script... [12:29: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)347592", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.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" ] } } [12:29:15]POST & json_proto [12:29:15]process_json_proto [12:29:15]json parsed OK: [12:29:15]protocol is kg_v1.0 [12:29:15]action value=close_receipt [12:29:15]process_action close_receipt [12:29:15]cmd_close_receipt [12:29:15]MH_GetDate [12:29:15]Write to MH i2c: F0 00 00 F2 94 75 [12:29:15]Write i2c OK [12:29:15]MH_I2C_Read... [12:29:15]Read from MH i2c: F0 [12:29:15]MH_I2C_Read... [12:29:15]Read from MH i2c: F0 09 00 [12:29:15]MH_I2C_Read... [12:29:15]Read from MH i2c: F0 09 00 F2 94 00 25 CC 1B 66 23 5B 8F 65 62 [12:29:15]GetLastDocTimeStamp 1713097728 [12:29:15]current date 1713097765 [12:29:15]FM_GetShiftState [12:29:15]SAM_PROTO_GetShiftState [12:29:15]wFMCommunicate request_size=4 [12:29:15]MH_SAM_APDU [12:29:15]CAPDU: 80 13 01 00 [12:29:15]Write to MH i2c: E2 08 00 F3 94 80 13 01 00 00 00 00 00 04 [12:29:15]Write i2c OK [12:29:15]MH_I2C_Read... [12:29:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:15]Read from MH i2c: E2 [12:29:15]MH_I2C_Read... [12:29:15]Read from MH i2c: E2 0E 00 [12:29:15]MH_I2C_Read... [12:29:15]Read from MH i2c: E2 0E 00 F3 94 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 B0 [12:29:15]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [12:29:15]wFMCommunicate OK [12:29:15]SAM_PROTO_GetShiftState done [12:29:15]FM_GetShiftState done [12:29:15]opened in 1713053951 [12:29:15]opened+sec_in_day 1713140351 [12:29:15]quantity*price = 65007 [12:29:15]sum+1 = 65008 [12:29:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.75 НДС 12% : 69.03 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 125 14.04.2024 12:29 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29215 ФПД: 189421329408208 1/tax-web-control/client/api/v1/ticket?date=20240414T122925&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29215&fm=189421329408208&tin=02508201610067®Number=0000138879044617&sum=65000 [12:29:16]StoreToDocumentArchive [12:29:16]shift 116 fd 29215 [12:29:16]save to /storage/0116/doc_00029215 [12:29:16]save last doc name /storage/0116/doc_00029215 to /storage/kkm_last_doc_name [12:29:16]save OK [12:29:16]Clear old archive folders... [12:29:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:29:16]tlvbuf is 011DA430 [12:29:16]SAM_PROTO_ClearQueue [12:29:16]wFMCommunicate request_size=4 [12:29:16]MH_SAM_APDU [12:29:16]CAPDU: 80 09 00 00 [12:29:16]Write to MH i2c: E2 08 00 00 95 80 09 00 00 00 00 00 00 07 [12:29:16]Write i2c OK [12:29:16]MH_I2C_Read... [12:29:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:29:16]Read from MH i2c: E2 [12:29:16]MH_I2C_Read... [12:29:16]Read from MH i2c: E2 03 00 [12:29:16]MH_I2C_Read... [12:29:16]Read from MH i2c: E2 03 00 00 95 00 90 00 09 [12:29:16]RAPDU: 90 00 [12:29:16]wFMCommunicate OK [12:29:16]SAM_PROTO_ClearQueue done [12:29:16]KKMCreateOFDPacket [12:29:16]OFDProtocolAddRootSTLVToBuf [12:29:16]FM_MakeSignedData [12:29:16]FM_MakeSignedData [12:29:16]SAM_PROTO_SignData [12:29:16]wFMCommunicate request_size=4 [12:29:16]MH_SAM_APDU [12:29:16]CAPDU: 80 0D 01 02 [12:29:16]Write to MH i2c: E2 08 00 01 95 80 0D 01 02 00 00 00 00 0F [12:29:16]Write i2c OK [12:29:16]MH_I2C_Read... [12:29:16]Read from MH i2c: E2 [12:29:16]MH_I2C_Read... [12:29:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:29:16]Read from MH i2c: E2 03 00 [12:29:16]MH_I2C_Read... [12:29:16]Read from MH i2c: E2 03 00 01 95 00 90 00 0A [12:29:16]RAPDU: 90 00 [12:29:16]wFMCommunicate OK [12:29:16]wFMCommunicate request_size=255 [12:29:16]MH_SAM_APDU [12:29: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 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 7D 00 00 00 F4 03 04 00 25 CC 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1F 72 00 00 35 04 06 00 AC [12:29:16]Write to MH i2c: E2 02 01 02 95 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 7D 00 00 00 F4 03 04 00 25 CC 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1F 72 00 00 35 04 06 00 AC 00 00 BA [12:29:16]Write i2c OK [12:29:16]MH_I2C_Read... [12:29:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:16]Read from MH i2c: E2 [12:29:16]MH_I2C_Read... [12:29:16]Read from MH i2c: E2 03 00 [12:29:16]MH_I2C_Read... [12:29:16]Read from MH i2c: E2 03 00 02 95 00 90 00 0B [12:29:16]RAPDU: 90 00 [12:29:16]wFMCommunicate OK [12:29:16]wFMCommunicate request_size=10 [12:29:16]MH_SAM_APDU [12:29:16]CAPDU: 80 0D 02 02 05 47 17 0D 60 D0 [12:29:16]Write to MH i2c: E2 0D 00 03 95 80 0D 02 02 05 00 47 17 0D 60 D0 00 00 B7 [12:29:16]Write i2c OK [12:29:16]MH_I2C_Read... [12:29:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:16]Read from MH i2c: E2 [12:29:16]MH_I2C_Read... [12:29:16]Read from MH i2c: E2 03 00 [12:29:16]MH_I2C_Read... [12:29:16]Read from MH i2c: E2 03 00 03 95 00 90 00 0C [12:29:16]RAPDU: 90 00 [12:29:16]wFMCommunicate OK [12:29:16]wFMCommunicate request_size=4 [12:29:16]MH_SAM_APDU [12:29:16]CAPDU: 80 0D 03 02 [12:29:16]Write to MH i2c: E2 08 00 04 95 80 0D 03 02 00 00 00 00 14 [12:29:16]Write i2c OK [12:29:16]MH_I2C_Read... [12:29:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:29:16]Read from MH i2c: E2 [12:29:16]MH_I2C_Read... [12:29:16]Read from MH i2c: E2 0B 00 [12:29:16]MH_I2C_Read... [12:29:16]Read from MH i2c: E2 0B 00 04 95 00 3B 14 9E A5 16 D4 BE FB 90 00 4A [12:29:16]RAPDU: 3B 14 9E A5 16 D4 BE FB 90 00 [12:29:16]wFMCommunicate OK [12:29:16]SAM_PROTO_SignData done [12:29:16]FM_MakeSignedData done [12:29:16]CreateOFDProtocolMessage [12:29:16]wFMCommunicate request_size=4 [12:29:16]MH_SAM_APDU [12:29:16]CAPDU: 80 11 00 00 [12:29:16]Write to MH i2c: E2 08 00 05 95 80 11 00 00 00 00 00 00 14 [12:29:16]Write i2c OK [12:29:16]MH_I2C_Read... [12:29:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:16]Read from MH i2c: E2 [12:29:16]MH_I2C_Read... [12:29:16]Read from MH i2c: E2 17 00 [12:29:16]MH_I2C_Read... [12:29:16]Read from MH i2c: E2 17 00 05 95 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 63 [12:29:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:29:16]wFMCommunicate OK [12:29:16]CreateOFDProtocolMessage done [12:29:16]OFDSenderStorePacket 29215 [12:29:16]StoreOFDPacket docnum=29215 [12:29:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 42 05 07 01 8E 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 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 7D 00 00 00 F4 03 04 00 25 CC 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1F 72 00 00 35 04 06 00 AC 47 17 0D 60 D0 3B 14 9E A5 16 D4 BE FB [12:29:16]CheckFolder [12:29:16]dirname=/storage/ofd_packets [12:29:16]CheckFolder done [12:29:16]ProducePacketName [12:29:16]name=ofd_packets/00029215 [12:29:16]NVStorageSaveData ofd_packets/00029215 [12:29:16]File name is /storage/ofd_packets/00029215 [12:29:16]Write 301 bytes [12:29:16]NVStorageSaveData done [12:29:16]OFDSenderStorePacket done [12:29:16]KKMCreateOFDPacket done [12:29:16]NVStorageSaveData kkm_last_timestamp [12:29:16]File name is /storage/kkm_last_timestamp [12:29:16]Write 4 bytes [12:29:16]NVStorageSaveData done [12:29:16]ExternCall_PrintAddStr [12:29:16]wPrintStart [12:29:16]Write to MH i2c: 01 00 00 06 95 9B [12:29:16]Write i2c OK [12:29:16]MH_I2C_Read... [12:29:16]Read from MH i2c: 01 [12:29:16]MH_I2C_Read... [12:29:16]Read from MH i2c: 01 07 00 [12:29:16]MH_I2C_Read... [12:29:16]Read from MH i2c: 01 07 00 06 95 00 00 00 00 00 FF 0F B0 [12:29:16]RasterBufferAndPrint [12:29:16]line Счет N : (1)347592 [12:29:16]line ИНН: 02508201610067 [12:29:16]line Контрольно-Кассовый Чек [12:29:16]line ПРОДАЖА [12:29:16]line ТРК (МРК, ГНК) : 13 [12:29:16]line Товар: 2710124130 [12:29:16]line Аи-92-К-5 [12:29:16]line 10.110 * 64.30 [12:29:16]line = 650.07 [12:29:16]line НДС 12% НСП 1% [12:29:16]line > о реализуемом товаре [12:29:16]line ОКРУГЛЕНИЕ: -0.07 [12:29:16]line ИТОГО: 650.00 [12:29:16]line Внесено: 650.00 [12:29:16]line СДАЧА: 0.00 [12:29:16]line НСП 1% : 5.75 [12:29:16]line НДС 12% : 69.03 [12:29:16]line Наличными: 650.00 [12:29:16]line Безнал.: 0.00 [12:29:16]line Место: АЗС № 108 "Партнер Нефть" [12:29:16]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [12:29:16]line СНО: Общий режим [12:29:16]line Чек 125 14.04.2024 12:29 [12:29:16]line Смена: 116 ФФД: 1.0 [12:29:16]line ЗНМ: 0300000027 [12:29:16]line РНМ: 0000138879044617 [12:29:16]line Версия ККМ: 001 [12:29:16]line ФМ: 0000000000963154 [12:29:16]line ФД: 29215 [12:29:16]line ФПД: 189421329408208 [12:29:17]line 1/tax-web-control/client/api/v1/ticket?date=20240414T122925&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29215&fm=189421329408208&tin=02508201610067®Number=0000138879044617&sum=65000 [12:29:17]OFD Sender: Processing packet 29215 [packets to send 8, broken 7] [12:29:17]ProducePacketName [12:29:17]name=ofd_packets/00029215 [12:29:17]OFD Sender: To server: pG, [12:29:17]CommunicateWithHost lk.salyk.kg:30040 [12:29:17]ConnectInit lk.salyk.kg [12:29:17]written 0, free lines is 4095 [12:29:17]Connected sock=10 [12:29:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 42 05 07 01 8E 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 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 7D 00 00 00 F4 03 04 00 25 CC 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1F 72 00 00 35 04 06 00 AC 47 17 0D 60 D0 3B 14 9E A5 16 D4 BE FB [12:29:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 DC C2 47 00 50 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 39 36 33 31 35 34 10 04 04 00 1F 72 00 00 F4 03 04 00 C9 76 1B 66 B6 04 01 00 00 66 CC 46 FE F5 09 8D 50 [12:29:17]CommunicateWithHost err = 0 [12:29:17]CheckOFDResponse [12:29:17]1017 (14) - 77093643461234 [12:29:17]1041 (16) - 0000000000963154 [12:29:17]1040 (4) - 29215 [12:29:17]1012 (4) - 14.04.2024 06:25 [12:29:17]1206 (1) - 0 [12:29:17]OFD Sender: Remove packet 29215 [12:29:17]ProducePacketName [12:29:17]name=ofd_packets/00029215 [12:29:17]NVStorageDeleteData [12:29:17]Write to MH i2c: 01 00 00 30 95 C5 [12:29:17]Write i2c OK [12:29:17]MH_I2C_Read... [12:29:17]Read from MH i2c: 01 [12:29:17]MH_I2C_Read... [12:29:17]Read from MH i2c: 01 07 00 [12:29:17]MH_I2C_Read... [12:29:17]Read from MH i2c: 01 07 00 30 95 00 00 00 00 00 DC 0C B4 [12:29:17]RasterBufferAndPrint [12:29:17]line [12:29:17]line [12:29:17]line [12:29:17]line [12:29:17]line [12:29:17]written 0, free lines is 3298 [12:29:17]MH_Cut [12:29:17]Write to MH i2c: D1 01 00 37 95 01 9E [12:29:17]Write i2c OK [12:29:17]MH_I2C_Read... [12:29:17]Read from MH i2c: D1 [12:29:17]MH_I2C_Read... [12:29:17]Read from MH i2c: D1 01 00 [12:29:17]MH_I2C_Read... [12:29:17]Read from MH i2c: D1 01 00 37 95 00 9D [12:29:17]Write to MH i2c: 01 00 00 38 95 CD [12:29:17]Write i2c OK [12:29:17]MH_I2C_Read... [12:29:17]OFD Sender: No OFD packet to send [12:29:18]*** Cut start [12:29:18]*** Partial cut [12:29:18]*** CUTSNS_PIN = 1 [12:29:18]*** CUTSNS_PIN = 0 [12:29:18]*** Brake cut motor [12:29:18]Read from MH i2c: 01 [12:29:18]MH_I2C_Read... [12:29:18]*** Stop cut motor [12:29:18]*** Cut end [12:29:18]Read from MH i2c: 01 07 00 [12:29:18]MH_I2C_Read... [12:29:18]Read from MH i2c: 01 07 00 38 95 00 00 00 00 00 FF 0F E2 [12:29:18]process_action close_receipt done [12:29:18]requested_data is exist [12:29:18]produce_requested_data [12:29:18]requested_item fm.sn is exist - process it [12:29:18]wFMCommunicate request_size=4 [12:29:18]MH_SAM_APDU [12:29:18]CAPDU: 80 11 00 00 [12:29:18]Write to MH i2c: E2 08 00 39 95 80 11 00 00 00 00 00 00 48 [12:29:18]Write i2c OK [12:29:18]MH_I2C_Read... [12:29:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:18]Read from MH i2c: E2 [12:29:18]MH_I2C_Read... [12:29:18]Read from MH i2c: E2 17 00 [12:29:18]MH_I2C_Read... [12:29:18]Read from MH i2c: E2 17 00 39 95 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 97 [12:29:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:29:18]wFMCommunicate OK [12:29:18]requested_item fd.num is exist - process it [12:29:18]SAM_PROTO_GetFieldsCounters [12:29:18]wFMCommunicate request_size=4 [12:29:18]MH_SAM_APDU [12:29:18]CAPDU: 80 13 00 00 [12:29:18]Write to MH i2c: E2 08 00 3A 95 80 13 00 00 00 00 00 00 4B [12:29:18]Write i2c OK [12:29:18]MH_I2C_Read... [12:29:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:29:19]Read from MH i2c: E2 [12:29:19]MH_I2C_Read... [12:29:19]Read from MH i2c: E2 62 00 [12:29:19]MH_I2C_Read... [12:29:19]Read from MH i2c: E2 62 00 3A 95 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 1F 72 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 05 [12:29:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 1F 72 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:29:19]wFMCommunicate OK [12:29:19]SAM_PROTO_GetFieldsCounters done [12:29:19]requested_item shift.num is exist - process it [12:29:19]requested_item shift.opened is exist - process it [12:29:19]req_shift_opened [12:29:19]FM_GetShiftState [12:29:19]SAM_PROTO_GetShiftState [12:29:19]wFMCommunicate request_size=4 [12:29:19]MH_SAM_APDU [12:29:19]CAPDU: 80 13 01 00 [12:29:19]Write to MH i2c: E2 08 00 3B 95 80 13 01 00 00 00 00 00 4D [12:29:19]Write i2c OK [12:29:19]MH_I2C_Read... [12:29:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:19]Read from MH i2c: E2 [12:29:19]MH_I2C_Read... [12:29:19]Read from MH i2c: E2 0E 00 [12:29:19]MH_I2C_Read... [12:29:19]Read from MH i2c: E2 0E 00 3B 95 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 F9 [12:29:19]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [12:29:19]wFMCommunicate OK [12:29:19]SAM_PROTO_GetShiftState done [12:29:19]FM_GetShiftState done [12:29:19]req_shift_opened done [12:29:19]requested_item shift.open_date is exist - process it [12:29:19]req_shift_open_date [12:29:19]req_shift_open_date done [12:29:19]produce_requested_data done [12:29:19]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29215,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [12:29:19]process_action_free close_receipt [12:29:19]json_value_free [12:29:19]json_value_free done [12:29:19]process_json_proto returns [12:29:19]Send response to host [12:29:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29215,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [12:29:19]free response buf [12:29:19]execute_script done [12:29:19]execute_script returns [12:29:19]free content buf [12:29:19]Sock 7.Close socket [12:29:19]Sock 7.Thread stoped [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:39]accept exits with 9 [12:32:39]New connection [12:32:39]New thread 3066785124 created [12:32:39]Thread 3066928484 joined [12:32:39]Waiting for new connection... [12:32:39] Sock 9.Parse request [12:32:39]Sock 9.Check first char [12:32:39]Sock 9.First char is OK [12:32:39]request: POST /json_proto HTTP/1.0 [12:32:39]Method: POST [12:32:39]URL: /json_proto [12:32:39]Method is POST - this is cgi request [12:32:39]url: /json_proto [12:32:39]query_string will be loaded in cgi processing [12:32:39]execute_cgi json_proto POST (null) [12:32:39]execute_cgi path=json_proto method=POST [12:32:39]POST find Content-Length [12:32:39]Host: 172.17.33.3:8080 [12:32:39]Content-Length: 674 [12:32:39]Content-Type: application/json [12:32:39] [12:32:39]POST finish read [12:32:39]Found Content-Length = 674 [12:32:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347593", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 9.810, "sum" : 710.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 710.00, "total" : 710.00, "payments": [ { "type": 0, "sum" : 710.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:32:39]execute_script... [12:32: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)347593", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 9.810, "sum" : 710.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 710.00, "total" : 710.00, "payments": [ { "type": 0, "sum" : 710.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:32:39]POST & json_proto [12:32:39]process_json_proto [12:32:39]json parsed OK: [12:32:39]protocol is kg_v1.0 [12:32:39]action value=close_receipt [12:32:39]process_action close_receipt [12:32:39]cmd_close_receipt [12:32:39]MH_GetDate [12:32:39]Write to MH i2c: F0 00 00 3C 95 C0 [12:32:39]Write i2c OK [12:32:39]MH_I2C_Read... [12:32:39]Read from MH i2c: F0 [12:32:39]MH_I2C_Read... [12:32:39]Read from MH i2c: F0 09 00 [12:32:39]MH_I2C_Read... [12:32:39]Read from MH i2c: F0 09 00 3C 95 00 F1 CC 1B 66 23 5B 8F 65 79 [12:32:39]GetLastDocTimeStamp 1713097765 [12:32:39]current date 1713097969 [12:32:39]FM_GetShiftState [12:32:39]SAM_PROTO_GetShiftState [12:32:39]wFMCommunicate request_size=4 [12:32:39]MH_SAM_APDU [12:32:39]CAPDU: 80 13 01 00 [12:32:39]Write to MH i2c: E2 08 00 3D 95 80 13 01 00 00 00 00 00 4F [12:32:39]Write i2c OK [12:32:39]MH_I2C_Read... [12:32:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:39]Read from MH i2c: E2 [12:32:39]MH_I2C_Read... [12:32:39]Read from MH i2c: E2 0E 00 [12:32:39]MH_I2C_Read... [12:32:39]Read from MH i2c: E2 0E 00 3D 95 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 FB [12:32:39]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [12:32:39]wFMCommunicate OK [12:32:39]SAM_PROTO_GetShiftState done [12:32:39]FM_GetShiftState done [12:32:39]opened in 1713053951 [12:32:39]opened+sec_in_day 1713140351 [12:32:39]quantity*price = 71024 [12:32:39]sum+1 = 71025 [12:32:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 710.00 Внесено: 710.00 СДАЧА: 0.00 НСП 1% : 6.28 НДС 12% : 75.42 Наличными: 710.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 126 14.04.2024 12:32 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29216 ФПД: 144904511055446 1/tax-web-control/client/api/v1/ticket?date=20240414T123249&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29216&fm=144904511055446&tin=02508201610067®Number=0000138879044617&sum=71000 [12:32:40]StoreToDocumentArchive [12:32:40]shift 116 fd 29216 [12:32:40]save to /storage/0116/doc_00029216 [12:32:40]save last doc name /storage/0116/doc_00029216 to /storage/kkm_last_doc_name [12:32:40]save OK [12:32:40]Clear old archive folders... [12:32:40]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:32:40]tlvbuf is 011EAE90 [12:32:40]SAM_PROTO_ClearQueue [12:32:40]wFMCommunicate request_size=4 [12:32:40]MH_SAM_APDU [12:32:40]CAPDU: 80 09 00 00 [12:32:40]Write to MH i2c: E2 08 00 4A 95 80 09 00 00 00 00 00 00 51 [12:32:40]Write i2c OK [12:32:40]MH_I2C_Read... [12:32:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:32:40]Read from MH i2c: E2 [12:32:40]MH_I2C_Read... [12:32:40]Read from MH i2c: E2 03 00 [12:32:40]MH_I2C_Read... [12:32:40]Read from MH i2c: E2 03 00 4A 95 00 90 00 53 [12:32:40]RAPDU: 90 00 [12:32:40]wFMCommunicate OK [12:32:40]SAM_PROTO_ClearQueue done [12:32:40]KKMCreateOFDPacket [12:32:40]OFDProtocolAddRootSTLVToBuf [12:32:40]FM_MakeSignedData [12:32:40]FM_MakeSignedData [12:32:40]SAM_PROTO_SignData [12:32:40]wFMCommunicate request_size=4 [12:32:40]MH_SAM_APDU [12:32:40]CAPDU: 80 0D 01 02 [12:32:40]Write to MH i2c: E2 08 00 4B 95 80 0D 01 02 00 00 00 00 59 [12:32:40]Write i2c OK [12:32:40]MH_I2C_Read... [12:32:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:32:40]Read from MH i2c: E2 [12:32:40]MH_I2C_Read... [12:32:40]Read from MH i2c: E2 03 00 [12:32:40]MH_I2C_Read... [12:32:40]Read from MH i2c: E2 03 00 4B 95 00 90 00 54 [12:32:40]RAPDU: 90 00 [12:32:40]wFMCommunicate OK [12:32:40]wFMCommunicate request_size=255 [12:32:40]MH_SAM_APDU [12:32:40]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 52 26 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 70 15 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 15 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 1D 00 00 00 00 07 04 06 00 58 15 01 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 F1 CC 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 20 72 00 00 35 04 06 00 83 CA 35 E8 [12:32:40]Write to MH i2c: E2 02 01 4C 95 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 52 26 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 70 15 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 15 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 1D 00 00 00 00 07 04 06 00 58 15 01 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 F1 CC 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 20 72 00 00 35 04 06 00 83 CA 35 E8 00 00 46 [12:32:40]Write i2c OK [12:32:40]MH_I2C_Read... [12:32:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:40]Read from MH i2c: E2 [12:32:40]MH_I2C_Read... [12:32:40]Read from MH i2c: E2 03 00 [12:32:40]MH_I2C_Read... [12:32:40]Read from MH i2c: E2 03 00 4C 95 00 90 00 55 [12:32:40]RAPDU: 90 00 [12:32:40]wFMCommunicate OK [12:32:40]wFMCommunicate request_size=7 [12:32:40]MH_SAM_APDU [12:32:40]CAPDU: 80 0D 02 02 02 66 56 [12:32:40]Write to MH i2c: E2 0A 00 4D 95 80 0D 02 02 02 00 66 56 00 00 1C [12:32:40]Write i2c OK [12:32:40]MH_I2C_Read... [12:32:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:40]Read from MH i2c: E2 [12:32:40]MH_I2C_Read... [12:32:40]Read from MH i2c: E2 03 00 [12:32:40]MH_I2C_Read... [12:32:40]Read from MH i2c: E2 03 00 4D 95 00 90 00 56 [12:32:40]RAPDU: 90 00 [12:32:40]wFMCommunicate OK [12:32:40]wFMCommunicate request_size=4 [12:32:40]MH_SAM_APDU [12:32:40]CAPDU: 80 0D 03 02 [12:32:40]Write to MH i2c: E2 08 00 4E 95 80 0D 03 02 00 00 00 00 5E [12:32:40]Write i2c OK [12:32:40]MH_I2C_Read... [12:32:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:32:40]Read from MH i2c: E2 [12:32:40]MH_I2C_Read... [12:32:40]Read from MH i2c: E2 0B 00 [12:32:40]MH_I2C_Read... [12:32:40]Read from MH i2c: E2 0B 00 4E 95 00 4E E3 41 A7 9A 60 30 97 90 00 39 [12:32:40]RAPDU: 4E E3 41 A7 9A 60 30 97 90 00 [12:32:40]wFMCommunicate OK [12:32:40]SAM_PROTO_SignData done [12:32:40]FM_MakeSignedData done [12:32:40]CreateOFDProtocolMessage [12:32:40]wFMCommunicate request_size=4 [12:32:40]MH_SAM_APDU [12:32:40]CAPDU: 80 11 00 00 [12:32:40]Write to MH i2c: E2 08 00 4F 95 80 11 00 00 00 00 00 00 5E [12:32:40]Write i2c OK [12:32:40]MH_I2C_Read... [12:32:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:40]Read from MH i2c: E2 [12:32:40]MH_I2C_Read... [12:32:40]Read from MH i2c: E2 17 00 [12:32:40]MH_I2C_Read... [12:32:40]Read from MH i2c: E2 17 00 4F 95 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 AD [12:32:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:32:40]wFMCommunicate OK [12:32:40]CreateOFDProtocolMessage done [12:32:40]OFDSenderStorePacket 29216 [12:32:40]StoreOFDPacket docnum=29216 [12:32:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 19 E5 04 01 4F B9 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 52 26 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 70 15 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 15 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 1D 00 00 00 00 07 04 06 00 58 15 01 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 F1 CC 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 20 72 00 00 35 04 06 00 83 CA 35 E8 66 56 4E E3 41 A7 9A 60 30 97 [12:32:40]CheckFolder [12:32:40]dirname=/storage/ofd_packets [12:32:40]CheckFolder done [12:32:40]ProducePacketName [12:32:40]name=ofd_packets/00029216 [12:32:40]NVStorageSaveData ofd_packets/00029216 [12:32:40]File name is /storage/ofd_packets/00029216 [12:32:40]Write 298 bytes [12:32:40]NVStorageSaveData done [12:32:40]OFDSenderStorePacket done [12:32:40]KKMCreateOFDPacket done [12:32:40]NVStorageSaveData kkm_last_timestamp [12:32:40]File name is /storage/kkm_last_timestamp [12:32:40]Write 4 bytes [12:32:40]NVStorageSaveData done [12:32:40]ExternCall_PrintAddStr [12:32:40]wPrintStart [12:32:40]Write to MH i2c: 01 00 00 50 95 E5 [12:32:40]Write i2c OK [12:32:40]MH_I2C_Read... [12:32:40]Read from MH i2c: 01 [12:32:40]MH_I2C_Read... [12:32:40]Read from MH i2c: 01 07 00 [12:32:40]MH_I2C_Read... [12:32:40]Read from MH i2c: 01 07 00 50 95 00 00 00 00 00 FF 0F FA [12:32:40]RasterBufferAndPrint [12:32:40]line Счет N : (1)347593 [12:32:40]line ИНН: 02508201610067 [12:32:40]line Контрольно-Кассовый Чек [12:32:40]line ПРОДАЖА [12:32:40]line ТРК (МРК, ГНК) : 11 [12:32:40]line Товар: 2710194210 [12:32:40]line ДТ-К-5 [12:32:40]line 9.810 * 72.40 [12:32:40]line = 710.24 [12:32:40]line НДС 12% НСП 1% [12:32:40]line > о реализуемом товаре [12:32:40]line ОКРУГЛЕНИЕ: -0.24 [12:32:40]line ИТОГО: 710.00 [12:32:40]line Внесено: 710.00 [12:32:40]line СДАЧА: 0.00 [12:32:40]line НСП 1% : 6.28 [12:32:40]line НДС 12% : 75.42 [12:32:40]line Наличными: 710.00 [12:32:40]line Безнал.: 0.00 [12:32:40]line Место: АЗС № 108 "Партнер Нефть" [12:32:40]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [12:32:40]line СНО: Общий режим [12:32:40]line Чек 126 14.04.2024 12:32 [12:32:40]line Смена: 116 ФФД: 1.0 [12:32:40]line ЗНМ: 0300000027 [12:32:40]line РНМ: 0000138879044617 [12:32:40]line Версия ККМ: 001 [12:32:40]line ФМ: 0000000000963154 [12:32:40]line ФД: 29216 [12:32:40]line ФПД: 144904511055446 [12:32:40]line 1/tax-web-control/client/api/v1/ticket?date=20240414T123249&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29216&fm=144904511055446&tin=02508201610067®Number=0000138879044617&sum=71000 [12:32:40]written 0, free lines is 4095 [12:32:40]OFD Sender: Processing packet 29216 [packets to send 8, broken 7] [12:32:40]ProducePacketName [12:32:40]name=ofd_packets/00029216 [12:32:40]OFD Sender: To server: pG, [12:32:40]CommunicateWithHost lk.salyk.kg:30040 [12:32:40]ConnectInit lk.salyk.kg [12:32:41]Connected sock=11 [12:32:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 19 E5 04 01 4F B9 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 52 26 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 70 15 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 15 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 1D 00 00 00 00 07 04 06 00 58 15 01 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 F1 CC 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 20 72 00 00 35 04 06 00 83 CA 35 E8 66 56 4E E3 41 A7 9A 60 30 97 [12:32:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 F7 9B 47 00 D3 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 39 36 33 31 35 34 10 04 04 00 20 72 00 00 F4 03 04 00 94 77 1B 66 B6 04 01 00 00 97 B7 5E 86 8D 36 92 3F [12:32:41]CommunicateWithHost err = 0 [12:32:41]CheckOFDResponse [12:32:41]1017 (14) - 77093643461234 [12:32:41]1041 (16) - 0000000000963154 [12:32:41]1040 (4) - 29216 [12:32:41]1012 (4) - 14.04.2024 06:28 [12:32:41]1206 (1) - 0 [12:32:41]OFD Sender: Remove packet 29216 [12:32:41]ProducePacketName [12:32:41]name=ofd_packets/00029216 [12:32:41]NVStorageDeleteData [12:32:41]Write to MH i2c: 01 00 00 7A 95 0F [12:32:41]Write i2c OK [12:32:41]MH_I2C_Read... [12:32:41]Read from MH i2c: 01 [12:32:41]MH_I2C_Read... [12:32:41]Read from MH i2c: 01 07 00 [12:32:41]MH_I2C_Read... [12:32:41]Read from MH i2c: 01 07 00 7A 95 00 00 00 00 00 C9 0C EB [12:32:41]RasterBufferAndPrint [12:32:41]line [12:32:41]line [12:32:41]line [12:32:41]line [12:32:41]line [12:32:41]written 0, free lines is 3276 [12:32:41]MH_Cut [12:32:41]Write to MH i2c: D1 01 00 81 95 01 E8 [12:32:41]Write i2c OK [12:32:41]MH_I2C_Read... [12:32:41]Read from MH i2c: D1 [12:32:41]MH_I2C_Read... [12:32:41]Read from MH i2c: D1 01 00 [12:32:41]MH_I2C_Read... [12:32:41]Read from MH i2c: D1 01 00 81 95 00 E7 [12:32:41]Write to MH i2c: 01 00 00 82 95 17 [12:32:41]Write i2c OK [12:32:41]MH_I2C_Read... [12:32:41]OFD Sender: No OFD packet to send [12:32:42]*** Cut start [12:32:42]*** Partial cut [12:32:42]*** CUTSNS_PIN = 1 [12:32:42]*** CUTSNS_PIN = 0 [12:32:42]*** Brake cut motor [12:32:42]Read from MH i2c: 01 [12:32:42]MH_I2C_Read... [12:32:42]*** Stop cut motor [12:32:42]*** Cut end [12:32:42]Read from MH i2c: 01 07 00 [12:32:42]MH_I2C_Read... [12:32:42]Read from MH i2c: 01 07 00 82 95 00 00 00 00 00 FF 0F 2C [12:32:42]process_action close_receipt done [12:32:42]requested_data is exist [12:32:42]produce_requested_data [12:32:42]requested_item fm.sn is exist - process it [12:32:42]wFMCommunicate request_size=4 [12:32:42]MH_SAM_APDU [12:32:42]CAPDU: 80 11 00 00 [12:32:42]Write to MH i2c: E2 08 00 83 95 80 11 00 00 00 00 00 00 92 [12:32:42]Write i2c OK [12:32:42]MH_I2C_Read... [12:32:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:42]Read from MH i2c: E2 [12:32:42]MH_I2C_Read... [12:32:42]Read from MH i2c: E2 17 00 [12:32:42]MH_I2C_Read... [12:32:42]Read from MH i2c: E2 17 00 83 95 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E1 [12:32:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:32:42]wFMCommunicate OK [12:32:42]requested_item fd.num is exist - process it [12:32:42]SAM_PROTO_GetFieldsCounters [12:32:42]wFMCommunicate request_size=4 [12:32:42]MH_SAM_APDU [12:32:42]CAPDU: 80 13 00 00 [12:32:42]Write to MH i2c: E2 08 00 84 95 80 13 00 00 00 00 00 00 95 [12:32:42]Write i2c OK [12:32:42]MH_I2C_Read... [12:32:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:32:42]Read from MH i2c: E2 [12:32:42]MH_I2C_Read... [12:32:42]Read from MH i2c: E2 62 00 [12:32:42]MH_I2C_Read... [12:32:42]Read from MH i2c: E2 62 00 84 95 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 20 72 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 53 [12:32:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 20 72 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:32:42]wFMCommunicate OK [12:32:42]SAM_PROTO_GetFieldsCounters done [12:32:42]requested_item shift.num is exist - process it [12:32:42]requested_item shift.opened is exist - process it [12:32:42]req_shift_opened [12:32:42]FM_GetShiftState [12:32:42]SAM_PROTO_GetShiftState [12:32:42]wFMCommunicate request_size=4 [12:32:42]MH_SAM_APDU [12:32:42]CAPDU: 80 13 01 00 [12:32:42]Write to MH i2c: E2 08 00 85 95 80 13 01 00 00 00 00 00 97 [12:32:42]Write i2c OK [12:32:42]MH_I2C_Read... [12:32:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:42]Read from MH i2c: E2 [12:32:42]MH_I2C_Read... [12:32:42]Read from MH i2c: E2 0E 00 [12:32:42]MH_I2C_Read... [12:32:42]Read from MH i2c: E2 0E 00 85 95 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 43 [12:32:42]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [12:32:42]wFMCommunicate OK [12:32:42]SAM_PROTO_GetShiftState done [12:32:42]FM_GetShiftState done [12:32:42]req_shift_opened done [12:32:42]requested_item shift.open_date is exist - process it [12:32:42]req_shift_open_date [12:32:42]req_shift_open_date done [12:32:42]produce_requested_data done [12:32:42]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29216,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [12:32:42]process_action_free close_receipt [12:32:42]json_value_free [12:32:42]json_value_free done [12:32:42]process_json_proto returns [12:32:42]Send response to host [12:32:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29216,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [12:32:42]free response buf [12:32:42]execute_script done [12:32:42]execute_script returns [12:32:42]free content buf [12:32:42]Sock 9.Close socket [12:32:42]Sock 9.Thread stoped [12:32:46]OFD Sender: No OFD packet to send [12:32:51]OFD Sender: No OFD packet to send [12:32:56]OFD Sender: No OFD packet to send [12:33:01]OFD Sender: No OFD packet to send [12:33:06]OFD Sender: No OFD packet to send [12:33:11]OFD Sender: No OFD packet to send [12:33:16]OFD Sender: No OFD packet to send [12:33:21]OFD Sender: No OFD packet to send [12:33:26]OFD Sender: No OFD packet to send [12:33:31]OFD Sender: No OFD packet to send [12:33:36]OFD Sender: No OFD packet to send [12:33:41]OFD Sender: No OFD packet to send [12:33:46]OFD Sender: No OFD packet to send [12:33:51]OFD Sender: No OFD packet to send [12:33:56]OFD Sender: No OFD packet to send [12:34:01]OFD Sender: No OFD packet to send [12:34:06]OFD Sender: No OFD packet to send [12:34:11]OFD Sender: No OFD packet to send [12:34:16]OFD Sender: No OFD packet to send [12:34:21]OFD Sender: No OFD packet to send [12:34:26]OFD Sender: No OFD packet to send [12:34:31]OFD Sender: No OFD packet to send [12:34:36]OFD Sender: No OFD packet to send [12:34:41]OFD Sender: No OFD packet to send [12:34:46]OFD Sender: No OFD packet to send [12:34:51]OFD Sender: No OFD packet to send [12:34:56]OFD Sender: No OFD packet to send [12:35:01]OFD Sender: No OFD packet to send [12:35:06]OFD Sender: No OFD packet to send [12:35:11]OFD Sender: No OFD packet to send [12:35:12]accept exits with 7 [12:35:12]New connection [12:35:12]New thread 3066928484 created [12:35:12]Thread 3066785124 joined [12:35:12]Waiting for new connection... [12:35:12] Sock 7.Parse request [12:35:12]Sock 7.Check first char [12:35:12]Sock 7.First char is OK [12:35:12]request: POST /json_proto HTTP/1.0 [12:35:12]Method: POST [12:35:12]URL: /json_proto [12:35:12]Method is POST - this is cgi request [12:35:12]url: /json_proto [12:35:12]query_string will be loaded in cgi processing [12:35:12]execute_cgi json_proto POST (null) [12:35:12]execute_cgi path=json_proto method=POST [12:35:12]POST find Content-Length [12:35:12]Host: 172.17.33.3:8080 [12:35:12]Content-Length: 674 [12:35:12]Content-Type: application/json [12:35:12] [12:35:12]POST finish read [12:35:12]Found Content-Length = 674 [12:35:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347595", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.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" ] } } [12:35:12]execute_script... [12:35: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)347595", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.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" ] } } [12:35:12]POST & json_proto [12:35:12]process_json_proto [12:35:12]json parsed OK: [12:35:12]protocol is kg_v1.0 [12:35:12]action value=close_receipt [12:35:12]process_action close_receipt [12:35:12]cmd_close_receipt [12:35:12]MH_GetDate [12:35:12]Write to MH i2c: F0 00 00 86 95 0A [12:35:12]Write i2c OK [12:35:12]MH_I2C_Read... [12:35:12]Read from MH i2c: F0 [12:35:12]MH_I2C_Read... [12:35:12]Read from MH i2c: F0 09 00 [12:35:12]MH_I2C_Read... [12:35:12]Read from MH i2c: F0 09 00 86 95 00 8A CD 1B 66 23 5B 8F 65 5D [12:35:12]GetLastDocTimeStamp 1713097969 [12:35:12]current date 1713098122 [12:35:12]FM_GetShiftState [12:35:12]SAM_PROTO_GetShiftState [12:35:12]wFMCommunicate request_size=4 [12:35:12]MH_SAM_APDU [12:35:12]CAPDU: 80 13 01 00 [12:35:12]Write to MH i2c: E2 08 00 87 95 80 13 01 00 00 00 00 00 99 [12:35:12]Write i2c OK [12:35:12]MH_I2C_Read... [12:35:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:35:12]Read from MH i2c: E2 [12:35:12]MH_I2C_Read... [12:35:12]Read from MH i2c: E2 0E 00 [12:35:12]MH_I2C_Read... [12:35:12]Read from MH i2c: E2 0E 00 87 95 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 45 [12:35:12]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [12:35:12]wFMCommunicate OK [12:35:12]SAM_PROTO_GetShiftState done [12:35:12]FM_GetShiftState done [12:35:12]opened in 1713053951 [12:35:12]opened+sec_in_day 1713140351 [12:35:12]quantity*price = 70010 [12:35:12]sum+1 = 70012 [12:35:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.35 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 127 14.04.2024 12:35 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29217 ФПД: 98222744506311 1/tax-web-control/client/api/v1/ticket?date=20240414T123522&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29217&fm=98222744506311&tin=02508201610067®Number=0000138879044617&sum=70000 [12:35:13]StoreToDocumentArchive [12:35:13]shift 116 fd 29217 [12:35:13]save to /storage/0116/doc_00029217 [12:35:13]save last doc name /storage/0116/doc_00029217 to /storage/kkm_last_doc_name [12:35:13]save OK [12:35:13]Clear old archive folders... [12:35:13]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:35:13]tlvbuf is 011DA6C0 [12:35:13]SAM_PROTO_ClearQueue [12:35:13]wFMCommunicate request_size=4 [12:35:13]MH_SAM_APDU [12:35:13]CAPDU: 80 09 00 00 [12:35:13]Write to MH i2c: E2 08 00 94 95 80 09 00 00 00 00 00 00 9B [12:35:13]Write i2c OK [12:35:13]MH_I2C_Read... [12:35:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:35:13]Read from MH i2c: E2 [12:35:13]MH_I2C_Read... [12:35:13]Read from MH i2c: E2 03 00 [12:35:13]MH_I2C_Read... [12:35:13]Read from MH i2c: E2 03 00 94 95 00 90 00 9D [12:35:13]RAPDU: 90 00 [12:35:13]wFMCommunicate OK [12:35:13]SAM_PROTO_ClearQueue done [12:35:13]KKMCreateOFDPacket [12:35:13]OFDProtocolAddRootSTLVToBuf [12:35:13]FM_MakeSignedData [12:35:13]FM_MakeSignedData [12:35:13]SAM_PROTO_SignData [12:35:13]wFMCommunicate request_size=4 [12:35:13]MH_SAM_APDU [12:35:13]CAPDU: 80 0D 01 02 [12:35:13]Write to MH i2c: E2 08 00 95 95 80 0D 01 02 00 00 00 00 A3 [12:35:13]Write i2c OK [12:35:13]MH_I2C_Read... [12:35:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:35:13]Read from MH i2c: E2 [12:35:13]MH_I2C_Read... [12:35:13]Read from MH i2c: E2 03 00 [12:35:13]MH_I2C_Read... [12:35:13]Read from MH i2c: E2 03 00 95 95 00 90 00 9E [12:35:13]RAPDU: 90 00 [12:35:13]wFMCommunicate OK [12:35:13]wFMCommunicate request_size=255 [12:35:13]MH_SAM_APDU [12:35: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 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 7F 00 00 00 F4 03 04 00 8A CD 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 21 72 00 00 35 04 06 00 59 55 43 CB [12:35:13]Write to MH i2c: E2 02 01 96 95 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 7F 00 00 00 F4 03 04 00 8A CD 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 21 72 00 00 35 04 06 00 59 55 43 CB 00 00 AD [12:35:13]Write i2c OK [12:35:13]MH_I2C_Read... [12:35:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:35:14]Read from MH i2c: E2 [12:35:14]MH_I2C_Read... [12:35:14]Read from MH i2c: E2 03 00 [12:35:14]MH_I2C_Read... [12:35:14]Read from MH i2c: E2 03 00 96 95 00 90 00 9F [12:35:14]RAPDU: 90 00 [12:35:14]wFMCommunicate OK [12:35:14]wFMCommunicate request_size=7 [12:35:14]MH_SAM_APDU [12:35:14]CAPDU: 80 0D 02 02 02 8F C7 [12:35:14]Write to MH i2c: E2 0A 00 97 95 80 0D 02 02 02 00 8F C7 00 00 00 [12:35:14]Write i2c OK [12:35:14]MH_I2C_Read... [12:35:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:35:14]Read from MH i2c: E2 [12:35:14]MH_I2C_Read... [12:35:14]Read from MH i2c: E2 03 00 [12:35:14]MH_I2C_Read... [12:35:14]Read from MH i2c: E2 03 00 97 95 00 90 00 A0 [12:35:14]RAPDU: 90 00 [12:35:14]wFMCommunicate OK [12:35:14]wFMCommunicate request_size=4 [12:35:14]MH_SAM_APDU [12:35:14]CAPDU: 80 0D 03 02 [12:35:14]Write to MH i2c: E2 08 00 98 95 80 0D 03 02 00 00 00 00 A8 [12:35:14]Write i2c OK [12:35:14]MH_I2C_Read... [12:35:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:35:14]Read from MH i2c: E2 [12:35:14]MH_I2C_Read... [12:35:14]Read from MH i2c: E2 0B 00 [12:35:14]MH_I2C_Read... [12:35:14]Read from MH i2c: E2 0B 00 98 95 00 B1 28 D0 C4 64 1A C5 06 90 00 5F [12:35:14]RAPDU: B1 28 D0 C4 64 1A C5 06 90 00 [12:35:14]wFMCommunicate OK [12:35:14]SAM_PROTO_SignData done [12:35:14]FM_MakeSignedData done [12:35:14]CreateOFDProtocolMessage [12:35:14]wFMCommunicate request_size=4 [12:35:14]MH_SAM_APDU [12:35:14]CAPDU: 80 11 00 00 [12:35:14]Write to MH i2c: E2 08 00 99 95 80 11 00 00 00 00 00 00 A8 [12:35:14]Write i2c OK [12:35:14]MH_I2C_Read... [12:35:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:35:14]Read from MH i2c: E2 [12:35:14]MH_I2C_Read... [12:35:14]Read from MH i2c: E2 17 00 [12:35:14]MH_I2C_Read... [12:35:14]Read from MH i2c: E2 17 00 99 95 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F7 [12:35:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:35:14]wFMCommunicate OK [12:35:14]CreateOFDProtocolMessage done [12:35:14]OFDSenderStorePacket 29217 [12:35:14]StoreOFDPacket docnum=29217 [12:35:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 0A C5 04 01 B1 A3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 7F 00 00 00 F4 03 04 00 8A CD 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 21 72 00 00 35 04 06 00 59 55 43 CB 8F C7 B1 28 D0 C4 64 1A C5 06 [12:35:14]CheckFolder [12:35:14]dirname=/storage/ofd_packets [12:35:14]CheckFolder done [12:35:14]ProducePacketName [12:35:14]name=ofd_packets/00029217 [12:35:14]NVStorageSaveData ofd_packets/00029217 [12:35:14]File name is /storage/ofd_packets/00029217 [12:35:14]Write 298 bytes [12:35:14]NVStorageSaveData done [12:35:14]OFDSenderStorePacket done [12:35:14]KKMCreateOFDPacket done [12:35:14]NVStorageSaveData kkm_last_timestamp [12:35:14]File name is /storage/kkm_last_timestamp [12:35:14]OFD Sender: Processing packet 29217 [packets to send 8, broken 7] [12:35:14]ProducePacketName [12:35:14]name=ofd_packets/00029217 [12:35:14]OFD Sender: To server: pG, [12:35:14]CommunicateWithHost lk.salyk.kg:30040 [12:35:14]ConnectInit lk.salyk.kg [12:35:14]Write 4 bytes [12:35:14]NVStorageSaveData done [12:35:14]ExternCall_PrintAddStr [12:35:14]wPrintStart [12:35:14]Write to MH i2c: 01 00 00 9A 95 2F [12:35:14]Write i2c OK [12:35:14]MH_I2C_Read... [12:35:14]Read from MH i2c: 01 [12:35:14]MH_I2C_Read... [12:35:14]Read from MH i2c: 01 07 00 [12:35:14]MH_I2C_Read... [12:35:14]Read from MH i2c: 01 07 00 9A 95 00 00 00 00 00 FF 0F 44 [12:35:14]RasterBufferAndPrint [12:35:14]line Счет N : (1)347595 [12:35:14]line ИНН: 02508201610067 [12:35:14]line Контрольно-Кассовый Чек [12:35:14]line ПРОДАЖА [12:35:14]line ТРК (МРК, ГНК) : 11 [12:35:14]line Товар: 2710194210 [12:35:14]line ДТ-К-5 [12:35:14]line 9.670 * 72.40 [12:35:14]line = 700.11 [12:35:14]line НДС 12% НСП 1% [12:35:14]line > о реализуемом товаре [12:35:14]line ОКРУГЛЕНИЕ: -0.11 [12:35:14]line ИТОГО: 700.00 [12:35:14]line Внесено: 700.00 [12:35:14]line СДАЧА: 0.00 [12:35:14]line НСП 1% : 6.20 [12:35:14]line НДС 12% : 74.35 [12:35:14]line Наличными: 700.00 [12:35:14]line Безнал.: 0.00 [12:35:14]line Место: АЗС № 108 "Партнер Нефть" [12:35:14]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [12:35:14]line СНО: Общий режим [12:35:14]line Чек 127 14.04.2024 12:35 [12:35:14]line Смена: 116 ФФД: 1.0 [12:35:14]line ЗНМ: 0300000027 [12:35:14]line РНМ: 0000138879044617 [12:35:14]line Версия ККМ: 001 [12:35:14]line ФМ: 0000000000963154 [12:35:14]line ФД: 29217 [12:35:14]line ФПД: 98222744506311 [12:35:14]line 1/tax-web-control/client/api/v1/ticket?date=20240414T123522&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29217&fm=98222744506311&tin=02508201610067®Number=0000138879044617&sum=70000 [12:35:14]Connected sock=11 [12:35:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 0A C5 04 01 B1 A3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 7F 00 00 00 F4 03 04 00 8A CD 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 21 72 00 00 35 04 06 00 59 55 43 CB 8F C7 B1 28 D0 C4 64 1A C5 06 [12:35:14]written 0, free lines is 4095 [12:35:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 EE C6 47 00 86 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 39 36 33 31 35 34 10 04 04 00 21 72 00 00 F4 03 04 00 2E 78 1B 66 B6 04 01 00 00 98 CC 56 FD E6 B0 65 86 [12:35:14]CommunicateWithHost err = 0 [12:35:14]CheckOFDResponse [12:35:14]1017 (14) - 77093643461234 [12:35:14]1041 (16) - 0000000000963154 [12:35:14]1040 (4) - 29217 [12:35:14]1012 (4) - 14.04.2024 06:31 [12:35:14]1206 (1) - 0 [12:35:14]OFD Sender: Remove packet 29217 [12:35:14]ProducePacketName [12:35:14]name=ofd_packets/00029217 [12:35:14]NVStorageDeleteData [12:35:15]Write to MH i2c: 01 00 00 C4 95 59 [12:35:15]Write i2c OK [12:35:15]MH_I2C_Read... [12:35:15]Read from MH i2c: 01 [12:35:15]MH_I2C_Read... [12:35:15]Read from MH i2c: 01 07 00 [12:35:15]MH_I2C_Read... [12:35:15]Read from MH i2c: 01 07 00 C4 95 00 00 00 00 00 CA 0C 36 [12:35:15]RasterBufferAndPrint [12:35:15]line [12:35:15]line [12:35:15]line [12:35:15]line [12:35:15]line [12:35:15]written 0, free lines is 3280 [12:35:15]MH_Cut [12:35:15]Write to MH i2c: D1 01 00 CB 95 01 32 [12:35:15]Write i2c OK [12:35:15]MH_I2C_Read... [12:35:15]Read from MH i2c: D1 [12:35:15]MH_I2C_Read... [12:35:15]Read from MH i2c: D1 01 00 [12:35:15]MH_I2C_Read... [12:35:15]Read from MH i2c: D1 01 00 CB 95 00 31 [12:35:15]Write to MH i2c: 01 00 00 CC 95 61 [12:35:15]Write i2c OK [12:35:15]MH_I2C_Read... [12:35:15]OFD Sender: No OFD packet to send [12:35:15]*** Cut start [12:35:15]*** Partial cut [12:35:15]*** CUTSNS_PIN = 1 [12:35:15]*** CUTSNS_PIN = 0 [12:35:16]*** Brake cut motor [12:35:16]Read from MH i2c: 01 [12:35:16]MH_I2C_Read... [12:35:16]*** Stop cut motor [12:35:16]*** Cut end [12:35:16]Read from MH i2c: 01 07 00 [12:35:16]MH_I2C_Read... [12:35:16]Read from MH i2c: 01 07 00 CC 95 00 00 00 00 00 FF 0F 76 [12:35:16]process_action close_receipt done [12:35:16]requested_data is exist [12:35:16]produce_requested_data [12:35:16]requested_item fm.sn is exist - process it [12:35:16]wFMCommunicate request_size=4 [12:35:16]MH_SAM_APDU [12:35:16]CAPDU: 80 11 00 00 [12:35:16]Write to MH i2c: E2 08 00 CD 95 80 11 00 00 00 00 00 00 DC [12:35:16]Write i2c OK [12:35:16]MH_I2C_Read... [12:35:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:35:16]Read from MH i2c: E2 [12:35:16]MH_I2C_Read... [12:35:16]Read from MH i2c: E2 17 00 [12:35:16]MH_I2C_Read... [12:35:16]Read from MH i2c: E2 17 00 CD 95 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 2B [12:35:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:35:16]wFMCommunicate OK [12:35:16]requested_item fd.num is exist - process it [12:35:16]SAM_PROTO_GetFieldsCounters [12:35:16]wFMCommunicate request_size=4 [12:35:16]MH_SAM_APDU [12:35:16]CAPDU: 80 13 00 00 [12:35:16]Write to MH i2c: E2 08 00 CE 95 80 13 00 00 00 00 00 00 DF [12:35:16]Write i2c OK [12:35:16]MH_I2C_Read... [12:35:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:35:16]Read from MH i2c: E2 [12:35:16]MH_I2C_Read... [12:35:16]Read from MH i2c: E2 62 00 [12:35:16]MH_I2C_Read... [12:35:16]Read from MH i2c: E2 62 00 CE 95 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 21 72 00 00 0E 04 04 00 74 00 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 A1 [12:35:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 21 72 00 00 0E 04 04 00 74 00 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 [12:35:16]wFMCommunicate OK [12:35:16]SAM_PROTO_GetFieldsCounters done [12:35:16]requested_item shift.num is exist - process it [12:35:16]requested_item shift.opened is exist - process it [12:35:16]req_shift_opened [12:35:16]FM_GetShiftState [12:35:16]SAM_PROTO_GetShiftState [12:35:16]wFMCommunicate request_size=4 [12:35:16]MH_SAM_APDU [12:35:16]CAPDU: 80 13 01 00 [12:35:16]Write to MH i2c: E2 08 00 CF 95 80 13 01 00 00 00 00 00 E1 [12:35:16]Write i2c OK [12:35:16]MH_I2C_Read... [12:35:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:35:16]Read from MH i2c: E2 [12:35:16]MH_I2C_Read... [12:35:16]Read from MH i2c: E2 0E 00 [12:35:16]MH_I2C_Read... [12:35:16]Read from MH i2c: E2 0E 00 CF 95 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 8D [12:35:16]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [12:35:16]wFMCommunicate OK [12:35:16]SAM_PROTO_GetShiftState done [12:35:16]FM_GetShiftState done [12:35:16]req_shift_opened done [12:35:16]requested_item shift.open_date is exist - process it [12:35:16]req_shift_open_date [12:35:16]req_shift_open_date done [12:35:16]produce_requested_data done [12:35:16]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29217,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [12:35:16]process_action_free close_receipt [12:35:16]json_value_free [12:35:16]json_value_free done [12:35:16]process_json_proto returns [12:35:16]Send response to host [12:35:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29217,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [12:35:16]free response buf [12:35:16]execute_script done [12:35:16]execute_script returns [12:35:16]free content buf [12:35:16]Sock 7.Close socket [12:35:16]Sock 7.Thread stoped [12:35:17]accept exits with 9 [12:35:17]New connection [12:35:17]New thread 3066785124 created [12:35:17] Sock 9.Parse request [12:35:17]Thread 3066928484 joined [12:35:17]Sock 9.Check first char [12:35:17]Waiting for new connection... [12:35:17]Sock 9.First char is OK [12:35:17]request: POST /json_proto HTTP/1.0 [12:35:17]Method: POST [12:35:17]URL: /json_proto [12:35:17]Method is POST - this is cgi request [12:35:17]url: /json_proto [12:35:17]query_string will be loaded in cgi processing [12:35:17]execute_cgi json_proto POST (null) [12:35:17]execute_cgi path=json_proto method=POST [12:35:17]POST find Content-Length [12:35:17]Host: 172.17.33.3:8080 [12:35:17]Content-Length: 682 [12:35:17]Content-Type: application/json [12:35:17] [12:35:17]POST finish read [12:35:17]Found Content-Length = 682 [12:35:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347594", "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" : 51.310, "sum" : 3299.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 3299.00, "payments": [ { "type": 0, "sum" : 3299.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:35:17]execute_script... [12:35: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)347594", "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" : 51.310, "sum" : 3299.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 3299.00, "payments": [ { "type": 0, "sum" : 3299.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:35:17]POST & json_proto [12:35:17]process_json_proto [12:35:17]json parsed OK: [12:35:17]protocol is kg_v1.0 [12:35:17]action value=close_receipt [12:35:17]process_action close_receipt [12:35:17]cmd_close_receipt [12:35:17]MH_GetDate [12:35:17]Write to MH i2c: F0 00 00 D0 95 54 [12:35:17]Write i2c OK [12:35:17]MH_I2C_Read... [12:35:17]Read from MH i2c: F0 [12:35:17]MH_I2C_Read... [12:35:17]Read from MH i2c: F0 09 00 [12:35:17]MH_I2C_Read... [12:35:17]Read from MH i2c: F0 09 00 D0 95 00 8F CD 1B 66 23 5B 8F 65 AC [12:35:17]GetLastDocTimeStamp 1713098122 [12:35:17]current date 1713098127 [12:35:17]FM_GetShiftState [12:35:17]SAM_PROTO_GetShiftState [12:35:17]wFMCommunicate request_size=4 [12:35:17]MH_SAM_APDU [12:35:17]CAPDU: 80 13 01 00 [12:35:17]Write to MH i2c: E2 08 00 D1 95 80 13 01 00 00 00 00 00 E3 [12:35:17]Write i2c OK [12:35:17]MH_I2C_Read... [12:35:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:35:17]Read from MH i2c: E2 [12:35:17]MH_I2C_Read... [12:35:17]Read from MH i2c: E2 0E 00 [12:35:17]MH_I2C_Read... [12:35:17]Read from MH i2c: E2 0E 00 D1 95 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 8F [12:35:17]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [12:35:17]wFMCommunicate OK [12:35:17]SAM_PROTO_GetShiftState done [12:35:17]FM_GetShiftState done [12:35:17]opened in 1713053951 [12:35:17]opened+sec_in_day 1713140351 [12:35:17]quantity*price = 329923 [12:35:17]sum+1 = 329924 [12:35:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 3299.00 Внесено: 5000.00 СДАЧА: 1701.00 НСП 1% : 29.20 НДС 12% : 350.36 Наличными: 3299.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 128 14.04.2024 12:35 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29218 ФПД: 33070832604689 1/tax-web-control/client/api/v1/ticket?date=20240414T123527&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29218&fm=33070832604689&tin=02508201610067®Number=0000138879044617&sum=329900 [12:35:18]StoreToDocumentArchive [12:35:18]shift 116 fd 29218 [12:35:18]save to /storage/0116/doc_00029218 [12:35:18]save last doc name /storage/0116/doc_00029218 to /storage/kkm_last_doc_name [12:35:18]save OK [12:35:18]Clear old archive folders... [12:35:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:35:18]tlvbuf is 012106A0 [12:35:18]SAM_PROTO_ClearQueue [12:35:18]wFMCommunicate request_size=4 [12:35:18]MH_SAM_APDU [12:35:18]CAPDU: 80 09 00 00 [12:35:18]Write to MH i2c: E2 08 00 DE 95 80 09 00 00 00 00 00 00 E5 [12:35:18]Write i2c OK [12:35:18]MH_I2C_Read... [12:35:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:35:18]Read from MH i2c: E2 [12:35:18]MH_I2C_Read... [12:35:18]Read from MH i2c: E2 03 00 [12:35:18]MH_I2C_Read... [12:35:18]Read from MH i2c: E2 03 00 DE 95 00 90 00 E7 [12:35:18]RAPDU: 90 00 [12:35:18]wFMCommunicate OK [12:35:18]SAM_PROTO_ClearQueue done [12:35:18]KKMCreateOFDPacket [12:35:18]OFDProtocolAddRootSTLVToBuf [12:35:18]FM_MakeSignedData [12:35:18]FM_MakeSignedData [12:35:18]SAM_PROTO_SignData [12:35:18]wFMCommunicate request_size=4 [12:35:18]MH_SAM_APDU [12:35:18]CAPDU: 80 0D 01 02 [12:35:18]Write to MH i2c: E2 08 00 DF 95 80 0D 01 02 00 00 00 00 ED [12:35:18]Write i2c OK [12:35:18]MH_I2C_Read... [12:35:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:35:18]Read from MH i2c: E2 [12:35:18]MH_I2C_Read... [12:35:18]Read from MH i2c: E2 03 00 [12:35:18]MH_I2C_Read... [12:35:18]Read from MH i2c: E2 03 00 DF 95 00 90 00 E8 [12:35:18]RAPDU: 90 00 [12:35:18]wFMCommunicate OK [12:35:18]wFMCommunicate request_size=255 [12:35:18]MH_SAM_APDU [12:35: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 6E C8 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 C3 08 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 08 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 68 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 88 00 00 00 00 07 04 06 00 AC 08 05 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 8F CD 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 22 72 00 00 35 04 06 00 1E [12:35:18]Write to MH i2c: E2 02 01 E0 95 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 C8 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 C3 08 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 08 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 68 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 88 00 00 00 00 07 04 06 00 AC 08 05 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 8F CD 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 22 72 00 00 35 04 06 00 1E 00 00 1D [12:35:18]Write i2c OK [12:35:18]MH_I2C_Read... [12:35:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:35:18]Read from MH i2c: E2 [12:35:18]MH_I2C_Read... [12:35:18]Read from MH i2c: E2 03 00 [12:35:18]MH_I2C_Read... [12:35:18]Read from MH i2c: E2 03 00 E0 95 00 90 00 E9 [12:35:18]RAPDU: 90 00 [12:35:18]wFMCommunicate OK [12:35:18]wFMCommunicate request_size=10 [12:35:18]MH_SAM_APDU [12:35:18]CAPDU: 80 0D 02 02 05 13 E7 3A D6 11 [12:35:18]Write to MH i2c: E2 0D 00 E1 95 80 0D 02 02 05 00 13 E7 3A D6 11 00 00 15 [12:35:18]Write i2c OK [12:35:18]MH_I2C_Read... [12:35:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:35:18]Read from MH i2c: E2 [12:35:18]MH_I2C_Read... [12:35:18]Read from MH i2c: E2 03 00 [12:35:18]MH_I2C_Read... [12:35:18]Read from MH i2c: E2 03 00 E1 95 00 90 00 EA [12:35:18]RAPDU: 90 00 [12:35:18]wFMCommunicate OK [12:35:18]wFMCommunicate request_size=4 [12:35:18]MH_SAM_APDU [12:35:18]CAPDU: 80 0D 03 02 [12:35:18]Write to MH i2c: E2 08 00 E2 95 80 0D 03 02 00 00 00 00 F2 [12:35:18]Write i2c OK [12:35:18]MH_I2C_Read... [12:35:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:35:18]Read from MH i2c: E2 [12:35:18]MH_I2C_Read... [12:35:18]Read from MH i2c: E2 0B 00 [12:35:18]MH_I2C_Read... [12:35:18]Read from MH i2c: E2 0B 00 E2 95 00 EC CA E9 12 B9 BF EC C9 90 00 D1 [12:35:18]RAPDU: EC CA E9 12 B9 BF EC C9 90 00 [12:35:18]wFMCommunicate OK [12:35:18]SAM_PROTO_SignData done [12:35:18]FM_MakeSignedData done [12:35:18]CreateOFDProtocolMessage [12:35:18]wFMCommunicate request_size=4 [12:35:18]MH_SAM_APDU [12:35:18]CAPDU: 80 11 00 00 [12:35:18]Write to MH i2c: E2 08 00 E3 95 80 11 00 00 00 00 00 00 F2 [12:35:18]Write i2c OK [12:35:18]MH_I2C_Read... [12:35:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:35:19]Read from MH i2c: E2 [12:35:19]MH_I2C_Read... [12:35:19]Read from MH i2c: E2 17 00 [12:35:19]MH_I2C_Read... [12:35:19]Read from MH i2c: E2 17 00 E3 95 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 41 [12:35:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:35:19]wFMCommunicate OK [12:35:19]CreateOFDProtocolMessage done [12:35:19]OFDSenderStorePacket 29218 [12:35:19]StoreOFDPacket docnum=29218 [12:35:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 EF 29 07 01 C9 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 6E C8 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 C3 08 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 08 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 68 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 88 00 00 00 00 07 04 06 00 AC 08 05 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 8F CD 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 22 72 00 00 35 04 06 00 1E 13 E7 3A D6 11 EC CA E9 12 B9 BF EC C9 [12:35:19]CheckFolder [12:35:19]dirname=/storage/ofd_packets [12:35:19]CheckFolder done [12:35:19]ProducePacketName [12:35:19]name=ofd_packets/00029218 [12:35:19]NVStorageSaveData ofd_packets/00029218 [12:35:19]File name is /storage/ofd_packets/00029218 [12:35:19]Write 301 bytes [12:35:19]NVStorageSaveData done [12:35:19]OFDSenderStorePacket done [12:35:19]KKMCreateOFDPacket done [12:35:19]NVStorageSaveData kkm_last_timestamp [12:35:19]File name is /storage/kkm_last_timestamp [12:35:19]Write 4 bytes [12:35:19]NVStorageSaveData done [12:35:19]ExternCall_PrintAddStr [12:35:19]wPrintStart [12:35:19]Write to MH i2c: 01 00 00 E4 95 79 [12:35:19]Write i2c OK [12:35:19]MH_I2C_Read... [12:35:19]Read from MH i2c: 01 [12:35:19]MH_I2C_Read... [12:35:19]Read from MH i2c: 01 07 00 [12:35:19]MH_I2C_Read... [12:35:19]Read from MH i2c: 01 07 00 E4 95 00 00 00 00 00 FF 0F 8E [12:35:19]RasterBufferAndPrint [12:35:19]line Счет N : (1)347594 [12:35:19]line ИНН: 02508201610067 [12:35:19]line Контрольно-Кассовый Чек [12:35:19]line ПРОДАЖА [12:35:19]line ТРК (МРК, ГНК) : 42 [12:35:19]line Товар: 2710124130 [12:35:19]line Аи-92-К-5 [12:35:19]line 51.310 * 64.30 [12:35:19]line = 3299.23 [12:35:19]line НДС 12% НСП 1% [12:35:19]line > о реализуемом товаре [12:35:19]line ОКРУГЛЕНИЕ: -0.23 [12:35:19]line ИТОГО: 3299.00 [12:35:19]line Внесено: 5000.00 [12:35:19]line СДАЧА: 1701.00 [12:35:19]line НСП 1% : 29.20 [12:35:19]line НДС 12% : 350.36 [12:35:19]line Наличными: 3299.00 [12:35:19]line Безнал.: 0.00 [12:35:19]line Место: АЗС № 108 "Партнер Нефть" [12:35:19]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [12:35:19]line СНО: Общий режим [12:35:19]line Чек 128 14.04.2024 12:35 [12:35:19]line Смена: 116 ФФД: 1.0 [12:35:19]line ЗНМ: 0300000027 [12:35:19]line РНМ: 0000138879044617 [12:35:19]line Версия ККМ: 001 [12:35:19]line ФМ: 0000000000963154 [12:35:19]line ФД: 29218 [12:35:19]line ФПД: 33070832604689 [12:35:19]line 1/tax-web-control/client/api/v1/ticket?date=20240414T123527&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29218&fm=33070832604689&tin=02508201610067®Number=0000138879044617&sum=329900 [12:35:19]written 0, free lines is 4095 [12:35:19]OFD Sender: Processing packet 29218 [packets to send 8, broken 7] [12:35:19]ProducePacketName [12:35:19]name=ofd_packets/00029218 [12:35:19]OFD Sender: To server: pG, [12:35:19]CommunicateWithHost lk.salyk.kg:30040 [12:35:19]ConnectInit lk.salyk.kg [12:35:19]Connected sock=10 [12:35:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 EF 29 07 01 C9 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 6E C8 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 C3 08 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 08 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 68 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 88 00 00 00 00 07 04 06 00 AC 08 05 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 8F CD 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 22 72 00 00 35 04 06 00 1E 13 E7 3A D6 11 EC CA E9 12 B9 BF EC C9 [12:35:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 CC 09 47 00 F1 A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 22 72 00 00 F4 03 04 00 33 78 1B 66 B6 04 01 00 00 B4 97 E5 9A 64 10 25 1C [12:35:19]CommunicateWithHost err = 0 [12:35:19]CheckOFDResponse [12:35:19]1017 (14) - 77093643461234 [12:35:19]1041 (16) - 0000000000963154 [12:35:19]1040 (4) - 29218 [12:35:19]1012 (4) - 14.04.2024 06:31 [12:35:19]1206 (1) - 0 [12:35:19]OFD Sender: Remove packet 29218 [12:35:19]ProducePacketName [12:35:19]name=ofd_packets/00029218 [12:35:19]NVStorageDeleteData [12:35:19]Write to MH i2c: 01 00 00 0E 96 A4 [12:35:19]Write i2c OK [12:35:19]MH_I2C_Read... [12:35:19]Read from MH i2c: 01 [12:35:19]MH_I2C_Read... [12:35:19]Read from MH i2c: 01 07 00 [12:35:19]MH_I2C_Read... [12:35:19]Read from MH i2c: 01 07 00 0E 96 00 00 00 00 00 DE 0C 95 [12:35:19]RasterBufferAndPrint [12:35:19]line [12:35:19]line [12:35:19]line [12:35:19]line [12:35:19]line [12:35:19]written 0, free lines is 3306 [12:35:19]MH_Cut [12:35:19]Write to MH i2c: D1 01 00 15 96 01 7D [12:35:19]Write i2c OK [12:35:19]MH_I2C_Read... [12:35:19]Read from MH i2c: D1 [12:35:19]MH_I2C_Read... [12:35:19]Read from MH i2c: D1 01 00 [12:35:19]MH_I2C_Read... [12:35:19]Read from MH i2c: D1 01 00 15 96 00 7C [12:35:19]Write to MH i2c: 01 00 00 16 96 AC [12:35:19]Write i2c OK [12:35:19]MH_I2C_Read... [12:35:20]OFD Sender: No OFD packet to send [12:35:20]*** Cut start [12:35:20]*** Partial cut [12:35:20]*** CUTSNS_PIN = 1 [12:35:20]*** CUTSNS_PIN = 0 [12:35:20]*** Brake cut motor [12:35:21]Read from MH i2c: 01 [12:35:21]MH_I2C_Read... [12:35:21]*** Stop cut motor [12:35:21]*** Cut end [12:35:21]Read from MH i2c: 01 07 00 [12:35:21]MH_I2C_Read... [12:35:21]Read from MH i2c: 01 07 00 16 96 00 00 00 00 00 FF 0F C1 [12:35:21]process_action close_receipt done [12:35:21]requested_data is exist [12:35:21]produce_requested_data [12:35:21]requested_item fm.sn is exist - process it [12:35:21]wFMCommunicate request_size=4 [12:35:21]MH_SAM_APDU [12:35:21]CAPDU: 80 11 00 00 [12:35:21]Write to MH i2c: E2 08 00 17 96 80 11 00 00 00 00 00 00 27 [12:35:21]Write i2c OK [12:35:21]MH_I2C_Read... [12:35:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:35:21]Read from MH i2c: E2 [12:35:21]MH_I2C_Read... [12:35:21]Read from MH i2c: E2 17 00 [12:35:21]MH_I2C_Read... [12:35:21]Read from MH i2c: E2 17 00 17 96 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 76 [12:35:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:35:21]wFMCommunicate OK [12:35:21]requested_item fd.num is exist - process it [12:35:21]SAM_PROTO_GetFieldsCounters [12:35:21]wFMCommunicate request_size=4 [12:35:21]MH_SAM_APDU [12:35:21]CAPDU: 80 13 00 00 [12:35:21]Write to MH i2c: E2 08 00 18 96 80 13 00 00 00 00 00 00 2A [12:35:21]Write i2c OK [12:35:21]MH_I2C_Read... [12:35:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:35:21]Read from MH i2c: E2 [12:35:21]MH_I2C_Read... [12:35:21]Read from MH i2c: E2 62 00 [12:35:21]MH_I2C_Read... [12:35:21]Read from MH i2c: E2 62 00 18 96 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 22 72 00 00 0E 04 04 00 74 00 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 F0 [12:35:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 22 72 00 00 0E 04 04 00 74 00 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 [12:35:21]wFMCommunicate OK [12:35:21]SAM_PROTO_GetFieldsCounters done [12:35:21]requested_item shift.num is exist - process it [12:35:21]requested_item shift.opened is exist - process it [12:35:21]req_shift_opened [12:35:21]FM_GetShiftState [12:35:21]SAM_PROTO_GetShiftState [12:35:21]wFMCommunicate request_size=4 [12:35:21]MH_SAM_APDU [12:35:21]CAPDU: 80 13 01 00 [12:35:21]Write to MH i2c: E2 08 00 19 96 80 13 01 00 00 00 00 00 2C [12:35:21]Write i2c OK [12:35:21]MH_I2C_Read... [12:35:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:35:21]Read from MH i2c: E2 [12:35:21]MH_I2C_Read... [12:35:21]Read from MH i2c: E2 0E 00 [12:35:21]MH_I2C_Read... [12:35:21]Read from MH i2c: E2 0E 00 19 96 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 D8 [12:35:21]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [12:35:21]wFMCommunicate OK [12:35:21]SAM_PROTO_GetShiftState done [12:35:21]FM_GetShiftState done [12:35:21]req_shift_opened done [12:35:21]requested_item shift.open_date is exist - process it [12:35:21]req_shift_open_date [12:35:21]req_shift_open_date done [12:35:21]produce_requested_data done [12:35:21]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29218,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [12:35:21]process_action_free close_receipt [12:35:21]json_value_free [12:35:21]json_value_free done [12:35:21]process_json_proto returns [12:35:21]Send response to host [12:35:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29218,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [12:35:21]free response buf [12:35:21]execute_script done [12:35:21]execute_script returns [12:35:21]free content buf [12:35:21]Sock 9.Close socket [12:35:21]Sock 9.Thread stoped [12:35:25]OFD Sender: No OFD packet to send [12:35:30]OFD Sender: No OFD packet to send [12:35:35]OFD Sender: No OFD packet to send [12:35:40]OFD Sender: No OFD packet to send [12:35:45]OFD Sender: No OFD packet to send [12:35:50]OFD Sender: No OFD packet to send [12:35:55]OFD Sender: No OFD packet to send [12:36:00]OFD Sender: No OFD packet to send [12:36:05]OFD Sender: No OFD packet to send [12:36:10]OFD Sender: No OFD packet to send [12:36:15]OFD Sender: No OFD packet to send [12:36:20]OFD Sender: No OFD packet to send [12:36:25]OFD Sender: No OFD packet to send [12:36:30]OFD Sender: No OFD packet to send [12:36:35]OFD Sender: No OFD packet to send [12:36:40]OFD Sender: No OFD packet to send [12:36:45]OFD Sender: No OFD packet to send [12:36:50]OFD Sender: No OFD packet to send [12:36:55]OFD Sender: No OFD packet to send [12:37:00]OFD Sender: No OFD packet to send [12:37:05]OFD Sender: No OFD packet to send [12:37:10]OFD Sender: No OFD packet to send [12:37:15]OFD Sender: No OFD packet to send [12:37:20]OFD Sender: No OFD packet to send [12:37:25]OFD Sender: No OFD packet to send [12:37:30]OFD Sender: No OFD packet to send [12:37:35]OFD Sender: No OFD packet to send [12:37:40]OFD Sender: No OFD packet to send [12:37:45]OFD Sender: No OFD packet to send [12:37:50]OFD Sender: No OFD packet to send [12:37:55]OFD Sender: No OFD packet to send [12:38:00]OFD Sender: No OFD packet to send [12:38:05]OFD Sender: No OFD packet to send [12:38:10]OFD Sender: No OFD packet to send [12:38:15]OFD Sender: No OFD packet to send [12:38:20]OFD Sender: No OFD packet to send [12:38:25]OFD Sender: No OFD packet to send [12:38:30]OFD Sender: No OFD packet to send [12:38:35]OFD Sender: No OFD packet to send [12:38:40]OFD Sender: No OFD packet to send [12:38:45]OFD Sender: No OFD packet to send [12:38:50]OFD Sender: No OFD packet to send [12:38:55]OFD Sender: No OFD packet to send [12:39:00]OFD Sender: No OFD packet to send [12:39:05]OFD Sender: No OFD packet to send [12:39:10]OFD Sender: No OFD packet to send [12:39:15]OFD Sender: No OFD packet to send [12:39:20]OFD Sender: No OFD packet to send [12:39:25]OFD Sender: No OFD packet to send [12:39:30]OFD Sender: No OFD packet to send [12:39:35]OFD Sender: No OFD packet to send [12:39:40]OFD Sender: No OFD packet to send [12:39:45]OFD Sender: No OFD packet to send [12:39:50]OFD Sender: No OFD packet to send [12:39:55]OFD Sender: No OFD packet to send [12:40:00]OFD Sender: No OFD packet to send [12:40:05]OFD Sender: No OFD packet to send [12:40:10]OFD Sender: No OFD packet to send [12:40:15]OFD Sender: No OFD packet to send [12:40:20]OFD Sender: No OFD packet to send [12:40:25]OFD Sender: No OFD packet to send [12:40:30]OFD Sender: No OFD packet to send [12:40:35]OFD Sender: No OFD packet to send [12:40:40]OFD Sender: No OFD packet to send [12:40:45]OFD Sender: No OFD packet to send [12:40:50]OFD Sender: No OFD packet to send [12:40:55]OFD Sender: No OFD packet to send [12:41:00]OFD Sender: No OFD packet to send [12:41:05]OFD Sender: No OFD packet to send [12:41:10]OFD Sender: No OFD packet to send [12:41:15]OFD Sender: No OFD packet to send [12:41:20]OFD Sender: No OFD packet to send [12:41:25]OFD Sender: No OFD packet to send [12:41:30]OFD Sender: No OFD packet to send [12:41:35]OFD Sender: No OFD packet to send [12:41:40]accept exits with 7 [12:41:40]New connection [12:41:40]New thread 3066928484 created [12:41:40]Thread 3066785124 joined [12:41:40]Waiting for new connection... [12:41:40] Sock 7.Parse request [12:41:40]Sock 7.Check first char [12:41:40]Sock 7.First char is OK [12:41:40]request: POST /json_proto HTTP/1.0 [12:41:40]Method: POST [12:41:40]URL: /json_proto [12:41:40]Method is POST - this is cgi request [12:41:40]url: /json_proto [12:41:40]query_string will be loaded in cgi processing [12:41:40]execute_cgi json_proto POST (null) [12:41:40]execute_cgi path=json_proto method=POST [12:41:40]POST find Content-Length [12:41:40]Host: 172.17.33.3:8080 [12:41:40]Content-Length: 1208 [12:41:40]Content-Type: application/json [12:41:40] [12:41:40]POST finish read [12:41:40]Found Content-Length = 1208 [12:41:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043B\u0438\u043A\u0431\u0430\u0435\u0432\u0430. \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)347596\u000A14.04.2024 12:23\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 64.30\u000A\u0418\u0422\u041E\u0413: 1929.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3830056;3830138;3830017\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:41:40]execute_script... [12:41:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043B\u0438\u043A\u0431\u0430\u0435\u0432\u0430. \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)347596\u000A14.04.2024 12:23\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 64.30\u000A\u0418\u0422\u041E\u0413: 1929.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3830056;3830138;3830017\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:41:40]POST & json_proto [12:41:40]process_json_proto [12:41:40]json parsed OK: [12:41:40]protocol is kg_v1.0 [12:41:40]action value=print_text [12:41:40]process_action print_text [12:41:40]cmd_print_text [12:41:40]ExternCall_PrintAddStr [12:41:40]wPrintStart [12:41:40]Write to MH i2c: 01 00 00 1A 96 B0 [12:41:40]Write i2c OK [12:41:40]MH_I2C_Read... [12:41:40]Read from MH i2c: 01 [12:41:40]MH_I2C_Read... [12:41:40]Read from MH i2c: 01 07 00 [12:41:40]MH_I2C_Read... [12:41:40]Read from MH i2c: 01 07 00 1A 96 00 00 00 00 00 FF 0F C5 [12:41:40]RasterBufferAndPrint [12:41:40]line *****ТОВАРНЫЙ ЧЕК***** [12:41:40]line АЗС 108 [12:41:40]line Партнер нефть [12:41:40]line 02508201610067 [12:41:40]line Кассир : Аликбаева. Д. [12:41:40]line Счет N : (1)347596 [12:41:40]line 14.04.2024 12:23 [12:41:40]line ПРОДАЖА [12:41:40]line ТРК (МРК, ГНК): 32 [12:41:40]line Вид ГСМ : 2710124130 [12:41:40]line Аи-92-К-5 [12:41:40]line 30.000 x 64.30 [12:41:40]line ИТОГ: 1929.00 [12:41:40]line Тип оплаты: Талоны: Партнер нефть [12:41:40]line 3830056;3830138;3830017 [12:41:40]line ______________________ [12:41:40]line (подпись) [12:41:40]written 0, free lines is 4095 [12:41:40]OFD Sender: No OFD packet to send [12:41:40]Write to MH i2c: 01 00 00 2E 96 C4 [12:41:40]Write i2c OK [12:41:40]MH_I2C_Read... [12:41:40]Read from MH i2c: 01 [12:41:40]MH_I2C_Read... [12:41:40]Read from MH i2c: 01 07 00 [12:41:40]MH_I2C_Read... [12:41:40]Read from MH i2c: 01 07 00 2E 96 00 00 00 00 00 1D 0E F6 [12:41:40]RasterBufferAndPrint [12:41:40]line [12:41:40]line [12:41:40]line [12:41:40]line [12:41:40]line [12:41:40]written 0, free lines is 3614 [12:41:40]MH_Cut [12:41:40]Write to MH i2c: D1 01 00 35 96 01 9D [12:41:40]Write i2c OK [12:41:40]MH_I2C_Read... [12:41:40]Read from MH i2c: D1 [12:41:40]MH_I2C_Read... [12:41:40]Read from MH i2c: D1 01 00 [12:41:40]MH_I2C_Read... [12:41:40]Read from MH i2c: D1 01 00 35 96 00 9C [12:41:40]Write to MH i2c: 01 00 00 36 96 CC [12:41:40]Write i2c OK [12:41:40]MH_I2C_Read... [12:41:41]*** Cut start [12:41:41]*** Partial cut [12:41:41]*** CUTSNS_PIN = 1 [12:41:41]*** CUTSNS_PIN = 0 [12:41:41]*** Brake cut motor [12:41:41]Read from MH i2c: 01 [12:41:41]MH_I2C_Read... [12:41:41]*** Stop cut motor [12:41:41]*** Cut end [12:41:41]Read from MH i2c: 01 07 00 [12:41:41]MH_I2C_Read... [12:41:41]Read from MH i2c: 01 07 00 36 96 00 00 00 00 00 FF 0F E1 [12:41:41]process_action print_text done [12:41:41]requested_data is exist [12:41:41]produce_requested_data [12:41:41]requested_item fm.sn is exist - process it [12:41:41]wFMCommunicate request_size=4 [12:41:41]MH_SAM_APDU [12:41:41]CAPDU: 80 11 00 00 [12:41:41]Write to MH i2c: E2 08 00 37 96 80 11 00 00 00 00 00 00 47 [12:41:41]Write i2c OK [12:41:41]MH_I2C_Read... [12:41:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:41:41]Read from MH i2c: E2 [12:41:41]MH_I2C_Read... [12:41:41]Read from MH i2c: E2 17 00 [12:41:41]MH_I2C_Read... [12:41:41]Read from MH i2c: E2 17 00 37 96 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 96 [12:41:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:41:41]wFMCommunicate OK [12:41:41]requested_item fd.num is exist - process it [12:41:41]SAM_PROTO_GetFieldsCounters [12:41:41]wFMCommunicate request_size=4 [12:41:41]MH_SAM_APDU [12:41:41]CAPDU: 80 13 00 00 [12:41:41]Write to MH i2c: E2 08 00 38 96 80 13 00 00 00 00 00 00 4A [12:41:41]Write i2c OK [12:41:41]MH_I2C_Read... [12:41:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:41:42]Read from MH i2c: E2 [12:41:42]MH_I2C_Read... [12:41:42]Read from MH i2c: E2 62 00 [12:41:42]MH_I2C_Read... [12:41:42]Read from MH i2c: E2 62 00 38 96 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 22 72 00 00 0E 04 04 00 74 00 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 10 [12:41:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 22 72 00 00 0E 04 04 00 74 00 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 [12:41:42]wFMCommunicate OK [12:41:42]SAM_PROTO_GetFieldsCounters done [12:41:42]requested_item shift.num is exist - process it [12:41:42]requested_item shift.opened is exist - process it [12:41:42]req_shift_opened [12:41:42]FM_GetShiftState [12:41:42]SAM_PROTO_GetShiftState [12:41:42]wFMCommunicate request_size=4 [12:41:42]MH_SAM_APDU [12:41:42]CAPDU: 80 13 01 00 [12:41:42]Write to MH i2c: E2 08 00 39 96 80 13 01 00 00 00 00 00 4C [12:41:42]Write i2c OK [12:41:42]MH_I2C_Read... [12:41:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:41:42]Read from MH i2c: E2 [12:41:42]MH_I2C_Read... [12:41:42]Read from MH i2c: E2 0E 00 [12:41:42]MH_I2C_Read... [12:41:42]Read from MH i2c: E2 0E 00 39 96 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 F8 [12:41:42]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [12:41:42]wFMCommunicate OK [12:41:42]SAM_PROTO_GetShiftState done [12:41:42]FM_GetShiftState done [12:41:42]req_shift_opened done [12:41:42]requested_item shift.open_date is exist - process it [12:41:42]req_shift_open_date [12:41:42]req_shift_open_date done [12:41:42]produce_requested_data done [12:41:42]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29218,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [12:41:42]process_action_free print_text [12:41:42]json_value_free [12:41:42]json_value_free done [12:41:42]process_json_proto returns [12:41:42]Send response to host [12:41:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29218,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [12:41:42]free response buf [12:41:42]execute_script done [12:41:42]execute_script returns [12:41:42]free content buf [12:41:42]Sock 7.Close socket [12:41:42]Sock 7.Thread stoped [12:41:45]OFD Sender: No OFD packet to send [12:41:50]OFD Sender: No OFD packet to send [12:41:55]OFD Sender: No OFD packet to send [12:42:00]OFD Sender: No OFD packet to send [12:42:03]accept exits with 9 [12:42:03]New connection [12:42:03]New thread 3066785124 created [12:42:03]Thread 3066928484 joined [12:42:03]Waiting for new connection... [12:42:03] Sock 9.Parse request [12:42:03]Sock 9.Check first char [12:42:03]Sock 9.First char is OK [12:42:03]request: POST /json_proto HTTP/1.0 [12:42:03]Method: POST [12:42:03]URL: /json_proto [12:42:03]Method is POST - this is cgi request [12:42:03]url: /json_proto [12:42:03]query_string will be loaded in cgi processing [12:42:03]execute_cgi json_proto POST (null) [12:42:03]execute_cgi path=json_proto method=POST [12:42:03]POST find Content-Length [12:42:03]Host: 172.17.33.3:8080 [12:42:03]Content-Length: 675 [12:42:03]Content-Type: application/json [12:42:03] [12:42:03]POST finish read [12:42:03]Found Content-Length = 675 [12:42:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347598", "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" : 19.910, "sum" : 1300.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:42:03]execute_script... [12: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 : (1)347598", "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" : 19.910, "sum" : 1300.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:42:03]POST & json_proto [12:42:03]process_json_proto [12:42:03]json parsed OK: [12:42:03]protocol is kg_v1.0 [12:42:03]action value=close_receipt [12:42:03]process_action close_receipt [12:42:03]cmd_close_receipt [12:42:03]MH_GetDate [12:42:03]Write to MH i2c: F0 00 00 3A 96 BF [12:42:03]Write i2c OK [12:42:03]MH_I2C_Read... [12:42:03]Read from MH i2c: F0 [12:42:03]MH_I2C_Read... [12:42:03]Read from MH i2c: F0 09 00 [12:42:03]MH_I2C_Read... [12:42:03]Read from MH i2c: F0 09 00 3A 96 00 25 CF 1B 66 23 5B 8F 65 AF [12:42:03]GetLastDocTimeStamp 1713098127 [12:42:03]current date 1713098533 [12:42:03]FM_GetShiftState [12:42:03]SAM_PROTO_GetShiftState [12:42:03]wFMCommunicate request_size=4 [12:42:03]MH_SAM_APDU [12:42:03]CAPDU: 80 13 01 00 [12:42:03]Write to MH i2c: E2 08 00 3B 96 80 13 01 00 00 00 00 00 4E [12:42:03]Write i2c OK [12:42:03]MH_I2C_Read... [12:42:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:42:03]Read from MH i2c: E2 [12:42:03]MH_I2C_Read... [12:42:03]Read from MH i2c: E2 0E 00 [12:42:03]MH_I2C_Read... [12:42:03]Read from MH i2c: E2 0E 00 3B 96 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 FA [12:42:03]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [12:42:03]wFMCommunicate OK [12:42:03]SAM_PROTO_GetShiftState done [12:42:03]FM_GetShiftState done [12:42:03]opened in 1713053951 [12:42:03]opened+sec_in_day 1713140351 [12:42:03]quantity*price = 130012 [12:42:03]sum+1 = 130013 [12:42:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 1300.00 Внесено: 1300.00 СДАЧА: 0.00 НСП 1% : 11.50 НДС 12% : 138.07 Наличными: 1300.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 129 14.04.2024 12:42 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29219 ФПД: 88070515263642 1/tax-web-control/client/api/v1/ticket?date=20240414T124213&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29219&fm=88070515263642&tin=02508201610067®Number=0000138879044617&sum=130000 [12:42:04]StoreToDocumentArchive [12:42:04]shift 116 fd 29219 [12:42:04]save to /storage/0116/doc_00029219 [12:42:04]save last doc name /storage/0116/doc_00029219 to /storage/kkm_last_doc_name [12:42:04]save OK [12:42:04]Clear old archive folders... [12:42:04]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:42:04]tlvbuf is 012103E0 [12:42:04]SAM_PROTO_ClearQueue [12:42:04]wFMCommunicate request_size=4 [12:42:04]MH_SAM_APDU [12:42:04]CAPDU: 80 09 00 00 [12:42:04]Write to MH i2c: E2 08 00 48 96 80 09 00 00 00 00 00 00 50 [12:42:04]Write i2c OK [12:42:04]MH_I2C_Read... [12:42:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:42:04]Read from MH i2c: E2 [12:42:04]MH_I2C_Read... [12:42:04]Read from MH i2c: E2 03 00 [12:42:04]MH_I2C_Read... [12:42:04]Read from MH i2c: E2 03 00 48 96 00 90 00 52 [12:42:04]RAPDU: 90 00 [12:42:04]wFMCommunicate OK [12:42:04]SAM_PROTO_ClearQueue done [12:42:04]KKMCreateOFDPacket [12:42:04]OFDProtocolAddRootSTLVToBuf [12:42:04]FM_MakeSignedData [12:42:04]FM_MakeSignedData [12:42:04]SAM_PROTO_SignData [12:42:04]wFMCommunicate request_size=4 [12:42:04]MH_SAM_APDU [12:42:04]CAPDU: 80 0D 01 02 [12:42:04]Write to MH i2c: E2 08 00 49 96 80 0D 01 02 00 00 00 00 58 [12:42:04]Write i2c OK [12:42:04]MH_I2C_Read... [12:42:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:42:04]Read from MH i2c: E2 [12:42:04]MH_I2C_Read... [12:42:04]Read from MH i2c: E2 03 00 [12:42:04]MH_I2C_Read... [12:42:04]Read from MH i2c: E2 03 00 49 96 00 90 00 53 [12:42:04]RAPDU: 90 00 [12:42:04]wFMCommunicate OK [12:42:04]wFMCommunicate request_size=255 [12:42:04]MH_SAM_APDU [12:42: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 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C6 4D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 DC FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 35 00 00 00 00 07 04 06 00 D0 FB 01 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 25 CF 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 23 72 00 00 35 04 06 00 [12:42:04]Write to MH i2c: E2 02 01 4A 96 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C6 4D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 DC FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 35 00 00 00 00 07 04 06 00 D0 FB 01 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 25 CF 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 23 72 00 00 35 04 06 00 00 00 EC [12:42:04]Write i2c OK [12:42:04]MH_I2C_Read... [12:42:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:42:04]Read from MH i2c: E2 [12:42:04]MH_I2C_Read... [12:42:04]Read from MH i2c: E2 03 00 [12:42:04]MH_I2C_Read... [12:42:04]Read from MH i2c: E2 03 00 4A 96 00 90 00 54 [12:42:04]RAPDU: 90 00 [12:42:04]wFMCommunicate OK [12:42:04]wFMCommunicate request_size=11 [12:42:04]MH_SAM_APDU [12:42:04]CAPDU: 80 0D 02 02 06 50 19 83 C7 08 9A [12:42:04]Write to MH i2c: E2 0E 00 4B 96 80 0D 02 02 06 00 50 19 83 C7 08 9A 00 00 BC [12:42:04]Write i2c OK [12:42:04]MH_I2C_Read... [12:42:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:42:04]Read from MH i2c: E2 [12:42:04]MH_I2C_Read... [12:42:04]Read from MH i2c: E2 03 00 [12:42:04]MH_I2C_Read... [12:42:04]Read from MH i2c: E2 03 00 4B 96 00 90 00 55 [12:42:04]RAPDU: 90 00 [12:42:04]wFMCommunicate OK [12:42:04]wFMCommunicate request_size=4 [12:42:04]MH_SAM_APDU [12:42:04]CAPDU: 80 0D 03 02 [12:42:04]Write to MH i2c: E2 08 00 4C 96 80 0D 03 02 00 00 00 00 5D [12:42:04]Write i2c OK [12:42:04]MH_I2C_Read... [12:42:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:42:05]Read from MH i2c: E2 [12:42:05]MH_I2C_Read... [12:42:05]Read from MH i2c: E2 0B 00 [12:42:05]MH_I2C_Read... [12:42:05]Read from MH i2c: E2 0B 00 4C 96 00 E6 2F 4F DE B6 8D 3B DD 90 00 FB [12:42:05]RAPDU: E6 2F 4F DE B6 8D 3B DD 90 00 [12:42:05]wFMCommunicate OK [12:42:05]SAM_PROTO_SignData done [12:42:05]FM_MakeSignedData done [12:42:05]CreateOFDProtocolMessage [12:42:05]wFMCommunicate request_size=4 [12:42:05]MH_SAM_APDU [12:42:05]CAPDU: 80 11 00 00 [12:42:05]Write to MH i2c: E2 08 00 4D 96 80 11 00 00 00 00 00 00 5D [12:42:05]Write i2c OK [12:42:05]MH_I2C_Read... [12:42:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:42:05]Read from MH i2c: E2 [12:42:05]MH_I2C_Read... [12:42:05]Read from MH i2c: E2 17 00 [12:42:05]MH_I2C_Read... [12:42:05]Read from MH i2c: E2 17 00 4D 96 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 AC [12:42:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:42:05]wFMCommunicate OK [12:42:05]CreateOFDProtocolMessage done [12:42:05]OFDSenderStorePacket 29219 [12:42:05]StoreOFDPacket docnum=29219 [12:42:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 0C FB 08 01 D7 8A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C6 4D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 DC FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 35 00 00 00 00 07 04 06 00 D0 FB 01 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 25 CF 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 23 72 00 00 35 04 06 00 50 19 83 C7 08 9A E6 2F 4F DE B6 8D 3B DD [12:42:05]CheckFolder [12:42:05]dirname=/storage/ofd_packets [12:42:05]CheckFolder done [12:42:05]ProducePacketName [12:42:05]name=ofd_packets/00029219 [12:42:05]NVStorageSaveData ofd_packets/00029219 [12:42:05]File name is /storage/ofd_packets/00029219 [12:42:05]Write 302 bytes [12:42:05]NVStorageSaveData done [12:42:05]OFDSenderStorePacket done [12:42:05]KKMCreateOFDPacket done [12:42:05]NVStorageSaveData kkm_last_timestamp [12:42:05]File name is /storage/kkm_last_timestamp [12:42:05]Write 4 bytes [12:42:05]NVStorageSaveData done [12:42:05]ExternCall_PrintAddStr [12:42:05]wPrintStart [12:42:05]Write to MH i2c: 01 00 00 4E 96 E4 [12:42:05]Write i2c OK [12:42:05]MH_I2C_Read... [12:42:05]Read from MH i2c: 01 [12:42:05]MH_I2C_Read... [12:42:05]Read from MH i2c: 01 07 00 [12:42:05]MH_I2C_Read... [12:42:05]Read from MH i2c: 01 07 00 4E 96 00 00 00 00 00 FF 0F F9 [12:42:05]RasterBufferAndPrint [12:42:05]line Счет N : (1)347598 [12:42:05]line ИНН: 02508201610067 [12:42:05]line Контрольно-Кассовый Чек [12:42:05]line ПРОДАЖА [12:42:05]line ТРК (МРК, ГНК) : 41 [12:42:05]line Товар: 2710124130 [12:42:05]line SUPER-92-К-5 [12:42:05]line 19.910 * 65.30 [12:42:05]line = 1300.12 [12:42:05]line НДС 12% НСП 1% [12:42:05]line > о реализуемом товаре [12:42:05]line ОКРУГЛЕНИЕ: -0.12 [12:42:05]line ИТОГО: 1300.00 [12:42:05]line Внесено: 1300.00 [12:42:05]line СДАЧА: 0.00 [12:42:05]line НСП 1% : 11.50 [12:42:05]line НДС 12% : 138.07 [12:42:05]line Наличными: 1300.00 [12:42:05]line Безнал.: 0.00 [12:42:05]line Место: АЗС № 108 "Партнер Нефть" [12:42:05]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [12:42:05]line СНО: Общий режим [12:42:05]line Чек 129 14.04.2024 12:42 [12:42:05]line Смена: 116 ФФД: 1.0 [12:42:05]line ЗНМ: 0300000027 [12:42:05]line РНМ: 0000138879044617 [12:42:05]line Версия ККМ: 001 [12:42:05]line ФМ: 0000000000963154 [12:42:05]line ФД: 29219 [12:42:05]line ФПД: 88070515263642 [12:42:05]line 1/tax-web-control/client/api/v1/ticket?date=20240414T124213&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29219&fm=88070515263642&tin=02508201610067®Number=0000138879044617&sum=130000 [12:42:05]OFD Sender: Processing packet 29219 [packets to send 8, broken 7] [12:42:05]ProducePacketName [12:42:05]name=ofd_packets/00029219 [12:42:05]OFD Sender: To server: pG, [12:42:05]CommunicateWithHost lk.salyk.kg:30040 [12:42:05]ConnectInit lk.salyk.kg [12:42:05]written 0, free lines is 4095 [12:42:05]Connected sock=10 [12:42:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 0C FB 08 01 D7 8A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C6 4D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 DC FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 35 00 00 00 00 07 04 06 00 D0 FB 01 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 25 CF 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 23 72 00 00 35 04 06 00 50 19 83 C7 08 9A E6 2F 4F DE B6 8D 3B DD [12:42:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 76 0E 47 00 81 27 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 23 72 00 00 F4 03 04 00 C9 79 1B 66 B6 04 01 00 00 54 14 8C 33 8E 26 30 62 [12:42:05]CommunicateWithHost err = 0 [12:42:05]CheckOFDResponse [12:42:05]1017 (14) - 77093643461234 [12:42:05]1041 (16) - 0000000000963154 [12:42:05]1040 (4) - 29219 [12:42:05]1012 (4) - 14.04.2024 06:38 [12:42:05]1206 (1) - 0 [12:42:05]OFD Sender: Remove packet 29219 [12:42:05]ProducePacketName [12:42:05]name=ofd_packets/00029219 [12:42:05]NVStorageDeleteData [12:42:05]Write to MH i2c: 01 00 00 78 96 0E [12:42:05]Write i2c OK [12:42:05]MH_I2C_Read... [12:42:05]Read from MH i2c: 01 [12:42:05]MH_I2C_Read... [12:42:05]Read from MH i2c: 01 07 00 [12:42:05]MH_I2C_Read... [12:42:05]Read from MH i2c: 01 07 00 78 96 00 00 00 00 00 C9 0C EA [12:42:05]RasterBufferAndPrint [12:42:05]line [12:42:05]line [12:42:05]line [12:42:05]line [12:42:05]line [12:42:05]written 0, free lines is 3278 [12:42:05]MH_Cut [12:42:05]Write to MH i2c: D1 01 00 7F 96 01 E7 [12:42:05]Write i2c OK [12:42:05]MH_I2C_Read... [12:42:05]Read from MH i2c: D1 [12:42:05]MH_I2C_Read... [12:42:05]Read from MH i2c: D1 01 00 [12:42:05]MH_I2C_Read... [12:42:05]Read from MH i2c: D1 01 00 7F 96 00 E6 [12:42:05]Write to MH i2c: 01 00 00 80 96 16 [12:42:05]Write i2c OK [12:42:05]MH_I2C_Read... [12:42:06]OFD Sender: No OFD packet to send [12:42:06]*** Cut start [12:42:06]*** Partial cut [12:42:06]*** CUTSNS_PIN = 1 [12:42:06]*** CUTSNS_PIN = 0 [12:42:06]*** Brake cut motor [12:42:07]Read from MH i2c: 01 [12:42:07]MH_I2C_Read... [12:42:07]*** Stop cut motor [12:42:07]*** Cut end [12:42:07]Read from MH i2c: 01 07 00 [12:42:07]MH_I2C_Read... [12:42:07]Read from MH i2c: 01 07 00 80 96 00 00 00 00 00 FF 0F 2B [12:42:07]process_action close_receipt done [12:42:07]requested_data is exist [12:42:07]produce_requested_data [12:42:07]requested_item fm.sn is exist - process it [12:42:07]wFMCommunicate request_size=4 [12:42:07]MH_SAM_APDU [12:42:07]CAPDU: 80 11 00 00 [12:42:07]Write to MH i2c: E2 08 00 81 96 80 11 00 00 00 00 00 00 91 [12:42:07]Write i2c OK [12:42:07]MH_I2C_Read... [12:42:07]Read from MH i2c: E2 [12:42:07]MH_I2C_Read... [12:42:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:42:07]Read from MH i2c: E2 17 00 [12:42:07]MH_I2C_Read... [12:42:07]Read from MH i2c: E2 17 00 81 96 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E0 [12:42:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:42:07]wFMCommunicate OK [12:42:07]requested_item fd.num is exist - process it [12:42:07]SAM_PROTO_GetFieldsCounters [12:42:07]wFMCommunicate request_size=4 [12:42:07]MH_SAM_APDU [12:42:07]CAPDU: 80 13 00 00 [12:42:07]Write to MH i2c: E2 08 00 82 96 80 13 00 00 00 00 00 00 94 [12:42:07]Write i2c OK [12:42:07]MH_I2C_Read... [12:42:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:42:07]Read from MH i2c: E2 [12:42:07]MH_I2C_Read... [12:42:07]Read from MH i2c: E2 62 00 [12:42:07]MH_I2C_Read... [12:42:07]Read from MH i2c: E2 62 00 82 96 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 23 72 00 00 0E 04 04 00 74 00 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 5E [12:42:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 23 72 00 00 0E 04 04 00 74 00 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 [12:42:07]wFMCommunicate OK [12:42:07]SAM_PROTO_GetFieldsCounters done [12:42:07]requested_item shift.num is exist - process it [12:42:07]requested_item shift.opened is exist - process it [12:42:07]req_shift_opened [12:42:07]FM_GetShiftState [12:42:07]SAM_PROTO_GetShiftState [12:42:07]wFMCommunicate request_size=4 [12:42:07]MH_SAM_APDU [12:42:07]CAPDU: 80 13 01 00 [12:42:07]Write to MH i2c: E2 08 00 83 96 80 13 01 00 00 00 00 00 96 [12:42:07]Write i2c OK [12:42:07]MH_I2C_Read... [12:42:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:42:07]Read from MH i2c: E2 [12:42:07]MH_I2C_Read... [12:42:07]Read from MH i2c: E2 0E 00 [12:42:07]MH_I2C_Read... [12:42:07]Read from MH i2c: E2 0E 00 83 96 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 42 [12:42:07]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [12:42:07]wFMCommunicate OK [12:42:07]SAM_PROTO_GetShiftState done [12:42:07]FM_GetShiftState done [12:42:07]req_shift_opened done [12:42:07]requested_item shift.open_date is exist - process it [12:42:07]req_shift_open_date [12:42:07]req_shift_open_date done [12:42:07]produce_requested_data done [12:42:07]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29219,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [12:42:07]process_action_free close_receipt [12:42:07]json_value_free [12:42:07]json_value_free done [12:42:07]process_json_proto returns [12:42:07]Send response to host [12:42:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29219,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [12:42:07]free response buf [12:42:07]execute_script done [12:42:07]execute_script returns [12:42:07]free content buf [12:42:07]Sock 9.Close socket [12:42:07]Sock 9.Thread stoped [12:42:11]OFD Sender: No OFD packet to send [12:42:16]OFD Sender: No OFD packet to send [12:42:21]OFD Sender: No OFD packet to send [12:42:26]OFD Sender: No OFD packet to send [12:42:31]OFD Sender: No OFD packet to send [12:42:36]OFD Sender: No OFD packet to send [12:42:41]OFD Sender: No OFD packet to send [12:42:46]OFD Sender: No OFD packet to send [12:42:51]OFD Sender: No OFD packet to send [12:42:56]OFD Sender: No OFD packet to send [12:43:01]OFD Sender: No OFD packet to send [12:43:06]OFD Sender: No OFD packet to send [12:43:11]OFD Sender: No OFD packet to send [12:43:15]accept exits with 7 [12:43:15]New connection [12:43:15]New thread 3066928484 created [12:43:15]Thread 3066785124 joined [12:43:15]Waiting for new connection... [12:43:15] Sock 7.Parse request [12:43:15]Sock 7.Check first char [12:43:15]Sock 7.First char is OK [12:43:15]request: POST /json_proto HTTP/1.0 [12:43:15]Method: POST [12:43:15]URL: /json_proto [12:43:15]Method is POST - this is cgi request [12:43:15]url: /json_proto [12:43:15]query_string will be loaded in cgi processing [12:43:15]execute_cgi json_proto POST (null) [12:43:15]execute_cgi path=json_proto method=POST [12:43:15]POST find Content-Length [12:43:15]Host: 172.17.33.3:8080 [12:43:15]Content-Length: 1201 [12:43:15]Content-Type: application/json [12:43:15] [12:43:15]POST finish read [12:43:15]Found Content-Length = 1201 [12:43:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043B\u0438\u043A\u0431\u0430\u0435\u0432\u0430. \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)347599\u000A14.04.2024 12:25\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 13\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 64.30\u000A\u0418\u0422\u041E\u0413: 1286.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3858879;3858963`\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:43:15]execute_script... [12:43:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043B\u0438\u043A\u0431\u0430\u0435\u0432\u0430. \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)347599\u000A14.04.2024 12:25\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 13\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 64.30\u000A\u0418\u0422\u041E\u0413: 1286.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3858879;3858963`\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:43:15]POST & json_proto [12:43:15]process_json_proto [12:43:15]json parsed OK: [12:43:15]protocol is kg_v1.0 [12:43:15]action value=print_text [12:43:15]process_action print_text [12:43:15]cmd_print_text [12:43:15]ExternCall_PrintAddStr [12:43:15]wPrintStart [12:43:15]Write to MH i2c: 01 00 00 84 96 1A [12:43:15]Write i2c OK [12:43:15]MH_I2C_Read... [12:43:15]Read from MH i2c: 01 [12:43:15]MH_I2C_Read... [12:43:15]Read from MH i2c: 01 07 00 [12:43:15]MH_I2C_Read... [12:43:15]Read from MH i2c: 01 07 00 84 96 00 00 00 00 00 FF 0F 2F [12:43:15]RasterBufferAndPrint [12:43:15]line *****ТОВАРНЫЙ ЧЕК***** [12:43:15]line АЗС 108 [12:43:15]line Партнер нефть [12:43:15]line 02508201610067 [12:43:15]line Кассир : Аликбаева. Д. [12:43:15]line Счет N : (1)347599 [12:43:15]line 14.04.2024 12:25 [12:43:15]line ПРОДАЖА [12:43:15]line ТРК (МРК, ГНК): 13 [12:43:15]line Вид ГСМ : 2710124130 [12:43:15]line Аи-92-К-5 [12:43:15]line 20.000 x 64.30 [12:43:15]line ИТОГ: 1286.00 [12:43:15]line Тип оплаты: Талоны: Партнер нефть [12:43:15]line 3858879;3858963` [12:43:15]line ______________________ [12:43:15]line (подпись) [12:43:15]written 0, free lines is 4095 [12:43:16]Write to MH i2c: 01 00 00 98 96 2E [12:43:16]Write i2c OK [12:43:16]MH_I2C_Read... [12:43:16]Read from MH i2c: 01 [12:43:16]MH_I2C_Read... [12:43:16]Read from MH i2c: 01 07 00 [12:43:16]MH_I2C_Read... [12:43:16]Read from MH i2c: 01 07 00 98 96 00 00 00 00 00 18 0E 5B [12:43:16]RasterBufferAndPrint [12:43:16]line [12:43:16]line [12:43:16]line [12:43:16]line [12:43:16]line [12:43:16]written 0, free lines is 3610 [12:43:16]MH_Cut [12:43:16]Write to MH i2c: D1 01 00 9F 96 01 07 [12:43:16]Write i2c OK [12:43:16]MH_I2C_Read... [12:43:16]Read from MH i2c: D1 [12:43:16]MH_I2C_Read... [12:43:16]Read from MH i2c: D1 01 00 [12:43:16]MH_I2C_Read... [12:43:16]Read from MH i2c: D1 01 00 9F 96 00 06 [12:43:16]Write to MH i2c: 01 00 00 A0 96 36 [12:43:16]Write i2c OK [12:43:16]MH_I2C_Read... [12:43:16]OFD Sender: No OFD packet to send [12:43:16]*** Cut start [12:43:16]*** Partial cut [12:43:16]*** CUTSNS_PIN = 1 [12:43:16]*** CUTSNS_PIN = 0 [12:43:16]*** Brake cut motor [12:43:17]Read from MH i2c: 01 [12:43:17]MH_I2C_Read... [12:43:17]Read from MH i2c: 01 07 00 [12:43:17]MH_I2C_Read... [12:43:17]*** Stop cut motor [12:43:17]*** Cut end [12:43:17]Read from MH i2c: 01 07 00 A0 96 00 00 00 00 00 FF 0F 4B [12:43:17]process_action print_text done [12:43:17]requested_data is exist [12:43:17]produce_requested_data [12:43:17]requested_item fm.sn is exist - process it [12:43:17]wFMCommunicate request_size=4 [12:43:17]MH_SAM_APDU [12:43:17]CAPDU: 80 11 00 00 [12:43:17]Write to MH i2c: E2 08 00 A1 96 80 11 00 00 00 00 00 00 B1 [12:43:17]Write i2c OK [12:43:17]MH_I2C_Read... [12:43:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:43:17]Read from MH i2c: E2 [12:43:17]MH_I2C_Read... [12:43:17]Read from MH i2c: E2 17 00 [12:43:17]MH_I2C_Read... [12:43:17]Read from MH i2c: E2 17 00 A1 96 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 00 [12:43:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:43:17]wFMCommunicate OK [12:43:17]requested_item fd.num is exist - process it [12:43:17]SAM_PROTO_GetFieldsCounters [12:43:17]wFMCommunicate request_size=4 [12:43:17]MH_SAM_APDU [12:43:17]CAPDU: 80 13 00 00 [12:43:17]Write to MH i2c: E2 08 00 A2 96 80 13 00 00 00 00 00 00 B4 [12:43:17]Write i2c OK [12:43:17]MH_I2C_Read... [12:43:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:43:17]Read from MH i2c: E2 [12:43:17]MH_I2C_Read... [12:43:17]Read from MH i2c: E2 62 00 [12:43:17]MH_I2C_Read... [12:43:17]Read from MH i2c: E2 62 00 A2 96 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 23 72 00 00 0E 04 04 00 74 00 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 7E [12:43:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 23 72 00 00 0E 04 04 00 74 00 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 [12:43:17]wFMCommunicate OK [12:43:17]SAM_PROTO_GetFieldsCounters done [12:43:17]requested_item shift.num is exist - process it [12:43:17]requested_item shift.opened is exist - process it [12:43:17]req_shift_opened [12:43:17]FM_GetShiftState [12:43:17]SAM_PROTO_GetShiftState [12:43:17]wFMCommunicate request_size=4 [12:43:17]MH_SAM_APDU [12:43:17]CAPDU: 80 13 01 00 [12:43:17]Write to MH i2c: E2 08 00 A3 96 80 13 01 00 00 00 00 00 B6 [12:43:17]Write i2c OK [12:43:17]MH_I2C_Read... [12:43:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:43:17]Read from MH i2c: E2 [12:43:17]MH_I2C_Read... [12:43:17]Read from MH i2c: E2 0E 00 [12:43:17]MH_I2C_Read... [12:43:17]Read from MH i2c: E2 0E 00 A3 96 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 62 [12:43:17]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [12:43:17]wFMCommunicate OK [12:43:17]SAM_PROTO_GetShiftState done [12:43:17]FM_GetShiftState done [12:43:17]req_shift_opened done [12:43:17]requested_item shift.open_date is exist - process it [12:43:17]req_shift_open_date [12:43:17]req_shift_open_date done [12:43:17]produce_requested_data done [12:43:17]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29219,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [12:43:17]process_action_free print_text [12:43:17]json_value_free [12:43:17]json_value_free done [12:43:17]process_json_proto returns [12:43:17]Send response to host [12:43:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29219,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [12:43:17]free response buf [12:43:17]execute_script done [12:43:17]execute_script returns [12:43:17]free content buf [12:43:17]Sock 7.Close socket [12:43:17]Sock 7.Thread stoped [12:43:21]OFD Sender: No OFD packet to send [12:43:26]OFD Sender: No OFD packet to send [12:43:31]OFD Sender: No OFD packet to send [12:43:36]OFD Sender: No OFD packet to send [12:43:41]OFD Sender: No OFD packet to send [12:43:46]OFD Sender: No OFD packet to send [12:43:51]OFD Sender: No OFD packet to send [12:43:56]OFD Sender: No OFD packet to send [12:44:01]OFD Sender: No OFD packet to send [12:44:06]OFD Sender: No OFD packet to send [12:44:11]OFD Sender: No OFD packet to send [12:44:16]OFD Sender: No OFD packet to send [12:44:21]OFD Sender: No OFD packet to send [12:44:26]OFD Sender: No OFD packet to send [12:44:31]OFD Sender: No OFD packet to send [12:44:36]OFD Sender: No OFD packet to send [12:44:41]OFD Sender: No OFD packet to send [12:44:46]OFD Sender: No OFD packet to send [12:44:51]OFD Sender: No OFD packet to send [12:44:56]OFD Sender: No OFD packet to send [12:45:01]OFD Sender: No OFD packet to send [12:45:06]OFD Sender: No OFD packet to send [12:45:11]OFD Sender: No OFD packet to send [12:45:16]OFD Sender: No OFD packet to send [12:45:21]OFD Sender: No OFD packet to send [12:45:22]accept exits with 9 [12:45:22]New connection [12:45:22]New thread 3066785124 created [12:45:22]Thread 3066928484 joined [12:45:22]Waiting for new connection... [12:45:22] Sock 9.Parse request [12:45:22]Sock 9.Check first char [12:45:22]Sock 9.First char is OK [12:45:22]request: POST /json_proto HTTP/1.0 [12:45:22]Method: POST [12:45:22]URL: /json_proto [12:45:22]Method is POST - this is cgi request [12:45:22]url: /json_proto [12:45:22]query_string will be loaded in cgi processing [12:45:22]execute_cgi json_proto POST (null) [12:45:22]execute_cgi path=json_proto method=POST [12:45:22]POST find Content-Length [12:45:22]Host: 172.17.33.3:8080 [12:45:22]Content-Length: 677 [12:45:22]Content-Type: application/json [12:45:22] [12:45:22]POST finish read [12:45:22]Found Content-Length = 677 [12:45:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347600", "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" ] } } [12:45:22]execute_script... [12:45: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)347600", "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" ] } } [12:45:22]POST & json_proto [12:45:22]process_json_proto [12:45:22]json parsed OK: [12:45:22]protocol is kg_v1.0 [12:45:22]action value=close_receipt [12:45:22]process_action close_receipt [12:45:22]cmd_close_receipt [12:45:22]MH_GetDate [12:45:22]Write to MH i2c: F0 00 00 A4 96 29 [12:45:22]Write i2c OK [12:45:22]MH_I2C_Read... [12:45:22]Read from MH i2c: F0 [12:45:22]MH_I2C_Read... [12:45:22]Read from MH i2c: F0 09 00 [12:45:22]MH_I2C_Read... [12:45:22]Read from MH i2c: F0 09 00 A4 96 00 EC CF 1B 66 23 5B 8F 65 E0 [12:45:22]GetLastDocTimeStamp 1713098533 [12:45:22]current date 1713098732 [12:45:22]FM_GetShiftState [12:45:22]SAM_PROTO_GetShiftState [12:45:22]wFMCommunicate request_size=4 [12:45:22]MH_SAM_APDU [12:45:22]CAPDU: 80 13 01 00 [12:45:22]Write to MH i2c: E2 08 00 A5 96 80 13 01 00 00 00 00 00 B8 [12:45:22]Write i2c OK [12:45:22]MH_I2C_Read... [12:45:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:45:22]Read from MH i2c: E2 [12:45:22]MH_I2C_Read... [12:45:22]Read from MH i2c: E2 0E 00 [12:45:22]MH_I2C_Read... [12:45:22]Read from MH i2c: E2 0E 00 A5 96 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 64 [12:45:22]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [12:45:22]wFMCommunicate OK [12:45:22]SAM_PROTO_GetShiftState done [12:45:22]FM_GetShiftState done [12:45:22]opened in 1713053951 [12:45:22]opened+sec_in_day 1713140351 [12:45:22]quantity*price = 30028 [12:45:22]sum+1 = 30029 [12:45:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 130 14.04.2024 12:45 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29220 ФПД: 18018051533275 1/tax-web-control/client/api/v1/ticket?date=20240414T124532&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29220&fm=18018051533275&tin=02508201610067®Number=0000138879044617&sum=30000 [12:45:23]StoreToDocumentArchive [12:45:23]shift 116 fd 29220 [12:45:23]save to /storage/0116/doc_00029220 [12:45:23]save last doc name /storage/0116/doc_00029220 to /storage/kkm_last_doc_name [12:45:23]save OK [12:45:23]Clear old archive folders... [12:45:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:45:23]tlvbuf is 0121A6F0 [12:45:23]SAM_PROTO_ClearQueue [12:45:23]wFMCommunicate request_size=4 [12:45:23]MH_SAM_APDU [12:45:23]CAPDU: 80 09 00 00 [12:45:23]Write to MH i2c: E2 08 00 B2 96 80 09 00 00 00 00 00 00 BA [12:45:23]Write i2c OK [12:45:23]MH_I2C_Read... [12:45:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:45:23]Read from MH i2c: E2 [12:45:23]MH_I2C_Read... [12:45:23]Read from MH i2c: E2 03 00 [12:45:23]MH_I2C_Read... [12:45:23]Read from MH i2c: E2 03 00 B2 96 00 90 00 BC [12:45:23]RAPDU: 90 00 [12:45:23]wFMCommunicate OK [12:45:23]SAM_PROTO_ClearQueue done [12:45:23]KKMCreateOFDPacket [12:45:23]OFDProtocolAddRootSTLVToBuf [12:45:23]FM_MakeSignedData [12:45:23]FM_MakeSignedData [12:45:23]SAM_PROTO_SignData [12:45:23]wFMCommunicate request_size=4 [12:45:23]MH_SAM_APDU [12:45:23]CAPDU: 80 0D 01 02 [12:45:23]Write to MH i2c: E2 08 00 B3 96 80 0D 01 02 00 00 00 00 C2 [12:45:23]Write i2c OK [12:45:23]MH_I2C_Read... [12:45:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:45:23]Read from MH i2c: E2 [12:45:23]MH_I2C_Read... [12:45:23]Read from MH i2c: E2 03 00 [12:45:23]MH_I2C_Read... [12:45:23]Read from MH i2c: E2 03 00 B3 96 00 90 00 BD [12:45:23]RAPDU: 90 00 [12:45:23]wFMCommunicate OK [12:45:23]wFMCommunicate request_size=255 [12:45:23]MH_SAM_APDU [12:45: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 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 82 00 00 00 F4 03 04 00 EC CF 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 24 72 00 00 35 04 06 00 10 [12:45:23]Write to MH i2c: E2 02 01 B4 96 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 82 00 00 00 F4 03 04 00 EC CF 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 24 72 00 00 35 04 06 00 10 00 00 DF [12:45:23]Write i2c OK [12:45:23]MH_I2C_Read... [12:45:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:45:24]Read from MH i2c: E2 [12:45:24]MH_I2C_Read... [12:45:24]Read from MH i2c: E2 03 00 [12:45:24]MH_I2C_Read... [12:45:24]Read from MH i2c: E2 03 00 B4 96 00 90 00 BE [12:45:24]RAPDU: 90 00 [12:45:24]wFMCommunicate OK [12:45:24]wFMCommunicate request_size=10 [12:45:24]MH_SAM_APDU [12:45:24]CAPDU: 80 0D 02 02 05 63 27 8F A9 DB [12:45:24]Write to MH i2c: E2 0D 00 B5 96 80 0D 02 02 05 00 63 27 8F A9 DB 00 00 6C [12:45:24]Write i2c OK [12:45:24]MH_I2C_Read... [12:45:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:45:24]Read from MH i2c: E2 [12:45:24]MH_I2C_Read... [12:45:24]Read from MH i2c: E2 03 00 [12:45:24]MH_I2C_Read... [12:45:24]Read from MH i2c: E2 03 00 B5 96 00 90 00 BF [12:45:24]RAPDU: 90 00 [12:45:24]wFMCommunicate OK [12:45:24]wFMCommunicate request_size=4 [12:45:24]MH_SAM_APDU [12:45:24]CAPDU: 80 0D 03 02 [12:45:24]Write to MH i2c: E2 08 00 B6 96 80 0D 03 02 00 00 00 00 C7 [12:45:24]Write i2c OK [12:45:24]MH_I2C_Read... [12:45:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:45:24]Read from MH i2c: E2 [12:45:24]MH_I2C_Read... [12:45:24]Read from MH i2c: E2 0B 00 [12:45:24]MH_I2C_Read... [12:45:24]Read from MH i2c: E2 0B 00 B6 96 00 04 BF 24 ED F2 A7 49 6D 90 00 EB [12:45:24]RAPDU: 04 BF 24 ED F2 A7 49 6D 90 00 [12:45:24]wFMCommunicate OK [12:45:24]SAM_PROTO_SignData done [12:45:24]FM_MakeSignedData done [12:45:24]CreateOFDProtocolMessage [12:45:24]wFMCommunicate request_size=4 [12:45:24]MH_SAM_APDU [12:45:24]CAPDU: 80 11 00 00 [12:45:24]Write to MH i2c: E2 08 00 B7 96 80 11 00 00 00 00 00 00 C7 [12:45:24]Write i2c OK [12:45:24]MH_I2C_Read... [12:45:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:45:24]Read from MH i2c: E2 [12:45:24]MH_I2C_Read... [12:45:24]Read from MH i2c: E2 17 00 [12:45:24]MH_I2C_Read... [12:45:24]Read from MH i2c: E2 17 00 B7 96 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 16 [12:45:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:45:24]wFMCommunicate OK [12:45:24]CreateOFDProtocolMessage done [12:45:24]OFDSenderStorePacket 29220 [12:45:24]StoreOFDPacket docnum=29220 [12:45:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 75 F8 07 01 1E 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 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 82 00 00 00 F4 03 04 00 EC CF 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 24 72 00 00 35 04 06 00 10 63 27 8F A9 DB 04 BF 24 ED F2 A7 49 6D [12:45:24]CheckFolder [12:45:24]dirname=/storage/ofd_packets [12:45:24]CheckFolder done [12:45:24]ProducePacketName [12:45:24]name=ofd_packets/00029220 [12:45:24]NVStorageSaveData ofd_packets/00029220 [12:45:24]File name is /storage/ofd_packets/00029220 [12:45:24]Write 301 bytes [12:45:24]NVStorageSaveData done [12:45:24]OFDSenderStorePacket done [12:45:24]KKMCreateOFDPacket done [12:45:24]NVStorageSaveData kkm_last_timestamp [12:45:24]File name is /storage/kkm_last_timestamp [12:45:24]Write 4 bytes [12:45:24]NVStorageSaveData done [12:45:24]ExternCall_PrintAddStr [12:45:24]wPrintStart [12:45:24]Write to MH i2c: 01 00 00 B8 96 4E [12:45:24]Write i2c OK [12:45:24]MH_I2C_Read... [12:45:24]Read from MH i2c: 01 [12:45:24]MH_I2C_Read... [12:45:24]Read from MH i2c: 01 07 00 [12:45:24]MH_I2C_Read... [12:45:24]Read from MH i2c: 01 07 00 B8 96 00 00 00 00 00 FF 0F 63 [12:45:24]RasterBufferAndPrint [12:45:24]line Счет N : (1)347600 [12:45:24]line ИНН: 02508201610067 [12:45:24]line Контрольно-Кассовый Чек [12:45:24]line ПРОДАЖА [12:45:24]line ТРК (МРК, ГНК) : 32 [12:45:24]line Товар: 2710124130 [12:45:24]line Аи-92-К-5 [12:45:24]line 4.670 * 64.30 [12:45:24]line = 300.28 [12:45:24]line НДС 12% НСП 1% [12:45:24]line > о реализуемом товаре [12:45:24]line ОКРУГЛЕНИЕ: -0.28 [12:45:24]line ИТОГО: 300.00 [12:45:24]line Внесено: 300.00 [12:45:24]line СДАЧА: 0.00 [12:45:24]line НСП 1% : 2.66 [12:45:24]line НДС 12% : 31.89 [12:45:24]line Наличными: 300.00 [12:45:24]line Безнал.: 0.00 [12:45:24]line Место: АЗС № 108 "Партнер Нефть" [12:45:24]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [12:45:24]line СНО: Общий режим [12:45:24]line Чек 130 14.04.2024 12:45 [12:45:24]line Смена: 116 ФФД: 1.0 [12:45:24]line ЗНМ: 0300000027 [12:45:24]line РНМ: 0000138879044617 [12:45:24]line Версия ККМ: 001 [12:45:24]line ФМ: 0000000000963154 [12:45:24]line ФД: 29220 [12:45:24]line ФПД: 18018051533275 [12:45:24]line 1/tax-web-control/client/api/v1/ticket?date=20240414T124532&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29220&fm=18018051533275&tin=02508201610067®Number=0000138879044617&sum=30000 [12:45:24]OFD Sender: Processing packet 29220 [packets to send 8, broken 7] [12:45:24]ProducePacketName [12:45:24]name=ofd_packets/00029220 [12:45:24]OFD Sender: To server: pG, [12:45:24]CommunicateWithHost lk.salyk.kg:30040 [12:45:24]ConnectInit lk.salyk.kg [12:45:24]written 0, free lines is 4095 [12:45:24]Connected sock=10 [12:45:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 75 F8 07 01 1E 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 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 82 00 00 00 F4 03 04 00 EC CF 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 24 72 00 00 35 04 06 00 10 63 27 8F A9 DB 04 BF 24 ED F2 A7 49 6D [12:45:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 08 C7 47 00 2A 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 24 72 00 00 F4 03 04 00 90 7A 1B 66 B6 04 01 00 00 A6 AE D1 E3 E9 3F 69 17 [12:45:24]CommunicateWithHost err = 0 [12:45:24]CheckOFDResponse [12:45:24]1017 (14) - 77093643461234 [12:45:24]1041 (16) - 0000000000963154 [12:45:24]1040 (4) - 29220 [12:45:24]1012 (4) - 14.04.2024 06:41 [12:45:24]1206 (1) - 0 [12:45:24]OFD Sender: Remove packet 29220 [12:45:24]ProducePacketName [12:45:24]name=ofd_packets/00029220 [12:45:24]NVStorageDeleteData [12:45:25]Write to MH i2c: 01 00 00 E2 96 78 [12:45:25]Write i2c OK [12:45:25]MH_I2C_Read... [12:45:25]Read from MH i2c: 01 [12:45:25]MH_I2C_Read... [12:45:25]Read from MH i2c: 01 07 00 [12:45:25]MH_I2C_Read... [12:45:25]Read from MH i2c: 01 07 00 E2 96 00 00 00 00 00 C1 0C 4C [12:45:25]RasterBufferAndPrint [12:45:25]line [12:45:25]line [12:45:25]line [12:45:25]line [12:45:25]line [12:45:25]written 0, free lines is 3270 [12:45:25]MH_Cut [12:45:25]Write to MH i2c: D1 01 00 E9 96 01 51 [12:45:25]Write i2c OK [12:45:25]MH_I2C_Read... [12:45:25]Read from MH i2c: D1 [12:45:25]MH_I2C_Read... [12:45:25]Read from MH i2c: D1 01 00 [12:45:25]MH_I2C_Read... [12:45:25]Read from MH i2c: D1 01 00 E9 96 00 50 [12:45:25]Write to MH i2c: 01 00 00 EA 96 80 [12:45:25]Write i2c OK [12:45:25]MH_I2C_Read... [12:45:25]OFD Sender: No OFD packet to send [12:45:25]*** Cut start [12:45:25]*** Partial cut [12:45:25]*** CUTSNS_PIN = 1 [12:45:25]*** CUTSNS_PIN = 0 [12:45:26]*** Brake cut motor [12:45:26]Read from MH i2c: 01 [12:45:26]MH_I2C_Read... [12:45:26]*** Stop cut motor [12:45:26]*** Cut end [12:45:26]Read from MH i2c: 01 07 00 [12:45:26]MH_I2C_Read... [12:45:26]Read from MH i2c: 01 07 00 EA 96 00 00 00 00 00 FF 0F 95 [12:45:26]process_action close_receipt done [12:45:26]requested_data is exist [12:45:26]produce_requested_data [12:45:26]requested_item fm.sn is exist - process it [12:45:26]wFMCommunicate request_size=4 [12:45:26]MH_SAM_APDU [12:45:26]CAPDU: 80 11 00 00 [12:45:26]Write to MH i2c: E2 08 00 EB 96 80 11 00 00 00 00 00 00 FB [12:45:26]Write i2c OK [12:45:26]MH_I2C_Read... [12:45:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:45:26]Read from MH i2c: E2 [12:45:26]MH_I2C_Read... [12:45:26]Read from MH i2c: E2 17 00 [12:45:26]MH_I2C_Read... [12:45:26]Read from MH i2c: E2 17 00 EB 96 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 4A [12:45:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:45:26]wFMCommunicate OK [12:45:26]requested_item fd.num is exist - process it [12:45:26]SAM_PROTO_GetFieldsCounters [12:45:26]wFMCommunicate request_size=4 [12:45:26]MH_SAM_APDU [12:45:26]CAPDU: 80 13 00 00 [12:45:26]Write to MH i2c: E2 08 00 EC 96 80 13 00 00 00 00 00 00 FE [12:45:26]Write i2c OK [12:45:26]MH_I2C_Read... [12:45:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:45:26]Read from MH i2c: E2 [12:45:26]MH_I2C_Read... [12:45:26]Read from MH i2c: E2 62 00 [12:45:26]MH_I2C_Read... [12:45:26]Read from MH i2c: E2 62 00 EC 96 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 24 72 00 00 0E 04 04 00 74 00 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 CC [12:45:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 24 72 00 00 0E 04 04 00 74 00 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 [12:45:26]wFMCommunicate OK [12:45:26]SAM_PROTO_GetFieldsCounters done [12:45:26]requested_item shift.num is exist - process it [12:45:26]requested_item shift.opened is exist - process it [12:45:26]req_shift_opened [12:45:26]FM_GetShiftState [12:45:26]SAM_PROTO_GetShiftState [12:45:26]wFMCommunicate request_size=4 [12:45:26]MH_SAM_APDU [12:45:26]CAPDU: 80 13 01 00 [12:45:26]Write to MH i2c: E2 08 00 ED 96 80 13 01 00 00 00 00 00 00 [12:45:26]Write i2c OK [12:45:26]MH_I2C_Read... [12:45:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:45:26]Read from MH i2c: E2 [12:45:26]MH_I2C_Read... [12:45:26]Read from MH i2c: E2 0E 00 [12:45:26]MH_I2C_Read... [12:45:26]Read from MH i2c: E2 0E 00 ED 96 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 AC [12:45:26]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [12:45:26]wFMCommunicate OK [12:45:26]SAM_PROTO_GetShiftState done [12:45:26]FM_GetShiftState done [12:45:26]req_shift_opened done [12:45:26]requested_item shift.open_date is exist - process it [12:45:26]req_shift_open_date [12:45:26]req_shift_open_date done [12:45:26]produce_requested_data done [12:45:26]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29220,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [12:45:26]process_action_free close_receipt [12:45:26]json_value_free [12:45:26]json_value_free done [12:45:26]process_json_proto returns [12:45:26]Send response to host [12:45:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29220,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [12:45:26]free response buf [12:45:26]execute_script done [12:45:26]execute_script returns [12:45:26]free content buf [12:45:26]Sock 9.Close socket [12:45:26]Sock 9.Thread stoped [12:45:30]OFD Sender: No OFD packet to send [12:45:35]OFD Sender: No OFD packet to send [12:45:40]OFD Sender: No OFD packet to send [12:45:45]OFD Sender: No OFD packet to send [12:45:50]OFD Sender: No OFD packet to send [12:45:55]OFD Sender: No OFD packet to send [12:46:00]OFD Sender: No OFD packet to send [12:46:05]OFD Sender: No OFD packet to send [12:46:10]OFD Sender: No OFD packet to send [12:46:15]OFD Sender: No OFD packet to send [12:46:20]OFD Sender: No OFD packet to send [12:46:25]OFD Sender: No OFD packet to send [12:46:30]OFD Sender: No OFD packet to send [12:46:35]OFD Sender: No OFD packet to send [12:46:40]OFD Sender: No OFD packet to send [12:46:45]OFD Sender: No OFD packet to send [12:46:50]OFD Sender: No OFD packet to send [12:46:55]OFD Sender: No OFD packet to send [12:47:00]OFD Sender: No OFD packet to send [12:47:05]OFD Sender: No OFD packet to send [12:47:10]OFD Sender: No OFD packet to send [12:47:15]OFD Sender: No OFD packet to send [12:47:20]OFD Sender: No OFD packet to send [12:47:25]OFD Sender: No OFD packet to send [12:47:30]OFD Sender: No OFD packet to send [12:47:35]OFD Sender: No OFD packet to send [12:47:40]OFD Sender: No OFD packet to send [12:47:45]OFD Sender: No OFD packet to send [12:47:50]OFD Sender: No OFD packet to send [12:47:55]OFD Sender: No OFD packet to send [12:48:00]OFD Sender: No OFD packet to send [12:48:05]OFD Sender: No OFD packet to send [12:48:10]OFD Sender: No OFD packet to send [12:48:15]OFD Sender: No OFD packet to send [12:48:20]OFD Sender: No OFD packet to send [12:48:25]OFD Sender: No OFD packet to send [12:48:30]OFD Sender: No OFD packet to send [12:48:35]OFD Sender: No OFD packet to send [12:48:40]OFD Sender: No OFD packet to send [12:48:45]OFD Sender: No OFD packet to send [12:48:50]OFD Sender: No OFD packet to send [12:48:55]OFD Sender: No OFD packet to send [12:49:00]OFD Sender: No OFD packet to send [12:49:05]OFD Sender: No OFD packet to send [12:49:10]OFD Sender: No OFD packet to send [12:49:15]OFD Sender: No OFD packet to send [12:49:20]OFD Sender: No OFD packet to send [12:49:25]OFD Sender: No OFD packet to send [12:49:30]OFD Sender: No OFD packet to send [12:49:35]accept exits with 7 [12:49:35]New connection [12:49:35]New thread 3066928484 created [12:49:35]Thread 3066785124 joined [12:49:35]Waiting for new connection... [12:49:35] Sock 7.Parse request [12:49:35]Sock 7.Check first char [12:49:35]Sock 7.First char is OK [12:49:35]request: POST /json_proto HTTP/1.0 [12:49:35]Method: POST [12:49:35]URL: /json_proto [12:49:35]Method is POST - this is cgi request [12:49:35]url: /json_proto [12:49:35]query_string will be loaded in cgi processing [12:49:35]execute_cgi json_proto POST (null) [12:49:35]execute_cgi path=json_proto method=POST [12:49:35]POST find Content-Length [12:49:35]Host: 172.17.33.3:8080 [12:49:35]Content-Length: 677 [12:49:35]Content-Type: application/json [12:49:35] [12:49:35]POST finish read [12:49:35]Found Content-Length = 677 [12:49:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347601", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.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:49:35]execute_script... [12:49: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)347601", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.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:49:35]POST & json_proto [12:49:35]process_json_proto [12:49:35]json parsed OK: [12:49:35]protocol is kg_v1.0 [12:49:35]action value=close_receipt [12:49:35]process_action close_receipt [12:49:35]cmd_close_receipt [12:49:35]MH_GetDate [12:49:35]Write to MH i2c: F0 00 00 EE 96 73 [12:49:35]Write i2c OK [12:49:35]MH_I2C_Read... [12:49:35]Read from MH i2c: F0 [12:49:35]MH_I2C_Read... [12:49:35]Read from MH i2c: F0 09 00 [12:49:35]MH_I2C_Read... [12:49:35]Read from MH i2c: F0 09 00 EE 96 00 E9 D0 1B 66 23 5B 8F 65 28 [12:49:35]GetLastDocTimeStamp 1713098732 [12:49:35]current date 1713098985 [12:49:35]FM_GetShiftState [12:49:35]SAM_PROTO_GetShiftState [12:49:35]wFMCommunicate request_size=4 [12:49:35]MH_SAM_APDU [12:49:35]CAPDU: 80 13 01 00 [12:49:35]Write to MH i2c: E2 08 00 EF 96 80 13 01 00 00 00 00 00 02 [12:49:35]Write i2c OK [12:49:35]MH_I2C_Read... [12:49:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:35]Read from MH i2c: E2 [12:49:35]MH_I2C_Read... [12:49:35]Read from MH i2c: E2 0E 00 [12:49:35]MH_I2C_Read... [12:49:35]Read from MH i2c: E2 0E 00 EF 96 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 AE [12:49:35]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [12:49:35]wFMCommunicate OK [12:49:35]SAM_PROTO_GetShiftState done [12:49:35]FM_GetShiftState done [12:49:35]opened in 1713053951 [12:49:35]opened+sec_in_day 1713140351 [12:49:35]quantity*price = 70035 [12:49:35]sum+1 = 70036 [12:49:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 131 14.04.2024 12:49 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29221 ФПД: 90025073342692 1/tax-web-control/client/api/v1/ticket?date=20240414T124945&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29221&fm=90025073342692&tin=02508201610067®Number=0000138879044617&sum=70000 [12:49:36]StoreToDocumentArchive [12:49:36]shift 116 fd 29221 [12:49:36]save to /storage/0116/doc_00029221 [12:49:36]save last doc name /storage/0116/doc_00029221 to /storage/kkm_last_doc_name [12:49:36]save OK [12:49:36]Clear old archive folders... [12:49:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:49:36]tlvbuf is 011EE7A0 [12:49:36]SAM_PROTO_ClearQueue [12:49:36]wFMCommunicate request_size=4 [12:49:36]MH_SAM_APDU [12:49:36]CAPDU: 80 09 00 00 [12:49:36]Write to MH i2c: E2 08 00 FC 96 80 09 00 00 00 00 00 00 04 [12:49:36]Write i2c OK [12:49:36]MH_I2C_Read... [12:49:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:49:36]Read from MH i2c: E2 [12:49:36]MH_I2C_Read... [12:49:36]Read from MH i2c: E2 03 00 [12:49:36]MH_I2C_Read... [12:49:36]Read from MH i2c: E2 03 00 FC 96 00 90 00 06 [12:49:36]RAPDU: 90 00 [12:49:36]wFMCommunicate OK [12:49:36]SAM_PROTO_ClearQueue done [12:49:36]KKMCreateOFDPacket [12:49:36]OFDProtocolAddRootSTLVToBuf [12:49:36]FM_MakeSignedData [12:49:36]FM_MakeSignedData [12:49:36]SAM_PROTO_SignData [12:49:36]wFMCommunicate request_size=4 [12:49:36]MH_SAM_APDU [12:49:36]CAPDU: 80 0D 01 02 [12:49:36]Write to MH i2c: E2 08 00 FD 96 80 0D 01 02 00 00 00 00 0C [12:49:36]Write i2c OK [12:49:36]MH_I2C_Read... [12:49:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:49:36]Read from MH i2c: E2 [12:49:36]MH_I2C_Read... [12:49:36]Read from MH i2c: E2 03 00 [12:49:36]MH_I2C_Read... [12:49:36]Read from MH i2c: E2 03 00 FD 96 00 90 00 07 [12:49:36]RAPDU: 90 00 [12:49:36]wFMCommunicate OK [12:49:36]wFMCommunicate request_size=255 [12:49:36]MH_SAM_APDU [12:49:36]CAPDU: 80 0D 02 02 FA 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 83 00 00 00 F4 03 04 00 E9 D0 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 25 72 00 00 35 04 06 00 51 [12:49:36]Write to MH i2c: E2 02 01 FE 96 80 0D 02 02 FA 00 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 83 00 00 00 F4 03 04 00 E9 D0 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 25 72 00 00 35 04 06 00 51 00 00 E0 [12:49:36]Write i2c OK [12:49:36]MH_I2C_Read... [12:49:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:36]Read from MH i2c: E2 [12:49:36]MH_I2C_Read... [12:49:36]Read from MH i2c: E2 03 00 [12:49:36]MH_I2C_Read... [12:49:36]Read from MH i2c: E2 03 00 FE 96 00 90 00 08 [12:49:36]RAPDU: 90 00 [12:49:36]wFMCommunicate OK [12:49:36]wFMCommunicate request_size=10 [12:49:36]MH_SAM_APDU [12:49:36]CAPDU: 80 0D 02 02 05 E0 98 84 78 E4 [12:49:36]Write to MH i2c: E2 0D 00 FF 96 80 0D 02 02 05 00 E0 98 84 78 E4 00 00 71 [12:49:36]Write i2c OK [12:49:36]MH_I2C_Read... [12:49:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:36]Read from MH i2c: E2 [12:49:36]MH_I2C_Read... [12:49:36]Read from MH i2c: E2 03 00 [12:49:36]MH_I2C_Read... [12:49:36]Read from MH i2c: E2 03 00 FF 96 00 90 00 09 [12:49:36]RAPDU: 90 00 [12:49:36]wFMCommunicate OK [12:49:36]wFMCommunicate request_size=4 [12:49:36]MH_SAM_APDU [12:49:36]CAPDU: 80 0D 03 02 [12:49:36]Write to MH i2c: E2 08 00 00 97 80 0D 03 02 00 00 00 00 12 [12:49:36]Write i2c OK [12:49:36]MH_I2C_Read... [12:49:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:49:36]Read from MH i2c: E2 [12:49:36]MH_I2C_Read... [12:49:36]Read from MH i2c: E2 0B 00 [12:49:36]MH_I2C_Read... [12:49:36]Read from MH i2c: E2 0B 00 00 97 00 4F 88 22 70 A1 BE 29 B8 90 00 BC [12:49:36]RAPDU: 4F 88 22 70 A1 BE 29 B8 90 00 [12:49:36]wFMCommunicate OK [12:49:36]SAM_PROTO_SignData done [12:49:36]FM_MakeSignedData done [12:49:36]CreateOFDProtocolMessage [12:49:36]wFMCommunicate request_size=4 [12:49:36]MH_SAM_APDU [12:49:36]CAPDU: 80 11 00 00 [12:49:36]Write to MH i2c: E2 08 00 01 97 80 11 00 00 00 00 00 00 12 [12:49:36]Write i2c OK [12:49:36]MH_I2C_Read... [12:49:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:36]Read from MH i2c: E2 [12:49:36]MH_I2C_Read... [12:49:36]Read from MH i2c: E2 17 00 [12:49:36]MH_I2C_Read... [12:49:36]Read from MH i2c: E2 17 00 01 97 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 61 [12:49:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:49:36]wFMCommunicate OK [12:49:36]CreateOFDProtocolMessage done [12:49:36]OFDSenderStorePacket 29221 [12:49:36]StoreOFDPacket docnum=29221 [12:49:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 10 A2 07 01 E6 B6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 83 00 00 00 F4 03 04 00 E9 D0 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 25 72 00 00 35 04 06 00 51 E0 98 84 78 E4 4F 88 22 70 A1 BE 29 B8 [12:49:36]CheckFolder [12:49:36]dirname=/storage/ofd_packets [12:49:36]CheckFolder done [12:49:36]ProducePacketName [12:49:36]name=ofd_packets/00029221 [12:49:36]NVStorageSaveData ofd_packets/00029221 [12:49:36]File name is /storage/ofd_packets/00029221 [12:49:36]Write 301 bytes [12:49:36]NVStorageSaveData done [12:49:36]OFDSenderStorePacket done [12:49:36]KKMCreateOFDPacket done [12:49:36]NVStorageSaveData kkm_last_timestamp [12:49:36]File name is /storage/kkm_last_timestamp [12:49:36]Write 4 bytes [12:49:36]NVStorageSaveData done [12:49:36]ExternCall_PrintAddStr [12:49:36]wPrintStart [12:49:36]Write to MH i2c: 01 00 00 02 97 99 [12:49:36]Write i2c OK [12:49:36]MH_I2C_Read... [12:49:36]Read from MH i2c: 01 [12:49:36]MH_I2C_Read... [12:49:36]Read from MH i2c: 01 07 00 [12:49:36]MH_I2C_Read... [12:49:36]Read from MH i2c: 01 07 00 02 97 00 00 00 00 00 FF 0F AE [12:49:36]RasterBufferAndPrint [12:49:36]line Счет N : (1)347601 [12:49:36]line ИНН: 02508201610067 [12:49:36]line Контрольно-Кассовый Чек [12:49:36]line ПРОДАЖА [12:49:36]line ТРК (МРК, ГНК) : 33 [12:49:36]line Товар: 2710124500 [12:49:36]line Аи-95-К-5 [12:49:36]line 9.660 * 72.50 [12:49:36]line = 700.35 [12:49:36]line НДС 12% НСП 1% [12:49:36]line > о реализуемом товаре [12:49:36]line ОКРУГЛЕНИЕ: -0.35 [12:49:36]line ИТОГО: 700.00 [12:49:36]line Внесено: 700.00 [12:49:36]line СДАЧА: 0.00 [12:49:36]line НСП 1% : 6.20 [12:49:36]line НДС 12% : 74.37 [12:49:36]line Наличными: 700.00 [12:49:36]line Безнал.: 0.00 [12:49:36]line Место: АЗС № 108 "Партнер Нефть" [12:49:36]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [12:49:36]line СНО: Общий режим [12:49:36]line Чек 131 14.04.2024 12:49 [12:49:36]line Смена: 116 ФФД: 1.0 [12:49:36]line ЗНМ: 0300000027 [12:49:36]line РНМ: 0000138879044617 [12:49:36]line Версия ККМ: 001 [12:49:36]line ФМ: 0000000000963154 [12:49:36]line ФД: 29221 [12:49:36]line ФПД: 90025073342692 [12:49:36]line 1/tax-web-control/client/api/v1/ticket?date=20240414T124945&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29221&fm=90025073342692&tin=02508201610067®Number=0000138879044617&sum=70000 [12:49:37]OFD Sender: Processing packet 29221 [packets to send 8, broken 7] [12:49:37]ProducePacketName [12:49:37]name=ofd_packets/00029221 [12:49:37]OFD Sender: To server: pG, [12:49:37]CommunicateWithHost lk.salyk.kg:30040 [12:49:37]ConnectInit lk.salyk.kg [12:49:37]written 0, free lines is 4095 [12:49:37]Connected sock=10 [12:49:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 10 A2 07 01 E6 B6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 83 00 00 00 F4 03 04 00 E9 D0 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 25 72 00 00 35 04 06 00 51 E0 98 84 78 E4 4F 88 22 70 A1 BE 29 B8 [12:49:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 60 36 47 00 63 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 39 36 33 31 35 34 10 04 04 00 25 72 00 00 F4 03 04 00 8D 7B 1B 66 B6 04 01 00 00 9D D0 44 82 46 60 6F E9 [12:49:37]CommunicateWithHost err = 0 [12:49:37]CheckOFDResponse [12:49:37]1017 (14) - 77093643461234 [12:49:37]1041 (16) - 0000000000963154 [12:49:37]1040 (4) - 29221 [12:49:37]1012 (4) - 14.04.2024 06:45 [12:49:37]1206 (1) - 0 [12:49:37]OFD Sender: Remove packet 29221 [12:49:37]ProducePacketName [12:49:37]name=ofd_packets/00029221 [12:49:37]NVStorageDeleteData [12:49:37]Write to MH i2c: 01 00 00 2C 97 C3 [12:49:37]Write i2c OK [12:49:37]MH_I2C_Read... [12:49:37]Read from MH i2c: 01 [12:49:37]MH_I2C_Read... [12:49:37]Read from MH i2c: 01 07 00 [12:49:37]MH_I2C_Read... [12:49:37]Read from MH i2c: 01 07 00 2C 97 00 00 00 00 00 BC 0C 92 [12:49:37]RasterBufferAndPrint [12:49:37]line [12:49:37]line [12:49:37]line [12:49:37]line [12:49:37]line [12:49:37]written 0, free lines is 3266 [12:49:37]MH_Cut [12:49:37]Write to MH i2c: D1 01 00 33 97 01 9C [12:49:37]Write i2c OK [12:49:37]MH_I2C_Read... [12:49:37]Read from MH i2c: D1 [12:49:37]MH_I2C_Read... [12:49:37]Read from MH i2c: D1 01 00 [12:49:37]MH_I2C_Read... [12:49:37]Read from MH i2c: D1 01 00 33 97 00 9B [12:49:37]Write to MH i2c: 01 00 00 34 97 CB [12:49:37]Write i2c OK [12:49:37]MH_I2C_Read... [12:49:38]OFD Sender: No OFD packet to send [12:49:38]*** Cut start [12:49:38]*** Partial cut [12:49:38]*** CUTSNS_PIN = 1 [12:49:38]*** CUTSNS_PIN = 0 [12:49:38]*** Brake cut motor [12:49:39]Read from MH i2c: 01 [12:49:39]MH_I2C_Read... [12:49:39]*** Stop cut motor [12:49:39]*** Cut end [12:49:39]Read from MH i2c: 01 07 00 [12:49:39]MH_I2C_Read... [12:49:39]Read from MH i2c: 01 07 00 34 97 00 00 00 00 00 FF 0F E0 [12:49:39]process_action close_receipt done [12:49:39]requested_data is exist [12:49:39]produce_requested_data [12:49:39]requested_item fm.sn is exist - process it [12:49:39]wFMCommunicate request_size=4 [12:49:39]MH_SAM_APDU [12:49:39]CAPDU: 80 11 00 00 [12:49:39]Write to MH i2c: E2 08 00 35 97 80 11 00 00 00 00 00 00 46 [12:49:39]Write i2c OK [12:49:39]MH_I2C_Read... [12:49:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:39]Read from MH i2c: E2 [12:49:39]MH_I2C_Read... [12:49:39]Read from MH i2c: E2 17 00 [12:49:39]MH_I2C_Read... [12:49:39]Read from MH i2c: E2 17 00 35 97 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 95 [12:49:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:49:39]wFMCommunicate OK [12:49:39]requested_item fd.num is exist - process it [12:49:39]SAM_PROTO_GetFieldsCounters [12:49:39]wFMCommunicate request_size=4 [12:49:39]MH_SAM_APDU [12:49:39]CAPDU: 80 13 00 00 [12:49:39]Write to MH i2c: E2 08 00 36 97 80 13 00 00 00 00 00 00 49 [12:49:39]Write i2c OK [12:49:39]MH_I2C_Read... [12:49:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:49:39]Read from MH i2c: E2 [12:49:39]MH_I2C_Read... [12:49:39]Read from MH i2c: E2 62 00 [12:49:39]MH_I2C_Read... [12:49:39]Read from MH i2c: E2 62 00 36 97 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 25 72 00 00 0E 04 04 00 74 00 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 1B [12:49:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 25 72 00 00 0E 04 04 00 74 00 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 [12:49:39]wFMCommunicate OK [12:49:39]SAM_PROTO_GetFieldsCounters done [12:49:39]requested_item shift.num is exist - process it [12:49:39]requested_item shift.opened is exist - process it [12:49:39]req_shift_opened [12:49:39]FM_GetShiftState [12:49:39]SAM_PROTO_GetShiftState [12:49:39]wFMCommunicate request_size=4 [12:49:39]MH_SAM_APDU [12:49:39]CAPDU: 80 13 01 00 [12:49:39]Write to MH i2c: E2 08 00 37 97 80 13 01 00 00 00 00 00 4B [12:49:39]Write i2c OK [12:49:39]MH_I2C_Read... [12:49:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:39]Read from MH i2c: E2 [12:49:39]MH_I2C_Read... [12:49:39]Read from MH i2c: E2 0E 00 [12:49:39]MH_I2C_Read... [12:49:39]Read from MH i2c: E2 0E 00 37 97 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 F7 [12:49:39]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [12:49:39]wFMCommunicate OK [12:49:39]SAM_PROTO_GetShiftState done [12:49:39]FM_GetShiftState done [12:49:39]req_shift_opened done [12:49:39]requested_item shift.open_date is exist - process it [12:49:39]req_shift_open_date [12:49:39]req_shift_open_date done [12:49:39]produce_requested_data done [12:49:39]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29221,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [12:49:39]process_action_free close_receipt [12:49:39]json_value_free [12:49:39]json_value_free done [12:49:39]process_json_proto returns [12:49:39]Send response to host [12:49:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29221,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [12:49:39]free response buf [12:49:39]execute_script done [12:49:39]execute_script returns [12:49:39]free content buf [12:49:39]Sock 7.Close socket [12:49:39]Sock 7.Thread stoped [12:49:43]OFD Sender: No OFD packet to send [12:49:48]OFD Sender: No OFD packet to send [12:49:53]OFD Sender: No OFD packet to send [12:49:58]OFD Sender: No OFD packet to send [12:50:03]OFD Sender: No OFD packet to send [12:50:08]OFD Sender: No OFD packet to send [12:50:13]OFD Sender: No OFD packet to send [12:50:18]OFD Sender: No OFD packet to send [12:50:23]OFD Sender: No OFD packet to send [12:50:28]OFD Sender: No OFD packet to send [12:50:33]OFD Sender: No OFD packet to send [12:50:38]OFD Sender: No OFD packet to send [12:50:43]OFD Sender: No OFD packet to send [12:50:48]OFD Sender: No OFD packet to send [12:50:53]OFD Sender: No OFD packet to send [12:50:58]OFD Sender: No OFD packet to send [12:51:03]OFD Sender: No OFD packet to send [12:51:08]OFD Sender: No OFD packet to send [12:51:13]OFD Sender: No OFD packet to send [12:51:18]OFD Sender: No OFD packet to send [12:51:23]OFD Sender: No OFD packet to send [12:51:28]OFD Sender: No OFD packet to send [12:51:30]accept exits with 9 [12:51:30]New connection [12:51:30]New thread 3066785124 created [12:51:30]Thread 3066928484 joined [12:51:30]Waiting for new connection... [12:51:30] Sock 9.Parse request [12:51:30]Sock 9.Check first char [12:51:30]Sock 9.First char is OK [12:51:30]request: POST /json_proto HTTP/1.0 [12:51:30]Method: POST [12:51:30]URL: /json_proto [12:51:30]Method is POST - this is cgi request [12:51:30]url: /json_proto [12:51:30]query_string will be loaded in cgi processing [12:51:30]execute_cgi json_proto POST (null) [12:51:30]execute_cgi path=json_proto method=POST [12:51:30]POST find Content-Length [12:51:30]Host: 172.17.33.3:8080 [12:51:30]Content-Length: 682 [12:51:30]Content-Type: application/json [12:51:30] [12:51:30]POST finish read [12:51:30]Found Content-Length = 682 [12:51:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347602", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "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:51:30]execute_script... [12:51: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)347602", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "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:51:30]POST & json_proto [12:51:30]process_json_proto [12:51:30]json parsed OK: [12:51:30]protocol is kg_v1.0 [12:51:30]action value=close_receipt [12:51:30]process_action close_receipt [12:51:30]cmd_close_receipt [12:51:30]MH_GetDate [12:51:30]Write to MH i2c: F0 00 00 38 97 BE [12:51:30]Write i2c OK [12:51:30]MH_I2C_Read... [12:51:30]Read from MH i2c: F0 [12:51:30]MH_I2C_Read... [12:51:30]Read from MH i2c: F0 09 00 [12:51:30]MH_I2C_Read... [12:51:30]Read from MH i2c: F0 09 00 38 97 00 5C D1 1B 66 23 5B 8F 65 E7 [12:51:30]GetLastDocTimeStamp 1713098985 [12:51:30]current date 1713099100 [12:51:30]FM_GetShiftState [12:51:30]SAM_PROTO_GetShiftState [12:51:30]wFMCommunicate request_size=4 [12:51:30]MH_SAM_APDU [12:51:30]CAPDU: 80 13 01 00 [12:51:30]Write to MH i2c: E2 08 00 39 97 80 13 01 00 00 00 00 00 4D [12:51:30]Write i2c OK [12:51:30]MH_I2C_Read... [12:51:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:51:30]Read from MH i2c: E2 [12:51:30]MH_I2C_Read... [12:51:30]Read from MH i2c: E2 0E 00 [12:51:30]MH_I2C_Read... [12:51:30]Read from MH i2c: E2 0E 00 39 97 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 F9 [12:51:30]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [12:51:30]wFMCommunicate OK [12:51:30]SAM_PROTO_GetShiftState done [12:51:30]FM_GetShiftState done [12:51:30]opened in 1713053951 [12:51:30]opened+sec_in_day 1713140351 [12:51:30]quantity*price = 200037 [12:51:30]sum+1 = 200038 [12:51:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 132 14.04.2024 12:51 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29222 ФПД: 158198606933111 1/tax-web-control/client/api/v1/ticket?date=20240414T125140&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29222&fm=158198606933111&tin=02508201610067®Number=0000138879044617&sum=200000 [12:51:31]StoreToDocumentArchive [12:51:31]shift 116 fd 29222 [12:51:31]save to /storage/0116/doc_00029222 [12:51:31]save last doc name /storage/0116/doc_00029222 to /storage/kkm_last_doc_name [12:51:31]save OK [12:51:31]Clear old archive folders... [12:51:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:51:31]tlvbuf is 011FB020 [12:51:31]SAM_PROTO_ClearQueue [12:51:31]wFMCommunicate request_size=4 [12:51:31]MH_SAM_APDU [12:51:31]CAPDU: 80 09 00 00 [12:51:31]Write to MH i2c: E2 08 00 46 97 80 09 00 00 00 00 00 00 4F [12:51:31]Write i2c OK [12:51:31]MH_I2C_Read... [12:51:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:51:31]Read from MH i2c: E2 [12:51:31]MH_I2C_Read... [12:51:31]Read from MH i2c: E2 03 00 [12:51:31]MH_I2C_Read... [12:51:31]Read from MH i2c: E2 03 00 46 97 00 90 00 51 [12:51:31]RAPDU: 90 00 [12:51:31]wFMCommunicate OK [12:51:31]SAM_PROTO_ClearQueue done [12:51:31]KKMCreateOFDPacket [12:51:31]OFDProtocolAddRootSTLVToBuf [12:51:31]FM_MakeSignedData [12:51:31]FM_MakeSignedData [12:51:31]SAM_PROTO_SignData [12:51:31]wFMCommunicate request_size=4 [12:51:31]MH_SAM_APDU [12:51:31]CAPDU: 80 0D 01 02 [12:51:31]Write to MH i2c: E2 08 00 47 97 80 0D 01 02 00 00 00 00 57 [12:51:31]Write i2c OK [12:51:31]MH_I2C_Read... [12:51:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:51:31]Read from MH i2c: E2 [12:51:31]MH_I2C_Read... [12:51:31]Read from MH i2c: E2 03 00 [12:51:31]MH_I2C_Read... [12:51:31]Read from MH i2c: E2 03 00 47 97 00 90 00 52 [12:51:31]RAPDU: 90 00 [12:51:31]wFMCommunicate OK [12:51:31]wFMCommunicate request_size=255 [12:51:31]MH_SAM_APDU [12:51: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 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 84 00 00 00 F4 03 04 00 5C D1 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 26 72 00 00 35 04 06 00 8F [12:51:31]Write to MH i2c: E2 02 01 48 97 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 84 00 00 00 F4 03 04 00 5C D1 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 26 72 00 00 35 04 06 00 8F 00 00 D3 [12:51:31]Write i2c OK [12:51:31]MH_I2C_Read... [12:51:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:51:31]Read from MH i2c: E2 [12:51:31]MH_I2C_Read... [12:51:31]Read from MH i2c: E2 03 00 [12:51:31]MH_I2C_Read... [12:51:31]Read from MH i2c: E2 03 00 48 97 00 90 00 53 [12:51:31]RAPDU: 90 00 [12:51:31]wFMCommunicate OK [12:51:31]wFMCommunicate request_size=10 [12:51:31]MH_SAM_APDU [12:51:31]CAPDU: 80 0D 02 02 05 E1 7B C5 2C 77 [12:51:31]Write to MH i2c: E2 0D 00 49 97 80 0D 02 02 05 00 E1 7B C5 2C 77 00 00 28 [12:51:31]Write i2c OK [12:51:31]MH_I2C_Read... [12:51:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:51:31]Read from MH i2c: E2 [12:51:31]MH_I2C_Read... [12:51:31]Read from MH i2c: E2 03 00 [12:51:31]MH_I2C_Read... [12:51:31]Read from MH i2c: E2 03 00 49 97 00 90 00 54 [12:51:31]RAPDU: 90 00 [12:51:31]wFMCommunicate OK [12:51:31]wFMCommunicate request_size=4 [12:51:31]MH_SAM_APDU [12:51:31]CAPDU: 80 0D 03 02 [12:51:31]Write to MH i2c: E2 08 00 4A 97 80 0D 03 02 00 00 00 00 5C [12:51:31]Write i2c OK [12:51:31]MH_I2C_Read... [12:51:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:51:31]Read from MH i2c: E2 [12:51:31]MH_I2C_Read... [12:51:31]Read from MH i2c: E2 0B 00 [12:51:31]MH_I2C_Read... [12:51:31]Read from MH i2c: E2 0B 00 4A 97 00 1E 70 61 68 41 85 8F B2 90 00 BB [12:51:31]RAPDU: 1E 70 61 68 41 85 8F B2 90 00 [12:51:31]wFMCommunicate OK [12:51:31]SAM_PROTO_SignData done [12:51:31]FM_MakeSignedData done [12:51:31]CreateOFDProtocolMessage [12:51:31]wFMCommunicate request_size=4 [12:51:31]MH_SAM_APDU [12:51:31]CAPDU: 80 11 00 00 [12:51:31]Write to MH i2c: E2 08 00 4B 97 80 11 00 00 00 00 00 00 5C [12:51:31]Write i2c OK [12:51:31]MH_I2C_Read... [12:51:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:51:31]Read from MH i2c: E2 [12:51:31]MH_I2C_Read... [12:51:31]Read from MH i2c: E2 17 00 [12:51:31]MH_I2C_Read... [12:51:31]Read from MH i2c: E2 17 00 4B 97 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 AB [12:51:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:51:31]wFMCommunicate OK [12:51:31]CreateOFDProtocolMessage done [12:51:31]OFDSenderStorePacket 29222 [12:51:31]StoreOFDPacket docnum=29222 [12:51:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 5C CF 07 01 5E 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 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 84 00 00 00 F4 03 04 00 5C D1 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 26 72 00 00 35 04 06 00 8F E1 7B C5 2C 77 1E 70 61 68 41 85 8F B2 [12:51:31]CheckFolder [12:51:31]dirname=/storage/ofd_packets [12:51:31]CheckFolder done [12:51:31]ProducePacketName [12:51:31]name=ofd_packets/00029222 [12:51:31]NVStorageSaveData ofd_packets/00029222 [12:51:31]File name is /storage/ofd_packets/00029222 [12:51:31]Write 301 bytes [12:51:31]NVStorageSaveData done [12:51:31]OFDSenderStorePacket done [12:51:31]KKMCreateOFDPacket done [12:51:31]NVStorageSaveData kkm_last_timestamp [12:51:31]File name is /storage/kkm_last_timestamp [12:51:31]Write 4 bytes [12:51:31]NVStorageSaveData done [12:51:31]ExternCall_PrintAddStr [12:51:31]wPrintStart [12:51:31]Write to MH i2c: 01 00 00 4C 97 E3 [12:51:31]Write i2c OK [12:51:31]MH_I2C_Read... [12:51:31]Read from MH i2c: 01 [12:51:31]MH_I2C_Read... [12:51:31]Read from MH i2c: 01 07 00 [12:51:31]MH_I2C_Read... [12:51:31]Read from MH i2c: 01 07 00 4C 97 00 00 00 00 00 FF 0F F8 [12:51:31]RasterBufferAndPrint [12:51:31]line Счет N : (1)347602 [12:51:31]line ИНН: 02508201610067 [12:51:31]line Контрольно-Кассовый Чек [12:51:31]line ПРОДАЖА [12:51:31]line ТРК (МРК, ГНК) : 53 [12:51:31]line Товар: 2710124130 [12:51:31]line Аи-92-К-5 [12:51:31]line 31.110 * 64.30 [12:51:31]line = 2000.37 [12:51:31]line НДС 12% НСП 1% [12:51:31]line > о реализуемом товаре [12:51:31]line ОКРУГЛЕНИЕ: -0.37 [12:51:31]line ИТОГО: 2000.00 [12:51:31]line Внесено: 2000.00 [12:51:31]line СДАЧА: 0.00 [12:51:31]line НСП 1% : 17.70 [12:51:31]line НДС 12% : 212.43 [12:51:31]line Наличными: 2000.00 [12:51:31]line Безнал.: 0.00 [12:51:31]line Место: АЗС № 108 "Партнер Нефть" [12:51:31]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [12:51:31]line СНО: Общий режим [12:51:31]line Чек 132 14.04.2024 12:51 [12:51:31]line Смена: 116 ФФД: 1.0 [12:51:31]line ЗНМ: 0300000027 [12:51:31]line РНМ: 0000138879044617 [12:51:31]line Версия ККМ: 001 [12:51:31]line ФМ: 0000000000963154 [12:51:31]line ФД: 29222 [12:51:31]line ФПД: 158198606933111 [12:51:31]line 1/tax-web-control/client/api/v1/ticket?date=20240414T125140&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29222&fm=158198606933111&tin=02508201610067®Number=0000138879044617&sum=200000 [12:51:32]OFD Sender: Processing packet 29222 [packets to send 8, broken 7] [12:51:32]ProducePacketName [12:51:32]name=ofd_packets/00029222 [12:51:32]OFD Sender: To server: pG, [12:51:32]CommunicateWithHost lk.salyk.kg:30040 [12:51:32]ConnectInit lk.salyk.kg [12:51:32]written 0, free lines is 4095 [12:51:32]Connected sock=10 [12:51:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 5C CF 07 01 5E 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 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 84 00 00 00 F4 03 04 00 5C D1 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 26 72 00 00 35 04 06 00 8F E1 7B C5 2C 77 1E 70 61 68 41 85 8F B2 [12:51:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 7A 67 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 39 36 33 31 35 34 10 04 04 00 26 72 00 00 F4 03 04 00 00 7C 1B 66 B6 04 01 00 00 AD 1D 30 F5 87 0D 63 9D [12:51:32]CommunicateWithHost err = 0 [12:51:32]CheckOFDResponse [12:51:32]1017 (14) - 77093643461234 [12:51:32]1041 (16) - 0000000000963154 [12:51:32]1040 (4) - 29222 [12:51:32]1012 (4) - 14.04.2024 06:47 [12:51:32]1206 (1) - 0 [12:51:32]OFD Sender: Remove packet 29222 [12:51:32]ProducePacketName [12:51:32]name=ofd_packets/00029222 [12:51:32]NVStorageDeleteData [12:51:32]Write to MH i2c: 01 00 00 76 97 0D [12:51:32]Write i2c OK [12:51:32]MH_I2C_Read... [12:51:32]Read from MH i2c: 01 [12:51:32]MH_I2C_Read... [12:51:32]Read from MH i2c: 01 07 00 [12:51:32]MH_I2C_Read... [12:51:32]Read from MH i2c: 01 07 00 76 97 00 00 00 00 00 C6 0C E6 [12:51:32]RasterBufferAndPrint [12:51:32]line [12:51:32]line [12:51:32]line [12:51:32]line [12:51:32]line [12:51:32]written 0, free lines is 3275 [12:51:32]MH_Cut [12:51:32]Write to MH i2c: D1 01 00 7D 97 01 E6 [12:51:32]Write i2c OK [12:51:32]MH_I2C_Read... [12:51:32]Read from MH i2c: D1 [12:51:32]MH_I2C_Read... [12:51:32]Read from MH i2c: D1 01 00 [12:51:32]MH_I2C_Read... [12:51:32]Read from MH i2c: D1 01 00 7D 97 00 E5 [12:51:32]Write to MH i2c: 01 00 00 7E 97 15 [12:51:32]Write i2c OK [12:51:32]MH_I2C_Read... [12:51:32]OFD Sender: No OFD packet to send [12:51:33]*** Cut start [12:51:33]*** Partial cut [12:51:33]*** CUTSNS_PIN = 1 [12:51:33]*** CUTSNS_PIN = 0 [12:51:33]*** Brake cut motor [12:51:34]Read from MH i2c: 01 [12:51:34]MH_I2C_Read... [12:51:34]*** Stop cut motor [12:51:34]*** Cut end [12:51:34]Read from MH i2c: 01 07 00 [12:51:34]MH_I2C_Read... [12:51:34]Read from MH i2c: 01 07 00 7E 97 00 00 00 00 00 FF 0F 2A [12:51:34]process_action close_receipt done [12:51:34]requested_data is exist [12:51:34]produce_requested_data [12:51:34]requested_item fm.sn is exist - process it [12:51:34]wFMCommunicate request_size=4 [12:51:34]MH_SAM_APDU [12:51:34]CAPDU: 80 11 00 00 [12:51:34]Write to MH i2c: E2 08 00 7F 97 80 11 00 00 00 00 00 00 90 [12:51:34]Write i2c OK [12:51:34]MH_I2C_Read... [12:51:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:51:34]Read from MH i2c: E2 [12:51:34]MH_I2C_Read... [12:51:34]Read from MH i2c: E2 17 00 [12:51:34]MH_I2C_Read... [12:51:34]Read from MH i2c: E2 17 00 7F 97 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 DF [12:51:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:51:34]wFMCommunicate OK [12:51:34]requested_item fd.num is exist - process it [12:51:34]SAM_PROTO_GetFieldsCounters [12:51:34]wFMCommunicate request_size=4 [12:51:34]MH_SAM_APDU [12:51:34]CAPDU: 80 13 00 00 [12:51:34]Write to MH i2c: E2 08 00 80 97 80 13 00 00 00 00 00 00 93 [12:51:34]Write i2c OK [12:51:34]MH_I2C_Read... [12:51:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:51:34]Read from MH i2c: E2 [12:51:34]MH_I2C_Read... [12:51:34]Read from MH i2c: E2 62 00 [12:51:34]MH_I2C_Read... [12:51:34]Read from MH i2c: E2 62 00 80 97 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 26 72 00 00 0E 04 04 00 74 00 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 69 [12:51:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 26 72 00 00 0E 04 04 00 74 00 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 [12:51:34]wFMCommunicate OK [12:51:34]SAM_PROTO_GetFieldsCounters done [12:51:34]requested_item shift.num is exist - process it [12:51:34]requested_item shift.opened is exist - process it [12:51:34]req_shift_opened [12:51:34]FM_GetShiftState [12:51:34]SAM_PROTO_GetShiftState [12:51:34]wFMCommunicate request_size=4 [12:51:34]MH_SAM_APDU [12:51:34]CAPDU: 80 13 01 00 [12:51:34]Write to MH i2c: E2 08 00 81 97 80 13 01 00 00 00 00 00 95 [12:51:34]Write i2c OK [12:51:34]MH_I2C_Read... [12:51:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:51:34]Read from MH i2c: E2 [12:51:34]MH_I2C_Read... [12:51:34]Read from MH i2c: E2 0E 00 [12:51:34]MH_I2C_Read... [12:51:34]Read from MH i2c: E2 0E 00 81 97 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 41 [12:51:34]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [12:51:34]wFMCommunicate OK [12:51:34]SAM_PROTO_GetShiftState done [12:51:34]FM_GetShiftState done [12:51:34]req_shift_opened done [12:51:34]requested_item shift.open_date is exist - process it [12:51:34]req_shift_open_date [12:51:34]req_shift_open_date done [12:51:34]produce_requested_data done [12:51:34]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29222,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [12:51:34]process_action_free close_receipt [12:51:34]json_value_free [12:51:34]json_value_free done [12:51:34]process_json_proto returns [12:51:34]Send response to host [12:51:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29222,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [12:51:34]free response buf [12:51:34]execute_script done [12:51:34]execute_script returns [12:51:34]free content buf [12:51:34]Sock 9.Close socket [12:51:34]Sock 9.Thread stoped [12:51:37]OFD Sender: No OFD packet to send [12:51:42]OFD Sender: No OFD packet to send [12:51:45]accept exits with 7 [12:51:45]New connection [12:51:45]New thread 3066928484 created [12:51:45]Thread 3066785124 joined [12:51:45]Waiting for new connection... [12:51:45] Sock 7.Parse request [12:51:45]Sock 7.Check first char [12:51:45]Sock 7.First char is OK [12:51:45]request: POST /json_proto HTTP/1.0 [12:51:45]Method: POST [12:51:45]URL: /json_proto [12:51:45]Method is POST - this is cgi request [12:51:45]url: /json_proto [12:51:45]query_string will be loaded in cgi processing [12:51:45]execute_cgi json_proto POST (null) [12:51:45]execute_cgi path=json_proto method=POST [12:51:45]POST find Content-Length [12:51:45]Host: 172.17.33.3:8080 [12:51:45]Content-Length: 677 [12:51:45]Content-Type: application/json [12:51:45] [12:51:45]POST finish read [12:51:45]Found Content-Length = 677 [12:51:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347603", "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" ] } } [12:51:45]execute_script... [12:51: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)347603", "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" ] } } [12:51:45]POST & json_proto [12:51:45]process_json_proto [12:51:45]json parsed OK: [12:51:45]protocol is kg_v1.0 [12:51:45]action value=close_receipt [12:51:45]process_action close_receipt [12:51:45]cmd_close_receipt [12:51:45]MH_GetDate [12:51:45]Write to MH i2c: F0 00 00 82 97 08 [12:51:45]Write i2c OK [12:51:45]MH_I2C_Read... [12:51:45]Read from MH i2c: F0 [12:51:45]MH_I2C_Read... [12:51:45]Read from MH i2c: F0 09 00 [12:51:45]MH_I2C_Read... [12:51:45]Read from MH i2c: F0 09 00 82 97 00 6B D1 1B 66 23 5B 8F 65 40 [12:51:45]GetLastDocTimeStamp 1713099100 [12:51:45]current date 1713099115 [12:51:45]FM_GetShiftState [12:51:45]SAM_PROTO_GetShiftState [12:51:45]wFMCommunicate request_size=4 [12:51:45]MH_SAM_APDU [12:51:45]CAPDU: 80 13 01 00 [12:51:45]Write to MH i2c: E2 08 00 83 97 80 13 01 00 00 00 00 00 97 [12:51:45]Write i2c OK [12:51:45]MH_I2C_Read... [12:51:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:51:45]Read from MH i2c: E2 [12:51:45]MH_I2C_Read... [12:51:45]Read from MH i2c: E2 0E 00 [12:51:45]MH_I2C_Read... [12:51:45]Read from MH i2c: E2 0E 00 83 97 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 43 [12:51:45]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [12:51:45]wFMCommunicate OK [12:51:45]SAM_PROTO_GetShiftState done [12:51:45]FM_GetShiftState done [12:51:45]opened in 1713053951 [12:51:45]opened+sec_in_day 1713140351 [12:51:45]quantity*price = 50025 [12:51:45]sum+1 = 50026 [12:51: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 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 133 14.04.2024 12:51 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29223 ФПД: 34528950611318 1/tax-web-control/client/api/v1/ticket?date=20240414T125155&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29223&fm=34528950611318&tin=02508201610067®Number=0000138879044617&sum=50000 [12:51:46]StoreToDocumentArchive [12:51:46]shift 116 fd 29223 [12:51:46]save to /storage/0116/doc_00029223 [12:51:46]save last doc name /storage/0116/doc_00029223 to /storage/kkm_last_doc_name [12:51:46]save OK [12:51:46]Clear old archive folders... [12:51:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:51:46]tlvbuf is 011EC890 [12:51:46]SAM_PROTO_ClearQueue [12:51:46]wFMCommunicate request_size=4 [12:51:46]MH_SAM_APDU [12:51:46]CAPDU: 80 09 00 00 [12:51:46]Write to MH i2c: E2 08 00 90 97 80 09 00 00 00 00 00 00 99 [12:51:46]Write i2c OK [12:51:46]MH_I2C_Read... [12:51:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:51:46]Read from MH i2c: E2 [12:51:46]MH_I2C_Read... [12:51:46]Read from MH i2c: E2 03 00 [12:51:46]MH_I2C_Read... [12:51:46]Read from MH i2c: E2 03 00 90 97 00 90 00 9B [12:51:46]RAPDU: 90 00 [12:51:46]wFMCommunicate OK [12:51:46]SAM_PROTO_ClearQueue done [12:51:46]KKMCreateOFDPacket [12:51:46]OFDProtocolAddRootSTLVToBuf [12:51:46]FM_MakeSignedData [12:51:46]FM_MakeSignedData [12:51:46]SAM_PROTO_SignData [12:51:46]wFMCommunicate request_size=4 [12:51:46]MH_SAM_APDU [12:51:46]CAPDU: 80 0D 01 02 [12:51:46]Write to MH i2c: E2 08 00 91 97 80 0D 01 02 00 00 00 00 A1 [12:51:46]Write i2c OK [12:51:46]MH_I2C_Read... [12:51:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:51:46]Read from MH i2c: E2 [12:51:46]MH_I2C_Read... [12:51:46]Read from MH i2c: E2 03 00 [12:51:46]MH_I2C_Read... [12:51:46]Read from MH i2c: E2 03 00 91 97 00 90 00 9C [12:51:46]RAPDU: 90 00 [12:51:46]wFMCommunicate OK [12:51:46]wFMCommunicate request_size=255 [12:51:46]MH_SAM_APDU [12:51: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 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 85 00 00 00 F4 03 04 00 6B D1 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 27 72 00 00 35 04 06 00 1F [12:51:46]Write to MH i2c: E2 02 01 92 97 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 85 00 00 00 F4 03 04 00 6B D1 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 27 72 00 00 35 04 06 00 1F 00 00 D1 [12:51:46]Write i2c OK [12:51:46]MH_I2C_Read... [12:51:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:51:46]Read from MH i2c: E2 [12:51:46]MH_I2C_Read... [12:51:46]Read from MH i2c: E2 03 00 [12:51:46]MH_I2C_Read... [12:51:46]Read from MH i2c: E2 03 00 92 97 00 90 00 9D [12:51:46]RAPDU: 90 00 [12:51:46]wFMCommunicate OK [12:51:46]wFMCommunicate request_size=10 [12:51:46]MH_SAM_APDU [12:51:46]CAPDU: 80 0D 02 02 05 67 65 D5 ED 76 [12:51:46]Write to MH i2c: E2 0D 00 93 97 80 0D 02 02 05 00 67 65 D5 ED 76 00 00 B2 [12:51:46]Write i2c OK [12:51:46]MH_I2C_Read... [12:51:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:51:46]Read from MH i2c: E2 [12:51:46]MH_I2C_Read... [12:51:46]Read from MH i2c: E2 03 00 [12:51:46]MH_I2C_Read... [12:51:46]Read from MH i2c: E2 03 00 93 97 00 90 00 9E [12:51:46]RAPDU: 90 00 [12:51:46]wFMCommunicate OK [12:51:46]wFMCommunicate request_size=4 [12:51:46]MH_SAM_APDU [12:51:46]CAPDU: 80 0D 03 02 [12:51:46]Write to MH i2c: E2 08 00 94 97 80 0D 03 02 00 00 00 00 A6 [12:51:46]Write i2c OK [12:51:46]MH_I2C_Read... [12:51:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:51:46]Read from MH i2c: E2 [12:51:46]MH_I2C_Read... [12:51:46]Read from MH i2c: E2 0B 00 [12:51:46]MH_I2C_Read... [12:51:46]Read from MH i2c: E2 0B 00 94 97 00 A4 89 38 2B D1 B7 C8 71 90 00 F8 [12:51:46]RAPDU: A4 89 38 2B D1 B7 C8 71 90 00 [12:51:46]wFMCommunicate OK [12:51:46]SAM_PROTO_SignData done [12:51:46]FM_MakeSignedData done [12:51:46]CreateOFDProtocolMessage [12:51:46]wFMCommunicate request_size=4 [12:51:46]MH_SAM_APDU [12:51:46]CAPDU: 80 11 00 00 [12:51:46]Write to MH i2c: E2 08 00 95 97 80 11 00 00 00 00 00 00 A6 [12:51:46]Write i2c OK [12:51:46]MH_I2C_Read... [12:51:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:51:46]Read from MH i2c: E2 [12:51:46]MH_I2C_Read... [12:51:46]Read from MH i2c: E2 17 00 [12:51:46]MH_I2C_Read... [12:51:46]Read from MH i2c: E2 17 00 95 97 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F5 [12:51:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:51:46]wFMCommunicate OK [12:51:46]CreateOFDProtocolMessage done [12:51:46]OFDSenderStorePacket 29223 [12:51:46]StoreOFDPacket docnum=29223 [12:51:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 7E EB 07 01 E2 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 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 85 00 00 00 F4 03 04 00 6B D1 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 27 72 00 00 35 04 06 00 1F 67 65 D5 ED 76 A4 89 38 2B D1 B7 C8 71 [12:51:46]CheckFolder [12:51:46]dirname=/storage/ofd_packets [12:51:46]CheckFolder done [12:51:46]ProducePacketName [12:51:46]name=ofd_packets/00029223 [12:51:46]NVStorageSaveData ofd_packets/00029223 [12:51:46]File name is /storage/ofd_packets/00029223 [12:51:46]Write 301 bytes [12:51:46]NVStorageSaveData done [12:51:46]OFDSenderStorePacket done [12:51:46]KKMCreateOFDPacket done [12:51:46]NVStorageSaveData kkm_last_timestamp [12:51:46]File name is /storage/kkm_last_timestamp [12:51:46]Write 4 bytes [12:51:46]NVStorageSaveData done [12:51:46]ExternCall_PrintAddStr [12:51:46]wPrintStart [12:51:46]Write to MH i2c: 01 00 00 96 97 2D [12:51:46]Write i2c OK [12:51:46]MH_I2C_Read... [12:51:46]Read from MH i2c: 01 [12:51:46]MH_I2C_Read... [12:51:46]Read from MH i2c: 01 07 00 [12:51:46]MH_I2C_Read... [12:51:46]Read from MH i2c: 01 07 00 96 97 00 00 00 00 00 FF 0F 42 [12:51:46]RasterBufferAndPrint [12:51:46]line Счет N : (1)347603 [12:51:46]line ИНН: 02508201610067 [12:51:46]line Контрольно-Кассовый Чек [12:51:46]line ПРОДАЖА [12:51:46]line ТРК (МРК, ГНК) : 42 [12:51:46]line Товар: 2710124130 [12:51:46]line Аи-92-К-5 [12:51:46]line 7.780 * 64.30 [12:51:46]line = 500.25 [12:51:46]line НДС 12% НСП 1% [12:51:46]line > о реализуемом товаре [12:51:46]line ОКРУГЛЕНИЕ: -0.25 [12:51:46]line ИТОГО: 500.00 [12:51:46]line Внесено: 500.00 [12:51:46]line СДАЧА: 0.00 [12:51:46]line НСП 1% : 4.43 [12:51:46]line НДС 12% : 53.12 [12:51:46]line Наличными: 500.00 [12:51:46]line Безнал.: 0.00 [12:51:46]line Место: АЗС № 108 "Партнер Нефть" [12:51:46]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [12:51:46]line СНО: Общий режим [12:51:46]line Чек 133 14.04.2024 12:51 [12:51:46]line Смена: 116 ФФД: 1.0 [12:51:46]line ЗНМ: 0300000027 [12:51:46]line РНМ: 0000138879044617 [12:51:46]line Версия ККМ: 001 [12:51:46]line ФМ: 0000000000963154 [12:51:46]line ФД: 29223 [12:51:46]line ФПД: 34528950611318 [12:51:46]line 1/tax-web-control/client/api/v1/ticket?date=20240414T125155&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29223&fm=34528950611318&tin=02508201610067®Number=0000138879044617&sum=50000 [12:51:47]OFD Sender: Processing packet 29223 [packets to send 8, broken 7] [12:51:47]ProducePacketName [12:51:47]name=ofd_packets/00029223 [12:51:47]OFD Sender: To server: pG, [12:51:47]CommunicateWithHost lk.salyk.kg:30040 [12:51:47]ConnectInit lk.salyk.kg [12:51:47]written 0, free lines is 4095 [12:51:47]Connected sock=10 [12:51:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 7E EB 07 01 E2 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 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 85 00 00 00 F4 03 04 00 6B D1 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 27 72 00 00 35 04 06 00 1F 67 65 D5 ED 76 A4 89 38 2B D1 B7 C8 71 [12:51:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 68 37 47 00 68 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 39 36 33 31 35 34 10 04 04 00 27 72 00 00 F4 03 04 00 0F 7C 1B 66 B6 04 01 00 00 E1 EF 14 BF 33 6B 83 35 [12:51:47]CommunicateWithHost err = 0 [12:51:47]CheckOFDResponse [12:51:47]1017 (14) - 77093643461234 [12:51:47]1041 (16) - 0000000000963154 [12:51:47]1040 (4) - 29223 [12:51:47]1012 (4) - 14.04.2024 06:47 [12:51:47]1206 (1) - 0 [12:51:47]OFD Sender: Remove packet 29223 [12:51:47]ProducePacketName [12:51:47]name=ofd_packets/00029223 [12:51:47]NVStorageDeleteData [12:51:47]Write to MH i2c: 01 00 00 C0 97 57 [12:51:47]Write i2c OK [12:51:47]MH_I2C_Read... [12:51:47]Read from MH i2c: 01 [12:51:47]MH_I2C_Read... [12:51:47]Read from MH i2c: 01 07 00 [12:51:47]MH_I2C_Read... [12:51:47]Read from MH i2c: 01 07 00 C0 97 00 00 00 00 00 C2 0C 2C [12:51:47]RasterBufferAndPrint [12:51:47]line [12:51:47]line [12:51:47]line [12:51:47]line [12:51:47]line [12:51:47]written 0, free lines is 3272 [12:51:47]MH_Cut [12:51:47]Write to MH i2c: D1 01 00 C7 97 01 30 [12:51:47]Write i2c OK [12:51:47]MH_I2C_Read... [12:51:47]Read from MH i2c: D1 [12:51:47]MH_I2C_Read... [12:51:47]Read from MH i2c: D1 01 00 [12:51:47]MH_I2C_Read... [12:51:47]Read from MH i2c: D1 01 00 C7 97 00 2F [12:51:47]Write to MH i2c: 01 00 00 C8 97 5F [12:51:47]Write i2c OK [12:51:47]MH_I2C_Read... [12:51:48]OFD Sender: No OFD packet to send [12:51:48]*** Cut start [12:51:48]*** Partial cut [12:51:48]*** CUTSNS_PIN = 1 [12:51:48]*** CUTSNS_PIN = 0 [12:51:48]*** Brake cut motor [12:51:49]Read from MH i2c: 01 [12:51:49]MH_I2C_Read... [12:51:49]*** Stop cut motor [12:51:49]*** Cut end [12:51:49]Read from MH i2c: 01 07 00 [12:51:49]MH_I2C_Read... [12:51:49]Read from MH i2c: 01 07 00 C8 97 00 00 00 00 00 FF 0F 74 [12:51:49]process_action close_receipt done [12:51:49]requested_data is exist [12:51:49]produce_requested_data [12:51:49]requested_item fm.sn is exist - process it [12:51:49]wFMCommunicate request_size=4 [12:51:49]MH_SAM_APDU [12:51:49]CAPDU: 80 11 00 00 [12:51:49]Write to MH i2c: E2 08 00 C9 97 80 11 00 00 00 00 00 00 DA [12:51:49]Write i2c OK [12:51:49]MH_I2C_Read... [12:51:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:51:49]Read from MH i2c: E2 [12:51:49]MH_I2C_Read... [12:51:49]Read from MH i2c: E2 17 00 [12:51:49]MH_I2C_Read... [12:51:49]Read from MH i2c: E2 17 00 C9 97 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 29 [12:51:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:51:49]wFMCommunicate OK [12:51:49]requested_item fd.num is exist - process it [12:51:49]SAM_PROTO_GetFieldsCounters [12:51:49]wFMCommunicate request_size=4 [12:51:49]MH_SAM_APDU [12:51:49]CAPDU: 80 13 00 00 [12:51:49]Write to MH i2c: E2 08 00 CA 97 80 13 00 00 00 00 00 00 DD [12:51:49]Write i2c OK [12:51:49]MH_I2C_Read... [12:51:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:51:49]Read from MH i2c: E2 [12:51:49]MH_I2C_Read... [12:51:49]Read from MH i2c: E2 62 00 [12:51:49]MH_I2C_Read... [12:51:49]Read from MH i2c: E2 62 00 CA 97 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 27 72 00 00 0E 04 04 00 74 00 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 B7 [12:51:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 27 72 00 00 0E 04 04 00 74 00 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 [12:51:49]wFMCommunicate OK [12:51:49]SAM_PROTO_GetFieldsCounters done [12:51:49]requested_item shift.num is exist - process it [12:51:49]requested_item shift.opened is exist - process it [12:51:49]req_shift_opened [12:51:49]FM_GetShiftState [12:51:49]SAM_PROTO_GetShiftState [12:51:49]wFMCommunicate request_size=4 [12:51:49]MH_SAM_APDU [12:51:49]CAPDU: 80 13 01 00 [12:51:49]Write to MH i2c: E2 08 00 CB 97 80 13 01 00 00 00 00 00 DF [12:51:49]Write i2c OK [12:51:49]MH_I2C_Read... [12:51:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:51:49]Read from MH i2c: E2 [12:51:49]MH_I2C_Read... [12:51:49]Read from MH i2c: E2 0E 00 [12:51:49]MH_I2C_Read... [12:51:49]Read from MH i2c: E2 0E 00 CB 97 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 8B [12:51:49]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [12:51:49]wFMCommunicate OK [12:51:49]SAM_PROTO_GetShiftState done [12:51:49]FM_GetShiftState done [12:51:49]req_shift_opened done [12:51:49]requested_item shift.open_date is exist - process it [12:51:49]req_shift_open_date [12:51:49]req_shift_open_date done [12:51:49]produce_requested_data done [12:51:49]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29223,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [12:51:49]process_action_free close_receipt [12:51:49]json_value_free [12:51:49]json_value_free done [12:51:49]process_json_proto returns [12:51:49]Send response to host [12:51:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29223,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [12:51:49]free response buf [12:51:49]execute_script done [12:51:49]execute_script returns [12:51:49]free content buf [12:51:49]Sock 7.Close socket [12:51:49]Sock 7.Thread stoped [12:51:53]OFD Sender: No OFD packet to send [12:51:58]OFD Sender: No OFD packet to send [12:52:03]OFD Sender: No OFD packet to send [12:52:08]OFD Sender: No OFD packet to send [12:52:13]OFD Sender: No OFD packet to send [12:52:18]OFD Sender: No OFD packet to send [12:52:23]OFD Sender: No OFD packet to send [12:52:28]OFD Sender: No OFD packet to send [12:52:33]OFD Sender: No OFD packet to send [12:52:38]OFD Sender: No OFD packet to send [12:52:43]OFD Sender: No OFD packet to send [12:52:48]OFD Sender: No OFD packet to send [12:52:53]OFD Sender: No OFD packet to send [12:52:58]OFD Sender: No OFD packet to send [12:53:03]OFD Sender: No OFD packet to send [12:53:08]OFD Sender: No OFD packet to send [12:53:13]OFD Sender: No OFD packet to send [12:53:18]OFD Sender: No OFD packet to send [12:53:23]OFD Sender: No OFD packet to send [12:53:28]OFD Sender: No OFD packet to send [12:53:33]OFD Sender: No OFD packet to send [12:53:38]OFD Sender: No OFD packet to send [12:53:43]OFD Sender: No OFD packet to send [12:53:48]OFD Sender: No OFD packet to send [12:53:53]OFD Sender: No OFD packet to send [12:53:53]accept exits with 9 [12:53:53]New connection [12:53:53]New thread 3066785124 created [12:53:53]Thread 3066928484 joined [12:53:53]Waiting for new connection... [12:53:53] Sock 9.Parse request [12:53:53]Sock 9.Check first char [12:53:53]Sock 9.First char is OK [12:53:53]request: POST /json_proto HTTP/1.0 [12:53:53]Method: POST [12:53:53]URL: /json_proto [12:53:53]Method is POST - this is cgi request [12:53:53]url: /json_proto [12:53:53]query_string will be loaded in cgi processing [12:53:53]execute_cgi json_proto POST (null) [12:53:53]execute_cgi path=json_proto method=POST [12:53:53]POST find Content-Length [12:53:53]Host: 172.17.33.3:8080 [12:53:53]Content-Length: 677 [12:53:53]Content-Type: application/json [12:53:53] [12:53:53]POST finish read [12:53:53]Found Content-Length = 677 [12:53:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347604", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 6.960, "sum" : 447.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 447.00, "total" : 447.00, "payments": [ { "type": 0, "sum" : 447.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:53:53]execute_script... [12:53: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)347604", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 6.960, "sum" : 447.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 447.00, "total" : 447.00, "payments": [ { "type": 0, "sum" : 447.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:53:53]POST & json_proto [12:53:53]process_json_proto [12:53:53]json parsed OK: [12:53:53]protocol is kg_v1.0 [12:53:53]action value=close_receipt [12:53:53]process_action close_receipt [12:53:53]cmd_close_receipt [12:53:53]MH_GetDate [12:53:53]Write to MH i2c: F0 00 00 CC 97 52 [12:53:53]Write i2c OK [12:53:53]MH_I2C_Read... [12:53:53]Read from MH i2c: F0 [12:53:53]MH_I2C_Read... [12:53:53]Read from MH i2c: F0 09 00 [12:53:53]MH_I2C_Read... [12:53:53]Read from MH i2c: F0 09 00 CC 97 00 EB D1 1B 66 23 5B 8F 65 0A [12:53:53]GetLastDocTimeStamp 1713099115 [12:53:53]current date 1713099243 [12:53:53]FM_GetShiftState [12:53:53]SAM_PROTO_GetShiftState [12:53:53]wFMCommunicate request_size=4 [12:53:53]MH_SAM_APDU [12:53:53]CAPDU: 80 13 01 00 [12:53:53]Write to MH i2c: E2 08 00 CD 97 80 13 01 00 00 00 00 00 E1 [12:53:53]Write i2c OK [12:53:53]MH_I2C_Read... [12:53:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:53]Read from MH i2c: E2 [12:53:53]MH_I2C_Read... [12:53:53]Read from MH i2c: E2 0E 00 [12:53:53]MH_I2C_Read... [12:53:53]Read from MH i2c: E2 0E 00 CD 97 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 8D [12:53:53]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [12:53:53]wFMCommunicate OK [12:53:53]SAM_PROTO_GetShiftState done [12:53:53]FM_GetShiftState done [12:53:53]opened in 1713053951 [12:53:53]opened+sec_in_day 1713140351 [12:53:53]quantity*price = 44752 [12:53:53]sum+1 = 44754 [12:53:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 447.00 Внесено: 447.00 СДАЧА: 0.00 НСП 1% : 3.96 НДС 12% : 47.52 Наличными: 447.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 134 14.04.2024 12:54 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29224 ФПД: 160313837676270 1/tax-web-control/client/api/v1/ticket?date=20240414T125403&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29224&fm=160313837676270&tin=02508201610067®Number=0000138879044617&sum=44700 [12:53:54]StoreToDocumentArchive [12:53:54]shift 116 fd 29224 [12:53:54]save to /storage/0116/doc_00029224 [12:53:54]save last doc name /storage/0116/doc_00029224 to /storage/kkm_last_doc_name [12:53:54]save OK [12:53:54]Clear old archive folders... [12:53:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:53:54]tlvbuf is 011DA560 [12:53:54]SAM_PROTO_ClearQueue [12:53:54]wFMCommunicate request_size=4 [12:53:54]MH_SAM_APDU [12:53:54]CAPDU: 80 09 00 00 [12:53:54]Write to MH i2c: E2 08 00 DA 97 80 09 00 00 00 00 00 00 E3 [12:53:54]Write i2c OK [12:53:54]MH_I2C_Read... [12:53:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:53:54]Read from MH i2c: E2 [12:53:54]MH_I2C_Read... [12:53:54]Read from MH i2c: E2 03 00 [12:53:54]MH_I2C_Read... [12:53:54]Read from MH i2c: E2 03 00 DA 97 00 90 00 E5 [12:53:54]RAPDU: 90 00 [12:53:54]wFMCommunicate OK [12:53:54]SAM_PROTO_ClearQueue done [12:53:54]KKMCreateOFDPacket [12:53:54]OFDProtocolAddRootSTLVToBuf [12:53:54]FM_MakeSignedData [12:53:54]FM_MakeSignedData [12:53:54]SAM_PROTO_SignData [12:53:54]wFMCommunicate request_size=4 [12:53:54]MH_SAM_APDU [12:53:54]CAPDU: 80 0D 01 02 [12:53:54]Write to MH i2c: E2 08 00 DB 97 80 0D 01 02 00 00 00 00 EB [12:53:54]Write i2c OK [12:53:54]MH_I2C_Read... [12:53:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:53:55]Read from MH i2c: E2 [12:53:55]MH_I2C_Read... [12:53:55]Read from MH i2c: E2 03 00 [12:53:55]MH_I2C_Read... [12:53:55]Read from MH i2c: E2 03 00 DB 97 00 90 00 E6 [12:53:55]RAPDU: 90 00 [12:53:55]wFMCommunicate OK [12:53:55]wFMCommunicate request_size=255 [12:53:55]MH_SAM_APDU [12:53: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 30 1B 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D1 AE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C AE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 12 00 00 00 00 07 04 06 00 9C AE 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 EB D1 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 28 72 00 00 35 04 06 00 91 [12:53:55]Write to MH i2c: E2 02 01 DC 97 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1B 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D1 AE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C AE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 12 00 00 00 00 07 04 06 00 9C AE 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 EB D1 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 28 72 00 00 35 04 06 00 91 00 00 38 [12:53:55]Write i2c OK [12:53:55]MH_I2C_Read... [12:53:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:55]Read from MH i2c: E2 [12:53:55]MH_I2C_Read... [12:53:55]Read from MH i2c: E2 03 00 [12:53:55]MH_I2C_Read... [12:53:55]Read from MH i2c: E2 03 00 DC 97 00 90 00 E7 [12:53:55]RAPDU: 90 00 [12:53:55]wFMCommunicate OK [12:53:55]wFMCommunicate request_size=10 [12:53:55]MH_SAM_APDU [12:53:55]CAPDU: 80 0D 02 02 05 CD F9 58 E6 EE [12:53:55]Write to MH i2c: E2 0D 00 DD 97 80 0D 02 02 05 00 CD F9 58 E6 EE 00 00 EA [12:53:55]Write i2c OK [12:53:55]MH_I2C_Read... [12:53:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:55]Read from MH i2c: E2 [12:53:55]MH_I2C_Read... [12:53:55]Read from MH i2c: E2 03 00 [12:53:55]MH_I2C_Read... [12:53:55]Read from MH i2c: E2 03 00 DD 97 00 90 00 E8 [12:53:55]RAPDU: 90 00 [12:53:55]wFMCommunicate OK [12:53:55]wFMCommunicate request_size=4 [12:53:55]MH_SAM_APDU [12:53:55]CAPDU: 80 0D 03 02 [12:53:55]Write to MH i2c: E2 08 00 DE 97 80 0D 03 02 00 00 00 00 F0 [12:53:55]Write i2c OK [12:53:55]MH_I2C_Read... [12:53:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:53:55]Read from MH i2c: E2 [12:53:55]MH_I2C_Read... [12:53:55]Read from MH i2c: E2 0B 00 [12:53:55]MH_I2C_Read... [12:53:55]Read from MH i2c: E2 0B 00 DE 97 00 82 3B 4A 3C 77 EC ED 10 90 00 94 [12:53:55]RAPDU: 82 3B 4A 3C 77 EC ED 10 90 00 [12:53:55]wFMCommunicate OK [12:53:55]SAM_PROTO_SignData done [12:53:55]FM_MakeSignedData done [12:53:55]CreateOFDProtocolMessage [12:53:55]wFMCommunicate request_size=4 [12:53:55]MH_SAM_APDU [12:53:55]CAPDU: 80 11 00 00 [12:53:55]Write to MH i2c: E2 08 00 DF 97 80 11 00 00 00 00 00 00 F0 [12:53:55]Write i2c OK [12:53:55]MH_I2C_Read... [12:53:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:55]Read from MH i2c: E2 [12:53:55]MH_I2C_Read... [12:53:55]Read from MH i2c: E2 17 00 [12:53:55]MH_I2C_Read... [12:53:55]Read from MH i2c: E2 17 00 DF 97 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 3F [12:53:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:53:55]wFMCommunicate OK [12:53:55]CreateOFDProtocolMessage done [12:53:55]OFDSenderStorePacket 29224 [12:53:55]StoreOFDPacket docnum=29224 [12:53:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 37 D9 07 01 A9 FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1B 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D1 AE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C AE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 12 00 00 00 00 07 04 06 00 9C AE 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 EB D1 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 28 72 00 00 35 04 06 00 91 CD F9 58 E6 EE 82 3B 4A 3C 77 EC ED 10 [12:53:55]CheckFolder [12:53:55]dirname=/storage/ofd_packets [12:53:55]CheckFolder done [12:53:55]ProducePacketName [12:53:55]name=ofd_packets/00029224 [12:53:55]NVStorageSaveData ofd_packets/00029224 [12:53:55]File name is /storage/ofd_packets/00029224 [12:53:55]Write 301 bytes [12:53:55]NVStorageSaveData done [12:53:55]OFDSenderStorePacket done [12:53:55]KKMCreateOFDPacket done [12:53:55]NVStorageSaveData kkm_last_timestamp [12:53:55]File name is /storage/kkm_last_timestamp [12:53:55]Write 4 bytes [12:53:55]NVStorageSaveData done [12:53:55]ExternCall_PrintAddStr [12:53:55]wPrintStart [12:53:55]Write to MH i2c: 01 00 00 E0 97 77 [12:53:55]Write i2c OK [12:53:55]MH_I2C_Read... [12:53:55]Read from MH i2c: 01 [12:53:55]MH_I2C_Read... [12:53:55]Read from MH i2c: 01 07 00 [12:53:55]MH_I2C_Read... [12:53:55]Read from MH i2c: 01 07 00 E0 97 00 00 00 00 00 FF 0F 8C [12:53:55]RasterBufferAndPrint [12:53:55]line Счет N : (1)347604 [12:53:55]line ИНН: 02508201610067 [12:53:55]line Контрольно-Кассовый Чек [12:53:55]line ПРОДАЖА [12:53:55]line ТРК (МРК, ГНК) : 23 [12:53:55]line Товар: 2710124130 [12:53:55]line Аи-92-К-5 [12:53:55]line 6.960 * 64.30 [12:53:55]line = 447.53 [12:53:55]line НДС 12% НСП 1% [12:53:55]line > о реализуемом товаре [12:53:55]line ОКРУГЛЕНИЕ: -0.53 [12:53:55]line ИТОГО: 447.00 [12:53:55]line Внесено: 447.00 [12:53:55]line СДАЧА: 0.00 [12:53:55]line НСП 1% : 3.96 [12:53:55]line НДС 12% : 47.52 [12:53:55]line Наличными: 447.00 [12:53:55]line Безнал.: 0.00 [12:53:55]line Место: АЗС № 108 "Партнер Нефть" [12:53:55]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [12:53:55]line СНО: Общий режим [12:53:55]line Чек 134 14.04.2024 12:54 [12:53:55]line Смена: 116 ФФД: 1.0 [12:53:55]line ЗНМ: 0300000027 [12:53:55]line РНМ: 0000138879044617 [12:53:55]line Версия ККМ: 001 [12:53:55]line ФМ: 0000000000963154 [12:53:55]line ФД: 29224 [12:53:55]line ФПД: 160313837676270 [12:53:55]line 1/tax-web-control/client/api/v1/ticket?date=20240414T125403&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29224&fm=160313837676270&tin=02508201610067®Number=0000138879044617&sum=44700 [12:53:55]OFD Sender: Processing packet 29224 [packets to send 8, broken 7] [12:53:55]ProducePacketName [12:53:55]name=ofd_packets/00029224 [12:53:55]OFD Sender: To server: pG, [12:53:55]CommunicateWithHost lk.salyk.kg:30040 [12:53:55]ConnectInit lk.salyk.kg [12:53:55]written 0, free lines is 4095 [12:53:55]Connected sock=10 [12:53:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 37 D9 07 01 A9 FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1B 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D1 AE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C AE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 12 00 00 00 00 07 04 06 00 9C AE 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 EB D1 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 28 72 00 00 35 04 06 00 91 CD F9 58 E6 EE 82 3B 4A 3C 77 EC ED 10 [12:53:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 B2 65 47 00 68 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 28 72 00 00 F4 03 04 00 8F 7C 1B 66 B6 04 01 00 00 03 9B 04 01 57 33 D8 57 [12:53:55]CommunicateWithHost err = 0 [12:53:55]CheckOFDResponse [12:53:55]1017 (14) - 77093643461234 [12:53:55]1041 (16) - 0000000000963154 [12:53:55]1040 (4) - 29224 [12:53:55]1012 (4) - 14.04.2024 06:49 [12:53:55]1206 (1) - 0 [12:53:55]OFD Sender: Remove packet 29224 [12:53:55]ProducePacketName [12:53:55]name=ofd_packets/00029224 [12:53:55]NVStorageDeleteData [12:53:56]Write to MH i2c: 01 00 00 0A 98 A2 [12:53:56]Write i2c OK [12:53:56]MH_I2C_Read... [12:53:56]Read from MH i2c: 01 [12:53:56]MH_I2C_Read... [12:53:56]Read from MH i2c: 01 07 00 [12:53:56]MH_I2C_Read... [12:53:56]Read from MH i2c: 01 07 00 0A 98 00 00 00 00 00 CA 0C 7F [12:53:56]RasterBufferAndPrint [12:53:56]line [12:53:56]line [12:53:56]line [12:53:56]line [12:53:56]line [12:53:56]written 0, free lines is 3278 [12:53:56]MH_Cut [12:53:56]Write to MH i2c: D1 01 00 11 98 01 7B [12:53:56]Write i2c OK [12:53:56]MH_I2C_Read... [12:53:56]Read from MH i2c: D1 [12:53:56]MH_I2C_Read... [12:53:56]Read from MH i2c: D1 01 00 [12:53:56]MH_I2C_Read... [12:53:56]Read from MH i2c: D1 01 00 11 98 00 7A [12:53:56]Write to MH i2c: 01 00 00 12 98 AA [12:53:56]Write i2c OK [12:53:56]MH_I2C_Read... [12:53:56]OFD Sender: No OFD packet to send [12:53:56]*** Cut start [12:53:56]*** Partial cut [12:53:56]*** CUTSNS_PIN = 1 [12:53:57]*** CUTSNS_PIN = 0 [12:53:57]*** Brake cut motor [12:53:57]Read from MH i2c: 01 [12:53:57]MH_I2C_Read... [12:53:57]*** Stop cut motor [12:53:57]*** Cut end [12:53:57]Read from MH i2c: 01 07 00 [12:53:57]MH_I2C_Read... [12:53:57]Read from MH i2c: 01 07 00 12 98 00 00 00 00 00 FF 0F BF [12:53:57]process_action close_receipt done [12:53:57]requested_data is exist [12:53:57]produce_requested_data [12:53:57]requested_item fm.sn is exist - process it [12:53:57]wFMCommunicate request_size=4 [12:53:57]MH_SAM_APDU [12:53:57]CAPDU: 80 11 00 00 [12:53:57]Write to MH i2c: E2 08 00 13 98 80 11 00 00 00 00 00 00 25 [12:53:57]Write i2c OK [12:53:57]MH_I2C_Read... [12:53:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:57]Read from MH i2c: E2 [12:53:57]MH_I2C_Read... [12:53:57]Read from MH i2c: E2 17 00 [12:53:57]MH_I2C_Read... [12:53:57]Read from MH i2c: E2 17 00 13 98 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 74 [12:53:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:53:57]wFMCommunicate OK [12:53:57]requested_item fd.num is exist - process it [12:53:57]SAM_PROTO_GetFieldsCounters [12:53:57]wFMCommunicate request_size=4 [12:53:57]MH_SAM_APDU [12:53:57]CAPDU: 80 13 00 00 [12:53:57]Write to MH i2c: E2 08 00 14 98 80 13 00 00 00 00 00 00 28 [12:53:57]Write i2c OK [12:53:57]MH_I2C_Read... [12:53:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:53:57]Read from MH i2c: E2 [12:53:57]MH_I2C_Read... [12:53:57]Read from MH i2c: E2 62 00 [12:53:57]MH_I2C_Read... [12:53:57]Read from MH i2c: E2 62 00 14 98 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 28 72 00 00 0E 04 04 00 74 00 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 06 [12:53:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 28 72 00 00 0E 04 04 00 74 00 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 [12:53:57]wFMCommunicate OK [12:53:57]SAM_PROTO_GetFieldsCounters done [12:53:57]requested_item shift.num is exist - process it [12:53:57]requested_item shift.opened is exist - process it [12:53:57]req_shift_opened [12:53:57]FM_GetShiftState [12:53:57]SAM_PROTO_GetShiftState [12:53:57]wFMCommunicate request_size=4 [12:53:57]MH_SAM_APDU [12:53:57]CAPDU: 80 13 01 00 [12:53:57]Write to MH i2c: E2 08 00 15 98 80 13 01 00 00 00 00 00 2A [12:53:57]Write i2c OK [12:53:57]MH_I2C_Read... [12:53:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:57]Read from MH i2c: E2 [12:53:57]MH_I2C_Read... [12:53:57]Read from MH i2c: E2 0E 00 [12:53:57]MH_I2C_Read... [12:53:57]Read from MH i2c: E2 0E 00 15 98 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 D6 [12:53:57]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [12:53:57]wFMCommunicate OK [12:53:57]SAM_PROTO_GetShiftState done [12:53:57]FM_GetShiftState done [12:53:57]req_shift_opened done [12:53:57]requested_item shift.open_date is exist - process it [12:53:57]req_shift_open_date [12:53:57]req_shift_open_date done [12:53:57]produce_requested_data done [12:53:57]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29224,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [12:53:57]process_action_free close_receipt [12:53:57]json_value_free [12:53:57]json_value_free done [12:53:57]process_json_proto returns [12:53:57]Send response to host [12:53:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29224,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [12:53:57]free response buf [12:53:57]execute_script done [12:53:57]execute_script returns [12:53:57]free content buf [12:53:57]Sock 9.Close socket [12:53:57]Sock 9.Thread stoped [12:54:01]OFD Sender: No OFD packet to send [12:54:06]OFD Sender: No OFD packet to send [12:54:11]OFD Sender: No OFD packet to send [12:54:16]OFD Sender: No OFD packet to send [12:54:21]OFD Sender: No OFD packet to send [12:54:26]OFD Sender: No OFD packet to send [12:54:31]OFD Sender: No OFD packet to send [12:54:36]OFD Sender: No OFD packet to send [12:54:41]OFD Sender: No OFD packet to send [12:54:46]OFD Sender: No OFD packet to send [12:54:51]OFD Sender: No OFD packet to send [12:54:56]OFD Sender: No OFD packet to send [12:55:01]OFD Sender: No OFD packet to send [12:55:06]OFD Sender: No OFD packet to send [12:55:11]OFD Sender: No OFD packet to send [12:55:16]OFD Sender: No OFD packet to send [12:55:21]OFD Sender: No OFD packet to send [12:55:26]OFD Sender: No OFD packet to send [12:55:31]OFD Sender: No OFD packet to send [12:55:36]OFD Sender: No OFD packet to send [12:55:41]OFD Sender: No OFD packet to send [12:55:46]OFD Sender: No OFD packet to send [12:55:51]OFD Sender: No OFD packet to send [12:55:56]OFD Sender: No OFD packet to send [12:56:01]OFD Sender: No OFD packet to send [12:56:06]OFD Sender: No OFD packet to send [12:56:11]OFD Sender: No OFD packet to send [12:56:16]OFD Sender: No OFD packet to send [12:56:21]OFD Sender: No OFD packet to send [12:56:26]OFD Sender: No OFD packet to send [12:56:31]OFD Sender: No OFD packet to send [12:56:36]OFD Sender: No OFD packet to send [12:56:41]OFD Sender: No OFD packet to send [12:56:46]OFD Sender: No OFD packet to send [12:56:51]OFD Sender: No OFD packet to send [12:56:56]OFD Sender: No OFD packet to send [12:57:01]OFD Sender: No OFD packet to send [12:57:03]accept exits with 7 [12:57:03]New connection [12:57:03]New thread 3066928484 created [12:57:03]Thread 3066785124 joined [12:57:03]Waiting for new connection... [12:57:03] Sock 7.Parse request [12:57:03]Sock 7.Check first char [12:57:03]Sock 7.First char is OK [12:57:03]request: POST /json_proto HTTP/1.0 [12:57:03]Method: POST [12:57:03]URL: /json_proto [12:57:03]Method is POST - this is cgi request [12:57:03]url: /json_proto [12:57:03]query_string will be loaded in cgi processing [12:57:03]execute_cgi json_proto POST (null) [12:57:03]execute_cgi path=json_proto method=POST [12:57:03]POST find Content-Length [12:57:03]Host: 172.17.33.3:8080 [12:57:03]Content-Length: 843 [12:57:03]Content-Type: application/json [12:57:03] [12:57:03]POST finish read [12:57:03]Found Content-Length = 843 [12:57:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347605", "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" : 20.800, "sum" : 1337.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1337.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:57:03]execute_script... [12:57: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)347605", "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" : 20.800, "sum" : 1337.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1337.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:57:03]POST & json_proto [12:57:03]process_json_proto [12:57:03]json parsed OK: [12:57:03]protocol is kg_v1.0 [12:57:03]action value=close_receipt [12:57:03]process_action close_receipt [12:57:03]cmd_close_receipt [12:57:03]MH_GetDate [12:57:03]Write to MH i2c: F0 00 00 16 98 9D [12:57:03]Write i2c OK [12:57:03]MH_I2C_Read... [12:57:03]Read from MH i2c: F0 [12:57:03]MH_I2C_Read... [12:57:03]Read from MH i2c: F0 09 00 [12:57:03]MH_I2C_Read... [12:57:03]Read from MH i2c: F0 09 00 16 98 00 A9 D2 1B 66 23 5B 8F 65 14 [12:57:03]GetLastDocTimeStamp 1713099243 [12:57:03]current date 1713099433 [12:57:03]FM_GetShiftState [12:57:03]SAM_PROTO_GetShiftState [12:57:03]wFMCommunicate request_size=4 [12:57:03]MH_SAM_APDU [12:57:03]CAPDU: 80 13 01 00 [12:57:03]Write to MH i2c: E2 08 00 17 98 80 13 01 00 00 00 00 00 2C [12:57:03]Write i2c OK [12:57:03]MH_I2C_Read... [12:57:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:57:03]Read from MH i2c: E2 [12:57:03]MH_I2C_Read... [12:57:03]Read from MH i2c: E2 0E 00 [12:57:03]MH_I2C_Read... [12:57:03]Read from MH i2c: E2 0E 00 17 98 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 D8 [12:57:03]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [12:57:03]wFMCommunicate OK [12:57:03]SAM_PROTO_GetShiftState done [12:57:03]FM_GetShiftState done [12:57:03]opened in 1713053951 [12:57:03]opened+sec_in_day 1713140351 [12:57:03]quantity*price = 133744 [12:57:03]sum+1 = 133745 [12:57:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1337.44 НСП 1% : 11.84 НДС 12% : 142.03 Наличными: 0.00 Безнал.: 1337.44 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 135 14.04.2024 12:57 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 29225 ФПД: 179912074035021 1/tax-web-control/client/api/v1/ticket?date=20240414T125713&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29225&fm=179912074035021&tin=02508201610067®Number=0000138879044617&sum=133744 [12:57:04]StoreToDocumentArchive [12:57:04]shift 116 fd 29225 [12:57:04]save to /storage/0116/doc_00029225 [12:57:04]save last doc name /storage/0116/doc_00029225 to /storage/kkm_last_doc_name [12:57:04]save OK [12:57:04]Clear old archive folders... [12:57:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:57:04]tlvbuf is 011D5020 [12:57:04]SAM_PROTO_ClearQueue [12:57:04]wFMCommunicate request_size=4 [12:57:04]MH_SAM_APDU [12:57:04]CAPDU: 80 09 00 00 [12:57:04]Write to MH i2c: E2 08 00 24 98 80 09 00 00 00 00 00 00 2E [12:57:04]Write i2c OK [12:57:04]MH_I2C_Read... [12:57:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:57:04]Read from MH i2c: E2 [12:57:04]MH_I2C_Read... [12:57:04]Read from MH i2c: E2 03 00 [12:57:04]MH_I2C_Read... [12:57:04]Read from MH i2c: E2 03 00 24 98 00 90 00 30 [12:57:04]RAPDU: 90 00 [12:57:04]wFMCommunicate OK [12:57:04]SAM_PROTO_ClearQueue done [12:57:04]KKMCreateOFDPacket [12:57:04]OFDProtocolAddRootSTLVToBuf [12:57:04]FM_MakeSignedData [12:57:04]FM_MakeSignedData [12:57:04]SAM_PROTO_SignData [12:57:04]wFMCommunicate request_size=4 [12:57:04]MH_SAM_APDU [12:57:04]CAPDU: 80 0D 01 02 [12:57:04]Write to MH i2c: E2 08 00 25 98 80 0D 01 02 00 00 00 00 36 [12:57:04]Write i2c OK [12:57:04]MH_I2C_Read... [12:57:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:57:04]Read from MH i2c: E2 [12:57:04]MH_I2C_Read... [12:57:04]Read from MH i2c: E2 03 00 [12:57:04]MH_I2C_Read... [12:57:04]Read from MH i2c: E2 03 00 25 98 00 90 00 31 [12:57:04]RAPDU: 90 00 [12:57:04]wFMCommunicate OK [12:57:04]wFMCommunicate request_size=255 [12:57:04]MH_SAM_APDU [12:57: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 40 51 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 70 0A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 0A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 37 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 0A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 A9 D2 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 29 72 00 00 35 04 06 00 A3 [12:57:04]Write to MH i2c: E2 02 01 26 98 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 51 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 70 0A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 0A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 37 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 0A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 A9 D2 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 29 72 00 00 35 04 06 00 A3 00 00 24 [12:57:04]Write i2c OK [12:57:04]MH_I2C_Read... [12:57:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:57:04]Read from MH i2c: E2 [12:57:04]MH_I2C_Read... [12:57:04]Read from MH i2c: E2 03 00 [12:57:04]MH_I2C_Read... [12:57:04]Read from MH i2c: E2 03 00 26 98 00 90 00 32 [12:57:04]RAPDU: 90 00 [12:57:04]wFMCommunicate OK [12:57:04]wFMCommunicate request_size=10 [12:57:04]MH_SAM_APDU [12:57:04]CAPDU: 80 0D 02 02 05 A1 0B 43 7F 4D [12:57:04]Write to MH i2c: E2 0D 00 27 98 80 0D 02 02 05 00 A1 0B 43 7F 4D 00 00 FE [12:57:04]Write i2c OK [12:57:04]MH_I2C_Read... [12:57:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:57:04]Read from MH i2c: E2 [12:57:04]MH_I2C_Read... [12:57:04]Read from MH i2c: E2 03 00 [12:57:04]MH_I2C_Read... [12:57:04]Read from MH i2c: E2 03 00 27 98 00 90 00 33 [12:57:04]RAPDU: 90 00 [12:57:04]wFMCommunicate OK [12:57:04]wFMCommunicate request_size=4 [12:57:04]MH_SAM_APDU [12:57:04]CAPDU: 80 0D 03 02 [12:57:04]Write to MH i2c: E2 08 00 28 98 80 0D 03 02 00 00 00 00 3B [12:57:04]Write i2c OK [12:57:04]MH_I2C_Read... [12:57:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:57:04]Read from MH i2c: E2 [12:57:04]MH_I2C_Read... [12:57:04]Read from MH i2c: E2 0B 00 [12:57:04]MH_I2C_Read... [12:57:04]Read from MH i2c: E2 0B 00 28 98 00 30 7E 6D 26 04 D1 FB 74 90 00 C1 [12:57:04]RAPDU: 30 7E 6D 26 04 D1 FB 74 90 00 [12:57:04]wFMCommunicate OK [12:57:04]SAM_PROTO_SignData done [12:57:04]FM_MakeSignedData done [12:57:04]CreateOFDProtocolMessage [12:57:04]wFMCommunicate request_size=4 [12:57:04]MH_SAM_APDU [12:57:04]CAPDU: 80 11 00 00 [12:57:04]Write to MH i2c: E2 08 00 29 98 80 11 00 00 00 00 00 00 3B [12:57:04]Write i2c OK [12:57:04]MH_I2C_Read... [12:57:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:57:05]Read from MH i2c: E2 [12:57:05]MH_I2C_Read... [12:57:05]Read from MH i2c: E2 17 00 [12:57:05]MH_I2C_Read... [12:57:05]Read from MH i2c: E2 17 00 29 98 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 8A [12:57:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:57:05]wFMCommunicate OK [12:57:05]CreateOFDProtocolMessage done [12:57:05]OFDSenderStorePacket 29225 [12:57:05]StoreOFDPacket docnum=29225 [12:57:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 7B 03 07 01 89 0D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 51 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 70 0A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 0A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 37 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 0A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 A9 D2 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 29 72 00 00 35 04 06 00 A3 A1 0B 43 7F 4D 30 7E 6D 26 04 D1 FB 74 [12:57:05]CheckFolder [12:57:05]dirname=/storage/ofd_packets [12:57:05]CheckFolder done [12:57:05]ProducePacketName [12:57:05]name=ofd_packets/00029225 [12:57:05]NVStorageSaveData ofd_packets/00029225 [12:57:05]File name is /storage/ofd_packets/00029225 [12:57:05]Write 301 bytes [12:57:05]NVStorageSaveData done [12:57:05]OFDSenderStorePacket done [12:57:05]KKMCreateOFDPacket done [12:57:05]NVStorageSaveData kkm_last_timestamp [12:57:05]File name is /storage/kkm_last_timestamp [12:57:05]Write 4 bytes [12:57:05]NVStorageSaveData done [12:57:05]ExternCall_PrintAddStr [12:57:05]wPrintStart [12:57:05]Write to MH i2c: 01 00 00 2A 98 C2 [12:57:05]Write i2c OK [12:57:05]MH_I2C_Read... [12:57:05]Read from MH i2c: 01 [12:57:05]MH_I2C_Read... [12:57:05]Read from MH i2c: 01 07 00 [12:57:05]MH_I2C_Read... [12:57:05]Read from MH i2c: 01 07 00 2A 98 00 00 00 00 00 FF 0F D7 [12:57:05]RasterBufferAndPrint [12:57:05]line Счет N : (1)347605 [12:57:05]line ИНН: 02508201610067 [12:57:05]line Контрольно-Кассовый Чек [12:57:05]line ПРОДАЖА [12:57:05]line ТРК (МРК, ГНК) : 32 [12:57:05]line Товар: 2710124130 [12:57:05]line Аи-92-К-5 [12:57:05]line 20.800 * 64.30 [12:57:05]line = 1337.44 [12:57:05]line НДС 12% НСП 1% [12:57:05]line > о реализуемом товаре [12:57:05]line ИТОГО: 1337.44 [12:57:05]line НСП 1% : 11.84 [12:57:05]line НДС 12% : 142.03 [12:57:05]line Наличными: 0.00 [12:57:05]line Безнал.: 1337.44 [12:57:05]line Место: АЗС № 108 "Партнер Нефть" [12:57:05]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [12:57:05]line СНО: Общий режим [12:57:05]line Чек 135 14.04.2024 12:57 [12:57:05]line Смена: 116 ФФД: 1.0 [12:57:05]line ЗНМ: 0300000027 [12:57:05]line РНМ: 0000138879044617 [12:57:05]line Версия ККМ: 001 [12:57:05]line Платежная система: АКБ Кыргызстан [12:57:05]line ФМ: 0000000000963154 [12:57:05]line ФД: 29225 [12:57:05]line ФПД: 179912074035021 [12:57:05]line 1/tax-web-control/client/api/v1/ticket?date=20240414T125713&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29225&fm=179912074035021&tin=02508201610067®Number=0000138879044617&sum=133744 [12:57:05]OFD Sender: Processing packet 29225 [packets to send 8, broken 7] [12:57:05]ProducePacketName [12:57:05]name=ofd_packets/00029225 [12:57:05]OFD Sender: To server: pG, [12:57:05]CommunicateWithHost lk.salyk.kg:30040 [12:57:05]ConnectInit lk.salyk.kg [12:57:05]written 0, free lines is 4095 [12:57:05]Connected sock=10 [12:57:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 7B 03 07 01 89 0D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 51 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 70 0A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 0A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 37 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 0A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 A9 D2 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 29 72 00 00 35 04 06 00 A3 A1 0B 43 7F 4D 30 7E 6D 26 04 D1 FB 74 [12:57:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 CE 2C 47 00 62 90 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 29 72 00 00 F4 03 04 00 4D 7D 1B 66 B6 04 01 00 00 C5 F1 68 7C 14 D9 A5 B7 [12:57:05]CommunicateWithHost err = 0 [12:57:05]CheckOFDResponse [12:57:05]1017 (14) - 77093643461234 [12:57:05]1041 (16) - 0000000000963154 [12:57:05]1040 (4) - 29225 [12:57:05]1012 (4) - 14.04.2024 06:53 [12:57:05]1206 (1) - 0 [12:57:05]OFD Sender: Remove packet 29225 [12:57:05]ProducePacketName [12:57:05]name=ofd_packets/00029225 [12:57:05]NVStorageDeleteData [12:57:05]Write to MH i2c: 01 00 00 53 98 EB [12:57:05]Write i2c OK [12:57:05]MH_I2C_Read... [12:57:05]Read from MH i2c: 01 [12:57:05]MH_I2C_Read... [12:57:05]Read from MH i2c: 01 07 00 [12:57:05]MH_I2C_Read... [12:57:05]Read from MH i2c: 01 07 00 53 98 00 00 00 00 00 DE 0C DC [12:57:05]RasterBufferAndPrint [12:57:05]line [12:57:05]line [12:57:05]line [12:57:05]line [12:57:05]line [12:57:05]written 0, free lines is 3300 [12:57:05]MH_Cut [12:57:05]Write to MH i2c: D1 01 00 5A 98 01 C4 [12:57:05]Write i2c OK [12:57:05]MH_I2C_Read... [12:57:05]Read from MH i2c: D1 [12:57:05]MH_I2C_Read... [12:57:05]Read from MH i2c: D1 01 00 [12:57:05]MH_I2C_Read... [12:57:05]Read from MH i2c: D1 01 00 5A 98 00 C3 [12:57:05]Write to MH i2c: 01 00 00 5B 98 F3 [12:57:05]Write i2c OK [12:57:05]MH_I2C_Read... [12:57:06]OFD Sender: No OFD packet to send [12:57:06]*** Cut start [12:57:06]*** Partial cut [12:57:06]*** CUTSNS_PIN = 1 [12:57:06]*** CUTSNS_PIN = 0 [12:57:06]*** Brake cut motor [12:57:07]Read from MH i2c: 01 [12:57:07]MH_I2C_Read... [12:57:07]*** Stop cut motor [12:57:07]*** Cut end [12:57:07]Read from MH i2c: 01 07 00 [12:57:07]MH_I2C_Read... [12:57:07]Read from MH i2c: 01 07 00 5B 98 00 00 00 00 00 FF 0F 08 [12:57:07]process_action close_receipt done [12:57:07]requested_data is exist [12:57:07]produce_requested_data [12:57:07]requested_item fm.sn is exist - process it [12:57:07]wFMCommunicate request_size=4 [12:57:07]MH_SAM_APDU [12:57:07]CAPDU: 80 11 00 00 [12:57:07]Write to MH i2c: E2 08 00 5C 98 80 11 00 00 00 00 00 00 6E [12:57:07]Write i2c OK [12:57:07]MH_I2C_Read... [12:57:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:57:07]Read from MH i2c: E2 [12:57:07]MH_I2C_Read... [12:57:07]Read from MH i2c: E2 17 00 [12:57:07]MH_I2C_Read... [12:57:07]Read from MH i2c: E2 17 00 5C 98 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 BD [12:57:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:57:07]wFMCommunicate OK [12:57:07]requested_item fd.num is exist - process it [12:57:07]SAM_PROTO_GetFieldsCounters [12:57:07]wFMCommunicate request_size=4 [12:57:07]MH_SAM_APDU [12:57:07]CAPDU: 80 13 00 00 [12:57:07]Write to MH i2c: E2 08 00 5D 98 80 13 00 00 00 00 00 00 71 [12:57:07]Write i2c OK [12:57:07]MH_I2C_Read... [12:57:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:57:07]Read from MH i2c: E2 [12:57:07]MH_I2C_Read... [12:57:07]Read from MH i2c: E2 62 00 [12:57:07]MH_I2C_Read... [12:57:07]Read from MH i2c: E2 62 00 5D 98 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 29 72 00 00 0E 04 04 00 74 00 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 53 [12:57:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 29 72 00 00 0E 04 04 00 74 00 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 [12:57:07]wFMCommunicate OK [12:57:07]SAM_PROTO_GetFieldsCounters done [12:57:07]requested_item shift.num is exist - process it [12:57:07]requested_item shift.opened is exist - process it [12:57:07]req_shift_opened [12:57:07]FM_GetShiftState [12:57:07]SAM_PROTO_GetShiftState [12:57:07]wFMCommunicate request_size=4 [12:57:07]MH_SAM_APDU [12:57:07]CAPDU: 80 13 01 00 [12:57:07]Write to MH i2c: E2 08 00 5E 98 80 13 01 00 00 00 00 00 73 [12:57:07]Write i2c OK [12:57:07]MH_I2C_Read... [12:57:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:57:07]Read from MH i2c: E2 [12:57:07]MH_I2C_Read... [12:57:07]Read from MH i2c: E2 0E 00 [12:57:07]MH_I2C_Read... [12:57:07]Read from MH i2c: E2 0E 00 5E 98 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 1F [12:57:07]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [12:57:07]wFMCommunicate OK [12:57:07]SAM_PROTO_GetShiftState done [12:57:07]FM_GetShiftState done [12:57:07]req_shift_opened done [12:57:07]requested_item shift.open_date is exist - process it [12:57:07]req_shift_open_date [12:57:07]req_shift_open_date done [12:57:07]produce_requested_data done [12:57:07]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29225,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [12:57:07]process_action_free close_receipt [12:57:07]json_value_free [12:57:07]json_value_free done [12:57:07]process_json_proto returns [12:57:07]Send response to host [12:57:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29225,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [12:57:07]free response buf [12:57:07]execute_script done [12:57:07]execute_script returns [12:57:07]free content buf [12:57:07]Sock 7.Close socket [12:57:07]Sock 7.Thread stoped [12:57:11]OFD Sender: No OFD packet to send [12:57:16]OFD Sender: No OFD packet to send [12:57:21]OFD Sender: No OFD packet to send [12:57:26]OFD Sender: No OFD packet to send [12:57:31]OFD Sender: No OFD packet to send [12:57:36]OFD Sender: No OFD packet to send [12:57:41]OFD Sender: No OFD packet to send [12:57:46]OFD Sender: No OFD packet to send [12:57:51]OFD Sender: No OFD packet to send [12:57:56]OFD Sender: No OFD packet to send [12:58:01]OFD Sender: No OFD packet to send [12:58:06]OFD Sender: No OFD packet to send [12:58:11]OFD Sender: No OFD packet to send [12:58:16]OFD Sender: No OFD packet to send [12:58:21]OFD Sender: No OFD packet to send [12:58:26]OFD Sender: No OFD packet to send [12:58:31]OFD Sender: No OFD packet to send [12:58:36]OFD Sender: No OFD packet to send [12:58:41]OFD Sender: No OFD packet to send [12:58:46]OFD Sender: No OFD packet to send [12:58:51]OFD Sender: No OFD packet to send [12:58:56]OFD Sender: No OFD packet to send [12:59:01]OFD Sender: No OFD packet to send [12:59:06]OFD Sender: No OFD packet to send [12:59:11]OFD Sender: No OFD packet to send [12:59:16]OFD Sender: No OFD packet to send [12:59:21]OFD Sender: No OFD packet to send [12:59:26]OFD Sender: No OFD packet to send [12:59:31]OFD Sender: No OFD packet to send [12:59:36]OFD Sender: No OFD packet to send [12:59:41]OFD Sender: No OFD packet to send [12:59:46]OFD Sender: No OFD packet to send [12:59:51]OFD Sender: No OFD packet to send [12:59:56]OFD Sender: No OFD packet to send [13:00:01]OFD Sender: No OFD packet to send [13:00:06]OFD Sender: No OFD packet to send [13:00:11]OFD Sender: No OFD packet to send [13:00:16]OFD Sender: No OFD packet to send [13:00:21]OFD Sender: No OFD packet to send [13:00:26]OFD Sender: No OFD packet to send [13:00:31]OFD Sender: No OFD packet to send [13:00:36]OFD Sender: No OFD packet to send [13:00:41]OFD Sender: No OFD packet to send [13:00:46]OFD Sender: No OFD packet to send [13:00:51]OFD Sender: No OFD packet to send [13:00:56]OFD Sender: No OFD packet to send [13:01:01]OFD Sender: No OFD packet to send [13:01:06]OFD Sender: No OFD packet to send [13:01:08]accept exits with 9 [13:01:08]New connection [13:01:08]New thread 3066785124 created [13:01:08]Thread 3066928484 joined [13:01:08]Waiting for new connection... [13:01:08] Sock 9.Parse request [13:01:08]Sock 9.Check first char [13:01:08]Sock 9.First char is OK [13:01:08]request: POST /json_proto HTTP/1.0 [13:01:08]Method: POST [13:01:08]URL: /json_proto [13:01:08]Method is POST - this is cgi request [13:01:08]url: /json_proto [13:01:08]query_string will be loaded in cgi processing [13:01:08]execute_cgi json_proto POST (null) [13:01:08]execute_cgi path=json_proto method=POST [13:01:08]POST find Content-Length [13:01:08]Host: 172.17.33.3:8080 [13:01:08]Content-Length: 677 [13:01:08]Content-Type: application/json [13:01:08] [13:01:08]POST finish read [13:01:08]Found Content-Length = 677 [13:01:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347606", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.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:01:08]execute_script... [13:01: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)347606", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.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:01:08]POST & json_proto [13:01:08]process_json_proto [13:01:08]json parsed OK: [13:01:08]protocol is kg_v1.0 [13:01:08]action value=close_receipt [13:01:08]process_action close_receipt [13:01:08]cmd_close_receipt [13:01:08]MH_GetDate [13:01:08]Write to MH i2c: F0 00 00 5F 98 E6 [13:01:08]Write i2c OK [13:01:08]MH_I2C_Read... [13:01:08]Read from MH i2c: F0 [13:01:08]MH_I2C_Read... [13:01:08]Read from MH i2c: F0 09 00 [13:01:08]MH_I2C_Read... [13:01:08]Read from MH i2c: F0 09 00 5F 98 00 9E D3 1B 66 23 5B 8F 65 53 [13:01:08]GetLastDocTimeStamp 1713099433 [13:01:08]current date 1713099678 [13:01:08]FM_GetShiftState [13:01:08]SAM_PROTO_GetShiftState [13:01:08]wFMCommunicate request_size=4 [13:01:08]MH_SAM_APDU [13:01:08]CAPDU: 80 13 01 00 [13:01:08]Write to MH i2c: E2 08 00 60 98 80 13 01 00 00 00 00 00 75 [13:01:08]Write i2c OK [13:01:08]MH_I2C_Read... [13:01:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:08]Read from MH i2c: E2 [13:01:08]MH_I2C_Read... [13:01:08]Read from MH i2c: E2 0E 00 [13:01:08]MH_I2C_Read... [13:01:08]Read from MH i2c: E2 0E 00 60 98 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 21 [13:01:08]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [13:01:08]wFMCommunicate OK [13:01:08]SAM_PROTO_GetShiftState done [13:01:08]FM_GetShiftState done [13:01:08]opened in 1713053951 [13:01:08]opened+sec_in_day 1713140351 [13:01:08]quantity*price = 30028 [13:01:08]sum+1 = 30029 [13:01:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 136 14.04.2024 13:01 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29226 ФПД: 262110499760240 1/tax-web-control/client/api/v1/ticket?date=20240414T130118&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29226&fm=262110499760240&tin=02508201610067®Number=0000138879044617&sum=30000 [13:01:09]StoreToDocumentArchive [13:01:09]shift 116 fd 29226 [13:01:09]save to /storage/0116/doc_00029226 [13:01:09]save last doc name /storage/0116/doc_00029226 to /storage/kkm_last_doc_name [13:01:09]save OK [13:01:09]Clear old archive folders... [13:01:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:01:09]tlvbuf is 01286470 [13:01:09]SAM_PROTO_ClearQueue [13:01:09]wFMCommunicate request_size=4 [13:01:09]MH_SAM_APDU [13:01:09]CAPDU: 80 09 00 00 [13:01:09]Write to MH i2c: E2 08 00 6D 98 80 09 00 00 00 00 00 00 77 [13:01:09]Write i2c OK [13:01:09]MH_I2C_Read... [13:01:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:01:09]Read from MH i2c: E2 [13:01:09]MH_I2C_Read... [13:01:09]Read from MH i2c: E2 03 00 [13:01:09]MH_I2C_Read... [13:01:09]Read from MH i2c: E2 03 00 6D 98 00 90 00 79 [13:01:09]RAPDU: 90 00 [13:01:09]wFMCommunicate OK [13:01:09]SAM_PROTO_ClearQueue done [13:01:09]KKMCreateOFDPacket [13:01:09]OFDProtocolAddRootSTLVToBuf [13:01:09]FM_MakeSignedData [13:01:09]FM_MakeSignedData [13:01:09]SAM_PROTO_SignData [13:01:09]wFMCommunicate request_size=4 [13:01:09]MH_SAM_APDU [13:01:09]CAPDU: 80 0D 01 02 [13:01:09]Write to MH i2c: E2 08 00 6E 98 80 0D 01 02 00 00 00 00 7F [13:01:09]Write i2c OK [13:01:09]MH_I2C_Read... [13:01:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:01:09]Read from MH i2c: E2 [13:01:09]MH_I2C_Read... [13:01:09]Read from MH i2c: E2 03 00 [13:01:09]MH_I2C_Read... [13:01:09]Read from MH i2c: E2 03 00 6E 98 00 90 00 7A [13:01:09]RAPDU: 90 00 [13:01:09]wFMCommunicate OK [13:01:09]wFMCommunicate request_size=255 [13:01:09]MH_SAM_APDU [13:01: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 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 88 00 00 00 F4 03 04 00 9E D3 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2A 72 00 00 35 04 06 00 EE [13:01:09]Write to MH i2c: E2 02 01 6F 98 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 88 00 00 00 F4 03 04 00 9E D3 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2A 72 00 00 35 04 06 00 EE 00 00 3C [13:01:09]Write i2c OK [13:01:09]MH_I2C_Read... [13:01:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:09]Read from MH i2c: E2 [13:01:09]MH_I2C_Read... [13:01:09]Read from MH i2c: E2 03 00 [13:01:09]MH_I2C_Read... [13:01:09]Read from MH i2c: E2 03 00 6F 98 00 90 00 7B [13:01:09]RAPDU: 90 00 [13:01:09]wFMCommunicate OK [13:01:09]wFMCommunicate request_size=10 [13:01:09]MH_SAM_APDU [13:01:09]CAPDU: 80 0D 02 02 05 63 5B 3A E8 70 [13:01:09]Write to MH i2c: E2 0D 00 70 98 80 0D 02 02 05 00 63 5B 3A E8 70 00 00 DC [13:01:09]Write i2c OK [13:01:09]MH_I2C_Read... [13:01:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:09]Read from MH i2c: E2 [13:01:09]MH_I2C_Read... [13:01:09]Read from MH i2c: E2 03 00 [13:01:09]MH_I2C_Read... [13:01:09]Read from MH i2c: E2 03 00 70 98 00 90 00 7C [13:01:09]RAPDU: 90 00 [13:01:09]wFMCommunicate OK [13:01:09]wFMCommunicate request_size=4 [13:01:09]MH_SAM_APDU [13:01:09]CAPDU: 80 0D 03 02 [13:01:09]Write to MH i2c: E2 08 00 71 98 80 0D 03 02 00 00 00 00 84 [13:01:09]Write i2c OK [13:01:09]MH_I2C_Read... [13:01:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:01:10]Read from MH i2c: E2 [13:01:10]MH_I2C_Read... [13:01:10]Read from MH i2c: E2 0B 00 [13:01:10]MH_I2C_Read... [13:01:10]Read from MH i2c: E2 0B 00 71 98 00 4A 58 B8 BC F9 71 7E 3E 90 00 C1 [13:01:10]RAPDU: 4A 58 B8 BC F9 71 7E 3E 90 00 [13:01:10]wFMCommunicate OK [13:01:10]SAM_PROTO_SignData done [13:01:10]FM_MakeSignedData done [13:01:10]CreateOFDProtocolMessage [13:01:10]wFMCommunicate request_size=4 [13:01:10]MH_SAM_APDU [13:01:10]CAPDU: 80 11 00 00 [13:01:10]Write to MH i2c: E2 08 00 72 98 80 11 00 00 00 00 00 00 84 [13:01:10]Write i2c OK [13:01:10]MH_I2C_Read... [13:01:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:10]Read from MH i2c: E2 [13:01:10]MH_I2C_Read... [13:01:10]Read from MH i2c: E2 17 00 [13:01:10]MH_I2C_Read... [13:01:10]Read from MH i2c: E2 17 00 72 98 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D3 [13:01:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:01:10]wFMCommunicate OK [13:01:10]CreateOFDProtocolMessage done [13:01:10]OFDSenderStorePacket 29226 [13:01:10]StoreOFDPacket docnum=29226 [13:01:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 02 10 07 01 2F 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 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 88 00 00 00 F4 03 04 00 9E D3 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2A 72 00 00 35 04 06 00 EE 63 5B 3A E8 70 4A 58 B8 BC F9 71 7E 3E [13:01:10]CheckFolder [13:01:10]dirname=/storage/ofd_packets [13:01:10]CheckFolder done [13:01:10]ProducePacketName [13:01:10]name=ofd_packets/00029226 [13:01:10]NVStorageSaveData ofd_packets/00029226 [13:01:10]File name is /storage/ofd_packets/00029226 [13:01:10]Write 301 bytes [13:01:10]NVStorageSaveData done [13:01:10]OFDSenderStorePacket done [13:01:10]KKMCreateOFDPacket done [13:01:10]NVStorageSaveData kkm_last_timestamp [13:01:10]File name is /storage/kkm_last_timestamp [13:01:10]Write 4 bytes [13:01:10]NVStorageSaveData done [13:01:10]ExternCall_PrintAddStr [13:01:10]wPrintStart [13:01:10]Write to MH i2c: 01 00 00 73 98 0B [13:01:10]Write i2c OK [13:01:10]MH_I2C_Read... [13:01:10]Read from MH i2c: 01 [13:01:10]MH_I2C_Read... [13:01:10]Read from MH i2c: 01 07 00 [13:01:10]MH_I2C_Read... [13:01:10]Read from MH i2c: 01 07 00 73 98 00 00 00 00 00 FF 0F 20 [13:01:10]RasterBufferAndPrint [13:01:10]line Счет N : (1)347606 [13:01:10]line ИНН: 02508201610067 [13:01:10]line Контрольно-Кассовый Чек [13:01:10]line ПРОДАЖА [13:01:10]line ТРК (МРК, ГНК) : 23 [13:01:10]line Товар: 2710124130 [13:01:10]line Аи-92-К-5 [13:01:10]line 4.670 * 64.30 [13:01:10]line = 300.28 [13:01:10]line НДС 12% НСП 1% [13:01:10]line > о реализуемом товаре [13:01:10]line ОКРУГЛЕНИЕ: -0.28 [13:01:10]line ИТОГО: 300.00 [13:01:10]line Внесено: 300.00 [13:01:10]line СДАЧА: 0.00 [13:01:10]line НСП 1% : 2.66 [13:01:10]line НДС 12% : 31.89 [13:01:10]line Наличными: 300.00 [13:01:10]line Безнал.: 0.00 [13:01:10]line Место: АЗС № 108 "Партнер Нефть" [13:01:10]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [13:01:10]line СНО: Общий режим [13:01:10]line Чек 136 14.04.2024 13:01 [13:01:10]line Смена: 116 ФФД: 1.0 [13:01:10]line ЗНМ: 0300000027 [13:01:10]line РНМ: 0000138879044617 [13:01:10]line Версия ККМ: 001 [13:01:10]line ФМ: 0000000000963154 [13:01:10]line ФД: 29226 [13:01:10]line ФПД: 262110499760240 [13:01:10]line 1/tax-web-control/client/api/v1/ticket?date=20240414T130118&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29226&fm=262110499760240&tin=02508201610067®Number=0000138879044617&sum=30000 [13:01:10]OFD Sender: Processing packet 29226 [packets to send 8, broken 7] [13:01:10]ProducePacketName [13:01:10]name=ofd_packets/00029226 [13:01:10]OFD Sender: To server: pG, [13:01:10]CommunicateWithHost lk.salyk.kg:30040 [13:01:10]ConnectInit lk.salyk.kg [13:01:10]written 0, free lines is 4095 [13:01:10]Connected sock=11 [13:01:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 02 10 07 01 2F 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 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 88 00 00 00 F4 03 04 00 9E D3 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2A 72 00 00 35 04 06 00 EE 63 5B 3A E8 70 4A 58 B8 BC F9 71 7E 3E [13:01:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 F4 9B 47 00 12 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 39 36 33 31 35 34 10 04 04 00 2A 72 00 00 F4 03 04 00 42 7E 1B 66 B6 04 01 00 00 EA D2 7B 90 DF 9D 22 CB [13:01:10]CommunicateWithHost err = 0 [13:01:10]CheckOFDResponse [13:01:10]1017 (14) - 77093643461234 [13:01:10]1041 (16) - 0000000000963154 [13:01:10]1040 (4) - 29226 [13:01:10]1012 (4) - 14.04.2024 06:57 [13:01:10]1206 (1) - 0 [13:01:10]OFD Sender: Remove packet 29226 [13:01:10]ProducePacketName [13:01:10]name=ofd_packets/00029226 [13:01:10]NVStorageDeleteData [13:01:10]Write to MH i2c: 01 00 00 9D 98 35 [13:01:10]Write i2c OK [13:01:10]MH_I2C_Read... [13:01:10]Read from MH i2c: 01 [13:01:10]MH_I2C_Read... [13:01:10]Read from MH i2c: 01 07 00 [13:01:10]MH_I2C_Read... [13:01:10]Read from MH i2c: 01 07 00 9D 98 00 00 00 00 00 C4 0C 0C [13:01:10]RasterBufferAndPrint [13:01:10]line [13:01:10]line [13:01:10]line [13:01:10]line [13:01:10]line [13:01:10]written 0, free lines is 3272 [13:01:10]MH_Cut [13:01:10]Write to MH i2c: D1 01 00 A4 98 01 0E [13:01:10]Write i2c OK [13:01:10]MH_I2C_Read... [13:01:10]Read from MH i2c: D1 [13:01:10]MH_I2C_Read... [13:01:10]Read from MH i2c: D1 01 00 [13:01:10]MH_I2C_Read... [13:01:10]Read from MH i2c: D1 01 00 A4 98 00 0D [13:01:10]Write to MH i2c: 01 00 00 A5 98 3D [13:01:10]Write i2c OK [13:01:10]MH_I2C_Read... [13:01:11]OFD Sender: No OFD packet to send [13:01:11]*** Cut start [13:01:11]*** Partial cut [13:01:11]*** CUTSNS_PIN = 1 [13:01:11]*** CUTSNS_PIN = 0 [13:01:11]*** Brake cut motor [13:01:12]Read from MH i2c: 01 [13:01:12]MH_I2C_Read... [13:01:12]*** Stop cut motor [13:01:12]*** Cut end [13:01:12]Read from MH i2c: 01 07 00 [13:01:12]MH_I2C_Read... [13:01:12]Read from MH i2c: 01 07 00 A5 98 00 00 00 00 00 FF 0F 52 [13:01:12]process_action close_receipt done [13:01:12]requested_data is exist [13:01:12]produce_requested_data [13:01:12]requested_item fm.sn is exist - process it [13:01:12]wFMCommunicate request_size=4 [13:01:12]MH_SAM_APDU [13:01:12]CAPDU: 80 11 00 00 [13:01:12]Write to MH i2c: E2 08 00 A6 98 80 11 00 00 00 00 00 00 B8 [13:01:12]Write i2c OK [13:01:12]MH_I2C_Read... [13:01:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:12]Read from MH i2c: E2 [13:01:12]MH_I2C_Read... [13:01:12]Read from MH i2c: E2 17 00 [13:01:12]MH_I2C_Read... [13:01:12]Read from MH i2c: E2 17 00 A6 98 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 07 [13:01:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:01:12]wFMCommunicate OK [13:01:12]requested_item fd.num is exist - process it [13:01:12]SAM_PROTO_GetFieldsCounters [13:01:12]wFMCommunicate request_size=4 [13:01:12]MH_SAM_APDU [13:01:12]CAPDU: 80 13 00 00 [13:01:12]Write to MH i2c: E2 08 00 A7 98 80 13 00 00 00 00 00 00 BB [13:01:12]Write i2c OK [13:01:12]MH_I2C_Read... [13:01:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:01:12]Read from MH i2c: E2 [13:01:12]MH_I2C_Read... [13:01:12]Read from MH i2c: E2 62 00 [13:01:12]MH_I2C_Read... [13:01:12]Read from MH i2c: E2 62 00 A7 98 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 2A 72 00 00 0E 04 04 00 74 00 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 A1 [13:01:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 2A 72 00 00 0E 04 04 00 74 00 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 [13:01:12]wFMCommunicate OK [13:01:12]SAM_PROTO_GetFieldsCounters done [13:01:12]requested_item shift.num is exist - process it [13:01:12]requested_item shift.opened is exist - process it [13:01:12]req_shift_opened [13:01:12]FM_GetShiftState [13:01:12]SAM_PROTO_GetShiftState [13:01:12]wFMCommunicate request_size=4 [13:01:12]MH_SAM_APDU [13:01:12]CAPDU: 80 13 01 00 [13:01:12]Write to MH i2c: E2 08 00 A8 98 80 13 01 00 00 00 00 00 BD [13:01:12]Write i2c OK [13:01:12]MH_I2C_Read... [13:01:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:12]Read from MH i2c: E2 [13:01:12]MH_I2C_Read... [13:01:12]Read from MH i2c: E2 0E 00 [13:01:12]MH_I2C_Read... [13:01:12]Read from MH i2c: E2 0E 00 A8 98 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 69 [13:01:12]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [13:01:12]wFMCommunicate OK [13:01:12]SAM_PROTO_GetShiftState done [13:01:12]FM_GetShiftState done [13:01:12]req_shift_opened done [13:01:12]requested_item shift.open_date is exist - process it [13:01:12]req_shift_open_date [13:01:12]req_shift_open_date done [13:01:12]produce_requested_data done [13:01:12]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29226,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [13:01:12]process_action_free close_receipt [13:01:12]json_value_free [13:01:12]json_value_free done [13:01:12]process_json_proto returns [13:01:12]Send response to host [13:01:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29226,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [13:01:12]free response buf [13:01:12]execute_script done [13:01:12]execute_script returns [13:01:12]free content buf [13:01:12]Sock 9.Close socket [13:01:12]Sock 9.Thread stoped [13:01:16]OFD Sender: No OFD packet to send [13:01:21]OFD Sender: No OFD packet to send [13:01:26]OFD Sender: No OFD packet to send [13:01:31]OFD Sender: No OFD packet to send [13:01:36]OFD Sender: No OFD packet to send [13:01:41]OFD Sender: No OFD packet to send [13:01:46]OFD Sender: No OFD packet to send [13:01:51]OFD Sender: No OFD packet to send [13:01:56]OFD Sender: No OFD packet to send [13:02:01]OFD Sender: No OFD packet to send [13:02:06]OFD Sender: No OFD packet to send [13:02:11]OFD Sender: No OFD packet to send [13:02:16]OFD Sender: No OFD packet to send [13:02:21]OFD Sender: No OFD packet to send [13:02:26]OFD Sender: No OFD packet to send [13:02:31]OFD Sender: No OFD packet to send [13:02:36]OFD Sender: No OFD packet to send [13:02:41]OFD Sender: No OFD packet to send [13:02:46]OFD Sender: No OFD packet to send [13:02:51]OFD Sender: No OFD packet to send [13:02:56]OFD Sender: No OFD packet to send [13:03:01]OFD Sender: No OFD packet to send [13:03:06]OFD Sender: No OFD packet to send [13:03:11]OFD Sender: No OFD packet to send [13:03:16]OFD Sender: No OFD packet to send [13:03:21]OFD Sender: No OFD packet to send [13:03:26]OFD Sender: No OFD packet to send [13:03:31]OFD Sender: No OFD packet to send [13:03:36]OFD Sender: No OFD packet to send [13:03:41]OFD Sender: No OFD packet to send [13:03:46]OFD Sender: No OFD packet to send [13:03:51]OFD Sender: No OFD packet to send [13:03:56]OFD Sender: No OFD packet to send [13:04:01]OFD Sender: No OFD packet to send [13:04:06]OFD Sender: No OFD packet to send [13:04:11]OFD Sender: No OFD packet to send [13:04:16]OFD Sender: No OFD packet to send [13:04:21]OFD Sender: No OFD packet to send [13:04:26]OFD Sender: No OFD packet to send [13:04:31]OFD Sender: No OFD packet to send [13:04:36]OFD Sender: No OFD packet to send [13:04:41]OFD Sender: No OFD packet to send [13:04:46]OFD Sender: No OFD packet to send [13:04:51]OFD Sender: No OFD packet to send [13:04:52]accept exits with 7 [13:04:52]New connection [13:04:52]New thread 3066928484 created [13:04:52]Thread 3066785124 joined [13:04:52]Waiting for new connection... [13:04:52] Sock 7.Parse request [13:04:52]Sock 7.Check first char [13:04:52]Sock 7.First char is OK [13:04:52]request: POST /json_proto HTTP/1.0 [13:04:52]Method: POST [13:04:52]URL: /json_proto [13:04:52]Method is POST - this is cgi request [13:04:52]url: /json_proto [13:04:52]query_string will be loaded in cgi processing [13:04:52]execute_cgi json_proto POST (null) [13:04:52]execute_cgi path=json_proto method=POST [13:04:52]POST find Content-Length [13:04:52]Host: 172.17.33.3:8080 [13:04:52]Content-Length: 670 [13:04:52]Content-Type: application/json [13:04:52] [13:04:52]POST finish read [13:04:52]Found Content-Length = 670 [13:04:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347607", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 3.070, "sum" : 200.47, "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:04:52]execute_script... [13:04: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)347607", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 3.070, "sum" : 200.47, "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:04:52]POST & json_proto [13:04:52]process_json_proto [13:04:52]json parsed OK: [13:04:52]protocol is kg_v1.0 [13:04:52]action value=close_receipt [13:04:52]process_action close_receipt [13:04:52]cmd_close_receipt [13:04:52]MH_GetDate [13:04:52]Write to MH i2c: F0 00 00 A9 98 30 [13:04:52]Write i2c OK [13:04:52]MH_I2C_Read... [13:04:52]Read from MH i2c: F0 [13:04:52]MH_I2C_Read... [13:04:52]Read from MH i2c: F0 09 00 [13:04:52]MH_I2C_Read... [13:04:52]Read from MH i2c: F0 09 00 A9 98 00 7E D4 1B 66 23 5B 8F 65 7E [13:04:52]GetLastDocTimeStamp 1713099678 [13:04:52]current date 1713099902 [13:04:52]FM_GetShiftState [13:04:52]SAM_PROTO_GetShiftState [13:04:52]wFMCommunicate request_size=4 [13:04:52]MH_SAM_APDU [13:04:52]CAPDU: 80 13 01 00 [13:04:52]Write to MH i2c: E2 08 00 AA 98 80 13 01 00 00 00 00 00 BF [13:04:52]Write i2c OK [13:04:52]MH_I2C_Read... [13:04:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:04:52]Read from MH i2c: E2 [13:04:52]MH_I2C_Read... [13:04:52]Read from MH i2c: E2 0E 00 [13:04:52]MH_I2C_Read... [13:04:52]Read from MH i2c: E2 0E 00 AA 98 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 6B [13:04:52]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [13:04:52]wFMCommunicate OK [13:04:52]SAM_PROTO_GetShiftState done [13:04:52]FM_GetShiftState done [13:04:52]opened in 1713053951 [13:04:52]opened+sec_in_day 1713140351 [13:04:52]quantity*price = 20047 [13:04:52]sum+1 = 20048 [13:04:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.29 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 137 14.04.2024 13:05 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29227 ФПД: 210470287734104 1/tax-web-control/client/api/v1/ticket?date=20240414T130502&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29227&fm=210470287734104&tin=02508201610067®Number=0000138879044617&sum=20000 [13:04:53]StoreToDocumentArchive [13:04:53]shift 116 fd 29227 [13:04:53]save to /storage/0116/doc_00029227 [13:04:53]save last doc name /storage/0116/doc_00029227 to /storage/kkm_last_doc_name [13:04:53]save OK [13:04:53]Clear old archive folders... [13:04:53]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:04:53]tlvbuf is 011EB290 [13:04:53]SAM_PROTO_ClearQueue [13:04:53]wFMCommunicate request_size=4 [13:04:53]MH_SAM_APDU [13:04:53]CAPDU: 80 09 00 00 [13:04:53]Write to MH i2c: E2 08 00 B7 98 80 09 00 00 00 00 00 00 C1 [13:04:53]Write i2c OK [13:04:53]MH_I2C_Read... [13:04:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:04:54]Read from MH i2c: E2 [13:04:54]MH_I2C_Read... [13:04:54]Read from MH i2c: E2 03 00 [13:04:54]MH_I2C_Read... [13:04:54]Read from MH i2c: E2 03 00 B7 98 00 90 00 C3 [13:04:54]RAPDU: 90 00 [13:04:54]wFMCommunicate OK [13:04:54]SAM_PROTO_ClearQueue done [13:04:54]KKMCreateOFDPacket [13:04:54]OFDProtocolAddRootSTLVToBuf [13:04:54]FM_MakeSignedData [13:04:54]FM_MakeSignedData [13:04:54]SAM_PROTO_SignData [13:04:54]wFMCommunicate request_size=4 [13:04:54]MH_SAM_APDU [13:04:54]CAPDU: 80 0D 01 02 [13:04:54]Write to MH i2c: E2 08 00 B8 98 80 0D 01 02 00 00 00 00 C9 [13:04:54]Write i2c OK [13:04:54]MH_I2C_Read... [13:04:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:04:54]Read from MH i2c: E2 [13:04:54]MH_I2C_Read... [13:04:54]Read from MH i2c: E2 03 00 [13:04:54]MH_I2C_Read... [13:04:54]Read from MH i2c: E2 03 00 B8 98 00 90 00 C4 [13:04:54]RAPDU: 90 00 [13:04:54]wFMCommunicate OK [13:04:54]wFMCommunicate request_size=255 [13:04:54]MH_SAM_APDU [13:04: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 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 0B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 4F 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 51 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 89 00 00 00 F4 03 04 00 7E D4 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2B 72 00 00 35 04 06 00 [13:04:54]Write to MH i2c: E2 02 01 B9 98 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 0B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 4F 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 51 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 89 00 00 00 F4 03 04 00 7E D4 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2B 72 00 00 35 04 06 00 00 00 2E [13:04:54]Write i2c OK [13:04:54]MH_I2C_Read... [13:04:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:04:54]Read from MH i2c: E2 [13:04:54]MH_I2C_Read... [13:04:54]Read from MH i2c: E2 03 00 [13:04:54]MH_I2C_Read... [13:04:54]Read from MH i2c: E2 03 00 B9 98 00 90 00 C5 [13:04:54]RAPDU: 90 00 [13:04:54]wFMCommunicate OK [13:04:54]wFMCommunicate request_size=11 [13:04:54]MH_SAM_APDU [13:04:54]CAPDU: 80 0D 02 02 06 BF 6B EE BC 75 58 [13:04:54]Write to MH i2c: E2 0E 00 BA 98 80 0D 02 02 06 00 BF 6B EE BC 75 58 00 00 79 [13:04:54]Write i2c OK [13:04:54]MH_I2C_Read... [13:04:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:04:54]Read from MH i2c: E2 [13:04:54]MH_I2C_Read... [13:04:54]Read from MH i2c: E2 03 00 [13:04:54]MH_I2C_Read... [13:04:54]Read from MH i2c: E2 03 00 BA 98 00 90 00 C6 [13:04:54]RAPDU: 90 00 [13:04:54]wFMCommunicate OK [13:04:54]wFMCommunicate request_size=4 [13:04:54]MH_SAM_APDU [13:04:54]CAPDU: 80 0D 03 02 [13:04:54]Write to MH i2c: E2 08 00 BB 98 80 0D 03 02 00 00 00 00 CE [13:04:54]Write i2c OK [13:04:54]MH_I2C_Read... [13:04:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:04:54]Read from MH i2c: E2 [13:04:54]MH_I2C_Read... [13:04:54]Read from MH i2c: E2 0B 00 [13:04:54]MH_I2C_Read... [13:04:54]Read from MH i2c: E2 0B 00 BB 98 00 9A 2D C2 98 27 7B 90 AD 90 00 CF [13:04:54]RAPDU: 9A 2D C2 98 27 7B 90 AD 90 00 [13:04:54]wFMCommunicate OK [13:04:54]SAM_PROTO_SignData done [13:04:54]FM_MakeSignedData done [13:04:54]CreateOFDProtocolMessage [13:04:54]wFMCommunicate request_size=4 [13:04:54]MH_SAM_APDU [13:04:54]CAPDU: 80 11 00 00 [13:04:54]Write to MH i2c: E2 08 00 BC 98 80 11 00 00 00 00 00 00 CE [13:04:54]Write i2c OK [13:04:54]MH_I2C_Read... [13:04:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:04:54]Read from MH i2c: E2 [13:04:54]MH_I2C_Read... [13:04:54]Read from MH i2c: E2 17 00 [13:04:54]MH_I2C_Read... [13:04:54]Read from MH i2c: E2 17 00 BC 98 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 1D [13:04:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:04:54]wFMCommunicate OK [13:04:54]CreateOFDProtocolMessage done [13:04:54]OFDSenderStorePacket 29227 [13:04:54]StoreOFDPacket docnum=29227 [13:04:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 D1 5B 08 01 33 80 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 0B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 4F 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 51 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 89 00 00 00 F4 03 04 00 7E D4 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2B 72 00 00 35 04 06 00 BF 6B EE BC 75 58 9A 2D C2 98 27 7B 90 AD [13:04:54]CheckFolder [13:04:54]dirname=/storage/ofd_packets [13:04:54]CheckFolder done [13:04:54]ProducePacketName [13:04:54]name=ofd_packets/00029227 [13:04:54]NVStorageSaveData ofd_packets/00029227 [13:04:54]File name is /storage/ofd_packets/00029227 [13:04:54]Write 302 bytes [13:04:54]NVStorageSaveData done [13:04:54]OFDSenderStorePacket done [13:04:54]KKMCreateOFDPacket done [13:04:54]NVStorageSaveData kkm_last_timestamp [13:04:54]File name is /storage/kkm_last_timestamp [13:04:54]Write 4 bytes [13:04:54]NVStorageSaveData done [13:04:54]ExternCall_PrintAddStr [13:04:54]wPrintStart [13:04:54]Write to MH i2c: 01 00 00 BD 98 55 [13:04:54]Write i2c OK [13:04:54]MH_I2C_Read... [13:04:54]Read from MH i2c: 01 [13:04:54]MH_I2C_Read... [13:04:54]Read from MH i2c: 01 07 00 [13:04:54]MH_I2C_Read... [13:04:54]Read from MH i2c: 01 07 00 BD 98 00 00 00 00 00 FF 0F 6A [13:04:54]RasterBufferAndPrint [13:04:54]line Счет N : (1)347607 [13:04:54]line ИНН: 02508201610067 [13:04:54]line Контрольно-Кассовый Чек [13:04:54]line ПРОДАЖА [13:04:54]line ТРК (МРК, ГНК) : 12 [13:04:54]line Товар: 2710124130 [13:04:54]line SUPER-92-К-5 [13:04:54]line 3.070 * 65.30 [13:04:54]line = 200.47 [13:04:54]line НДС 12% НСП 1% [13:04:54]line > о реализуемом товаре [13:04:54]line ОКРУГЛЕНИЕ: -0.47 [13:04:54]line ИТОГО: 200.00 [13:04:54]line Внесено: 200.00 [13:04:54]line СДАЧА: 0.00 [13:04:54]line НСП 1% : 1.77 [13:04:54]line НДС 12% : 21.29 [13:04:54]line Наличными: 200.00 [13:04:54]line Безнал.: 0.00 [13:04:54]line Место: АЗС № 108 "Партнер Нефть" [13:04:54]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [13:04:54]line СНО: Общий режим [13:04:54]line Чек 137 14.04.2024 13:05 [13:04:54]line Смена: 116 ФФД: 1.0 [13:04:54]line ЗНМ: 0300000027 [13:04:54]line РНМ: 0000138879044617 [13:04:54]line Версия ККМ: 001 [13:04:54]line ФМ: 0000000000963154 [13:04:54]line ФД: 29227 [13:04:54]line ФПД: 210470287734104 [13:04:54]line 1/tax-web-control/client/api/v1/ticket?date=20240414T130502&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29227&fm=210470287734104&tin=02508201610067®Number=0000138879044617&sum=20000 [13:04:54]OFD Sender: Processing packet 29227 [packets to send 8, broken 7] [13:04:54]ProducePacketName [13:04:54]name=ofd_packets/00029227 [13:04:54]OFD Sender: To server: pG, [13:04:54]CommunicateWithHost lk.salyk.kg:30040 [13:04:54]ConnectInit lk.salyk.kg [13:04:54]written 0, free lines is 4095 [13:04:54]Connected sock=10 [13:04:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 D1 5B 08 01 33 80 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 0B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 4F 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 51 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 89 00 00 00 F4 03 04 00 7E D4 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2B 72 00 00 35 04 06 00 BF 6B EE BC 75 58 9A 2D C2 98 27 7B 90 AD [13:04:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 7B 71 47 00 43 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 39 36 33 31 35 34 10 04 04 00 2B 72 00 00 F4 03 04 00 22 7F 1B 66 B6 04 01 00 00 7D 17 F0 6C DB 23 EF 61 [13:04:55]CommunicateWithHost err = 0 [13:04:55]CheckOFDResponse [13:04:55]1017 (14) - 77093643461234 [13:04:55]1041 (16) - 0000000000963154 [13:04:55]1040 (4) - 29227 [13:04:55]1012 (4) - 14.04.2024 07:00 [13:04:55]1206 (1) - 0 [13:04:55]OFD Sender: Remove packet 29227 [13:04:55]ProducePacketName [13:04:55]name=ofd_packets/00029227 [13:04:55]NVStorageDeleteData [13:04:55]Write to MH i2c: 01 00 00 E7 98 7F [13:04:55]Write i2c OK [13:04:55]MH_I2C_Read... [13:04:55]Read from MH i2c: 01 [13:04:55]MH_I2C_Read... [13:04:55]Read from MH i2c: 01 07 00 [13:04:55]MH_I2C_Read... [13:04:55]Read from MH i2c: 01 07 00 E7 98 00 00 00 00 00 C2 0C 54 [13:04:55]RasterBufferAndPrint [13:04:55]line [13:04:55]line [13:04:55]line [13:04:55]line [13:04:55]line [13:04:55]written 0, free lines is 3273 [13:04:55]MH_Cut [13:04:55]Write to MH i2c: D1 01 00 EE 98 01 58 [13:04:55]Write i2c OK [13:04:55]MH_I2C_Read... [13:04:55]Read from MH i2c: D1 [13:04:55]MH_I2C_Read... [13:04:55]Read from MH i2c: D1 01 00 [13:04:55]MH_I2C_Read... [13:04:55]Read from MH i2c: D1 01 00 EE 98 00 57 [13:04:55]Write to MH i2c: 01 00 00 EF 98 87 [13:04:55]Write i2c OK [13:04:55]MH_I2C_Read... [13:04:55]OFD Sender: No OFD packet to send [13:04:56]*** Cut start [13:04:56]*** Partial cut [13:04:56]*** CUTSNS_PIN = 1 [13:04:56]*** CUTSNS_PIN = 0 [13:04:56]*** Brake cut motor [13:04:56]Read from MH i2c: 01 [13:04:56]MH_I2C_Read... [13:04:56]*** Stop cut motor [13:04:56]*** Cut end [13:04:56]Read from MH i2c: 01 07 00 [13:04:56]MH_I2C_Read... [13:04:56]Read from MH i2c: 01 07 00 EF 98 00 00 00 00 00 FF 0F 9C [13:04:56]process_action close_receipt done [13:04:56]requested_data is exist [13:04:56]produce_requested_data [13:04:56]requested_item fm.sn is exist - process it [13:04:56]wFMCommunicate request_size=4 [13:04:56]MH_SAM_APDU [13:04:56]CAPDU: 80 11 00 00 [13:04:56]Write to MH i2c: E2 08 00 F0 98 80 11 00 00 00 00 00 00 02 [13:04:56]Write i2c OK [13:04:56]MH_I2C_Read... [13:04:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:04:56]Read from MH i2c: E2 [13:04:56]MH_I2C_Read... [13:04:56]Read from MH i2c: E2 17 00 [13:04:56]MH_I2C_Read... [13:04:56]Read from MH i2c: E2 17 00 F0 98 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 51 [13:04:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:04:56]wFMCommunicate OK [13:04:56]requested_item fd.num is exist - process it [13:04:56]SAM_PROTO_GetFieldsCounters [13:04:56]wFMCommunicate request_size=4 [13:04:56]MH_SAM_APDU [13:04:56]CAPDU: 80 13 00 00 [13:04:56]Write to MH i2c: E2 08 00 F1 98 80 13 00 00 00 00 00 00 05 [13:04:56]Write i2c OK [13:04:56]MH_I2C_Read... [13:04:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:04:56]Read from MH i2c: E2 [13:04:56]MH_I2C_Read... [13:04:56]Read from MH i2c: E2 62 00 [13:04:56]MH_I2C_Read... [13:04:56]Read from MH i2c: E2 62 00 F1 98 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 2B 72 00 00 0E 04 04 00 74 00 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 EF [13:04:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 2B 72 00 00 0E 04 04 00 74 00 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 [13:04:56]wFMCommunicate OK [13:04:56]SAM_PROTO_GetFieldsCounters done [13:04:56]requested_item shift.num is exist - process it [13:04:56]requested_item shift.opened is exist - process it [13:04:56]req_shift_opened [13:04:56]FM_GetShiftState [13:04:56]SAM_PROTO_GetShiftState [13:04:56]wFMCommunicate request_size=4 [13:04:56]MH_SAM_APDU [13:04:56]CAPDU: 80 13 01 00 [13:04:56]Write to MH i2c: E2 08 00 F2 98 80 13 01 00 00 00 00 00 07 [13:04:56]Write i2c OK [13:04:56]MH_I2C_Read... [13:04:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:04:56]Read from MH i2c: E2 [13:04:56]MH_I2C_Read... [13:04:56]Read from MH i2c: E2 0E 00 [13:04:56]MH_I2C_Read... [13:04:56]Read from MH i2c: E2 0E 00 F2 98 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 B3 [13:04:56]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [13:04:56]wFMCommunicate OK [13:04:56]SAM_PROTO_GetShiftState done [13:04:56]FM_GetShiftState done [13:04:56]req_shift_opened done [13:04:56]requested_item shift.open_date is exist - process it [13:04:56]req_shift_open_date [13:04:56]req_shift_open_date done [13:04:56]produce_requested_data done [13:04:56]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29227,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [13:04:56]process_action_free close_receipt [13:04:56]json_value_free [13:04:56]json_value_free done [13:04:56]process_json_proto returns [13:04:56]Send response to host [13:04:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29227,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [13:04:56]free response buf [13:04:56]execute_script done [13:04:56]execute_script returns [13:04:56]free content buf [13:04:56]Sock 7.Close socket [13:04:56]Sock 7.Thread stoped [13:05:00]OFD Sender: No OFD packet to send [13:05:05]OFD Sender: No OFD packet to send [13:05:10]OFD Sender: No OFD packet to send [13:05:15]OFD Sender: No OFD packet to send [13:05:20]OFD Sender: No OFD packet to send [13:05:25]OFD Sender: No OFD packet to send [13:05:30]OFD Sender: No OFD packet to send [13:05:35]OFD Sender: No OFD packet to send [13:05:40]OFD Sender: No OFD packet to send [13:05:45]OFD Sender: No OFD packet to send [13:05:50]OFD Sender: No OFD packet to send [13:05:55]OFD Sender: No OFD packet to send [13:06:00]OFD Sender: No OFD packet to send [13:06:05]OFD Sender: No OFD packet to send [13:06:10]OFD Sender: No OFD packet to send [13:06:15]OFD Sender: No OFD packet to send [13:06:20]OFD Sender: No OFD packet to send [13:06:25]OFD Sender: No OFD packet to send [13:06:30]OFD Sender: No OFD packet to send [13:06:35]OFD Sender: No OFD packet to send [13:06:40]OFD Sender: No OFD packet to send [13:06:45]OFD Sender: No OFD packet to send [13:06:50]OFD Sender: No OFD packet to send [13:06:55]OFD Sender: No OFD packet to send [13:07:00]OFD Sender: No OFD packet to send [13:07:05]OFD Sender: No OFD packet to send [13:07:10]OFD Sender: No OFD packet to send [13:07:15]OFD Sender: No OFD packet to send [13:07:20]OFD Sender: No OFD packet to send [13:07:25]OFD Sender: No OFD packet to send [13:07:30]OFD Sender: No OFD packet to send [13:07:35]OFD Sender: No OFD packet to send [13:07:40]OFD Sender: No OFD packet to send [13:07:45]OFD Sender: No OFD packet to send [13:07:50]OFD Sender: No OFD packet to send [13:07:55]OFD Sender: No OFD packet to send [13:08:00]OFD Sender: No OFD packet to send [13:08:05]OFD Sender: No OFD packet to send [13:08:10]OFD Sender: No OFD packet to send [13:08:15]OFD Sender: No OFD packet to send [13:08:20]OFD Sender: No OFD packet to send [13:08:25]OFD Sender: No OFD packet to send [13:08:30]OFD Sender: No OFD packet to send [13:08:35]OFD Sender: No OFD packet to send [13:08:40]OFD Sender: No OFD packet to send [13:08:45]OFD Sender: No OFD packet to send [13:08:50]OFD Sender: No OFD packet to send [13:08:55]OFD Sender: No OFD packet to send [13:09:00]OFD Sender: No OFD packet to send [13:09:05]OFD Sender: No OFD packet to send [13:09:10]OFD Sender: No OFD packet to send [13:09:15]OFD Sender: No OFD packet to send [13:09:20]OFD Sender: No OFD packet to send [13:09:25]OFD Sender: No OFD packet to send [13:09:30]OFD Sender: No OFD packet to send [13:09:35]OFD Sender: No OFD packet to send [13:09:40]OFD Sender: No OFD packet to send [13:09:45]OFD Sender: No OFD packet to send [13:09:50]OFD Sender: No OFD packet to send [13:09:55]OFD Sender: No OFD packet to send [13:10:00]OFD Sender: No OFD packet to send [13:10:05]OFD Sender: No OFD packet to send [13:10:10]OFD Sender: No OFD packet to send [13:10:15]OFD Sender: No OFD packet to send [13:10:20]OFD Sender: No OFD packet to send [13:10: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]OFD Sender: No OFD packet to send [13:11:05]OFD Sender: No OFD packet to send [13:11:10]OFD Sender: No OFD packet to send [13:11:15]OFD Sender: No OFD packet to send [13:11:20]OFD Sender: No OFD packet to send [13:11:25]OFD Sender: No OFD packet to send [13:11:30]OFD Sender: No OFD packet to send [13:11:35]OFD Sender: No OFD packet to send [13:11:40]OFD Sender: No OFD packet to send [13:11:45]OFD Sender: No OFD packet to send [13:11:50]OFD Sender: No OFD packet to send [13:11:55]OFD Sender: No OFD packet to send [13:12:00]OFD Sender: No OFD packet to send [13:12:05]OFD Sender: No OFD packet to send [13:12:10]OFD Sender: No OFD packet to send [13:12:15]OFD Sender: No OFD packet to send [13:12:20]OFD Sender: No OFD packet to send [13:12:25]OFD Sender: No OFD packet to send [13:12:30]OFD Sender: No OFD packet to send [13:12:35]OFD Sender: No OFD packet to send [13:12:40]OFD Sender: No OFD packet to send [13:12:45]OFD Sender: No OFD packet to send [13:12:47]accept exits with 9 [13:12:47]New connection [13:12:47]New thread 3066785124 created [13:12:47]Thread 3066928484 joined [13:12:47]Waiting for new connection... [13:12:47] Sock 9.Parse request [13:12:47]Sock 9.Check first char [13:12:47]Sock 9.First char is OK [13:12:47]request: POST /json_proto HTTP/1.0 [13:12:47]Method: POST [13:12:47]URL: /json_proto [13:12:47]Method is POST - this is cgi request [13:12:47]url: /json_proto [13:12:47]query_string will be loaded in cgi processing [13:12:47]execute_cgi json_proto POST (null) [13:12:47]execute_cgi path=json_proto method=POST [13:12:47]POST find Content-Length [13:12:47]Host: 172.17.33.3:8080 [13:12:47]Content-Length: 1202 [13:12:47]Content-Type: application/json [13:12:47] [13:12:47]POST finish read [13:12:47]Found Content-Length = 1202 [13:12:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043B\u0438\u043A\u0431\u0430\u0435\u0432\u0430. \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)347608\u000A14.04.2024 12:54\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 30.000 x 72.50\u000A\u0418\u0422\u041E\u0413: 2175.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\u000A43453\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:12:47]execute_script... [13:12:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043B\u0438\u043A\u0431\u0430\u0435\u0432\u0430. \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)347608\u000A14.04.2024 12:54\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 30.000 x 72.50\u000A\u0418\u0422\u041E\u0413: 2175.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\u000A43453\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:12:47]POST & json_proto [13:12:47]process_json_proto [13:12:47]json parsed OK: [13:12:47]protocol is kg_v1.0 [13:12:47]action value=print_text [13:12:47]process_action print_text [13:12:47]cmd_print_text [13:12:47]ExternCall_PrintAddStr [13:12:47]wPrintStart [13:12:47]Write to MH i2c: 01 00 00 F3 98 8B [13:12:47]Write i2c OK [13:12:47]MH_I2C_Read... [13:12:47]Read from MH i2c: 01 [13:12:47]MH_I2C_Read... [13:12:47]Read from MH i2c: 01 07 00 [13:12:47]MH_I2C_Read... [13:12:47]Read from MH i2c: 01 07 00 F3 98 00 00 00 00 00 FF 0F A0 [13:12:47]RasterBufferAndPrint [13:12:47]line *****ТОВАРНЫЙ ЧЕК***** [13:12:47]line АЗС 108 [13:12:47]line Партнер нефть [13:12:47]line 02508201610067 [13:12:47]line Кассир : Аликбаева. Д. [13:12:47]line Счет N : (1)347608 [13:12:47]line 14.04.2024 12:54 [13:12:47]line ПРОДАЖА [13:12:47]line ТРК (МРК, ГНК): 33 [13:12:47]line Вид ГСМ : 2710124500 [13:12:47]line Аи-95-К-5 [13:12:47]line 30.000 x 72.50 [13:12:47]line ИТОГ: 2175.00 [13:12:47]line Тип оплаты: Талоны: Топливная Карта [13:12:47]line 43453 [13:12:47]line ______________________ [13:12:47]line (подпись) [13:12:47]written 0, free lines is 4095 [13:12:48]Write to MH i2c: 01 00 00 07 99 A0 [13:12:48]Write i2c OK [13:12:48]MH_I2C_Read... [13:12:48]Read from MH i2c: 01 [13:12:48]MH_I2C_Read... [13:12:48]Read from MH i2c: 01 07 00 [13:12:48]MH_I2C_Read... [13:12:48]Read from MH i2c: 01 07 00 07 99 00 00 00 00 00 12 0E C7 [13:12:48]RasterBufferAndPrint [13:12:48]line [13:12:48]line [13:12:48]line [13:12:48]line [13:12:48]line [13:12:48]written 0, free lines is 3604 [13:12:48]MH_Cut [13:12:48]Write to MH i2c: D1 01 00 0E 99 01 79 [13:12:48]Write i2c OK [13:12:48]MH_I2C_Read... [13:12:48]Read from MH i2c: D1 [13:12:48]MH_I2C_Read... [13:12:48]Read from MH i2c: D1 01 00 [13:12:48]MH_I2C_Read... [13:12:48]Read from MH i2c: D1 01 00 0E 99 00 78 [13:12:48]Write to MH i2c: 01 00 00 0F 99 A8 [13:12:48]Write i2c OK [13:12:48]MH_I2C_Read... [13:12:48]*** Cut start [13:12:48]*** Partial cut [13:12:48]*** CUTSNS_PIN = 1 [13:12:48]*** CUTSNS_PIN = 0 [13:12:49]*** Brake cut motor [13:12:49]Read from MH i2c: 01 [13:12:49]MH_I2C_Read... [13:12:49]*** Stop cut motor [13:12:49]*** Cut end [13:12:49]Read from MH i2c: 01 07 00 [13:12:49]MH_I2C_Read... [13:12:49]Read from MH i2c: 01 07 00 0F 99 00 00 00 00 00 FF 0F BD [13:12:49]process_action print_text done [13:12:49]requested_data is exist [13:12:49]produce_requested_data [13:12:49]requested_item fm.sn is exist - process it [13:12:49]wFMCommunicate request_size=4 [13:12:49]MH_SAM_APDU [13:12:49]CAPDU: 80 11 00 00 [13:12:49]Write to MH i2c: E2 08 00 10 99 80 11 00 00 00 00 00 00 23 [13:12:49]Write i2c OK [13:12:49]MH_I2C_Read... [13:12:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:49]Read from MH i2c: E2 [13:12:49]MH_I2C_Read... [13:12:49]Read from MH i2c: E2 17 00 [13:12:49]MH_I2C_Read... [13:12:49]Read from MH i2c: E2 17 00 10 99 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 72 [13:12:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:12:49]wFMCommunicate OK [13:12:49]requested_item fd.num is exist - process it [13:12:49]SAM_PROTO_GetFieldsCounters [13:12:49]wFMCommunicate request_size=4 [13:12:49]MH_SAM_APDU [13:12:49]CAPDU: 80 13 00 00 [13:12:49]Write to MH i2c: E2 08 00 11 99 80 13 00 00 00 00 00 00 26 [13:12:49]Write i2c OK [13:12:49]MH_I2C_Read... [13:12:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:12:49]Read from MH i2c: E2 [13:12:49]MH_I2C_Read... [13:12:49]Read from MH i2c: E2 62 00 [13:12:49]MH_I2C_Read... [13:12:49]Read from MH i2c: E2 62 00 11 99 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 2B 72 00 00 0E 04 04 00 74 00 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 10 [13:12:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 2B 72 00 00 0E 04 04 00 74 00 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 [13:12:49]wFMCommunicate OK [13:12:49]SAM_PROTO_GetFieldsCounters done [13:12:49]requested_item shift.num is exist - process it [13:12:49]requested_item shift.opened is exist - process it [13:12:49]req_shift_opened [13:12:49]FM_GetShiftState [13:12:49]SAM_PROTO_GetShiftState [13:12:49]wFMCommunicate request_size=4 [13:12:49]MH_SAM_APDU [13:12:49]CAPDU: 80 13 01 00 [13:12:49]Write to MH i2c: E2 08 00 12 99 80 13 01 00 00 00 00 00 28 [13:12:49]Write i2c OK [13:12:49]MH_I2C_Read... [13:12:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:49]Read from MH i2c: E2 [13:12:49]MH_I2C_Read... [13:12:49]Read from MH i2c: E2 0E 00 [13:12:49]MH_I2C_Read... [13:12:49]Read from MH i2c: E2 0E 00 12 99 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 D4 [13:12:49]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [13:12:49]wFMCommunicate OK [13:12:49]SAM_PROTO_GetShiftState done [13:12:49]FM_GetShiftState done [13:12:49]req_shift_opened done [13:12:49]requested_item shift.open_date is exist - process it [13:12:49]req_shift_open_date [13:12:49]req_shift_open_date done [13:12:49]produce_requested_data done [13:12:49]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29227,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [13:12:49]process_action_free print_text [13:12:49]json_value_free [13:12:49]json_value_free done [13:12:49]process_json_proto returns [13:12:49]Send response to host [13:12:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29227,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [13:12:49]free response buf [13:12:49]execute_script done [13:12:49]execute_script returns [13:12:49]free content buf [13:12:49]Sock 9.Close socket [13:12:49]Sock 9.Thread stoped [13:12:51]OFD Sender: No OFD packet to send [13:12:56]OFD Sender: No OFD packet to send [13:13:01]OFD Sender: No OFD packet to send [13:13:06]OFD Sender: No OFD packet to send [13:13:11]OFD Sender: No OFD packet to send [13:13:16]OFD Sender: No OFD packet to send [13:13:21]OFD Sender: No OFD packet to send [13:13:26]OFD Sender: No OFD packet to send [13:13:31]OFD Sender: No OFD packet to send [13:13:36]OFD Sender: No OFD packet to send [13:13:41]OFD Sender: No OFD packet to send [13:13:46]OFD Sender: No OFD packet to send [13:13:51]OFD Sender: No OFD packet to send [13:13:56]OFD Sender: No OFD packet to send [13:14:01]OFD Sender: No OFD packet to send [13:14:06]OFD Sender: No OFD packet to send [13:14:11]OFD Sender: No OFD packet to send [13:14:16]OFD Sender: No OFD packet to send [13:14:21]OFD Sender: No OFD packet to send [13:14:26]OFD Sender: No OFD packet to send [13:14:31]OFD Sender: No OFD packet to send [13:14:36]OFD Sender: No OFD packet to send [13:14:41]OFD Sender: No OFD packet to send [13:14:46]OFD Sender: No OFD packet to send [13:14:51]OFD Sender: No OFD packet to send [13:14:56]OFD Sender: No OFD packet to send [13:15:01]OFD Sender: No OFD packet to send [13:15:06]OFD Sender: No OFD packet to send [13:15:11]OFD Sender: No OFD packet to send [13:15:16]OFD Sender: No OFD packet to send [13:15:21]OFD Sender: No OFD packet to send [13:15:26]OFD Sender: No OFD packet to send [13:15:31]OFD Sender: No OFD packet to send [13:15:36]OFD Sender: No OFD packet to send [13:15:41]OFD Sender: No OFD packet to send [13:15:46]OFD Sender: No OFD packet to send [13:15:51]OFD Sender: No OFD packet to send [13:15:56]OFD Sender: No OFD packet to send [13:16:01]OFD Sender: No OFD packet to send [13:16:06]OFD Sender: No OFD packet to send [13:16:11]OFD Sender: No OFD packet to send [13:16:16]OFD Sender: No OFD packet to send [13:16:21]OFD Sender: No OFD packet to send [13:16:26]OFD Sender: No OFD packet to send [13:16:31]OFD Sender: No OFD packet to send [13:16:36]OFD Sender: No OFD packet to send [13:16:41]OFD Sender: No OFD packet to send [13:16:46]OFD Sender: No OFD packet to send [13:16:51]OFD Sender: No OFD packet to send [13:16:56]OFD Sender: No OFD packet to send [13:17:01]OFD Sender: No OFD packet to send [13:17:06]OFD Sender: No OFD packet to send [13:17:11]OFD Sender: No OFD packet to send [13:17:16]OFD Sender: No OFD packet to send [13:17:21]OFD Sender: No OFD packet to send [13:17:26]OFD Sender: No OFD packet to send [13:17:31]OFD Sender: No OFD packet to send [13:17:36]OFD Sender: No OFD packet to send [13:17:41]OFD Sender: No OFD packet to send [13:17:46]OFD Sender: No OFD packet to send [13:17:51]OFD Sender: No OFD packet to send [13:17:56]OFD Sender: No OFD packet to send [13:18:01]OFD Sender: No OFD packet to send [13:18:06]OFD Sender: No OFD packet to send [13:18:11]OFD Sender: No OFD packet to send [13:18:16]OFD Sender: No OFD packet to send [13:18:21]OFD Sender: No OFD packet to send [13:18:26]OFD Sender: No OFD packet to send [13:18:31]OFD Sender: No OFD packet to send [13:18:32]accept exits with 10 [13:18:32]New connection [13:18:32]New thread 3066928484 created [13:18:32]Thread 3066785124 joined [13:18:32]Waiting for new connection... [13:18:32] Sock 10.Parse request [13:18:32]Sock 10.Check first char [13:18:32]Sock 10.First char is OK [13:18:32]request: POST /json_proto HTTP/1.0 [13:18:32]Method: POST [13:18:32]URL: /json_proto [13:18:32]Method is POST - this is cgi request [13:18:32]url: /json_proto [13:18:32]query_string will be loaded in cgi processing [13:18:32]execute_cgi json_proto POST (null) [13:18:32]execute_cgi path=json_proto method=POST [13:18:32]POST find Content-Length [13:18:32]Host: 172.17.33.3:8080 [13:18:32]Content-Length: 678 [13:18:32]Content-Type: application/json [13:18:32] [13:18:32]POST finish read [13:18:32]Found Content-Length = 678 [13:18:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347609", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 10.390, "sum" : 668.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 668.00, "payments": [ { "type": 0, "sum" : 668.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:18:32]execute_script... [13:18: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)347609", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 10.390, "sum" : 668.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 668.00, "payments": [ { "type": 0, "sum" : 668.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:18:32]POST & json_proto [13:18:32]process_json_proto [13:18:32]json parsed OK: [13:18:32]protocol is kg_v1.0 [13:18:32]action value=close_receipt [13:18:32]process_action close_receipt [13:18:32]cmd_close_receipt [13:18:32]MH_GetDate [13:18:32]Write to MH i2c: F0 00 00 13 99 9B [13:18:32]Write i2c OK [13:18:32]MH_I2C_Read... [13:18:32]Read from MH i2c: F0 [13:18:32]MH_I2C_Read... [13:18:32]Read from MH i2c: F0 09 00 [13:18:32]MH_I2C_Read... [13:18:32]Read from MH i2c: F0 09 00 13 99 00 B3 D7 1B 66 23 5B 8F 65 21 [13:18:32]GetLastDocTimeStamp 1713099902 [13:18:32]current date 1713100723 [13:18:32]FM_GetShiftState [13:18:32]SAM_PROTO_GetShiftState [13:18:32]wFMCommunicate request_size=4 [13:18:32]MH_SAM_APDU [13:18:32]CAPDU: 80 13 01 00 [13:18:32]Write to MH i2c: E2 08 00 14 99 80 13 01 00 00 00 00 00 2A [13:18:32]Write i2c OK [13:18:32]MH_I2C_Read... [13:18:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:18:33]Read from MH i2c: E2 [13:18:33]MH_I2C_Read... [13:18:33]Read from MH i2c: E2 0E 00 [13:18:33]MH_I2C_Read... [13:18:33]Read from MH i2c: E2 0E 00 14 99 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 D6 [13:18:33]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [13:18:33]wFMCommunicate OK [13:18:33]SAM_PROTO_GetShiftState done [13:18:33]FM_GetShiftState done [13:18:33]opened in 1713053951 [13:18:33]opened+sec_in_day 1713140351 [13:18:33]quantity*price = 66807 [13:18:33]sum+1 = 66809 [13:18:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 668.00 Внесено: 800.00 СДАЧА: 132.00 НСП 1% : 5.91 НДС 12% : 70.95 Наличными: 668.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 138 14.04.2024 13:18 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29228 ФПД: 133944975590259 1/tax-web-control/client/api/v1/ticket?date=20240414T131843&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29228&fm=133944975590259&tin=02508201610067®Number=0000138879044617&sum=66800 [13:18:34]StoreToDocumentArchive [13:18:34]shift 116 fd 29228 [13:18:34]save to /storage/0116/doc_00029228 [13:18:34]save last doc name /storage/0116/doc_00029228 to /storage/kkm_last_doc_name [13:18:34]save OK [13:18:34]Clear old archive folders... [13:18:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:18:34]tlvbuf is 012F3EB0 [13:18:34]SAM_PROTO_ClearQueue [13:18:34]wFMCommunicate request_size=4 [13:18:34]MH_SAM_APDU [13:18:34]CAPDU: 80 09 00 00 [13:18:34]Write to MH i2c: E2 08 00 21 99 80 09 00 00 00 00 00 00 2C [13:18:34]Write i2c OK [13:18:34]MH_I2C_Read... [13:18:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:18:34]Read from MH i2c: E2 [13:18:34]MH_I2C_Read... [13:18:34]Read from MH i2c: E2 03 00 [13:18:34]MH_I2C_Read... [13:18:34]Read from MH i2c: E2 03 00 21 99 00 90 00 2E [13:18:34]RAPDU: 90 00 [13:18:34]wFMCommunicate OK [13:18:34]SAM_PROTO_ClearQueue done [13:18:34]KKMCreateOFDPacket [13:18:34]OFDProtocolAddRootSTLVToBuf [13:18:34]FM_MakeSignedData [13:18:34]FM_MakeSignedData [13:18:34]SAM_PROTO_SignData [13:18:34]wFMCommunicate request_size=4 [13:18:34]MH_SAM_APDU [13:18:34]CAPDU: 80 0D 01 02 [13:18:34]Write to MH i2c: E2 08 00 22 99 80 0D 01 02 00 00 00 00 34 [13:18:34]Write i2c OK [13:18:34]MH_I2C_Read... [13:18:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:18:34]Read from MH i2c: E2 [13:18:34]MH_I2C_Read... [13:18:34]Read from MH i2c: E2 03 00 [13:18:34]MH_I2C_Read... [13:18:34]Read from MH i2c: E2 03 00 22 99 00 90 00 2F [13:18:34]RAPDU: 90 00 [13:18:34]wFMCommunicate OK [13:18:34]wFMCommunicate request_size=255 [13:18:34]MH_SAM_APDU [13:18: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 96 28 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 F8 04 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 04 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 1B 00 00 00 00 07 04 06 00 F0 04 01 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 B3 D7 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2C 72 00 00 35 04 06 00 79 [13:18:34]Write to MH i2c: E2 02 01 23 99 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 96 28 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 F8 04 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 04 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 1B 00 00 00 00 07 04 06 00 F0 04 01 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 B3 D7 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2C 72 00 00 35 04 06 00 79 00 00 7A [13:18:34]Write i2c OK [13:18:34]MH_I2C_Read... [13:18:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:18:34]Read from MH i2c: E2 [13:18:34]MH_I2C_Read... [13:18:34]Read from MH i2c: E2 03 00 [13:18:34]MH_I2C_Read... [13:18:34]Read from MH i2c: E2 03 00 23 99 00 90 00 30 [13:18:34]RAPDU: 90 00 [13:18:34]wFMCommunicate OK [13:18:34]wFMCommunicate request_size=10 [13:18:34]MH_SAM_APDU [13:18:34]CAPDU: 80 0D 02 02 05 D2 7E B0 83 73 [13:18:34]Write to MH i2c: E2 0D 00 24 99 80 0D 02 02 05 00 D2 7E B0 83 73 00 00 37 [13:18:34]Write i2c OK [13:18:34]MH_I2C_Read... [13:18:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:18:34]Read from MH i2c: E2 [13:18:34]MH_I2C_Read... [13:18:34]Read from MH i2c: E2 03 00 [13:18:34]MH_I2C_Read... [13:18:34]Read from MH i2c: E2 03 00 24 99 00 90 00 31 [13:18:34]RAPDU: 90 00 [13:18:34]wFMCommunicate OK [13:18:34]wFMCommunicate request_size=4 [13:18:34]MH_SAM_APDU [13:18:34]CAPDU: 80 0D 03 02 [13:18:34]Write to MH i2c: E2 08 00 25 99 80 0D 03 02 00 00 00 00 39 [13:18:34]Write i2c OK [13:18:34]MH_I2C_Read... [13:18:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:18:34]Read from MH i2c: E2 [13:18:34]MH_I2C_Read... [13:18:34]Read from MH i2c: E2 0B 00 [13:18:34]MH_I2C_Read... [13:18:34]Read from MH i2c: E2 0B 00 25 99 00 3E D2 7D EF C6 BB 14 E1 90 00 2C [13:18:34]RAPDU: 3E D2 7D EF C6 BB 14 E1 90 00 [13:18:34]wFMCommunicate OK [13:18:34]SAM_PROTO_SignData done [13:18:34]FM_MakeSignedData done [13:18:34]CreateOFDProtocolMessage [13:18:34]wFMCommunicate request_size=4 [13:18:34]MH_SAM_APDU [13:18:34]CAPDU: 80 11 00 00 [13:18:34]Write to MH i2c: E2 08 00 26 99 80 11 00 00 00 00 00 00 39 [13:18:34]Write i2c OK [13:18:34]MH_I2C_Read... [13:18:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:18:34]Read from MH i2c: E2 [13:18:34]MH_I2C_Read... [13:18:34]Read from MH i2c: E2 17 00 [13:18:34]MH_I2C_Read... [13:18:34]Read from MH i2c: E2 17 00 26 99 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 88 [13:18:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:18:34]wFMCommunicate OK [13:18:34]CreateOFDProtocolMessage done [13:18:34]OFDSenderStorePacket 29228 [13:18:34]StoreOFDPacket docnum=29228 [13:18:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 8A FE 07 01 34 A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 96 28 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 F8 04 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 04 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 1B 00 00 00 00 07 04 06 00 F0 04 01 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 B3 D7 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2C 72 00 00 35 04 06 00 79 D2 7E B0 83 73 3E D2 7D EF C6 BB 14 E1 [13:18:34]CheckFolder [13:18:34]dirname=/storage/ofd_packets [13:18:34]CheckFolder done [13:18:34]ProducePacketName [13:18:34]name=ofd_packets/00029228 [13:18:34]NVStorageSaveData ofd_packets/00029228 [13:18:34]File name is /storage/ofd_packets/00029228 [13:18:34]Write 301 bytes [13:18:34]NVStorageSaveData done [13:18:34]OFDSenderStorePacket done [13:18:34]KKMCreateOFDPacket done [13:18:34]NVStorageSaveData kkm_last_timestamp [13:18:34]File name is /storage/kkm_last_timestamp [13:18:34]Write 4 bytes [13:18:34]NVStorageSaveData done [13:18:34]ExternCall_PrintAddStr [13:18:34]wPrintStart [13:18:34]Write to MH i2c: 01 00 00 27 99 C0 [13:18:34]Write i2c OK [13:18:34]MH_I2C_Read... [13:18:34]Read from MH i2c: 01 [13:18:34]MH_I2C_Read... [13:18:34]Read from MH i2c: 01 07 00 [13:18:34]MH_I2C_Read... [13:18:34]Read from MH i2c: 01 07 00 27 99 00 00 00 00 00 FF 0F D5 [13:18:34]RasterBufferAndPrint [13:18:34]line Счет N : (1)347609 [13:18:34]line ИНН: 02508201610067 [13:18:34]line Контрольно-Кассовый Чек [13:18:34]line ПРОДАЖА [13:18:34]line ТРК (МРК, ГНК) : 13 [13:18:34]line Товар: 2710124130 [13:18:34]line Аи-92-К-5 [13:18:34]line 10.390 * 64.30 [13:18:34]line = 668.08 [13:18:34]line НДС 12% НСП 1% [13:18:34]line > о реализуемом товаре [13:18:34]line ОКРУГЛЕНИЕ: -0.08 [13:18:34]line ИТОГО: 668.00 [13:18:34]line Внесено: 800.00 [13:18:34]line СДАЧА: 132.00 [13:18:34]line НСП 1% : 5.91 [13:18:34]line НДС 12% : 70.95 [13:18:34]line Наличными: 668.00 [13:18:34]line Безнал.: 0.00 [13:18:34]line Место: АЗС № 108 "Партнер Нефть" [13:18:34]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [13:18:34]line СНО: Общий режим [13:18:34]line Чек 138 14.04.2024 13:18 [13:18:34]line Смена: 116 ФФД: 1.0 [13:18:34]line ЗНМ: 0300000027 [13:18:34]line РНМ: 0000138879044617 [13:18:34]line Версия ККМ: 001 [13:18:34]line ФМ: 0000000000963154 [13:18:34]line ФД: 29228 [13:18:34]line ФПД: 133944975590259 [13:18:34]line 1/tax-web-control/client/api/v1/ticket?date=20240414T131843&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29228&fm=133944975590259&tin=02508201610067®Number=0000138879044617&sum=66800 [13:18:34]OFD Sender: Processing packet 29228 [packets to send 8, broken 7] [13:18:34]ProducePacketName [13:18:34]name=ofd_packets/00029228 [13:18:34]OFD Sender: To server: pG, [13:18:34]CommunicateWithHost lk.salyk.kg:30040 [13:18:34]ConnectInit lk.salyk.kg [13:18:35]written 0, free lines is 4095 [13:18:35]Connected sock=9 [13:18:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 8A FE 07 01 34 A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 96 28 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 F8 04 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 04 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 1B 00 00 00 00 07 04 06 00 F0 04 01 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 B3 D7 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2C 72 00 00 35 04 06 00 79 D2 7E B0 83 73 3E D2 7D EF C6 BB 14 E1 [13:18:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 0E 0B 47 00 EA 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 39 36 33 31 35 34 10 04 04 00 2C 72 00 00 F4 03 04 00 57 82 1B 66 B6 04 01 00 00 88 8B B2 9F EA FE B3 D3 [13:18:35]CommunicateWithHost err = 0 [13:18:35]CheckOFDResponse [13:18:35]1017 (14) - 77093643461234 [13:18:35]1041 (16) - 0000000000963154 [13:18:35]1040 (4) - 29228 [13:18:35]1012 (4) - 14.04.2024 07:14 [13:18:35]1206 (1) - 0 [13:18:35]OFD Sender: Remove packet 29228 [13:18:35]ProducePacketName [13:18:35]name=ofd_packets/00029228 [13:18:35]NVStorageDeleteData [13:18:35]Write to MH i2c: 01 00 00 51 99 EA [13:18:35]Write i2c OK [13:18:35]MH_I2C_Read... [13:18:35]Read from MH i2c: 01 [13:18:35]MH_I2C_Read... [13:18:35]Read from MH i2c: 01 07 00 [13:18:35]MH_I2C_Read... [13:18:35]Read from MH i2c: 01 07 00 51 99 00 00 00 00 00 DA 0C D7 [13:18:35]RasterBufferAndPrint [13:18:35]line [13:18:35]line [13:18:35]line [13:18:35]line [13:18:35]line [13:18:35]written 0, free lines is 3295 [13:18:35]MH_Cut [13:18:35]Write to MH i2c: D1 01 00 58 99 01 C3 [13:18:35]Write i2c OK [13:18:35]MH_I2C_Read... [13:18:35]Read from MH i2c: D1 [13:18:35]MH_I2C_Read... [13:18:35]Read from MH i2c: D1 01 00 [13:18:35]MH_I2C_Read... [13:18:35]Read from MH i2c: D1 01 00 58 99 00 C2 [13:18:35]Write to MH i2c: 01 00 00 59 99 F2 [13:18:35]Write i2c OK [13:18:35]MH_I2C_Read... [13:18:35]OFD Sender: No OFD packet to send [13:18:36]*** Cut start [13:18:36]*** Partial cut [13:18:36]*** CUTSNS_PIN = 1 [13:18:36]*** CUTSNS_PIN = 0 [13:18:36]*** Brake cut motor [13:18:36]Read from MH i2c: 01 [13:18:36]MH_I2C_Read... [13:18:36]*** Stop cut motor [13:18:36]*** Cut end [13:18:36]Read from MH i2c: 01 07 00 [13:18:36]MH_I2C_Read... [13:18:36]Read from MH i2c: 01 07 00 59 99 00 00 00 00 00 FF 0F 07 [13:18:36]process_action close_receipt done [13:18:36]requested_data is exist [13:18:36]produce_requested_data [13:18:36]requested_item fm.sn is exist - process it [13:18:36]wFMCommunicate request_size=4 [13:18:36]MH_SAM_APDU [13:18:36]CAPDU: 80 11 00 00 [13:18:36]Write to MH i2c: E2 08 00 5A 99 80 11 00 00 00 00 00 00 6D [13:18:36]Write i2c OK [13:18:36]MH_I2C_Read... [13:18:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:18:36]Read from MH i2c: E2 [13:18:36]MH_I2C_Read... [13:18:36]Read from MH i2c: E2 17 00 [13:18:36]MH_I2C_Read... [13:18:36]Read from MH i2c: E2 17 00 5A 99 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 BC [13:18:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:18:36]wFMCommunicate OK [13:18:36]requested_item fd.num is exist - process it [13:18:36]SAM_PROTO_GetFieldsCounters [13:18:36]wFMCommunicate request_size=4 [13:18:36]MH_SAM_APDU [13:18:36]CAPDU: 80 13 00 00 [13:18:36]Write to MH i2c: E2 08 00 5B 99 80 13 00 00 00 00 00 00 70 [13:18:36]Write i2c OK [13:18:36]MH_I2C_Read... [13:18:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:18:37]Read from MH i2c: E2 [13:18:37]MH_I2C_Read... [13:18:37]Read from MH i2c: E2 62 00 [13:18:37]MH_I2C_Read... [13:18:37]Read from MH i2c: E2 62 00 5B 99 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 2C 72 00 00 0E 04 04 00 74 00 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 5E [13:18:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 2C 72 00 00 0E 04 04 00 74 00 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 [13:18:37]wFMCommunicate OK [13:18:37]SAM_PROTO_GetFieldsCounters done [13:18:37]requested_item shift.num is exist - process it [13:18:37]requested_item shift.opened is exist - process it [13:18:37]req_shift_opened [13:18:37]FM_GetShiftState [13:18:37]SAM_PROTO_GetShiftState [13:18:37]wFMCommunicate request_size=4 [13:18:37]MH_SAM_APDU [13:18:37]CAPDU: 80 13 01 00 [13:18:37]Write to MH i2c: E2 08 00 5C 99 80 13 01 00 00 00 00 00 72 [13:18:37]Write i2c OK [13:18:37]MH_I2C_Read... [13:18:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:18:37]Read from MH i2c: E2 [13:18:37]MH_I2C_Read... [13:18:37]Read from MH i2c: E2 0E 00 [13:18:37]MH_I2C_Read... [13:18:37]Read from MH i2c: E2 0E 00 5C 99 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 1E [13:18:37]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [13:18:37]wFMCommunicate OK [13:18:37]SAM_PROTO_GetShiftState done [13:18:37]FM_GetShiftState done [13:18:37]req_shift_opened done [13:18:37]requested_item shift.open_date is exist - process it [13:18:37]req_shift_open_date [13:18:37]req_shift_open_date done [13:18:37]produce_requested_data done [13:18:37]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29228,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [13:18:37]process_action_free close_receipt [13:18:37]json_value_free [13:18:37]json_value_free done [13:18:37]process_json_proto returns [13:18:37]Send response to host [13:18:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29228,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [13:18:37]free response buf [13:18:37]execute_script done [13:18:37]execute_script returns [13:18:37]free content buf [13:18:37]Sock 10.Close socket [13:18:37]Sock 10.Thread stoped [13:18:40]OFD Sender: No OFD packet to send [13:18:45]OFD Sender: No OFD packet to send [13:18:50]OFD Sender: No OFD packet to send [13:18:55]OFD Sender: No OFD packet to send [13:19:00]OFD Sender: No OFD packet to send [13:19:05]OFD Sender: No OFD packet to send [13:19:10]OFD Sender: No OFD packet to send [13:19:15]OFD Sender: No OFD packet to send [13:19:20]OFD Sender: No OFD packet to send [13:19:25]OFD Sender: No OFD packet to send [13:19:30]OFD Sender: No OFD packet to send [13:19:35]OFD Sender: No OFD packet to send [13:19:40]OFD Sender: No OFD packet to send [13:19:45]OFD Sender: No OFD packet to send [13:19:50]OFD Sender: No OFD packet to send [13:19:55]OFD Sender: No OFD packet to send [13:20:00]OFD Sender: No OFD packet to send [13:20:05]OFD Sender: No OFD packet to send [13:20:10]OFD Sender: No OFD packet to send [13:20:15]OFD Sender: No OFD packet to send [13:20:20]OFD Sender: No OFD packet to send [13:20:25]OFD Sender: No OFD packet to send [13:20:30]OFD Sender: No OFD packet to send [13:20:35]OFD Sender: No OFD packet to send [13:20:40]OFD Sender: No OFD packet to send [13:20:45]OFD Sender: No OFD packet to send [13:20:50]OFD Sender: No OFD packet to send [13:20:55]OFD Sender: No OFD packet to send [13:21:00]OFD Sender: No OFD packet to send [13:21:05]OFD Sender: No OFD packet to send [13:21:10]OFD Sender: No OFD packet to send [13:21:15]OFD Sender: No OFD packet to send [13:21:20]OFD Sender: No OFD packet to send [13:21:25]OFD Sender: No OFD packet to send [13:21:30]OFD Sender: No OFD packet to send [13:21:35]OFD Sender: No OFD packet to send [13:21:40]OFD Sender: No OFD packet to send [13:21:45]OFD Sender: No OFD packet to send [13:21:50]OFD Sender: No OFD packet to send [13:21:55]OFD Sender: No OFD packet to send [13:22:00]OFD Sender: No OFD packet to send [13:22:05]OFD Sender: No OFD packet to send [13:22:10]OFD Sender: No OFD packet to send [13:22:15]OFD Sender: No OFD packet to send [13:22:20]OFD Sender: No OFD packet to send [13:22:25]OFD Sender: No OFD packet to send [13:22:30]OFD Sender: No OFD packet to send [13:22:35]OFD Sender: No OFD packet to send [13:22:40]OFD Sender: No OFD packet to send [13:22:45]OFD Sender: No OFD packet to send [13:22:50]OFD Sender: No OFD packet to send [13:22:55]OFD Sender: No OFD packet to send [13:23:00]OFD Sender: No OFD packet to send [13:23:05]OFD Sender: No OFD packet to send [13:23:10]OFD Sender: No OFD packet to send [13:23:15]OFD Sender: No OFD packet to send [13:23:20]OFD Sender: No OFD packet to send [13:23: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:53]accept exits with 7 [13:25:53]New connection [13:25:53]New thread 3066785124 created [13:25:53]Thread 3066928484 joined [13:25:53]Waiting for new connection... [13:25:53] Sock 7.Parse request [13:25:53]Sock 7.Check first char [13:25:53]Sock 7.First char is OK [13:25:53]request: POST /json_proto HTTP/1.0 [13:25:53]Method: POST [13:25:53]URL: /json_proto [13:25:53]Method is POST - this is cgi request [13:25:53]url: /json_proto [13:25:53]query_string will be loaded in cgi processing [13:25:53]execute_cgi json_proto POST (null) [13:25:53]execute_cgi path=json_proto method=POST [13:25:53]POST find Content-Length [13:25:53]Host: 172.17.33.3:8080 [13:25:53]Content-Length: 1210 [13:25:53]Content-Type: application/json [13:25:53] [13:25:53]POST finish read [13:25:53]Found Content-Length = 1210 [13:25:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043B\u0438\u043A\u0431\u0430\u0435\u0432\u0430. \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)347610\u000A14.04.2024 13:07\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 71\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2711129700\u000A\u0413\u0410\u0417-\u041A-5\u000A 30.000 x 32.90\u000A\u0418\u0422\u041E\u0413: 987.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A1783744;1783745;1783746\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:25:53]execute_script... [13:25:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043B\u0438\u043A\u0431\u0430\u0435\u0432\u0430. \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)347610\u000A14.04.2024 13:07\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 71\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2711129700\u000A\u0413\u0410\u0417-\u041A-5\u000A 30.000 x 32.90\u000A\u0418\u0422\u041E\u0413: 987.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A1783744;1783745;1783746\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:25:53]POST & json_proto [13:25:53]process_json_proto [13:25:53]json parsed OK: [13:25:53]protocol is kg_v1.0 [13:25:53]action value=print_text [13:25:53]process_action print_text [13:25:53]cmd_print_text [13:25:53]ExternCall_PrintAddStr [13:25:53]wPrintStart [13:25:53]Write to MH i2c: 01 00 00 5D 99 F6 [13:25:53]Write i2c OK [13:25:53]MH_I2C_Read... [13:25:53]Read from MH i2c: 01 [13:25:53]MH_I2C_Read... [13:25:53]Read from MH i2c: 01 07 00 [13:25:53]MH_I2C_Read... [13:25:53]Read from MH i2c: 01 07 00 5D 99 00 00 00 00 00 FF 0F 0B [13:25:53]RasterBufferAndPrint [13:25:53]line *****ТОВАРНЫЙ ЧЕК***** [13:25:53]line АЗС 108 [13:25:53]line Партнер нефть [13:25:53]line 02508201610067 [13:25:53]line Кассир : Аликбаева. Д. [13:25:53]line Счет N : (1)347610 [13:25:53]line 14.04.2024 13:07 [13:25:53]line ПРОДАЖА [13:25:53]line ТРК (МРК, ГНК): 71 [13:25:53]line Вид ГСМ : 2711129700 [13:25:53]line ГАЗ-К-5 [13:25:53]line 30.000 x 32.90 [13:25:53]line ИТОГ: 987.00 [13:25:53]line Тип оплаты: Талоны: Партнер нефть [13:25:53]line 1783744;1783745;1783746 [13:25:53]line ______________________ [13:25:53]line (подпись) [13:25:53]written 0, free lines is 4095 [13:25:53]Write to MH i2c: 01 00 00 71 99 0A [13:25:53]Write i2c OK [13:25:53]MH_I2C_Read... [13:25:53]Read from MH i2c: 01 [13:25:53]MH_I2C_Read... [13:25:53]Read from MH i2c: 01 07 00 [13:25:53]MH_I2C_Read... [13:25:53]Read from MH i2c: 01 07 00 71 99 00 00 00 00 00 18 0E 37 [13:25:53]RasterBufferAndPrint [13:25:53]line [13:25:53]line [13:25:53]line [13:25:53]line [13:25:53]line [13:25:53]written 0, free lines is 3609 [13:25:53]MH_Cut [13:25:53]Write to MH i2c: D1 01 00 78 99 01 E3 [13:25:53]Write i2c OK [13:25:53]MH_I2C_Read... [13:25:53]Read from MH i2c: D1 [13:25:53]MH_I2C_Read... [13:25:53]Read from MH i2c: D1 01 00 [13:25:53]MH_I2C_Read... [13:25:53]Read from MH i2c: D1 01 00 78 99 00 E2 [13:25:53]Write to MH i2c: 01 00 00 79 99 12 [13:25:53]Write i2c OK [13:25:53]MH_I2C_Read... [13:25:54]*** Cut start [13:25:54]*** Partial cut [13:25:54]*** CUTSNS_PIN = 1 [13:25:54]*** CUTSNS_PIN = 0 [13:25:54]*** Brake cut motor [13:25:55]Read from MH i2c: 01 [13:25:55]MH_I2C_Read... [13:25:55]Read from MH i2c: 01 07 00 [13:25:55]MH_I2C_Read... [13:25:55]*** Stop cut motor [13:25:55]*** Cut end [13:25:55]Read from MH i2c: 01 07 00 79 99 00 00 00 00 00 FF 0F 27 [13:25:55]process_action print_text done [13:25:55]requested_data is exist [13:25:55]produce_requested_data [13:25:55]requested_item fm.sn is exist - process it [13:25:55]wFMCommunicate request_size=4 [13:25:55]MH_SAM_APDU [13:25:55]CAPDU: 80 11 00 00 [13:25:55]Write to MH i2c: E2 08 00 7A 99 80 11 00 00 00 00 00 00 8D [13:25:55]Write i2c OK [13:25:55]MH_I2C_Read... [13:25:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:25:55]Read from MH i2c: E2 [13:25:55]MH_I2C_Read... [13:25:55]Read from MH i2c: E2 17 00 [13:25:55]MH_I2C_Read... [13:25:55]Read from MH i2c: E2 17 00 7A 99 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 DC [13:25:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:25:55]wFMCommunicate OK [13:25:55]requested_item fd.num is exist - process it [13:25:55]SAM_PROTO_GetFieldsCounters [13:25:55]wFMCommunicate request_size=4 [13:25:55]MH_SAM_APDU [13:25:55]CAPDU: 80 13 00 00 [13:25:55]Write to MH i2c: E2 08 00 7B 99 80 13 00 00 00 00 00 00 90 [13:25:55]Write i2c OK [13:25:55]MH_I2C_Read... [13:25:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:25:55]Read from MH i2c: E2 [13:25:55]MH_I2C_Read... [13:25:55]Read from MH i2c: E2 62 00 [13:25:55]MH_I2C_Read... [13:25:55]Read from MH i2c: E2 62 00 7B 99 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 2C 72 00 00 0E 04 04 00 74 00 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 7E [13:25:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 2C 72 00 00 0E 04 04 00 74 00 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 [13:25:55]wFMCommunicate OK [13:25:55]SAM_PROTO_GetFieldsCounters done [13:25:55]requested_item shift.num is exist - process it [13:25:55]requested_item shift.opened is exist - process it [13:25:55]req_shift_opened [13:25:55]FM_GetShiftState [13:25:55]SAM_PROTO_GetShiftState [13:25:55]wFMCommunicate request_size=4 [13:25:55]MH_SAM_APDU [13:25:55]CAPDU: 80 13 01 00 [13:25:55]Write to MH i2c: E2 08 00 7C 99 80 13 01 00 00 00 00 00 92 [13:25:55]Write i2c OK [13:25:55]MH_I2C_Read... [13:25:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:25:55]Read from MH i2c: E2 [13:25:55]MH_I2C_Read... [13:25:55]Read from MH i2c: E2 0E 00 [13:25:55]MH_I2C_Read... [13:25:55]Read from MH i2c: E2 0E 00 7C 99 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 3E [13:25:55]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [13:25:55]wFMCommunicate OK [13:25:55]SAM_PROTO_GetShiftState done [13:25:55]FM_GetShiftState done [13:25:55]req_shift_opened done [13:25:55]requested_item shift.open_date is exist - process it [13:25:55]req_shift_open_date [13:25:55]req_shift_open_date done [13:25:55]produce_requested_data done [13:25:55]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29228,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [13:25:55]process_action_free print_text [13:25:55]json_value_free [13:25:55]json_value_free done [13:25:55]process_json_proto returns [13:25:55]Send response to host [13:25:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29228,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [13:25:55]free response buf [13:25:55]execute_script done [13:25:55]execute_script returns [13:25:55]free content buf [13:25:55]Sock 7.Close socket [13:25:55]Sock 7.Thread stoped [13:25:56]OFD Sender: No OFD packet to send [13:26:01]OFD Sender: No OFD packet to send [13:26:06]OFD Sender: No OFD packet to send [13:26:11]OFD Sender: No OFD packet to send [13:26:16]OFD Sender: No OFD packet to send [13:26:21]OFD Sender: No OFD packet to send [13:26:26]OFD Sender: No OFD packet to send [13:26:31]OFD Sender: No OFD packet to send [13:26:36]OFD Sender: No OFD packet to send [13:26:41]OFD Sender: No OFD packet to send [13:26:46]OFD Sender: No OFD packet to send [13:26:51]OFD Sender: No OFD packet to send [13:26:56]OFD Sender: No OFD packet to send [13:27:01]OFD Sender: No OFD packet to send [13:27:06]OFD Sender: No OFD packet to send [13:27:11]OFD Sender: No OFD packet to send [13:27:16]OFD Sender: No OFD packet to send [13:27:21]OFD Sender: No OFD packet to send [13:27:26]OFD Sender: No OFD packet to send [13:27:31]OFD Sender: No OFD packet to send [13:27:36]OFD Sender: No OFD packet to send [13:27:41]OFD Sender: No OFD packet to send [13:27:46]OFD Sender: No OFD packet to send [13:27:51]OFD Sender: No OFD packet to send [13:27:56]OFD Sender: No OFD packet to send [13:28:01]OFD Sender: No OFD packet to send [13:28:06]OFD Sender: No OFD packet to send [13:28:11]OFD Sender: No OFD packet to send [13:28:16]OFD Sender: No OFD packet to send [13:28:21]OFD Sender: No OFD packet to send [13:28:26]OFD Sender: No OFD packet to send [13:28:31]OFD Sender: No OFD packet to send [13:28:36]OFD Sender: No OFD packet to send [13:28:41]OFD Sender: No OFD packet to send [13:28:46]OFD Sender: No OFD packet to send [13:28:51]OFD Sender: No OFD packet to send [13:28:56]OFD Sender: No OFD packet to send [13:29:01]OFD Sender: No OFD packet to send [13:29:06]OFD Sender: No OFD packet to send [13:29:11]OFD Sender: No OFD packet to send [13:29:16]OFD Sender: No OFD packet to send [13:29:21]OFD Sender: No OFD packet to send [13:29:26]OFD Sender: No OFD packet to send [13:29:31]OFD Sender: No OFD packet to send [13:29:36]OFD Sender: No OFD packet to send [13:29:41]OFD Sender: No OFD packet to send [13:29:46]OFD Sender: No OFD packet to send [13:29:51]OFD Sender: No OFD packet to send [13:29:56]OFD Sender: No OFD packet to send [13:30:01]OFD Sender: No OFD packet to send [13:30:06]OFD Sender: No OFD packet to send [13:30:11]OFD Sender: No OFD packet to send [13:30:16]OFD Sender: No OFD packet to send [13:30:21]OFD Sender: No OFD packet to send [13:30:26]OFD Sender: No OFD packet to send [13:30:31]OFD Sender: No OFD packet to send [13:30:36]OFD Sender: No OFD packet to send [13:30:41]OFD Sender: No OFD packet to send [13:30:46]OFD Sender: No OFD packet to send [13:30:51]OFD Sender: No OFD packet to send [13:30:56]OFD Sender: No OFD packet to send [13:31:01]OFD Sender: No OFD packet to send [13:31:06]OFD Sender: No OFD packet to send [13:31:11]OFD Sender: No OFD packet to send [13:31:16]OFD Sender: No OFD packet to send [13:31:21]OFD Sender: No OFD packet to send [13:31:26]OFD Sender: No OFD packet to send [13:31:31]OFD Sender: No OFD packet to send [13:31:36]OFD Sender: No OFD packet to send [13:31:41]OFD Sender: No OFD packet to send [13:31:46]OFD Sender: No OFD packet to send [13:31:51]OFD Sender: No OFD packet to send [13:31:56]OFD Sender: No OFD packet to send [13:32:01]OFD Sender: No OFD packet to send [13:32:06]OFD Sender: No OFD packet to send [13:32:11]OFD Sender: No OFD packet to send [13:32:16]OFD Sender: No OFD packet to send [13:32:17]accept exits with 9 [13:32:17]New connection [13:32:17]New thread 3066928484 created [13:32:17]Thread 3066785124 joined [13:32:17]Waiting for new connection... [13:32:17] Sock 9.Parse request [13:32:17]Sock 9.Check first char [13:32:17]Sock 9.First char is OK [13:32:17]request: POST /json_proto HTTP/1.0 [13:32:17]Method: POST [13:32:17]URL: /json_proto [13:32:17]Method is POST - this is cgi request [13:32:17]url: /json_proto [13:32:17]query_string will be loaded in cgi processing [13:32:17]execute_cgi json_proto POST (null) [13:32:17]execute_cgi path=json_proto method=POST [13:32:17]POST find Content-Length [13:32:17]Host: 172.17.33.3:8080 [13:32:17]Content-Length: 801 [13:32:17]Content-Type: application/json [13:32:17] [13:32:17]POST finish read [13:32:17]Found Content-Length = 801 [13:32:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347611", "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 }]} ], "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.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:32:17]execute_script... [13:32: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)347611", "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 }]} ], "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.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:32:17]POST & json_proto [13:32:17]process_json_proto [13:32:17]json parsed OK: [13:32:17]protocol is kg_v1.0 [13:32:17]action value=close_receipt [13:32:17]process_action close_receipt [13:32:17]cmd_close_receipt [13:32:17]MH_GetDate [13:32:17]Write to MH i2c: F0 00 00 7D 99 05 [13:32:17]Write i2c OK [13:32:17]MH_I2C_Read... [13:32:17]Read from MH i2c: F0 [13:32:17]MH_I2C_Read... [13:32:17]Read from MH i2c: F0 09 00 [13:32:17]MH_I2C_Read... [13:32:17]Read from MH i2c: F0 09 00 7D 99 00 EB DA 1B 66 23 5B 8F 65 C6 [13:32:17]GetLastDocTimeStamp 1713100723 [13:32:17]current date 1713101547 [13:32:17]FM_GetShiftState [13:32:17]SAM_PROTO_GetShiftState [13:32:17]wFMCommunicate request_size=4 [13:32:17]MH_SAM_APDU [13:32:17]CAPDU: 80 13 01 00 [13:32:17]Write to MH i2c: E2 08 00 7E 99 80 13 01 00 00 00 00 00 94 [13:32:17]Write i2c OK [13:32:17]MH_I2C_Read... [13:32:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:32:17]Read from MH i2c: E2 [13:32:17]MH_I2C_Read... [13:32:17]Read from MH i2c: E2 0E 00 [13:32:17]MH_I2C_Read... [13:32:17]Read from MH i2c: E2 0E 00 7E 99 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 40 [13:32:17]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [13:32:17]wFMCommunicate OK [13:32:17]SAM_PROTO_GetShiftState done [13:32:17]FM_GetShiftState done [13:32:17]opened in 1713053951 [13:32:17]opened+sec_in_day 1713140351 [13:32:17]quantity*price = 100039 [13:32:17]sum+1 = 100041 [13:32:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.40 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 0.00 Безнал.: 1000.40 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 139 14.04.2024 13:32 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29229 ФПД: 146216809325005 1/tax-web-control/client/api/v1/ticket?date=20240414T133227&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29229&fm=146216809325005&tin=02508201610067®Number=0000138879044617&sum=100040 [13:32:18]StoreToDocumentArchive [13:32:18]shift 116 fd 29229 [13:32:18]save to /storage/0116/doc_00029229 [13:32:18]save last doc name /storage/0116/doc_00029229 to /storage/kkm_last_doc_name [13:32:18]save OK [13:32:18]Clear old archive folders... [13:32:18]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:32:18]tlvbuf is 0120E5B0 [13:32:18]SAM_PROTO_ClearQueue [13:32:18]wFMCommunicate request_size=4 [13:32:18]MH_SAM_APDU [13:32:18]CAPDU: 80 09 00 00 [13:32:18]Write to MH i2c: E2 08 00 8B 99 80 09 00 00 00 00 00 00 96 [13:32:18]Write i2c OK [13:32:18]MH_I2C_Read... [13:32:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:32:18]Read from MH i2c: E2 [13:32:18]MH_I2C_Read... [13:32:18]Read from MH i2c: E2 03 00 [13:32:18]MH_I2C_Read... [13:32:18]Read from MH i2c: E2 03 00 8B 99 00 90 00 98 [13:32:18]RAPDU: 90 00 [13:32:18]wFMCommunicate OK [13:32:18]SAM_PROTO_ClearQueue done [13:32:18]KKMCreateOFDPacket [13:32:18]OFDProtocolAddRootSTLVToBuf [13:32:18]FM_MakeSignedData [13:32:18]FM_MakeSignedData [13:32:18]SAM_PROTO_SignData [13:32:18]wFMCommunicate request_size=4 [13:32:18]MH_SAM_APDU [13:32:18]CAPDU: 80 0D 01 02 [13:32:18]Write to MH i2c: E2 08 00 8C 99 80 0D 01 02 00 00 00 00 9E [13:32:18]Write i2c OK [13:32:18]MH_I2C_Read... [13:32:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:32:18]Read from MH i2c: E2 [13:32:18]MH_I2C_Read... [13:32:18]Read from MH i2c: E2 03 00 [13:32:18]MH_I2C_Read... [13:32:18]Read from MH i2c: E2 03 00 8C 99 00 90 00 99 [13:32:18]RAPDU: 90 00 [13:32:18]wFMCommunicate OK [13:32:18]wFMCommunicate request_size=255 [13:32:18]MH_SAM_APDU [13:32: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 2D 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 8B 00 00 00 F4 03 04 00 EB DA 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2D 72 00 00 35 04 06 00 [13:32:18]Write to MH i2c: E2 02 01 8D 99 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 8B 00 00 00 F4 03 04 00 EB DA 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2D 72 00 00 35 04 06 00 00 00 0F [13:32:18]Write i2c OK [13:32:18]MH_I2C_Read... [13:32:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:32:18]Read from MH i2c: E2 [13:32:18]MH_I2C_Read... [13:32:18]Read from MH i2c: E2 03 00 [13:32:18]MH_I2C_Read... [13:32:18]Read from MH i2c: E2 03 00 8D 99 00 90 00 9A [13:32:18]RAPDU: 90 00 [13:32:18]wFMCommunicate OK [13:32:18]wFMCommunicate request_size=11 [13:32:18]MH_SAM_APDU [13:32:18]CAPDU: 80 0D 02 02 06 84 FB C0 FA E1 CD [13:32:18]Write to MH i2c: E2 0E 00 8E 99 80 0D 02 02 06 00 84 FB C0 FA E1 CD 00 00 94 [13:32:18]Write i2c OK [13:32:18]MH_I2C_Read... [13:32:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:32:18]Read from MH i2c: E2 [13:32:18]MH_I2C_Read... [13:32:18]Read from MH i2c: E2 03 00 [13:32:18]MH_I2C_Read... [13:32:18]Read from MH i2c: E2 03 00 8E 99 00 90 00 9B [13:32:18]RAPDU: 90 00 [13:32:18]wFMCommunicate OK [13:32:18]wFMCommunicate request_size=4 [13:32:18]MH_SAM_APDU [13:32:18]CAPDU: 80 0D 03 02 [13:32:18]Write to MH i2c: E2 08 00 8F 99 80 0D 03 02 00 00 00 00 A3 [13:32:18]Write i2c OK [13:32:18]MH_I2C_Read... [13:32:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:32:18]Read from MH i2c: E2 [13:32:18]MH_I2C_Read... [13:32:18]Read from MH i2c: E2 0B 00 [13:32:18]MH_I2C_Read... [13:32:18]Read from MH i2c: E2 0B 00 8F 99 00 17 68 18 6E C6 24 F2 AF 90 00 34 [13:32:18]RAPDU: 17 68 18 6E C6 24 F2 AF 90 00 [13:32:18]wFMCommunicate OK [13:32:18]SAM_PROTO_SignData done [13:32:18]FM_MakeSignedData done [13:32:18]CreateOFDProtocolMessage [13:32:18]wFMCommunicate request_size=4 [13:32:18]MH_SAM_APDU [13:32:18]CAPDU: 80 11 00 00 [13:32:18]Write to MH i2c: E2 08 00 90 99 80 11 00 00 00 00 00 00 A3 [13:32:18]Write i2c OK [13:32:18]MH_I2C_Read... [13:32:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:32:18]Read from MH i2c: E2 [13:32:18]MH_I2C_Read... [13:32:18]Read from MH i2c: E2 17 00 [13:32:18]MH_I2C_Read... [13:32:18]Read from MH i2c: E2 17 00 90 99 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F2 [13:32:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:32:18]wFMCommunicate OK [13:32:18]CreateOFDProtocolMessage done [13:32:18]OFDSenderStorePacket 29229 [13:32:18]StoreOFDPacket docnum=29229 [13:32:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 2E 68 08 01 42 81 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 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 8B 00 00 00 F4 03 04 00 EB DA 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2D 72 00 00 35 04 06 00 84 FB C0 FA E1 CD 17 68 18 6E C6 24 F2 AF [13:32:18]CheckFolder [13:32:18]dirname=/storage/ofd_packets [13:32:18]CheckFolder done [13:32:18]ProducePacketName [13:32:18]name=ofd_packets/00029229 [13:32:18]NVStorageSaveData ofd_packets/00029229 [13:32:18]File name is /storage/ofd_packets/00029229 [13:32:18]Write 302 bytes [13:32:18]NVStorageSaveData done [13:32:18]OFDSenderStorePacket done [13:32:18]KKMCreateOFDPacket done [13:32:18]NVStorageSaveData kkm_last_timestamp [13:32:18]File name is /storage/kkm_last_timestamp [13:32:18]Write 4 bytes [13:32:18]NVStorageSaveData done [13:32:18]ExternCall_PrintAddStr [13:32:18]wPrintStart [13:32:18]Write to MH i2c: 01 00 00 91 99 2A [13:32:18]Write i2c OK [13:32:18]MH_I2C_Read... [13:32:18]Read from MH i2c: 01 [13:32:18]MH_I2C_Read... [13:32:18]Read from MH i2c: 01 07 00 [13:32:18]MH_I2C_Read... [13:32:18]Read from MH i2c: 01 07 00 91 99 00 00 00 00 00 FF 0F 3F [13:32:18]RasterBufferAndPrint [13:32:18]line Счет N : (1)347611 [13:32:18]line ИНН: 02508201610067 [13:32:18]line Контрольно-Кассовый Чек [13:32:18]line ПРОДАЖА [13:32:18]line ТРК (МРК, ГНК) : 31 [13:32:18]line Товар: 2710124130 [13:32:18]line SUPER-92-К-5 [13:32:18]line 15.320 * 65.30 [13:32:18]line = 1000.40 [13:32:18]line НДС 12% НСП 1% [13:32:18]line > о реализуемом товаре [13:32:18]line ИТОГО: 1000.40 [13:32:18]line НСП 1% : 8.85 [13:32:18]line НДС 12% : 106.24 [13:32:18]line Наличными: 0.00 [13:32:18]line Безнал.: 1000.40 [13:32:18]line Место: АЗС № 108 "Партнер Нефть" [13:32:18]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [13:32:18]line СНО: Общий режим [13:32:18]line Чек 139 14.04.2024 13:32 [13:32:18]line Смена: 116 ФФД: 1.0 [13:32:18]line ЗНМ: 0300000027 [13:32:18]line РНМ: 0000138879044617 [13:32:18]line Версия ККМ: 001 [13:32:18]line Платежная система: О! деньги [13:32:18]line ФМ: 0000000000963154 [13:32:18]line ФД: 29229 [13:32:18]line ФПД: 146216809325005 [13:32:18]line 1/tax-web-control/client/api/v1/ticket?date=20240414T133227&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29229&fm=146216809325005&tin=02508201610067®Number=0000138879044617&sum=100040 [13:32:19]OFD Sender: Processing packet 29229 [packets to send 8, broken 7] [13:32:19]ProducePacketName [13:32:19]name=ofd_packets/00029229 [13:32:19]OFD Sender: To server: pG, [13:32:19]CommunicateWithHost lk.salyk.kg:30040 [13:32:19]ConnectInit lk.salyk.kg [13:32:19]written 0, free lines is 4095 [13:32:19]Connected sock=10 [13:32:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 2E 68 08 01 42 81 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 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 8B 00 00 00 F4 03 04 00 EB DA 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2D 72 00 00 35 04 06 00 84 FB C0 FA E1 CD 17 68 18 6E C6 24 F2 AF [13:32:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 7C 31 47 00 F8 AE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2D 72 00 00 F4 03 04 00 8F 85 1B 66 B6 04 01 00 00 F6 F0 63 96 81 6F EB B8 [13:32:19]CommunicateWithHost err = 0 [13:32:19]CheckOFDResponse [13:32:19]1017 (14) - 77093643461234 [13:32:19]1041 (16) - 0000000000963154 [13:32:19]1040 (4) - 29229 [13:32:19]1012 (4) - 14.04.2024 07:28 [13:32:19]1206 (1) - 0 [13:32:19]OFD Sender: Remove packet 29229 [13:32:19]ProducePacketName [13:32:19]name=ofd_packets/00029229 [13:32:19]NVStorageDeleteData [13:32:19]Write to MH i2c: 01 00 00 BA 99 53 [13:32:19]Write i2c OK [13:32:19]MH_I2C_Read... [13:32:19]Read from MH i2c: 01 [13:32:19]MH_I2C_Read... [13:32:19]Read from MH i2c: 01 07 00 [13:32:19]MH_I2C_Read... [13:32:19]Read from MH i2c: 01 07 00 BA 99 00 00 00 00 00 DF 0C 45 [13:32:19]RasterBufferAndPrint [13:32:19]line [13:32:19]line [13:32:19]line [13:32:19]line [13:32:19]line [13:32:19]written 0, free lines is 3302 [13:32:19]MH_Cut [13:32:19]Write to MH i2c: D1 01 00 C1 99 01 2C [13:32:19]Write i2c OK [13:32:19]MH_I2C_Read... [13:32:19]Read from MH i2c: D1 [13:32:19]MH_I2C_Read... [13:32:19]Read from MH i2c: D1 01 00 [13:32:19]MH_I2C_Read... [13:32:19]Read from MH i2c: D1 01 00 C1 99 00 2B [13:32:19]Write to MH i2c: 01 00 00 C2 99 5B [13:32:19]Write i2c OK [13:32:19]MH_I2C_Read... [13:32:19]OFD Sender: No OFD packet to send [13:32:20]*** Cut start [13:32:20]*** Partial cut [13:32:20]*** CUTSNS_PIN = 1 [13:32:20]*** CUTSNS_PIN = 0 [13:32:20]*** Brake cut motor [13:32:21]Read from MH i2c: 01 [13:32:21]MH_I2C_Read... [13:32:21]*** Stop cut motor [13:32:21]*** Cut end [13:32:21]Read from MH i2c: 01 07 00 [13:32:21]MH_I2C_Read... [13:32:21]Read from MH i2c: 01 07 00 C2 99 00 00 00 00 00 FF 0F 70 [13:32:21]process_action close_receipt done [13:32:21]requested_data is exist [13:32:21]produce_requested_data [13:32:21]requested_item fm.sn is exist - process it [13:32:21]wFMCommunicate request_size=4 [13:32:21]MH_SAM_APDU [13:32:21]CAPDU: 80 11 00 00 [13:32:21]Write to MH i2c: E2 08 00 C3 99 80 11 00 00 00 00 00 00 D6 [13:32:21]Write i2c OK [13:32:21]MH_I2C_Read... [13:32:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:32:21]Read from MH i2c: E2 [13:32:21]MH_I2C_Read... [13:32:21]Read from MH i2c: E2 17 00 [13:32:21]MH_I2C_Read... [13:32:21]Read from MH i2c: E2 17 00 C3 99 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 25 [13:32:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:32:21]wFMCommunicate OK [13:32:21]requested_item fd.num is exist - process it [13:32:21]SAM_PROTO_GetFieldsCounters [13:32:21]wFMCommunicate request_size=4 [13:32:21]MH_SAM_APDU [13:32:21]CAPDU: 80 13 00 00 [13:32:21]Write to MH i2c: E2 08 00 C4 99 80 13 00 00 00 00 00 00 D9 [13:32:21]Write i2c OK [13:32:21]MH_I2C_Read... [13:32:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:32:21]Read from MH i2c: E2 [13:32:21]MH_I2C_Read... [13:32:21]Read from MH i2c: E2 62 00 [13:32:21]MH_I2C_Read... [13:32:21]Read from MH i2c: E2 62 00 C4 99 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 2D 72 00 00 0E 04 04 00 74 00 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 CB [13:32:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 2D 72 00 00 0E 04 04 00 74 00 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 [13:32:21]wFMCommunicate OK [13:32:21]SAM_PROTO_GetFieldsCounters done [13:32:21]requested_item shift.num is exist - process it [13:32:21]requested_item shift.opened is exist - process it [13:32:21]req_shift_opened [13:32:21]FM_GetShiftState [13:32:21]SAM_PROTO_GetShiftState [13:32:21]wFMCommunicate request_size=4 [13:32:21]MH_SAM_APDU [13:32:21]CAPDU: 80 13 01 00 [13:32:21]Write to MH i2c: E2 08 00 C5 99 80 13 01 00 00 00 00 00 DB [13:32:21]Write i2c OK [13:32:21]MH_I2C_Read... [13:32:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:32:21]Read from MH i2c: E2 [13:32:21]MH_I2C_Read... [13:32:21]Read from MH i2c: E2 0E 00 [13:32:21]MH_I2C_Read... [13:32:21]Read from MH i2c: E2 0E 00 C5 99 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 87 [13:32:21]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [13:32:21]wFMCommunicate OK [13:32:21]SAM_PROTO_GetShiftState done [13:32:21]FM_GetShiftState done [13:32:21]req_shift_opened done [13:32:21]requested_item shift.open_date is exist - process it [13:32:21]req_shift_open_date [13:32:21]req_shift_open_date done [13:32:21]produce_requested_data done [13:32:21]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29229,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [13:32:21]process_action_free close_receipt [13:32:21]json_value_free [13:32:21]json_value_free done [13:32:21]process_json_proto returns [13:32:21]Send response to host [13:32:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29229,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [13:32:21]free response buf [13:32:21]execute_script done [13:32:21]execute_script returns [13:32:21]free content buf [13:32:21]Sock 9.Close socket [13:32:21]Sock 9.Thread stoped [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:59]OFD Sender: No OFD packet to send [13:33:04]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:27]accept exits with 7 [13:34:27]New connection [13:34:27]New thread 3066785124 created [13:34:27]Thread 3066928484 joined [13:34:27]Waiting for new connection... [13:34:27] Sock 7.Parse request [13:34:27]Sock 7.Check first char [13:34:27]Sock 7.First char is OK [13:34:27]request: POST /json_proto HTTP/1.0 [13:34:27]Method: POST [13:34:27]URL: /json_proto [13:34:27]Method is POST - this is cgi request [13:34:27]url: /json_proto [13:34:27]query_string will be loaded in cgi processing [13:34:27]execute_cgi json_proto POST (null) [13:34:27]execute_cgi path=json_proto method=POST [13:34:27]POST find Content-Length [13:34:27]Host: 172.17.33.3:8080 [13:34:27]Content-Length: 1164 [13:34:27]Content-Type: application/json [13:34:27] [13:34:27]POST finish read [13:34:27]Found Content-Length = 1164 [13:34:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043B\u0438\u043A\u0431\u0430\u0435\u0432\u0430. \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)347612\u000A14.04.2024 13:16\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 13\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 64.30\u000A\u0418\u0422\u041E\u0413: 1929.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30026373\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:34:27]execute_script... [13:34:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043B\u0438\u043A\u0431\u0430\u0435\u0432\u0430. \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)347612\u000A14.04.2024 13:16\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 13\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 64.30\u000A\u0418\u0422\u041E\u0413: 1929.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30026373\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:34:27]POST & json_proto [13:34:27]process_json_proto [13:34:27]json parsed OK: [13:34:27]protocol is kg_v1.0 [13:34:27]action value=print_text [13:34:27]process_action print_text [13:34:27]cmd_print_text [13:34:27]ExternCall_PrintAddStr [13:34:27]wPrintStart [13:34:27]Write to MH i2c: 01 00 00 C6 99 5F [13:34:27]Write i2c OK [13:34:27]MH_I2C_Read... [13:34:27]Read from MH i2c: 01 [13:34:27]MH_I2C_Read... [13:34:27]Read from MH i2c: 01 07 00 [13:34:27]MH_I2C_Read... [13:34:27]Read from MH i2c: 01 07 00 C6 99 00 00 00 00 00 FF 0F 74 [13:34:27]RasterBufferAndPrint [13:34:27]line *****ТОВАРНЫЙ ЧЕК***** [13:34:27]line АЗС 108 [13:34:27]line Партнер нефть [13:34:27]line 02508201610067 [13:34:27]line Кассир : Аликбаева. Д. [13:34:27]line Счет N : (1)347612 [13:34:27]line 14.04.2024 13:16 [13:34:27]line ПРОДАЖА [13:34:27]line ТРК (МРК, ГНК): 13 [13:34:27]line Вид ГСМ : 2710124130 [13:34:27]line Аи-92-К-5 [13:34:27]line 30.000 x 64.30 [13:34:27]line ИТОГ: 1929.00 [13:34:27]line Тип оплаты: Талоны: ТК ГПНА Online [13:34:27]line 30026373 [13:34:27]line ______________________ [13:34:27]line (подпись) [13:34:27]written 0, free lines is 4095 [13:34:27]Write to MH i2c: 01 00 00 DA 99 73 [13:34:27]Write i2c OK [13:34:27]MH_I2C_Read... [13:34:27]Read from MH i2c: 01 [13:34:27]MH_I2C_Read... [13:34:27]Read from MH i2c: 01 07 00 [13:34:27]MH_I2C_Read... [13:34:27]Read from MH i2c: 01 07 00 DA 99 00 00 00 00 00 11 0E 99 [13:34:27]RasterBufferAndPrint [13:34:27]line [13:34:27]line [13:34:27]line [13:34:27]line [13:34:27]line [13:34:27]written 0, free lines is 3603 [13:34:27]MH_Cut [13:34:27]Write to MH i2c: D1 01 00 E1 99 01 4C [13:34:27]Write i2c OK [13:34:27]MH_I2C_Read... [13:34:27]Read from MH i2c: D1 [13:34:27]MH_I2C_Read... [13:34:27]Read from MH i2c: D1 01 00 [13:34:27]MH_I2C_Read... [13:34:27]Read from MH i2c: D1 01 00 E1 99 00 4B [13:34:27]Write to MH i2c: 01 00 00 E2 99 7B [13:34:27]Write i2c OK [13:34:27]MH_I2C_Read... [13:34:27]*** Cut start [13:34:27]*** Partial cut [13:34:27]*** CUTSNS_PIN = 1 [13:34:27]*** CUTSNS_PIN = 0 [13:34:28]*** Brake cut motor [13:34:28]Read from MH i2c: 01 [13:34:28]MH_I2C_Read... [13:34:28]Read from MH i2c: 01 07 00 [13:34:28]MH_I2C_Read... [13:34:28]*** Stop cut motor [13:34:28]*** Cut end [13:34:28]Read from MH i2c: 01 07 00 E2 99 00 00 00 00 00 FF 0F 90 [13:34:28]process_action print_text done [13:34:28]requested_data is exist [13:34:28]produce_requested_data [13:34:28]requested_item fm.sn is exist - process it [13:34:28]wFMCommunicate request_size=4 [13:34:28]MH_SAM_APDU [13:34:28]CAPDU: 80 11 00 00 [13:34:28]Write to MH i2c: E2 08 00 E3 99 80 11 00 00 00 00 00 00 F6 [13:34:28]Write i2c OK [13:34:28]MH_I2C_Read... [13:34:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:34:28]Read from MH i2c: E2 [13:34:28]MH_I2C_Read... [13:34:28]Read from MH i2c: E2 17 00 [13:34:28]MH_I2C_Read... [13:34:28]Read from MH i2c: E2 17 00 E3 99 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 45 [13:34:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:34:28]wFMCommunicate OK [13:34:28]requested_item fd.num is exist - process it [13:34:28]SAM_PROTO_GetFieldsCounters [13:34:28]wFMCommunicate request_size=4 [13:34:28]MH_SAM_APDU [13:34:28]CAPDU: 80 13 00 00 [13:34:28]Write to MH i2c: E2 08 00 E4 99 80 13 00 00 00 00 00 00 F9 [13:34:28]Write i2c OK [13:34:28]MH_I2C_Read... [13:34:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:34:28]Read from MH i2c: E2 [13:34:28]MH_I2C_Read... [13:34:28]Read from MH i2c: E2 62 00 [13:34:28]MH_I2C_Read... [13:34:28]Read from MH i2c: E2 62 00 E4 99 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 2D 72 00 00 0E 04 04 00 74 00 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 EB [13:34:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 2D 72 00 00 0E 04 04 00 74 00 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 [13:34:28]wFMCommunicate OK [13:34:28]SAM_PROTO_GetFieldsCounters done [13:34:28]requested_item shift.num is exist - process it [13:34:28]requested_item shift.opened is exist - process it [13:34:28]req_shift_opened [13:34:28]FM_GetShiftState [13:34:28]SAM_PROTO_GetShiftState [13:34:28]wFMCommunicate request_size=4 [13:34:28]MH_SAM_APDU [13:34:28]CAPDU: 80 13 01 00 [13:34:28]Write to MH i2c: E2 08 00 E5 99 80 13 01 00 00 00 00 00 FB [13:34:28]Write i2c OK [13:34:28]MH_I2C_Read... [13:34:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:34:28]Read from MH i2c: E2 [13:34:28]MH_I2C_Read... [13:34:28]Read from MH i2c: E2 0E 00 [13:34:28]MH_I2C_Read... [13:34:28]Read from MH i2c: E2 0E 00 E5 99 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 A7 [13:34:28]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [13:34:28]wFMCommunicate OK [13:34:28]SAM_PROTO_GetShiftState done [13:34:28]FM_GetShiftState done [13:34:28]req_shift_opened done [13:34:28]requested_item shift.open_date is exist - process it [13:34:28]req_shift_open_date [13:34:28]req_shift_open_date done [13:34:28]produce_requested_data done [13:34:28]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29229,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [13:34:28]process_action_free print_text [13:34:28]json_value_free [13:34:28]json_value_free done [13:34:28]process_json_proto returns [13:34:28]Send response to host [13:34:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29229,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [13:34:28]free response buf [13:34:28]execute_script done [13:34:28]execute_script returns [13:34:28]free content buf [13:34:28]Sock 7.Close socket [13:34:28]Sock 7.Thread stoped [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:14]accept exits with 9 [13:36:14]New connection [13:36:14]New thread 3066928484 created [13:36:14]Thread 3066785124 joined [13:36:14]Waiting for new connection... [13:36:14] Sock 9.Parse request [13:36:14]Sock 9.Check first char [13:36:14]Sock 9.First char is OK [13:36:14]request: POST /json_proto HTTP/1.0 [13:36:14]Method: POST [13:36:14]URL: /json_proto [13:36:14]Method is POST - this is cgi request [13:36:14]url: /json_proto [13:36:14]query_string will be loaded in cgi processing [13:36:14]execute_cgi json_proto POST (null) [13:36:14]execute_cgi path=json_proto method=POST [13:36:14]POST find Content-Length [13:36:14]Host: 172.17.33.3:8080 [13:36:14]Content-Length: 1200 [13:36:14]Content-Type: application/json [13:36:14] [13:36:14]POST finish read [13:36:14]Found Content-Length = 1200 [13:36:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043B\u0438\u043A\u0431\u0430\u0435\u0432\u0430. \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)347613\u000A14.04.2024 13:18\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 20.000 x 72.50\u000A\u0418\u0422\u041E\u0413: 1450.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A2071686;2071689\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:36:14]execute_script... [13:36:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043B\u0438\u043A\u0431\u0430\u0435\u0432\u0430. \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)347613\u000A14.04.2024 13:18\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 20.000 x 72.50\u000A\u0418\u0422\u041E\u0413: 1450.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A2071686;2071689\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:36:14]POST & json_proto [13:36:14]process_json_proto [13:36:14]json parsed OK: [13:36:14]protocol is kg_v1.0 [13:36:14]action value=print_text [13:36:14]process_action print_text [13:36:14]cmd_print_text [13:36:14]ExternCall_PrintAddStr [13:36:14]wPrintStart [13:36:14]Write to MH i2c: 01 00 00 E6 99 7F [13:36:14]Write i2c OK [13:36:14]MH_I2C_Read... [13:36:14]Read from MH i2c: 01 [13:36:14]MH_I2C_Read... [13:36:14]Read from MH i2c: 01 07 00 [13:36:14]MH_I2C_Read... [13:36:14]Read from MH i2c: 01 07 00 E6 99 00 00 00 00 00 FF 0F 94 [13:36:14]RasterBufferAndPrint [13:36:14]line *****ТОВАРНЫЙ ЧЕК***** [13:36:14]line АЗС 108 [13:36:14]line Партнер нефть [13:36:14]line 02508201610067 [13:36:14]line Кассир : Аликбаева. Д. [13:36:14]line Счет N : (1)347613 [13:36:14]line 14.04.2024 13:18 [13:36:14]line ПРОДАЖА [13:36:14]line ТРК (МРК, ГНК): 33 [13:36:14]line Вид ГСМ : 2710124500 [13:36:14]line Аи-95-К-5 [13:36:14]line 20.000 x 72.50 [13:36:14]line ИТОГ: 1450.00 [13:36:14]line Тип оплаты: Талоны: Партнер нефть [13:36:14]line 2071686;2071689 [13:36:14]line ______________________ [13:36:14]line (подпись) [13:36:14]written 0, free lines is 4095 [13:36:14]Write to MH i2c: 01 00 00 FA 99 93 [13:36:14]Write i2c OK [13:36:14]MH_I2C_Read... [13:36:14]Read from MH i2c: 01 [13:36:14]MH_I2C_Read... [13:36:14]Read from MH i2c: 01 07 00 [13:36:14]MH_I2C_Read... [13:36:14]Read from MH i2c: 01 07 00 FA 99 00 00 00 00 00 16 0E BE [13:36:14]RasterBufferAndPrint [13:36:14]line [13:36:14]line [13:36:14]line [13:36:14]line [13:36:14]line [13:36:14]written 0, free lines is 3608 [13:36:14]MH_Cut [13:36:14]Write to MH i2c: D1 01 00 01 9A 01 6D [13:36:14]Write i2c OK [13:36:14]MH_I2C_Read... [13:36:14]Read from MH i2c: D1 [13:36:14]MH_I2C_Read... [13:36:14]Read from MH i2c: D1 01 00 [13:36:14]MH_I2C_Read... [13:36:14]Read from MH i2c: D1 01 00 01 9A 00 6C [13:36:14]Write to MH i2c: 01 00 00 02 9A 9C [13:36:14]Write i2c OK [13:36:14]MH_I2C_Read... [13:36:14]*** Cut start [13:36:14]*** Partial cut [13:36:14]*** CUTSNS_PIN = 1 [13:36:15]*** CUTSNS_PIN = 0 [13:36:15]OFD Sender: No OFD packet to send [13:36:15]*** Brake cut motor [13:36:15]Read from MH i2c: 01 [13:36:15]MH_I2C_Read... [13:36:15]*** Stop cut motor [13:36:15]*** Cut end [13:36:15]Read from MH i2c: 01 07 00 [13:36:15]MH_I2C_Read... [13:36:15]Read from MH i2c: 01 07 00 02 9A 00 00 00 00 00 FF 0F B1 [13:36:15]process_action print_text done [13:36:15]requested_data is exist [13:36:15]produce_requested_data [13:36:15]requested_item fm.sn is exist - process it [13:36:15]wFMCommunicate request_size=4 [13:36:15]MH_SAM_APDU [13:36:15]CAPDU: 80 11 00 00 [13:36:15]Write to MH i2c: E2 08 00 03 9A 80 11 00 00 00 00 00 00 17 [13:36:15]Write i2c OK [13:36:15]MH_I2C_Read... [13:36:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:36:15]Read from MH i2c: E2 [13:36:15]MH_I2C_Read... [13:36:15]Read from MH i2c: E2 17 00 [13:36:15]MH_I2C_Read... [13:36:15]Read from MH i2c: E2 17 00 03 9A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 66 [13:36:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:36:15]wFMCommunicate OK [13:36:15]requested_item fd.num is exist - process it [13:36:15]SAM_PROTO_GetFieldsCounters [13:36:15]wFMCommunicate request_size=4 [13:36:15]MH_SAM_APDU [13:36:15]CAPDU: 80 13 00 00 [13:36:15]Write to MH i2c: E2 08 00 04 9A 80 13 00 00 00 00 00 00 1A [13:36:15]Write i2c OK [13:36:15]MH_I2C_Read... [13:36:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:36:15]Read from MH i2c: E2 [13:36:15]MH_I2C_Read... [13:36:15]Read from MH i2c: E2 62 00 [13:36:15]MH_I2C_Read... [13:36:15]Read from MH i2c: E2 62 00 04 9A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 2D 72 00 00 0E 04 04 00 74 00 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 0C [13:36:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 2D 72 00 00 0E 04 04 00 74 00 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 [13:36:15]wFMCommunicate OK [13:36:15]SAM_PROTO_GetFieldsCounters done [13:36:15]requested_item shift.num is exist - process it [13:36:15]requested_item shift.opened is exist - process it [13:36:15]req_shift_opened [13:36:15]FM_GetShiftState [13:36:15]SAM_PROTO_GetShiftState [13:36:15]wFMCommunicate request_size=4 [13:36:15]MH_SAM_APDU [13:36:15]CAPDU: 80 13 01 00 [13:36:15]Write to MH i2c: E2 08 00 05 9A 80 13 01 00 00 00 00 00 1C [13:36:15]Write i2c OK [13:36:15]MH_I2C_Read... [13:36:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:36:15]Read from MH i2c: E2 [13:36:15]MH_I2C_Read... [13:36:15]Read from MH i2c: E2 0E 00 [13:36:15]MH_I2C_Read... [13:36:15]Read from MH i2c: E2 0E 00 05 9A 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 C8 [13:36:15]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [13:36:15]wFMCommunicate OK [13:36:15]SAM_PROTO_GetShiftState done [13:36:15]FM_GetShiftState done [13:36:15]req_shift_opened done [13:36:15]requested_item shift.open_date is exist - process it [13:36:15]req_shift_open_date [13:36:15]req_shift_open_date done [13:36:15]produce_requested_data done [13:36:15]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29229,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [13:36:15]process_action_free print_text [13:36:15]json_value_free [13:36:15]json_value_free done [13:36:15]process_json_proto returns [13:36:15]Send response to host [13:36:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29229,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [13:36:15]free response buf [13:36:15]execute_script done [13:36:15]execute_script returns [13:36:15]free content buf [13:36:15]Sock 9.Close socket [13:36:15]Sock 9.Thread stoped [13:36:20]OFD Sender: No OFD packet to send [13:36:25]OFD Sender: No OFD packet to send [13:36:30]OFD Sender: No OFD packet to send [13:36:35]OFD Sender: No OFD packet to send [13:36:40]OFD Sender: No OFD packet to send [13:36:45]OFD Sender: No OFD packet to send [13:36:50]OFD Sender: No OFD packet to send [13:36:55]OFD Sender: No OFD packet to send [13:37:00]OFD Sender: No OFD packet to send [13:37:05]OFD Sender: No OFD packet to send [13:37:10]OFD Sender: No OFD packet to send [13:37:15]OFD Sender: No OFD packet to send [13:37:20]OFD Sender: No OFD packet to send [13:37:25]OFD Sender: No OFD packet to send [13:37:30]OFD Sender: No OFD packet to send [13:37:35]OFD Sender: No OFD packet to send [13:37:40]OFD Sender: No OFD packet to send [13:37:45]OFD Sender: No OFD packet to send [13:37:50]OFD Sender: No OFD packet to send [13:37:55]OFD Sender: No OFD packet to send [13:38:00]OFD Sender: No OFD packet to send [13:38:05]OFD Sender: No OFD packet to send [13:38:10]OFD Sender: No OFD packet to send [13:38:15]OFD Sender: No OFD packet to send [13:38:20]OFD Sender: No OFD packet to send [13:38:25]OFD Sender: No OFD packet to send [13:38:30]OFD Sender: No OFD packet to send [13:38:35]OFD Sender: No OFD packet to send [13:38:40]OFD Sender: No OFD packet to send [13:38:45]OFD Sender: No OFD packet to send [13:38:50]OFD Sender: No OFD packet to send [13:38:55]OFD Sender: No OFD packet to send [13:39:00]OFD Sender: No OFD packet to send [13:39:05]OFD Sender: No OFD packet to send [13:39:10]OFD Sender: No OFD packet to send [13:39:15]OFD Sender: No OFD packet to send [13:39:20]OFD Sender: No OFD packet to send [13:39:25]OFD Sender: No OFD packet to send [13:39:30]OFD Sender: No OFD packet to send [13:39:35]OFD Sender: No OFD packet to send [13:39:40]OFD Sender: No OFD packet to send [13:39:45]OFD Sender: No OFD packet to send [13:39:50]OFD Sender: No OFD packet to send [13:39:55]OFD Sender: No OFD packet to send [13:40:00]OFD Sender: No OFD packet to send [13:40:05]OFD Sender: No OFD packet to send [13:40:10]OFD Sender: No OFD packet to send [13:40:15]OFD Sender: No OFD packet to send [13:40:20]OFD Sender: No OFD packet to send [13:40:25]OFD Sender: No OFD packet to send [13:40:30]OFD Sender: No OFD packet to send [13:40:35]OFD Sender: No OFD packet to send [13:40:40]OFD Sender: No OFD packet to send [13:40:45]OFD Sender: No OFD packet to send [13:40:50]OFD Sender: No OFD packet to send [13:40:55]OFD Sender: No OFD packet to send [13:41:00]OFD Sender: No OFD packet to send [13:41:05]OFD Sender: No OFD packet to send [13:41:10]OFD Sender: No OFD packet to send [13:41:15]OFD Sender: No OFD packet to send [13:41:20]OFD Sender: No OFD packet to send [13:41:25]OFD Sender: No OFD packet to send [13:41:30]OFD Sender: No OFD packet to send [13:41:35]OFD Sender: No OFD packet to send [13:41:40]OFD Sender: No OFD packet to send [13:41:45]OFD Sender: No OFD packet to send [13:41:50]OFD Sender: No OFD packet to send [13:41:55]OFD Sender: No OFD packet to send [13:42:00]OFD Sender: No OFD packet to send [13:42:05]OFD Sender: No OFD packet to send [13:42:10]OFD Sender: No OFD packet to send [13:42:15]OFD Sender: No OFD packet to send [13:42:20]OFD Sender: No OFD packet to send [13:42:25]OFD Sender: No OFD packet to send [13:42:30]OFD Sender: No OFD packet to send [13:42:35]OFD Sender: No OFD packet to send [13:42:40]OFD Sender: No OFD packet to send [13:42:45]OFD Sender: No OFD packet to send [13:42:50]OFD Sender: No OFD packet to send [13:42:55]OFD Sender: No OFD packet to send [13:43:00]OFD Sender: No OFD packet to send [13:43:05]OFD Sender: No OFD packet to send [13:43:10]OFD Sender: No OFD packet to send [13:43:15]OFD Sender: No OFD packet to send [13:43:20]OFD Sender: No OFD packet to send [13:43:25]OFD Sender: No OFD packet to send [13:43:30]OFD Sender: No OFD packet to send [13:43:35]OFD Sender: No OFD packet to send [13:43:40]OFD Sender: No OFD packet to send [13:43:45]OFD Sender: No OFD packet to send [13:43:50]OFD Sender: No OFD packet to send [13:43:55]OFD Sender: No OFD packet to send [13:44:00]OFD Sender: No OFD packet to send [13:44:05]OFD Sender: No OFD packet to send [13:44:10]OFD Sender: No OFD packet to send [13:44:15]OFD Sender: No OFD packet to send [13:44:20]OFD Sender: No OFD packet to send [13:44:25]OFD Sender: No OFD packet to send [13:44:30]OFD Sender: No OFD packet to send [13:44:35]OFD Sender: No OFD packet to send [13:44:40]OFD Sender: No OFD packet to send [13:44:45]OFD Sender: No OFD packet to send [13:44:50]OFD Sender: No OFD packet to send [13:44:55]OFD Sender: No OFD packet to send [13:45:00]OFD Sender: No OFD packet to send [13:45:05]OFD Sender: No OFD packet to send [13:45:10]OFD Sender: No OFD packet to send [13:45:15]OFD Sender: No OFD packet to send [13:45:20]OFD Sender: No OFD packet to send [13:45:25]OFD Sender: No OFD packet to send [13:45:30]OFD Sender: No OFD packet to send [13:45:35]OFD Sender: No OFD packet to send [13:45:40]OFD Sender: No OFD packet to send [13:45:45]OFD Sender: No OFD packet to send [13:45:50]accept exits with 7 [13:45:50]New connection [13:45:50]New thread 3066785124 created [13:45:50]Thread 3066928484 joined [13:45:50]Waiting for new connection... [13:45:50] Sock 7.Parse request [13:45:50]Sock 7.Check first char [13:45:50]Sock 7.First char is OK [13:45:50]request: POST /json_proto HTTP/1.0 [13:45:50]Method: POST [13:45:50]URL: /json_proto [13:45:50]Method is POST - this is cgi request [13:45:50]url: /json_proto [13:45:50]query_string will be loaded in cgi processing [13:45:50]execute_cgi json_proto POST (null) [13:45:50]execute_cgi path=json_proto method=POST [13:45:50]POST find Content-Length [13:45:50]Host: 172.17.33.3:8080 [13:45:50]Content-Length: 675 [13:45:50]Content-Type: application/json [13:45:50] [13:45:50]POST finish read [13:45:50]Found Content-Length = 675 [13:45:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347614", "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" ] } } [13:45:50]execute_script... [13: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)347614", "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" ] } } [13:45:50]POST & json_proto [13:45:50]process_json_proto [13:45:50]json parsed OK: [13:45:50]protocol is kg_v1.0 [13:45:50]action value=close_receipt [13:45:50]process_action close_receipt [13:45:50]cmd_close_receipt [13:45:50]MH_GetDate [13:45:50]Write to MH i2c: F0 00 00 06 9A 8F [13:45:50]Write i2c OK [13:45:50]MH_I2C_Read... [13:45:50]Read from MH i2c: F0 [13:45:50]MH_I2C_Read... [13:45:50]Read from MH i2c: F0 09 00 [13:45:50]MH_I2C_Read... [13:45:50]Read from MH i2c: F0 09 00 06 9A 00 18 DE 1B 66 23 5B 8F 65 81 [13:45:50]GetLastDocTimeStamp 1713101547 [13:45:50]current date 1713102360 [13:45:50]FM_GetShiftState [13:45:50]SAM_PROTO_GetShiftState [13:45:50]wFMCommunicate request_size=4 [13:45:50]MH_SAM_APDU [13:45:50]CAPDU: 80 13 01 00 [13:45:50]Write to MH i2c: E2 08 00 07 9A 80 13 01 00 00 00 00 00 1E [13:45:50]Write i2c OK [13:45:50]MH_I2C_Read... [13:45:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:45:50]Read from MH i2c: E2 [13:45:50]MH_I2C_Read... [13:45:50]Read from MH i2c: E2 0E 00 [13:45:50]MH_I2C_Read... [13:45:50]Read from MH i2c: E2 0E 00 07 9A 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 CA [13:45:50]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [13:45:50]wFMCommunicate OK [13:45:50]SAM_PROTO_GetShiftState done [13:45:50]FM_GetShiftState done [13:45:50]opened in 1713053951 [13:45:50]opened+sec_in_day 1713140351 [13:45:50]quantity*price = 100039 [13:45:50]sum+1 = 100041 [13:45:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 140 14.04.2024 13:46 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29230 ФПД: 117245172679100 1/tax-web-control/client/api/v1/ticket?date=20240414T134600&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29230&fm=117245172679100&tin=02508201610067®Number=0000138879044617&sum=100000 [13:45:51]StoreToDocumentArchive [13:45:51]shift 116 fd 29230 [13:45:51]save to /storage/0116/doc_00029230 [13:45:51]save last doc name /storage/0116/doc_00029230 to /storage/kkm_last_doc_name [13:45:51]save OK [13:45:51]Clear old archive folders... [13:45:51]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:45:51]tlvbuf is 011EE660 [13:45:51]SAM_PROTO_ClearQueue [13:45:51]wFMCommunicate request_size=4 [13:45:51]MH_SAM_APDU [13:45:51]CAPDU: 80 09 00 00 [13:45:51]Write to MH i2c: E2 08 00 14 9A 80 09 00 00 00 00 00 00 20 [13:45:51]Write i2c OK [13:45:51]MH_I2C_Read... [13:45:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:45:51]Read from MH i2c: E2 [13:45:51]MH_I2C_Read... [13:45:51]Read from MH i2c: E2 03 00 [13:45:51]MH_I2C_Read... [13:45:51]Read from MH i2c: E2 03 00 14 9A 00 90 00 22 [13:45:51]RAPDU: 90 00 [13:45:51]wFMCommunicate OK [13:45:51]SAM_PROTO_ClearQueue done [13:45:51]KKMCreateOFDPacket [13:45:51]OFDProtocolAddRootSTLVToBuf [13:45:51]FM_MakeSignedData [13:45:51]FM_MakeSignedData [13:45:51]SAM_PROTO_SignData [13:45:51]wFMCommunicate request_size=4 [13:45:51]MH_SAM_APDU [13:45:51]CAPDU: 80 0D 01 02 [13:45:51]Write to MH i2c: E2 08 00 15 9A 80 0D 01 02 00 00 00 00 28 [13:45:51]Write i2c OK [13:45:51]MH_I2C_Read... [13:45:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:45:51]Read from MH i2c: E2 [13:45:51]MH_I2C_Read... [13:45:51]Read from MH i2c: E2 03 00 [13:45:51]MH_I2C_Read... [13:45:51]Read from MH i2c: E2 03 00 15 9A 00 90 00 23 [13:45:51]RAPDU: 90 00 [13:45:51]wFMCommunicate OK [13:45:51]wFMCommunicate request_size=255 [13:45:51]MH_SAM_APDU [13:45:51]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 8C 00 00 00 F4 03 04 00 18 DE 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2E 72 00 00 35 04 06 00 [13:45:51]Write to MH i2c: E2 02 01 16 9A 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 8C 00 00 00 F4 03 04 00 18 DE 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2E 72 00 00 35 04 06 00 00 00 7C [13:45:51]Write i2c OK [13:45:51]MH_I2C_Read... [13:45:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:45:51]Read from MH i2c: E2 [13:45:51]MH_I2C_Read... [13:45:51]Read from MH i2c: E2 03 00 [13:45:51]MH_I2C_Read... [13:45:51]Read from MH i2c: E2 03 00 16 9A 00 90 00 24 [13:45:51]RAPDU: 90 00 [13:45:51]wFMCommunicate OK [13:45:51]wFMCommunicate request_size=11 [13:45:51]MH_SAM_APDU [13:45:51]CAPDU: 80 0D 02 02 06 6A A2 44 DE 81 BC [13:45:51]Write to MH i2c: E2 0E 00 17 9A 80 0D 02 02 06 00 6A A2 44 DE 81 BC 00 00 A2 [13:45:51]Write i2c OK [13:45:51]MH_I2C_Read... [13:45:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:45:51]Read from MH i2c: E2 [13:45:51]MH_I2C_Read... [13:45:51]Read from MH i2c: E2 03 00 [13:45:51]MH_I2C_Read... [13:45:51]Read from MH i2c: E2 03 00 17 9A 00 90 00 25 [13:45:51]RAPDU: 90 00 [13:45:51]wFMCommunicate OK [13:45:51]wFMCommunicate request_size=4 [13:45:51]MH_SAM_APDU [13:45:51]CAPDU: 80 0D 03 02 [13:45:51]Write to MH i2c: E2 08 00 18 9A 80 0D 03 02 00 00 00 00 2D [13:45:51]Write i2c OK [13:45:51]MH_I2C_Read... [13:45:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:45:51]Read from MH i2c: E2 [13:45:51]MH_I2C_Read... [13:45:51]Read from MH i2c: E2 0B 00 [13:45:51]MH_I2C_Read... [13:45:51]Read from MH i2c: E2 0B 00 18 9A 00 AE B1 C9 78 0D A6 31 AC 90 00 5E [13:45:51]RAPDU: AE B1 C9 78 0D A6 31 AC 90 00 [13:45:51]wFMCommunicate OK [13:45:51]SAM_PROTO_SignData done [13:45:51]FM_MakeSignedData done [13:45:51]CreateOFDProtocolMessage [13:45:51]wFMCommunicate request_size=4 [13:45:51]MH_SAM_APDU [13:45:51]CAPDU: 80 11 00 00 [13:45:51]Write to MH i2c: E2 08 00 19 9A 80 11 00 00 00 00 00 00 2D [13:45:51]Write i2c OK [13:45:51]MH_I2C_Read... [13:45:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:45:51]Read from MH i2c: E2 [13:45:51]MH_I2C_Read... [13:45:51]Read from MH i2c: E2 17 00 [13:45:51]MH_I2C_Read... [13:45:51]Read from MH i2c: E2 17 00 19 9A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 7C [13:45:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:45:51]wFMCommunicate OK [13:45:51]CreateOFDProtocolMessage done [13:45:51]OFDSenderStorePacket 29230 [13:45:51]StoreOFDPacket docnum=29230 [13:45:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 7D C7 08 01 09 EB 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 8C 00 00 00 F4 03 04 00 18 DE 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2E 72 00 00 35 04 06 00 6A A2 44 DE 81 BC AE B1 C9 78 0D A6 31 AC [13:45:51]CheckFolder [13:45:51]dirname=/storage/ofd_packets [13:45:51]CheckFolder done [13:45:51]ProducePacketName [13:45:51]name=ofd_packets/00029230 [13:45:51]NVStorageSaveData ofd_packets/00029230 [13:45:51]File name is /storage/ofd_packets/00029230 [13:45:51]Write 302 bytes [13:45:51]NVStorageSaveData done [13:45:51]OFDSenderStorePacket done [13:45:51]KKMCreateOFDPacket done [13:45:51]NVStorageSaveData kkm_last_timestamp [13:45:51]File name is /storage/kkm_last_timestamp [13:45:51]Write 4 bytes [13:45:51]NVStorageSaveData done [13:45:51]ExternCall_PrintAddStr [13:45:51]wPrintStart [13:45:51]Write to MH i2c: 01 00 00 1A 9A B4 [13:45:51]Write i2c OK [13:45:51]MH_I2C_Read... [13:45:51]Read from MH i2c: 01 [13:45:51]MH_I2C_Read... [13:45:51]Read from MH i2c: 01 07 00 [13:45:51]MH_I2C_Read... [13:45:51]Read from MH i2c: 01 07 00 1A 9A 00 00 00 00 00 FF 0F C9 [13:45:51]RasterBufferAndPrint [13:45:51]line Счет N : (1)347614 [13:45:51]line ИНН: 02508201610067 [13:45:51]line Контрольно-Кассовый Чек [13:45:51]line ПРОДАЖА [13:45:51]line ТРК (МРК, ГНК) : 31 [13:45:51]line Товар: 2710124130 [13:45:51]line SUPER-92-К-5 [13:45:51]line 15.320 * 65.30 [13:45:51]line = 1000.40 [13:45:51]line НДС 12% НСП 1% [13:45:51]line > о реализуемом товаре [13:45:51]line ОКРУГЛЕНИЕ: -0.40 [13:45:51]line ИТОГО: 1000.00 [13:45:51]line Внесено: 1000.00 [13:45:51]line СДАЧА: 0.00 [13:45:51]line НСП 1% : 8.85 [13:45:51]line НДС 12% : 106.24 [13:45:51]line Наличными: 1000.00 [13:45:51]line Безнал.: 0.00 [13:45:51]line Место: АЗС № 108 "Партнер Нефть" [13:45:51]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [13:45:51]line СНО: Общий режим [13:45:51]line Чек 140 14.04.2024 13:46 [13:45:51]line Смена: 116 ФФД: 1.0 [13:45:51]line ЗНМ: 0300000027 [13:45:51]line РНМ: 0000138879044617 [13:45:51]line Версия ККМ: 001 [13:45:51]line ФМ: 0000000000963154 [13:45:51]line ФД: 29230 [13:45:51]line ФПД: 117245172679100 [13:45:51]line 1/tax-web-control/client/api/v1/ticket?date=20240414T134600&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29230&fm=117245172679100&tin=02508201610067®Number=0000138879044617&sum=100000 [13:45:52]OFD Sender: Processing packet 29230 [packets to send 8, broken 7] [13:45:52]ProducePacketName [13:45:52]name=ofd_packets/00029230 [13:45:52]OFD Sender: To server: pG, [13:45:52]CommunicateWithHost lk.salyk.kg:30040 [13:45:52]ConnectInit lk.salyk.kg [13:45:52]written 0, free lines is 4095 [13:45:52]Connected sock=9 [13:45:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 7D C7 08 01 09 EB 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 8C 00 00 00 F4 03 04 00 18 DE 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2E 72 00 00 35 04 06 00 6A A2 44 DE 81 BC AE B1 C9 78 0D A6 31 AC [13:45:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 58 29 47 00 8D 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2E 72 00 00 F4 03 04 00 BC 88 1B 66 B6 04 01 00 00 CC 22 64 AD FA 78 07 F8 [13:45:52]CommunicateWithHost err = 0 [13:45:52]CheckOFDResponse [13:45:52]1017 (14) - 77093643461234 [13:45:52]1041 (16) - 0000000000963154 [13:45:52]1040 (4) - 29230 [13:45:52]1012 (4) - 14.04.2024 07:41 [13:45:52]1206 (1) - 0 [13:45:52]OFD Sender: Remove packet 29230 [13:45:52]ProducePacketName [13:45:52]name=ofd_packets/00029230 [13:45:52]NVStorageDeleteData [13:45:52]Write to MH i2c: 01 00 00 44 9A DE [13:45:52]Write i2c OK [13:45:52]MH_I2C_Read... [13:45:52]Read from MH i2c: 01 [13:45:52]MH_I2C_Read... [13:45:52]Read from MH i2c: 01 07 00 [13:45:52]MH_I2C_Read... [13:45:52]Read from MH i2c: 01 07 00 44 9A 00 00 00 00 00 C0 0C B1 [13:45:52]RasterBufferAndPrint [13:45:52]line [13:45:52]line [13:45:52]line [13:45:52]line [13:45:52]line [13:45:52]written 0, free lines is 3270 [13:45:52]MH_Cut [13:45:52]Write to MH i2c: D1 01 00 4B 9A 01 B7 [13:45:52]Write i2c OK [13:45:52]MH_I2C_Read... [13:45:52]Read from MH i2c: D1 [13:45:52]MH_I2C_Read... [13:45:52]Read from MH i2c: D1 01 00 [13:45:52]MH_I2C_Read... [13:45:52]Read from MH i2c: D1 01 00 4B 9A 00 B6 [13:45:52]Write to MH i2c: 01 00 00 4C 9A E6 [13:45:52]Write i2c OK [13:45:52]MH_I2C_Read... [13:45:53]OFD Sender: No OFD packet to send [13:45:53]*** Cut start [13:45:53]*** Partial cut [13:45:53]*** CUTSNS_PIN = 1 [13:45:53]*** CUTSNS_PIN = 0 [13:45:53]*** Brake cut motor [13:45:54]Read from MH i2c: 01 [13:45:54]MH_I2C_Read... [13:45:54]*** Stop cut motor [13:45:54]*** Cut end [13:45:54]Read from MH i2c: 01 07 00 [13:45:54]MH_I2C_Read... [13:45:54]Read from MH i2c: 01 07 00 4C 9A 00 00 00 00 00 FF 0F FB [13:45:54]process_action close_receipt done [13:45:54]requested_data is exist [13:45:54]produce_requested_data [13:45:54]requested_item fm.sn is exist - process it [13:45:54]wFMCommunicate request_size=4 [13:45:54]MH_SAM_APDU [13:45:54]CAPDU: 80 11 00 00 [13:45:54]Write to MH i2c: E2 08 00 4D 9A 80 11 00 00 00 00 00 00 61 [13:45:54]Write i2c OK [13:45:54]MH_I2C_Read... [13:45:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:45:54]Read from MH i2c: E2 [13:45:54]MH_I2C_Read... [13:45:54]Read from MH i2c: E2 17 00 [13:45:54]MH_I2C_Read... [13:45:54]Read from MH i2c: E2 17 00 4D 9A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B0 [13:45:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:45:54]wFMCommunicate OK [13:45:54]requested_item fd.num is exist - process it [13:45:54]SAM_PROTO_GetFieldsCounters [13:45:54]wFMCommunicate request_size=4 [13:45:54]MH_SAM_APDU [13:45:54]CAPDU: 80 13 00 00 [13:45:54]Write to MH i2c: E2 08 00 4E 9A 80 13 00 00 00 00 00 00 64 [13:45:54]Write i2c OK [13:45:54]MH_I2C_Read... [13:45:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:45:54]Read from MH i2c: E2 [13:45:54]MH_I2C_Read... [13:45:54]Read from MH i2c: E2 62 00 [13:45:54]MH_I2C_Read... [13:45:54]Read from MH i2c: E2 62 00 4E 9A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 2E 72 00 00 0E 04 04 00 74 00 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 5A [13:45:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 2E 72 00 00 0E 04 04 00 74 00 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 [13:45:54]wFMCommunicate OK [13:45:54]SAM_PROTO_GetFieldsCounters done [13:45:54]requested_item shift.num is exist - process it [13:45:54]requested_item shift.opened is exist - process it [13:45:54]req_shift_opened [13:45:54]FM_GetShiftState [13:45:54]SAM_PROTO_GetShiftState [13:45:54]wFMCommunicate request_size=4 [13:45:54]MH_SAM_APDU [13:45:54]CAPDU: 80 13 01 00 [13:45:54]Write to MH i2c: E2 08 00 4F 9A 80 13 01 00 00 00 00 00 66 [13:45:54]Write i2c OK [13:45:54]MH_I2C_Read... [13:45:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:45:54]Read from MH i2c: E2 [13:45:54]MH_I2C_Read... [13:45:54]Read from MH i2c: E2 0E 00 [13:45:54]MH_I2C_Read... [13:45:54]Read from MH i2c: E2 0E 00 4F 9A 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 12 [13:45:54]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [13:45:54]wFMCommunicate OK [13:45:54]SAM_PROTO_GetShiftState done [13:45:54]FM_GetShiftState done [13:45:54]req_shift_opened done [13:45:54]requested_item shift.open_date is exist - process it [13:45:54]req_shift_open_date [13:45:54]req_shift_open_date done [13:45:54]produce_requested_data done [13:45:54]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29230,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [13:45:54]process_action_free close_receipt [13:45:54]json_value_free [13:45:54]json_value_free done [13:45:54]process_json_proto returns [13:45:54]Send response to host [13:45:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29230,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [13:45:54]free response buf [13:45:54]execute_script done [13:45:54]execute_script returns [13:45:54]free content buf [13:45:54]Sock 7.Close socket [13:45:54]Sock 7.Thread stoped [13:45:58]OFD Sender: No OFD packet to send [13:46:03]OFD Sender: No OFD packet to send [13:46:08]OFD Sender: No OFD packet to send [13:46:13]OFD Sender: No OFD packet to send [13:46:18]OFD Sender: No OFD packet to send [13:46:23]OFD Sender: No OFD packet to send [13:46:28]OFD Sender: No OFD packet to send [13:46:33]OFD Sender: No OFD packet to send [13:46:38]OFD Sender: No OFD packet to send [13:46:43]OFD Sender: No OFD packet to send [13:46:48]OFD Sender: No OFD packet to send [13:46:53]OFD Sender: No OFD packet to send [13:46:58]OFD Sender: No OFD packet to send [13:47:03]OFD Sender: No OFD packet to send [13:47:08]OFD Sender: No OFD packet to send [13:47:13]OFD Sender: No OFD packet to send [13:47:13]accept exits with 10 [13:47:13]New connection [13:47:13]New thread 3066928484 created [13:47:13]Thread 3066785124 joined [13:47:13]Waiting for new connection... [13:47:13] Sock 10.Parse request [13:47:13]Sock 10.Check first char [13:47:13]Sock 10.First char is OK [13:47:13]request: POST /json_proto HTTP/1.0 [13:47:13]Method: POST [13:47:13]URL: /json_proto [13:47:13]Method is POST - this is cgi request [13:47:13]url: /json_proto [13:47:13]query_string will be loaded in cgi processing [13:47:13]execute_cgi json_proto POST (null) [13:47:13]execute_cgi path=json_proto method=POST [13:47:13]POST find Content-Length [13:47:13]Host: 172.17.33.3:8080 [13:47:13]Content-Length: 677 [13:47:13]Content-Type: application/json [13:47:13] [13:47:13]POST finish read [13:47:13]Found Content-Length = 677 [13:47:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347615", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.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" ] } } [13:47:13]execute_script... [13:47: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)347615", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.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" ] } } [13:47:13]POST & json_proto [13:47:13]process_json_proto [13:47:13]json parsed OK: [13:47:13]protocol is kg_v1.0 [13:47:13]action value=close_receipt [13:47:13]process_action close_receipt [13:47:13]cmd_close_receipt [13:47:13]MH_GetDate [13:47:13]Write to MH i2c: F0 00 00 50 9A D9 [13:47:13]Write i2c OK [13:47:13]MH_I2C_Read... [13:47:13]Read from MH i2c: F0 [13:47:13]MH_I2C_Read... [13:47:13]Read from MH i2c: F0 09 00 [13:47:13]MH_I2C_Read... [13:47:13]Read from MH i2c: F0 09 00 50 9A 00 6C DE 1B 66 23 5B 8F 65 1F [13:47:13]GetLastDocTimeStamp 1713102360 [13:47:13]current date 1713102444 [13:47:13]FM_GetShiftState [13:47:13]SAM_PROTO_GetShiftState [13:47:13]wFMCommunicate request_size=4 [13:47:13]MH_SAM_APDU [13:47:13]CAPDU: 80 13 01 00 [13:47:13]Write to MH i2c: E2 08 00 51 9A 80 13 01 00 00 00 00 00 68 [13:47:13]Write i2c OK [13:47:13]MH_I2C_Read... [13:47:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:47:13]Read from MH i2c: E2 [13:47:13]MH_I2C_Read... [13:47:13]Read from MH i2c: E2 0E 00 [13:47:13]MH_I2C_Read... [13:47:13]Read from MH i2c: E2 0E 00 51 9A 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 14 [13:47:13]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [13:47:13]wFMCommunicate OK [13:47:13]SAM_PROTO_GetShiftState done [13:47:13]FM_GetShiftState done [13:47:13]opened in 1713053951 [13:47:13]opened+sec_in_day 1713140351 [13:47:13]quantity*price = 50025 [13:47:13]sum+1 = 50026 [13:47:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 141 14.04.2024 13:47 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29231 ФПД: 152624697992893 1/tax-web-control/client/api/v1/ticket?date=20240414T134724&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29231&fm=152624697992893&tin=02508201610067®Number=0000138879044617&sum=50000 [13:47:14]StoreToDocumentArchive [13:47:14]shift 116 fd 29231 [13:47:14]save to /storage/0116/doc_00029231 [13:47:14]save last doc name /storage/0116/doc_00029231 to /storage/kkm_last_doc_name [13:47:14]save OK [13:47:14]Clear old archive folders... [13:47:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:47:14]tlvbuf is 01214B80 [13:47:14]SAM_PROTO_ClearQueue [13:47:14]wFMCommunicate request_size=4 [13:47:14]MH_SAM_APDU [13:47:14]CAPDU: 80 09 00 00 [13:47:14]Write to MH i2c: E2 08 00 5E 9A 80 09 00 00 00 00 00 00 6A [13:47:14]Write i2c OK [13:47:14]MH_I2C_Read... [13:47:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:47:14]Read from MH i2c: E2 [13:47:14]MH_I2C_Read... [13:47:14]Read from MH i2c: E2 03 00 [13:47:14]MH_I2C_Read... [13:47:14]Read from MH i2c: E2 03 00 5E 9A 00 90 00 6C [13:47:14]RAPDU: 90 00 [13:47:14]wFMCommunicate OK [13:47:14]SAM_PROTO_ClearQueue done [13:47:14]KKMCreateOFDPacket [13:47:14]OFDProtocolAddRootSTLVToBuf [13:47:14]FM_MakeSignedData [13:47:14]FM_MakeSignedData [13:47:14]SAM_PROTO_SignData [13:47:14]wFMCommunicate request_size=4 [13:47:14]MH_SAM_APDU [13:47:14]CAPDU: 80 0D 01 02 [13:47:14]Write to MH i2c: E2 08 00 5F 9A 80 0D 01 02 00 00 00 00 72 [13:47:14]Write i2c OK [13:47:14]MH_I2C_Read... [13:47:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:47:15]Read from MH i2c: E2 [13:47:15]MH_I2C_Read... [13:47:15]Read from MH i2c: E2 03 00 [13:47:15]MH_I2C_Read... [13:47:15]Read from MH i2c: E2 03 00 5F 9A 00 90 00 6D [13:47:15]RAPDU: 90 00 [13:47:15]wFMCommunicate OK [13:47:15]wFMCommunicate request_size=255 [13:47:15]MH_SAM_APDU [13:47:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 8D 00 00 00 F4 03 04 00 6C DE 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2F 72 00 00 35 04 06 00 8A [13:47:15]Write to MH i2c: E2 02 01 60 9A 80 0D 02 02 FA 00 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 8D 00 00 00 F4 03 04 00 6C DE 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2F 72 00 00 35 04 06 00 8A 00 00 F2 [13:47:15]Write i2c OK [13:47:15]MH_I2C_Read... [13:47:15]Read from MH i2c: E2 [13:47:15]MH_I2C_Read... [13:47:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:47:15]Read from MH i2c: E2 03 00 [13:47:15]MH_I2C_Read... [13:47:15]Read from MH i2c: E2 03 00 60 9A 00 90 00 6E [13:47:15]RAPDU: 90 00 [13:47:15]wFMCommunicate OK [13:47:15]wFMCommunicate request_size=10 [13:47:15]MH_SAM_APDU [13:47:15]CAPDU: 80 0D 02 02 05 CF B4 E8 66 BD [13:47:15]Write to MH i2c: E2 0D 00 61 9A 80 0D 02 02 05 00 CF B4 E8 66 BD 00 00 0D [13:47:15]Write i2c OK [13:47:15]MH_I2C_Read... [13:47:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:47:15]Read from MH i2c: E2 [13:47:15]MH_I2C_Read... [13:47:15]Read from MH i2c: E2 03 00 [13:47:15]MH_I2C_Read... [13:47:15]Read from MH i2c: E2 03 00 61 9A 00 90 00 6F [13:47:15]RAPDU: 90 00 [13:47:15]wFMCommunicate OK [13:47:15]wFMCommunicate request_size=4 [13:47:15]MH_SAM_APDU [13:47:15]CAPDU: 80 0D 03 02 [13:47:15]Write to MH i2c: E2 08 00 62 9A 80 0D 03 02 00 00 00 00 77 [13:47:15]Write i2c OK [13:47:15]MH_I2C_Read... [13:47:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:47:15]Read from MH i2c: E2 [13:47:15]MH_I2C_Read... [13:47:15]Read from MH i2c: E2 0B 00 [13:47:15]MH_I2C_Read... [13:47:15]Read from MH i2c: E2 0B 00 62 9A 00 70 54 43 4C 9D C8 BF D6 90 00 C5 [13:47:15]RAPDU: 70 54 43 4C 9D C8 BF D6 90 00 [13:47:15]wFMCommunicate OK [13:47:15]SAM_PROTO_SignData done [13:47:15]FM_MakeSignedData done [13:47:15]CreateOFDProtocolMessage [13:47:15]wFMCommunicate request_size=4 [13:47:15]MH_SAM_APDU [13:47:15]CAPDU: 80 11 00 00 [13:47:15]Write to MH i2c: E2 08 00 63 9A 80 11 00 00 00 00 00 00 77 [13:47:15]Write i2c OK [13:47:15]MH_I2C_Read... [13:47:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:47:15]Read from MH i2c: E2 [13:47:15]MH_I2C_Read... [13:47:15]Read from MH i2c: E2 17 00 [13:47:15]MH_I2C_Read... [13:47:15]Read from MH i2c: E2 17 00 63 9A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C6 [13:47:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:47:15]wFMCommunicate OK [13:47:15]CreateOFDProtocolMessage done [13:47:15]OFDSenderStorePacket 29231 [13:47:15]StoreOFDPacket docnum=29231 [13:47:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 15 94 07 01 2C 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 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 8D 00 00 00 F4 03 04 00 6C DE 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2F 72 00 00 35 04 06 00 8A CF B4 E8 66 BD 70 54 43 4C 9D C8 BF D6 [13:47:15]CheckFolder [13:47:15]dirname=/storage/ofd_packets [13:47:15]CheckFolder done [13:47:15]ProducePacketName [13:47:15]name=ofd_packets/00029231 [13:47:15]NVStorageSaveData ofd_packets/00029231 [13:47:15]File name is /storage/ofd_packets/00029231 [13:47:15]Write 301 bytes [13:47:15]NVStorageSaveData done [13:47:15]OFDSenderStorePacket done [13:47:15]KKMCreateOFDPacket done [13:47:15]NVStorageSaveData kkm_last_timestamp [13:47:15]File name is /storage/kkm_last_timestamp [13:47:15]Write 4 bytes [13:47:15]NVStorageSaveData done [13:47:15]ExternCall_PrintAddStr [13:47:15]wPrintStart [13:47:15]Write to MH i2c: 01 00 00 64 9A FE [13:47:15]Write i2c OK [13:47:15]MH_I2C_Read... [13:47:15]Read from MH i2c: 01 [13:47:15]MH_I2C_Read... [13:47:15]Read from MH i2c: 01 07 00 [13:47:15]MH_I2C_Read... [13:47:15]Read from MH i2c: 01 07 00 64 9A 00 00 00 00 00 FF 0F 13 [13:47:15]RasterBufferAndPrint [13:47:15]line Счет N : (1)347615 [13:47:15]line ИНН: 02508201610067 [13:47:15]line Контрольно-Кассовый Чек [13:47:15]line ПРОДАЖА [13:47:15]line ТРК (МРК, ГНК) : 33 [13:47:15]line Товар: 2710124500 [13:47:15]line Аи-95-К-5 [13:47:15]line 6.900 * 72.50 [13:47:15]line = 500.25 [13:47:15]line НДС 12% НСП 1% [13:47:15]line > о реализуемом товаре [13:47:15]line ОКРУГЛЕНИЕ: -0.25 [13:47:15]line ИТОГО: 500.00 [13:47:15]line Внесено: 500.00 [13:47:15]line СДАЧА: 0.00 [13:47:15]line НСП 1% : 4.43 [13:47:15]line НДС 12% : 53.12 [13:47:15]line Наличными: 500.00 [13:47:15]line Безнал.: 0.00 [13:47:15]line Место: АЗС № 108 "Партнер Нефть" [13:47:15]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [13:47:15]line СНО: Общий режим [13:47:15]line Чек 141 14.04.2024 13:47 [13:47:15]line Смена: 116 ФФД: 1.0 [13:47:15]line ЗНМ: 0300000027 [13:47:15]line РНМ: 0000138879044617 [13:47:15]line Версия ККМ: 001 [13:47:15]line ФМ: 0000000000963154 [13:47:15]line ФД: 29231 [13:47:15]line ФПД: 152624697992893 [13:47:15]line 1/tax-web-control/client/api/v1/ticket?date=20240414T134724&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29231&fm=152624697992893&tin=02508201610067®Number=0000138879044617&sum=50000 [13:47:15]OFD Sender: Processing packet 29231 [packets to send 8, broken 7] [13:47:15]ProducePacketName [13:47:15]name=ofd_packets/00029231 [13:47:15]OFD Sender: To server: pG, [13:47:15]CommunicateWithHost lk.salyk.kg:30040 [13:47:15]ConnectInit lk.salyk.kg [13:47:15]written 0, free lines is 4095 [13:47:15]Connected sock=9 [13:47:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 15 94 07 01 2C 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 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 8D 00 00 00 F4 03 04 00 6C DE 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2F 72 00 00 35 04 06 00 8A CF B4 E8 66 BD 70 54 43 4C 9D C8 BF D6 [13:47:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 35 F5 47 00 4D 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 39 36 33 31 35 34 10 04 04 00 2F 72 00 00 F4 03 04 00 0F 89 1B 66 B6 04 01 00 00 3F 60 5A DE 93 CD 20 94 [13:47:16]CommunicateWithHost err = 0 [13:47:16]CheckOFDResponse [13:47:16]1017 (14) - 77093643461234 [13:47:16]1041 (16) - 0000000000963154 [13:47:16]1040 (4) - 29231 [13:47:16]1012 (4) - 14.04.2024 07:43 [13:47:16]1206 (1) - 0 [13:47:16]OFD Sender: Remove packet 29231 [13:47:16]ProducePacketName [13:47:16]name=ofd_packets/00029231 [13:47:16]NVStorageDeleteData [13:47:16]Write to MH i2c: 01 00 00 8E 9A 28 [13:47:16]Write i2c OK [13:47:16]MH_I2C_Read... [13:47:16]Read from MH i2c: 01 [13:47:16]MH_I2C_Read... [13:47:16]Read from MH i2c: 01 07 00 [13:47:16]MH_I2C_Read... [13:47:16]Read from MH i2c: 01 07 00 8E 9A 00 00 00 00 00 C2 0C FD [13:47:16]RasterBufferAndPrint [13:47:16]line [13:47:16]line [13:47:16]line [13:47:16]line [13:47:16]line [13:47:16]written 0, free lines is 3272 [13:47:16]MH_Cut [13:47:16]Write to MH i2c: D1 01 00 95 9A 01 01 [13:47:16]Write i2c OK [13:47:16]MH_I2C_Read... [13:47:16]Read from MH i2c: D1 [13:47:16]MH_I2C_Read... [13:47:16]Read from MH i2c: D1 01 00 [13:47:16]MH_I2C_Read... [13:47:16]Read from MH i2c: D1 01 00 95 9A 00 00 [13:47:16]Write to MH i2c: 01 00 00 96 9A 30 [13:47:16]Write i2c OK [13:47:16]MH_I2C_Read... [13:47:16]OFD Sender: No OFD packet to send [13:47:17]*** Cut start [13:47:17]*** Partial cut [13:47:17]*** CUTSNS_PIN = 1 [13:47:17]*** CUTSNS_PIN = 0 [13:47:17]*** Brake cut motor [13:47:17]Read from MH i2c: 01 [13:47:17]MH_I2C_Read... [13:47:17]*** Stop cut motor [13:47:17]*** Cut end [13:47:17]Read from MH i2c: 01 07 00 [13:47:17]MH_I2C_Read... [13:47:17]Read from MH i2c: 01 07 00 96 9A 00 00 00 00 00 FF 0F 45 [13:47:17]process_action close_receipt done [13:47:17]requested_data is exist [13:47:17]produce_requested_data [13:47:17]requested_item fm.sn is exist - process it [13:47:17]wFMCommunicate request_size=4 [13:47:17]MH_SAM_APDU [13:47:17]CAPDU: 80 11 00 00 [13:47:17]Write to MH i2c: E2 08 00 97 9A 80 11 00 00 00 00 00 00 AB [13:47:17]Write i2c OK [13:47:17]MH_I2C_Read... [13:47:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:47:17]Read from MH i2c: E2 [13:47:17]MH_I2C_Read... [13:47:17]Read from MH i2c: E2 17 00 [13:47:17]MH_I2C_Read... [13:47:17]Read from MH i2c: E2 17 00 97 9A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 FA [13:47:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:47:17]wFMCommunicate OK [13:47:17]requested_item fd.num is exist - process it [13:47:17]SAM_PROTO_GetFieldsCounters [13:47:17]wFMCommunicate request_size=4 [13:47:17]MH_SAM_APDU [13:47:17]CAPDU: 80 13 00 00 [13:47:17]Write to MH i2c: E2 08 00 98 9A 80 13 00 00 00 00 00 00 AE [13:47:17]Write i2c OK [13:47:17]MH_I2C_Read... [13:47:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:47:17]Read from MH i2c: E2 [13:47:17]MH_I2C_Read... [13:47:17]Read from MH i2c: E2 62 00 [13:47:17]MH_I2C_Read... [13:47:17]Read from MH i2c: E2 62 00 98 9A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 2F 72 00 00 0E 04 04 00 74 00 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 A8 [13:47:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 2F 72 00 00 0E 04 04 00 74 00 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 [13:47:17]wFMCommunicate OK [13:47:17]SAM_PROTO_GetFieldsCounters done [13:47:17]requested_item shift.num is exist - process it [13:47:17]requested_item shift.opened is exist - process it [13:47:17]req_shift_opened [13:47:17]FM_GetShiftState [13:47:17]SAM_PROTO_GetShiftState [13:47:17]wFMCommunicate request_size=4 [13:47:17]MH_SAM_APDU [13:47:17]CAPDU: 80 13 01 00 [13:47:17]Write to MH i2c: E2 08 00 99 9A 80 13 01 00 00 00 00 00 B0 [13:47:17]Write i2c OK [13:47:17]MH_I2C_Read... [13:47:17]Read from MH i2c: E2 [13:47:17]MH_I2C_Read... [13:47:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:47:17]Read from MH i2c: E2 0E 00 [13:47:17]MH_I2C_Read... [13:47:17]Read from MH i2c: E2 0E 00 99 9A 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 5C [13:47:17]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [13:47:17]wFMCommunicate OK [13:47:17]SAM_PROTO_GetShiftState done [13:47:17]FM_GetShiftState done [13:47:17]req_shift_opened done [13:47:17]requested_item shift.open_date is exist - process it [13:47:17]req_shift_open_date [13:47:17]req_shift_open_date done [13:47:17]produce_requested_data done [13:47:17]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29231,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [13:47:17]process_action_free close_receipt [13:47:17]json_value_free [13:47:17]json_value_free done [13:47:17]process_json_proto returns [13:47:17]Send response to host [13:47:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29231,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [13:47:17]free response buf [13:47:17]execute_script done [13:47:17]execute_script returns [13:47:17]free content buf [13:47:17]Sock 10.Close socket [13:47:17]Sock 10.Thread stoped [13:47:21]OFD Sender: No OFD packet to send [13:47:26]OFD Sender: No OFD packet to send [13:47:31]OFD Sender: No OFD packet to send [13:47:36]OFD Sender: No OFD packet to send [13:47:41]OFD Sender: No OFD packet to send [13:47:46]OFD Sender: No OFD packet to send [13:47:51]OFD Sender: No OFD packet to send [13:47:56]OFD Sender: No OFD packet to send [13:48:01]OFD Sender: No OFD packet to send [13:48:06]OFD Sender: No OFD packet to send [13:48:11]OFD Sender: No OFD packet to send [13:48:16]OFD Sender: No OFD packet to send [13:48:21]OFD Sender: No OFD packet to send [13:48:26]OFD Sender: No OFD packet to send [13:48:31]OFD Sender: No OFD packet to send [13:48:36]OFD Sender: No OFD packet to send [13:48:41]OFD Sender: No OFD packet to send [13:48:46]OFD Sender: No OFD packet to send [13:48:51]OFD Sender: No OFD packet to send [13:48:56]OFD Sender: No OFD packet to send [13:49:01]OFD Sender: No OFD packet to send [13:49:06]OFD Sender: No OFD packet to send [13:49:11]OFD Sender: No OFD packet to send [13:49:16]OFD Sender: No OFD packet to send [13:49:21]OFD Sender: No OFD packet to send [13:49:26]OFD Sender: No OFD packet to send [13:49:31]OFD Sender: No OFD packet to send [13:49:36]OFD Sender: No OFD packet to send [13:49:41]OFD Sender: No OFD packet to send [13:49:46]OFD Sender: No OFD packet to send [13:49:51]OFD Sender: No OFD packet to send [13:49:56]OFD Sender: No OFD packet to send [13:50:01]OFD Sender: No OFD packet to send [13:50:06]OFD Sender: No OFD packet to send [13:50:11]OFD Sender: No OFD packet to send [13:50:16]OFD Sender: No OFD packet to send [13:50:21]OFD Sender: No OFD packet to send [13:50:26]OFD Sender: No OFD packet to send [13:50:31]OFD Sender: No OFD packet to send [13:50:36]OFD Sender: No OFD packet to send [13:50:41]OFD Sender: No OFD packet to send [13:50:46]OFD Sender: No OFD packet to send [13:50:51]OFD Sender: No OFD packet to send [13:50:56]OFD Sender: No OFD packet to send [13:51:01]OFD Sender: No OFD packet to send [13:51:06]OFD Sender: No OFD packet to send [13:51:11]OFD Sender: No OFD packet to send [13:51:16]OFD Sender: No OFD packet to send [13:51:21]OFD Sender: No OFD packet to send [13:51:26]OFD Sender: No OFD packet to send [13:51:31]OFD Sender: No OFD packet to send [13:51:36]OFD Sender: No OFD packet to send [13:51:41]OFD Sender: No OFD packet to send [13:51:46]OFD Sender: No OFD packet to send [13:51:51]OFD Sender: No OFD packet to send [13:51:56]OFD Sender: No OFD packet to send [13:52:01]OFD Sender: No OFD packet to send [13:52:06]OFD Sender: No OFD packet to send [13:52:11]OFD Sender: No OFD packet to send [13:52:16]OFD Sender: No OFD packet to send [13:52:21]OFD Sender: No OFD packet to send [13:52:26]OFD Sender: No OFD packet to send [13:52:31]OFD Sender: No OFD packet to send [13:52:36]OFD Sender: No OFD packet to send [13:52:41]OFD Sender: No OFD packet to send [13:52:46]OFD Sender: No OFD packet to send [13:52:51]OFD Sender: No OFD packet to send [13:52:56]OFD Sender: No OFD packet to send [13:53:01]OFD Sender: No OFD packet to send [13:53:06]OFD Sender: No OFD packet to send [13:53:11]OFD Sender: No OFD packet to send [13:53:16]OFD Sender: No OFD packet to send [13:53:21]OFD Sender: No OFD packet to send [13:53:26]OFD Sender: No OFD packet to send [13:53:31]OFD Sender: No OFD packet to send [13:53:36]OFD Sender: No OFD packet to send [13:53:41]OFD Sender: No OFD packet to send [13:53:46]OFD Sender: No OFD packet to send [13:53:51]OFD Sender: No OFD packet to send [13:53:56]OFD Sender: No OFD packet to send [13:54:01]OFD Sender: No OFD packet to send [13:54:06]OFD Sender: No OFD packet to send [13:54:11]OFD Sender: No OFD packet to send [13:54:16]OFD Sender: No OFD packet to send [13:54:21]OFD Sender: No OFD packet to send [13:54:26]OFD Sender: No OFD packet to send [13:54:31]OFD Sender: No OFD packet to send [13:54:36]OFD Sender: No OFD packet to send [13:54:41]OFD Sender: No OFD packet to send [13:54:46]OFD Sender: No OFD packet to send [13:54:51]OFD Sender: No OFD packet to send [13:54:56]OFD Sender: No OFD packet to send [13:55:01]OFD Sender: No OFD packet to send [13:55:06]OFD Sender: No OFD packet to send [13:55:11]OFD Sender: No OFD packet to send [13:55:16]OFD Sender: No OFD packet to send [13:55:21]OFD Sender: No OFD packet to send [13:55:26]OFD Sender: No OFD packet to send [13:55:31]OFD Sender: No OFD packet to send [13:55:36]OFD Sender: No OFD packet to send [13:55:41]OFD Sender: No OFD packet to send [13:55:46]OFD Sender: No OFD packet to send [13:55:51]OFD Sender: No OFD packet to send [13:55:56]OFD Sender: No OFD packet to send [13:56:01]OFD Sender: No OFD packet to send [13:56:06]OFD Sender: No OFD packet to send [13:56:11]OFD Sender: No OFD packet to send [13:56:16]OFD Sender: No OFD packet to send [13:56:21]OFD Sender: No OFD packet to send [13:56:26]OFD Sender: No OFD packet to send [13:56:31]OFD Sender: No OFD packet to send [13:56:37]OFD Sender: No OFD packet to send [13:56:42]OFD Sender: No OFD packet to send [13:56:47]OFD Sender: No OFD packet to send [13:56:52]OFD Sender: No OFD packet to send [13:56:57]OFD Sender: No OFD packet to send [13:57:02]OFD Sender: No OFD packet to send [13:57:07]OFD Sender: No OFD packet to send [13:57:12]OFD Sender: No OFD packet to send [13:57:17]OFD Sender: No OFD packet to send [13:57:22]OFD Sender: No OFD packet to send [13:57:27]OFD Sender: No OFD packet to send [13:57:32]OFD Sender: No OFD packet to send [13:57:37]OFD Sender: No OFD packet to send [13:57:42]OFD Sender: No OFD packet to send [13:57:47]OFD Sender: No OFD packet to send [13:57:52]OFD Sender: No OFD packet to send [13:57:57]OFD Sender: No OFD packet to send [13:58:02]OFD Sender: No OFD packet to send [13:58:07]OFD Sender: No OFD packet to send [13:58:12]OFD Sender: No OFD packet to send [13:58:17]OFD Sender: No OFD packet to send [13:58:22]OFD Sender: No OFD packet to send [13:58:27]OFD Sender: No OFD packet to send [13:58:32]OFD Sender: No OFD packet to send [13:58:37]OFD Sender: No OFD packet to send [13:58:42]OFD Sender: No OFD packet to send [13:58:47]OFD Sender: No OFD packet to send [13:58:52]OFD Sender: No OFD packet to send [13:58:57]OFD Sender: No OFD packet to send [13:59:02]OFD Sender: No OFD packet to send [13:59:07]OFD Sender: No OFD packet to send [13:59:12]OFD Sender: No OFD packet to send [13:59:17]OFD Sender: No OFD packet to send [13:59:22]OFD Sender: No OFD packet to send [13:59:27]OFD Sender: No OFD packet to send [13:59:32]OFD Sender: No OFD packet to send [13:59:37]OFD Sender: No OFD packet to send [13:59:42]OFD Sender: No OFD packet to send [13:59:47]OFD Sender: No OFD packet to send [13:59:52]OFD Sender: No OFD packet to send [13:59:57]OFD Sender: No OFD packet to send [14:00:02]OFD Sender: No OFD packet to send [14:00:07]OFD Sender: No OFD packet to send [14:00:12]OFD Sender: No OFD packet to send [14:00:17]OFD Sender: No OFD packet to send [14:00:22]OFD Sender: No OFD packet to send [14:00:27]OFD Sender: No OFD packet to send [14:00:32]OFD Sender: No OFD packet to send [14:00:37]OFD Sender: No OFD packet to send [14:00:42]OFD Sender: No OFD packet to send [14:00:47]OFD Sender: No OFD packet to send [14:00:52]OFD Sender: No OFD packet to send [14:00:57]OFD Sender: No OFD packet to send [14:01:02]OFD Sender: No OFD packet to send [14:01:07]OFD Sender: No OFD packet to send [14:01:12]OFD Sender: No OFD packet to send [14:01:17]OFD Sender: No OFD packet to send [14:01:22]OFD Sender: No OFD packet to send [14:01:27]OFD Sender: No OFD packet to send [14:01:32]OFD Sender: No OFD packet to send [14:01:37]OFD Sender: No OFD packet to send [14:01:42]OFD Sender: No OFD packet to send [14:01:47]OFD Sender: No OFD packet to send [14:01:52]OFD Sender: No OFD packet to send [14:01:57]OFD Sender: No OFD packet to send [14:02:02]OFD Sender: No OFD packet to send [14:02:07]OFD Sender: No OFD packet to send [14:02:12]OFD Sender: No OFD packet to send [14:02:17]OFD Sender: No OFD packet to send [14:02:22]OFD Sender: No OFD packet to send [14:02:27]OFD Sender: No OFD packet to send [14:02:32]OFD Sender: No OFD packet to send [14:02:37]OFD Sender: No OFD packet to send [14:02:42]OFD Sender: No OFD packet to send [14:02:47]OFD Sender: No OFD packet to send [14:02:52]OFD Sender: No OFD packet to send [14:02:57]OFD Sender: No OFD packet to send [14:03:02]OFD Sender: No OFD packet to send [14:03:03]accept exits with 7 [14:03:03]New connection [14:03:03]New thread 3066785124 created [14:03:03]Thread 3066928484 joined [14:03:03]Waiting for new connection... [14:03:03] Sock 7.Parse request [14:03:03]Sock 7.Check first char [14:03:03]Sock 7.First char is OK [14:03:03]request: POST /json_proto HTTP/1.0 [14:03:03]Method: POST [14:03:03]URL: /json_proto [14:03:03]Method is POST - this is cgi request [14:03:03]url: /json_proto [14:03:03]query_string will be loaded in cgi processing [14:03:03]execute_cgi json_proto POST (null) [14:03:03]execute_cgi path=json_proto method=POST [14:03:03]POST find Content-Length [14:03:03]Host: 172.17.33.3:8080 [14:03:03]Content-Length: 819 [14:03:03]Content-Type: application/json [14:03:03] [14:03:03]POST finish read [14:03:03]Found Content-Length = 819 [14:03:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347617", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.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" ] } } [14:03:03]execute_script... [14:03: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)347617", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.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" ] } } [14:03:03]POST & json_proto [14:03:03]process_json_proto [14:03:03]json parsed OK: [14:03:03]protocol is kg_v1.0 [14:03:03]action value=close_receipt [14:03:03]process_action close_receipt [14:03:03]cmd_close_receipt [14:03:03]MH_GetDate [14:03:03]Write to MH i2c: F0 00 00 9A 9A 23 [14:03:03]Write i2c OK [14:03:03]MH_I2C_Read... [14:03:03]Read from MH i2c: F0 [14:03:03]MH_I2C_Read... [14:03:03]Read from MH i2c: F0 09 00 [14:03:03]MH_I2C_Read... [14:03:03]Read from MH i2c: F0 09 00 9A 9A 00 21 E2 1B 66 23 5B 8F 65 22 [14:03:03]GetLastDocTimeStamp 1713102444 [14:03:03]current date 1713103393 [14:03:03]FM_GetShiftState [14:03:03]SAM_PROTO_GetShiftState [14:03:03]wFMCommunicate request_size=4 [14:03:03]MH_SAM_APDU [14:03:03]CAPDU: 80 13 01 00 [14:03:03]Write to MH i2c: E2 08 00 9B 9A 80 13 01 00 00 00 00 00 B2 [14:03:03]Write i2c OK [14:03:03]MH_I2C_Read... [14:03:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:03:03]Read from MH i2c: E2 [14:03:03]MH_I2C_Read... [14:03:03]Read from MH i2c: E2 0E 00 [14:03:03]MH_I2C_Read... [14:03:03]Read from MH i2c: E2 0E 00 9B 9A 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 5E [14:03:03]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [14:03:03]wFMCommunicate OK [14:03:03]SAM_PROTO_GetShiftState done [14:03:03]FM_GetShiftState done [14:03:03]opened in 1713053951 [14:03:03]opened+sec_in_day 1713140351 [14:03:03]quantity*price = 100050 [14:03:03]sum+1 = 100052 [14:03:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 142 14.04.2024 14:03 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 29232 ФПД: 93401894590814 1/tax-web-control/client/api/v1/ticket?date=20240414T140313&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29232&fm=93401894590814&tin=02508201610067®Number=0000138879044617&sum=100051 [14:03:04]StoreToDocumentArchive [14:03:04]shift 116 fd 29232 [14:03:04]save to /storage/0116/doc_00029232 [14:03:04]save last doc name /storage/0116/doc_00029232 to /storage/kkm_last_doc_name [14:03:04]save OK [14:03:04]Clear old archive folders... [14:03:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:03:04]tlvbuf is 0121A1E0 [14:03:04]SAM_PROTO_ClearQueue [14:03:04]wFMCommunicate request_size=4 [14:03:04]MH_SAM_APDU [14:03:04]CAPDU: 80 09 00 00 [14:03:04]Write to MH i2c: E2 08 00 A8 9A 80 09 00 00 00 00 00 00 B4 [14:03:04]Write i2c OK [14:03:04]MH_I2C_Read... [14:03:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:03:04]Read from MH i2c: E2 [14:03:04]MH_I2C_Read... [14:03:04]Read from MH i2c: E2 03 00 [14:03:04]MH_I2C_Read... [14:03:04]Read from MH i2c: E2 03 00 A8 9A 00 90 00 B6 [14:03:04]RAPDU: 90 00 [14:03:04]wFMCommunicate OK [14:03:04]SAM_PROTO_ClearQueue done [14:03:04]KKMCreateOFDPacket [14:03:04]OFDProtocolAddRootSTLVToBuf [14:03:04]FM_MakeSignedData [14:03:04]FM_MakeSignedData [14:03:04]SAM_PROTO_SignData [14:03:04]wFMCommunicate request_size=4 [14:03:04]MH_SAM_APDU [14:03:04]CAPDU: 80 0D 01 02 [14:03:04]Write to MH i2c: E2 08 00 A9 9A 80 0D 01 02 00 00 00 00 BC [14:03:04]Write i2c OK [14:03:04]MH_I2C_Read... [14:03:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:03:04]Read from MH i2c: E2 [14:03:04]MH_I2C_Read... [14:03:04]Read from MH i2c: E2 03 00 [14:03:04]MH_I2C_Read... [14:03:04]Read from MH i2c: E2 03 00 A9 9A 00 90 00 B7 [14:03:04]RAPDU: 90 00 [14:03:04]wFMCommunicate OK [14:03:04]wFMCommunicate request_size=255 [14:03:04]MH_SAM_APDU [14:03: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 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 8E 00 00 00 F4 03 04 00 21 E2 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 30 72 00 00 35 04 06 00 54 [14:03:04]Write to MH i2c: E2 02 01 AA 9A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 8E 00 00 00 F4 03 04 00 21 E2 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 30 72 00 00 35 04 06 00 54 00 00 CA [14:03:04]Write i2c OK [14:03:04]MH_I2C_Read... [14:03:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:03:05]Read from MH i2c: E2 [14:03:05]MH_I2C_Read... [14:03:05]Read from MH i2c: E2 03 00 [14:03:05]MH_I2C_Read... [14:03:05]Read from MH i2c: E2 03 00 AA 9A 00 90 00 B8 [14:03:05]RAPDU: 90 00 [14:03:05]wFMCommunicate OK [14:03:05]wFMCommunicate request_size=10 [14:03:05]MH_SAM_APDU [14:03:05]CAPDU: 80 0D 02 02 05 F2 D2 BF 99 5E [14:03:05]Write to MH i2c: E2 0D 00 AB 9A 80 0D 02 02 05 00 F2 D2 BF 99 5E 00 00 43 [14:03:05]Write i2c OK [14:03:05]MH_I2C_Read... [14:03:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:03:05]Read from MH i2c: E2 [14:03:05]MH_I2C_Read... [14:03:05]Read from MH i2c: E2 03 00 [14:03:05]MH_I2C_Read... [14:03:05]Read from MH i2c: E2 03 00 AB 9A 00 90 00 B9 [14:03:05]RAPDU: 90 00 [14:03:05]wFMCommunicate OK [14:03:05]wFMCommunicate request_size=4 [14:03:05]MH_SAM_APDU [14:03:05]CAPDU: 80 0D 03 02 [14:03:05]Write to MH i2c: E2 08 00 AC 9A 80 0D 03 02 00 00 00 00 C1 [14:03:05]Write i2c OK [14:03:05]MH_I2C_Read... [14:03:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:03:05]Read from MH i2c: E2 [14:03:05]MH_I2C_Read... [14:03:05]Read from MH i2c: E2 0B 00 [14:03:05]MH_I2C_Read... [14:03:05]Read from MH i2c: E2 0B 00 AC 9A 00 A9 57 D4 8B F1 5D AC 8E 90 00 A9 [14:03:05]RAPDU: A9 57 D4 8B F1 5D AC 8E 90 00 [14:03:05]wFMCommunicate OK [14:03:05]SAM_PROTO_SignData done [14:03:05]FM_MakeSignedData done [14:03:05]CreateOFDProtocolMessage [14:03:05]wFMCommunicate request_size=4 [14:03:05]MH_SAM_APDU [14:03:05]CAPDU: 80 11 00 00 [14:03:05]Write to MH i2c: E2 08 00 AD 9A 80 11 00 00 00 00 00 00 C1 [14:03:05]Write i2c OK [14:03:05]MH_I2C_Read... [14:03:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:03:05]Read from MH i2c: E2 [14:03:05]MH_I2C_Read... [14:03:05]Read from MH i2c: E2 17 00 [14:03:05]MH_I2C_Read... [14:03:05]Read from MH i2c: E2 17 00 AD 9A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 10 [14:03:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:03:05]wFMCommunicate OK [14:03:05]CreateOFDProtocolMessage done [14:03:05]OFDSenderStorePacket 29232 [14:03:05]StoreOFDPacket docnum=29232 [14:03:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 8B 05 07 01 A6 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 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 8E 00 00 00 F4 03 04 00 21 E2 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 30 72 00 00 35 04 06 00 54 F2 D2 BF 99 5E A9 57 D4 8B F1 5D AC 8E [14:03:05]CheckFolder [14:03:05]dirname=/storage/ofd_packets [14:03:05]CheckFolder done [14:03:05]ProducePacketName [14:03:05]name=ofd_packets/00029232 [14:03:05]NVStorageSaveData ofd_packets/00029232 [14:03:05]File name is /storage/ofd_packets/00029232 [14:03:05]Write 301 bytes [14:03:05]NVStorageSaveData done [14:03:05]OFDSenderStorePacket done [14:03:05]KKMCreateOFDPacket done [14:03:05]NVStorageSaveData kkm_last_timestamp [14:03:05]File name is /storage/kkm_last_timestamp [14:03:05]Write 4 bytes [14:03:05]NVStorageSaveData done [14:03:05]ExternCall_PrintAddStr [14:03:05]wPrintStart [14:03:05]Write to MH i2c: 01 00 00 AE 9A 48 [14:03:05]Write i2c OK [14:03:05]MH_I2C_Read... [14:03:05]Read from MH i2c: 01 [14:03:05]MH_I2C_Read... [14:03:05]Read from MH i2c: 01 07 00 [14:03:05]MH_I2C_Read... [14:03:05]Read from MH i2c: 01 07 00 AE 9A 00 00 00 00 00 FF 0F 5D [14:03:05]RasterBufferAndPrint [14:03:05]line Счет N : (1)347617 [14:03:05]line ИНН: 02508201610067 [14:03:05]line Контрольно-Кассовый Чек [14:03:05]line ПРОДАЖА [14:03:05]line ТРК (МРК, ГНК) : 13 [14:03:05]line Товар: 2710124130 [14:03:05]line Аи-92-К-5 [14:03:05]line 15.560 * 64.30 [14:03:05]line = 1000.51 [14:03:05]line НДС 12% НСП 1% [14:03:05]line > о реализуемом товаре [14:03:05]line ИТОГО: 1000.51 [14:03:05]line НСП 1% : 8.85 [14:03:05]line НДС 12% : 106.25 [14:03:05]line Наличными: 0.00 [14:03:05]line Безнал.: 1000.51 [14:03:05]line Место: АЗС № 108 "Партнер Нефть" [14:03:05]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [14:03:05]line СНО: Общий режим [14:03:05]line Чек 142 14.04.2024 14:03 [14:03:05]line Смена: 116 ФФД: 1.0 [14:03:05]line ЗНМ: 0300000027 [14:03:05]line РНМ: 0000138879044617 [14:03:05]line Версия ККМ: 001 [14:03:05]line Платежная система: Бакай Банк [14:03:05]line ФМ: 0000000000963154 [14:03:05]line ФД: 29232 [14:03:05]line ФПД: 93401894590814 [14:03:05]line 1/tax-web-control/client/api/v1/ticket?date=20240414T140313&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29232&fm=93401894590814&tin=02508201610067®Number=0000138879044617&sum=100051 [14:03:05]OFD Sender: Processing packet 29232 [packets to send 8, broken 7] [14:03:05]ProducePacketName [14:03:05]name=ofd_packets/00029232 [14:03:05]OFD Sender: To server: pG, [14:03:05]CommunicateWithHost lk.salyk.kg:30040 [14:03:05]ConnectInit lk.salyk.kg [14:03:05]written 0, free lines is 4095 [14:03:05]Connected sock=9 [14:03:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 8B 05 07 01 A6 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 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 8E 00 00 00 F4 03 04 00 21 E2 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 30 72 00 00 35 04 06 00 54 F2 D2 BF 99 5E A9 57 D4 8B F1 5D AC 8E [14:03:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 A0 B4 47 00 D9 C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 30 72 00 00 F4 03 04 00 C5 8C 1B 66 B6 04 01 00 00 E0 27 FA 98 DC 9B B3 20 [14:03:05]CommunicateWithHost err = 0 [14:03:05]CheckOFDResponse [14:03:05]1017 (14) - 77093643461234 [14:03:05]1041 (16) - 0000000000963154 [14:03:05]1040 (4) - 29232 [14:03:05]1012 (4) - 14.04.2024 07:59 [14:03:05]1206 (1) - 0 [14:03:05]OFD Sender: Remove packet 29232 [14:03:05]ProducePacketName [14:03:05]name=ofd_packets/00029232 [14:03:05]NVStorageDeleteData [14:03:05]Write to MH i2c: 01 00 00 D7 9A 71 [14:03:05]Write i2c OK [14:03:05]MH_I2C_Read... [14:03:05]Read from MH i2c: 01 [14:03:05]MH_I2C_Read... [14:03:05]Read from MH i2c: 01 07 00 [14:03:05]MH_I2C_Read... [14:03:05]Read from MH i2c: 01 07 00 D7 9A 00 00 00 00 00 D6 0C 5A [14:03:05]RasterBufferAndPrint [14:03:05]line [14:03:05]line [14:03:05]line [14:03:05]line [14:03:05]line [14:03:05]written 0, free lines is 3292 [14:03:05]MH_Cut [14:03:05]Write to MH i2c: D1 01 00 DE 9A 01 4A [14:03:05]Write i2c OK [14:03:05]MH_I2C_Read... [14:03:05]Read from MH i2c: D1 [14:03:05]MH_I2C_Read... [14:03:05]Read from MH i2c: D1 01 00 [14:03:05]MH_I2C_Read... [14:03:05]Read from MH i2c: D1 01 00 DE 9A 00 49 [14:03:05]Write to MH i2c: 01 00 00 DF 9A 79 [14:03:05]Write i2c OK [14:03:05]MH_I2C_Read... [14:03:06]OFD Sender: No OFD packet to send [14:03:06]*** Cut start [14:03:06]*** Partial cut [14:03:06]*** CUTSNS_PIN = 1 [14:03:06]*** CUTSNS_PIN = 0 [14:03:07]*** Brake cut motor [14:03:07]Read from MH i2c: 01 [14:03:07]MH_I2C_Read... [14:03:07]*** Stop cut motor [14:03:07]*** Cut end [14:03:07]Read from MH i2c: 01 07 00 [14:03:07]MH_I2C_Read... [14:03:07]Read from MH i2c: 01 07 00 DF 9A 00 00 00 00 00 FF 0F 8E [14:03:07]process_action close_receipt done [14:03:07]requested_data is exist [14:03:07]produce_requested_data [14:03:07]requested_item fm.sn is exist - process it [14:03:07]wFMCommunicate request_size=4 [14:03:07]MH_SAM_APDU [14:03:07]CAPDU: 80 11 00 00 [14:03:07]Write to MH i2c: E2 08 00 E0 9A 80 11 00 00 00 00 00 00 F4 [14:03:07]Write i2c OK [14:03:07]MH_I2C_Read... [14:03:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:03:07]Read from MH i2c: E2 [14:03:07]MH_I2C_Read... [14:03:07]Read from MH i2c: E2 17 00 [14:03:07]MH_I2C_Read... [14:03:07]Read from MH i2c: E2 17 00 E0 9A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 43 [14:03:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:03:07]wFMCommunicate OK [14:03:07]requested_item fd.num is exist - process it [14:03:07]SAM_PROTO_GetFieldsCounters [14:03:07]wFMCommunicate request_size=4 [14:03:07]MH_SAM_APDU [14:03:07]CAPDU: 80 13 00 00 [14:03:07]Write to MH i2c: E2 08 00 E1 9A 80 13 00 00 00 00 00 00 F7 [14:03:07]Write i2c OK [14:03:07]MH_I2C_Read... [14:03:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:03:07]Read from MH i2c: E2 [14:03:07]MH_I2C_Read... [14:03:07]Read from MH i2c: E2 62 00 [14:03:07]MH_I2C_Read... [14:03:07]Read from MH i2c: E2 62 00 E1 9A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 30 72 00 00 0E 04 04 00 74 00 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 F5 [14:03:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 30 72 00 00 0E 04 04 00 74 00 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 [14:03:07]wFMCommunicate OK [14:03:07]SAM_PROTO_GetFieldsCounters done [14:03:07]requested_item shift.num is exist - process it [14:03:07]requested_item shift.opened is exist - process it [14:03:07]req_shift_opened [14:03:07]FM_GetShiftState [14:03:07]SAM_PROTO_GetShiftState [14:03:07]wFMCommunicate request_size=4 [14:03:07]MH_SAM_APDU [14:03:07]CAPDU: 80 13 01 00 [14:03:07]Write to MH i2c: E2 08 00 E2 9A 80 13 01 00 00 00 00 00 F9 [14:03:07]Write i2c OK [14:03:07]MH_I2C_Read... [14:03:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:03:07]Read from MH i2c: E2 [14:03:07]MH_I2C_Read... [14:03:07]Read from MH i2c: E2 0E 00 [14:03:07]MH_I2C_Read... [14:03:07]Read from MH i2c: E2 0E 00 E2 9A 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 A5 [14:03:07]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [14:03:07]wFMCommunicate OK [14:03:07]SAM_PROTO_GetShiftState done [14:03:07]FM_GetShiftState done [14:03:07]req_shift_opened done [14:03:07]requested_item shift.open_date is exist - process it [14:03:07]req_shift_open_date [14:03:07]req_shift_open_date done [14:03:07]produce_requested_data done [14:03:07]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29232,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [14:03:07]process_action_free close_receipt [14:03:07]json_value_free [14:03:07]json_value_free done [14:03:07]process_json_proto returns [14:03:07]Send response to host [14:03:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29232,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [14:03:07]free response buf [14:03:07]execute_script done [14:03:07]execute_script returns [14:03:07]free content buf [14:03:07]Sock 7.Close socket [14:03:07]Sock 7.Thread stoped [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:00]accept exits with 10 [14:05:00]New connection [14:05:00]New thread 3066928484 created [14:05:00]Thread 3066785124 joined [14:05:00]Waiting for new connection... [14:05:00] Sock 10.Parse request [14:05:00]Sock 10.Check first char [14:05:00]Sock 10.First char is OK [14:05:00]request: POST /json_proto HTTP/1.0 [14:05:00]Method: POST [14:05:00]URL: /json_proto [14:05:00]Method is POST - this is cgi request [14:05:00]url: /json_proto [14:05:00]query_string will be loaded in cgi processing [14:05:00]execute_cgi json_proto POST (null) [14:05:00]execute_cgi path=json_proto method=POST [14:05:00]POST find Content-Length [14:05:00]Host: 172.17.33.3:8080 [14:05:00]Content-Length: 685 [14:05:00]Content-Type: application/json [14:05:00] [14:05:00]POST finish read [14:05:00]Found Content-Length = 685 [14:05:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347616", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 31.870, "sum" : 1048.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1100.00, "total" : 1048.00, "payments": [ { "type": 0, "sum" : 1048.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:05:00]execute_script... [14:05: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)347616", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 31.870, "sum" : 1048.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1100.00, "total" : 1048.00, "payments": [ { "type": 0, "sum" : 1048.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:05:00]POST & json_proto [14:05:00]process_json_proto [14:05:00]json parsed OK: [14:05:00]protocol is kg_v1.0 [14:05:00]action value=close_receipt [14:05:00]process_action close_receipt [14:05:00]cmd_close_receipt [14:05:00]MH_GetDate [14:05:00]Write to MH i2c: F0 00 00 E3 9A 6C [14:05:00]Write i2c OK [14:05:00]MH_I2C_Read... [14:05:00]Read from MH i2c: F0 [14:05:00]MH_I2C_Read... [14:05:00]Read from MH i2c: F0 09 00 [14:05:00]MH_I2C_Read... [14:05:00]Read from MH i2c: F0 09 00 E3 9A 00 96 E2 1B 66 23 5B 8F 65 E0 [14:05:00]GetLastDocTimeStamp 1713103393 [14:05:00]current date 1713103510 [14:05:00]FM_GetShiftState [14:05:00]SAM_PROTO_GetShiftState [14:05:00]wFMCommunicate request_size=4 [14:05:00]MH_SAM_APDU [14:05:00]CAPDU: 80 13 01 00 [14:05:00]Write to MH i2c: E2 08 00 E4 9A 80 13 01 00 00 00 00 00 FB [14:05:00]Write i2c OK [14:05:00]MH_I2C_Read... [14:05:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:00]Read from MH i2c: E2 [14:05:00]MH_I2C_Read... [14:05:00]Read from MH i2c: E2 0E 00 [14:05:00]MH_I2C_Read... [14:05:00]Read from MH i2c: E2 0E 00 E4 9A 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 A7 [14:05:00]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [14:05:00]wFMCommunicate OK [14:05:00]SAM_PROTO_GetShiftState done [14:05:00]FM_GetShiftState done [14:05:00]opened in 1713053951 [14:05:00]opened+sec_in_day 1713140351 [14:05:00]quantity*price = 104852 [14:05:00]sum+1 = 104853 [14:05:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 1048.00 Внесено: 1100.00 СДАЧА: 52.00 НСП 1% : 9.28 НДС 12% : 111.35 Наличными: 1048.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 143 14.04.2024 14:05 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29233 ФПД: 150319537019789 1/tax-web-control/client/api/v1/ticket?date=20240414T140510&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29233&fm=150319537019789&tin=02508201610067®Number=0000138879044617&sum=104800 [14:05:01]StoreToDocumentArchive [14:05:01]shift 116 fd 29233 [14:05:01]save to /storage/0116/doc_00029233 [14:05:01]save last doc name /storage/0116/doc_00029233 to /storage/kkm_last_doc_name [14:05:01]save OK [14:05:01]Clear old archive folders... [14:05:01]ProcessDocumentItem done err = 0, tmpTLVsize=250 [14:05:01]tlvbuf is 011E37E0 [14:05:01]SAM_PROTO_ClearQueue [14:05:01]wFMCommunicate request_size=4 [14:05:01]MH_SAM_APDU [14:05:01]CAPDU: 80 09 00 00 [14:05:01]Write to MH i2c: E2 08 00 F1 9A 80 09 00 00 00 00 00 00 FD [14:05:01]Write i2c OK [14:05:01]MH_I2C_Read... [14:05:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:05:01]Read from MH i2c: E2 [14:05:01]MH_I2C_Read... [14:05:01]Read from MH i2c: E2 03 00 [14:05:01]MH_I2C_Read... [14:05:01]Read from MH i2c: E2 03 00 F1 9A 00 90 00 FF [14:05:01]RAPDU: 90 00 [14:05:01]wFMCommunicate OK [14:05:01]SAM_PROTO_ClearQueue done [14:05:01]KKMCreateOFDPacket [14:05:01]OFDProtocolAddRootSTLVToBuf [14:05:01]FM_MakeSignedData [14:05:01]FM_MakeSignedData [14:05:01]SAM_PROTO_SignData [14:05:01]wFMCommunicate request_size=4 [14:05:01]MH_SAM_APDU [14:05:01]CAPDU: 80 0D 01 02 [14:05:01]Write to MH i2c: E2 08 00 F2 9A 80 0D 01 02 00 00 00 00 05 [14:05:01]Write i2c OK [14:05:01]MH_I2C_Read... [14:05:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:05:01]Read from MH i2c: E2 [14:05:01]MH_I2C_Read... [14:05:01]Read from MH i2c: E2 03 00 [14:05:01]MH_I2C_Read... [14:05:01]Read from MH i2c: E2 03 00 F2 9A 00 90 00 00 [14:05:01]RAPDU: 90 00 [14:05:01]wFMCommunicate OK [14:05:01]wFMCommunicate request_size=255 [14:05:01]MH_SAM_APDU [14:05: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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 7E 7C 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 94 99 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 99 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 2B 00 00 00 00 07 04 06 00 60 99 01 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 96 E2 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 31 72 00 00 35 04 06 00 88 B6 [14:05:01]Write to MH i2c: E2 02 01 F3 9A 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 7E 7C 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 94 99 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 99 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 2B 00 00 00 00 07 04 06 00 60 99 01 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 96 E2 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 31 72 00 00 35 04 06 00 88 B6 00 00 08 [14:05:01]Write i2c OK [14:05:01]MH_I2C_Read... [14:05:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:05:01]Read from MH i2c: E2 [14:05:01]MH_I2C_Read... [14:05:01]Read from MH i2c: E2 03 00 [14:05:01]MH_I2C_Read... [14:05:01]Read from MH i2c: E2 03 00 F3 9A 00 90 00 01 [14:05:01]RAPDU: 90 00 [14:05:01]wFMCommunicate OK [14:05:01]wFMCommunicate request_size=9 [14:05:01]MH_SAM_APDU [14:05:01]CAPDU: 80 0D 02 02 04 FE 9B 5B 8D [14:05:01]Write to MH i2c: E2 0C 00 F4 9A 80 0D 02 02 04 00 FE 9B 5B 8D 00 00 91 [14:05:02]Write i2c OK [14:05:02]MH_I2C_Read... [14:05:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:05:02]Read from MH i2c: E2 [14:05:02]MH_I2C_Read... [14:05:02]Read from MH i2c: E2 03 00 [14:05:02]MH_I2C_Read... [14:05:02]Read from MH i2c: E2 03 00 F4 9A 00 90 00 02 [14:05:02]RAPDU: 90 00 [14:05:02]wFMCommunicate OK [14:05:02]wFMCommunicate request_size=4 [14:05:02]MH_SAM_APDU [14:05:02]CAPDU: 80 0D 03 02 [14:05:02]Write to MH i2c: E2 08 00 F5 9A 80 0D 03 02 00 00 00 00 0A [14:05:02]Write i2c OK [14:05:02]MH_I2C_Read... [14:05:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:05:02]Read from MH i2c: E2 [14:05:02]MH_I2C_Read... [14:05:02]Read from MH i2c: E2 0B 00 [14:05:02]MH_I2C_Read... [14:05:02]Read from MH i2c: E2 0B 00 F5 9A 00 2F 5F BD 2F D6 72 81 21 90 00 6F [14:05:02]RAPDU: 2F 5F BD 2F D6 72 81 21 90 00 [14:05:02]wFMCommunicate OK [14:05:02]SAM_PROTO_SignData done [14:05:02]FM_MakeSignedData done [14:05:02]CreateOFDProtocolMessage [14:05:02]wFMCommunicate request_size=4 [14:05:02]MH_SAM_APDU [14:05:02]CAPDU: 80 11 00 00 [14:05:02]Write to MH i2c: E2 08 00 F6 9A 80 11 00 00 00 00 00 00 0A [14:05:02]Write i2c OK [14:05:02]MH_I2C_Read... [14:05:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:05:02]Read from MH i2c: E2 [14:05:02]MH_I2C_Read... [14:05:02]Read from MH i2c: E2 17 00 [14:05:02]MH_I2C_Read... [14:05:02]Read from MH i2c: E2 17 00 F6 9A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 59 [14:05:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:05:02]wFMCommunicate OK [14:05:02]CreateOFDProtocolMessage done [14:05:02]OFDSenderStorePacket 29233 [14:05:02]StoreOFDPacket docnum=29233 [14:05:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 3F FD 06 01 E3 69 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 7E 7C 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 94 99 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 99 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 2B 00 00 00 00 07 04 06 00 60 99 01 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 96 E2 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 31 72 00 00 35 04 06 00 88 B6 FE 9B 5B 8D 2F 5F BD 2F D6 72 81 21 [14:05:02]CheckFolder [14:05:02]dirname=/storage/ofd_packets [14:05:02]CheckFolder done [14:05:02]ProducePacketName [14:05:02]name=ofd_packets/00029233 [14:05:02]NVStorageSaveData ofd_packets/00029233 [14:05:02]File name is /storage/ofd_packets/00029233 [14:05:02]Write 300 bytes [14:05:02]NVStorageSaveData done [14:05:02]OFDSenderStorePacket done [14:05:02]KKMCreateOFDPacket done [14:05:02]NVStorageSaveData kkm_last_timestamp [14:05:02]File name is /storage/kkm_last_timestamp [14:05:02]Write 4 bytes [14:05:02]NVStorageSaveData done [14:05:02]ExternCall_PrintAddStr [14:05:02]wPrintStart [14:05:02]Write to MH i2c: 01 00 00 F7 9A 91 [14:05:02]Write i2c OK [14:05:02]MH_I2C_Read... [14:05:02]Read from MH i2c: 01 [14:05:02]MH_I2C_Read... [14:05:02]Read from MH i2c: 01 07 00 [14:05:02]MH_I2C_Read... [14:05:02]Read from MH i2c: 01 07 00 F7 9A 00 00 00 00 00 FF 0F A6 [14:05:02]RasterBufferAndPrint [14:05:02]line Счет N : (1)347616 [14:05:02]line ИНН: 02508201610067 [14:05:02]line Контрольно-Кассовый Чек [14:05:02]line ПРОДАЖА [14:05:02]line ТРК (МРК, ГНК) : 71 [14:05:02]line Товар: 2711129700 [14:05:02]line ГАЗ-К-5 [14:05:02]line 31.870 * 32.90 [14:05:02]line = 1048.52 [14:05:02]line НДС 12% НСП 1% [14:05:02]line > о реализуемом товаре [14:05:02]line ОКРУГЛЕНИЕ: -0.52 [14:05:02]line ИТОГО: 1048.00 [14:05:02]line Внесено: 1100.00 [14:05:02]line СДАЧА: 52.00 [14:05:02]line НСП 1% : 9.28 [14:05:02]line НДС 12% : 111.35 [14:05:02]line Наличными: 1048.00 [14:05:02]line Безнал.: 0.00 [14:05:02]line Место: АЗС № 108 "Партнер Нефть" [14:05:02]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [14:05:02]line СНО: Общий режим [14:05:02]line Чек 143 14.04.2024 14:05 [14:05:02]line Смена: 116 ФФД: 1.0 [14:05:02]line ЗНМ: 0300000027 [14:05:02]line РНМ: 0000138879044617 [14:05:02]line Версия ККМ: 001 [14:05:02]line ФМ: 0000000000963154 [14:05:02]line ФД: 29233 [14:05:02]line ФПД: 150319537019789 [14:05:02]line 1/tax-web-control/client/api/v1/ticket?date=20240414T140510&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29233&fm=150319537019789&tin=02508201610067®Number=0000138879044617&sum=104800 [14:05:02]OFD Sender: Processing packet 29233 [packets to send 8, broken 7] [14:05:02]ProducePacketName [14:05:02]name=ofd_packets/00029233 [14:05:02]OFD Sender: To server: pG, [14:05:02]CommunicateWithHost lk.salyk.kg:30040 [14:05:02]ConnectInit lk.salyk.kg [14:05:02]written 0, free lines is 4095 [14:05:02]Connected sock=9 [14:05:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 3F FD 06 01 E3 69 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 7E 7C 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 94 99 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 99 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 2B 00 00 00 00 07 04 06 00 60 99 01 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 96 E2 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 31 72 00 00 35 04 06 00 88 B6 FE 9B 5B 8D 2F 5F BD 2F D6 72 81 21 [14:05:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 72 55 47 00 7F 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 39 36 33 31 35 34 10 04 04 00 31 72 00 00 F4 03 04 00 3A 8D 1B 66 B6 04 01 00 00 32 F0 4F AF 26 FB 2A 41 [14:05:02]CommunicateWithHost err = 0 [14:05:02]CheckOFDResponse [14:05:02]1017 (14) - 77093643461234 [14:05:02]1041 (16) - 0000000000963154 [14:05:02]1040 (4) - 29233 [14:05:02]1012 (4) - 14.04.2024 08:00 [14:05:02]1206 (1) - 0 [14:05:02]OFD Sender: Remove packet 29233 [14:05:02]ProducePacketName [14:05:02]name=ofd_packets/00029233 [14:05:02]NVStorageDeleteData [14:05:02]Write to MH i2c: 01 00 00 21 9B BC [14:05:02]Write i2c OK [14:05:02]MH_I2C_Read... [14:05:02]Read from MH i2c: 01 [14:05:02]MH_I2C_Read... [14:05:02]Read from MH i2c: 01 07 00 [14:05:02]MH_I2C_Read... [14:05:02]Read from MH i2c: 01 07 00 21 9B 00 00 00 00 00 CD 0C 9C [14:05:02]RasterBufferAndPrint [14:05:02]line [14:05:02]line [14:05:02]line [14:05:02]line [14:05:02]line [14:05:02]written 0, free lines is 3284 [14:05:02]MH_Cut [14:05:02]Write to MH i2c: D1 01 00 28 9B 01 95 [14:05:02]Write i2c OK [14:05:02]MH_I2C_Read... [14:05:02]Read from MH i2c: D1 [14:05:02]MH_I2C_Read... [14:05:02]Read from MH i2c: D1 01 00 [14:05:02]MH_I2C_Read... [14:05:02]Read from MH i2c: D1 01 00 28 9B 00 94 [14:05:02]Write to MH i2c: 01 00 00 29 9B C4 [14:05:02]Write i2c OK [14:05:02]MH_I2C_Read... [14:05:03]OFD Sender: No OFD packet to send [14:05:03]*** Cut start [14:05:03]*** Partial cut [14:05:03]*** CUTSNS_PIN = 1 [14:05:03]*** CUTSNS_PIN = 0 [14:05:04]*** Brake cut motor [14:05:04]Read from MH i2c: 01 [14:05:04]MH_I2C_Read... [14:05:04]*** Stop cut motor [14:05:04]*** Cut end [14:05:04]Read from MH i2c: 01 07 00 [14:05:04]MH_I2C_Read... [14:05:04]Read from MH i2c: 01 07 00 29 9B 00 00 00 00 00 FF 0F D9 [14:05:04]process_action close_receipt done [14:05:04]requested_data is exist [14:05:04]produce_requested_data [14:05:04]requested_item fm.sn is exist - process it [14:05:04]wFMCommunicate request_size=4 [14:05:04]MH_SAM_APDU [14:05:04]CAPDU: 80 11 00 00 [14:05:04]Write to MH i2c: E2 08 00 2A 9B 80 11 00 00 00 00 00 00 3F [14:05:04]Write i2c OK [14:05:04]MH_I2C_Read... [14:05:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:05:04]Read from MH i2c: E2 [14:05:04]MH_I2C_Read... [14:05:04]Read from MH i2c: E2 17 00 [14:05:04]MH_I2C_Read... [14:05:04]Read from MH i2c: E2 17 00 2A 9B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 8E [14:05:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:05:04]wFMCommunicate OK [14:05:04]requested_item fd.num is exist - process it [14:05:04]SAM_PROTO_GetFieldsCounters [14:05:04]wFMCommunicate request_size=4 [14:05:04]MH_SAM_APDU [14:05:04]CAPDU: 80 13 00 00 [14:05:04]Write to MH i2c: E2 08 00 2B 9B 80 13 00 00 00 00 00 00 42 [14:05:04]Write i2c OK [14:05:04]MH_I2C_Read... [14:05:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:05:04]Read from MH i2c: E2 [14:05:04]MH_I2C_Read... [14:05:04]Read from MH i2c: E2 62 00 [14:05:04]MH_I2C_Read... [14:05:04]Read from MH i2c: E2 62 00 2B 9B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 31 72 00 00 0E 04 04 00 74 00 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 44 [14:05:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 31 72 00 00 0E 04 04 00 74 00 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 [14:05:04]wFMCommunicate OK [14:05:04]SAM_PROTO_GetFieldsCounters done [14:05:04]requested_item shift.num is exist - process it [14:05:04]requested_item shift.opened is exist - process it [14:05:04]req_shift_opened [14:05:04]FM_GetShiftState [14:05:04]SAM_PROTO_GetShiftState [14:05:04]wFMCommunicate request_size=4 [14:05:04]MH_SAM_APDU [14:05:04]CAPDU: 80 13 01 00 [14:05:04]Write to MH i2c: E2 08 00 2C 9B 80 13 01 00 00 00 00 00 44 [14:05:04]Write i2c OK [14:05:04]MH_I2C_Read... [14:05:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:04]Read from MH i2c: E2 [14:05:04]MH_I2C_Read... [14:05:04]Read from MH i2c: E2 0E 00 [14:05:04]MH_I2C_Read... [14:05:04]Read from MH i2c: E2 0E 00 2C 9B 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 F0 [14:05:04]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [14:05:04]wFMCommunicate OK [14:05:04]SAM_PROTO_GetShiftState done [14:05:04]FM_GetShiftState done [14:05:04]req_shift_opened done [14:05:04]requested_item shift.open_date is exist - process it [14:05:04]req_shift_open_date [14:05:04]req_shift_open_date done [14:05:04]produce_requested_data done [14:05:04]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29233,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [14:05:04]process_action_free close_receipt [14:05:04]json_value_free [14:05:04]json_value_free done [14:05:04]process_json_proto returns [14:05:04]Send response to host [14:05:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29233,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [14:05:04]free response buf [14:05:04]execute_script done [14:05:04]execute_script returns [14:05:04]free content buf [14:05:04]Sock 10.Close socket [14:05:04]Sock 10.Thread stoped [14:05:08]OFD Sender: No OFD packet to send [14:05:13]OFD Sender: No OFD packet to send [14:05:18]OFD Sender: No OFD packet to send [14:05:23]OFD Sender: No OFD packet to send [14:05:28]OFD Sender: No OFD packet to send [14:05:33]OFD Sender: No OFD packet to send [14:05:38]OFD Sender: No OFD packet to send [14:05:43]OFD Sender: No OFD packet to send [14:05:48]OFD Sender: No OFD packet to send [14:05:53]OFD Sender: No OFD packet to send [14:05:58]OFD Sender: No OFD packet to send [14:06:03]OFD Sender: No OFD packet to send [14:06:08]OFD Sender: No OFD packet to send [14:06:13]OFD Sender: No OFD packet to send [14:06:18]OFD Sender: No OFD packet to send [14:06:23]OFD Sender: No OFD packet to send [14:06:28]OFD Sender: No OFD packet to send [14:06:33]OFD Sender: No OFD packet to send [14:06:38]OFD Sender: No OFD packet to send [14:06:43]OFD Sender: No OFD packet to send [14:06:48]OFD Sender: No OFD packet to send [14:06:53]OFD Sender: No OFD packet to send [14:06:58]OFD Sender: No OFD packet to send [14:07:03]OFD Sender: No OFD packet to send [14:07:08]OFD Sender: No OFD packet to send [14:07:13]OFD Sender: No OFD packet to send [14:07:18]OFD Sender: No OFD packet to send [14:07:23]OFD Sender: No OFD packet to send [14:07:28]OFD Sender: No OFD packet to send [14:07:33]OFD Sender: No OFD packet to send [14:07:33]accept exits with 7 [14:07:33]New connection [14:07:33]New thread 3066785124 created [14:07:33]Thread 3066928484 joined [14:07:33]Waiting for new connection... [14:07:33] Sock 7.Parse request [14:07:33]Sock 7.Check first char [14:07:33]Sock 7.First char is OK [14:07:33]request: POST /json_proto HTTP/1.0 [14:07:33]Method: POST [14:07:33]URL: /json_proto [14:07:33]Method is POST - this is cgi request [14:07:33]url: /json_proto [14:07:33]query_string will be loaded in cgi processing [14:07:33]execute_cgi json_proto POST (null) [14:07:33]execute_cgi path=json_proto method=POST [14:07:33]POST find Content-Length [14:07:33]Host: 172.17.33.3:8080 [14:07:33]Content-Length: 682 [14:07:33]Content-Type: application/json [14:07:33] [14:07:33]POST finish read [14:07:33]Found Content-Length = 682 [14:07:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347618", "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:07:33]execute_script... [14:07:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347618", "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:07:33]POST & json_proto [14:07:33]process_json_proto [14:07:33]json parsed OK: [14:07:33]protocol is kg_v1.0 [14:07:33]action value=close_receipt [14:07:33]process_action close_receipt [14:07:33]cmd_close_receipt [14:07:33]MH_GetDate [14:07:33]Write to MH i2c: F0 00 00 2D 9B B7 [14:07:33]Write i2c OK [14:07:33]MH_I2C_Read... [14:07:33]Read from MH i2c: F0 [14:07:33]MH_I2C_Read... [14:07:33]Read from MH i2c: F0 09 00 [14:07:33]MH_I2C_Read... [14:07:33]Read from MH i2c: F0 09 00 2D 9B 00 30 E3 1B 66 23 5B 8F 65 C6 [14:07:33]GetLastDocTimeStamp 1713103510 [14:07:33]current date 1713103664 [14:07:33]FM_GetShiftState [14:07:33]SAM_PROTO_GetShiftState [14:07:33]wFMCommunicate request_size=4 [14:07:33]MH_SAM_APDU [14:07:33]CAPDU: 80 13 01 00 [14:07:33]Write to MH i2c: E2 08 00 2E 9B 80 13 01 00 00 00 00 00 46 [14:07:33]Write i2c OK [14:07:33]MH_I2C_Read... [14:07:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:07:33]Read from MH i2c: E2 [14:07:33]MH_I2C_Read... [14:07:33]Read from MH i2c: E2 0E 00 [14:07:33]MH_I2C_Read... [14:07:34]Read from MH i2c: E2 0E 00 2E 9B 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 F2 [14:07:34]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [14:07:34]wFMCommunicate OK [14:07:34]SAM_PROTO_GetShiftState done [14:07:34]FM_GetShiftState done [14:07:34]opened in 1713053951 [14:07:34]opened+sec_in_day 1713140351 [14:07:34]quantity*price = 100050 [14:07:34]sum+1 = 100052 [14:07:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 144 14.04.2024 14:07 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29234 ФПД: 65591468590700 1/tax-web-control/client/api/v1/ticket?date=20240414T140744&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29234&fm=65591468590700&tin=02508201610067®Number=0000138879044617&sum=100000 [14:07:35]StoreToDocumentArchive [14:07:35]shift 116 fd 29234 [14:07:35]save to /storage/0116/doc_00029234 [14:07:35]save last doc name /storage/0116/doc_00029234 to /storage/kkm_last_doc_name [14:07:35]save OK [14:07:35]Clear old archive folders... [14:07:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:07:35]tlvbuf is 0121A660 [14:07:35]SAM_PROTO_ClearQueue [14:07:35]wFMCommunicate request_size=4 [14:07:35]MH_SAM_APDU [14:07:35]CAPDU: 80 09 00 00 [14:07:35]Write to MH i2c: E2 08 00 3B 9B 80 09 00 00 00 00 00 00 48 [14:07:35]Write i2c OK [14:07:35]MH_I2C_Read... [14:07:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:07:35]Read from MH i2c: E2 [14:07:35]MH_I2C_Read... [14:07:35]Read from MH i2c: E2 03 00 [14:07:35]MH_I2C_Read... [14:07:35]Read from MH i2c: E2 03 00 3B 9B 00 90 00 4A [14:07:35]RAPDU: 90 00 [14:07:35]wFMCommunicate OK [14:07:35]SAM_PROTO_ClearQueue done [14:07:35]KKMCreateOFDPacket [14:07:35]OFDProtocolAddRootSTLVToBuf [14:07:35]FM_MakeSignedData [14:07:35]FM_MakeSignedData [14:07:35]SAM_PROTO_SignData [14:07:35]wFMCommunicate request_size=4 [14:07:35]MH_SAM_APDU [14:07:35]CAPDU: 80 0D 01 02 [14:07:35]Write to MH i2c: E2 08 00 3C 9B 80 0D 01 02 00 00 00 00 50 [14:07:35]Write i2c OK [14:07:35]MH_I2C_Read... [14:07:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:07:35]Read from MH i2c: E2 [14:07:35]MH_I2C_Read... [14:07:35]Read from MH i2c: E2 03 00 [14:07:35]MH_I2C_Read... [14:07:35]Read from MH i2c: E2 03 00 3C 9B 00 90 00 4B [14:07:35]RAPDU: 90 00 [14:07:35]wFMCommunicate OK [14:07:35]wFMCommunicate request_size=255 [14:07:35]MH_SAM_APDU [14:07: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 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 90 00 00 00 F4 03 04 00 30 E3 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 32 72 00 00 35 04 06 00 3B [14:07:35]Write to MH i2c: E2 02 01 3D 9B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 90 00 00 00 F4 03 04 00 30 E3 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 32 72 00 00 35 04 06 00 3B 00 00 F3 [14:07:35]Write i2c OK [14:07:35]MH_I2C_Read... [14:07:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:07:35]Read from MH i2c: E2 [14:07:35]MH_I2C_Read... [14:07:35]Read from MH i2c: E2 03 00 [14:07:35]MH_I2C_Read... [14:07:35]Read from MH i2c: E2 03 00 3D 9B 00 90 00 4C [14:07:35]RAPDU: 90 00 [14:07:35]wFMCommunicate OK [14:07:35]wFMCommunicate request_size=10 [14:07:35]MH_SAM_APDU [14:07:35]CAPDU: 80 0D 02 02 05 A7 B4 2F 86 6C [14:07:35]Write to MH i2c: E2 0D 00 3E 9B 80 0D 02 02 05 00 A7 B4 2F 86 6C 00 00 D9 [14:07:35]Write i2c OK [14:07:35]MH_I2C_Read... [14:07:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:07:35]Read from MH i2c: E2 [14:07:35]MH_I2C_Read... [14:07:35]Read from MH i2c: E2 03 00 [14:07:35]MH_I2C_Read... [14:07:35]Read from MH i2c: E2 03 00 3E 9B 00 90 00 4D [14:07:35]RAPDU: 90 00 [14:07:35]wFMCommunicate OK [14:07:35]wFMCommunicate request_size=4 [14:07:35]MH_SAM_APDU [14:07:35]CAPDU: 80 0D 03 02 [14:07:35]Write to MH i2c: E2 08 00 3F 9B 80 0D 03 02 00 00 00 00 55 [14:07:35]Write i2c OK [14:07:35]MH_I2C_Read... [14:07:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:07:35]Read from MH i2c: E2 [14:07:35]MH_I2C_Read... [14:07:35]Read from MH i2c: E2 0B 00 [14:07:35]MH_I2C_Read... [14:07:35]Read from MH i2c: E2 0B 00 3F 9B 00 80 FE 8A A4 28 0D 6A C2 90 00 63 [14:07:35]RAPDU: 80 FE 8A A4 28 0D 6A C2 90 00 [14:07:35]wFMCommunicate OK [14:07:35]SAM_PROTO_SignData done [14:07:35]FM_MakeSignedData done [14:07:35]CreateOFDProtocolMessage [14:07:35]wFMCommunicate request_size=4 [14:07:35]MH_SAM_APDU [14:07:35]CAPDU: 80 11 00 00 [14:07:35]Write to MH i2c: E2 08 00 40 9B 80 11 00 00 00 00 00 00 55 [14:07:35]Write i2c OK [14:07:35]MH_I2C_Read... [14:07:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:07:35]Read from MH i2c: E2 [14:07:35]MH_I2C_Read... [14:07:35]Read from MH i2c: E2 17 00 [14:07:35]MH_I2C_Read... [14:07:35]Read from MH i2c: E2 17 00 40 9B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A4 [14:07:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:07:35]wFMCommunicate OK [14:07:35]CreateOFDProtocolMessage done [14:07:35]OFDSenderStorePacket 29234 [14:07:35]StoreOFDPacket docnum=29234 [14:07:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 20 1F 07 01 57 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 90 00 00 00 F4 03 04 00 30 E3 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 32 72 00 00 35 04 06 00 3B A7 B4 2F 86 6C 80 FE 8A A4 28 0D 6A C2 [14:07:35]CheckFolder [14:07:35]dirname=/storage/ofd_packets [14:07:35]CheckFolder done [14:07:35]ProducePacketName [14:07:35]name=ofd_packets/00029234 [14:07:35]NVStorageSaveData ofd_packets/00029234 [14:07:35]File name is /storage/ofd_packets/00029234 [14:07:35]Write 301 bytes [14:07:35]NVStorageSaveData done [14:07:35]OFDSenderStorePacket done [14:07:35]KKMCreateOFDPacket done [14:07:35]NVStorageSaveData kkm_last_timestamp [14:07:35]File name is /storage/kkm_last_timestamp [14:07:35]Write 4 bytes [14:07:35]NVStorageSaveData done [14:07:35]ExternCall_PrintAddStr [14:07:35]wPrintStart [14:07:35]Write to MH i2c: 01 00 00 41 9B DC [14:07:35]Write i2c OK [14:07:35]MH_I2C_Read... [14:07:35]Read from MH i2c: 01 [14:07:35]MH_I2C_Read... [14:07:35]Read from MH i2c: 01 07 00 [14:07:35]MH_I2C_Read... [14:07:35]Read from MH i2c: 01 07 00 41 9B 00 00 00 00 00 FF 0F F1 [14:07:35]RasterBufferAndPrint [14:07:35]line Счет N : (1)347618 [14:07:35]line ИНН: 02508201610067 [14:07:35]line Контрольно-Кассовый Чек [14:07:35]line ПРОДАЖА [14:07:35]line ТРК (МРК, ГНК) : 42 [14:07:35]line Товар: 2710124130 [14:07:35]line Аи-92-К-5 [14:07:35]line 15.560 * 64.30 [14:07:35]line = 1000.51 [14:07:35]line НДС 12% НСП 1% [14:07:35]line > о реализуемом товаре [14:07:35]line ОКРУГЛЕНИЕ: -0.51 [14:07:35]line ИТОГО: 1000.00 [14:07:35]line Внесено: 1000.00 [14:07:35]line СДАЧА: 0.00 [14:07:35]line НСП 1% : 8.85 [14:07:35]line НДС 12% : 106.25 [14:07:35]line Наличными: 1000.00 [14:07:35]line Безнал.: 0.00 [14:07:35]line Место: АЗС № 108 "Партнер Нефть" [14:07:35]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [14:07:35]line СНО: Общий режим [14:07:35]line Чек 144 14.04.2024 14:07 [14:07:35]line Смена: 116 ФФД: 1.0 [14:07:35]line ЗНМ: 0300000027 [14:07:35]line РНМ: 0000138879044617 [14:07:35]line Версия ККМ: 001 [14:07:35]line ФМ: 0000000000963154 [14:07:35]line ФД: 29234 [14:07:35]line ФПД: 65591468590700 [14:07:35]line 1/tax-web-control/client/api/v1/ticket?date=20240414T140744&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29234&fm=65591468590700&tin=02508201610067®Number=0000138879044617&sum=100000 [14:07:35]OFD Sender: Processing packet 29234 [packets to send 8, broken 7] [14:07:35]ProducePacketName [14:07:35]name=ofd_packets/00029234 [14:07:35]OFD Sender: To server: pG, [14:07:35]CommunicateWithHost lk.salyk.kg:30040 [14:07:35]ConnectInit lk.salyk.kg [14:07:35]written 0, free lines is 4095 [14:07:36]Connected sock=11 [14:07:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 20 1F 07 01 57 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 90 00 00 00 F4 03 04 00 30 E3 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 32 72 00 00 35 04 06 00 3B A7 B4 2F 86 6C 80 FE 8A A4 28 0D 6A C2 [14:07:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 27 47 47 00 D0 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 39 36 33 31 35 34 10 04 04 00 32 72 00 00 F4 03 04 00 D4 8D 1B 66 B6 04 01 00 00 37 3A E5 1B E8 CA 4E 71 [14:07:36]CommunicateWithHost err = 0 [14:07:36]CheckOFDResponse [14:07:36]1017 (14) - 77093643461234 [14:07:36]1041 (16) - 0000000000963154 [14:07:36]1040 (4) - 29234 [14:07:36]1012 (4) - 14.04.2024 08:03 [14:07:36]1206 (1) - 0 [14:07:36]OFD Sender: Remove packet 29234 [14:07:36]ProducePacketName [14:07:36]name=ofd_packets/00029234 [14:07:36]NVStorageDeleteData [14:07:36]Write to MH i2c: 01 00 00 6B 9B 06 [14:07:36]Write i2c OK [14:07:36]MH_I2C_Read... [14:07:36]Read from MH i2c: 01 [14:07:36]MH_I2C_Read... [14:07:36]Read from MH i2c: 01 07 00 [14:07:36]MH_I2C_Read... [14:07:36]Read from MH i2c: 01 07 00 6B 9B 00 00 00 00 00 BD 0C D6 [14:07:36]RasterBufferAndPrint [14:07:36]line [14:07:36]line [14:07:36]line [14:07:36]line [14:07:36]line [14:07:36]written 0, free lines is 3266 [14:07:36]MH_Cut [14:07:36]Write to MH i2c: D1 01 00 72 9B 01 DF [14:07:36]Write i2c OK [14:07:36]MH_I2C_Read... [14:07:36]Read from MH i2c: D1 [14:07:36]MH_I2C_Read... [14:07:36]Read from MH i2c: D1 01 00 [14:07:36]MH_I2C_Read... [14:07:36]Read from MH i2c: D1 01 00 72 9B 00 DE [14:07:36]Write to MH i2c: 01 00 00 73 9B 0E [14:07:36]Write i2c OK [14:07:36]MH_I2C_Read... [14:07:36]OFD Sender: No OFD packet to send [14:07:37]*** Cut start [14:07:37]*** Partial cut [14:07:37]*** CUTSNS_PIN = 1 [14:07:37]*** CUTSNS_PIN = 0 [14:07:37]*** Brake cut motor [14:07:37]Read from MH i2c: 01 [14:07:37]MH_I2C_Read... [14:07:37]*** Stop cut motor [14:07:37]*** Cut end [14:07:37]Read from MH i2c: 01 07 00 [14:07:37]MH_I2C_Read... [14:07:37]Read from MH i2c: 01 07 00 73 9B 00 00 00 00 00 FF 0F 23 [14:07:37]process_action close_receipt done [14:07:37]requested_data is exist [14:07:37]produce_requested_data [14:07:37]requested_item fm.sn is exist - process it [14:07:37]wFMCommunicate request_size=4 [14:07:37]MH_SAM_APDU [14:07:37]CAPDU: 80 11 00 00 [14:07:37]Write to MH i2c: E2 08 00 74 9B 80 11 00 00 00 00 00 00 89 [14:07:37]Write i2c OK [14:07:37]MH_I2C_Read... [14:07:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:07:37]Read from MH i2c: E2 [14:07:37]MH_I2C_Read... [14:07:37]Read from MH i2c: E2 17 00 [14:07:37]MH_I2C_Read... [14:07:37]Read from MH i2c: E2 17 00 74 9B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D8 [14:07:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:07:37]wFMCommunicate OK [14:07:37]requested_item fd.num is exist - process it [14:07:37]SAM_PROTO_GetFieldsCounters [14:07:37]wFMCommunicate request_size=4 [14:07:37]MH_SAM_APDU [14:07:37]CAPDU: 80 13 00 00 [14:07:37]Write to MH i2c: E2 08 00 75 9B 80 13 00 00 00 00 00 00 8C [14:07:37]Write i2c OK [14:07:37]MH_I2C_Read... [14:07:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:07:38]Read from MH i2c: E2 [14:07:38]MH_I2C_Read... [14:07:38]Read from MH i2c: E2 62 00 [14:07:38]MH_I2C_Read... [14:07:38]Read from MH i2c: E2 62 00 75 9B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 32 72 00 00 0E 04 04 00 74 00 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 92 [14:07:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 32 72 00 00 0E 04 04 00 74 00 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 [14:07:38]wFMCommunicate OK [14:07:38]SAM_PROTO_GetFieldsCounters done [14:07:38]requested_item shift.num is exist - process it [14:07:38]requested_item shift.opened is exist - process it [14:07:38]req_shift_opened [14:07:38]FM_GetShiftState [14:07:38]SAM_PROTO_GetShiftState [14:07:38]wFMCommunicate request_size=4 [14:07:38]MH_SAM_APDU [14:07:38]CAPDU: 80 13 01 00 [14:07:38]Write to MH i2c: E2 08 00 76 9B 80 13 01 00 00 00 00 00 8E [14:07:38]Write i2c OK [14:07:38]MH_I2C_Read... [14:07:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:07:38]Read from MH i2c: E2 [14:07:38]MH_I2C_Read... [14:07:38]Read from MH i2c: E2 0E 00 [14:07:38]MH_I2C_Read... [14:07:38]Read from MH i2c: E2 0E 00 76 9B 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 3A [14:07:38]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [14:07:38]wFMCommunicate OK [14:07:38]SAM_PROTO_GetShiftState done [14:07:38]FM_GetShiftState done [14:07:38]req_shift_opened done [14:07:38]requested_item shift.open_date is exist - process it [14:07:38]req_shift_open_date [14:07:38]req_shift_open_date done [14:07:38]produce_requested_data done [14:07:38]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29234,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [14:07:38]process_action_free close_receipt [14:07:38]json_value_free [14:07:38]json_value_free done [14:07:38]process_json_proto returns [14:07:38]Send response to host [14:07:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29234,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [14:07:38]free response buf [14:07:38]execute_script done [14:07:38]execute_script returns [14:07:38]free content buf [14:07:38]Sock 7.Close socket [14:07:38]Sock 7.Thread stoped [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:51]OFD Sender: No OFD packet to send [14:08:56]OFD Sender: No OFD packet to send [14:09:01]OFD Sender: No OFD packet to send [14:09:06]OFD Sender: No OFD packet to send [14:09:11]OFD Sender: No OFD packet to send [14:09:16]OFD Sender: No OFD packet to send [14:09:21]OFD Sender: No OFD packet to send [14:09:26]OFD Sender: No OFD packet to send [14:09:31]OFD Sender: No OFD packet to send [14:09:36]OFD Sender: No OFD packet to send [14:09:41]OFD Sender: No OFD packet to send [14:09:46]OFD Sender: No OFD packet to send [14:09:51]OFD Sender: No OFD packet to send [14:09:56]OFD Sender: No OFD packet to send [14:10:01]OFD Sender: No OFD packet to send [14:10:06]OFD Sender: No OFD packet to send [14:10:11]OFD Sender: No OFD packet to send [14:10:16]OFD Sender: No OFD packet to send [14:10:21]OFD Sender: No OFD packet to send [14:10:26]OFD Sender: No OFD packet to send [14:10:27]accept exits with 9 [14:10:27]New connection [14:10:27]New thread 3066928484 created [14:10:27]Thread 3066785124 joined [14:10:27]Waiting for new connection... [14:10:27] Sock 9.Parse request [14:10:27]Sock 9.Check first char [14:10:27]Sock 9.First char is OK [14:10:27]request: POST /json_proto HTTP/1.0 [14:10:27]Method: POST [14:10:27]URL: /json_proto [14:10:27]Method is POST - this is cgi request [14:10:27]url: /json_proto [14:10:27]query_string will be loaded in cgi processing [14:10:27]execute_cgi json_proto POST (null) [14:10:27]execute_cgi path=json_proto method=POST [14:10:27]POST find Content-Length [14:10:27]Host: 172.17.33.3:8080 [14:10:27]Content-Length: 808 [14:10:27]Content-Type: application/json [14:10:27] [14:10:27]POST finish read [14:10:27]Found Content-Length = 808 [14:10:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347619", "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" : 28.000, "sum" : 1800.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1800.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:10:27]execute_script... [14:10: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)347619", "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" : 28.000, "sum" : 1800.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1800.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:10:27]POST & json_proto [14:10:27]process_json_proto [14:10:27]json parsed OK: [14:10:27]protocol is kg_v1.0 [14:10:27]action value=close_receipt [14:10:27]process_action close_receipt [14:10:27]cmd_close_receipt [14:10:27]MH_GetDate [14:10:27]Write to MH i2c: F0 00 00 77 9B 01 [14:10:27]Write i2c OK [14:10:27]MH_I2C_Read... [14:10:27]Read from MH i2c: F0 [14:10:27]MH_I2C_Read... [14:10:27]Read from MH i2c: F0 09 00 [14:10:27]MH_I2C_Read... [14:10:27]Read from MH i2c: F0 09 00 77 9B 00 DE E3 1B 66 23 5B 8F 65 BE [14:10:27]GetLastDocTimeStamp 1713103664 [14:10:27]current date 1713103838 [14:10:27]FM_GetShiftState [14:10:27]SAM_PROTO_GetShiftState [14:10:27]wFMCommunicate request_size=4 [14:10:27]MH_SAM_APDU [14:10:27]CAPDU: 80 13 01 00 [14:10:27]Write to MH i2c: E2 08 00 78 9B 80 13 01 00 00 00 00 00 90 [14:10:27]Write i2c OK [14:10:27]MH_I2C_Read... [14:10:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:10:27]Read from MH i2c: E2 [14:10:27]MH_I2C_Read... [14:10:27]Read from MH i2c: E2 0E 00 [14:10:27]MH_I2C_Read... [14:10:27]Read from MH i2c: E2 0E 00 78 9B 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 3C [14:10:27]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [14:10:27]wFMCommunicate OK [14:10:27]SAM_PROTO_GetShiftState done [14:10:27]FM_GetShiftState done [14:10:27]opened in 1713053951 [14:10:27]opened+sec_in_day 1713140351 [14:10:27]quantity*price = 180040 [14:10:27]sum+1 = 180041 [14:10:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1800.40 НСП 1% : 15.93 НДС 12% : 191.19 Наличными: 0.00 Безнал.: 1800.40 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 145 14.04.2024 14:10 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29235 ФПД: 47855121874604 1/tax-web-control/client/api/v1/ticket?date=20240414T141038&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29235&fm=47855121874604&tin=02508201610067®Number=0000138879044617&sum=180040 [14:10:28]StoreToDocumentArchive [14:10:28]shift 116 fd 29235 [14:10:28]save to /storage/0116/doc_00029235 [14:10:28]save last doc name /storage/0116/doc_00029235 to /storage/kkm_last_doc_name [14:10:28]save OK [14:10:28]Clear old archive folders... [14:10:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:10:28]tlvbuf is 0126C110 [14:10:28]SAM_PROTO_ClearQueue [14:10:28]wFMCommunicate request_size=4 [14:10:28]MH_SAM_APDU [14:10:28]CAPDU: 80 09 00 00 [14:10:28]Write to MH i2c: E2 08 00 85 9B 80 09 00 00 00 00 00 00 92 [14:10:28]Write i2c OK [14:10:28]MH_I2C_Read... [14:10:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:10:29]Read from MH i2c: E2 [14:10:29]MH_I2C_Read... [14:10:29]Read from MH i2c: E2 03 00 [14:10:29]MH_I2C_Read... [14:10:29]Read from MH i2c: E2 03 00 85 9B 00 90 00 94 [14:10:29]RAPDU: 90 00 [14:10:29]wFMCommunicate OK [14:10:29]SAM_PROTO_ClearQueue done [14:10:29]KKMCreateOFDPacket [14:10:29]OFDProtocolAddRootSTLVToBuf [14:10:29]FM_MakeSignedData [14:10:29]FM_MakeSignedData [14:10:29]SAM_PROTO_SignData [14:10:29]wFMCommunicate request_size=4 [14:10:29]MH_SAM_APDU [14:10:29]CAPDU: 80 0D 01 02 [14:10:29]Write to MH i2c: E2 08 00 86 9B 80 0D 01 02 00 00 00 00 9A [14:10:29]Write i2c OK [14:10:29]MH_I2C_Read... [14:10:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:10:29]Read from MH i2c: E2 [14:10:29]MH_I2C_Read... [14:10:29]Read from MH i2c: E2 03 00 [14:10:29]MH_I2C_Read... [14:10:29]Read from MH i2c: E2 03 00 86 9B 00 90 00 95 [14:10:29]RAPDU: 90 00 [14:10:29]wFMCommunicate OK [14:10:29]wFMCommunicate request_size=255 [14:10:29]MH_SAM_APDU [14:10: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 60 6D 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 48 BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 4A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 48 BF 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 DE E3 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 33 72 00 00 35 04 06 00 2B [14:10:29]Write to MH i2c: E2 02 01 87 9B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 6D 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 48 BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 4A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 48 BF 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 DE E3 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 33 72 00 00 35 04 06 00 2B 00 00 2F [14:10:29]Write i2c OK [14:10:29]MH_I2C_Read... [14:10:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:10:29]Read from MH i2c: E2 [14:10:29]MH_I2C_Read... [14:10:29]Read from MH i2c: E2 03 00 [14:10:29]MH_I2C_Read... [14:10:29]Read from MH i2c: E2 03 00 87 9B 00 90 00 96 [14:10:29]RAPDU: 90 00 [14:10:29]wFMCommunicate OK [14:10:29]wFMCommunicate request_size=10 [14:10:29]MH_SAM_APDU [14:10:29]CAPDU: 80 0D 02 02 05 86 23 8A 3E AC [14:10:29]Write to MH i2c: E2 0D 00 88 9B 80 0D 02 02 05 00 86 23 8A 3E AC 00 00 C4 [14:10:29]Write i2c OK [14:10:29]MH_I2C_Read... [14:10:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:10:29]Read from MH i2c: E2 [14:10:29]MH_I2C_Read... [14:10:29]Read from MH i2c: E2 03 00 [14:10:29]MH_I2C_Read... [14:10:29]Read from MH i2c: E2 03 00 88 9B 00 90 00 97 [14:10:29]RAPDU: 90 00 [14:10:29]wFMCommunicate OK [14:10:29]wFMCommunicate request_size=4 [14:10:29]MH_SAM_APDU [14:10:29]CAPDU: 80 0D 03 02 [14:10:29]Write to MH i2c: E2 08 00 89 9B 80 0D 03 02 00 00 00 00 9F [14:10:29]Write i2c OK [14:10:29]MH_I2C_Read... [14:10:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:10:29]Read from MH i2c: E2 [14:10:29]MH_I2C_Read... [14:10:29]Read from MH i2c: E2 0B 00 [14:10:29]MH_I2C_Read... [14:10:29]Read from MH i2c: E2 0B 00 89 9B 00 E4 A7 7E 32 1B 09 B3 BB 90 00 6D [14:10:29]RAPDU: E4 A7 7E 32 1B 09 B3 BB 90 00 [14:10:29]wFMCommunicate OK [14:10:29]SAM_PROTO_SignData done [14:10:29]FM_MakeSignedData done [14:10:29]CreateOFDProtocolMessage [14:10:29]wFMCommunicate request_size=4 [14:10:29]MH_SAM_APDU [14:10:29]CAPDU: 80 11 00 00 [14:10:29]Write to MH i2c: E2 08 00 8A 9B 80 11 00 00 00 00 00 00 9F [14:10:29]Write i2c OK [14:10:29]MH_I2C_Read... [14:10:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:10:29]Read from MH i2c: E2 [14:10:29]MH_I2C_Read... [14:10:29]Read from MH i2c: E2 17 00 [14:10:29]MH_I2C_Read... [14:10:29]Read from MH i2c: E2 17 00 8A 9B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 EE [14:10:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:10:29]wFMCommunicate OK [14:10:29]CreateOFDProtocolMessage done [14:10:29]OFDSenderStorePacket 29235 [14:10:29]StoreOFDPacket docnum=29235 [14:10:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 D0 A1 07 01 2D 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 60 6D 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 48 BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 4A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 48 BF 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 DE E3 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 33 72 00 00 35 04 06 00 2B 86 23 8A 3E AC E4 A7 7E 32 1B 09 B3 BB [14:10:29]CheckFolder [14:10:29]dirname=/storage/ofd_packets [14:10:29]CheckFolder done [14:10:29]ProducePacketName [14:10:29]name=ofd_packets/00029235 [14:10:29]NVStorageSaveData ofd_packets/00029235 [14:10:29]File name is /storage/ofd_packets/00029235 [14:10:29]Write 301 bytes [14:10:29]NVStorageSaveData done [14:10:29]OFDSenderStorePacket done [14:10:29]KKMCreateOFDPacket done [14:10:29]NVStorageSaveData kkm_last_timestamp [14:10:29]File name is /storage/kkm_last_timestamp [14:10:29]Write 4 bytes [14:10:29]NVStorageSaveData done [14:10:29]ExternCall_PrintAddStr [14:10:29]wPrintStart [14:10:29]Write to MH i2c: 01 00 00 8B 9B 26 [14:10:29]Write i2c OK [14:10:29]MH_I2C_Read... [14:10:29]Read from MH i2c: 01 [14:10:29]MH_I2C_Read... [14:10:29]Read from MH i2c: 01 07 00 [14:10:29]MH_I2C_Read... [14:10:29]Read from MH i2c: 01 07 00 8B 9B 00 00 00 00 00 FF 0F 3B [14:10:29]RasterBufferAndPrint [14:10:29]line Счет N : (1)347619 [14:10:29]line ИНН: 02508201610067 [14:10:29]line Контрольно-Кассовый Чек [14:10:29]line ПРОДАЖА [14:10:29]line ТРК (МРК, ГНК) : 32 [14:10:29]line Товар: 2710124130 [14:10:29]line Аи-92-К-5 [14:10:29]line 28.000 * 64.30 [14:10:29]line = 1800.40 [14:10:29]line НДС 12% НСП 1% [14:10:29]line > о реализуемом товаре [14:10:29]line ИТОГО: 1800.40 [14:10:29]line НСП 1% : 15.93 [14:10:29]line НДС 12% : 191.19 [14:10:29]line Наличными: 0.00 [14:10:29]line Безнал.: 1800.40 [14:10:29]line Место: АЗС № 108 "Партнер Нефть" [14:10:29]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [14:10:29]line СНО: Общий режим [14:10:29]line Чек 145 14.04.2024 14:10 [14:10:29]line Смена: 116 ФФД: 1.0 [14:10:29]line ЗНМ: 0300000027 [14:10:29]line РНМ: 0000138879044617 [14:10:29]line Версия ККМ: 001 [14:10:29]line Платежная система: О! деньги [14:10:29]line ФМ: 0000000000963154 [14:10:29]line ФД: 29235 [14:10:29]line ФПД: 47855121874604 [14:10:29]line 1/tax-web-control/client/api/v1/ticket?date=20240414T141038&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29235&fm=47855121874604&tin=02508201610067®Number=0000138879044617&sum=180040 [14:10:29]OFD Sender: Processing packet 29235 [packets to send 8, broken 7] [14:10:29]ProducePacketName [14:10:29]name=ofd_packets/00029235 [14:10:29]OFD Sender: To server: pG, [14:10:29]CommunicateWithHost lk.salyk.kg:30040 [14:10:29]ConnectInit lk.salyk.kg [14:10:29]written 0, free lines is 4095 [14:10:29]Connected sock=10 [14:10:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 D0 A1 07 01 2D 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 60 6D 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 48 BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 4A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 48 BF 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 DE E3 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 33 72 00 00 35 04 06 00 2B 86 23 8A 3E AC E4 A7 7E 32 1B 09 B3 BB [14:10:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 F8 2F 47 00 80 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 33 72 00 00 F4 03 04 00 82 8E 1B 66 B6 04 01 00 00 E6 88 5D 67 28 48 4F 7C [14:10:30]CommunicateWithHost err = 0 [14:10:30]CheckOFDResponse [14:10:30]1017 (14) - 77093643461234 [14:10:30]1041 (16) - 0000000000963154 [14:10:30]1040 (4) - 29235 [14:10:30]1012 (4) - 14.04.2024 08:06 [14:10:30]1206 (1) - 0 [14:10:30]OFD Sender: Remove packet 29235 [14:10:30]ProducePacketName [14:10:30]name=ofd_packets/00029235 [14:10:30]NVStorageDeleteData [14:10:30]Write to MH i2c: 01 00 00 B4 9B 4F [14:10:30]Write i2c OK [14:10:30]MH_I2C_Read... [14:10:30]Read from MH i2c: 01 [14:10:30]MH_I2C_Read... [14:10:30]Read from MH i2c: 01 07 00 [14:10:30]MH_I2C_Read... [14:10:30]Read from MH i2c: 01 07 00 B4 9B 00 00 00 00 00 DE 0C 40 [14:10:30]RasterBufferAndPrint [14:10:30]line [14:10:30]line [14:10:30]line [14:10:30]line [14:10:30]line [14:10:30]written 0, free lines is 3300 [14:10:30]MH_Cut [14:10:30]Write to MH i2c: D1 01 00 BB 9B 01 28 [14:10:30]Write i2c OK [14:10:30]MH_I2C_Read... [14:10:30]Read from MH i2c: D1 [14:10:30]MH_I2C_Read... [14:10:30]Read from MH i2c: D1 01 00 [14:10:30]MH_I2C_Read... [14:10:30]Read from MH i2c: D1 01 00 BB 9B 00 27 [14:10:30]Write to MH i2c: 01 00 00 BC 9B 57 [14:10:30]Write i2c OK [14:10:30]MH_I2C_Read... [14:10:30]OFD Sender: No OFD packet to send [14:10:31]*** Cut start [14:10:31]*** Partial cut [14:10:31]*** CUTSNS_PIN = 1 [14:10:31]*** CUTSNS_PIN = 0 [14:10:31]*** Brake cut motor [14:10:31]Read from MH i2c: 01 [14:10:31]MH_I2C_Read... [14:10:31]*** Stop cut motor [14:10:31]*** Cut end [14:10:31]Read from MH i2c: 01 07 00 [14:10:31]MH_I2C_Read... [14:10:31]Read from MH i2c: 01 07 00 BC 9B 00 00 00 00 00 FF 0F 6C [14:10:31]process_action close_receipt done [14:10:31]requested_data is exist [14:10:31]produce_requested_data [14:10:31]requested_item fm.sn is exist - process it [14:10:31]wFMCommunicate request_size=4 [14:10:31]MH_SAM_APDU [14:10:31]CAPDU: 80 11 00 00 [14:10:31]Write to MH i2c: E2 08 00 BD 9B 80 11 00 00 00 00 00 00 D2 [14:10:31]Write i2c OK [14:10:31]MH_I2C_Read... [14:10:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:10:31]Read from MH i2c: E2 [14:10:31]MH_I2C_Read... [14:10:31]Read from MH i2c: E2 17 00 [14:10:31]MH_I2C_Read... [14:10:31]Read from MH i2c: E2 17 00 BD 9B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 21 [14:10:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:10:31]wFMCommunicate OK [14:10:31]requested_item fd.num is exist - process it [14:10:31]SAM_PROTO_GetFieldsCounters [14:10:31]wFMCommunicate request_size=4 [14:10:31]MH_SAM_APDU [14:10:31]CAPDU: 80 13 00 00 [14:10:31]Write to MH i2c: E2 08 00 BE 9B 80 13 00 00 00 00 00 00 D5 [14:10:31]Write i2c OK [14:10:31]MH_I2C_Read... [14:10:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:10:31]Read from MH i2c: E2 [14:10:31]MH_I2C_Read... [14:10:31]Read from MH i2c: E2 62 00 [14:10:31]MH_I2C_Read... [14:10:31]Read from MH i2c: E2 62 00 BE 9B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 33 72 00 00 0E 04 04 00 74 00 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 DF [14:10:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 33 72 00 00 0E 04 04 00 74 00 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 [14:10:31]wFMCommunicate OK [14:10:31]SAM_PROTO_GetFieldsCounters done [14:10:31]requested_item shift.num is exist - process it [14:10:31]requested_item shift.opened is exist - process it [14:10:31]req_shift_opened [14:10:31]FM_GetShiftState [14:10:31]SAM_PROTO_GetShiftState [14:10:31]wFMCommunicate request_size=4 [14:10:31]MH_SAM_APDU [14:10:31]CAPDU: 80 13 01 00 [14:10:31]Write to MH i2c: E2 08 00 BF 9B 80 13 01 00 00 00 00 00 D7 [14:10:31]Write i2c OK [14:10:31]MH_I2C_Read... [14:10:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:10:31]Read from MH i2c: E2 [14:10:31]MH_I2C_Read... [14:10:31]Read from MH i2c: E2 0E 00 [14:10:31]MH_I2C_Read... [14:10:31]Read from MH i2c: E2 0E 00 BF 9B 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 83 [14:10:31]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [14:10:31]wFMCommunicate OK [14:10:31]SAM_PROTO_GetShiftState done [14:10:31]FM_GetShiftState done [14:10:31]req_shift_opened done [14:10:31]requested_item shift.open_date is exist - process it [14:10:31]req_shift_open_date [14:10:31]req_shift_open_date done [14:10:31]produce_requested_data done [14:10:31]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29235,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [14:10:31]process_action_free close_receipt [14:10:31]json_value_free [14:10:31]json_value_free done [14:10:31]process_json_proto returns [14:10:31]Send response to host [14:10:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29235,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [14:10:31]free response buf [14:10:31]execute_script done [14:10:31]execute_script returns [14:10:31]free content buf [14:10:31]Sock 9.Close socket [14:10:31]Sock 9.Thread stoped [14:10:35]OFD Sender: No OFD packet to send [14:10:40]OFD Sender: No OFD packet to send [14:10:45]OFD Sender: No OFD packet to send [14:10:50]OFD Sender: No OFD packet to send [14:10:55]OFD Sender: No OFD packet to send [14:11:00]OFD Sender: No OFD packet to send [14:11:05]OFD Sender: No OFD packet to send [14:11:10]OFD Sender: No OFD packet to send [14:11:15]OFD Sender: No OFD packet to send [14:11:20]OFD Sender: No OFD packet to send [14:11:25]OFD Sender: No OFD packet to send [14:11:30]OFD Sender: No OFD packet to send [14:11:35]OFD Sender: No OFD packet to send [14:11:40]OFD Sender: No OFD packet to send [14:11:45]OFD Sender: No OFD packet to send [14:11:50]OFD Sender: No OFD packet to send [14:11:55]OFD Sender: No OFD packet to send [14:12:00]OFD Sender: No OFD packet to send [14:12:05]OFD Sender: No OFD packet to send [14:12:10]OFD Sender: No OFD packet to send [14:12:15]OFD Sender: No OFD packet to send [14:12:20]OFD Sender: No OFD packet to send [14:12:25]OFD Sender: No OFD packet to send [14:12:30]OFD Sender: No OFD packet to send [14:12:31]accept exits with 7 [14:12:31]New connection [14:12:31]New thread 3066785124 created [14:12:31]Thread 3066928484 joined [14:12:31]Waiting for new connection... [14:12:31] Sock 7.Parse request [14:12:31]Sock 7.Check first char [14:12:31]Sock 7.First char is OK [14:12:31]request: POST /json_proto HTTP/1.0 [14:12:31]Method: POST [14:12:31]URL: /json_proto [14:12:31]Method is POST - this is cgi request [14:12:31]url: /json_proto [14:12:31]query_string will be loaded in cgi processing [14:12:31]execute_cgi json_proto POST (null) [14:12:31]execute_cgi path=json_proto method=POST [14:12:31]POST find Content-Length [14:12:31]Host: 172.17.33.3:8080 [14:12:31]Content-Length: 676 [14:12:31]Content-Type: application/json [14:12:31] [14:12:31]POST finish read [14:12:31]Found Content-Length = 676 [14:12:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347620", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 13.770, "sum" : 996.95, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 996.00, "payments": [ { "type": 0, "sum" : 996.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:12:31]execute_script... [14:12: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)347620", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 13.770, "sum" : 996.95, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 996.00, "payments": [ { "type": 0, "sum" : 996.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:12:31]POST & json_proto [14:12:31]process_json_proto [14:12:31]json parsed OK: [14:12:31]protocol is kg_v1.0 [14:12:31]action value=close_receipt [14:12:31]process_action close_receipt [14:12:31]cmd_close_receipt [14:12:31]MH_GetDate [14:12:31]Write to MH i2c: F0 00 00 C0 9B 4A [14:12:31]Write i2c OK [14:12:31]MH_I2C_Read... [14:12:31]Read from MH i2c: F0 [14:12:31]MH_I2C_Read... [14:12:31]Read from MH i2c: F0 09 00 [14:12:31]MH_I2C_Read... [14:12:31]Read from MH i2c: F0 09 00 C0 9B 00 59 E4 1B 66 23 5B 8F 65 83 [14:12:31]GetLastDocTimeStamp 1713103838 [14:12:31]current date 1713103961 [14:12:31]FM_GetShiftState [14:12:31]SAM_PROTO_GetShiftState [14:12:31]wFMCommunicate request_size=4 [14:12:31]MH_SAM_APDU [14:12:31]CAPDU: 80 13 01 00 [14:12:31]Write to MH i2c: E2 08 00 C1 9B 80 13 01 00 00 00 00 00 D9 [14:12:31]Write i2c OK [14:12:31]MH_I2C_Read... [14:12:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:12:31]Read from MH i2c: E2 [14:12:31]MH_I2C_Read... [14:12:31]Read from MH i2c: E2 0E 00 [14:12:31]MH_I2C_Read... [14:12:31]Read from MH i2c: E2 0E 00 C1 9B 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 85 [14:12:31]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [14:12:31]wFMCommunicate OK [14:12:31]SAM_PROTO_GetShiftState done [14:12:31]FM_GetShiftState done [14:12:31]opened in 1713053951 [14:12:31]opened+sec_in_day 1713140351 [14:12:31]quantity*price = 99694 [14:12:31]sum+1 = 99696 [14:12:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.95 ИТОГО: 996.00 Внесено: 1000.00 СДАЧА: 4.00 НСП 1% : 8.82 НДС 12% : 105.87 Наличными: 996.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 146 14.04.2024 14:12 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29236 ФПД: 50101318838742 1/tax-web-control/client/api/v1/ticket?date=20240414T141241&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29236&fm=50101318838742&tin=02508201610067®Number=0000138879044617&sum=99600 [14:12:32]StoreToDocumentArchive [14:12:32]shift 116 fd 29236 [14:12:32]save to /storage/0116/doc_00029236 [14:12:32]save last doc name /storage/0116/doc_00029236 to /storage/kkm_last_doc_name [14:12:32]save OK [14:12:32]Clear old archive folders... [14:12:32]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:12:32]tlvbuf is 011F8160 [14:12:32]SAM_PROTO_ClearQueue [14:12:32]wFMCommunicate request_size=4 [14:12:32]MH_SAM_APDU [14:12:32]CAPDU: 80 09 00 00 [14:12:32]Write to MH i2c: E2 08 00 CE 9B 80 09 00 00 00 00 00 00 DB [14:12:32]Write i2c OK [14:12:32]MH_I2C_Read... [14:12:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:12:32]Read from MH i2c: E2 [14:12:32]MH_I2C_Read... [14:12:32]Read from MH i2c: E2 03 00 [14:12:32]MH_I2C_Read... [14:12:32]Read from MH i2c: E2 03 00 CE 9B 00 90 00 DD [14:12:32]RAPDU: 90 00 [14:12:32]wFMCommunicate OK [14:12:32]SAM_PROTO_ClearQueue done [14:12:32]KKMCreateOFDPacket [14:12:32]OFDProtocolAddRootSTLVToBuf [14:12:32]FM_MakeSignedData [14:12:32]FM_MakeSignedData [14:12:32]SAM_PROTO_SignData [14:12:32]wFMCommunicate request_size=4 [14:12:32]MH_SAM_APDU [14:12:32]CAPDU: 80 0D 01 02 [14:12:32]Write to MH i2c: E2 08 00 CF 9B 80 0D 01 02 00 00 00 00 E3 [14:12:32]Write i2c OK [14:12:32]MH_I2C_Read... [14:12:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:12:32]Read from MH i2c: E2 [14:12:32]MH_I2C_Read... [14:12:32]Read from MH i2c: E2 03 00 [14:12:32]MH_I2C_Read... [14:12:32]Read from MH i2c: E2 03 00 CF 9B 00 90 00 DE [14:12:32]RAPDU: 90 00 [14:12:32]wFMCommunicate OK [14:12:32]wFMCommunicate request_size=255 [14:12:32]MH_SAM_APDU [14:12: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 CA 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 6F 85 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 85 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 29 00 00 00 00 07 04 06 00 10 85 01 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 59 E4 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 34 72 00 00 35 04 06 00 2D 91 1F 4F [14:12:32]Write to MH i2c: E2 02 01 D0 9B 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 CA 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 6F 85 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 85 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 29 00 00 00 00 07 04 06 00 10 85 01 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 59 E4 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 34 72 00 00 35 04 06 00 2D 91 1F 4F 00 00 70 [14:12:32]Write i2c OK [14:12:32]MH_I2C_Read... [14:12:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:12:33]Read from MH i2c: E2 [14:12:33]MH_I2C_Read... [14:12:33]Read from MH i2c: E2 03 00 [14:12:33]MH_I2C_Read... [14:12:33]Read from MH i2c: E2 03 00 D0 9B 00 90 00 DF [14:12:33]RAPDU: 90 00 [14:12:33]wFMCommunicate OK [14:12:33]wFMCommunicate request_size=7 [14:12:33]MH_SAM_APDU [14:12:33]CAPDU: 80 0D 02 02 02 E9 D6 [14:12:33]Write to MH i2c: E2 0A 00 D1 9B 80 0D 02 02 02 00 E9 D6 00 00 A9 [14:12:33]Write i2c OK [14:12:33]MH_I2C_Read... [14:12:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:12:33]Read from MH i2c: E2 [14:12:33]MH_I2C_Read... [14:12:33]Read from MH i2c: E2 03 00 [14:12:33]MH_I2C_Read... [14:12:33]Read from MH i2c: E2 03 00 D1 9B 00 90 00 E0 [14:12:33]RAPDU: 90 00 [14:12:33]wFMCommunicate OK [14:12:33]wFMCommunicate request_size=4 [14:12:33]MH_SAM_APDU [14:12:33]CAPDU: 80 0D 03 02 [14:12:33]Write to MH i2c: E2 08 00 D2 9B 80 0D 03 02 00 00 00 00 E8 [14:12:33]Write i2c OK [14:12:33]MH_I2C_Read... [14:12:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:12:33]Read from MH i2c: E2 [14:12:33]MH_I2C_Read... [14:12:33]Read from MH i2c: E2 0B 00 [14:12:33]MH_I2C_Read... [14:12:33]Read from MH i2c: E2 0B 00 D2 9B 00 AC 42 9C FD A7 F1 6B 1B 90 00 8E [14:12:33]RAPDU: AC 42 9C FD A7 F1 6B 1B 90 00 [14:12:33]wFMCommunicate OK [14:12:33]SAM_PROTO_SignData done [14:12:33]FM_MakeSignedData done [14:12:33]CreateOFDProtocolMessage [14:12:33]wFMCommunicate request_size=4 [14:12:33]MH_SAM_APDU [14:12:33]CAPDU: 80 11 00 00 [14:12:33]Write to MH i2c: E2 08 00 D3 9B 80 11 00 00 00 00 00 00 E8 [14:12:33]Write i2c OK [14:12:33]MH_I2C_Read... [14:12:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:12:33]Read from MH i2c: E2 [14:12:33]MH_I2C_Read... [14:12:33]Read from MH i2c: E2 17 00 [14:12:33]MH_I2C_Read... [14:12:33]Read from MH i2c: E2 17 00 D3 9B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 37 [14:12:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:12:33]wFMCommunicate OK [14:12:33]CreateOFDProtocolMessage done [14:12:33]OFDSenderStorePacket 29236 [14:12:33]StoreOFDPacket docnum=29236 [14:12:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 36 66 04 01 2B CA 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 CA 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 6F 85 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 85 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 29 00 00 00 00 07 04 06 00 10 85 01 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 59 E4 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 34 72 00 00 35 04 06 00 2D 91 1F 4F E9 D6 AC 42 9C FD A7 F1 6B 1B [14:12:33]CheckFolder [14:12:33]dirname=/storage/ofd_packets [14:12:33]CheckFolder done [14:12:33]ProducePacketName [14:12:33]name=ofd_packets/00029236 [14:12:33]NVStorageSaveData ofd_packets/00029236 [14:12:33]File name is /storage/ofd_packets/00029236 [14:12:33]Write 298 bytes [14:12:33]NVStorageSaveData done [14:12:33]OFDSenderStorePacket done [14:12:33]KKMCreateOFDPacket done [14:12:33]NVStorageSaveData kkm_last_timestamp [14:12:33]File name is /storage/kkm_last_timestamp [14:12:33]Write 4 bytes [14:12:33]NVStorageSaveData done [14:12:33]ExternCall_PrintAddStr [14:12:33]wPrintStart [14:12:33]Write to MH i2c: 01 00 00 D4 9B 6F [14:12:33]Write i2c OK [14:12:33]MH_I2C_Read... [14:12:33]Read from MH i2c: 01 [14:12:33]MH_I2C_Read... [14:12:33]Read from MH i2c: 01 07 00 [14:12:33]MH_I2C_Read... [14:12:33]Read from MH i2c: 01 07 00 D4 9B 00 00 00 00 00 FF 0F 84 [14:12:33]RasterBufferAndPrint [14:12:33]line Счет N : (1)347620 [14:12:33]line ИНН: 02508201610067 [14:12:33]line Контрольно-Кассовый Чек [14:12:33]line ПРОДАЖА [14:12:33]line ТРК (МРК, ГНК) : 21 [14:12:33]line Товар: 2710194210 [14:12:33]line ДТ-К-5 [14:12:33]line 13.770 * 72.40 [14:12:33]line = 996.95 [14:12:33]line НДС 12% НСП 1% [14:12:33]line > о реализуемом товаре [14:12:33]line ОКРУГЛЕНИЕ: -0.95 [14:12:33]line ИТОГО: 996.00 [14:12:33]line Внесено: 1000.00 [14:12:33]line СДАЧА: 4.00 [14:12:33]line НСП 1% : 8.82 [14:12:33]line НДС 12% : 105.87 [14:12:33]line Наличными: 996.00 [14:12:33]line Безнал.: 0.00 [14:12:33]line Место: АЗС № 108 "Партнер Нефть" [14:12:33]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [14:12:33]line СНО: Общий режим [14:12:33]line Чек 146 14.04.2024 14:12 [14:12:33]line Смена: 116 ФФД: 1.0 [14:12:33]line ЗНМ: 0300000027 [14:12:33]line РНМ: 0000138879044617 [14:12:33]line Версия ККМ: 001 [14:12:33]line ФМ: 0000000000963154 [14:12:33]line ФД: 29236 [14:12:33]line ФПД: 50101318838742 [14:12:33]line 1/tax-web-control/client/api/v1/ticket?date=20240414T141241&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29236&fm=50101318838742&tin=02508201610067®Number=0000138879044617&sum=99600 [14:12:33]OFD Sender: Processing packet 29236 [packets to send 8, broken 7] [14:12:33]ProducePacketName [14:12:33]name=ofd_packets/00029236 [14:12:33]OFD Sender: To server: pG, [14:12:33]CommunicateWithHost lk.salyk.kg:30040 [14:12:33]ConnectInit lk.salyk.kg [14:12:33]written 0, free lines is 4095 [14:12:33]Connected sock=10 [14:12:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 36 66 04 01 2B CA 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 CA 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 6F 85 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 85 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 29 00 00 00 00 07 04 06 00 10 85 01 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 59 E4 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 34 72 00 00 35 04 06 00 2D 91 1F 4F E9 D6 AC 42 9C FD A7 F1 6B 1B [14:12:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 96 6A 47 00 82 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 39 36 33 31 35 34 10 04 04 00 34 72 00 00 F4 03 04 00 FD 8E 1B 66 B6 04 01 00 00 29 D1 48 AB BD B9 41 62 [14:12:33]CommunicateWithHost err = 0 [14:12:33]CheckOFDResponse [14:12:33]1017 (14) - 77093643461234 [14:12:33]1041 (16) - 0000000000963154 [14:12:33]1040 (4) - 29236 [14:12:33]1012 (4) - 14.04.2024 08:08 [14:12:33]1206 (1) - 0 [14:12:33]OFD Sender: Remove packet 29236 [14:12:33]ProducePacketName [14:12:33]name=ofd_packets/00029236 [14:12:33]NVStorageDeleteData [14:12:33]Write to MH i2c: 01 00 00 FE 9B 99 [14:12:33]Write i2c OK [14:12:33]MH_I2C_Read... [14:12:33]Read from MH i2c: 01 [14:12:33]MH_I2C_Read... [14:12:33]Read from MH i2c: 01 07 00 [14:12:33]MH_I2C_Read... [14:12:33]Read from MH i2c: 01 07 00 FE 9B 00 00 00 00 00 C2 0C 6E [14:12:33]RasterBufferAndPrint [14:12:33]line [14:12:33]line [14:12:33]line [14:12:33]line [14:12:33]line [14:12:33]written 0, free lines is 3272 [14:12:33]MH_Cut [14:12:33]Write to MH i2c: D1 01 00 05 9C 01 73 [14:12:33]Write i2c OK [14:12:33]MH_I2C_Read... [14:12:33]Read from MH i2c: D1 [14:12:33]MH_I2C_Read... [14:12:33]Read from MH i2c: D1 01 00 [14:12:33]MH_I2C_Read... [14:12:33]Read from MH i2c: D1 01 00 05 9C 00 72 [14:12:33]Write to MH i2c: 01 00 00 06 9C A2 [14:12:33]Write i2c OK [14:12:33]MH_I2C_Read... [14:12:34]OFD Sender: No OFD packet to send [14:12:34]*** Cut start [14:12:34]*** Partial cut [14:12:34]*** CUTSNS_PIN = 1 [14:12:34]*** CUTSNS_PIN = 0 [14:12:35]*** Brake cut motor [14:12:35]Read from MH i2c: 01 [14:12:35]MH_I2C_Read... [14:12:35]*** Stop cut motor [14:12:35]*** Cut end [14:12:35]Read from MH i2c: 01 07 00 [14:12:35]MH_I2C_Read... [14:12:35]Read from MH i2c: 01 07 00 06 9C 00 00 00 00 00 FF 0F B7 [14:12:35]process_action close_receipt done [14:12:35]requested_data is exist [14:12:35]produce_requested_data [14:12:35]requested_item fm.sn is exist - process it [14:12:35]wFMCommunicate request_size=4 [14:12:35]MH_SAM_APDU [14:12:35]CAPDU: 80 11 00 00 [14:12:35]Write to MH i2c: E2 08 00 07 9C 80 11 00 00 00 00 00 00 1D [14:12:35]Write i2c OK [14:12:35]MH_I2C_Read... [14:12:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:12:35]Read from MH i2c: E2 [14:12:35]MH_I2C_Read... [14:12:35]Read from MH i2c: E2 17 00 [14:12:35]MH_I2C_Read... [14:12:35]Read from MH i2c: E2 17 00 07 9C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 6C [14:12:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:12:35]wFMCommunicate OK [14:12:35]requested_item fd.num is exist - process it [14:12:35]SAM_PROTO_GetFieldsCounters [14:12:35]wFMCommunicate request_size=4 [14:12:35]MH_SAM_APDU [14:12:35]CAPDU: 80 13 00 00 [14:12:35]Write to MH i2c: E2 08 00 08 9C 80 13 00 00 00 00 00 00 20 [14:12:35]Write i2c OK [14:12:35]MH_I2C_Read... [14:12:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:12:35]Read from MH i2c: E2 [14:12:35]MH_I2C_Read... [14:12:35]Read from MH i2c: E2 62 00 [14:12:35]MH_I2C_Read... [14:12:35]Read from MH i2c: E2 62 00 08 9C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 34 72 00 00 0E 04 04 00 74 00 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 2E [14:12:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 34 72 00 00 0E 04 04 00 74 00 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 [14:12:35]wFMCommunicate OK [14:12:35]SAM_PROTO_GetFieldsCounters done [14:12:35]requested_item shift.num is exist - process it [14:12:35]requested_item shift.opened is exist - process it [14:12:35]req_shift_opened [14:12:35]FM_GetShiftState [14:12:35]SAM_PROTO_GetShiftState [14:12:35]wFMCommunicate request_size=4 [14:12:35]MH_SAM_APDU [14:12:35]CAPDU: 80 13 01 00 [14:12:35]Write to MH i2c: E2 08 00 09 9C 80 13 01 00 00 00 00 00 22 [14:12:35]Write i2c OK [14:12:35]MH_I2C_Read... [14:12:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:12:35]Read from MH i2c: E2 [14:12:35]MH_I2C_Read... [14:12:35]Read from MH i2c: E2 0E 00 [14:12:35]MH_I2C_Read... [14:12:35]Read from MH i2c: E2 0E 00 09 9C 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 CE [14:12:35]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [14:12:35]wFMCommunicate OK [14:12:35]SAM_PROTO_GetShiftState done [14:12:35]FM_GetShiftState done [14:12:35]req_shift_opened done [14:12:35]requested_item shift.open_date is exist - process it [14:12:35]req_shift_open_date [14:12:35]req_shift_open_date done [14:12:35]produce_requested_data done [14:12:35]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29236,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [14:12:35]process_action_free close_receipt [14:12:35]json_value_free [14:12:35]json_value_free done [14:12:35]process_json_proto returns [14:12:35]Send response to host [14:12:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29236,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [14:12:35]free response buf [14:12:35]execute_script done [14:12:35]execute_script returns [14:12:35]free content buf [14:12:35]Sock 7.Close socket [14:12:35]Sock 7.Thread stoped [14:12:39]OFD Sender: No OFD packet to send [14:12:44]OFD Sender: No OFD packet to send [14:12:49]OFD Sender: No OFD packet to send [14:12:54]OFD Sender: No OFD packet to send [14:12:59]OFD Sender: No OFD packet to send [14:13:04]OFD Sender: No OFD packet to send [14:13:09]OFD Sender: No OFD packet to send [14:13:14]OFD Sender: No OFD packet to send [14:13:19]OFD Sender: No OFD packet to send [14:13:24]OFD Sender: No OFD packet to send [14:13:29]OFD Sender: No OFD packet to send [14:13:34]OFD Sender: No OFD packet to send [14:13:39]OFD Sender: No OFD packet to send [14:13:44]OFD Sender: No OFD packet to send [14:13:49]OFD Sender: No OFD packet to send [14:13:54]OFD Sender: No OFD packet to send [14:13:59]OFD Sender: No OFD packet to send [14:14:04]OFD Sender: No OFD packet to send [14:14:09]OFD Sender: No OFD packet to send [14:14:14]OFD Sender: No OFD packet to send [14:14:19]OFD Sender: No OFD packet to send [14:14:24]OFD Sender: No OFD packet to send [14:14:29]OFD Sender: No OFD packet to send [14:14:34]OFD Sender: No OFD packet to send [14:14:39]OFD Sender: No OFD packet to send [14:14:44]OFD Sender: No OFD packet to send [14:14:49]OFD Sender: No OFD packet to send [14:14:54]OFD Sender: No OFD packet to send [14:14:59]OFD Sender: No OFD packet to send [14:15:04]OFD Sender: No OFD packet to send [14:15:09]OFD Sender: No OFD packet to send [14:15:14]OFD Sender: No OFD packet to send [14:15:19]OFD Sender: No OFD packet to send [14:15:24]OFD Sender: No OFD packet to send [14:15:29]OFD Sender: No OFD packet to send [14:15:34]OFD Sender: No OFD packet to send [14:15:39]OFD Sender: No OFD packet to send [14:15:44]OFD Sender: No OFD packet to send [14:15:49]OFD Sender: No OFD packet to send [14:15:54]OFD Sender: No OFD packet to send [14:15:59]OFD Sender: No OFD packet to send [14:16:04]OFD Sender: No OFD packet to send [14:16:09]OFD Sender: No OFD packet to send [14:16:14]OFD Sender: No OFD packet to send [14:16:19]OFD Sender: No OFD packet to send [14:16:24]OFD Sender: No OFD packet to send [14:16:29]OFD Sender: No OFD packet to send [14:16:34]OFD Sender: No OFD packet to send [14:16:39]OFD Sender: No OFD packet to send [14:16:44]OFD Sender: No OFD packet to send [14:16:49]OFD Sender: No OFD packet to send [14:16:54]OFD Sender: No OFD packet to send [14:16:59]OFD Sender: No OFD packet to send [14:17:04]OFD Sender: No OFD packet to send [14:17:09]OFD Sender: No OFD packet to send [14:17:14]OFD Sender: No OFD packet to send [14:17:19]OFD Sender: No OFD packet to send [14:17:24]OFD Sender: No OFD packet to send [14:17:29]OFD Sender: No OFD packet to send [14:17:34]OFD Sender: No OFD packet to send [14:17:39]OFD Sender: No OFD packet to send [14:17:44]OFD Sender: No OFD packet to send [14:17:49]OFD Sender: No OFD packet to send [14:17:54]OFD Sender: No OFD packet to send [14:17:59]OFD Sender: No OFD packet to send [14:18:04]OFD Sender: No OFD packet to send [14:18:09]OFD Sender: No OFD packet to send [14:18:14]OFD Sender: No OFD packet to send [14:18:19]OFD Sender: No OFD packet to send [14:18:24]OFD Sender: No OFD packet to send [14:18:29]OFD Sender: No OFD packet to send [14:18:34]OFD Sender: No OFD packet to send [14:18:39]OFD Sender: No OFD packet to send [14:18:44]OFD Sender: No OFD packet to send [14:18:49]OFD Sender: No OFD packet to send [14:18:54]OFD Sender: No OFD packet to send [14:18:59]OFD Sender: No OFD packet to send [14:19:04]OFD Sender: No OFD packet to send [14:19:09]OFD Sender: No OFD packet to send [14:19:14]OFD Sender: No OFD packet to send [14:19:19]OFD Sender: No OFD packet to send [14:19:24]OFD Sender: No OFD packet to send [14:19:29]OFD Sender: No OFD packet to send [14:19:34]OFD Sender: No OFD packet to send [14:19:39]OFD Sender: No OFD packet to send [14:19:44]OFD Sender: No OFD packet to send [14:19:49]OFD Sender: No OFD packet to send [14:19:54]OFD Sender: No OFD packet to send [14:19:59]OFD Sender: No OFD packet to send [14:20:04]OFD Sender: No OFD packet to send [14:20:09]OFD Sender: No OFD packet to send [14:20:14]OFD Sender: No OFD packet to send [14:20:19]OFD Sender: No OFD packet to send [14:20:24]OFD Sender: No OFD packet to send [14:20:29]OFD Sender: No OFD packet to send [14:20:34]OFD Sender: No OFD packet to send [14:20:39]OFD Sender: No OFD packet to send [14:20:44]OFD Sender: No OFD packet to send [14:20:49]OFD Sender: No OFD packet to send [14:20:54]OFD Sender: No OFD packet to send [14:20:59]OFD Sender: No OFD packet to send [14:21:04]OFD Sender: No OFD packet to send [14:21:09]OFD Sender: No OFD packet to send [14:21:14]OFD Sender: No OFD packet to send [14:21:19]OFD Sender: No OFD packet to send [14:21:24]OFD Sender: No OFD packet to send [14:21:29]OFD Sender: No OFD packet to send [14:21:34]OFD Sender: No OFD packet to send [14:21:39]OFD Sender: No OFD packet to send [14:21:44]OFD Sender: No OFD packet to send [14:21:49]OFD Sender: No OFD packet to send [14:21:54]OFD Sender: No OFD packet to send [14:21:59]OFD Sender: No OFD packet to send [14:22:04]OFD Sender: No OFD packet to send [14:22:09]OFD Sender: No OFD packet to send [14:22:14]OFD Sender: No OFD packet to send [14:22:19]OFD Sender: No OFD packet to send [14:22:24]OFD Sender: No OFD packet to send [14:22:29]OFD Sender: No OFD packet to send [14:22:34]OFD Sender: No OFD packet to send [14:22:39]OFD Sender: No OFD packet to send [14:22:44]OFD Sender: No OFD packet to send [14:22:49]OFD Sender: No OFD packet to send [14:22:54]OFD Sender: No OFD packet to send [14:22:59]OFD Sender: No OFD packet to send [14:23:04]OFD Sender: No OFD packet to send [14:23:09]OFD Sender: No OFD packet to send [14:23:14]OFD Sender: No OFD packet to send [14:23:19]OFD Sender: No OFD packet to send [14:23:22]accept exits with 9 [14:23:22]New connection [14:23:22]New thread 3066928484 created [14:23:22]Thread 3066785124 joined [14:23:22]Waiting for new connection... [14:23:22] Sock 9.Parse request [14:23:22]Sock 9.Check first char [14:23:22]Sock 9.First char is OK [14:23:22]request: POST /json_proto HTTP/1.0 [14:23:22]Method: POST [14:23:22]URL: /json_proto [14:23:22]Method is POST - this is cgi request [14:23:22]url: /json_proto [14:23:22]query_string will be loaded in cgi processing [14:23:22]execute_cgi json_proto POST (null) [14:23:22]execute_cgi path=json_proto method=POST [14:23:22]POST find Content-Length [14:23:22]Host: 172.17.33.3:8080 [14:23:22]Content-Length: 805 [14:23:22]Content-Type: application/json [14:23:22] [14:23:22]POST finish read [14:23:22]Found Content-Length = 805 [14:23:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347621", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:23:22]execute_script... [14:23: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)347621", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:23:22]POST & json_proto [14:23:22]process_json_proto [14:23:22]json parsed OK: [14:23:22]protocol is kg_v1.0 [14:23:22]action value=close_receipt [14:23:22]process_action close_receipt [14:23:22]cmd_close_receipt [14:23:22]MH_GetDate [14:23:22]Write to MH i2c: F0 00 00 0A 9C 95 [14:23:22]Write i2c OK [14:23:22]MH_I2C_Read... [14:23:22]Read from MH i2c: F0 [14:23:22]MH_I2C_Read... [14:23:22]Read from MH i2c: F0 09 00 [14:23:22]MH_I2C_Read... [14:23:22]Read from MH i2c: F0 09 00 0A 9C 00 E5 E6 1B 66 23 5B 8F 65 5C [14:23:22]GetLastDocTimeStamp 1713103961 [14:23:22]current date 1713104613 [14:23:22]FM_GetShiftState [14:23:22]SAM_PROTO_GetShiftState [14:23:22]wFMCommunicate request_size=4 [14:23:22]MH_SAM_APDU [14:23:22]CAPDU: 80 13 01 00 [14:23:22]Write to MH i2c: E2 08 00 0B 9C 80 13 01 00 00 00 00 00 24 [14:23:22]Write i2c OK [14:23:22]MH_I2C_Read... [14:23:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:23:22]Read from MH i2c: E2 [14:23:22]MH_I2C_Read... [14:23:22]Read from MH i2c: E2 0E 00 [14:23:22]MH_I2C_Read... [14:23:22]Read from MH i2c: E2 0E 00 0B 9C 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 D0 [14:23:22]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [14:23:22]wFMCommunicate OK [14:23:22]SAM_PROTO_GetShiftState done [14:23:22]FM_GetShiftState done [14:23:22]opened in 1713053951 [14:23:22]opened+sec_in_day 1713140351 [14:23:22]quantity*price = 200041 [14:23:22]sum+1 = 200042 [14:23:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.41 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 0.00 Безнал.: 2000.41 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 147 14.04.2024 14:23 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29237 ФПД: 80331656183299 1/tax-web-control/client/api/v1/ticket?date=20240414T142333&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29237&fm=80331656183299&tin=02508201610067®Number=0000138879044617&sum=200041 [14:23:24]StoreToDocumentArchive [14:23:24]shift 116 fd 29237 [14:23:24]save to /storage/0116/doc_00029237 [14:23:24]save last doc name /storage/0116/doc_00029237 to /storage/kkm_last_doc_name [14:23:24]save OK [14:23:24]Clear old archive folders... [14:23:24]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:23:24]tlvbuf is 011B70C0 [14:23:24]SAM_PROTO_ClearQueue [14:23:24]wFMCommunicate request_size=4 [14:23:24]MH_SAM_APDU [14:23:24]CAPDU: 80 09 00 00 [14:23:24]Write to MH i2c: E2 08 00 18 9C 80 09 00 00 00 00 00 00 26 [14:23:24]Write i2c OK [14:23:24]MH_I2C_Read... [14:23:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:23:24]Read from MH i2c: E2 [14:23:24]MH_I2C_Read... [14:23:24]Read from MH i2c: E2 03 00 [14:23:24]MH_I2C_Read... [14:23:24]Read from MH i2c: E2 03 00 18 9C 00 90 00 28 [14:23:24]RAPDU: 90 00 [14:23:24]wFMCommunicate OK [14:23:24]SAM_PROTO_ClearQueue done [14:23:24]KKMCreateOFDPacket [14:23:24]OFDProtocolAddRootSTLVToBuf [14:23:24]FM_MakeSignedData [14:23:24]FM_MakeSignedData [14:23:24]SAM_PROTO_SignData [14:23:24]wFMCommunicate request_size=4 [14:23:24]MH_SAM_APDU [14:23:24]CAPDU: 80 0D 01 02 [14:23:24]Write to MH i2c: E2 08 00 19 9C 80 0D 01 02 00 00 00 00 2E [14:23:24]Write i2c OK [14:23:24]MH_I2C_Read... [14:23:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:23:24]Read from MH i2c: E2 [14:23:24]MH_I2C_Read... [14:23:24]Read from MH i2c: E2 03 00 [14:23:24]MH_I2C_Read... [14:23:24]Read from MH i2c: E2 03 00 19 9C 00 90 00 29 [14:23:24]RAPDU: 90 00 [14:23:24]wFMCommunicate OK [14:23:24]wFMCommunicate request_size=255 [14:23:24]MH_SAM_APDU [14:23:24]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 93 00 00 00 F4 03 04 00 E5 E6 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 35 72 00 00 35 04 06 00 49 0F AB D4 [14:23:24]Write to MH i2c: E2 02 01 1A 9C 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 93 00 00 00 F4 03 04 00 E5 E6 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 35 72 00 00 35 04 06 00 49 0F AB D4 00 00 DE [14:23:24]Write i2c OK [14:23:24]MH_I2C_Read... [14:23:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:23:24]Read from MH i2c: E2 [14:23:24]MH_I2C_Read... [14:23:24]Read from MH i2c: E2 03 00 [14:23:24]MH_I2C_Read... [14:23:24]Read from MH i2c: E2 03 00 1A 9C 00 90 00 2A [14:23:24]RAPDU: 90 00 [14:23:24]wFMCommunicate OK [14:23:24]wFMCommunicate request_size=7 [14:23:24]MH_SAM_APDU [14:23:24]CAPDU: 80 0D 02 02 02 BE 03 [14:23:24]Write to MH i2c: E2 0A 00 1B 9C 80 0D 02 02 02 00 BE 03 00 00 F6 [14:23:24]Write i2c OK [14:23:24]MH_I2C_Read... [14:23:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:23:24]Read from MH i2c: E2 [14:23:24]MH_I2C_Read... [14:23:24]Read from MH i2c: E2 03 00 [14:23:24]MH_I2C_Read... [14:23:24]Read from MH i2c: E2 03 00 1B 9C 00 90 00 2B [14:23:24]RAPDU: 90 00 [14:23:24]wFMCommunicate OK [14:23:24]wFMCommunicate request_size=4 [14:23:24]MH_SAM_APDU [14:23:24]CAPDU: 80 0D 03 02 [14:23:24]Write to MH i2c: E2 08 00 1C 9C 80 0D 03 02 00 00 00 00 33 [14:23:24]Write i2c OK [14:23:24]MH_I2C_Read... [14:23:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:23:24]Read from MH i2c: E2 [14:23:24]MH_I2C_Read... [14:23:24]Read from MH i2c: E2 0B 00 [14:23:24]MH_I2C_Read... [14:23:24]Read from MH i2c: E2 0B 00 1C 9C 00 C3 F1 06 62 96 72 E7 6F 90 00 AE [14:23:24]RAPDU: C3 F1 06 62 96 72 E7 6F 90 00 [14:23:24]wFMCommunicate OK [14:23:24]SAM_PROTO_SignData done [14:23:24]FM_MakeSignedData done [14:23:24]CreateOFDProtocolMessage [14:23:24]wFMCommunicate request_size=4 [14:23:24]MH_SAM_APDU [14:23:24]CAPDU: 80 11 00 00 [14:23:24]Write to MH i2c: E2 08 00 1D 9C 80 11 00 00 00 00 00 00 33 [14:23:24]Write i2c OK [14:23:24]MH_I2C_Read... [14:23:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:23:24]Read from MH i2c: E2 [14:23:24]MH_I2C_Read... [14:23:24]Read from MH i2c: E2 17 00 [14:23:24]MH_I2C_Read... [14:23:24]Read from MH i2c: E2 17 00 1D 9C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 82 [14:23:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:23:24]wFMCommunicate OK [14:23:24]CreateOFDProtocolMessage done [14:23:24]OFDSenderStorePacket 29237 [14:23:24]StoreOFDPacket docnum=29237 [14:23:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 63 ED 04 01 33 A0 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 93 00 00 00 F4 03 04 00 E5 E6 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 35 72 00 00 35 04 06 00 49 0F AB D4 BE 03 C3 F1 06 62 96 72 E7 6F [14:23:24]CheckFolder [14:23:24]dirname=/storage/ofd_packets [14:23:24]CheckFolder done [14:23:24]ProducePacketName [14:23:24]name=ofd_packets/00029237 [14:23:24]NVStorageSaveData ofd_packets/00029237 [14:23:24]File name is /storage/ofd_packets/00029237 [14:23:24]Write 298 bytes [14:23:24]NVStorageSaveData done [14:23:24]OFDSenderStorePacket done [14:23:24]KKMCreateOFDPacket done [14:23:24]NVStorageSaveData kkm_last_timestamp [14:23:24]File name is /storage/kkm_last_timestamp [14:23:24]Write 4 bytes [14:23:24]NVStorageSaveData done [14:23:24]ExternCall_PrintAddStr [14:23:24]wPrintStart [14:23:24]Write to MH i2c: 01 00 00 1E 9C BA [14:23:24]Write i2c OK [14:23:24]MH_I2C_Read... [14:23:24]Read from MH i2c: 01 [14:23:24]MH_I2C_Read... [14:23:24]Read from MH i2c: 01 07 00 [14:23:24]MH_I2C_Read... [14:23:24]Read from MH i2c: 01 07 00 1E 9C 00 00 00 00 00 FF 0F CF [14:23:24]RasterBufferAndPrint [14:23:24]line Счет N : (1)347621 [14:23:24]line ИНН: 02508201610067 [14:23:24]line Контрольно-Кассовый Чек [14:23:24]line ПРОДАЖА [14:23:24]line ТРК (МРК, ГНК) : 11 [14:23:24]line Товар: 2710194210 [14:23:24]line ДТ-К-5 [14:23:24]line 27.630 * 72.40 [14:23:24]line = 2000.41 [14:23:24]line НДС 12% НСП 1% [14:23:24]line > о реализуемом товаре [14:23:24]line ИТОГО: 2000.41 [14:23:24]line НСП 1% : 17.70 [14:23:24]line НДС 12% : 212.43 [14:23:24]line Наличными: 0.00 [14:23:24]line Безнал.: 2000.41 [14:23:24]line Место: АЗС № 108 "Партнер Нефть" [14:23:24]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [14:23:24]line СНО: Общий режим [14:23:24]line Чек 147 14.04.2024 14:23 [14:23:24]line Смена: 116 ФФД: 1.0 [14:23:24]line ЗНМ: 0300000027 [14:23:24]line РНМ: 0000138879044617 [14:23:24]line Версия ККМ: 001 [14:23:24]line Платежная система: О! деньги [14:23:24]line ФМ: 0000000000963154 [14:23:24]line ФД: 29237 [14:23:24]line ФПД: 80331656183299 [14:23:24]line 1/tax-web-control/client/api/v1/ticket?date=20240414T142333&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29237&fm=80331656183299&tin=02508201610067®Number=0000138879044617&sum=200041 [14:23:24]OFD Sender: Processing packet 29237 [packets to send 8, broken 7] [14:23:24]ProducePacketName [14:23:24]name=ofd_packets/00029237 [14:23:24]OFD Sender: To server: pG, [14:23:24]CommunicateWithHost lk.salyk.kg:30040 [14:23:24]ConnectInit lk.salyk.kg [14:23:24]written 0, free lines is 4095 [14:23:24]Connected sock=10 [14:23:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 63 ED 04 01 33 A0 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 93 00 00 00 F4 03 04 00 E5 E6 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 35 72 00 00 35 04 06 00 49 0F AB D4 BE 03 C3 F1 06 62 96 72 E7 6F [14:23:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 0C 66 47 00 BD 4A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 35 72 00 00 F4 03 04 00 89 91 1B 66 B6 04 01 00 00 E2 30 53 81 9B C5 B1 2D [14:23:25]CommunicateWithHost err = 0 [14:23:25]CheckOFDResponse [14:23:25]1017 (14) - 77093643461234 [14:23:25]1041 (16) - 0000000000963154 [14:23:25]1040 (4) - 29237 [14:23:25]1012 (4) - 14.04.2024 08:19 [14:23:25]1206 (1) - 0 [14:23:25]OFD Sender: Remove packet 29237 [14:23:25]ProducePacketName [14:23:25]name=ofd_packets/00029237 [14:23:25]NVStorageDeleteData [14:23:25]Write to MH i2c: 01 00 00 47 9C E3 [14:23:25]Write i2c OK [14:23:25]MH_I2C_Read... [14:23:25]Read from MH i2c: 01 [14:23:25]MH_I2C_Read... [14:23:25]Read from MH i2c: 01 07 00 [14:23:25]MH_I2C_Read... [14:23:25]Read from MH i2c: 01 07 00 47 9C 00 00 00 00 00 DB 0C D1 [14:23:25]RasterBufferAndPrint [14:23:25]line [14:23:25]line [14:23:25]line [14:23:25]line [14:23:25]line [14:23:25]written 0, free lines is 3298 [14:23:25]MH_Cut [14:23:25]Write to MH i2c: D1 01 00 4E 9C 01 BC [14:23:25]Write i2c OK [14:23:25]MH_I2C_Read... [14:23:25]Read from MH i2c: D1 [14:23:25]MH_I2C_Read... [14:23:25]Read from MH i2c: D1 01 00 [14:23:25]MH_I2C_Read... [14:23:25]Read from MH i2c: D1 01 00 4E 9C 00 BB [14:23:25]Write to MH i2c: 01 00 00 4F 9C EB [14:23:25]Write i2c OK [14:23:25]MH_I2C_Read... [14:23:25]OFD Sender: No OFD packet to send [14:23:26]*** Cut start [14:23:26]*** Partial cut [14:23:26]*** CUTSNS_PIN = 1 [14:23:26]*** CUTSNS_PIN = 0 [14:23:26]*** Brake cut motor [14:23:26]Read from MH i2c: 01 [14:23:26]MH_I2C_Read... [14:23:26]*** Stop cut motor [14:23:26]*** Cut end [14:23:26]Read from MH i2c: 01 07 00 [14:23:26]MH_I2C_Read... [14:23:26]Read from MH i2c: 01 07 00 4F 9C 00 00 00 00 00 FF 0F 00 [14:23:26]process_action close_receipt done [14:23:26]requested_data is exist [14:23:26]produce_requested_data [14:23:26]requested_item fm.sn is exist - process it [14:23:26]wFMCommunicate request_size=4 [14:23:26]MH_SAM_APDU [14:23:26]CAPDU: 80 11 00 00 [14:23:26]Write to MH i2c: E2 08 00 50 9C 80 11 00 00 00 00 00 00 66 [14:23:26]Write i2c OK [14:23:26]MH_I2C_Read... [14:23:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:23:26]Read from MH i2c: E2 [14:23:26]MH_I2C_Read... [14:23:26]Read from MH i2c: E2 17 00 [14:23:26]MH_I2C_Read... [14:23:26]Read from MH i2c: E2 17 00 50 9C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B5 [14:23:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:23:26]wFMCommunicate OK [14:23:26]requested_item fd.num is exist - process it [14:23:26]SAM_PROTO_GetFieldsCounters [14:23:26]wFMCommunicate request_size=4 [14:23:26]MH_SAM_APDU [14:23:26]CAPDU: 80 13 00 00 [14:23:26]Write to MH i2c: E2 08 00 51 9C 80 13 00 00 00 00 00 00 69 [14:23:26]Write i2c OK [14:23:26]MH_I2C_Read... [14:23:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:23:26]Read from MH i2c: E2 [14:23:26]MH_I2C_Read... [14:23:26]Read from MH i2c: E2 62 00 [14:23:26]MH_I2C_Read... [14:23:26]Read from MH i2c: E2 62 00 51 9C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 35 72 00 00 0E 04 04 00 74 00 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 7B [14:23:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 35 72 00 00 0E 04 04 00 74 00 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 [14:23:26]wFMCommunicate OK [14:23:26]SAM_PROTO_GetFieldsCounters done [14:23:26]requested_item shift.num is exist - process it [14:23:26]requested_item shift.opened is exist - process it [14:23:26]req_shift_opened [14:23:26]FM_GetShiftState [14:23:26]SAM_PROTO_GetShiftState [14:23:26]wFMCommunicate request_size=4 [14:23:26]MH_SAM_APDU [14:23:26]CAPDU: 80 13 01 00 [14:23:26]Write to MH i2c: E2 08 00 52 9C 80 13 01 00 00 00 00 00 6B [14:23:26]Write i2c OK [14:23:26]MH_I2C_Read... [14:23:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:23:26]Read from MH i2c: E2 [14:23:26]MH_I2C_Read... [14:23:26]Read from MH i2c: E2 0E 00 [14:23:26]MH_I2C_Read... [14:23:26]Read from MH i2c: E2 0E 00 52 9C 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 17 [14:23:26]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [14:23:26]wFMCommunicate OK [14:23:26]SAM_PROTO_GetShiftState done [14:23:26]FM_GetShiftState done [14:23:26]req_shift_opened done [14:23:26]requested_item shift.open_date is exist - process it [14:23:26]req_shift_open_date [14:23:26]req_shift_open_date done [14:23:26]produce_requested_data done [14:23:26]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29237,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [14:23:26]process_action_free close_receipt [14:23:26]json_value_free [14:23:26]json_value_free done [14:23:26]process_json_proto returns [14:23:26]Send response to host [14:23:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29237,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [14:23:26]free response buf [14:23:26]execute_script done [14:23:26]execute_script returns [14:23:26]free content buf [14:23:26]Sock 9.Close socket [14:23:26]Sock 9.Thread stoped [14:23:30]OFD Sender: No OFD packet to send [14:23:35]OFD Sender: No OFD packet to send [14:23:40]OFD Sender: No OFD packet to send [14:23:45]OFD Sender: No OFD packet to send [14:23:50]OFD Sender: No OFD packet to send [14:23:55]OFD Sender: No OFD packet to send [14:24:00]OFD Sender: No OFD packet to send [14:24:05]OFD Sender: No OFD packet to send [14:24:10]OFD Sender: No OFD packet to send [14:24:15]OFD Sender: No OFD packet to send [14:24:20]OFD Sender: No OFD packet to send [14:24:25]OFD Sender: No OFD packet to send [14:24:30]OFD Sender: No OFD packet to send [14:24:35]OFD Sender: No OFD packet to send [14:24:40]OFD Sender: No OFD packet to send [14:24:45]OFD Sender: No OFD packet to send [14:24:50]OFD Sender: No OFD packet to send [14:24:55]OFD Sender: No OFD packet to send [14:24:56]accept exits with 7 [14:24:56]New connection [14:24:56]New thread 3066785124 created [14:24:56]Thread 3066928484 joined [14:24:56]Waiting for new connection... [14:24:56] Sock 7.Parse request [14:24:56]Sock 7.Check first char [14:24:56]Sock 7.First char is OK [14:24:56]request: POST /json_proto HTTP/1.0 [14:24:56]Method: POST [14:24:56]URL: /json_proto [14:24:56]Method is POST - this is cgi request [14:24:56]url: /json_proto [14:24:56]query_string will be loaded in cgi processing [14:24:56]execute_cgi json_proto POST (null) [14:24:56]execute_cgi path=json_proto method=POST [14:24:56]POST find Content-Length [14:24:56]Host: 172.17.33.3:8080 [14:24:56]Content-Length: 801 [14:24:56]Content-Type: application/json [14:24:56] [14:24:56]POST finish read [14:24:56]Found Content-Length = 801 [14:24:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347622", "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" : 38.140, "sum" : 2490.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" : 2490.54 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:24:56]execute_script... [14: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)347622", "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" : 38.140, "sum" : 2490.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" : 2490.54 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:24:56]POST & json_proto [14:24:56]process_json_proto [14:24:56]json parsed OK: [14:24:56]protocol is kg_v1.0 [14:24:56]action value=close_receipt [14:24:56]process_action close_receipt [14:24:56]cmd_close_receipt [14:24:56]MH_GetDate [14:24:56]Write to MH i2c: F0 00 00 53 9C DE [14:24:56]Write i2c OK [14:24:56]MH_I2C_Read... [14:24:56]Read from MH i2c: F0 [14:24:56]MH_I2C_Read... [14:24:56]Read from MH i2c: F0 09 00 [14:24:56]MH_I2C_Read... [14:24:56]Read from MH i2c: F0 09 00 53 9C 00 42 E7 1B 66 23 5B 8F 65 03 [14:24:56]GetLastDocTimeStamp 1713104613 [14:24:56]current date 1713104706 [14:24:56]FM_GetShiftState [14:24:56]SAM_PROTO_GetShiftState [14:24:56]wFMCommunicate request_size=4 [14:24:56]MH_SAM_APDU [14:24:56]CAPDU: 80 13 01 00 [14:24:56]Write to MH i2c: E2 08 00 54 9C 80 13 01 00 00 00 00 00 6D [14:24:56]Write i2c OK [14:24:56]MH_I2C_Read... [14:24:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:56]Read from MH i2c: E2 [14:24:56]MH_I2C_Read... [14:24:56]Read from MH i2c: E2 0E 00 [14:24:56]MH_I2C_Read... [14:24:56]Read from MH i2c: E2 0E 00 54 9C 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 19 [14:24:56]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [14:24:56]wFMCommunicate OK [14:24:56]SAM_PROTO_GetShiftState done [14:24:56]FM_GetShiftState done [14:24:56]opened in 1713053951 [14:24:56]opened+sec_in_day 1713140351 [14:24:56]quantity*price = 249054 [14:24:56]sum+1 = 249055 [14:24:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2490.54 НСП 1% : 22.04 НДС 12% : 264.48 Наличными: 0.00 Безнал.: 2490.54 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 148 14.04.2024 14:25 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29238 ФПД: 11934947764578 1/tax-web-control/client/api/v1/ticket?date=20240414T142506&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29238&fm=11934947764578&tin=02508201610067®Number=0000138879044617&sum=249054 [14:24:57]StoreToDocumentArchive [14:24:57]shift 116 fd 29238 [14:24:57]save to /storage/0116/doc_00029238 [14:24:57]save last doc name /storage/0116/doc_00029238 to /storage/kkm_last_doc_name [14:24:57]save OK [14:24:57]Clear old archive folders... [14:24:57]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:24:57]tlvbuf is 011EAFA0 [14:24:57]SAM_PROTO_ClearQueue [14:24:57]wFMCommunicate request_size=4 [14:24:57]MH_SAM_APDU [14:24:57]CAPDU: 80 09 00 00 [14:24:57]Write to MH i2c: E2 08 00 61 9C 80 09 00 00 00 00 00 00 6F [14:24:57]Write i2c OK [14:24:57]MH_I2C_Read... [14:24:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:24:57]Read from MH i2c: E2 [14:24:57]MH_I2C_Read... [14:24:57]Read from MH i2c: E2 03 00 [14:24:57]MH_I2C_Read... [14:24:57]Read from MH i2c: E2 03 00 61 9C 00 90 00 71 [14:24:57]RAPDU: 90 00 [14:24:57]wFMCommunicate OK [14:24:57]SAM_PROTO_ClearQueue done [14:24:57]KKMCreateOFDPacket [14:24:57]OFDProtocolAddRootSTLVToBuf [14:24:57]FM_MakeSignedData [14:24:57]FM_MakeSignedData [14:24:57]SAM_PROTO_SignData [14:24:57]wFMCommunicate request_size=4 [14:24:57]MH_SAM_APDU [14:24:57]CAPDU: 80 0D 01 02 [14:24:57]Write to MH i2c: E2 08 00 62 9C 80 0D 01 02 00 00 00 00 77 [14:24:57]Write i2c OK [14:24:57]MH_I2C_Read... [14:24:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:24:57]Read from MH i2c: E2 [14:24:57]MH_I2C_Read... [14:24:57]Read from MH i2c: E2 03 00 [14:24:57]MH_I2C_Read... [14:24:57]Read from MH i2c: E2 03 00 62 9C 00 90 00 72 [14:24:57]RAPDU: 90 00 [14:24:57]wFMCommunicate OK [14:24:57]wFMCommunicate request_size=255 [14:24:57]MH_SAM_APDU [14:24:57]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 94 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 DE CC 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DE CC 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9C 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DE CC 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 42 E7 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 36 72 00 00 35 04 06 00 [14:24:57]Write to MH i2c: E2 02 01 63 9C 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 94 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 DE CC 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DE CC 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9C 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DE CC 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 42 E7 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 36 72 00 00 35 04 06 00 00 00 2F [14:24:57]Write i2c OK [14:24:57]MH_I2C_Read... [14:24:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:24:57]Read from MH i2c: E2 [14:24:57]MH_I2C_Read... [14:24:57]Read from MH i2c: E2 03 00 [14:24:57]MH_I2C_Read... [14:24:57]Read from MH i2c: E2 03 00 63 9C 00 90 00 73 [14:24:57]RAPDU: 90 00 [14:24:57]wFMCommunicate OK [14:24:57]wFMCommunicate request_size=11 [14:24:57]MH_SAM_APDU [14:24:57]CAPDU: 80 0D 02 02 06 0A DA D2 52 69 62 [14:24:57]Write to MH i2c: E2 0E 00 64 9C 80 0D 02 02 06 00 0A DA D2 52 69 62 00 00 59 [14:24:57]Write i2c OK [14:24:57]MH_I2C_Read... [14:24:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:24:57]Read from MH i2c: E2 [14:24:57]MH_I2C_Read... [14:24:57]Read from MH i2c: E2 03 00 [14:24:57]MH_I2C_Read... [14:24:57]Read from MH i2c: E2 03 00 64 9C 00 90 00 74 [14:24:57]RAPDU: 90 00 [14:24:57]wFMCommunicate OK [14:24:57]wFMCommunicate request_size=4 [14:24:57]MH_SAM_APDU [14:24:57]CAPDU: 80 0D 03 02 [14:24:57]Write to MH i2c: E2 08 00 65 9C 80 0D 03 02 00 00 00 00 7C [14:24:57]Write i2c OK [14:24:57]MH_I2C_Read... [14:24:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:24:57]Read from MH i2c: E2 [14:24:57]MH_I2C_Read... [14:24:57]Read from MH i2c: E2 0B 00 [14:24:57]MH_I2C_Read... [14:24:57]Read from MH i2c: E2 0B 00 65 9C 00 BE E9 FE 73 BE 2E F0 BD 90 00 2E [14:24:57]RAPDU: BE E9 FE 73 BE 2E F0 BD 90 00 [14:24:57]wFMCommunicate OK [14:24:57]SAM_PROTO_SignData done [14:24:57]FM_MakeSignedData done [14:24:57]CreateOFDProtocolMessage [14:24:57]wFMCommunicate request_size=4 [14:24:57]MH_SAM_APDU [14:24:57]CAPDU: 80 11 00 00 [14:24:57]Write to MH i2c: E2 08 00 66 9C 80 11 00 00 00 00 00 00 7C [14:24:57]Write i2c OK [14:24:57]MH_I2C_Read... [14:24:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:57]Read from MH i2c: E2 [14:24:57]MH_I2C_Read... [14:24:57]Read from MH i2c: E2 17 00 [14:24:57]MH_I2C_Read... [14:24:57]Read from MH i2c: E2 17 00 66 9C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 CB [14:24:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:24:57]wFMCommunicate OK [14:24:57]CreateOFDProtocolMessage done [14:24:57]OFDSenderStorePacket 29238 [14:24:57]StoreOFDPacket docnum=29238 [14:24:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 A9 62 08 01 4A 06 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 94 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 DE CC 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DE CC 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9C 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DE CC 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 42 E7 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 36 72 00 00 35 04 06 00 0A DA D2 52 69 62 BE E9 FE 73 BE 2E F0 BD [14:24:57]CheckFolder [14:24:57]dirname=/storage/ofd_packets [14:24:57]CheckFolder done [14:24:57]ProducePacketName [14:24:57]name=ofd_packets/00029238 [14:24:57]NVStorageSaveData ofd_packets/00029238 [14:24:57]File name is /storage/ofd_packets/00029238 [14:24:57]Write 302 bytes [14:24:57]NVStorageSaveData done [14:24:57]OFDSenderStorePacket done [14:24:57]KKMCreateOFDPacket done [14:24:57]NVStorageSaveData kkm_last_timestamp [14:24:57]File name is /storage/kkm_last_timestamp [14:24:57]Write 4 bytes [14:24:57]NVStorageSaveData done [14:24:57]ExternCall_PrintAddStr [14:24:57]wPrintStart [14:24:57]Write to MH i2c: 01 00 00 67 9C 03 [14:24:57]Write i2c OK [14:24:57]MH_I2C_Read... [14:24:57]Read from MH i2c: 01 [14:24:57]MH_I2C_Read... [14:24:57]Read from MH i2c: 01 07 00 [14:24:57]MH_I2C_Read... [14:24:57]Read from MH i2c: 01 07 00 67 9C 00 00 00 00 00 FF 0F 18 [14:24:57]RasterBufferAndPrint [14:24:57]line Счет N : (1)347622 [14:24:57]line ИНН: 02508201610067 [14:24:57]line Контрольно-Кассовый Чек [14:24:57]line ПРОДАЖА [14:24:57]line ТРК (МРК, ГНК) : 31 [14:24:57]line Товар: 2710124130 [14:24:57]line SUPER-92-К-5 [14:24:57]line 38.140 * 65.30 [14:24:57]line = 2490.54 [14:24:57]line НДС 12% НСП 1% [14:24:57]line > о реализуемом товаре [14:24:57]line ИТОГО: 2490.54 [14:24:57]line НСП 1% : 22.04 [14:24:57]line НДС 12% : 264.48 [14:24:57]line Наличными: 0.00 [14:24:57]line Безнал.: 2490.54 [14:24:57]line Место: АЗС № 108 "Партнер Нефть" [14:24:57]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [14:24:57]line СНО: Общий режим [14:24:57]line Чек 148 14.04.2024 14:25 [14:24:57]line Смена: 116 ФФД: 1.0 [14:24:57]line ЗНМ: 0300000027 [14:24:57]line РНМ: 0000138879044617 [14:24:57]line Версия ККМ: 001 [14:24:57]line Платежная система: О! деньги [14:24:57]line ФМ: 0000000000963154 [14:24:57]line ФД: 29238 [14:24:57]line ФПД: 11934947764578 [14:24:57]line 1/tax-web-control/client/api/v1/ticket?date=20240414T142506&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29238&fm=11934947764578&tin=02508201610067®Number=0000138879044617&sum=249054 [14:24:58]OFD Sender: Processing packet 29238 [packets to send 8, broken 7] [14:24:58]ProducePacketName [14:24:58]name=ofd_packets/00029238 [14:24:58]OFD Sender: To server: pG, [14:24:58]CommunicateWithHost lk.salyk.kg:30040 [14:24:58]ConnectInit lk.salyk.kg [14:24:58]written 0, free lines is 4095 [14:24:58]Connected sock=10 [14:24:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 A9 62 08 01 4A 06 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 94 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 DE CC 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DE CC 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9C 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DE CC 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 42 E7 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 36 72 00 00 35 04 06 00 0A DA D2 52 69 62 BE E9 FE 73 BE 2E F0 BD [14:24:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 90 2B 47 00 09 2D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 36 72 00 00 F4 03 04 00 E6 91 1B 66 B6 04 01 00 00 FF E0 A9 45 7A E2 EE 2A [14:24:58]CommunicateWithHost err = 0 [14:24:58]CheckOFDResponse [14:24:58]1017 (14) - 77093643461234 [14:24:58]1041 (16) - 0000000000963154 [14:24:58]1040 (4) - 29238 [14:24:58]1012 (4) - 14.04.2024 08:20 [14:24:58]1206 (1) - 0 [14:24:58]OFD Sender: Remove packet 29238 [14:24:58]ProducePacketName [14:24:58]name=ofd_packets/00029238 [14:24:58]NVStorageDeleteData [14:24:58]Write to MH i2c: 01 00 00 90 9C 2C [14:24:58]Write i2c OK [14:24:58]MH_I2C_Read... [14:24:58]Read from MH i2c: 01 [14:24:58]MH_I2C_Read... [14:24:58]Read from MH i2c: 01 07 00 [14:24:58]MH_I2C_Read... [14:24:58]Read from MH i2c: 01 07 00 90 9C 00 00 00 00 00 E3 0C 22 [14:24:58]RasterBufferAndPrint [14:24:58]line [14:24:58]line [14:24:58]line [14:24:58]line [14:24:58]line [14:24:58]written 0, free lines is 3308 [14:24:58]MH_Cut [14:24:58]Write to MH i2c: D1 01 00 97 9C 01 05 [14:24:58]Write i2c OK [14:24:58]MH_I2C_Read... [14:24:58]Read from MH i2c: D1 [14:24:58]MH_I2C_Read... [14:24:58]Read from MH i2c: D1 01 00 [14:24:58]MH_I2C_Read... [14:24:58]Read from MH i2c: D1 01 00 97 9C 00 04 [14:24:58]Write to MH i2c: 01 00 00 98 9C 34 [14:24:58]Write i2c OK [14:24:58]MH_I2C_Read... [14:24:58]OFD Sender: No OFD packet to send [14:24:59]*** Cut start [14:24:59]*** Partial cut [14:24:59]*** CUTSNS_PIN = 1 [14:24:59]*** CUTSNS_PIN = 0 [14:24:59]*** Brake cut motor [14:24:59]Read from MH i2c: 01 [14:24:59]MH_I2C_Read... [14:24:59]*** Stop cut motor [14:24:59]*** Cut end [14:24:59]Read from MH i2c: 01 07 00 [14:24:59]MH_I2C_Read... [14:24:59]Read from MH i2c: 01 07 00 98 9C 00 00 00 00 00 FF 0F 49 [14:24:59]process_action close_receipt done [14:24:59]requested_data is exist [14:24:59]produce_requested_data [14:24:59]requested_item fm.sn is exist - process it [14:24:59]wFMCommunicate request_size=4 [14:24:59]MH_SAM_APDU [14:24:59]CAPDU: 80 11 00 00 [14:24:59]Write to MH i2c: E2 08 00 99 9C 80 11 00 00 00 00 00 00 AF [14:24:59]Write i2c OK [14:24:59]MH_I2C_Read... [14:25:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:25:00]Read from MH i2c: E2 [14:25:00]MH_I2C_Read... [14:25:00]Read from MH i2c: E2 17 00 [14:25:00]MH_I2C_Read... [14:25:00]Read from MH i2c: E2 17 00 99 9C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 FE [14:25:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:25:00]wFMCommunicate OK [14:25:00]requested_item fd.num is exist - process it [14:25:00]SAM_PROTO_GetFieldsCounters [14:25:00]wFMCommunicate request_size=4 [14:25:00]MH_SAM_APDU [14:25:00]CAPDU: 80 13 00 00 [14:25:00]Write to MH i2c: E2 08 00 9A 9C 80 13 00 00 00 00 00 00 B2 [14:25:00]Write i2c OK [14:25:00]MH_I2C_Read... [14:25:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:25:00]Read from MH i2c: E2 [14:25:00]MH_I2C_Read... [14:25:00]Read from MH i2c: E2 62 00 [14:25:00]MH_I2C_Read... [14:25:00]Read from MH i2c: E2 62 00 9A 9C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 36 72 00 00 0E 04 04 00 74 00 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 C8 [14:25:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 36 72 00 00 0E 04 04 00 74 00 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 [14:25:00]wFMCommunicate OK [14:25:00]SAM_PROTO_GetFieldsCounters done [14:25:00]requested_item shift.num is exist - process it [14:25:00]requested_item shift.opened is exist - process it [14:25:00]req_shift_opened [14:25:00]FM_GetShiftState [14:25:00]SAM_PROTO_GetShiftState [14:25:00]wFMCommunicate request_size=4 [14:25:00]MH_SAM_APDU [14:25:00]CAPDU: 80 13 01 00 [14:25:00]Write to MH i2c: E2 08 00 9B 9C 80 13 01 00 00 00 00 00 B4 [14:25:00]Write i2c OK [14:25:00]MH_I2C_Read... [14:25:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:25:00]Read from MH i2c: E2 [14:25:00]MH_I2C_Read... [14:25:00]Read from MH i2c: E2 0E 00 [14:25:00]MH_I2C_Read... [14:25:00]Read from MH i2c: E2 0E 00 9B 9C 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 60 [14:25:00]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [14:25:00]wFMCommunicate OK [14:25:00]SAM_PROTO_GetShiftState done [14:25:00]FM_GetShiftState done [14:25:00]req_shift_opened done [14:25:00]requested_item shift.open_date is exist - process it [14:25:00]req_shift_open_date [14:25:00]req_shift_open_date done [14:25:00]produce_requested_data done [14:25:00]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29238,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [14:25:00]process_action_free close_receipt [14:25:00]json_value_free [14:25:00]json_value_free done [14:25:00]process_json_proto returns [14:25:00]Send response to host [14:25:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29238,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [14:25:00]free response buf [14:25:00]execute_script done [14:25:00]execute_script returns [14:25:00]free content buf [14:25:00]Sock 7.Close socket [14:25:00]Sock 7.Thread stoped [14:25:03]OFD Sender: No OFD packet to send [14:25:08]OFD Sender: No OFD packet to send [14:25:13]OFD Sender: No OFD packet to send [14:25:18]OFD Sender: No OFD packet to send [14:25:23]OFD Sender: No OFD packet to send [14:25:28]OFD Sender: No OFD packet to send [14:25:33]OFD Sender: No OFD packet to send [14:25:38]OFD Sender: No OFD packet to send [14:25:43]OFD Sender: No OFD packet to send [14:25:48]OFD Sender: No OFD packet to send [14:25:53]OFD Sender: No OFD packet to send [14:25:58]OFD Sender: No OFD packet to send [14:26:03]OFD Sender: No OFD packet to send [14:26:08]OFD Sender: No OFD packet to send [14:26:13]OFD Sender: No OFD packet to send [14:26:18]OFD Sender: No OFD packet to send [14:26:23]OFD Sender: No OFD packet to send [14:26:28]OFD Sender: No OFD packet to send [14:26:33]OFD Sender: No OFD packet to send [14:26:38]OFD Sender: No OFD packet to send [14:26:43]OFD Sender: No OFD packet to send [14:26:48]OFD Sender: No OFD packet to send [14:26:53]OFD Sender: No OFD packet to send [14:26:58]OFD Sender: No OFD packet to send [14:27:03]OFD Sender: No OFD packet to send [14:27:08]OFD Sender: No OFD packet to send [14:27:13]OFD Sender: No OFD packet to send [14:27:18]OFD Sender: No OFD packet to send [14:27:23]OFD Sender: No OFD packet to send [14:27:28]OFD Sender: No OFD packet to send [14:27:33]OFD Sender: No OFD packet to send [14:27:38]OFD Sender: No OFD packet to send [14:27: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:26]accept exits with 9 [14:31:26]New connection [14:31:26]New thread 3066928484 created [14:31:26]Thread 3066785124 joined [14:31:26]Waiting for new connection... [14:31:26] Sock 9.Parse request [14:31:26]Sock 9.Check first char [14:31:26]Sock 9.First char is OK [14:31:26]request: POST /json_proto HTTP/1.0 [14:31:26]Method: POST [14:31:26]URL: /json_proto [14:31:26]Method is POST - this is cgi request [14:31:26]url: /json_proto [14:31:26]query_string will be loaded in cgi processing [14:31:26]execute_cgi json_proto POST (null) [14:31:26]execute_cgi path=json_proto method=POST [14:31:26]POST find Content-Length [14:31:26]Host: 172.17.33.3:8080 [14:31:26]Content-Length: 838 [14:31:26]Content-Type: application/json [14:31:26] [14:31:26]POST finish read [14:31:26]Found Content-Length = 838 [14:31:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347623", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 724.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:31:26]execute_script... [14: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 : (1)347623", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 724.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:31:26]POST & json_proto [14:31:26]process_json_proto [14:31:26]json parsed OK: [14:31:26]protocol is kg_v1.0 [14:31:26]action value=close_receipt [14:31:26]process_action close_receipt [14:31:26]cmd_close_receipt [14:31:26]MH_GetDate [14:31:26]Write to MH i2c: F0 00 00 9C 9C 27 [14:31:26]Write i2c OK [14:31:26]MH_I2C_Read... [14:31:26]Read from MH i2c: F0 [14:31:26]MH_I2C_Read... [14:31:26]Read from MH i2c: F0 09 00 [14:31:26]MH_I2C_Read... [14:31:26]Read from MH i2c: F0 09 00 9C 9C 00 C8 E8 1B 66 23 5B 8F 65 D3 [14:31:26]GetLastDocTimeStamp 1713104706 [14:31:26]current date 1713105096 [14:31:26]FM_GetShiftState [14:31:26]SAM_PROTO_GetShiftState [14:31:26]wFMCommunicate request_size=4 [14:31:26]MH_SAM_APDU [14:31:26]CAPDU: 80 13 01 00 [14:31:26]Write to MH i2c: E2 08 00 9D 9C 80 13 01 00 00 00 00 00 B6 [14:31:26]Write i2c OK [14:31:26]MH_I2C_Read... [14:31:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:31:26]Read from MH i2c: E2 [14:31:26]MH_I2C_Read... [14:31:26]Read from MH i2c: E2 0E 00 [14:31:26]MH_I2C_Read... [14:31:26]Read from MH i2c: E2 0E 00 9D 9C 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 62 [14:31:26]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [14:31:26]wFMCommunicate OK [14:31:26]SAM_PROTO_GetShiftState done [14:31:26]FM_GetShiftState done [14:31:26]opened in 1713053951 [14:31:26]opened+sec_in_day 1713140351 [14:31:26]quantity*price = 72400 [14:31:26]sum+1 = 72401 [14:31:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 724.00 НСП 1% : 6.41 НДС 12% : 76.88 Наличными: 0.00 Безнал.: 724.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 149 14.04.2024 14:31 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 29239 ФПД: 6121250868802 1/tax-web-control/client/api/v1/ticket?date=20240414T143136&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29239&fm=6121250868802&tin=02508201610067®Number=0000138879044617&sum=72400 [14:31:27]StoreToDocumentArchive [14:31:27]shift 116 fd 29239 [14:31:27]save to /storage/0116/doc_00029239 [14:31:27]save last doc name /storage/0116/doc_00029239 to /storage/kkm_last_doc_name [14:31:27]save OK [14:31:27]Clear old archive folders... [14:31:27]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:31:27]tlvbuf is 0121A140 [14:31:27]SAM_PROTO_ClearQueue [14:31:27]wFMCommunicate request_size=4 [14:31:27]MH_SAM_APDU [14:31:27]CAPDU: 80 09 00 00 [14:31:27]Write to MH i2c: E2 08 00 AA 9C 80 09 00 00 00 00 00 00 B8 [14:31:27]Write i2c OK [14:31:27]MH_I2C_Read... [14:31:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:31:27]Read from MH i2c: E2 [14:31:27]MH_I2C_Read... [14:31:27]Read from MH i2c: E2 03 00 [14:31:27]MH_I2C_Read... [14:31:27]Read from MH i2c: E2 03 00 AA 9C 00 90 00 BA [14:31:27]RAPDU: 90 00 [14:31:27]wFMCommunicate OK [14:31:27]SAM_PROTO_ClearQueue done [14:31:27]KKMCreateOFDPacket [14:31:27]OFDProtocolAddRootSTLVToBuf [14:31:27]FM_MakeSignedData [14:31:27]FM_MakeSignedData [14:31:27]SAM_PROTO_SignData [14:31:27]wFMCommunicate request_size=4 [14:31:27]MH_SAM_APDU [14:31:27]CAPDU: 80 0D 01 02 [14:31:27]Write to MH i2c: E2 08 00 AB 9C 80 0D 01 02 00 00 00 00 C0 [14:31:27]Write i2c OK [14:31:27]MH_I2C_Read... [14:31:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:31:27]Read from MH i2c: E2 [14:31:27]MH_I2C_Read... [14:31:27]Read from MH i2c: E2 03 00 [14:31:27]MH_I2C_Read... [14:31:27]Read from MH i2c: E2 03 00 AB 9C 00 90 00 BB [14:31:27]RAPDU: 90 00 [14:31:27]wFMCommunicate OK [14:31:27]wFMCommunicate request_size=255 [14:31:27]MH_SAM_APDU [14:31: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 95 00 00 00 F4 03 04 00 C8 E8 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 37 72 00 00 35 04 06 00 05 91 36 FB [14:31:27]Write to MH i2c: E2 02 01 AC 9C 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 95 00 00 00 F4 03 04 00 C8 E8 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 37 72 00 00 35 04 06 00 05 91 36 FB 00 00 E9 [14:31:27]Write i2c OK [14:31:27]MH_I2C_Read... [14:31:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:31:27]Read from MH i2c: E2 [14:31:27]MH_I2C_Read... [14:31:27]Read from MH i2c: E2 03 00 [14:31:27]MH_I2C_Read... [14:31:27]Read from MH i2c: E2 03 00 AC 9C 00 90 00 BC [14:31:27]RAPDU: 90 00 [14:31:27]wFMCommunicate OK [14:31:27]wFMCommunicate request_size=7 [14:31:27]MH_SAM_APDU [14:31:27]CAPDU: 80 0D 02 02 02 CE 42 [14:31:27]Write to MH i2c: E2 0A 00 AD 9C 80 0D 02 02 02 00 CE 42 00 00 D7 [14:31:27]Write i2c OK [14:31:27]MH_I2C_Read... [14:31:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:31:27]Read from MH i2c: E2 [14:31:27]MH_I2C_Read... [14:31:27]Read from MH i2c: E2 03 00 [14:31:27]MH_I2C_Read... [14:31:27]Read from MH i2c: E2 03 00 AD 9C 00 90 00 BD [14:31:27]RAPDU: 90 00 [14:31:27]wFMCommunicate OK [14:31:27]wFMCommunicate request_size=4 [14:31:27]MH_SAM_APDU [14:31:27]CAPDU: 80 0D 03 02 [14:31:27]Write to MH i2c: E2 08 00 AE 9C 80 0D 03 02 00 00 00 00 C5 [14:31:27]Write i2c OK [14:31:27]MH_I2C_Read... [14:31:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:31:27]Read from MH i2c: E2 [14:31:27]MH_I2C_Read... [14:31:27]Read from MH i2c: E2 0B 00 [14:31:27]MH_I2C_Read... [14:31:27]Read from MH i2c: E2 0B 00 AE 9C 00 A1 0D 34 F9 73 52 2D 46 90 00 D9 [14:31:27]RAPDU: A1 0D 34 F9 73 52 2D 46 90 00 [14:31:27]wFMCommunicate OK [14:31:27]SAM_PROTO_SignData done [14:31:27]FM_MakeSignedData done [14:31:27]CreateOFDProtocolMessage [14:31:27]wFMCommunicate request_size=4 [14:31:27]MH_SAM_APDU [14:31:27]CAPDU: 80 11 00 00 [14:31:27]Write to MH i2c: E2 08 00 AF 9C 80 11 00 00 00 00 00 00 C5 [14:31:27]Write i2c OK [14:31:27]MH_I2C_Read... [14:31:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:31:27]Read from MH i2c: E2 [14:31:27]MH_I2C_Read... [14:31:27]Read from MH i2c: E2 17 00 [14:31:27]MH_I2C_Read... [14:31:27]Read from MH i2c: E2 17 00 AF 9C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 14 [14:31:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:31:27]wFMCommunicate OK [14:31:27]CreateOFDProtocolMessage done [14:31:27]OFDSenderStorePacket 29239 [14:31:27]StoreOFDPacket docnum=29239 [14:31:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 A1 E3 04 01 11 DB 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 95 00 00 00 F4 03 04 00 C8 E8 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 37 72 00 00 35 04 06 00 05 91 36 FB CE 42 A1 0D 34 F9 73 52 2D 46 [14:31:27]CheckFolder [14:31:27]dirname=/storage/ofd_packets [14:31:27]CheckFolder done [14:31:27]ProducePacketName [14:31:27]name=ofd_packets/00029239 [14:31:27]NVStorageSaveData ofd_packets/00029239 [14:31:27]File name is /storage/ofd_packets/00029239 [14:31:27]Write 298 bytes [14:31:27]NVStorageSaveData done [14:31:27]OFDSenderStorePacket done [14:31:27]KKMCreateOFDPacket done [14:31:27]NVStorageSaveData kkm_last_timestamp [14:31:27]File name is /storage/kkm_last_timestamp [14:31:27]Write 4 bytes [14:31:27]NVStorageSaveData done [14:31:27]ExternCall_PrintAddStr [14:31:27]wPrintStart [14:31:27]Write to MH i2c: 01 00 00 B0 9C 4C [14:31:27]Write i2c OK [14:31:27]MH_I2C_Read... [14:31:27]Read from MH i2c: 01 [14:31:27]MH_I2C_Read... [14:31:27]Read from MH i2c: 01 07 00 [14:31:27]MH_I2C_Read... [14:31:27]Read from MH i2c: 01 07 00 B0 9C 00 00 00 00 00 FF 0F 61 [14:31:27]RasterBufferAndPrint [14:31:27]line Счет N : (1)347623 [14:31:27]line ИНН: 02508201610067 [14:31:27]line Контрольно-Кассовый Чек [14:31:27]line ПРОДАЖА [14:31:27]line ТРК (МРК, ГНК) : 11 [14:31:27]line Товар: 2710194210 [14:31:27]line ДТ-К-5 [14:31:27]line 10.000 * 72.40 [14:31:27]line = 724.00 [14:31:27]line НДС 12% НСП 1% [14:31:27]line > о реализуемом товаре [14:31:27]line ИТОГО: 724.00 [14:31:27]line НСП 1% : 6.41 [14:31:27]line НДС 12% : 76.88 [14:31:27]line Наличными: 0.00 [14:31:27]line Безнал.: 724.00 [14:31:27]line Место: АЗС № 108 "Партнер Нефть" [14:31:27]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [14:31:27]line СНО: Общий режим [14:31:27]line Чек 149 14.04.2024 14:31 [14:31:27]line Смена: 116 ФФД: 1.0 [14:31:27]line ЗНМ: 0300000027 [14:31:27]line РНМ: 0000138879044617 [14:31:27]line Версия ККМ: 001 [14:31:28]line Платежная система: АКБ Кыргызстан [14:31:28]line ФМ: 0000000000963154 [14:31:28]line ФД: 29239 [14:31:28]line ФПД: 6121250868802 [14:31:28]line 1/tax-web-control/client/api/v1/ticket?date=20240414T143136&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29239&fm=6121250868802&tin=02508201610067®Number=0000138879044617&sum=72400 [14:31:28]OFD Sender: Processing packet 29239 [packets to send 8, broken 7] [14:31:28]ProducePacketName [14:31:28]name=ofd_packets/00029239 [14:31:28]OFD Sender: To server: pG, [14:31:28]CommunicateWithHost lk.salyk.kg:30040 [14:31:28]ConnectInit lk.salyk.kg [14:31:28]written 0, free lines is 4095 [14:31:28]Connected sock=10 [14:31:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 A1 E3 04 01 11 DB 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 95 00 00 00 F4 03 04 00 C8 E8 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 37 72 00 00 35 04 06 00 05 91 36 FB CE 42 A1 0D 34 F9 73 52 2D 46 [14:31:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 97 70 47 00 70 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 37 72 00 00 F4 03 04 00 6C 93 1B 66 B6 04 01 00 00 2A 63 95 F2 D3 CC 58 91 [14:31:28]CommunicateWithHost err = 0 [14:31:28]CheckOFDResponse [14:31:28]1017 (14) - 77093643461234 [14:31:28]1041 (16) - 0000000000963154 [14:31:28]1040 (4) - 29239 [14:31:28]1012 (4) - 14.04.2024 08:27 [14:31:28]1206 (1) - 0 [14:31:28]OFD Sender: Remove packet 29239 [14:31:28]ProducePacketName [14:31:28]name=ofd_packets/00029239 [14:31:28]NVStorageDeleteData [14:31:28]Write to MH i2c: 01 00 00 D9 9C 75 [14:31:28]Write i2c OK [14:31:28]MH_I2C_Read... [14:31:28]Read from MH i2c: 01 [14:31:28]MH_I2C_Read... [14:31:28]Read from MH i2c: 01 07 00 [14:31:28]MH_I2C_Read... [14:31:28]Read from MH i2c: 01 07 00 D9 9C 00 00 00 00 00 E1 0C 69 [14:31:28]RasterBufferAndPrint [14:31:28]line [14:31:28]line [14:31:28]line [14:31:28]line [14:31:28]line [14:31:28]written 0, free lines is 3303 [14:31:28]MH_Cut [14:31:28]Write to MH i2c: D1 01 00 E0 9C 01 4E [14:31:28]Write i2c OK [14:31:28]MH_I2C_Read... [14:31:28]Read from MH i2c: D1 [14:31:28]MH_I2C_Read... [14:31:28]Read from MH i2c: D1 01 00 [14:31:28]MH_I2C_Read... [14:31:28]Read from MH i2c: D1 01 00 E0 9C 00 4D [14:31:28]Write to MH i2c: 01 00 00 E1 9C 7D [14:31:28]Write i2c OK [14:31:28]MH_I2C_Read... [14:31:28]OFD Sender: No OFD packet to send [14:31:29]*** Cut start [14:31:29]*** Partial cut [14:31:29]*** CUTSNS_PIN = 1 [14:31:29]*** CUTSNS_PIN = 0 [14:31:29]*** Brake cut motor [14:31:30]Read from MH i2c: 01 [14:31:30]MH_I2C_Read... [14:31:30]*** Stop cut motor [14:31:30]*** Cut end [14:31:30]Read from MH i2c: 01 07 00 [14:31:30]MH_I2C_Read... [14:31:30]Read from MH i2c: 01 07 00 E1 9C 00 00 00 00 00 FF 0F 92 [14:31:30]process_action close_receipt done [14:31:30]requested_data is exist [14:31:30]produce_requested_data [14:31:30]requested_item fm.sn is exist - process it [14:31:30]wFMCommunicate request_size=4 [14:31:30]MH_SAM_APDU [14:31:30]CAPDU: 80 11 00 00 [14:31:30]Write to MH i2c: E2 08 00 E2 9C 80 11 00 00 00 00 00 00 F8 [14:31:30]Write i2c OK [14:31:30]MH_I2C_Read... [14:31:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:31:30]Read from MH i2c: E2 [14:31:30]MH_I2C_Read... [14:31:30]Read from MH i2c: E2 17 00 [14:31:30]MH_I2C_Read... [14:31:30]Read from MH i2c: E2 17 00 E2 9C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 47 [14:31:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:31:30]wFMCommunicate OK [14:31:30]requested_item fd.num is exist - process it [14:31:30]SAM_PROTO_GetFieldsCounters [14:31:30]wFMCommunicate request_size=4 [14:31:30]MH_SAM_APDU [14:31:30]CAPDU: 80 13 00 00 [14:31:30]Write to MH i2c: E2 08 00 E3 9C 80 13 00 00 00 00 00 00 FB [14:31:30]Write i2c OK [14:31:30]MH_I2C_Read... [14:31:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:31:30]Read from MH i2c: E2 [14:31:30]MH_I2C_Read... [14:31:30]Read from MH i2c: E2 62 00 [14:31:30]MH_I2C_Read... [14:31:30]Read from MH i2c: E2 62 00 E3 9C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 37 72 00 00 0E 04 04 00 74 00 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 15 [14:31:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 37 72 00 00 0E 04 04 00 74 00 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 [14:31:30]wFMCommunicate OK [14:31:30]SAM_PROTO_GetFieldsCounters done [14:31:30]requested_item shift.num is exist - process it [14:31:30]requested_item shift.opened is exist - process it [14:31:30]req_shift_opened [14:31:30]FM_GetShiftState [14:31:30]SAM_PROTO_GetShiftState [14:31:30]wFMCommunicate request_size=4 [14:31:30]MH_SAM_APDU [14:31:30]CAPDU: 80 13 01 00 [14:31:30]Write to MH i2c: E2 08 00 E4 9C 80 13 01 00 00 00 00 00 FD [14:31:30]Write i2c OK [14:31:30]MH_I2C_Read... [14:31:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:31:30]Read from MH i2c: E2 [14:31:30]MH_I2C_Read... [14:31:30]Read from MH i2c: E2 0E 00 [14:31:30]MH_I2C_Read... [14:31:30]Read from MH i2c: E2 0E 00 E4 9C 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 A9 [14:31:30]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [14:31:30]wFMCommunicate OK [14:31:30]SAM_PROTO_GetShiftState done [14:31:30]FM_GetShiftState done [14:31:30]req_shift_opened done [14:31:30]requested_item shift.open_date is exist - process it [14:31:30]req_shift_open_date [14:31:30]req_shift_open_date done [14:31:30]produce_requested_data done [14:31:30]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29239,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [14:31:30]process_action_free close_receipt [14:31:30]json_value_free [14:31:30]json_value_free done [14:31:30]process_json_proto returns [14:31:30]Send response to host [14:31:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29239,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [14:31:30]free response buf [14:31:30]execute_script done [14:31:30]execute_script returns [14:31:30]free content buf [14:31:30]Sock 9.Close socket [14:31:30]Sock 9.Thread stoped [14:31:33]OFD Sender: No OFD packet to send [14:31:38]OFD Sender: No OFD packet to send [14:31:43]OFD Sender: No OFD packet to send [14:31:48]OFD Sender: No OFD packet to send [14:31:53]OFD Sender: No OFD packet to send [14:31:58]OFD Sender: No OFD packet to send [14:32:03]OFD Sender: No OFD packet to send [14:32:08]OFD Sender: No OFD packet to send [14:32:13]OFD Sender: No OFD packet to send [14:32:18]OFD Sender: No OFD packet to send [14:32:23]OFD Sender: No OFD packet to send [14:32:28]OFD Sender: No OFD packet to send [14:32:33]OFD Sender: No OFD packet to send [14:32:38]OFD Sender: No OFD packet to send [14:32:43]OFD Sender: No OFD packet to send [14:32:48]OFD Sender: No OFD packet to send [14:32:53]OFD Sender: No OFD packet to send [14:32:59]OFD Sender: No OFD packet to send [14:33:04]OFD Sender: No OFD packet to send [14:33:09]OFD Sender: No OFD packet to send [14:33:14]OFD Sender: No OFD packet to send [14:33:19]OFD Sender: No OFD packet to send [14:33:24]OFD Sender: No OFD packet to send [14:33:29]OFD Sender: No OFD packet to send [14:33:34]OFD Sender: No OFD packet to send [14:33:39]OFD Sender: No OFD packet to send [14:33:44]OFD Sender: No OFD packet to send [14:33:49]OFD Sender: No OFD packet to send [14:33:54]OFD Sender: No OFD packet to send [14:33:57]accept exits with 7 [14:33:57]New connection [14:33:57]New thread 3066785124 created [14:33:57]Thread 3066928484 joined [14:33:57]Waiting for new connection... [14:33:57] Sock 7.Parse request [14:33:57]Sock 7.Check first char [14:33:57]Sock 7.First char is OK [14:33:57]request: POST /json_proto HTTP/1.0 [14:33:57]Method: POST [14:33:57]URL: /json_proto [14:33:57]Method is POST - this is cgi request [14:33:57]url: /json_proto [14:33:57]query_string will be loaded in cgi processing [14:33:57]execute_cgi json_proto POST (null) [14:33:57]execute_cgi path=json_proto method=POST [14:33:57]POST find Content-Length [14:33:57]Host: 172.17.33.3:8080 [14:33:57]Content-Length: 843 [14:33:57]Content-Type: application/json [14:33:57] [14:33:57]POST finish read [14:33:57]Found Content-Length = 843 [14:33:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347624", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.50, "quantity" : 60.000, "sum" : 4350.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 4350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:33:57]execute_script... [14:33: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)347624", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.50, "quantity" : 60.000, "sum" : 4350.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 4350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:33:57]POST & json_proto [14:33:57]process_json_proto [14:33:57]json parsed OK: [14:33:57]protocol is kg_v1.0 [14:33:57]action value=close_receipt [14:33:57]process_action close_receipt [14:33:57]cmd_close_receipt [14:33:57]MH_GetDate [14:33:57]Write to MH i2c: F0 00 00 E5 9C 70 [14:33:57]Write i2c OK [14:33:57]MH_I2C_Read... [14:33:57]Read from MH i2c: F0 [14:33:57]MH_I2C_Read... [14:33:57]Read from MH i2c: F0 09 00 [14:33:57]MH_I2C_Read... [14:33:57]Read from MH i2c: F0 09 00 E5 9C 00 5F E9 1B 66 23 5B 8F 65 B4 [14:33:57]GetLastDocTimeStamp 1713105096 [14:33:57]current date 1713105247 [14:33:57]FM_GetShiftState [14:33:57]SAM_PROTO_GetShiftState [14:33:57]wFMCommunicate request_size=4 [14:33:57]MH_SAM_APDU [14:33:57]CAPDU: 80 13 01 00 [14:33:57]Write to MH i2c: E2 08 00 E6 9C 80 13 01 00 00 00 00 00 FF [14:33:57]Write i2c OK [14:33:57]MH_I2C_Read... [14:33:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:57]Read from MH i2c: E2 [14:33:57]MH_I2C_Read... [14:33:57]Read from MH i2c: E2 0E 00 [14:33:57]MH_I2C_Read... [14:33:57]Read from MH i2c: E2 0E 00 E6 9C 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 AB [14:33:57]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [14:33:57]wFMCommunicate OK [14:33:57]SAM_PROTO_GetShiftState done [14:33:57]FM_GetShiftState done [14:33:57]opened in 1713053951 [14:33:57]opened+sec_in_day 1713140351 [14:33:57]quantity*price = 435000 [14:33:57]sum+1 = 435001 [14:33:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4350.00 НСП 1% : 38.50 НДС 12% : 461.95 Наличными: 0.00 Безнал.: 4350.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 150 14.04.2024 14:34 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 29240 ФПД: 220879658853668 1/tax-web-control/client/api/v1/ticket?date=20240414T143407&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29240&fm=220879658853668&tin=02508201610067®Number=0000138879044617&sum=435000 [14:33:58]StoreToDocumentArchive [14:33:58]shift 116 fd 29240 [14:33:58]save to /storage/0116/doc_00029240 [14:33:58]save last doc name /storage/0116/doc_00029240 to /storage/kkm_last_doc_name [14:33:58]save OK [14:33:58]Clear old archive folders... [14:33:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:33:58]tlvbuf is 011DAB70 [14:33:58]SAM_PROTO_ClearQueue [14:33:58]wFMCommunicate request_size=4 [14:33:58]MH_SAM_APDU [14:33:58]CAPDU: 80 09 00 00 [14:33:58]Write to MH i2c: E2 08 00 F3 9C 80 09 00 00 00 00 00 00 01 [14:33:58]Write i2c OK [14:33:58]MH_I2C_Read... [14:33:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:33:58]Read from MH i2c: E2 [14:33:58]MH_I2C_Read... [14:33:58]Read from MH i2c: E2 03 00 [14:33:58]MH_I2C_Read... [14:33:58]Read from MH i2c: E2 03 00 F3 9C 00 90 00 03 [14:33:58]RAPDU: 90 00 [14:33:58]wFMCommunicate OK [14:33:58]SAM_PROTO_ClearQueue done [14:33:58]KKMCreateOFDPacket [14:33:58]OFDProtocolAddRootSTLVToBuf [14:33:58]FM_MakeSignedData [14:33:58]FM_MakeSignedData [14:33:58]SAM_PROTO_SignData [14:33:58]wFMCommunicate request_size=4 [14:33:58]MH_SAM_APDU [14:33:58]CAPDU: 80 0D 01 02 [14:33:58]Write to MH i2c: E2 08 00 F4 9C 80 0D 01 02 00 00 00 00 09 [14:33:58]Write i2c OK [14:33:58]MH_I2C_Read... [14:33:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:33:58]Read from MH i2c: E2 [14:33:58]MH_I2C_Read... [14:33:58]Read from MH i2c: E2 03 00 [14:33:58]MH_I2C_Read... [14:33:58]Read from MH i2c: E2 03 00 F4 9C 00 90 00 04 [14:33:58]RAPDU: 90 00 [14:33:58]wFMCommunicate OK [14:33:58]wFMCommunicate request_size=255 [14:33:58]MH_SAM_APDU [14:33: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 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 EA 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 38 A3 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 A3 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 B4 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 A3 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 5F E9 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 38 72 00 00 35 04 06 00 C8 [14:33:58]Write to MH i2c: E2 02 01 F5 9C 80 0D 02 02 FA 00 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 EA 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 38 A3 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 A3 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 B4 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 A3 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 5F E9 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 38 72 00 00 35 04 06 00 C8 00 00 14 [14:33:58]Write i2c OK [14:33:58]MH_I2C_Read... [14:33:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:58]Read from MH i2c: E2 [14:33:58]MH_I2C_Read... [14:33:58]Read from MH i2c: E2 03 00 [14:33:58]MH_I2C_Read... [14:33:58]Read from MH i2c: E2 03 00 F5 9C 00 90 00 05 [14:33:58]RAPDU: 90 00 [14:33:58]wFMCommunicate OK [14:33:58]wFMCommunicate request_size=10 [14:33:58]MH_SAM_APDU [14:33:58]CAPDU: 80 0D 02 02 05 E3 8D 9A A5 24 [14:33:58]Write to MH i2c: E2 0D 00 F6 9C 80 0D 02 02 05 00 E3 8D 9A A5 24 00 00 E9 [14:33:58]Write i2c OK [14:33:58]MH_I2C_Read... [14:33:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:58]Read from MH i2c: E2 [14:33:58]MH_I2C_Read... [14:33:58]Read from MH i2c: E2 03 00 [14:33:58]MH_I2C_Read... [14:33:58]Read from MH i2c: E2 03 00 F6 9C 00 90 00 06 [14:33:58]RAPDU: 90 00 [14:33:58]wFMCommunicate OK [14:33:58]wFMCommunicate request_size=4 [14:33:58]MH_SAM_APDU [14:33:58]CAPDU: 80 0D 03 02 [14:33:58]Write to MH i2c: E2 08 00 F7 9C 80 0D 03 02 00 00 00 00 0E [14:33:58]Write i2c OK [14:33:58]MH_I2C_Read... [14:33:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:33:58]Read from MH i2c: E2 [14:33:58]MH_I2C_Read... [14:33:58]Read from MH i2c: E2 0B 00 [14:33:58]MH_I2C_Read... [14:33:58]Read from MH i2c: E2 0B 00 F7 9C 00 B8 96 4B 5F 3F EB 71 8A 90 00 2C [14:33:58]RAPDU: B8 96 4B 5F 3F EB 71 8A 90 00 [14:33:58]wFMCommunicate OK [14:33:58]SAM_PROTO_SignData done [14:33:58]FM_MakeSignedData done [14:33:58]CreateOFDProtocolMessage [14:33:58]wFMCommunicate request_size=4 [14:33:58]MH_SAM_APDU [14:33:58]CAPDU: 80 11 00 00 [14:33:58]Write to MH i2c: E2 08 00 F8 9C 80 11 00 00 00 00 00 00 0E [14:33:58]Write i2c OK [14:33:58]MH_I2C_Read... [14:33:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:58]Read from MH i2c: E2 [14:33:58]MH_I2C_Read... [14:33:58]Read from MH i2c: E2 17 00 [14:33:58]MH_I2C_Read... [14:33:58]Read from MH i2c: E2 17 00 F8 9C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 5D [14:33:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:33:58]wFMCommunicate OK [14:33:58]CreateOFDProtocolMessage done [14:33:58]OFDSenderStorePacket 29240 [14:33:58]StoreOFDPacket docnum=29240 [14:33:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 3D A2 07 01 D1 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 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 EA 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 38 A3 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 A3 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 B4 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 A3 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 5F E9 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 38 72 00 00 35 04 06 00 C8 E3 8D 9A A5 24 B8 96 4B 5F 3F EB 71 8A [14:33:58]CheckFolder [14:33:58]dirname=/storage/ofd_packets [14:33:58]CheckFolder done [14:33:58]ProducePacketName [14:33:58]name=ofd_packets/00029240 [14:33:58]NVStorageSaveData ofd_packets/00029240 [14:33:58]File name is /storage/ofd_packets/00029240 [14:33:58]Write 301 bytes [14:33:58]NVStorageSaveData done [14:33:58]OFDSenderStorePacket done [14:33:58]KKMCreateOFDPacket done [14:33:58]NVStorageSaveData kkm_last_timestamp [14:33:58]File name is /storage/kkm_last_timestamp [14:33:58]Write 4 bytes [14:33:58]NVStorageSaveData done [14:33:58]ExternCall_PrintAddStr [14:33:58]wPrintStart [14:33:58]Write to MH i2c: 01 00 00 F9 9C 95 [14:33:58]Write i2c OK [14:33:58]MH_I2C_Read... [14:33:58]Read from MH i2c: 01 [14:33:58]MH_I2C_Read... [14:33:58]Read from MH i2c: 01 07 00 [14:33:58]MH_I2C_Read... [14:33:58]Read from MH i2c: 01 07 00 F9 9C 00 00 00 00 00 FF 0F AA [14:33:58]RasterBufferAndPrint [14:33:58]line Счет N : (1)347624 [14:33:58]line ИНН: 02508201610067 [14:33:58]line Контрольно-Кассовый Чек [14:33:58]line ПРОДАЖА [14:33:58]line ТРК (МРК, ГНК) : 33 [14:33:58]line Товар: 2710124500 [14:33:58]line Аи-95-К-5 [14:33:58]line 60.000 * 72.50 [14:33:58]line = 4350.00 [14:33:58]line НДС 12% НСП 1% [14:33:58]line > о реализуемом товаре [14:33:58]line ИТОГО: 4350.00 [14:33:58]line НСП 1% : 38.50 [14:33:58]line НДС 12% : 461.95 [14:33:58]line Наличными: 0.00 [14:33:58]line Безнал.: 4350.00 [14:33:58]line Место: АЗС № 108 "Партнер Нефть" [14:33:58]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [14:33:58]line СНО: Общий режим [14:33:58]line Чек 150 14.04.2024 14:34 [14:33:58]line Смена: 116 ФФД: 1.0 [14:33:58]line ЗНМ: 0300000027 [14:33:58]line РНМ: 0000138879044617 [14:33:58]line Версия ККМ: 001 [14:33:58]line Платежная система: АКБ Кыргызстан [14:33:58]line ФМ: 0000000000963154 [14:33:58]line ФД: 29240 [14:33:58]line ФПД: 220879658853668 [14:33:58]line 1/tax-web-control/client/api/v1/ticket?date=20240414T143407&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29240&fm=220879658853668&tin=02508201610067®Number=0000138879044617&sum=435000 [14:33:59]OFD Sender: Processing packet 29240 [packets to send 8, broken 7] [14:33:59]ProducePacketName [14:33:59]name=ofd_packets/00029240 [14:33:59]OFD Sender: To server: pG, [14:33:59]CommunicateWithHost lk.salyk.kg:30040 [14:33:59]ConnectInit lk.salyk.kg [14:33:59]written 0, free lines is 4095 [14:33:59]Connected sock=10 [14:33:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 3D A2 07 01 D1 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 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 EA 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 38 A3 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 A3 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 B4 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 A3 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 5F E9 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 38 72 00 00 35 04 06 00 C8 E3 8D 9A A5 24 B8 96 4B 5F 3F EB 71 8A [14:33:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 E2 1E 47 00 D7 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 39 36 33 31 35 34 10 04 04 00 38 72 00 00 F4 03 04 00 03 94 1B 66 B6 04 01 00 00 04 1D 3C 6C C3 60 35 ED [14:33:59]CommunicateWithHost err = 0 [14:33:59]CheckOFDResponse [14:33:59]1017 (14) - 77093643461234 [14:33:59]1041 (16) - 0000000000963154 [14:33:59]1040 (4) - 29240 [14:33:59]1012 (4) - 14.04.2024 08:29 [14:33:59]1206 (1) - 0 [14:33:59]OFD Sender: Remove packet 29240 [14:33:59]ProducePacketName [14:33:59]name=ofd_packets/00029240 [14:33:59]NVStorageDeleteData [14:33:59]Write to MH i2c: 01 00 00 22 9D BF [14:33:59]Write i2c OK [14:33:59]MH_I2C_Read... [14:33:59]Read from MH i2c: 01 [14:33:59]MH_I2C_Read... [14:33:59]Read from MH i2c: 01 07 00 [14:33:59]MH_I2C_Read... [14:33:59]Read from MH i2c: 01 07 00 22 9D 00 00 00 00 00 EA 0C BC [14:33:59]RasterBufferAndPrint [14:33:59]line [14:33:59]line [14:33:59]line [14:33:59]line [14:33:59]line [14:33:59]written 0, free lines is 3312 [14:33:59]MH_Cut [14:33:59]Write to MH i2c: D1 01 00 29 9D 01 98 [14:33:59]Write i2c OK [14:33:59]MH_I2C_Read... [14:33:59]Read from MH i2c: D1 [14:33:59]MH_I2C_Read... [14:33:59]Read from MH i2c: D1 01 00 [14:33:59]MH_I2C_Read... [14:33:59]Read from MH i2c: D1 01 00 29 9D 00 97 [14:33:59]Write to MH i2c: 01 00 00 2A 9D C7 [14:33:59]Write i2c OK [14:33:59]MH_I2C_Read... [14:33:59]OFD Sender: No OFD packet to send [14:34:00]*** Cut start [14:34:00]*** Partial cut [14:34:00]*** CUTSNS_PIN = 1 [14:34:00]*** CUTSNS_PIN = 0 [14:34:00]*** Brake cut motor [14:34:01]Read from MH i2c: 01 [14:34:01]MH_I2C_Read... [14:34:01]*** Stop cut motor [14:34:01]*** Cut end [14:34:01]Read from MH i2c: 01 07 00 [14:34:01]MH_I2C_Read... [14:34:01]Read from MH i2c: 01 07 00 2A 9D 00 00 00 00 00 FF 0F DC [14:34:01]process_action close_receipt done [14:34:01]requested_data is exist [14:34:01]produce_requested_data [14:34:01]requested_item fm.sn is exist - process it [14:34:01]wFMCommunicate request_size=4 [14:34:01]MH_SAM_APDU [14:34:01]CAPDU: 80 11 00 00 [14:34:01]Write to MH i2c: E2 08 00 2B 9D 80 11 00 00 00 00 00 00 42 [14:34:01]Write i2c OK [14:34:01]MH_I2C_Read... [14:34:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:34:01]Read from MH i2c: E2 [14:34:01]MH_I2C_Read... [14:34:01]Read from MH i2c: E2 17 00 [14:34:01]MH_I2C_Read... [14:34:01]Read from MH i2c: E2 17 00 2B 9D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 91 [14:34:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:34:01]wFMCommunicate OK [14:34:01]requested_item fd.num is exist - process it [14:34:01]SAM_PROTO_GetFieldsCounters [14:34:01]wFMCommunicate request_size=4 [14:34:01]MH_SAM_APDU [14:34:01]CAPDU: 80 13 00 00 [14:34:01]Write to MH i2c: E2 08 00 2C 9D 80 13 00 00 00 00 00 00 45 [14:34:01]Write i2c OK [14:34:01]MH_I2C_Read... [14:34:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:34:01]Read from MH i2c: E2 [14:34:01]MH_I2C_Read... [14:34:01]Read from MH i2c: E2 62 00 [14:34:01]MH_I2C_Read... [14:34:01]Read from MH i2c: E2 62 00 2C 9D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 38 72 00 00 0E 04 04 00 74 00 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 63 [14:34:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 38 72 00 00 0E 04 04 00 74 00 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 [14:34:01]wFMCommunicate OK [14:34:01]SAM_PROTO_GetFieldsCounters done [14:34:01]requested_item shift.num is exist - process it [14:34:01]requested_item shift.opened is exist - process it [14:34:01]req_shift_opened [14:34:01]FM_GetShiftState [14:34:01]SAM_PROTO_GetShiftState [14:34:01]wFMCommunicate request_size=4 [14:34:01]MH_SAM_APDU [14:34:01]CAPDU: 80 13 01 00 [14:34:01]Write to MH i2c: E2 08 00 2D 9D 80 13 01 00 00 00 00 00 47 [14:34:01]Write i2c OK [14:34:01]MH_I2C_Read... [14:34:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:34:01]Read from MH i2c: E2 [14:34:01]MH_I2C_Read... [14:34:01]Read from MH i2c: E2 0E 00 [14:34:01]MH_I2C_Read... [14:34:01]Read from MH i2c: E2 0E 00 2D 9D 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 F3 [14:34:01]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [14:34:01]wFMCommunicate OK [14:34:01]SAM_PROTO_GetShiftState done [14:34:01]FM_GetShiftState done [14:34:01]req_shift_opened done [14:34:01]requested_item shift.open_date is exist - process it [14:34:01]req_shift_open_date [14:34:01]req_shift_open_date done [14:34:01]produce_requested_data done [14:34:01]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29240,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [14:34:01]process_action_free close_receipt [14:34:01]json_value_free [14:34:01]json_value_free done [14:34:01]process_json_proto returns [14:34:01]Send response to host [14:34:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29240,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [14:34:01]free response buf [14:34:01]execute_script done [14:34:01]execute_script returns [14:34:01]free content buf [14:34:01]Sock 7.Close socket [14:34:01]Sock 7.Thread stoped [14:34:05]OFD Sender: No OFD packet to send [14:34:10]OFD Sender: No OFD packet to send [14:34:15]OFD Sender: No OFD packet to send [14:34:20]OFD Sender: No OFD packet to send [14:34:25]OFD Sender: No OFD packet to send [14:34:30]OFD Sender: No OFD packet to send [14:34:35]OFD Sender: No OFD packet to send [14:34:40]OFD Sender: No OFD packet to send [14:34:45]OFD Sender: No OFD packet to send [14:34:50]OFD Sender: No OFD packet to send [14:34:55]OFD Sender: No OFD packet to send [14:35:00]OFD Sender: No OFD packet to send [14:35:05]OFD Sender: No OFD packet to send [14:35:10]OFD Sender: No OFD packet to send [14:35:15]OFD Sender: No OFD packet to send [14:35:20]OFD Sender: No OFD packet to send [14:35:25]OFD Sender: No OFD packet to send [14:35:30]OFD Sender: No OFD packet to send [14:35:35]OFD Sender: No OFD packet to send [14:35:40]OFD Sender: No OFD packet to send [14:35:45]OFD Sender: No OFD packet to send [14:35:50]OFD Sender: No OFD packet to send [14:35:55]OFD Sender: No OFD packet to send [14:36:00]OFD Sender: No OFD packet to send [14:36:05]OFD Sender: No OFD packet to send [14:36:10]OFD Sender: No OFD packet to send [14:36:15]OFD Sender: No OFD packet to send [14:36:20]OFD Sender: No OFD packet to send [14:36:25]OFD Sender: No OFD packet to send [14:36:30]OFD Sender: No OFD packet to send [14:36:35]OFD Sender: No OFD packet to send [14:36:40]OFD Sender: No OFD packet to send [14:36:45]OFD Sender: No OFD packet to send [14:36:50]OFD Sender: No OFD packet to send [14:36:55]OFD Sender: No OFD packet to send [14:37:00]OFD Sender: No OFD packet to send [14:37:05]OFD Sender: No OFD packet to send [14:37:10]OFD Sender: No OFD packet to send [14:37:15]OFD Sender: No OFD packet to send [14:37:20]OFD Sender: No OFD packet to send [14:37:25]OFD Sender: No OFD packet to send [14:37:30]OFD Sender: No OFD packet to send [14:37:35]OFD Sender: No OFD packet to send [14:37:40]OFD Sender: No OFD packet to send [14:37:45]OFD Sender: No OFD packet to send [14:37:50]OFD Sender: No OFD packet to send [14:37:55]OFD Sender: No OFD packet to send [14:38:00]OFD Sender: No OFD packet to send [14:38:05]OFD Sender: No OFD packet to send [14:38:10]OFD Sender: No OFD packet to send [14:38:15]OFD Sender: No OFD packet to send [14:38:20]OFD Sender: No OFD packet to send [14:38:25]OFD Sender: No OFD packet to send [14:38:30]OFD Sender: No OFD packet to send [14:38:35]OFD Sender: No OFD packet to send [14:38:40]OFD Sender: No OFD packet to send [14:38:45]OFD Sender: No OFD packet to send [14:38:50]OFD Sender: No OFD packet to send [14:38:55]OFD Sender: No OFD packet to send [14:39:00]OFD Sender: No OFD packet to send [14:39:05]OFD Sender: No OFD packet to send [14:39:10]OFD Sender: No OFD packet to send [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:39]accept exits with 9 [14:40:39]New connection [14:40:39]New thread 3066928484 created [14:40:39]Thread 3066785124 joined [14:40:39]Waiting for new connection... [14:40:39] Sock 9.Parse request [14:40:39]Sock 9.Check first char [14:40:39]Sock 9.First char is OK [14:40:39]request: POST /json_proto HTTP/1.0 [14:40:39]Method: POST [14:40:39]URL: /json_proto [14:40:39]Method is POST - this is cgi request [14:40:39]url: /json_proto [14:40:39]query_string will be loaded in cgi processing [14:40:39]execute_cgi json_proto POST (null) [14:40:39]execute_cgi path=json_proto method=POST [14:40:39]POST find Content-Length [14:40:39]Host: 172.17.33.3:8080 [14:40:39]Content-Length: 840 [14:40:39]Content-Type: application/json [14:40:39] [14:40:39]POST finish read [14:40:39]Found Content-Length = 840 [14:40:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347625", "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:40:39]execute_script... [14:40: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)347625", "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:40:39]POST & json_proto [14:40:39]process_json_proto [14:40:39]json parsed OK: [14:40:39]protocol is kg_v1.0 [14:40:39]action value=close_receipt [14:40:39]process_action close_receipt [14:40:39]cmd_close_receipt [14:40:39]MH_GetDate [14:40:39]Write to MH i2c: F0 00 00 2E 9D BA [14:40:39]Write i2c OK [14:40:39]MH_I2C_Read... [14:40:39]Read from MH i2c: F0 [14:40:39]MH_I2C_Read... [14:40:39]Read from MH i2c: F0 09 00 [14:40:39]MH_I2C_Read... [14:40:39]Read from MH i2c: F0 09 00 2E 9D 00 F2 EA 1B 66 23 5B 8F 65 92 [14:40:39]GetLastDocTimeStamp 1713105247 [14:40:39]current date 1713105650 [14:40:39]FM_GetShiftState [14:40:39]SAM_PROTO_GetShiftState [14:40:39]wFMCommunicate request_size=4 [14:40:39]MH_SAM_APDU [14:40:39]CAPDU: 80 13 01 00 [14:40:39]Write to MH i2c: E2 08 00 2F 9D 80 13 01 00 00 00 00 00 49 [14:40:39]Write i2c OK [14:40:39]MH_I2C_Read... [14:40:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:40:39]Read from MH i2c: E2 [14:40:39]MH_I2C_Read... [14:40:39]Read from MH i2c: E2 0E 00 [14:40:39]MH_I2C_Read... [14:40:39]Read from MH i2c: E2 0E 00 2F 9D 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 F5 [14:40:39]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [14:40:39]wFMCommunicate OK [14:40:39]SAM_PROTO_GetShiftState done [14:40:39]FM_GetShiftState done [14:40:39]opened in 1713053951 [14:40:39]opened+sec_in_day 1713140351 [14:40:39]quantity*price = 100056 [14:40:39]sum+1 = 100058 [14:40:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.57 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.57 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 151 14.04.2024 14:40 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 29241 ФПД: 194387491213368 1/tax-web-control/client/api/v1/ticket?date=20240414T144050&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29241&fm=194387491213368&tin=02508201610067®Number=0000138879044617&sum=100057 [14:40:40]StoreToDocumentArchive [14:40:40]shift 116 fd 29241 [14:40:40]save to /storage/0116/doc_00029241 [14:40:40]save last doc name /storage/0116/doc_00029241 to /storage/kkm_last_doc_name [14:40:40]save OK [14:40:40]Clear old archive folders... [14:40:40]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:40:40]tlvbuf is 01208840 [14:40:40]SAM_PROTO_ClearQueue [14:40:40]wFMCommunicate request_size=4 [14:40:40]MH_SAM_APDU [14:40:40]CAPDU: 80 09 00 00 [14:40:40]Write to MH i2c: E2 08 00 3C 9D 80 09 00 00 00 00 00 00 4B [14:40:40]Write i2c OK [14:40:40]MH_I2C_Read... [14:40:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:40:40]Read from MH i2c: E2 [14:40:40]MH_I2C_Read... [14:40:40]Read from MH i2c: E2 03 00 [14:40:40]MH_I2C_Read... [14:40:40]Read from MH i2c: E2 03 00 3C 9D 00 90 00 4D [14:40:40]RAPDU: 90 00 [14:40:40]wFMCommunicate OK [14:40:40]SAM_PROTO_ClearQueue done [14:40:40]KKMCreateOFDPacket [14:40:40]OFDProtocolAddRootSTLVToBuf [14:40:40]FM_MakeSignedData [14:40:40]FM_MakeSignedData [14:40:40]SAM_PROTO_SignData [14:40:40]wFMCommunicate request_size=4 [14:40:40]MH_SAM_APDU [14:40:40]CAPDU: 80 0D 01 02 [14:40:40]Write to MH i2c: E2 08 00 3D 9D 80 0D 01 02 00 00 00 00 53 [14:40:40]Write i2c OK [14:40:40]MH_I2C_Read... [14:40:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:40:40]Read from MH i2c: E2 [14:40:40]MH_I2C_Read... [14:40:40]Read from MH i2c: E2 03 00 [14:40:40]MH_I2C_Read... [14:40:40]Read from MH i2c: E2 03 00 3D 9D 00 90 00 4E [14:40:40]RAPDU: 90 00 [14:40:40]wFMCommunicate OK [14:40:40]wFMCommunicate request_size=255 [14:40:40]MH_SAM_APDU [14:40:40]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 97 00 00 00 F4 03 04 00 F2 EA 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 39 72 00 00 35 04 06 00 B0 CB 5D 5C [14:40:40]Write to MH i2c: E2 02 01 3E 9D 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 97 00 00 00 F4 03 04 00 F2 EA 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 39 72 00 00 35 04 06 00 B0 CB 5D 5C 00 00 EB [14:40:41]Write i2c OK [14:40:41]MH_I2C_Read... [14:40:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:40:41]Read from MH i2c: E2 [14:40:41]MH_I2C_Read... [14:40:41]Read from MH i2c: E2 03 00 [14:40:41]MH_I2C_Read... [14:40:41]Read from MH i2c: E2 03 00 3E 9D 00 90 00 4F [14:40:41]RAPDU: 90 00 [14:40:41]wFMCommunicate OK [14:40:41]wFMCommunicate request_size=7 [14:40:41]MH_SAM_APDU [14:40:41]CAPDU: 80 0D 02 02 02 D0 38 [14:40:41]Write to MH i2c: E2 0A 00 3F 9D 80 0D 02 02 02 00 D0 38 00 00 62 [14:40:41]Write i2c OK [14:40:41]MH_I2C_Read... [14:40:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:40:41]Read from MH i2c: E2 [14:40:41]MH_I2C_Read... [14:40:41]Read from MH i2c: E2 03 00 [14:40:41]MH_I2C_Read... [14:40:41]Read from MH i2c: E2 03 00 3F 9D 00 90 00 50 [14:40:41]RAPDU: 90 00 [14:40:41]wFMCommunicate OK [14:40:41]wFMCommunicate request_size=4 [14:40:41]MH_SAM_APDU [14:40:41]CAPDU: 80 0D 03 02 [14:40:41]Write to MH i2c: E2 08 00 40 9D 80 0D 03 02 00 00 00 00 58 [14:40:41]Write i2c OK [14:40:41]MH_I2C_Read... [14:40:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:40:41]Read from MH i2c: E2 [14:40:41]MH_I2C_Read... [14:40:41]Read from MH i2c: E2 0B 00 [14:40:41]MH_I2C_Read... [14:40:41]Read from MH i2c: E2 0B 00 40 9D 00 E3 E2 7D F9 DE 3C D9 12 90 00 99 [14:40:41]RAPDU: E3 E2 7D F9 DE 3C D9 12 90 00 [14:40:41]wFMCommunicate OK [14:40:41]SAM_PROTO_SignData done [14:40:41]FM_MakeSignedData done [14:40:41]CreateOFDProtocolMessage [14:40:41]wFMCommunicate request_size=4 [14:40:41]MH_SAM_APDU [14:40:41]CAPDU: 80 11 00 00 [14:40:41]Write to MH i2c: E2 08 00 41 9D 80 11 00 00 00 00 00 00 58 [14:40:41]Write i2c OK [14:40:41]MH_I2C_Read... [14:40:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:40:41]Read from MH i2c: E2 [14:40:41]MH_I2C_Read... [14:40:41]Read from MH i2c: E2 17 00 [14:40:41]MH_I2C_Read... [14:40:41]Read from MH i2c: E2 17 00 41 9D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A7 [14:40:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:40:41]wFMCommunicate OK [14:40:41]CreateOFDProtocolMessage done [14:40:41]OFDSenderStorePacket 29241 [14:40:41]StoreOFDPacket docnum=29241 [14:40:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 83 75 04 01 5E 9D 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 97 00 00 00 F4 03 04 00 F2 EA 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 39 72 00 00 35 04 06 00 B0 CB 5D 5C D0 38 E3 E2 7D F9 DE 3C D9 12 [14:40:41]CheckFolder [14:40:41]dirname=/storage/ofd_packets [14:40:41]CheckFolder done [14:40:41]ProducePacketName [14:40:41]name=ofd_packets/00029241 [14:40:41]NVStorageSaveData ofd_packets/00029241 [14:40:41]File name is /storage/ofd_packets/00029241 [14:40:41]Write 298 bytes [14:40:41]NVStorageSaveData done [14:40:41]OFDSenderStorePacket done [14:40:41]KKMCreateOFDPacket done [14:40:41]NVStorageSaveData kkm_last_timestamp [14:40:41]File name is /storage/kkm_last_timestamp [14:40:41]Write 4 bytes [14:40:41]NVStorageSaveData done [14:40:41]ExternCall_PrintAddStr [14:40:41]wPrintStart [14:40:41]Write to MH i2c: 01 00 00 42 9D DF [14:40:41]Write i2c OK [14:40:41]MH_I2C_Read... [14:40:41]Read from MH i2c: 01 [14:40:41]MH_I2C_Read... [14:40:41]Read from MH i2c: 01 07 00 [14:40:41]MH_I2C_Read... [14:40:41]Read from MH i2c: 01 07 00 42 9D 00 00 00 00 00 FF 0F F4 [14:40:41]RasterBufferAndPrint [14:40:41]line Счет N : (1)347625 [14:40:41]line ИНН: 02508201610067 [14:40:41]line Контрольно-Кассовый Чек [14:40:41]line ПРОДАЖА [14:40:41]line ТРК (МРК, ГНК) : 51 [14:40:41]line Товар: 2710194210 [14:40:41]line ДТ-К-5 [14:40:41]line 13.820 * 72.40 [14:40:41]line = 1000.57 [14:40:41]line НДС 12% НСП 1% [14:40:41]line > о реализуемом товаре [14:40:41]line ИТОГО: 1000.57 [14:40:41]line НСП 1% : 8.85 [14:40:41]line НДС 12% : 106.25 [14:40:41]line Наличными: 0.00 [14:40:41]line Безнал.: 1000.57 [14:40:41]line Место: АЗС № 108 "Партнер Нефть" [14:40:41]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [14:40:41]line СНО: Общий режим [14:40:41]line Чек 151 14.04.2024 14:40 [14:40:41]line Смена: 116 ФФД: 1.0 [14:40:41]line ЗНМ: 0300000027 [14:40:41]line РНМ: 0000138879044617 [14:40:41]line Версия ККМ: 001 [14:40:41]line Платежная система: АКБ Кыргызстан [14:40:41]line ФМ: 0000000000963154 [14:40:41]line ФД: 29241 [14:40:41]line ФПД: 194387491213368 [14:40:41]line 1/tax-web-control/client/api/v1/ticket?date=20240414T144050&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29241&fm=194387491213368&tin=02508201610067®Number=0000138879044617&sum=100057 [14:40:41]OFD Sender: Processing packet 29241 [packets to send 8, broken 7] [14:40:41]ProducePacketName [14:40:41]name=ofd_packets/00029241 [14:40:41]OFD Sender: To server: pG, [14:40:41]CommunicateWithHost lk.salyk.kg:30040 [14:40:41]ConnectInit lk.salyk.kg [14:40:41]written 0, free lines is 4095 [14:40:41]Connected sock=10 [14:40:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 83 75 04 01 5E 9D 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 97 00 00 00 F4 03 04 00 F2 EA 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 39 72 00 00 35 04 06 00 B0 CB 5D 5C D0 38 E3 E2 7D F9 DE 3C D9 12 [14:40:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 2F 26 47 00 45 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 39 36 33 31 35 34 10 04 04 00 39 72 00 00 F4 03 04 00 96 95 1B 66 B6 04 01 00 00 71 07 06 92 67 03 E6 7A [14:40:42]CommunicateWithHost err = 0 [14:40:42]CheckOFDResponse [14:40:42]1017 (14) - 77093643461234 [14:40:42]1041 (16) - 0000000000963154 [14:40:42]1040 (4) - 29241 [14:40:42]1012 (4) - 14.04.2024 08:36 [14:40:42]1206 (1) - 0 [14:40:42]OFD Sender: Remove packet 29241 [14:40:42]ProducePacketName [14:40:42]name=ofd_packets/00029241 [14:40:42]NVStorageDeleteData [14:40:42]Write to MH i2c: 01 00 00 6B 9D 08 [14:40:42]Write i2c OK [14:40:42]MH_I2C_Read... [14:40:42]Read from MH i2c: 01 [14:40:42]MH_I2C_Read... [14:40:42]Read from MH i2c: 01 07 00 [14:40:42]MH_I2C_Read... [14:40:42]Read from MH i2c: 01 07 00 6B 9D 00 00 00 00 00 DB 0C F6 [14:40:42]RasterBufferAndPrint [14:40:42]line [14:40:42]line [14:40:42]line [14:40:42]line [14:40:42]line [14:40:42]written 0, free lines is 3298 [14:40:42]MH_Cut [14:40:42]Write to MH i2c: D1 01 00 72 9D 01 E1 [14:40:42]Write i2c OK [14:40:42]MH_I2C_Read... [14:40:42]Read from MH i2c: D1 [14:40:42]MH_I2C_Read... [14:40:42]Read from MH i2c: D1 01 00 [14:40:42]MH_I2C_Read... [14:40:42]Read from MH i2c: D1 01 00 72 9D 00 E0 [14:40:42]Write to MH i2c: 01 00 00 73 9D 10 [14:40:42]Write i2c OK [14:40:42]MH_I2C_Read... [14:40:42]OFD Sender: No OFD packet to send [14:40:42]*** Cut start [14:40:42]*** Partial cut [14:40:42]*** CUTSNS_PIN = 1 [14:40:43]*** CUTSNS_PIN = 0 [14:40:43]*** Brake cut motor [14:40:43]Read from MH i2c: 01 [14:40:43]MH_I2C_Read... [14:40:43]*** Stop cut motor [14:40:43]*** Cut end [14:40:43]Read from MH i2c: 01 07 00 [14:40:43]MH_I2C_Read... [14:40:43]Read from MH i2c: 01 07 00 73 9D 00 00 00 00 00 FF 0F 25 [14:40:43]process_action close_receipt done [14:40:43]requested_data is exist [14:40:43]produce_requested_data [14:40:43]requested_item fm.sn is exist - process it [14:40:43]wFMCommunicate request_size=4 [14:40:43]MH_SAM_APDU [14:40:43]CAPDU: 80 11 00 00 [14:40:43]Write to MH i2c: E2 08 00 74 9D 80 11 00 00 00 00 00 00 8B [14:40:43]Write i2c OK [14:40:43]MH_I2C_Read... [14:40:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:40:43]Read from MH i2c: E2 [14:40:43]MH_I2C_Read... [14:40:43]Read from MH i2c: E2 17 00 [14:40:43]MH_I2C_Read... [14:40:43]Read from MH i2c: E2 17 00 74 9D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 DA [14:40:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:40:43]wFMCommunicate OK [14:40:43]requested_item fd.num is exist - process it [14:40:43]SAM_PROTO_GetFieldsCounters [14:40:43]wFMCommunicate request_size=4 [14:40:43]MH_SAM_APDU [14:40:43]CAPDU: 80 13 00 00 [14:40:43]Write to MH i2c: E2 08 00 75 9D 80 13 00 00 00 00 00 00 8E [14:40:43]Write i2c OK [14:40:43]MH_I2C_Read... [14:40:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:40:43]Read from MH i2c: E2 [14:40:43]MH_I2C_Read... [14:40:43]Read from MH i2c: E2 62 00 [14:40:43]MH_I2C_Read... [14:40:43]Read from MH i2c: E2 62 00 75 9D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 39 72 00 00 0E 04 04 00 74 00 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 B0 [14:40:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 39 72 00 00 0E 04 04 00 74 00 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 [14:40:43]wFMCommunicate OK [14:40:43]SAM_PROTO_GetFieldsCounters done [14:40:43]requested_item shift.num is exist - process it [14:40:43]requested_item shift.opened is exist - process it [14:40:43]req_shift_opened [14:40:43]FM_GetShiftState [14:40:43]SAM_PROTO_GetShiftState [14:40:43]wFMCommunicate request_size=4 [14:40:43]MH_SAM_APDU [14:40:43]CAPDU: 80 13 01 00 [14:40:43]Write to MH i2c: E2 08 00 76 9D 80 13 01 00 00 00 00 00 90 [14:40:43]Write i2c OK [14:40:43]MH_I2C_Read... [14:40:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:40:43]Read from MH i2c: E2 [14:40:43]MH_I2C_Read... [14:40:43]Read from MH i2c: E2 0E 00 [14:40:43]MH_I2C_Read... [14:40:43]Read from MH i2c: E2 0E 00 76 9D 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 3C [14:40:43]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [14:40:43]wFMCommunicate OK [14:40:43]SAM_PROTO_GetShiftState done [14:40:43]FM_GetShiftState done [14:40:43]req_shift_opened done [14:40:43]requested_item shift.open_date is exist - process it [14:40:43]req_shift_open_date [14:40:43]req_shift_open_date done [14:40:43]produce_requested_data done [14:40:43]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29241,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [14:40:43]process_action_free close_receipt [14:40:43]json_value_free [14:40:43]json_value_free done [14:40:43]process_json_proto returns [14:40:43]Send response to host [14:40:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29241,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [14:40:43]free response buf [14:40:43]execute_script done [14:40:43]execute_script returns [14:40:43]free content buf [14:40:43]Sock 9.Close socket [14:40:43]Sock 9.Thread stoped [14:40:47]OFD Sender: No OFD packet to send [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:22]OFD Sender: No OFD packet to send [14:41:27]OFD Sender: No OFD packet to send [14:41:32]OFD Sender: No OFD packet to send [14:41:37]OFD Sender: No OFD packet to send [14:41:42]OFD Sender: No OFD packet to send [14:41:47]OFD Sender: No OFD packet to send [14:41:52]OFD Sender: No OFD packet to send [14:41:57]OFD Sender: No OFD packet to send [14:42:02]OFD Sender: No OFD packet to send [14:42:05]accept exits with 7 [14:42:05]New connection [14:42:05]New thread 3066785124 created [14:42:05]Thread 3066928484 joined [14:42:05]Waiting for new connection... [14:42:05] Sock 7.Parse request [14:42:05]Sock 7.Check first char [14:42:05]Sock 7.First char is OK [14:42:05]request: POST /json_proto HTTP/1.0 [14:42:05]Method: POST [14:42:05]URL: /json_proto [14:42:05]Method is POST - this is cgi request [14:42:05]url: /json_proto [14:42:05]query_string will be loaded in cgi processing [14:42:05]execute_cgi json_proto POST (null) [14:42:05]execute_cgi path=json_proto method=POST [14:42:05]POST find Content-Length [14:42:05]Host: 172.17.33.3:8080 [14:42:05]Content-Length: 677 [14:42:05]Content-Type: application/json [14:42:05] [14:42:05]POST finish read [14:42:05]Found Content-Length = 677 [14:42:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347626", "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" ] } } [14:42:05]execute_script... [14:42: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)347626", "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" ] } } [14:42:05]POST & json_proto [14:42:05]process_json_proto [14:42:05]json parsed OK: [14:42:05]protocol is kg_v1.0 [14:42:05]action value=close_receipt [14:42:05]process_action close_receipt [14:42:05]cmd_close_receipt [14:42:05]MH_GetDate [14:42:05]Write to MH i2c: F0 00 00 77 9D 03 [14:42:05]Write i2c OK [14:42:05]MH_I2C_Read... [14:42:05]Read from MH i2c: F0 [14:42:05]MH_I2C_Read... [14:42:05]Read from MH i2c: F0 09 00 [14:42:05]MH_I2C_Read... [14:42:05]Read from MH i2c: F0 09 00 77 9D 00 47 EB 1B 66 23 5B 8F 65 31 [14:42:05]GetLastDocTimeStamp 1713105650 [14:42:05]current date 1713105735 [14:42:05]FM_GetShiftState [14:42:05]SAM_PROTO_GetShiftState [14:42:05]wFMCommunicate request_size=4 [14:42:05]MH_SAM_APDU [14:42:05]CAPDU: 80 13 01 00 [14:42:05]Write to MH i2c: E2 08 00 78 9D 80 13 01 00 00 00 00 00 92 [14:42:05]Write i2c OK [14:42:05]MH_I2C_Read... [14:42:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:05]Read from MH i2c: E2 [14:42:05]MH_I2C_Read... [14:42:05]Read from MH i2c: E2 0E 00 [14:42:05]MH_I2C_Read... [14:42:05]Read from MH i2c: E2 0E 00 78 9D 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 3E [14:42:05]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [14:42:05]wFMCommunicate OK [14:42:05]SAM_PROTO_GetShiftState done [14:42:05]FM_GetShiftState done [14:42:05]opened in 1713053951 [14:42:05]opened+sec_in_day 1713140351 [14:42:05]quantity*price = 45010 [14:42:05]sum+1 = 45011 [14:42:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 450.00 Внесено: 450.00 СДАЧА: 0.00 НСП 1% : 3.98 НДС 12% : 47.80 Наличными: 450.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 152 14.04.2024 14:42 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29242 ФПД: 30840368946562 1/tax-web-control/client/api/v1/ticket?date=20240414T144215&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29242&fm=30840368946562&tin=02508201610067®Number=0000138879044617&sum=45000 [14:42:06]StoreToDocumentArchive [14:42:06]shift 116 fd 29242 [14:42:06]save to /storage/0116/doc_00029242 [14:42:06]save last doc name /storage/0116/doc_00029242 to /storage/kkm_last_doc_name [14:42:06]save OK [14:42:06]Clear old archive folders... [14:42:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:42:06]tlvbuf is 012086F0 [14:42:06]SAM_PROTO_ClearQueue [14:42:06]wFMCommunicate request_size=4 [14:42:06]MH_SAM_APDU [14:42:06]CAPDU: 80 09 00 00 [14:42:06]Write to MH i2c: E2 08 00 85 9D 80 09 00 00 00 00 00 00 94 [14:42:06]Write i2c OK [14:42:06]MH_I2C_Read... [14:42:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:42:06]Read from MH i2c: E2 [14:42:06]MH_I2C_Read... [14:42:06]Read from MH i2c: E2 03 00 [14:42:06]MH_I2C_Read... [14:42:06]Read from MH i2c: E2 03 00 85 9D 00 90 00 96 [14:42:06]RAPDU: 90 00 [14:42:06]wFMCommunicate OK [14:42:06]SAM_PROTO_ClearQueue done [14:42:06]KKMCreateOFDPacket [14:42:06]OFDProtocolAddRootSTLVToBuf [14:42:06]FM_MakeSignedData [14:42:06]FM_MakeSignedData [14:42:06]SAM_PROTO_SignData [14:42:06]wFMCommunicate request_size=4 [14:42:06]MH_SAM_APDU [14:42:06]CAPDU: 80 0D 01 02 [14:42:06]Write to MH i2c: E2 08 00 86 9D 80 0D 01 02 00 00 00 00 9C [14:42:06]Write i2c OK [14:42:06]MH_I2C_Read... [14:42:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:42:06]Read from MH i2c: E2 [14:42:06]MH_I2C_Read... [14:42:06]Read from MH i2c: E2 03 00 [14:42:06]MH_I2C_Read... [14:42:06]Read from MH i2c: E2 03 00 86 9D 00 90 00 97 [14:42:06]RAPDU: 90 00 [14:42:06]wFMCommunicate OK [14:42:06]wFMCommunicate request_size=255 [14:42:06]MH_SAM_APDU [14:42: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 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 98 00 00 00 F4 03 04 00 47 EB 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3A 72 00 00 35 04 06 00 1C [14:42:06]Write to MH i2c: E2 02 01 87 9D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 98 00 00 00 F4 03 04 00 47 EB 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3A 72 00 00 35 04 06 00 1C 00 00 B0 [14:42:06]Write i2c OK [14:42:06]MH_I2C_Read... [14:42:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:06]Read from MH i2c: E2 [14:42:06]MH_I2C_Read... [14:42:06]Read from MH i2c: E2 03 00 [14:42:06]MH_I2C_Read... [14:42:06]Read from MH i2c: E2 03 00 87 9D 00 90 00 98 [14:42:06]RAPDU: 90 00 [14:42:06]wFMCommunicate OK [14:42:06]wFMCommunicate request_size=10 [14:42:06]MH_SAM_APDU [14:42:06]CAPDU: 80 0D 02 02 05 0C 95 3C 5D 82 [14:42:06]Write to MH i2c: E2 0D 00 88 9D 80 0D 02 02 05 00 0C 95 3C 5D 82 00 00 65 [14:42:06]Write i2c OK [14:42:06]MH_I2C_Read... [14:42:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:06]Read from MH i2c: E2 [14:42:06]MH_I2C_Read... [14:42:06]Read from MH i2c: E2 03 00 [14:42:06]MH_I2C_Read... [14:42:06]Read from MH i2c: E2 03 00 88 9D 00 90 00 99 [14:42:06]RAPDU: 90 00 [14:42:06]wFMCommunicate OK [14:42:06]wFMCommunicate request_size=4 [14:42:06]MH_SAM_APDU [14:42:06]CAPDU: 80 0D 03 02 [14:42:06]Write to MH i2c: E2 08 00 89 9D 80 0D 03 02 00 00 00 00 A1 [14:42:06]Write i2c OK [14:42:06]MH_I2C_Read... [14:42:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:42:06]Read from MH i2c: E2 [14:42:06]MH_I2C_Read... [14:42:06]Read from MH i2c: E2 0B 00 [14:42:06]MH_I2C_Read... [14:42:06]Read from MH i2c: E2 0B 00 89 9D 00 A8 EE AF C9 3A 5D E2 9E 90 00 C7 [14:42:06]RAPDU: A8 EE AF C9 3A 5D E2 9E 90 00 [14:42:06]wFMCommunicate OK [14:42:06]SAM_PROTO_SignData done [14:42:06]FM_MakeSignedData done [14:42:06]CreateOFDProtocolMessage [14:42:06]wFMCommunicate request_size=4 [14:42:06]MH_SAM_APDU [14:42:06]CAPDU: 80 11 00 00 [14:42:06]Write to MH i2c: E2 08 00 8A 9D 80 11 00 00 00 00 00 00 A1 [14:42:06]Write i2c OK [14:42:06]MH_I2C_Read... [14:42:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:06]Read from MH i2c: E2 [14:42:06]MH_I2C_Read... [14:42:06]Read from MH i2c: E2 17 00 [14:42:06]MH_I2C_Read... [14:42:06]Read from MH i2c: E2 17 00 8A 9D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F0 [14:42:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:42:06]wFMCommunicate OK [14:42:06]CreateOFDProtocolMessage done [14:42:06]OFDSenderStorePacket 29242 [14:42:06]StoreOFDPacket docnum=29242 [14:42:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 C3 BB 07 01 D2 92 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 98 00 00 00 F4 03 04 00 47 EB 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3A 72 00 00 35 04 06 00 1C 0C 95 3C 5D 82 A8 EE AF C9 3A 5D E2 9E [14:42:06]CheckFolder [14:42:06]dirname=/storage/ofd_packets [14:42:06]CheckFolder done [14:42:06]ProducePacketName [14:42:06]name=ofd_packets/00029242 [14:42:06]NVStorageSaveData ofd_packets/00029242 [14:42:06]File name is /storage/ofd_packets/00029242 [14:42:06]Write 301 bytes [14:42:06]NVStorageSaveData done [14:42:06]OFDSenderStorePacket done [14:42:06]KKMCreateOFDPacket done [14:42:06]NVStorageSaveData kkm_last_timestamp [14:42:06]File name is /storage/kkm_last_timestamp [14:42:06]Write 4 bytes [14:42:06]NVStorageSaveData done [14:42:06]ExternCall_PrintAddStr [14:42:06]wPrintStart [14:42:06]Write to MH i2c: 01 00 00 8B 9D 28 [14:42:06]Write i2c OK [14:42:06]MH_I2C_Read... [14:42:06]Read from MH i2c: 01 [14:42:06]MH_I2C_Read... [14:42:06]Read from MH i2c: 01 07 00 [14:42:06]MH_I2C_Read... [14:42:06]Read from MH i2c: 01 07 00 8B 9D 00 00 00 00 00 FF 0F 3D [14:42:06]RasterBufferAndPrint [14:42:06]line Счет N : (1)347626 [14:42:06]line ИНН: 02508201610067 [14:42:06]line Контрольно-Кассовый Чек [14:42:06]line ПРОДАЖА [14:42:06]line ТРК (МРК, ГНК) : 32 [14:42:06]line Товар: 2710124130 [14:42:06]line Аи-92-К-5 [14:42:06]line 7.000 * 64.30 [14:42:06]line = 450.10 [14:42:06]line НДС 12% НСП 1% [14:42:06]line > о реализуемом товаре [14:42:06]line ОКРУГЛЕНИЕ: -0.10 [14:42:06]line ИТОГО: 450.00 [14:42:06]line Внесено: 450.00 [14:42:06]line СДАЧА: 0.00 [14:42:06]line НСП 1% : 3.98 [14:42:06]line НДС 12% : 47.80 [14:42:06]line Наличными: 450.00 [14:42:06]line Безнал.: 0.00 [14:42:06]line Место: АЗС № 108 "Партнер Нефть" [14:42:06]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [14:42:06]line СНО: Общий режим [14:42:06]line Чек 152 14.04.2024 14:42 [14:42:06]line Смена: 116 ФФД: 1.0 [14:42:06]line ЗНМ: 0300000027 [14:42:06]line РНМ: 0000138879044617 [14:42:06]line Версия ККМ: 001 [14:42:06]line ФМ: 0000000000963154 [14:42:06]line ФД: 29242 [14:42:06]line ФПД: 30840368946562 [14:42:06]line 1/tax-web-control/client/api/v1/ticket?date=20240414T144215&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29242&fm=30840368946562&tin=02508201610067®Number=0000138879044617&sum=45000 [14:42:07]OFD Sender: Processing packet 29242 [packets to send 8, broken 7] [14:42:07]ProducePacketName [14:42:07]name=ofd_packets/00029242 [14:42:07]OFD Sender: To server: pG, [14:42:07]CommunicateWithHost lk.salyk.kg:30040 [14:42:07]ConnectInit lk.salyk.kg [14:42:07]written 0, free lines is 4095 [14:42:07]Connected sock=11 [14:42:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 C3 BB 07 01 D2 92 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 98 00 00 00 F4 03 04 00 47 EB 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3A 72 00 00 35 04 06 00 1C 0C 95 3C 5D 82 A8 EE AF C9 3A 5D E2 9E [14:42:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 A3 7D 47 00 E9 F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3A 72 00 00 F4 03 04 00 EB 95 1B 66 B6 04 01 00 00 0A 8C 2A 43 CC 5A 54 26 [14:42:07]CommunicateWithHost err = 0 [14:42:07]CheckOFDResponse [14:42:07]1017 (14) - 77093643461234 [14:42:07]1041 (16) - 0000000000963154 [14:42:07]1040 (4) - 29242 [14:42:07]1012 (4) - 14.04.2024 08:38 [14:42:07]1206 (1) - 0 [14:42:07]OFD Sender: Remove packet 29242 [14:42:07]ProducePacketName [14:42:07]name=ofd_packets/00029242 [14:42:07]NVStorageDeleteData [14:42:07]Write to MH i2c: 01 00 00 B5 9D 52 [14:42:07]Write i2c OK [14:42:07]MH_I2C_Read... [14:42:07]Read from MH i2c: 01 [14:42:07]MH_I2C_Read... [14:42:07]Read from MH i2c: 01 07 00 [14:42:07]MH_I2C_Read... [14:42:07]Read from MH i2c: 01 07 00 B5 9D 00 00 00 00 00 C2 0C 27 [14:42:07]RasterBufferAndPrint [14:42:07]line [14:42:07]line [14:42:07]line [14:42:07]line [14:42:07]line [14:42:07]written 0, free lines is 3270 [14:42:07]MH_Cut [14:42:07]Write to MH i2c: D1 01 00 BC 9D 01 2B [14:42:07]Write i2c OK [14:42:07]MH_I2C_Read... [14:42:07]Read from MH i2c: D1 [14:42:07]MH_I2C_Read... [14:42:07]Read from MH i2c: D1 01 00 [14:42:07]MH_I2C_Read... [14:42:07]Read from MH i2c: D1 01 00 BC 9D 00 2A [14:42:07]Write to MH i2c: 01 00 00 BD 9D 5A [14:42:07]Write i2c OK [14:42:07]MH_I2C_Read... [14:42:07]OFD Sender: No OFD packet to send [14:42:08]*** Cut start [14:42:08]*** Partial cut [14:42:08]*** CUTSNS_PIN = 1 [14:42:08]*** CUTSNS_PIN = 0 [14:42:08]*** Brake cut motor [14:42:09]Read from MH i2c: 01 [14:42:09]MH_I2C_Read... [14:42:09]*** Stop cut motor [14:42:09]*** Cut end [14:42:09]Read from MH i2c: 01 07 00 [14:42:09]MH_I2C_Read... [14:42:09]Read from MH i2c: 01 07 00 BD 9D 00 00 00 00 00 FF 0F 6F [14:42:09]process_action close_receipt done [14:42:09]requested_data is exist [14:42:09]produce_requested_data [14:42:09]requested_item fm.sn is exist - process it [14:42:09]wFMCommunicate request_size=4 [14:42:09]MH_SAM_APDU [14:42:09]CAPDU: 80 11 00 00 [14:42:09]Write to MH i2c: E2 08 00 BE 9D 80 11 00 00 00 00 00 00 D5 [14:42:09]Write i2c OK [14:42:09]MH_I2C_Read... [14:42:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:09]Read from MH i2c: E2 [14:42:09]MH_I2C_Read... [14:42:09]Read from MH i2c: E2 17 00 [14:42:09]MH_I2C_Read... [14:42:09]Read from MH i2c: E2 17 00 BE 9D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 24 [14:42:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:42:09]wFMCommunicate OK [14:42:09]requested_item fd.num is exist - process it [14:42:09]SAM_PROTO_GetFieldsCounters [14:42:09]wFMCommunicate request_size=4 [14:42:09]MH_SAM_APDU [14:42:09]CAPDU: 80 13 00 00 [14:42:09]Write to MH i2c: E2 08 00 BF 9D 80 13 00 00 00 00 00 00 D8 [14:42:09]Write i2c OK [14:42:09]MH_I2C_Read... [14:42:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:42:09]Read from MH i2c: E2 [14:42:09]MH_I2C_Read... [14:42:09]Read from MH i2c: E2 62 00 [14:42:09]MH_I2C_Read... [14:42:09]Read from MH i2c: E2 62 00 BF 9D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 3A 72 00 00 0E 04 04 00 74 00 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 FE [14:42:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 3A 72 00 00 0E 04 04 00 74 00 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 [14:42:09]wFMCommunicate OK [14:42:09]SAM_PROTO_GetFieldsCounters done [14:42:09]requested_item shift.num is exist - process it [14:42:09]requested_item shift.opened is exist - process it [14:42:09]req_shift_opened [14:42:09]FM_GetShiftState [14:42:09]SAM_PROTO_GetShiftState [14:42:09]wFMCommunicate request_size=4 [14:42:09]MH_SAM_APDU [14:42:09]CAPDU: 80 13 01 00 [14:42:09]Write to MH i2c: E2 08 00 C0 9D 80 13 01 00 00 00 00 00 DA [14:42:09]Write i2c OK [14:42:09]MH_I2C_Read... [14:42:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:09]Read from MH i2c: E2 [14:42:09]MH_I2C_Read... [14:42:09]Read from MH i2c: E2 0E 00 [14:42:09]MH_I2C_Read... [14:42:09]Read from MH i2c: E2 0E 00 C0 9D 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 86 [14:42:09]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [14:42:09]wFMCommunicate OK [14:42:09]SAM_PROTO_GetShiftState done [14:42:09]FM_GetShiftState done [14:42:09]req_shift_opened done [14:42:09]requested_item shift.open_date is exist - process it [14:42:09]req_shift_open_date [14:42:09]req_shift_open_date done [14:42:09]produce_requested_data done [14:42:09]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29242,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [14:42:09]process_action_free close_receipt [14:42:09]json_value_free [14:42:09]json_value_free done [14:42:09]process_json_proto returns [14:42:09]Send response to host [14:42:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29242,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [14:42:09]free response buf [14:42:09]execute_script done [14:42:09]execute_script returns [14:42:09]free content buf [14:42:09]Sock 7.Close socket [14:42:09]Sock 7.Thread stoped [14:42:12]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:58]OFD Sender: No OFD packet to send [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:33]OFD Sender: No OFD packet to send [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:23]OFD Sender: No OFD packet to send [14:45:28]OFD Sender: No OFD packet to send [14:45:33]OFD Sender: No OFD packet to send [14:45:38]OFD Sender: No OFD packet to send [14:45:39]accept exits with 9 [14:45:39]New connection [14:45:39]New thread 3066928484 created [14:45:39]Thread 3066785124 joined [14:45:39]Waiting for new connection... [14:45:39] Sock 9.Parse request [14:45:39]Sock 9.Check first char [14:45:39]Sock 9.First char is OK [14:45:39]request: POST /json_proto HTTP/1.0 [14:45:39]Method: POST [14:45:39]URL: /json_proto [14:45:39]Method is POST - this is cgi request [14:45:39]url: /json_proto [14:45:39]query_string will be loaded in cgi processing [14:45:39]execute_cgi json_proto POST (null) [14:45:39]execute_cgi path=json_proto method=POST [14:45:39]POST find Content-Length [14:45:39]Host: 172.17.33.3:8080 [14:45:39]Content-Length: 805 [14:45:39]Content-Type: application/json [14:45:39] [14:45:39]POST finish read [14:45:39]Found Content-Length = 805 [14:45:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347627", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 30.390, "sum" : 2200.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2200.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:45:39]execute_script... [14:45: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)347627", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 30.390, "sum" : 2200.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2200.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:45:39]POST & json_proto [14:45:39]process_json_proto [14:45:39]json parsed OK: [14:45:39]protocol is kg_v1.0 [14:45:39]action value=close_receipt [14:45:39]process_action close_receipt [14:45:39]cmd_close_receipt [14:45:39]MH_GetDate [14:45:39]Write to MH i2c: F0 00 00 C1 9D 4D [14:45:39]Write i2c OK [14:45:39]MH_I2C_Read... [14:45:39]Read from MH i2c: F0 [14:45:39]MH_I2C_Read... [14:45:39]Read from MH i2c: F0 09 00 [14:45:39]MH_I2C_Read... [14:45:39]Read from MH i2c: F0 09 00 C1 9D 00 1E EC 1B 66 23 5B 8F 65 53 [14:45:40]GetLastDocTimeStamp 1713105735 [14:45:40]current date 1713105950 [14:45:40]FM_GetShiftState [14:45:40]SAM_PROTO_GetShiftState [14:45:40]wFMCommunicate request_size=4 [14:45:40]MH_SAM_APDU [14:45:40]CAPDU: 80 13 01 00 [14:45:40]Write to MH i2c: E2 08 00 C2 9D 80 13 01 00 00 00 00 00 DC [14:45:40]Write i2c OK [14:45:40]MH_I2C_Read... [14:45:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:45:40]Read from MH i2c: E2 [14:45:40]MH_I2C_Read... [14:45:40]Read from MH i2c: E2 0E 00 [14:45:40]MH_I2C_Read... [14:45:40]Read from MH i2c: E2 0E 00 C2 9D 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 88 [14:45:40]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [14:45:40]wFMCommunicate OK [14:45:40]SAM_PROTO_GetShiftState done [14:45:40]FM_GetShiftState done [14:45:40]opened in 1713053951 [14:45:40]opened+sec_in_day 1713140351 [14:45:40]quantity*price = 220023 [14:45:40]sum+1 = 220025 [14:45:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2200.24 НСП 1% : 19.47 НДС 12% : 233.65 Наличными: 0.00 Безнал.: 2200.24 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 153 14.04.2024 14:45 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29243 ФПД: 210586422080789 1/tax-web-control/client/api/v1/ticket?date=20240414T144550&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29243&fm=210586422080789&tin=02508201610067®Number=0000138879044617&sum=220024 [14:45:41]StoreToDocumentArchive [14:45:41]shift 116 fd 29243 [14:45:41]save to /storage/0116/doc_00029243 [14:45:41]save last doc name /storage/0116/doc_00029243 to /storage/kkm_last_doc_name [14:45:41]save OK [14:45:41]Clear old archive folders... [14:45:41]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:45:41]tlvbuf is 011F8120 [14:45:41]SAM_PROTO_ClearQueue [14:45:41]wFMCommunicate request_size=4 [14:45:41]MH_SAM_APDU [14:45:41]CAPDU: 80 09 00 00 [14:45:41]Write to MH i2c: E2 08 00 CF 9D 80 09 00 00 00 00 00 00 DE [14:45:41]Write i2c OK [14:45:41]MH_I2C_Read... [14:45:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:45:41]Read from MH i2c: E2 [14:45:41]MH_I2C_Read... [14:45:41]Read from MH i2c: E2 03 00 [14:45:41]MH_I2C_Read... [14:45:41]Read from MH i2c: E2 03 00 CF 9D 00 90 00 E0 [14:45:41]RAPDU: 90 00 [14:45:41]wFMCommunicate OK [14:45:41]SAM_PROTO_ClearQueue done [14:45:41]KKMCreateOFDPacket [14:45:41]OFDProtocolAddRootSTLVToBuf [14:45:41]FM_MakeSignedData [14:45:41]FM_MakeSignedData [14:45:41]SAM_PROTO_SignData [14:45:41]wFMCommunicate request_size=4 [14:45:41]MH_SAM_APDU [14:45:41]CAPDU: 80 0D 01 02 [14:45:41]Write to MH i2c: E2 08 00 D0 9D 80 0D 01 02 00 00 00 00 E6 [14:45:41]Write i2c OK [14:45:41]MH_I2C_Read... [14:45:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:45:41]Read from MH i2c: E2 [14:45:41]MH_I2C_Read... [14:45:41]Read from MH i2c: E2 03 00 [14:45:41]MH_I2C_Read... [14:45:41]Read from MH i2c: E2 03 00 D0 9D 00 90 00 E1 [14:45:41]RAPDU: 90 00 [14:45:41]wFMCommunicate OK [14:45:41]wFMCommunicate request_size=255 [14:45:41]MH_SAM_APDU [14:45:41]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 76 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 78 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 5B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 5B 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 1E EC 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3B 72 00 00 35 04 06 00 BF 86 F8 E1 [14:45:41]Write to MH i2c: E2 02 01 D1 9D 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 76 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 78 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 5B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 5B 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 1E EC 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3B 72 00 00 35 04 06 00 BF 86 F8 E1 00 00 17 [14:45:41]Write i2c OK [14:45:41]MH_I2C_Read... [14:45:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:45:41]Read from MH i2c: E2 [14:45:41]MH_I2C_Read... [14:45:41]Read from MH i2c: E2 03 00 [14:45:41]MH_I2C_Read... [14:45:41]Read from MH i2c: E2 03 00 D1 9D 00 90 00 E2 [14:45:41]RAPDU: 90 00 [14:45:41]wFMCommunicate OK [14:45:41]wFMCommunicate request_size=7 [14:45:41]MH_SAM_APDU [14:45:41]CAPDU: 80 0D 02 02 02 F5 15 [14:45:41]Write to MH i2c: E2 0A 00 D2 9D 80 0D 02 02 02 00 F5 15 00 00 F7 [14:45:41]Write i2c OK [14:45:41]MH_I2C_Read... [14:45:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:45:41]Read from MH i2c: E2 [14:45:41]MH_I2C_Read... [14:45:41]Read from MH i2c: E2 03 00 [14:45:41]MH_I2C_Read... [14:45:41]Read from MH i2c: E2 03 00 D2 9D 00 90 00 E3 [14:45:41]RAPDU: 90 00 [14:45:41]wFMCommunicate OK [14:45:41]wFMCommunicate request_size=4 [14:45:41]MH_SAM_APDU [14:45:41]CAPDU: 80 0D 03 02 [14:45:41]Write to MH i2c: E2 08 00 D3 9D 80 0D 03 02 00 00 00 00 EB [14:45:41]Write i2c OK [14:45:41]MH_I2C_Read... [14:45:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:45:41]Read from MH i2c: E2 [14:45:41]MH_I2C_Read... [14:45:41]Read from MH i2c: E2 0B 00 [14:45:41]MH_I2C_Read... [14:45:41]Read from MH i2c: E2 0B 00 D3 9D 00 34 2F 38 FC 8F DB 44 4D 90 00 7E [14:45:41]RAPDU: 34 2F 38 FC 8F DB 44 4D 90 00 [14:45:41]wFMCommunicate OK [14:45:41]SAM_PROTO_SignData done [14:45:41]FM_MakeSignedData done [14:45:41]CreateOFDProtocolMessage [14:45:41]wFMCommunicate request_size=4 [14:45:41]MH_SAM_APDU [14:45:41]CAPDU: 80 11 00 00 [14:45:41]Write to MH i2c: E2 08 00 D4 9D 80 11 00 00 00 00 00 00 EB [14:45:41]Write i2c OK [14:45:41]MH_I2C_Read... [14:45:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:45:41]Read from MH i2c: E2 [14:45:41]MH_I2C_Read... [14:45:41]Read from MH i2c: E2 17 00 [14:45:41]MH_I2C_Read... [14:45:41]Read from MH i2c: E2 17 00 D4 9D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 3A [14:45:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:45:41]wFMCommunicate OK [14:45:41]CreateOFDProtocolMessage done [14:45:41]OFDSenderStorePacket 29243 [14:45:41]StoreOFDPacket docnum=29243 [14:45:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 29 A8 04 01 1A 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 76 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 78 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 5B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 5B 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 1E EC 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3B 72 00 00 35 04 06 00 BF 86 F8 E1 F5 15 34 2F 38 FC 8F DB 44 4D [14:45:41]CheckFolder [14:45:41]dirname=/storage/ofd_packets [14:45:41]CheckFolder done [14:45:41]ProducePacketName [14:45:41]name=ofd_packets/00029243 [14:45:41]NVStorageSaveData ofd_packets/00029243 [14:45:41]File name is /storage/ofd_packets/00029243 [14:45:41]Write 298 bytes [14:45:41]NVStorageSaveData done [14:45:41]OFDSenderStorePacket done [14:45:41]KKMCreateOFDPacket done [14:45:41]NVStorageSaveData kkm_last_timestamp [14:45:41]File name is /storage/kkm_last_timestamp [14:45:41]Write 4 bytes [14:45:41]NVStorageSaveData done [14:45:41]ExternCall_PrintAddStr [14:45:41]wPrintStart [14:45:41]Write to MH i2c: 01 00 00 D5 9D 72 [14:45:41]Write i2c OK [14:45:41]MH_I2C_Read... [14:45:41]Read from MH i2c: 01 [14:45:41]MH_I2C_Read... [14:45:41]Read from MH i2c: 01 07 00 [14:45:41]MH_I2C_Read... [14:45:41]Read from MH i2c: 01 07 00 D5 9D 00 00 00 00 00 FF 0F 87 [14:45:41]RasterBufferAndPrint [14:45:41]line Счет N : (1)347627 [14:45:41]line ИНН: 02508201610067 [14:45:41]line Контрольно-Кассовый Чек [14:45:41]line ПРОДАЖА [14:45:41]line ТРК (МРК, ГНК) : 11 [14:45:41]line Товар: 2710194210 [14:45:41]line ДТ-К-5 [14:45:41]line 30.390 * 72.40 [14:45:41]line = 2200.24 [14:45:41]line НДС 12% НСП 1% [14:45:41]line > о реализуемом товаре [14:45:41]line ИТОГО: 2200.24 [14:45:41]line НСП 1% : 19.47 [14:45:41]line НДС 12% : 233.65 [14:45:41]line Наличными: 0.00 [14:45:41]line Безнал.: 2200.24 [14:45:41]line Место: АЗС № 108 "Партнер Нефть" [14:45:41]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [14:45:41]line СНО: Общий режим [14:45:41]line Чек 153 14.04.2024 14:45 [14:45:41]line Смена: 116 ФФД: 1.0 [14:45:41]line ЗНМ: 0300000027 [14:45:41]line РНМ: 0000138879044617 [14:45:41]line Версия ККМ: 001 [14:45:41]line Платежная система: О! деньги [14:45:41]line ФМ: 0000000000963154 [14:45:41]line ФД: 29243 [14:45:41]line ФПД: 210586422080789 [14:45:42]line 1/tax-web-control/client/api/v1/ticket?date=20240414T144550&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29243&fm=210586422080789&tin=02508201610067®Number=0000138879044617&sum=220024 [14:45:42]OFD Sender: Processing packet 29243 [packets to send 8, broken 7] [14:45:42]ProducePacketName [14:45:42]name=ofd_packets/00029243 [14:45:42]OFD Sender: To server: pG, [14:45:42]CommunicateWithHost lk.salyk.kg:30040 [14:45:42]ConnectInit lk.salyk.kg [14:45:42]written 0, free lines is 4095 [14:45:42]Connected sock=10 [14:45:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 29 A8 04 01 1A 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 76 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 78 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 5B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 5B 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 1E EC 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3B 72 00 00 35 04 06 00 BF 86 F8 E1 F5 15 34 2F 38 FC 8F DB 44 4D [14:45:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 9C E8 47 00 DC FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3B 72 00 00 F4 03 04 00 C2 96 1B 66 B6 04 01 00 00 2F 98 76 C9 82 6F 3E 80 [14:45:42]CommunicateWithHost err = 0 [14:45:42]CheckOFDResponse [14:45:42]1017 (14) - 77093643461234 [14:45:42]1041 (16) - 0000000000963154 [14:45:42]1040 (4) - 29243 [14:45:42]1012 (4) - 14.04.2024 08:41 [14:45:42]1206 (1) - 0 [14:45:42]OFD Sender: Remove packet 29243 [14:45:42]ProducePacketName [14:45:42]name=ofd_packets/00029243 [14:45:42]NVStorageDeleteData [14:45:42]Write to MH i2c: 01 00 00 FE 9D 9B [14:45:42]Write i2c OK [14:45:42]MH_I2C_Read... [14:45:42]Read from MH i2c: 01 [14:45:42]MH_I2C_Read... [14:45:42]Read from MH i2c: 01 07 00 [14:45:42]MH_I2C_Read... [14:45:42]Read from MH i2c: 01 07 00 FE 9D 00 00 00 00 00 E0 0C 8E [14:45:42]RasterBufferAndPrint [14:45:42]line [14:45:42]line [14:45:42]line [14:45:42]line [14:45:42]line [14:45:42]written 0, free lines is 3302 [14:45:42]MH_Cut [14:45:42]Write to MH i2c: D1 01 00 05 9E 01 75 [14:45:42]Write i2c OK [14:45:42]MH_I2C_Read... [14:45:42]Read from MH i2c: D1 [14:45:42]MH_I2C_Read... [14:45:42]Read from MH i2c: D1 01 00 [14:45:42]MH_I2C_Read... [14:45:42]Read from MH i2c: D1 01 00 05 9E 00 74 [14:45:42]Write to MH i2c: 01 00 00 06 9E A4 [14:45:42]Write i2c OK [14:45:42]MH_I2C_Read... [14:45:42]OFD Sender: No OFD packet to send [14:45:43]*** Cut start [14:45:43]*** Partial cut [14:45:43]*** CUTSNS_PIN = 1 [14:45:43]*** CUTSNS_PIN = 0 [14:45:43]*** Brake cut motor [14:45:43]Read from MH i2c: 01 [14:45:43]MH_I2C_Read... [14:45:43]*** Stop cut motor [14:45:43]*** Cut end [14:45:43]Read from MH i2c: 01 07 00 [14:45:43]MH_I2C_Read... [14:45:43]Read from MH i2c: 01 07 00 06 9E 00 00 00 00 00 FF 0F B9 [14:45:43]process_action close_receipt done [14:45:43]requested_data is exist [14:45:43]produce_requested_data [14:45:43]requested_item fm.sn is exist - process it [14:45:43]wFMCommunicate request_size=4 [14:45:43]MH_SAM_APDU [14:45:43]CAPDU: 80 11 00 00 [14:45:43]Write to MH i2c: E2 08 00 07 9E 80 11 00 00 00 00 00 00 1F [14:45:43]Write i2c OK [14:45:43]MH_I2C_Read... [14:45:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:45:43]Read from MH i2c: E2 [14:45:43]MH_I2C_Read... [14:45:43]Read from MH i2c: E2 17 00 [14:45:43]MH_I2C_Read... [14:45:43]Read from MH i2c: E2 17 00 07 9E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 6E [14:45:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:45:43]wFMCommunicate OK [14:45:43]requested_item fd.num is exist - process it [14:45:43]SAM_PROTO_GetFieldsCounters [14:45:43]wFMCommunicate request_size=4 [14:45:43]MH_SAM_APDU [14:45:43]CAPDU: 80 13 00 00 [14:45:43]Write to MH i2c: E2 08 00 08 9E 80 13 00 00 00 00 00 00 22 [14:45:43]Write i2c OK [14:45:43]MH_I2C_Read... [14:45:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:45:44]Read from MH i2c: E2 [14:45:44]MH_I2C_Read... [14:45:44]Read from MH i2c: E2 62 00 [14:45:44]MH_I2C_Read... [14:45:44]Read from MH i2c: E2 62 00 08 9E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 3B 72 00 00 0E 04 04 00 74 00 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 4C [14:45:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 3B 72 00 00 0E 04 04 00 74 00 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 [14:45:44]wFMCommunicate OK [14:45:44]SAM_PROTO_GetFieldsCounters done [14:45:44]requested_item shift.num is exist - process it [14:45:44]requested_item shift.opened is exist - process it [14:45:44]req_shift_opened [14:45:44]FM_GetShiftState [14:45:44]SAM_PROTO_GetShiftState [14:45:44]wFMCommunicate request_size=4 [14:45:44]MH_SAM_APDU [14:45:44]CAPDU: 80 13 01 00 [14:45:44]Write to MH i2c: E2 08 00 09 9E 80 13 01 00 00 00 00 00 24 [14:45:44]Write i2c OK [14:45:44]MH_I2C_Read... [14:45:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:45:44]Read from MH i2c: E2 [14:45:44]MH_I2C_Read... [14:45:44]Read from MH i2c: E2 0E 00 [14:45:44]MH_I2C_Read... [14:45:44]Read from MH i2c: E2 0E 00 09 9E 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 D0 [14:45:44]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [14:45:44]wFMCommunicate OK [14:45:44]SAM_PROTO_GetShiftState done [14:45:44]FM_GetShiftState done [14:45:44]req_shift_opened done [14:45:44]requested_item shift.open_date is exist - process it [14:45:44]req_shift_open_date [14:45:44]req_shift_open_date done [14:45:44]produce_requested_data done [14:45:44]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29243,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [14:45:44]process_action_free close_receipt [14:45:44]json_value_free [14:45:44]json_value_free done [14:45:44]process_json_proto returns [14:45:44]Send response to host [14:45:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29243,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [14:45:44]free response buf [14:45:44]execute_script done [14:45:44]execute_script returns [14:45:44]free content buf [14:45:44]Sock 9.Close socket [14:45:44]Sock 9.Thread stoped [14:45:47]OFD Sender: No OFD packet to send [14:45:52]OFD Sender: No OFD packet to send [14:45:57]OFD Sender: No OFD packet to send [14:46:02]OFD Sender: No OFD packet to send [14:46:07]OFD Sender: No OFD packet to send [14:46:12]OFD Sender: No OFD packet to send [14:46:17]OFD Sender: No OFD packet to send [14:46:22]OFD Sender: No OFD packet to send [14:46:27]OFD Sender: No OFD packet to send [14:46:32]OFD Sender: No OFD packet to send [14:46:37]OFD Sender: No OFD packet to send [14:46:42]OFD Sender: No OFD packet to send [14:46:47]OFD Sender: No OFD packet to send [14:46:52]OFD Sender: No OFD packet to send [14:46:57]OFD Sender: No OFD packet to send [14:47:02]OFD Sender: No OFD packet to send [14:47:07]OFD Sender: No OFD packet to send [14:47:12]OFD Sender: No OFD packet to send [14:47:17]OFD Sender: No OFD packet to send [14:47:22]OFD Sender: No OFD packet to send [14:47:27]OFD Sender: No OFD packet to send [14:47:32]OFD Sender: No OFD packet to send [14:47:37]OFD Sender: No OFD packet to send [14:47:42]OFD Sender: No OFD packet to send [14:47:47]OFD Sender: No OFD packet to send [14:47:52]OFD Sender: No OFD packet to send [14:47:57]OFD Sender: No OFD packet to send [14:48:02]OFD Sender: No OFD packet to send [14:48:07]OFD Sender: No OFD packet to send [14:48:12]OFD Sender: No OFD packet to send [14:48:17]OFD Sender: No OFD packet to send [14:48:22]OFD Sender: No OFD packet to send [14:48:27]OFD Sender: No OFD packet to send [14:48:32]OFD Sender: No OFD packet to send [14:48:37]OFD Sender: No OFD packet to send [14:48:42]OFD Sender: No OFD packet to send [14:48:47]OFD Sender: No OFD packet to send [14:48:52]OFD Sender: No OFD packet to send [14:48:57]OFD Sender: No OFD packet to send [14:49:02]OFD Sender: No OFD packet to send [14:49:07]OFD Sender: No OFD packet to send [14:49:12]OFD Sender: No OFD packet to send [14:49:17]OFD Sender: No OFD packet to send [14:49:22]OFD Sender: No OFD packet to send [14:49:27]OFD Sender: No OFD packet to send [14:49:32]OFD Sender: No OFD packet to send [14:49:37]OFD Sender: No OFD packet to send [14:49:42]OFD Sender: No OFD packet to send [14:49:47]OFD Sender: No OFD packet to send [14:49:52]OFD Sender: No OFD packet to send [14:49:57]OFD Sender: No OFD packet to send [14:50:02]OFD Sender: No OFD packet to send [14:50:08]OFD Sender: No OFD packet to send [14:50:08]accept exits with 7 [14:50:08]New connection [14:50:08]New thread 3066785124 created [14:50:08]Thread 3066928484 joined [14:50:08]Waiting for new connection... [14:50:08] Sock 7.Parse request [14:50:08]Sock 7.Check first char [14:50:08]Sock 7.First char is OK [14:50:08]request: POST /json_proto HTTP/1.0 [14:50:08]Method: POST [14:50:08]URL: /json_proto [14:50:08]Method is POST - this is cgi request [14:50:08]url: /json_proto [14:50:08]query_string will be loaded in cgi processing [14:50:08]execute_cgi json_proto POST (null) [14:50:08]execute_cgi path=json_proto method=POST [14:50:08]POST find Content-Length [14:50:08]Host: 172.17.33.3:8080 [14:50:08]Content-Length: 677 [14:50:08]Content-Type: application/json [14:50:08] [14:50:08]POST finish read [14:50:08]Found Content-Length = 677 [14:50:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347628", "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" : 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" ] } } [14:50:08]execute_script... [14:50: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)347628", "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" : 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" ] } } [14:50:08]POST & json_proto [14:50:08]process_json_proto [14:50:08]json parsed OK: [14:50:08]protocol is kg_v1.0 [14:50:08]action value=close_receipt [14:50:08]process_action close_receipt [14:50:08]cmd_close_receipt [14:50:08]MH_GetDate [14:50:08]Write to MH i2c: F0 00 00 0A 9E 97 [14:50:08]Write i2c OK [14:50:08]MH_I2C_Read... [14:50:08]Read from MH i2c: F0 [14:50:08]MH_I2C_Read... [14:50:08]Read from MH i2c: F0 09 00 [14:50:08]MH_I2C_Read... [14:50:08]Read from MH i2c: F0 09 00 0A 9E 00 2B ED 1B 66 23 5B 8F 65 AB [14:50:08]GetLastDocTimeStamp 1713105950 [14:50:08]current date 1713106219 [14:50:08]FM_GetShiftState [14:50:08]SAM_PROTO_GetShiftState [14:50:08]wFMCommunicate request_size=4 [14:50:08]MH_SAM_APDU [14:50:08]CAPDU: 80 13 01 00 [14:50:08]Write to MH i2c: E2 08 00 0B 9E 80 13 01 00 00 00 00 00 26 [14:50:08]Write i2c OK [14:50:08]MH_I2C_Read... [14:50:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:50:09]Read from MH i2c: E2 [14:50:09]MH_I2C_Read... [14:50:09]Read from MH i2c: E2 0E 00 [14:50:09]MH_I2C_Read... [14:50:09]Read from MH i2c: E2 0E 00 0B 9E 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 D2 [14:50:09]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [14:50:09]wFMCommunicate OK [14:50:09]SAM_PROTO_GetShiftState done [14:50:09]FM_GetShiftState done [14:50:09]opened in 1713053951 [14:50:09]opened+sec_in_day 1713140351 [14:50:09]quantity*price = 10030 [14:50:09]sum+1 = 10032 [14:50:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.65 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 154 14.04.2024 14:50 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29244 ФПД: 10298222600010 1/tax-web-control/client/api/v1/ticket?date=20240414T145019&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29244&fm=10298222600010&tin=02508201610067®Number=0000138879044617&sum=10000 [14:50:10]StoreToDocumentArchive [14:50:10]shift 116 fd 29244 [14:50:10]save to /storage/0116/doc_00029244 [14:50:10]save last doc name /storage/0116/doc_00029244 to /storage/kkm_last_doc_name [14:50:10]save OK [14:50:10]Clear old archive folders... [14:50:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:50:10]tlvbuf is 0121E410 [14:50:10]SAM_PROTO_ClearQueue [14:50:10]wFMCommunicate request_size=4 [14:50:10]MH_SAM_APDU [14:50:10]CAPDU: 80 09 00 00 [14:50:10]Write to MH i2c: E2 08 00 18 9E 80 09 00 00 00 00 00 00 28 [14:50:10]Write i2c OK [14:50:10]MH_I2C_Read... [14:50:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:50:10]Read from MH i2c: E2 [14:50:10]MH_I2C_Read... [14:50:10]Read from MH i2c: E2 03 00 [14:50:10]MH_I2C_Read... [14:50:10]Read from MH i2c: E2 03 00 18 9E 00 90 00 2A [14:50:10]RAPDU: 90 00 [14:50:10]wFMCommunicate OK [14:50:10]SAM_PROTO_ClearQueue done [14:50:10]KKMCreateOFDPacket [14:50:10]OFDProtocolAddRootSTLVToBuf [14:50:10]FM_MakeSignedData [14:50:10]FM_MakeSignedData [14:50:10]SAM_PROTO_SignData [14:50:10]wFMCommunicate request_size=4 [14:50:10]MH_SAM_APDU [14:50:10]CAPDU: 80 0D 01 02 [14:50:10]Write to MH i2c: E2 08 00 19 9E 80 0D 01 02 00 00 00 00 30 [14:50:10]Write i2c OK [14:50:10]MH_I2C_Read... [14:50:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:50:10]Read from MH i2c: E2 [14:50:10]MH_I2C_Read... [14:50:10]Read from MH i2c: E2 03 00 [14:50:10]MH_I2C_Read... [14:50:10]Read from MH i2c: E2 03 00 19 9E 00 90 00 2B [14:50:10]RAPDU: 90 00 [14:50:10]wFMCommunicate OK [14:50:10]wFMCommunicate request_size=255 [14:50:10]MH_SAM_APDU [14:50: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 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 9A 00 00 00 F4 03 04 00 2B ED 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3C 72 00 00 35 04 06 00 09 [14:50:10]Write to MH i2c: E2 02 01 1A 9E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 9A 00 00 00 F4 03 04 00 2B ED 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3C 72 00 00 35 04 06 00 09 00 00 54 [14:50:10]Write i2c OK [14:50:10]MH_I2C_Read... [14:50:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:50:10]Read from MH i2c: E2 [14:50:10]MH_I2C_Read... [14:50:10]Read from MH i2c: E2 03 00 [14:50:10]MH_I2C_Read... [14:50:10]Read from MH i2c: E2 03 00 1A 9E 00 90 00 2C [14:50:10]RAPDU: 90 00 [14:50:10]wFMCommunicate OK [14:50:10]wFMCommunicate request_size=10 [14:50:10]MH_SAM_APDU [14:50:10]CAPDU: 80 0D 02 02 05 5D BD E6 5F 4A [14:50:10]Write to MH i2c: E2 0D 00 1B 9E 80 0D 02 02 05 00 5D BD E6 5F 4A 00 00 E6 [14:50:10]Write i2c OK [14:50:10]MH_I2C_Read... [14:50:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:50:10]Read from MH i2c: E2 [14:50:10]MH_I2C_Read... [14:50:10]Read from MH i2c: E2 03 00 [14:50:10]MH_I2C_Read... [14:50:10]Read from MH i2c: E2 03 00 1B 9E 00 90 00 2D [14:50:10]RAPDU: 90 00 [14:50:10]wFMCommunicate OK [14:50:10]wFMCommunicate request_size=4 [14:50:10]MH_SAM_APDU [14:50:10]CAPDU: 80 0D 03 02 [14:50:10]Write to MH i2c: E2 08 00 1C 9E 80 0D 03 02 00 00 00 00 35 [14:50:10]Write i2c OK [14:50:10]MH_I2C_Read... [14:50:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:50:10]Read from MH i2c: E2 [14:50:10]MH_I2C_Read... [14:50:10]Read from MH i2c: E2 0B 00 [14:50:10]MH_I2C_Read... [14:50:10]Read from MH i2c: E2 0B 00 1C 9E 00 55 BE BE 81 BA CF 9E 8E 90 00 3D [14:50:10]RAPDU: 55 BE BE 81 BA CF 9E 8E 90 00 [14:50:10]wFMCommunicate OK [14:50:10]SAM_PROTO_SignData done [14:50:10]FM_MakeSignedData done [14:50:10]CreateOFDProtocolMessage [14:50:10]wFMCommunicate request_size=4 [14:50:10]MH_SAM_APDU [14:50:10]CAPDU: 80 11 00 00 [14:50:10]Write to MH i2c: E2 08 00 1D 9E 80 11 00 00 00 00 00 00 35 [14:50:10]Write i2c OK [14:50:10]MH_I2C_Read... [14:50:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:50:10]Read from MH i2c: E2 [14:50:10]MH_I2C_Read... [14:50:10]Read from MH i2c: E2 17 00 [14:50:10]MH_I2C_Read... [14:50:10]Read from MH i2c: E2 17 00 1D 9E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 84 [14:50:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:50:10]wFMCommunicate OK [14:50:10]CreateOFDProtocolMessage done [14:50:10]OFDSenderStorePacket 29244 [14:50:10]StoreOFDPacket docnum=29244 [14:50:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 03 47 07 01 14 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 9A 00 00 00 F4 03 04 00 2B ED 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3C 72 00 00 35 04 06 00 09 5D BD E6 5F 4A 55 BE BE 81 BA CF 9E 8E [14:50:10]CheckFolder [14:50:10]dirname=/storage/ofd_packets [14:50:10]CheckFolder done [14:50:10]ProducePacketName [14:50:10]name=ofd_packets/00029244 [14:50:10]NVStorageSaveData ofd_packets/00029244 [14:50:10]File name is /storage/ofd_packets/00029244 [14:50:10]Write 301 bytes [14:50:10]NVStorageSaveData done [14:50:10]OFDSenderStorePacket done [14:50:10]KKMCreateOFDPacket done [14:50:10]NVStorageSaveData kkm_last_timestamp [14:50:10]File name is /storage/kkm_last_timestamp [14:50:10]Write 4 bytes [14:50:10]NVStorageSaveData done [14:50:10]ExternCall_PrintAddStr [14:50:10]wPrintStart [14:50:10]Write to MH i2c: 01 00 00 1E 9E BC [14:50:10]Write i2c OK [14:50:10]MH_I2C_Read... [14:50:10]Read from MH i2c: 01 [14:50:10]MH_I2C_Read... [14:50:10]Read from MH i2c: 01 07 00 [14:50:10]MH_I2C_Read... [14:50:10]Read from MH i2c: 01 07 00 1E 9E 00 00 00 00 00 FF 0F D1 [14:50:10]RasterBufferAndPrint [14:50:10]line Счет N : (1)347628 [14:50:10]line ИНН: 02508201610067 [14:50:10]line Контрольно-Кассовый Чек [14:50:10]line ПРОДАЖА [14:50:10]line ТРК (МРК, ГНК) : 32 [14:50:10]line Товар: 2710124130 [14:50:10]line Аи-92-К-5 [14:50:10]line 1.560 * 64.30 [14:50:10]line = 100.31 [14:50:10]line НДС 12% НСП 1% [14:50:10]line > о реализуемом товаре [14:50:10]line ОКРУГЛЕНИЕ: -0.31 [14:50:10]line ИТОГО: 100.00 [14:50:10]line Внесено: 100.00 [14:50:10]line СДАЧА: 0.00 [14:50:10]line НСП 1% : 0.89 [14:50:10]line НДС 12% : 10.65 [14:50:10]line Наличными: 100.00 [14:50:10]line Безнал.: 0.00 [14:50:10]line Место: АЗС № 108 "Партнер Нефть" [14:50:10]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [14:50:10]line СНО: Общий режим [14:50:10]line Чек 154 14.04.2024 14:50 [14:50:10]line Смена: 116 ФФД: 1.0 [14:50:10]line ЗНМ: 0300000027 [14:50:10]line РНМ: 0000138879044617 [14:50:10]line Версия ККМ: 001 [14:50:10]line ФМ: 0000000000963154 [14:50:10]line ФД: 29244 [14:50:10]line ФПД: 10298222600010 [14:50:11]line 1/tax-web-control/client/api/v1/ticket?date=20240414T145019&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29244&fm=10298222600010&tin=02508201610067®Number=0000138879044617&sum=10000 [14:50:11]OFD Sender: Processing packet 29244 [packets to send 8, broken 7] [14:50:11]ProducePacketName [14:50:11]name=ofd_packets/00029244 [14:50:11]OFD Sender: To server: pG, [14:50:11]CommunicateWithHost lk.salyk.kg:30040 [14:50:11]ConnectInit lk.salyk.kg [14:50:11]written 0, free lines is 4095 [14:50:11]Connected sock=10 [14:50:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 03 47 07 01 14 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 9A 00 00 00 F4 03 04 00 2B ED 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3C 72 00 00 35 04 06 00 09 5D BD E6 5F 4A 55 BE BE 81 BA CF 9E 8E [14:50:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 E6 C8 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 39 36 33 31 35 34 10 04 04 00 3C 72 00 00 F4 03 04 00 CF 97 1B 66 B6 04 01 00 00 C3 61 33 FF 24 EA 73 74 [14:50:11]CommunicateWithHost err = 0 [14:50:11]CheckOFDResponse [14:50:11]1017 (14) - 77093643461234 [14:50:11]1041 (16) - 0000000000963154 [14:50:11]1040 (4) - 29244 [14:50:11]1012 (4) - 14.04.2024 08:46 [14:50:11]1206 (1) - 0 [14:50:11]OFD Sender: Remove packet 29244 [14:50:11]ProducePacketName [14:50:11]name=ofd_packets/00029244 [14:50:11]NVStorageDeleteData [14:50:11]Write to MH i2c: 01 00 00 48 9E E6 [14:50:11]Write i2c OK [14:50:11]MH_I2C_Read... [14:50:11]Read from MH i2c: 01 [14:50:11]MH_I2C_Read... [14:50:11]Read from MH i2c: 01 07 00 [14:50:11]MH_I2C_Read... [14:50:11]Read from MH i2c: 01 07 00 48 9E 00 00 00 00 00 C4 0C BD [14:50:11]RasterBufferAndPrint [14:50:11]line [14:50:11]line [14:50:11]line [14:50:11]line [14:50:11]line [14:50:11]written 0, free lines is 3274 [14:50:11]MH_Cut [14:50:11]Write to MH i2c: D1 01 00 4F 9E 01 BF [14:50:11]Write i2c OK [14:50:11]MH_I2C_Read... [14:50:11]Read from MH i2c: D1 [14:50:11]MH_I2C_Read... [14:50:11]Read from MH i2c: D1 01 00 [14:50:11]MH_I2C_Read... [14:50:11]Read from MH i2c: D1 01 00 4F 9E 00 BE [14:50:11]Write to MH i2c: 01 00 00 50 9E EE [14:50:11]Write i2c OK [14:50:11]MH_I2C_Read... [14:50:11]OFD Sender: No OFD packet to send [14:50:12]*** Cut start [14:50:12]*** Partial cut [14:50:12]*** CUTSNS_PIN = 1 [14:50:12]*** CUTSNS_PIN = 0 [14:50:12]*** Brake cut motor [14:50:12]Read from MH i2c: 01 [14:50:12]MH_I2C_Read... [14:50:12]*** Stop cut motor [14:50:12]*** Cut end [14:50:12]Read from MH i2c: 01 07 00 [14:50:12]MH_I2C_Read... [14:50:12]Read from MH i2c: 01 07 00 50 9E 00 00 00 00 00 FF 0F 03 [14:50:12]process_action close_receipt done [14:50:12]requested_data is exist [14:50:12]produce_requested_data [14:50:12]requested_item fm.sn is exist - process it [14:50:12]wFMCommunicate request_size=4 [14:50:12]MH_SAM_APDU [14:50:12]CAPDU: 80 11 00 00 [14:50:12]Write to MH i2c: E2 08 00 51 9E 80 11 00 00 00 00 00 00 69 [14:50:12]Write i2c OK [14:50:12]MH_I2C_Read... [14:50:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:50:12]Read from MH i2c: E2 [14:50:12]MH_I2C_Read... [14:50:12]Read from MH i2c: E2 17 00 [14:50:12]MH_I2C_Read... [14:50:12]Read from MH i2c: E2 17 00 51 9E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B8 [14:50:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:50:12]wFMCommunicate OK [14:50:12]requested_item fd.num is exist - process it [14:50:12]SAM_PROTO_GetFieldsCounters [14:50:12]wFMCommunicate request_size=4 [14:50:12]MH_SAM_APDU [14:50:12]CAPDU: 80 13 00 00 [14:50:12]Write to MH i2c: E2 08 00 52 9E 80 13 00 00 00 00 00 00 6C [14:50:12]Write i2c OK [14:50:12]MH_I2C_Read... [14:50:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:50:13]Read from MH i2c: E2 [14:50:13]MH_I2C_Read... [14:50:13]Read from MH i2c: E2 62 00 [14:50:13]MH_I2C_Read... [14:50:13]Read from MH i2c: E2 62 00 52 9E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 3C 72 00 00 0E 04 04 00 74 00 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 9A [14:50:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 3C 72 00 00 0E 04 04 00 74 00 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 [14:50:13]wFMCommunicate OK [14:50:13]SAM_PROTO_GetFieldsCounters done [14:50:13]requested_item shift.num is exist - process it [14:50:13]requested_item shift.opened is exist - process it [14:50:13]req_shift_opened [14:50:13]FM_GetShiftState [14:50:13]SAM_PROTO_GetShiftState [14:50:13]wFMCommunicate request_size=4 [14:50:13]MH_SAM_APDU [14:50:13]CAPDU: 80 13 01 00 [14:50:13]Write to MH i2c: E2 08 00 53 9E 80 13 01 00 00 00 00 00 6E [14:50:13]Write i2c OK [14:50:13]MH_I2C_Read... [14:50:13]Read from MH i2c: E2 [14:50:13]MH_I2C_Read... [14:50:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:50:13]Read from MH i2c: E2 0E 00 [14:50:13]MH_I2C_Read... [14:50:13]Read from MH i2c: E2 0E 00 53 9E 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 1A [14:50:13]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [14:50:13]wFMCommunicate OK [14:50:13]SAM_PROTO_GetShiftState done [14:50:13]FM_GetShiftState done [14:50:13]req_shift_opened done [14:50:13]requested_item shift.open_date is exist - process it [14:50:13]req_shift_open_date [14:50:13]req_shift_open_date done [14:50:13]produce_requested_data done [14:50:13]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29244,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [14:50:13]process_action_free close_receipt [14:50:13]json_value_free [14:50:13]json_value_free done [14:50:13]process_json_proto returns [14:50:13]Send response to host [14:50:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29244,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [14:50:13]free response buf [14:50:13]execute_script done [14:50:13]execute_script returns [14:50:13]free content buf [14:50:13]Sock 7.Close socket [14:50:13]Sock 7.Thread stoped [14:50:16]OFD Sender: No OFD packet to send [14:50:21]OFD Sender: No OFD packet to send [14:50:26]OFD Sender: No OFD packet to send [14:50:31]OFD Sender: No OFD packet to send [14:50:36]OFD Sender: No OFD packet to send [14:50:41]OFD Sender: No OFD packet to send [14:50:46]OFD Sender: No OFD packet to send [14:50:51]OFD Sender: No OFD packet to send [14:50:56]OFD Sender: No OFD packet to send [14:51:01]OFD Sender: No OFD packet to send [14:51:06]OFD Sender: No OFD packet to send [14:51:11]OFD Sender: No OFD packet to send [14:51:16]OFD Sender: No OFD packet to send [14:51:21]OFD Sender: No OFD packet to send [14:51:26]OFD Sender: No OFD packet to send [14:51:31]OFD Sender: No OFD packet to send [14:51:36]OFD Sender: No OFD packet to send [14:51:41]OFD Sender: No OFD packet to send [14:51:46]OFD Sender: No OFD packet to send [14:51:51]OFD Sender: No OFD packet to send [14:51:56]OFD Sender: No OFD packet to send [14:52:01]OFD Sender: No OFD packet to send [14:52:06]OFD Sender: No OFD packet to send [14:52:11]OFD Sender: No OFD packet to send [14:52:16]OFD Sender: No OFD packet to send [14:52:21]OFD Sender: No OFD packet to send [14:52:26]OFD Sender: No OFD packet to send [14:52:31]OFD Sender: No OFD packet to send [14:52:36]OFD Sender: No OFD packet to send [14:52:41]OFD Sender: No OFD packet to send [14:52:46]OFD Sender: No OFD packet to send [14:52:51]OFD Sender: No OFD packet to send [14:52:56]OFD Sender: No OFD packet to send [14:53:01]OFD Sender: No OFD packet to send [14:53:06]OFD Sender: No OFD packet to send [14:53:11]OFD Sender: No OFD packet to send [14:53:16]OFD Sender: No OFD packet to send [14:53:21]OFD Sender: No OFD packet to send [14:53:26]OFD Sender: No OFD packet to send [14:53:31]OFD Sender: No OFD packet to send [14:53:36]OFD Sender: No OFD packet to send [14:53:41]OFD Sender: No OFD packet to send [14:53:46]OFD Sender: No OFD packet to send [14:53:51]OFD Sender: No OFD packet to send [14:53:56]OFD Sender: No OFD packet to send [14:54:01]OFD Sender: No OFD packet to send [14:54:06]OFD Sender: No OFD packet to send [14:54:11]OFD Sender: No OFD packet to send [14:54:16]OFD Sender: No OFD packet to send [14:54:21]OFD Sender: No OFD packet to send [14:54:26]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:18]accept exits with 9 [14:57:18]New connection [14:57:18]New thread 3066928484 created [14:57:18]Thread 3066785124 joined [14:57:18]Waiting for new connection... [14:57:18] Sock 9.Parse request [14:57:18]Sock 9.Check first char [14:57:18]Sock 9.First char is OK [14:57:18]request: POST /json_proto HTTP/1.0 [14:57:18]Method: POST [14:57:18]URL: /json_proto [14:57:18]Method is POST - this is cgi request [14:57:18]url: /json_proto [14:57:18]query_string will be loaded in cgi processing [14:57:18]execute_cgi json_proto POST (null) [14:57:18]execute_cgi path=json_proto method=POST [14:57:18]POST find Content-Length [14:57:18]Host: 172.17.33.3:8080 [14:57:18]Content-Length: 816 [14:57:18]Content-Type: application/json [14:57:18] [14:57:18]POST finish read [14:57:18]Found Content-Length = 816 [14:57:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347629", "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" : 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" ] } } [14:57:18]execute_script... [14:57: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)347629", "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" : 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" ] } } [14:57:18]POST & json_proto [14:57:18]process_json_proto [14:57:18]json parsed OK: [14:57:18]protocol is kg_v1.0 [14:57:18]action value=close_receipt [14:57:18]process_action close_receipt [14:57:18]cmd_close_receipt [14:57:18]MH_GetDate [14:57:18]Write to MH i2c: F0 00 00 54 9E E1 [14:57:18]Write i2c OK [14:57:18]MH_I2C_Read... [14:57:18]Read from MH i2c: F0 [14:57:18]MH_I2C_Read... [14:57:18]Read from MH i2c: F0 09 00 [14:57:18]MH_I2C_Read... [14:57:18]Read from MH i2c: F0 09 00 54 9E 00 D9 EE 1B 66 23 5B 8F 65 A4 [14:57:18]GetLastDocTimeStamp 1713106219 [14:57:18]current date 1713106649 [14:57:18]FM_GetShiftState [14:57:18]SAM_PROTO_GetShiftState [14:57:18]wFMCommunicate request_size=4 [14:57:18]MH_SAM_APDU [14:57:18]CAPDU: 80 13 01 00 [14:57:18]Write to MH i2c: E2 08 00 55 9E 80 13 01 00 00 00 00 00 70 [14:57:18]Write i2c OK [14:57:18]MH_I2C_Read... [14:57:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:18]Read from MH i2c: E2 [14:57:18]MH_I2C_Read... [14:57:18]Read from MH i2c: E2 0E 00 [14:57:18]MH_I2C_Read... [14:57:18]Read from MH i2c: E2 0E 00 55 9E 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 1C [14:57:18]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [14:57:18]wFMCommunicate OK [14:57:18]SAM_PROTO_GetShiftState done [14:57:18]FM_GetShiftState done [14:57:18]opened in 1713053951 [14:57:18]opened+sec_in_day 1713140351 [14:57:18]quantity*price = 40058 [14:57:18]sum+1 = 40060 [14:57:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.59 НСП 1% : 3.54 НДС 12% : 42.54 Наличными: 0.00 Безнал.: 400.59 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 155 14.04.2024 14:57 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 29245 ФПД: 198690745474282 1/tax-web-control/client/api/v1/ticket?date=20240414T145729&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29245&fm=198690745474282&tin=02508201610067®Number=0000138879044617&sum=40059 [14:57:19]StoreToDocumentArchive [14:57:19]shift 116 fd 29245 [14:57:19]save to /storage/0116/doc_00029245 [14:57:19]save last doc name /storage/0116/doc_00029245 to /storage/kkm_last_doc_name [14:57:19]save OK [14:57:19]Clear old archive folders... [14:57:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:57:19]tlvbuf is 0121DF80 [14:57:19]SAM_PROTO_ClearQueue [14:57:19]wFMCommunicate request_size=4 [14:57:19]MH_SAM_APDU [14:57:19]CAPDU: 80 09 00 00 [14:57:19]Write to MH i2c: E2 08 00 62 9E 80 09 00 00 00 00 00 00 72 [14:57:19]Write i2c OK [14:57:19]MH_I2C_Read... [14:57:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:57:19]Read from MH i2c: E2 [14:57:19]MH_I2C_Read... [14:57:19]Read from MH i2c: E2 03 00 [14:57:19]MH_I2C_Read... [14:57:19]Read from MH i2c: E2 03 00 62 9E 00 90 00 74 [14:57:19]RAPDU: 90 00 [14:57:19]wFMCommunicate OK [14:57:19]SAM_PROTO_ClearQueue done [14:57:19]KKMCreateOFDPacket [14:57:19]OFDProtocolAddRootSTLVToBuf [14:57:19]FM_MakeSignedData [14:57:19]FM_MakeSignedData [14:57:19]SAM_PROTO_SignData [14:57:19]wFMCommunicate request_size=4 [14:57:19]MH_SAM_APDU [14:57:19]CAPDU: 80 0D 01 02 [14:57:19]Write to MH i2c: E2 08 00 63 9E 80 0D 01 02 00 00 00 00 7A [14:57:19]Write i2c OK [14:57:19]MH_I2C_Read... [14:57:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:57:19]Read from MH i2c: E2 [14:57:19]MH_I2C_Read... [14:57:19]Read from MH i2c: E2 03 00 [14:57:19]MH_I2C_Read... [14:57:19]Read from MH i2c: E2 03 00 63 9E 00 90 00 75 [14:57:19]RAPDU: 90 00 [14:57:19]wFMCommunicate OK [14:57:19]wFMCommunicate request_size=255 [14:57:19]MH_SAM_APDU [14:57:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 9B 00 00 00 F4 03 04 00 D9 EE 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3D 72 00 00 35 04 06 00 B4 [14:57:19]Write to MH i2c: E2 02 01 64 9E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 9B 00 00 00 F4 03 04 00 D9 EE 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3D 72 00 00 35 04 06 00 B4 00 00 56 [14:57:19]Write i2c OK [14:57:19]MH_I2C_Read... [14:57:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:20]Read from MH i2c: E2 [14:57:20]MH_I2C_Read... [14:57:20]Read from MH i2c: E2 03 00 [14:57:20]MH_I2C_Read... [14:57:20]Read from MH i2c: E2 03 00 64 9E 00 90 00 76 [14:57:20]RAPDU: 90 00 [14:57:20]wFMCommunicate OK [14:57:20]wFMCommunicate request_size=10 [14:57:20]MH_SAM_APDU [14:57:20]CAPDU: 80 0D 02 02 05 B5 4B 4D DC EA [14:57:20]Write to MH i2c: E2 0D 00 65 9E 80 0D 02 02 05 00 B5 4B 4D DC EA 00 00 9A [14:57:20]Write i2c OK [14:57:20]MH_I2C_Read... [14:57:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:20]Read from MH i2c: E2 [14:57:20]MH_I2C_Read... [14:57:20]Read from MH i2c: E2 03 00 [14:57:20]MH_I2C_Read... [14:57:20]Read from MH i2c: E2 03 00 65 9E 00 90 00 77 [14:57:20]RAPDU: 90 00 [14:57:20]wFMCommunicate OK [14:57:20]wFMCommunicate request_size=4 [14:57:20]MH_SAM_APDU [14:57:20]CAPDU: 80 0D 03 02 [14:57:20]Write to MH i2c: E2 08 00 66 9E 80 0D 03 02 00 00 00 00 7F [14:57:20]Write i2c OK [14:57:20]MH_I2C_Read... [14:57:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:57:20]Read from MH i2c: E2 [14:57:20]MH_I2C_Read... [14:57:20]Read from MH i2c: E2 0B 00 [14:57:20]MH_I2C_Read... [14:57:20]Read from MH i2c: E2 0B 00 66 9E 00 F3 40 4A D1 98 E5 D0 99 90 00 B4 [14:57:20]RAPDU: F3 40 4A D1 98 E5 D0 99 90 00 [14:57:20]wFMCommunicate OK [14:57:20]SAM_PROTO_SignData done [14:57:20]FM_MakeSignedData done [14:57:20]CreateOFDProtocolMessage [14:57:20]wFMCommunicate request_size=4 [14:57:20]MH_SAM_APDU [14:57:20]CAPDU: 80 11 00 00 [14:57:20]Write to MH i2c: E2 08 00 67 9E 80 11 00 00 00 00 00 00 7F [14:57:20]Write i2c OK [14:57:20]MH_I2C_Read... [14:57:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:20]Read from MH i2c: E2 [14:57:20]MH_I2C_Read... [14:57:20]Read from MH i2c: E2 17 00 [14:57:20]MH_I2C_Read... [14:57:20]Read from MH i2c: E2 17 00 67 9E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 CE [14:57:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:57:20]wFMCommunicate OK [14:57:20]CreateOFDProtocolMessage done [14:57:20]OFDSenderStorePacket 29245 [14:57:20]StoreOFDPacket docnum=29245 [14:57:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 68 C7 07 01 50 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 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 9B 00 00 00 F4 03 04 00 D9 EE 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3D 72 00 00 35 04 06 00 B4 B5 4B 4D DC EA F3 40 4A D1 98 E5 D0 99 [14:57:20]CheckFolder [14:57:20]dirname=/storage/ofd_packets [14:57:20]CheckFolder done [14:57:20]ProducePacketName [14:57:20]name=ofd_packets/00029245 [14:57:20]NVStorageSaveData ofd_packets/00029245 [14:57:20]File name is /storage/ofd_packets/00029245 [14:57:20]Write 301 bytes [14:57:20]NVStorageSaveData done [14:57:20]OFDSenderStorePacket done [14:57:20]KKMCreateOFDPacket done [14:57:20]NVStorageSaveData kkm_last_timestamp [14:57:20]File name is /storage/kkm_last_timestamp [14:57:20]Write 4 bytes [14:57:20]NVStorageSaveData done [14:57:20]ExternCall_PrintAddStr [14:57:20]wPrintStart [14:57:20]Write to MH i2c: 01 00 00 68 9E 06 [14:57:20]Write i2c OK [14:57:20]MH_I2C_Read... [14:57:20]Read from MH i2c: 01 [14:57:20]MH_I2C_Read... [14:57:20]Read from MH i2c: 01 07 00 [14:57:20]MH_I2C_Read... [14:57:20]Read from MH i2c: 01 07 00 68 9E 00 00 00 00 00 FF 0F 1B [14:57:20]RasterBufferAndPrint [14:57:20]line Счет N : (1)347629 [14:57:20]line ИНН: 02508201610067 [14:57:20]line Контрольно-Кассовый Чек [14:57:20]line ПРОДАЖА [14:57:20]line ТРК (МРК, ГНК) : 42 [14:57:20]line Товар: 2710124130 [14:57:20]line Аи-92-К-5 [14:57:20]line 6.230 * 64.30 [14:57:20]line = 400.59 [14:57:20]line НДС 12% НСП 1% [14:57:20]line > о реализуемом товаре [14:57:20]line ИТОГО: 400.59 [14:57:20]line НСП 1% : 3.54 [14:57:20]line НДС 12% : 42.54 [14:57:20]line Наличными: 0.00 [14:57:20]line Безнал.: 400.59 [14:57:20]line Место: АЗС № 108 "Партнер Нефть" [14:57:20]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [14:57:20]line СНО: Общий режим [14:57:20]line Чек 155 14.04.2024 14:57 [14:57:20]line Смена: 116 ФФД: 1.0 [14:57:20]line ЗНМ: 0300000027 [14:57:20]line РНМ: 0000138879044617 [14:57:20]line Версия ККМ: 001 [14:57:20]line Платежная система: Бакай Банк [14:57:20]line ФМ: 0000000000963154 [14:57:20]line ФД: 29245 [14:57:20]line ФПД: 198690745474282 [14:57:20]line 1/tax-web-control/client/api/v1/ticket?date=20240414T145729&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29245&fm=198690745474282&tin=02508201610067®Number=0000138879044617&sum=40059 [14:57:20]OFD Sender: Processing packet 29245 [packets to send 8, broken 7] [14:57:20]ProducePacketName [14:57:20]name=ofd_packets/00029245 [14:57:20]OFD Sender: To server: pG, [14:57:20]CommunicateWithHost lk.salyk.kg:30040 [14:57:20]ConnectInit lk.salyk.kg [14:57:20]written 0, free lines is 4095 [14:57:20]Connected sock=10 [14:57:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 68 C7 07 01 50 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 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 9B 00 00 00 F4 03 04 00 D9 EE 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3D 72 00 00 35 04 06 00 B4 B5 4B 4D DC EA F3 40 4A D1 98 E5 D0 99 [14:57:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 E3 89 47 00 0B 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 39 36 33 31 35 34 10 04 04 00 3D 72 00 00 F4 03 04 00 7C 99 1B 66 B6 04 01 00 00 6D D0 8C 52 E0 69 F5 A9 [14:57:20]CommunicateWithHost err = 0 [14:57:20]CheckOFDResponse [14:57:20]1017 (14) - 77093643461234 [14:57:20]1041 (16) - 0000000000963154 [14:57:20]1040 (4) - 29245 [14:57:20]1012 (4) - 14.04.2024 08:53 [14:57:20]1206 (1) - 0 [14:57:20]OFD Sender: Remove packet 29245 [14:57:20]ProducePacketName [14:57:20]name=ofd_packets/00029245 [14:57:20]NVStorageDeleteData [14:57:21]Write to MH i2c: 01 00 00 91 9E 2F [14:57:21]Write i2c OK [14:57:21]MH_I2C_Read... [14:57:21]Read from MH i2c: 01 [14:57:21]MH_I2C_Read... [14:57:21]Read from MH i2c: 01 07 00 [14:57:21]MH_I2C_Read... [14:57:21]Read from MH i2c: 01 07 00 91 9E 00 00 00 00 00 D7 0C 19 [14:57:21]RasterBufferAndPrint [14:57:21]line [14:57:21]line [14:57:21]line [14:57:21]line [14:57:21]line [14:57:21]written 0, free lines is 3294 [14:57:21]MH_Cut [14:57:21]Write to MH i2c: D1 01 00 98 9E 01 08 [14:57:21]Write i2c OK [14:57:21]MH_I2C_Read... [14:57:21]Read from MH i2c: D1 [14:57:21]MH_I2C_Read... [14:57:21]Read from MH i2c: D1 01 00 [14:57:21]MH_I2C_Read... [14:57:21]Read from MH i2c: D1 01 00 98 9E 00 07 [14:57:21]Write to MH i2c: 01 00 00 99 9E 37 [14:57:21]Write i2c OK [14:57:21]MH_I2C_Read... [14:57:21]OFD Sender: No OFD packet to send [14:57:21]*** Cut start [14:57:21]*** Partial cut [14:57:21]*** CUTSNS_PIN = 1 [14:57:21]*** CUTSNS_PIN = 0 [14:57:22]*** Brake cut motor [14:57:22]Read from MH i2c: 01 [14:57:22]MH_I2C_Read... [14:57:22]*** Stop cut motor [14:57:22]*** Cut end [14:57:22]Read from MH i2c: 01 07 00 [14:57:22]MH_I2C_Read... [14:57:22]Read from MH i2c: 01 07 00 99 9E 00 00 00 00 00 FF 0F 4C [14:57:22]process_action close_receipt done [14:57:22]requested_data is exist [14:57:22]produce_requested_data [14:57:22]requested_item fm.sn is exist - process it [14:57:22]wFMCommunicate request_size=4 [14:57:22]MH_SAM_APDU [14:57:22]CAPDU: 80 11 00 00 [14:57:22]Write to MH i2c: E2 08 00 9A 9E 80 11 00 00 00 00 00 00 B2 [14:57:22]Write i2c OK [14:57:22]MH_I2C_Read... [14:57:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:22]Read from MH i2c: E2 [14:57:22]MH_I2C_Read... [14:57:22]Read from MH i2c: E2 17 00 [14:57:22]MH_I2C_Read... [14:57:22]Read from MH i2c: E2 17 00 9A 9E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 01 [14:57:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:57:22]wFMCommunicate OK [14:57:22]requested_item fd.num is exist - process it [14:57:22]SAM_PROTO_GetFieldsCounters [14:57:22]wFMCommunicate request_size=4 [14:57:22]MH_SAM_APDU [14:57:22]CAPDU: 80 13 00 00 [14:57:22]Write to MH i2c: E2 08 00 9B 9E 80 13 00 00 00 00 00 00 B5 [14:57:22]Write i2c OK [14:57:22]MH_I2C_Read... [14:57:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:57:22]Read from MH i2c: E2 [14:57:22]MH_I2C_Read... [14:57:22]Read from MH i2c: E2 62 00 [14:57:22]MH_I2C_Read... [14:57:22]Read from MH i2c: E2 62 00 9B 9E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 3D 72 00 00 0E 04 04 00 74 00 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 E7 [14:57:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 3D 72 00 00 0E 04 04 00 74 00 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 [14:57:22]wFMCommunicate OK [14:57:22]SAM_PROTO_GetFieldsCounters done [14:57:22]requested_item shift.num is exist - process it [14:57:22]requested_item shift.opened is exist - process it [14:57:22]req_shift_opened [14:57:22]FM_GetShiftState [14:57:22]SAM_PROTO_GetShiftState [14:57:22]wFMCommunicate request_size=4 [14:57:22]MH_SAM_APDU [14:57:22]CAPDU: 80 13 01 00 [14:57:22]Write to MH i2c: E2 08 00 9C 9E 80 13 01 00 00 00 00 00 B7 [14:57:22]Write i2c OK [14:57:22]MH_I2C_Read... [14:57:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:22]Read from MH i2c: E2 [14:57:22]MH_I2C_Read... [14:57:22]Read from MH i2c: E2 0E 00 [14:57:22]MH_I2C_Read... [14:57:22]Read from MH i2c: E2 0E 00 9C 9E 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 63 [14:57:22]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [14:57:22]wFMCommunicate OK [14:57:22]SAM_PROTO_GetShiftState done [14:57:22]FM_GetShiftState done [14:57:22]req_shift_opened done [14:57:22]requested_item shift.open_date is exist - process it [14:57:22]req_shift_open_date [14:57:22]req_shift_open_date done [14:57:22]produce_requested_data done [14:57:22]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29245,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [14:57:22]process_action_free close_receipt [14:57:22]json_value_free [14:57:22]json_value_free done [14:57:22]process_json_proto returns [14:57:22]Send response to host [14:57:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29245,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [14:57:22]free response buf [14:57:22]execute_script done [14:57:22]execute_script returns [14:57:22]free content buf [14:57:22]Sock 9.Close socket [14:57:22]Sock 9.Thread stoped [14:57:26]OFD Sender: No OFD packet to send [14:57:31]OFD Sender: No OFD packet to send [14:57:36]OFD Sender: No OFD packet to send [14:57:41]OFD Sender: No OFD packet to send [14:57:46]OFD Sender: No OFD packet to send [14:57:51]OFD Sender: No OFD packet to send [14:57:56]OFD Sender: No OFD packet to send [14:58:01]OFD Sender: No OFD packet to send [14:58:06]OFD Sender: No OFD packet to send [14:58:11]OFD Sender: No OFD packet to send [14:58:16]OFD Sender: No OFD packet to send [14:58:21]OFD Sender: No OFD packet to send [14:58:26]OFD Sender: No OFD packet to send [14:58:31]OFD Sender: No OFD packet to send [14:58:36]OFD Sender: No OFD packet to send [14:58:41]OFD Sender: No OFD packet to send [14:58:46]OFD Sender: No OFD packet to send [14:58:51]OFD Sender: No OFD packet to send [14:58:56]OFD Sender: No OFD packet to send [14:59:01]OFD Sender: No OFD packet to send [14:59:06]OFD Sender: No OFD packet to send [14:59:11]OFD Sender: No OFD packet to send [14:59:16]OFD Sender: No OFD packet to send [14:59:21]OFD Sender: No OFD packet to send [14:59:26]OFD Sender: No OFD packet to send [14:59:31]OFD Sender: No OFD packet to send [14:59:36]OFD Sender: No OFD packet to send [14:59:41]OFD Sender: No OFD packet to send [14:59:46]OFD Sender: No OFD packet to send [14:59:51]OFD Sender: No OFD packet to send [14:59:56]OFD Sender: No OFD packet to send [15:00:01]OFD Sender: No OFD packet to send [15:00:06]OFD Sender: No OFD packet to send [15:00:11]OFD Sender: No OFD packet to send [15:00:16]OFD Sender: No OFD packet to send [15:00:21]OFD Sender: No OFD packet to send [15:00:26]OFD Sender: No OFD packet to send [15:00:31]OFD Sender: No OFD packet to send [15:00:36]OFD Sender: No OFD packet to send [15:00:41]OFD Sender: No OFD packet to send [15:00:46]OFD Sender: No OFD packet to send [15:00:51]OFD Sender: No OFD packet to send [15:00:56]OFD Sender: No OFD packet to send [15:01:01]OFD Sender: No OFD packet to send [15:01:06]OFD Sender: No OFD packet to send [15:01:11]OFD Sender: No OFD packet to send [15:01:16]accept exits with 7 [15:01:16]New connection [15:01:16]New thread 3066785124 created [15:01:16]Thread 3066928484 joined [15:01:16]Waiting for new connection... [15:01:16] Sock 7.Parse request [15:01:16]Sock 7.Check first char [15:01:16]Sock 7.First char is OK [15:01:16]request: POST /json_proto HTTP/1.0 [15:01:16]Method: POST [15:01:16]URL: /json_proto [15:01:16]Method is POST - this is cgi request [15:01:16]url: /json_proto [15:01:16]query_string will be loaded in cgi processing [15:01:16]execute_cgi json_proto POST (null) [15:01:16]execute_cgi path=json_proto method=POST [15:01:16]POST find Content-Length [15:01:16]Host: 172.17.33.3:8080 [15:01:16]Content-Length: 836 [15:01:16]Content-Type: application/json [15:01:16] [15:01:16]POST finish read [15:01:16]Found Content-Length = 836 [15:01:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347630", "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1500.59 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:01:16]execute_script... [15:01: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)347630", "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1500.59 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:01:16]POST & json_proto [15:01:16]process_json_proto [15:01:16]json parsed OK: [15:01:16]protocol is kg_v1.0 [15:01:16]action value=close_receipt [15:01:16]process_action close_receipt [15:01:16]cmd_close_receipt [15:01:16]MH_GetDate [15:01:16]Write to MH i2c: F0 00 00 9D 9E 2A [15:01:16]Write i2c OK [15:01:16]MH_I2C_Read... [15:01:16]Read from MH i2c: F0 [15:01:16]MH_I2C_Read... [15:01:16]Read from MH i2c: F0 09 00 [15:01:16]MH_I2C_Read... [15:01:16]Read from MH i2c: F0 09 00 9D 9E 00 C6 EF 1B 66 23 5B 8F 65 DB [15:01:16]GetLastDocTimeStamp 1713106649 [15:01:16]current date 1713106886 [15:01:16]FM_GetShiftState [15:01:16]SAM_PROTO_GetShiftState [15:01:16]wFMCommunicate request_size=4 [15:01:16]MH_SAM_APDU [15:01:16]CAPDU: 80 13 01 00 [15:01:16]Write to MH i2c: E2 08 00 9E 9E 80 13 01 00 00 00 00 00 B9 [15:01:16]Write i2c OK [15:01:16]MH_I2C_Read... [15:01:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:01:16]Read from MH i2c: E2 [15:01:16]MH_I2C_Read... [15:01:16]Read from MH i2c: E2 0E 00 [15:01:16]MH_I2C_Read... [15:01:16]Read from MH i2c: E2 0E 00 9E 9E 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 65 [15:01:16]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [15:01:16]wFMCommunicate OK [15:01:16]SAM_PROTO_GetShiftState done [15:01:16]FM_GetShiftState done [15:01:16]opened in 1713053951 [15:01:16]opened+sec_in_day 1713140351 [15:01:16]quantity*price = 150059 [15:01:16]sum+1 = 150060 [15:01:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.59 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 0.00 Безнал.: 1500.59 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 156 14.04.2024 15:01 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 29246 ФПД: 28680108752216 1/tax-web-control/client/api/v1/ticket?date=20240414T150126&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29246&fm=28680108752216&tin=02508201610067®Number=0000138879044617&sum=150059 [15:01:17]StoreToDocumentArchive [15:01:17]shift 116 fd 29246 [15:01:17]save to /storage/0116/doc_00029246 [15:01:17]save last doc name /storage/0116/doc_00029246 to /storage/kkm_last_doc_name [15:01:17]save OK [15:01:17]Clear old archive folders... [15:01:17]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:01:17]tlvbuf is 012F0E90 [15:01:17]SAM_PROTO_ClearQueue [15:01:17]wFMCommunicate request_size=4 [15:01:17]MH_SAM_APDU [15:01:17]CAPDU: 80 09 00 00 [15:01:17]Write to MH i2c: E2 08 00 AB 9E 80 09 00 00 00 00 00 00 BB [15:01:17]Write i2c OK [15:01:17]MH_I2C_Read... [15:01:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:01:17]Read from MH i2c: E2 [15:01:17]MH_I2C_Read... [15:01:17]Read from MH i2c: E2 03 00 [15:01:17]MH_I2C_Read... [15:01:17]Read from MH i2c: E2 03 00 AB 9E 00 90 00 BD [15:01:17]RAPDU: 90 00 [15:01:17]wFMCommunicate OK [15:01:17]SAM_PROTO_ClearQueue done [15:01:17]KKMCreateOFDPacket [15:01:17]OFDProtocolAddRootSTLVToBuf [15:01:17]FM_MakeSignedData [15:01:17]FM_MakeSignedData [15:01:17]SAM_PROTO_SignData [15:01:17]wFMCommunicate request_size=4 [15:01:17]MH_SAM_APDU [15:01:17]CAPDU: 80 0D 01 02 [15:01:17]Write to MH i2c: E2 08 00 AC 9E 80 0D 01 02 00 00 00 00 C3 [15:01:17]Write i2c OK [15:01:17]MH_I2C_Read... [15:01:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:01:17]Read from MH i2c: E2 [15:01:17]MH_I2C_Read... [15:01:17]Read from MH i2c: E2 03 00 [15:01:17]MH_I2C_Read... [15:01:17]Read from MH i2c: E2 03 00 AC 9E 00 90 00 BE [15:01:17]RAPDU: 90 00 [15:01:17]wFMCommunicate OK [15:01:17]wFMCommunicate request_size=255 [15:01:17]MH_SAM_APDU [15:01:17]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 9C 00 00 00 F4 03 04 00 C6 EF 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3E 72 00 00 35 04 06 00 [15:01:17]Write to MH i2c: E2 02 01 AD 9E 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 9C 00 00 00 F4 03 04 00 C6 EF 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3E 72 00 00 35 04 06 00 00 00 59 [15:01:17]Write i2c OK [15:01:17]MH_I2C_Read... [15:01:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:01:17]Read from MH i2c: E2 [15:01:17]MH_I2C_Read... [15:01:17]Read from MH i2c: E2 03 00 [15:01:17]MH_I2C_Read... [15:01:17]Read from MH i2c: E2 03 00 AD 9E 00 90 00 BF [15:01:17]RAPDU: 90 00 [15:01:17]wFMCommunicate OK [15:01:17]wFMCommunicate request_size=11 [15:01:17]MH_SAM_APDU [15:01:17]CAPDU: 80 0D 02 02 06 1A 15 9B B1 BD 58 [15:01:17]Write to MH i2c: E2 0E 00 AE 9E 80 0D 02 02 06 00 1A 15 9B B1 BD 58 00 00 62 [15:01:17]Write i2c OK [15:01:17]MH_I2C_Read... [15:01:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:01:17]Read from MH i2c: E2 [15:01:17]MH_I2C_Read... [15:01:17]Read from MH i2c: E2 03 00 [15:01:17]MH_I2C_Read... [15:01:17]Read from MH i2c: E2 03 00 AE 9E 00 90 00 C0 [15:01:17]RAPDU: 90 00 [15:01:17]wFMCommunicate OK [15:01:17]wFMCommunicate request_size=4 [15:01:17]MH_SAM_APDU [15:01:17]CAPDU: 80 0D 03 02 [15:01:17]Write to MH i2c: E2 08 00 AF 9E 80 0D 03 02 00 00 00 00 C8 [15:01:17]Write i2c OK [15:01:17]MH_I2C_Read... [15:01:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:01:17]Read from MH i2c: E2 [15:01:17]MH_I2C_Read... [15:01:17]Read from MH i2c: E2 0B 00 [15:01:17]MH_I2C_Read... [15:01:17]Read from MH i2c: E2 0B 00 AF 9E 00 D2 76 ED 2D AA 7F 92 23 90 00 09 [15:01:17]RAPDU: D2 76 ED 2D AA 7F 92 23 90 00 [15:01:17]wFMCommunicate OK [15:01:17]SAM_PROTO_SignData done [15:01:17]FM_MakeSignedData done [15:01:17]CreateOFDProtocolMessage [15:01:17]wFMCommunicate request_size=4 [15:01:17]MH_SAM_APDU [15:01:17]CAPDU: 80 11 00 00 [15:01:17]Write to MH i2c: E2 08 00 B0 9E 80 11 00 00 00 00 00 00 C8 [15:01:17]Write i2c OK [15:01:17]MH_I2C_Read... [15:01:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:01:18]Read from MH i2c: E2 [15:01:18]MH_I2C_Read... [15:01:18]Read from MH i2c: E2 17 00 [15:01:18]MH_I2C_Read... [15:01:18]Read from MH i2c: E2 17 00 B0 9E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 17 [15:01:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:01:18]wFMCommunicate OK [15:01:18]CreateOFDProtocolMessage done [15:01:18]OFDSenderStorePacket 29246 [15:01:18]StoreOFDPacket docnum=29246 [15:01:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 8E CD 08 01 97 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 2D 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 9C 00 00 00 F4 03 04 00 C6 EF 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3E 72 00 00 35 04 06 00 1A 15 9B B1 BD 58 D2 76 ED 2D AA 7F 92 23 [15:01:18]CheckFolder [15:01:18]dirname=/storage/ofd_packets [15:01:18]CheckFolder done [15:01:18]ProducePacketName [15:01:18]name=ofd_packets/00029246 [15:01:18]NVStorageSaveData ofd_packets/00029246 [15:01:18]File name is /storage/ofd_packets/00029246 [15:01:18]Write 302 bytes [15:01:18]NVStorageSaveData done [15:01:18]OFDSenderStorePacket done [15:01:18]KKMCreateOFDPacket done [15:01:18]NVStorageSaveData kkm_last_timestamp [15:01:18]File name is /storage/kkm_last_timestamp [15:01:18]Write 4 bytes [15:01:18]NVStorageSaveData done [15:01:18]ExternCall_PrintAddStr [15:01:18]wPrintStart [15:01:18]Write to MH i2c: 01 00 00 B1 9E 4F [15:01:18]Write i2c OK [15:01:18]MH_I2C_Read... [15:01:18]Read from MH i2c: 01 [15:01:18]MH_I2C_Read... [15:01:18]Read from MH i2c: 01 07 00 [15:01:18]MH_I2C_Read... [15:01:18]Read from MH i2c: 01 07 00 B1 9E 00 00 00 00 00 FF 0F 64 [15:01:18]RasterBufferAndPrint [15:01:18]line Счет N : (1)347630 [15:01:18]line ИНН: 02508201610067 [15:01:18]line Контрольно-Кассовый Чек [15:01:18]line ПРОДАЖА [15:01:18]line ТРК (МРК, ГНК) : 31 [15:01:18]line Товар: 2710124130 [15:01:18]line SUPER-92-К-5 [15:01:18]line 22.980 * 65.30 [15:01:18]line = 1500.59 [15:01:18]line НДС 12% НСП 1% [15:01:18]line > о реализуемом товаре [15:01:18]line ИТОГО: 1500.59 [15:01:18]line НСП 1% : 13.28 [15:01:18]line НДС 12% : 159.35 [15:01:18]line Наличными: 0.00 [15:01:18]line Безнал.: 1500.59 [15:01:18]line Место: АЗС № 108 "Партнер Нефть" [15:01:18]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [15:01:18]line СНО: Общий режим [15:01:18]line Чек 156 14.04.2024 15:01 [15:01:18]line Смена: 116 ФФД: 1.0 [15:01:18]line ЗНМ: 0300000027 [15:01:18]line РНМ: 0000138879044617 [15:01:18]line Версия ККМ: 001 [15:01:18]line Платежная система: АКБ Кыргызстан [15:01:18]line ФМ: 0000000000963154 [15:01:18]line ФД: 29246 [15:01:18]line ФПД: 28680108752216 [15:01:18]line 1/tax-web-control/client/api/v1/ticket?date=20240414T150126&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29246&fm=28680108752216&tin=02508201610067®Number=0000138879044617&sum=150059 [15:01:18]OFD Sender: Processing packet 29246 [packets to send 8, broken 7] [15:01:18]ProducePacketName [15:01:18]name=ofd_packets/00029246 [15:01:18]OFD Sender: To server: pG, [15:01:18]CommunicateWithHost lk.salyk.kg:30040 [15:01:18]ConnectInit lk.salyk.kg [15:01:18]written 0, free lines is 4095 [15:01:18]Connected sock=10 [15:01:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 8E CD 08 01 97 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 2D 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 9C 00 00 00 F4 03 04 00 C6 EF 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3E 72 00 00 35 04 06 00 1A 15 9B B1 BD 58 D2 76 ED 2D AA 7F 92 23 [15:01:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 62 40 47 00 F6 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3E 72 00 00 F4 03 04 00 6A 9A 1B 66 B6 04 01 00 00 CB 8B E2 25 63 71 90 6E [15:01:18]CommunicateWithHost err = 0 [15:01:18]CheckOFDResponse [15:01:18]1017 (14) - 77093643461234 [15:01:18]1041 (16) - 0000000000963154 [15:01:18]1040 (4) - 29246 [15:01:18]1012 (4) - 14.04.2024 08:57 [15:01:18]1206 (1) - 0 [15:01:18]OFD Sender: Remove packet 29246 [15:01:18]ProducePacketName [15:01:18]name=ofd_packets/00029246 [15:01:18]NVStorageDeleteData [15:01:18]Write to MH i2c: 01 00 00 DA 9E 78 [15:01:18]Write i2c OK [15:01:18]MH_I2C_Read... [15:01:18]Read from MH i2c: 01 [15:01:18]MH_I2C_Read... [15:01:18]Read from MH i2c: 01 07 00 [15:01:18]MH_I2C_Read... [15:01:18]Read from MH i2c: 01 07 00 DA 9E 00 00 00 00 00 E2 0C 6D [15:01:18]RasterBufferAndPrint [15:01:18]line [15:01:18]line [15:01:18]line [15:01:18]line [15:01:18]line [15:01:18]written 0, free lines is 3304 [15:01:18]MH_Cut [15:01:18]Write to MH i2c: D1 01 00 E1 9E 01 51 [15:01:18]Write i2c OK [15:01:18]MH_I2C_Read... [15:01:18]Read from MH i2c: D1 [15:01:18]MH_I2C_Read... [15:01:18]Read from MH i2c: D1 01 00 [15:01:18]MH_I2C_Read... [15:01:18]Read from MH i2c: D1 01 00 E1 9E 00 50 [15:01:18]Write to MH i2c: 01 00 00 E2 9E 80 [15:01:18]Write i2c OK [15:01:18]MH_I2C_Read... [15:01:19]OFD Sender: No OFD packet to send [15:01:19]*** Cut start [15:01:19]*** Partial cut [15:01:19]*** CUTSNS_PIN = 1 [15:01:19]*** CUTSNS_PIN = 0 [15:01:19]*** Brake cut motor [15:01:20]Read from MH i2c: 01 [15:01:20]MH_I2C_Read... [15:01:20]*** Stop cut motor [15:01:20]*** Cut end [15:01:20]Read from MH i2c: 01 07 00 [15:01:20]MH_I2C_Read... [15:01:20]Read from MH i2c: 01 07 00 E2 9E 00 00 00 00 00 FF 0F 95 [15:01:20]process_action close_receipt done [15:01:20]requested_data is exist [15:01:20]produce_requested_data [15:01:20]requested_item fm.sn is exist - process it [15:01:20]wFMCommunicate request_size=4 [15:01:20]MH_SAM_APDU [15:01:20]CAPDU: 80 11 00 00 [15:01:20]Write to MH i2c: E2 08 00 E3 9E 80 11 00 00 00 00 00 00 FB [15:01:20]Write i2c OK [15:01:20]MH_I2C_Read... [15:01:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:01:20]Read from MH i2c: E2 [15:01:20]MH_I2C_Read... [15:01:20]Read from MH i2c: E2 17 00 [15:01:20]MH_I2C_Read... [15:01:20]Read from MH i2c: E2 17 00 E3 9E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 4A [15:01:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:01:20]wFMCommunicate OK [15:01:20]requested_item fd.num is exist - process it [15:01:20]SAM_PROTO_GetFieldsCounters [15:01:20]wFMCommunicate request_size=4 [15:01:20]MH_SAM_APDU [15:01:20]CAPDU: 80 13 00 00 [15:01:20]Write to MH i2c: E2 08 00 E4 9E 80 13 00 00 00 00 00 00 FE [15:01:20]Write i2c OK [15:01:20]MH_I2C_Read... [15:01:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:01:20]Read from MH i2c: E2 [15:01:20]MH_I2C_Read... [15:01:20]Read from MH i2c: E2 62 00 [15:01:20]MH_I2C_Read... [15:01:20]Read from MH i2c: E2 62 00 E4 9E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 3E 72 00 00 0E 04 04 00 74 00 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 34 [15:01:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 3E 72 00 00 0E 04 04 00 74 00 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 [15:01:20]wFMCommunicate OK [15:01:20]SAM_PROTO_GetFieldsCounters done [15:01:20]requested_item shift.num is exist - process it [15:01:20]requested_item shift.opened is exist - process it [15:01:20]req_shift_opened [15:01:20]FM_GetShiftState [15:01:20]SAM_PROTO_GetShiftState [15:01:20]wFMCommunicate request_size=4 [15:01:20]MH_SAM_APDU [15:01:20]CAPDU: 80 13 01 00 [15:01:20]Write to MH i2c: E2 08 00 E5 9E 80 13 01 00 00 00 00 00 00 [15:01:20]Write i2c OK [15:01:20]MH_I2C_Read... [15:01:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:01:20]Read from MH i2c: E2 [15:01:20]MH_I2C_Read... [15:01:20]Read from MH i2c: E2 0E 00 [15:01:20]MH_I2C_Read... [15:01:20]Read from MH i2c: E2 0E 00 E5 9E 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 AC [15:01:20]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [15:01:20]wFMCommunicate OK [15:01:20]SAM_PROTO_GetShiftState done [15:01:20]FM_GetShiftState done [15:01:20]req_shift_opened done [15:01:20]requested_item shift.open_date is exist - process it [15:01:20]req_shift_open_date [15:01:20]req_shift_open_date done [15:01:20]produce_requested_data done [15:01:20]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29246,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [15:01:20]process_action_free close_receipt [15:01:20]json_value_free [15:01:20]json_value_free done [15:01:20]process_json_proto returns [15:01:20]Send response to host [15:01:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29246,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [15:01:20]free response buf [15:01:20]execute_script done [15:01:20]execute_script returns [15:01:20]free content buf [15:01:20]Sock 7.Close socket [15:01:20]Sock 7.Thread stoped [15:01:24]OFD Sender: No OFD packet to send [15:01:29]OFD Sender: No OFD packet to send [15:01:34]OFD Sender: No OFD packet to send [15:01:39]OFD Sender: No OFD packet to send [15:01:44]OFD Sender: No OFD packet to send [15:01:49]OFD Sender: No OFD packet to send [15:01:54]OFD Sender: No OFD packet to send [15:01:59]OFD Sender: No OFD packet to send [15:02:04]OFD Sender: No OFD packet to send [15:02:09]OFD Sender: No OFD packet to send [15:02:14]OFD Sender: No OFD packet to send [15:02:19]OFD Sender: No OFD packet to send [15:02:24]OFD Sender: No OFD packet to send [15:02:29]OFD Sender: No OFD packet to send [15:02:34]OFD Sender: No OFD packet to send [15:02:39]OFD Sender: No OFD packet to send [15:02:44]OFD Sender: No OFD packet to send [15:02:49]OFD Sender: No OFD packet to send [15:02:54]OFD Sender: No OFD packet to send [15:02:59]OFD Sender: No OFD packet to send [15:03:04]OFD Sender: No OFD packet to send [15:03:09]OFD Sender: No OFD packet to send [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: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:09]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [15:04:59]OFD Sender: No OFD packet to send [15:05:04]OFD Sender: No OFD packet to send [15:05:09]OFD Sender: No OFD packet to send [15:05:14]OFD Sender: No OFD packet to send [15:05:19]OFD Sender: No OFD packet to send [15:05:24]OFD Sender: No OFD packet to send [15:05:29]OFD Sender: No OFD packet to send [15:05:34]OFD Sender: No OFD packet to send [15:05:39]OFD Sender: No OFD packet to send [15:05:44]OFD Sender: No OFD packet to send [15:05:49]OFD Sender: No OFD packet to send [15:05:54]OFD Sender: No OFD packet to send [15:05:59]OFD Sender: No OFD packet to send [15:06:04]OFD Sender: No OFD packet to send [15:06:09]OFD Sender: No OFD packet to send [15:06:14]OFD Sender: No OFD packet to send [15:06:19]OFD Sender: No OFD packet to send [15:06:24]OFD Sender: No OFD packet to send [15:06:29]OFD Sender: No OFD packet to send [15:06:34]OFD Sender: No OFD packet to send [15:06:39]OFD Sender: No OFD packet to send [15:06:44]OFD Sender: No OFD packet to send [15:06:49]OFD Sender: No OFD packet to send [15:06:54]OFD Sender: No OFD packet to send [15:06:59]OFD Sender: No OFD packet to send [15:07:04]OFD Sender: No OFD packet to send [15:07:09]OFD Sender: No OFD packet to send [15:07:14]OFD Sender: No OFD packet to send [15:07:19]OFD Sender: No OFD packet to send [15:07:24]OFD Sender: No OFD packet to send [15:07:29]OFD Sender: No OFD packet to send [15:07:34]OFD Sender: No OFD packet to send [15:07:39]OFD Sender: No OFD packet to send [15:07:44]OFD Sender: No OFD packet to send [15:07:49]OFD Sender: No OFD packet to send [15:07:54]OFD Sender: No OFD packet to send [15:07:59]OFD Sender: No OFD packet to send [15:08:04]OFD Sender: No OFD packet to send [15:08:09]OFD Sender: No OFD packet to send [15:08:14]OFD Sender: No OFD packet to send [15:08:19]OFD Sender: No OFD packet to send [15:08:24]OFD Sender: No OFD packet to send [15:08:29]OFD Sender: No OFD packet to send [15:08:34]OFD Sender: No OFD packet to send [15:08:39]OFD Sender: No OFD packet to send [15:08:44]OFD Sender: No OFD packet to send [15:08:49]OFD Sender: No OFD packet to send [15:08:54]OFD Sender: No OFD packet to send [15:08:59]OFD Sender: No OFD packet to send [15:09:04]OFD Sender: No OFD packet to send [15:09:09]OFD Sender: No OFD packet to send [15:09:14]OFD Sender: No OFD packet to send [15:09:19]OFD Sender: No OFD packet to send [15:09:24]OFD Sender: No OFD packet to send [15:09:29]OFD Sender: No OFD packet to send [15:09:34]OFD Sender: No OFD packet to send [15:09:39]OFD Sender: No OFD packet to send [15:09:44]OFD Sender: No OFD packet to send [15:09:49]OFD Sender: No OFD packet to send [15:09:54]OFD Sender: No OFD packet to send [15:09:59]OFD Sender: No OFD packet to send [15:10:04]OFD Sender: No OFD packet to send [15:10:09]OFD Sender: No OFD packet to send [15:10:14]OFD Sender: No OFD packet to send [15:10:19]OFD Sender: No OFD packet to send [15:10:24]OFD Sender: No OFD packet to send [15:10:29]OFD Sender: No OFD packet to send [15:10:34]OFD Sender: No OFD packet to send [15:10:39]OFD Sender: No OFD packet to send [15:10:44]OFD Sender: No OFD packet to send [15:10:49]OFD Sender: No OFD packet to send [15:10:54]OFD Sender: No OFD packet to send [15:10:59]OFD Sender: No OFD packet to send [15:11:04]OFD Sender: No OFD packet to send [15:11:09]OFD Sender: No OFD packet to send [15:11:14]OFD Sender: No OFD packet to send [15:11:19]OFD Sender: No OFD packet to send [15:11:19]accept exits with 9 [15:11:19]New connection [15:11:19]New thread 3066928484 created [15:11:19]Thread 3066785124 joined [15:11:19]Waiting for new connection... [15:11:19] Sock 9.Parse request [15:11:19]Sock 9.Check first char [15:11:19]Sock 9.First char is OK [15:11:19]request: POST /json_proto HTTP/1.0 [15:11:19]Method: POST [15:11:19]URL: /json_proto [15:11:19]Method is POST - this is cgi request [15:11:19]url: /json_proto [15:11:19]query_string will be loaded in cgi processing [15:11:19]execute_cgi json_proto POST (null) [15:11:19]execute_cgi path=json_proto method=POST [15:11:19]POST find Content-Length [15:11:19]Host: 172.17.33.3:8080 [15:11:19]Content-Length: 808 [15:11:19]Content-Type: application/json [15:11:19] [15:11:19]POST finish read [15:11:19]Found Content-Length = 808 [15:11:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347631", "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" : 46.660, "sum" : 3000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:11:19]execute_script... [15:11: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)347631", "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" : 46.660, "sum" : 3000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:11:19]POST & json_proto [15:11:19]process_json_proto [15:11:19]json parsed OK: [15:11:19]protocol is kg_v1.0 [15:11:19]action value=close_receipt [15:11:19]process_action close_receipt [15:11:19]cmd_close_receipt [15:11:19]MH_GetDate [15:11:19]Write to MH i2c: F0 00 00 E6 9E 73 [15:11:19]Write i2c OK [15:11:19]MH_I2C_Read... [15:11:19]Read from MH i2c: F0 [15:11:19]MH_I2C_Read... [15:11:19]Read from MH i2c: F0 09 00 [15:11:19]MH_I2C_Read... [15:11:19]Read from MH i2c: F0 09 00 E6 9E 00 22 F2 1B 66 23 5B 8F 65 83 [15:11:20]GetLastDocTimeStamp 1713106886 [15:11:20]current date 1713107490 [15:11:20]FM_GetShiftState [15:11:20]SAM_PROTO_GetShiftState [15:11:20]wFMCommunicate request_size=4 [15:11:20]MH_SAM_APDU [15:11:20]CAPDU: 80 13 01 00 [15:11:20]Write to MH i2c: E2 08 00 E7 9E 80 13 01 00 00 00 00 00 02 [15:11:20]Write i2c OK [15:11:20]MH_I2C_Read... [15:11:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:11:20]Read from MH i2c: E2 [15:11:20]MH_I2C_Read... [15:11:20]Read from MH i2c: E2 0E 00 [15:11:20]MH_I2C_Read... [15:11:20]Read from MH i2c: E2 0E 00 E7 9E 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 AE [15:11:20]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [15:11:20]wFMCommunicate OK [15:11:20]SAM_PROTO_GetShiftState done [15:11:20]FM_GetShiftState done [15:11:20]opened in 1713053951 [15:11:20]opened+sec_in_day 1713140351 [15:11:20]quantity*price = 300023 [15:11:20]sum+1 = 300025 [15:11:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.24 НСП 1% : 26.55 НДС 12% : 318.61 Наличными: 0.00 Безнал.: 3000.24 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 157 14.04.2024 15:11 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29247 ФПД: 108041912460069 1/tax-web-control/client/api/v1/ticket?date=20240414T151130&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29247&fm=108041912460069&tin=02508201610067®Number=0000138879044617&sum=300024 [15:11:21]StoreToDocumentArchive [15:11:21]shift 116 fd 29247 [15:11:21]save to /storage/0116/doc_00029247 [15:11:21]save last doc name /storage/0116/doc_00029247 to /storage/kkm_last_doc_name [15:11:21]save OK [15:11:21]Clear old archive folders... [15:11:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:11:21]tlvbuf is 0121A880 [15:11:21]SAM_PROTO_ClearQueue [15:11:21]wFMCommunicate request_size=4 [15:11:21]MH_SAM_APDU [15:11:21]CAPDU: 80 09 00 00 [15:11:21]Write to MH i2c: E2 08 00 F4 9E 80 09 00 00 00 00 00 00 04 [15:11:21]Write i2c OK [15:11:21]MH_I2C_Read... [15:11:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:11:21]Read from MH i2c: E2 [15:11:21]MH_I2C_Read... [15:11:21]Read from MH i2c: E2 03 00 [15:11:21]MH_I2C_Read... [15:11:21]Read from MH i2c: E2 03 00 F4 9E 00 90 00 06 [15:11:21]RAPDU: 90 00 [15:11:21]wFMCommunicate OK [15:11:21]SAM_PROTO_ClearQueue done [15:11:21]KKMCreateOFDPacket [15:11:21]OFDProtocolAddRootSTLVToBuf [15:11:21]FM_MakeSignedData [15:11:21]FM_MakeSignedData [15:11:21]SAM_PROTO_SignData [15:11:21]wFMCommunicate request_size=4 [15:11:21]MH_SAM_APDU [15:11:21]CAPDU: 80 0D 01 02 [15:11:21]Write to MH i2c: E2 08 00 F5 9E 80 0D 01 02 00 00 00 00 0C [15:11:21]Write i2c OK [15:11:21]MH_I2C_Read... [15:11:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:11:21]Read from MH i2c: E2 [15:11:21]MH_I2C_Read... [15:11:21]Read from MH i2c: E2 03 00 [15:11:21]MH_I2C_Read... [15:11:21]Read from MH i2c: E2 03 00 F5 9E 00 90 00 07 [15:11:21]RAPDU: 90 00 [15:11:21]wFMCommunicate OK [15:11:21]wFMCommunicate request_size=255 [15:11:21]MH_SAM_APDU [15:11: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 44 B6 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 F8 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 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 00 00 00 00 00 00 39 04 06 00 F8 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 22 F2 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3F 72 00 00 35 04 06 00 62 [15:11:21]Write to MH i2c: E2 02 01 F6 9E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 B6 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 F8 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 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 00 00 00 00 00 00 39 04 06 00 F8 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 22 F2 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3F 72 00 00 35 04 06 00 62 00 00 24 [15:11:21]Write i2c OK [15:11:21]MH_I2C_Read... [15:11:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:11:21]Read from MH i2c: E2 [15:11:21]MH_I2C_Read... [15:11:21]Read from MH i2c: E2 03 00 [15:11:21]MH_I2C_Read... [15:11:21]Read from MH i2c: E2 03 00 F6 9E 00 90 00 08 [15:11:21]RAPDU: 90 00 [15:11:21]wFMCommunicate OK [15:11:21]wFMCommunicate request_size=10 [15:11:21]MH_SAM_APDU [15:11:21]CAPDU: 80 0D 02 02 05 43 77 D0 23 25 [15:11:21]Write to MH i2c: E2 0D 00 F7 9E 80 0D 02 02 05 00 43 77 D0 23 25 00 00 EB [15:11:21]Write i2c OK [15:11:21]MH_I2C_Read... [15:11:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:11:21]Read from MH i2c: E2 [15:11:21]MH_I2C_Read... [15:11:21]Read from MH i2c: E2 03 00 [15:11:21]MH_I2C_Read... [15:11:21]Read from MH i2c: E2 03 00 F7 9E 00 90 00 09 [15:11:21]RAPDU: 90 00 [15:11:21]wFMCommunicate OK [15:11:21]wFMCommunicate request_size=4 [15:11:21]MH_SAM_APDU [15:11:21]CAPDU: 80 0D 03 02 [15:11:21]Write to MH i2c: E2 08 00 F8 9E 80 0D 03 02 00 00 00 00 11 [15:11:21]Write i2c OK [15:11:21]MH_I2C_Read... [15:11:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:11:21]Read from MH i2c: E2 [15:11:21]MH_I2C_Read... [15:11:21]Read from MH i2c: E2 0B 00 [15:11:21]MH_I2C_Read... [15:11:21]Read from MH i2c: E2 0B 00 F8 9E 00 E9 B0 33 6D 3A F5 4B 64 90 00 29 [15:11:21]RAPDU: E9 B0 33 6D 3A F5 4B 64 90 00 [15:11:21]wFMCommunicate OK [15:11:21]SAM_PROTO_SignData done [15:11:21]FM_MakeSignedData done [15:11:21]CreateOFDProtocolMessage [15:11:21]wFMCommunicate request_size=4 [15:11:21]MH_SAM_APDU [15:11:21]CAPDU: 80 11 00 00 [15:11:21]Write to MH i2c: E2 08 00 F9 9E 80 11 00 00 00 00 00 00 11 [15:11:21]Write i2c OK [15:11:21]MH_I2C_Read... [15:11:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:11:21]Read from MH i2c: E2 [15:11:21]MH_I2C_Read... [15:11:21]Read from MH i2c: E2 17 00 [15:11:21]MH_I2C_Read... [15:11:21]Read from MH i2c: E2 17 00 F9 9E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 60 [15:11:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:11:21]wFMCommunicate OK [15:11:21]CreateOFDProtocolMessage done [15:11:21]OFDSenderStorePacket 29247 [15:11:21]StoreOFDPacket docnum=29247 [15:11:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 39 A5 07 01 53 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 44 B6 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 F8 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 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 00 00 00 00 00 00 39 04 06 00 F8 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 22 F2 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3F 72 00 00 35 04 06 00 62 43 77 D0 23 25 E9 B0 33 6D 3A F5 4B 64 [15:11:21]CheckFolder [15:11:21]dirname=/storage/ofd_packets [15:11:21]CheckFolder done [15:11:21]ProducePacketName [15:11:21]name=ofd_packets/00029247 [15:11:21]NVStorageSaveData ofd_packets/00029247 [15:11:21]File name is /storage/ofd_packets/00029247 [15:11:21]Write 301 bytes [15:11:21]NVStorageSaveData done [15:11:21]OFDSenderStorePacket done [15:11:21]KKMCreateOFDPacket done [15:11:21]NVStorageSaveData kkm_last_timestamp [15:11:21]File name is /storage/kkm_last_timestamp [15:11:21]Write 4 bytes [15:11:21]NVStorageSaveData done [15:11:21]ExternCall_PrintAddStr [15:11:21]wPrintStart [15:11:21]Write to MH i2c: 01 00 00 FA 9E 98 [15:11:21]Write i2c OK [15:11:21]MH_I2C_Read... [15:11:21]Read from MH i2c: 01 [15:11:21]MH_I2C_Read... [15:11:21]Read from MH i2c: 01 07 00 [15:11:21]MH_I2C_Read... [15:11:21]Read from MH i2c: 01 07 00 FA 9E 00 00 00 00 00 FF 0F AD [15:11:21]RasterBufferAndPrint [15:11:21]line Счет N : (1)347631 [15:11:21]line ИНН: 02508201610067 [15:11:21]line Контрольно-Кассовый Чек [15:11:21]line ПРОДАЖА [15:11:21]line ТРК (МРК, ГНК) : 42 [15:11:21]line Товар: 2710124130 [15:11:21]line Аи-92-К-5 [15:11:21]line 46.660 * 64.30 [15:11:21]line = 3000.24 [15:11:21]line НДС 12% НСП 1% [15:11:21]line > о реализуемом товаре [15:11:21]line ИТОГО: 3000.24 [15:11:21]line НСП 1% : 26.55 [15:11:21]line НДС 12% : 318.61 [15:11:21]line Наличными: 0.00 [15:11:21]line Безнал.: 3000.24 [15:11:21]line Место: АЗС № 108 "Партнер Нефть" [15:11:21]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [15:11:21]line СНО: Общий режим [15:11:21]line Чек 157 14.04.2024 15:11 [15:11:21]line Смена: 116 ФФД: 1.0 [15:11:21]line ЗНМ: 0300000027 [15:11:21]line РНМ: 0000138879044617 [15:11:21]line Версия ККМ: 001 [15:11:21]line Платежная система: О! деньги [15:11:21]line ФМ: 0000000000963154 [15:11:21]line ФД: 29247 [15:11:21]line ФПД: 108041912460069 [15:11:21]line 1/tax-web-control/client/api/v1/ticket?date=20240414T151130&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29247&fm=108041912460069&tin=02508201610067®Number=0000138879044617&sum=300024 [15:11:22]OFD Sender: Processing packet 29247 [packets to send 8, broken 7] [15:11:22]ProducePacketName [15:11:22]name=ofd_packets/00029247 [15:11:22]OFD Sender: To server: pG, [15:11:22]CommunicateWithHost lk.salyk.kg:30040 [15:11:22]ConnectInit lk.salyk.kg [15:11:22]written 0, free lines is 4095 [15:11:22]Connected sock=10 [15:11:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 39 A5 07 01 53 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 44 B6 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 F8 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 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 00 00 00 00 00 00 39 04 06 00 F8 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 22 F2 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3F 72 00 00 35 04 06 00 62 43 77 D0 23 25 E9 B0 33 6D 3A F5 4B 64 [15:11:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 62 AD 47 00 23 FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3F 72 00 00 F4 03 04 00 C6 9C 1B 66 B6 04 01 00 00 4A 41 8C EF EE 94 7A CE [15:11:22]CommunicateWithHost err = 0 [15:11:22]CheckOFDResponse [15:11:22]1017 (14) - 77093643461234 [15:11:22]1041 (16) - 0000000000963154 [15:11:22]1040 (4) - 29247 [15:11:22]1012 (4) - 14.04.2024 09:07 [15:11:22]1206 (1) - 0 [15:11:22]OFD Sender: Remove packet 29247 [15:11:22]ProducePacketName [15:11:22]name=ofd_packets/00029247 [15:11:22]NVStorageDeleteData [15:11:22]Write to MH i2c: 01 00 00 23 9F C2 [15:11:22]Write i2c OK [15:11:22]MH_I2C_Read... [15:11:22]Read from MH i2c: 01 [15:11:22]MH_I2C_Read... [15:11:22]Read from MH i2c: 01 07 00 [15:11:22]MH_I2C_Read... [15:11:22]Read from MH i2c: 01 07 00 23 9F 00 00 00 00 00 DB 0C B0 [15:11:22]RasterBufferAndPrint [15:11:22]line [15:11:22]line [15:11:22]line [15:11:22]line [15:11:22]line [15:11:22]written 0, free lines is 3298 [15:11:22]MH_Cut [15:11:22]Write to MH i2c: D1 01 00 2A 9F 01 9B [15:11:22]Write i2c OK [15:11:22]MH_I2C_Read... [15:11:22]Read from MH i2c: D1 [15:11:22]MH_I2C_Read... [15:11:22]Read from MH i2c: D1 01 00 [15:11:22]MH_I2C_Read... [15:11:22]Read from MH i2c: D1 01 00 2A 9F 00 9A [15:11:22]Write to MH i2c: 01 00 00 2B 9F CA [15:11:22]Write i2c OK [15:11:22]MH_I2C_Read... [15:11:22]OFD Sender: No OFD packet to send [15:11:23]*** Cut start [15:11:23]*** Partial cut [15:11:23]*** CUTSNS_PIN = 1 [15:11:23]*** CUTSNS_PIN = 0 [15:11:23]*** Brake cut motor [15:11:23]Read from MH i2c: 01 [15:11:23]MH_I2C_Read... [15:11:23]*** Stop cut motor [15:11:23]*** Cut end [15:11:23]Read from MH i2c: 01 07 00 [15:11:23]MH_I2C_Read... [15:11:23]Read from MH i2c: 01 07 00 2B 9F 00 00 00 00 00 FF 0F DF [15:11:23]process_action close_receipt done [15:11:23]requested_data is exist [15:11:23]produce_requested_data [15:11:23]requested_item fm.sn is exist - process it [15:11:23]wFMCommunicate request_size=4 [15:11:23]MH_SAM_APDU [15:11:23]CAPDU: 80 11 00 00 [15:11:23]Write to MH i2c: E2 08 00 2C 9F 80 11 00 00 00 00 00 00 45 [15:11:23]Write i2c OK [15:11:23]MH_I2C_Read... [15:11:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:11:23]Read from MH i2c: E2 [15:11:23]MH_I2C_Read... [15:11:23]Read from MH i2c: E2 17 00 [15:11:23]MH_I2C_Read... [15:11:23]Read from MH i2c: E2 17 00 2C 9F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 94 [15:11:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:11:23]wFMCommunicate OK [15:11:23]requested_item fd.num is exist - process it [15:11:23]SAM_PROTO_GetFieldsCounters [15:11:23]wFMCommunicate request_size=4 [15:11:23]MH_SAM_APDU [15:11:23]CAPDU: 80 13 00 00 [15:11:23]Write to MH i2c: E2 08 00 2D 9F 80 13 00 00 00 00 00 00 48 [15:11:23]Write i2c OK [15:11:23]MH_I2C_Read... [15:11:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:11:24]Read from MH i2c: E2 [15:11:24]MH_I2C_Read... [15:11:24]Read from MH i2c: E2 62 00 [15:11:24]MH_I2C_Read... [15:11:24]Read from MH i2c: E2 62 00 2D 9F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 3F 72 00 00 0E 04 04 00 74 00 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 82 [15:11:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 3F 72 00 00 0E 04 04 00 74 00 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 [15:11:24]wFMCommunicate OK [15:11:24]SAM_PROTO_GetFieldsCounters done [15:11:24]requested_item shift.num is exist - process it [15:11:24]requested_item shift.opened is exist - process it [15:11:24]req_shift_opened [15:11:24]FM_GetShiftState [15:11:24]SAM_PROTO_GetShiftState [15:11:24]wFMCommunicate request_size=4 [15:11:24]MH_SAM_APDU [15:11:24]CAPDU: 80 13 01 00 [15:11:24]Write to MH i2c: E2 08 00 2E 9F 80 13 01 00 00 00 00 00 4A [15:11:24]Write i2c OK [15:11:24]MH_I2C_Read... [15:11:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:11:24]Read from MH i2c: E2 [15:11:24]MH_I2C_Read... [15:11:24]Read from MH i2c: E2 0E 00 [15:11:24]MH_I2C_Read... [15:11:24]Read from MH i2c: E2 0E 00 2E 9F 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 F6 [15:11:24]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [15:11:24]wFMCommunicate OK [15:11:24]SAM_PROTO_GetShiftState done [15:11:24]FM_GetShiftState done [15:11:24]req_shift_opened done [15:11:24]requested_item shift.open_date is exist - process it [15:11:24]req_shift_open_date [15:11:24]req_shift_open_date done [15:11:24]produce_requested_data done [15:11:24]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29247,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [15:11:24]process_action_free close_receipt [15:11:24]json_value_free [15:11:24]json_value_free done [15:11:24]process_json_proto returns [15:11:24]Send response to host [15:11:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29247,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [15:11:24]free response buf [15:11:24]execute_script done [15:11:24]execute_script returns [15:11:24]free content buf [15:11:24]Sock 9.Close socket [15:11:24]Sock 9.Thread stoped [15:11:27]OFD Sender: No OFD packet to send [15:11:32]OFD Sender: No OFD packet to send [15:11:37]OFD Sender: No OFD packet to send [15:11:42]OFD Sender: No OFD packet to send [15:11:47]OFD Sender: No OFD packet to send [15:11:52]OFD Sender: No OFD packet to send [15:11:57]OFD Sender: No OFD packet to send [15:12:02]OFD Sender: No OFD packet to send [15:12:07]OFD Sender: No OFD packet to send [15:12:12]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:21]accept exits with 7 [15:13:21]New connection [15:13:21]New thread 3066785124 created [15:13:21]Thread 3066928484 joined [15:13:21]Waiting for new connection... [15:13:21] Sock 7.Parse request [15:13:21]Sock 7.Check first char [15:13:21]Sock 7.First char is OK [15:13:21]request: POST /json_proto HTTP/1.0 [15:13:21]Method: POST [15:13:21]URL: /json_proto [15:13:21]Method is POST - this is cgi request [15:13:21]url: /json_proto [15:13:21]query_string will be loaded in cgi processing [15:13:21]execute_cgi json_proto POST (null) [15:13:21]execute_cgi path=json_proto method=POST [15:13:21]POST find Content-Length [15:13:21]Host: 172.17.33.3:8080 [15:13:21]Content-Length: 816 [15:13:21]Content-Type: application/json [15:13:21] [15:13:21]POST finish read [15:13:21]Found Content-Length = 816 [15:13:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347632", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.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" ] } } [15:13:21]execute_script... [15:13: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)347632", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.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" ] } } [15:13:21]POST & json_proto [15:13:21]process_json_proto [15:13:21]json parsed OK: [15:13:21]protocol is kg_v1.0 [15:13:21]action value=close_receipt [15:13:21]process_action close_receipt [15:13:21]cmd_close_receipt [15:13:21]MH_GetDate [15:13:21]Write to MH i2c: F0 00 00 2F 9F BD [15:13:21]Write i2c OK [15:13:21]MH_I2C_Read... [15:13:21]Read from MH i2c: F0 [15:13:21]MH_I2C_Read... [15:13:21]Read from MH i2c: F0 09 00 [15:13:21]MH_I2C_Read... [15:13:21]Read from MH i2c: F0 09 00 2F 9F 00 9C F2 1B 66 23 5B 8F 65 47 [15:13:21]GetLastDocTimeStamp 1713107490 [15:13:21]current date 1713107612 [15:13:21]FM_GetShiftState [15:13:21]SAM_PROTO_GetShiftState [15:13:21]wFMCommunicate request_size=4 [15:13:21]MH_SAM_APDU [15:13:21]CAPDU: 80 13 01 00 [15:13:21]Write to MH i2c: E2 08 00 30 9F 80 13 01 00 00 00 00 00 4C [15:13:21]Write i2c OK [15:13:21]MH_I2C_Read... [15:13:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:13:22]Read from MH i2c: E2 [15:13:22]MH_I2C_Read... [15:13:22]Read from MH i2c: E2 0E 00 [15:13:22]MH_I2C_Read... [15:13:22]Read from MH i2c: E2 0E 00 30 9F 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 F8 [15:13:22]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [15:13:22]wFMCommunicate OK [15:13:22]SAM_PROTO_GetShiftState done [15:13:22]FM_GetShiftState done [15:13:22]opened in 1713053951 [15:13:22]opened+sec_in_day 1713140351 [15:13:22]quantity*price = 100056 [15:13:22]sum+1 = 100058 [15:13:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.57 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.57 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 158 14.04.2024 15:13 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 29248 ФПД: 77599454889499 1/tax-web-control/client/api/v1/ticket?date=20240414T151332&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29248&fm=77599454889499&tin=02508201610067®Number=0000138879044617&sum=100057 [15:13:23]StoreToDocumentArchive [15:13:23]shift 116 fd 29248 [15:13:23]save to /storage/0116/doc_00029248 [15:13:23]save last doc name /storage/0116/doc_00029248 to /storage/kkm_last_doc_name [15:13:23]save OK [15:13:23]Clear old archive folders... [15:13:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:13:23]tlvbuf is 011CB1A0 [15:13:23]SAM_PROTO_ClearQueue [15:13:23]wFMCommunicate request_size=4 [15:13:23]MH_SAM_APDU [15:13:23]CAPDU: 80 09 00 00 [15:13:23]Write to MH i2c: E2 08 00 3D 9F 80 09 00 00 00 00 00 00 4E [15:13:23]Write i2c OK [15:13:23]MH_I2C_Read... [15:13:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:13:23]Read from MH i2c: E2 [15:13:23]MH_I2C_Read... [15:13:23]Read from MH i2c: E2 03 00 [15:13:23]MH_I2C_Read... [15:13:23]Read from MH i2c: E2 03 00 3D 9F 00 90 00 50 [15:13:23]RAPDU: 90 00 [15:13:23]wFMCommunicate OK [15:13:23]SAM_PROTO_ClearQueue done [15:13:23]KKMCreateOFDPacket [15:13:23]OFDProtocolAddRootSTLVToBuf [15:13:23]FM_MakeSignedData [15:13:23]FM_MakeSignedData [15:13:23]SAM_PROTO_SignData [15:13:23]wFMCommunicate request_size=4 [15:13:23]MH_SAM_APDU [15:13:23]CAPDU: 80 0D 01 02 [15:13:23]Write to MH i2c: E2 08 00 3E 9F 80 0D 01 02 00 00 00 00 56 [15:13:23]Write i2c OK [15:13:23]MH_I2C_Read... [15:13:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:13:23]Read from MH i2c: E2 [15:13:23]MH_I2C_Read... [15:13:23]Read from MH i2c: E2 03 00 [15:13:23]MH_I2C_Read... [15:13:23]Read from MH i2c: E2 03 00 3E 9F 00 90 00 51 [15:13:23]RAPDU: 90 00 [15:13:23]wFMCommunicate OK [15:13:23]wFMCommunicate request_size=255 [15:13:23]MH_SAM_APDU [15:13:23]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 9E 00 00 00 F4 03 04 00 9C F2 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 40 72 00 00 35 04 06 00 46 93 87 F1 [15:13:23]Write to MH i2c: E2 02 01 3F 9F 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 9E 00 00 00 F4 03 04 00 9C F2 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 40 72 00 00 35 04 06 00 46 93 87 F1 00 00 CB [15:13:23]Write i2c OK [15:13:23]MH_I2C_Read... [15:13:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:13:23]Read from MH i2c: E2 [15:13:23]MH_I2C_Read... [15:13:23]Read from MH i2c: E2 03 00 [15:13:23]MH_I2C_Read... [15:13:23]Read from MH i2c: E2 03 00 3F 9F 00 90 00 52 [15:13:23]RAPDU: 90 00 [15:13:23]wFMCommunicate OK [15:13:23]wFMCommunicate request_size=7 [15:13:23]MH_SAM_APDU [15:13:23]CAPDU: 80 0D 02 02 02 86 1B [15:13:23]Write to MH i2c: E2 0A 00 40 9F 80 0D 02 02 02 00 86 1B 00 00 FE [15:13:23]Write i2c OK [15:13:23]MH_I2C_Read... [15:13:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:13:23]Read from MH i2c: E2 [15:13:23]MH_I2C_Read... [15:13:23]Read from MH i2c: E2 03 00 [15:13:23]MH_I2C_Read... [15:13:23]Read from MH i2c: E2 03 00 40 9F 00 90 00 53 [15:13:23]RAPDU: 90 00 [15:13:23]wFMCommunicate OK [15:13:23]wFMCommunicate request_size=4 [15:13:23]MH_SAM_APDU [15:13:23]CAPDU: 80 0D 03 02 [15:13:23]Write to MH i2c: E2 08 00 41 9F 80 0D 03 02 00 00 00 00 5B [15:13:23]Write i2c OK [15:13:23]MH_I2C_Read... [15:13:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:13:23]Read from MH i2c: E2 [15:13:23]MH_I2C_Read... [15:13:23]Read from MH i2c: E2 0B 00 [15:13:23]MH_I2C_Read... [15:13:23]Read from MH i2c: E2 0B 00 41 9F 00 76 D9 67 17 45 A5 92 E2 90 00 87 [15:13:23]RAPDU: 76 D9 67 17 45 A5 92 E2 90 00 [15:13:23]wFMCommunicate OK [15:13:23]SAM_PROTO_SignData done [15:13:23]FM_MakeSignedData done [15:13:23]CreateOFDProtocolMessage [15:13:23]wFMCommunicate request_size=4 [15:13:23]MH_SAM_APDU [15:13:23]CAPDU: 80 11 00 00 [15:13:23]Write to MH i2c: E2 08 00 42 9F 80 11 00 00 00 00 00 00 5B [15:13:23]Write i2c OK [15:13:23]MH_I2C_Read... [15:13:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:13:23]Read from MH i2c: E2 [15:13:23]MH_I2C_Read... [15:13:23]Read from MH i2c: E2 17 00 [15:13:23]MH_I2C_Read... [15:13:23]Read from MH i2c: E2 17 00 42 9F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 AA [15:13:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:13:23]wFMCommunicate OK [15:13:23]CreateOFDProtocolMessage done [15:13:23]OFDSenderStorePacket 29248 [15:13:23]StoreOFDPacket docnum=29248 [15:13:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 7B E7 04 01 45 4E 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 9E 00 00 00 F4 03 04 00 9C F2 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 40 72 00 00 35 04 06 00 46 93 87 F1 86 1B 76 D9 67 17 45 A5 92 E2 [15:13:23]CheckFolder [15:13:23]dirname=/storage/ofd_packets [15:13:23]CheckFolder done [15:13:23]ProducePacketName [15:13:23]name=ofd_packets/00029248 [15:13:23]NVStorageSaveData ofd_packets/00029248 [15:13:23]File name is /storage/ofd_packets/00029248 [15:13:23]Write 298 bytes [15:13:23]NVStorageSaveData done [15:13:23]OFDSenderStorePacket done [15:13:23]KKMCreateOFDPacket done [15:13:23]NVStorageSaveData kkm_last_timestamp [15:13:23]File name is /storage/kkm_last_timestamp [15:13:23]Write 4 bytes [15:13:23]NVStorageSaveData done [15:13:23]ExternCall_PrintAddStr [15:13:23]wPrintStart [15:13:23]Write to MH i2c: 01 00 00 43 9F E2 [15:13:23]Write i2c OK [15:13:23]MH_I2C_Read... [15:13:23]Read from MH i2c: 01 [15:13:23]MH_I2C_Read... [15:13:23]Read from MH i2c: 01 07 00 [15:13:23]MH_I2C_Read... [15:13:23]Read from MH i2c: 01 07 00 43 9F 00 00 00 00 00 FF 0F F7 [15:13:23]RasterBufferAndPrint [15:13:23]line Счет N : (1)347632 [15:13:23]line ИНН: 02508201610067 [15:13:23]line Контрольно-Кассовый Чек [15:13:23]line ПРОДАЖА [15:13:23]line ТРК (МРК, ГНК) : 21 [15:13:23]line Товар: 2710194210 [15:13:23]line ДТ-К-5 [15:13:23]line 13.820 * 72.40 [15:13:23]line = 1000.57 [15:13:23]line НДС 12% НСП 1% [15:13:23]line > о реализуемом товаре [15:13:23]line ИТОГО: 1000.57 [15:13:23]line НСП 1% : 8.85 [15:13:23]line НДС 12% : 106.25 [15:13:23]line Наличными: 0.00 [15:13:23]line Безнал.: 1000.57 [15:13:23]line Место: АЗС № 108 "Партнер Нефть" [15:13:23]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [15:13:23]line СНО: Общий режим [15:13:23]line Чек 158 14.04.2024 15:13 [15:13:23]line Смена: 116 ФФД: 1.0 [15:13:23]line ЗНМ: 0300000027 [15:13:23]line РНМ: 0000138879044617 [15:13:23]line Версия ККМ: 001 [15:13:23]line Платежная система: Бакай Банк [15:13:23]line ФМ: 0000000000963154 [15:13:23]line ФД: 29248 [15:13:23]line ФПД: 77599454889499 [15:13:24]line 1/tax-web-control/client/api/v1/ticket?date=20240414T151332&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29248&fm=77599454889499&tin=02508201610067®Number=0000138879044617&sum=100057 [15:13:24]OFD Sender: Processing packet 29248 [packets to send 8, broken 7] [15:13:24]ProducePacketName [15:13:24]name=ofd_packets/00029248 [15:13:24]OFD Sender: To server: pG, [15:13:24]CommunicateWithHost lk.salyk.kg:30040 [15:13:24]ConnectInit lk.salyk.kg [15:13:24]written 0, free lines is 4095 [15:13:24]Connected sock=10 [15:13:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 7B E7 04 01 45 4E 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 9E 00 00 00 F4 03 04 00 9C F2 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 40 72 00 00 35 04 06 00 46 93 87 F1 86 1B 76 D9 67 17 45 A5 92 E2 [15:13:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 74 B1 47 00 C6 F2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 40 72 00 00 F4 03 04 00 40 9D 1B 66 B6 04 01 00 00 45 48 2D D3 D1 A4 35 61 [15:13:24]CommunicateWithHost err = 0 [15:13:24]CheckOFDResponse [15:13:24]1017 (14) - 77093643461234 [15:13:24]1041 (16) - 0000000000963154 [15:13:24]1040 (4) - 29248 [15:13:24]1012 (4) - 14.04.2024 09:09 [15:13:24]1206 (1) - 0 [15:13:24]OFD Sender: Remove packet 29248 [15:13:24]ProducePacketName [15:13:24]name=ofd_packets/00029248 [15:13:24]NVStorageDeleteData [15:13:24]Write to MH i2c: 01 00 00 6C 9F 0B [15:13:24]Write i2c OK [15:13:24]MH_I2C_Read... [15:13:24]Read from MH i2c: 01 [15:13:24]MH_I2C_Read... [15:13:24]Read from MH i2c: 01 07 00 [15:13:24]MH_I2C_Read... [15:13:24]Read from MH i2c: 01 07 00 6C 9F 00 00 00 00 00 D7 0C F5 [15:13:24]RasterBufferAndPrint [15:13:24]line [15:13:24]line [15:13:24]line [15:13:24]line [15:13:24]line [15:13:24]written 0, free lines is 3294 [15:13:24]MH_Cut [15:13:24]Write to MH i2c: D1 01 00 73 9F 01 E4 [15:13:24]Write i2c OK [15:13:24]MH_I2C_Read... [15:13:24]Read from MH i2c: D1 [15:13:24]MH_I2C_Read... [15:13:24]Read from MH i2c: D1 01 00 [15:13:24]MH_I2C_Read... [15:13:24]Read from MH i2c: D1 01 00 73 9F 00 E3 [15:13:24]Write to MH i2c: 01 00 00 74 9F 13 [15:13:24]Write i2c OK [15:13:24]MH_I2C_Read... [15:13:24]OFD Sender: No OFD packet to send [15:13:25]*** Cut start [15:13:25]*** Partial cut [15:13:25]*** CUTSNS_PIN = 1 [15:13:25]*** CUTSNS_PIN = 0 [15:13:25]*** Brake cut motor [15:13:25]Read from MH i2c: 01 [15:13:25]MH_I2C_Read... [15:13:25]*** Stop cut motor [15:13:25]*** Cut end [15:13:25]Read from MH i2c: 01 07 00 [15:13:25]MH_I2C_Read... [15:13:25]Read from MH i2c: 01 07 00 74 9F 00 00 00 00 00 FF 0F 28 [15:13:25]process_action close_receipt done [15:13:25]requested_data is exist [15:13:25]produce_requested_data [15:13:25]requested_item fm.sn is exist - process it [15:13:25]wFMCommunicate request_size=4 [15:13:25]MH_SAM_APDU [15:13:25]CAPDU: 80 11 00 00 [15:13:25]Write to MH i2c: E2 08 00 75 9F 80 11 00 00 00 00 00 00 8E [15:13:25]Write i2c OK [15:13:25]MH_I2C_Read... [15:13:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:13:25]Read from MH i2c: E2 [15:13:25]MH_I2C_Read... [15:13:25]Read from MH i2c: E2 17 00 [15:13:25]MH_I2C_Read... [15:13:25]Read from MH i2c: E2 17 00 75 9F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 DD [15:13:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:13:25]wFMCommunicate OK [15:13:25]requested_item fd.num is exist - process it [15:13:25]SAM_PROTO_GetFieldsCounters [15:13:25]wFMCommunicate request_size=4 [15:13:25]MH_SAM_APDU [15:13:25]CAPDU: 80 13 00 00 [15:13:25]Write to MH i2c: E2 08 00 76 9F 80 13 00 00 00 00 00 00 91 [15:13:25]Write i2c OK [15:13:25]MH_I2C_Read... [15:13:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:13:26]Read from MH i2c: E2 [15:13:26]MH_I2C_Read... [15:13:26]Read from MH i2c: E2 62 00 [15:13:26]MH_I2C_Read... [15:13:26]Read from MH i2c: E2 62 00 76 9F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 40 72 00 00 0E 04 04 00 74 00 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 CF [15:13:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 40 72 00 00 0E 04 04 00 74 00 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 [15:13:26]wFMCommunicate OK [15:13:26]SAM_PROTO_GetFieldsCounters done [15:13:26]requested_item shift.num is exist - process it [15:13:26]requested_item shift.opened is exist - process it [15:13:26]req_shift_opened [15:13:26]FM_GetShiftState [15:13:26]SAM_PROTO_GetShiftState [15:13:26]wFMCommunicate request_size=4 [15:13:26]MH_SAM_APDU [15:13:26]CAPDU: 80 13 01 00 [15:13:26]Write to MH i2c: E2 08 00 77 9F 80 13 01 00 00 00 00 00 93 [15:13:26]Write i2c OK [15:13:26]MH_I2C_Read... [15:13:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:13:26]Read from MH i2c: E2 [15:13:26]MH_I2C_Read... [15:13:26]Read from MH i2c: E2 0E 00 [15:13:26]MH_I2C_Read... [15:13:26]Read from MH i2c: E2 0E 00 77 9F 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 3F [15:13:26]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [15:13:26]wFMCommunicate OK [15:13:26]SAM_PROTO_GetShiftState done [15:13:26]FM_GetShiftState done [15:13:26]req_shift_opened done [15:13:26]requested_item shift.open_date is exist - process it [15:13:26]req_shift_open_date [15:13:26]req_shift_open_date done [15:13:26]produce_requested_data done [15:13:26]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29248,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [15:13:26]process_action_free close_receipt [15:13:26]json_value_free [15:13:26]json_value_free done [15:13:26]process_json_proto returns [15:13:26]Send response to host [15:13:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29248,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [15:13:26]free response buf [15:13:26]execute_script done [15:13:26]execute_script returns [15:13:26]free content buf [15:13:26]Sock 7.Close socket [15:13:26]Sock 7.Thread stoped [15:13:29]OFD Sender: No OFD packet to send [15:13:34]OFD Sender: No OFD packet to send [15:13:39]OFD Sender: No OFD packet to send [15:13:42]accept exits with 9 [15:13:42]New connection [15:13:42]New thread 3066928484 created [15:13:42]Thread 3066785124 joined [15:13:42]Waiting for new connection... [15:13:42] Sock 9.Parse request [15:13:42]Sock 9.Check first char [15:13:42]Sock 9.First char is OK [15:13:42]request: POST /json_proto HTTP/1.0 [15:13:42]Method: POST [15:13:42]URL: /json_proto [15:13:42]Method is POST - this is cgi request [15:13:42]url: /json_proto [15:13:42]query_string will be loaded in cgi processing [15:13:42]execute_cgi json_proto POST (null) [15:13:42]execute_cgi path=json_proto method=POST [15:13:42]POST find Content-Length [15:13:42]Host: 172.17.33.3:8080 [15:13:42]Content-Length: 840 [15:13:42]Content-Type: application/json [15:13:42] [15:13:42]POST finish read [15:13:42]Found Content-Length = 840 [15:13:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347633", "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:13:42]execute_script... [15:13: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)347633", "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:13:42]POST & json_proto [15:13:42]process_json_proto [15:13:42]json parsed OK: [15:13:42]protocol is kg_v1.0 [15:13:42]action value=close_receipt [15:13:42]process_action close_receipt [15:13:42]cmd_close_receipt [15:13:42]MH_GetDate [15:13:42]Write to MH i2c: F0 00 00 78 9F 06 [15:13:42]Write i2c OK [15:13:42]MH_I2C_Read... [15:13:42]Read from MH i2c: F0 [15:13:42]MH_I2C_Read... [15:13:42]Read from MH i2c: F0 09 00 [15:13:42]MH_I2C_Read... [15:13:42]Read from MH i2c: F0 09 00 78 9F 00 B0 F2 1B 66 23 5B 8F 65 A4 [15:13:42]GetLastDocTimeStamp 1713107612 [15:13:42]current date 1713107632 [15:13:42]FM_GetShiftState [15:13:42]SAM_PROTO_GetShiftState [15:13:42]wFMCommunicate request_size=4 [15:13:42]MH_SAM_APDU [15:13:42]CAPDU: 80 13 01 00 [15:13:42]Write to MH i2c: E2 08 00 79 9F 80 13 01 00 00 00 00 00 95 [15:13:42]Write i2c OK [15:13:42]MH_I2C_Read... [15:13:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:13:42]Read from MH i2c: E2 [15:13:42]MH_I2C_Read... [15:13:42]Read from MH i2c: E2 0E 00 [15:13:42]MH_I2C_Read... [15:13:42]Read from MH i2c: E2 0E 00 79 9F 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 41 [15:13:42]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [15:13:42]wFMCommunicate OK [15:13:42]SAM_PROTO_GetShiftState done [15:13:42]FM_GetShiftState done [15:13:42]opened in 1713053951 [15:13:42]opened+sec_in_day 1713140351 [15:13:42]quantity*price = 100056 [15:13:42]sum+1 = 100058 [15:13:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.57 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.57 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 159 14.04.2024 15:13 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 29249 ФПД: 205060648456436 1/tax-web-control/client/api/v1/ticket?date=20240414T151353&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29249&fm=205060648456436&tin=02508201610067®Number=0000138879044617&sum=100057 [15:13:43]StoreToDocumentArchive [15:13:43]shift 116 fd 29249 [15:13:43]save to /storage/0116/doc_00029249 [15:13:43]save last doc name /storage/0116/doc_00029249 to /storage/kkm_last_doc_name [15:13:43]save OK [15:13:43]Clear old archive folders... [15:13:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:13:43]tlvbuf is 011ECA20 [15:13:43]SAM_PROTO_ClearQueue [15:13:43]wFMCommunicate request_size=4 [15:13:43]MH_SAM_APDU [15:13:43]CAPDU: 80 09 00 00 [15:13:43]Write to MH i2c: E2 08 00 86 9F 80 09 00 00 00 00 00 00 97 [15:13:43]Write i2c OK [15:13:43]MH_I2C_Read... [15:13:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:13:43]Read from MH i2c: E2 [15:13:43]MH_I2C_Read... [15:13:43]Read from MH i2c: E2 03 00 [15:13:43]MH_I2C_Read... [15:13:43]Read from MH i2c: E2 03 00 86 9F 00 90 00 99 [15:13:43]RAPDU: 90 00 [15:13:43]wFMCommunicate OK [15:13:43]SAM_PROTO_ClearQueue done [15:13:43]KKMCreateOFDPacket [15:13:43]OFDProtocolAddRootSTLVToBuf [15:13:43]FM_MakeSignedData [15:13:43]FM_MakeSignedData [15:13:43]SAM_PROTO_SignData [15:13:43]wFMCommunicate request_size=4 [15:13:43]MH_SAM_APDU [15:13:43]CAPDU: 80 0D 01 02 [15:13:43]Write to MH i2c: E2 08 00 87 9F 80 0D 01 02 00 00 00 00 9F [15:13:43]Write i2c OK [15:13:43]MH_I2C_Read... [15:13:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:13:43]Read from MH i2c: E2 [15:13:43]MH_I2C_Read... [15:13:43]Read from MH i2c: E2 03 00 [15:13:43]MH_I2C_Read... [15:13:43]Read from MH i2c: E2 03 00 87 9F 00 90 00 9A [15:13:43]RAPDU: 90 00 [15:13:43]wFMCommunicate OK [15:13:43]wFMCommunicate request_size=255 [15:13:43]MH_SAM_APDU [15:13:43]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 9F 00 00 00 F4 03 04 00 B1 F2 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 41 72 00 00 35 04 06 00 BA 80 67 1B [15:13:43]Write to MH i2c: E2 02 01 88 9F 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 9F 00 00 00 F4 03 04 00 B1 F2 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 41 72 00 00 35 04 06 00 BA 80 67 1B 00 00 96 [15:13:43]Write i2c OK [15:13:43]MH_I2C_Read... [15:13:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:13:43]Read from MH i2c: E2 [15:13:43]MH_I2C_Read... [15:13:43]Read from MH i2c: E2 03 00 [15:13:43]MH_I2C_Read... [15:13:43]Read from MH i2c: E2 03 00 88 9F 00 90 00 9B [15:13:43]RAPDU: 90 00 [15:13:43]wFMCommunicate OK [15:13:43]wFMCommunicate request_size=7 [15:13:43]MH_SAM_APDU [15:13:43]CAPDU: 80 0D 02 02 02 D0 F4 [15:13:43]Write to MH i2c: E2 0A 00 89 9F 80 0D 02 02 02 00 D0 F4 00 00 6A [15:13:43]Write i2c OK [15:13:43]MH_I2C_Read... [15:13:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:13:43]Read from MH i2c: E2 [15:13:43]MH_I2C_Read... [15:13:43]Read from MH i2c: E2 03 00 [15:13:43]MH_I2C_Read... [15:13:43]Read from MH i2c: E2 03 00 89 9F 00 90 00 9C [15:13:43]RAPDU: 90 00 [15:13:43]wFMCommunicate OK [15:13:43]wFMCommunicate request_size=4 [15:13:43]MH_SAM_APDU [15:13:43]CAPDU: 80 0D 03 02 [15:13:43]Write to MH i2c: E2 08 00 8A 9F 80 0D 03 02 00 00 00 00 A4 [15:13:43]Write i2c OK [15:13:43]MH_I2C_Read... [15:13:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:13:43]Read from MH i2c: E2 [15:13:43]MH_I2C_Read... [15:13:43]Read from MH i2c: E2 0B 00 [15:13:43]MH_I2C_Read... [15:13:43]Read from MH i2c: E2 0B 00 8A 9F 00 80 37 90 80 D4 1B 79 C6 90 00 9A [15:13:43]RAPDU: 80 37 90 80 D4 1B 79 C6 90 00 [15:13:43]wFMCommunicate OK [15:13:43]SAM_PROTO_SignData done [15:13:43]FM_MakeSignedData done [15:13:43]CreateOFDProtocolMessage [15:13:43]wFMCommunicate request_size=4 [15:13:43]MH_SAM_APDU [15:13:43]CAPDU: 80 11 00 00 [15:13:43]Write to MH i2c: E2 08 00 8B 9F 80 11 00 00 00 00 00 00 A4 [15:13:43]Write i2c OK [15:13:43]MH_I2C_Read... [15:13:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:13:44]Read from MH i2c: E2 [15:13:44]MH_I2C_Read... [15:13:44]Read from MH i2c: E2 17 00 [15:13:44]MH_I2C_Read... [15:13:44]Read from MH i2c: E2 17 00 8B 9F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F3 [15:13:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:13:44]wFMCommunicate OK [15:13:44]CreateOFDProtocolMessage done [15:13:44]OFDSenderStorePacket 29249 [15:13:44]StoreOFDPacket docnum=29249 [15:13:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 8B FA 04 01 24 AA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 9F 00 00 00 F4 03 04 00 B1 F2 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 41 72 00 00 35 04 06 00 BA 80 67 1B D0 F4 80 37 90 80 D4 1B 79 C6 [15:13:44]CheckFolder [15:13:44]dirname=/storage/ofd_packets [15:13:44]CheckFolder done [15:13:44]ProducePacketName [15:13:44]name=ofd_packets/00029249 [15:13:44]NVStorageSaveData ofd_packets/00029249 [15:13:44]File name is /storage/ofd_packets/00029249 [15:13:44]Write 298 bytes [15:13:44]NVStorageSaveData done [15:13:44]OFDSenderStorePacket done [15:13:44]KKMCreateOFDPacket done [15:13:44]NVStorageSaveData kkm_last_timestamp [15:13:44]File name is /storage/kkm_last_timestamp [15:13:44]Write 4 bytes [15:13:44]NVStorageSaveData done [15:13:44]ExternCall_PrintAddStr [15:13:44]wPrintStart [15:13:44]Write to MH i2c: 01 00 00 8C 9F 2B [15:13:44]Write i2c OK [15:13:44]MH_I2C_Read... [15:13:44]Read from MH i2c: 01 [15:13:44]MH_I2C_Read... [15:13:44]Read from MH i2c: 01 07 00 [15:13:44]MH_I2C_Read... [15:13:44]Read from MH i2c: 01 07 00 8C 9F 00 00 00 00 00 FF 0F 40 [15:13:44]RasterBufferAndPrint [15:13:44]line Счет N : (1)347633 [15:13:44]line ИНН: 02508201610067 [15:13:44]line Контрольно-Кассовый Чек [15:13:44]line ПРОДАЖА [15:13:44]line ТРК (МРК, ГНК) : 51 [15:13:44]line Товар: 2710194210 [15:13:44]line ДТ-К-5 [15:13:44]line 13.820 * 72.40 [15:13:44]line = 1000.57 [15:13:44]line НДС 12% НСП 1% [15:13:44]line > о реализуемом товаре [15:13:44]line ИТОГО: 1000.57 [15:13:44]line НСП 1% : 8.85 [15:13:44]line НДС 12% : 106.25 [15:13:44]line Наличными: 0.00 [15:13:44]line Безнал.: 1000.57 [15:13:44]line Место: АЗС № 108 "Партнер Нефть" [15:13:44]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [15:13:44]line СНО: Общий режим [15:13:44]line Чек 159 14.04.2024 15:13 [15:13:44]line Смена: 116 ФФД: 1.0 [15:13:44]line ЗНМ: 0300000027 [15:13:44]line РНМ: 0000138879044617 [15:13:44]line Версия ККМ: 001 [15:13:44]line Платежная система: АКБ Кыргызстан [15:13:44]line ФМ: 0000000000963154 [15:13:44]line ФД: 29249 [15:13:44]line ФПД: 205060648456436 [15:13:44]line 1/tax-web-control/client/api/v1/ticket?date=20240414T151353&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29249&fm=205060648456436&tin=02508201610067®Number=0000138879044617&sum=100057 [15:13:44]OFD Sender: Processing packet 29249 [packets to send 8, broken 7] [15:13:44]ProducePacketName [15:13:44]name=ofd_packets/00029249 [15:13:44]OFD Sender: To server: pG, [15:13:44]CommunicateWithHost lk.salyk.kg:30040 [15:13:44]ConnectInit lk.salyk.kg [15:13:44]written 0, free lines is 4095 [15:13:44]Connected sock=10 [15:13:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 8B FA 04 01 24 AA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 9F 00 00 00 F4 03 04 00 B1 F2 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 41 72 00 00 35 04 06 00 BA 80 67 1B D0 F4 80 37 90 80 D4 1B 79 C6 [15:13:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 AB 9D 47 00 6A 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 39 36 33 31 35 34 10 04 04 00 41 72 00 00 F4 03 04 00 54 9D 1B 66 B6 04 01 00 00 83 D5 A6 DE 36 45 49 C2 [15:13:44]CommunicateWithHost err = 0 [15:13:44]CheckOFDResponse [15:13:44]1017 (14) - 77093643461234 [15:13:44]1041 (16) - 0000000000963154 [15:13:44]1040 (4) - 29249 [15:13:44]1012 (4) - 14.04.2024 09:09 [15:13:44]1206 (1) - 0 [15:13:44]OFD Sender: Remove packet 29249 [15:13:44]ProducePacketName [15:13:44]name=ofd_packets/00029249 [15:13:44]NVStorageDeleteData [15:13:44]Write to MH i2c: 01 00 00 B5 9F 54 [15:13:44]Write i2c OK [15:13:44]MH_I2C_Read... [15:13:44]Read from MH i2c: 01 [15:13:44]MH_I2C_Read... [15:13:44]Read from MH i2c: 01 07 00 [15:13:44]MH_I2C_Read... [15:13:44]Read from MH i2c: 01 07 00 B5 9F 00 00 00 00 00 E9 0C 50 [15:13:44]RasterBufferAndPrint [15:13:44]line [15:13:44]line [15:13:44]line [15:13:44]line [15:13:44]line [15:13:44]written 0, free lines is 3312 [15:13:44]MH_Cut [15:13:44]Write to MH i2c: D1 01 00 BC 9F 01 2D [15:13:44]Write i2c OK [15:13:44]MH_I2C_Read... [15:13:44]Read from MH i2c: D1 [15:13:44]MH_I2C_Read... [15:13:44]Read from MH i2c: D1 01 00 [15:13:44]MH_I2C_Read... [15:13:44]Read from MH i2c: D1 01 00 BC 9F 00 2C [15:13:44]Write to MH i2c: 01 00 00 BD 9F 5C [15:13:44]Write i2c OK [15:13:44]MH_I2C_Read... [15:13:45]OFD Sender: No OFD packet to send [15:13:45]*** Cut start [15:13:45]*** Partial cut [15:13:45]*** CUTSNS_PIN = 1 [15:13:45]*** CUTSNS_PIN = 0 [15:13:45]*** Brake cut motor [15:13:46]Read from MH i2c: 01 [15:13:46]MH_I2C_Read... [15:13:46]*** Stop cut motor [15:13:46]*** Cut end [15:13:46]Read from MH i2c: 01 07 00 [15:13:46]MH_I2C_Read... [15:13:46]Read from MH i2c: 01 07 00 BD 9F 00 00 00 00 00 FF 0F 71 [15:13:46]process_action close_receipt done [15:13:46]requested_data is exist [15:13:46]produce_requested_data [15:13:46]requested_item fm.sn is exist - process it [15:13:46]wFMCommunicate request_size=4 [15:13:46]MH_SAM_APDU [15:13:46]CAPDU: 80 11 00 00 [15:13:46]Write to MH i2c: E2 08 00 BE 9F 80 11 00 00 00 00 00 00 D7 [15:13:46]Write i2c OK [15:13:46]MH_I2C_Read... [15:13:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:13:46]Read from MH i2c: E2 [15:13:46]MH_I2C_Read... [15:13:46]Read from MH i2c: E2 17 00 [15:13:46]MH_I2C_Read... [15:13:46]Read from MH i2c: E2 17 00 BE 9F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 26 [15:13:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:13:46]wFMCommunicate OK [15:13:46]requested_item fd.num is exist - process it [15:13:46]SAM_PROTO_GetFieldsCounters [15:13:46]wFMCommunicate request_size=4 [15:13:46]MH_SAM_APDU [15:13:46]CAPDU: 80 13 00 00 [15:13:46]Write to MH i2c: E2 08 00 BF 9F 80 13 00 00 00 00 00 00 DA [15:13:46]Write i2c OK [15:13:46]MH_I2C_Read... [15:13:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:13:46]Read from MH i2c: E2 [15:13:46]MH_I2C_Read... [15:13:46]Read from MH i2c: E2 62 00 [15:13:46]MH_I2C_Read... [15:13:46]Read from MH i2c: E2 62 00 BF 9F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 41 72 00 00 0E 04 04 00 74 00 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 1C [15:13:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 41 72 00 00 0E 04 04 00 74 00 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 [15:13:46]wFMCommunicate OK [15:13:46]SAM_PROTO_GetFieldsCounters done [15:13:46]requested_item shift.num is exist - process it [15:13:46]requested_item shift.opened is exist - process it [15:13:46]req_shift_opened [15:13:46]FM_GetShiftState [15:13:46]SAM_PROTO_GetShiftState [15:13:46]wFMCommunicate request_size=4 [15:13:46]MH_SAM_APDU [15:13:46]CAPDU: 80 13 01 00 [15:13:46]Write to MH i2c: E2 08 00 C0 9F 80 13 01 00 00 00 00 00 DC [15:13:46]Write i2c OK [15:13:46]MH_I2C_Read... [15:13:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:13:46]Read from MH i2c: E2 [15:13:46]MH_I2C_Read... [15:13:46]Read from MH i2c: E2 0E 00 [15:13:46]MH_I2C_Read... [15:13:46]Read from MH i2c: E2 0E 00 C0 9F 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 88 [15:13:46]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [15:13:46]wFMCommunicate OK [15:13:46]SAM_PROTO_GetShiftState done [15:13:46]FM_GetShiftState done [15:13:46]req_shift_opened done [15:13:46]requested_item shift.open_date is exist - process it [15:13:46]req_shift_open_date [15:13:46]req_shift_open_date done [15:13:46]produce_requested_data done [15:13:46]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29249,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [15:13:46]process_action_free close_receipt [15:13:46]json_value_free [15:13:46]json_value_free done [15:13:46]process_json_proto returns [15:13:46]Send response to host [15:13:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29249,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [15:13:46]free response buf [15:13:46]execute_script done [15:13:46]execute_script returns [15:13:46]free content buf [15:13:46]Sock 9.Close socket [15:13:46]Sock 9.Thread stoped [15:13:50]OFD Sender: No OFD packet to send [15:13:55]OFD Sender: No OFD packet to send [15:14:00]OFD Sender: No OFD packet to send [15:14:05]OFD Sender: No OFD packet to send [15:14:10]OFD Sender: No OFD packet to send [15:14:15]OFD Sender: No OFD packet to send [15:14:20]OFD Sender: No OFD packet to send [15:14:25]OFD Sender: No OFD packet to send [15:14:30]OFD Sender: No OFD packet to send [15:14:35]OFD Sender: No OFD packet to send [15:14:40]OFD Sender: No OFD packet to send [15:14:45]OFD Sender: No OFD packet to send [15:14:50]OFD Sender: No OFD packet to send [15:14:55]OFD Sender: No OFD packet to send [15:15:00]OFD Sender: No OFD packet to send [15:15:05]OFD Sender: No OFD packet to send [15:15:10]OFD Sender: No OFD packet to send [15:15:15]OFD Sender: No OFD packet to send [15:15:20]OFD Sender: No OFD packet to send [15:15:25]OFD Sender: No OFD packet to send [15:15:30]OFD Sender: No OFD packet to send [15:15:35]OFD Sender: No OFD packet to send [15:15:40]OFD Sender: No OFD packet to send [15:15:45]OFD Sender: No OFD packet to send [15:15:50]OFD Sender: No OFD packet to send [15:15:55]OFD Sender: No OFD packet to send [15:16:00]OFD Sender: No OFD packet to send [15:16:05]OFD Sender: No OFD packet to send [15:16:10]OFD Sender: No OFD packet to send [15:16:15]OFD Sender: No OFD packet to send [15:16:20]OFD Sender: No OFD packet to send [15:16:25]OFD Sender: No OFD packet to send [15:16:30]OFD Sender: No OFD packet to send [15:16:35]OFD Sender: No OFD packet to send [15:16:40]OFD Sender: No OFD packet to send [15:16:45]OFD Sender: No OFD packet to send [15:16:50]OFD Sender: No OFD packet to send [15:16:55]OFD Sender: No OFD packet to send [15:17:00]OFD Sender: No OFD packet to send [15:17:05]OFD Sender: No OFD packet to send [15:17:10]OFD Sender: No OFD packet to send [15:17:15]OFD Sender: No OFD packet to send [15:17:20]OFD Sender: No OFD packet to send [15:17:25]OFD Sender: No OFD packet to send [15:17:30]OFD Sender: No OFD packet to send [15:17:35]OFD Sender: No OFD packet to send [15:17:40]OFD Sender: No OFD packet to send [15:17:45]OFD Sender: No OFD packet to send [15:17:50]OFD Sender: No OFD packet to send [15:17:55]OFD Sender: No OFD packet to send [15:18:00]OFD Sender: No OFD packet to send [15:18:05]OFD Sender: No OFD packet to send [15:18:10]OFD Sender: No OFD packet to send [15:18:15]OFD Sender: No OFD packet to send [15:18:20]OFD Sender: No OFD packet to send [15:18:25]OFD Sender: No OFD packet to send [15:18:30]OFD Sender: No OFD packet to send [15:18:35]OFD Sender: No OFD packet to send [15:18:40]OFD Sender: No OFD packet to send [15:18:45]OFD Sender: No OFD packet to send [15:18:50]OFD Sender: No OFD packet to send [15:18:55]OFD Sender: No OFD packet to send [15:19:00]OFD Sender: No OFD packet to send [15:19:05]OFD Sender: No OFD packet to send [15:19:10]OFD Sender: No OFD packet to send [15:19:15]OFD Sender: No OFD packet to send [15:19:20]OFD Sender: No OFD packet to send [15:19:25]OFD Sender: No OFD packet to send [15:19:30]OFD Sender: No OFD packet to send [15:19:35]OFD Sender: No OFD packet to send [15:19:40]OFD Sender: No OFD packet to send [15:19:45]OFD Sender: No OFD packet to send [15:19:50]OFD Sender: No OFD packet to send [15:19:55]OFD Sender: No OFD packet to send [15:20:00]OFD Sender: No OFD packet to send [15:20:05]OFD Sender: No OFD packet to send [15:20:10]OFD Sender: No OFD packet to send [15:20:15]OFD Sender: No OFD packet to send [15:20:20]OFD Sender: No OFD packet to send [15:20:25]OFD Sender: No OFD packet to send [15:20:30]OFD Sender: No OFD packet to send [15:20:35]OFD Sender: No OFD packet to send [15:20:40]OFD Sender: No OFD packet to send [15:20:45]OFD Sender: No OFD packet to send [15:20:50]OFD Sender: No OFD packet to send [15:20:55]OFD Sender: No OFD packet to send [15:21:00]OFD Sender: No OFD packet to send [15:21:05]OFD Sender: No OFD packet to send [15:21:10]OFD Sender: No OFD packet to send [15:21:15]OFD Sender: No OFD packet to send [15:21:20]OFD Sender: No OFD packet to send [15:21:25]OFD Sender: No OFD packet to send [15:21:30]OFD Sender: No OFD packet to send [15:21:35]OFD Sender: No OFD packet to send [15:21:40]OFD Sender: No OFD packet to send [15:21:45]OFD Sender: No OFD packet to send [15:21:50]OFD Sender: No OFD packet to send [15:21:55]OFD Sender: No OFD packet to send [15:22:00]OFD Sender: No OFD packet to send [15:22:05]OFD Sender: No OFD packet to send [15:22:10]OFD Sender: No OFD packet to send [15:22:15]OFD Sender: No OFD packet to send [15:22:20]OFD Sender: No OFD packet to send [15:22:25]OFD Sender: No OFD packet to send [15:22:30]OFD Sender: No OFD packet to send [15:22:35]OFD Sender: No OFD packet to send [15:22:40]OFD Sender: No OFD packet to send [15:22:45]OFD Sender: No OFD packet to send [15:22:50]OFD Sender: No OFD packet to send [15:22:55]OFD Sender: No OFD packet to send [15:23:00]OFD Sender: No OFD packet to send [15:23:05]OFD Sender: No OFD packet to send [15:23:10]OFD Sender: No OFD packet to send [15:23:15]OFD Sender: No OFD packet to send [15:23:19]accept exits with 7 [15:23:19]New connection [15:23:19]New thread 3066785124 created [15:23:19]Thread 3066928484 joined [15:23:19]Waiting for new connection... [15:23:19] Sock 7.Parse request [15:23:19]Sock 7.Check first char [15:23:19]Sock 7.First char is OK [15:23:19]request: POST /json_proto HTTP/1.0 [15:23:19]Method: POST [15:23:19]URL: /json_proto [15:23:19]Method is POST - this is cgi request [15:23:19]url: /json_proto [15:23:19]query_string will be loaded in cgi processing [15:23:19]execute_cgi json_proto POST (null) [15:23:19]execute_cgi path=json_proto method=POST [15:23:19]POST find Content-Length [15:23:19]Host: 172.17.33.3:8080 [15:23:19]Content-Length: 677 [15:23:19]Content-Type: application/json [15:23:19] [15:23:19]POST finish read [15:23:19]Found Content-Length = 677 [15:23:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347634", "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:23:19]execute_script... [15:23: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)347634", "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:23:19]POST & json_proto [15:23:19]process_json_proto [15:23:19]json parsed OK: [15:23:19]protocol is kg_v1.0 [15:23:19]action value=close_receipt [15:23:19]process_action close_receipt [15:23:19]cmd_close_receipt [15:23:19]MH_GetDate [15:23:19]Write to MH i2c: F0 00 00 C1 9F 4F [15:23:19]Write i2c OK [15:23:19]MH_I2C_Read... [15:23:19]Read from MH i2c: F0 [15:23:19]MH_I2C_Read... [15:23:19]Read from MH i2c: F0 09 00 [15:23:19]MH_I2C_Read... [15:23:19]Read from MH i2c: F0 09 00 C1 9F 00 F1 F4 1B 66 23 5B 8F 65 30 [15:23:19]GetLastDocTimeStamp 1713107633 [15:23:19]current date 1713108209 [15:23:19]FM_GetShiftState [15:23:19]SAM_PROTO_GetShiftState [15:23:19]wFMCommunicate request_size=4 [15:23:19]MH_SAM_APDU [15:23:19]CAPDU: 80 13 01 00 [15:23:19]Write to MH i2c: E2 08 00 C2 9F 80 13 01 00 00 00 00 00 DE [15:23:19]Write i2c OK [15:23:19]MH_I2C_Read... [15:23:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:23:19]Read from MH i2c: E2 [15:23:19]MH_I2C_Read... [15:23:19]Read from MH i2c: E2 0E 00 [15:23:19]MH_I2C_Read... [15:23:19]Read from MH i2c: E2 0E 00 C2 9F 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 8A [15:23:19]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [15:23:19]wFMCommunicate OK [15:23:19]SAM_PROTO_GetShiftState done [15:23:19]FM_GetShiftState done [15:23:19]opened in 1713053951 [15:23:19]opened+sec_in_day 1713140351 [15:23:19]quantity*price = 50025 [15:23:19]sum+1 = 50026 [15:23: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 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 160 14.04.2024 15:23 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29250 ФПД: 228972726625948 1/tax-web-control/client/api/v1/ticket?date=20240414T152329&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29250&fm=228972726625948&tin=02508201610067®Number=0000138879044617&sum=50000 [15:23:20]StoreToDocumentArchive [15:23:20]shift 116 fd 29250 [15:23:20]save to /storage/0116/doc_00029250 [15:23:20]save last doc name /storage/0116/doc_00029250 to /storage/kkm_last_doc_name [15:23:20]save OK [15:23:20]Clear old archive folders... [15:23:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:23:20]tlvbuf is 0120EAB0 [15:23:20]SAM_PROTO_ClearQueue [15:23:20]wFMCommunicate request_size=4 [15:23:20]MH_SAM_APDU [15:23:20]CAPDU: 80 09 00 00 [15:23:20]Write to MH i2c: E2 08 00 CF 9F 80 09 00 00 00 00 00 00 E0 [15:23:20]Write i2c OK [15:23:20]MH_I2C_Read... [15:23:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:23:20]Read from MH i2c: E2 [15:23:20]MH_I2C_Read... [15:23:20]Read from MH i2c: E2 03 00 [15:23:20]MH_I2C_Read... [15:23:20]Read from MH i2c: E2 03 00 CF 9F 00 90 00 E2 [15:23:20]RAPDU: 90 00 [15:23:20]wFMCommunicate OK [15:23:20]SAM_PROTO_ClearQueue done [15:23:20]KKMCreateOFDPacket [15:23:20]OFDProtocolAddRootSTLVToBuf [15:23:20]FM_MakeSignedData [15:23:20]FM_MakeSignedData [15:23:20]SAM_PROTO_SignData [15:23:20]wFMCommunicate request_size=4 [15:23:20]MH_SAM_APDU [15:23:20]CAPDU: 80 0D 01 02 [15:23:20]Write to MH i2c: E2 08 00 D0 9F 80 0D 01 02 00 00 00 00 E8 [15:23:20]Write i2c OK [15:23:20]MH_I2C_Read... [15:23:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:23:20]Read from MH i2c: E2 [15:23:20]MH_I2C_Read... [15:23:20]Read from MH i2c: E2 03 00 [15:23:20]MH_I2C_Read... [15:23:20]Read from MH i2c: E2 03 00 D0 9F 00 90 00 E3 [15:23:20]RAPDU: 90 00 [15:23:20]wFMCommunicate OK [15:23:20]wFMCommunicate request_size=255 [15:23:20]MH_SAM_APDU [15:23: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 A0 00 00 00 F4 03 04 00 F1 F4 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 42 72 00 00 35 04 06 00 D0 [15:23:20]Write to MH i2c: E2 02 01 D1 9F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 A0 00 00 00 F4 03 04 00 F1 F4 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 42 72 00 00 35 04 06 00 D0 00 00 A8 [15:23:20]Write i2c OK [15:23:20]MH_I2C_Read... [15:23:20]OFD Sender: No OFD packet to send [15:23:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:20]Read from MH i2c: E2 [15:23:20]MH_I2C_Read... [15:23:20]Read from MH i2c: E2 03 00 [15:23:20]MH_I2C_Read... [15:23:20]Read from MH i2c: E2 03 00 D1 9F 00 90 00 E4 [15:23:20]RAPDU: 90 00 [15:23:20]wFMCommunicate OK [15:23:20]wFMCommunicate request_size=10 [15:23:20]MH_SAM_APDU [15:23:20]CAPDU: 80 0D 02 02 05 3F DE 08 A6 9C [15:23:20]Write to MH i2c: E2 0D 00 D2 9F 80 0D 02 02 05 00 3F DE 08 A6 9C 00 00 5C [15:23:20]Write i2c OK [15:23:20]MH_I2C_Read... [15:23:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:20]Read from MH i2c: E2 [15:23:20]MH_I2C_Read... [15:23:20]Read from MH i2c: E2 03 00 [15:23:20]MH_I2C_Read... [15:23:20]Read from MH i2c: E2 03 00 D2 9F 00 90 00 E5 [15:23:20]RAPDU: 90 00 [15:23:20]wFMCommunicate OK [15:23:20]wFMCommunicate request_size=4 [15:23:20]MH_SAM_APDU [15:23:20]CAPDU: 80 0D 03 02 [15:23:20]Write to MH i2c: E2 08 00 D3 9F 80 0D 03 02 00 00 00 00 ED [15:23:20]Write i2c OK [15:23:20]MH_I2C_Read... [15:23:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:23:20]Read from MH i2c: E2 [15:23:20]MH_I2C_Read... [15:23:20]Read from MH i2c: E2 0B 00 [15:23:20]MH_I2C_Read... [15:23:20]Read from MH i2c: E2 0B 00 D3 9F 00 42 4B 92 7F 45 18 A0 70 90 00 F9 [15:23:20]RAPDU: 42 4B 92 7F 45 18 A0 70 90 00 [15:23:20]wFMCommunicate OK [15:23:20]SAM_PROTO_SignData done [15:23:20]FM_MakeSignedData done [15:23:20]CreateOFDProtocolMessage [15:23:20]wFMCommunicate request_size=4 [15:23:20]MH_SAM_APDU [15:23:20]CAPDU: 80 11 00 00 [15:23:20]Write to MH i2c: E2 08 00 D4 9F 80 11 00 00 00 00 00 00 ED [15:23:20]Write i2c OK [15:23:20]MH_I2C_Read... [15:23:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:20]Read from MH i2c: E2 [15:23:20]MH_I2C_Read... [15:23:20]Read from MH i2c: E2 17 00 [15:23:20]MH_I2C_Read... [15:23:20]Read from MH i2c: E2 17 00 D4 9F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 3C [15:23:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:23:20]wFMCommunicate OK [15:23:20]CreateOFDProtocolMessage done [15:23:20]OFDSenderStorePacket 29250 [15:23:20]StoreOFDPacket docnum=29250 [15:23:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 63 74 07 01 D6 8B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 A0 00 00 00 F4 03 04 00 F1 F4 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 42 72 00 00 35 04 06 00 D0 3F DE 08 A6 9C 42 4B 92 7F 45 18 A0 70 [15:23:20]CheckFolder [15:23:20]dirname=/storage/ofd_packets [15:23:20]CheckFolder done [15:23:20]ProducePacketName [15:23:20]name=ofd_packets/00029250 [15:23:20]NVStorageSaveData ofd_packets/00029250 [15:23:20]File name is /storage/ofd_packets/00029250 [15:23:20]Write 301 bytes [15:23:20]NVStorageSaveData done [15:23:20]OFDSenderStorePacket done [15:23:20]KKMCreateOFDPacket done [15:23:20]NVStorageSaveData kkm_last_timestamp [15:23:20]File name is /storage/kkm_last_timestamp [15:23:20]Write 4 bytes [15:23:20]NVStorageSaveData done [15:23:20]ExternCall_PrintAddStr [15:23:20]wPrintStart [15:23:20]Write to MH i2c: 01 00 00 D5 9F 74 [15:23:20]Write i2c OK [15:23:20]MH_I2C_Read... [15:23:20]Read from MH i2c: 01 [15:23:20]MH_I2C_Read... [15:23:20]Read from MH i2c: 01 07 00 [15:23:20]MH_I2C_Read... [15:23:20]Read from MH i2c: 01 07 00 D5 9F 00 00 00 00 00 FF 0F 89 [15:23:20]RasterBufferAndPrint [15:23:20]line Счет N : (1)347634 [15:23:20]line ИНН: 02508201610067 [15:23:20]line Контрольно-Кассовый Чек [15:23:20]line ПРОДАЖА [15:23:20]line ТРК (МРК, ГНК) : 32 [15:23:20]line Товар: 2710124130 [15:23:20]line Аи-92-К-5 [15:23:20]line 7.780 * 64.30 [15:23:20]line = 500.25 [15:23:20]line НДС 12% НСП 1% [15:23:20]line > о реализуемом товаре [15:23:20]line ОКРУГЛЕНИЕ: -0.25 [15:23:20]line ИТОГО: 500.00 [15:23:20]line Внесено: 500.00 [15:23:20]line СДАЧА: 0.00 [15:23:20]line НСП 1% : 4.43 [15:23:20]line НДС 12% : 53.12 [15:23:20]line Наличными: 500.00 [15:23:20]line Безнал.: 0.00 [15:23:20]line Место: АЗС № 108 "Партнер Нефть" [15:23:20]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [15:23:20]line СНО: Общий режим [15:23:20]line Чек 160 14.04.2024 15:23 [15:23:20]line Смена: 116 ФФД: 1.0 [15:23:20]line ЗНМ: 0300000027 [15:23:20]line РНМ: 0000138879044617 [15:23:20]line Версия ККМ: 001 [15:23:20]line ФМ: 0000000000963154 [15:23:20]line ФД: 29250 [15:23:20]line ФПД: 228972726625948 [15:23:21]line 1/tax-web-control/client/api/v1/ticket?date=20240414T152329&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29250&fm=228972726625948&tin=02508201610067®Number=0000138879044617&sum=50000 [15:23:21]OFD Sender: Processing packet 29250 [packets to send 8, broken 7] [15:23:21]ProducePacketName [15:23:21]name=ofd_packets/00029250 [15:23:21]OFD Sender: To server: pG, [15:23:21]CommunicateWithHost lk.salyk.kg:30040 [15:23:21]ConnectInit lk.salyk.kg [15:23:21]written 0, free lines is 4095 [15:23:21]Connected sock=10 [15:23:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 63 74 07 01 D6 8B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 A0 00 00 00 F4 03 04 00 F1 F4 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 42 72 00 00 35 04 06 00 D0 3F DE 08 A6 9C 42 4B 92 7F 45 18 A0 70 [15:23:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 B1 4D 47 00 96 BD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 42 72 00 00 F4 03 04 00 95 9F 1B 66 B6 04 01 00 00 D8 C2 8C A5 6A 1E 31 E6 [15:23:21]CommunicateWithHost err = 0 [15:23:21]CheckOFDResponse [15:23:21]1017 (14) - 77093643461234 [15:23:21]1041 (16) - 0000000000963154 [15:23:21]1040 (4) - 29250 [15:23:21]1012 (4) - 14.04.2024 09:19 [15:23:21]1206 (1) - 0 [15:23:21]OFD Sender: Remove packet 29250 [15:23:21]ProducePacketName [15:23:21]name=ofd_packets/00029250 [15:23:21]NVStorageDeleteData [15:23:21]Write to MH i2c: 01 00 00 FF 9F 9E [15:23:21]Write i2c OK [15:23:21]MH_I2C_Read... [15:23:21]Read from MH i2c: 01 [15:23:21]MH_I2C_Read... [15:23:21]Read from MH i2c: 01 07 00 [15:23:21]MH_I2C_Read... [15:23:21]Read from MH i2c: 01 07 00 FF 9F 00 00 00 00 00 C8 0C 79 [15:23:21]RasterBufferAndPrint [15:23:21]line [15:23:21]line [15:23:21]line [15:23:21]line [15:23:21]line [15:23:21]written 0, free lines is 3278 [15:23:21]MH_Cut [15:23:21]Write to MH i2c: D1 01 00 06 A0 01 78 [15:23:21]Write i2c OK [15:23:21]MH_I2C_Read... [15:23:21]Read from MH i2c: D1 [15:23:21]MH_I2C_Read... [15:23:21]Read from MH i2c: D1 01 00 [15:23:21]MH_I2C_Read... [15:23:21]Read from MH i2c: D1 01 00 06 A0 00 77 [15:23:21]Write to MH i2c: 01 00 00 07 A0 A7 [15:23:21]Write i2c OK [15:23:21]MH_I2C_Read... [15:23:21]OFD Sender: No OFD packet to send [15:23:22]*** Cut start [15:23:22]*** Partial cut [15:23:22]*** CUTSNS_PIN = 1 [15:23:22]*** CUTSNS_PIN = 0 [15:23:22]*** Brake cut motor [15:23:23]Read from MH i2c: 01 [15:23:23]MH_I2C_Read... [15:23:23]*** Stop cut motor [15:23:23]*** Cut end [15:23:23]Read from MH i2c: 01 07 00 [15:23:23]MH_I2C_Read... [15:23:23]Read from MH i2c: 01 07 00 07 A0 00 00 00 00 00 FF 0F BC [15:23:23]process_action close_receipt done [15:23:23]requested_data is exist [15:23:23]produce_requested_data [15:23:23]requested_item fm.sn is exist - process it [15:23:23]wFMCommunicate request_size=4 [15:23:23]MH_SAM_APDU [15:23:23]CAPDU: 80 11 00 00 [15:23:23]Write to MH i2c: E2 08 00 08 A0 80 11 00 00 00 00 00 00 22 [15:23:23]Write i2c OK [15:23:23]MH_I2C_Read... [15:23:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:23]Read from MH i2c: E2 [15:23:23]MH_I2C_Read... [15:23:23]Read from MH i2c: E2 17 00 [15:23:23]MH_I2C_Read... [15:23:23]Read from MH i2c: E2 17 00 08 A0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 71 [15:23:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:23:23]wFMCommunicate OK [15:23:23]requested_item fd.num is exist - process it [15:23:23]SAM_PROTO_GetFieldsCounters [15:23:23]wFMCommunicate request_size=4 [15:23:23]MH_SAM_APDU [15:23:23]CAPDU: 80 13 00 00 [15:23:23]Write to MH i2c: E2 08 00 09 A0 80 13 00 00 00 00 00 00 25 [15:23:23]Write i2c OK [15:23:23]MH_I2C_Read... [15:23:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:23:23]Read from MH i2c: E2 [15:23:23]MH_I2C_Read... [15:23:23]Read from MH i2c: E2 62 00 [15:23:23]MH_I2C_Read... [15:23:23]Read from MH i2c: E2 62 00 09 A0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 42 72 00 00 0E 04 04 00 74 00 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 6B [15:23:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 42 72 00 00 0E 04 04 00 74 00 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 [15:23:23]wFMCommunicate OK [15:23:23]SAM_PROTO_GetFieldsCounters done [15:23:23]requested_item shift.num is exist - process it [15:23:23]requested_item shift.opened is exist - process it [15:23:23]req_shift_opened [15:23:23]FM_GetShiftState [15:23:23]SAM_PROTO_GetShiftState [15:23:23]wFMCommunicate request_size=4 [15:23:23]MH_SAM_APDU [15:23:23]CAPDU: 80 13 01 00 [15:23:23]Write to MH i2c: E2 08 00 0A A0 80 13 01 00 00 00 00 00 27 [15:23:23]Write i2c OK [15:23:23]MH_I2C_Read... [15:23:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:23:23]Read from MH i2c: E2 [15:23:23]MH_I2C_Read... [15:23:23]Read from MH i2c: E2 0E 00 [15:23:23]MH_I2C_Read... [15:23:23]Read from MH i2c: E2 0E 00 0A A0 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 D3 [15:23:23]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [15:23:23]wFMCommunicate OK [15:23:23]SAM_PROTO_GetShiftState done [15:23:23]FM_GetShiftState done [15:23:23]req_shift_opened done [15:23:23]requested_item shift.open_date is exist - process it [15:23:23]req_shift_open_date [15:23:23]req_shift_open_date done [15:23:23]produce_requested_data done [15:23:23]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29250,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [15:23:23]process_action_free close_receipt [15:23:23]json_value_free [15:23:23]json_value_free done [15:23:23]process_json_proto returns [15:23:23]Send response to host [15:23:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29250,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [15:23:23]free response buf [15:23:23]execute_script done [15:23:23]execute_script returns [15:23:23]free content buf [15:23:23]Sock 7.Close socket [15:23:23]Sock 7.Thread stoped [15:23:26]OFD Sender: No OFD packet to send [15:23:31]OFD Sender: No OFD packet to send [15:23:36]OFD Sender: No OFD packet to send [15:23: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:12]OFD Sender: No OFD packet to send [15:25:17]OFD Sender: No OFD packet to send [15:25:22]OFD Sender: No OFD packet to send [15:25:27]OFD Sender: No OFD packet to send [15:25:32]OFD Sender: No OFD packet to send [15:25:37]OFD Sender: No OFD packet to send [15:25:42]OFD Sender: No OFD packet to send [15:25:47]OFD Sender: No OFD packet to send [15:25:52]OFD Sender: No OFD packet to send [15:25:57]OFD Sender: No OFD packet to send [15:26:02]OFD Sender: No OFD packet to send [15:26:07]OFD Sender: No OFD packet to send [15:26:12]OFD Sender: No OFD packet to send [15:26:17]OFD Sender: No OFD packet to send [15:26:22]OFD Sender: No OFD packet to send [15:26:27]OFD Sender: No OFD packet to send [15:26:32]OFD Sender: No OFD packet to send [15:26:37]OFD Sender: No OFD packet to send [15:26:42]OFD Sender: No OFD packet to send [15:26:45]accept exits with 9 [15:26:45]New connection [15:26:45]New thread 3066928484 created [15:26:45]Thread 3066785124 joined [15:26:45]Waiting for new connection... [15:26:45] Sock 9.Parse request [15:26:45]Sock 9.Check first char [15:26:45]Sock 9.First char is OK [15:26:45]request: POST /json_proto HTTP/1.0 [15:26:45]Method: POST [15:26:45]URL: /json_proto [15:26:45]Method is POST - this is cgi request [15:26:45]url: /json_proto [15:26:45]query_string will be loaded in cgi processing [15:26:45]execute_cgi json_proto POST (null) [15:26:45]execute_cgi path=json_proto method=POST [15:26:45]POST find Content-Length [15:26:45]Host: 172.17.33.3:8080 [15:26:45]Content-Length: 685 [15:26:45]Content-Type: application/json [15:26:45] [15:26:45]POST finish read [15:26:45]Found Content-Length = 685 [15:26:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347635", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 30.400, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:26:45]execute_script... [15:26: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)347635", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 30.400, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:26:45]POST & json_proto [15:26:45]process_json_proto [15:26:45]json parsed OK: [15:26:45]protocol is kg_v1.0 [15:26:45]action value=close_receipt [15:26:45]process_action close_receipt [15:26:45]cmd_close_receipt [15:26:45]MH_GetDate [15:26:45]Write to MH i2c: F0 00 00 0B A0 9A [15:26:45]Write i2c OK [15:26:45]MH_I2C_Read... [15:26:45]Read from MH i2c: F0 [15:26:45]MH_I2C_Read... [15:26:45]Read from MH i2c: F0 09 00 [15:26:45]MH_I2C_Read... [15:26:45]Read from MH i2c: F0 09 00 0B A0 00 C0 F5 1B 66 23 5B 8F 65 4B [15:26:45]GetLastDocTimeStamp 1713108209 [15:26:45]current date 1713108416 [15:26:45]FM_GetShiftState [15:26:45]SAM_PROTO_GetShiftState [15:26:45]wFMCommunicate request_size=4 [15:26:45]MH_SAM_APDU [15:26:45]CAPDU: 80 13 01 00 [15:26:45]Write to MH i2c: E2 08 00 0C A0 80 13 01 00 00 00 00 00 29 [15:26:45]Write i2c OK [15:26:45]MH_I2C_Read... [15:26:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:26:45]Read from MH i2c: E2 [15:26:45]MH_I2C_Read... [15:26:45]Read from MH i2c: E2 0E 00 [15:26:45]MH_I2C_Read... [15:26:45]Read from MH i2c: E2 0E 00 0C A0 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 D5 [15:26:45]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [15:26:45]wFMCommunicate OK [15:26:45]SAM_PROTO_GetShiftState done [15:26:45]FM_GetShiftState done [15:26:45]opened in 1713053951 [15:26:45]opened+sec_in_day 1713140351 [15:26:45]quantity*price = 100016 [15:26:45]sum+1 = 100017 [15:26:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 161 14.04.2024 15:26 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29251 ФПД: 171177490979987 1/tax-web-control/client/api/v1/ticket?date=20240414T152656&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29251&fm=171177490979987&tin=02508201610067®Number=0000138879044617&sum=100000 [15:26:46]StoreToDocumentArchive [15:26:46]shift 116 fd 29251 [15:26:46]save to /storage/0116/doc_00029251 [15:26:46]save last doc name /storage/0116/doc_00029251 to /storage/kkm_last_doc_name [15:26:46]save OK [15:26:46]Clear old archive folders... [15:26:46]ProcessDocumentItem done err = 0, tmpTLVsize=250 [15:26:46]tlvbuf is 011A21D0 [15:26:46]SAM_PROTO_ClearQueue [15:26:46]wFMCommunicate request_size=4 [15:26:46]MH_SAM_APDU [15:26:46]CAPDU: 80 09 00 00 [15:26:46]Write to MH i2c: E2 08 00 19 A0 80 09 00 00 00 00 00 00 2B [15:26:46]Write i2c OK [15:26:46]MH_I2C_Read... [15:26:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:26:46]Read from MH i2c: E2 [15:26:46]MH_I2C_Read... [15:26:46]Read from MH i2c: E2 03 00 [15:26:46]MH_I2C_Read... [15:26:46]Read from MH i2c: E2 03 00 19 A0 00 90 00 2D [15:26:46]RAPDU: 90 00 [15:26:46]wFMCommunicate OK [15:26:46]SAM_PROTO_ClearQueue done [15:26:46]KKMCreateOFDPacket [15:26:46]OFDProtocolAddRootSTLVToBuf [15:26:46]FM_MakeSignedData [15:26:46]FM_MakeSignedData [15:26:46]SAM_PROTO_SignData [15:26:46]wFMCommunicate request_size=4 [15:26:46]MH_SAM_APDU [15:26:46]CAPDU: 80 0D 01 02 [15:26:46]Write to MH i2c: E2 08 00 1A A0 80 0D 01 02 00 00 00 00 33 [15:26:46]Write i2c OK [15:26:46]MH_I2C_Read... [15:26:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:26:46]Read from MH i2c: E2 [15:26:46]MH_I2C_Read... [15:26:46]Read from MH i2c: E2 03 00 [15:26:46]MH_I2C_Read... [15:26:46]Read from MH i2c: E2 03 00 1A A0 00 90 00 2E [15:26:46]RAPDU: 90 00 [15:26:46]wFMCommunicate OK [15:26:46]wFMCommunicate request_size=255 [15:26:46]MH_SAM_APDU [15:26:46]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 C0 F5 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 43 72 00 00 35 04 06 00 9B AF [15:26:46]Write to MH i2c: E2 02 01 1B A0 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 C0 F5 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 43 72 00 00 35 04 06 00 9B AF 00 00 13 [15:26:46]Write i2c OK [15:26:46]MH_I2C_Read... [15:26:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:26:46]Read from MH i2c: E2 [15:26:46]MH_I2C_Read... [15:26:46]Read from MH i2c: E2 03 00 [15:26:46]MH_I2C_Read... [15:26:46]Read from MH i2c: E2 03 00 1B A0 00 90 00 2F [15:26:46]RAPDU: 90 00 [15:26:46]wFMCommunicate OK [15:26:46]wFMCommunicate request_size=9 [15:26:46]MH_SAM_APDU [15:26:46]CAPDU: 80 0D 02 02 04 5D 8B 1C 93 [15:26:46]Write to MH i2c: E2 0C 00 1C A0 80 0D 02 02 04 00 5D 8B 1C 93 00 00 D5 [15:26:46]Write i2c OK [15:26:46]MH_I2C_Read... [15:26:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:26:46]Read from MH i2c: E2 [15:26:46]MH_I2C_Read... [15:26:46]Read from MH i2c: E2 03 00 [15:26:46]MH_I2C_Read... [15:26:46]Read from MH i2c: E2 03 00 1C A0 00 90 00 30 [15:26:46]RAPDU: 90 00 [15:26:46]wFMCommunicate OK [15:26:46]wFMCommunicate request_size=4 [15:26:46]MH_SAM_APDU [15:26:46]CAPDU: 80 0D 03 02 [15:26:46]Write to MH i2c: E2 08 00 1D A0 80 0D 03 02 00 00 00 00 38 [15:26:46]Write i2c OK [15:26:46]MH_I2C_Read... [15:26:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:26:46]Read from MH i2c: E2 [15:26:46]MH_I2C_Read... [15:26:46]Read from MH i2c: E2 0B 00 [15:26:46]MH_I2C_Read... [15:26:46]Read from MH i2c: E2 0B 00 1D A0 00 D7 98 8B 3B 9B D8 97 9E 90 00 16 [15:26:46]RAPDU: D7 98 8B 3B 9B D8 97 9E 90 00 [15:26:46]wFMCommunicate OK [15:26:46]SAM_PROTO_SignData done [15:26:46]FM_MakeSignedData done [15:26:46]CreateOFDProtocolMessage [15:26:46]wFMCommunicate request_size=4 [15:26:46]MH_SAM_APDU [15:26:46]CAPDU: 80 11 00 00 [15:26:46]Write to MH i2c: E2 08 00 1E A0 80 11 00 00 00 00 00 00 38 [15:26:46]Write i2c OK [15:26:46]MH_I2C_Read... [15:26:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:26:47]Read from MH i2c: E2 [15:26:47]MH_I2C_Read... [15:26:47]Read from MH i2c: E2 17 00 [15:26:47]MH_I2C_Read... [15:26:47]Read from MH i2c: E2 17 00 1E A0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 87 [15:26:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:26:47]wFMCommunicate OK [15:26:47]CreateOFDProtocolMessage done [15:26:47]OFDSenderStorePacket 29251 [15:26:47]StoreOFDPacket docnum=29251 [15:26:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 DE D3 06 01 44 90 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 C0 F5 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 43 72 00 00 35 04 06 00 9B AF 5D 8B 1C 93 D7 98 8B 3B 9B D8 97 9E [15:26:47]CheckFolder [15:26:47]dirname=/storage/ofd_packets [15:26:47]CheckFolder done [15:26:47]ProducePacketName [15:26:47]name=ofd_packets/00029251 [15:26:47]NVStorageSaveData ofd_packets/00029251 [15:26:47]File name is /storage/ofd_packets/00029251 [15:26:47]Write 300 bytes [15:26:47]NVStorageSaveData done [15:26:47]OFDSenderStorePacket done [15:26:47]KKMCreateOFDPacket done [15:26:47]NVStorageSaveData kkm_last_timestamp [15:26:47]File name is /storage/kkm_last_timestamp [15:26:47]Write 4 bytes [15:26:47]NVStorageSaveData done [15:26:47]ExternCall_PrintAddStr [15:26:47]wPrintStart [15:26:47]Write to MH i2c: 01 00 00 1F A0 BF [15:26:47]Write i2c OK [15:26:47]MH_I2C_Read... [15:26:47]Read from MH i2c: 01 [15:26:47]MH_I2C_Read... [15:26:47]Read from MH i2c: 01 07 00 [15:26:47]MH_I2C_Read... [15:26:47]Read from MH i2c: 01 07 00 1F A0 00 00 00 00 00 FF 0F D4 [15:26:47]RasterBufferAndPrint [15:26:47]line Счет N : (1)347635 [15:26:47]line ИНН: 02508201610067 [15:26:47]line Контрольно-Кассовый Чек [15:26:47]line ПРОДАЖА [15:26:47]line ТРК (МРК, ГНК) : 71 [15:26:47]line Товар: 2711129700 [15:26:47]line ГАЗ-К-5 [15:26:47]line 30.400 * 32.90 [15:26:47]line = 1000.16 [15:26:47]line НДС 12% НСП 1% [15:26:47]line > о реализуемом товаре [15:26:47]line ОКРУГЛЕНИЕ: -0.16 [15:26:47]line ИТОГО: 1000.00 [15:26:47]line Внесено: 1000.00 [15:26:47]line СДАЧА: 0.00 [15:26:47]line НСП 1% : 8.85 [15:26:47]line НДС 12% : 106.21 [15:26:47]line Наличными: 1000.00 [15:26:47]line Безнал.: 0.00 [15:26:47]line Место: АЗС № 108 "Партнер Нефть" [15:26:47]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [15:26:47]line СНО: Общий режим [15:26:47]line Чек 161 14.04.2024 15:26 [15:26:47]line Смена: 116 ФФД: 1.0 [15:26:47]line ЗНМ: 0300000027 [15:26:47]line РНМ: 0000138879044617 [15:26:47]line Версия ККМ: 001 [15:26:47]line ФМ: 0000000000963154 [15:26:47]line ФД: 29251 [15:26:47]line ФПД: 171177490979987 [15:26:47]line 1/tax-web-control/client/api/v1/ticket?date=20240414T152656&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29251&fm=171177490979987&tin=02508201610067®Number=0000138879044617&sum=100000 [15:26:47]OFD Sender: Processing packet 29251 [packets to send 8, broken 7] [15:26:47]ProducePacketName [15:26:47]name=ofd_packets/00029251 [15:26:47]OFD Sender: To server: pG, [15:26:47]CommunicateWithHost lk.salyk.kg:30040 [15:26:47]ConnectInit lk.salyk.kg [15:26:47]written 0, free lines is 4095 [15:26:47]Connected sock=10 [15:26:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 DE D3 06 01 44 90 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 C0 F5 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 43 72 00 00 35 04 06 00 9B AF 5D 8B 1C 93 D7 98 8B 3B 9B D8 97 9E [15:26:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 2C 45 47 00 CD D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 43 72 00 00 F4 03 04 00 63 A0 1B 66 B6 04 01 00 00 F5 78 00 EC 24 F9 F6 AF [15:26:47]CommunicateWithHost err = 0 [15:26:47]CheckOFDResponse [15:26:47]1017 (14) - 77093643461234 [15:26:47]1041 (16) - 0000000000963154 [15:26:47]1040 (4) - 29251 [15:26:47]1012 (4) - 14.04.2024 09:22 [15:26:47]1206 (1) - 0 [15:26:47]OFD Sender: Remove packet 29251 [15:26:47]ProducePacketName [15:26:47]name=ofd_packets/00029251 [15:26:47]NVStorageDeleteData [15:26:47]Write to MH i2c: 01 00 00 49 A0 E9 [15:26:47]Write i2c OK [15:26:47]MH_I2C_Read... [15:26:47]Read from MH i2c: 01 [15:26:47]MH_I2C_Read... [15:26:47]Read from MH i2c: 01 07 00 [15:26:47]MH_I2C_Read... [15:26:47]Read from MH i2c: 01 07 00 49 A0 00 00 00 00 00 C4 0C C0 [15:26:47]RasterBufferAndPrint [15:26:47]line [15:26:47]line [15:26:47]line [15:26:47]line [15:26:47]line [15:26:47]written 0, free lines is 3272 [15:26:47]MH_Cut [15:26:47]Write to MH i2c: D1 01 00 50 A0 01 C2 [15:26:47]Write i2c OK [15:26:47]MH_I2C_Read... [15:26:47]Read from MH i2c: D1 [15:26:47]MH_I2C_Read... [15:26:47]Read from MH i2c: D1 01 00 [15:26:47]MH_I2C_Read... [15:26:47]Read from MH i2c: D1 01 00 50 A0 00 C1 [15:26:47]Write to MH i2c: 01 00 00 51 A0 F1 [15:26:47]Write i2c OK [15:26:47]MH_I2C_Read... [15:26:48]OFD Sender: No OFD packet to send [15:26:48]*** Cut start [15:26:48]*** Partial cut [15:26:48]*** CUTSNS_PIN = 1 [15:26:48]*** CUTSNS_PIN = 0 [15:26:48]*** Brake cut motor [15:26:49]Read from MH i2c: 01 [15:26:49]MH_I2C_Read... [15:26:49]*** Stop cut motor [15:26:49]*** Cut end [15:26:49]Read from MH i2c: 01 07 00 [15:26:49]MH_I2C_Read... [15:26:49]Read from MH i2c: 01 07 00 51 A0 00 00 00 00 00 FF 0F 06 [15:26:49]process_action close_receipt done [15:26:49]requested_data is exist [15:26:49]produce_requested_data [15:26:49]requested_item fm.sn is exist - process it [15:26:49]wFMCommunicate request_size=4 [15:26:49]MH_SAM_APDU [15:26:49]CAPDU: 80 11 00 00 [15:26:49]Write to MH i2c: E2 08 00 52 A0 80 11 00 00 00 00 00 00 6C [15:26:49]Write i2c OK [15:26:49]MH_I2C_Read... [15:26:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:26:49]Read from MH i2c: E2 [15:26:49]MH_I2C_Read... [15:26:49]Read from MH i2c: E2 17 00 [15:26:49]MH_I2C_Read... [15:26:49]Read from MH i2c: E2 17 00 52 A0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 BB [15:26:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:26:49]wFMCommunicate OK [15:26:49]requested_item fd.num is exist - process it [15:26:49]SAM_PROTO_GetFieldsCounters [15:26:49]wFMCommunicate request_size=4 [15:26:49]MH_SAM_APDU [15:26:49]CAPDU: 80 13 00 00 [15:26:49]Write to MH i2c: E2 08 00 53 A0 80 13 00 00 00 00 00 00 6F [15:26:49]Write i2c OK [15:26:49]MH_I2C_Read... [15:26:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:26:49]Read from MH i2c: E2 [15:26:49]MH_I2C_Read... [15:26:49]Read from MH i2c: E2 62 00 [15:26:49]MH_I2C_Read... [15:26:49]Read from MH i2c: E2 62 00 53 A0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 43 72 00 00 0E 04 04 00 74 00 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 B9 [15:26:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 43 72 00 00 0E 04 04 00 74 00 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 [15:26:49]wFMCommunicate OK [15:26:49]SAM_PROTO_GetFieldsCounters done [15:26:49]requested_item shift.num is exist - process it [15:26:49]requested_item shift.opened is exist - process it [15:26:49]req_shift_opened [15:26:49]FM_GetShiftState [15:26:49]SAM_PROTO_GetShiftState [15:26:49]wFMCommunicate request_size=4 [15:26:49]MH_SAM_APDU [15:26:49]CAPDU: 80 13 01 00 [15:26:49]Write to MH i2c: E2 08 00 54 A0 80 13 01 00 00 00 00 00 71 [15:26:49]Write i2c OK [15:26:49]MH_I2C_Read... [15:26:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:26:49]Read from MH i2c: E2 [15:26:49]MH_I2C_Read... [15:26:49]Read from MH i2c: E2 0E 00 [15:26:49]MH_I2C_Read... [15:26:49]Read from MH i2c: E2 0E 00 54 A0 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 1D [15:26:49]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [15:26:49]wFMCommunicate OK [15:26:49]SAM_PROTO_GetShiftState done [15:26:49]FM_GetShiftState done [15:26:49]req_shift_opened done [15:26:49]requested_item shift.open_date is exist - process it [15:26:49]req_shift_open_date [15:26:49]req_shift_open_date done [15:26:49]produce_requested_data done [15:26:49]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29251,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [15:26:49]process_action_free close_receipt [15:26:49]json_value_free [15:26:49]json_value_free done [15:26:49]process_json_proto returns [15:26:49]Send response to host [15:26:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29251,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [15:26:49]free response buf [15:26:49]execute_script done [15:26:49]execute_script returns [15:26:49]free content buf [15:26:49]Sock 9.Close socket [15:26:49]Sock 9.Thread stoped [15:26:53]OFD Sender: No OFD packet to send [15:26:58]OFD Sender: No OFD packet to send [15:27:03]OFD Sender: No OFD packet to send [15:27:08]OFD Sender: No OFD packet to send [15:27:13]OFD Sender: No OFD packet to send [15:27:18]OFD Sender: No OFD packet to send [15:27:23]OFD Sender: No OFD packet to send [15:27:28]OFD Sender: No OFD packet to send [15:27:33]OFD Sender: No OFD packet to send [15:27:38]OFD Sender: No OFD packet to send [15:27:43]OFD Sender: No OFD packet to send [15:27:48]OFD Sender: No OFD packet to send [15:27:53]OFD Sender: No OFD packet to send [15:27:58]OFD Sender: No OFD packet to send [15:28:03]OFD Sender: No OFD packet to send [15:28:08]OFD Sender: No OFD packet to send [15:28:13]OFD Sender: No OFD packet to send [15:28:13]accept exits with 7 [15:28:13]New connection [15:28:13]New thread 3066785124 created [15:28:13]Thread 3066928484 joined [15:28:13]Waiting for new connection... [15:28:13] Sock 7.Parse request [15:28:13]Sock 7.Check first char [15:28:13]Sock 7.First char is OK [15:28:13]request: POST /json_proto HTTP/1.0 [15:28:13]Method: POST [15:28:13]URL: /json_proto [15:28:13]Method is POST - this is cgi request [15:28:13]url: /json_proto [15:28:13]query_string will be loaded in cgi processing [15:28:13]execute_cgi json_proto POST (null) [15:28:13]execute_cgi path=json_proto method=POST [15:28:13]POST find Content-Length [15:28:13]Host: 172.17.33.3:8080 [15:28:13]Content-Length: 819 [15:28:13]Content-Type: application/json [15:28:13] [15:28:13]POST finish read [15:28:13]Found Content-Length = 819 [15:28:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347636", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 23.330, "sum" : 1500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:28:13]execute_script... [15:28: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)347636", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 23.330, "sum" : 1500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:28:13]POST & json_proto [15:28:13]process_json_proto [15:28:13]json parsed OK: [15:28:13]protocol is kg_v1.0 [15:28:13]action value=close_receipt [15:28:13]process_action close_receipt [15:28:13]cmd_close_receipt [15:28:13]MH_GetDate [15:28:13]Write to MH i2c: F0 00 00 55 A0 E4 [15:28:13]Write i2c OK [15:28:13]MH_I2C_Read... [15:28:13]Read from MH i2c: F0 [15:28:13]MH_I2C_Read... [15:28:13]Read from MH i2c: F0 09 00 [15:28:13]MH_I2C_Read... [15:28:13]Read from MH i2c: F0 09 00 55 A0 00 18 F6 1B 66 23 5B 8F 65 EE [15:28:13]GetLastDocTimeStamp 1713108416 [15:28:13]current date 1713108504 [15:28:13]FM_GetShiftState [15:28:13]SAM_PROTO_GetShiftState [15:28:13]wFMCommunicate request_size=4 [15:28:13]MH_SAM_APDU [15:28:13]CAPDU: 80 13 01 00 [15:28:13]Write to MH i2c: E2 08 00 56 A0 80 13 01 00 00 00 00 00 73 [15:28:13]Write i2c OK [15:28:13]MH_I2C_Read... [15:28:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:28:13]Read from MH i2c: E2 [15:28:13]MH_I2C_Read... [15:28:13]Read from MH i2c: E2 0E 00 [15:28:13]MH_I2C_Read... [15:28:13]Read from MH i2c: E2 0E 00 56 A0 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 1F [15:28:13]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [15:28:13]wFMCommunicate OK [15:28:13]SAM_PROTO_GetShiftState done [15:28:13]FM_GetShiftState done [15:28:13]opened in 1713053951 [15:28:13]opened+sec_in_day 1713140351 [15:28:13]quantity*price = 150011 [15:28:13]sum+1 = 150013 [15:28:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.12 НСП 1% : 13.27 НДС 12% : 159.30 Наличными: 0.00 Безнал.: 1500.12 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 162 14.04.2024 15:28 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 29252 ФПД: 217451308589904 1/tax-web-control/client/api/v1/ticket?date=20240414T152824&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29252&fm=217451308589904&tin=02508201610067®Number=0000138879044617&sum=150012 [15:28:14]StoreToDocumentArchive [15:28:14]shift 116 fd 29252 [15:28:14]save to /storage/0116/doc_00029252 [15:28:14]save last doc name /storage/0116/doc_00029252 to /storage/kkm_last_doc_name [15:28:14]save OK [15:28:14]Clear old archive folders... [15:28:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:28:14]tlvbuf is 0121A2B0 [15:28:14]SAM_PROTO_ClearQueue [15:28:14]wFMCommunicate request_size=4 [15:28:14]MH_SAM_APDU [15:28:14]CAPDU: 80 09 00 00 [15:28:14]Write to MH i2c: E2 08 00 63 A0 80 09 00 00 00 00 00 00 75 [15:28:14]Write i2c OK [15:28:14]MH_I2C_Read... [15:28:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:28:14]Read from MH i2c: E2 [15:28:14]MH_I2C_Read... [15:28:14]Read from MH i2c: E2 03 00 [15:28:14]MH_I2C_Read... [15:28:14]Read from MH i2c: E2 03 00 63 A0 00 90 00 77 [15:28:14]RAPDU: 90 00 [15:28:14]wFMCommunicate OK [15:28:14]SAM_PROTO_ClearQueue done [15:28:14]KKMCreateOFDPacket [15:28:14]OFDProtocolAddRootSTLVToBuf [15:28:14]FM_MakeSignedData [15:28:14]FM_MakeSignedData [15:28:14]SAM_PROTO_SignData [15:28:14]wFMCommunicate request_size=4 [15:28:14]MH_SAM_APDU [15:28:14]CAPDU: 80 0D 01 02 [15:28:14]Write to MH i2c: E2 08 00 64 A0 80 0D 01 02 00 00 00 00 7D [15:28:14]Write i2c OK [15:28:14]MH_I2C_Read... [15:28:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:28:15]Read from MH i2c: E2 [15:28:15]MH_I2C_Read... [15:28:15]Read from MH i2c: E2 03 00 [15:28:15]MH_I2C_Read... [15:28:15]Read from MH i2c: E2 03 00 64 A0 00 90 00 78 [15:28:15]RAPDU: 90 00 [15:28:15]wFMCommunicate OK [15:28:15]wFMCommunicate request_size=255 [15:28:15]MH_SAM_APDU [15:28:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 FC 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 00 00 00 00 00 00 39 04 06 00 FC 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 18 F6 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 44 72 00 00 35 04 06 00 C5 [15:28:15]Write to MH i2c: E2 02 01 65 A0 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 FC 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 00 00 00 00 00 00 39 04 06 00 FC 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 18 F6 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 44 72 00 00 35 04 06 00 C5 00 00 F9 [15:28:15]Write i2c OK [15:28:15]MH_I2C_Read... [15:28:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:28:15]Read from MH i2c: E2 [15:28:15]MH_I2C_Read... [15:28:15]Read from MH i2c: E2 03 00 [15:28:15]MH_I2C_Read... [15:28:15]Read from MH i2c: E2 03 00 65 A0 00 90 00 79 [15:28:15]RAPDU: 90 00 [15:28:15]wFMCommunicate OK [15:28:15]wFMCommunicate request_size=10 [15:28:15]MH_SAM_APDU [15:28:15]CAPDU: 80 0D 02 02 05 C5 54 01 23 50 [15:28:15]Write to MH i2c: E2 0D 00 66 A0 80 0D 02 02 05 00 C5 54 01 23 50 00 00 17 [15:28:15]Write i2c OK [15:28:15]MH_I2C_Read... [15:28:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:28:15]Read from MH i2c: E2 [15:28:15]MH_I2C_Read... [15:28:15]Read from MH i2c: E2 03 00 [15:28:15]MH_I2C_Read... [15:28:15]Read from MH i2c: E2 03 00 66 A0 00 90 00 7A [15:28:15]RAPDU: 90 00 [15:28:15]wFMCommunicate OK [15:28:15]wFMCommunicate request_size=4 [15:28:15]MH_SAM_APDU [15:28:15]CAPDU: 80 0D 03 02 [15:28:15]Write to MH i2c: E2 08 00 67 A0 80 0D 03 02 00 00 00 00 82 [15:28:15]Write i2c OK [15:28:15]MH_I2C_Read... [15:28:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:28:15]Read from MH i2c: E2 [15:28:15]MH_I2C_Read... [15:28:15]Read from MH i2c: E2 0B 00 [15:28:15]MH_I2C_Read... [15:28:15]Read from MH i2c: E2 0B 00 67 A0 00 DD 38 E0 9D 12 80 64 FB 90 00 06 [15:28:15]RAPDU: DD 38 E0 9D 12 80 64 FB 90 00 [15:28:15]wFMCommunicate OK [15:28:15]SAM_PROTO_SignData done [15:28:15]FM_MakeSignedData done [15:28:15]CreateOFDProtocolMessage [15:28:15]wFMCommunicate request_size=4 [15:28:15]MH_SAM_APDU [15:28:15]CAPDU: 80 11 00 00 [15:28:15]Write to MH i2c: E2 08 00 68 A0 80 11 00 00 00 00 00 00 82 [15:28:15]Write i2c OK [15:28:15]MH_I2C_Read... [15:28:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:28:15]Read from MH i2c: E2 [15:28:15]MH_I2C_Read... [15:28:15]Read from MH i2c: E2 17 00 [15:28:15]MH_I2C_Read... [15:28:15]Read from MH i2c: E2 17 00 68 A0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D1 [15:28:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:28:15]wFMCommunicate OK [15:28:15]CreateOFDProtocolMessage done [15:28:15]OFDSenderStorePacket 29252 [15:28:15]StoreOFDPacket docnum=29252 [15:28:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 B5 5E 07 01 8D 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 FC 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 00 00 00 00 00 00 39 04 06 00 FC 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 18 F6 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 44 72 00 00 35 04 06 00 C5 C5 54 01 23 50 DD 38 E0 9D 12 80 64 FB [15:28:15]CheckFolder [15:28:15]dirname=/storage/ofd_packets [15:28:15]CheckFolder done [15:28:15]ProducePacketName [15:28:15]name=ofd_packets/00029252 [15:28:15]NVStorageSaveData ofd_packets/00029252 [15:28:15]File name is /storage/ofd_packets/00029252 [15:28:15]Write 301 bytes [15:28:15]NVStorageSaveData done [15:28:15]OFDSenderStorePacket done [15:28:15]KKMCreateOFDPacket done [15:28:15]NVStorageSaveData kkm_last_timestamp [15:28:15]File name is /storage/kkm_last_timestamp [15:28:15]Write 4 bytes [15:28:15]NVStorageSaveData done [15:28:15]ExternCall_PrintAddStr [15:28:15]wPrintStart [15:28:15]Write to MH i2c: 01 00 00 69 A0 09 [15:28:15]Write i2c OK [15:28:15]MH_I2C_Read... [15:28:15]Read from MH i2c: 01 [15:28:15]MH_I2C_Read... [15:28:15]Read from MH i2c: 01 07 00 [15:28:15]MH_I2C_Read... [15:28:15]Read from MH i2c: 01 07 00 69 A0 00 00 00 00 00 FF 0F 1E [15:28:15]RasterBufferAndPrint [15:28:15]line Счет N : (1)347636 [15:28:15]line ИНН: 02508201610067 [15:28:15]line Контрольно-Кассовый Чек [15:28:15]line ПРОДАЖА [15:28:15]line ТРК (МРК, ГНК) : 13 [15:28:15]line Товар: 2710124130 [15:28:15]line Аи-92-К-5 [15:28:15]line 23.330 * 64.30 [15:28:15]line = 1500.12 [15:28:15]line НДС 12% НСП 1% [15:28:15]line > о реализуемом товаре [15:28:15]line ИТОГО: 1500.12 [15:28:15]line НСП 1% : 13.27 [15:28:15]line НДС 12% : 159.30 [15:28:15]line Наличными: 0.00 [15:28:15]line Безнал.: 1500.12 [15:28:15]line Место: АЗС № 108 "Партнер Нефть" [15:28:15]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [15:28:15]line СНО: Общий режим [15:28:15]line Чек 162 14.04.2024 15:28 [15:28:15]line Смена: 116 ФФД: 1.0 [15:28:15]line ЗНМ: 0300000027 [15:28:15]line РНМ: 0000138879044617 [15:28:15]line Версия ККМ: 001 [15:28:15]line Платежная система: Бакай Банк [15:28:15]line ФМ: 0000000000963154 [15:28:15]line ФД: 29252 [15:28:15]line ФПД: 217451308589904 [15:28:15]line 1/tax-web-control/client/api/v1/ticket?date=20240414T152824&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29252&fm=217451308589904&tin=02508201610067®Number=0000138879044617&sum=150012 [15:28:15]OFD Sender: Processing packet 29252 [packets to send 8, broken 7] [15:28:15]ProducePacketName [15:28:15]name=ofd_packets/00029252 [15:28:15]OFD Sender: To server: pG, [15:28:15]CommunicateWithHost lk.salyk.kg:30040 [15:28:15]ConnectInit lk.salyk.kg [15:28:15]written 0, free lines is 4095 [15:28:15]Connected sock=10 [15:28:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 B5 5E 07 01 8D 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 FC 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 00 00 00 00 00 00 39 04 06 00 FC 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 18 F6 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 44 72 00 00 35 04 06 00 C5 C5 54 01 23 50 DD 38 E0 9D 12 80 64 FB [15:28:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 91 5E 47 00 8A 6E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 44 72 00 00 F4 03 04 00 BC A0 1B 66 B6 04 01 00 00 CF 27 F3 14 EB 52 9F BB [15:28:16]CommunicateWithHost err = 0 [15:28:16]CheckOFDResponse [15:28:16]1017 (14) - 77093643461234 [15:28:16]1041 (16) - 0000000000963154 [15:28:16]1040 (4) - 29252 [15:28:16]1012 (4) - 14.04.2024 09:24 [15:28:16]1206 (1) - 0 [15:28:16]OFD Sender: Remove packet 29252 [15:28:16]ProducePacketName [15:28:16]name=ofd_packets/00029252 [15:28:16]NVStorageDeleteData [15:28:16]Write to MH i2c: 01 00 00 92 A0 32 [15:28:16]Write i2c OK [15:28:16]MH_I2C_Read... [15:28:16]Read from MH i2c: 01 [15:28:16]MH_I2C_Read... [15:28:16]Read from MH i2c: 01 07 00 [15:28:16]MH_I2C_Read... [15:28:16]Read from MH i2c: 01 07 00 92 A0 00 00 00 00 00 E4 0C 29 [15:28:16]RasterBufferAndPrint [15:28:16]line [15:28:16]line [15:28:16]line [15:28:16]line [15:28:16]line [15:28:16]written 0, free lines is 3305 [15:28:16]MH_Cut [15:28:16]Write to MH i2c: D1 01 00 99 A0 01 0B [15:28:16]Write i2c OK [15:28:16]MH_I2C_Read... [15:28:16]Read from MH i2c: D1 [15:28:16]MH_I2C_Read... [15:28:16]Read from MH i2c: D1 01 00 [15:28:16]MH_I2C_Read... [15:28:16]Read from MH i2c: D1 01 00 99 A0 00 0A [15:28:16]Write to MH i2c: 01 00 00 9A A0 3A [15:28:16]Write i2c OK [15:28:16]MH_I2C_Read... [15:28:16]OFD Sender: No OFD packet to send [15:28:17]*** Cut start [15:28:17]*** Partial cut [15:28:17]*** CUTSNS_PIN = 1 [15:28:17]*** CUTSNS_PIN = 0 [15:28:17]*** Brake cut motor [15:28:17]Read from MH i2c: 01 [15:28:17]MH_I2C_Read... [15:28:17]*** Stop cut motor [15:28:17]*** Cut end [15:28:17]Read from MH i2c: 01 07 00 [15:28:17]MH_I2C_Read... [15:28:17]Read from MH i2c: 01 07 00 9A A0 00 00 00 00 00 FF 0F 4F [15:28:17]process_action close_receipt done [15:28:17]requested_data is exist [15:28:17]produce_requested_data [15:28:17]requested_item fm.sn is exist - process it [15:28:17]wFMCommunicate request_size=4 [15:28:17]MH_SAM_APDU [15:28:17]CAPDU: 80 11 00 00 [15:28:17]Write to MH i2c: E2 08 00 9B A0 80 11 00 00 00 00 00 00 B5 [15:28:17]Write i2c OK [15:28:17]MH_I2C_Read... [15:28:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:28:17]Read from MH i2c: E2 [15:28:17]MH_I2C_Read... [15:28:17]Read from MH i2c: E2 17 00 [15:28:17]MH_I2C_Read... [15:28:17]Read from MH i2c: E2 17 00 9B A0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 04 [15:28:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:28:17]wFMCommunicate OK [15:28:17]requested_item fd.num is exist - process it [15:28:17]SAM_PROTO_GetFieldsCounters [15:28:17]wFMCommunicate request_size=4 [15:28:17]MH_SAM_APDU [15:28:17]CAPDU: 80 13 00 00 [15:28:17]Write to MH i2c: E2 08 00 9C A0 80 13 00 00 00 00 00 00 B8 [15:28:17]Write i2c OK [15:28:17]MH_I2C_Read... [15:28:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:28:17]Read from MH i2c: E2 [15:28:17]MH_I2C_Read... [15:28:17]Read from MH i2c: E2 62 00 [15:28:17]MH_I2C_Read... [15:28:17]Read from MH i2c: E2 62 00 9C A0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 44 72 00 00 0E 04 04 00 74 00 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 06 [15:28:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 44 72 00 00 0E 04 04 00 74 00 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 [15:28:17]wFMCommunicate OK [15:28:17]SAM_PROTO_GetFieldsCounters done [15:28:17]requested_item shift.num is exist - process it [15:28:17]requested_item shift.opened is exist - process it [15:28:17]req_shift_opened [15:28:17]FM_GetShiftState [15:28:17]SAM_PROTO_GetShiftState [15:28:17]wFMCommunicate request_size=4 [15:28:17]MH_SAM_APDU [15:28:17]CAPDU: 80 13 01 00 [15:28:17]Write to MH i2c: E2 08 00 9D A0 80 13 01 00 00 00 00 00 BA [15:28:17]Write i2c OK [15:28:17]MH_I2C_Read... [15:28:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:28:17]Read from MH i2c: E2 [15:28:17]MH_I2C_Read... [15:28:17]Read from MH i2c: E2 0E 00 [15:28:17]MH_I2C_Read... [15:28:17]Read from MH i2c: E2 0E 00 9D A0 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 66 [15:28:17]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [15:28:17]wFMCommunicate OK [15:28:17]SAM_PROTO_GetShiftState done [15:28:17]FM_GetShiftState done [15:28:17]req_shift_opened done [15:28:17]requested_item shift.open_date is exist - process it [15:28:17]req_shift_open_date [15:28:17]req_shift_open_date done [15:28:17]produce_requested_data done [15:28:17]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29252,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [15:28:17]process_action_free close_receipt [15:28:17]json_value_free [15:28:17]json_value_free done [15:28:17]process_json_proto returns [15:28:17]Send response to host [15:28:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29252,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [15:28:17]free response buf [15:28:17]execute_script done [15:28:17]execute_script returns [15:28:17]free content buf [15:28:17]Sock 7.Close socket [15:28:17]Sock 7.Thread stoped [15:28:21]OFD Sender: No OFD packet to send [15:28:26]OFD Sender: No OFD packet to send [15:28:31]OFD Sender: No OFD packet to send [15:28:36]OFD Sender: No OFD packet to send [15:28:41]OFD Sender: No OFD packet to send [15:28:46]OFD Sender: No OFD packet to send [15:28:51]OFD Sender: No OFD packet to send [15:28:56]OFD Sender: No OFD packet to send [15:29:01]OFD Sender: No OFD packet to send [15:29:06]OFD Sender: No OFD packet to send [15:29:11]OFD Sender: No OFD packet to send [15:29:16]OFD Sender: No OFD packet to send [15:29:21]OFD Sender: No OFD packet to send [15:29:26]OFD Sender: No OFD packet to send [15:29:31]OFD Sender: No OFD packet to send [15:29:36]OFD Sender: No OFD packet to send [15:29:41]OFD Sender: No OFD packet to send [15:29:46]OFD Sender: No OFD packet to send [15:29:51]OFD Sender: No OFD packet to send [15:29:56]OFD Sender: No OFD packet to send [15:30:01]OFD Sender: No OFD packet to send [15:30:06]OFD Sender: No OFD packet to send [15:30:11]OFD Sender: No OFD packet to send [15:30:16]OFD Sender: No OFD packet to send [15:30:21]OFD Sender: No OFD packet to send [15:30:26]OFD Sender: No OFD packet to send [15:30:31]OFD Sender: No OFD packet to send [15:30:36]OFD Sender: No OFD packet to send [15:30:41]OFD Sender: No OFD packet to send [15:30:46]OFD Sender: No OFD packet to send [15:30:51]OFD Sender: No OFD packet to send [15:30:56]OFD Sender: No OFD packet to send [15:31:01]OFD Sender: No OFD packet to send [15:31:06]OFD Sender: No OFD packet to send [15:31:11]OFD Sender: No OFD packet to send [15:31:16]OFD Sender: No OFD packet to send [15:31:21]OFD Sender: No OFD packet to send [15:31:26]OFD Sender: No OFD packet to send [15:31:31]OFD Sender: No OFD packet to send [15:31:36]OFD Sender: No OFD packet to send [15:31:41]OFD Sender: No OFD packet to send [15:31:46]OFD Sender: No OFD packet to send [15:31:51]OFD Sender: No OFD packet to send [15:31:56]OFD Sender: No OFD packet to send [15:32:01]OFD Sender: No OFD packet to send [15:32:06]OFD Sender: No OFD packet to send [15:32:11]OFD Sender: No OFD packet to send [15:32:16]OFD Sender: No OFD packet to send [15:32:21]OFD Sender: No OFD packet to send [15:32:26]OFD Sender: No OFD packet to send [15:32:31]OFD Sender: No OFD packet to send [15:32:36]OFD Sender: No OFD packet to send [15:32:41]OFD Sender: No OFD packet to send [15:32:46]OFD Sender: No OFD packet to send [15:32:51]OFD Sender: No OFD packet to send [15:32:56]OFD Sender: No OFD packet to send [15:33:01]OFD Sender: No OFD packet to send [15:33:06]OFD Sender: No OFD packet to send [15:33:11]OFD Sender: No OFD packet to send [15:33:16]OFD Sender: No OFD packet to send [15:33:21]OFD Sender: No OFD packet to send [15:33:26]OFD Sender: No OFD packet to send [15:33:31]OFD Sender: No OFD packet to send [15:33:36]OFD Sender: No OFD packet to send [15:33:41]OFD Sender: No OFD packet to send [15:33:46]OFD Sender: No OFD packet to send [15:33:51]OFD Sender: No OFD packet to send [15:33:56]OFD Sender: No OFD packet to send [15:34:01]OFD Sender: No OFD packet to send [15:34:06]OFD Sender: No OFD packet to send [15:34:11]OFD Sender: No OFD packet to send [15:34:16]OFD Sender: No OFD packet to send [15:34:21]OFD Sender: No OFD packet to send [15:34:26]OFD Sender: No OFD packet to send [15:34:31]OFD Sender: No OFD packet to send [15:34:36]OFD Sender: No OFD packet to send [15:34:41]OFD Sender: No OFD packet to send [15:34:46]OFD Sender: No OFD packet to send [15:34:51]OFD Sender: No OFD packet to send [15:34:56]OFD Sender: No OFD packet to send [15:35:01]OFD Sender: No OFD packet to send [15:35:06]OFD Sender: No OFD packet to send [15:35:11]OFD Sender: No OFD packet to send [15:35:16]OFD Sender: No OFD packet to send [15:35:21]OFD Sender: No OFD packet to send [15:35:26]OFD Sender: No OFD packet to send [15:35:31]OFD Sender: No OFD packet to send [15:35:36]OFD Sender: No OFD packet to send [15:35:41]OFD Sender: No OFD packet to send [15:35:46]OFD Sender: No OFD packet to send [15:35:51]OFD Sender: No OFD packet to send [15:35:56]OFD Sender: No OFD packet to send [15:36:01]OFD Sender: No OFD packet to send [15:36:06]OFD Sender: No OFD packet to send [15:36:11]OFD Sender: No OFD packet to send [15:36:16]OFD Sender: No OFD packet to send [15:36:21]OFD Sender: No OFD packet to send [15:36:26]OFD Sender: No OFD packet to send [15:36:31]OFD Sender: No OFD packet to send [15:36:36]OFD Sender: No OFD packet to send [15:36:41]OFD Sender: No OFD packet to send [15:36:46]OFD Sender: No OFD packet to send [15:36:52]OFD Sender: No OFD packet to send [15:36:57]OFD Sender: No OFD packet to send [15:37:02]OFD Sender: No OFD packet to send [15:37:07]OFD Sender: No OFD packet to send [15:37:12]OFD Sender: No OFD packet to send [15:37:17]OFD Sender: No OFD packet to send [15:37:22]OFD Sender: No OFD packet to send [15:37:27]OFD Sender: No OFD packet to send [15:37:32]OFD Sender: No OFD packet to send [15:37:37]OFD Sender: No OFD packet to send [15:37:42]OFD Sender: No OFD packet to send [15:37:47]OFD Sender: No OFD packet to send [15:37:52]OFD Sender: No OFD packet to send [15:37:57]OFD Sender: No OFD packet to send [15:38:02]OFD Sender: No OFD packet to send [15:38:07]OFD Sender: No OFD packet to send [15:38:12]OFD Sender: No OFD packet to send [15:38:17]OFD Sender: No OFD packet to send [15:38:22]OFD Sender: No OFD packet to send [15:38:27]OFD Sender: No OFD packet to send [15:38:32]OFD Sender: No OFD packet to send [15:38:37]OFD Sender: No OFD packet to send [15:38:42]OFD Sender: No OFD packet to send [15:38:47]OFD Sender: No OFD packet to send [15:38:52]OFD Sender: No OFD packet to send [15:38:57]OFD Sender: No OFD packet to send [15:39:02]OFD Sender: No OFD packet to send [15:39:07]OFD Sender: No OFD packet to send [15:39:12]OFD Sender: No OFD packet to send [15:39:17]OFD Sender: No OFD packet to send [15:39:22]OFD Sender: No OFD packet to send [15:39:27]OFD Sender: No OFD packet to send [15:39:32]OFD Sender: No OFD packet to send [15:39:37]OFD Sender: No OFD packet to send [15:39:42]OFD Sender: No OFD packet to send [15:39:47]OFD Sender: No OFD packet to send [15:39:52]OFD Sender: No OFD packet to send [15:39:57]OFD Sender: No OFD packet to send [15:40:02]OFD Sender: No OFD packet to send [15:40:07]OFD Sender: No OFD packet to send [15:40:12]OFD Sender: No OFD packet to send [15:40:17]OFD Sender: No OFD packet to send [15:40:22]OFD Sender: No OFD packet to send [15:40:27]OFD Sender: No OFD packet to send [15:40:32]OFD Sender: No OFD packet to send [15:40:37]OFD Sender: No OFD packet to send [15:40:42]OFD Sender: No OFD packet to send [15:40:47]OFD Sender: No OFD packet to send [15:40:52]OFD Sender: No OFD packet to send [15:40:57]OFD Sender: No OFD packet to send [15:41:02]OFD Sender: No OFD packet to send [15:41:07]OFD Sender: No OFD packet to send [15:41:12]OFD Sender: No OFD packet to send [15:41:17]OFD Sender: No OFD packet to send [15:41:22]OFD Sender: No OFD packet to send [15:41:27]OFD Sender: No OFD packet to send [15:41:32]OFD Sender: No OFD packet to send [15:41:37]OFD Sender: No OFD packet to send [15:41:42]OFD Sender: No OFD packet to send [15:41:47]OFD Sender: No OFD packet to send [15:41:52]OFD Sender: No OFD packet to send [15:41:57]OFD Sender: No OFD packet to send [15:42:02]OFD Sender: No OFD packet to send [15:42:07]OFD Sender: No OFD packet to send [15:42:12]OFD Sender: No OFD packet to send [15:42:17]OFD Sender: No OFD packet to send [15:42:22]OFD Sender: No OFD packet to send [15:42:27]OFD Sender: No OFD packet to send [15:42:32]OFD Sender: No OFD packet to send [15:42:37]OFD Sender: No OFD packet to send [15:42:42]OFD Sender: No OFD packet to send [15:42:47]OFD Sender: No OFD packet to send [15:42:52]OFD Sender: No OFD packet to send [15:42:57]OFD Sender: No OFD packet to send [15:43:02]OFD Sender: No OFD packet to send [15:43:07]OFD Sender: No OFD packet to send [15:43:12]OFD Sender: No OFD packet to send [15:43:17]OFD Sender: No OFD packet to send [15:43:22]OFD Sender: No OFD packet to send [15:43:27]OFD Sender: No OFD packet to send [15:43:32]OFD Sender: No OFD packet to send [15:43:37]OFD Sender: No OFD packet to send [15:43:42]OFD Sender: No OFD packet to send [15:43:47]OFD Sender: No OFD packet to send [15:43:49]accept exits with 9 [15:43:49]New connection [15:43:49]New thread 3066928484 created [15:43:49]Thread 3066785124 joined [15:43:49]Waiting for new connection... [15:43:49] Sock 9.Parse request [15:43:49]Sock 9.Check first char [15:43:49]Sock 9.First char is OK [15:43:49]request: POST /json_proto HTTP/1.0 [15:43:49]Method: POST [15:43:49]URL: /json_proto [15:43:49]Method is POST - this is cgi request [15:43:49]url: /json_proto [15:43:49]query_string will be loaded in cgi processing [15:43:49]execute_cgi json_proto POST (null) [15:43:49]execute_cgi path=json_proto method=POST [15:43:49]POST find Content-Length [15:43:49]Host: 172.17.33.3:8080 [15:43:49]Content-Length: 768 [15:43:49]Content-Type: application/json [15:43:49] [15:43:49]POST finish read [15:43:49]Found Content-Length = 768 [15:43:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347637", "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.000, "sum" : 964.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: cash2u", "payments": [ { "type": 1, "sum" : 964.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:43:49]execute_script... [15:43: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)347637", "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.000, "sum" : 964.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: cash2u", "payments": [ { "type": 1, "sum" : 964.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:43:49]POST & json_proto [15:43:49]process_json_proto [15:43:49]json parsed OK: [15:43:49]protocol is kg_v1.0 [15:43:49]action value=close_receipt [15:43:49]process_action close_receipt [15:43:49]cmd_close_receipt [15:43:49]MH_GetDate [15:43:49]Write to MH i2c: F0 00 00 9E A0 2D [15:43:49]Write i2c OK [15:43:49]MH_I2C_Read... [15:43:49]Read from MH i2c: F0 [15:43:49]MH_I2C_Read... [15:43:49]Read from MH i2c: F0 09 00 [15:43:49]MH_I2C_Read... [15:43:49]Read from MH i2c: F0 09 00 9E A0 00 C0 F9 1B 66 23 5B 8F 65 E2 [15:43:49]GetLastDocTimeStamp 1713108504 [15:43:49]current date 1713109440 [15:43:49]FM_GetShiftState [15:43:49]SAM_PROTO_GetShiftState [15:43:49]wFMCommunicate request_size=4 [15:43:49]MH_SAM_APDU [15:43:49]CAPDU: 80 13 01 00 [15:43:49]Write to MH i2c: E2 08 00 9F A0 80 13 01 00 00 00 00 00 BC [15:43:49]Write i2c OK [15:43:49]MH_I2C_Read... [15:43:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:43:50]Read from MH i2c: E2 [15:43:50]MH_I2C_Read... [15:43:50]Read from MH i2c: E2 0E 00 [15:43:50]MH_I2C_Read... [15:43:50]Read from MH i2c: E2 0E 00 9F A0 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 68 [15:43:50]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [15:43:50]wFMCommunicate OK [15:43:50]SAM_PROTO_GetShiftState done [15:43:50]FM_GetShiftState done [15:43:50]opened in 1713053951 [15:43:50]opened+sec_in_day 1713140351 [15:43:50]quantity*price = 96450 [15:43:50]sum+1 = 96451 [15:43:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 964.50 НСП 1% : 8.53 НДС 12% : 102.42 Наличными: 0.00 Безнал.: 964.50 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 163 14.04.2024 15:44 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: cash2u ФМ: 0000000000963154 ФД: 29253 ФПД: 189143482060587 1/tax-web-control/client/api/v1/ticket?date=20240414T154400&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29253&fm=189143482060587&tin=02508201610067®Number=0000138879044617&sum=96450 [15:43:51]StoreToDocumentArchive [15:43:51]shift 116 fd 29253 [15:43:51]save to /storage/0116/doc_00029253 [15:43:51]save last doc name /storage/0116/doc_00029253 to /storage/kkm_last_doc_name [15:43:51]save OK [15:43:51]Clear old archive folders... [15:43:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:43:51]tlvbuf is 011CB4E0 [15:43:51]SAM_PROTO_ClearQueue [15:43:51]wFMCommunicate request_size=4 [15:43:51]MH_SAM_APDU [15:43:51]CAPDU: 80 09 00 00 [15:43:51]Write to MH i2c: E2 08 00 AC A0 80 09 00 00 00 00 00 00 BE [15:43:51]Write i2c OK [15:43:51]MH_I2C_Read... [15:43:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:43:51]Read from MH i2c: E2 [15:43:51]MH_I2C_Read... [15:43:51]Read from MH i2c: E2 03 00 [15:43:51]MH_I2C_Read... [15:43:51]Read from MH i2c: E2 03 00 AC A0 00 90 00 C0 [15:43:51]RAPDU: 90 00 [15:43:51]wFMCommunicate OK [15:43:51]SAM_PROTO_ClearQueue done [15:43:51]KKMCreateOFDPacket [15:43:51]OFDProtocolAddRootSTLVToBuf [15:43:51]FM_MakeSignedData [15:43:51]FM_MakeSignedData [15:43:51]SAM_PROTO_SignData [15:43:51]wFMCommunicate request_size=4 [15:43:51]MH_SAM_APDU [15:43:51]CAPDU: 80 0D 01 02 [15:43:51]Write to MH i2c: E2 08 00 AD A0 80 0D 01 02 00 00 00 00 C6 [15:43:51]Write i2c OK [15:43:51]MH_I2C_Read... [15:43:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:43:51]Read from MH i2c: E2 [15:43:51]MH_I2C_Read... [15:43:51]Read from MH i2c: E2 03 00 [15:43:51]MH_I2C_Read... [15:43:51]Read from MH i2c: E2 03 00 AD A0 00 90 00 C1 [15:43:51]RAPDU: 90 00 [15:43:51]wFMCommunicate OK [15:43:51]wFMCommunicate request_size=255 [15:43:51]MH_SAM_APDU [15:43: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 98 3A 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 C2 78 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C2 78 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 55 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 28 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C2 78 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 C0 F9 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 45 72 00 00 35 04 06 00 AC [15:43:51]Write to MH i2c: E2 02 01 AE A0 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 C2 78 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C2 78 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 55 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 28 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C2 78 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 C0 F9 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 45 72 00 00 35 04 06 00 AC 00 00 DD [15:43:51]Write i2c OK [15:43:51]MH_I2C_Read... [15:43:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:43:51]Read from MH i2c: E2 [15:43:51]MH_I2C_Read... [15:43:51]Read from MH i2c: E2 03 00 [15:43:51]MH_I2C_Read... [15:43:51]Read from MH i2c: E2 03 00 AE A0 00 90 00 C2 [15:43:51]RAPDU: 90 00 [15:43:51]wFMCommunicate OK [15:43:51]wFMCommunicate request_size=10 [15:43:51]MH_SAM_APDU [15:43:51]CAPDU: 80 0D 02 02 05 06 66 0F 4F 2B [15:43:51]Write to MH i2c: E2 0D 00 AF A0 80 0D 02 02 05 00 06 66 0F 4F 2B 00 00 C8 [15:43:51]Write i2c OK [15:43:51]MH_I2C_Read... [15:43:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:43:51]Read from MH i2c: E2 [15:43:51]MH_I2C_Read... [15:43:51]Read from MH i2c: E2 03 00 [15:43:51]MH_I2C_Read... [15:43:51]Read from MH i2c: E2 03 00 AF A0 00 90 00 C3 [15:43:51]RAPDU: 90 00 [15:43:51]wFMCommunicate OK [15:43:51]wFMCommunicate request_size=4 [15:43:51]MH_SAM_APDU [15:43:51]CAPDU: 80 0D 03 02 [15:43:51]Write to MH i2c: E2 08 00 B0 A0 80 0D 03 02 00 00 00 00 CB [15:43:51]Write i2c OK [15:43:51]MH_I2C_Read... [15:43:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:43:51]Read from MH i2c: E2 [15:43:51]MH_I2C_Read... [15:43:51]Read from MH i2c: E2 0B 00 [15:43:51]MH_I2C_Read... [15:43:51]Read from MH i2c: E2 0B 00 B0 A0 00 C5 3B CD C3 FA 93 C4 A0 90 00 4D [15:43:51]RAPDU: C5 3B CD C3 FA 93 C4 A0 90 00 [15:43:51]wFMCommunicate OK [15:43:51]SAM_PROTO_SignData done [15:43:51]FM_MakeSignedData done [15:43:51]CreateOFDProtocolMessage [15:43:51]wFMCommunicate request_size=4 [15:43:51]MH_SAM_APDU [15:43:51]CAPDU: 80 11 00 00 [15:43:51]Write to MH i2c: E2 08 00 B1 A0 80 11 00 00 00 00 00 00 CB [15:43:51]Write i2c OK [15:43:51]MH_I2C_Read... [15:43:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:43:51]Read from MH i2c: E2 [15:43:51]MH_I2C_Read... [15:43:51]Read from MH i2c: E2 17 00 [15:43:51]MH_I2C_Read... [15:43:51]Read from MH i2c: E2 17 00 B1 A0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 1A [15:43:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:43:51]wFMCommunicate OK [15:43:51]CreateOFDProtocolMessage done [15:43:51]OFDSenderStorePacket 29253 [15:43:51]StoreOFDPacket docnum=29253 [15:43:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 74 EE 07 01 C6 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 98 3A 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 C2 78 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C2 78 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 55 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 28 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C2 78 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 C0 F9 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 45 72 00 00 35 04 06 00 AC 06 66 0F 4F 2B C5 3B CD C3 FA 93 C4 A0 [15:43:51]CheckFolder [15:43:51]dirname=/storage/ofd_packets [15:43:51]CheckFolder done [15:43:51]ProducePacketName [15:43:51]name=ofd_packets/00029253 [15:43:51]NVStorageSaveData ofd_packets/00029253 [15:43:51]File name is /storage/ofd_packets/00029253 [15:43:51]Write 301 bytes [15:43:51]NVStorageSaveData done [15:43:51]OFDSenderStorePacket done [15:43:51]KKMCreateOFDPacket done [15:43:51]NVStorageSaveData kkm_last_timestamp [15:43:51]File name is /storage/kkm_last_timestamp [15:43:51]Write 4 bytes [15:43:51]NVStorageSaveData done [15:43:51]ExternCall_PrintAddStr [15:43:51]wPrintStart [15:43:51]Write to MH i2c: 01 00 00 B2 A0 52 [15:43:51]Write i2c OK [15:43:51]MH_I2C_Read... [15:43:51]Read from MH i2c: 01 [15:43:51]MH_I2C_Read... [15:43:51]Read from MH i2c: 01 07 00 [15:43:51]MH_I2C_Read... [15:43:51]Read from MH i2c: 01 07 00 B2 A0 00 00 00 00 00 FF 0F 67 [15:43:51]RasterBufferAndPrint [15:43:51]line Счет N : (1)347637 [15:43:51]line ИНН: 02508201610067 [15:43:51]line Контрольно-Кассовый Чек [15:43:51]line ПРОДАЖА [15:43:51]line ТРК (МРК, ГНК) : 32 [15:43:51]line Товар: 2710124130 [15:43:51]line Аи-92-К-5 [15:43:51]line 15.000 * 64.30 [15:43:51]line = 964.50 [15:43:51]line НДС 12% НСП 1% [15:43:51]line > о реализуемом товаре [15:43:51]line ИТОГО: 964.50 [15:43:51]line НСП 1% : 8.53 [15:43:51]line НДС 12% : 102.42 [15:43:51]line Наличными: 0.00 [15:43:51]line Безнал.: 964.50 [15:43:51]line Место: АЗС № 108 "Партнер Нефть" [15:43:51]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [15:43:51]line СНО: Общий режим [15:43:51]line Чек 163 14.04.2024 15:44 [15:43:51]line Смена: 116 ФФД: 1.0 [15:43:51]line ЗНМ: 0300000027 [15:43:51]line РНМ: 0000138879044617 [15:43:51]line Версия ККМ: 001 [15:43:51]line Платежная система: cash2u [15:43:51]line ФМ: 0000000000963154 [15:43:51]line ФД: 29253 [15:43:51]line ФПД: 189143482060587 [15:43:51]line 1/tax-web-control/client/api/v1/ticket?date=20240414T154400&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29253&fm=189143482060587&tin=02508201610067®Number=0000138879044617&sum=96450 [15:43:52]OFD Sender: Processing packet 29253 [packets to send 8, broken 7] [15:43:52]ProducePacketName [15:43:52]name=ofd_packets/00029253 [15:43:52]OFD Sender: To server: pG, [15:43:52]CommunicateWithHost lk.salyk.kg:30040 [15:43:52]ConnectInit lk.salyk.kg [15:43:52]written 0, free lines is 4095 [15:43:52]Connected sock=10 [15:43:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 74 EE 07 01 C6 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 98 3A 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 C2 78 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C2 78 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 55 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 28 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C2 78 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 C0 F9 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 45 72 00 00 35 04 06 00 AC 06 66 0F 4F 2B C5 3B CD C3 FA 93 C4 A0 [15:43:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 C3 B2 47 00 28 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 45 72 00 00 F4 03 04 00 64 A4 1B 66 B6 04 01 00 00 39 5A 9C 5A B9 C4 D7 33 [15:43:52]CommunicateWithHost err = 0 [15:43:52]CheckOFDResponse [15:43:52]1017 (14) - 77093643461234 [15:43:52]1041 (16) - 0000000000963154 [15:43:52]1040 (4) - 29253 [15:43:52]1012 (4) - 14.04.2024 09:39 [15:43:52]1206 (1) - 0 [15:43:52]OFD Sender: Remove packet 29253 [15:43:52]ProducePacketName [15:43:52]name=ofd_packets/00029253 [15:43:52]NVStorageDeleteData [15:43:52]Write to MH i2c: 01 00 00 DA A0 7A [15:43:52]Write i2c OK [15:43:52]MH_I2C_Read... [15:43:52]Read from MH i2c: 01 [15:43:52]MH_I2C_Read... [15:43:52]Read from MH i2c: 01 07 00 [15:43:52]MH_I2C_Read... [15:43:52]Read from MH i2c: 01 07 00 DA A0 00 00 00 00 00 EF 0C 7C [15:43:52]RasterBufferAndPrint [15:43:52]line [15:43:52]line [15:43:52]line [15:43:52]line [15:43:52]line [15:43:52]written 0, free lines is 3319 [15:43:52]MH_Cut [15:43:52]Write to MH i2c: D1 01 00 E1 A0 01 53 [15:43:52]Write i2c OK [15:43:52]MH_I2C_Read... [15:43:52]Read from MH i2c: D1 [15:43:52]MH_I2C_Read... [15:43:52]Read from MH i2c: D1 01 00 [15:43:52]MH_I2C_Read... [15:43:52]Read from MH i2c: D1 01 00 E1 A0 00 52 [15:43:52]Write to MH i2c: 01 00 00 E2 A0 82 [15:43:52]Write i2c OK [15:43:52]MH_I2C_Read... [15:43:52]OFD Sender: No OFD packet to send [15:43:53]*** Cut start [15:43:53]*** Partial cut [15:43:53]*** CUTSNS_PIN = 1 [15:43:53]*** CUTSNS_PIN = 0 [15:43:53]*** Brake cut motor [15:43:53]Read from MH i2c: 01 [15:43:53]MH_I2C_Read... [15:43:53]*** Stop cut motor [15:43:53]*** Cut end [15:43:53]Read from MH i2c: 01 07 00 [15:43:53]MH_I2C_Read... [15:43:53]Read from MH i2c: 01 07 00 E2 A0 00 00 00 00 00 FF 0F 97 [15:43:53]process_action close_receipt done [15:43:53]requested_data is exist [15:43:53]produce_requested_data [15:43:53]requested_item fm.sn is exist - process it [15:43:53]wFMCommunicate request_size=4 [15:43:53]MH_SAM_APDU [15:43:53]CAPDU: 80 11 00 00 [15:43:53]Write to MH i2c: E2 08 00 E3 A0 80 11 00 00 00 00 00 00 FD [15:43:53]Write i2c OK [15:43:53]MH_I2C_Read... [15:43:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:43:53]Read from MH i2c: E2 [15:43:53]MH_I2C_Read... [15:43:53]Read from MH i2c: E2 17 00 [15:43:53]MH_I2C_Read... [15:43:53]Read from MH i2c: E2 17 00 E3 A0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 4C [15:43:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:43:53]wFMCommunicate OK [15:43:53]requested_item fd.num is exist - process it [15:43:53]SAM_PROTO_GetFieldsCounters [15:43:53]wFMCommunicate request_size=4 [15:43:53]MH_SAM_APDU [15:43:53]CAPDU: 80 13 00 00 [15:43:53]Write to MH i2c: E2 08 00 E4 A0 80 13 00 00 00 00 00 00 00 [15:43:53]Write i2c OK [15:43:53]MH_I2C_Read... [15:43:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:43:54]Read from MH i2c: E2 [15:43:54]MH_I2C_Read... [15:43:54]Read from MH i2c: E2 62 00 [15:43:54]MH_I2C_Read... [15:43:54]Read from MH i2c: E2 62 00 E4 A0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 45 72 00 00 0E 04 04 00 74 00 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 52 [15:43:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 45 72 00 00 0E 04 04 00 74 00 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 [15:43:54]wFMCommunicate OK [15:43:54]SAM_PROTO_GetFieldsCounters done [15:43:54]requested_item shift.num is exist - process it [15:43:54]requested_item shift.opened is exist - process it [15:43:54]req_shift_opened [15:43:54]FM_GetShiftState [15:43:54]SAM_PROTO_GetShiftState [15:43:54]wFMCommunicate request_size=4 [15:43:54]MH_SAM_APDU [15:43:54]CAPDU: 80 13 01 00 [15:43:54]Write to MH i2c: E2 08 00 E5 A0 80 13 01 00 00 00 00 00 02 [15:43:54]Write i2c OK [15:43:54]MH_I2C_Read... [15:43:54]Read from MH i2c: E2 [15:43:54]MH_I2C_Read... [15:43:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:43:54]Read from MH i2c: E2 0E 00 [15:43:54]MH_I2C_Read... [15:43:54]Read from MH i2c: E2 0E 00 E5 A0 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 AE [15:43:54]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [15:43:54]wFMCommunicate OK [15:43:54]SAM_PROTO_GetShiftState done [15:43:54]FM_GetShiftState done [15:43:54]req_shift_opened done [15:43:54]requested_item shift.open_date is exist - process it [15:43:54]req_shift_open_date [15:43:54]req_shift_open_date done [15:43:54]produce_requested_data done [15:43:54]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29253,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [15:43:54]process_action_free close_receipt [15:43:54]json_value_free [15:43:54]json_value_free done [15:43:54]process_json_proto returns [15:43:54]Send response to host [15:43:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29253,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [15:43:54]free response buf [15:43:54]execute_script done [15:43:54]execute_script returns [15:43:54]free content buf [15:43:54]Sock 9.Close socket [15:43:54]Sock 9.Thread stoped [15:43:57]OFD Sender: No OFD packet to send [15:44:02]OFD Sender: No OFD packet to send [15:44:07]OFD Sender: No OFD packet to send [15:44:12]OFD Sender: No OFD packet to send [15:44:17]OFD Sender: No OFD packet to send [15:44:22]OFD Sender: No OFD packet to send [15:44:27]OFD Sender: No OFD packet to send [15:44:32]OFD Sender: No OFD packet to send [15:44:37]OFD Sender: No OFD packet to send [15:44:42]OFD Sender: No OFD packet to send [15:44:47]OFD Sender: No OFD packet to send [15:44:52]OFD Sender: No OFD packet to send [15:44:57]OFD Sender: No OFD packet to send [15:45:02]OFD Sender: No OFD packet to send [15:45:07]OFD Sender: No OFD packet to send [15:45:12]OFD Sender: No OFD packet to send [15:45:17]OFD Sender: No OFD packet to send [15:45:22]OFD Sender: No OFD packet to send [15:45:27]OFD Sender: No OFD packet to send [15:45:32]OFD Sender: No OFD packet to send [15:45:37]OFD Sender: No OFD packet to send [15:45:42]OFD Sender: No OFD packet to send [15:45:47]OFD Sender: No OFD packet to send [15:45:52]OFD Sender: No OFD packet to send [15:45:57]OFD Sender: No OFD packet to send [15:46:02]OFD Sender: No OFD packet to send [15:46:07]OFD Sender: No OFD packet to send [15:46:12]OFD Sender: No OFD packet to send [15:46:17]OFD Sender: No OFD packet to send [15:46:22]OFD Sender: No OFD packet to send [15:46:27]OFD Sender: No OFD packet to send [15:46:32]OFD Sender: No OFD packet to send [15:46:37]OFD Sender: No OFD packet to send [15:46:42]OFD Sender: No OFD packet to send [15:46:47]OFD Sender: No OFD packet to send [15:46:52]OFD Sender: No OFD packet to send [15:46:57]OFD Sender: No OFD packet to send [15:47:02]OFD Sender: No OFD packet to send [15:47:07]OFD Sender: No OFD packet to send [15:47:12]OFD Sender: No OFD packet to send [15:47:17]OFD Sender: No OFD packet to send [15:47:22]OFD Sender: No OFD packet to send [15:47:25]accept exits with 7 [15:47:25]New connection [15:47:25]New thread 3066785124 created [15:47:25]Thread 3066928484 joined [15:47:25]Waiting for new connection... [15:47:25] Sock 7.Parse request [15:47:25]Sock 7.Check first char [15:47:25]Sock 7.First char is OK [15:47:25]request: POST /json_proto HTTP/1.0 [15:47:25]Method: POST [15:47:25]URL: /json_proto [15:47:25]Method is POST - this is cgi request [15:47:25]url: /json_proto [15:47:25]query_string will be loaded in cgi processing [15:47:25]execute_cgi json_proto POST (null) [15:47:25]execute_cgi path=json_proto method=POST [15:47:25]POST find Content-Length [15:47:25]Host: 172.17.33.3:8080 [15:47:25]Content-Length: 677 [15:47:25]Content-Type: application/json [15:47:25] [15:47:25]POST finish read [15:47:25]Found Content-Length = 677 [15:47:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347638", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.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" ] } } [15:47:25]execute_script... [15:47: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)347638", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.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" ] } } [15:47:25]POST & json_proto [15:47:25]process_json_proto [15:47:25]json parsed OK: [15:47:25]protocol is kg_v1.0 [15:47:25]action value=close_receipt [15:47:25]process_action close_receipt [15:47:25]cmd_close_receipt [15:47:25]MH_GetDate [15:47:25]Write to MH i2c: F0 00 00 E6 A0 75 [15:47:25]Write i2c OK [15:47:25]MH_I2C_Read... [15:47:25]Read from MH i2c: F0 [15:47:25]MH_I2C_Read... [15:47:25]Read from MH i2c: F0 09 00 [15:47:25]MH_I2C_Read... [15:47:25]Read from MH i2c: F0 09 00 E6 A0 00 98 FA 1B 66 23 5B 8F 65 03 [15:47:25]GetLastDocTimeStamp 1713109440 [15:47:25]current date 1713109656 [15:47:25]FM_GetShiftState [15:47:25]SAM_PROTO_GetShiftState [15:47:25]wFMCommunicate request_size=4 [15:47:25]MH_SAM_APDU [15:47:25]CAPDU: 80 13 01 00 [15:47:25]Write to MH i2c: E2 08 00 E7 A0 80 13 01 00 00 00 00 00 04 [15:47:25]Write i2c OK [15:47:25]MH_I2C_Read... [15:47:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:47:25]Read from MH i2c: E2 [15:47:25]MH_I2C_Read... [15:47:25]Read from MH i2c: E2 0E 00 [15:47:25]MH_I2C_Read... [15:47:25]Read from MH i2c: E2 0E 00 E7 A0 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 B0 [15:47:25]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [15:47:25]wFMCommunicate OK [15:47:25]SAM_PROTO_GetShiftState done [15:47:25]FM_GetShiftState done [15:47:25]opened in 1713053951 [15:47:25]opened+sec_in_day 1713140351 [15:47:25]quantity*price = 50025 [15:47:25]sum+1 = 50026 [15:47: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 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 164 14.04.2024 15:47 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29254 ФПД: 213660135966932 1/tax-web-control/client/api/v1/ticket?date=20240414T154736&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29254&fm=213660135966932&tin=02508201610067®Number=0000138879044617&sum=50000 [15:47:26]StoreToDocumentArchive [15:47:26]shift 116 fd 29254 [15:47:26]save to /storage/0116/doc_00029254 [15:47:26]save last doc name /storage/0116/doc_00029254 to /storage/kkm_last_doc_name [15:47:26]save OK [15:47:26]Clear old archive folders... [15:47:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:47:26]tlvbuf is 011D4BB0 [15:47:26]SAM_PROTO_ClearQueue [15:47:26]wFMCommunicate request_size=4 [15:47:26]MH_SAM_APDU [15:47:26]CAPDU: 80 09 00 00 [15:47:26]Write to MH i2c: E2 08 00 F4 A0 80 09 00 00 00 00 00 00 06 [15:47:26]Write i2c OK [15:47:26]MH_I2C_Read... [15:47:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:47:27]Read from MH i2c: E2 [15:47:27]MH_I2C_Read... [15:47:27]Read from MH i2c: E2 03 00 [15:47:27]MH_I2C_Read... [15:47:27]Read from MH i2c: E2 03 00 F4 A0 00 90 00 08 [15:47:27]RAPDU: 90 00 [15:47:27]wFMCommunicate OK [15:47:27]SAM_PROTO_ClearQueue done [15:47:27]KKMCreateOFDPacket [15:47:27]OFDProtocolAddRootSTLVToBuf [15:47:27]FM_MakeSignedData [15:47:27]FM_MakeSignedData [15:47:27]SAM_PROTO_SignData [15:47:27]wFMCommunicate request_size=4 [15:47:27]MH_SAM_APDU [15:47:27]CAPDU: 80 0D 01 02 [15:47:27]Write to MH i2c: E2 08 00 F5 A0 80 0D 01 02 00 00 00 00 0E [15:47:27]Write i2c OK [15:47:27]MH_I2C_Read... [15:47:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:47:27]Read from MH i2c: E2 [15:47:27]MH_I2C_Read... [15:47:27]Read from MH i2c: E2 03 00 [15:47:27]MH_I2C_Read... [15:47:27]Read from MH i2c: E2 03 00 F5 A0 00 90 00 09 [15:47:27]RAPDU: 90 00 [15:47:27]wFMCommunicate OK [15:47:27]wFMCommunicate request_size=255 [15:47:27]MH_SAM_APDU [15:47: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 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 A4 00 00 00 F4 03 04 00 98 FA 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 46 72 00 00 35 04 06 00 C2 [15:47:27]Write to MH i2c: E2 02 01 F6 A0 80 0D 02 02 FA 00 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 A4 00 00 00 F4 03 04 00 98 FA 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 46 72 00 00 35 04 06 00 C2 00 00 3C [15:47:27]Write i2c OK [15:47:27]MH_I2C_Read... [15:47:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:47:27]Read from MH i2c: E2 [15:47:27]MH_I2C_Read... [15:47:27]Read from MH i2c: E2 03 00 [15:47:27]MH_I2C_Read... [15:47:27]Read from MH i2c: E2 03 00 F6 A0 00 90 00 0A [15:47:27]RAPDU: 90 00 [15:47:27]wFMCommunicate OK [15:47:27]wFMCommunicate request_size=10 [15:47:27]MH_SAM_APDU [15:47:27]CAPDU: 80 0D 02 02 05 52 A0 81 C8 D4 [15:47:27]Write to MH i2c: E2 0D 00 F7 A0 80 0D 02 02 05 00 52 A0 81 C8 D4 00 00 2A [15:47:27]Write i2c OK [15:47:27]MH_I2C_Read... [15:47:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:47:27]Read from MH i2c: E2 [15:47:27]MH_I2C_Read... [15:47:27]Read from MH i2c: E2 03 00 [15:47:27]MH_I2C_Read... [15:47:27]Read from MH i2c: E2 03 00 F7 A0 00 90 00 0B [15:47:27]RAPDU: 90 00 [15:47:27]wFMCommunicate OK [15:47:27]wFMCommunicate request_size=4 [15:47:27]MH_SAM_APDU [15:47:27]CAPDU: 80 0D 03 02 [15:47:27]Write to MH i2c: E2 08 00 F8 A0 80 0D 03 02 00 00 00 00 13 [15:47:27]Write i2c OK [15:47:27]MH_I2C_Read... [15:47:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:47:27]Read from MH i2c: E2 [15:47:27]MH_I2C_Read... [15:47:27]Read from MH i2c: E2 0B 00 [15:47:27]MH_I2C_Read... [15:47:27]Read from MH i2c: E2 0B 00 F8 A0 00 7A 9B 91 66 9C 7A 60 42 90 00 D8 [15:47:27]RAPDU: 7A 9B 91 66 9C 7A 60 42 90 00 [15:47:27]wFMCommunicate OK [15:47:27]SAM_PROTO_SignData done [15:47:27]FM_MakeSignedData done [15:47:27]CreateOFDProtocolMessage [15:47:27]wFMCommunicate request_size=4 [15:47:27]MH_SAM_APDU [15:47:27]CAPDU: 80 11 00 00 [15:47:27]Write to MH i2c: E2 08 00 F9 A0 80 11 00 00 00 00 00 00 13 [15:47:27]Write i2c OK [15:47:27]MH_I2C_Read... [15:47:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:47:27]Read from MH i2c: E2 [15:47:27]MH_I2C_Read... [15:47:27]Read from MH i2c: E2 17 00 [15:47:27]MH_I2C_Read... [15:47:27]Read from MH i2c: E2 17 00 F9 A0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 62 [15:47:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:47:27]wFMCommunicate OK [15:47:27]CreateOFDProtocolMessage done [15:47:27]OFDSenderStorePacket 29254 [15:47:27]StoreOFDPacket docnum=29254 [15:47:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 4E 22 07 01 E0 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 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 A4 00 00 00 F4 03 04 00 98 FA 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 46 72 00 00 35 04 06 00 C2 52 A0 81 C8 D4 7A 9B 91 66 9C 7A 60 42 [15:47:27]CheckFolder [15:47:27]dirname=/storage/ofd_packets [15:47:27]CheckFolder done [15:47:27]ProducePacketName [15:47:27]name=ofd_packets/00029254 [15:47:27]NVStorageSaveData ofd_packets/00029254 [15:47:27]File name is /storage/ofd_packets/00029254 [15:47:27]Write 301 bytes [15:47:27]NVStorageSaveData done [15:47:27]OFDSenderStorePacket done [15:47:27]KKMCreateOFDPacket done [15:47:27]NVStorageSaveData kkm_last_timestamp [15:47:27]File name is /storage/kkm_last_timestamp [15:47:27]Write 4 bytes [15:47:27]NVStorageSaveData done [15:47:27]ExternCall_PrintAddStr [15:47:27]wPrintStart [15:47:27]Write to MH i2c: 01 00 00 FA A0 9A [15:47:27]Write i2c OK [15:47:27]MH_I2C_Read... [15:47:27]Read from MH i2c: 01 [15:47:27]MH_I2C_Read... [15:47:27]Read from MH i2c: 01 07 00 [15:47:27]MH_I2C_Read... [15:47:27]Read from MH i2c: 01 07 00 FA A0 00 00 00 00 00 FF 0F AF [15:47:27]RasterBufferAndPrint [15:47:27]line Счет N : (1)347638 [15:47:27]line ИНН: 02508201610067 [15:47:27]line Контрольно-Кассовый Чек [15:47:27]line ПРОДАЖА [15:47:27]line ТРК (МРК, ГНК) : 33 [15:47:27]line Товар: 2710124500 [15:47:27]line Аи-95-К-5 [15:47:27]line 6.900 * 72.50 [15:47:27]line = 500.25 [15:47:27]line НДС 12% НСП 1% [15:47:27]line > о реализуемом товаре [15:47:27]line ОКРУГЛЕНИЕ: -0.25 [15:47:27]line ИТОГО: 500.00 [15:47:27]line Внесено: 500.00 [15:47:27]line СДАЧА: 0.00 [15:47:27]line НСП 1% : 4.43 [15:47:27]line НДС 12% : 53.12 [15:47:27]line Наличными: 500.00 [15:47:27]line Безнал.: 0.00 [15:47:27]line Место: АЗС № 108 "Партнер Нефть" [15:47:27]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [15:47:27]line СНО: Общий режим [15:47:27]line Чек 164 14.04.2024 15:47 [15:47:27]line Смена: 116 ФФД: 1.0 [15:47:27]line ЗНМ: 0300000027 [15:47:27]line РНМ: 0000138879044617 [15:47:27]line Версия ККМ: 001 [15:47:27]line ФМ: 0000000000963154 [15:47:27]line ФД: 29254 [15:47:27]line ФПД: 213660135966932 [15:47:27]line 1/tax-web-control/client/api/v1/ticket?date=20240414T154736&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29254&fm=213660135966932&tin=02508201610067®Number=0000138879044617&sum=50000 [15:47:27]OFD Sender: Processing packet 29254 [packets to send 8, broken 7] [15:47:27]ProducePacketName [15:47:27]name=ofd_packets/00029254 [15:47:27]OFD Sender: To server: pG, [15:47:27]CommunicateWithHost lk.salyk.kg:30040 [15:47:27]ConnectInit lk.salyk.kg [15:47:27]written 0, free lines is 4095 [15:47:27]Connected sock=10 [15:47:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 4E 22 07 01 E0 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 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 A4 00 00 00 F4 03 04 00 98 FA 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 46 72 00 00 35 04 06 00 C2 52 A0 81 C8 D4 7A 9B 91 66 9C 7A 60 42 [15:47:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 19 D0 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 39 36 33 31 35 34 10 04 04 00 46 72 00 00 F4 03 04 00 3C A5 1B 66 B6 04 01 00 00 BB 6E E0 05 1D 3A 4E 0E [15:47:28]CommunicateWithHost err = 0 [15:47:28]CheckOFDResponse [15:47:28]1017 (14) - 77093643461234 [15:47:28]1041 (16) - 0000000000963154 [15:47:28]1040 (4) - 29254 [15:47:28]1012 (4) - 14.04.2024 09:43 [15:47:28]1206 (1) - 0 [15:47:28]OFD Sender: Remove packet 29254 [15:47:28]ProducePacketName [15:47:28]name=ofd_packets/00029254 [15:47:28]NVStorageDeleteData [15:47:28]Write to MH i2c: 01 00 00 24 A1 C5 [15:47:28]Write i2c OK [15:47:28]MH_I2C_Read... [15:47:28]Read from MH i2c: 01 [15:47:28]MH_I2C_Read... [15:47:28]Read from MH i2c: 01 07 00 [15:47:28]MH_I2C_Read... [15:47:28]Read from MH i2c: 01 07 00 24 A1 00 00 00 00 00 BD 0C 95 [15:47:28]RasterBufferAndPrint [15:47:28]line [15:47:28]line [15:47:28]line [15:47:28]line [15:47:28]line [15:47:28]written 0, free lines is 3268 [15:47:28]MH_Cut [15:47:28]Write to MH i2c: D1 01 00 2B A1 01 9E [15:47:28]Write i2c OK [15:47:28]MH_I2C_Read... [15:47:28]Read from MH i2c: D1 [15:47:28]MH_I2C_Read... [15:47:28]Read from MH i2c: D1 01 00 [15:47:28]MH_I2C_Read... [15:47:28]Read from MH i2c: D1 01 00 2B A1 00 9D [15:47:28]Write to MH i2c: 01 00 00 2C A1 CD [15:47:28]Write i2c OK [15:47:28]MH_I2C_Read... [15:47:28]OFD Sender: No OFD packet to send [15:47:29]*** Cut start [15:47:29]*** Partial cut [15:47:29]*** CUTSNS_PIN = 1 [15:47:29]*** CUTSNS_PIN = 0 [15:47:29]*** Brake cut motor [15:47:29]Read from MH i2c: 01 [15:47:29]MH_I2C_Read... [15:47:29]*** Stop cut motor [15:47:29]*** Cut end [15:47:29]Read from MH i2c: 01 07 00 [15:47:29]MH_I2C_Read... [15:47:29]Read from MH i2c: 01 07 00 2C A1 00 00 00 00 00 FF 0F E2 [15:47:29]process_action close_receipt done [15:47:29]requested_data is exist [15:47:29]produce_requested_data [15:47:29]requested_item fm.sn is exist - process it [15:47:29]wFMCommunicate request_size=4 [15:47:29]MH_SAM_APDU [15:47:29]CAPDU: 80 11 00 00 [15:47:29]Write to MH i2c: E2 08 00 2D A1 80 11 00 00 00 00 00 00 48 [15:47:29]Write i2c OK [15:47:29]MH_I2C_Read... [15:47:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:47:29]Read from MH i2c: E2 [15:47:29]MH_I2C_Read... [15:47:29]Read from MH i2c: E2 17 00 [15:47:29]MH_I2C_Read... [15:47:29]Read from MH i2c: E2 17 00 2D A1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 97 [15:47:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:47:29]wFMCommunicate OK [15:47:29]requested_item fd.num is exist - process it [15:47:29]SAM_PROTO_GetFieldsCounters [15:47:29]wFMCommunicate request_size=4 [15:47:29]MH_SAM_APDU [15:47:29]CAPDU: 80 13 00 00 [15:47:29]Write to MH i2c: E2 08 00 2E A1 80 13 00 00 00 00 00 00 4B [15:47:29]Write i2c OK [15:47:29]MH_I2C_Read... [15:47:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:47:29]Read from MH i2c: E2 [15:47:29]MH_I2C_Read... [15:47:29]Read from MH i2c: E2 62 00 [15:47:29]MH_I2C_Read... [15:47:29]Read from MH i2c: E2 62 00 2E A1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 46 72 00 00 0E 04 04 00 74 00 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 A1 [15:47:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 46 72 00 00 0E 04 04 00 74 00 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 [15:47:29]wFMCommunicate OK [15:47:29]SAM_PROTO_GetFieldsCounters done [15:47:29]requested_item shift.num is exist - process it [15:47:29]requested_item shift.opened is exist - process it [15:47:29]req_shift_opened [15:47:29]FM_GetShiftState [15:47:29]SAM_PROTO_GetShiftState [15:47:29]wFMCommunicate request_size=4 [15:47:29]MH_SAM_APDU [15:47:29]CAPDU: 80 13 01 00 [15:47:29]Write to MH i2c: E2 08 00 2F A1 80 13 01 00 00 00 00 00 4D [15:47:29]Write i2c OK [15:47:29]MH_I2C_Read... [15:47:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:47:29]Read from MH i2c: E2 [15:47:29]MH_I2C_Read... [15:47:29]Read from MH i2c: E2 0E 00 [15:47:29]MH_I2C_Read... [15:47:29]Read from MH i2c: E2 0E 00 2F A1 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 F9 [15:47:29]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [15:47:29]wFMCommunicate OK [15:47:29]SAM_PROTO_GetShiftState done [15:47:29]FM_GetShiftState done [15:47:29]req_shift_opened done [15:47:29]requested_item shift.open_date is exist - process it [15:47:29]req_shift_open_date [15:47:29]req_shift_open_date done [15:47:29]produce_requested_data done [15:47:29]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29254,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [15:47:29]process_action_free close_receipt [15:47:29]json_value_free [15:47:29]json_value_free done [15:47:29]process_json_proto returns [15:47:29]Send response to host [15:47:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29254,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [15:47:29]free response buf [15:47:29]execute_script done [15:47:29]execute_script returns [15:47:29]free content buf [15:47:29]Sock 7.Close socket [15:47:29]Sock 7.Thread stoped [15:47:33]OFD Sender: No OFD packet to send [15:47:38]OFD Sender: No OFD packet to send [15:47:43]OFD Sender: No OFD packet to send [15:47:48]OFD Sender: No OFD packet to send [15:47:53]OFD Sender: No OFD packet to send [15:47:58]OFD Sender: No OFD packet to send [15:48:03]OFD Sender: No OFD packet to send [15:48:08]OFD Sender: No OFD packet to send [15:48:13]OFD Sender: No OFD packet to send [15:48:18]OFD Sender: No OFD packet to send [15:48:23]OFD Sender: No OFD packet to send [15:48:28]OFD Sender: No OFD packet to send [15:48:33]OFD Sender: No OFD packet to send [15:48:38]OFD Sender: No OFD packet to send [15:48:43]OFD Sender: No OFD packet to send [15:48:48]OFD Sender: No OFD packet to send [15:48:53]OFD Sender: No OFD packet to send [15:48:58]OFD Sender: No OFD packet to send [15:49:03]OFD Sender: No OFD packet to send [15:49:08]OFD Sender: No OFD packet to send [15:49:13]OFD Sender: No OFD packet to send [15:49:18]OFD Sender: No OFD packet to send [15:49:23]OFD Sender: No OFD packet to send [15:49:28]OFD Sender: No OFD packet to send [15:49:33]OFD Sender: No OFD packet to send [15:49:38]OFD Sender: No OFD packet to send [15:49:43]OFD Sender: No OFD packet to send [15:49:48]OFD Sender: No OFD packet to send [15:49:53]OFD Sender: No OFD packet to send [15:49:58]OFD Sender: No OFD packet to send [15:50:03]OFD Sender: No OFD packet to send [15:50:08]OFD Sender: No OFD packet to send [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:44]accept exits with 9 [15:51:44]New connection [15:51:44]New thread 3066928484 created [15:51:44]Thread 3066785124 joined [15:51:44]Waiting for new connection... [15:51:44] Sock 9.Parse request [15:51:44]Sock 9.Check first char [15:51:44]Sock 9.First char is OK [15:51:44]request: POST /json_proto HTTP/1.0 [15:51:44]Method: POST [15:51:44]URL: /json_proto [15:51:44]Method is POST - this is cgi request [15:51:44]url: /json_proto [15:51:44]query_string will be loaded in cgi processing [15:51:44]execute_cgi json_proto POST (null) [15:51:44]execute_cgi path=json_proto method=POST [15:51:44]POST find Content-Length [15:51:44]Host: 172.17.33.3:8080 [15:51:44]Content-Length: 677 [15:51:44]Content-Type: application/json [15:51:44] [15:51:44]POST finish read [15:51:44]Found Content-Length = 677 [15:51:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347639", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.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" ] } } [15:51:44]execute_script... [15:51: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)347639", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.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" ] } } [15:51:44]POST & json_proto [15:51:44]process_json_proto [15:51:44]json parsed OK: [15:51:44]protocol is kg_v1.0 [15:51:44]action value=close_receipt [15:51:44]process_action close_receipt [15:51:44]cmd_close_receipt [15:51:44]MH_GetDate [15:51:44]Write to MH i2c: F0 00 00 30 A1 C0 [15:51:44]Write i2c OK [15:51:44]MH_I2C_Read... [15:51:44]Read from MH i2c: F0 [15:51:44]MH_I2C_Read... [15:51:44]Read from MH i2c: F0 09 00 [15:51:44]MH_I2C_Read... [15:51:44]Read from MH i2c: F0 09 00 30 A1 00 9B FB 1B 66 23 5B 8F 65 52 [15:51:44]GetLastDocTimeStamp 1713109656 [15:51:44]current date 1713109915 [15:51:44]FM_GetShiftState [15:51:44]SAM_PROTO_GetShiftState [15:51:44]wFMCommunicate request_size=4 [15:51:44]MH_SAM_APDU [15:51:44]CAPDU: 80 13 01 00 [15:51:44]Write to MH i2c: E2 08 00 31 A1 80 13 01 00 00 00 00 00 4F [15:51:44]Write i2c OK [15:51:44]MH_I2C_Read... [15:51:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:51:44]Read from MH i2c: E2 [15:51:44]MH_I2C_Read... [15:51:44]Read from MH i2c: E2 0E 00 [15:51:44]MH_I2C_Read... [15:51:44]Read from MH i2c: E2 0E 00 31 A1 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 FB [15:51:44]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [15:51:44]wFMCommunicate OK [15:51:44]SAM_PROTO_GetShiftState done [15:51:44]FM_GetShiftState done [15:51:44]opened in 1713053951 [15:51:44]opened+sec_in_day 1713140351 [15:51:44]quantity*price = 60056 [15:51:44]sum+1 = 60057 [15:51: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 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 165 14.04.2024 15:51 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29255 ФПД: 23387049575721 1/tax-web-control/client/api/v1/ticket?date=20240414T155155&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29255&fm=23387049575721&tin=02508201610067®Number=0000138879044617&sum=60000 [15:51:45]StoreToDocumentArchive [15:51:45]shift 116 fd 29255 [15:51:45]save to /storage/0116/doc_00029255 [15:51:45]save last doc name /storage/0116/doc_00029255 to /storage/kkm_last_doc_name [15:51:45]save OK [15:51:45]Clear old archive folders... [15:51:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:51:45]tlvbuf is 012861E0 [15:51:45]SAM_PROTO_ClearQueue [15:51:45]wFMCommunicate request_size=4 [15:51:45]MH_SAM_APDU [15:51:45]CAPDU: 80 09 00 00 [15:51:45]Write to MH i2c: E2 08 00 3E A1 80 09 00 00 00 00 00 00 51 [15:51:45]Write i2c OK [15:51:45]MH_I2C_Read... [15:51:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:51:45]Read from MH i2c: E2 [15:51:45]MH_I2C_Read... [15:51:45]Read from MH i2c: E2 03 00 [15:51:45]MH_I2C_Read... [15:51:45]Read from MH i2c: E2 03 00 3E A1 00 90 00 53 [15:51:45]RAPDU: 90 00 [15:51:45]wFMCommunicate OK [15:51:45]SAM_PROTO_ClearQueue done [15:51:45]KKMCreateOFDPacket [15:51:45]OFDProtocolAddRootSTLVToBuf [15:51:45]FM_MakeSignedData [15:51:45]FM_MakeSignedData [15:51:45]SAM_PROTO_SignData [15:51:45]wFMCommunicate request_size=4 [15:51:45]MH_SAM_APDU [15:51:45]CAPDU: 80 0D 01 02 [15:51:45]Write to MH i2c: E2 08 00 3F A1 80 0D 01 02 00 00 00 00 59 [15:51:45]Write i2c OK [15:51:45]MH_I2C_Read... [15:51:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:51:45]Read from MH i2c: E2 [15:51:45]MH_I2C_Read... [15:51:45]Read from MH i2c: E2 03 00 [15:51:45]MH_I2C_Read... [15:51:45]Read from MH i2c: E2 03 00 3F A1 00 90 00 54 [15:51:45]RAPDU: 90 00 [15:51:45]wFMCommunicate OK [15:51:45]wFMCommunicate request_size=255 [15:51:45]MH_SAM_APDU [15:51: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 A5 00 00 00 F4 03 04 00 9B FB 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 47 72 00 00 35 04 06 00 15 [15:51:45]Write to MH i2c: E2 02 01 40 A1 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 A5 00 00 00 F4 03 04 00 9B FB 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 47 72 00 00 35 04 06 00 15 00 00 82 [15:51:45]Write i2c OK [15:51:45]MH_I2C_Read... [15:51:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:51:46]Read from MH i2c: E2 [15:51:46]MH_I2C_Read... [15:51:46]Read from MH i2c: E2 03 00 [15:51:46]MH_I2C_Read... [15:51:46]Read from MH i2c: E2 03 00 40 A1 00 90 00 55 [15:51:46]RAPDU: 90 00 [15:51:46]wFMCommunicate OK [15:51:46]wFMCommunicate request_size=10 [15:51:46]MH_SAM_APDU [15:51:46]CAPDU: 80 0D 02 02 05 45 38 C8 45 29 [15:51:46]Write to MH i2c: E2 0D 00 41 A1 80 0D 02 02 05 00 45 38 C8 45 29 00 00 19 [15:51:46]Write i2c OK [15:51:46]MH_I2C_Read... [15:51:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:51:46]Read from MH i2c: E2 [15:51:46]MH_I2C_Read... [15:51:46]Read from MH i2c: E2 03 00 [15:51:46]MH_I2C_Read... [15:51:46]Read from MH i2c: E2 03 00 41 A1 00 90 00 56 [15:51:46]RAPDU: 90 00 [15:51:46]wFMCommunicate OK [15:51:46]wFMCommunicate request_size=4 [15:51:46]MH_SAM_APDU [15:51:46]CAPDU: 80 0D 03 02 [15:51:46]Write to MH i2c: E2 08 00 42 A1 80 0D 03 02 00 00 00 00 5E [15:51:46]Write i2c OK [15:51:46]MH_I2C_Read... [15:51:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:51:46]Read from MH i2c: E2 [15:51:46]MH_I2C_Read... [15:51:46]Read from MH i2c: E2 0B 00 [15:51:46]MH_I2C_Read... [15:51:46]Read from MH i2c: E2 0B 00 42 A1 00 A0 48 B2 4C D8 24 97 D7 90 00 AF [15:51:46]RAPDU: A0 48 B2 4C D8 24 97 D7 90 00 [15:51:46]wFMCommunicate OK [15:51:46]SAM_PROTO_SignData done [15:51:46]FM_MakeSignedData done [15:51:46]CreateOFDProtocolMessage [15:51:46]wFMCommunicate request_size=4 [15:51:46]MH_SAM_APDU [15:51:46]CAPDU: 80 11 00 00 [15:51:46]Write to MH i2c: E2 08 00 43 A1 80 11 00 00 00 00 00 00 5E [15:51:46]Write i2c OK [15:51:46]MH_I2C_Read... [15:51:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:51:46]Read from MH i2c: E2 [15:51:46]MH_I2C_Read... [15:51:46]Read from MH i2c: E2 17 00 [15:51:46]MH_I2C_Read... [15:51:46]Read from MH i2c: E2 17 00 43 A1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 AD [15:51:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:51:46]wFMCommunicate OK [15:51:46]CreateOFDProtocolMessage done [15:51:46]OFDSenderStorePacket 29255 [15:51:46]StoreOFDPacket docnum=29255 [15:51:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 F2 D0 07 01 8E D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 A5 00 00 00 F4 03 04 00 9B FB 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 47 72 00 00 35 04 06 00 15 45 38 C8 45 29 A0 48 B2 4C D8 24 97 D7 [15:51:46]CheckFolder [15:51:46]dirname=/storage/ofd_packets [15:51:46]CheckFolder done [15:51:46]ProducePacketName [15:51:46]name=ofd_packets/00029255 [15:51:46]NVStorageSaveData ofd_packets/00029255 [15:51:46]File name is /storage/ofd_packets/00029255 [15:51:46]Write 301 bytes [15:51:46]NVStorageSaveData done [15:51:46]OFDSenderStorePacket done [15:51:46]KKMCreateOFDPacket done [15:51:46]NVStorageSaveData kkm_last_timestamp [15:51:46]File name is /storage/kkm_last_timestamp [15:51:46]Write 4 bytes [15:51:46]NVStorageSaveData done [15:51:46]ExternCall_PrintAddStr [15:51:46]wPrintStart [15:51:46]Write to MH i2c: 01 00 00 44 A1 E5 [15:51:46]Write i2c OK [15:51:46]MH_I2C_Read... [15:51:46]Read from MH i2c: 01 [15:51:46]MH_I2C_Read... [15:51:46]Read from MH i2c: 01 07 00 [15:51:46]MH_I2C_Read... [15:51:46]Read from MH i2c: 01 07 00 44 A1 00 00 00 00 00 FF 0F FA [15:51:46]RasterBufferAndPrint [15:51:46]line Счет N : (1)347639 [15:51:46]line ИНН: 02508201610067 [15:51:46]line Контрольно-Кассовый Чек [15:51:46]line ПРОДАЖА [15:51:46]line ТРК (МРК, ГНК) : 13 [15:51:46]line Товар: 2710124130 [15:51:46]line Аи-92-К-5 [15:51:46]line 9.340 * 64.30 [15:51:46]line = 600.56 [15:51:46]line НДС 12% НСП 1% [15:51:46]line > о реализуемом товаре [15:51:46]line ОКРУГЛЕНИЕ: -0.56 [15:51:46]line ИТОГО: 600.00 [15:51:46]line Внесено: 600.00 [15:51:46]line СДАЧА: 0.00 [15:51:46]line НСП 1% : 5.31 [15:51:46]line НДС 12% : 63.78 [15:51:46]line Наличными: 600.00 [15:51:46]line Безнал.: 0.00 [15:51:46]line Место: АЗС № 108 "Партнер Нефть" [15:51:46]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [15:51:46]line СНО: Общий режим [15:51:46]line Чек 165 14.04.2024 15:51 [15:51:46]line Смена: 116 ФФД: 1.0 [15:51:46]line ЗНМ: 0300000027 [15:51:46]line РНМ: 0000138879044617 [15:51:46]line Версия ККМ: 001 [15:51:46]line ФМ: 0000000000963154 [15:51:46]line ФД: 29255 [15:51:46]line ФПД: 23387049575721 [15:51:46]line 1/tax-web-control/client/api/v1/ticket?date=20240414T155155&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29255&fm=23387049575721&tin=02508201610067®Number=0000138879044617&sum=60000 [15:51:46]OFD Sender: Processing packet 29255 [packets to send 8, broken 7] [15:51:46]ProducePacketName [15:51:46]name=ofd_packets/00029255 [15:51:46]OFD Sender: To server: pG, [15:51:46]CommunicateWithHost lk.salyk.kg:30040 [15:51:46]ConnectInit lk.salyk.kg [15:51:46]written 0, free lines is 4095 [15:51:46]Connected sock=10 [15:51:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 F2 D0 07 01 8E D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 A5 00 00 00 F4 03 04 00 9B FB 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 47 72 00 00 35 04 06 00 15 45 38 C8 45 29 A0 48 B2 4C D8 24 97 D7 [15:51:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 4F 7F 47 00 0D 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 47 72 00 00 F4 03 04 00 3E A6 1B 66 B6 04 01 00 00 F7 22 6D 00 E6 1C B0 15 [15:51:46]CommunicateWithHost err = 0 [15:51:46]CheckOFDResponse [15:51:46]1017 (14) - 77093643461234 [15:51:46]1041 (16) - 0000000000963154 [15:51:46]1040 (4) - 29255 [15:51:46]1012 (4) - 14.04.2024 09:47 [15:51:46]1206 (1) - 0 [15:51:46]OFD Sender: Remove packet 29255 [15:51:46]ProducePacketName [15:51:46]name=ofd_packets/00029255 [15:51:46]NVStorageDeleteData [15:51:46]Write to MH i2c: 01 00 00 6E A1 0F [15:51:46]Write i2c OK [15:51:46]MH_I2C_Read... [15:51:46]Read from MH i2c: 01 [15:51:46]MH_I2C_Read... [15:51:46]Read from MH i2c: 01 07 00 [15:51:46]MH_I2C_Read... [15:51:46]Read from MH i2c: 01 07 00 6E A1 00 00 00 00 00 C2 0C E4 [15:51:46]RasterBufferAndPrint [15:51:46]line [15:51:46]line [15:51:46]line [15:51:46]line [15:51:46]line [15:51:46]written 0, free lines is 3270 [15:51:46]MH_Cut [15:51:46]Write to MH i2c: D1 01 00 75 A1 01 E8 [15:51:46]Write i2c OK [15:51:46]MH_I2C_Read... [15:51:46]Read from MH i2c: D1 [15:51:46]MH_I2C_Read... [15:51:46]Read from MH i2c: D1 01 00 [15:51:46]MH_I2C_Read... [15:51:46]Read from MH i2c: D1 01 00 75 A1 00 E7 [15:51:46]Write to MH i2c: 01 00 00 76 A1 17 [15:51:46]Write i2c OK [15:51:46]MH_I2C_Read... [15:51:47]OFD Sender: No OFD packet to send [15:51:47]*** Cut start [15:51:47]*** Partial cut [15:51:47]*** CUTSNS_PIN = 1 [15:51:47]*** CUTSNS_PIN = 0 [15:51:48]*** Brake cut motor [15:51:48]Read from MH i2c: 01 [15:51:48]MH_I2C_Read... [15:51:48]*** Stop cut motor [15:51:48]*** Cut end [15:51:48]Read from MH i2c: 01 07 00 [15:51:48]MH_I2C_Read... [15:51:48]Read from MH i2c: 01 07 00 76 A1 00 00 00 00 00 FF 0F 2C [15:51:48]process_action close_receipt done [15:51:48]requested_data is exist [15:51:48]produce_requested_data [15:51:48]requested_item fm.sn is exist - process it [15:51:48]wFMCommunicate request_size=4 [15:51:48]MH_SAM_APDU [15:51:48]CAPDU: 80 11 00 00 [15:51:48]Write to MH i2c: E2 08 00 77 A1 80 11 00 00 00 00 00 00 92 [15:51:48]Write i2c OK [15:51:48]MH_I2C_Read... [15:51:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:51:48]Read from MH i2c: E2 [15:51:48]MH_I2C_Read... [15:51:48]Read from MH i2c: E2 17 00 [15:51:48]MH_I2C_Read... [15:51:48]Read from MH i2c: E2 17 00 77 A1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E1 [15:51:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:51:48]wFMCommunicate OK [15:51:48]requested_item fd.num is exist - process it [15:51:48]SAM_PROTO_GetFieldsCounters [15:51:48]wFMCommunicate request_size=4 [15:51:48]MH_SAM_APDU [15:51:48]CAPDU: 80 13 00 00 [15:51:48]Write to MH i2c: E2 08 00 78 A1 80 13 00 00 00 00 00 00 95 [15:51:48]Write i2c OK [15:51:48]MH_I2C_Read... [15:51:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:51:48]Read from MH i2c: E2 [15:51:48]MH_I2C_Read... [15:51:48]Read from MH i2c: E2 62 00 [15:51:48]MH_I2C_Read... [15:51:48]Read from MH i2c: E2 62 00 78 A1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 47 72 00 00 0E 04 04 00 74 00 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 EF [15:51:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 47 72 00 00 0E 04 04 00 74 00 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 [15:51:48]wFMCommunicate OK [15:51:48]SAM_PROTO_GetFieldsCounters done [15:51:48]requested_item shift.num is exist - process it [15:51:48]requested_item shift.opened is exist - process it [15:51:48]req_shift_opened [15:51:48]FM_GetShiftState [15:51:48]SAM_PROTO_GetShiftState [15:51:48]wFMCommunicate request_size=4 [15:51:48]MH_SAM_APDU [15:51:48]CAPDU: 80 13 01 00 [15:51:48]Write to MH i2c: E2 08 00 79 A1 80 13 01 00 00 00 00 00 97 [15:51:48]Write i2c OK [15:51:48]MH_I2C_Read... [15:51:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:51:48]Read from MH i2c: E2 [15:51:48]MH_I2C_Read... [15:51:48]Read from MH i2c: E2 0E 00 [15:51:48]MH_I2C_Read... [15:51:48]Read from MH i2c: E2 0E 00 79 A1 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 43 [15:51:48]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [15:51:48]wFMCommunicate OK [15:51:48]SAM_PROTO_GetShiftState done [15:51:48]FM_GetShiftState done [15:51:48]req_shift_opened done [15:51:48]requested_item shift.open_date is exist - process it [15:51:48]req_shift_open_date [15:51:48]req_shift_open_date done [15:51:48]produce_requested_data done [15:51:48]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29255,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [15:51:48]process_action_free close_receipt [15:51:48]json_value_free [15:51:48]json_value_free done [15:51:48]process_json_proto returns [15:51:48]Send response to host [15:51:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29255,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [15:51:48]free response buf [15:51:48]execute_script done [15:51:48]execute_script returns [15:51:48]free content buf [15:51:48]Sock 9.Close socket [15:51:48]Sock 9.Thread stoped [15:51:52]OFD Sender: No OFD packet to send [15:51:57]OFD Sender: No OFD packet to send [15:52:02]OFD Sender: No OFD packet to send [15:52:07]OFD Sender: No OFD packet to send [15:52:12]OFD Sender: No OFD packet to send [15:52:17]OFD Sender: No OFD packet to send [15:52:22]OFD Sender: No OFD packet to send [15:52:27]OFD Sender: No OFD packet to send [15:52:32]OFD Sender: No OFD packet to send [15:52:37]OFD Sender: No OFD packet to send [15:52:42]OFD Sender: No OFD packet to send [15:52:47]OFD Sender: No OFD packet to send [15:52:52]OFD Sender: No OFD packet to send [15:52:57]OFD Sender: No OFD packet to send [15:53:02]OFD Sender: No OFD packet to send [15:53:07]OFD Sender: No OFD packet to send [15:53:12]OFD Sender: No OFD packet to send [15:53:17]OFD Sender: No OFD packet to send [15:53:22]OFD Sender: No OFD packet to send [15:53:27]OFD Sender: No OFD packet to send [15:53:32]OFD Sender: No OFD packet to send [15:53:37]OFD Sender: No OFD packet to send [15:53:42]OFD Sender: No OFD packet to send [15:53:47]OFD Sender: No OFD packet to send [15:53:52]OFD Sender: No OFD packet to send [15:53:57]OFD Sender: No OFD packet to send [15:54:02]OFD Sender: No OFD packet to send [15:54:07]OFD Sender: No OFD packet to send [15:54:12]OFD Sender: No OFD packet to send [15:54:17]OFD Sender: No OFD packet to send [15:54:22]OFD Sender: No OFD packet to send [15:54:27]OFD Sender: No OFD packet to send [15:54:32]OFD Sender: No OFD packet to send [15:54:37]OFD Sender: No OFD packet to send [15:54:41]accept exits with 7 [15:54:41]New connection [15:54:41]New thread 3066785124 created [15:54:41]Thread 3066928484 joined [15:54:41]Waiting for new connection... [15:54:41] Sock 7.Parse request [15:54:41]Sock 7.Check first char [15:54:41]Sock 7.First char is OK [15:54:41]request: POST /json_proto HTTP/1.0 [15:54:41]Method: POST [15:54:41]URL: /json_proto [15:54:41]Method is POST - this is cgi request [15:54:41]url: /json_proto [15:54:41]query_string will be loaded in cgi processing [15:54:41]execute_cgi json_proto POST (null) [15:54:41]execute_cgi path=json_proto method=POST [15:54:41]POST find Content-Length [15:54:41]Host: 172.17.33.3:8080 [15:54:41]Content-Length: 808 [15:54:41]Content-Type: application/json [15:54:41] [15:54:41]POST finish read [15:54:41]Found Content-Length = 808 [15:54:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347640", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.50, "quantity" : 27.590, "sum" : 2000.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" : 2000.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:54:41]execute_script... [15:54: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)347640", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.50, "quantity" : 27.590, "sum" : 2000.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" : 2000.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:54:41]POST & json_proto [15:54:41]process_json_proto [15:54:41]json parsed OK: [15:54:41]protocol is kg_v1.0 [15:54:41]action value=close_receipt [15:54:41]process_action close_receipt [15:54:41]cmd_close_receipt [15:54:41]MH_GetDate [15:54:41]Write to MH i2c: F0 00 00 7A A1 0A [15:54:41]Write i2c OK [15:54:41]MH_I2C_Read... [15:54:41]Read from MH i2c: F0 [15:54:41]MH_I2C_Read... [15:54:41]Read from MH i2c: F0 09 00 [15:54:41]MH_I2C_Read... [15:54:41]Read from MH i2c: F0 09 00 7A A1 00 4C FC 1B 66 23 5B 8F 65 4E [15:54:41]GetLastDocTimeStamp 1713109915 [15:54:41]current date 1713110092 [15:54:41]FM_GetShiftState [15:54:41]SAM_PROTO_GetShiftState [15:54:41]wFMCommunicate request_size=4 [15:54:41]MH_SAM_APDU [15:54:41]CAPDU: 80 13 01 00 [15:54:41]Write to MH i2c: E2 08 00 7B A1 80 13 01 00 00 00 00 00 99 [15:54:41]Write i2c OK [15:54:41]MH_I2C_Read... [15:54:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:54:42]Read from MH i2c: E2 [15:54:42]MH_I2C_Read... [15:54:42]Read from MH i2c: E2 0E 00 [15:54:42]MH_I2C_Read... [15:54:42]Read from MH i2c: E2 0E 00 7B A1 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 45 [15:54:42]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [15:54:42]wFMCommunicate OK [15:54:42]SAM_PROTO_GetShiftState done [15:54:42]FM_GetShiftState done [15:54:42]opened in 1713053951 [15:54:42]opened+sec_in_day 1713140351 [15:54:42]quantity*price = 200027 [15:54:42]sum+1 = 200029 [15:54:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.28 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.28 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 166 14.04.2024 15:54 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29256 ФПД: 214789135449945 1/tax-web-control/client/api/v1/ticket?date=20240414T155452&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29256&fm=214789135449945&tin=02508201610067®Number=0000138879044617&sum=200028 [15:54:43]StoreToDocumentArchive [15:54:43]shift 116 fd 29256 [15:54:43]save to /storage/0116/doc_00029256 [15:54:43]save last doc name /storage/0116/doc_00029256 to /storage/kkm_last_doc_name [15:54:43]save OK [15:54:43]Clear old archive folders... [15:54:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:54:43]tlvbuf is 01214A40 [15:54:43]SAM_PROTO_ClearQueue [15:54:43]wFMCommunicate request_size=4 [15:54:43]MH_SAM_APDU [15:54:43]CAPDU: 80 09 00 00 [15:54:43]Write to MH i2c: E2 08 00 88 A1 80 09 00 00 00 00 00 00 9B [15:54:43]Write i2c OK [15:54:43]MH_I2C_Read... [15:54:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:54:43]Read from MH i2c: E2 [15:54:43]MH_I2C_Read... [15:54:43]Read from MH i2c: E2 03 00 [15:54:43]MH_I2C_Read... [15:54:43]Read from MH i2c: E2 03 00 88 A1 00 90 00 9D [15:54:43]RAPDU: 90 00 [15:54:43]wFMCommunicate OK [15:54:43]SAM_PROTO_ClearQueue done [15:54:43]KKMCreateOFDPacket [15:54:43]OFDProtocolAddRootSTLVToBuf [15:54:43]FM_MakeSignedData [15:54:43]FM_MakeSignedData [15:54:43]SAM_PROTO_SignData [15:54:43]wFMCommunicate request_size=4 [15:54:43]MH_SAM_APDU [15:54:43]CAPDU: 80 0D 01 02 [15:54:43]Write to MH i2c: E2 08 00 89 A1 80 0D 01 02 00 00 00 00 A3 [15:54:43]Write i2c OK [15:54:43]MH_I2C_Read... [15:54:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:54:43]Read from MH i2c: E2 [15:54:43]MH_I2C_Read... [15:54:43]Read from MH i2c: E2 03 00 [15:54:43]MH_I2C_Read... [15:54:43]Read from MH i2c: E2 03 00 89 A1 00 90 00 9E [15:54:43]RAPDU: 90 00 [15:54:43]wFMCommunicate OK [15:54:43]wFMCommunicate request_size=255 [15:54:43]MH_SAM_APDU [15:54:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C6 6B 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 5C 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 4C FC 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 48 72 00 00 35 04 06 00 C3 [15:54:43]Write to MH i2c: E2 02 01 8A A1 80 0D 02 02 FA 00 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 C6 6B 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 5C 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 4C FC 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 48 72 00 00 35 04 06 00 C3 00 00 4D [15:54:43]Write i2c OK [15:54:43]MH_I2C_Read... [15:54:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:54:43]Read from MH i2c: E2 [15:54:43]MH_I2C_Read... [15:54:43]Read from MH i2c: E2 03 00 [15:54:43]MH_I2C_Read... [15:54:43]Read from MH i2c: E2 03 00 8A A1 00 90 00 9F [15:54:43]RAPDU: 90 00 [15:54:43]wFMCommunicate OK [15:54:43]wFMCommunicate request_size=10 [15:54:43]MH_SAM_APDU [15:54:43]CAPDU: 80 0D 02 02 05 59 7E 1E BF 59 [15:54:43]Write to MH i2c: E2 0D 00 8B A1 80 0D 02 02 05 00 59 7E 1E BF 59 00 00 BD [15:54:43]Write i2c OK [15:54:43]MH_I2C_Read... [15:54:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:54:43]Read from MH i2c: E2 [15:54:43]MH_I2C_Read... [15:54:43]Read from MH i2c: E2 03 00 [15:54:43]MH_I2C_Read... [15:54:43]Read from MH i2c: E2 03 00 8B A1 00 90 00 A0 [15:54:43]RAPDU: 90 00 [15:54:43]wFMCommunicate OK [15:54:43]wFMCommunicate request_size=4 [15:54:43]MH_SAM_APDU [15:54:43]CAPDU: 80 0D 03 02 [15:54:43]Write to MH i2c: E2 08 00 8C A1 80 0D 03 02 00 00 00 00 A8 [15:54:43]Write i2c OK [15:54:43]MH_I2C_Read... [15:54:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:54:43]Read from MH i2c: E2 [15:54:43]MH_I2C_Read... [15:54:43]Read from MH i2c: E2 0B 00 [15:54:43]MH_I2C_Read... [15:54:43]Read from MH i2c: E2 0B 00 8C A1 00 AF EC 48 AA F5 76 B9 98 90 00 F2 [15:54:43]RAPDU: AF EC 48 AA F5 76 B9 98 90 00 [15:54:43]wFMCommunicate OK [15:54:43]SAM_PROTO_SignData done [15:54:43]FM_MakeSignedData done [15:54:43]CreateOFDProtocolMessage [15:54:43]wFMCommunicate request_size=4 [15:54:43]MH_SAM_APDU [15:54:43]CAPDU: 80 11 00 00 [15:54:43]Write to MH i2c: E2 08 00 8D A1 80 11 00 00 00 00 00 00 A8 [15:54:43]Write i2c OK [15:54:43]MH_I2C_Read... [15:54:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:54:43]Read from MH i2c: E2 [15:54:43]MH_I2C_Read... [15:54:43]Read from MH i2c: E2 17 00 [15:54:43]MH_I2C_Read... [15:54:43]Read from MH i2c: E2 17 00 8D A1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F7 [15:54:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:54:43]wFMCommunicate OK [15:54:43]CreateOFDProtocolMessage done [15:54:43]OFDSenderStorePacket 29256 [15:54:43]StoreOFDPacket docnum=29256 [15:54:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 23 FD 07 01 2B 27 5A 03 01 00 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 C6 6B 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 5C 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 4C FC 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 48 72 00 00 35 04 06 00 C3 59 7E 1E BF 59 AF EC 48 AA F5 76 B9 98 [15:54:43]CheckFolder [15:54:43]dirname=/storage/ofd_packets [15:54:43]CheckFolder done [15:54:43]ProducePacketName [15:54:43]name=ofd_packets/00029256 [15:54:43]NVStorageSaveData ofd_packets/00029256 [15:54:43]File name is /storage/ofd_packets/00029256 [15:54:43]Write 301 bytes [15:54:43]NVStorageSaveData done [15:54:43]OFDSenderStorePacket done [15:54:43]KKMCreateOFDPacket done [15:54:43]NVStorageSaveData kkm_last_timestamp [15:54:43]File name is /storage/kkm_last_timestamp [15:54:43]Write 4 bytes [15:54:43]NVStorageSaveData done [15:54:43]ExternCall_PrintAddStr [15:54:43]wPrintStart [15:54:43]Write to MH i2c: 01 00 00 8E A1 2F [15:54:43]Write i2c OK [15:54:43]MH_I2C_Read... [15:54:43]Read from MH i2c: 01 [15:54:43]MH_I2C_Read... [15:54:43]Read from MH i2c: 01 07 00 [15:54:43]MH_I2C_Read... [15:54:43]Read from MH i2c: 01 07 00 8E A1 00 00 00 00 00 FF 0F 44 [15:54:43]RasterBufferAndPrint [15:54:43]line Счет N : (1)347640 [15:54:43]line ИНН: 02508201610067 [15:54:43]line Контрольно-Кассовый Чек [15:54:43]line ПРОДАЖА [15:54:43]line ТРК (МРК, ГНК) : 43 [15:54:43]line Товар: 2710124500 [15:54:43]line Аи-95-К-5 [15:54:43]line 27.590 * 72.50 [15:54:43]line = 2000.28 [15:54:43]line НДС 12% НСП 1% [15:54:43]line > о реализуемом товаре [15:54:43]line ИТОГО: 2000.28 [15:54:43]line НСП 1% : 17.70 [15:54:43]line НДС 12% : 212.42 [15:54:43]line Наличными: 0.00 [15:54:43]line Безнал.: 2000.28 [15:54:43]line Место: АЗС № 108 "Партнер Нефть" [15:54:43]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [15:54:43]line СНО: Общий режим [15:54:43]line Чек 166 14.04.2024 15:54 [15:54:43]line Смена: 116 ФФД: 1.0 [15:54:43]line ЗНМ: 0300000027 [15:54:43]line РНМ: 0000138879044617 [15:54:43]line Версия ККМ: 001 [15:54:43]line Платежная система: О! деньги [15:54:43]line ФМ: 0000000000963154 [15:54:43]line ФД: 29256 [15:54:43]line ФПД: 214789135449945 [15:54:43]line 1/tax-web-control/client/api/v1/ticket?date=20240414T155452&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29256&fm=214789135449945&tin=02508201610067®Number=0000138879044617&sum=200028 [15:54:44]OFD Sender: Processing packet 29256 [packets to send 8, broken 7] [15:54:44]ProducePacketName [15:54:44]name=ofd_packets/00029256 [15:54:44]OFD Sender: To server: pG, [15:54:44]CommunicateWithHost lk.salyk.kg:30040 [15:54:44]ConnectInit lk.salyk.kg [15:54:44]written 0, free lines is 4095 [15:54:44]Connected sock=10 [15:54:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 23 FD 07 01 2B 27 5A 03 01 00 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 C6 6B 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 5C 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 4C FC 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 48 72 00 00 35 04 06 00 C3 59 7E 1E BF 59 AF EC 48 AA F5 76 B9 98 [15:54:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 EA 1C 47 00 0B B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 48 72 00 00 F4 03 04 00 F0 A6 1B 66 B6 04 01 00 00 86 62 04 20 13 81 42 DE [15:54:44]CommunicateWithHost err = 0 [15:54:44]CheckOFDResponse [15:54:44]1017 (14) - 77093643461234 [15:54:44]1041 (16) - 0000000000963154 [15:54:44]1040 (4) - 29256 [15:54:44]1012 (4) - 14.04.2024 09:50 [15:54:44]1206 (1) - 0 [15:54:44]OFD Sender: Remove packet 29256 [15:54:44]ProducePacketName [15:54:44]name=ofd_packets/00029256 [15:54:44]NVStorageDeleteData [15:54:44]Write to MH i2c: 01 00 00 B7 A1 58 [15:54:44]Write i2c OK [15:54:44]MH_I2C_Read... [15:54:44]Read from MH i2c: 01 [15:54:44]MH_I2C_Read... [15:54:44]Read from MH i2c: 01 07 00 [15:54:44]MH_I2C_Read... [15:54:44]Read from MH i2c: 01 07 00 B7 A1 00 00 00 00 00 E0 0C 4B [15:54:44]RasterBufferAndPrint [15:54:44]line [15:54:44]line [15:54:44]line [15:54:44]line [15:54:44]line [15:54:44]written 0, free lines is 3302 [15:54:44]MH_Cut [15:54:44]Write to MH i2c: D1 01 00 BE A1 01 31 [15:54:44]Write i2c OK [15:54:44]MH_I2C_Read... [15:54:44]Read from MH i2c: D1 [15:54:44]MH_I2C_Read... [15:54:44]Read from MH i2c: D1 01 00 [15:54:44]MH_I2C_Read... [15:54:44]Read from MH i2c: D1 01 00 BE A1 00 30 [15:54:44]Write to MH i2c: 01 00 00 BF A1 60 [15:54:44]Write i2c OK [15:54:44]MH_I2C_Read... [15:54:44]OFD Sender: No OFD packet to send [15:54:45]*** Cut start [15:54:45]*** Partial cut [15:54:45]*** CUTSNS_PIN = 1 [15:54:45]*** CUTSNS_PIN = 0 [15:54:45]*** Brake cut motor [15:54:45]Read from MH i2c: 01 [15:54:45]MH_I2C_Read... [15:54:45]*** Stop cut motor [15:54:45]*** Cut end [15:54:45]Read from MH i2c: 01 07 00 [15:54:45]MH_I2C_Read... [15:54:45]Read from MH i2c: 01 07 00 BF A1 00 00 00 00 00 FF 0F 75 [15:54:45]process_action close_receipt done [15:54:45]requested_data is exist [15:54:45]produce_requested_data [15:54:45]requested_item fm.sn is exist - process it [15:54:45]wFMCommunicate request_size=4 [15:54:45]MH_SAM_APDU [15:54:45]CAPDU: 80 11 00 00 [15:54:45]Write to MH i2c: E2 08 00 C0 A1 80 11 00 00 00 00 00 00 DB [15:54:45]Write i2c OK [15:54:45]MH_I2C_Read... [15:54:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:54:45]Read from MH i2c: E2 [15:54:45]MH_I2C_Read... [15:54:45]Read from MH i2c: E2 17 00 [15:54:45]MH_I2C_Read... [15:54:45]Read from MH i2c: E2 17 00 C0 A1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 2A [15:54:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:54:45]wFMCommunicate OK [15:54:45]requested_item fd.num is exist - process it [15:54:45]SAM_PROTO_GetFieldsCounters [15:54:45]wFMCommunicate request_size=4 [15:54:45]MH_SAM_APDU [15:54:45]CAPDU: 80 13 00 00 [15:54:45]Write to MH i2c: E2 08 00 C1 A1 80 13 00 00 00 00 00 00 DE [15:54:45]Write i2c OK [15:54:45]MH_I2C_Read... [15:54:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:54:46]Read from MH i2c: E2 [15:54:46]MH_I2C_Read... [15:54:46]Read from MH i2c: E2 62 00 [15:54:46]MH_I2C_Read... [15:54:46]Read from MH i2c: E2 62 00 C1 A1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 48 72 00 00 0E 04 04 00 74 00 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 3C [15:54:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 48 72 00 00 0E 04 04 00 74 00 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 [15:54:46]wFMCommunicate OK [15:54:46]SAM_PROTO_GetFieldsCounters done [15:54:46]requested_item shift.num is exist - process it [15:54:46]requested_item shift.opened is exist - process it [15:54:46]req_shift_opened [15:54:46]FM_GetShiftState [15:54:46]SAM_PROTO_GetShiftState [15:54:46]wFMCommunicate request_size=4 [15:54:46]MH_SAM_APDU [15:54:46]CAPDU: 80 13 01 00 [15:54:46]Write to MH i2c: E2 08 00 C2 A1 80 13 01 00 00 00 00 00 E0 [15:54:46]Write i2c OK [15:54:46]MH_I2C_Read... [15:54:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:54:46]Read from MH i2c: E2 [15:54:46]MH_I2C_Read... [15:54:46]Read from MH i2c: E2 0E 00 [15:54:46]MH_I2C_Read... [15:54:46]Read from MH i2c: E2 0E 00 C2 A1 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 8C [15:54:46]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [15:54:46]wFMCommunicate OK [15:54:46]SAM_PROTO_GetShiftState done [15:54:46]FM_GetShiftState done [15:54:46]req_shift_opened done [15:54:46]requested_item shift.open_date is exist - process it [15:54:46]req_shift_open_date [15:54:46]req_shift_open_date done [15:54:46]produce_requested_data done [15:54:46]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29256,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [15:54:46]process_action_free close_receipt [15:54:46]json_value_free [15:54:46]json_value_free done [15:54:46]process_json_proto returns [15:54:46]Send response to host [15:54:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29256,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [15:54:46]free response buf [15:54:46]execute_script done [15:54:46]execute_script returns [15:54:46]free content buf [15:54:46]Sock 7.Close socket [15:54:46]Sock 7.Thread stoped [15:54:49]OFD Sender: No OFD packet to send [15:54:54]OFD Sender: No OFD packet to send [15:54:59]OFD Sender: No OFD packet to send [15:55:04]OFD Sender: No OFD packet to send [15:55:09]OFD Sender: No OFD packet to send [15:55:14]OFD Sender: No OFD packet to send [15:55:19]OFD Sender: No OFD packet to send [15:55:24]OFD Sender: No OFD packet to send [15:55:29]OFD Sender: No OFD packet to send [15:55:34]OFD Sender: No OFD packet to send [15:55:39]OFD Sender: No OFD packet to send [15:55:44]OFD Sender: No OFD packet to send [15:55:49]OFD Sender: No OFD packet to send [15:55:54]OFD Sender: No OFD packet to send [15:55:59]OFD Sender: No OFD packet to send [15:56:04]OFD Sender: No OFD packet to send [15:56:09]OFD Sender: No OFD packet to send [15:56:14]OFD Sender: No OFD packet to send [15:56:19]OFD Sender: No OFD packet to send [15:56:24]OFD Sender: No OFD packet to send [15:56:29]OFD Sender: No OFD packet to send [15:56:34]OFD Sender: No OFD packet to send [15:56:39]OFD Sender: No OFD packet to send [15:56:44]OFD Sender: No OFD packet to send [15:56:49]OFD Sender: No OFD packet to send [15:56:54]OFD Sender: No OFD packet to send [15:56:59]OFD Sender: No OFD packet to send [15:57:04]OFD Sender: No OFD packet to send [15:57:09]OFD Sender: No OFD packet to send [15:57:14]OFD Sender: No OFD packet to send [15:57:19]OFD Sender: No OFD packet to send [15:57:24]OFD Sender: No OFD packet to send [15:57:29]OFD Sender: No OFD packet to send [15:57:34]OFD Sender: No OFD packet to send [15:57:39]OFD Sender: No OFD packet to send [15:57:44]OFD Sender: No OFD packet to send [15:57:49]OFD Sender: No OFD packet to send [15:57:54]OFD Sender: No OFD packet to send [15:57:59]OFD Sender: No OFD packet to send [15:58:04]OFD Sender: No OFD packet to send [15:58:09]OFD Sender: No OFD packet to send [15:58:14]OFD Sender: No OFD packet to send [15:58:19]OFD Sender: No OFD packet to send [15:58:24]OFD Sender: No OFD packet to send [15:58:29]OFD Sender: No OFD packet to send [15:58:34]OFD Sender: No OFD packet to send [15:58:39]OFD Sender: No OFD packet to send [15:58:44]OFD Sender: No OFD packet to send [15:58:49]OFD Sender: No OFD packet to send [15:58:54]accept exits with 9 [15:58:54]New connection [15:58:54]New thread 3066928484 created [15:58:54]Thread 3066785124 joined [15:58:54]Waiting for new connection... [15:58:54] Sock 9.Parse request [15:58:54]Sock 9.Check first char [15:58:54]Sock 9.First char is OK [15:58:54]request: POST /json_proto HTTP/1.0 [15:58:54]Method: POST [15:58:54]URL: /json_proto [15:58:54]Method is POST - this is cgi request [15:58:54]url: /json_proto [15:58:54]query_string will be loaded in cgi processing [15:58:54]execute_cgi json_proto POST (null) [15:58:54]execute_cgi path=json_proto method=POST [15:58:54]POST find Content-Length [15:58:54]Host: 172.17.33.3:8080 [15:58:54]Content-Length: 685 [15:58:54]Content-Type: application/json [15:58:54] [15:58:54]POST finish read [15:58:54]Found Content-Length = 685 [15:58:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347641", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 32.600, "sum" : 1072.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1072.00, "payments": [ { "type": 0, "sum" : 1072.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:58:54]execute_script... [15:58: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)347641", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 32.600, "sum" : 1072.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1072.00, "payments": [ { "type": 0, "sum" : 1072.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:58:54]POST & json_proto [15:58:54]process_json_proto [15:58:54]json parsed OK: [15:58:54]protocol is kg_v1.0 [15:58:54]action value=close_receipt [15:58:54]process_action close_receipt [15:58:54]cmd_close_receipt [15:58:54]MH_GetDate [15:58:54]Write to MH i2c: F0 00 00 C3 A1 53 [15:58:54]Write i2c OK [15:58:54]MH_I2C_Read... [15:58:54]Read from MH i2c: F0 [15:58:54]MH_I2C_Read... [15:58:54]Read from MH i2c: F0 09 00 [15:58:54]MH_I2C_Read... [15:58:54]Read from MH i2c: F0 09 00 C3 A1 00 48 FD 1B 66 23 5B 8F 65 94 [15:58:54]GetLastDocTimeStamp 1713110092 [15:58:54]current date 1713110344 [15:58:54]FM_GetShiftState [15:58:54]SAM_PROTO_GetShiftState [15:58:54]wFMCommunicate request_size=4 [15:58:54]MH_SAM_APDU [15:58:54]CAPDU: 80 13 01 00 [15:58:54]Write to MH i2c: E2 08 00 C4 A1 80 13 01 00 00 00 00 00 E2 [15:58:54]Write i2c OK [15:58:54]MH_I2C_Read... [15:58:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:58:54]Read from MH i2c: E2 [15:58:54]MH_I2C_Read... [15:58:54]Read from MH i2c: E2 0E 00 [15:58:54]MH_I2C_Read... [15:58:54]Read from MH i2c: E2 0E 00 C4 A1 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 8E [15:58:54]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [15:58:54]wFMCommunicate OK [15:58:54]SAM_PROTO_GetShiftState done [15:58:54]FM_GetShiftState done [15:58:54]opened in 1713053951 [15:58:54]opened+sec_in_day 1713140351 [15:58:54]quantity*price = 107254 [15:58:54]sum+1 = 107255 [15:58:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 1072.00 Внесено: 2000.00 СДАЧА: 928.00 НСП 1% : 9.49 НДС 12% : 113.90 Наличными: 1072.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 167 14.04.2024 15:59 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29257 ФПД: 202148563641279 1/tax-web-control/client/api/v1/ticket?date=20240414T155904&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29257&fm=202148563641279&tin=02508201610067®Number=0000138879044617&sum=107200 [15:58:55]StoreToDocumentArchive [15:58:55]shift 116 fd 29257 [15:58:55]save to /storage/0116/doc_00029257 [15:58:55]save last doc name /storage/0116/doc_00029257 to /storage/kkm_last_doc_name [15:58:55]save OK [15:58:55]Clear old archive folders... [15:58:55]ProcessDocumentItem done err = 0, tmpTLVsize=250 [15:58:55]tlvbuf is 011EAFA0 [15:58:55]SAM_PROTO_ClearQueue [15:58:55]wFMCommunicate request_size=4 [15:58:55]MH_SAM_APDU [15:58:55]CAPDU: 80 09 00 00 [15:58:55]Write to MH i2c: E2 08 00 D1 A1 80 09 00 00 00 00 00 00 E4 [15:58:55]Write i2c OK [15:58:55]MH_I2C_Read... [15:58:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:58:55]Read from MH i2c: E2 [15:58:55]MH_I2C_Read... [15:58:55]Read from MH i2c: E2 03 00 [15:58:55]MH_I2C_Read... [15:58:55]Read from MH i2c: E2 03 00 D1 A1 00 90 00 E6 [15:58:55]RAPDU: 90 00 [15:58:55]wFMCommunicate OK [15:58:55]SAM_PROTO_ClearQueue done [15:58:55]KKMCreateOFDPacket [15:58:55]OFDProtocolAddRootSTLVToBuf [15:58:55]FM_MakeSignedData [15:58:55]FM_MakeSignedData [15:58:55]SAM_PROTO_SignData [15:58:55]wFMCommunicate request_size=4 [15:58:55]MH_SAM_APDU [15:58:55]CAPDU: 80 0D 01 02 [15:58:55]Write to MH i2c: E2 08 00 D2 A1 80 0D 01 02 00 00 00 00 EC [15:58:55]Write i2c OK [15:58:55]MH_I2C_Read... [15:58:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:58:55]Read from MH i2c: E2 [15:58:55]MH_I2C_Read... [15:58:55]Read from MH i2c: E2 03 00 [15:58:55]MH_I2C_Read... [15:58:55]Read from MH i2c: E2 03 00 D2 A1 00 90 00 E7 [15:58:55]RAPDU: 90 00 [15:58:55]wFMCommunicate OK [15:58:55]wFMCommunicate request_size=255 [15:58:55]MH_SAM_APDU [15:58:55]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 58 7F 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 F6 A2 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 A2 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 2C 00 00 00 00 07 04 06 00 C0 A2 01 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 48 FD 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 49 72 00 00 35 04 06 00 B7 DA [15:58:55]Write to MH i2c: E2 02 01 D3 A1 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 58 7F 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 F6 A2 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 A2 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 2C 00 00 00 00 07 04 06 00 C0 A2 01 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 48 FD 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 49 72 00 00 35 04 06 00 B7 DA 00 00 6E [15:58:55]Write i2c OK [15:58:55]MH_I2C_Read... [15:58:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:58:55]Read from MH i2c: E2 [15:58:55]MH_I2C_Read... [15:58:55]Read from MH i2c: E2 03 00 [15:58:55]MH_I2C_Read... [15:58:55]Read from MH i2c: E2 03 00 D3 A1 00 90 00 E8 [15:58:55]RAPDU: 90 00 [15:58:55]wFMCommunicate OK [15:58:55]wFMCommunicate request_size=9 [15:58:55]MH_SAM_APDU [15:58:55]CAPDU: 80 0D 02 02 04 61 53 E3 BF [15:58:55]Write to MH i2c: E2 0C 00 D4 A1 80 0D 02 02 04 00 61 53 E3 BF 00 00 4D [15:58:55]Write i2c OK [15:58:55]MH_I2C_Read... [15:58:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:58:55]Read from MH i2c: E2 [15:58:55]MH_I2C_Read... [15:58:55]Read from MH i2c: E2 03 00 [15:58:55]MH_I2C_Read... [15:58:55]Read from MH i2c: E2 03 00 D4 A1 00 90 00 E9 [15:58:55]RAPDU: 90 00 [15:58:55]wFMCommunicate OK [15:58:55]wFMCommunicate request_size=4 [15:58:55]MH_SAM_APDU [15:58:55]CAPDU: 80 0D 03 02 [15:58:55]Write to MH i2c: E2 08 00 D5 A1 80 0D 03 02 00 00 00 00 F1 [15:58:55]Write i2c OK [15:58:55]MH_I2C_Read... [15:58:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:58:55]Read from MH i2c: E2 [15:58:55]MH_I2C_Read... [15:58:55]Read from MH i2c: E2 0B 00 [15:58:55]MH_I2C_Read... [15:58:55]Read from MH i2c: E2 0B 00 D5 A1 00 57 83 C9 08 DA 79 DA AF 90 00 79 [15:58:55]RAPDU: 57 83 C9 08 DA 79 DA AF 90 00 [15:58:55]wFMCommunicate OK [15:58:55]SAM_PROTO_SignData done [15:58:55]FM_MakeSignedData done [15:58:55]CreateOFDProtocolMessage [15:58:55]wFMCommunicate request_size=4 [15:58:55]MH_SAM_APDU [15:58:55]CAPDU: 80 11 00 00 [15:58:55]Write to MH i2c: E2 08 00 D6 A1 80 11 00 00 00 00 00 00 F1 [15:58:55]Write i2c OK [15:58:55]MH_I2C_Read... [15:58:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:58:55]Read from MH i2c: E2 [15:58:55]MH_I2C_Read... [15:58:55]Read from MH i2c: E2 17 00 [15:58:55]MH_I2C_Read... [15:58:55]Read from MH i2c: E2 17 00 D6 A1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 40 [15:58:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:58:55]wFMCommunicate OK [15:58:55]CreateOFDProtocolMessage done [15:58:55]OFDSenderStorePacket 29257 [15:58:55]StoreOFDPacket docnum=29257 [15:58:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 B2 E3 06 01 C9 85 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 58 7F 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 F6 A2 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 A2 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 2C 00 00 00 00 07 04 06 00 C0 A2 01 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 48 FD 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 49 72 00 00 35 04 06 00 B7 DA 61 53 E3 BF 57 83 C9 08 DA 79 DA AF [15:58:55]CheckFolder [15:58:55]dirname=/storage/ofd_packets [15:58:55]CheckFolder done [15:58:55]ProducePacketName [15:58:55]name=ofd_packets/00029257 [15:58:55]NVStorageSaveData ofd_packets/00029257 [15:58:55]File name is /storage/ofd_packets/00029257 [15:58:55]Write 300 bytes [15:58:55]NVStorageSaveData done [15:58:55]OFDSenderStorePacket done [15:58:55]KKMCreateOFDPacket done [15:58:55]NVStorageSaveData kkm_last_timestamp [15:58:55]File name is /storage/kkm_last_timestamp [15:58:55]Write 4 bytes [15:58:55]NVStorageSaveData done [15:58:55]ExternCall_PrintAddStr [15:58:55]wPrintStart [15:58:55]Write to MH i2c: 01 00 00 D7 A1 78 [15:58:55]Write i2c OK [15:58:55]MH_I2C_Read... [15:58:55]Read from MH i2c: 01 [15:58:55]MH_I2C_Read... [15:58:55]Read from MH i2c: 01 07 00 [15:58:55]MH_I2C_Read... [15:58:55]Read from MH i2c: 01 07 00 D7 A1 00 00 00 00 00 FF 0F 8D [15:58:55]RasterBufferAndPrint [15:58:55]line Счет N : (1)347641 [15:58:55]line ИНН: 02508201610067 [15:58:55]line Контрольно-Кассовый Чек [15:58:55]line ПРОДАЖА [15:58:55]line ТРК (МРК, ГНК) : 71 [15:58:55]line Товар: 2711129700 [15:58:55]line ГАЗ-К-5 [15:58:55]line 32.600 * 32.90 [15:58:55]line = 1072.54 [15:58:55]line НДС 12% НСП 1% [15:58:55]line > о реализуемом товаре [15:58:55]line ОКРУГЛЕНИЕ: -0.54 [15:58:55]line ИТОГО: 1072.00 [15:58:55]line Внесено: 2000.00 [15:58:55]line СДАЧА: 928.00 [15:58:55]line НСП 1% : 9.49 [15:58:55]line НДС 12% : 113.90 [15:58:55]line Наличными: 1072.00 [15:58:55]line Безнал.: 0.00 [15:58:55]line Место: АЗС № 108 "Партнер Нефть" [15:58:55]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [15:58:55]line СНО: Общий режим [15:58:55]line Чек 167 14.04.2024 15:59 [15:58:55]line Смена: 116 ФФД: 1.0 [15:58:55]line ЗНМ: 0300000027 [15:58:55]line РНМ: 0000138879044617 [15:58:55]line Версия ККМ: 001 [15:58:55]line ФМ: 0000000000963154 [15:58:55]line ФД: 29257 [15:58:55]line ФПД: 202148563641279 [15:58:55]line 1/tax-web-control/client/api/v1/ticket?date=20240414T155904&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29257&fm=202148563641279&tin=02508201610067®Number=0000138879044617&sum=107200 [15:58:56]OFD Sender: Processing packet 29257 [packets to send 8, broken 7] [15:58:56]ProducePacketName [15:58:56]name=ofd_packets/00029257 [15:58:56]OFD Sender: To server: pG, [15:58:56]CommunicateWithHost lk.salyk.kg:30040 [15:58:56]ConnectInit lk.salyk.kg [15:58:56]written 0, free lines is 4095 [15:58:56]Connected sock=10 [15:58:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 B2 E3 06 01 C9 85 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 58 7F 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 F6 A2 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 A2 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 2C 00 00 00 00 07 04 06 00 C0 A2 01 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 48 FD 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 49 72 00 00 35 04 06 00 B7 DA 61 53 E3 BF 57 83 C9 08 DA 79 DA AF [15:58:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 19 F8 47 00 3D 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 39 36 33 31 35 34 10 04 04 00 49 72 00 00 F4 03 04 00 EC A7 1B 66 B6 04 01 00 00 F8 7B 52 A2 F3 EA A6 CA [15:58:56]CommunicateWithHost err = 0 [15:58:56]CheckOFDResponse [15:58:56]1017 (14) - 77093643461234 [15:58:56]1041 (16) - 0000000000963154 [15:58:56]1040 (4) - 29257 [15:58:56]1012 (4) - 14.04.2024 09:54 [15:58:56]1206 (1) - 0 [15:58:56]OFD Sender: Remove packet 29257 [15:58:56]ProducePacketName [15:58:56]name=ofd_packets/00029257 [15:58:56]NVStorageDeleteData [15:58:56]Write to MH i2c: 01 00 00 01 A2 A3 [15:58:56]Write i2c OK [15:58:56]MH_I2C_Read... [15:58:56]Read from MH i2c: 01 [15:58:56]MH_I2C_Read... [15:58:56]Read from MH i2c: 01 07 00 [15:58:56]MH_I2C_Read... [15:58:56]Read from MH i2c: 01 07 00 01 A2 00 00 00 00 00 BE 0C 74 [15:58:56]RasterBufferAndPrint [15:58:56]line [15:58:56]line [15:58:56]line [15:58:56]line [15:58:56]line [15:58:56]written 0, free lines is 3267 [15:58:56]MH_Cut [15:58:56]Write to MH i2c: D1 01 00 08 A2 01 7C [15:58:56]Write i2c OK [15:58:56]MH_I2C_Read... [15:58:56]Read from MH i2c: D1 [15:58:56]MH_I2C_Read... [15:58:56]Read from MH i2c: D1 01 00 [15:58:56]MH_I2C_Read... [15:58:56]Read from MH i2c: D1 01 00 08 A2 00 7B [15:58:56]Write to MH i2c: 01 00 00 09 A2 AB [15:58:56]Write i2c OK [15:58:56]MH_I2C_Read... [15:58:56]OFD Sender: No OFD packet to send [15:58:57]*** Cut start [15:58:57]*** Partial cut [15:58:57]*** CUTSNS_PIN = 1 [15:58:57]*** CUTSNS_PIN = 0 [15:58:57]*** Brake cut motor [15:58:58]Read from MH i2c: 01 [15:58:58]MH_I2C_Read... [15:58:58]*** Stop cut motor [15:58:58]*** Cut end [15:58:58]Read from MH i2c: 01 07 00 [15:58:58]MH_I2C_Read... [15:58:58]Read from MH i2c: 01 07 00 09 A2 00 00 00 00 00 FF 0F C0 [15:58:58]process_action close_receipt done [15:58:58]requested_data is exist [15:58:58]produce_requested_data [15:58:58]requested_item fm.sn is exist - process it [15:58:58]wFMCommunicate request_size=4 [15:58:58]MH_SAM_APDU [15:58:58]CAPDU: 80 11 00 00 [15:58:58]Write to MH i2c: E2 08 00 0A A2 80 11 00 00 00 00 00 00 26 [15:58:58]Write i2c OK [15:58:58]MH_I2C_Read... [15:58:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:58:58]Read from MH i2c: E2 [15:58:58]MH_I2C_Read... [15:58:58]Read from MH i2c: E2 17 00 [15:58:58]MH_I2C_Read... [15:58:58]Read from MH i2c: E2 17 00 0A A2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 75 [15:58:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:58:58]wFMCommunicate OK [15:58:58]requested_item fd.num is exist - process it [15:58:58]SAM_PROTO_GetFieldsCounters [15:58:58]wFMCommunicate request_size=4 [15:58:58]MH_SAM_APDU [15:58:58]CAPDU: 80 13 00 00 [15:58:58]Write to MH i2c: E2 08 00 0B A2 80 13 00 00 00 00 00 00 29 [15:58:58]Write i2c OK [15:58:58]MH_I2C_Read... [15:58:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:58:58]Read from MH i2c: E2 [15:58:58]MH_I2C_Read... [15:58:58]Read from MH i2c: E2 62 00 [15:58:58]MH_I2C_Read... [15:58:58]Read from MH i2c: E2 62 00 0B A2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 49 72 00 00 0E 04 04 00 74 00 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 8B [15:58:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 49 72 00 00 0E 04 04 00 74 00 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 [15:58:58]wFMCommunicate OK [15:58:58]SAM_PROTO_GetFieldsCounters done [15:58:58]requested_item shift.num is exist - process it [15:58:58]requested_item shift.opened is exist - process it [15:58:58]req_shift_opened [15:58:58]FM_GetShiftState [15:58:58]SAM_PROTO_GetShiftState [15:58:58]wFMCommunicate request_size=4 [15:58:58]MH_SAM_APDU [15:58:58]CAPDU: 80 13 01 00 [15:58:58]Write to MH i2c: E2 08 00 0C A2 80 13 01 00 00 00 00 00 2B [15:58:58]Write i2c OK [15:58:58]MH_I2C_Read... [15:58:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:58:58]Read from MH i2c: E2 [15:58:58]MH_I2C_Read... [15:58:58]Read from MH i2c: E2 0E 00 [15:58:58]MH_I2C_Read... [15:58:58]Read from MH i2c: E2 0E 00 0C A2 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 D7 [15:58:58]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [15:58:58]wFMCommunicate OK [15:58:58]SAM_PROTO_GetShiftState done [15:58:58]FM_GetShiftState done [15:58:58]req_shift_opened done [15:58:58]requested_item shift.open_date is exist - process it [15:58:58]req_shift_open_date [15:58:58]req_shift_open_date done [15:58:58]produce_requested_data done [15:58:58]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29257,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [15:58:58]process_action_free close_receipt [15:58:58]json_value_free [15:58:58]json_value_free done [15:58:58]process_json_proto returns [15:58:58]Send response to host [15:58:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29257,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [15:58:58]free response buf [15:58:58]execute_script done [15:58:58]execute_script returns [15:58:58]free content buf [15:58:58]Sock 9.Close socket [15:58:58]Sock 9.Thread stoped [15:59:01]OFD Sender: No OFD packet to send [15:59:06]OFD Sender: No OFD packet to send [15:59:11]OFD Sender: No OFD packet to send [15:59:16]OFD Sender: No OFD packet to send [15:59:21]OFD Sender: No OFD packet to send [15:59:26]OFD Sender: No OFD packet to send [15:59:31]OFD Sender: No OFD packet to send [15:59:36]OFD Sender: No OFD packet to send [15:59:41]OFD Sender: No OFD packet to send [15:59:46]OFD Sender: No OFD packet to send [15:59:51]OFD Sender: No OFD packet to send [15:59:57]OFD Sender: No OFD packet to send [16:00:02]OFD Sender: No OFD packet to send [16:00:07]OFD Sender: No OFD packet to send [16:00:12]OFD Sender: No OFD packet to send [16:00:17]OFD Sender: No OFD packet to send [16:00:22]OFD Sender: No OFD packet to send [16:00:27]OFD Sender: No OFD packet to send [16:00:32]OFD Sender: No OFD packet to send [16:00:37]OFD Sender: No OFD packet to send [16:00:42]OFD Sender: No OFD packet to send [16:00:47]OFD Sender: No OFD packet to send [16:00:52]OFD Sender: No OFD packet to send [16:00:57]OFD Sender: No OFD packet to send [16:01:02]OFD Sender: No OFD packet to send [16:01:07]OFD Sender: No OFD packet to send [16:01:12]OFD Sender: No OFD packet to send [16:01:17]OFD Sender: No OFD packet to send [16:01:22]OFD Sender: No OFD packet to send [16:01:27]OFD Sender: No OFD packet to send [16:01:32]OFD Sender: No OFD packet to send [16:01:37]OFD Sender: No OFD packet to send [16:01:42]OFD Sender: No OFD packet to send [16:01:47]OFD Sender: No OFD packet to send [16:01:52]OFD Sender: No OFD packet to send [16:01:57]OFD Sender: No OFD packet to send [16:02:02]OFD Sender: No OFD packet to send [16:02:07]OFD Sender: No OFD packet to send [16:02:12]OFD Sender: No OFD packet to send [16:02:17]OFD Sender: No OFD packet to send [16:02:22]OFD Sender: No OFD packet to send [16:02:27]OFD Sender: No OFD packet to send [16:02:32]OFD Sender: No OFD packet to send [16:02:37]OFD Sender: No OFD packet to send [16:02:42]OFD Sender: No OFD packet to send [16:02:47]OFD Sender: No OFD packet to send [16:02:52]OFD Sender: No OFD packet to send [16:02:57]OFD Sender: No OFD packet to send [16:03:02]OFD Sender: No OFD packet to send [16:03:04]accept exits with 7 [16:03:04]New connection [16:03:04]New thread 3066785124 created [16:03:04]Thread 3066928484 joined [16:03:04]Waiting for new connection... [16:03:04] Sock 7.Parse request [16:03:04]Sock 7.Check first char [16:03:04]Sock 7.First char is OK [16:03:04]request: POST /json_proto HTTP/1.0 [16:03:04]Method: POST [16:03:04]URL: /json_proto [16:03:04]Method is POST - this is cgi request [16:03:04]url: /json_proto [16:03:04]query_string will be loaded in cgi processing [16:03:04]execute_cgi json_proto POST (null) [16:03:04]execute_cgi path=json_proto method=POST [16:03:04]POST find Content-Length [16:03:04]Host: 172.17.33.3:8080 [16:03:04]Content-Length: 808 [16:03:04]Content-Type: application/json [16:03:04] [16:03:04]POST finish read [16:03:04]Found Content-Length = 808 [16:03:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347642", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.50, "quantity" : 34.490, "sum" : 2500.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2500.53 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:03:04]execute_script... [16:03: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)347642", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.50, "quantity" : 34.490, "sum" : 2500.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2500.53 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:03:04]POST & json_proto [16:03:04]process_json_proto [16:03:04]json parsed OK: [16:03:04]protocol is kg_v1.0 [16:03:04]action value=close_receipt [16:03:04]process_action close_receipt [16:03:04]cmd_close_receipt [16:03:04]MH_GetDate [16:03:04]Write to MH i2c: F0 00 00 0D A2 9E [16:03:04]Write i2c OK [16:03:04]MH_I2C_Read... [16:03:04]Read from MH i2c: F0 [16:03:04]MH_I2C_Read... [16:03:04]Read from MH i2c: F0 09 00 [16:03:04]MH_I2C_Read... [16:03:04]Read from MH i2c: F0 09 00 0D A2 00 43 FE 1B 66 23 5B 8F 65 DB [16:03:04]GetLastDocTimeStamp 1713110344 [16:03:04]current date 1713110595 [16:03:04]FM_GetShiftState [16:03:04]SAM_PROTO_GetShiftState [16:03:04]wFMCommunicate request_size=4 [16:03:04]MH_SAM_APDU [16:03:04]CAPDU: 80 13 01 00 [16:03:04]Write to MH i2c: E2 08 00 0E A2 80 13 01 00 00 00 00 00 2D [16:03:04]Write i2c OK [16:03:04]MH_I2C_Read... [16:03:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:03:04]Read from MH i2c: E2 [16:03:04]MH_I2C_Read... [16:03:04]Read from MH i2c: E2 0E 00 [16:03:04]MH_I2C_Read... [16:03:04]Read from MH i2c: E2 0E 00 0E A2 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 D9 [16:03:04]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [16:03:04]wFMCommunicate OK [16:03:04]SAM_PROTO_GetShiftState done [16:03:04]FM_GetShiftState done [16:03:04]opened in 1713053951 [16:03:04]opened+sec_in_day 1713140351 [16:03:04]quantity*price = 250052 [16:03:04]sum+1 = 250054 [16:03:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2500.53 НСП 1% : 22.13 НДС 12% : 265.54 Наличными: 0.00 Безнал.: 2500.53 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 168 14.04.2024 16:03 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29258 ФПД: 24917796283238 1/tax-web-control/client/api/v1/ticket?date=20240414T160315&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29258&fm=24917796283238&tin=02508201610067®Number=0000138879044617&sum=250053 [16:03:05]StoreToDocumentArchive [16:03:05]shift 116 fd 29258 [16:03:05]save to /storage/0116/doc_00029258 [16:03:05]save last doc name /storage/0116/doc_00029258 to /storage/kkm_last_doc_name [16:03:05]save OK [16:03:05]Clear old archive folders... [16:03:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:03:05]tlvbuf is 012149B0 [16:03:05]SAM_PROTO_ClearQueue [16:03:05]wFMCommunicate request_size=4 [16:03:05]MH_SAM_APDU [16:03:05]CAPDU: 80 09 00 00 [16:03:05]Write to MH i2c: E2 08 00 1B A2 80 09 00 00 00 00 00 00 2F [16:03:05]Write i2c OK [16:03:05]MH_I2C_Read... [16:03:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:03:05]Read from MH i2c: E2 [16:03:05]MH_I2C_Read... [16:03:05]Read from MH i2c: E2 03 00 [16:03:05]MH_I2C_Read... [16:03:05]Read from MH i2c: E2 03 00 1B A2 00 90 00 31 [16:03:05]RAPDU: 90 00 [16:03:05]wFMCommunicate OK [16:03:05]SAM_PROTO_ClearQueue done [16:03:05]KKMCreateOFDPacket [16:03:05]OFDProtocolAddRootSTLVToBuf [16:03:05]FM_MakeSignedData [16:03:05]FM_MakeSignedData [16:03:05]SAM_PROTO_SignData [16:03:05]wFMCommunicate request_size=4 [16:03:05]MH_SAM_APDU [16:03:05]CAPDU: 80 0D 01 02 [16:03:05]Write to MH i2c: E2 08 00 1C A2 80 0D 01 02 00 00 00 00 37 [16:03:05]Write i2c OK [16:03:05]MH_I2C_Read... [16:03:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:03:05]Read from MH i2c: E2 [16:03:05]MH_I2C_Read... [16:03:05]Read from MH i2c: E2 03 00 [16:03:05]MH_I2C_Read... [16:03:05]Read from MH i2c: E2 03 00 1C A2 00 90 00 32 [16:03:05]RAPDU: 90 00 [16:03:05]wFMCommunicate OK [16:03:05]wFMCommunicate request_size=255 [16:03:05]MH_SAM_APDU [16:03: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 BA 86 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 C5 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C5 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 BA 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C5 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 43 FE 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4A 72 00 00 35 04 06 00 16 [16:03:05]Write to MH i2c: E2 02 01 1D A2 80 0D 02 02 FA 00 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 BA 86 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 C5 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C5 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 BA 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C5 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 43 FE 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4A 72 00 00 35 04 06 00 16 00 00 56 [16:03:05]Write i2c OK [16:03:05]MH_I2C_Read... [16:03:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:03:05]Read from MH i2c: E2 [16:03:05]MH_I2C_Read... [16:03:05]Read from MH i2c: E2 03 00 [16:03:05]MH_I2C_Read... [16:03:05]Read from MH i2c: E2 03 00 1D A2 00 90 00 33 [16:03:05]RAPDU: 90 00 [16:03:05]wFMCommunicate OK [16:03:05]wFMCommunicate request_size=10 [16:03:05]MH_SAM_APDU [16:03:05]CAPDU: 80 0D 02 02 05 A9 A0 65 63 66 [16:03:05]Write to MH i2c: E2 0D 00 1E A2 80 0D 02 02 05 00 A9 A0 65 63 66 00 00 BB [16:03:05]Write i2c OK [16:03:05]MH_I2C_Read... [16:03:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:03:06]Read from MH i2c: E2 [16:03:06]MH_I2C_Read... [16:03:06]Read from MH i2c: E2 03 00 [16:03:06]MH_I2C_Read... [16:03:06]Read from MH i2c: E2 03 00 1E A2 00 90 00 34 [16:03:06]RAPDU: 90 00 [16:03:06]wFMCommunicate OK [16:03:06]wFMCommunicate request_size=4 [16:03:06]MH_SAM_APDU [16:03:06]CAPDU: 80 0D 03 02 [16:03:06]Write to MH i2c: E2 08 00 1F A2 80 0D 03 02 00 00 00 00 3C [16:03:06]Write i2c OK [16:03:06]MH_I2C_Read... [16:03:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:03:06]Read from MH i2c: E2 [16:03:06]MH_I2C_Read... [16:03:06]Read from MH i2c: E2 0B 00 [16:03:06]MH_I2C_Read... [16:03:06]Read from MH i2c: E2 0B 00 1F A2 00 9E 3F AC 4F 19 61 C4 DF 90 00 32 [16:03:06]RAPDU: 9E 3F AC 4F 19 61 C4 DF 90 00 [16:03:06]wFMCommunicate OK [16:03:06]SAM_PROTO_SignData done [16:03:06]FM_MakeSignedData done [16:03:06]CreateOFDProtocolMessage [16:03:06]wFMCommunicate request_size=4 [16:03:06]MH_SAM_APDU [16:03:06]CAPDU: 80 11 00 00 [16:03:06]Write to MH i2c: E2 08 00 20 A2 80 11 00 00 00 00 00 00 3C [16:03:06]Write i2c OK [16:03:06]MH_I2C_Read... [16:03:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:03:06]Read from MH i2c: E2 [16:03:06]MH_I2C_Read... [16:03:06]Read from MH i2c: E2 17 00 [16:03:06]MH_I2C_Read... [16:03:06]Read from MH i2c: E2 17 00 20 A2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 8B [16:03:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:03:06]wFMCommunicate OK [16:03:06]CreateOFDProtocolMessage done [16:03:06]OFDSenderStorePacket 29258 [16:03:06]StoreOFDPacket docnum=29258 [16:03:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 F3 3A 07 01 45 F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BA 86 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 C5 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C5 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 BA 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C5 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 43 FE 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4A 72 00 00 35 04 06 00 16 A9 A0 65 63 66 9E 3F AC 4F 19 61 C4 DF [16:03:06]CheckFolder [16:03:06]dirname=/storage/ofd_packets [16:03:06]CheckFolder done [16:03:06]ProducePacketName [16:03:06]name=ofd_packets/00029258 [16:03:06]NVStorageSaveData ofd_packets/00029258 [16:03:06]File name is /storage/ofd_packets/00029258 [16:03:06]Write 301 bytes [16:03:06]NVStorageSaveData done [16:03:06]OFDSenderStorePacket done [16:03:06]KKMCreateOFDPacket done [16:03:06]NVStorageSaveData kkm_last_timestamp [16:03:06]File name is /storage/kkm_last_timestamp [16:03:06]Write 4 bytes [16:03:06]NVStorageSaveData done [16:03:06]ExternCall_PrintAddStr [16:03:06]wPrintStart [16:03:06]Write to MH i2c: 01 00 00 21 A2 C3 [16:03:06]Write i2c OK [16:03:06]MH_I2C_Read... [16:03:06]Read from MH i2c: 01 [16:03:06]MH_I2C_Read... [16:03:06]Read from MH i2c: 01 07 00 [16:03:06]MH_I2C_Read... [16:03:06]Read from MH i2c: 01 07 00 21 A2 00 00 00 00 00 FF 0F D8 [16:03:06]RasterBufferAndPrint [16:03:06]line Счет N : (1)347642 [16:03:06]line ИНН: 02508201610067 [16:03:06]line Контрольно-Кассовый Чек [16:03:06]line ПРОДАЖА [16:03:06]line ТРК (МРК, ГНК) : 43 [16:03:06]line Товар: 2710124500 [16:03:06]line Аи-95-К-5 [16:03:06]line 34.490 * 72.50 [16:03:06]line = 2500.53 [16:03:06]line НДС 12% НСП 1% [16:03:06]line > о реализуемом товаре [16:03:06]line ИТОГО: 2500.53 [16:03:06]line НСП 1% : 22.13 [16:03:06]line НДС 12% : 265.54 [16:03:06]line Наличными: 0.00 [16:03:06]line Безнал.: 2500.53 [16:03:06]line Место: АЗС № 108 "Партнер Нефть" [16:03:06]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [16:03:06]line СНО: Общий режим [16:03:06]line Чек 168 14.04.2024 16:03 [16:03:06]line Смена: 116 ФФД: 1.0 [16:03:06]line ЗНМ: 0300000027 [16:03:06]line РНМ: 0000138879044617 [16:03:06]line Версия ККМ: 001 [16:03:06]line Платежная система: О! деньги [16:03:06]line ФМ: 0000000000963154 [16:03:06]line ФД: 29258 [16:03:06]line ФПД: 24917796283238 [16:03:06]line 1/tax-web-control/client/api/v1/ticket?date=20240414T160315&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29258&fm=24917796283238&tin=02508201610067®Number=0000138879044617&sum=250053 [16:03:06]OFD Sender: Processing packet 29258 [packets to send 8, broken 7] [16:03:06]ProducePacketName [16:03:06]name=ofd_packets/00029258 [16:03:06]OFD Sender: To server: pG, [16:03:06]CommunicateWithHost lk.salyk.kg:30040 [16:03:06]ConnectInit lk.salyk.kg [16:03:06]written 0, free lines is 4095 [16:03:06]Connected sock=10 [16:03:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 F3 3A 07 01 45 F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BA 86 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 C5 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C5 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 BA 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C5 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 43 FE 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4A 72 00 00 35 04 06 00 16 A9 A0 65 63 66 9E 3F AC 4F 19 61 C4 DF [16:03:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 6C AA 47 00 CE 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4A 72 00 00 F4 03 04 00 E6 A8 1B 66 B6 04 01 00 00 00 EB 7E C2 AE 0E 56 80 [16:03:06]CommunicateWithHost err = 0 [16:03:06]CheckOFDResponse [16:03:06]1017 (14) - 77093643461234 [16:03:06]1041 (16) - 0000000000963154 [16:03:06]1040 (4) - 29258 [16:03:06]1012 (4) - 14.04.2024 09:59 [16:03:06]1206 (1) - 0 [16:03:06]OFD Sender: Remove packet 29258 [16:03:06]ProducePacketName [16:03:06]name=ofd_packets/00029258 [16:03:06]NVStorageDeleteData [16:03:06]Write to MH i2c: 01 00 00 4A A2 EC [16:03:06]Write i2c OK [16:03:06]MH_I2C_Read... [16:03:06]Read from MH i2c: 01 [16:03:06]MH_I2C_Read... [16:03:06]Read from MH i2c: 01 07 00 [16:03:06]MH_I2C_Read... [16:03:06]Read from MH i2c: 01 07 00 4A A2 00 00 00 00 00 E0 0C DF [16:03:06]RasterBufferAndPrint [16:03:06]line [16:03:06]line [16:03:06]line [16:03:06]line [16:03:06]line [16:03:06]written 0, free lines is 3302 [16:03:06]MH_Cut [16:03:06]Write to MH i2c: D1 01 00 51 A2 01 C5 [16:03:06]Write i2c OK [16:03:06]MH_I2C_Read... [16:03:06]Read from MH i2c: D1 [16:03:06]MH_I2C_Read... [16:03:06]Read from MH i2c: D1 01 00 [16:03:06]MH_I2C_Read... [16:03:06]Read from MH i2c: D1 01 00 51 A2 00 C4 [16:03:06]Write to MH i2c: 01 00 00 52 A2 F4 [16:03:06]Write i2c OK [16:03:06]MH_I2C_Read... [16:03:07]OFD Sender: No OFD packet to send [16:03:07]*** Cut start [16:03:07]*** Partial cut [16:03:07]*** CUTSNS_PIN = 1 [16:03:07]*** CUTSNS_PIN = 0 [16:03:07]*** Brake cut motor [16:03:08]Read from MH i2c: 01 [16:03:08]MH_I2C_Read... [16:03:08]*** Stop cut motor [16:03:08]*** Cut end [16:03:08]Read from MH i2c: 01 07 00 [16:03:08]MH_I2C_Read... [16:03:08]Read from MH i2c: 01 07 00 52 A2 00 00 00 00 00 FF 0F 09 [16:03:08]process_action close_receipt done [16:03:08]requested_data is exist [16:03:08]produce_requested_data [16:03:08]requested_item fm.sn is exist - process it [16:03:08]wFMCommunicate request_size=4 [16:03:08]MH_SAM_APDU [16:03:08]CAPDU: 80 11 00 00 [16:03:08]Write to MH i2c: E2 08 00 53 A2 80 11 00 00 00 00 00 00 6F [16:03:08]Write i2c OK [16:03:08]MH_I2C_Read... [16:03:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:03:08]Read from MH i2c: E2 [16:03:08]MH_I2C_Read... [16:03:08]Read from MH i2c: E2 17 00 [16:03:08]MH_I2C_Read... [16:03:08]Read from MH i2c: E2 17 00 53 A2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 BE [16:03:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:03:08]wFMCommunicate OK [16:03:08]requested_item fd.num is exist - process it [16:03:08]SAM_PROTO_GetFieldsCounters [16:03:08]wFMCommunicate request_size=4 [16:03:08]MH_SAM_APDU [16:03:08]CAPDU: 80 13 00 00 [16:03:08]Write to MH i2c: E2 08 00 54 A2 80 13 00 00 00 00 00 00 72 [16:03:08]Write i2c OK [16:03:08]MH_I2C_Read... [16:03:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:03:08]Read from MH i2c: E2 [16:03:08]MH_I2C_Read... [16:03:08]Read from MH i2c: E2 62 00 [16:03:08]MH_I2C_Read... [16:03:08]Read from MH i2c: E2 62 00 54 A2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 4A 72 00 00 0E 04 04 00 74 00 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 D8 [16:03:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 4A 72 00 00 0E 04 04 00 74 00 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 [16:03:08]wFMCommunicate OK [16:03:08]SAM_PROTO_GetFieldsCounters done [16:03:08]requested_item shift.num is exist - process it [16:03:08]requested_item shift.opened is exist - process it [16:03:08]req_shift_opened [16:03:08]FM_GetShiftState [16:03:08]SAM_PROTO_GetShiftState [16:03:08]wFMCommunicate request_size=4 [16:03:08]MH_SAM_APDU [16:03:08]CAPDU: 80 13 01 00 [16:03:08]Write to MH i2c: E2 08 00 55 A2 80 13 01 00 00 00 00 00 74 [16:03:08]Write i2c OK [16:03:08]MH_I2C_Read... [16:03:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:03:08]Read from MH i2c: E2 [16:03:08]MH_I2C_Read... [16:03:08]Read from MH i2c: E2 0E 00 [16:03:08]MH_I2C_Read... [16:03:08]Read from MH i2c: E2 0E 00 55 A2 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 20 [16:03:08]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [16:03:08]wFMCommunicate OK [16:03:08]SAM_PROTO_GetShiftState done [16:03:08]FM_GetShiftState done [16:03:08]req_shift_opened done [16:03:08]requested_item shift.open_date is exist - process it [16:03:08]req_shift_open_date [16:03:08]req_shift_open_date done [16:03:08]produce_requested_data done [16:03:08]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29258,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [16:03:08]process_action_free close_receipt [16:03:08]json_value_free [16:03:08]json_value_free done [16:03:08]process_json_proto returns [16:03:08]Send response to host [16:03:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29258,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [16:03:08]free response buf [16:03:08]execute_script done [16:03:08]execute_script returns [16:03:08]free content buf [16:03:08]Sock 7.Close socket [16:03:08]Sock 7.Thread stoped [16:03:12]OFD Sender: No OFD packet to send [16:03:17]OFD Sender: No OFD packet to send [16:03:22]OFD Sender: No OFD packet to send [16:03:27]OFD Sender: No OFD packet to send [16:03:32]OFD Sender: No OFD packet to send [16:03:37]OFD Sender: No OFD packet to send [16:03:42]OFD Sender: No OFD packet to send [16:03:47]OFD Sender: No OFD packet to send [16:03:52]OFD Sender: No OFD packet to send [16:03:57]OFD Sender: No OFD packet to send [16:04:02]OFD Sender: No OFD packet to send [16:04:07]OFD Sender: No OFD packet to send [16:04:12]OFD Sender: No OFD packet to send [16:04:17]OFD Sender: No OFD packet to send [16:04:22]OFD Sender: No OFD packet to send [16:04:27]OFD Sender: No OFD packet to send [16:04:32]OFD Sender: No OFD packet to send [16:04:37]OFD Sender: No OFD packet to send [16:04:42]OFD Sender: No OFD packet to send [16:04:47]OFD Sender: No OFD packet to send [16:04:52]OFD Sender: No OFD packet to send [16:04:57]OFD Sender: No OFD packet to send [16:05:02]OFD Sender: No OFD packet to send [16:05:07]OFD Sender: No OFD packet to send [16:05:12]OFD Sender: No OFD packet to send [16:05:17]OFD Sender: No OFD packet to send [16:05:22]OFD Sender: No OFD packet to send [16:05:27]OFD Sender: No OFD packet to send [16:05:32]OFD Sender: No OFD packet to send [16:05:37]OFD Sender: No OFD packet to send [16:05:42]OFD Sender: No OFD packet to send [16:05:47]OFD Sender: No OFD packet to send [16:05:52]OFD Sender: No OFD packet to send [16:05:57]OFD Sender: No OFD packet to send [16:06:02]OFD Sender: No OFD packet to send [16:06:07]OFD Sender: No OFD packet to send [16:06:12]OFD Sender: No OFD packet to send [16:06:17]OFD Sender: No OFD packet to send [16:06:22]OFD Sender: No OFD packet to send [16:06:27]OFD Sender: No OFD packet to send [16:06:32]OFD Sender: No OFD packet to send [16:06:37]OFD Sender: No OFD packet to send [16:06:42]OFD Sender: No OFD packet to send [16:06:47]OFD Sender: No OFD packet to send [16:06:52]OFD Sender: No OFD packet to send [16:06:57]OFD Sender: No OFD packet to send [16:07:02]OFD Sender: No OFD packet to send [16:07:07]OFD Sender: No OFD packet to send [16:07:08]accept exits with 9 [16:07:08]New connection [16:07:08]New thread 3066928484 created [16:07:08]Thread 3066785124 joined [16:07:08]Waiting for new connection... [16:07:08] Sock 9.Parse request [16:07:08]Sock 9.Check first char [16:07:08]Sock 9.First char is OK [16:07:08]request: POST /json_proto HTTP/1.0 [16:07:08]Method: POST [16:07:08]URL: /json_proto [16:07:08]Method is POST - this is cgi request [16:07:08]url: /json_proto [16:07:08]query_string will be loaded in cgi processing [16:07:08]execute_cgi json_proto POST (null) [16:07:08]execute_cgi path=json_proto method=POST [16:07:08]POST find Content-Length [16:07:08]Host: 172.17.33.3:8080 [16:07:08]Content-Length: 677 [16:07:08]Content-Type: application/json [16:07:08] [16:07:08]POST finish read [16:07:08]Found Content-Length = 677 [16:07:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347645", "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:08]execute_script... [16:07: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)347645", "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:08]POST & json_proto [16:07:08]process_json_proto [16:07:08]json parsed OK: [16:07:08]protocol is kg_v1.0 [16:07:08]action value=close_receipt [16:07:08]process_action close_receipt [16:07:08]cmd_close_receipt [16:07:08]MH_GetDate [16:07:08]Write to MH i2c: F0 00 00 56 A2 E7 [16:07:08]Write i2c OK [16:07:08]MH_I2C_Read... [16:07:08]Read from MH i2c: F0 [16:07:08]MH_I2C_Read... [16:07:08]Read from MH i2c: F0 09 00 [16:07:08]MH_I2C_Read... [16:07:08]Read from MH i2c: F0 09 00 56 A2 00 37 FF 1B 66 23 5B 8F 65 19 [16:07:08]GetLastDocTimeStamp 1713110595 [16:07:08]current date 1713110839 [16:07:08]FM_GetShiftState [16:07:08]SAM_PROTO_GetShiftState [16:07:08]wFMCommunicate request_size=4 [16:07:08]MH_SAM_APDU [16:07:08]CAPDU: 80 13 01 00 [16:07:08]Write to MH i2c: E2 08 00 57 A2 80 13 01 00 00 00 00 00 76 [16:07:08]Write i2c OK [16:07:08]MH_I2C_Read... [16:07:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:07:08]Read from MH i2c: E2 [16:07:08]MH_I2C_Read... [16:07:08]Read from MH i2c: E2 0E 00 [16:07:08]MH_I2C_Read... [16:07:08]Read from MH i2c: E2 0E 00 57 A2 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 22 [16:07:08]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [16:07:08]wFMCommunicate OK [16:07:08]SAM_PROTO_GetShiftState done [16:07:08]FM_GetShiftState done [16:07:08]opened in 1713053951 [16:07:08]opened+sec_in_day 1713140351 [16:07:08]quantity*price = 50025 [16:07:08]sum+1 = 50026 [16:07:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 169 14.04.2024 16:07 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29259 ФПД: 281346886734114 1/tax-web-control/client/api/v1/ticket?date=20240414T160719&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29259&fm=281346886734114&tin=02508201610067®Number=0000138879044617&sum=50000 [16:07:09]StoreToDocumentArchive [16:07:09]shift 116 fd 29259 [16:07:09]save to /storage/0116/doc_00029259 [16:07:09]save last doc name /storage/0116/doc_00029259 to /storage/kkm_last_doc_name [16:07:09]save OK [16:07:09]Clear old archive folders... [16:07:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:07:09]tlvbuf is 011B7400 [16:07:09]SAM_PROTO_ClearQueue [16:07:09]wFMCommunicate request_size=4 [16:07:09]MH_SAM_APDU [16:07:09]CAPDU: 80 09 00 00 [16:07:09]Write to MH i2c: E2 08 00 64 A2 80 09 00 00 00 00 00 00 78 [16:07:09]Write i2c OK [16:07:09]MH_I2C_Read... [16:07:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:07:09]Read from MH i2c: E2 [16:07:09]MH_I2C_Read... [16:07:09]Read from MH i2c: E2 03 00 [16:07:09]MH_I2C_Read... [16:07:09]Read from MH i2c: E2 03 00 64 A2 00 90 00 7A [16:07:09]RAPDU: 90 00 [16:07:09]wFMCommunicate OK [16:07:09]SAM_PROTO_ClearQueue done [16:07:09]KKMCreateOFDPacket [16:07:09]OFDProtocolAddRootSTLVToBuf [16:07:09]FM_MakeSignedData [16:07:09]FM_MakeSignedData [16:07:09]SAM_PROTO_SignData [16:07:09]wFMCommunicate request_size=4 [16:07:09]MH_SAM_APDU [16:07:09]CAPDU: 80 0D 01 02 [16:07:09]Write to MH i2c: E2 08 00 65 A2 80 0D 01 02 00 00 00 00 80 [16:07:09]Write i2c OK [16:07:09]MH_I2C_Read... [16:07:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:07:09]Read from MH i2c: E2 [16:07:09]MH_I2C_Read... [16:07:09]Read from MH i2c: E2 03 00 [16:07:09]MH_I2C_Read... [16:07:09]Read from MH i2c: E2 03 00 65 A2 00 90 00 7B [16:07:09]RAPDU: 90 00 [16:07:09]wFMCommunicate OK [16:07:09]wFMCommunicate request_size=255 [16:07:09]MH_SAM_APDU [16:07: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 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 A9 00 00 00 F4 03 04 00 37 FF 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4B 72 00 00 35 04 06 00 FF [16:07:09]Write to MH i2c: E2 02 01 66 A2 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 A9 00 00 00 F4 03 04 00 37 FF 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4B 72 00 00 35 04 06 00 FF 00 00 D2 [16:07:09]Write i2c OK [16:07:09]MH_I2C_Read... [16:07:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:07:10]Read from MH i2c: E2 [16:07:10]MH_I2C_Read... [16:07:10]Read from MH i2c: E2 03 00 [16:07:10]MH_I2C_Read... [16:07:10]Read from MH i2c: E2 03 00 66 A2 00 90 00 7C [16:07:10]RAPDU: 90 00 [16:07:10]wFMCommunicate OK [16:07:10]wFMCommunicate request_size=10 [16:07:10]MH_SAM_APDU [16:07:10]CAPDU: 80 0D 02 02 05 E2 2D 3E 11 22 [16:07:10]Write to MH i2c: E2 0D 00 67 A2 80 0D 02 02 05 00 E2 2D 3E 11 22 00 00 0D [16:07:10]Write i2c OK [16:07:10]MH_I2C_Read... [16:07:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:07:10]Read from MH i2c: E2 [16:07:10]MH_I2C_Read... [16:07:10]Read from MH i2c: E2 03 00 [16:07:10]MH_I2C_Read... [16:07:10]Read from MH i2c: E2 03 00 67 A2 00 90 00 7D [16:07:10]RAPDU: 90 00 [16:07:10]wFMCommunicate OK [16:07:10]wFMCommunicate request_size=4 [16:07:10]MH_SAM_APDU [16:07:10]CAPDU: 80 0D 03 02 [16:07:10]Write to MH i2c: E2 08 00 68 A2 80 0D 03 02 00 00 00 00 85 [16:07:10]Write i2c OK [16:07:10]MH_I2C_Read... [16:07:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:07:10]Read from MH i2c: E2 [16:07:10]MH_I2C_Read... [16:07:10]Read from MH i2c: E2 0B 00 [16:07:10]MH_I2C_Read... [16:07:10]Read from MH i2c: E2 0B 00 68 A2 00 FF 85 AD 01 FB FF 40 97 90 00 89 [16:07:10]RAPDU: FF 85 AD 01 FB FF 40 97 90 00 [16:07:10]wFMCommunicate OK [16:07:10]SAM_PROTO_SignData done [16:07:10]FM_MakeSignedData done [16:07:10]CreateOFDProtocolMessage [16:07:10]wFMCommunicate request_size=4 [16:07:10]MH_SAM_APDU [16:07:10]CAPDU: 80 11 00 00 [16:07:10]Write to MH i2c: E2 08 00 69 A2 80 11 00 00 00 00 00 00 85 [16:07:10]Write i2c OK [16:07:10]MH_I2C_Read... [16:07:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:07:10]Read from MH i2c: E2 [16:07:10]MH_I2C_Read... [16:07:10]Read from MH i2c: E2 17 00 [16:07:10]MH_I2C_Read... [16:07:10]Read from MH i2c: E2 17 00 69 A2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D4 [16:07:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:07:10]wFMCommunicate OK [16:07:10]CreateOFDProtocolMessage done [16:07:10]OFDSenderStorePacket 29259 [16:07:10]StoreOFDPacket docnum=29259 [16:07:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 79 61 07 01 9E 5F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 A9 00 00 00 F4 03 04 00 37 FF 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4B 72 00 00 35 04 06 00 FF E2 2D 3E 11 22 FF 85 AD 01 FB FF 40 97 [16:07:10]CheckFolder [16:07:10]dirname=/storage/ofd_packets [16:07:10]CheckFolder done [16:07:10]ProducePacketName [16:07:10]name=ofd_packets/00029259 [16:07:10]NVStorageSaveData ofd_packets/00029259 [16:07:10]File name is /storage/ofd_packets/00029259 [16:07:10]Write 301 bytes [16:07:10]NVStorageSaveData done [16:07:10]OFDSenderStorePacket done [16:07:10]KKMCreateOFDPacket done [16:07:10]NVStorageSaveData kkm_last_timestamp [16:07:10]File name is /storage/kkm_last_timestamp [16:07:10]Write 4 bytes [16:07:10]NVStorageSaveData done [16:07:10]ExternCall_PrintAddStr [16:07:10]wPrintStart [16:07:10]Write to MH i2c: 01 00 00 6A A2 0C [16:07:10]Write i2c OK [16:07:10]MH_I2C_Read... [16:07:10]Read from MH i2c: 01 [16:07:10]MH_I2C_Read... [16:07:10]Read from MH i2c: 01 07 00 [16:07:10]MH_I2C_Read... [16:07:10]Read from MH i2c: 01 07 00 6A A2 00 00 00 00 00 FF 0F 21 [16:07:10]RasterBufferAndPrint [16:07:10]line Счет N : (1)347645 [16:07:10]line ИНН: 02508201610067 [16:07:10]line Контрольно-Кассовый Чек [16:07:10]line ПРОДАЖА [16:07:10]line ТРК (МРК, ГНК) : 42 [16:07:10]line Товар: 2710124130 [16:07:10]line Аи-92-К-5 [16:07:10]line 7.780 * 64.30 [16:07:10]line = 500.25 [16:07:10]line НДС 12% НСП 1% [16:07:10]line > о реализуемом товаре [16:07:10]line ОКРУГЛЕНИЕ: -0.25 [16:07:10]line ИТОГО: 500.00 [16:07:10]line Внесено: 500.00 [16:07:10]line СДАЧА: 0.00 [16:07:10]line НСП 1% : 4.43 [16:07:10]line НДС 12% : 53.12 [16:07:10]line Наличными: 500.00 [16:07:10]line Безнал.: 0.00 [16:07:10]line Место: АЗС № 108 "Партнер Нефть" [16:07:10]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [16:07:10]line СНО: Общий режим [16:07:10]line Чек 169 14.04.2024 16:07 [16:07:10]line Смена: 116 ФФД: 1.0 [16:07:10]line ЗНМ: 0300000027 [16:07:10]line РНМ: 0000138879044617 [16:07:10]line Версия ККМ: 001 [16:07:10]line ФМ: 0000000000963154 [16:07:10]line ФД: 29259 [16:07:10]line ФПД: 281346886734114 [16:07:10]line 1/tax-web-control/client/api/v1/ticket?date=20240414T160719&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29259&fm=281346886734114&tin=02508201610067®Number=0000138879044617&sum=50000 [16:07:10]OFD Sender: Processing packet 29259 [packets to send 8, broken 7] [16:07:10]ProducePacketName [16:07:10]name=ofd_packets/00029259 [16:07:10]OFD Sender: To server: pG, [16:07:10]CommunicateWithHost lk.salyk.kg:30040 [16:07:10]ConnectInit lk.salyk.kg [16:07:10]written 0, free lines is 4095 [16:07:10]Connected sock=7 [16:07:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 79 61 07 01 9E 5F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 A9 00 00 00 F4 03 04 00 37 FF 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4B 72 00 00 35 04 06 00 FF E2 2D 3E 11 22 FF 85 AD 01 FB FF 40 97 [16:07:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 1C E6 47 00 2C 98 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4B 72 00 00 F4 03 04 00 DB A9 1B 66 B6 04 01 00 00 DD 2C 75 6D CD 68 DE 91 [16:07:10]CommunicateWithHost err = 0 [16:07:10]CheckOFDResponse [16:07:10]1017 (14) - 77093643461234 [16:07:10]1041 (16) - 0000000000963154 [16:07:10]1040 (4) - 29259 [16:07:10]1012 (4) - 14.04.2024 10:03 [16:07:10]1206 (1) - 0 [16:07:10]OFD Sender: Remove packet 29259 [16:07:10]ProducePacketName [16:07:10]name=ofd_packets/00029259 [16:07:10]NVStorageDeleteData [16:07:11]Write to MH i2c: 01 00 00 94 A2 36 [16:07:11]Write i2c OK [16:07:11]MH_I2C_Read... [16:07:11]Read from MH i2c: 01 [16:07:11]MH_I2C_Read... [16:07:11]Read from MH i2c: 01 07 00 [16:07:11]MH_I2C_Read... [16:07:11]Read from MH i2c: 01 07 00 94 A2 00 00 00 00 00 CC 0C 15 [16:07:11]RasterBufferAndPrint [16:07:11]line [16:07:11]line [16:07:11]line [16:07:11]line [16:07:11]line [16:07:11]written 0, free lines is 3283 [16:07:11]MH_Cut [16:07:11]Write to MH i2c: D1 01 00 9B A2 01 0F [16:07:11]Write i2c OK [16:07:11]MH_I2C_Read... [16:07:11]Read from MH i2c: D1 [16:07:11]MH_I2C_Read... [16:07:11]Read from MH i2c: D1 01 00 [16:07:11]MH_I2C_Read... [16:07:11]Read from MH i2c: D1 01 00 9B A2 00 0E [16:07:11]Write to MH i2c: 01 00 00 9C A2 3E [16:07:11]Write i2c OK [16:07:11]MH_I2C_Read... [16:07:11]OFD Sender: No OFD packet to send [16:07:11]*** Cut start [16:07:11]*** Partial cut [16:07:11]*** CUTSNS_PIN = 1 [16:07:11]*** CUTSNS_PIN = 0 [16:07:12]*** Brake cut motor [16:07:12]Read from MH i2c: 01 [16:07:12]MH_I2C_Read... [16:07:12]*** Stop cut motor [16:07:12]*** Cut end [16:07:12]Read from MH i2c: 01 07 00 [16:07:12]MH_I2C_Read... [16:07:12]Read from MH i2c: 01 07 00 9C A2 00 00 00 00 00 FF 0F 53 [16:07:12]process_action close_receipt done [16:07:12]requested_data is exist [16:07:12]produce_requested_data [16:07:12]requested_item fm.sn is exist - process it [16:07:12]wFMCommunicate request_size=4 [16:07:12]MH_SAM_APDU [16:07:12]CAPDU: 80 11 00 00 [16:07:12]Write to MH i2c: E2 08 00 9D A2 80 11 00 00 00 00 00 00 B9 [16:07:12]Write i2c OK [16:07:12]MH_I2C_Read... [16:07:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:07:12]Read from MH i2c: E2 [16:07:12]MH_I2C_Read... [16:07:12]Read from MH i2c: E2 17 00 [16:07:12]MH_I2C_Read... [16:07:12]Read from MH i2c: E2 17 00 9D A2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 08 [16:07:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:07:12]wFMCommunicate OK [16:07:12]requested_item fd.num is exist - process it [16:07:12]SAM_PROTO_GetFieldsCounters [16:07:12]wFMCommunicate request_size=4 [16:07:12]MH_SAM_APDU [16:07:12]CAPDU: 80 13 00 00 [16:07:12]Write to MH i2c: E2 08 00 9E A2 80 13 00 00 00 00 00 00 BC [16:07:12]Write i2c OK [16:07:12]MH_I2C_Read... [16:07:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:07:12]Read from MH i2c: E2 [16:07:12]MH_I2C_Read... [16:07:12]Read from MH i2c: E2 62 00 [16:07:12]MH_I2C_Read... [16:07:12]Read from MH i2c: E2 62 00 9E A2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 4B 72 00 00 0E 04 04 00 74 00 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 26 [16:07:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 4B 72 00 00 0E 04 04 00 74 00 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 [16:07:12]wFMCommunicate OK [16:07:12]SAM_PROTO_GetFieldsCounters done [16:07:12]requested_item shift.num is exist - process it [16:07:12]requested_item shift.opened is exist - process it [16:07:12]req_shift_opened [16:07:12]FM_GetShiftState [16:07:12]SAM_PROTO_GetShiftState [16:07:12]wFMCommunicate request_size=4 [16:07:12]MH_SAM_APDU [16:07:12]CAPDU: 80 13 01 00 [16:07:12]Write to MH i2c: E2 08 00 9F A2 80 13 01 00 00 00 00 00 BE [16:07:12]Write i2c OK [16:07:12]MH_I2C_Read... [16:07:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:07:12]Read from MH i2c: E2 [16:07:12]MH_I2C_Read... [16:07:12]Read from MH i2c: E2 0E 00 [16:07:12]MH_I2C_Read... [16:07:12]Read from MH i2c: E2 0E 00 9F A2 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 6A [16:07:12]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [16:07:12]wFMCommunicate OK [16:07:12]SAM_PROTO_GetShiftState done [16:07:12]FM_GetShiftState done [16:07:12]req_shift_opened done [16:07:12]requested_item shift.open_date is exist - process it [16:07:12]req_shift_open_date [16:07:12]req_shift_open_date done [16:07:12]produce_requested_data done [16:07:12]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29259,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [16:07:12]process_action_free close_receipt [16:07:12]json_value_free [16:07:12]json_value_free done [16:07:12]process_json_proto returns [16:07:12]Send response to host [16:07:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29259,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [16:07:12]free response buf [16:07:12]execute_script done [16:07:12]execute_script returns [16:07:12]free content buf [16:07:12]Sock 9.Close socket [16:07:12]Sock 9.Thread stoped [16:07:16]OFD Sender: No OFD packet to send [16:07:21]OFD Sender: No OFD packet to send [16:07:26]OFD Sender: No OFD packet to send [16:07:31]OFD Sender: No OFD packet to send [16:07:36]OFD Sender: No OFD packet to send [16:07:41]OFD Sender: No OFD packet to send [16:07:46]OFD Sender: No OFD packet to send [16:07:48]accept exits with 10 [16:07:48]New connection [16:07:48]New thread 3066785124 created [16:07:48]Thread 3066928484 joined [16:07:48]Waiting for new connection... [16:07:48] Sock 10.Parse request [16:07:48]Sock 10.Check first char [16:07:48]Sock 10.First char is OK [16:07:48]request: POST /json_proto HTTP/1.0 [16:07:48]Method: POST [16:07:48]URL: /json_proto [16:07:48]Method is POST - this is cgi request [16:07:48]url: /json_proto [16:07:48]query_string will be loaded in cgi processing [16:07:48]execute_cgi json_proto POST (null) [16:07:48]execute_cgi path=json_proto method=POST [16:07:48]POST find Content-Length [16:07:48]Host: 172.17.33.3:8080 [16:07:48]Content-Length: 1191 [16:07:48]Content-Type: application/json [16:07:48] [16:07:48]POST finish read [16:07:48]Found Content-Length = 1191 [16:07:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043B\u0438\u043A\u0431\u0430\u0435\u0432\u0430. \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)347644\u000A14.04.2024 15:49\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 23\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 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: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3871127\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:07:48]execute_script... [16:07:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043B\u0438\u043A\u0431\u0430\u0435\u0432\u0430. \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)347644\u000A14.04.2024 15:49\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 23\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 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: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3871127\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:07:48]POST & json_proto [16:07:48]process_json_proto [16:07:48]json parsed OK: [16:07:48]protocol is kg_v1.0 [16:07:48]action value=print_text [16:07:48]process_action print_text [16:07:48]cmd_print_text [16:07:48]ExternCall_PrintAddStr [16:07:48]wPrintStart [16:07:48]Write to MH i2c: 01 00 00 A0 A2 42 [16:07:48]Write i2c OK [16:07:48]MH_I2C_Read... [16:07:48]Read from MH i2c: 01 [16:07:48]MH_I2C_Read... [16:07:48]Read from MH i2c: 01 07 00 [16:07:48]MH_I2C_Read... [16:07:48]Read from MH i2c: 01 07 00 A0 A2 00 00 00 00 00 FF 0F 57 [16:07:48]RasterBufferAndPrint [16:07:48]line *****ТОВАРНЫЙ ЧЕК***** [16:07:48]line АЗС 108 [16:07:48]line Партнер нефть [16:07:48]line 02508201610067 [16:07:48]line Кассир : Аликбаева. Д. [16:07:48]line Счет N : (1)347644 [16:07:48]line 14.04.2024 15:49 [16:07:48]line ПРОДАЖА [16:07:48]line ТРК (МРК, ГНК): 23 [16:07:48]line Вид ГСМ : 2710124130 [16:07:48]line Аи-92-К-5 [16:07:48]line 10.000 x 64.30 [16:07:48]line ИТОГ: 643.00 [16:07:48]line Тип оплаты: Талоны: Партнер нефть [16:07:48]line 3871127 [16:07:48]line ______________________ [16:07:48]line (подпись) [16:07:48]written 0, free lines is 4095 [16:07:48]Write to MH i2c: 01 00 00 B4 A2 56 [16:07:48]Write i2c OK [16:07:48]MH_I2C_Read... [16:07:48]Read from MH i2c: 01 [16:07:48]MH_I2C_Read... [16:07:48]Read from MH i2c: 01 07 00 [16:07:48]MH_I2C_Read... [16:07:48]Read from MH i2c: 01 07 00 B4 A2 00 00 00 00 00 11 0E 7C [16:07:48]RasterBufferAndPrint [16:07:48]line [16:07:48]line [16:07:48]line [16:07:48]line [16:07:48]line [16:07:48]written 0, free lines is 3603 [16:07:48]MH_Cut [16:07:48]Write to MH i2c: D1 01 00 BB A2 01 2F [16:07:48]Write i2c OK [16:07:48]MH_I2C_Read... [16:07:48]Read from MH i2c: D1 [16:07:48]MH_I2C_Read... [16:07:48]Read from MH i2c: D1 01 00 [16:07:48]MH_I2C_Read... [16:07:48]Read from MH i2c: D1 01 00 BB A2 00 2E [16:07:48]Write to MH i2c: 01 00 00 BC A2 5E [16:07:48]Write i2c OK [16:07:48]MH_I2C_Read... [16:07:49]*** Cut start [16:07:49]*** Partial cut [16:07:49]*** CUTSNS_PIN = 1 [16:07:49]*** CUTSNS_PIN = 0 [16:07:49]*** Brake cut motor [16:07:50]Read from MH i2c: 01 [16:07:50]MH_I2C_Read... [16:07:50]*** Stop cut motor [16:07:50]*** Cut end [16:07:50]Read from MH i2c: 01 07 00 [16:07:50]MH_I2C_Read... [16:07:50]Read from MH i2c: 01 07 00 BC A2 00 00 00 00 00 FF 0F 73 [16:07:50]process_action print_text done [16:07:50]requested_data is exist [16:07:50]produce_requested_data [16:07:50]requested_item fm.sn is exist - process it [16:07:50]wFMCommunicate request_size=4 [16:07:50]MH_SAM_APDU [16:07:50]CAPDU: 80 11 00 00 [16:07:50]Write to MH i2c: E2 08 00 BD A2 80 11 00 00 00 00 00 00 D9 [16:07:50]Write i2c OK [16:07:50]MH_I2C_Read... [16:07:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:07:50]Read from MH i2c: E2 [16:07:50]MH_I2C_Read... [16:07:50]Read from MH i2c: E2 17 00 [16:07:50]MH_I2C_Read... [16:07:50]Read from MH i2c: E2 17 00 BD A2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 28 [16:07:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:07:50]wFMCommunicate OK [16:07:50]requested_item fd.num is exist - process it [16:07:50]SAM_PROTO_GetFieldsCounters [16:07:50]wFMCommunicate request_size=4 [16:07:50]MH_SAM_APDU [16:07:50]CAPDU: 80 13 00 00 [16:07:50]Write to MH i2c: E2 08 00 BE A2 80 13 00 00 00 00 00 00 DC [16:07:50]Write i2c OK [16:07:50]MH_I2C_Read... [16:07:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:07:50]Read from MH i2c: E2 [16:07:50]MH_I2C_Read... [16:07:50]Read from MH i2c: E2 62 00 [16:07:50]MH_I2C_Read... [16:07:50]Read from MH i2c: E2 62 00 BE A2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 4B 72 00 00 0E 04 04 00 74 00 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 46 [16:07:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 4B 72 00 00 0E 04 04 00 74 00 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 [16:07:50]wFMCommunicate OK [16:07:50]SAM_PROTO_GetFieldsCounters done [16:07:50]requested_item shift.num is exist - process it [16:07:50]requested_item shift.opened is exist - process it [16:07:50]req_shift_opened [16:07:50]FM_GetShiftState [16:07:50]SAM_PROTO_GetShiftState [16:07:50]wFMCommunicate request_size=4 [16:07:50]MH_SAM_APDU [16:07:50]CAPDU: 80 13 01 00 [16:07:50]Write to MH i2c: E2 08 00 BF A2 80 13 01 00 00 00 00 00 DE [16:07:50]Write i2c OK [16:07:50]MH_I2C_Read... [16:07:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:07:50]Read from MH i2c: E2 [16:07:50]MH_I2C_Read... [16:07:50]Read from MH i2c: E2 0E 00 [16:07:50]MH_I2C_Read... [16:07:50]Read from MH i2c: E2 0E 00 BF A2 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 8A [16:07:50]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [16:07:50]wFMCommunicate OK [16:07:50]SAM_PROTO_GetShiftState done [16:07:50]FM_GetShiftState done [16:07:50]req_shift_opened done [16:07:50]requested_item shift.open_date is exist - process it [16:07:50]req_shift_open_date [16:07:50]req_shift_open_date done [16:07:50]produce_requested_data done [16:07:50]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29259,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [16:07:50]process_action_free print_text [16:07:50]json_value_free [16:07:50]json_value_free done [16:07:50]process_json_proto returns [16:07:50]Send response to host [16:07:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29259,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [16:07:50]free response buf [16:07:50]execute_script done [16:07:50]execute_script returns [16:07:50]free content buf [16:07:50]Sock 10.Close socket [16:07:50]Sock 10.Thread stoped [16:07:51]OFD Sender: No OFD packet to send [16:07:56]OFD Sender: No OFD packet to send [16:08:01]OFD Sender: No OFD packet to send [16:08:06]OFD Sender: No OFD packet to send [16:08:11]OFD Sender: No OFD packet to send [16:08:16]OFD Sender: No OFD packet to send [16:08:21]OFD Sender: No OFD packet to send [16:08:26]OFD Sender: No OFD packet to send [16:08:31]OFD Sender: No OFD packet to send [16:08:36]OFD Sender: No OFD packet to send [16:08:41]OFD Sender: No OFD packet to send [16:08:46]OFD Sender: No OFD packet to send [16:08:51]OFD Sender: No OFD packet to send [16:08:56]OFD Sender: No OFD packet to send [16:09:01]OFD Sender: No OFD packet to send [16:09:06]OFD Sender: No OFD packet to send [16:09:11]OFD Sender: No OFD packet to send [16:09:16]OFD Sender: No OFD packet to send [16:09:21]OFD Sender: No OFD packet to send [16:09:26]OFD Sender: No OFD packet to send [16:09:31]OFD Sender: No OFD packet to send [16:09:36]OFD Sender: No OFD packet to send [16:09:41]OFD Sender: No OFD packet to send [16:09:46]OFD Sender: No OFD packet to send [16:09:51]OFD Sender: No OFD packet to send [16:09:56]OFD Sender: No OFD packet to send [16:10:01]OFD Sender: No OFD packet to send [16:10:06]OFD Sender: No OFD packet to send [16:10:08]accept exits with 7 [16:10:08]New connection [16:10:08]New thread 3066928484 created [16:10:08]Thread 3066785124 joined [16:10:08]Waiting for new connection... [16:10:08] Sock 7.Parse request [16:10:08]Sock 7.Check first char [16:10:08]Sock 7.First char is OK [16:10:08]request: POST /json_proto HTTP/1.0 [16:10:08]Method: POST [16:10:08]URL: /json_proto [16:10:08]Method is POST - this is cgi request [16:10:08]url: /json_proto [16:10:08]query_string will be loaded in cgi processing [16:10:08]execute_cgi json_proto POST (null) [16:10:08]execute_cgi path=json_proto method=POST [16:10:08]POST find Content-Length [16:10:08]Host: 172.17.33.3:8080 [16:10:08]Content-Length: 678 [16:10:08]Content-Type: application/json [16:10:08] [16:10:08]POST finish read [16:10:08]Found Content-Length = 678 [16:10:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347647", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.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" ] } } [16:10:08]execute_script... [16:10: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)347647", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.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" ] } } [16:10:08]POST & json_proto [16:10:08]process_json_proto [16:10:08]json parsed OK: [16:10:08]protocol is kg_v1.0 [16:10:08]action value=close_receipt [16:10:08]process_action close_receipt [16:10:08]cmd_close_receipt [16:10:08]MH_GetDate [16:10:08]Write to MH i2c: F0 00 00 C0 A2 51 [16:10:08]Write i2c OK [16:10:08]MH_I2C_Read... [16:10:08]Read from MH i2c: F0 [16:10:08]MH_I2C_Read... [16:10:08]Read from MH i2c: F0 09 00 [16:10:08]MH_I2C_Read... [16:10:08]Read from MH i2c: F0 09 00 C0 A2 00 EB FF 1B 66 23 5B 8F 65 37 [16:10:08]GetLastDocTimeStamp 1713110839 [16:10:08]current date 1713111019 [16:10:08]FM_GetShiftState [16:10:08]SAM_PROTO_GetShiftState [16:10:08]wFMCommunicate request_size=4 [16:10:08]MH_SAM_APDU [16:10:08]CAPDU: 80 13 01 00 [16:10:08]Write to MH i2c: E2 08 00 C1 A2 80 13 01 00 00 00 00 00 E0 [16:10:08]Write i2c OK [16:10:08]MH_I2C_Read... [16:10:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:10:08]Read from MH i2c: E2 [16:10:08]MH_I2C_Read... [16:10:08]Read from MH i2c: E2 0E 00 [16:10:08]MH_I2C_Read... [16:10:08]Read from MH i2c: E2 0E 00 C1 A2 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 8C [16:10:08]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [16:10:08]wFMCommunicate OK [16:10:08]SAM_PROTO_GetShiftState done [16:10:08]FM_GetShiftState done [16:10:08]opened in 1713053951 [16:10:08]opened+sec_in_day 1713140351 [16:10:08]quantity*price = 70022 [16:10:08]sum+1 = 70024 [16:10:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.36 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 170 14.04.2024 16:10 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29260 ФПД: 251282924953959 1/tax-web-control/client/api/v1/ticket?date=20240414T161019&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29260&fm=251282924953959&tin=02508201610067®Number=0000138879044617&sum=70000 [16:10:09]StoreToDocumentArchive [16:10:09]shift 116 fd 29260 [16:10:09]save to /storage/0116/doc_00029260 [16:10:09]save last doc name /storage/0116/doc_00029260 to /storage/kkm_last_doc_name [16:10:09]save OK [16:10:09]Clear old archive folders... [16:10:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:10:09]tlvbuf is 0121A5D0 [16:10:09]SAM_PROTO_ClearQueue [16:10:09]wFMCommunicate request_size=4 [16:10:09]MH_SAM_APDU [16:10:09]CAPDU: 80 09 00 00 [16:10:09]Write to MH i2c: E2 08 00 CE A2 80 09 00 00 00 00 00 00 E2 [16:10:09]Write i2c OK [16:10:09]MH_I2C_Read... [16:10:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:10:10]Read from MH i2c: E2 [16:10:10]MH_I2C_Read... [16:10:10]Read from MH i2c: E2 03 00 [16:10:10]MH_I2C_Read... [16:10:10]Read from MH i2c: E2 03 00 CE A2 00 90 00 E4 [16:10:10]RAPDU: 90 00 [16:10:10]wFMCommunicate OK [16:10:10]SAM_PROTO_ClearQueue done [16:10:10]KKMCreateOFDPacket [16:10:10]OFDProtocolAddRootSTLVToBuf [16:10:10]FM_MakeSignedData [16:10:10]FM_MakeSignedData [16:10:10]SAM_PROTO_SignData [16:10:10]wFMCommunicate request_size=4 [16:10:10]MH_SAM_APDU [16:10:10]CAPDU: 80 0D 01 02 [16:10:10]Write to MH i2c: E2 08 00 CF A2 80 0D 01 02 00 00 00 00 EA [16:10:10]Write i2c OK [16:10:10]MH_I2C_Read... [16:10:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:10:10]Read from MH i2c: E2 [16:10:10]MH_I2C_Read... [16:10:10]Read from MH i2c: E2 03 00 [16:10:10]MH_I2C_Read... [16:10:10]Read from MH i2c: E2 03 00 CF A2 00 90 00 E5 [16:10:10]RAPDU: 90 00 [16:10:10]wFMCommunicate OK [16:10:10]wFMCommunicate request_size=255 [16:10:10]MH_SAM_APDU [16:10: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 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 AA 00 00 00 F4 03 04 00 EB FF 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4C 72 00 00 35 04 06 00 E4 [16:10:10]Write to MH i2c: E2 02 01 D0 A2 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 AA 00 00 00 F4 03 04 00 EB FF 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4C 72 00 00 35 04 06 00 E4 00 00 5B [16:10:10]Write i2c OK [16:10:10]MH_I2C_Read... [16:10:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:10:10]Read from MH i2c: E2 [16:10:10]MH_I2C_Read... [16:10:10]Read from MH i2c: E2 03 00 [16:10:10]MH_I2C_Read... [16:10:10]Read from MH i2c: E2 03 00 D0 A2 00 90 00 E6 [16:10:10]RAPDU: 90 00 [16:10:10]wFMCommunicate OK [16:10:10]wFMCommunicate request_size=10 [16:10:10]MH_SAM_APDU [16:10:10]CAPDU: 80 0D 02 02 05 8A 5D 7A E1 67 [16:10:10]Write to MH i2c: E2 0D 00 D1 A2 80 0D 02 02 05 00 8A 5D 7A E1 67 00 00 A0 [16:10:10]Write i2c OK [16:10:10]MH_I2C_Read... [16:10:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:10:10]Read from MH i2c: E2 [16:10:10]MH_I2C_Read... [16:10:10]Read from MH i2c: E2 03 00 [16:10:10]MH_I2C_Read... [16:10:10]Read from MH i2c: E2 03 00 D1 A2 00 90 00 E7 [16:10:10]RAPDU: 90 00 [16:10:10]wFMCommunicate OK [16:10:10]wFMCommunicate request_size=4 [16:10:10]MH_SAM_APDU [16:10:10]CAPDU: 80 0D 03 02 [16:10:10]Write to MH i2c: E2 08 00 D2 A2 80 0D 03 02 00 00 00 00 EF [16:10:10]Write i2c OK [16:10:10]MH_I2C_Read... [16:10:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:10:10]Read from MH i2c: E2 [16:10:10]MH_I2C_Read... [16:10:10]Read from MH i2c: E2 0B 00 [16:10:10]MH_I2C_Read... [16:10:10]Read from MH i2c: E2 0B 00 D2 A2 00 01 EB 54 60 11 5F 24 29 90 00 4D [16:10:10]RAPDU: 01 EB 54 60 11 5F 24 29 90 00 [16:10:10]wFMCommunicate OK [16:10:10]SAM_PROTO_SignData done [16:10:10]FM_MakeSignedData done [16:10:10]CreateOFDProtocolMessage [16:10:10]wFMCommunicate request_size=4 [16:10:10]MH_SAM_APDU [16:10:10]CAPDU: 80 11 00 00 [16:10:10]Write to MH i2c: E2 08 00 D3 A2 80 11 00 00 00 00 00 00 EF [16:10:10]Write i2c OK [16:10:10]MH_I2C_Read... [16:10:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:10:10]Read from MH i2c: E2 [16:10:10]MH_I2C_Read... [16:10:10]Read from MH i2c: E2 17 00 [16:10:10]MH_I2C_Read... [16:10:10]Read from MH i2c: E2 17 00 D3 A2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 3E [16:10:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:10:10]wFMCommunicate OK [16:10:10]CreateOFDProtocolMessage done [16:10:10]OFDSenderStorePacket 29260 [16:10:10]StoreOFDPacket docnum=29260 [16:10:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 3D 32 07 01 D9 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 AA 00 00 00 F4 03 04 00 EB FF 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4C 72 00 00 35 04 06 00 E4 8A 5D 7A E1 67 01 EB 54 60 11 5F 24 29 [16:10:10]CheckFolder [16:10:10]dirname=/storage/ofd_packets [16:10:10]CheckFolder done [16:10:10]ProducePacketName [16:10:10]name=ofd_packets/00029260 [16:10:10]NVStorageSaveData ofd_packets/00029260 [16:10:10]File name is /storage/ofd_packets/00029260 [16:10:10]Write 301 bytes [16:10:10]NVStorageSaveData done [16:10:10]OFDSenderStorePacket done [16:10:10]KKMCreateOFDPacket done [16:10:10]NVStorageSaveData kkm_last_timestamp [16:10:10]File name is /storage/kkm_last_timestamp [16:10:10]Write 4 bytes [16:10:10]NVStorageSaveData done [16:10:10]ExternCall_PrintAddStr [16:10:10]wPrintStart [16:10:10]Write to MH i2c: 01 00 00 D4 A2 76 [16:10:10]Write i2c OK [16:10:10]MH_I2C_Read... [16:10:10]Read from MH i2c: 01 [16:10:10]MH_I2C_Read... [16:10:10]Read from MH i2c: 01 07 00 [16:10:10]MH_I2C_Read... [16:10:10]Read from MH i2c: 01 07 00 D4 A2 00 00 00 00 00 FF 0F 8B [16:10:10]RasterBufferAndPrint [16:10:10]line Счет N : (1)347647 [16:10:10]line ИНН: 02508201610067 [16:10:10]line Контрольно-Кассовый Чек [16:10:10]line ПРОДАЖА [16:10:10]line ТРК (МРК, ГНК) : 13 [16:10:10]line Товар: 2710124130 [16:10:10]line Аи-92-К-5 [16:10:10]line 10.890 * 64.30 [16:10:10]line = 700.23 [16:10:10]line НДС 12% НСП 1% [16:10:10]line > о реализуемом товаре [16:10:10]line ОКРУГЛЕНИЕ: -0.23 [16:10:10]line ИТОГО: 700.00 [16:10:10]line Внесено: 700.00 [16:10:10]line СДАЧА: 0.00 [16:10:10]line НСП 1% : 6.20 [16:10:10]line НДС 12% : 74.36 [16:10:10]line Наличными: 700.00 [16:10:10]line Безнал.: 0.00 [16:10:10]line Место: АЗС № 108 "Партнер Нефть" [16:10:10]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [16:10:10]line СНО: Общий режим [16:10:10]line Чек 170 14.04.2024 16:10 [16:10:10]line Смена: 116 ФФД: 1.0 [16:10:10]line ЗНМ: 0300000027 [16:10:10]line РНМ: 0000138879044617 [16:10:10]line Версия ККМ: 001 [16:10:10]line ФМ: 0000000000963154 [16:10:10]line ФД: 29260 [16:10:10]line ФПД: 251282924953959 [16:10:10]line 1/tax-web-control/client/api/v1/ticket?date=20240414T161019&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29260&fm=251282924953959&tin=02508201610067®Number=0000138879044617&sum=70000 [16:10:10]OFD Sender: Processing packet 29260 [packets to send 8, broken 7] [16:10:10]ProducePacketName [16:10:10]name=ofd_packets/00029260 [16:10:10]OFD Sender: To server: pG, [16:10:10]CommunicateWithHost lk.salyk.kg:30040 [16:10:10]ConnectInit lk.salyk.kg [16:10:10]written 0, free lines is 4095 [16:10:10]Connected sock=10 [16:10:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 3D 32 07 01 D9 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 AA 00 00 00 F4 03 04 00 EB FF 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4C 72 00 00 35 04 06 00 E4 8A 5D 7A E1 67 01 EB 54 60 11 5F 24 29 [16:10:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 AD 16 47 00 E4 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 39 36 33 31 35 34 10 04 04 00 4C 72 00 00 F4 03 04 00 8F AA 1B 66 B6 04 01 00 00 20 B5 96 41 AE 1B 37 01 [16:10:11]CommunicateWithHost err = 0 [16:10:11]CheckOFDResponse [16:10:11]1017 (14) - 77093643461234 [16:10:11]1041 (16) - 0000000000963154 [16:10:11]1040 (4) - 29260 [16:10:11]1012 (4) - 14.04.2024 10:06 [16:10:11]1206 (1) - 0 [16:10:11]OFD Sender: Remove packet 29260 [16:10:11]ProducePacketName [16:10:11]name=ofd_packets/00029260 [16:10:11]NVStorageDeleteData [16:10:11]Write to MH i2c: 01 00 00 FE A2 A0 [16:10:11]Write i2c OK [16:10:11]MH_I2C_Read... [16:10:11]Read from MH i2c: 01 [16:10:11]MH_I2C_Read... [16:10:11]Read from MH i2c: 01 07 00 [16:10:11]MH_I2C_Read... [16:10:11]Read from MH i2c: 01 07 00 FE A2 00 00 00 00 00 C2 0C 75 [16:10:11]RasterBufferAndPrint [16:10:11]line [16:10:11]line [16:10:11]line [16:10:11]line [16:10:11]line [16:10:11]written 0, free lines is 3272 [16:10:11]MH_Cut [16:10:11]Write to MH i2c: D1 01 00 05 A3 01 7A [16:10:11]Write i2c OK [16:10:11]MH_I2C_Read... [16:10:11]Read from MH i2c: D1 [16:10:11]MH_I2C_Read... [16:10:11]Read from MH i2c: D1 01 00 [16:10:11]MH_I2C_Read... [16:10:11]Read from MH i2c: D1 01 00 05 A3 00 79 [16:10:11]Write to MH i2c: 01 00 00 06 A3 A9 [16:10:11]Write i2c OK [16:10:11]MH_I2C_Read... [16:10:11]OFD Sender: No OFD packet to send [16:10:12]*** Cut start [16:10:12]*** Partial cut [16:10:12]*** CUTSNS_PIN = 1 [16:10:12]*** CUTSNS_PIN = 0 [16:10:12]*** Brake cut motor [16:10:12]Read from MH i2c: 01 [16:10:12]MH_I2C_Read... [16:10:12]*** Stop cut motor [16:10:12]*** Cut end [16:10:12]Read from MH i2c: 01 07 00 [16:10:12]MH_I2C_Read... [16:10:12]Read from MH i2c: 01 07 00 06 A3 00 00 00 00 00 FF 0F BE [16:10:12]process_action close_receipt done [16:10:12]requested_data is exist [16:10:12]produce_requested_data [16:10:12]requested_item fm.sn is exist - process it [16:10:12]wFMCommunicate request_size=4 [16:10:12]MH_SAM_APDU [16:10:12]CAPDU: 80 11 00 00 [16:10:12]Write to MH i2c: E2 08 00 07 A3 80 11 00 00 00 00 00 00 24 [16:10:12]Write i2c OK [16:10:12]MH_I2C_Read... [16:10:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:10:12]Read from MH i2c: E2 [16:10:12]MH_I2C_Read... [16:10:12]Read from MH i2c: E2 17 00 [16:10:12]MH_I2C_Read... [16:10:12]Read from MH i2c: E2 17 00 07 A3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 73 [16:10:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:10:12]wFMCommunicate OK [16:10:12]requested_item fd.num is exist - process it [16:10:12]SAM_PROTO_GetFieldsCounters [16:10:12]wFMCommunicate request_size=4 [16:10:12]MH_SAM_APDU [16:10:12]CAPDU: 80 13 00 00 [16:10:12]Write to MH i2c: E2 08 00 08 A3 80 13 00 00 00 00 00 00 27 [16:10:12]Write i2c OK [16:10:12]MH_I2C_Read... [16:10:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:10:12]Read from MH i2c: E2 [16:10:12]MH_I2C_Read... [16:10:12]Read from MH i2c: E2 62 00 [16:10:12]MH_I2C_Read... [16:10:12]Read from MH i2c: E2 62 00 08 A3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 4C 72 00 00 0E 04 04 00 74 00 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 95 [16:10:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 4C 72 00 00 0E 04 04 00 74 00 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 [16:10:12]wFMCommunicate OK [16:10:12]SAM_PROTO_GetFieldsCounters done [16:10:12]requested_item shift.num is exist - process it [16:10:12]requested_item shift.opened is exist - process it [16:10:12]req_shift_opened [16:10:12]FM_GetShiftState [16:10:12]SAM_PROTO_GetShiftState [16:10:12]wFMCommunicate request_size=4 [16:10:12]MH_SAM_APDU [16:10:12]CAPDU: 80 13 01 00 [16:10:12]Write to MH i2c: E2 08 00 09 A3 80 13 01 00 00 00 00 00 29 [16:10:12]Write i2c OK [16:10:12]MH_I2C_Read... [16:10:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:10:12]Read from MH i2c: E2 [16:10:12]MH_I2C_Read... [16:10:12]Read from MH i2c: E2 0E 00 [16:10:12]MH_I2C_Read... [16:10:12]Read from MH i2c: E2 0E 00 09 A3 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 D5 [16:10:12]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [16:10:12]wFMCommunicate OK [16:10:12]SAM_PROTO_GetShiftState done [16:10:12]FM_GetShiftState done [16:10:12]req_shift_opened done [16:10:12]requested_item shift.open_date is exist - process it [16:10:12]req_shift_open_date [16:10:12]req_shift_open_date done [16:10:12]produce_requested_data done [16:10:12]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29260,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [16:10:12]process_action_free close_receipt [16:10:12]json_value_free [16:10:12]json_value_free done [16:10:12]process_json_proto returns [16:10:12]Send response to host [16:10:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29260,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [16:10:12]free response buf [16:10:12]execute_script done [16:10:12]execute_script returns [16:10:12]free content buf [16:10:12]Sock 7.Close socket [16:10:12]Sock 7.Thread stoped [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:27]accept exits with 9 [16:10:27]New connection [16:10:27]New thread 3066785124 created [16:10:27]Thread 3066928484 joined [16:10:27]Waiting for new connection... [16:10:27] Sock 9.Parse request [16:10:27]Sock 9.Check first char [16:10:27]Sock 9.First char is OK [16:10:27]request: POST /json_proto HTTP/1.0 [16:10:27]Method: POST [16:10:27]URL: /json_proto [16:10:27]Method is POST - this is cgi request [16:10:27]url: /json_proto [16:10:27]query_string will be loaded in cgi processing [16:10:27]execute_cgi json_proto POST (null) [16:10:27]execute_cgi path=json_proto method=POST [16:10:27]POST find Content-Length [16:10:27]Host: 172.17.33.3:8080 [16:10:27]Content-Length: 685 [16:10:27]Content-Type: application/json [16:10:27] [16:10:27]POST finish read [16:10:27]Found Content-Length = 685 [16:10:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347643", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 45.600, "sum" : 1500.24, "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" ] } } [16:10:27]execute_script... [16:10: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)347643", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 45.600, "sum" : 1500.24, "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" ] } } [16:10:27]POST & json_proto [16:10:27]process_json_proto [16:10:27]json parsed OK: [16:10:27]protocol is kg_v1.0 [16:10:27]action value=close_receipt [16:10:27]process_action close_receipt [16:10:27]cmd_close_receipt [16:10:27]MH_GetDate [16:10:27]Write to MH i2c: F0 00 00 0A A3 9C [16:10:27]Write i2c OK [16:10:27]MH_I2C_Read... [16:10:27]Read from MH i2c: F0 [16:10:27]MH_I2C_Read... [16:10:27]Read from MH i2c: F0 09 00 [16:10:27]MH_I2C_Read... [16:10:27]Read from MH i2c: F0 09 00 0A A3 00 FD FF 1B 66 23 5B 8F 65 94 [16:10:27]GetLastDocTimeStamp 1713111019 [16:10:27]current date 1713111037 [16:10:27]FM_GetShiftState [16:10:27]SAM_PROTO_GetShiftState [16:10:27]wFMCommunicate request_size=4 [16:10:27]MH_SAM_APDU [16:10:27]CAPDU: 80 13 01 00 [16:10:27]Write to MH i2c: E2 08 00 0B A3 80 13 01 00 00 00 00 00 2B [16:10:27]Write i2c OK [16:10:27]MH_I2C_Read... [16:10:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:10:27]Read from MH i2c: E2 [16:10:27]MH_I2C_Read... [16:10:27]Read from MH i2c: E2 0E 00 [16:10:27]MH_I2C_Read... [16:10:27]Read from MH i2c: E2 0E 00 0B A3 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 D7 [16:10:27]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [16:10:27]wFMCommunicate OK [16:10:27]SAM_PROTO_GetShiftState done [16:10:27]FM_GetShiftState done [16:10:27]opened in 1713053951 [16:10:27]opened+sec_in_day 1713140351 [16:10:27]quantity*price = 150024 [16:10:27]sum+1 = 150025 [16:10:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.32 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 171 14.04.2024 16:10 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29261 ФПД: 85605384083001 1/tax-web-control/client/api/v1/ticket?date=20240414T161037&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29261&fm=85605384083001&tin=02508201610067®Number=0000138879044617&sum=150000 [16:10:28]StoreToDocumentArchive [16:10:28]shift 116 fd 29261 [16:10:28]save to /storage/0116/doc_00029261 [16:10:28]save last doc name /storage/0116/doc_00029261 to /storage/kkm_last_doc_name [16:10:28]save OK [16:10:28]Clear old archive folders... [16:10:28]ProcessDocumentItem done err = 0, tmpTLVsize=250 [16:10:28]tlvbuf is 0124A6E0 [16:10:28]SAM_PROTO_ClearQueue [16:10:28]wFMCommunicate request_size=4 [16:10:28]MH_SAM_APDU [16:10:28]CAPDU: 80 09 00 00 [16:10:28]Write to MH i2c: E2 08 00 18 A3 80 09 00 00 00 00 00 00 2D [16:10:28]Write i2c OK [16:10:28]MH_I2C_Read... [16:10:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:10:28]Read from MH i2c: E2 [16:10:28]MH_I2C_Read... [16:10:28]Read from MH i2c: E2 03 00 [16:10:28]MH_I2C_Read... [16:10:28]Read from MH i2c: E2 03 00 18 A3 00 90 00 2F [16:10:28]RAPDU: 90 00 [16:10:28]wFMCommunicate OK [16:10:28]SAM_PROTO_ClearQueue done [16:10:28]KKMCreateOFDPacket [16:10:28]OFDProtocolAddRootSTLVToBuf [16:10:28]FM_MakeSignedData [16:10:28]FM_MakeSignedData [16:10:28]SAM_PROTO_SignData [16:10:28]wFMCommunicate request_size=4 [16:10:28]MH_SAM_APDU [16:10:28]CAPDU: 80 0D 01 02 [16:10:28]Write to MH i2c: E2 08 00 19 A3 80 0D 01 02 00 00 00 00 35 [16:10:28]Write i2c OK [16:10:28]MH_I2C_Read... [16:10:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:10:28]Read from MH i2c: E2 [16:10:28]MH_I2C_Read... [16:10:28]Read from MH i2c: E2 03 00 [16:10:28]MH_I2C_Read... [16:10:28]Read from MH i2c: E2 03 00 19 A3 00 90 00 30 [16:10:28]RAPDU: 90 00 [16:10:28]wFMCommunicate OK [16:10:28]wFMCommunicate request_size=255 [16:10:28]MH_SAM_APDU [16:10: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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 20 B2 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 08 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 AB 00 00 00 F4 03 04 00 FD FF 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4D 72 00 00 35 04 06 00 4D DB [16:10:28]Write to MH i2c: E2 02 01 1A A3 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 20 B2 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 08 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 AB 00 00 00 F4 03 04 00 FD FF 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4D 72 00 00 35 04 06 00 4D DB 00 00 C0 [16:10:28]Write i2c OK [16:10:28]MH_I2C_Read... [16:10:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:10:28]Read from MH i2c: E2 [16:10:28]MH_I2C_Read... [16:10:28]Read from MH i2c: E2 03 00 [16:10:28]MH_I2C_Read... [16:10:28]Read from MH i2c: E2 03 00 1A A3 00 90 00 31 [16:10:28]RAPDU: 90 00 [16:10:28]wFMCommunicate OK [16:10:28]wFMCommunicate request_size=9 [16:10:28]MH_SAM_APDU [16:10:28]CAPDU: 80 0D 02 02 04 8E 82 56 39 [16:10:28]Write to MH i2c: E2 0C 00 1B A3 80 0D 02 02 04 00 8E 82 56 39 00 00 DF [16:10:28]Write i2c OK [16:10:28]MH_I2C_Read... [16:10:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:10:28]Read from MH i2c: E2 [16:10:28]MH_I2C_Read... [16:10:28]Read from MH i2c: E2 03 00 [16:10:28]MH_I2C_Read... [16:10:28]Read from MH i2c: E2 03 00 1B A3 00 90 00 32 [16:10:28]RAPDU: 90 00 [16:10:28]wFMCommunicate OK [16:10:28]wFMCommunicate request_size=4 [16:10:28]MH_SAM_APDU [16:10:28]CAPDU: 80 0D 03 02 [16:10:28]Write to MH i2c: E2 08 00 1C A3 80 0D 03 02 00 00 00 00 3A [16:10:28]Write i2c OK [16:10:28]MH_I2C_Read... [16:10:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:10:28]Read from MH i2c: E2 [16:10:28]MH_I2C_Read... [16:10:28]Read from MH i2c: E2 0B 00 [16:10:28]MH_I2C_Read... [16:10:28]Read from MH i2c: E2 0B 00 1C A3 00 61 E3 EE DD B3 01 9F F5 90 00 92 [16:10:28]RAPDU: 61 E3 EE DD B3 01 9F F5 90 00 [16:10:28]wFMCommunicate OK [16:10:28]SAM_PROTO_SignData done [16:10:28]FM_MakeSignedData done [16:10:28]CreateOFDProtocolMessage [16:10:28]wFMCommunicate request_size=4 [16:10:28]MH_SAM_APDU [16:10:28]CAPDU: 80 11 00 00 [16:10:28]Write to MH i2c: E2 08 00 1D A3 80 11 00 00 00 00 00 00 3A [16:10:28]Write i2c OK [16:10:28]MH_I2C_Read... [16:10:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:10:28]Read from MH i2c: E2 [16:10:28]MH_I2C_Read... [16:10:28]Read from MH i2c: E2 17 00 [16:10:28]MH_I2C_Read... [16:10:28]Read from MH i2c: E2 17 00 1D A3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 89 [16:10:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:10:28]wFMCommunicate OK [16:10:28]CreateOFDProtocolMessage done [16:10:28]OFDSenderStorePacket 29261 [16:10:28]StoreOFDPacket docnum=29261 [16:10:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 60 FD 06 01 DD 83 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 20 B2 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 08 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 AB 00 00 00 F4 03 04 00 FD FF 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4D 72 00 00 35 04 06 00 4D DB 8E 82 56 39 61 E3 EE DD B3 01 9F F5 [16:10:28]CheckFolder [16:10:28]dirname=/storage/ofd_packets [16:10:28]CheckFolder done [16:10:28]ProducePacketName [16:10:28]name=ofd_packets/00029261 [16:10:28]NVStorageSaveData ofd_packets/00029261 [16:10:28]File name is /storage/ofd_packets/00029261 [16:10:28]Write 300 bytes [16:10:28]NVStorageSaveData done [16:10:28]OFDSenderStorePacket done [16:10:28]KKMCreateOFDPacket done [16:10:28]NVStorageSaveData kkm_last_timestamp [16:10:28]File name is /storage/kkm_last_timestamp [16:10:28]Write 4 bytes [16:10:28]NVStorageSaveData done [16:10:28]ExternCall_PrintAddStr [16:10:28]wPrintStart [16:10:28]Write to MH i2c: 01 00 00 1E A3 C1 [16:10:28]Write i2c OK [16:10:28]MH_I2C_Read... [16:10:28]Read from MH i2c: 01 [16:10:28]MH_I2C_Read... [16:10:28]Read from MH i2c: 01 07 00 [16:10:28]MH_I2C_Read... [16:10:28]Read from MH i2c: 01 07 00 1E A3 00 00 00 00 00 FF 0F D6 [16:10:28]RasterBufferAndPrint [16:10:28]line Счет N : (1)347643 [16:10:28]line ИНН: 02508201610067 [16:10:28]line Контрольно-Кассовый Чек [16:10:28]line ПРОДАЖА [16:10:28]line ТРК (МРК, ГНК) : 71 [16:10:28]line Товар: 2711129700 [16:10:28]line ГАЗ-К-5 [16:10:28]line 45.600 * 32.90 [16:10:28]line = 1500.24 [16:10:28]line НДС 12% НСП 1% [16:10:28]line > о реализуемом товаре [16:10:28]line ОКРУГЛЕНИЕ: -0.24 [16:10:28]line ИТОГО: 1500.00 [16:10:28]line Внесено: 1500.00 [16:10:28]line СДАЧА: 0.00 [16:10:28]line НСП 1% : 13.28 [16:10:28]line НДС 12% : 159.32 [16:10:28]line Наличными: 1500.00 [16:10:28]line Безнал.: 0.00 [16:10:28]line Место: АЗС № 108 "Партнер Нефть" [16:10:28]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [16:10:28]line СНО: Общий режим [16:10:28]line Чек 171 14.04.2024 16:10 [16:10:28]line Смена: 116 ФФД: 1.0 [16:10:28]line ЗНМ: 0300000027 [16:10:28]line РНМ: 0000138879044617 [16:10:28]line Версия ККМ: 001 [16:10:28]line ФМ: 0000000000963154 [16:10:28]line ФД: 29261 [16:10:29]line ФПД: 85605384083001 [16:10:29]line 1/tax-web-control/client/api/v1/ticket?date=20240414T161037&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29261&fm=85605384083001&tin=02508201610067®Number=0000138879044617&sum=150000 [16:10:29]OFD Sender: Processing packet 29261 [packets to send 8, broken 7] [16:10:29]ProducePacketName [16:10:29]name=ofd_packets/00029261 [16:10:29]OFD Sender: To server: pG, [16:10:29]CommunicateWithHost lk.salyk.kg:30040 [16:10:29]ConnectInit lk.salyk.kg [16:10:29]written 0, free lines is 4095 [16:10:29]Connected sock=10 [16:10:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 60 FD 06 01 DD 83 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 20 B2 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 08 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 AB 00 00 00 F4 03 04 00 FD FF 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4D 72 00 00 35 04 06 00 4D DB 8E 82 56 39 61 E3 EE DD B3 01 9F F5 [16:10:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 EB AF 47 00 96 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4D 72 00 00 F4 03 04 00 A1 AA 1B 66 B6 04 01 00 00 18 7C EE AB AD C6 38 94 [16:10:29]CommunicateWithHost err = 0 [16:10:29]CheckOFDResponse [16:10:29]1017 (14) - 77093643461234 [16:10:29]1041 (16) - 0000000000963154 [16:10:29]1040 (4) - 29261 [16:10:29]1012 (4) - 14.04.2024 10:06 [16:10:29]1206 (1) - 0 [16:10:29]OFD Sender: Remove packet 29261 [16:10:29]ProducePacketName [16:10:29]name=ofd_packets/00029261 [16:10:29]NVStorageDeleteData [16:10:29]Write to MH i2c: 01 00 00 48 A3 EB [16:10:29]Write i2c OK [16:10:29]MH_I2C_Read... [16:10:29]Read from MH i2c: 01 [16:10:29]MH_I2C_Read... [16:10:29]Read from MH i2c: 01 07 00 [16:10:29]MH_I2C_Read... [16:10:29]Read from MH i2c: 01 07 00 48 A3 00 00 00 00 00 C1 0C BF [16:10:29]RasterBufferAndPrint [16:10:29]line [16:10:29]line [16:10:29]line [16:10:29]line [16:10:29]line [16:10:29]written 0, free lines is 3270 [16:10:29]MH_Cut [16:10:29]Write to MH i2c: D1 01 00 4F A3 01 C4 [16:10:29]Write i2c OK [16:10:29]MH_I2C_Read... [16:10:29]Read from MH i2c: D1 [16:10:29]MH_I2C_Read... [16:10:29]Read from MH i2c: D1 01 00 [16:10:29]MH_I2C_Read... [16:10:29]Read from MH i2c: D1 01 00 4F A3 00 C3 [16:10:29]Write to MH i2c: 01 00 00 50 A3 F3 [16:10:29]Write i2c OK [16:10:29]MH_I2C_Read... [16:10:29]OFD Sender: No OFD packet to send [16:10:30]*** Cut start [16:10:30]*** Partial cut [16:10:30]*** CUTSNS_PIN = 1 [16:10:30]*** CUTSNS_PIN = 0 [16:10:30]*** Brake cut motor [16:10:30]Read from MH i2c: 01 [16:10:30]MH_I2C_Read... [16:10:30]*** Stop cut motor [16:10:30]*** Cut end [16:10:30]Read from MH i2c: 01 07 00 [16:10:30]MH_I2C_Read... [16:10:30]Read from MH i2c: 01 07 00 50 A3 00 00 00 00 00 FF 0F 08 [16:10:30]process_action close_receipt done [16:10:30]requested_data is exist [16:10:30]produce_requested_data [16:10:30]requested_item fm.sn is exist - process it [16:10:30]wFMCommunicate request_size=4 [16:10:30]MH_SAM_APDU [16:10:30]CAPDU: 80 11 00 00 [16:10:30]Write to MH i2c: E2 08 00 51 A3 80 11 00 00 00 00 00 00 6E [16:10:30]Write i2c OK [16:10:30]MH_I2C_Read... [16:10:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:10:30]Read from MH i2c: E2 [16:10:30]MH_I2C_Read... [16:10:30]Read from MH i2c: E2 17 00 [16:10:30]MH_I2C_Read... [16:10:30]Read from MH i2c: E2 17 00 51 A3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 BD [16:10:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:10:30]wFMCommunicate OK [16:10:30]requested_item fd.num is exist - process it [16:10:30]SAM_PROTO_GetFieldsCounters [16:10:30]wFMCommunicate request_size=4 [16:10:30]MH_SAM_APDU [16:10:30]CAPDU: 80 13 00 00 [16:10:30]Write to MH i2c: E2 08 00 52 A3 80 13 00 00 00 00 00 00 71 [16:10:30]Write i2c OK [16:10:30]MH_I2C_Read... [16:10:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:10:31]Read from MH i2c: E2 [16:10:31]MH_I2C_Read... [16:10:31]Read from MH i2c: E2 62 00 [16:10:31]MH_I2C_Read... [16:10:31]Read from MH i2c: E2 62 00 52 A3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 4D 72 00 00 0E 04 04 00 74 00 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 E3 [16:10:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 4D 72 00 00 0E 04 04 00 74 00 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 [16:10:31]wFMCommunicate OK [16:10:31]SAM_PROTO_GetFieldsCounters done [16:10:31]requested_item shift.num is exist - process it [16:10:31]requested_item shift.opened is exist - process it [16:10:31]req_shift_opened [16:10:31]FM_GetShiftState [16:10:31]SAM_PROTO_GetShiftState [16:10:31]wFMCommunicate request_size=4 [16:10:31]MH_SAM_APDU [16:10:31]CAPDU: 80 13 01 00 [16:10:31]Write to MH i2c: E2 08 00 53 A3 80 13 01 00 00 00 00 00 73 [16:10:31]Write i2c OK [16:10:31]MH_I2C_Read... [16:10:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:10:31]Read from MH i2c: E2 [16:10:31]MH_I2C_Read... [16:10:31]Read from MH i2c: E2 0E 00 [16:10:31]MH_I2C_Read... [16:10:31]Read from MH i2c: E2 0E 00 53 A3 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 1F [16:10:31]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [16:10:31]wFMCommunicate OK [16:10:31]SAM_PROTO_GetShiftState done [16:10:31]FM_GetShiftState done [16:10:31]req_shift_opened done [16:10:31]requested_item shift.open_date is exist - process it [16:10:31]req_shift_open_date [16:10:31]req_shift_open_date done [16:10:31]produce_requested_data done [16:10:31]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29261,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [16:10:31]process_action_free close_receipt [16:10:31]json_value_free [16:10:31]json_value_free done [16:10:31]process_json_proto returns [16:10:31]Send response to host [16:10:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29261,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [16:10:31]free response buf [16:10:31]execute_script done [16:10:31]execute_script returns [16:10:31]free content buf [16:10:31]Sock 9.Close socket [16:10:31]Sock 9.Thread stoped [16:10:34]OFD Sender: No OFD packet to send [16:10:39]OFD Sender: No OFD packet to send [16:10:44]OFD Sender: No OFD packet to send [16:10:49]OFD Sender: No OFD packet to send [16:10:54]OFD Sender: No OFD packet to send [16:10:59]OFD Sender: No OFD packet to send [16:11:04]OFD Sender: No OFD packet to send [16:11:09]OFD Sender: No OFD packet to send [16:11:14]OFD Sender: No OFD packet to send [16:11:19]OFD Sender: No OFD packet to send [16:11:24]OFD Sender: No OFD packet to send [16:11:27]accept exits with 7 [16:11:27]New connection [16:11:27]New thread 3066928484 created [16:11:27]Thread 3066785124 joined [16:11:27]Waiting for new connection... [16:11:27] Sock 7.Parse request [16:11:27]Sock 7.Check first char [16:11:27]Sock 7.First char is OK [16:11:27]request: POST /json_proto HTTP/1.0 [16:11:27]Method: POST [16:11:27]URL: /json_proto [16:11:27]Method is POST - this is cgi request [16:11:27]url: /json_proto [16:11:27]query_string will be loaded in cgi processing [16:11:27]execute_cgi json_proto POST (null) [16:11:27]execute_cgi path=json_proto method=POST [16:11:27]POST find Content-Length [16:11:27]Host: 172.17.33.3:8080 [16:11:27]Content-Length: 840 [16:11:27]Content-Type: application/json [16:11:27] [16:11:27]POST finish read [16:11:27]Found Content-Length = 840 [16:11:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347648", "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" : 55.250, "sum" : 4000.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 4000.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:11:27]execute_script... [16:11: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)347648", "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" : 55.250, "sum" : 4000.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 4000.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:11:27]POST & json_proto [16:11:27]process_json_proto [16:11:27]json parsed OK: [16:11:27]protocol is kg_v1.0 [16:11:27]action value=close_receipt [16:11:27]process_action close_receipt [16:11:27]cmd_close_receipt [16:11:27]MH_GetDate [16:11:27]Write to MH i2c: F0 00 00 54 A3 E6 [16:11:27]Write i2c OK [16:11:27]MH_I2C_Read... [16:11:27]Read from MH i2c: F0 [16:11:27]MH_I2C_Read... [16:11:27]Read from MH i2c: F0 09 00 [16:11:27]MH_I2C_Read... [16:11:27]Read from MH i2c: F0 09 00 54 A3 00 3A 00 1C 66 23 5B 8F 65 1D [16:11:27]GetLastDocTimeStamp 1713111037 [16:11:27]current date 1713111098 [16:11:27]FM_GetShiftState [16:11:27]SAM_PROTO_GetShiftState [16:11:27]wFMCommunicate request_size=4 [16:11:27]MH_SAM_APDU [16:11:27]CAPDU: 80 13 01 00 [16:11:27]Write to MH i2c: E2 08 00 55 A3 80 13 01 00 00 00 00 00 75 [16:11:27]Write i2c OK [16:11:27]MH_I2C_Read... [16:11:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:11:28]Read from MH i2c: E2 [16:11:28]MH_I2C_Read... [16:11:28]Read from MH i2c: E2 0E 00 [16:11:28]MH_I2C_Read... [16:11:28]Read from MH i2c: E2 0E 00 55 A3 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 21 [16:11:28]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [16:11:28]wFMCommunicate OK [16:11:28]SAM_PROTO_GetShiftState done [16:11:28]FM_GetShiftState done [16:11:28]opened in 1713053951 [16:11:28]opened+sec_in_day 1713140351 [16:11:28]quantity*price = 400010 [16:11:28]sum+1 = 400011 [16:11:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4000.10 НСП 1% : 35.40 НДС 12% : 424.79 Наличными: 0.00 Безнал.: 4000.10 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 172 14.04.2024 16:11 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 29262 ФПД: 41789687374162 1/tax-web-control/client/api/v1/ticket?date=20240414T161138&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29262&fm=41789687374162&tin=02508201610067®Number=0000138879044617&sum=400010 [16:11:29]StoreToDocumentArchive [16:11:29]shift 116 fd 29262 [16:11:29]save to /storage/0116/doc_00029262 [16:11:29]save last doc name /storage/0116/doc_00029262 to /storage/kkm_last_doc_name [16:11:29]save OK [16:11:29]Clear old archive folders... [16:11:29]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:11:29]tlvbuf is 01224A80 [16:11:29]SAM_PROTO_ClearQueue [16:11:29]wFMCommunicate request_size=4 [16:11:29]MH_SAM_APDU [16:11:29]CAPDU: 80 09 00 00 [16:11:29]Write to MH i2c: E2 08 00 62 A3 80 09 00 00 00 00 00 00 77 [16:11:29]Write i2c OK [16:11:29]MH_I2C_Read... [16:11:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:11:29]Read from MH i2c: E2 [16:11:29]MH_I2C_Read... [16:11:29]Read from MH i2c: E2 03 00 [16:11:29]MH_I2C_Read... [16:11:29]Read from MH i2c: E2 03 00 62 A3 00 90 00 79 [16:11:29]RAPDU: 90 00 [16:11:29]wFMCommunicate OK [16:11:29]SAM_PROTO_ClearQueue done [16:11:29]KKMCreateOFDPacket [16:11:29]OFDProtocolAddRootSTLVToBuf [16:11:29]FM_MakeSignedData [16:11:29]FM_MakeSignedData [16:11:29]SAM_PROTO_SignData [16:11:29]wFMCommunicate request_size=4 [16:11:29]MH_SAM_APDU [16:11:29]CAPDU: 80 0D 01 02 [16:11:29]Write to MH i2c: E2 08 00 63 A3 80 0D 01 02 00 00 00 00 7F [16:11:29]Write i2c OK [16:11:29]MH_I2C_Read... [16:11:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:11:29]Read from MH i2c: E2 [16:11:29]MH_I2C_Read... [16:11:29]Read from MH i2c: E2 03 00 [16:11:29]MH_I2C_Read... [16:11:29]Read from MH i2c: E2 03 00 63 A3 00 90 00 7A [16:11:29]RAPDU: 90 00 [16:11:29]wFMCommunicate OK [16:11:29]wFMCommunicate request_size=255 [16:11:29]MH_SAM_APDU [16:11:29]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 D2 D7 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 8A 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8A 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8A 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 3A 00 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4E 72 00 00 35 04 06 00 26 01 EB 78 [16:11:29]Write to MH i2c: E2 02 01 64 A3 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 D2 D7 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 8A 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8A 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8A 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 3A 00 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4E 72 00 00 35 04 06 00 26 01 EB 78 00 00 9F [16:11:29]Write i2c OK [16:11:29]MH_I2C_Read... [16:11:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:11:29]Read from MH i2c: E2 [16:11:29]MH_I2C_Read... [16:11:29]Read from MH i2c: E2 03 00 [16:11:29]MH_I2C_Read... [16:11:29]Read from MH i2c: E2 03 00 64 A3 00 90 00 7B [16:11:29]RAPDU: 90 00 [16:11:29]wFMCommunicate OK [16:11:29]wFMCommunicate request_size=7 [16:11:29]MH_SAM_APDU [16:11:29]CAPDU: 80 0D 02 02 02 A1 52 [16:11:29]Write to MH i2c: E2 0A 00 65 A3 80 0D 02 02 02 00 A1 52 00 00 79 [16:11:29]Write i2c OK [16:11:29]MH_I2C_Read... [16:11:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:11:29]Read from MH i2c: E2 [16:11:29]MH_I2C_Read... [16:11:29]Read from MH i2c: E2 03 00 [16:11:29]MH_I2C_Read... [16:11:29]Read from MH i2c: E2 03 00 65 A3 00 90 00 7C [16:11:29]RAPDU: 90 00 [16:11:29]wFMCommunicate OK [16:11:29]wFMCommunicate request_size=4 [16:11:29]MH_SAM_APDU [16:11:29]CAPDU: 80 0D 03 02 [16:11:29]Write to MH i2c: E2 08 00 66 A3 80 0D 03 02 00 00 00 00 84 [16:11:29]Write i2c OK [16:11:29]MH_I2C_Read... [16:11:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:11:29]Read from MH i2c: E2 [16:11:29]MH_I2C_Read... [16:11:29]Read from MH i2c: E2 0B 00 [16:11:29]MH_I2C_Read... [16:11:29]Read from MH i2c: E2 0B 00 66 A3 00 CE 4C B5 CA AE 35 60 05 90 00 66 [16:11:29]RAPDU: CE 4C B5 CA AE 35 60 05 90 00 [16:11:29]wFMCommunicate OK [16:11:29]SAM_PROTO_SignData done [16:11:29]FM_MakeSignedData done [16:11:29]CreateOFDProtocolMessage [16:11:29]wFMCommunicate request_size=4 [16:11:29]MH_SAM_APDU [16:11:29]CAPDU: 80 11 00 00 [16:11:29]Write to MH i2c: E2 08 00 67 A3 80 11 00 00 00 00 00 00 84 [16:11:29]Write i2c OK [16:11:29]MH_I2C_Read... [16:11:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:11:29]Read from MH i2c: E2 [16:11:29]MH_I2C_Read... [16:11:29]Read from MH i2c: E2 17 00 [16:11:29]MH_I2C_Read... [16:11:29]Read from MH i2c: E2 17 00 67 A3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D3 [16:11:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:11:29]wFMCommunicate OK [16:11:29]CreateOFDProtocolMessage done [16:11:29]OFDSenderStorePacket 29262 [16:11:29]StoreOFDPacket docnum=29262 [16:11:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 8D AA 04 01 96 CF 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 D2 D7 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 8A 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8A 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8A 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 3A 00 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4E 72 00 00 35 04 06 00 26 01 EB 78 A1 52 CE 4C B5 CA AE 35 60 05 [16:11:29]CheckFolder [16:11:29]dirname=/storage/ofd_packets [16:11:29]CheckFolder done [16:11:29]ProducePacketName [16:11:29]name=ofd_packets/00029262 [16:11:29]NVStorageSaveData ofd_packets/00029262 [16:11:29]File name is /storage/ofd_packets/00029262 [16:11:29]Write 298 bytes [16:11:29]NVStorageSaveData done [16:11:29]OFDSenderStorePacket done [16:11:29]KKMCreateOFDPacket done [16:11:29]NVStorageSaveData kkm_last_timestamp [16:11:29]File name is /storage/kkm_last_timestamp [16:11:29]Write 4 bytes [16:11:29]NVStorageSaveData done [16:11:29]ExternCall_PrintAddStr [16:11:29]wPrintStart [16:11:29]Write to MH i2c: 01 00 00 68 A3 0B [16:11:29]Write i2c OK [16:11:29]MH_I2C_Read... [16:11:29]Read from MH i2c: 01 [16:11:29]MH_I2C_Read... [16:11:29]Read from MH i2c: 01 07 00 [16:11:29]MH_I2C_Read... [16:11:29]Read from MH i2c: 01 07 00 68 A3 00 00 00 00 00 FF 0F 20 [16:11:29]RasterBufferAndPrint [16:11:29]line Счет N : (1)347648 [16:11:29]line ИНН: 02508201610067 [16:11:29]line Контрольно-Кассовый Чек [16:11:29]line ПРОДАЖА [16:11:29]line ТРК (МРК, ГНК) : 61 [16:11:29]line Товар: 2710194210 [16:11:29]line ДТ-К-5 [16:11:29]line 55.250 * 72.40 [16:11:29]line = 4000.10 [16:11:29]line НДС 12% НСП 1% [16:11:29]line > о реализуемом товаре [16:11:29]line ИТОГО: 4000.10 [16:11:29]line НСП 1% : 35.40 [16:11:29]line НДС 12% : 424.79 [16:11:29]line Наличными: 0.00 [16:11:29]line Безнал.: 4000.10 [16:11:29]line Место: АЗС № 108 "Партнер Нефть" [16:11:29]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [16:11:29]line СНО: Общий режим [16:11:29]line Чек 172 14.04.2024 16:11 [16:11:29]line Смена: 116 ФФД: 1.0 [16:11:29]line ЗНМ: 0300000027 [16:11:29]line РНМ: 0000138879044617 [16:11:29]line Версия ККМ: 001 [16:11:29]line Платежная система: АКБ Кыргызстан [16:11:29]line ФМ: 0000000000963154 [16:11:29]line ФД: 29262 [16:11:29]line ФПД: 41789687374162 [16:11:29]line 1/tax-web-control/client/api/v1/ticket?date=20240414T161138&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29262&fm=41789687374162&tin=02508201610067®Number=0000138879044617&sum=400010 [16:11:29]OFD Sender: Processing packet 29262 [packets to send 8, broken 7] [16:11:29]ProducePacketName [16:11:29]name=ofd_packets/00029262 [16:11:29]OFD Sender: To server: pG, [16:11:29]CommunicateWithHost lk.salyk.kg:30040 [16:11:29]ConnectInit lk.salyk.kg [16:11:29]written 0, free lines is 4095 [16:11:30]Connected sock=10 [16:11:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 8D AA 04 01 96 CF 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 D2 D7 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 8A 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8A 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8A 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 3A 00 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4E 72 00 00 35 04 06 00 26 01 EB 78 A1 52 CE 4C B5 CA AE 35 60 05 [16:11:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 8A 1A 47 00 5E 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 39 36 33 31 35 34 10 04 04 00 4E 72 00 00 F4 03 04 00 DE AA 1B 66 B6 04 01 00 00 04 7E A7 DB D3 20 D5 D9 [16:11:30]CommunicateWithHost err = 0 [16:11:30]CheckOFDResponse [16:11:30]1017 (14) - 77093643461234 [16:11:30]1041 (16) - 0000000000963154 [16:11:30]1040 (4) - 29262 [16:11:30]1012 (4) - 14.04.2024 10:07 [16:11:30]1206 (1) - 0 [16:11:30]OFD Sender: Remove packet 29262 [16:11:30]ProducePacketName [16:11:30]name=ofd_packets/00029262 [16:11:30]NVStorageDeleteData [16:11:30]Write to MH i2c: 01 00 00 91 A3 34 [16:11:30]Write i2c OK [16:11:30]MH_I2C_Read... [16:11:30]Read from MH i2c: 01 [16:11:30]MH_I2C_Read... [16:11:30]Read from MH i2c: 01 07 00 [16:11:30]MH_I2C_Read... [16:11:30]Read from MH i2c: 01 07 00 91 A3 00 00 00 00 00 E2 0C 29 [16:11:30]RasterBufferAndPrint [16:11:30]line [16:11:30]line [16:11:30]line [16:11:30]line [16:11:30]line [16:11:30]written 0, free lines is 3304 [16:11:30]MH_Cut [16:11:30]Write to MH i2c: D1 01 00 98 A3 01 0D [16:11:30]Write i2c OK [16:11:30]MH_I2C_Read... [16:11:30]Read from MH i2c: D1 [16:11:30]MH_I2C_Read... [16:11:30]Read from MH i2c: D1 01 00 [16:11:30]MH_I2C_Read... [16:11:30]Read from MH i2c: D1 01 00 98 A3 00 0C [16:11:30]Write to MH i2c: 01 00 00 99 A3 3C [16:11:30]Write i2c OK [16:11:30]MH_I2C_Read... [16:11:30]OFD Sender: No OFD packet to send [16:11:31]*** Cut start [16:11:31]*** Partial cut [16:11:31]*** CUTSNS_PIN = 1 [16:11:31]*** CUTSNS_PIN = 0 [16:11:31]*** Brake cut motor [16:11:31]Read from MH i2c: 01 [16:11:31]MH_I2C_Read... [16:11:31]*** Stop cut motor [16:11:31]*** Cut end [16:11:31]Read from MH i2c: 01 07 00 [16:11:31]MH_I2C_Read... [16:11:31]Read from MH i2c: 01 07 00 99 A3 00 00 00 00 00 FF 0F 51 [16:11:31]process_action close_receipt done [16:11:31]requested_data is exist [16:11:31]produce_requested_data [16:11:31]requested_item fm.sn is exist - process it [16:11:31]wFMCommunicate request_size=4 [16:11:31]MH_SAM_APDU [16:11:31]CAPDU: 80 11 00 00 [16:11:31]Write to MH i2c: E2 08 00 9A A3 80 11 00 00 00 00 00 00 B7 [16:11:31]Write i2c OK [16:11:31]MH_I2C_Read... [16:11:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:11:31]Read from MH i2c: E2 [16:11:31]MH_I2C_Read... [16:11:31]Read from MH i2c: E2 17 00 [16:11:31]MH_I2C_Read... [16:11:31]Read from MH i2c: E2 17 00 9A A3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 06 [16:11:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:11:31]wFMCommunicate OK [16:11:31]requested_item fd.num is exist - process it [16:11:31]SAM_PROTO_GetFieldsCounters [16:11:31]wFMCommunicate request_size=4 [16:11:31]MH_SAM_APDU [16:11:31]CAPDU: 80 13 00 00 [16:11:31]Write to MH i2c: E2 08 00 9B A3 80 13 00 00 00 00 00 00 BA [16:11:31]Write i2c OK [16:11:31]MH_I2C_Read... [16:11:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:11:32]Read from MH i2c: E2 [16:11:32]MH_I2C_Read... [16:11:32]Read from MH i2c: E2 62 00 [16:11:32]MH_I2C_Read... [16:11:32]Read from MH i2c: E2 62 00 9B A3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 4E 72 00 00 0E 04 04 00 74 00 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 30 [16:11:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 4E 72 00 00 0E 04 04 00 74 00 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 [16:11:32]wFMCommunicate OK [16:11:32]SAM_PROTO_GetFieldsCounters done [16:11:32]requested_item shift.num is exist - process it [16:11:32]requested_item shift.opened is exist - process it [16:11:32]req_shift_opened [16:11:32]FM_GetShiftState [16:11:32]SAM_PROTO_GetShiftState [16:11:32]wFMCommunicate request_size=4 [16:11:32]MH_SAM_APDU [16:11:32]CAPDU: 80 13 01 00 [16:11:32]Write to MH i2c: E2 08 00 9C A3 80 13 01 00 00 00 00 00 BC [16:11:32]Write i2c OK [16:11:32]MH_I2C_Read... [16:11:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:11:32]Read from MH i2c: E2 [16:11:32]MH_I2C_Read... [16:11:32]Read from MH i2c: E2 0E 00 [16:11:32]MH_I2C_Read... [16:11:32]Read from MH i2c: E2 0E 00 9C A3 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 68 [16:11:32]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [16:11:32]wFMCommunicate OK [16:11:32]SAM_PROTO_GetShiftState done [16:11:32]FM_GetShiftState done [16:11:32]req_shift_opened done [16:11:32]requested_item shift.open_date is exist - process it [16:11:32]req_shift_open_date [16:11:32]req_shift_open_date done [16:11:32]produce_requested_data done [16:11:32]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29262,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [16:11:32]process_action_free close_receipt [16:11:32]json_value_free [16:11:32]json_value_free done [16:11:32]process_json_proto returns [16:11:32]Send response to host [16:11:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29262,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [16:11:32]free response buf [16:11:32]execute_script done [16:11:32]execute_script returns [16:11:32]free content buf [16:11:32]Sock 7.Close socket [16:11:32]Sock 7.Thread stoped [16:11:35]OFD Sender: No OFD packet to send [16:11:40]OFD Sender: No OFD packet to send [16:11:45]OFD Sender: No OFD packet to send [16:11:50]OFD Sender: No OFD packet to send [16:11:55]OFD Sender: No OFD packet to send [16:12:00]OFD Sender: No OFD packet to send [16:12:05]OFD Sender: No OFD packet to send [16:12:10]OFD Sender: No OFD packet to send [16:12:15]OFD Sender: No OFD packet to send [16:12:20]OFD Sender: No OFD packet to send [16:12:25]OFD Sender: No OFD packet to send [16:12:30]OFD Sender: No OFD packet to send [16:12:35]OFD Sender: No OFD packet to send [16:12:40]OFD Sender: No OFD packet to send [16:12:45]OFD Sender: No OFD packet to send [16:12:50]OFD Sender: No OFD packet to send [16:12:55]OFD Sender: No OFD packet to send [16:13:00]OFD Sender: No OFD packet to send [16:13:05]OFD Sender: No OFD packet to send [16:13:10]OFD Sender: No OFD packet to send [16:13:15]OFD Sender: No OFD packet to send [16:13:20]OFD Sender: No OFD packet to send [16:13:25]OFD Sender: No OFD packet to send [16:13:30]OFD Sender: No OFD packet to send [16:13:35]OFD Sender: No OFD packet to send [16:13:40]OFD Sender: No OFD packet to send [16:13:45]OFD Sender: No OFD packet to send [16:13:50]OFD Sender: No OFD packet to send [16:13:55]OFD Sender: No OFD packet to send [16:14:00]OFD Sender: No OFD packet to send [16:14:05]OFD Sender: No OFD packet to send [16:14:10]OFD Sender: No OFD packet to send [16:14:15]OFD Sender: No OFD packet to send [16:14:20]OFD Sender: No OFD packet to send [16:14:25]OFD Sender: No OFD packet to send [16:14:30]OFD Sender: No OFD packet to send [16:14:35]OFD Sender: No OFD packet to send [16:14:40]OFD Sender: No OFD packet to send [16:14:45]OFD Sender: No OFD packet to send [16:14:50]OFD Sender: No OFD packet to send [16:14:55]OFD Sender: No OFD packet to send [16:15:00]OFD Sender: No OFD packet to send [16:15:05]OFD Sender: No OFD packet to send [16:15:10]OFD Sender: No OFD packet to send [16:15:15]OFD Sender: No OFD packet to send [16:15:20]OFD Sender: No OFD packet to send [16:15:25]OFD Sender: No OFD packet to send [16:15:30]OFD Sender: No OFD packet to send [16:15:35]OFD Sender: No OFD packet to send [16:15:40]OFD Sender: No OFD packet to send [16:15:45]OFD Sender: No OFD packet to send [16:15:50]OFD Sender: No OFD packet to send [16:15:55]OFD Sender: No OFD packet to send [16:16:00]OFD Sender: No OFD packet to send [16:16:05]OFD Sender: No OFD packet to send [16:16:11]OFD Sender: No OFD packet to send [16:16:16]OFD Sender: No OFD packet to send [16:16:21]OFD Sender: No OFD packet to send [16:16:26]OFD Sender: No OFD packet to send [16:16:31]OFD Sender: No OFD packet to send [16:16:36]OFD Sender: No OFD packet to send [16:16:41]OFD Sender: No OFD packet to send [16:16:46]OFD Sender: No OFD packet to send [16:16:51]OFD Sender: No OFD packet to send [16:16:56]OFD Sender: No OFD packet to send [16:17:01]OFD Sender: No OFD packet to send [16:17:06]OFD Sender: No OFD packet to send [16:17:11]OFD Sender: No OFD packet to send [16:17:16]OFD Sender: No OFD packet to send [16:17:21]OFD Sender: No OFD packet to send [16:17:26]OFD Sender: No OFD packet to send [16:17:31]OFD Sender: No OFD packet to send [16:17:36]OFD Sender: No OFD packet to send [16:17:41]OFD Sender: No OFD packet to send [16:17:46]OFD Sender: No OFD packet to send [16:17:51]OFD Sender: No OFD packet to send [16:17:56]OFD Sender: No OFD packet to send [16:18:01]OFD Sender: No OFD packet to send [16:18:06]OFD Sender: No OFD packet to send [16:18:11]OFD Sender: No OFD packet to send [16:18:16]OFD Sender: No OFD packet to send [16:18:21]OFD Sender: No OFD packet to send [16:18:26]OFD Sender: No OFD packet to send [16:18:31]OFD Sender: No OFD packet to send [16:18:36]OFD Sender: No OFD packet to send [16:18:41]OFD Sender: No OFD packet to send [16:18:46]OFD Sender: No OFD packet to send [16:18:51]OFD Sender: No OFD packet to send [16:18:56]OFD Sender: No OFD packet to send [16:19:01]OFD Sender: No OFD packet to send [16:19:06]OFD Sender: No OFD packet to send [16:19:11]OFD Sender: No OFD packet to send [16:19:16]OFD Sender: No OFD packet to send [16:19:21]OFD Sender: No OFD packet to send [16:19:26]OFD Sender: No OFD packet to send [16:19:31]OFD Sender: No OFD packet to send [16:19:36]OFD Sender: No OFD packet to send [16:19:41]OFD Sender: No OFD packet to send [16:19:46]OFD Sender: No OFD packet to send [16:19:51]OFD Sender: No OFD packet to send [16:19:56]OFD Sender: No OFD packet to send [16:20:01]OFD Sender: No OFD packet to send [16:20:06]OFD Sender: No OFD packet to send [16:20:11]OFD Sender: No OFD packet to send [16:20:16]OFD Sender: No OFD packet to send [16:20:21]OFD Sender: No OFD packet to send [16:20:26]OFD Sender: No OFD packet to send [16:20:31]OFD Sender: No OFD packet to send [16:20:36]OFD Sender: No OFD packet to send [16:20:41]OFD Sender: No OFD packet to send [16:20:46]OFD Sender: No OFD packet to send [16:20:49]accept exits with 9 [16:20:49]New connection [16:20:49]New thread 3066785124 created [16:20:49]Thread 3066928484 joined [16:20:49]Waiting for new connection... [16:20:49] Sock 9.Parse request [16:20:49]Sock 9.Check first char [16:20:49]Sock 9.First char is OK [16:20:49]request: POST /json_proto HTTP/1.0 [16:20:49]Method: POST [16:20:49]URL: /json_proto [16:20:49]Method is POST - this is cgi request [16:20:49]url: /json_proto [16:20:49]query_string will be loaded in cgi processing [16:20:49]execute_cgi json_proto POST (null) [16:20:49]execute_cgi path=json_proto method=POST [16:20:49]POST find Content-Length [16:20:49]Host: 172.17.33.3:8080 [16:20:49]Content-Length: 1190 [16:20:49]Content-Type: application/json [16:20:49] [16:20:49]POST finish read [16:20:49]Found Content-Length = 1190 [16:20:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043B\u0438\u043A\u0431\u0430\u0435\u0432\u0430. \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)347649\u000A14.04.2024 16:02\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 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: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3484995\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:20:49]execute_script... [16:20:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043B\u0438\u043A\u0431\u0430\u0435\u0432\u0430. \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)347649\u000A14.04.2024 16:02\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 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: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3484995\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:20:49]POST & json_proto [16:20:49]process_json_proto [16:20:49]json parsed OK: [16:20:49]protocol is kg_v1.0 [16:20:49]action value=print_text [16:20:49]process_action print_text [16:20:49]cmd_print_text [16:20:49]ExternCall_PrintAddStr [16:20:49]wPrintStart [16:20:49]Write to MH i2c: 01 00 00 9D A3 40 [16:20:49]Write i2c OK [16:20:49]MH_I2C_Read... [16:20:49]Read from MH i2c: 01 [16:20:49]MH_I2C_Read... [16:20:49]Read from MH i2c: 01 07 00 [16:20:49]MH_I2C_Read... [16:20:49]Read from MH i2c: 01 07 00 9D A3 00 00 00 00 00 FF 0F 55 [16:20:49]RasterBufferAndPrint [16:20:49]line *****ТОВАРНЫЙ ЧЕК***** [16:20:49]line АЗС 108 [16:20:49]line Партнер нефть [16:20:49]line 02508201610067 [16:20:49]line Кассир : Аликбаева. Д. [16:20:49]line Счет N : (1)347649 [16:20:49]line 14.04.2024 16:02 [16:20:49]line ПРОДАЖА [16:20:49]line ТРК (МРК, ГНК): 32 [16:20:49]line Вид ГСМ : 2710124130 [16:20:49]line Аи-92-К-5 [16:20:49]line 5.000 x 64.30 [16:20:49]line ИТОГ: 321.50 [16:20:49]line Тип оплаты: Талоны: Партнер нефть [16:20:49]line 3484995 [16:20:49]line ______________________ [16:20:49]line (подпись) [16:20:49]written 0, free lines is 4095 [16:20:50]Write to MH i2c: 01 00 00 B1 A3 54 [16:20:50]Write i2c OK [16:20:50]MH_I2C_Read... [16:20:50]Read from MH i2c: 01 [16:20:50]MH_I2C_Read... [16:20:50]Read from MH i2c: 01 07 00 [16:20:50]MH_I2C_Read... [16:20:50]Read from MH i2c: 01 07 00 B1 A3 00 00 00 00 00 11 0E 7A [16:20:50]RasterBufferAndPrint [16:20:50]line [16:20:50]line [16:20:50]line [16:20:50]line [16:20:50]line [16:20:50]written 0, free lines is 3603 [16:20:50]MH_Cut [16:20:50]Write to MH i2c: D1 01 00 B8 A3 01 2D [16:20:50]Write i2c OK [16:20:50]MH_I2C_Read... [16:20:50]Read from MH i2c: D1 [16:20:50]MH_I2C_Read... [16:20:50]Read from MH i2c: D1 01 00 [16:20:50]MH_I2C_Read... [16:20:50]Read from MH i2c: D1 01 00 B8 A3 00 2C [16:20:50]Write to MH i2c: 01 00 00 B9 A3 5C [16:20:50]Write i2c OK [16:20:50]MH_I2C_Read... [16:20:50]*** Cut start [16:20:50]*** Partial cut [16:20:50]*** CUTSNS_PIN = 1 [16:20:50]*** CUTSNS_PIN = 0 [16:20:50]*** Brake cut motor [16:20:51]OFD Sender: No OFD packet to send [16:20:51]Read from MH i2c: 01 [16:20:51]MH_I2C_Read... [16:20:51]*** Stop cut motor [16:20:51]*** Cut end [16:20:51]Read from MH i2c: 01 07 00 [16:20:51]MH_I2C_Read... [16:20:51]Read from MH i2c: 01 07 00 B9 A3 00 00 00 00 00 FF 0F 71 [16:20:51]process_action print_text done [16:20:51]requested_data is exist [16:20:51]produce_requested_data [16:20:51]requested_item fm.sn is exist - process it [16:20:51]wFMCommunicate request_size=4 [16:20:51]MH_SAM_APDU [16:20:51]CAPDU: 80 11 00 00 [16:20:51]Write to MH i2c: E2 08 00 BA A3 80 11 00 00 00 00 00 00 D7 [16:20:51]Write i2c OK [16:20:51]MH_I2C_Read... [16:20:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:20:51]Read from MH i2c: E2 [16:20:51]MH_I2C_Read... [16:20:51]Read from MH i2c: E2 17 00 [16:20:51]MH_I2C_Read... [16:20:51]Read from MH i2c: E2 17 00 BA A3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 26 [16:20:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:20:51]wFMCommunicate OK [16:20:51]requested_item fd.num is exist - process it [16:20:51]SAM_PROTO_GetFieldsCounters [16:20:51]wFMCommunicate request_size=4 [16:20:51]MH_SAM_APDU [16:20:51]CAPDU: 80 13 00 00 [16:20:51]Write to MH i2c: E2 08 00 BB A3 80 13 00 00 00 00 00 00 DA [16:20:51]Write i2c OK [16:20:51]MH_I2C_Read... [16:20:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:20:51]Read from MH i2c: E2 [16:20:51]MH_I2C_Read... [16:20:51]Read from MH i2c: E2 62 00 [16:20:51]MH_I2C_Read... [16:20:51]Read from MH i2c: E2 62 00 BB A3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 4E 72 00 00 0E 04 04 00 74 00 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 50 [16:20:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 4E 72 00 00 0E 04 04 00 74 00 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 [16:20:51]wFMCommunicate OK [16:20:51]SAM_PROTO_GetFieldsCounters done [16:20:51]requested_item shift.num is exist - process it [16:20:51]requested_item shift.opened is exist - process it [16:20:51]req_shift_opened [16:20:51]FM_GetShiftState [16:20:51]SAM_PROTO_GetShiftState [16:20:51]wFMCommunicate request_size=4 [16:20:51]MH_SAM_APDU [16:20:51]CAPDU: 80 13 01 00 [16:20:51]Write to MH i2c: E2 08 00 BC A3 80 13 01 00 00 00 00 00 DC [16:20:51]Write i2c OK [16:20:51]MH_I2C_Read... [16:20:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:20:51]Read from MH i2c: E2 [16:20:51]MH_I2C_Read... [16:20:51]Read from MH i2c: E2 0E 00 [16:20:51]MH_I2C_Read... [16:20:51]Read from MH i2c: E2 0E 00 BC A3 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 88 [16:20:51]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [16:20:51]wFMCommunicate OK [16:20:51]SAM_PROTO_GetShiftState done [16:20:51]FM_GetShiftState done [16:20:51]req_shift_opened done [16:20:51]requested_item shift.open_date is exist - process it [16:20:51]req_shift_open_date [16:20:51]req_shift_open_date done [16:20:51]produce_requested_data done [16:20:51]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29262,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [16:20:51]process_action_free print_text [16:20:51]json_value_free [16:20:51]json_value_free done [16:20:51]process_json_proto returns [16:20:51]Send response to host [16:20:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29262,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [16:20:51]free response buf [16:20:51]execute_script done [16:20:51]execute_script returns [16:20:51]free content buf [16:20:51]Sock 9.Close socket [16:20:51]Sock 9.Thread stoped [16:20:56]OFD Sender: No OFD packet to send [16:21:01]OFD Sender: No OFD packet to send [16:21:06]OFD Sender: No OFD packet to send [16:21:11]OFD Sender: No OFD packet to send [16:21:16]OFD Sender: No OFD packet to send [16:21:21]OFD Sender: No OFD packet to send [16:21:26]OFD Sender: No OFD packet to send [16:21:31]OFD Sender: No OFD packet to send [16:21:36]OFD Sender: No OFD packet to send [16:21:41]OFD Sender: No OFD packet to send [16:21:46]OFD Sender: No OFD packet to send [16:21:51]OFD Sender: No OFD packet to send [16:21:56]OFD Sender: No OFD packet to send [16:22:01]OFD Sender: No OFD packet to send [16:22:06]OFD Sender: No OFD packet to send [16:22:11]OFD Sender: No OFD packet to send [16:22:16]OFD Sender: No OFD packet to send [16:22:21]OFD Sender: No OFD packet to send [16:22:26]OFD Sender: No OFD packet to send [16:22:31]OFD Sender: No OFD packet to send [16:22:36]OFD Sender: No OFD packet to send [16:22:41]OFD Sender: No OFD packet to send [16:22:42]accept exits with 7 [16:22:42]New connection [16:22:42]New thread 3066928484 created [16:22:42]Thread 3066785124 joined [16:22:42]Waiting for new connection... [16:22:42] Sock 7.Parse request [16:22:42]Sock 7.Check first char [16:22:42]Sock 7.First char is OK [16:22:42]request: POST /json_proto HTTP/1.0 [16:22:42]Method: POST [16:22:42]URL: /json_proto [16:22:42]Method is POST - this is cgi request [16:22:42]url: /json_proto [16:22:42]query_string will be loaded in cgi processing [16:22:42]execute_cgi json_proto POST (null) [16:22:42]execute_cgi path=json_proto method=POST [16:22:42]POST find Content-Length [16:22:42]Host: 172.17.33.3:8080 [16:22:42]Content-Length: 677 [16:22:42]Content-Type: application/json [16:22:42] [16:22:42]POST finish read [16:22:42]Found Content-Length = 677 [16:22:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347650", "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.430, "sum" : 220.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:22:42]execute_script... [16:22: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)347650", "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.430, "sum" : 220.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:22:42]POST & json_proto [16:22:42]process_json_proto [16:22:42]json parsed OK: [16:22:42]protocol is kg_v1.0 [16:22:42]action value=close_receipt [16:22:42]process_action close_receipt [16:22:42]cmd_close_receipt [16:22:42]MH_GetDate [16:22:42]Write to MH i2c: F0 00 00 BD A3 4F [16:22:42]Write i2c OK [16:22:42]MH_I2C_Read... [16:22:42]Read from MH i2c: F0 [16:22:42]MH_I2C_Read... [16:22:42]Read from MH i2c: F0 09 00 [16:22:42]MH_I2C_Read... [16:22:42]Read from MH i2c: F0 09 00 BD A3 00 DD 02 1C 66 23 5B 8F 65 2B [16:22:42]GetLastDocTimeStamp 1713111098 [16:22:42]current date 1713111773 [16:22:42]FM_GetShiftState [16:22:42]SAM_PROTO_GetShiftState [16:22:42]wFMCommunicate request_size=4 [16:22:42]MH_SAM_APDU [16:22:42]CAPDU: 80 13 01 00 [16:22:42]Write to MH i2c: E2 08 00 BE A3 80 13 01 00 00 00 00 00 DE [16:22:42]Write i2c OK [16:22:42]MH_I2C_Read... [16:22:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:22:42]Read from MH i2c: E2 [16:22:42]MH_I2C_Read... [16:22:42]Read from MH i2c: E2 0E 00 [16:22:42]MH_I2C_Read... [16:22:42]Read from MH i2c: E2 0E 00 BE A3 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 8A [16:22:42]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [16:22:42]wFMCommunicate OK [16:22:42]SAM_PROTO_GetShiftState done [16:22:42]FM_GetShiftState done [16:22:42]opened in 1713053951 [16:22:42]opened+sec_in_day 1713140351 [16:22:42]quantity*price = 22054 [16:22:42]sum+1 = 22056 [16:22:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 220.00 Внесено: 220.00 СДАЧА: 0.00 НСП 1% : 1.95 НДС 12% : 23.42 Наличными: 220.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 173 14.04.2024 16:22 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29263 ФПД: 168743955056087 1/tax-web-control/client/api/v1/ticket?date=20240414T162253&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29263&fm=168743955056087&tin=02508201610067®Number=0000138879044617&sum=22000 [16:22:44]StoreToDocumentArchive [16:22:44]shift 116 fd 29263 [16:22:44]save to /storage/0116/doc_00029263 [16:22:44]save last doc name /storage/0116/doc_00029263 to /storage/kkm_last_doc_name [16:22:44]save OK [16:22:44]Clear old archive folders... [16:22:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:22:44]tlvbuf is 0120E5B0 [16:22:44]SAM_PROTO_ClearQueue [16:22:44]wFMCommunicate request_size=4 [16:22:44]MH_SAM_APDU [16:22:44]CAPDU: 80 09 00 00 [16:22:44]Write to MH i2c: E2 08 00 CB A3 80 09 00 00 00 00 00 00 E0 [16:22:44]Write i2c OK [16:22:44]MH_I2C_Read... [16:22:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:22:44]Read from MH i2c: E2 [16:22:44]MH_I2C_Read... [16:22:44]Read from MH i2c: E2 03 00 [16:22:44]MH_I2C_Read... [16:22:44]Read from MH i2c: E2 03 00 CB A3 00 90 00 E2 [16:22:44]RAPDU: 90 00 [16:22:44]wFMCommunicate OK [16:22:44]SAM_PROTO_ClearQueue done [16:22:44]KKMCreateOFDPacket [16:22:44]OFDProtocolAddRootSTLVToBuf [16:22:44]FM_MakeSignedData [16:22:44]FM_MakeSignedData [16:22:44]SAM_PROTO_SignData [16:22:44]wFMCommunicate request_size=4 [16:22:44]MH_SAM_APDU [16:22:44]CAPDU: 80 0D 01 02 [16:22:44]Write to MH i2c: E2 08 00 CC A3 80 0D 01 02 00 00 00 00 E8 [16:22:44]Write i2c OK [16:22:44]MH_I2C_Read... [16:22:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:22:44]Read from MH i2c: E2 [16:22:44]MH_I2C_Read... [16:22:44]Read from MH i2c: E2 03 00 [16:22:44]MH_I2C_Read... [16:22:44]Read from MH i2c: E2 03 00 CC A3 00 90 00 E3 [16:22:44]RAPDU: 90 00 [16:22:44]wFMCommunicate OK [16:22:44]wFMCommunicate request_size=255 [16:22:44]MH_SAM_APDU [16:22: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 66 0D 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 27 56 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 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 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 AD 00 00 00 F4 03 04 00 DD 02 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4F 72 00 00 35 04 06 00 99 [16:22:44]Write to MH i2c: E2 02 01 CD A3 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 0D 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 27 56 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 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 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 AD 00 00 00 F4 03 04 00 DD 02 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4F 72 00 00 35 04 06 00 99 00 00 8E [16:22:44]Write i2c OK [16:22:44]MH_I2C_Read... [16:22:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:22:44]Read from MH i2c: E2 [16:22:44]MH_I2C_Read... [16:22:44]Read from MH i2c: E2 03 00 [16:22:44]MH_I2C_Read... [16:22:44]Read from MH i2c: E2 03 00 CD A3 00 90 00 E4 [16:22:44]RAPDU: 90 00 [16:22:44]wFMCommunicate OK [16:22:44]wFMCommunicate request_size=10 [16:22:44]MH_SAM_APDU [16:22:44]CAPDU: 80 0D 02 02 05 78 C3 7F C5 D7 [16:22:44]Write to MH i2c: E2 0D 00 CE A3 80 0D 02 02 05 00 78 C3 7F C5 D7 00 00 4B [16:22:44]Write i2c OK [16:22:44]MH_I2C_Read... [16:22:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:22:44]Read from MH i2c: E2 [16:22:44]MH_I2C_Read... [16:22:44]Read from MH i2c: E2 03 00 [16:22:44]MH_I2C_Read... [16:22:44]Read from MH i2c: E2 03 00 CE A3 00 90 00 E5 [16:22:44]RAPDU: 90 00 [16:22:44]wFMCommunicate OK [16:22:44]wFMCommunicate request_size=4 [16:22:44]MH_SAM_APDU [16:22:44]CAPDU: 80 0D 03 02 [16:22:44]Write to MH i2c: E2 08 00 CF A3 80 0D 03 02 00 00 00 00 ED [16:22:44]Write i2c OK [16:22:44]MH_I2C_Read... [16:22:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:22:44]Read from MH i2c: E2 [16:22:44]MH_I2C_Read... [16:22:44]Read from MH i2c: E2 0B 00 [16:22:44]MH_I2C_Read... [16:22:44]Read from MH i2c: E2 0B 00 CF A3 00 21 45 72 EF 6A 84 4A D4 90 00 C1 [16:22:44]RAPDU: 21 45 72 EF 6A 84 4A D4 90 00 [16:22:44]wFMCommunicate OK [16:22:44]SAM_PROTO_SignData done [16:22:44]FM_MakeSignedData done [16:22:44]CreateOFDProtocolMessage [16:22:44]wFMCommunicate request_size=4 [16:22:44]MH_SAM_APDU [16:22:44]CAPDU: 80 11 00 00 [16:22:44]Write to MH i2c: E2 08 00 D0 A3 80 11 00 00 00 00 00 00 ED [16:22:44]Write i2c OK [16:22:44]MH_I2C_Read... [16:22:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:22:44]Read from MH i2c: E2 [16:22:44]MH_I2C_Read... [16:22:44]Read from MH i2c: E2 17 00 [16:22:44]MH_I2C_Read... [16:22:44]Read from MH i2c: E2 17 00 D0 A3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 3C [16:22:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:22:44]wFMCommunicate OK [16:22:44]CreateOFDProtocolMessage done [16:22:44]OFDSenderStorePacket 29263 [16:22:44]StoreOFDPacket docnum=29263 [16:22:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 4D 5F 07 01 DE 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 0D 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 27 56 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 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 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 AD 00 00 00 F4 03 04 00 DD 02 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4F 72 00 00 35 04 06 00 99 78 C3 7F C5 D7 21 45 72 EF 6A 84 4A D4 [16:22:44]CheckFolder [16:22:44]dirname=/storage/ofd_packets [16:22:44]CheckFolder done [16:22:44]ProducePacketName [16:22:44]name=ofd_packets/00029263 [16:22:44]NVStorageSaveData ofd_packets/00029263 [16:22:44]File name is /storage/ofd_packets/00029263 [16:22:44]Write 301 bytes [16:22:44]NVStorageSaveData done [16:22:44]OFDSenderStorePacket done [16:22:44]KKMCreateOFDPacket done [16:22:44]NVStorageSaveData kkm_last_timestamp [16:22:44]File name is /storage/kkm_last_timestamp [16:22:44]OFD Sender: Processing packet 29263 [packets to send 8, broken 7] [16:22:44]ProducePacketName [16:22:44]name=ofd_packets/00029263 [16:22:44]OFD Sender: To server: pG, [16:22:44]CommunicateWithHost lk.salyk.kg:30040 [16:22:44]ConnectInit lk.salyk.kg [16:22:44]Write 4 bytes [16:22:44]NVStorageSaveData done [16:22:44]ExternCall_PrintAddStr [16:22:44]wPrintStart [16:22:44]Write to MH i2c: 01 00 00 D1 A3 74 [16:22:44]Write i2c OK [16:22:44]MH_I2C_Read... [16:22:44]Read from MH i2c: 01 [16:22:44]MH_I2C_Read... [16:22:44]Read from MH i2c: 01 07 00 [16:22:44]MH_I2C_Read... [16:22:44]Read from MH i2c: 01 07 00 D1 A3 00 00 00 00 00 FF 0F 89 [16:22:44]RasterBufferAndPrint [16:22:44]line Счет N : (1)347650 [16:22:44]line ИНН: 02508201610067 [16:22:44]line Контрольно-Кассовый Чек [16:22:44]line ПРОДАЖА [16:22:44]line ТРК (МРК, ГНК) : 42 [16:22:44]line Товар: 2710124130 [16:22:44]line Аи-92-К-5 [16:22:44]line 3.430 * 64.30 [16:22:44]line = 220.55 [16:22:44]line НДС 12% НСП 1% [16:22:44]line > о реализуемом товаре [16:22:44]line ОКРУГЛЕНИЕ: -0.55 [16:22:44]line ИТОГО: 220.00 [16:22:44]line Внесено: 220.00 [16:22:44]line СДАЧА: 0.00 [16:22:44]line НСП 1% : 1.95 [16:22:44]line НДС 12% : 23.42 [16:22:44]line Наличными: 220.00 [16:22:44]line Безнал.: 0.00 [16:22:44]line Место: АЗС № 108 "Партнер Нефть" [16:22:44]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [16:22:44]line СНО: Общий режим [16:22:44]line Чек 173 14.04.2024 16:22 [16:22:44]line Смена: 116 ФФД: 1.0 [16:22:44]line ЗНМ: 0300000027 [16:22:44]line РНМ: 0000138879044617 [16:22:44]line Версия ККМ: 001 [16:22:44]line ФМ: 0000000000963154 [16:22:44]line ФД: 29263 [16:22:44]line ФПД: 168743955056087 [16:22:44]line 1/tax-web-control/client/api/v1/ticket?date=20240414T162253&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29263&fm=168743955056087&tin=02508201610067®Number=0000138879044617&sum=22000 [16:22:44]Connected sock=11 [16:22:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 4D 5F 07 01 DE 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 0D 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 27 56 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 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 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 AD 00 00 00 F4 03 04 00 DD 02 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4F 72 00 00 35 04 06 00 99 78 C3 7F C5 D7 21 45 72 EF 6A 84 4A D4 [16:22:44]written 0, free lines is 4095 [16:22:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 68 1C 47 00 C6 28 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4F 72 00 00 F4 03 04 00 81 AD 1B 66 B6 04 01 00 00 98 2C 7C 11 6F 78 18 E0 [16:22:45]CommunicateWithHost err = 0 [16:22:45]CheckOFDResponse [16:22:45]1017 (14) - 77093643461234 [16:22:45]1041 (16) - 0000000000963154 [16:22:45]1040 (4) - 29263 [16:22:45]1012 (4) - 14.04.2024 10:18 [16:22:45]1206 (1) - 0 [16:22:45]OFD Sender: Remove packet 29263 [16:22:45]ProducePacketName [16:22:45]name=ofd_packets/00029263 [16:22:45]NVStorageDeleteData [16:22:45]Write to MH i2c: 01 00 00 FB A3 9E [16:22:45]Write i2c OK [16:22:45]MH_I2C_Read... [16:22:45]Read from MH i2c: 01 [16:22:45]MH_I2C_Read... [16:22:45]Read from MH i2c: 01 07 00 [16:22:45]MH_I2C_Read... [16:22:45]Read from MH i2c: 01 07 00 FB A3 00 00 00 00 00 CA 0C 7B [16:22:45]RasterBufferAndPrint [16:22:45]line [16:22:45]line [16:22:45]line [16:22:45]line [16:22:45]line [16:22:45]written 0, free lines is 3280 [16:22:45]MH_Cut [16:22:45]Write to MH i2c: D1 01 00 02 A4 01 78 [16:22:45]Write i2c OK [16:22:45]MH_I2C_Read... [16:22:45]Read from MH i2c: D1 [16:22:45]MH_I2C_Read... [16:22:45]Read from MH i2c: D1 01 00 [16:22:45]MH_I2C_Read... [16:22:45]Read from MH i2c: D1 01 00 02 A4 00 77 [16:22:45]Write to MH i2c: 01 00 00 03 A4 A7 [16:22:45]Write i2c OK [16:22:45]MH_I2C_Read... [16:22:45]OFD Sender: No OFD packet to send [16:22:46]*** Cut start [16:22:46]*** Partial cut [16:22:46]*** CUTSNS_PIN = 1 [16:22:46]*** CUTSNS_PIN = 0 [16:22:46]*** Brake cut motor [16:22:46]Read from MH i2c: 01 [16:22:46]MH_I2C_Read... [16:22:46]*** Stop cut motor [16:22:46]*** Cut end [16:22:46]Read from MH i2c: 01 07 00 [16:22:46]MH_I2C_Read... [16:22:46]Read from MH i2c: 01 07 00 03 A4 00 00 00 00 00 FF 0F BC [16:22:46]process_action close_receipt done [16:22:46]requested_data is exist [16:22:46]produce_requested_data [16:22:46]requested_item fm.sn is exist - process it [16:22:46]wFMCommunicate request_size=4 [16:22:46]MH_SAM_APDU [16:22:46]CAPDU: 80 11 00 00 [16:22:46]Write to MH i2c: E2 08 00 04 A4 80 11 00 00 00 00 00 00 22 [16:22:46]Write i2c OK [16:22:46]MH_I2C_Read... [16:22:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:22:46]Read from MH i2c: E2 [16:22:46]MH_I2C_Read... [16:22:46]Read from MH i2c: E2 17 00 [16:22:46]MH_I2C_Read... [16:22:46]Read from MH i2c: E2 17 00 04 A4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 71 [16:22:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:22:46]wFMCommunicate OK [16:22:46]requested_item fd.num is exist - process it [16:22:46]SAM_PROTO_GetFieldsCounters [16:22:46]wFMCommunicate request_size=4 [16:22:46]MH_SAM_APDU [16:22:46]CAPDU: 80 13 00 00 [16:22:46]Write to MH i2c: E2 08 00 05 A4 80 13 00 00 00 00 00 00 25 [16:22:46]Write i2c OK [16:22:46]MH_I2C_Read... [16:22:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:22:46]Read from MH i2c: E2 [16:22:46]MH_I2C_Read... [16:22:46]Read from MH i2c: E2 62 00 [16:22:46]MH_I2C_Read... [16:22:46]Read from MH i2c: E2 62 00 05 A4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 4F 72 00 00 0E 04 04 00 74 00 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 9F [16:22:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 4F 72 00 00 0E 04 04 00 74 00 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 [16:22:46]wFMCommunicate OK [16:22:46]SAM_PROTO_GetFieldsCounters done [16:22:46]requested_item shift.num is exist - process it [16:22:46]requested_item shift.opened is exist - process it [16:22:46]req_shift_opened [16:22:46]FM_GetShiftState [16:22:46]SAM_PROTO_GetShiftState [16:22:46]wFMCommunicate request_size=4 [16:22:46]MH_SAM_APDU [16:22:46]CAPDU: 80 13 01 00 [16:22:46]Write to MH i2c: E2 08 00 06 A4 80 13 01 00 00 00 00 00 27 [16:22:46]Write i2c OK [16:22:46]MH_I2C_Read... [16:22:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:22:47]Read from MH i2c: E2 [16:22:47]MH_I2C_Read... [16:22:47]Read from MH i2c: E2 0E 00 [16:22:47]MH_I2C_Read... [16:22:47]Read from MH i2c: E2 0E 00 06 A4 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 D3 [16:22:47]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [16:22:47]wFMCommunicate OK [16:22:47]SAM_PROTO_GetShiftState done [16:22:47]FM_GetShiftState done [16:22:47]req_shift_opened done [16:22:47]requested_item shift.open_date is exist - process it [16:22:47]req_shift_open_date [16:22:47]req_shift_open_date done [16:22:47]produce_requested_data done [16:22:47]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29263,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [16:22:47]process_action_free close_receipt [16:22:47]json_value_free [16:22:47]json_value_free done [16:22:47]process_json_proto returns [16:22:47]Send response to host [16:22:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29263,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [16:22:47]free response buf [16:22:47]execute_script done [16:22:47]execute_script returns [16:22:47]free content buf [16:22:47]Sock 7.Close socket [16:22:47]Sock 7.Thread stoped [16:22:50]OFD Sender: No OFD packet to send [16:22:55]OFD Sender: No OFD packet to send [16:23:00]OFD Sender: No OFD packet to send [16:23:05]OFD Sender: No OFD packet to send [16:23:10]OFD Sender: No OFD packet to send [16:23:15]OFD Sender: No OFD packet to send [16:23:20]OFD Sender: No OFD packet to send [16:23:25]OFD Sender: No OFD packet to send [16:23:30]OFD Sender: No OFD packet to send [16:23:35]OFD Sender: No OFD packet to send [16:23:40]OFD Sender: No OFD packet to send [16:23:45]OFD Sender: No OFD packet to send [16:23:50]OFD Sender: No OFD packet to send [16:23:55]OFD Sender: No OFD packet to send [16:24:00]OFD Sender: No OFD packet to send [16:24:05]OFD Sender: No OFD packet to send [16:24:10]OFD Sender: No OFD packet to send [16:24:15]OFD Sender: No OFD packet to send [16:24:20]OFD Sender: No OFD packet to send [16:24:25]OFD Sender: No OFD packet to send [16:24:30]OFD Sender: No OFD packet to send [16:24:35]OFD Sender: No OFD packet to send [16:24:40]OFD Sender: No OFD packet to send [16:24:45]OFD Sender: No OFD packet to send [16:24:50]OFD Sender: No OFD packet to send [16:24:55]OFD Sender: No OFD packet to send [16:25:00]OFD Sender: No OFD packet to send [16:25:05]OFD Sender: No OFD packet to send [16:25:10]OFD Sender: No OFD packet to send [16:25:15]OFD Sender: No OFD packet to send [16:25:20]OFD Sender: No OFD packet to send [16:25:25]OFD Sender: No OFD packet to send [16:25:30]OFD Sender: No OFD packet to send [16:25:35]OFD Sender: No OFD packet to send [16:25:40]OFD Sender: No OFD packet to send [16:25:45]OFD Sender: No OFD packet to send [16:25:50]OFD Sender: No OFD packet to send [16:25:55]OFD Sender: No OFD packet to send [16:26:00]OFD Sender: No OFD packet to send [16:26:05]OFD Sender: No OFD packet to send [16:26:10]OFD Sender: No OFD packet to send [16:26:12]accept exits with 9 [16:26:12]New connection [16:26:12]New thread 3066785124 created [16:26:12]Thread 3066928484 joined [16:26:12]Waiting for new connection... [16:26:12] Sock 9.Parse request [16:26:12]Sock 9.Check first char [16:26:12]Sock 9.First char is OK [16:26:12]request: POST /json_proto HTTP/1.0 [16:26:12]Method: POST [16:26:12]URL: /json_proto [16:26:12]Method is POST - this is cgi request [16:26:12]url: /json_proto [16:26:12]query_string will be loaded in cgi processing [16:26:12]execute_cgi json_proto POST (null) [16:26:12]execute_cgi path=json_proto method=POST [16:26:12]POST find Content-Length [16:26:12]Host: 172.17.33.3:8080 [16:26:12]Content-Length: 837 [16:26:12]Content-Type: application/json [16:26:12] [16:26:12]POST finish read [16:26:12]Found Content-Length = 837 [16:26:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347651", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 300.46 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:26:12]execute_script... [16:26: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)347651", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 300.46 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:26:12]POST & json_proto [16:26:12]process_json_proto [16:26:12]json parsed OK: [16:26:12]protocol is kg_v1.0 [16:26:12]action value=close_receipt [16:26:12]process_action close_receipt [16:26:12]cmd_close_receipt [16:26:12]MH_GetDate [16:26:12]Write to MH i2c: F0 00 00 07 A4 9A [16:26:12]Write i2c OK [16:26:12]MH_I2C_Read... [16:26:12]Read from MH i2c: F0 [16:26:12]MH_I2C_Read... [16:26:12]Read from MH i2c: F0 09 00 [16:26:12]MH_I2C_Read... [16:26:12]Read from MH i2c: F0 09 00 07 A4 00 AF 03 1C 66 23 5B 8F 65 49 [16:26:12]GetLastDocTimeStamp 1713111773 [16:26:12]current date 1713111983 [16:26:12]FM_GetShiftState [16:26:12]SAM_PROTO_GetShiftState [16:26:12]wFMCommunicate request_size=4 [16:26:12]MH_SAM_APDU [16:26:12]CAPDU: 80 13 01 00 [16:26:12]Write to MH i2c: E2 08 00 08 A4 80 13 01 00 00 00 00 00 29 [16:26:12]Write i2c OK [16:26:12]MH_I2C_Read... [16:26:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:26:12]Read from MH i2c: E2 [16:26:12]MH_I2C_Read... [16:26:12]Read from MH i2c: E2 0E 00 [16:26:12]MH_I2C_Read... [16:26:12]Read from MH i2c: E2 0E 00 08 A4 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 D5 [16:26:12]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [16:26:12]wFMCommunicate OK [16:26:12]SAM_PROTO_GetShiftState done [16:26:12]FM_GetShiftState done [16:26:12]opened in 1713053951 [16:26:12]opened+sec_in_day 1713140351 [16:26:12]quantity*price = 30046 [16:26:12]sum+1 = 30047 [16:26:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.46 НСП 1% : 2.66 НДС 12% : 31.91 Наличными: 0.00 Безнал.: 300.46 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 174 14.04.2024 16:26 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 29264 ФПД: 103683334827872 1/tax-web-control/client/api/v1/ticket?date=20240414T162623&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29264&fm=103683334827872&tin=02508201610067®Number=0000138879044617&sum=30046 [16:26:13]StoreToDocumentArchive [16:26:13]shift 116 fd 29264 [16:26:13]save to /storage/0116/doc_00029264 [16:26:13]save last doc name /storage/0116/doc_00029264 to /storage/kkm_last_doc_name [16:26:13]save OK [16:26:13]Clear old archive folders... [16:26:13]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:26:13]tlvbuf is 01285F70 [16:26:13]SAM_PROTO_ClearQueue [16:26:13]wFMCommunicate request_size=4 [16:26:13]MH_SAM_APDU [16:26:13]CAPDU: 80 09 00 00 [16:26:13]Write to MH i2c: E2 08 00 15 A4 80 09 00 00 00 00 00 00 2B [16:26:13]Write i2c OK [16:26:13]MH_I2C_Read... [16:26:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:26:13]Read from MH i2c: E2 [16:26:13]MH_I2C_Read... [16:26:13]Read from MH i2c: E2 03 00 [16:26:13]MH_I2C_Read... [16:26:13]Read from MH i2c: E2 03 00 15 A4 00 90 00 2D [16:26:13]RAPDU: 90 00 [16:26:13]wFMCommunicate OK [16:26:13]SAM_PROTO_ClearQueue done [16:26:13]KKMCreateOFDPacket [16:26:13]OFDProtocolAddRootSTLVToBuf [16:26:13]FM_MakeSignedData [16:26:13]FM_MakeSignedData [16:26:13]SAM_PROTO_SignData [16:26:13]wFMCommunicate request_size=4 [16:26:13]MH_SAM_APDU [16:26:13]CAPDU: 80 0D 01 02 [16:26:13]Write to MH i2c: E2 08 00 16 A4 80 0D 01 02 00 00 00 00 33 [16:26:13]Write i2c OK [16:26:13]MH_I2C_Read... [16:26:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:26:13]Read from MH i2c: E2 [16:26:13]MH_I2C_Read... [16:26:13]Read from MH i2c: E2 03 00 [16:26:13]MH_I2C_Read... [16:26:13]Read from MH i2c: E2 03 00 16 A4 00 90 00 2E [16:26:13]RAPDU: 90 00 [16:26:13]wFMCommunicate OK [16:26:13]wFMCommunicate request_size=255 [16:26:13]MH_SAM_APDU [16:26: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 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 AE 00 00 00 F4 03 04 00 AF 03 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 50 72 00 00 35 04 06 00 5E 4C A8 57 [16:26:13]Write to MH i2c: E2 02 01 17 A4 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 AE 00 00 00 F4 03 04 00 AF 03 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 50 72 00 00 35 04 06 00 5E 4C A8 57 00 00 1F [16:26:13]Write i2c OK [16:26:13]MH_I2C_Read... [16:26:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:26:13]Read from MH i2c: E2 [16:26:13]MH_I2C_Read... [16:26:13]Read from MH i2c: E2 03 00 [16:26:13]MH_I2C_Read... [16:26:13]Read from MH i2c: E2 03 00 17 A4 00 90 00 2F [16:26:13]RAPDU: 90 00 [16:26:13]wFMCommunicate OK [16:26:13]wFMCommunicate request_size=7 [16:26:13]MH_SAM_APDU [16:26:13]CAPDU: 80 0D 02 02 02 6F 60 [16:26:13]Write to MH i2c: E2 0A 00 18 A4 80 0D 02 02 02 00 6F 60 00 00 09 [16:26:13]Write i2c OK [16:26:13]MH_I2C_Read... [16:26:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:26:13]Read from MH i2c: E2 [16:26:13]MH_I2C_Read... [16:26:13]Read from MH i2c: E2 03 00 [16:26:13]MH_I2C_Read... [16:26:13]Read from MH i2c: E2 03 00 18 A4 00 90 00 30 [16:26:13]RAPDU: 90 00 [16:26:13]wFMCommunicate OK [16:26:13]wFMCommunicate request_size=4 [16:26:13]MH_SAM_APDU [16:26:13]CAPDU: 80 0D 03 02 [16:26:13]Write to MH i2c: E2 08 00 19 A4 80 0D 03 02 00 00 00 00 38 [16:26:13]Write i2c OK [16:26:13]MH_I2C_Read... [16:26:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:26:13]Read from MH i2c: E2 [16:26:13]MH_I2C_Read... [16:26:13]Read from MH i2c: E2 0B 00 [16:26:13]MH_I2C_Read... [16:26:13]Read from MH i2c: E2 0B 00 19 A4 00 F5 2F F3 75 4F 38 70 A2 90 00 5E [16:26:13]RAPDU: F5 2F F3 75 4F 38 70 A2 90 00 [16:26:13]wFMCommunicate OK [16:26:13]SAM_PROTO_SignData done [16:26:13]FM_MakeSignedData done [16:26:13]CreateOFDProtocolMessage [16:26:13]wFMCommunicate request_size=4 [16:26:13]MH_SAM_APDU [16:26:13]CAPDU: 80 11 00 00 [16:26:13]Write to MH i2c: E2 08 00 1A A4 80 11 00 00 00 00 00 00 38 [16:26:13]Write i2c OK [16:26:13]MH_I2C_Read... [16:26:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:26:13]Read from MH i2c: E2 [16:26:13]MH_I2C_Read... [16:26:13]Read from MH i2c: E2 17 00 [16:26:13]MH_I2C_Read... [16:26:13]Read from MH i2c: E2 17 00 1A A4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 87 [16:26:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:26:13]wFMCommunicate OK [16:26:13]CreateOFDProtocolMessage done [16:26:13]OFDSenderStorePacket 29264 [16:26:13]StoreOFDPacket docnum=29264 [16:26:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 1D 93 04 01 62 41 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 AE 00 00 00 F4 03 04 00 AF 03 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 50 72 00 00 35 04 06 00 5E 4C A8 57 6F 60 F5 2F F3 75 4F 38 70 A2 [16:26:13]CheckFolder [16:26:13]dirname=/storage/ofd_packets [16:26:13]CheckFolder done [16:26:13]ProducePacketName [16:26:13]name=ofd_packets/00029264 [16:26:13]NVStorageSaveData ofd_packets/00029264 [16:26:13]File name is /storage/ofd_packets/00029264 [16:26:13]Write 298 bytes [16:26:13]NVStorageSaveData done [16:26:13]OFDSenderStorePacket done [16:26:13]KKMCreateOFDPacket done [16:26:13]NVStorageSaveData kkm_last_timestamp [16:26:13]File name is /storage/kkm_last_timestamp [16:26:13]Write 4 bytes [16:26:13]NVStorageSaveData done [16:26:13]ExternCall_PrintAddStr [16:26:13]wPrintStart [16:26:13]Write to MH i2c: 01 00 00 1B A4 BF [16:26:13]Write i2c OK [16:26:13]MH_I2C_Read... [16:26:13]Read from MH i2c: 01 [16:26:13]MH_I2C_Read... [16:26:13]Read from MH i2c: 01 07 00 [16:26:13]MH_I2C_Read... [16:26:13]Read from MH i2c: 01 07 00 1B A4 00 00 00 00 00 FF 0F D4 [16:26:13]RasterBufferAndPrint [16:26:13]line Счет N : (1)347651 [16:26:13]line ИНН: 02508201610067 [16:26:13]line Контрольно-Кассовый Чек [16:26:13]line ПРОДАЖА [16:26:13]line ТРК (МРК, ГНК) : 11 [16:26:13]line Товар: 2710194210 [16:26:13]line ДТ-К-5 [16:26:13]line 4.150 * 72.40 [16:26:13]line = 300.46 [16:26:13]line НДС 12% НСП 1% [16:26:13]line > о реализуемом товаре [16:26:13]line ИТОГО: 300.46 [16:26:13]line НСП 1% : 2.66 [16:26:13]line НДС 12% : 31.91 [16:26:13]line Наличными: 0.00 [16:26:13]line Безнал.: 300.46 [16:26:13]line Место: АЗС № 108 "Партнер Нефть" [16:26:13]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [16:26:13]line СНО: Общий режим [16:26:13]line Чек 174 14.04.2024 16:26 [16:26:13]line Смена: 116 ФФД: 1.0 [16:26:13]line ЗНМ: 0300000027 [16:26:13]line РНМ: 0000138879044617 [16:26:13]line Версия ККМ: 001 [16:26:13]line Платежная система: АКБ Кыргызстан [16:26:13]line ФМ: 0000000000963154 [16:26:13]line ФД: 29264 [16:26:13]line ФПД: 103683334827872 [16:26:14]line 1/tax-web-control/client/api/v1/ticket?date=20240414T162623&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29264&fm=103683334827872&tin=02508201610067®Number=0000138879044617&sum=30046 [16:26:14]OFD Sender: Processing packet 29264 [packets to send 8, broken 7] [16:26:14]ProducePacketName [16:26:14]name=ofd_packets/00029264 [16:26:14]OFD Sender: To server: pG, [16:26:14]CommunicateWithHost lk.salyk.kg:30040 [16:26:14]ConnectInit lk.salyk.kg [16:26:14]written 0, free lines is 4095 [16:26:14]Connected sock=10 [16:26:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 1D 93 04 01 62 41 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 AE 00 00 00 F4 03 04 00 AF 03 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 50 72 00 00 35 04 06 00 5E 4C A8 57 6F 60 F5 2F F3 75 4F 38 70 A2 [16:26:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 9C CF 47 00 2F D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 50 72 00 00 F4 03 04 00 52 AE 1B 66 B6 04 01 00 00 9E 9D DD F8 44 6F AD 17 [16:26:14]CommunicateWithHost err = 0 [16:26:14]CheckOFDResponse [16:26:14]1017 (14) - 77093643461234 [16:26:14]1041 (16) - 0000000000963154 [16:26:14]1040 (4) - 29264 [16:26:14]1012 (4) - 14.04.2024 10:22 [16:26:14]1206 (1) - 0 [16:26:14]OFD Sender: Remove packet 29264 [16:26:14]ProducePacketName [16:26:14]name=ofd_packets/00029264 [16:26:14]NVStorageDeleteData [16:26:14]Write to MH i2c: 01 00 00 44 A4 E8 [16:26:14]Write i2c OK [16:26:14]MH_I2C_Read... [16:26:14]Read from MH i2c: 01 [16:26:14]MH_I2C_Read... [16:26:14]Read from MH i2c: 01 07 00 [16:26:14]MH_I2C_Read... [16:26:14]Read from MH i2c: 01 07 00 44 A4 00 00 00 00 00 DD 0C D8 [16:26:14]RasterBufferAndPrint [16:26:14]line [16:26:14]line [16:26:14]line [16:26:14]line [16:26:14]line [16:26:14]written 0, free lines is 3299 [16:26:14]MH_Cut [16:26:14]Write to MH i2c: D1 01 00 4B A4 01 C1 [16:26:14]Write i2c OK [16:26:14]MH_I2C_Read... [16:26:14]Read from MH i2c: D1 [16:26:14]MH_I2C_Read... [16:26:14]Read from MH i2c: D1 01 00 [16:26:14]MH_I2C_Read... [16:26:14]Read from MH i2c: D1 01 00 4B A4 00 C0 [16:26:14]Write to MH i2c: 01 00 00 4C A4 F0 [16:26:14]Write i2c OK [16:26:14]MH_I2C_Read... [16:26:14]OFD Sender: No OFD packet to send [16:26:15]*** Cut start [16:26:15]*** Partial cut [16:26:15]*** CUTSNS_PIN = 1 [16:26:15]*** CUTSNS_PIN = 0 [16:26:15]*** Brake cut motor [16:26:16]Read from MH i2c: 01 [16:26:16]MH_I2C_Read... [16:26:16]*** Stop cut motor [16:26:16]*** Cut end [16:26:16]Read from MH i2c: 01 07 00 [16:26:16]MH_I2C_Read... [16:26:16]Read from MH i2c: 01 07 00 4C A4 00 00 00 00 00 FF 0F 05 [16:26:16]process_action close_receipt done [16:26:16]requested_data is exist [16:26:16]produce_requested_data [16:26:16]requested_item fm.sn is exist - process it [16:26:16]wFMCommunicate request_size=4 [16:26:16]MH_SAM_APDU [16:26:16]CAPDU: 80 11 00 00 [16:26:16]Write to MH i2c: E2 08 00 4D A4 80 11 00 00 00 00 00 00 6B [16:26:16]Write i2c OK [16:26:16]MH_I2C_Read... [16:26:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:26:16]Read from MH i2c: E2 [16:26:16]MH_I2C_Read... [16:26:16]Read from MH i2c: E2 17 00 [16:26:16]MH_I2C_Read... [16:26:16]Read from MH i2c: E2 17 00 4D A4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 BA [16:26:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:26:16]wFMCommunicate OK [16:26:16]requested_item fd.num is exist - process it [16:26:16]SAM_PROTO_GetFieldsCounters [16:26:16]wFMCommunicate request_size=4 [16:26:16]MH_SAM_APDU [16:26:16]CAPDU: 80 13 00 00 [16:26:16]Write to MH i2c: E2 08 00 4E A4 80 13 00 00 00 00 00 00 6E [16:26:16]Write i2c OK [16:26:16]MH_I2C_Read... [16:26:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:26:16]Read from MH i2c: E2 [16:26:16]MH_I2C_Read... [16:26:16]Read from MH i2c: E2 62 00 [16:26:16]MH_I2C_Read... [16:26:16]Read from MH i2c: E2 62 00 4E A4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 50 72 00 00 0E 04 04 00 74 00 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 EC [16:26:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 50 72 00 00 0E 04 04 00 74 00 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 [16:26:16]wFMCommunicate OK [16:26:16]SAM_PROTO_GetFieldsCounters done [16:26:16]requested_item shift.num is exist - process it [16:26:16]requested_item shift.opened is exist - process it [16:26:16]req_shift_opened [16:26:16]FM_GetShiftState [16:26:16]SAM_PROTO_GetShiftState [16:26:16]wFMCommunicate request_size=4 [16:26:16]MH_SAM_APDU [16:26:16]CAPDU: 80 13 01 00 [16:26:16]Write to MH i2c: E2 08 00 4F A4 80 13 01 00 00 00 00 00 70 [16:26:16]Write i2c OK [16:26:16]MH_I2C_Read... [16:26:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:26:16]Read from MH i2c: E2 [16:26:16]MH_I2C_Read... [16:26:16]Read from MH i2c: E2 0E 00 [16:26:16]MH_I2C_Read... [16:26:16]Read from MH i2c: E2 0E 00 4F A4 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 1C [16:26:16]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [16:26:16]wFMCommunicate OK [16:26:16]SAM_PROTO_GetShiftState done [16:26:16]FM_GetShiftState done [16:26:16]req_shift_opened done [16:26:16]requested_item shift.open_date is exist - process it [16:26:16]req_shift_open_date [16:26:16]req_shift_open_date done [16:26:16]produce_requested_data done [16:26:16]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29264,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [16:26:16]process_action_free close_receipt [16:26:16]json_value_free [16:26:16]json_value_free done [16:26:16]process_json_proto returns [16:26:16]Send response to host [16:26:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29264,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [16:26:16]free response buf [16:26:16]execute_script done [16:26:16]execute_script returns [16:26:16]free content buf [16:26:16]Sock 9.Close socket [16:26:16]Sock 9.Thread stoped [16:26:19]OFD Sender: No OFD packet to send [16:26:24]OFD Sender: No OFD packet to send [16:26:30]OFD Sender: No OFD packet to send [16:26:35]OFD Sender: No OFD packet to send [16:26:40]OFD Sender: No OFD packet to send [16:26:45]OFD Sender: No OFD packet to send [16:26:50]OFD Sender: No OFD packet to send [16:26:55]OFD Sender: No OFD packet to send [16:27:00]OFD Sender: No OFD packet to send [16:27:05]OFD Sender: No OFD packet to send [16:27:05]accept exits with 7 [16:27:05]New connection [16:27:05]New thread 3066928484 created [16:27:05]Thread 3066785124 joined [16:27:05]Waiting for new connection... [16:27:05] Sock 7.Parse request [16:27:05]Sock 7.Check first char [16:27:05]Sock 7.First char is OK [16:27:05]request: POST /json_proto HTTP/1.0 [16:27:05]Method: POST [16:27:05]URL: /json_proto [16:27:05]Method is POST - this is cgi request [16:27:05]url: /json_proto [16:27:05]query_string will be loaded in cgi processing [16:27:05]execute_cgi json_proto POST (null) [16:27:05]execute_cgi path=json_proto method=POST [16:27:05]POST find Content-Length [16:27:05]Host: 172.17.33.3:8080 [16:27:05]Content-Length: 640 [16:27:05]Content-Type: application/json [16:27:05] [16:27:05]POST finish read [16:27:05]Found Content-Length = 640 [16:27:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347652", "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 }]} ], "payments": [ { "type": 0, "sum" : 643.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:27:05]execute_script... [16:27: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)347652", "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 }]} ], "payments": [ { "type": 0, "sum" : 643.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:27:05]POST & json_proto [16:27:05]process_json_proto [16:27:05]json parsed OK: [16:27:05]protocol is kg_v1.0 [16:27:05]action value=close_receipt [16:27:05]process_action close_receipt [16:27:05]cmd_close_receipt [16:27:05]MH_GetDate [16:27:05]Write to MH i2c: F0 00 00 50 A4 E3 [16:27:05]Write i2c OK [16:27:05]MH_I2C_Read... [16:27:05]Read from MH i2c: F0 [16:27:05]MH_I2C_Read... [16:27:05]Read from MH i2c: F0 09 00 [16:27:05]MH_I2C_Read... [16:27:05]Read from MH i2c: F0 09 00 50 A4 00 E4 03 1C 66 23 5B 8F 65 C7 [16:27:05]GetLastDocTimeStamp 1713111983 [16:27:05]current date 1713112036 [16:27:05]FM_GetShiftState [16:27:05]SAM_PROTO_GetShiftState [16:27:05]wFMCommunicate request_size=4 [16:27:05]MH_SAM_APDU [16:27:05]CAPDU: 80 13 01 00 [16:27:05]Write to MH i2c: E2 08 00 51 A4 80 13 01 00 00 00 00 00 72 [16:27:05]Write i2c OK [16:27:05]MH_I2C_Read... [16:27:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:27:05]Read from MH i2c: E2 [16:27:05]MH_I2C_Read... [16:27:05]Read from MH i2c: E2 0E 00 [16:27:05]MH_I2C_Read... [16:27:05]Read from MH i2c: E2 0E 00 51 A4 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 1E [16:27:05]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [16:27:05]wFMCommunicate OK [16:27:05]SAM_PROTO_GetShiftState done [16:27:05]FM_GetShiftState done [16:27:05]opened in 1713053951 [16:27:05]opened+sec_in_day 1713140351 [16:27:05]quantity*price = 64300 [16:27:05]sum+1 = 64301 [16:27:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 643.00 НСП 1% : 5.69 НДС 12% : 68.28 Наличными: 643.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 175 14.04.2024 16:27 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29265 ФПД: 133271580260907 1/tax-web-control/client/api/v1/ticket?date=20240414T162716&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29265&fm=133271580260907&tin=02508201610067®Number=0000138879044617&sum=64300 [16:27:06]StoreToDocumentArchive [16:27:06]shift 116 fd 29265 [16:27:06]save to /storage/0116/doc_00029265 [16:27:06]save last doc name /storage/0116/doc_00029265 to /storage/kkm_last_doc_name [16:27:06]save OK [16:27:06]Clear old archive folders... [16:27:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:27:06]tlvbuf is 011CB2E0 [16:27:06]SAM_PROTO_ClearQueue [16:27:06]wFMCommunicate request_size=4 [16:27:06]MH_SAM_APDU [16:27:06]CAPDU: 80 09 00 00 [16:27:06]Write to MH i2c: E2 08 00 5E A4 80 09 00 00 00 00 00 00 74 [16:27:06]Write i2c OK [16:27:06]MH_I2C_Read... [16:27:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:27:06]Read from MH i2c: E2 [16:27:06]MH_I2C_Read... [16:27:06]Read from MH i2c: E2 03 00 [16:27:06]MH_I2C_Read... [16:27:06]Read from MH i2c: E2 03 00 5E A4 00 90 00 76 [16:27:06]RAPDU: 90 00 [16:27:06]wFMCommunicate OK [16:27:06]SAM_PROTO_ClearQueue done [16:27:06]KKMCreateOFDPacket [16:27:06]OFDProtocolAddRootSTLVToBuf [16:27:06]FM_MakeSignedData [16:27:06]FM_MakeSignedData [16:27:06]SAM_PROTO_SignData [16:27:06]wFMCommunicate request_size=4 [16:27:06]MH_SAM_APDU [16:27:06]CAPDU: 80 0D 01 02 [16:27:06]Write to MH i2c: E2 08 00 5F A4 80 0D 01 02 00 00 00 00 7C [16:27:06]Write i2c OK [16:27:06]MH_I2C_Read... [16:27:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:27:07]Read from MH i2c: E2 [16:27:07]MH_I2C_Read... [16:27:07]Read from MH i2c: E2 03 00 [16:27:07]MH_I2C_Read... [16:27:07]Read from MH i2c: E2 03 00 5F A4 00 90 00 77 [16:27:07]RAPDU: 90 00 [16:27:07]wFMCommunicate OK [16:27:07]wFMCommunicate request_size=255 [16:27:07]MH_SAM_APDU [16:27: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 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 AF 00 00 00 F4 03 04 00 E4 03 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 51 72 00 00 35 04 06 00 79 [16:27:07]Write to MH i2c: E2 02 01 60 A4 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 AF 00 00 00 F4 03 04 00 E4 03 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 51 72 00 00 35 04 06 00 79 00 00 4F [16:27:07]Write i2c OK [16:27:07]MH_I2C_Read... [16:27:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:27:07]Read from MH i2c: E2 [16:27:07]MH_I2C_Read... [16:27:07]Read from MH i2c: E2 03 00 [16:27:07]MH_I2C_Read... [16:27:07]Read from MH i2c: E2 03 00 60 A4 00 90 00 78 [16:27:07]RAPDU: 90 00 [16:27:07]wFMCommunicate OK [16:27:07]wFMCommunicate request_size=10 [16:27:07]MH_SAM_APDU [16:27:07]CAPDU: 80 0D 02 02 05 35 B5 33 3A 2B [16:27:07]Write to MH i2c: E2 0D 00 61 A4 80 0D 02 02 05 00 35 B5 33 3A 2B 00 00 0B [16:27:07]Write i2c OK [16:27:07]MH_I2C_Read... [16:27:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:27:07]Read from MH i2c: E2 [16:27:07]MH_I2C_Read... [16:27:07]Read from MH i2c: E2 03 00 [16:27:07]MH_I2C_Read... [16:27:07]Read from MH i2c: E2 03 00 61 A4 00 90 00 79 [16:27:07]RAPDU: 90 00 [16:27:07]wFMCommunicate OK [16:27:07]wFMCommunicate request_size=4 [16:27:07]MH_SAM_APDU [16:27:07]CAPDU: 80 0D 03 02 [16:27:07]Write to MH i2c: E2 08 00 62 A4 80 0D 03 02 00 00 00 00 81 [16:27:07]Write i2c OK [16:27:07]MH_I2C_Read... [16:27:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:27:07]Read from MH i2c: E2 [16:27:07]MH_I2C_Read... [16:27:07]Read from MH i2c: E2 0B 00 [16:27:07]MH_I2C_Read... [16:27:07]Read from MH i2c: E2 0B 00 62 A4 00 6B BC 90 DE 4B 4F 50 E3 90 00 E4 [16:27:07]RAPDU: 6B BC 90 DE 4B 4F 50 E3 90 00 [16:27:07]wFMCommunicate OK [16:27:07]SAM_PROTO_SignData done [16:27:07]FM_MakeSignedData done [16:27:07]CreateOFDProtocolMessage [16:27:07]wFMCommunicate request_size=4 [16:27:07]MH_SAM_APDU [16:27:07]CAPDU: 80 11 00 00 [16:27:07]Write to MH i2c: E2 08 00 63 A4 80 11 00 00 00 00 00 00 81 [16:27:07]Write i2c OK [16:27:07]MH_I2C_Read... [16:27:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:27:07]Read from MH i2c: E2 [16:27:07]MH_I2C_Read... [16:27:07]Read from MH i2c: E2 17 00 [16:27:07]MH_I2C_Read... [16:27:07]Read from MH i2c: E2 17 00 63 A4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D0 [16:27:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:27:07]wFMCommunicate OK [16:27:07]CreateOFDProtocolMessage done [16:27:07]OFDSenderStorePacket 29265 [16:27:07]StoreOFDPacket docnum=29265 [16:27:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 B0 DA 07 01 7A 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 AF 00 00 00 F4 03 04 00 E4 03 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 51 72 00 00 35 04 06 00 79 35 B5 33 3A 2B 6B BC 90 DE 4B 4F 50 E3 [16:27:07]CheckFolder [16:27:07]dirname=/storage/ofd_packets [16:27:07]CheckFolder done [16:27:07]ProducePacketName [16:27:07]name=ofd_packets/00029265 [16:27:07]NVStorageSaveData ofd_packets/00029265 [16:27:07]File name is /storage/ofd_packets/00029265 [16:27:07]Write 301 bytes [16:27:07]NVStorageSaveData done [16:27:07]OFDSenderStorePacket done [16:27:07]KKMCreateOFDPacket done [16:27:07]NVStorageSaveData kkm_last_timestamp [16:27:07]File name is /storage/kkm_last_timestamp [16:27:07]Write 4 bytes [16:27:07]NVStorageSaveData done [16:27:07]ExternCall_PrintAddStr [16:27:07]wPrintStart [16:27:07]Write to MH i2c: 01 00 00 64 A4 08 [16:27:07]Write i2c OK [16:27:07]MH_I2C_Read... [16:27:07]Read from MH i2c: 01 [16:27:07]MH_I2C_Read... [16:27:07]Read from MH i2c: 01 07 00 [16:27:07]MH_I2C_Read... [16:27:07]Read from MH i2c: 01 07 00 64 A4 00 00 00 00 00 FF 0F 1D [16:27:07]RasterBufferAndPrint [16:27:07]line Счет N : (1)347652 [16:27:07]line ИНН: 02508201610067 [16:27:07]line Контрольно-Кассовый Чек [16:27:07]line ПРОДАЖА [16:27:07]line ТРК (МРК, ГНК) : 42 [16:27:07]line Товар: 2710124130 [16:27:07]line Аи-92-К-5 [16:27:07]line 10.000 * 64.30 [16:27:07]line = 643.00 [16:27:07]line НДС 12% НСП 1% [16:27:07]line > о реализуемом товаре [16:27:07]line ИТОГО: 643.00 [16:27:07]line НСП 1% : 5.69 [16:27:07]line НДС 12% : 68.28 [16:27:07]line Наличными: 643.00 [16:27:07]line Безнал.: 0.00 [16:27:07]line Место: АЗС № 108 "Партнер Нефть" [16:27:07]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [16:27:07]line СНО: Общий режим [16:27:07]line Чек 175 14.04.2024 16:27 [16:27:07]line Смена: 116 ФФД: 1.0 [16:27:07]line ЗНМ: 0300000027 [16:27:07]line РНМ: 0000138879044617 [16:27:07]line Версия ККМ: 001 [16:27:07]line ФМ: 0000000000963154 [16:27:07]line ФД: 29265 [16:27:07]line ФПД: 133271580260907 [16:27:07]line 1/tax-web-control/client/api/v1/ticket?date=20240414T162716&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29265&fm=133271580260907&tin=02508201610067®Number=0000138879044617&sum=64300 [16:27:07]written 0, free lines is 4095 [16:27:07]OFD Sender: Processing packet 29265 [packets to send 8, broken 7] [16:27:07]ProducePacketName [16:27:07]name=ofd_packets/00029265 [16:27:07]OFD Sender: To server: pG, [16:27:07]CommunicateWithHost lk.salyk.kg:30040 [16:27:07]ConnectInit lk.salyk.kg [16:27:07]Connected sock=10 [16:27:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 B0 DA 07 01 7A 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 AF 00 00 00 F4 03 04 00 E4 03 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 51 72 00 00 35 04 06 00 79 35 B5 33 3A 2B 6B BC 90 DE 4B 4F 50 E3 [16:27:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 61 7C 47 00 25 ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 51 72 00 00 F4 03 04 00 88 AE 1B 66 B6 04 01 00 00 0C A5 2F 4F D3 D9 2C 55 [16:27:08]CommunicateWithHost err = 0 [16:27:08]CheckOFDResponse [16:27:08]1017 (14) - 77093643461234 [16:27:08]1041 (16) - 0000000000963154 [16:27:08]1040 (4) - 29265 [16:27:08]1012 (4) - 14.04.2024 10:23 [16:27:08]1206 (1) - 0 [16:27:08]OFD Sender: Remove packet 29265 [16:27:08]ProducePacketName [16:27:08]name=ofd_packets/00029265 [16:27:08]NVStorageDeleteData [16:27:08]Write to MH i2c: 01 00 00 8B A4 2F [16:27:08]Write i2c OK [16:27:08]MH_I2C_Read... [16:27:08]Read from MH i2c: 01 [16:27:08]MH_I2C_Read... [16:27:08]Read from MH i2c: 01 07 00 [16:27:08]MH_I2C_Read... [16:27:08]Read from MH i2c: 01 07 00 8B A4 00 00 00 00 00 FE 0C 40 [16:27:08]RasterBufferAndPrint [16:27:08]line [16:27:08]line [16:27:08]line [16:27:08]line [16:27:08]line [16:27:08]written 0, free lines is 3332 [16:27:08]MH_Cut [16:27:08]Write to MH i2c: D1 01 00 92 A4 01 08 [16:27:08]Write i2c OK [16:27:08]MH_I2C_Read... [16:27:08]Read from MH i2c: D1 [16:27:08]MH_I2C_Read... [16:27:08]Read from MH i2c: D1 01 00 [16:27:08]MH_I2C_Read... [16:27:08]Read from MH i2c: D1 01 00 92 A4 00 07 [16:27:08]Write to MH i2c: 01 00 00 93 A4 37 [16:27:08]Write i2c OK [16:27:08]MH_I2C_Read... [16:27:08]OFD Sender: No OFD packet to send [16:27:08]*** Cut start [16:27:08]*** Partial cut [16:27:08]*** CUTSNS_PIN = 1 [16:27:09]*** CUTSNS_PIN = 0 [16:27:09]*** Brake cut motor [16:27:09]Read from MH i2c: 01 [16:27:09]MH_I2C_Read... [16:27:09]*** Stop cut motor [16:27:09]*** Cut end [16:27:09]Read from MH i2c: 01 07 00 [16:27:09]MH_I2C_Read... [16:27:09]Read from MH i2c: 01 07 00 93 A4 00 00 00 00 00 FF 0F 4C [16:27:09]process_action close_receipt done [16:27:09]requested_data is exist [16:27:09]produce_requested_data [16:27:09]requested_item fm.sn is exist - process it [16:27:09]wFMCommunicate request_size=4 [16:27:09]MH_SAM_APDU [16:27:09]CAPDU: 80 11 00 00 [16:27:09]Write to MH i2c: E2 08 00 94 A4 80 11 00 00 00 00 00 00 B2 [16:27:09]Write i2c OK [16:27:09]MH_I2C_Read... [16:27:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:27:09]Read from MH i2c: E2 [16:27:09]MH_I2C_Read... [16:27:09]Read from MH i2c: E2 17 00 [16:27:09]MH_I2C_Read... [16:27:09]Read from MH i2c: E2 17 00 94 A4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 01 [16:27:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:27:09]wFMCommunicate OK [16:27:09]requested_item fd.num is exist - process it [16:27:09]SAM_PROTO_GetFieldsCounters [16:27:09]wFMCommunicate request_size=4 [16:27:09]MH_SAM_APDU [16:27:09]CAPDU: 80 13 00 00 [16:27:09]Write to MH i2c: E2 08 00 95 A4 80 13 00 00 00 00 00 00 B5 [16:27:09]Write i2c OK [16:27:09]MH_I2C_Read... [16:27:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:27:09]Read from MH i2c: E2 [16:27:09]MH_I2C_Read... [16:27:09]Read from MH i2c: E2 62 00 [16:27:09]MH_I2C_Read... [16:27:09]Read from MH i2c: E2 62 00 95 A4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 51 72 00 00 0E 04 04 00 74 00 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 37 [16:27:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 51 72 00 00 0E 04 04 00 74 00 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 [16:27:09]wFMCommunicate OK [16:27:09]SAM_PROTO_GetFieldsCounters done [16:27:09]requested_item shift.num is exist - process it [16:27:09]requested_item shift.opened is exist - process it [16:27:09]req_shift_opened [16:27:09]FM_GetShiftState [16:27:09]SAM_PROTO_GetShiftState [16:27:09]wFMCommunicate request_size=4 [16:27:09]MH_SAM_APDU [16:27:09]CAPDU: 80 13 01 00 [16:27:09]Write to MH i2c: E2 08 00 96 A4 80 13 01 00 00 00 00 00 B7 [16:27:09]Write i2c OK [16:27:09]MH_I2C_Read... [16:27:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:27:09]Read from MH i2c: E2 [16:27:09]MH_I2C_Read... [16:27:09]Read from MH i2c: E2 0E 00 [16:27:09]MH_I2C_Read... [16:27:09]Read from MH i2c: E2 0E 00 96 A4 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 63 [16:27:09]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [16:27:09]wFMCommunicate OK [16:27:09]SAM_PROTO_GetShiftState done [16:27:09]FM_GetShiftState done [16:27:09]req_shift_opened done [16:27:09]requested_item shift.open_date is exist - process it [16:27:09]req_shift_open_date [16:27:09]req_shift_open_date done [16:27:09]produce_requested_data done [16:27:09]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29265,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [16:27:09]process_action_free close_receipt [16:27:09]json_value_free [16:27:09]json_value_free done [16:27:09]process_json_proto returns [16:27:09]Send response to host [16:27:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29265,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [16:27:09]free response buf [16:27:09]execute_script done [16:27:09]execute_script returns [16:27:09]free content buf [16:27:09]Sock 7.Close socket [16:27:09]Sock 7.Thread stoped [16:27:13]OFD Sender: No OFD packet to send [16:27:18]OFD Sender: No OFD packet to send [16:27:23]OFD Sender: No OFD packet to send [16:27:28]OFD Sender: No OFD packet to send [16:27:33]OFD Sender: No OFD packet to send [16:27:38]OFD Sender: No OFD packet to send [16:27:43]OFD Sender: No OFD packet to send [16:27:48]OFD Sender: No OFD packet to send [16:27:53]OFD Sender: No OFD packet to send [16:27:58]OFD Sender: No OFD packet to send [16:28:03]OFD Sender: No OFD packet to send [16:28:06]accept exits with 9 [16:28:06]New connection [16:28:06]New thread 3066785124 created [16:28:06]Thread 3066928484 joined [16:28:06]Waiting for new connection... [16:28:06] Sock 9.Parse request [16:28:06]Sock 9.Check first char [16:28:06]Sock 9.First char is OK [16:28:06]request: POST /json_proto HTTP/1.0 [16:28:06]Method: POST [16:28:06]URL: /json_proto [16:28:06]Method is POST - this is cgi request [16:28:06]url: /json_proto [16:28:06]query_string will be loaded in cgi processing [16:28:06]execute_cgi json_proto POST (null) [16:28:06]execute_cgi path=json_proto method=POST [16:28:06]POST find Content-Length [16:28:06]Host: 172.17.33.3:8080 [16:28:06]Content-Length: 633 [16:28:06]Content-Type: application/json [16:28:06] [16:28:06]POST finish read [16:28:06]Found Content-Length = 633 [16:28:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347653", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 10.000, "sum" : 653.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 653.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:28:06]execute_script... [16:28: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)347653", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 10.000, "sum" : 653.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 653.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:28:06]POST & json_proto [16:28:06]process_json_proto [16:28:06]json parsed OK: [16:28:06]protocol is kg_v1.0 [16:28:06]action value=close_receipt [16:28:06]process_action close_receipt [16:28:06]cmd_close_receipt [16:28:06]MH_GetDate [16:28:06]Write to MH i2c: F0 00 00 97 A4 2A [16:28:06]Write i2c OK [16:28:06]MH_I2C_Read... [16:28:06]Read from MH i2c: F0 [16:28:06]MH_I2C_Read... [16:28:06]Read from MH i2c: F0 09 00 [16:28:06]MH_I2C_Read... [16:28:06]Read from MH i2c: F0 09 00 97 A4 00 21 04 1C 66 23 5B 8F 65 4C [16:28:06]GetLastDocTimeStamp 1713112036 [16:28:06]current date 1713112097 [16:28:06]FM_GetShiftState [16:28:06]SAM_PROTO_GetShiftState [16:28:06]wFMCommunicate request_size=4 [16:28:06]MH_SAM_APDU [16:28:06]CAPDU: 80 13 01 00 [16:28:06]Write to MH i2c: E2 08 00 98 A4 80 13 01 00 00 00 00 00 B9 [16:28:06]Write i2c OK [16:28:06]MH_I2C_Read... [16:28:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:28:06]Read from MH i2c: E2 [16:28:06]MH_I2C_Read... [16:28:06]Read from MH i2c: E2 0E 00 [16:28:06]MH_I2C_Read... [16:28:06]Read from MH i2c: E2 0E 00 98 A4 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 65 [16:28:06]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [16:28:06]wFMCommunicate OK [16:28:06]SAM_PROTO_GetShiftState done [16:28:06]FM_GetShiftState done [16:28:06]opened in 1713053951 [16:28:06]opened+sec_in_day 1713140351 [16:28:06]quantity*price = 65300 [16:28:06]sum+1 = 65301 [16:28:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 653.00 НСП 1% : 5.78 НДС 12% : 69.34 Наличными: 653.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 176 14.04.2024 16:28 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29266 ФПД: 212756211994984 1/tax-web-control/client/api/v1/ticket?date=20240414T162817&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29266&fm=212756211994984&tin=02508201610067®Number=0000138879044617&sum=65300 [16:28:07]StoreToDocumentArchive [16:28:07]shift 116 fd 29266 [16:28:07]save to /storage/0116/doc_00029266 [16:28:07]save last doc name /storage/0116/doc_00029266 to /storage/kkm_last_doc_name [16:28:07]save OK [16:28:07]Clear old archive folders... [16:28:07]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:28:07]tlvbuf is 011F6B40 [16:28:07]SAM_PROTO_ClearQueue [16:28:07]wFMCommunicate request_size=4 [16:28:07]MH_SAM_APDU [16:28:07]CAPDU: 80 09 00 00 [16:28:07]Write to MH i2c: E2 08 00 A5 A4 80 09 00 00 00 00 00 00 BB [16:28:07]Write i2c OK [16:28:07]MH_I2C_Read... [16:28:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:28:07]Read from MH i2c: E2 [16:28:07]MH_I2C_Read... [16:28:07]Read from MH i2c: E2 03 00 [16:28:07]MH_I2C_Read... [16:28:07]Read from MH i2c: E2 03 00 A5 A4 00 90 00 BD [16:28:07]RAPDU: 90 00 [16:28:07]wFMCommunicate OK [16:28:07]SAM_PROTO_ClearQueue done [16:28:07]KKMCreateOFDPacket [16:28:07]OFDProtocolAddRootSTLVToBuf [16:28:07]FM_MakeSignedData [16:28:07]FM_MakeSignedData [16:28:07]SAM_PROTO_SignData [16:28:07]wFMCommunicate request_size=4 [16:28:07]MH_SAM_APDU [16:28:07]CAPDU: 80 0D 01 02 [16:28:07]Write to MH i2c: E2 08 00 A6 A4 80 0D 01 02 00 00 00 00 C3 [16:28:07]Write i2c OK [16:28:07]MH_I2C_Read... [16:28:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:28:07]Read from MH i2c: E2 [16:28:07]MH_I2C_Read... [16:28:07]Read from MH i2c: E2 03 00 [16:28:07]MH_I2C_Read... [16:28:07]Read from MH i2c: E2 03 00 A6 A4 00 90 00 BE [16:28:07]RAPDU: 90 00 [16:28:07]wFMCommunicate OK [16:28:07]wFMCommunicate request_size=255 [16:28:07]MH_SAM_APDU [16:28: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 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 14 FF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 FF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 1B 00 00 00 00 07 04 06 00 14 FF 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 21 04 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 52 72 00 00 35 04 06 00 [16:28:07]Write to MH i2c: E2 02 01 A7 A4 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 14 FF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 FF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 1B 00 00 00 00 07 04 06 00 14 FF 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 21 04 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 52 72 00 00 35 04 06 00 00 00 A3 [16:28:07]Write i2c OK [16:28:07]MH_I2C_Read... [16:28:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:28:07]Read from MH i2c: E2 [16:28:07]MH_I2C_Read... [16:28:07]Read from MH i2c: E2 03 00 [16:28:07]MH_I2C_Read... [16:28:07]Read from MH i2c: E2 03 00 A7 A4 00 90 00 BF [16:28:07]RAPDU: 90 00 [16:28:07]wFMCommunicate OK [16:28:07]wFMCommunicate request_size=11 [16:28:07]MH_SAM_APDU [16:28:07]CAPDU: 80 0D 02 02 06 C1 80 2A 70 91 68 [16:28:07]Write to MH i2c: E2 0E 00 A8 A4 80 0D 02 02 06 00 C1 80 2A 70 91 68 00 00 A6 [16:28:07]Write i2c OK [16:28:07]MH_I2C_Read... [16:28:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:28:07]Read from MH i2c: E2 [16:28:07]MH_I2C_Read... [16:28:07]Read from MH i2c: E2 03 00 [16:28:07]MH_I2C_Read... [16:28:07]Read from MH i2c: E2 03 00 A8 A4 00 90 00 C0 [16:28:07]RAPDU: 90 00 [16:28:07]wFMCommunicate OK [16:28:07]wFMCommunicate request_size=4 [16:28:07]MH_SAM_APDU [16:28:07]CAPDU: 80 0D 03 02 [16:28:07]Write to MH i2c: E2 08 00 A9 A4 80 0D 03 02 00 00 00 00 C8 [16:28:07]Write i2c OK [16:28:07]MH_I2C_Read... [16:28:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:28:07]Read from MH i2c: E2 [16:28:07]MH_I2C_Read... [16:28:07]Read from MH i2c: E2 0B 00 [16:28:07]MH_I2C_Read... [16:28:07]Read from MH i2c: E2 0B 00 A9 A4 00 4E 5E 49 47 58 F1 DC B0 90 00 DA [16:28:07]RAPDU: 4E 5E 49 47 58 F1 DC B0 90 00 [16:28:07]wFMCommunicate OK [16:28:07]SAM_PROTO_SignData done [16:28:07]FM_MakeSignedData done [16:28:07]CreateOFDProtocolMessage [16:28:07]wFMCommunicate request_size=4 [16:28:07]MH_SAM_APDU [16:28:07]CAPDU: 80 11 00 00 [16:28:07]Write to MH i2c: E2 08 00 AA A4 80 11 00 00 00 00 00 00 C8 [16:28:07]Write i2c OK [16:28:07]MH_I2C_Read... [16:28:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:28:07]Read from MH i2c: E2 [16:28:07]MH_I2C_Read... [16:28:07]Read from MH i2c: E2 17 00 [16:28:07]MH_I2C_Read... [16:28:07]Read from MH i2c: E2 17 00 AA A4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 17 [16:28:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:28:07]wFMCommunicate OK [16:28:07]CreateOFDProtocolMessage done [16:28:07]OFDSenderStorePacket 29266 [16:28:07]StoreOFDPacket docnum=29266 [16:28:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 07 E2 08 01 D3 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 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 14 FF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 FF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 1B 00 00 00 00 07 04 06 00 14 FF 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 21 04 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 52 72 00 00 35 04 06 00 C1 80 2A 70 91 68 4E 5E 49 47 58 F1 DC B0 [16:28:07]CheckFolder [16:28:07]dirname=/storage/ofd_packets [16:28:07]CheckFolder done [16:28:07]ProducePacketName [16:28:07]name=ofd_packets/00029266 [16:28:07]NVStorageSaveData ofd_packets/00029266 [16:28:07]File name is /storage/ofd_packets/00029266 [16:28:07]Write 302 bytes [16:28:07]NVStorageSaveData done [16:28:07]OFDSenderStorePacket done [16:28:07]KKMCreateOFDPacket done [16:28:07]NVStorageSaveData kkm_last_timestamp [16:28:07]File name is /storage/kkm_last_timestamp [16:28:07]Write 4 bytes [16:28:07]NVStorageSaveData done [16:28:07]ExternCall_PrintAddStr [16:28:07]wPrintStart [16:28:07]Write to MH i2c: 01 00 00 AB A4 4F [16:28:07]Write i2c OK [16:28:07]MH_I2C_Read... [16:28:07]Read from MH i2c: 01 [16:28:07]MH_I2C_Read... [16:28:07]Read from MH i2c: 01 07 00 [16:28:07]MH_I2C_Read... [16:28:07]Read from MH i2c: 01 07 00 AB A4 00 00 00 00 00 FF 0F 64 [16:28:07]RasterBufferAndPrint [16:28:07]line Счет N : (1)347653 [16:28:07]line ИНН: 02508201610067 [16:28:07]line Контрольно-Кассовый Чек [16:28:07]line ПРОДАЖА [16:28:07]line ТРК (МРК, ГНК) : 12 [16:28:07]line Товар: 2710124130 [16:28:07]line SUPER-92-К-5 [16:28:07]line 10.000 * 65.30 [16:28:07]line = 653.00 [16:28:07]line НДС 12% НСП 1% [16:28:07]line > о реализуемом товаре [16:28:07]line ИТОГО: 653.00 [16:28:07]line НСП 1% : 5.78 [16:28:07]line НДС 12% : 69.34 [16:28:07]line Наличными: 653.00 [16:28:07]line Безнал.: 0.00 [16:28:07]line Место: АЗС № 108 "Партнер Нефть" [16:28:07]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [16:28:07]line СНО: Общий режим [16:28:07]line Чек 176 14.04.2024 16:28 [16:28:07]line Смена: 116 ФФД: 1.0 [16:28:07]line ЗНМ: 0300000027 [16:28:07]line РНМ: 0000138879044617 [16:28:08]line Версия ККМ: 001 [16:28:08]line ФМ: 0000000000963154 [16:28:08]line ФД: 29266 [16:28:08]line ФПД: 212756211994984 [16:28:08]line 1/tax-web-control/client/api/v1/ticket?date=20240414T162817&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29266&fm=212756211994984&tin=02508201610067®Number=0000138879044617&sum=65300 [16:28:08]OFD Sender: Processing packet 29266 [packets to send 8, broken 7] [16:28:08]ProducePacketName [16:28:08]name=ofd_packets/00029266 [16:28:08]OFD Sender: To server: pG, [16:28:08]CommunicateWithHost lk.salyk.kg:30040 [16:28:08]ConnectInit lk.salyk.kg [16:28:08]written 0, free lines is 4095 [16:28:08]Connected sock=10 [16:28:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 07 E2 08 01 D3 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 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 14 FF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 FF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 1B 00 00 00 00 07 04 06 00 14 FF 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 21 04 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 52 72 00 00 35 04 06 00 C1 80 2A 70 91 68 4E 5E 49 47 58 F1 DC B0 [16:28:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 CE 38 47 00 2A 27 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 52 72 00 00 F4 03 04 00 C4 AE 1B 66 B6 04 01 00 00 92 9F B6 5F C7 D1 E2 4C [16:28:08]CommunicateWithHost err = 0 [16:28:08]CheckOFDResponse [16:28:08]1017 (14) - 77093643461234 [16:28:08]1041 (16) - 0000000000963154 [16:28:08]1040 (4) - 29266 [16:28:08]1012 (4) - 14.04.2024 10:24 [16:28:08]1206 (1) - 0 [16:28:08]OFD Sender: Remove packet 29266 [16:28:08]ProducePacketName [16:28:08]name=ofd_packets/00029266 [16:28:08]NVStorageDeleteData [16:28:08]Write to MH i2c: 01 00 00 D2 A4 76 [16:28:08]Write i2c OK [16:28:08]MH_I2C_Read... [16:28:08]Read from MH i2c: 01 [16:28:08]MH_I2C_Read... [16:28:08]Read from MH i2c: 01 07 00 [16:28:08]MH_I2C_Read... [16:28:08]Read from MH i2c: 01 07 00 D2 A4 00 00 00 00 00 0A 0D 94 [16:28:08]RasterBufferAndPrint [16:28:08]line [16:28:08]line [16:28:08]line [16:28:08]line [16:28:08]line [16:28:08]written 0, free lines is 3344 [16:28:08]MH_Cut [16:28:08]Write to MH i2c: D1 01 00 D9 A4 01 4F [16:28:08]Write i2c OK [16:28:08]MH_I2C_Read... [16:28:08]Read from MH i2c: D1 [16:28:08]MH_I2C_Read... [16:28:08]Read from MH i2c: D1 01 00 [16:28:08]MH_I2C_Read... [16:28:08]Read from MH i2c: D1 01 00 D9 A4 00 4E [16:28:08]Write to MH i2c: 01 00 00 DA A4 7E [16:28:08]Write i2c OK [16:28:08]MH_I2C_Read... [16:28:08]OFD Sender: No OFD packet to send [16:28:09]*** Cut start [16:28:09]*** Partial cut [16:28:09]*** CUTSNS_PIN = 1 [16:28:09]*** CUTSNS_PIN = 0 [16:28:09]*** Brake cut motor [16:28:10]Read from MH i2c: 01 [16:28:10]MH_I2C_Read... [16:28:10]*** Stop cut motor [16:28:10]*** Cut end [16:28:10]Read from MH i2c: 01 07 00 [16:28:10]MH_I2C_Read... [16:28:10]Read from MH i2c: 01 07 00 DA A4 00 00 00 00 00 FF 0F 93 [16:28:10]process_action close_receipt done [16:28:10]requested_data is exist [16:28:10]produce_requested_data [16:28:10]requested_item fm.sn is exist - process it [16:28:10]wFMCommunicate request_size=4 [16:28:10]MH_SAM_APDU [16:28:10]CAPDU: 80 11 00 00 [16:28:10]Write to MH i2c: E2 08 00 DB A4 80 11 00 00 00 00 00 00 F9 [16:28:10]Write i2c OK [16:28:10]MH_I2C_Read... [16:28:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:28:10]Read from MH i2c: E2 [16:28:10]MH_I2C_Read... [16:28:10]Read from MH i2c: E2 17 00 [16:28:10]MH_I2C_Read... [16:28:10]Read from MH i2c: E2 17 00 DB A4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 48 [16:28:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:28:10]wFMCommunicate OK [16:28:10]requested_item fd.num is exist - process it [16:28:10]SAM_PROTO_GetFieldsCounters [16:28:10]wFMCommunicate request_size=4 [16:28:10]MH_SAM_APDU [16:28:10]CAPDU: 80 13 00 00 [16:28:10]Write to MH i2c: E2 08 00 DC A4 80 13 00 00 00 00 00 00 FC [16:28:10]Write i2c OK [16:28:10]MH_I2C_Read... [16:28:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:28:10]Read from MH i2c: E2 [16:28:10]MH_I2C_Read... [16:28:10]Read from MH i2c: E2 62 00 [16:28:10]MH_I2C_Read... [16:28:10]Read from MH i2c: E2 62 00 DC A4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 52 72 00 00 0E 04 04 00 74 00 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 82 [16:28:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 52 72 00 00 0E 04 04 00 74 00 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 [16:28:10]wFMCommunicate OK [16:28:10]SAM_PROTO_GetFieldsCounters done [16:28:10]requested_item shift.num is exist - process it [16:28:10]requested_item shift.opened is exist - process it [16:28:10]req_shift_opened [16:28:10]FM_GetShiftState [16:28:10]SAM_PROTO_GetShiftState [16:28:10]wFMCommunicate request_size=4 [16:28:10]MH_SAM_APDU [16:28:10]CAPDU: 80 13 01 00 [16:28:10]Write to MH i2c: E2 08 00 DD A4 80 13 01 00 00 00 00 00 FE [16:28:10]Write i2c OK [16:28:10]MH_I2C_Read... [16:28:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:28:10]Read from MH i2c: E2 [16:28:10]MH_I2C_Read... [16:28:10]Read from MH i2c: E2 0E 00 [16:28:10]MH_I2C_Read... [16:28:10]Read from MH i2c: E2 0E 00 DD A4 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 AA [16:28:10]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [16:28:10]wFMCommunicate OK [16:28:10]SAM_PROTO_GetShiftState done [16:28:10]FM_GetShiftState done [16:28:10]req_shift_opened done [16:28:10]requested_item shift.open_date is exist - process it [16:28:10]req_shift_open_date [16:28:10]req_shift_open_date done [16:28:10]produce_requested_data done [16:28:10]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29266,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [16:28:10]process_action_free close_receipt [16:28:10]json_value_free [16:28:10]json_value_free done [16:28:10]process_json_proto returns [16:28:10]Send response to host [16:28:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29266,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [16:28:10]free response buf [16:28:10]execute_script done [16:28:10]execute_script returns [16:28:10]free content buf [16:28:10]Sock 9.Close socket [16:28:10]Sock 9.Thread stoped [16:28:13]OFD Sender: No OFD packet to send [16:28:19]OFD Sender: No OFD packet to send [16:28:24]OFD Sender: No OFD packet to send [16:28:29]OFD Sender: No OFD packet to send [16:28:34]OFD Sender: No OFD packet to send [16:28:39]OFD Sender: No OFD packet to send [16:28:44]OFD Sender: No OFD packet to send [16:28:49]OFD Sender: No OFD packet to send [16:28:54]OFD Sender: No OFD packet to send [16:28:59]OFD Sender: No OFD packet to send [16:29:04]OFD Sender: No OFD packet to send [16:29:09]OFD Sender: No OFD packet to send [16:29:14]OFD Sender: No OFD packet to send [16:29:19]OFD Sender: No OFD packet to send [16:29:24]OFD Sender: No OFD packet to send [16:29:29]OFD Sender: No OFD packet to send [16:29:34]OFD Sender: No OFD packet to send [16:29:39]OFD Sender: No OFD packet to send [16:29:44]OFD Sender: No OFD packet to send [16:29:49]OFD Sender: No OFD packet to send [16:29:54]OFD Sender: No OFD packet to send [16:29:59]OFD Sender: No OFD packet to send [16:30:04]OFD Sender: No OFD packet to send [16:30:09]OFD Sender: No OFD packet to send [16:30:14]OFD Sender: No OFD packet to send [16:30:19]OFD Sender: No OFD packet to send [16:30:24]OFD Sender: No OFD packet to send [16:30:29]OFD Sender: No OFD packet to send [16:30:34]OFD Sender: No OFD packet to send [16:30:39]OFD Sender: No OFD packet to send [16:30:44]OFD Sender: No OFD packet to send [16:30:49]OFD Sender: No OFD packet to send [16:30:54]OFD Sender: No OFD packet to send [16:30:59]OFD Sender: No OFD packet to send [16:31:04]OFD Sender: No OFD packet to send [16:31:09]OFD Sender: No OFD packet to send [16:31:14]OFD Sender: No OFD packet to send [16:31:19]OFD Sender: No OFD packet to send [16:31:24]OFD Sender: No OFD packet to send [16:31:29]OFD Sender: No OFD packet to send [16:31:34]OFD Sender: No OFD packet to send [16:31:39]OFD Sender: No OFD packet to send [16:31:44]OFD Sender: No OFD packet to send [16:31:49]OFD Sender: No OFD packet to send [16:31:54]OFD Sender: No OFD packet to send [16:31:59]OFD Sender: No OFD packet to send [16:32:04]OFD Sender: No OFD packet to send [16:32:09]OFD Sender: No OFD packet to send [16:32:14]OFD Sender: No OFD packet to send [16:32:19]OFD Sender: No OFD packet to send [16:32:24]OFD Sender: No OFD packet to send [16:32:29]OFD Sender: No OFD packet to send [16:32:34]OFD Sender: No OFD packet to send [16:32:38]accept exits with 7 [16:32:38]New connection [16:32:38]New thread 3066928484 created [16:32:38]Thread 3066785124 joined [16:32:38]Waiting for new connection... [16:32:38] Sock 7.Parse request [16:32:38]Sock 7.Check first char [16:32:38]Sock 7.First char is OK [16:32:38]request: POST /json_proto HTTP/1.0 [16:32:38]Method: POST [16:32:38]URL: /json_proto [16:32:38]Method is POST - this is cgi request [16:32:38]url: /json_proto [16:32:38]query_string will be loaded in cgi processing [16:32:38]execute_cgi json_proto POST (null) [16:32:38]execute_cgi path=json_proto method=POST [16:32:38]POST find Content-Length [16:32:38]Host: 172.17.33.3:8080 [16:32:38]Content-Length: 677 [16:32:38]Content-Type: application/json [16:32:38] [16:32:38]POST finish read [16:32:38]Found Content-Length = 677 [16:32:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347654", "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.890, "sum" : 250.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:32:38]execute_script... [16:32: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)347654", "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.890, "sum" : 250.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:32:38]POST & json_proto [16:32:38]process_json_proto [16:32:38]json parsed OK: [16:32:38]protocol is kg_v1.0 [16:32:38]action value=close_receipt [16:32:38]process_action close_receipt [16:32:38]cmd_close_receipt [16:32:38]MH_GetDate [16:32:38]Write to MH i2c: F0 00 00 DE A4 71 [16:32:38]Write i2c OK [16:32:38]MH_I2C_Read... [16:32:38]Read from MH i2c: F0 [16:32:38]MH_I2C_Read... [16:32:38]Read from MH i2c: F0 09 00 [16:32:38]MH_I2C_Read... [16:32:38]Read from MH i2c: F0 09 00 DE A4 00 31 05 1C 66 23 5B 8F 65 A4 [16:32:38]GetLastDocTimeStamp 1713112097 [16:32:38]current date 1713112369 [16:32:38]FM_GetShiftState [16:32:38]SAM_PROTO_GetShiftState [16:32:38]wFMCommunicate request_size=4 [16:32:38]MH_SAM_APDU [16:32:38]CAPDU: 80 13 01 00 [16:32:38]Write to MH i2c: E2 08 00 DF A4 80 13 01 00 00 00 00 00 00 [16:32:38]Write i2c OK [16:32:38]MH_I2C_Read... [16:32:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:32:38]Read from MH i2c: E2 [16:32:38]MH_I2C_Read... [16:32:38]Read from MH i2c: E2 0E 00 [16:32:38]MH_I2C_Read... [16:32:38]Read from MH i2c: E2 0E 00 DF A4 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 AC [16:32:38]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [16:32:38]wFMCommunicate OK [16:32:38]SAM_PROTO_GetShiftState done [16:32:38]FM_GetShiftState done [16:32:38]opened in 1713053951 [16:32:38]opened+sec_in_day 1713140351 [16:32:38]quantity*price = 25012 [16:32:38]sum+1 = 25014 [16:32:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.56 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 177 14.04.2024 16:32 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29267 ФПД: 78771919039633 1/tax-web-control/client/api/v1/ticket?date=20240414T163249&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29267&fm=78771919039633&tin=02508201610067®Number=0000138879044617&sum=25000 [16:32:39]StoreToDocumentArchive [16:32:39]shift 116 fd 29267 [16:32:39]save to /storage/0116/doc_00029267 [16:32:39]save last doc name /storage/0116/doc_00029267 to /storage/kkm_last_doc_name [16:32:39]save OK [16:32:39]Clear old archive folders... [16:32:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:32:39]tlvbuf is 011F6750 [16:32:39]SAM_PROTO_ClearQueue [16:32:39]wFMCommunicate request_size=4 [16:32:39]MH_SAM_APDU [16:32:39]CAPDU: 80 09 00 00 [16:32:39]Write to MH i2c: E2 08 00 EC A4 80 09 00 00 00 00 00 00 02 [16:32:39]Write i2c OK [16:32:39]MH_I2C_Read... [16:32:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:32:39]Read from MH i2c: E2 [16:32:39]MH_I2C_Read... [16:32:39]Read from MH i2c: E2 03 00 [16:32:39]MH_I2C_Read... [16:32:39]Read from MH i2c: E2 03 00 EC A4 00 90 00 04 [16:32:39]RAPDU: 90 00 [16:32:39]wFMCommunicate OK [16:32:39]SAM_PROTO_ClearQueue done [16:32:39]KKMCreateOFDPacket [16:32:39]OFDProtocolAddRootSTLVToBuf [16:32:39]FM_MakeSignedData [16:32:39]FM_MakeSignedData [16:32:39]SAM_PROTO_SignData [16:32:39]wFMCommunicate request_size=4 [16:32:39]MH_SAM_APDU [16:32:39]CAPDU: 80 0D 01 02 [16:32:39]Write to MH i2c: E2 08 00 ED A4 80 0D 01 02 00 00 00 00 0A [16:32:39]Write i2c OK [16:32:39]MH_I2C_Read... [16:32:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:32:39]Read from MH i2c: E2 [16:32:39]MH_I2C_Read... [16:32:39]Read from MH i2c: E2 03 00 [16:32:39]MH_I2C_Read... [16:32:39]Read from MH i2c: E2 03 00 ED A4 00 90 00 05 [16:32:39]RAPDU: 90 00 [16:32:39]wFMCommunicate OK [16:32:39]wFMCommunicate request_size=255 [16:32:39]MH_SAM_APDU [16:32: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 32 0F 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 B5 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 31 05 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 53 72 00 00 35 04 06 00 47 [16:32:39]Write to MH i2c: E2 02 01 EE A4 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 0F 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 B5 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 31 05 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 53 72 00 00 35 04 06 00 47 00 00 01 [16:32:39]Write i2c OK [16:32:39]MH_I2C_Read... [16:32:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:32:39]Read from MH i2c: E2 [16:32:39]MH_I2C_Read... [16:32:39]Read from MH i2c: E2 03 00 [16:32:39]MH_I2C_Read... [16:32:39]Read from MH i2c: E2 03 00 EE A4 00 90 00 06 [16:32:39]RAPDU: 90 00 [16:32:39]wFMCommunicate OK [16:32:39]wFMCommunicate request_size=10 [16:32:39]MH_SAM_APDU [16:32:39]CAPDU: 80 0D 02 02 05 A4 84 40 AC 91 [16:32:39]Write to MH i2c: E2 0D 00 EF A4 80 0D 02 02 05 00 A4 84 40 AC 91 00 00 BC [16:32:39]Write i2c OK [16:32:39]MH_I2C_Read... [16:32:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:32:39]Read from MH i2c: E2 [16:32:39]MH_I2C_Read... [16:32:39]Read from MH i2c: E2 03 00 [16:32:39]MH_I2C_Read... [16:32:39]Read from MH i2c: E2 03 00 EF A4 00 90 00 07 [16:32:39]RAPDU: 90 00 [16:32:39]wFMCommunicate OK [16:32:39]wFMCommunicate request_size=4 [16:32:39]MH_SAM_APDU [16:32:39]CAPDU: 80 0D 03 02 [16:32:39]Write to MH i2c: E2 08 00 F0 A4 80 0D 03 02 00 00 00 00 0F [16:32:39]Write i2c OK [16:32:39]MH_I2C_Read... [16:32:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:32:39]Read from MH i2c: E2 [16:32:39]MH_I2C_Read... [16:32:39]Read from MH i2c: E2 0B 00 [16:32:39]MH_I2C_Read... [16:32:39]Read from MH i2c: E2 0B 00 F0 A4 00 9A F1 0D 8B 4D E6 C3 E6 90 00 0F [16:32:39]RAPDU: 9A F1 0D 8B 4D E6 C3 E6 90 00 [16:32:39]wFMCommunicate OK [16:32:39]SAM_PROTO_SignData done [16:32:39]FM_MakeSignedData done [16:32:39]CreateOFDProtocolMessage [16:32:39]wFMCommunicate request_size=4 [16:32:39]MH_SAM_APDU [16:32:39]CAPDU: 80 11 00 00 [16:32:39]Write to MH i2c: E2 08 00 F1 A4 80 11 00 00 00 00 00 00 0F [16:32:39]Write i2c OK [16:32:39]MH_I2C_Read... [16:32:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:32:40]Read from MH i2c: E2 [16:32:40]MH_I2C_Read... [16:32:40]Read from MH i2c: E2 17 00 [16:32:40]MH_I2C_Read... [16:32:40]Read from MH i2c: E2 17 00 F1 A4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 5E [16:32:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:32:40]wFMCommunicate OK [16:32:40]CreateOFDProtocolMessage done [16:32:40]OFDSenderStorePacket 29267 [16:32:40]StoreOFDPacket docnum=29267 [16:32:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 7F F1 07 01 6E 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 32 0F 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 B5 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 31 05 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 53 72 00 00 35 04 06 00 47 A4 84 40 AC 91 9A F1 0D 8B 4D E6 C3 E6 [16:32:40]CheckFolder [16:32:40]dirname=/storage/ofd_packets [16:32:40]CheckFolder done [16:32:40]ProducePacketName [16:32:40]name=ofd_packets/00029267 [16:32:40]NVStorageSaveData ofd_packets/00029267 [16:32:40]File name is /storage/ofd_packets/00029267 [16:32:40]Write 301 bytes [16:32:40]NVStorageSaveData done [16:32:40]OFDSenderStorePacket done [16:32:40]KKMCreateOFDPacket done [16:32:40]NVStorageSaveData kkm_last_timestamp [16:32:40]File name is /storage/kkm_last_timestamp [16:32:40]Write 4 bytes [16:32:40]NVStorageSaveData done [16:32:40]ExternCall_PrintAddStr [16:32:40]wPrintStart [16:32:40]Write to MH i2c: 01 00 00 F2 A4 96 [16:32:40]OFD Sender: Processing packet 29267 [packets to send 8, broken 7] [16:32:40]ProducePacketName [16:32:40]name=ofd_packets/00029267 [16:32:40]OFD Sender: To server: pG, [16:32:40]CommunicateWithHost lk.salyk.kg:30040 [16:32:40]ConnectInit lk.salyk.kg [16:32:40]Write i2c OK [16:32:40]MH_I2C_Read... [16:32:40]Read from MH i2c: 01 [16:32:40]MH_I2C_Read... [16:32:40]Read from MH i2c: 01 07 00 [16:32:40]MH_I2C_Read... [16:32:40]Read from MH i2c: 01 07 00 F2 A4 00 00 00 00 00 FF 0F AB [16:32:40]RasterBufferAndPrint [16:32:40]line Счет N : (1)347654 [16:32:40]line ИНН: 02508201610067 [16:32:40]line Контрольно-Кассовый Чек [16:32:40]line ПРОДАЖА [16:32:40]line ТРК (МРК, ГНК) : 32 [16:32:40]line Товар: 2710124130 [16:32:40]line Аи-92-К-5 [16:32:40]line 3.890 * 64.30 [16:32:40]line = 250.13 [16:32:40]line НДС 12% НСП 1% [16:32:40]line > о реализуемом товаре [16:32:40]line ОКРУГЛЕНИЕ: -0.13 [16:32:40]line ИТОГО: 250.00 [16:32:40]line Внесено: 250.00 [16:32:40]line СДАЧА: 0.00 [16:32:40]line НСП 1% : 2.21 [16:32:40]line НДС 12% : 26.56 [16:32:40]line Наличными: 250.00 [16:32:40]line Безнал.: 0.00 [16:32:40]line Место: АЗС № 108 "Партнер Нефть" [16:32:40]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [16:32:40]line СНО: Общий режим [16:32:40]line Чек 177 14.04.2024 16:32 [16:32:40]line Смена: 116 ФФД: 1.0 [16:32:40]line ЗНМ: 0300000027 [16:32:40]line РНМ: 0000138879044617 [16:32:40]line Версия ККМ: 001 [16:32:40]line ФМ: 0000000000963154 [16:32:40]line ФД: 29267 [16:32:40]line ФПД: 78771919039633 [16:32:40]line 1/tax-web-control/client/api/v1/ticket?date=20240414T163249&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29267&fm=78771919039633&tin=02508201610067®Number=0000138879044617&sum=25000 [16:32:40]Connected sock=11 [16:32:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 7F F1 07 01 6E 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 32 0F 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 B5 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 31 05 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 53 72 00 00 35 04 06 00 47 A4 84 40 AC 91 9A F1 0D 8B 4D E6 C3 E6 [16:32:40]written 0, free lines is 4095 [16:32:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 35 9A 47 00 3C 3E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 53 72 00 00 F4 03 04 00 D4 AF 1B 66 B6 04 01 00 00 83 C4 F4 C3 43 E9 F9 05 [16:32:40]CommunicateWithHost err = 0 [16:32:40]CheckOFDResponse [16:32:40]1017 (14) - 77093643461234 [16:32:40]1041 (16) - 0000000000963154 [16:32:40]1040 (4) - 29267 [16:32:40]1012 (4) - 14.04.2024 10:28 [16:32:40]1206 (1) - 0 [16:32:40]OFD Sender: Remove packet 29267 [16:32:40]ProducePacketName [16:32:40]name=ofd_packets/00029267 [16:32:40]NVStorageDeleteData [16:32:40]Write to MH i2c: 01 00 00 1C A5 C1 [16:32:40]Write i2c OK [16:32:40]MH_I2C_Read... [16:32:40]Read from MH i2c: 01 [16:32:40]MH_I2C_Read... [16:32:40]Read from MH i2c: 01 07 00 [16:32:40]MH_I2C_Read... [16:32:40]Read from MH i2c: 01 07 00 1C A5 00 00 00 00 00 C6 0C 9A [16:32:40]RasterBufferAndPrint [16:32:40]line [16:32:40]line [16:32:40]line [16:32:40]line [16:32:40]line [16:32:40]written 0, free lines is 3274 [16:32:40]MH_Cut [16:32:40]Write to MH i2c: D1 01 00 23 A5 01 9A [16:32:40]Write i2c OK [16:32:40]MH_I2C_Read... [16:32:40]Read from MH i2c: D1 [16:32:40]MH_I2C_Read... [16:32:40]Read from MH i2c: D1 01 00 [16:32:40]MH_I2C_Read... [16:32:40]Read from MH i2c: D1 01 00 23 A5 00 99 [16:32:40]Write to MH i2c: 01 00 00 24 A5 C9 [16:32:40]Write i2c OK [16:32:40]MH_I2C_Read... [16:32:41]OFD Sender: No OFD packet to send [16:32:41]*** Cut start [16:32:41]*** Partial cut [16:32:41]*** CUTSNS_PIN = 1 [16:32:41]*** CUTSNS_PIN = 0 [16:32:41]*** Brake cut motor [16:32:42]Read from MH i2c: 01 [16:32:42]MH_I2C_Read... [16:32:42]*** Stop cut motor [16:32:42]*** Cut end [16:32:42]Read from MH i2c: 01 07 00 [16:32:42]MH_I2C_Read... [16:32:42]Read from MH i2c: 01 07 00 24 A5 00 00 00 00 00 FF 0F DE [16:32:42]process_action close_receipt done [16:32:42]requested_data is exist [16:32:42]produce_requested_data [16:32:42]requested_item fm.sn is exist - process it [16:32:42]wFMCommunicate request_size=4 [16:32:42]MH_SAM_APDU [16:32:42]CAPDU: 80 11 00 00 [16:32:42]Write to MH i2c: E2 08 00 25 A5 80 11 00 00 00 00 00 00 44 [16:32:42]Write i2c OK [16:32:42]MH_I2C_Read... [16:32:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:32:42]Read from MH i2c: E2 [16:32:42]MH_I2C_Read... [16:32:42]Read from MH i2c: E2 17 00 [16:32:42]MH_I2C_Read... [16:32:42]Read from MH i2c: E2 17 00 25 A5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 93 [16:32:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:32:42]wFMCommunicate OK [16:32:42]requested_item fd.num is exist - process it [16:32:42]SAM_PROTO_GetFieldsCounters [16:32:42]wFMCommunicate request_size=4 [16:32:42]MH_SAM_APDU [16:32:42]CAPDU: 80 13 00 00 [16:32:42]Write to MH i2c: E2 08 00 26 A5 80 13 00 00 00 00 00 00 47 [16:32:42]Write i2c OK [16:32:42]MH_I2C_Read... [16:32:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:32:42]Read from MH i2c: E2 [16:32:42]MH_I2C_Read... [16:32:42]Read from MH i2c: E2 62 00 [16:32:42]MH_I2C_Read... [16:32:42]Read from MH i2c: E2 62 00 26 A5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 53 72 00 00 0E 04 04 00 74 00 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 D1 [16:32:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 53 72 00 00 0E 04 04 00 74 00 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 [16:32:42]wFMCommunicate OK [16:32:42]SAM_PROTO_GetFieldsCounters done [16:32:42]requested_item shift.num is exist - process it [16:32:42]requested_item shift.opened is exist - process it [16:32:42]req_shift_opened [16:32:42]FM_GetShiftState [16:32:42]SAM_PROTO_GetShiftState [16:32:42]wFMCommunicate request_size=4 [16:32:42]MH_SAM_APDU [16:32:42]CAPDU: 80 13 01 00 [16:32:42]Write to MH i2c: E2 08 00 27 A5 80 13 01 00 00 00 00 00 49 [16:32:42]Write i2c OK [16:32:42]MH_I2C_Read... [16:32:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:32:42]Read from MH i2c: E2 [16:32:42]MH_I2C_Read... [16:32:42]Read from MH i2c: E2 0E 00 [16:32:42]MH_I2C_Read... [16:32:42]Read from MH i2c: E2 0E 00 27 A5 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 F5 [16:32:42]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [16:32:42]wFMCommunicate OK [16:32:42]SAM_PROTO_GetShiftState done [16:32:42]FM_GetShiftState done [16:32:42]req_shift_opened done [16:32:42]requested_item shift.open_date is exist - process it [16:32:42]req_shift_open_date [16:32:42]req_shift_open_date done [16:32:42]produce_requested_data done [16:32:42]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29267,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [16:32:42]process_action_free close_receipt [16:32:42]json_value_free [16:32:42]json_value_free done [16:32:42]process_json_proto returns [16:32:42]Send response to host [16:32:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29267,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [16:32:42]free response buf [16:32:42]execute_script done [16:32:42]execute_script returns [16:32:42]free content buf [16:32:42]Sock 7.Close socket [16:32:42]Sock 7.Thread stoped [16:32:46]OFD Sender: No OFD packet to send [16:32:51]OFD Sender: No OFD packet to send [16:32:56]OFD Sender: No OFD packet to send [16:33:01]OFD Sender: No OFD packet to send [16:33:06]OFD Sender: No OFD packet to send [16:33:11]OFD Sender: No OFD packet to send [16:33:16]OFD Sender: No OFD packet to send [16:33:21]OFD Sender: No OFD packet to send [16:33:26]OFD Sender: No OFD packet to send [16:33:31]OFD Sender: No OFD packet to send [16:33:36]OFD Sender: No OFD packet to send [16:33:41]OFD Sender: No OFD packet to send [16:33:46]OFD Sender: No OFD packet to send [16:33:51]OFD Sender: No OFD packet to send [16:33:56]OFD Sender: No OFD packet to send [16:34:01]OFD Sender: No OFD packet to send [16:34:06]OFD Sender: No OFD packet to send [16:34:11]OFD Sender: No OFD packet to send [16:34:16]OFD Sender: No OFD packet to send [16:34:21]OFD Sender: No OFD packet to send [16:34:26]OFD Sender: No OFD packet to send [16:34:31]OFD Sender: No OFD packet to send [16:34:36]OFD Sender: No OFD packet to send [16:34:41]OFD Sender: No OFD packet to send [16:34:46]OFD Sender: No OFD packet to send [16:34:51]OFD Sender: No OFD packet to send [16:34:56]OFD Sender: No OFD packet to send [16:35:01]OFD Sender: No OFD packet to send [16:35:06]OFD Sender: No OFD packet to send [16:35:11]OFD Sender: No OFD packet to send [16:35:16]OFD Sender: No OFD packet to send [16:35:21]OFD Sender: No OFD packet to send [16:35:25]accept exits with 9 [16:35:25]New connection [16:35:25]New thread 3066785124 created [16:35:25]Thread 3066928484 joined [16:35:25]Waiting for new connection... [16:35:25] Sock 9.Parse request [16:35:25]Sock 9.Check first char [16:35:25]Sock 9.First char is OK [16:35:25]request: POST /json_proto HTTP/1.0 [16:35:25]Method: POST [16:35:25]URL: /json_proto [16:35:25]Method is POST - this is cgi request [16:35:25]url: /json_proto [16:35:25]query_string will be loaded in cgi processing [16:35:25]execute_cgi json_proto POST (null) [16:35:25]execute_cgi path=json_proto method=POST [16:35:25]POST find Content-Length [16:35:25]Host: 172.17.33.3:8080 [16:35:25]Content-Length: 675 [16:35:25]Content-Type: application/json [16:35:25] [16:35:25]POST finish read [16:35:25]Found Content-Length = 675 [16:35:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347655", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.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" ] } } [16:35:25]execute_script... [16:35: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)347655", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.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" ] } } [16:35:25]POST & json_proto [16:35:25]process_json_proto [16:35:25]json parsed OK: [16:35:25]protocol is kg_v1.0 [16:35:25]action value=close_receipt [16:35:25]process_action close_receipt [16:35:25]cmd_close_receipt [16:35:25]MH_GetDate [16:35:25]Write to MH i2c: F0 00 00 28 A5 BC [16:35:25]Write i2c OK [16:35:25]MH_I2C_Read... [16:35:25]Read from MH i2c: F0 [16:35:25]MH_I2C_Read... [16:35:25]Read from MH i2c: F0 09 00 [16:35:25]MH_I2C_Read... [16:35:25]Read from MH i2c: F0 09 00 28 A5 00 D8 05 1C 66 23 5B 8F 65 96 [16:35:25]GetLastDocTimeStamp 1713112369 [16:35:25]current date 1713112536 [16:35:25]FM_GetShiftState [16:35:25]SAM_PROTO_GetShiftState [16:35:25]wFMCommunicate request_size=4 [16:35:25]MH_SAM_APDU [16:35:25]CAPDU: 80 13 01 00 [16:35:25]Write to MH i2c: E2 08 00 29 A5 80 13 01 00 00 00 00 00 4B [16:35:25]Write i2c OK [16:35:25]MH_I2C_Read... [16:35:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:35:25]Read from MH i2c: E2 [16:35:25]MH_I2C_Read... [16:35:25]Read from MH i2c: E2 0E 00 [16:35:25]MH_I2C_Read... [16:35:25]Read from MH i2c: E2 0E 00 29 A5 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 F7 [16:35:25]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [16:35:25]wFMCommunicate OK [16:35:25]SAM_PROTO_GetShiftState done [16:35:25]FM_GetShiftState done [16:35:25]opened in 1713053951 [16:35:25]opened+sec_in_day 1713140351 [16:35:25]quantity*price = 100039 [16:35:25]sum+1 = 100041 [16:35: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 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 178 14.04.2024 16:35 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29268 ФПД: 253764293668663 1/tax-web-control/client/api/v1/ticket?date=20240414T163536&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29268&fm=253764293668663&tin=02508201610067®Number=0000138879044617&sum=100000 [16:35:26]StoreToDocumentArchive [16:35:26]shift 116 fd 29268 [16:35:26]save to /storage/0116/doc_00029268 [16:35:26]save last doc name /storage/0116/doc_00029268 to /storage/kkm_last_doc_name [16:35:26]save OK [16:35:26]Clear old archive folders... [16:35:26]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:35:26]tlvbuf is 0121DC50 [16:35:26]SAM_PROTO_ClearQueue [16:35:26]wFMCommunicate request_size=4 [16:35:26]MH_SAM_APDU [16:35:26]CAPDU: 80 09 00 00 [16:35:26]Write to MH i2c: E2 08 00 36 A5 80 09 00 00 00 00 00 00 4D [16:35:26]Write i2c OK [16:35:26]MH_I2C_Read... [16:35:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:35:26]Read from MH i2c: E2 [16:35:26]MH_I2C_Read... [16:35:26]Read from MH i2c: E2 03 00 [16:35:26]MH_I2C_Read... [16:35:26]Read from MH i2c: E2 03 00 36 A5 00 90 00 4F [16:35:26]RAPDU: 90 00 [16:35:26]wFMCommunicate OK [16:35:26]SAM_PROTO_ClearQueue done [16:35:26]KKMCreateOFDPacket [16:35:26]OFDProtocolAddRootSTLVToBuf [16:35:26]FM_MakeSignedData [16:35:26]FM_MakeSignedData [16:35:26]SAM_PROTO_SignData [16:35:26]wFMCommunicate request_size=4 [16:35:26]MH_SAM_APDU [16:35:26]CAPDU: 80 0D 01 02 [16:35:26]Write to MH i2c: E2 08 00 37 A5 80 0D 01 02 00 00 00 00 55 [16:35:26]Write i2c OK [16:35:26]MH_I2C_Read... [16:35:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:35:26]Read from MH i2c: E2 [16:35:26]MH_I2C_Read... [16:35:26]Read from MH i2c: E2 03 00 [16:35:26]MH_I2C_Read... [16:35:26]Read from MH i2c: E2 03 00 37 A5 00 90 00 50 [16:35:26]RAPDU: 90 00 [16:35:26]wFMCommunicate OK [16:35:26]wFMCommunicate request_size=255 [16:35:26]MH_SAM_APDU [16:35: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 2D 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 B2 00 00 00 F4 03 04 00 D8 05 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 54 72 00 00 35 04 06 00 [16:35:26]Write to MH i2c: E2 02 01 38 A5 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 B2 00 00 00 F4 03 04 00 D8 05 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 54 72 00 00 35 04 06 00 00 00 DD [16:35:26]Write i2c OK [16:35:26]MH_I2C_Read... [16:35:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:35:26]Read from MH i2c: E2 [16:35:26]MH_I2C_Read... [16:35:26]Read from MH i2c: E2 03 00 [16:35:26]MH_I2C_Read... [16:35:26]Read from MH i2c: E2 03 00 38 A5 00 90 00 51 [16:35:26]RAPDU: 90 00 [16:35:26]wFMCommunicate OK [16:35:26]wFMCommunicate request_size=11 [16:35:26]MH_SAM_APDU [16:35:26]CAPDU: 80 0D 02 02 06 E6 CC 1A 94 AF 37 [16:35:26]Write to MH i2c: E2 0E 00 39 A5 80 0D 02 02 06 00 E6 CC 1A 94 AF 37 00 00 AA [16:35:26]Write i2c OK [16:35:26]MH_I2C_Read... [16:35:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:35:26]Read from MH i2c: E2 [16:35:26]MH_I2C_Read... [16:35:26]Read from MH i2c: E2 03 00 [16:35:26]MH_I2C_Read... [16:35:26]Read from MH i2c: E2 03 00 39 A5 00 90 00 52 [16:35:26]RAPDU: 90 00 [16:35:26]wFMCommunicate OK [16:35:26]wFMCommunicate request_size=4 [16:35:26]MH_SAM_APDU [16:35:26]CAPDU: 80 0D 03 02 [16:35:26]Write to MH i2c: E2 08 00 3A A5 80 0D 03 02 00 00 00 00 5A [16:35:26]Write i2c OK [16:35:26]MH_I2C_Read... [16:35:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:35:26]Read from MH i2c: E2 [16:35:26]MH_I2C_Read... [16:35:26]Read from MH i2c: E2 0B 00 [16:35:26]MH_I2C_Read... [16:35:26]Read from MH i2c: E2 0B 00 3A A5 00 DD D4 8A 72 0A 9B 1E 74 90 00 3F [16:35:26]RAPDU: DD D4 8A 72 0A 9B 1E 74 90 00 [16:35:26]wFMCommunicate OK [16:35:26]SAM_PROTO_SignData done [16:35:26]FM_MakeSignedData done [16:35:26]CreateOFDProtocolMessage [16:35:26]wFMCommunicate request_size=4 [16:35:26]MH_SAM_APDU [16:35:26]CAPDU: 80 11 00 00 [16:35:26]Write to MH i2c: E2 08 00 3B A5 80 11 00 00 00 00 00 00 5A [16:35:26]Write i2c OK [16:35:26]MH_I2C_Read... [16:35:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:35:26]Read from MH i2c: E2 [16:35:26]MH_I2C_Read... [16:35:26]Read from MH i2c: E2 17 00 [16:35:26]MH_I2C_Read... [16:35:26]Read from MH i2c: E2 17 00 3B A5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A9 [16:35:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:35:26]wFMCommunicate OK [16:35:26]CreateOFDProtocolMessage done [16:35:26]OFDSenderStorePacket 29268 [16:35:26]StoreOFDPacket docnum=29268 [16:35:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 BF FC 08 01 BC FD 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 B2 00 00 00 F4 03 04 00 D8 05 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 54 72 00 00 35 04 06 00 E6 CC 1A 94 AF 37 DD D4 8A 72 0A 9B 1E 74 [16:35:26]CheckFolder [16:35:26]dirname=/storage/ofd_packets [16:35:26]CheckFolder done [16:35:26]ProducePacketName [16:35:26]name=ofd_packets/00029268 [16:35:26]NVStorageSaveData ofd_packets/00029268 [16:35:26]File name is /storage/ofd_packets/00029268 [16:35:26]Write 302 bytes [16:35:26]NVStorageSaveData done [16:35:26]OFDSenderStorePacket done [16:35:26]KKMCreateOFDPacket done [16:35:26]NVStorageSaveData kkm_last_timestamp [16:35:26]File name is /storage/kkm_last_timestamp [16:35:26]Write 4 bytes [16:35:26]NVStorageSaveData done [16:35:26]ExternCall_PrintAddStr [16:35:26]wPrintStart [16:35:26]Write to MH i2c: 01 00 00 3C A5 E1 [16:35:26]Write i2c OK [16:35:26]MH_I2C_Read... [16:35:26]Read from MH i2c: 01 [16:35:26]MH_I2C_Read... [16:35:26]Read from MH i2c: 01 07 00 [16:35:26]MH_I2C_Read... [16:35:26]Read from MH i2c: 01 07 00 3C A5 00 00 00 00 00 FF 0F F6 [16:35:26]RasterBufferAndPrint [16:35:26]line Счет N : (1)347655 [16:35:26]line ИНН: 02508201610067 [16:35:26]line Контрольно-Кассовый Чек [16:35:26]line ПРОДАЖА [16:35:26]line ТРК (МРК, ГНК) : 22 [16:35:26]line Товар: 2710124130 [16:35:26]line SUPER-92-К-5 [16:35:26]line 15.320 * 65.30 [16:35:26]line = 1000.40 [16:35:26]line НДС 12% НСП 1% [16:35:26]line > о реализуемом товаре [16:35:26]line ОКРУГЛЕНИЕ: -0.40 [16:35:26]line ИТОГО: 1000.00 [16:35:26]line Внесено: 1000.00 [16:35:26]line СДАЧА: 0.00 [16:35:26]line НСП 1% : 8.85 [16:35:26]line НДС 12% : 106.24 [16:35:26]line Наличными: 1000.00 [16:35:26]line Безнал.: 0.00 [16:35:26]line Место: АЗС № 108 "Партнер Нефть" [16:35:26]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [16:35:26]line СНО: Общий режим [16:35:26]line Чек 178 14.04.2024 16:35 [16:35:26]line Смена: 116 ФФД: 1.0 [16:35:26]line ЗНМ: 0300000027 [16:35:26]line РНМ: 0000138879044617 [16:35:26]line Версия ККМ: 001 [16:35:26]line ФМ: 0000000000963154 [16:35:26]line ФД: 29268 [16:35:26]line ФПД: 253764293668663 [16:35:27]line 1/tax-web-control/client/api/v1/ticket?date=20240414T163536&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29268&fm=253764293668663&tin=02508201610067®Number=0000138879044617&sum=100000 [16:35:27]OFD Sender: Processing packet 29268 [packets to send 8, broken 7] [16:35:27]ProducePacketName [16:35:27]name=ofd_packets/00029268 [16:35:27]OFD Sender: To server: pG, [16:35:27]CommunicateWithHost lk.salyk.kg:30040 [16:35:27]ConnectInit lk.salyk.kg [16:35:27]written 0, free lines is 4095 [16:35:27]Connected sock=10 [16:35:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 BF FC 08 01 BC FD 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 B2 00 00 00 F4 03 04 00 D8 05 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 54 72 00 00 35 04 06 00 E6 CC 1A 94 AF 37 DD D4 8A 72 0A 9B 1E 74 [16:35:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 DC 3B 47 00 CD 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 54 72 00 00 F4 03 04 00 7B B0 1B 66 B6 04 01 00 00 6D C4 C4 6E 32 E5 42 33 [16:35:27]CommunicateWithHost err = 0 [16:35:27]CheckOFDResponse [16:35:27]1017 (14) - 77093643461234 [16:35:27]1041 (16) - 0000000000963154 [16:35:27]1040 (4) - 29268 [16:35:27]1012 (4) - 14.04.2024 10:31 [16:35:27]1206 (1) - 0 [16:35:27]OFD Sender: Remove packet 29268 [16:35:27]ProducePacketName [16:35:27]name=ofd_packets/00029268 [16:35:27]NVStorageDeleteData [16:35:27]Write to MH i2c: 01 00 00 66 A5 0B [16:35:27]Write i2c OK [16:35:27]MH_I2C_Read... [16:35:27]Read from MH i2c: 01 [16:35:27]MH_I2C_Read... [16:35:27]Read from MH i2c: 01 07 00 [16:35:27]MH_I2C_Read... [16:35:27]Read from MH i2c: 01 07 00 66 A5 00 00 00 00 00 D4 0C F2 [16:35:27]RasterBufferAndPrint [16:35:27]line [16:35:27]line [16:35:27]line [16:35:27]line [16:35:27]line [16:35:27]written 0, free lines is 3291 [16:35:27]MH_Cut [16:35:27]Write to MH i2c: D1 01 00 6D A5 01 E4 [16:35:27]Write i2c OK [16:35:27]MH_I2C_Read... [16:35:27]Read from MH i2c: D1 [16:35:27]MH_I2C_Read... [16:35:27]Read from MH i2c: D1 01 00 [16:35:27]MH_I2C_Read... [16:35:27]Read from MH i2c: D1 01 00 6D A5 00 E3 [16:35:27]Write to MH i2c: 01 00 00 6E A5 13 [16:35:27]Write i2c OK [16:35:27]MH_I2C_Read... [16:35:28]OFD Sender: No OFD packet to send [16:35:28]*** Cut start [16:35:28]*** Partial cut [16:35:28]*** CUTSNS_PIN = 1 [16:35:28]*** CUTSNS_PIN = 0 [16:35:28]*** Brake cut motor [16:35:29]Read from MH i2c: 01 [16:35:29]MH_I2C_Read... [16:35:29]*** Stop cut motor [16:35:29]*** Cut end [16:35:29]Read from MH i2c: 01 07 00 [16:35:29]MH_I2C_Read... [16:35:29]Read from MH i2c: 01 07 00 6E A5 00 00 00 00 00 FF 0F 28 [16:35:29]process_action close_receipt done [16:35:29]requested_data is exist [16:35:29]produce_requested_data [16:35:29]requested_item fm.sn is exist - process it [16:35:29]wFMCommunicate request_size=4 [16:35:29]MH_SAM_APDU [16:35:29]CAPDU: 80 11 00 00 [16:35:29]Write to MH i2c: E2 08 00 6F A5 80 11 00 00 00 00 00 00 8E [16:35:29]Write i2c OK [16:35:29]MH_I2C_Read... [16:35:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:35:29]Read from MH i2c: E2 [16:35:29]MH_I2C_Read... [16:35:29]Read from MH i2c: E2 17 00 [16:35:29]MH_I2C_Read... [16:35:29]Read from MH i2c: E2 17 00 6F A5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 DD [16:35:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:35:29]wFMCommunicate OK [16:35:29]requested_item fd.num is exist - process it [16:35:29]SAM_PROTO_GetFieldsCounters [16:35:29]wFMCommunicate request_size=4 [16:35:29]MH_SAM_APDU [16:35:29]CAPDU: 80 13 00 00 [16:35:29]Write to MH i2c: E2 08 00 70 A5 80 13 00 00 00 00 00 00 91 [16:35:29]Write i2c OK [16:35:29]MH_I2C_Read... [16:35:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:35:29]Read from MH i2c: E2 [16:35:29]MH_I2C_Read... [16:35:29]Read from MH i2c: E2 62 00 [16:35:29]MH_I2C_Read... [16:35:29]Read from MH i2c: E2 62 00 70 A5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 54 72 00 00 0E 04 04 00 74 00 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 1F [16:35:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 54 72 00 00 0E 04 04 00 74 00 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 [16:35:29]wFMCommunicate OK [16:35:29]SAM_PROTO_GetFieldsCounters done [16:35:29]requested_item shift.num is exist - process it [16:35:29]requested_item shift.opened is exist - process it [16:35:29]req_shift_opened [16:35:29]FM_GetShiftState [16:35:29]SAM_PROTO_GetShiftState [16:35:29]wFMCommunicate request_size=4 [16:35:29]MH_SAM_APDU [16:35:29]CAPDU: 80 13 01 00 [16:35:29]Write to MH i2c: E2 08 00 71 A5 80 13 01 00 00 00 00 00 93 [16:35:29]Write i2c OK [16:35:29]MH_I2C_Read... [16:35:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:35:29]Read from MH i2c: E2 [16:35:29]MH_I2C_Read... [16:35:29]Read from MH i2c: E2 0E 00 [16:35:29]MH_I2C_Read... [16:35:29]Read from MH i2c: E2 0E 00 71 A5 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 3F [16:35:29]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [16:35:29]wFMCommunicate OK [16:35:29]SAM_PROTO_GetShiftState done [16:35:29]FM_GetShiftState done [16:35:29]req_shift_opened done [16:35:29]requested_item shift.open_date is exist - process it [16:35:29]req_shift_open_date [16:35:29]req_shift_open_date done [16:35:29]produce_requested_data done [16:35:29]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29268,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [16:35:29]process_action_free close_receipt [16:35:29]json_value_free [16:35:29]json_value_free done [16:35:29]process_json_proto returns [16:35:29]Send response to host [16:35:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29268,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [16:35:29]free response buf [16:35:29]execute_script done [16:35:29]execute_script returns [16:35:29]free content buf [16:35:29]Sock 9.Close socket [16:35:29]Sock 9.Thread stoped [16:35:33]OFD Sender: No OFD packet to send [16:35:38]OFD Sender: No OFD packet to send [16:35:43]OFD Sender: No OFD packet to send [16:35:48]OFD Sender: No OFD packet to send [16:35:53]OFD Sender: No OFD packet to send [16:35:58]OFD Sender: No OFD packet to send [16:36:03]OFD Sender: No OFD packet to send [16:36:08]OFD Sender: No OFD packet to send [16:36:13]OFD Sender: No OFD packet to send [16:36:18]OFD Sender: No OFD packet to send [16:36:23]OFD Sender: No OFD packet to send [16:36:28]OFD Sender: No OFD packet to send [16:36:33]OFD Sender: No OFD packet to send [16:36:38]OFD Sender: No OFD packet to send [16:36:43]OFD Sender: No OFD packet to send [16:36:48]OFD Sender: No OFD packet to send [16:36:49]accept exits with 7 [16:36:49]New connection [16:36:49]New thread 3066928484 created [16:36:49]Thread 3066785124 joined [16:36:49]Waiting for new connection... [16:36:49] Sock 7.Parse request [16:36:49]Sock 7.Check first char [16:36:49]Sock 7.First char is OK [16:36:49]request: POST /json_proto HTTP/1.0 [16:36:49]Method: POST [16:36:49]URL: /json_proto [16:36:49]Method is POST - this is cgi request [16:36:49]url: /json_proto [16:36:49]query_string will be loaded in cgi processing [16:36:49]execute_cgi json_proto POST (null) [16:36:49]execute_cgi path=json_proto method=POST [16:36:49]POST find Content-Length [16:36:49]Host: 172.17.33.3:8080 [16:36:49]Content-Length: 675 [16:36:49]Content-Type: application/json [16:36:49] [16:36:49]POST finish read [16:36:49]Found Content-Length = 675 [16:36:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347656", "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" ] } } [16:36:49]execute_script... [16:36: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)347656", "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" ] } } [16:36:49]POST & json_proto [16:36:49]process_json_proto [16:36:49]json parsed OK: [16:36:49]protocol is kg_v1.0 [16:36:49]action value=close_receipt [16:36:49]process_action close_receipt [16:36:49]cmd_close_receipt [16:36:49]MH_GetDate [16:36:49]Write to MH i2c: F0 00 00 72 A5 06 [16:36:49]Write i2c OK [16:36:49]MH_I2C_Read... [16:36:49]Read from MH i2c: F0 [16:36:49]MH_I2C_Read... [16:36:49]Read from MH i2c: F0 09 00 [16:36:49]MH_I2C_Read... [16:36:49]Read from MH i2c: F0 09 00 72 A5 00 2C 06 1C 66 23 5B 8F 65 35 [16:36:49]GetLastDocTimeStamp 1713112536 [16:36:49]current date 1713112620 [16:36:49]FM_GetShiftState [16:36:49]SAM_PROTO_GetShiftState [16:36:49]wFMCommunicate request_size=4 [16:36:49]MH_SAM_APDU [16:36:49]CAPDU: 80 13 01 00 [16:36:49]Write to MH i2c: E2 08 00 73 A5 80 13 01 00 00 00 00 00 95 [16:36:49]Write i2c OK [16:36:49]MH_I2C_Read... [16:36:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:36:49]Read from MH i2c: E2 [16:36:49]MH_I2C_Read... [16:36:49]Read from MH i2c: E2 0E 00 [16:36:49]MH_I2C_Read... [16:36:49]Read from MH i2c: E2 0E 00 73 A5 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 41 [16:36:49]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [16:36:49]wFMCommunicate OK [16:36:49]SAM_PROTO_GetShiftState done [16:36:49]FM_GetShiftState done [16:36:49]opened in 1713053951 [16:36:49]opened+sec_in_day 1713140351 [16:36:49]quantity*price = 100039 [16:36:49]sum+1 = 100041 [16:36:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 179 14.04.2024 16:37 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29269 ФПД: 69801460238778 1/tax-web-control/client/api/v1/ticket?date=20240414T163700&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29269&fm=69801460238778&tin=02508201610067®Number=0000138879044617&sum=100000 [16:36:50]StoreToDocumentArchive [16:36:50]shift 116 fd 29269 [16:36:50]save to /storage/0116/doc_00029269 [16:36:50]save last doc name /storage/0116/doc_00029269 to /storage/kkm_last_doc_name [16:36:50]save OK [16:36:50]Clear old archive folders... [16:36:50]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:36:50]tlvbuf is 011EAD60 [16:36:50]SAM_PROTO_ClearQueue [16:36:50]wFMCommunicate request_size=4 [16:36:50]MH_SAM_APDU [16:36:50]CAPDU: 80 09 00 00 [16:36:50]Write to MH i2c: E2 08 00 80 A5 80 09 00 00 00 00 00 00 97 [16:36:50]Write i2c OK [16:36:50]MH_I2C_Read... [16:36:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:36:50]Read from MH i2c: E2 [16:36:50]MH_I2C_Read... [16:36:50]Read from MH i2c: E2 03 00 [16:36:50]MH_I2C_Read... [16:36:50]Read from MH i2c: E2 03 00 80 A5 00 90 00 99 [16:36:50]RAPDU: 90 00 [16:36:50]wFMCommunicate OK [16:36:50]SAM_PROTO_ClearQueue done [16:36:50]KKMCreateOFDPacket [16:36:50]OFDProtocolAddRootSTLVToBuf [16:36:50]FM_MakeSignedData [16:36:50]FM_MakeSignedData [16:36:50]SAM_PROTO_SignData [16:36:50]wFMCommunicate request_size=4 [16:36:50]MH_SAM_APDU [16:36:50]CAPDU: 80 0D 01 02 [16:36:50]Write to MH i2c: E2 08 00 81 A5 80 0D 01 02 00 00 00 00 9F [16:36:50]Write i2c OK [16:36:50]MH_I2C_Read... [16:36:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:36:50]Read from MH i2c: E2 [16:36:50]MH_I2C_Read... [16:36:50]Read from MH i2c: E2 03 00 [16:36:50]MH_I2C_Read... [16:36:50]Read from MH i2c: E2 03 00 81 A5 00 90 00 9A [16:36:50]RAPDU: 90 00 [16:36:50]wFMCommunicate OK [16:36:50]wFMCommunicate request_size=255 [16:36:50]MH_SAM_APDU [16:36: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 2D 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 B3 00 00 00 F4 03 04 00 2C 06 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 55 72 00 00 35 04 06 00 [16:36:50]Write to MH i2c: E2 02 01 82 A5 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 B3 00 00 00 F4 03 04 00 2C 06 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 55 72 00 00 35 04 06 00 00 00 7E [16:36:50]Write i2c OK [16:36:50]MH_I2C_Read... [16:36:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:36:50]Read from MH i2c: E2 [16:36:50]MH_I2C_Read... [16:36:50]Read from MH i2c: E2 03 00 [16:36:50]MH_I2C_Read... [16:36:50]Read from MH i2c: E2 03 00 82 A5 00 90 00 9B [16:36:50]RAPDU: 90 00 [16:36:50]wFMCommunicate OK [16:36:50]wFMCommunicate request_size=11 [16:36:50]MH_SAM_APDU [16:36:50]CAPDU: 80 0D 02 02 06 3F 7B EB 3E 09 BA [16:36:50]Write to MH i2c: E2 0E 00 83 A5 80 0D 02 02 06 00 3F 7B EB 3E 09 BA 00 00 54 [16:36:50]Write i2c OK [16:36:50]MH_I2C_Read... [16:36:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:36:50]Read from MH i2c: E2 [16:36:50]MH_I2C_Read... [16:36:50]Read from MH i2c: E2 03 00 [16:36:50]MH_I2C_Read... [16:36:50]Read from MH i2c: E2 03 00 83 A5 00 90 00 9C [16:36:50]RAPDU: 90 00 [16:36:50]wFMCommunicate OK [16:36:50]wFMCommunicate request_size=4 [16:36:50]MH_SAM_APDU [16:36:50]CAPDU: 80 0D 03 02 [16:36:50]Write to MH i2c: E2 08 00 84 A5 80 0D 03 02 00 00 00 00 A4 [16:36:50]Write i2c OK [16:36:50]MH_I2C_Read... [16:36:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:36:50]Read from MH i2c: E2 [16:36:50]MH_I2C_Read... [16:36:50]Read from MH i2c: E2 0B 00 [16:36:50]MH_I2C_Read... [16:36:50]Read from MH i2c: E2 0B 00 84 A5 00 B8 DB 42 40 C7 1E 80 F8 90 00 17 [16:36:50]RAPDU: B8 DB 42 40 C7 1E 80 F8 90 00 [16:36:50]wFMCommunicate OK [16:36:50]SAM_PROTO_SignData done [16:36:50]FM_MakeSignedData done [16:36:50]CreateOFDProtocolMessage [16:36:50]wFMCommunicate request_size=4 [16:36:50]MH_SAM_APDU [16:36:50]CAPDU: 80 11 00 00 [16:36:50]Write to MH i2c: E2 08 00 85 A5 80 11 00 00 00 00 00 00 A4 [16:36:50]Write i2c OK [16:36:50]MH_I2C_Read... [16:36:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:36:50]Read from MH i2c: E2 [16:36:50]MH_I2C_Read... [16:36:50]Read from MH i2c: E2 17 00 [16:36:50]MH_I2C_Read... [16:36:50]Read from MH i2c: E2 17 00 85 A5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F3 [16:36:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:36:50]wFMCommunicate OK [16:36:50]CreateOFDProtocolMessage done [16:36:50]OFDSenderStorePacket 29269 [16:36:50]StoreOFDPacket docnum=29269 [16:36:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 AA 38 08 01 E2 2A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 B3 00 00 00 F4 03 04 00 2C 06 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 55 72 00 00 35 04 06 00 3F 7B EB 3E 09 BA B8 DB 42 40 C7 1E 80 F8 [16:36:50]CheckFolder [16:36:50]dirname=/storage/ofd_packets [16:36:50]CheckFolder done [16:36:50]ProducePacketName [16:36:50]name=ofd_packets/00029269 [16:36:50]NVStorageSaveData ofd_packets/00029269 [16:36:50]File name is /storage/ofd_packets/00029269 [16:36:50]Write 302 bytes [16:36:50]NVStorageSaveData done [16:36:50]OFDSenderStorePacket done [16:36:50]KKMCreateOFDPacket done [16:36:50]NVStorageSaveData kkm_last_timestamp [16:36:50]File name is /storage/kkm_last_timestamp [16:36:50]OFD Sender: Processing packet 29269 [packets to send 8, broken 7] [16:36:50]ProducePacketName [16:36:50]name=ofd_packets/00029269 [16:36:50]OFD Sender: To server: pG, [16:36:50]CommunicateWithHost lk.salyk.kg:30040 [16:36:50]ConnectInit lk.salyk.kg [16:36:50]Write 4 bytes [16:36:50]NVStorageSaveData done [16:36:50]ExternCall_PrintAddStr [16:36:50]wPrintStart [16:36:50]Write to MH i2c: 01 00 00 86 A5 2B [16:36:50]Write i2c OK [16:36:50]MH_I2C_Read... [16:36:50]Read from MH i2c: 01 [16:36:50]MH_I2C_Read... [16:36:50]Read from MH i2c: 01 07 00 [16:36:50]MH_I2C_Read... [16:36:50]Read from MH i2c: 01 07 00 86 A5 00 00 00 00 00 FF 0F 40 [16:36:50]RasterBufferAndPrint [16:36:50]line Счет N : (1)347656 [16:36:50]line ИНН: 02508201610067 [16:36:50]line Контрольно-Кассовый Чек [16:36:50]line ПРОДАЖА [16:36:50]line ТРК (МРК, ГНК) : 31 [16:36:50]line Товар: 2710124130 [16:36:50]line SUPER-92-К-5 [16:36:50]line 15.320 * 65.30 [16:36:50]line = 1000.40 [16:36:50]line НДС 12% НСП 1% [16:36:50]line > о реализуемом товаре [16:36:50]line ОКРУГЛЕНИЕ: -0.40 [16:36:50]line ИТОГО: 1000.00 [16:36:50]line Внесено: 1000.00 [16:36:50]line СДАЧА: 0.00 [16:36:50]line НСП 1% : 8.85 [16:36:50]line НДС 12% : 106.24 [16:36:50]line Наличными: 1000.00 [16:36:50]line Безнал.: 0.00 [16:36:50]line Место: АЗС № 108 "Партнер Нефть" [16:36:50]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [16:36:50]line СНО: Общий режим [16:36:50]line Чек 179 14.04.2024 16:37 [16:36:50]line Смена: 116 ФФД: 1.0 [16:36:50]line ЗНМ: 0300000027 [16:36:50]line РНМ: 0000138879044617 [16:36:50]line Версия ККМ: 001 [16:36:50]line ФМ: 0000000000963154 [16:36:50]line ФД: 29269 [16:36:50]line ФПД: 69801460238778 [16:36:51]line 1/tax-web-control/client/api/v1/ticket?date=20240414T163700&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29269&fm=69801460238778&tin=02508201610067®Number=0000138879044617&sum=100000 [16:36:51]Connected sock=11 [16:36:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 AA 38 08 01 E2 2A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 B3 00 00 00 F4 03 04 00 2C 06 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 55 72 00 00 35 04 06 00 3F 7B EB 3E 09 BA B8 DB 42 40 C7 1E 80 F8 [16:36:51]written 0, free lines is 4095 [16:36:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 AD 01 47 00 58 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 55 72 00 00 F4 03 04 00 CF B0 1B 66 B6 04 01 00 00 00 49 E5 2F AC CA 33 BD [16:36:51]CommunicateWithHost err = 0 [16:36:51]CheckOFDResponse [16:36:51]1017 (14) - 77093643461234 [16:36:51]1041 (16) - 0000000000963154 [16:36:51]1040 (4) - 29269 [16:36:51]1012 (4) - 14.04.2024 10:32 [16:36:51]1206 (1) - 0 [16:36:51]OFD Sender: Remove packet 29269 [16:36:51]ProducePacketName [16:36:51]name=ofd_packets/00029269 [16:36:51]NVStorageDeleteData [16:36:51]Write to MH i2c: 01 00 00 B0 A5 55 [16:36:51]Write i2c OK [16:36:51]MH_I2C_Read... [16:36:51]Read from MH i2c: 01 [16:36:51]MH_I2C_Read... [16:36:51]Read from MH i2c: 01 07 00 [16:36:51]MH_I2C_Read... [16:36:51]Read from MH i2c: 01 07 00 B0 A5 00 00 00 00 00 C6 0C 2E [16:36:51]RasterBufferAndPrint [16:36:51]line [16:36:51]line [16:36:51]line [16:36:51]line [16:36:51]line [16:36:51]written 0, free lines is 3275 [16:36:51]MH_Cut [16:36:51]Write to MH i2c: D1 01 00 B7 A5 01 2E [16:36:51]Write i2c OK [16:36:51]MH_I2C_Read... [16:36:51]Read from MH i2c: D1 [16:36:51]MH_I2C_Read... [16:36:51]Read from MH i2c: D1 01 00 [16:36:51]MH_I2C_Read... [16:36:51]Read from MH i2c: D1 01 00 B7 A5 00 2D [16:36:51]Write to MH i2c: 01 00 00 B8 A5 5D [16:36:51]Write i2c OK [16:36:51]MH_I2C_Read... [16:36:51]OFD Sender: No OFD packet to send [16:36:52]*** Cut start [16:36:52]*** Partial cut [16:36:52]*** CUTSNS_PIN = 1 [16:36:52]*** CUTSNS_PIN = 0 [16:36:52]*** Brake cut motor [16:36:53]Read from MH i2c: 01 [16:36:53]MH_I2C_Read... [16:36:53]*** Stop cut motor [16:36:53]*** Cut end [16:36:53]Read from MH i2c: 01 07 00 [16:36:53]MH_I2C_Read... [16:36:53]Read from MH i2c: 01 07 00 B8 A5 00 00 00 00 00 FF 0F 72 [16:36:53]process_action close_receipt done [16:36:53]requested_data is exist [16:36:53]produce_requested_data [16:36:53]requested_item fm.sn is exist - process it [16:36:53]wFMCommunicate request_size=4 [16:36:53]MH_SAM_APDU [16:36:53]CAPDU: 80 11 00 00 [16:36:53]Write to MH i2c: E2 08 00 B9 A5 80 11 00 00 00 00 00 00 D8 [16:36:53]Write i2c OK [16:36:53]MH_I2C_Read... [16:36:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:36:53]Read from MH i2c: E2 [16:36:53]MH_I2C_Read... [16:36:53]Read from MH i2c: E2 17 00 [16:36:53]MH_I2C_Read... [16:36:53]Read from MH i2c: E2 17 00 B9 A5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 27 [16:36:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:36:53]wFMCommunicate OK [16:36:53]requested_item fd.num is exist - process it [16:36:53]SAM_PROTO_GetFieldsCounters [16:36:53]wFMCommunicate request_size=4 [16:36:53]MH_SAM_APDU [16:36:53]CAPDU: 80 13 00 00 [16:36:53]Write to MH i2c: E2 08 00 BA A5 80 13 00 00 00 00 00 00 DB [16:36:53]Write i2c OK [16:36:53]MH_I2C_Read... [16:36:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:36:53]Read from MH i2c: E2 [16:36:53]MH_I2C_Read... [16:36:53]Read from MH i2c: E2 62 00 [16:36:53]MH_I2C_Read... [16:36:53]Read from MH i2c: E2 62 00 BA A5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 55 72 00 00 0E 04 04 00 74 00 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 6D [16:36:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 55 72 00 00 0E 04 04 00 74 00 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 [16:36:53]wFMCommunicate OK [16:36:53]SAM_PROTO_GetFieldsCounters done [16:36:53]requested_item shift.num is exist - process it [16:36:53]requested_item shift.opened is exist - process it [16:36:53]req_shift_opened [16:36:53]FM_GetShiftState [16:36:53]SAM_PROTO_GetShiftState [16:36:53]wFMCommunicate request_size=4 [16:36:53]MH_SAM_APDU [16:36:53]CAPDU: 80 13 01 00 [16:36:53]Write to MH i2c: E2 08 00 BB A5 80 13 01 00 00 00 00 00 DD [16:36:53]Write i2c OK [16:36:53]MH_I2C_Read... [16:36:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:36:53]Read from MH i2c: E2 [16:36:53]MH_I2C_Read... [16:36:53]Read from MH i2c: E2 0E 00 [16:36:53]MH_I2C_Read... [16:36:53]Read from MH i2c: E2 0E 00 BB A5 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 89 [16:36:53]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [16:36:53]wFMCommunicate OK [16:36:53]SAM_PROTO_GetShiftState done [16:36:53]FM_GetShiftState done [16:36:53]req_shift_opened done [16:36:53]requested_item shift.open_date is exist - process it [16:36:53]req_shift_open_date [16:36:53]req_shift_open_date done [16:36:53]produce_requested_data done [16:36:53]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29269,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [16:36:53]process_action_free close_receipt [16:36:53]json_value_free [16:36:53]json_value_free done [16:36:53]process_json_proto returns [16:36:53]Send response to host [16:36:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29269,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [16:36:53]free response buf [16:36:53]execute_script done [16:36:53]execute_script returns [16:36:53]free content buf [16:36:53]Sock 7.Close socket [16:36:53]Sock 7.Thread stoped [16:36:56]OFD Sender: No OFD packet to send [16:36:57]accept exits with 9 [16:36:57]New connection [16:36:57]New thread 3066785124 created [16:36:57]Thread 3066928484 joined [16:36:57]Waiting for new connection... [16:36:57] Sock 9.Parse request [16:36:57]Sock 9.Check first char [16:36:57]Sock 9.First char is OK [16:36:57]request: POST /json_proto HTTP/1.0 [16:36:57]Method: POST [16:36:57]URL: /json_proto [16:36:57]Method is POST - this is cgi request [16:36:57]url: /json_proto [16:36:57]query_string will be loaded in cgi processing [16:36:57]execute_cgi json_proto POST (null) [16:36:57]execute_cgi path=json_proto method=POST [16:36:57]POST find Content-Length [16:36:57]Host: 172.17.33.3:8080 [16:36:57]Content-Length: 731 [16:36:57]Content-Type: application/json [16:36:57] [16:36:57]POST finish read [16:36:57]Found Content-Length = 731 [16:36:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 29269, "base_FM": "0000000000963154", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347656", "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" ] } } [16:36:57]execute_script... [16:36:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 29269, "base_FM": "0000000000963154", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347656", "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" ] } } [16:36:57]POST & json_proto [16:36:57]process_json_proto [16:36:57]json parsed OK: [16:36:57]protocol is kg_v1.0 [16:36:57]action value=close_receipt [16:36:57]process_action close_receipt [16:36:57]cmd_close_receipt [16:36:57]MH_GetDate [16:36:57]Write to MH i2c: F0 00 00 BC A5 50 [16:36:57]Write i2c OK [16:36:57]MH_I2C_Read... [16:36:57]Read from MH i2c: F0 [16:36:57]MH_I2C_Read... [16:36:57]Read from MH i2c: F0 09 00 [16:36:57]MH_I2C_Read... [16:36:57]Read from MH i2c: F0 09 00 BC A5 00 34 06 1C 66 23 5B 8F 65 87 [16:36:57]GetLastDocTimeStamp 1713112620 [16:36:57]current date 1713112628 [16:36:57]FM_GetShiftState [16:36:57]SAM_PROTO_GetShiftState [16:36:57]wFMCommunicate request_size=4 [16:36:57]MH_SAM_APDU [16:36:57]CAPDU: 80 13 01 00 [16:36:57]Write to MH i2c: E2 08 00 BD A5 80 13 01 00 00 00 00 00 DF [16:36:57]Write i2c OK [16:36:57]MH_I2C_Read... [16:36:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:36:57]Read from MH i2c: E2 [16:36:57]MH_I2C_Read... [16:36:57]Read from MH i2c: E2 0E 00 [16:36:57]MH_I2C_Read... [16:36:57]Read from MH i2c: E2 0E 00 BD A5 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 8B [16:36:57]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [16:36:57]wFMCommunicate OK [16:36:57]SAM_PROTO_GetShiftState done [16:36:57]FM_GetShiftState done [16:36:57]opened in 1713053951 [16:36:57]opened+sec_in_day 1713140351 [16:36:57]quantity*price = 100039 [16:36:57]sum+1 = 100041 [16:36:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 1000.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 180 14.04.2024 16:37 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФД осн.: 29269 ФМ осн.: 0000000000963154 ФМ: 0000000000963154 ФД: 29270 ФПД: 38403473960937 1/tax-web-control/client/api/v1/ticket?date=20240414T163708&type=2&operation_type=1&fn_number=0000000000963154&fd_number=29270&fm=38403473960937&tin=02508201610067®Number=0000138879044617&sum=100000 [16:36:58]StoreToDocumentArchive [16:36:58]shift 116 fd 29270 [16:36:58]save to /storage/0116/doc_00029270 [16:36:58]save last doc name /storage/0116/doc_00029270 to /storage/kkm_last_doc_name [16:36:58]save OK [16:36:58]Clear old archive folders... [16:36:58]ProcessDocumentItem done err = 0, tmpTLVsize=280 [16:36:58]tlvbuf is 01284970 [16:36:58]SAM_PROTO_ClearQueue [16:36:58]wFMCommunicate request_size=4 [16:36:58]MH_SAM_APDU [16:36:58]CAPDU: 80 09 00 00 [16:36:58]Write to MH i2c: E2 08 00 CC A5 80 09 00 00 00 00 00 00 E3 [16:36:58]Write i2c OK [16:36:58]MH_I2C_Read... [16:36:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:36:58]Read from MH i2c: E2 [16:36:58]MH_I2C_Read... [16:36:58]Read from MH i2c: E2 03 00 [16:36:58]MH_I2C_Read... [16:36:59]Read from MH i2c: E2 03 00 CC A5 00 90 00 E5 [16:36:59]RAPDU: 90 00 [16:36:59]wFMCommunicate OK [16:36:59]SAM_PROTO_ClearQueue done [16:36:59]KKMCreateOFDPacket [16:36:59]OFDProtocolAddRootSTLVToBuf [16:36:59]FM_MakeSignedData [16:36:59]FM_MakeSignedData [16:36:59]SAM_PROTO_SignData [16:36:59]wFMCommunicate request_size=4 [16:36:59]MH_SAM_APDU [16:36:59]CAPDU: 80 0D 01 02 [16:36:59]Write to MH i2c: E2 08 00 CD A5 80 0D 01 02 00 00 00 00 EB [16:36:59]Write i2c OK [16:36:59]MH_I2C_Read... [16:36:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:36:59]Read from MH i2c: E2 [16:36:59]MH_I2C_Read... [16:36:59]Read from MH i2c: E2 03 00 [16:36:59]MH_I2C_Read... [16:36:59]Read from MH i2c: E2 03 00 CD A5 00 90 00 E6 [16:36:59]RAPDU: 90 00 [16:36:59]wFMCommunicate OK [16:36:59]wFMCommunicate request_size=255 [16:36:59]MH_SAM_APDU [16:36:59]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 02 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 B4 00 00 00 F4 03 04 00 34 06 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 55 72 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 [16:36:59]Write to MH i2c: E2 02 01 CE A5 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 02 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 B4 00 00 00 F4 03 04 00 34 06 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 55 72 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 00 00 05 [16:36:59]Write i2c OK [16:36:59]MH_I2C_Read... [16:36:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:36:59]Read from MH i2c: E2 [16:36:59]MH_I2C_Read... [16:36:59]Read from MH i2c: E2 03 00 [16:36:59]MH_I2C_Read... [16:36:59]Read from MH i2c: E2 03 00 CE A5 00 90 00 E7 [16:36:59]RAPDU: 90 00 [16:36:59]wFMCommunicate OK [16:36:59]wFMCommunicate request_size=39 [16:36:59]MH_SAM_APDU [16:36:59]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 56 72 00 00 35 04 06 00 22 ED 81 6C 6F E9 [16:36:59]Write to MH i2c: E2 2A 00 CF A5 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 56 72 00 00 35 04 06 00 22 ED 81 6C 6F E9 00 00 C1 [16:36:59]Write i2c OK [16:36:59]MH_I2C_Read... [16:36:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:36:59]Read from MH i2c: E2 [16:36:59]MH_I2C_Read... [16:36:59]Read from MH i2c: E2 03 00 [16:36:59]MH_I2C_Read... [16:36:59]Read from MH i2c: E2 03 00 CF A5 00 90 00 E8 [16:36:59]RAPDU: 90 00 [16:36:59]wFMCommunicate OK [16:36:59]wFMCommunicate request_size=4 [16:36:59]MH_SAM_APDU [16:36:59]CAPDU: 80 0D 03 02 [16:36:59]Write to MH i2c: E2 08 00 D0 A5 80 0D 03 02 00 00 00 00 F0 [16:36:59]Write i2c OK [16:36:59]MH_I2C_Read... [16:36:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:36:59]Read from MH i2c: E2 [16:36:59]MH_I2C_Read... [16:36:59]Read from MH i2c: E2 0B 00 [16:36:59]MH_I2C_Read... [16:36:59]Read from MH i2c: E2 0B 00 D0 A5 00 5D AE 51 B0 74 1D 8E 92 90 00 AE [16:36:59]RAPDU: 5D AE 51 B0 74 1D 8E 92 90 00 [16:36:59]wFMCommunicate OK [16:36:59]SAM_PROTO_SignData done [16:36:59]FM_MakeSignedData done [16:36:59]CreateOFDProtocolMessage [16:36:59]wFMCommunicate request_size=4 [16:36:59]MH_SAM_APDU [16:36:59]CAPDU: 80 11 00 00 [16:36:59]Write to MH i2c: E2 08 00 D1 A5 80 11 00 00 00 00 00 00 F0 [16:36:59]Write i2c OK [16:36:59]MH_I2C_Read... [16:36:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:36:59]Read from MH i2c: E2 [16:36:59]MH_I2C_Read... [16:36:59]Read from MH i2c: E2 17 00 [16:36:59]MH_I2C_Read... [16:36:59]Read from MH i2c: E2 17 00 D1 A5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 3F [16:36:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:36:59]wFMCommunicate OK [16:36:59]CreateOFDProtocolMessage done [16:36:59]OFDSenderStorePacket 29270 [16:36:59]StoreOFDPacket docnum=29270 [16:36:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 2C 01 00 00 B5 E1 24 01 58 73 5A 03 01 00 03 00 18 01 1E 04 01 00 02 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 B4 00 00 00 F4 03 04 00 34 06 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 55 72 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 56 72 00 00 35 04 06 00 22 ED 81 6C 6F E9 5D AE 51 B0 74 1D 8E 92 [16:36:59]CheckFolder [16:36:59]dirname=/storage/ofd_packets [16:36:59]CheckFolder done [16:36:59]ProducePacketName [16:36:59]name=ofd_packets/00029270 [16:36:59]NVStorageSaveData ofd_packets/00029270 [16:36:59]File name is /storage/ofd_packets/00029270 [16:36:59]Write 330 bytes [16:36:59]NVStorageSaveData done [16:36:59]OFDSenderStorePacket done [16:36:59]KKMCreateOFDPacket done [16:36:59]NVStorageSaveData kkm_last_timestamp [16:36:59]File name is /storage/kkm_last_timestamp [16:36:59]Write 4 bytes [16:36:59]NVStorageSaveData done [16:36:59]ExternCall_PrintAddStr [16:36:59]wPrintStart [16:36:59]Write to MH i2c: 01 00 00 D2 A5 77 [16:36:59]Write i2c OK [16:36:59]MH_I2C_Read... [16:36:59]Read from MH i2c: 01 [16:36:59]MH_I2C_Read... [16:36:59]Read from MH i2c: 01 07 00 [16:36:59]MH_I2C_Read... [16:36:59]Read from MH i2c: 01 07 00 D2 A5 00 00 00 00 00 FF 0F 8C [16:36:59]RasterBufferAndPrint [16:36:59]line Счет N : (1)347656 [16:36:59]line ИНН: 02508201610067 [16:36:59]line Контрольно-Кассовый Чек [16:36:59]line ВОЗВРАТ ПРОДАЖИ [16:36:59]line ТРК (МРК, ГНК) : 31 [16:36:59]line Товар: 2710124130 [16:36:59]line SUPER-92-К-5 [16:36:59]line 15.320 * 65.30 [16:36:59]line = 1000.40 [16:36:59]line НДС 12% НСП 1% [16:36:59]line > о реализуемом товаре [16:36:59]line ОКРУГЛЕНИЕ: -0.40 [16:36:59]line ИТОГО: 1000.00 [16:36:59]line НСП 1% : 8.85 [16:36:59]line НДС 12% : 106.24 [16:36:59]line Наличными: 1000.00 [16:36:59]line Безнал.: 0.00 [16:36:59]line Место: АЗС № 108 "Партнер Нефть" [16:36:59]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [16:36:59]line СНО: Общий режим [16:36:59]line Чек 180 14.04.2024 16:37 [16:36:59]line Смена: 116 ФФД: 1.0 [16:36:59]line ЗНМ: 0300000027 [16:36:59]line РНМ: 0000138879044617 [16:36:59]line Версия ККМ: 001 [16:36:59]line ФД осн.: 29269 [16:36:59]line ФМ осн.: 0000000000963154 [16:36:59]line ФМ: 0000000000963154 [16:36:59]line ФД: 29270 [16:36:59]line ФПД: 38403473960937 [16:36:59]line 1/tax-web-control/client/api/v1/ticket?date=20240414T163708&type=2&operation_type=1&fn_number=0000000000963154&fd_number=29270&fm=38403473960937&tin=02508201610067®Number=0000138879044617&sum=100000 [16:36:59]written 0, free lines is 4095 [16:36:59]OFD Sender: Processing packet 29270 [packets to send 8, broken 7] [16:36:59]ProducePacketName [16:36:59]name=ofd_packets/00029270 [16:36:59]OFD Sender: To server: pG, [16:36:59]CommunicateWithHost lk.salyk.kg:30040 [16:36:59]ConnectInit lk.salyk.kg [16:36:59]Connected sock=10 [16:36:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 2C 01 00 00 B5 E1 24 01 58 73 5A 03 01 00 03 00 18 01 1E 04 01 00 02 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 B4 00 00 00 F4 03 04 00 34 06 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 55 72 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 56 72 00 00 35 04 06 00 22 ED 81 6C 6F E9 5D AE 51 B0 74 1D 8E 92 [16:37:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 82 28 47 00 CD FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 56 72 00 00 F4 03 04 00 D8 B0 1B 66 B6 04 01 00 00 A9 38 AF 78 4B A1 3C 07 [16:37:00]CommunicateWithHost err = 0 [16:37:00]CheckOFDResponse [16:37:00]1017 (14) - 77093643461234 [16:37:00]1041 (16) - 0000000000963154 [16:37:00]1040 (4) - 29270 [16:37:00]1012 (4) - 14.04.2024 10:32 [16:37:00]1206 (1) - 0 [16:37:00]OFD Sender: Remove packet 29270 [16:37:00]ProducePacketName [16:37:00]name=ofd_packets/00029270 [16:37:00]NVStorageDeleteData [16:37:00]Write to MH i2c: 01 00 00 FC A5 A1 [16:37:00]Write i2c OK [16:37:00]MH_I2C_Read... [16:37:00]Read from MH i2c: 01 [16:37:00]MH_I2C_Read... [16:37:00]Read from MH i2c: 01 07 00 [16:37:00]MH_I2C_Read... [16:37:00]Read from MH i2c: 01 07 00 FC A5 00 00 00 00 00 D6 0C 8A [16:37:00]RasterBufferAndPrint [16:37:00]line [16:37:00]line [16:37:00]line [16:37:00]line [16:37:00]line [16:37:00]written 0, free lines is 3298 [16:37:00]MH_Cut [16:37:00]Write to MH i2c: D1 01 00 03 A6 01 7B [16:37:00]Write i2c OK [16:37:00]MH_I2C_Read... [16:37:00]Read from MH i2c: D1 [16:37:00]MH_I2C_Read... [16:37:00]Read from MH i2c: D1 01 00 [16:37:00]MH_I2C_Read... [16:37:00]Read from MH i2c: D1 01 00 03 A6 00 7A [16:37:00]Write to MH i2c: 01 00 00 04 A6 AA [16:37:00]Write i2c OK [16:37:00]MH_I2C_Read... [16:37:00]OFD Sender: No OFD packet to send [16:37:01]*** Cut start [16:37:01]*** Partial cut [16:37:01]*** CUTSNS_PIN = 1 [16:37:01]*** CUTSNS_PIN = 0 [16:37:01]*** Brake cut motor [16:37:01]Read from MH i2c: 01 [16:37:01]MH_I2C_Read... [16:37:01]*** Stop cut motor [16:37:01]*** Cut end [16:37:01]Read from MH i2c: 01 07 00 [16:37:01]MH_I2C_Read... [16:37:01]Read from MH i2c: 01 07 00 04 A6 00 00 00 00 00 FF 0F BF [16:37:01]process_action close_receipt done [16:37:01]requested_data is exist [16:37:01]produce_requested_data [16:37:01]requested_item fm.sn is exist - process it [16:37:01]wFMCommunicate request_size=4 [16:37:01]MH_SAM_APDU [16:37:01]CAPDU: 80 11 00 00 [16:37:01]Write to MH i2c: E2 08 00 05 A6 80 11 00 00 00 00 00 00 25 [16:37:01]Write i2c OK [16:37:01]MH_I2C_Read... [16:37:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:37:01]Read from MH i2c: E2 [16:37:01]MH_I2C_Read... [16:37:01]Read from MH i2c: E2 17 00 [16:37:01]MH_I2C_Read... [16:37:01]Read from MH i2c: E2 17 00 05 A6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 74 [16:37:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:37:01]wFMCommunicate OK [16:37:01]requested_item fd.num is exist - process it [16:37:01]SAM_PROTO_GetFieldsCounters [16:37:01]wFMCommunicate request_size=4 [16:37:01]MH_SAM_APDU [16:37:01]CAPDU: 80 13 00 00 [16:37:01]Write to MH i2c: E2 08 00 06 A6 80 13 00 00 00 00 00 00 28 [16:37:01]Write i2c OK [16:37:01]MH_I2C_Read... [16:37:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:37:01]Read from MH i2c: E2 [16:37:01]MH_I2C_Read... [16:37:01]Read from MH i2c: E2 62 00 [16:37:01]MH_I2C_Read... [16:37:01]Read from MH i2c: E2 62 00 06 A6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 56 72 00 00 0E 04 04 00 74 00 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 BE [16:37:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 56 72 00 00 0E 04 04 00 74 00 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 [16:37:01]wFMCommunicate OK [16:37:01]SAM_PROTO_GetFieldsCounters done [16:37:01]requested_item shift.num is exist - process it [16:37:01]requested_item shift.opened is exist - process it [16:37:01]req_shift_opened [16:37:01]FM_GetShiftState [16:37:01]SAM_PROTO_GetShiftState [16:37:01]wFMCommunicate request_size=4 [16:37:01]MH_SAM_APDU [16:37:01]CAPDU: 80 13 01 00 [16:37:01]Write to MH i2c: E2 08 00 07 A6 80 13 01 00 00 00 00 00 2A [16:37:01]Write i2c OK [16:37:01]MH_I2C_Read... [16:37:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:37:02]Read from MH i2c: E2 [16:37:02]MH_I2C_Read... [16:37:02]Read from MH i2c: E2 0E 00 [16:37:02]MH_I2C_Read... [16:37:02]Read from MH i2c: E2 0E 00 07 A6 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 D6 [16:37:02]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [16:37:02]wFMCommunicate OK [16:37:02]SAM_PROTO_GetShiftState done [16:37:02]FM_GetShiftState done [16:37:02]req_shift_opened done [16:37:02]requested_item shift.open_date is exist - process it [16:37:02]req_shift_open_date [16:37:02]req_shift_open_date done [16:37:02]produce_requested_data done [16:37:02]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29270,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [16:37:02]process_action_free close_receipt [16:37:02]json_value_free [16:37:02]json_value_free done [16:37:02]process_json_proto returns [16:37:02]Send response to host [16:37:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29270,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [16:37:02]free response buf [16:37:02]execute_script done [16:37:02]execute_script returns [16:37:02]free content buf [16:37:02]Sock 9.Close socket [16:37:02]Sock 9.Thread stoped [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:41]accept exits with 7 [16:37:41]New connection [16:37:41]New thread 3066928484 created [16:37:41]Thread 3066785124 joined [16:37:41]Waiting for new connection... [16:37:41] Sock 7.Parse request [16:37:41]Sock 7.Check first char [16:37:41]Sock 7.First char is OK [16:37:41]request: POST /json_proto HTTP/1.0 [16:37:41]Method: POST [16:37:41]URL: /json_proto [16:37:41]Method is POST - this is cgi request [16:37:41]url: /json_proto [16:37:41]query_string will be loaded in cgi processing [16:37:41]execute_cgi json_proto POST (null) [16:37:41]execute_cgi path=json_proto method=POST [16:37:41]POST find Content-Length [16:37:41]Host: 172.17.33.3:8080 [16:37:41]Content-Length: 677 [16:37:41]Content-Type: application/json [16:37:41] [16:37:41]POST finish read [16:37:41]Found Content-Length = 677 [16:37:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347657", "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:37:41]execute_script... [16:37: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)347657", "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:37:41]POST & json_proto [16:37:41]process_json_proto [16:37:41]json parsed OK: [16:37:41]protocol is kg_v1.0 [16:37:41]action value=close_receipt [16:37:41]process_action close_receipt [16:37:41]cmd_close_receipt [16:37:41]MH_GetDate [16:37:41]Write to MH i2c: F0 00 00 08 A6 9D [16:37:41]Write i2c OK [16:37:41]MH_I2C_Read... [16:37:41]Read from MH i2c: F0 [16:37:41]MH_I2C_Read... [16:37:41]Read from MH i2c: F0 09 00 [16:37:41]MH_I2C_Read... [16:37:41]Read from MH i2c: F0 09 00 08 A6 00 60 06 1C 66 23 5B 8F 65 00 [16:37:41]GetLastDocTimeStamp 1713112628 [16:37:41]current date 1713112672 [16:37:41]FM_GetShiftState [16:37:41]SAM_PROTO_GetShiftState [16:37:41]wFMCommunicate request_size=4 [16:37:41]MH_SAM_APDU [16:37:41]CAPDU: 80 13 01 00 [16:37:41]Write to MH i2c: E2 08 00 09 A6 80 13 01 00 00 00 00 00 2C [16:37:41]Write i2c OK [16:37:41]MH_I2C_Read... [16:37:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:37:41]Read from MH i2c: E2 [16:37:41]MH_I2C_Read... [16:37:41]Read from MH i2c: E2 0E 00 [16:37:41]MH_I2C_Read... [16:37:41]Read from MH i2c: E2 0E 00 09 A6 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 D8 [16:37:41]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [16:37:41]wFMCommunicate OK [16:37:41]SAM_PROTO_GetShiftState done [16:37:41]FM_GetShiftState done [16:37:41]opened in 1713053951 [16:37:41]opened+sec_in_day 1713140351 [16:37:41]quantity*price = 50025 [16:37:41]sum+1 = 50026 [16:37: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 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 181 14.04.2024 16:37 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29271 ФПД: 201729882258582 1/tax-web-control/client/api/v1/ticket?date=20240414T163752&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29271&fm=201729882258582&tin=02508201610067®Number=0000138879044617&sum=50000 [16:37:42]StoreToDocumentArchive [16:37:42]shift 116 fd 29271 [16:37:42]save to /storage/0116/doc_00029271 [16:37:42]save last doc name /storage/0116/doc_00029271 to /storage/kkm_last_doc_name [16:37:42]save OK [16:37:42]Clear old archive folders... [16:37:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:37:42]tlvbuf is 011D4890 [16:37:42]SAM_PROTO_ClearQueue [16:37:42]wFMCommunicate request_size=4 [16:37:42]MH_SAM_APDU [16:37:42]CAPDU: 80 09 00 00 [16:37:42]Write to MH i2c: E2 08 00 16 A6 80 09 00 00 00 00 00 00 2E [16:37:42]Write i2c OK [16:37:42]MH_I2C_Read... [16:37:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:37:42]Read from MH i2c: E2 [16:37:42]MH_I2C_Read... [16:37:42]Read from MH i2c: E2 03 00 [16:37:42]MH_I2C_Read... [16:37:42]Read from MH i2c: E2 03 00 16 A6 00 90 00 30 [16:37:42]RAPDU: 90 00 [16:37:42]wFMCommunicate OK [16:37:42]SAM_PROTO_ClearQueue done [16:37:42]KKMCreateOFDPacket [16:37:42]OFDProtocolAddRootSTLVToBuf [16:37:42]FM_MakeSignedData [16:37:42]FM_MakeSignedData [16:37:42]SAM_PROTO_SignData [16:37:42]wFMCommunicate request_size=4 [16:37:42]MH_SAM_APDU [16:37:42]CAPDU: 80 0D 01 02 [16:37:42]Write to MH i2c: E2 08 00 17 A6 80 0D 01 02 00 00 00 00 36 [16:37:42]Write i2c OK [16:37:42]MH_I2C_Read... [16:37:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:37:43]Read from MH i2c: E2 [16:37:43]MH_I2C_Read... [16:37:43]Read from MH i2c: E2 03 00 [16:37:43]MH_I2C_Read... [16:37:43]Read from MH i2c: E2 03 00 17 A6 00 90 00 31 [16:37:43]RAPDU: 90 00 [16:37:43]wFMCommunicate OK [16:37:43]wFMCommunicate request_size=255 [16:37:43]MH_SAM_APDU [16:37: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 B5 00 00 00 F4 03 04 00 60 06 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 57 72 00 00 35 04 06 00 B7 [16:37:43]Write to MH i2c: E2 02 01 18 A6 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 B5 00 00 00 F4 03 04 00 60 06 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 57 72 00 00 35 04 06 00 B7 00 00 89 [16:37:43]Write i2c OK [16:37:43]MH_I2C_Read... [16:37:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:37:43]Read from MH i2c: E2 [16:37:43]MH_I2C_Read... [16:37:43]Read from MH i2c: E2 03 00 [16:37:43]MH_I2C_Read... [16:37:43]Read from MH i2c: E2 03 00 18 A6 00 90 00 32 [16:37:43]RAPDU: 90 00 [16:37:43]wFMCommunicate OK [16:37:43]wFMCommunicate request_size=10 [16:37:43]MH_SAM_APDU [16:37:43]CAPDU: 80 0D 02 02 05 78 E5 F8 FC 96 [16:37:43]Write to MH i2c: E2 0D 00 19 A6 80 0D 02 02 05 00 78 E5 F8 FC 96 00 00 2A [16:37:43]Write i2c OK [16:37:43]MH_I2C_Read... [16:37:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:37:43]Read from MH i2c: E2 [16:37:43]MH_I2C_Read... [16:37:43]Read from MH i2c: E2 03 00 [16:37:43]MH_I2C_Read... [16:37:43]Read from MH i2c: E2 03 00 19 A6 00 90 00 33 [16:37:43]RAPDU: 90 00 [16:37:43]wFMCommunicate OK [16:37:43]wFMCommunicate request_size=4 [16:37:43]MH_SAM_APDU [16:37:43]CAPDU: 80 0D 03 02 [16:37:43]Write to MH i2c: E2 08 00 1A A6 80 0D 03 02 00 00 00 00 3B [16:37:43]Write i2c OK [16:37:43]MH_I2C_Read... [16:37:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:37:43]Read from MH i2c: E2 [16:37:43]MH_I2C_Read... [16:37:43]Read from MH i2c: E2 0B 00 [16:37:43]MH_I2C_Read... [16:37:43]Read from MH i2c: E2 0B 00 1A A6 00 3E 63 FC A4 81 32 B4 F3 90 00 D7 [16:37:43]RAPDU: 3E 63 FC A4 81 32 B4 F3 90 00 [16:37:43]wFMCommunicate OK [16:37:43]SAM_PROTO_SignData done [16:37:43]FM_MakeSignedData done [16:37:43]CreateOFDProtocolMessage [16:37:43]wFMCommunicate request_size=4 [16:37:43]MH_SAM_APDU [16:37:43]CAPDU: 80 11 00 00 [16:37:43]Write to MH i2c: E2 08 00 1B A6 80 11 00 00 00 00 00 00 3B [16:37:43]Write i2c OK [16:37:43]MH_I2C_Read... [16:37:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:37:43]Read from MH i2c: E2 [16:37:43]MH_I2C_Read... [16:37:43]Read from MH i2c: E2 17 00 [16:37:43]MH_I2C_Read... [16:37:43]Read from MH i2c: E2 17 00 1B A6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 8A [16:37:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:37:43]wFMCommunicate OK [16:37:43]CreateOFDProtocolMessage done [16:37:43]OFDSenderStorePacket 29271 [16:37:43]StoreOFDPacket docnum=29271 [16:37:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 EC DF 07 01 CE 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 B5 00 00 00 F4 03 04 00 60 06 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 57 72 00 00 35 04 06 00 B7 78 E5 F8 FC 96 3E 63 FC A4 81 32 B4 F3 [16:37:43]CheckFolder [16:37:43]dirname=/storage/ofd_packets [16:37:43]CheckFolder done [16:37:43]ProducePacketName [16:37:43]name=ofd_packets/00029271 [16:37:43]NVStorageSaveData ofd_packets/00029271 [16:37:43]File name is /storage/ofd_packets/00029271 [16:37:43]Write 301 bytes [16:37:43]NVStorageSaveData done [16:37:43]OFDSenderStorePacket done [16:37:43]KKMCreateOFDPacket done [16:37:43]NVStorageSaveData kkm_last_timestamp [16:37:43]File name is /storage/kkm_last_timestamp [16:37:43]Write 4 bytes [16:37:43]NVStorageSaveData done [16:37:43]ExternCall_PrintAddStr [16:37:43]wPrintStart [16:37:43]Write to MH i2c: 01 00 00 1C A6 C2 [16:37:43]OFD Sender: Processing packet 29271 [packets to send 8, broken 7] [16:37:43]ProducePacketName [16:37:43]name=ofd_packets/00029271 [16:37:43]OFD Sender: To server: pG, [16:37:43]CommunicateWithHost lk.salyk.kg:30040 [16:37:43]ConnectInit lk.salyk.kg [16:37:43]Write i2c OK [16:37:43]MH_I2C_Read... [16:37:43]Read from MH i2c: 01 [16:37:43]MH_I2C_Read... [16:37:43]Read from MH i2c: 01 07 00 [16:37:43]MH_I2C_Read... [16:37:43]Read from MH i2c: 01 07 00 1C A6 00 00 00 00 00 FF 0F D7 [16:37:43]RasterBufferAndPrint [16:37:43]line Счет N : (1)347657 [16:37:43]line ИНН: 02508201610067 [16:37:43]line Контрольно-Кассовый Чек [16:37:43]line ПРОДАЖА [16:37:43]line ТРК (МРК, ГНК) : 42 [16:37:43]line Товар: 2710124130 [16:37:43]line Аи-92-К-5 [16:37:43]line 7.780 * 64.30 [16:37:43]line = 500.25 [16:37:43]line НДС 12% НСП 1% [16:37:43]line > о реализуемом товаре [16:37:43]line ОКРУГЛЕНИЕ: -0.25 [16:37:43]line ИТОГО: 500.00 [16:37:43]line Внесено: 500.00 [16:37:43]line СДАЧА: 0.00 [16:37:43]line НСП 1% : 4.43 [16:37:43]line НДС 12% : 53.12 [16:37:43]line Наличными: 500.00 [16:37:43]line Безнал.: 0.00 [16:37:43]line Место: АЗС № 108 "Партнер Нефть" [16:37:43]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [16:37:43]line СНО: Общий режим [16:37:43]line Чек 181 14.04.2024 16:37 [16:37:43]line Смена: 116 ФФД: 1.0 [16:37:43]line ЗНМ: 0300000027 [16:37:43]line РНМ: 0000138879044617 [16:37:43]line Версия ККМ: 001 [16:37:43]line ФМ: 0000000000963154 [16:37:43]line ФД: 29271 [16:37:43]line ФПД: 201729882258582 [16:37:43]line 1/tax-web-control/client/api/v1/ticket?date=20240414T163752&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29271&fm=201729882258582&tin=02508201610067®Number=0000138879044617&sum=50000 [16:37:43]Connected sock=10 [16:37:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 EC DF 07 01 CE 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 B5 00 00 00 F4 03 04 00 60 06 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 57 72 00 00 35 04 06 00 B7 78 E5 F8 FC 96 3E 63 FC A4 81 32 B4 F3 [16:37:43]written 0, free lines is 4095 [16:37:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 EB 90 47 00 36 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 39 36 33 31 35 34 10 04 04 00 57 72 00 00 F4 03 04 00 04 B1 1B 66 B6 04 01 00 00 0E 2C 23 1F 2F 2E 1F 03 [16:37:43]CommunicateWithHost err = 0 [16:37:43]CheckOFDResponse [16:37:43]1017 (14) - 77093643461234 [16:37:43]1041 (16) - 0000000000963154 [16:37:43]1040 (4) - 29271 [16:37:43]1012 (4) - 14.04.2024 10:33 [16:37:43]1206 (1) - 0 [16:37:43]OFD Sender: Remove packet 29271 [16:37:43]ProducePacketName [16:37:43]name=ofd_packets/00029271 [16:37:43]NVStorageDeleteData [16:37:44]Write to MH i2c: 01 00 00 46 A6 EC [16:37:44]Write i2c OK [16:37:44]MH_I2C_Read... [16:37:44]Read from MH i2c: 01 [16:37:44]MH_I2C_Read... [16:37:44]Read from MH i2c: 01 07 00 [16:37:44]MH_I2C_Read... [16:37:44]Read from MH i2c: 01 07 00 46 A6 00 00 00 00 00 C2 0C C1 [16:37:44]RasterBufferAndPrint [16:37:44]line [16:37:44]line [16:37:44]line [16:37:44]line [16:37:44]line [16:37:44]written 0, free lines is 3270 [16:37:44]MH_Cut [16:37:44]Write to MH i2c: D1 01 00 4D A6 01 C5 [16:37:44]Write i2c OK [16:37:44]MH_I2C_Read... [16:37:44]Read from MH i2c: D1 [16:37:44]MH_I2C_Read... [16:37:44]Read from MH i2c: D1 01 00 [16:37:44]MH_I2C_Read... [16:37:44]Read from MH i2c: D1 01 00 4D A6 00 C4 [16:37:44]Write to MH i2c: 01 00 00 4E A6 F4 [16:37:44]Write i2c OK [16:37:44]MH_I2C_Read... [16:37:44]OFD Sender: No OFD packet to send [16:37:45]*** Cut start [16:37:45]*** Partial cut [16:37:45]*** CUTSNS_PIN = 1 [16:37:45]*** CUTSNS_PIN = 0 [16:37:45]*** Brake cut motor [16:37:45]Read from MH i2c: 01 [16:37:45]MH_I2C_Read... [16:37:45]*** Stop cut motor [16:37:45]*** Cut end [16:37:45]Read from MH i2c: 01 07 00 [16:37:45]MH_I2C_Read... [16:37:45]Read from MH i2c: 01 07 00 4E A6 00 00 00 00 00 FF 0F 09 [16:37:45]process_action close_receipt done [16:37:45]requested_data is exist [16:37:45]produce_requested_data [16:37:45]requested_item fm.sn is exist - process it [16:37:45]wFMCommunicate request_size=4 [16:37:45]MH_SAM_APDU [16:37:45]CAPDU: 80 11 00 00 [16:37:45]Write to MH i2c: E2 08 00 4F A6 80 11 00 00 00 00 00 00 6F [16:37:45]Write i2c OK [16:37:45]MH_I2C_Read... [16:37:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:37:45]Read from MH i2c: E2 [16:37:45]MH_I2C_Read... [16:37:45]Read from MH i2c: E2 17 00 [16:37:45]MH_I2C_Read... [16:37:45]Read from MH i2c: E2 17 00 4F A6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 BE [16:37:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:37:45]wFMCommunicate OK [16:37:45]requested_item fd.num is exist - process it [16:37:45]SAM_PROTO_GetFieldsCounters [16:37:45]wFMCommunicate request_size=4 [16:37:45]MH_SAM_APDU [16:37:45]CAPDU: 80 13 00 00 [16:37:45]Write to MH i2c: E2 08 00 50 A6 80 13 00 00 00 00 00 00 72 [16:37:45]Write i2c OK [16:37:45]MH_I2C_Read... [16:37:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:37:45]Read from MH i2c: E2 [16:37:45]MH_I2C_Read... [16:37:45]Read from MH i2c: E2 62 00 [16:37:45]MH_I2C_Read... [16:37:45]Read from MH i2c: E2 62 00 50 A6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 57 72 00 00 0E 04 04 00 74 00 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 0C [16:37:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 57 72 00 00 0E 04 04 00 74 00 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 [16:37:45]wFMCommunicate OK [16:37:45]SAM_PROTO_GetFieldsCounters done [16:37:45]requested_item shift.num is exist - process it [16:37:45]requested_item shift.opened is exist - process it [16:37:45]req_shift_opened [16:37:45]FM_GetShiftState [16:37:45]SAM_PROTO_GetShiftState [16:37:45]wFMCommunicate request_size=4 [16:37:45]MH_SAM_APDU [16:37:45]CAPDU: 80 13 01 00 [16:37:45]Write to MH i2c: E2 08 00 51 A6 80 13 01 00 00 00 00 00 74 [16:37:45]Write i2c OK [16:37:45]MH_I2C_Read... [16:37:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:37:45]Read from MH i2c: E2 [16:37:45]MH_I2C_Read... [16:37:45]Read from MH i2c: E2 0E 00 [16:37:45]MH_I2C_Read... [16:37:45]Read from MH i2c: E2 0E 00 51 A6 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 20 [16:37:45]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [16:37:45]wFMCommunicate OK [16:37:45]SAM_PROTO_GetShiftState done [16:37:45]FM_GetShiftState done [16:37:45]req_shift_opened done [16:37:45]requested_item shift.open_date is exist - process it [16:37:45]req_shift_open_date [16:37:45]req_shift_open_date done [16:37:45]produce_requested_data done [16:37:45]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29271,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [16:37:45]process_action_free close_receipt [16:37:45]json_value_free [16:37:45]json_value_free done [16:37:45]process_json_proto returns [16:37:45]Send response to host [16:37:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29271,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [16:37:45]free response buf [16:37:45]execute_script done [16:37:45]execute_script returns [16:37:45]free content buf [16:37:45]Sock 7.Close socket [16:37:45]Sock 7.Thread stoped [16:37:49]OFD Sender: No OFD packet to send [16:37:54]OFD Sender: No OFD packet to send [16:37:59]OFD Sender: No OFD packet to send [16:38:04]OFD Sender: No OFD packet to send [16:38:09]OFD Sender: No OFD packet to send [16:38:14]OFD Sender: No OFD packet to send [16:38:19]OFD Sender: No OFD packet to send [16:38:24]OFD Sender: No OFD packet to send [16:38:29]OFD Sender: No OFD packet to send [16:38:34]OFD Sender: No OFD packet to send [16:38:39]OFD Sender: No OFD packet to send [16:38:44]OFD Sender: No OFD packet to send [16:38:49]OFD Sender: No OFD packet to send [16:38:54]OFD Sender: No OFD packet to send [16:38:59]OFD Sender: No OFD packet to send [16:39:04]OFD Sender: No OFD packet to send [16:39:09]OFD Sender: No OFD packet to send [16:39:14]OFD Sender: No OFD packet to send [16:39:19]OFD Sender: No OFD packet to send [16:39:24]OFD Sender: No OFD packet to send [16:39:29]OFD Sender: No OFD packet to send [16:39:34]OFD Sender: No OFD packet to send [16:39:39]OFD Sender: No OFD packet to send [16:39:44]OFD Sender: No OFD packet to send [16:39:49]OFD Sender: No OFD packet to send [16:39:54]OFD Sender: No OFD packet to send [16:39:59]OFD Sender: No OFD packet to send [16:40:04]OFD Sender: No OFD packet to send [16:40:09]OFD Sender: No OFD packet to send [16:40:14]OFD Sender: No OFD packet to send [16:40:19]OFD Sender: No OFD packet to send [16:40:24]OFD Sender: No OFD packet to send [16:40:29]OFD Sender: No OFD packet to send [16:40:34]OFD Sender: No OFD packet to send [16:40:39]OFD Sender: No OFD packet to send [16:40:44]OFD Sender: No OFD packet to send [16:40:49]OFD Sender: No OFD packet to send [16:40:54]OFD Sender: No OFD packet to send [16:40:59]OFD Sender: No OFD packet to send [16:41:04]OFD Sender: No OFD packet to send [16:41:09]OFD Sender: No OFD packet to send [16:41:14]OFD Sender: No OFD packet to send [16:41:19]OFD Sender: No OFD packet to send [16:41:24]OFD Sender: No OFD packet to send [16:41:29]OFD Sender: No OFD packet to send [16:41:34]OFD Sender: No OFD packet to send [16:41:39]OFD Sender: No OFD packet to send [16:41:44]OFD Sender: No OFD packet to send [16:41:49]OFD Sender: No OFD packet to send [16:41:54]OFD Sender: No OFD packet to send [16:41:59]OFD Sender: No OFD packet to send [16:42:04]OFD Sender: No OFD packet to send [16:42:09]OFD Sender: No OFD packet to send [16:42:14]OFD Sender: No OFD packet to send [16:42:19]OFD Sender: No OFD packet to send [16:42:24]OFD Sender: No OFD packet to send [16:42:29]OFD Sender: No OFD packet to send [16:42:34]OFD Sender: No OFD packet to send [16:42:39]OFD Sender: No OFD packet to send [16:42:44]OFD Sender: No OFD packet to send [16:42:49]OFD Sender: No OFD packet to send [16:42:54]OFD Sender: No OFD packet to send [16:42:59]OFD Sender: No OFD packet to send [16:43:04]OFD Sender: No OFD packet to send [16:43:09]OFD Sender: No OFD packet to send [16:43:14]OFD Sender: No OFD packet to send [16:43:19]OFD Sender: No OFD packet to send [16:43:24]OFD Sender: No OFD packet to send [16:43:29]OFD Sender: No OFD packet to send [16:43:34]OFD Sender: No OFD packet to send [16:43:39]OFD Sender: No OFD packet to send [16:43:44]OFD Sender: No OFD packet to send [16:43:49]OFD Sender: No OFD packet to send [16:43:54]OFD Sender: No OFD packet to send [16:43:59]OFD Sender: No OFD packet to send [16:44:04]OFD Sender: No OFD packet to send [16:44:09]OFD Sender: No OFD packet to send [16:44:14]OFD Sender: No OFD packet to send [16:44:19]OFD Sender: No OFD packet to send [16:44:24]OFD Sender: No OFD packet to send [16:44:29]OFD Sender: No OFD packet to send [16:44:34]OFD Sender: No OFD packet to send [16:44:39]OFD Sender: No OFD packet to send [16:44:44]OFD Sender: No OFD packet to send [16:44:49]OFD Sender: No OFD packet to send [16:44:54]OFD Sender: No OFD packet to send [16:44:59]OFD Sender: No OFD packet to send [16:45:04]OFD Sender: No OFD packet to send [16:45:09]OFD Sender: No OFD packet to send [16:45:14]OFD Sender: No OFD packet to send [16:45:19]OFD Sender: No OFD packet to send [16:45:24]OFD Sender: No OFD packet to send [16:45:29]OFD Sender: No OFD packet to send [16:45:34]OFD Sender: No OFD packet to send [16:45:39]OFD Sender: No OFD packet to send [16:45:44]OFD Sender: No OFD packet to send [16:45:49]OFD Sender: No OFD packet to send [16:45:54]OFD Sender: No OFD packet to send [16:45:59]OFD Sender: No OFD packet to send [16:46:04]OFD Sender: No OFD packet to send [16:46:09]OFD Sender: No OFD packet to send [16:46:14]OFD Sender: No OFD packet to send [16:46:19]OFD Sender: No OFD packet to send [16:46:24]OFD Sender: No OFD packet to send [16:46:29]OFD Sender: No OFD packet to send [16:46:34]OFD Sender: No OFD packet to send [16:46:39]OFD Sender: No OFD packet to send [16:46:44]OFD Sender: No OFD packet to send [16:46:49]OFD Sender: No OFD packet to send [16:46:54]OFD Sender: No OFD packet to send [16:46:59]OFD Sender: No OFD packet to send [16:47:04]OFD Sender: No OFD packet to send [16:47:09]OFD Sender: No OFD packet to send [16:47:14]OFD Sender: No OFD packet to send [16:47:19]OFD Sender: No OFD packet to send [16:47:24]OFD Sender: No OFD packet to send [16:47:29]OFD Sender: No OFD packet to send [16:47:34]OFD Sender: No OFD packet to send [16:47:39]OFD Sender: No OFD packet to send [16:47:44]OFD Sender: No OFD packet to send [16:47:49]OFD Sender: No OFD packet to send [16:47:54]OFD Sender: No OFD packet to send [16:47:59]OFD Sender: No OFD packet to send [16:48:04]OFD Sender: No OFD packet to send [16:48:09]OFD Sender: No OFD packet to send [16:48:14]OFD Sender: No OFD packet to send [16:48:19]OFD Sender: No OFD packet to send [16:48:24]OFD Sender: No OFD packet to send [16:48:29]OFD Sender: No OFD packet to send [16:48: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:43]accept exits with 9 [16:49:43]New connection [16:49:43]New thread 3066785124 created [16:49:43]Thread 3066928484 joined [16:49:43]Waiting for new connection... [16:49:43] Sock 9.Parse request [16:49:43]Sock 9.Check first char [16:49:43]Sock 9.First char is OK [16:49:43]request: POST /json_proto HTTP/1.0 [16:49:43]Method: POST [16:49:43]URL: /json_proto [16:49:43]Method is POST - this is cgi request [16:49:43]url: /json_proto [16:49:43]query_string will be loaded in cgi processing [16:49:43]execute_cgi json_proto POST (null) [16:49:43]execute_cgi path=json_proto method=POST [16:49:43]POST find Content-Length [16:49:43]Host: 172.17.33.3:8080 [16:49:43]Content-Length: 674 [16:49:43]Content-Type: application/json [16:49:43] [16:49:43]POST finish read [16:49:43]Found Content-Length = 674 [16:49:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347658", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.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" ] } } [16:49:43]execute_script... [16:49: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)347658", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.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" ] } } [16:49:43]POST & json_proto [16:49:43]process_json_proto [16:49:43]json parsed OK: [16:49:43]protocol is kg_v1.0 [16:49:43]action value=close_receipt [16:49:43]process_action close_receipt [16:49:43]cmd_close_receipt [16:49:43]MH_GetDate [16:49:43]Write to MH i2c: F0 00 00 52 A6 E7 [16:49:43]Write i2c OK [16:49:43]MH_I2C_Read... [16:49:43]Read from MH i2c: F0 [16:49:43]MH_I2C_Read... [16:49:43]Read from MH i2c: F0 09 00 [16:49:43]MH_I2C_Read... [16:49:43]Read from MH i2c: F0 09 00 52 A6 00 32 09 1C 66 23 5B 8F 65 1F [16:49:43]GetLastDocTimeStamp 1713112672 [16:49:43]current date 1713113394 [16:49:43]FM_GetShiftState [16:49:43]SAM_PROTO_GetShiftState [16:49:43]wFMCommunicate request_size=4 [16:49:43]MH_SAM_APDU [16:49:43]CAPDU: 80 13 01 00 [16:49:43]Write to MH i2c: E2 08 00 53 A6 80 13 01 00 00 00 00 00 76 [16:49:43]Write i2c OK [16:49:43]MH_I2C_Read... [16:49:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:49:43]Read from MH i2c: E2 [16:49:43]MH_I2C_Read... [16:49:43]Read from MH i2c: E2 0E 00 [16:49:43]MH_I2C_Read... [16:49:43]Read from MH i2c: E2 0E 00 53 A6 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 22 [16:49:43]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [16:49:43]wFMCommunicate OK [16:49:43]SAM_PROTO_GetShiftState done [16:49:43]FM_GetShiftState done [16:49:43]opened in 1713053951 [16:49:43]opened+sec_in_day 1713140351 [16:49:43]quantity*price = 50028 [16:49:43]sum+1 = 50029 [16:49:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 182 14.04.2024 16:49 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29272 ФПД: 212918821834167 1/tax-web-control/client/api/v1/ticket?date=20240414T164954&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29272&fm=212918821834167&tin=02508201610067®Number=0000138879044617&sum=50000 [16:49:45]StoreToDocumentArchive [16:49:45]shift 116 fd 29272 [16:49:45]save to /storage/0116/doc_00029272 [16:49:45]save last doc name /storage/0116/doc_00029272 to /storage/kkm_last_doc_name [16:49:45]save OK [16:49:45]Clear old archive folders... [16:49:45]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:49:45]tlvbuf is 0121A520 [16:49:45]SAM_PROTO_ClearQueue [16:49:45]wFMCommunicate request_size=4 [16:49:45]MH_SAM_APDU [16:49:45]CAPDU: 80 09 00 00 [16:49:45]Write to MH i2c: E2 08 00 60 A6 80 09 00 00 00 00 00 00 78 [16:49:45]Write i2c OK [16:49:45]MH_I2C_Read... [16:49:45]OFD Sender: No OFD packet to send [16:49:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:49:45]Read from MH i2c: E2 [16:49:45]MH_I2C_Read... [16:49:45]Read from MH i2c: E2 03 00 [16:49:45]MH_I2C_Read... [16:49:45]Read from MH i2c: E2 03 00 60 A6 00 90 00 7A [16:49:45]RAPDU: 90 00 [16:49:45]wFMCommunicate OK [16:49:45]SAM_PROTO_ClearQueue done [16:49:45]KKMCreateOFDPacket [16:49:45]OFDProtocolAddRootSTLVToBuf [16:49:45]FM_MakeSignedData [16:49:45]FM_MakeSignedData [16:49:45]SAM_PROTO_SignData [16:49:45]wFMCommunicate request_size=4 [16:49:45]MH_SAM_APDU [16:49:45]CAPDU: 80 0D 01 02 [16:49:45]Write to MH i2c: E2 08 00 61 A6 80 0D 01 02 00 00 00 00 80 [16:49:45]Write i2c OK [16:49:45]MH_I2C_Read... [16:49:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:49:45]Read from MH i2c: E2 [16:49:45]MH_I2C_Read... [16:49:45]Read from MH i2c: E2 03 00 [16:49:45]MH_I2C_Read... [16:49:45]Read from MH i2c: E2 03 00 61 A6 00 90 00 7B [16:49:45]RAPDU: 90 00 [16:49:45]wFMCommunicate OK [16:49:45]wFMCommunicate request_size=255 [16:49:45]MH_SAM_APDU [16:49: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 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 B6 00 00 00 F4 03 04 00 32 09 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 58 72 00 00 35 04 06 00 C1 A6 06 BD [16:49:45]Write to MH i2c: E2 02 01 62 A6 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 B6 00 00 00 F4 03 04 00 32 09 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 58 72 00 00 35 04 06 00 C1 A6 06 BD 00 00 37 [16:49:45]Write i2c OK [16:49:45]MH_I2C_Read... [16:49:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:49:45]Read from MH i2c: E2 [16:49:45]MH_I2C_Read... [16:49:45]Read from MH i2c: E2 03 00 [16:49:45]MH_I2C_Read... [16:49:45]Read from MH i2c: E2 03 00 62 A6 00 90 00 7C [16:49:45]RAPDU: 90 00 [16:49:45]wFMCommunicate OK [16:49:45]wFMCommunicate request_size=7 [16:49:45]MH_SAM_APDU [16:49:45]CAPDU: 80 0D 02 02 02 CD B7 [16:49:45]Write to MH i2c: E2 0A 00 63 A6 80 0D 02 02 02 00 CD B7 00 00 0B [16:49:45]Write i2c OK [16:49:45]MH_I2C_Read... [16:49:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:49:45]Read from MH i2c: E2 [16:49:45]MH_I2C_Read... [16:49:45]Read from MH i2c: E2 03 00 [16:49:45]MH_I2C_Read... [16:49:45]Read from MH i2c: E2 03 00 63 A6 00 90 00 7D [16:49:45]RAPDU: 90 00 [16:49:45]wFMCommunicate OK [16:49:45]wFMCommunicate request_size=4 [16:49:45]MH_SAM_APDU [16:49:45]CAPDU: 80 0D 03 02 [16:49:45]Write to MH i2c: E2 08 00 64 A6 80 0D 03 02 00 00 00 00 85 [16:49:45]Write i2c OK [16:49:45]MH_I2C_Read... [16:49:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:49:45]Read from MH i2c: E2 [16:49:45]MH_I2C_Read... [16:49:45]Read from MH i2c: E2 0B 00 [16:49:45]MH_I2C_Read... [16:49:45]Read from MH i2c: E2 0B 00 64 A6 00 AE A9 45 9A 13 5E C3 19 90 00 09 [16:49:45]RAPDU: AE A9 45 9A 13 5E C3 19 90 00 [16:49:45]wFMCommunicate OK [16:49:45]SAM_PROTO_SignData done [16:49:45]FM_MakeSignedData done [16:49:45]CreateOFDProtocolMessage [16:49:45]wFMCommunicate request_size=4 [16:49:45]MH_SAM_APDU [16:49:45]CAPDU: 80 11 00 00 [16:49:45]Write to MH i2c: E2 08 00 65 A6 80 11 00 00 00 00 00 00 85 [16:49:45]Write i2c OK [16:49:45]MH_I2C_Read... [16:49:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:49:45]Read from MH i2c: E2 [16:49:45]MH_I2C_Read... [16:49:45]Read from MH i2c: E2 17 00 [16:49:45]MH_I2C_Read... [16:49:45]Read from MH i2c: E2 17 00 65 A6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D4 [16:49:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:49:45]wFMCommunicate OK [16:49:45]CreateOFDProtocolMessage done [16:49:45]OFDSenderStorePacket 29272 [16:49:45]StoreOFDPacket docnum=29272 [16:49:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 F1 34 04 01 AD 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 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 B6 00 00 00 F4 03 04 00 32 09 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 58 72 00 00 35 04 06 00 C1 A6 06 BD CD B7 AE A9 45 9A 13 5E C3 19 [16:49:45]CheckFolder [16:49:45]dirname=/storage/ofd_packets [16:49:45]CheckFolder done [16:49:45]ProducePacketName [16:49:45]name=ofd_packets/00029272 [16:49:45]NVStorageSaveData ofd_packets/00029272 [16:49:45]File name is /storage/ofd_packets/00029272 [16:49:45]Write 298 bytes [16:49:45]NVStorageSaveData done [16:49:45]OFDSenderStorePacket done [16:49:45]KKMCreateOFDPacket done [16:49:45]NVStorageSaveData kkm_last_timestamp [16:49:45]File name is /storage/kkm_last_timestamp [16:49:45]Write 4 bytes [16:49:45]NVStorageSaveData done [16:49:45]ExternCall_PrintAddStr [16:49:45]wPrintStart [16:49:45]Write to MH i2c: 01 00 00 66 A6 0C [16:49:45]OFD Sender: Processing packet 29272 [packets to send 8, broken 7] [16:49:45]ProducePacketName [16:49:45]name=ofd_packets/00029272 [16:49:45]OFD Sender: To server: pG, [16:49:45]CommunicateWithHost lk.salyk.kg:30040 [16:49:45]ConnectInit lk.salyk.kg [16:49:45]Write i2c OK [16:49:45]MH_I2C_Read... [16:49:45]Read from MH i2c: 01 [16:49:45]MH_I2C_Read... [16:49:45]Read from MH i2c: 01 07 00 [16:49:45]MH_I2C_Read... [16:49:45]Read from MH i2c: 01 07 00 66 A6 00 00 00 00 00 FF 0F 21 [16:49:45]RasterBufferAndPrint [16:49:45]line Счет N : (1)347658 [16:49:45]line ИНН: 02508201610067 [16:49:45]line Контрольно-Кассовый Чек [16:49:45]line ПРОДАЖА [16:49:45]line ТРК (МРК, ГНК) : 11 [16:49:45]line Товар: 2710194210 [16:49:45]line ДТ-К-5 [16:49:45]line 6.910 * 72.40 [16:49:45]line = 500.28 [16:49:45]line НДС 12% НСП 1% [16:49:45]line > о реализуемом товаре [16:49:45]line ОКРУГЛЕНИЕ: -0.28 [16:49:45]line ИТОГО: 500.00 [16:49:45]line Внесено: 500.00 [16:49:45]line СДАЧА: 0.00 [16:49:45]line НСП 1% : 4.43 [16:49:45]line НДС 12% : 53.13 [16:49:45]line Наличными: 500.00 [16:49:45]line Безнал.: 0.00 [16:49:45]line Место: АЗС № 108 "Партнер Нефть" [16:49:45]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [16:49:45]line СНО: Общий режим [16:49:45]line Чек 182 14.04.2024 16:49 [16:49:45]line Смена: 116 ФФД: 1.0 [16:49:45]line ЗНМ: 0300000027 [16:49:45]line РНМ: 0000138879044617 [16:49:45]line Версия ККМ: 001 [16:49:45]line ФМ: 0000000000963154 [16:49:45]line ФД: 29272 [16:49:45]line ФПД: 212918821834167 [16:49:45]line 1/tax-web-control/client/api/v1/ticket?date=20240414T164954&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29272&fm=212918821834167&tin=02508201610067®Number=0000138879044617&sum=50000 [16:49:45]Connected sock=10 [16:49:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 F1 34 04 01 AD 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 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 B6 00 00 00 F4 03 04 00 32 09 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 58 72 00 00 35 04 06 00 C1 A6 06 BD CD B7 AE A9 45 9A 13 5E C3 19 [16:49:45]written 0, free lines is 4095 [16:49:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 51 61 47 00 51 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 58 72 00 00 F4 03 04 00 D6 B3 1B 66 B6 04 01 00 00 0D 04 BA 88 3B 6D C3 3F [16:49:46]CommunicateWithHost err = 0 [16:49:46]CheckOFDResponse [16:49:46]1017 (14) - 77093643461234 [16:49:46]1041 (16) - 0000000000963154 [16:49:46]1040 (4) - 29272 [16:49:46]1012 (4) - 14.04.2024 10:45 [16:49:46]1206 (1) - 0 [16:49:46]OFD Sender: Remove packet 29272 [16:49:46]ProducePacketName [16:49:46]name=ofd_packets/00029272 [16:49:46]NVStorageDeleteData [16:49:46]Write to MH i2c: 01 00 00 90 A6 36 [16:49:46]Write i2c OK [16:49:46]MH_I2C_Read... [16:49:46]Read from MH i2c: 01 [16:49:46]MH_I2C_Read... [16:49:46]Read from MH i2c: 01 07 00 [16:49:46]MH_I2C_Read... [16:49:46]Read from MH i2c: 01 07 00 90 A6 00 00 00 00 00 C4 0C 0D [16:49:46]RasterBufferAndPrint [16:49:46]line [16:49:46]line [16:49:46]line [16:49:46]line [16:49:46]line [16:49:46]written 0, free lines is 3274 [16:49:46]MH_Cut [16:49:46]Write to MH i2c: D1 01 00 97 A6 01 0F [16:49:46]Write i2c OK [16:49:46]MH_I2C_Read... [16:49:46]Read from MH i2c: D1 [16:49:46]MH_I2C_Read... [16:49:46]Read from MH i2c: D1 01 00 [16:49:46]MH_I2C_Read... [16:49:46]Read from MH i2c: D1 01 00 97 A6 00 0E [16:49:46]Write to MH i2c: 01 00 00 98 A6 3E [16:49:46]Write i2c OK [16:49:46]MH_I2C_Read... [16:49:46]OFD Sender: No OFD packet to send [16:49:47]*** Cut start [16:49:47]*** Partial cut [16:49:47]*** CUTSNS_PIN = 1 [16:49:47]*** CUTSNS_PIN = 0 [16:49:47]*** Brake cut motor [16:49:47]Read from MH i2c: 01 [16:49:47]MH_I2C_Read... [16:49:47]*** Stop cut motor [16:49:47]*** Cut end [16:49:47]Read from MH i2c: 01 07 00 [16:49:47]MH_I2C_Read... [16:49:47]Read from MH i2c: 01 07 00 98 A6 00 00 00 00 00 FF 0F 53 [16:49:47]process_action close_receipt done [16:49:47]requested_data is exist [16:49:47]produce_requested_data [16:49:47]requested_item fm.sn is exist - process it [16:49:47]wFMCommunicate request_size=4 [16:49:47]MH_SAM_APDU [16:49:47]CAPDU: 80 11 00 00 [16:49:47]Write to MH i2c: E2 08 00 99 A6 80 11 00 00 00 00 00 00 B9 [16:49:47]Write i2c OK [16:49:47]MH_I2C_Read... [16:49:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:49:47]Read from MH i2c: E2 [16:49:47]MH_I2C_Read... [16:49:47]Read from MH i2c: E2 17 00 [16:49:47]MH_I2C_Read... [16:49:47]Read from MH i2c: E2 17 00 99 A6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 08 [16:49:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:49:47]wFMCommunicate OK [16:49:47]requested_item fd.num is exist - process it [16:49:47]SAM_PROTO_GetFieldsCounters [16:49:47]wFMCommunicate request_size=4 [16:49:47]MH_SAM_APDU [16:49:47]CAPDU: 80 13 00 00 [16:49:47]Write to MH i2c: E2 08 00 9A A6 80 13 00 00 00 00 00 00 BC [16:49:47]Write i2c OK [16:49:47]MH_I2C_Read... [16:49:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:49:48]Read from MH i2c: E2 [16:49:48]MH_I2C_Read... [16:49:48]Read from MH i2c: E2 62 00 [16:49:48]MH_I2C_Read... [16:49:48]Read from MH i2c: E2 62 00 9A A6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 58 72 00 00 0E 04 04 00 74 00 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 5A [16:49:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 58 72 00 00 0E 04 04 00 74 00 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 [16:49:48]wFMCommunicate OK [16:49:48]SAM_PROTO_GetFieldsCounters done [16:49:48]requested_item shift.num is exist - process it [16:49:48]requested_item shift.opened is exist - process it [16:49:48]req_shift_opened [16:49:48]FM_GetShiftState [16:49:48]SAM_PROTO_GetShiftState [16:49:48]wFMCommunicate request_size=4 [16:49:48]MH_SAM_APDU [16:49:48]CAPDU: 80 13 01 00 [16:49:48]Write to MH i2c: E2 08 00 9B A6 80 13 01 00 00 00 00 00 BE [16:49:48]Write i2c OK [16:49:48]MH_I2C_Read... [16:49:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:49:48]Read from MH i2c: E2 [16:49:48]MH_I2C_Read... [16:49:48]Read from MH i2c: E2 0E 00 [16:49:48]MH_I2C_Read... [16:49:48]Read from MH i2c: E2 0E 00 9B A6 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 6A [16:49:48]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [16:49:48]wFMCommunicate OK [16:49:48]SAM_PROTO_GetShiftState done [16:49:48]FM_GetShiftState done [16:49:48]req_shift_opened done [16:49:48]requested_item shift.open_date is exist - process it [16:49:48]req_shift_open_date [16:49:48]req_shift_open_date done [16:49:48]produce_requested_data done [16:49:48]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29272,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [16:49:48]process_action_free close_receipt [16:49:48]json_value_free [16:49:48]json_value_free done [16:49:48]process_json_proto returns [16:49:48]Send response to host [16:49:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29272,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [16:49:48]free response buf [16:49:48]execute_script done [16:49:48]execute_script returns [16:49:48]free content buf [16:49:48]Sock 9.Close socket [16:49:48]Sock 9.Thread stoped [16:49:51]OFD Sender: No OFD packet to send [16:49:56]OFD Sender: No OFD packet to send [16:50:01]OFD Sender: No OFD packet to send [16:50:06]OFD Sender: No OFD packet to send [16:50:11]OFD Sender: No OFD packet to send [16:50:16]OFD Sender: No OFD packet to send [16:50:21]OFD Sender: No OFD packet to send [16:50:26]OFD Sender: No OFD packet to send [16:50:31]OFD Sender: No OFD packet to send [16:50:36]OFD Sender: No OFD packet to send [16:50:41]OFD Sender: No OFD packet to send [16:50:46]OFD Sender: No OFD packet to send [16:50:51]OFD Sender: No OFD packet to send [16:50:56]OFD Sender: No OFD packet to send [16:51:01]OFD Sender: No OFD packet to send [16:51:06]OFD Sender: No OFD packet to send [16:51:11]OFD Sender: No OFD packet to send [16:51:16]OFD Sender: No OFD packet to send [16:51:21]OFD Sender: No OFD packet to send [16:51:26]OFD Sender: No OFD packet to send [16:51:31]OFD Sender: No OFD packet to send [16:51:36]OFD Sender: No OFD packet to send [16:51:41]OFD Sender: No OFD packet to send [16:51:46]OFD Sender: No OFD packet to send [16:51:51]OFD Sender: No OFD packet to send [16:51:56]OFD Sender: No OFD packet to send [16:52:01]OFD Sender: No OFD packet to send [16:52:06]OFD Sender: No OFD packet to send [16:52:11]OFD Sender: No OFD packet to send [16:52:16]OFD Sender: No OFD packet to send [16:52:21]OFD Sender: No OFD packet to send [16:52:26]OFD Sender: No OFD packet to send [16:52:31]OFD Sender: No OFD packet to send [16:52:36]OFD Sender: No OFD packet to send [16:52:41]OFD Sender: No OFD packet to send [16:52:46]OFD Sender: No OFD packet to send [16:52:51]OFD Sender: No OFD packet to send [16:52:56]OFD Sender: No OFD packet to send [16:53:01]OFD Sender: No OFD packet to send [16:53:06]OFD Sender: No OFD packet to send [16:53:11]OFD Sender: No OFD packet to send [16:53:16]OFD Sender: No OFD packet to send [16:53:21]OFD Sender: No OFD packet to send [16:53:26]OFD Sender: No OFD packet to send [16:53:31]OFD Sender: No OFD packet to send [16:53:36]OFD Sender: No OFD packet to send [16:53:41]OFD Sender: No OFD packet to send [16:53:46]OFD Sender: No OFD packet to send [16:53:51]OFD Sender: No OFD packet to send [16:53:56]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:52]accept exits with 7 [16:57:52]New connection [16:57:52]New thread 3066928484 created [16:57:52]Thread 3066785124 joined [16:57:52]Waiting for new connection... [16:57:52] Sock 7.Parse request [16:57:52]Sock 7.Check first char [16:57:52]Sock 7.First char is OK [16:57:52]request: POST /json_proto HTTP/1.0 [16:57:52]Method: POST [16:57:52]URL: /json_proto [16:57:52]Method is POST - this is cgi request [16:57:52]url: /json_proto [16:57:52]query_string will be loaded in cgi processing [16:57:52]execute_cgi json_proto POST (null) [16:57:52]execute_cgi path=json_proto method=POST [16:57:52]POST find Content-Length [16:57:52]Host: 172.17.33.3:8080 [16:57:52]Content-Length: 677 [16:57:52]Content-Type: application/json [16:57:52] [16:57:52]POST finish read [16:57:52]Found Content-Length = 677 [16:57:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347659", "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:57:52]execute_script... [16:57: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)347659", "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:57:52]POST & json_proto [16:57:52]process_json_proto [16:57:52]json parsed OK: [16:57:52]protocol is kg_v1.0 [16:57:52]action value=close_receipt [16:57:52]process_action close_receipt [16:57:52]cmd_close_receipt [16:57:52]MH_GetDate [16:57:52]Write to MH i2c: F0 00 00 9C A6 31 [16:57:52]Write i2c OK [16:57:52]MH_I2C_Read... [16:57:52]Read from MH i2c: F0 [16:57:52]MH_I2C_Read... [16:57:52]Read from MH i2c: F0 09 00 [16:57:52]MH_I2C_Read... [16:57:52]Read from MH i2c: F0 09 00 9C A6 00 1B 0B 1C 66 23 5B 8F 65 54 [16:57:52]GetLastDocTimeStamp 1713113394 [16:57:52]current date 1713113883 [16:57:52]FM_GetShiftState [16:57:52]SAM_PROTO_GetShiftState [16:57:52]wFMCommunicate request_size=4 [16:57:52]MH_SAM_APDU [16:57:52]CAPDU: 80 13 01 00 [16:57:52]Write to MH i2c: E2 08 00 9D A6 80 13 01 00 00 00 00 00 C0 [16:57:52]Write i2c OK [16:57:52]MH_I2C_Read... [16:57:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:57:52]Read from MH i2c: E2 [16:57:52]MH_I2C_Read... [16:57:52]Read from MH i2c: E2 0E 00 [16:57:52]MH_I2C_Read... [16:57:52]Read from MH i2c: E2 0E 00 9D A6 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 6C [16:57:52]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [16:57:52]wFMCommunicate OK [16:57:52]SAM_PROTO_GetShiftState done [16:57:52]FM_GetShiftState done [16:57:52]opened in 1713053951 [16:57:52]opened+sec_in_day 1713140351 [16:57:52]quantity*price = 50025 [16:57:52]sum+1 = 50026 [16:57:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 183 14.04.2024 16:58 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29273 ФПД: 240149549821954 1/tax-web-control/client/api/v1/ticket?date=20240414T165803&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29273&fm=240149549821954&tin=02508201610067®Number=0000138879044617&sum=50000 [16:57:54]StoreToDocumentArchive [16:57:54]shift 116 fd 29273 [16:57:54]save to /storage/0116/doc_00029273 [16:57:54]save last doc name /storage/0116/doc_00029273 to /storage/kkm_last_doc_name [16:57:54]save OK [16:57:54]Clear old archive folders... [16:57:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:57:54]tlvbuf is 011EE560 [16:57:54]SAM_PROTO_ClearQueue [16:57:54]wFMCommunicate request_size=4 [16:57:54]MH_SAM_APDU [16:57:54]CAPDU: 80 09 00 00 [16:57:54]Write to MH i2c: E2 08 00 AA A6 80 09 00 00 00 00 00 00 C2 [16:57:54]Write i2c OK [16:57:54]MH_I2C_Read... [16:57:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:57:54]Read from MH i2c: E2 [16:57:54]MH_I2C_Read... [16:57:54]Read from MH i2c: E2 03 00 [16:57:54]MH_I2C_Read... [16:57:54]Read from MH i2c: E2 03 00 AA A6 00 90 00 C4 [16:57:54]RAPDU: 90 00 [16:57:54]wFMCommunicate OK [16:57:54]SAM_PROTO_ClearQueue done [16:57:54]KKMCreateOFDPacket [16:57:54]OFDProtocolAddRootSTLVToBuf [16:57:54]FM_MakeSignedData [16:57:54]FM_MakeSignedData [16:57:54]SAM_PROTO_SignData [16:57:54]wFMCommunicate request_size=4 [16:57:54]MH_SAM_APDU [16:57:54]CAPDU: 80 0D 01 02 [16:57:54]Write to MH i2c: E2 08 00 AB A6 80 0D 01 02 00 00 00 00 CA [16:57:54]Write i2c OK [16:57:54]MH_I2C_Read... [16:57:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:57:54]Read from MH i2c: E2 [16:57:54]MH_I2C_Read... [16:57:54]Read from MH i2c: E2 03 00 [16:57:54]MH_I2C_Read... [16:57:54]Read from MH i2c: E2 03 00 AB A6 00 90 00 C5 [16:57:54]RAPDU: 90 00 [16:57:54]wFMCommunicate OK [16:57:54]wFMCommunicate request_size=255 [16:57:54]MH_SAM_APDU [16:57: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 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 B7 00 00 00 F4 03 04 00 1B 0B 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 59 72 00 00 35 04 06 00 DA [16:57:54]Write to MH i2c: E2 02 01 AC A6 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 B7 00 00 00 F4 03 04 00 1B 0B 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 59 72 00 00 35 04 06 00 DA 00 00 04 [16:57:54]Write i2c OK [16:57:54]MH_I2C_Read... [16:57:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:57:54]Read from MH i2c: E2 [16:57:54]MH_I2C_Read... [16:57:54]Read from MH i2c: E2 03 00 [16:57:54]MH_I2C_Read... [16:57:54]Read from MH i2c: E2 03 00 AC A6 00 90 00 C6 [16:57:54]RAPDU: 90 00 [16:57:54]wFMCommunicate OK [16:57:54]wFMCommunicate request_size=10 [16:57:54]MH_SAM_APDU [16:57:54]CAPDU: 80 0D 02 02 05 6A 2C 9C 30 02 [16:57:54]Write to MH i2c: E2 0D 00 AD A6 80 0D 02 02 05 00 6A 2C 9C 30 02 00 00 3B [16:57:54]Write i2c OK [16:57:54]MH_I2C_Read... [16:57:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:57:54]Read from MH i2c: E2 [16:57:54]MH_I2C_Read... [16:57:54]Read from MH i2c: E2 03 00 [16:57:54]MH_I2C_Read... [16:57:54]Read from MH i2c: E2 03 00 AD A6 00 90 00 C7 [16:57:54]RAPDU: 90 00 [16:57:54]wFMCommunicate OK [16:57:54]wFMCommunicate request_size=4 [16:57:54]MH_SAM_APDU [16:57:54]CAPDU: 80 0D 03 02 [16:57:54]Write to MH i2c: E2 08 00 AE A6 80 0D 03 02 00 00 00 00 CF [16:57:54]Write i2c OK [16:57:54]MH_I2C_Read... [16:57:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:57:54]Read from MH i2c: E2 [16:57:54]MH_I2C_Read... [16:57:54]Read from MH i2c: E2 0B 00 [16:57:54]MH_I2C_Read... [16:57:54]Read from MH i2c: E2 0B 00 AE A6 00 46 35 5B BD CE 08 D7 34 90 00 44 [16:57:54]RAPDU: 46 35 5B BD CE 08 D7 34 90 00 [16:57:54]wFMCommunicate OK [16:57:54]SAM_PROTO_SignData done [16:57:54]FM_MakeSignedData done [16:57:54]CreateOFDProtocolMessage [16:57:54]wFMCommunicate request_size=4 [16:57:54]MH_SAM_APDU [16:57:54]CAPDU: 80 11 00 00 [16:57:54]Write to MH i2c: E2 08 00 AF A6 80 11 00 00 00 00 00 00 CF [16:57:54]Write i2c OK [16:57:54]MH_I2C_Read... [16:57:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:57:54]Read from MH i2c: E2 [16:57:54]MH_I2C_Read... [16:57:54]Read from MH i2c: E2 17 00 [16:57:54]MH_I2C_Read... [16:57:54]Read from MH i2c: E2 17 00 AF A6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 1E [16:57:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:57:54]wFMCommunicate OK [16:57:54]CreateOFDProtocolMessage done [16:57:54]OFDSenderStorePacket 29273 [16:57:54]StoreOFDPacket docnum=29273 [16:57:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 79 8C 07 01 D4 79 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 B7 00 00 00 F4 03 04 00 1B 0B 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 59 72 00 00 35 04 06 00 DA 6A 2C 9C 30 02 46 35 5B BD CE 08 D7 34 [16:57:54]CheckFolder [16:57:54]dirname=/storage/ofd_packets [16:57:54]CheckFolder done [16:57:54]ProducePacketName [16:57:54]name=ofd_packets/00029273 [16:57:54]NVStorageSaveData ofd_packets/00029273 [16:57:54]File name is /storage/ofd_packets/00029273 [16:57:54]Write 301 bytes [16:57:54]NVStorageSaveData done [16:57:54]OFDSenderStorePacket done [16:57:54]KKMCreateOFDPacket done [16:57:54]NVStorageSaveData kkm_last_timestamp [16:57:54]File name is /storage/kkm_last_timestamp [16:57:54]Write 4 bytes [16:57:54]NVStorageSaveData done [16:57:54]ExternCall_PrintAddStr [16:57:54]wPrintStart [16:57:54]Write to MH i2c: 01 00 00 B0 A6 56 [16:57:54]OFD Sender: Processing packet 29273 [packets to send 8, broken 7] [16:57:54]ProducePacketName [16:57:54]name=ofd_packets/00029273 [16:57:54]OFD Sender: To server: pG, [16:57:54]CommunicateWithHost lk.salyk.kg:30040 [16:57:54]ConnectInit lk.salyk.kg [16:57:54]Write i2c OK [16:57:54]MH_I2C_Read... [16:57:54]Read from MH i2c: 01 [16:57:54]MH_I2C_Read... [16:57:54]Read from MH i2c: 01 07 00 [16:57:54]MH_I2C_Read... [16:57:54]Read from MH i2c: 01 07 00 B0 A6 00 00 00 00 00 FF 0F 6B [16:57:54]RasterBufferAndPrint [16:57:54]line Счет N : (1)347659 [16:57:54]line ИНН: 02508201610067 [16:57:54]line Контрольно-Кассовый Чек [16:57:54]line ПРОДАЖА [16:57:54]line ТРК (МРК, ГНК) : 32 [16:57:54]line Товар: 2710124130 [16:57:54]line Аи-92-К-5 [16:57:54]line 7.780 * 64.30 [16:57:54]line = 500.25 [16:57:54]line НДС 12% НСП 1% [16:57:54]line > о реализуемом товаре [16:57:54]line ОКРУГЛЕНИЕ: -0.25 [16:57:54]line ИТОГО: 500.00 [16:57:54]line Внесено: 500.00 [16:57:54]line СДАЧА: 0.00 [16:57:54]line НСП 1% : 4.43 [16:57:54]line НДС 12% : 53.12 [16:57:54]line Наличными: 500.00 [16:57:54]line Безнал.: 0.00 [16:57:54]line Место: АЗС № 108 "Партнер Нефть" [16:57:54]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [16:57:54]line СНО: Общий режим [16:57:54]line Чек 183 14.04.2024 16:58 [16:57:54]line Смена: 116 ФФД: 1.0 [16:57:54]line ЗНМ: 0300000027 [16:57:54]line РНМ: 0000138879044617 [16:57:54]line Версия ККМ: 001 [16:57:54]line ФМ: 0000000000963154 [16:57:54]line ФД: 29273 [16:57:54]line ФПД: 240149549821954 [16:57:54]line 1/tax-web-control/client/api/v1/ticket?date=20240414T165803&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29273&fm=240149549821954&tin=02508201610067®Number=0000138879044617&sum=50000 [16:57:54]Connected sock=10 [16:57:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 79 8C 07 01 D4 79 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 B7 00 00 00 F4 03 04 00 1B 0B 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 59 72 00 00 35 04 06 00 DA 6A 2C 9C 30 02 46 35 5B BD CE 08 D7 34 [16:57:54]written 0, free lines is 4095 [16:57:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 02 9B 47 00 1A 5D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 59 72 00 00 F4 03 04 00 BF B5 1B 66 B6 04 01 00 00 C2 5A CF 46 D4 D9 E0 ED [16:57:55]CommunicateWithHost err = 0 [16:57:55]CheckOFDResponse [16:57:55]1017 (14) - 77093643461234 [16:57:55]1041 (16) - 0000000000963154 [16:57:55]1040 (4) - 29273 [16:57:55]1012 (4) - 14.04.2024 10:53 [16:57:55]1206 (1) - 0 [16:57:55]OFD Sender: Remove packet 29273 [16:57:55]ProducePacketName [16:57:55]name=ofd_packets/00029273 [16:57:55]NVStorageDeleteData [16:57:55]Write to MH i2c: 01 00 00 DA A6 80 [16:57:55]Write i2c OK [16:57:55]MH_I2C_Read... [16:57:55]Read from MH i2c: 01 [16:57:55]MH_I2C_Read... [16:57:55]Read from MH i2c: 01 07 00 [16:57:55]MH_I2C_Read... [16:57:55]Read from MH i2c: 01 07 00 DA A6 00 00 00 00 00 C2 0C 55 [16:57:55]RasterBufferAndPrint [16:57:55]line [16:57:55]line [16:57:55]line [16:57:55]line [16:57:55]line [16:57:55]written 0, free lines is 3270 [16:57:55]MH_Cut [16:57:55]Write to MH i2c: D1 01 00 E1 A6 01 59 [16:57:55]Write i2c OK [16:57:55]MH_I2C_Read... [16:57:55]Read from MH i2c: D1 [16:57:55]MH_I2C_Read... [16:57:55]Read from MH i2c: D1 01 00 [16:57:55]MH_I2C_Read... [16:57:55]Read from MH i2c: D1 01 00 E1 A6 00 58 [16:57:55]Write to MH i2c: 01 00 00 E2 A6 88 [16:57:55]Write i2c OK [16:57:55]MH_I2C_Read... [16:57:55]OFD Sender: No OFD packet to send [16:57:56]*** Cut start [16:57:56]*** Partial cut [16:57:56]*** CUTSNS_PIN = 1 [16:57:56]*** CUTSNS_PIN = 0 [16:57:56]*** Brake cut motor [16:57:56]Read from MH i2c: 01 [16:57:56]MH_I2C_Read... [16:57:56]*** Stop cut motor [16:57:56]*** Cut end [16:57:56]Read from MH i2c: 01 07 00 [16:57:56]MH_I2C_Read... [16:57:56]Read from MH i2c: 01 07 00 E2 A6 00 00 00 00 00 FF 0F 9D [16:57:56]process_action close_receipt done [16:57:56]requested_data is exist [16:57:56]produce_requested_data [16:57:56]requested_item fm.sn is exist - process it [16:57:56]wFMCommunicate request_size=4 [16:57:56]MH_SAM_APDU [16:57:56]CAPDU: 80 11 00 00 [16:57:56]Write to MH i2c: E2 08 00 E3 A6 80 11 00 00 00 00 00 00 03 [16:57:56]Write i2c OK [16:57:56]MH_I2C_Read... [16:57:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:57:56]Read from MH i2c: E2 [16:57:56]MH_I2C_Read... [16:57:56]Read from MH i2c: E2 17 00 [16:57:56]MH_I2C_Read... [16:57:56]Read from MH i2c: E2 17 00 E3 A6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 52 [16:57:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:57:56]wFMCommunicate OK [16:57:56]requested_item fd.num is exist - process it [16:57:56]SAM_PROTO_GetFieldsCounters [16:57:56]wFMCommunicate request_size=4 [16:57:56]MH_SAM_APDU [16:57:56]CAPDU: 80 13 00 00 [16:57:56]Write to MH i2c: E2 08 00 E4 A6 80 13 00 00 00 00 00 00 06 [16:57:56]Write i2c OK [16:57:56]MH_I2C_Read... [16:57:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:57:57]Read from MH i2c: E2 [16:57:57]MH_I2C_Read... [16:57:57]Read from MH i2c: E2 62 00 [16:57:57]MH_I2C_Read... [16:57:57]Read from MH i2c: E2 62 00 E4 A6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 59 72 00 00 0E 04 04 00 74 00 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 A8 [16:57:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 59 72 00 00 0E 04 04 00 74 00 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 [16:57:57]wFMCommunicate OK [16:57:57]SAM_PROTO_GetFieldsCounters done [16:57:57]requested_item shift.num is exist - process it [16:57:57]requested_item shift.opened is exist - process it [16:57:57]req_shift_opened [16:57:57]FM_GetShiftState [16:57:57]SAM_PROTO_GetShiftState [16:57:57]wFMCommunicate request_size=4 [16:57:57]MH_SAM_APDU [16:57:57]CAPDU: 80 13 01 00 [16:57:57]Write to MH i2c: E2 08 00 E5 A6 80 13 01 00 00 00 00 00 08 [16:57:57]Write i2c OK [16:57:57]MH_I2C_Read... [16:57:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:57:57]Read from MH i2c: E2 [16:57:57]MH_I2C_Read... [16:57:57]Read from MH i2c: E2 0E 00 [16:57:57]MH_I2C_Read... [16:57:57]Read from MH i2c: E2 0E 00 E5 A6 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 B4 [16:57:57]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [16:57:57]wFMCommunicate OK [16:57:57]SAM_PROTO_GetShiftState done [16:57:57]FM_GetShiftState done [16:57:57]req_shift_opened done [16:57:57]requested_item shift.open_date is exist - process it [16:57:57]req_shift_open_date [16:57:57]req_shift_open_date done [16:57:57]produce_requested_data done [16:57:57]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29273,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [16:57:57]process_action_free close_receipt [16:57:57]json_value_free [16:57:57]json_value_free done [16:57:57]process_json_proto returns [16:57:57]Send response to host [16:57:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29273,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [16:57:57]free response buf [16:57:57]execute_script done [16:57:57]execute_script returns [16:57:57]free content buf [16:57:57]Sock 7.Close socket [16:57:57]Sock 7.Thread stoped [16:58:00]OFD Sender: No OFD packet to send [16:58:05]OFD Sender: No OFD packet to send [16:58:10]OFD Sender: No OFD packet to send [16:58:15]OFD Sender: No OFD packet to send [16:58:20]OFD Sender: No OFD packet to send [16:58:25]OFD Sender: No OFD packet to send [16:58:29]accept exits with 9 [16:58:29]New connection [16:58:29]New thread 3066785124 created [16:58:29]Thread 3066928484 joined [16:58:29]Waiting for new connection... [16:58:29] Sock 9.Parse request [16:58:29]Sock 9.Check first char [16:58:29]Sock 9.First char is OK [16:58:29]request: POST /json_proto HTTP/1.0 [16:58:29]Method: POST [16:58:29]URL: /json_proto [16:58:29]Method is POST - this is cgi request [16:58:29]url: /json_proto [16:58:29]query_string will be loaded in cgi processing [16:58:29]execute_cgi json_proto POST (null) [16:58:29]execute_cgi path=json_proto method=POST [16:58:29]POST find Content-Length [16:58:29]Host: 172.17.33.3:8080 [16:58:29]Content-Length: 679 [16:58:29]Content-Type: application/json [16:58:29] [16:58:29]POST finish read [16:58:29]Found Content-Length = 679 [16:58:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347660", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.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:58:29]execute_script... [16: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)347660", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.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:58:29]POST & json_proto [16:58:29]process_json_proto [16:58:29]json parsed OK: [16:58:29]protocol is kg_v1.0 [16:58:29]action value=close_receipt [16:58:29]process_action close_receipt [16:58:29]cmd_close_receipt [16:58:29]MH_GetDate [16:58:29]Write to MH i2c: F0 00 00 E6 A6 7B [16:58:29]Write i2c OK [16:58:29]MH_I2C_Read... [16:58:29]Read from MH i2c: F0 [16:58:29]MH_I2C_Read... [16:58:29]Read from MH i2c: F0 09 00 [16:58:29]MH_I2C_Read... [16:58:29]Read from MH i2c: F0 09 00 E6 A6 00 40 0B 1C 66 23 5B 8F 65 C3 [16:58:29]GetLastDocTimeStamp 1713113883 [16:58:29]current date 1713113920 [16:58:29]FM_GetShiftState [16:58:29]SAM_PROTO_GetShiftState [16:58:29]wFMCommunicate request_size=4 [16:58:29]MH_SAM_APDU [16:58:29]CAPDU: 80 13 01 00 [16:58:29]Write to MH i2c: E2 08 00 E7 A6 80 13 01 00 00 00 00 00 0A [16:58:29]Write i2c OK [16:58:29]MH_I2C_Read... [16:58:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:58:29]Read from MH i2c: E2 [16:58:29]MH_I2C_Read... [16:58:29]Read from MH i2c: E2 0E 00 [16:58:29]MH_I2C_Read... [16:58:29]Read from MH i2c: E2 0E 00 E7 A6 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 B6 [16:58:29]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [16:58:29]wFMCommunicate OK [16:58:29]SAM_PROTO_GetShiftState done [16:58:29]FM_GetShiftState done [16:58:29]opened in 1713053951 [16:58:29]opened+sec_in_day 1713140351 [16:58:29]quantity*price = 100056 [16:58:29]sum+1 = 100058 [16:58:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 184 14.04.2024 16:58 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29274 ФПД: 178456004139893 1/tax-web-control/client/api/v1/ticket?date=20240414T165840&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29274&fm=178456004139893&tin=02508201610067®Number=0000138879044617&sum=100000 [16:58:30]StoreToDocumentArchive [16:58:30]shift 116 fd 29274 [16:58:30]save to /storage/0116/doc_00029274 [16:58:30]save last doc name /storage/0116/doc_00029274 to /storage/kkm_last_doc_name [16:58:30]save OK [16:58:30]Clear old archive folders... [16:58:30]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:58:30]tlvbuf is 012F3B40 [16:58:30]SAM_PROTO_ClearQueue [16:58:30]wFMCommunicate request_size=4 [16:58:30]MH_SAM_APDU [16:58:30]CAPDU: 80 09 00 00 [16:58:30]Write to MH i2c: E2 08 00 F4 A6 80 09 00 00 00 00 00 00 0C [16:58:30]Write i2c OK [16:58:30]MH_I2C_Read... [16:58:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:58:30]Read from MH i2c: E2 [16:58:30]MH_I2C_Read... [16:58:30]Read from MH i2c: E2 03 00 [16:58:30]MH_I2C_Read... [16:58:30]Read from MH i2c: E2 03 00 F4 A6 00 90 00 0E [16:58:30]RAPDU: 90 00 [16:58:30]wFMCommunicate OK [16:58:30]SAM_PROTO_ClearQueue done [16:58:30]KKMCreateOFDPacket [16:58:30]OFDProtocolAddRootSTLVToBuf [16:58:30]FM_MakeSignedData [16:58:30]FM_MakeSignedData [16:58:30]SAM_PROTO_SignData [16:58:30]wFMCommunicate request_size=4 [16:58:30]MH_SAM_APDU [16:58:30]CAPDU: 80 0D 01 02 [16:58:30]Write to MH i2c: E2 08 00 F5 A6 80 0D 01 02 00 00 00 00 14 [16:58:30]Write i2c OK [16:58:30]MH_I2C_Read... [16:58:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:58:30]Read from MH i2c: E2 [16:58:30]MH_I2C_Read... [16:58:30]Read from MH i2c: E2 03 00 [16:58:30]MH_I2C_Read... [16:58:30]Read from MH i2c: E2 03 00 F5 A6 00 90 00 0F [16:58:30]RAPDU: 90 00 [16:58:30]wFMCommunicate OK [16:58:30]wFMCommunicate request_size=255 [16:58:30]MH_SAM_APDU [16:58:30]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 B8 00 00 00 F4 03 04 00 40 0B 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5A 72 00 00 35 04 06 00 A2 4E 06 BC [16:58:30]Write to MH i2c: E2 02 01 F6 A6 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 B8 00 00 00 F4 03 04 00 40 0B 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5A 72 00 00 35 04 06 00 A2 4E 06 BC 00 00 6A [16:58:30]Write i2c OK [16:58:30]MH_I2C_Read... [16:58:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:58:31]Read from MH i2c: E2 [16:58:31]MH_I2C_Read... [16:58:31]Read from MH i2c: E2 03 00 [16:58:31]MH_I2C_Read... [16:58:31]Read from MH i2c: E2 03 00 F6 A6 00 90 00 10 [16:58:31]RAPDU: 90 00 [16:58:31]wFMCommunicate OK [16:58:31]wFMCommunicate request_size=7 [16:58:31]MH_SAM_APDU [16:58:31]CAPDU: 80 0D 02 02 02 1B 75 [16:58:31]Write to MH i2c: E2 0A 00 F7 A6 80 0D 02 02 02 00 1B 75 00 00 AB [16:58:31]Write i2c OK [16:58:31]MH_I2C_Read... [16:58:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:58:31]Read from MH i2c: E2 [16:58:31]MH_I2C_Read... [16:58:31]Read from MH i2c: E2 03 00 [16:58:31]MH_I2C_Read... [16:58:31]Read from MH i2c: E2 03 00 F7 A6 00 90 00 11 [16:58:31]RAPDU: 90 00 [16:58:31]wFMCommunicate OK [16:58:31]wFMCommunicate request_size=4 [16:58:31]MH_SAM_APDU [16:58:31]CAPDU: 80 0D 03 02 [16:58:31]Write to MH i2c: E2 08 00 F8 A6 80 0D 03 02 00 00 00 00 19 [16:58:31]Write i2c OK [16:58:31]MH_I2C_Read... [16:58:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:58:31]Read from MH i2c: E2 [16:58:31]MH_I2C_Read... [16:58:31]Read from MH i2c: E2 0B 00 [16:58:31]MH_I2C_Read... [16:58:31]Read from MH i2c: E2 0B 00 F8 A6 00 8B BE 61 E8 75 F3 DD DE 90 00 CF [16:58:31]RAPDU: 8B BE 61 E8 75 F3 DD DE 90 00 [16:58:31]wFMCommunicate OK [16:58:31]SAM_PROTO_SignData done [16:58:31]FM_MakeSignedData done [16:58:31]CreateOFDProtocolMessage [16:58:31]wFMCommunicate request_size=4 [16:58:31]MH_SAM_APDU [16:58:31]CAPDU: 80 11 00 00 [16:58:31]Write to MH i2c: E2 08 00 F9 A6 80 11 00 00 00 00 00 00 19 [16:58:31]Write i2c OK [16:58:31]MH_I2C_Read... [16:58:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:58:31]Read from MH i2c: E2 [16:58:31]MH_I2C_Read... [16:58:31]Read from MH i2c: E2 17 00 [16:58:31]MH_I2C_Read... [16:58:31]Read from MH i2c: E2 17 00 F9 A6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 68 [16:58:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:58:31]wFMCommunicate OK [16:58:31]CreateOFDProtocolMessage done [16:58:31]OFDSenderStorePacket 29274 [16:58:31]StoreOFDPacket docnum=29274 [16:58:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 0B 46 04 01 9F B8 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 B8 00 00 00 F4 03 04 00 40 0B 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5A 72 00 00 35 04 06 00 A2 4E 06 BC 1B 75 8B BE 61 E8 75 F3 DD DE [16:58:31]CheckFolder [16:58:31]dirname=/storage/ofd_packets [16:58:31]CheckFolder done [16:58:31]ProducePacketName [16:58:31]name=ofd_packets/00029274 [16:58:31]NVStorageSaveData ofd_packets/00029274 [16:58:31]File name is /storage/ofd_packets/00029274 [16:58:31]Write 298 bytes [16:58:31]NVStorageSaveData done [16:58:31]OFDSenderStorePacket done [16:58:31]KKMCreateOFDPacket done [16:58:31]NVStorageSaveData kkm_last_timestamp [16:58:31]File name is /storage/kkm_last_timestamp [16:58:31]Write 4 bytes [16:58:31]NVStorageSaveData done [16:58:31]ExternCall_PrintAddStr [16:58:31]wPrintStart [16:58:31]Write to MH i2c: 01 00 00 FA A6 A0 [16:58:31]Write i2c OK [16:58:31]MH_I2C_Read... [16:58:31]Read from MH i2c: 01 [16:58:31]MH_I2C_Read... [16:58:31]Read from MH i2c: 01 07 00 [16:58:31]MH_I2C_Read... [16:58:31]Read from MH i2c: 01 07 00 FA A6 00 00 00 00 00 FF 0F B5 [16:58:31]RasterBufferAndPrint [16:58:31]line Счет N : (1)347660 [16:58:31]line ИНН: 02508201610067 [16:58:31]line Контрольно-Кассовый Чек [16:58:31]line ПРОДАЖА [16:58:31]line ТРК (МРК, ГНК) : 21 [16:58:31]line Товар: 2710194210 [16:58:31]line ДТ-К-5 [16:58:31]line 13.820 * 72.40 [16:58:31]line = 1000.57 [16:58:31]line НДС 12% НСП 1% [16:58:31]line > о реализуемом товаре [16:58:31]line ОКРУГЛЕНИЕ: -0.57 [16:58:31]line ИТОГО: 1000.00 [16:58:31]line Внесено: 1000.00 [16:58:31]line СДАЧА: 0.00 [16:58:31]line НСП 1% : 8.85 [16:58:31]line НДС 12% : 106.25 [16:58:31]line Наличными: 1000.00 [16:58:31]line Безнал.: 0.00 [16:58:31]line Место: АЗС № 108 "Партнер Нефть" [16:58:31]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [16:58:31]line СНО: Общий режим [16:58:31]line Чек 184 14.04.2024 16:58 [16:58:31]line Смена: 116 ФФД: 1.0 [16:58:31]line ЗНМ: 0300000027 [16:58:31]line РНМ: 0000138879044617 [16:58:31]line Версия ККМ: 001 [16:58:31]line ФМ: 0000000000963154 [16:58:31]line ФД: 29274 [16:58:31]line ФПД: 178456004139893 [16:58:31]line 1/tax-web-control/client/api/v1/ticket?date=20240414T165840&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29274&fm=178456004139893&tin=02508201610067®Number=0000138879044617&sum=100000 [16:58:31]OFD Sender: Processing packet 29274 [packets to send 8, broken 7] [16:58:31]ProducePacketName [16:58:31]name=ofd_packets/00029274 [16:58:31]OFD Sender: To server: pG, [16:58:31]CommunicateWithHost lk.salyk.kg:30040 [16:58:31]ConnectInit lk.salyk.kg [16:58:31]written 0, free lines is 4095 [16:58:31]Connected sock=10 [16:58:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 0B 46 04 01 9F B8 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 B8 00 00 00 F4 03 04 00 40 0B 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5A 72 00 00 35 04 06 00 A2 4E 06 BC 1B 75 8B BE 61 E8 75 F3 DD DE [16:58:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 1A 31 47 00 4B 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 39 36 33 31 35 34 10 04 04 00 5A 72 00 00 F4 03 04 00 E4 B5 1B 66 B6 04 01 00 00 F5 1B 06 FF 0D 63 1F 76 [16:58:31]CommunicateWithHost err = 0 [16:58:31]CheckOFDResponse [16:58:31]1017 (14) - 77093643461234 [16:58:31]1041 (16) - 0000000000963154 [16:58:31]1040 (4) - 29274 [16:58:31]1012 (4) - 14.04.2024 10:54 [16:58:31]1206 (1) - 0 [16:58:31]OFD Sender: Remove packet 29274 [16:58:31]ProducePacketName [16:58:31]name=ofd_packets/00029274 [16:58:31]NVStorageDeleteData [16:58:32]Write to MH i2c: 01 00 00 24 A7 CB [16:58:32]Write i2c OK [16:58:32]MH_I2C_Read... [16:58:32]Read from MH i2c: 01 [16:58:32]MH_I2C_Read... [16:58:32]Read from MH i2c: 01 07 00 [16:58:32]MH_I2C_Read... [16:58:32]Read from MH i2c: 01 07 00 24 A7 00 00 00 00 00 C4 0C A2 [16:58:32]RasterBufferAndPrint [16:58:32]line [16:58:32]line [16:58:32]line [16:58:32]line [16:58:32]line [16:58:32]written 0, free lines is 3274 [16:58:32]MH_Cut [16:58:32]Write to MH i2c: D1 01 00 2B A7 01 A4 [16:58:32]Write i2c OK [16:58:32]MH_I2C_Read... [16:58:32]Read from MH i2c: D1 [16:58:32]MH_I2C_Read... [16:58:32]Read from MH i2c: D1 01 00 [16:58:32]MH_I2C_Read... [16:58:32]Read from MH i2c: D1 01 00 2B A7 00 A3 [16:58:32]Write to MH i2c: 01 00 00 2C A7 D3 [16:58:32]Write i2c OK [16:58:32]MH_I2C_Read... [16:58:32]OFD Sender: No OFD packet to send [16:58:32]*** Cut start [16:58:32]*** Partial cut [16:58:32]*** CUTSNS_PIN = 1 [16:58:32]*** CUTSNS_PIN = 0 [16:58:33]*** Brake cut motor [16:58:33]Read from MH i2c: 01 [16:58:33]MH_I2C_Read... [16:58:33]*** Stop cut motor [16:58:33]*** Cut end [16:58:33]Read from MH i2c: 01 07 00 [16:58:33]MH_I2C_Read... [16:58:33]Read from MH i2c: 01 07 00 2C A7 00 00 00 00 00 FF 0F E8 [16:58:33]process_action close_receipt done [16:58:33]requested_data is exist [16:58:33]produce_requested_data [16:58:33]requested_item fm.sn is exist - process it [16:58:33]wFMCommunicate request_size=4 [16:58:33]MH_SAM_APDU [16:58:33]CAPDU: 80 11 00 00 [16:58:33]Write to MH i2c: E2 08 00 2D A7 80 11 00 00 00 00 00 00 4E [16:58:33]Write i2c OK [16:58:33]MH_I2C_Read... [16:58:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:58:33]Read from MH i2c: E2 [16:58:33]MH_I2C_Read... [16:58:33]Read from MH i2c: E2 17 00 [16:58:33]MH_I2C_Read... [16:58:33]Read from MH i2c: E2 17 00 2D A7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 9D [16:58:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:58:33]wFMCommunicate OK [16:58:33]requested_item fd.num is exist - process it [16:58:33]SAM_PROTO_GetFieldsCounters [16:58:33]wFMCommunicate request_size=4 [16:58:33]MH_SAM_APDU [16:58:33]CAPDU: 80 13 00 00 [16:58:33]Write to MH i2c: E2 08 00 2E A7 80 13 00 00 00 00 00 00 51 [16:58:33]Write i2c OK [16:58:33]MH_I2C_Read... [16:58:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:58:33]Read from MH i2c: E2 [16:58:33]MH_I2C_Read... [16:58:33]Read from MH i2c: E2 62 00 [16:58:33]MH_I2C_Read... [16:58:33]Read from MH i2c: E2 62 00 2E A7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 5A 72 00 00 0E 04 04 00 74 00 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 F7 [16:58:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 5A 72 00 00 0E 04 04 00 74 00 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 [16:58:33]wFMCommunicate OK [16:58:33]SAM_PROTO_GetFieldsCounters done [16:58:33]requested_item shift.num is exist - process it [16:58:33]requested_item shift.opened is exist - process it [16:58:33]req_shift_opened [16:58:33]FM_GetShiftState [16:58:33]SAM_PROTO_GetShiftState [16:58:33]wFMCommunicate request_size=4 [16:58:33]MH_SAM_APDU [16:58:33]CAPDU: 80 13 01 00 [16:58:33]Write to MH i2c: E2 08 00 2F A7 80 13 01 00 00 00 00 00 53 [16:58:33]Write i2c OK [16:58:33]MH_I2C_Read... [16:58:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:58:33]Read from MH i2c: E2 [16:58:33]MH_I2C_Read... [16:58:33]Read from MH i2c: E2 0E 00 [16:58:33]MH_I2C_Read... [16:58:33]Read from MH i2c: E2 0E 00 2F A7 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 FF [16:58:33]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [16:58:33]wFMCommunicate OK [16:58:33]SAM_PROTO_GetShiftState done [16:58:33]FM_GetShiftState done [16:58:33]req_shift_opened done [16:58:33]requested_item shift.open_date is exist - process it [16:58:33]req_shift_open_date [16:58:33]req_shift_open_date done [16:58:33]produce_requested_data done [16:58:33]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29274,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [16:58:33]process_action_free close_receipt [16:58:33]json_value_free [16:58:33]json_value_free done [16:58:33]process_json_proto returns [16:58:33]Send response to host [16:58:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29274,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [16:58:33]free response buf [16:58:33]execute_script done [16:58:33]execute_script returns [16:58:33]free content buf [16:58:33]Sock 9.Close socket [16:58:33]Sock 9.Thread stoped [16:58:37]OFD Sender: No OFD packet to send [16:58:42]OFD Sender: No OFD packet to send [16:58:47]OFD Sender: No OFD packet to send [16:58:52]OFD Sender: No OFD packet to send [16:58:57]OFD Sender: No OFD packet to send [16:59:02]OFD Sender: No OFD packet to send [16:59:07]OFD Sender: No OFD packet to send [16:59:12]OFD Sender: No OFD packet to send [16:59:17]OFD Sender: No OFD packet to send [16:59:22]OFD Sender: No OFD packet to send [16:59:27]OFD Sender: No OFD packet to send [16:59:32]OFD Sender: No OFD packet to send [16:59:37]OFD Sender: No OFD packet to send [16:59:42]OFD Sender: No OFD packet to send [16:59:47]OFD Sender: No OFD packet to send [16:59:52]OFD Sender: No OFD packet to send [16:59:57]OFD Sender: No OFD packet to send [17:00:02]OFD Sender: No OFD packet to send [17:00:07]OFD Sender: No OFD packet to send [17:00:12]OFD Sender: No OFD packet to send [17:00:17]OFD Sender: No OFD packet to send [17:00:22]OFD Sender: No OFD packet to send [17:00:27]OFD Sender: No OFD packet to send [17:00:32]OFD Sender: No OFD packet to send [17:00:37]OFD Sender: No OFD packet to send [17:00:42]OFD Sender: No OFD packet to send [17:00:47]OFD Sender: No OFD packet to send [17:00:48]accept exits with 7 [17:00:48]New connection [17:00:48]New thread 3066928484 created [17:00:48]Thread 3066785124 joined [17:00:48]Waiting for new connection... [17:00:48] Sock 7.Parse request [17:00:48]Sock 7.Check first char [17:00:48]Sock 7.First char is OK [17:00:48]request: POST /json_proto HTTP/1.0 [17:00:48]Method: POST [17:00:48]URL: /json_proto [17:00:48]Method is POST - this is cgi request [17:00:48]url: /json_proto [17:00:48]query_string will be loaded in cgi processing [17:00:48]execute_cgi json_proto POST (null) [17:00:48]execute_cgi path=json_proto method=POST [17:00:48]POST find Content-Length [17:00:48]Host: 172.17.33.3:8080 [17:00:48]Content-Length: 678 [17:00:48]Content-Type: application/json [17:00:48] [17:00:48]POST finish read [17:00:48]Found Content-Length = 678 [17:00:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347661", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.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" ] } } [17:00:48]execute_script... [17:00: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)347661", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.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" ] } } [17:00:48]POST & json_proto [17:00:48]process_json_proto [17:00:48]json parsed OK: [17:00:48]protocol is kg_v1.0 [17:00:48]action value=close_receipt [17:00:48]process_action close_receipt [17:00:48]cmd_close_receipt [17:00:48]MH_GetDate [17:00:48]Write to MH i2c: F0 00 00 30 A7 C6 [17:00:48]Write i2c OK [17:00:48]MH_I2C_Read... [17:00:48]Read from MH i2c: F0 [17:00:48]MH_I2C_Read... [17:00:48]Read from MH i2c: F0 09 00 [17:00:48]MH_I2C_Read... [17:00:48]Read from MH i2c: F0 09 00 30 A7 00 CB 0B 1C 66 23 5B 8F 65 99 [17:00:48]GetLastDocTimeStamp 1713113920 [17:00:48]current date 1713114059 [17:00:48]FM_GetShiftState [17:00:48]SAM_PROTO_GetShiftState [17:00:48]wFMCommunicate request_size=4 [17:00:48]MH_SAM_APDU [17:00:48]CAPDU: 80 13 01 00 [17:00:48]Write to MH i2c: E2 08 00 31 A7 80 13 01 00 00 00 00 00 55 [17:00:48]Write i2c OK [17:00:48]MH_I2C_Read... [17:00:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:00:48]Read from MH i2c: E2 [17:00:48]MH_I2C_Read... [17:00:48]Read from MH i2c: E2 0E 00 [17:00:48]MH_I2C_Read... [17:00:48]Read from MH i2c: E2 0E 00 31 A7 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 01 [17:00:48]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [17:00:48]wFMCommunicate OK [17:00:48]SAM_PROTO_GetShiftState done [17:00:48]FM_GetShiftState done [17:00:48]opened in 1713053951 [17:00:48]opened+sec_in_day 1713140351 [17:00:48]quantity*price = 65007 [17:00:48]sum+1 = 65008 [17:00:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.75 НДС 12% : 69.03 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 185 14.04.2024 17:00 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29275 ФПД: 213246737332686 1/tax-web-control/client/api/v1/ticket?date=20240414T170059&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29275&fm=213246737332686&tin=02508201610067®Number=0000138879044617&sum=65000 [17:00:49]StoreToDocumentArchive [17:00:49]shift 116 fd 29275 [17:00:49]save to /storage/0116/doc_00029275 [17:00:49]save last doc name /storage/0116/doc_00029275 to /storage/kkm_last_doc_name [17:00:49]save OK [17:00:49]Clear old archive folders... [17:00:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:00:49]tlvbuf is 01286210 [17:00:49]SAM_PROTO_ClearQueue [17:00:49]wFMCommunicate request_size=4 [17:00:49]MH_SAM_APDU [17:00:49]CAPDU: 80 09 00 00 [17:00:49]Write to MH i2c: E2 08 00 3E A7 80 09 00 00 00 00 00 00 57 [17:00:49]Write i2c OK [17:00:49]MH_I2C_Read... [17:00:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:00:49]Read from MH i2c: E2 [17:00:49]MH_I2C_Read... [17:00:49]Read from MH i2c: E2 03 00 [17:00:49]MH_I2C_Read... [17:00:49]Read from MH i2c: E2 03 00 3E A7 00 90 00 59 [17:00:49]RAPDU: 90 00 [17:00:49]wFMCommunicate OK [17:00:49]SAM_PROTO_ClearQueue done [17:00:49]KKMCreateOFDPacket [17:00:49]OFDProtocolAddRootSTLVToBuf [17:00:49]FM_MakeSignedData [17:00:49]FM_MakeSignedData [17:00:49]SAM_PROTO_SignData [17:00:49]wFMCommunicate request_size=4 [17:00:49]MH_SAM_APDU [17:00:49]CAPDU: 80 0D 01 02 [17:00:49]Write to MH i2c: E2 08 00 3F A7 80 0D 01 02 00 00 00 00 5F [17:00:49]Write i2c OK [17:00:49]MH_I2C_Read... [17:00:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:00:49]Read from MH i2c: E2 [17:00:49]MH_I2C_Read... [17:00:49]Read from MH i2c: E2 03 00 [17:00:49]MH_I2C_Read... [17:00:49]Read from MH i2c: E2 03 00 3F A7 00 90 00 5A [17:00:49]RAPDU: 90 00 [17:00:49]wFMCommunicate OK [17:00:49]wFMCommunicate request_size=255 [17:00:49]MH_SAM_APDU [17:00: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 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 B9 00 00 00 F4 03 04 00 CB 0B 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5B 72 00 00 35 04 06 00 C1 [17:00:49]Write to MH i2c: E2 02 01 40 A7 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 B9 00 00 00 F4 03 04 00 CB 0B 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5B 72 00 00 35 04 06 00 C1 00 00 7D [17:00:49]Write i2c OK [17:00:49]MH_I2C_Read... [17:00:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:00:50]Read from MH i2c: E2 [17:00:50]MH_I2C_Read... [17:00:50]Read from MH i2c: E2 03 00 [17:00:50]MH_I2C_Read... [17:00:50]Read from MH i2c: E2 03 00 40 A7 00 90 00 5B [17:00:50]RAPDU: 90 00 [17:00:50]wFMCommunicate OK [17:00:50]wFMCommunicate request_size=10 [17:00:50]MH_SAM_APDU [17:00:50]CAPDU: 80 0D 02 02 05 F2 60 07 39 CE [17:00:50]Write to MH i2c: E2 0D 00 41 A7 80 0D 02 02 05 00 F2 60 07 39 CE 00 00 CC [17:00:50]Write i2c OK [17:00:50]MH_I2C_Read... [17:00:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:00:50]Read from MH i2c: E2 [17:00:50]MH_I2C_Read... [17:00:50]Read from MH i2c: E2 03 00 [17:00:50]MH_I2C_Read... [17:00:50]Read from MH i2c: E2 03 00 41 A7 00 90 00 5C [17:00:50]RAPDU: 90 00 [17:00:50]wFMCommunicate OK [17:00:50]wFMCommunicate request_size=4 [17:00:50]MH_SAM_APDU [17:00:50]CAPDU: 80 0D 03 02 [17:00:50]Write to MH i2c: E2 08 00 42 A7 80 0D 03 02 00 00 00 00 64 [17:00:50]Write i2c OK [17:00:50]MH_I2C_Read... [17:00:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:00:50]Read from MH i2c: E2 [17:00:50]MH_I2C_Read... [17:00:50]Read from MH i2c: E2 0B 00 [17:00:50]MH_I2C_Read... [17:00:50]Read from MH i2c: E2 0B 00 42 A7 00 FD 4B CB 3A E1 5B 5A DA 90 00 22 [17:00:50]RAPDU: FD 4B CB 3A E1 5B 5A DA 90 00 [17:00:50]wFMCommunicate OK [17:00:50]SAM_PROTO_SignData done [17:00:50]FM_MakeSignedData done [17:00:50]CreateOFDProtocolMessage [17:00:50]wFMCommunicate request_size=4 [17:00:50]MH_SAM_APDU [17:00:50]CAPDU: 80 11 00 00 [17:00:50]Write to MH i2c: E2 08 00 43 A7 80 11 00 00 00 00 00 00 64 [17:00:50]Write i2c OK [17:00:50]MH_I2C_Read... [17:00:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:00:50]Read from MH i2c: E2 [17:00:50]MH_I2C_Read... [17:00:50]Read from MH i2c: E2 17 00 [17:00:50]MH_I2C_Read... [17:00:50]Read from MH i2c: E2 17 00 43 A7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B3 [17:00:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:00:50]wFMCommunicate OK [17:00:50]CreateOFDProtocolMessage done [17:00:50]OFDSenderStorePacket 29275 [17:00:50]StoreOFDPacket docnum=29275 [17:00:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 C1 45 07 01 1E 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 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 B9 00 00 00 F4 03 04 00 CB 0B 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5B 72 00 00 35 04 06 00 C1 F2 60 07 39 CE FD 4B CB 3A E1 5B 5A DA [17:00:50]CheckFolder [17:00:50]dirname=/storage/ofd_packets [17:00:50]CheckFolder done [17:00:50]ProducePacketName [17:00:50]name=ofd_packets/00029275 [17:00:50]NVStorageSaveData ofd_packets/00029275 [17:00:50]File name is /storage/ofd_packets/00029275 [17:00:50]Write 301 bytes [17:00:50]NVStorageSaveData done [17:00:50]OFDSenderStorePacket done [17:00:50]KKMCreateOFDPacket done [17:00:50]NVStorageSaveData kkm_last_timestamp [17:00:50]File name is /storage/kkm_last_timestamp [17:00:50]Write 4 bytes [17:00:50]NVStorageSaveData done [17:00:50]ExternCall_PrintAddStr [17:00:50]wPrintStart [17:00:50]Write to MH i2c: 01 00 00 44 A7 EB [17:00:50]Write i2c OK [17:00:50]MH_I2C_Read... [17:00:50]Read from MH i2c: 01 [17:00:50]MH_I2C_Read... [17:00:50]Read from MH i2c: 01 07 00 [17:00:50]MH_I2C_Read... [17:00:50]Read from MH i2c: 01 07 00 44 A7 00 00 00 00 00 FF 0F 00 [17:00:50]RasterBufferAndPrint [17:00:50]line Счет N : (1)347661 [17:00:50]line ИНН: 02508201610067 [17:00:50]line Контрольно-Кассовый Чек [17:00:50]line ПРОДАЖА [17:00:50]line ТРК (МРК, ГНК) : 23 [17:00:50]line Товар: 2710124130 [17:00:50]line Аи-92-К-5 [17:00:50]line 10.110 * 64.30 [17:00:50]line = 650.07 [17:00:50]line НДС 12% НСП 1% [17:00:50]line > о реализуемом товаре [17:00:50]line ОКРУГЛЕНИЕ: -0.07 [17:00:50]line ИТОГО: 650.00 [17:00:50]line Внесено: 650.00 [17:00:50]line СДАЧА: 0.00 [17:00:50]line НСП 1% : 5.75 [17:00:50]line НДС 12% : 69.03 [17:00:50]line Наличными: 650.00 [17:00:50]line Безнал.: 0.00 [17:00:50]line Место: АЗС № 108 "Партнер Нефть" [17:00:50]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [17:00:50]line СНО: Общий режим [17:00:50]line Чек 185 14.04.2024 17:00 [17:00:50]line Смена: 116 ФФД: 1.0 [17:00:50]line ЗНМ: 0300000027 [17:00:50]line РНМ: 0000138879044617 [17:00:50]line Версия ККМ: 001 [17:00:50]line ФМ: 0000000000963154 [17:00:50]line ФД: 29275 [17:00:50]line ФПД: 213246737332686 [17:00:50]line 1/tax-web-control/client/api/v1/ticket?date=20240414T170059&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29275&fm=213246737332686&tin=02508201610067®Number=0000138879044617&sum=65000 [17:00:50]OFD Sender: Processing packet 29275 [packets to send 8, broken 7] [17:00:50]ProducePacketName [17:00:50]name=ofd_packets/00029275 [17:00:50]OFD Sender: To server: pG, [17:00:50]CommunicateWithHost lk.salyk.kg:30040 [17:00:50]ConnectInit lk.salyk.kg [17:00:50]written 0, free lines is 4095 [17:00:50]Connected sock=10 [17:00:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 C1 45 07 01 1E 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 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 B9 00 00 00 F4 03 04 00 CB 0B 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5B 72 00 00 35 04 06 00 C1 F2 60 07 39 CE FD 4B CB 3A E1 5B 5A DA [17:00:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 EE 81 47 00 8E 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 39 36 33 31 35 34 10 04 04 00 5B 72 00 00 F4 03 04 00 6F B6 1B 66 B6 04 01 00 00 31 11 E3 F0 A1 24 46 5A [17:00:50]CommunicateWithHost err = 0 [17:00:50]CheckOFDResponse [17:00:50]1017 (14) - 77093643461234 [17:00:50]1041 (16) - 0000000000963154 [17:00:50]1040 (4) - 29275 [17:00:50]1012 (4) - 14.04.2024 10:56 [17:00:50]1206 (1) - 0 [17:00:50]OFD Sender: Remove packet 29275 [17:00:50]ProducePacketName [17:00:50]name=ofd_packets/00029275 [17:00:50]NVStorageDeleteData [17:00:51]Write to MH i2c: 01 00 00 6E A7 15 [17:00:51]Write i2c OK [17:00:51]MH_I2C_Read... [17:00:51]Read from MH i2c: 01 [17:00:51]MH_I2C_Read... [17:00:51]Read from MH i2c: 01 07 00 [17:00:51]MH_I2C_Read... [17:00:51]Read from MH i2c: 01 07 00 6E A7 00 00 00 00 00 C6 0C EE [17:00:51]RasterBufferAndPrint [17:00:51]line [17:00:51]line [17:00:51]line [17:00:51]line [17:00:51]line [17:00:51]written 0, free lines is 3276 [17:00:51]MH_Cut [17:00:51]Write to MH i2c: D1 01 00 75 A7 01 EE [17:00:51]Write i2c OK [17:00:51]MH_I2C_Read... [17:00:51]Read from MH i2c: D1 [17:00:51]MH_I2C_Read... [17:00:51]Read from MH i2c: D1 01 00 [17:00:51]MH_I2C_Read... [17:00:51]Read from MH i2c: D1 01 00 75 A7 00 ED [17:00:51]Write to MH i2c: 01 00 00 76 A7 1D [17:00:51]Write i2c OK [17:00:51]MH_I2C_Read... [17:00:51]OFD Sender: No OFD packet to send [17:00:51]*** Cut start [17:00:51]*** Partial cut [17:00:51]*** CUTSNS_PIN = 1 [17:00:51]*** CUTSNS_PIN = 0 [17:00:52]*** Brake cut motor [17:00:52]Read from MH i2c: 01 [17:00:52]MH_I2C_Read... [17:00:52]*** Stop cut motor [17:00:52]*** Cut end [17:00:52]Read from MH i2c: 01 07 00 [17:00:52]MH_I2C_Read... [17:00:52]Read from MH i2c: 01 07 00 76 A7 00 00 00 00 00 FF 0F 32 [17:00:52]process_action close_receipt done [17:00:52]requested_data is exist [17:00:52]produce_requested_data [17:00:52]requested_item fm.sn is exist - process it [17:00:52]wFMCommunicate request_size=4 [17:00:52]MH_SAM_APDU [17:00:52]CAPDU: 80 11 00 00 [17:00:52]Write to MH i2c: E2 08 00 77 A7 80 11 00 00 00 00 00 00 98 [17:00:52]Write i2c OK [17:00:52]MH_I2C_Read... [17:00:52]Read from MH i2c: E2 [17:00:52]MH_I2C_Read... [17:00:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:00:52]Read from MH i2c: E2 17 00 [17:00:52]MH_I2C_Read... [17:00:52]Read from MH i2c: E2 17 00 77 A7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E7 [17:00:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:00:52]wFMCommunicate OK [17:00:52]requested_item fd.num is exist - process it [17:00:52]SAM_PROTO_GetFieldsCounters [17:00:52]wFMCommunicate request_size=4 [17:00:52]MH_SAM_APDU [17:00:52]CAPDU: 80 13 00 00 [17:00:52]Write to MH i2c: E2 08 00 78 A7 80 13 00 00 00 00 00 00 9B [17:00:52]Write i2c OK [17:00:52]MH_I2C_Read... [17:00:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:00:52]Read from MH i2c: E2 [17:00:52]MH_I2C_Read... [17:00:52]Read from MH i2c: E2 62 00 [17:00:52]MH_I2C_Read... [17:00:52]Read from MH i2c: E2 62 00 78 A7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 5B 72 00 00 0E 04 04 00 74 00 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 45 [17:00:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 5B 72 00 00 0E 04 04 00 74 00 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 [17:00:52]wFMCommunicate OK [17:00:52]SAM_PROTO_GetFieldsCounters done [17:00:52]requested_item shift.num is exist - process it [17:00:52]requested_item shift.opened is exist - process it [17:00:52]req_shift_opened [17:00:52]FM_GetShiftState [17:00:52]SAM_PROTO_GetShiftState [17:00:52]wFMCommunicate request_size=4 [17:00:52]MH_SAM_APDU [17:00:52]CAPDU: 80 13 01 00 [17:00:52]Write to MH i2c: E2 08 00 79 A7 80 13 01 00 00 00 00 00 9D [17:00:52]Write i2c OK [17:00:52]MH_I2C_Read... [17:00:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:00:52]Read from MH i2c: E2 [17:00:52]MH_I2C_Read... [17:00:52]Read from MH i2c: E2 0E 00 [17:00:52]MH_I2C_Read... [17:00:52]Read from MH i2c: E2 0E 00 79 A7 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 49 [17:00:52]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [17:00:52]wFMCommunicate OK [17:00:52]SAM_PROTO_GetShiftState done [17:00:52]FM_GetShiftState done [17:00:52]req_shift_opened done [17:00:52]requested_item shift.open_date is exist - process it [17:00:52]req_shift_open_date [17:00:52]req_shift_open_date done [17:00:52]produce_requested_data done [17:00:52]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29275,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [17:00:52]process_action_free close_receipt [17:00:52]json_value_free [17:00:52]json_value_free done [17:00:52]process_json_proto returns [17:00:52]Send response to host [17:00:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29275,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [17:00:52]free response buf [17:00:52]execute_script done [17:00:52]execute_script returns [17:00:52]free content buf [17:00:52]Sock 7.Close socket [17:00:52]Sock 7.Thread stoped [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:11]OFD Sender: No OFD packet to send [17:01:16]OFD Sender: No OFD packet to send [17:01:21]OFD Sender: No OFD packet to send [17:01:26]OFD Sender: No OFD packet to send [17:01:31]OFD Sender: No OFD packet to send [17:01:36]OFD Sender: No OFD packet to send [17:01:41]OFD Sender: No OFD packet to send [17:01:46]OFD Sender: No OFD packet to send [17:01:51]OFD Sender: No OFD packet to send [17:01:56]OFD Sender: No OFD packet to send [17:02:01]OFD Sender: No OFD packet to send [17:02:06]OFD Sender: No OFD packet to send [17:02:11]OFD Sender: No OFD packet to send [17:02:16]OFD Sender: No OFD packet to send [17:02:21]OFD Sender: No OFD packet to send [17:02:26]OFD Sender: No OFD packet to send [17:02:31]OFD Sender: No OFD packet to send [17:02:36]OFD Sender: No OFD packet to send [17:02:41]OFD Sender: No OFD packet to send [17:02:46]OFD Sender: No OFD packet to send [17:02:51]OFD Sender: No OFD packet to send [17:02:56]OFD Sender: No OFD packet to send [17:03:01]OFD Sender: No OFD packet to send [17:03:06]OFD Sender: No OFD packet to send [17:03:11]OFD Sender: No OFD packet to send [17:03:16]OFD Sender: No OFD packet to send [17:03:21]OFD Sender: No OFD packet to send [17:03:26]OFD Sender: No OFD packet to send [17:03:31]OFD Sender: No OFD packet to send [17:03:36]OFD Sender: No OFD packet to send [17:03:41]OFD Sender: No OFD packet to send [17:03:46]OFD Sender: No OFD packet to send [17:03:51]OFD Sender: No OFD packet to send [17:03:56]OFD Sender: No OFD packet to send [17:04:01]OFD Sender: No OFD packet to send [17:04:06]OFD Sender: No OFD packet to send [17:04:11]OFD Sender: No OFD packet to send [17:04:16]OFD Sender: No OFD packet to send [17:04:21]OFD Sender: No OFD packet to send [17:04:26]OFD Sender: No OFD packet to send [17:04:31]OFD Sender: No OFD packet to send [17:04:36]OFD Sender: No OFD packet to send [17:04:41]OFD Sender: No OFD packet to send [17:04:46]OFD Sender: No OFD packet to send [17:04:51]OFD Sender: No OFD packet to send [17:04:56]OFD Sender: No OFD packet to send [17:05:01]OFD Sender: No OFD packet to send [17:05:06]OFD Sender: No OFD packet to send [17:05:11]OFD Sender: No OFD packet to send [17:05:16]OFD Sender: No OFD packet to send [17:05:21]OFD Sender: No OFD packet to send [17:05:26]OFD Sender: No OFD packet to send [17:05:31]OFD Sender: No OFD packet to send [17:05:36]OFD Sender: No OFD packet to send [17:05:41]OFD Sender: No OFD packet to send [17:05:46]OFD Sender: No OFD packet to send [17:05:51]OFD Sender: No OFD packet to send [17:05:56]OFD Sender: No OFD packet to send [17:06:01]OFD Sender: No OFD packet to send [17:06:06]OFD Sender: No OFD packet to send [17:06:11]OFD Sender: No OFD packet to send [17:06:16]OFD Sender: No OFD packet to send [17:06:21]OFD Sender: No OFD packet to send [17:06:26]OFD Sender: No OFD packet to send [17:06:31]OFD Sender: No OFD packet to send [17:06:36]OFD Sender: No OFD packet to send [17:06:41]OFD Sender: No OFD packet to send [17:06:46]OFD Sender: No OFD packet to send [17:06:51]OFD Sender: No OFD packet to send [17:06:56]OFD Sender: No OFD packet to send [17:07:01]OFD Sender: No OFD packet to send [17:07:06]OFD Sender: No OFD packet to send [17:07:11]OFD Sender: No OFD packet to send [17:07:16]OFD Sender: No OFD packet to send [17:07:21]OFD Sender: No OFD packet to send [17:07:26]OFD Sender: No OFD packet to send [17:07:31]OFD Sender: No OFD packet to send [17:07:36]OFD Sender: No OFD packet to send [17:07:41]OFD Sender: No OFD packet to send [17:07:46]OFD Sender: No OFD packet to send [17:07:51]OFD Sender: No OFD packet to send [17:07:56]OFD Sender: No OFD packet to send [17:08:01]OFD Sender: No OFD packet to send [17:08:06]OFD Sender: No OFD packet to send [17:08:11]OFD Sender: No OFD packet to send [17:08:16]OFD Sender: No OFD packet to send [17:08:21]OFD Sender: No OFD packet to send [17:08:26]OFD Sender: No OFD packet to send [17:08:31]OFD Sender: No OFD packet to send [17:08:36]OFD Sender: No OFD packet to send [17:08:41]OFD Sender: No OFD packet to send [17:08:46]OFD Sender: No OFD packet to send [17:08:51]OFD Sender: No OFD packet to send [17:08:56]OFD Sender: No OFD packet to send [17:09:01]OFD Sender: No OFD packet to send [17:09:06]OFD Sender: No OFD packet to send [17:09:11]OFD Sender: No OFD packet to send [17:09:16]OFD Sender: No OFD packet to send [17:09:21]OFD Sender: No OFD packet to send [17:09:26]OFD Sender: No OFD packet to send [17:09:31]OFD Sender: No OFD packet to send [17:09:36]OFD Sender: No OFD packet to send [17:09:41]OFD Sender: No OFD packet to send [17:09:46]OFD Sender: No OFD packet to send [17:09:51]OFD Sender: No OFD packet to send [17:09:56]OFD Sender: No OFD packet to send [17:10:01]OFD Sender: No OFD packet to send [17:10:06]OFD Sender: No OFD packet to send [17:10:11]OFD Sender: No OFD packet to send [17:10:16]OFD Sender: No OFD packet to send [17:10:21]OFD Sender: No OFD packet to send [17:10:26]OFD Sender: No OFD packet to send [17:10:31]OFD Sender: No OFD packet to send [17:10:36]OFD Sender: No OFD packet to send [17:10:41]OFD Sender: No OFD packet to send [17:10:46]OFD Sender: No OFD packet to send [17:10:51]OFD Sender: No OFD packet to send [17:10:56]OFD Sender: No OFD packet to send [17:11:01]OFD Sender: No OFD packet to send [17:11:06]OFD Sender: No OFD packet to send [17:11:11]OFD Sender: No OFD packet to send [17:11:16]OFD Sender: No OFD packet to send [17:11:21]OFD Sender: No OFD packet to send [17:11:26]OFD Sender: No OFD packet to send [17:11:31]OFD Sender: No OFD packet to send [17:11:36]OFD Sender: No OFD packet to send [17:11:41]OFD Sender: No OFD packet to send [17:11:46]OFD Sender: No OFD packet to send [17:11:51]OFD Sender: No OFD packet to send [17:11:56]OFD Sender: No OFD packet to send [17:12:01]OFD Sender: No OFD packet to send [17:12:02]accept exits with 9 [17:12:02]New connection [17:12:02]New thread 3066785124 created [17:12:02]Thread 3066928484 joined [17:12:02]Waiting for new connection... [17:12:02] Sock 9.Parse request [17:12:02]Sock 9.Check first char [17:12:02]Sock 9.First char is OK [17:12:02]request: POST /json_proto HTTP/1.0 [17:12:02]Method: POST [17:12:02]URL: /json_proto [17:12:02]Method is POST - this is cgi request [17:12:02]url: /json_proto [17:12:02]query_string will be loaded in cgi processing [17:12:02]execute_cgi json_proto POST (null) [17:12:02]execute_cgi path=json_proto method=POST [17:12:02]POST find Content-Length [17:12:02]Host: 172.17.33.3:8080 [17:12:02]Content-Length: 1200 [17:12:02]Content-Type: application/json [17:12:02] [17:12:02]POST finish read [17:12:02]Found Content-Length = 1200 [17:12:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043B\u0438\u043A\u0431\u0430\u0435\u0432\u0430. \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)347662\u000A14.04.2024 16:53\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 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: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3832053;3832054\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:12:02]execute_script... [17:12:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043B\u0438\u043A\u0431\u0430\u0435\u0432\u0430. \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)347662\u000A14.04.2024 16:53\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 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: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3832053;3832054\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:12:02]POST & json_proto [17:12:02]process_json_proto [17:12:02]json parsed OK: [17:12:02]protocol is kg_v1.0 [17:12:02]action value=print_text [17:12:02]process_action print_text [17:12:02]cmd_print_text [17:12:02]ExternCall_PrintAddStr [17:12:02]wPrintStart [17:12:02]Write to MH i2c: 01 00 00 7A A7 21 [17:12:02]Write i2c OK [17:12:02]MH_I2C_Read... [17:12:02]Read from MH i2c: 01 [17:12:02]MH_I2C_Read... [17:12:02]Read from MH i2c: 01 07 00 [17:12:02]MH_I2C_Read... [17:12:02]Read from MH i2c: 01 07 00 7A A7 00 00 00 00 00 FF 0F 36 [17:12:02]RasterBufferAndPrint [17:12:02]line *****ТОВАРНЫЙ ЧЕК***** [17:12:02]line АЗС 108 [17:12:02]line Партнер нефть [17:12:02]line 02508201610067 [17:12:02]line Кассир : Аликбаева. Д. [17:12:02]line Счет N : (1)347662 [17:12:02]line 14.04.2024 16:53 [17:12:02]line ПРОДАЖА [17:12:02]line ТРК (МРК, ГНК): 42 [17:12:02]line Вид ГСМ : 2710124130 [17:12:02]line Аи-92-К-5 [17:12:02]line 20.000 x 64.30 [17:12:02]line ИТОГ: 1286.00 [17:12:02]line Тип оплаты: Талоны: Партнер нефть [17:12:02]line 3832053;3832054 [17:12:02]line ______________________ [17:12:02]line (подпись) [17:12:02]written 0, free lines is 4095 [17:12:02]Write to MH i2c: 01 00 00 8E A7 35 [17:12:02]Write i2c OK [17:12:02]MH_I2C_Read... [17:12:02]Read from MH i2c: 01 [17:12:02]MH_I2C_Read... [17:12:02]Read from MH i2c: 01 07 00 [17:12:02]MH_I2C_Read... [17:12:02]Read from MH i2c: 01 07 00 8E A7 00 00 00 00 00 18 0E 62 [17:12:02]RasterBufferAndPrint [17:12:02]line [17:12:02]line [17:12:02]line [17:12:02]line [17:12:02]line [17:12:02]written 0, free lines is 3609 [17:12:02]MH_Cut [17:12:02]Write to MH i2c: D1 01 00 95 A7 01 0E [17:12:02]Write i2c OK [17:12:02]MH_I2C_Read... [17:12:02]Read from MH i2c: D1 [17:12:02]MH_I2C_Read... [17:12:02]Read from MH i2c: D1 01 00 [17:12:02]MH_I2C_Read... [17:12:02]Read from MH i2c: D1 01 00 95 A7 00 0D [17:12:02]Write to MH i2c: 01 00 00 96 A7 3D [17:12:02]Write i2c OK [17:12:02]MH_I2C_Read... [17:12:02]*** Cut start [17:12:02]*** Partial cut [17:12:02]*** CUTSNS_PIN = 1 [17:12:02]*** CUTSNS_PIN = 0 [17:12:03]*** Brake cut motor [17:12:03]Read from MH i2c: 01 [17:12:03]MH_I2C_Read... [17:12:03]Read from MH i2c: 01 07 00 [17:12:03]MH_I2C_Read... [17:12:03]*** Stop cut motor [17:12:03]*** Cut end [17:12:03]Read from MH i2c: 01 07 00 96 A7 00 00 00 00 00 FF 0F 52 [17:12:03]process_action print_text done [17:12:03]requested_data is exist [17:12:03]produce_requested_data [17:12:03]requested_item fm.sn is exist - process it [17:12:03]wFMCommunicate request_size=4 [17:12:03]MH_SAM_APDU [17:12:03]CAPDU: 80 11 00 00 [17:12:03]Write to MH i2c: E2 08 00 97 A7 80 11 00 00 00 00 00 00 B8 [17:12:03]Write i2c OK [17:12:03]MH_I2C_Read... [17:12:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:12:03]Read from MH i2c: E2 [17:12:03]MH_I2C_Read... [17:12:03]Read from MH i2c: E2 17 00 [17:12:03]MH_I2C_Read... [17:12:03]Read from MH i2c: E2 17 00 97 A7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 07 [17:12:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:12:03]wFMCommunicate OK [17:12:03]requested_item fd.num is exist - process it [17:12:03]SAM_PROTO_GetFieldsCounters [17:12:03]wFMCommunicate request_size=4 [17:12:03]MH_SAM_APDU [17:12:03]CAPDU: 80 13 00 00 [17:12:03]Write to MH i2c: E2 08 00 98 A7 80 13 00 00 00 00 00 00 BB [17:12:03]Write i2c OK [17:12:03]MH_I2C_Read... [17:12:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:12:03]Read from MH i2c: E2 [17:12:03]MH_I2C_Read... [17:12:03]Read from MH i2c: E2 62 00 [17:12:03]MH_I2C_Read... [17:12:03]Read from MH i2c: E2 62 00 98 A7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 5B 72 00 00 0E 04 04 00 74 00 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 65 [17:12:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 5B 72 00 00 0E 04 04 00 74 00 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 [17:12:03]wFMCommunicate OK [17:12:03]SAM_PROTO_GetFieldsCounters done [17:12:03]requested_item shift.num is exist - process it [17:12:03]requested_item shift.opened is exist - process it [17:12:03]req_shift_opened [17:12:03]FM_GetShiftState [17:12:03]SAM_PROTO_GetShiftState [17:12:03]wFMCommunicate request_size=4 [17:12:03]MH_SAM_APDU [17:12:03]CAPDU: 80 13 01 00 [17:12:03]Write to MH i2c: E2 08 00 99 A7 80 13 01 00 00 00 00 00 BD [17:12:03]Write i2c OK [17:12:03]MH_I2C_Read... [17:12:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:12:03]Read from MH i2c: E2 [17:12:03]MH_I2C_Read... [17:12:03]Read from MH i2c: E2 0E 00 [17:12:03]MH_I2C_Read... [17:12:03]Read from MH i2c: E2 0E 00 99 A7 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 69 [17:12:03]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [17:12:03]wFMCommunicate OK [17:12:03]SAM_PROTO_GetShiftState done [17:12:03]FM_GetShiftState done [17:12:03]req_shift_opened done [17:12:03]requested_item shift.open_date is exist - process it [17:12:03]req_shift_open_date [17:12:03]req_shift_open_date done [17:12:03]produce_requested_data done [17:12:03]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29275,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [17:12:03]process_action_free print_text [17:12:03]json_value_free [17:12:03]json_value_free done [17:12:03]process_json_proto returns [17:12:03]Send response to host [17:12:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29275,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [17:12:03]free response buf [17:12:03]execute_script done [17:12:03]execute_script returns [17:12:03]free content buf [17:12:03]Sock 9.Close socket [17:12:03]Sock 9.Thread stoped [17:12:06]OFD Sender: No OFD packet to send [17:12:11]OFD Sender: No OFD packet to send [17:12:16]OFD Sender: No OFD packet to send [17:12:21]OFD Sender: No OFD packet to send [17:12:26]OFD Sender: No OFD packet to send [17:12:31]OFD Sender: No OFD packet to send [17:12:36]OFD Sender: No OFD packet to send [17:12:41]OFD Sender: No OFD packet to send [17:12:46]OFD Sender: No OFD packet to send [17:12:51]OFD Sender: No OFD packet to send [17:12:56]OFD Sender: No OFD packet to send [17:13:00]accept exits with 7 [17:13:00]New connection [17:13:00]New thread 3066928484 created [17:13:00]Thread 3066785124 joined [17:13:00]Waiting for new connection... [17:13:00] Sock 7.Parse request [17:13:00]Sock 7.Check first char [17:13:00]Sock 7.First char is OK [17:13:00]request: POST /json_proto HTTP/1.0 [17:13:00]Method: POST [17:13:00]URL: /json_proto [17:13:00]Method is POST - this is cgi request [17:13:00]url: /json_proto [17:13:00]query_string will be loaded in cgi processing [17:13:00]execute_cgi json_proto POST (null) [17:13:00]execute_cgi path=json_proto method=POST [17:13:00]POST find Content-Length [17:13:00]Host: 172.17.33.3:8080 [17:13:00]Content-Length: 670 [17:13:00]Content-Type: application/json [17:13:00] [17:13:00]POST finish read [17:13:00]Found Content-Length = 670 [17:13:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347663", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 9.190, "sum" : 600.11, "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:13:00]execute_script... [17:13: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)347663", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 9.190, "sum" : 600.11, "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:13:00]POST & json_proto [17:13:00]process_json_proto [17:13:00]json parsed OK: [17:13:00]protocol is kg_v1.0 [17:13:00]action value=close_receipt [17:13:00]process_action close_receipt [17:13:00]cmd_close_receipt [17:13:00]MH_GetDate [17:13:00]Write to MH i2c: F0 00 00 9A A7 30 [17:13:00]Write i2c OK [17:13:00]MH_I2C_Read... [17:13:00]Read from MH i2c: F0 [17:13:00]MH_I2C_Read... [17:13:00]Read from MH i2c: F0 09 00 [17:13:00]MH_I2C_Read... [17:13:00]Read from MH i2c: F0 09 00 9A A7 00 A7 0E 1C 66 23 5B 8F 65 E2 [17:13:00]GetLastDocTimeStamp 1713114059 [17:13:00]current date 1713114791 [17:13:00]FM_GetShiftState [17:13:00]SAM_PROTO_GetShiftState [17:13:00]wFMCommunicate request_size=4 [17:13:00]MH_SAM_APDU [17:13:00]CAPDU: 80 13 01 00 [17:13:00]Write to MH i2c: E2 08 00 9B A7 80 13 01 00 00 00 00 00 BF [17:13:00]Write i2c OK [17:13:00]MH_I2C_Read... [17:13:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:00]Read from MH i2c: E2 [17:13:00]MH_I2C_Read... [17:13:00]Read from MH i2c: E2 0E 00 [17:13:00]MH_I2C_Read... [17:13:00]Read from MH i2c: E2 0E 00 9B A7 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 6B [17:13:00]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [17:13:00]wFMCommunicate OK [17:13:00]SAM_PROTO_GetShiftState done [17:13:00]FM_GetShiftState done [17:13:00]opened in 1713053951 [17:13:00]opened+sec_in_day 1713140351 [17:13:00]quantity*price = 60010 [17:13:00]sum+1 = 60012 [17:13:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 186 14.04.2024 17:13 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29276 ФПД: 206715213712501 1/tax-web-control/client/api/v1/ticket?date=20240414T171311&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29276&fm=206715213712501&tin=02508201610067®Number=0000138879044617&sum=60000 [17:13:01]StoreToDocumentArchive [17:13:01]shift 116 fd 29276 [17:13:01]save to /storage/0116/doc_00029276 [17:13:01]save last doc name /storage/0116/doc_00029276 to /storage/kkm_last_doc_name [17:13:01]save OK [17:13:01]Clear old archive folders... [17:13:01]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:13:01]tlvbuf is 011CB620 [17:13:01]SAM_PROTO_ClearQueue [17:13:01]wFMCommunicate request_size=4 [17:13:01]MH_SAM_APDU [17:13:01]CAPDU: 80 09 00 00 [17:13:01]Write to MH i2c: E2 08 00 A8 A7 80 09 00 00 00 00 00 00 C1 [17:13:01]Write i2c OK [17:13:01]MH_I2C_Read... [17:13:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:13:01]Read from MH i2c: E2 [17:13:01]MH_I2C_Read... [17:13:01]Read from MH i2c: E2 03 00 [17:13:01]MH_I2C_Read... [17:13:01]Read from MH i2c: E2 03 00 A8 A7 00 90 00 C3 [17:13:01]RAPDU: 90 00 [17:13:01]wFMCommunicate OK [17:13:01]SAM_PROTO_ClearQueue done [17:13:01]KKMCreateOFDPacket [17:13:01]OFDProtocolAddRootSTLVToBuf [17:13:01]FM_MakeSignedData [17:13:01]FM_MakeSignedData [17:13:01]SAM_PROTO_SignData [17:13:01]wFMCommunicate request_size=4 [17:13:01]MH_SAM_APDU [17:13:01]CAPDU: 80 0D 01 02 [17:13:01]Write to MH i2c: E2 08 00 A9 A7 80 0D 01 02 00 00 00 00 C9 [17:13:01]Write i2c OK [17:13:01]MH_I2C_Read... [17:13:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:13:01]Read from MH i2c: E2 [17:13:01]MH_I2C_Read... [17:13:01]Read from MH i2c: E2 03 00 [17:13:01]MH_I2C_Read... [17:13:01]Read from MH i2c: E2 03 00 A9 A7 00 90 00 C4 [17:13:01]RAPDU: 90 00 [17:13:01]wFMCommunicate OK [17:13:01]wFMCommunicate request_size=255 [17:13:01]MH_SAM_APDU [17:13:01]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 6B 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 E5 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 BA 00 00 00 F4 03 04 00 A7 0E 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5C 72 00 00 35 04 06 00 [17:13:01]Write to MH i2c: E2 02 01 AA A7 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 6B 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 E5 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 BA 00 00 00 F4 03 04 00 A7 0E 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5C 72 00 00 35 04 06 00 00 00 6C [17:13:01]Write i2c OK [17:13:01]MH_I2C_Read... [17:13:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:02]Read from MH i2c: E2 [17:13:02]MH_I2C_Read... [17:13:02]Read from MH i2c: E2 03 00 [17:13:02]MH_I2C_Read... [17:13:02]Read from MH i2c: E2 03 00 AA A7 00 90 00 C5 [17:13:02]RAPDU: 90 00 [17:13:02]wFMCommunicate OK [17:13:02]wFMCommunicate request_size=11 [17:13:02]MH_SAM_APDU [17:13:02]CAPDU: 80 0D 02 02 06 BC 01 A2 E2 0C 75 [17:13:02]Write to MH i2c: E2 0E 00 AB A7 80 0D 02 02 06 00 BC 01 A2 E2 0C 75 00 00 9A [17:13:02]OFD Sender: No OFD packet to send [17:13:02]Write i2c OK [17:13:02]MH_I2C_Read... [17:13:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:02]Read from MH i2c: E2 [17:13:02]MH_I2C_Read... [17:13:02]Read from MH i2c: E2 03 00 [17:13:02]MH_I2C_Read... [17:13:02]Read from MH i2c: E2 03 00 AB A7 00 90 00 C6 [17:13:02]RAPDU: 90 00 [17:13:02]wFMCommunicate OK [17:13:02]wFMCommunicate request_size=4 [17:13:02]MH_SAM_APDU [17:13:02]CAPDU: 80 0D 03 02 [17:13:02]Write to MH i2c: E2 08 00 AC A7 80 0D 03 02 00 00 00 00 CE [17:13:02]Write i2c OK [17:13:02]MH_I2C_Read... [17:13:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:13:02]Read from MH i2c: E2 [17:13:02]MH_I2C_Read... [17:13:02]Read from MH i2c: E2 0B 00 [17:13:02]MH_I2C_Read... [17:13:02]Read from MH i2c: E2 0B 00 AC A7 00 B3 98 D6 0C 7B 6F 9B 77 90 00 F8 [17:13:02]RAPDU: B3 98 D6 0C 7B 6F 9B 77 90 00 [17:13:02]wFMCommunicate OK [17:13:02]SAM_PROTO_SignData done [17:13:02]FM_MakeSignedData done [17:13:02]CreateOFDProtocolMessage [17:13:02]wFMCommunicate request_size=4 [17:13:02]MH_SAM_APDU [17:13:02]CAPDU: 80 11 00 00 [17:13:02]Write to MH i2c: E2 08 00 AD A7 80 11 00 00 00 00 00 00 CE [17:13:02]Write i2c OK [17:13:02]MH_I2C_Read... [17:13:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:02]Read from MH i2c: E2 [17:13:02]MH_I2C_Read... [17:13:02]Read from MH i2c: E2 17 00 [17:13:02]MH_I2C_Read... [17:13:02]Read from MH i2c: E2 17 00 AD A7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 1D [17:13:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:13:02]wFMCommunicate OK [17:13:02]CreateOFDProtocolMessage done [17:13:02]OFDSenderStorePacket 29276 [17:13:02]StoreOFDPacket docnum=29276 [17:13:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 49 6A 08 01 EC FE 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 6B 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 E5 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 BA 00 00 00 F4 03 04 00 A7 0E 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5C 72 00 00 35 04 06 00 BC 01 A2 E2 0C 75 B3 98 D6 0C 7B 6F 9B 77 [17:13:02]CheckFolder [17:13:02]dirname=/storage/ofd_packets [17:13:02]CheckFolder done [17:13:02]ProducePacketName [17:13:02]name=ofd_packets/00029276 [17:13:02]NVStorageSaveData ofd_packets/00029276 [17:13:02]File name is /storage/ofd_packets/00029276 [17:13:02]Write 302 bytes [17:13:02]NVStorageSaveData done [17:13:02]OFDSenderStorePacket done [17:13:02]KKMCreateOFDPacket done [17:13:02]NVStorageSaveData kkm_last_timestamp [17:13:02]File name is /storage/kkm_last_timestamp [17:13:02]Write 4 bytes [17:13:02]NVStorageSaveData done [17:13:02]ExternCall_PrintAddStr [17:13:02]wPrintStart [17:13:02]Write to MH i2c: 01 00 00 AE A7 55 [17:13:02]Write i2c OK [17:13:02]MH_I2C_Read... [17:13:02]Read from MH i2c: 01 [17:13:02]MH_I2C_Read... [17:13:02]Read from MH i2c: 01 07 00 [17:13:02]MH_I2C_Read... [17:13:02]Read from MH i2c: 01 07 00 AE A7 00 00 00 00 00 FF 0F 6A [17:13:02]RasterBufferAndPrint [17:13:02]line Счет N : (1)347663 [17:13:02]line ИНН: 02508201610067 [17:13:02]line Контрольно-Кассовый Чек [17:13:02]line ПРОДАЖА [17:13:02]line ТРК (МРК, ГНК) : 22 [17:13:02]line Товар: 2710124130 [17:13:02]line SUPER-92-К-5 [17:13:02]line 9.190 * 65.30 [17:13:02]line = 600.11 [17:13:02]line НДС 12% НСП 1% [17:13:02]line > о реализуемом товаре [17:13:02]line ОКРУГЛЕНИЕ: -0.11 [17:13:02]line ИТОГО: 600.00 [17:13:02]line Внесено: 600.00 [17:13:02]line СДАЧА: 0.00 [17:13:02]line НСП 1% : 5.31 [17:13:02]line НДС 12% : 63.73 [17:13:02]line Наличными: 600.00 [17:13:02]line Безнал.: 0.00 [17:13:02]line Место: АЗС № 108 "Партнер Нефть" [17:13:02]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [17:13:02]line СНО: Общий режим [17:13:02]line Чек 186 14.04.2024 17:13 [17:13:02]line Смена: 116 ФФД: 1.0 [17:13:02]line ЗНМ: 0300000027 [17:13:02]line РНМ: 0000138879044617 [17:13:02]line Версия ККМ: 001 [17:13:02]line ФМ: 0000000000963154 [17:13:02]line ФД: 29276 [17:13:02]line ФПД: 206715213712501 [17:13:02]line 1/tax-web-control/client/api/v1/ticket?date=20240414T171311&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29276&fm=206715213712501&tin=02508201610067®Number=0000138879044617&sum=60000 [17:13:02]OFD Sender: Processing packet 29276 [packets to send 8, broken 7] [17:13:02]ProducePacketName [17:13:02]name=ofd_packets/00029276 [17:13:02]OFD Sender: To server: pG, [17:13:02]CommunicateWithHost lk.salyk.kg:30040 [17:13:02]ConnectInit lk.salyk.kg [17:13:02]written 0, free lines is 4095 [17:13:02]Connected sock=11 [17:13:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 49 6A 08 01 EC FE 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 6B 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 E5 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 BA 00 00 00 F4 03 04 00 A7 0E 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5C 72 00 00 35 04 06 00 BC 01 A2 E2 0C 75 B3 98 D6 0C 7B 6F 9B 77 [17:13:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 17 E4 47 00 77 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 39 36 33 31 35 34 10 04 04 00 5C 72 00 00 F4 03 04 00 4B B9 1B 66 B6 04 01 00 00 4F D2 D9 1F 5A A3 B8 D1 [17:13:02]CommunicateWithHost err = 0 [17:13:02]CheckOFDResponse [17:13:02]1017 (14) - 77093643461234 [17:13:02]1041 (16) - 0000000000963154 [17:13:02]1040 (4) - 29276 [17:13:02]1012 (4) - 14.04.2024 11:08 [17:13:02]1206 (1) - 0 [17:13:02]OFD Sender: Remove packet 29276 [17:13:02]ProducePacketName [17:13:02]name=ofd_packets/00029276 [17:13:02]NVStorageDeleteData [17:13:02]Write to MH i2c: 01 00 00 D8 A7 7F [17:13:02]Write i2c OK [17:13:02]MH_I2C_Read... [17:13:02]Read from MH i2c: 01 [17:13:02]MH_I2C_Read... [17:13:02]Read from MH i2c: 01 07 00 [17:13:02]MH_I2C_Read... [17:13:02]Read from MH i2c: 01 07 00 D8 A7 00 00 00 00 00 C0 0C 52 [17:13:02]RasterBufferAndPrint [17:13:02]line [17:13:02]line [17:13:02]line [17:13:02]line [17:13:02]line [17:13:02]written 0, free lines is 3268 [17:13:02]MH_Cut [17:13:02]Write to MH i2c: D1 01 00 DF A7 01 58 [17:13:02]Write i2c OK [17:13:02]MH_I2C_Read... [17:13:02]Read from MH i2c: D1 [17:13:02]MH_I2C_Read... [17:13:02]Read from MH i2c: D1 01 00 [17:13:02]MH_I2C_Read... [17:13:02]Read from MH i2c: D1 01 00 DF A7 00 57 [17:13:02]Write to MH i2c: 01 00 00 E0 A7 87 [17:13:02]Write i2c OK [17:13:02]MH_I2C_Read... [17:13:03]OFD Sender: No OFD packet to send [17:13:03]*** Cut start [17:13:03]*** Partial cut [17:13:03]*** CUTSNS_PIN = 1 [17:13:03]*** CUTSNS_PIN = 0 [17:13:04]*** Brake cut motor [17:13:04]Read from MH i2c: 01 [17:13:04]MH_I2C_Read... [17:13:04]*** Stop cut motor [17:13:04]*** Cut end [17:13:04]Read from MH i2c: 01 07 00 [17:13:04]MH_I2C_Read... [17:13:04]Read from MH i2c: 01 07 00 E0 A7 00 00 00 00 00 FF 0F 9C [17:13:04]process_action close_receipt done [17:13:04]requested_data is exist [17:13:04]produce_requested_data [17:13:04]requested_item fm.sn is exist - process it [17:13:04]wFMCommunicate request_size=4 [17:13:04]MH_SAM_APDU [17:13:04]CAPDU: 80 11 00 00 [17:13:04]Write to MH i2c: E2 08 00 E1 A7 80 11 00 00 00 00 00 00 02 [17:13:04]Write i2c OK [17:13:04]MH_I2C_Read... [17:13:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:04]Read from MH i2c: E2 [17:13:04]MH_I2C_Read... [17:13:04]Read from MH i2c: E2 17 00 [17:13:04]MH_I2C_Read... [17:13:04]Read from MH i2c: E2 17 00 E1 A7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 51 [17:13:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:13:04]wFMCommunicate OK [17:13:04]requested_item fd.num is exist - process it [17:13:04]SAM_PROTO_GetFieldsCounters [17:13:04]wFMCommunicate request_size=4 [17:13:04]MH_SAM_APDU [17:13:04]CAPDU: 80 13 00 00 [17:13:04]Write to MH i2c: E2 08 00 E2 A7 80 13 00 00 00 00 00 00 05 [17:13:04]Write i2c OK [17:13:04]MH_I2C_Read... [17:13:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:13:04]Read from MH i2c: E2 [17:13:04]MH_I2C_Read... [17:13:04]Read from MH i2c: E2 62 00 [17:13:04]MH_I2C_Read... [17:13:04]Read from MH i2c: E2 62 00 E2 A7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 5C 72 00 00 0E 04 04 00 74 00 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 B3 [17:13:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 5C 72 00 00 0E 04 04 00 74 00 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 [17:13:04]wFMCommunicate OK [17:13:04]SAM_PROTO_GetFieldsCounters done [17:13:04]requested_item shift.num is exist - process it [17:13:04]requested_item shift.opened is exist - process it [17:13:04]req_shift_opened [17:13:04]FM_GetShiftState [17:13:04]SAM_PROTO_GetShiftState [17:13:04]wFMCommunicate request_size=4 [17:13:04]MH_SAM_APDU [17:13:04]CAPDU: 80 13 01 00 [17:13:04]Write to MH i2c: E2 08 00 E3 A7 80 13 01 00 00 00 00 00 07 [17:13:04]Write i2c OK [17:13:04]MH_I2C_Read... [17:13:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:04]Read from MH i2c: E2 [17:13:04]MH_I2C_Read... [17:13:04]Read from MH i2c: E2 0E 00 [17:13:04]MH_I2C_Read... [17:13:04]Read from MH i2c: E2 0E 00 E3 A7 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 B3 [17:13:04]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [17:13:04]wFMCommunicate OK [17:13:04]SAM_PROTO_GetShiftState done [17:13:04]FM_GetShiftState done [17:13:04]req_shift_opened done [17:13:04]requested_item shift.open_date is exist - process it [17:13:04]req_shift_open_date [17:13:04]req_shift_open_date done [17:13:04]produce_requested_data done [17:13:04]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29276,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [17:13:04]process_action_free close_receipt [17:13:04]json_value_free [17:13:04]json_value_free done [17:13:04]process_json_proto returns [17:13:04]Send response to host [17:13:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29276,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [17:13:04]free response buf [17:13:04]execute_script done [17:13:04]execute_script returns [17:13:04]free content buf [17:13:04]Sock 7.Close socket [17:13:04]Sock 7.Thread stoped [17:13:08]OFD Sender: No OFD packet to send [17:13:13]OFD Sender: No OFD packet to send [17:13:18]OFD Sender: No OFD packet to send [17:13:23]OFD Sender: No OFD packet to send [17:13:28]OFD Sender: No OFD packet to send [17:13:33]OFD Sender: No OFD packet to send [17:13:38]OFD Sender: No OFD packet to send [17:13:43]OFD Sender: No OFD packet to send [17:13:48]OFD Sender: No OFD packet to send [17:13:53]OFD Sender: No OFD packet to send [17:13:58]OFD Sender: No OFD packet to send [17:14:03]OFD Sender: No OFD packet to send [17:14:08]OFD Sender: No OFD packet to send [17:14:13]OFD Sender: No OFD packet to send [17:14:18]OFD Sender: No OFD packet to send [17:14:23]OFD Sender: No OFD packet to send [17:14:28]OFD Sender: No OFD packet to send [17:14:33]OFD Sender: No OFD packet to send [17:14:38]OFD Sender: No OFD packet to send [17:14:43]OFD Sender: No OFD packet to send [17:14:48]OFD Sender: No OFD packet to send [17:14:53]OFD Sender: No OFD packet to send [17:14:58]OFD Sender: No OFD packet to send [17:15:03]OFD Sender: No OFD packet to send [17:15:08]OFD Sender: No OFD packet to send [17:15:13]OFD Sender: No OFD packet to send [17:15:18]OFD Sender: No OFD packet to send [17:15:23]OFD Sender: No OFD packet to send [17:15:28]OFD Sender: No OFD packet to send [17:15:33]OFD Sender: No OFD packet to send [17:15:38]OFD Sender: No OFD packet to send [17:15:43]OFD Sender: No OFD packet to send [17:15:48]OFD Sender: No OFD packet to send [17:15:53]OFD Sender: No OFD packet to send [17:15:58]OFD Sender: No OFD packet to send [17:15:59]accept exits with 9 [17:15:59]New connection [17:15:59]New thread 3066785124 created [17:15:59]Thread 3066928484 joined [17:15:59]Waiting for new connection... [17:15:59] Sock 9.Parse request [17:15:59]Sock 9.Check first char [17:15:59]Sock 9.First char is OK [17:15:59]request: POST /json_proto HTTP/1.0 [17:15:59]Method: POST [17:15:59]URL: /json_proto [17:15:59]Method is POST - this is cgi request [17:15:59]url: /json_proto [17:15:59]query_string will be loaded in cgi processing [17:15:59]execute_cgi json_proto POST (null) [17:15:59]execute_cgi path=json_proto method=POST [17:15:59]POST find Content-Length [17:15:59]Host: 172.17.33.3:8080 [17:15:59]Content-Length: 677 [17:15:59]Content-Type: application/json [17:15:59] [17:15:59]POST finish read [17:15:59]Found Content-Length = 677 [17:15:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347665", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.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:15:59]execute_script... [17:15: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)347665", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.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:15:59]POST & json_proto [17:15:59]process_json_proto [17:15:59]json parsed OK: [17:15:59]protocol is kg_v1.0 [17:15:59]action value=close_receipt [17:15:59]process_action close_receipt [17:15:59]cmd_close_receipt [17:15:59]MH_GetDate [17:15:59]Write to MH i2c: F0 00 00 E4 A7 7A [17:15:59]Write i2c OK [17:15:59]MH_I2C_Read... [17:15:59]Read from MH i2c: F0 [17:15:59]MH_I2C_Read... [17:15:59]Read from MH i2c: F0 09 00 [17:15:59]MH_I2C_Read... [17:15:59]Read from MH i2c: F0 09 00 E4 A7 00 5B 0F 1C 66 23 5B 8F 65 E1 [17:15:59]GetLastDocTimeStamp 1713114791 [17:15:59]current date 1713114971 [17:15:59]FM_GetShiftState [17:15:59]SAM_PROTO_GetShiftState [17:15:59]wFMCommunicate request_size=4 [17:15:59]MH_SAM_APDU [17:15:59]CAPDU: 80 13 01 00 [17:15:59]Write to MH i2c: E2 08 00 E5 A7 80 13 01 00 00 00 00 00 09 [17:15:59]Write i2c OK [17:15:59]MH_I2C_Read... [17:16:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:16:00]Read from MH i2c: E2 [17:16:00]MH_I2C_Read... [17:16:00]Read from MH i2c: E2 0E 00 [17:16:00]MH_I2C_Read... [17:16:00]Read from MH i2c: E2 0E 00 E5 A7 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 B5 [17:16:00]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [17:16:00]wFMCommunicate OK [17:16:00]SAM_PROTO_GetShiftState done [17:16:00]FM_GetShiftState done [17:16:00]opened in 1713053951 [17:16:00]opened+sec_in_day 1713140351 [17:16:00]quantity*price = 50025 [17:16:00]sum+1 = 50026 [17:16: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 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 187 14.04.2024 17:16 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29277 ФПД: 35897056516187 1/tax-web-control/client/api/v1/ticket?date=20240414T171611&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29277&fm=35897056516187&tin=02508201610067®Number=0000138879044617&sum=50000 [17:16:01]StoreToDocumentArchive [17:16:01]shift 116 fd 29277 [17:16:01]save to /storage/0116/doc_00029277 [17:16:01]save last doc name /storage/0116/doc_00029277 to /storage/kkm_last_doc_name [17:16:01]save OK [17:16:01]Clear old archive folders... [17:16:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:16:01]tlvbuf is 011BB280 [17:16:01]SAM_PROTO_ClearQueue [17:16:01]wFMCommunicate request_size=4 [17:16:01]MH_SAM_APDU [17:16:01]CAPDU: 80 09 00 00 [17:16:01]Write to MH i2c: E2 08 00 F2 A7 80 09 00 00 00 00 00 00 0B [17:16:01]Write i2c OK [17:16:01]MH_I2C_Read... [17:16:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:16:01]Read from MH i2c: E2 [17:16:01]MH_I2C_Read... [17:16:01]Read from MH i2c: E2 03 00 [17:16:01]MH_I2C_Read... [17:16:01]Read from MH i2c: E2 03 00 F2 A7 00 90 00 0D [17:16:01]RAPDU: 90 00 [17:16:01]wFMCommunicate OK [17:16:01]SAM_PROTO_ClearQueue done [17:16:01]KKMCreateOFDPacket [17:16:01]OFDProtocolAddRootSTLVToBuf [17:16:01]FM_MakeSignedData [17:16:01]FM_MakeSignedData [17:16:01]SAM_PROTO_SignData [17:16:01]wFMCommunicate request_size=4 [17:16:01]MH_SAM_APDU [17:16:01]CAPDU: 80 0D 01 02 [17:16:01]Write to MH i2c: E2 08 00 F3 A7 80 0D 01 02 00 00 00 00 13 [17:16:01]Write i2c OK [17:16:01]MH_I2C_Read... [17:16:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:16:01]Read from MH i2c: E2 [17:16:01]MH_I2C_Read... [17:16:01]Read from MH i2c: E2 03 00 [17:16:01]MH_I2C_Read... [17:16:01]Read from MH i2c: E2 03 00 F3 A7 00 90 00 0E [17:16:01]RAPDU: 90 00 [17:16:01]wFMCommunicate OK [17:16:01]wFMCommunicate request_size=255 [17:16:01]MH_SAM_APDU [17:16: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 BB 00 00 00 F4 03 04 00 5B 0F 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5D 72 00 00 35 04 06 00 20 [17:16:01]Write to MH i2c: E2 02 01 F4 A7 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 BB 00 00 00 F4 03 04 00 5B 0F 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5D 72 00 00 35 04 06 00 20 00 00 DF [17:16:01]Write i2c OK [17:16:01]MH_I2C_Read... [17:16:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:16:01]Read from MH i2c: E2 [17:16:01]MH_I2C_Read... [17:16:01]Read from MH i2c: E2 03 00 [17:16:01]MH_I2C_Read... [17:16:01]Read from MH i2c: E2 03 00 F4 A7 00 90 00 0F [17:16:01]RAPDU: 90 00 [17:16:01]wFMCommunicate OK [17:16:01]wFMCommunicate request_size=10 [17:16:01]MH_SAM_APDU [17:16:01]CAPDU: 80 0D 02 02 05 A5 EF 4D 58 5B [17:16:01]Write to MH i2c: E2 0D 00 F5 A7 80 0D 02 02 05 00 A5 EF 4D 58 5B 00 00 B4 [17:16:01]Write i2c OK [17:16:01]MH_I2C_Read... [17:16:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:16:01]Read from MH i2c: E2 [17:16:01]MH_I2C_Read... [17:16:01]Read from MH i2c: E2 03 00 [17:16:01]MH_I2C_Read... [17:16:01]Read from MH i2c: E2 03 00 F5 A7 00 90 00 10 [17:16:01]RAPDU: 90 00 [17:16:01]wFMCommunicate OK [17:16:01]wFMCommunicate request_size=4 [17:16:01]MH_SAM_APDU [17:16:01]CAPDU: 80 0D 03 02 [17:16:01]Write to MH i2c: E2 08 00 F6 A7 80 0D 03 02 00 00 00 00 18 [17:16:01]Write i2c OK [17:16:01]MH_I2C_Read... [17:16:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:16:01]Read from MH i2c: E2 [17:16:01]MH_I2C_Read... [17:16:01]Read from MH i2c: E2 0B 00 [17:16:01]MH_I2C_Read... [17:16:01]Read from MH i2c: E2 0B 00 F6 A7 00 A5 A6 76 70 49 7F B0 33 90 00 F5 [17:16:01]RAPDU: A5 A6 76 70 49 7F B0 33 90 00 [17:16:01]wFMCommunicate OK [17:16:01]SAM_PROTO_SignData done [17:16:01]FM_MakeSignedData done [17:16:01]CreateOFDProtocolMessage [17:16:01]wFMCommunicate request_size=4 [17:16:01]MH_SAM_APDU [17:16:01]CAPDU: 80 11 00 00 [17:16:01]Write to MH i2c: E2 08 00 F7 A7 80 11 00 00 00 00 00 00 18 [17:16:01]Write i2c OK [17:16:01]MH_I2C_Read... [17:16:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:16:01]Read from MH i2c: E2 [17:16:01]MH_I2C_Read... [17:16:01]Read from MH i2c: E2 17 00 [17:16:01]MH_I2C_Read... [17:16:01]Read from MH i2c: E2 17 00 F7 A7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 67 [17:16:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:16:01]wFMCommunicate OK [17:16:01]CreateOFDProtocolMessage done [17:16:01]OFDSenderStorePacket 29277 [17:16:01]StoreOFDPacket docnum=29277 [17:16:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 85 91 07 01 B3 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 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 BB 00 00 00 F4 03 04 00 5B 0F 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5D 72 00 00 35 04 06 00 20 A5 EF 4D 58 5B A5 A6 76 70 49 7F B0 33 [17:16:01]CheckFolder [17:16:01]dirname=/storage/ofd_packets [17:16:01]CheckFolder done [17:16:01]ProducePacketName [17:16:01]name=ofd_packets/00029277 [17:16:01]NVStorageSaveData ofd_packets/00029277 [17:16:01]File name is /storage/ofd_packets/00029277 [17:16:01]Write 301 bytes [17:16:01]NVStorageSaveData done [17:16:01]OFDSenderStorePacket done [17:16:01]KKMCreateOFDPacket done [17:16:01]NVStorageSaveData kkm_last_timestamp [17:16:01]File name is /storage/kkm_last_timestamp [17:16:01]Write 4 bytes [17:16:01]NVStorageSaveData done [17:16:01]ExternCall_PrintAddStr [17:16:01]wPrintStart [17:16:01]Write to MH i2c: 01 00 00 F8 A7 9F [17:16:01]Write i2c OK [17:16:01]MH_I2C_Read... [17:16:01]Read from MH i2c: 01 [17:16:01]MH_I2C_Read... [17:16:01]Read from MH i2c: 01 07 00 [17:16:01]MH_I2C_Read... [17:16:01]Read from MH i2c: 01 07 00 F8 A7 00 00 00 00 00 FF 0F B4 [17:16:01]RasterBufferAndPrint [17:16:01]line Счет N : (1)347665 [17:16:01]line ИНН: 02508201610067 [17:16:01]line Контрольно-Кассовый Чек [17:16:01]line ПРОДАЖА [17:16:01]line ТРК (МРК, ГНК) : 13 [17:16:01]line Товар: 2710124130 [17:16:01]line Аи-92-К-5 [17:16:01]line 7.780 * 64.30 [17:16:01]line = 500.25 [17:16:01]line НДС 12% НСП 1% [17:16:01]line > о реализуемом товаре [17:16:01]line ОКРУГЛЕНИЕ: -0.25 [17:16:01]line ИТОГО: 500.00 [17:16:01]line Внесено: 500.00 [17:16:01]line СДАЧА: 0.00 [17:16:01]line НСП 1% : 4.43 [17:16:01]line НДС 12% : 53.12 [17:16:01]line Наличными: 500.00 [17:16:01]line Безнал.: 0.00 [17:16:01]line Место: АЗС № 108 "Партнер Нефть" [17:16:01]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [17:16:01]line СНО: Общий режим [17:16:01]line Чек 187 14.04.2024 17:16 [17:16:01]line Смена: 116 ФФД: 1.0 [17:16:01]line ЗНМ: 0300000027 [17:16:01]line РНМ: 0000138879044617 [17:16:01]line Версия ККМ: 001 [17:16:01]line ФМ: 0000000000963154 [17:16:01]line ФД: 29277 [17:16:01]line ФПД: 35897056516187 [17:16:02]line 1/tax-web-control/client/api/v1/ticket?date=20240414T171611&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29277&fm=35897056516187&tin=02508201610067®Number=0000138879044617&sum=50000 [17:16:02]OFD Sender: Processing packet 29277 [packets to send 8, broken 7] [17:16:02]ProducePacketName [17:16:02]name=ofd_packets/00029277 [17:16:02]OFD Sender: To server: pG, [17:16:02]CommunicateWithHost lk.salyk.kg:30040 [17:16:02]ConnectInit lk.salyk.kg [17:16:02]written 0, free lines is 4095 [17:16:02]Connected sock=10 [17:16:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 85 91 07 01 B3 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 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 BB 00 00 00 F4 03 04 00 5B 0F 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5D 72 00 00 35 04 06 00 20 A5 EF 4D 58 5B A5 A6 76 70 49 7F B0 33 [17:16:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 D3 FB 47 00 6B 3E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5D 72 00 00 F4 03 04 00 FE B9 1B 66 B6 04 01 00 00 61 00 2C 69 95 41 5F CD [17:16:02]CommunicateWithHost err = 0 [17:16:02]CheckOFDResponse [17:16:02]1017 (14) - 77093643461234 [17:16:02]1041 (16) - 0000000000963154 [17:16:02]1040 (4) - 29277 [17:16:02]1012 (4) - 14.04.2024 11:11 [17:16:02]1206 (1) - 0 [17:16:02]OFD Sender: Remove packet 29277 [17:16:02]ProducePacketName [17:16:02]name=ofd_packets/00029277 [17:16:02]NVStorageDeleteData [17:16:02]Write to MH i2c: 01 00 00 22 A8 CA [17:16:02]Write i2c OK [17:16:02]MH_I2C_Read... [17:16:02]Read from MH i2c: 01 [17:16:02]MH_I2C_Read... [17:16:02]Read from MH i2c: 01 07 00 [17:16:02]MH_I2C_Read... [17:16:02]Read from MH i2c: 01 07 00 22 A8 00 00 00 00 00 C0 0C 9D [17:16:02]RasterBufferAndPrint [17:16:02]line [17:16:02]line [17:16:02]line [17:16:02]line [17:16:02]line [17:16:02]written 0, free lines is 3268 [17:16:02]MH_Cut [17:16:02]Write to MH i2c: D1 01 00 29 A8 01 A3 [17:16:02]Write i2c OK [17:16:02]MH_I2C_Read... [17:16:02]Read from MH i2c: D1 [17:16:02]MH_I2C_Read... [17:16:02]Read from MH i2c: D1 01 00 [17:16:02]MH_I2C_Read... [17:16:02]Read from MH i2c: D1 01 00 29 A8 00 A2 [17:16:02]Write to MH i2c: 01 00 00 2A A8 D2 [17:16:02]Write i2c OK [17:16:02]MH_I2C_Read... [17:16:02]OFD Sender: No OFD packet to send [17:16:03]*** Cut start [17:16:03]*** Partial cut [17:16:03]*** CUTSNS_PIN = 1 [17:16:03]*** CUTSNS_PIN = 0 [17:16:03]*** Brake cut motor [17:16:03]Read from MH i2c: 01 [17:16:03]MH_I2C_Read... [17:16:03]*** Stop cut motor [17:16:03]*** Cut end [17:16:03]Read from MH i2c: 01 07 00 [17:16:03]MH_I2C_Read... [17:16:03]Read from MH i2c: 01 07 00 2A A8 00 00 00 00 00 FF 0F E7 [17:16:03]process_action close_receipt done [17:16:03]requested_data is exist [17:16:03]produce_requested_data [17:16:03]requested_item fm.sn is exist - process it [17:16:03]wFMCommunicate request_size=4 [17:16:03]MH_SAM_APDU [17:16:03]CAPDU: 80 11 00 00 [17:16:03]Write to MH i2c: E2 08 00 2B A8 80 11 00 00 00 00 00 00 4D [17:16:03]Write i2c OK [17:16:03]MH_I2C_Read... [17:16:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:16:03]Read from MH i2c: E2 [17:16:03]MH_I2C_Read... [17:16:03]Read from MH i2c: E2 17 00 [17:16:03]MH_I2C_Read... [17:16:03]Read from MH i2c: E2 17 00 2B A8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 9C [17:16:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:16:03]wFMCommunicate OK [17:16:03]requested_item fd.num is exist - process it [17:16:03]SAM_PROTO_GetFieldsCounters [17:16:03]wFMCommunicate request_size=4 [17:16:03]MH_SAM_APDU [17:16:03]CAPDU: 80 13 00 00 [17:16:03]Write to MH i2c: E2 08 00 2C A8 80 13 00 00 00 00 00 00 50 [17:16:03]Write i2c OK [17:16:03]MH_I2C_Read... [17:16:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:16:04]Read from MH i2c: E2 [17:16:04]MH_I2C_Read... [17:16:04]Read from MH i2c: E2 62 00 [17:16:04]MH_I2C_Read... [17:16:04]Read from MH i2c: E2 62 00 2C A8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 5D 72 00 00 0E 04 04 00 74 00 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 02 [17:16:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 5D 72 00 00 0E 04 04 00 74 00 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 [17:16:04]wFMCommunicate OK [17:16:04]SAM_PROTO_GetFieldsCounters done [17:16:04]requested_item shift.num is exist - process it [17:16:04]requested_item shift.opened is exist - process it [17:16:04]req_shift_opened [17:16:04]FM_GetShiftState [17:16:04]SAM_PROTO_GetShiftState [17:16:04]wFMCommunicate request_size=4 [17:16:04]MH_SAM_APDU [17:16:04]CAPDU: 80 13 01 00 [17:16:04]Write to MH i2c: E2 08 00 2D A8 80 13 01 00 00 00 00 00 52 [17:16:04]Write i2c OK [17:16:04]MH_I2C_Read... [17:16:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:16:04]Read from MH i2c: E2 [17:16:04]MH_I2C_Read... [17:16:04]Read from MH i2c: E2 0E 00 [17:16:04]MH_I2C_Read... [17:16:04]Read from MH i2c: E2 0E 00 2D A8 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 FE [17:16:04]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [17:16:04]wFMCommunicate OK [17:16:04]SAM_PROTO_GetShiftState done [17:16:04]FM_GetShiftState done [17:16:04]req_shift_opened done [17:16:04]requested_item shift.open_date is exist - process it [17:16:04]req_shift_open_date [17:16:04]req_shift_open_date done [17:16:04]produce_requested_data done [17:16:04]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29277,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [17:16:04]process_action_free close_receipt [17:16:04]json_value_free [17:16:04]json_value_free done [17:16:04]process_json_proto returns [17:16:04]Send response to host [17:16:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29277,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [17:16:04]free response buf [17:16:04]execute_script done [17:16:04]execute_script returns [17:16:04]free content buf [17:16:04]Sock 9.Close socket [17:16:04]Sock 9.Thread stoped [17:16:07]OFD Sender: No OFD packet to send [17:16:12]OFD Sender: No OFD packet to send [17:16:17]OFD Sender: No OFD packet to send [17:16:22]accept exits with 7 [17:16:22]New connection [17:16:22]New thread 3066928484 created [17:16:22]Thread 3066785124 joined [17:16:22]Waiting for new connection... [17:16:22] Sock 7.Parse request [17:16:22]Sock 7.Check first char [17:16:22]Sock 7.First char is OK [17:16:22]request: POST /json_proto HTTP/1.0 [17:16:22]Method: POST [17:16:22]URL: /json_proto [17:16:22]Method is POST - this is cgi request [17:16:22]url: /json_proto [17:16:22]query_string will be loaded in cgi processing [17:16:22]execute_cgi json_proto POST (null) [17:16:22]execute_cgi path=json_proto method=POST [17:16:22]POST find Content-Length [17:16:22]Host: 172.17.33.3:8080 [17:16:22]Content-Length: 1164 [17:16:22]Content-Type: application/json [17:16:22] [17:16:22]POST finish read [17:16:22]Found Content-Length = 1164 [17:16:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043B\u0438\u043A\u0431\u0430\u0435\u0432\u0430. \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)347664\u000A14.04.2024 16:58\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 35.000 x 64.30\u000A\u0418\u0422\u041E\u0413: 2250.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30070207\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:16:22]execute_script... [17:16:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043B\u0438\u043A\u0431\u0430\u0435\u0432\u0430. \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)347664\u000A14.04.2024 16:58\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 35.000 x 64.30\u000A\u0418\u0422\u041E\u0413: 2250.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30070207\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:16:22]POST & json_proto [17:16:22]process_json_proto [17:16:22]json parsed OK: [17:16:22]protocol is kg_v1.0 [17:16:22]action value=print_text [17:16:22]process_action print_text [17:16:22]cmd_print_text [17:16:22]ExternCall_PrintAddStr [17:16:22]wPrintStart [17:16:22]Write to MH i2c: 01 00 00 2E A8 D6 [17:16:22]Write i2c OK [17:16:22]MH_I2C_Read... [17:16:22]Read from MH i2c: 01 [17:16:22]MH_I2C_Read... [17:16:22]Read from MH i2c: 01 07 00 [17:16:22]MH_I2C_Read... [17:16:22]Read from MH i2c: 01 07 00 2E A8 00 00 00 00 00 FF 0F EB [17:16:22]RasterBufferAndPrint [17:16:22]line *****ТОВАРНЫЙ ЧЕК***** [17:16:22]line АЗС 108 [17:16:22]line Партнер нефть [17:16:22]line 02508201610067 [17:16:22]line Кассир : Аликбаева. Д. [17:16:22]line Счет N : (1)347664 [17:16:22]line 14.04.2024 16:58 [17:16:22]line ПРОДАЖА [17:16:22]line ТРК (МРК, ГНК): 32 [17:16:22]line Вид ГСМ : 2710124130 [17:16:22]line Аи-92-К-5 [17:16:22]line 35.000 x 64.30 [17:16:22]line ИТОГ: 2250.50 [17:16:22]line Тип оплаты: Талоны: ТК ГПНА Online [17:16:22]line 30070207 [17:16:22]line ______________________ [17:16:22]line (подпись) [17:16:22]written 0, free lines is 4095 [17:16:22]OFD Sender: No OFD packet to send [17:16:22]Write to MH i2c: 01 00 00 42 A8 EA [17:16:22]Write i2c OK [17:16:22]MH_I2C_Read... [17:16:22]Read from MH i2c: 01 [17:16:22]MH_I2C_Read... [17:16:22]Read from MH i2c: 01 07 00 [17:16:22]MH_I2C_Read... [17:16:22]Read from MH i2c: 01 07 00 42 A8 00 00 00 00 00 11 0E 10 [17:16:22]RasterBufferAndPrint [17:16:22]line [17:16:22]line [17:16:22]line [17:16:22]line [17:16:22]line [17:16:22]written 0, free lines is 3603 [17:16:22]MH_Cut [17:16:22]Write to MH i2c: D1 01 00 49 A8 01 C3 [17:16:22]Write i2c OK [17:16:22]MH_I2C_Read... [17:16:22]Read from MH i2c: D1 [17:16:22]MH_I2C_Read... [17:16:22]Read from MH i2c: D1 01 00 [17:16:22]MH_I2C_Read... [17:16:22]Read from MH i2c: D1 01 00 49 A8 00 C2 [17:16:22]Write to MH i2c: 01 00 00 4A A8 F2 [17:16:22]Write i2c OK [17:16:22]MH_I2C_Read... [17:16:23]*** Cut start [17:16:23]*** Partial cut [17:16:23]*** CUTSNS_PIN = 1 [17:16:23]*** CUTSNS_PIN = 0 [17:16:23]*** Brake cut motor [17:16:24]Read from MH i2c: 01 [17:16:24]MH_I2C_Read... [17:16:24]*** Stop cut motor [17:16:24]*** Cut end [17:16:24]Read from MH i2c: 01 07 00 [17:16:24]MH_I2C_Read... [17:16:24]Read from MH i2c: 01 07 00 4A A8 00 00 00 00 00 FF 0F 07 [17:16:24]process_action print_text done [17:16:24]requested_data is exist [17:16:24]produce_requested_data [17:16:24]requested_item fm.sn is exist - process it [17:16:24]wFMCommunicate request_size=4 [17:16:24]MH_SAM_APDU [17:16:24]CAPDU: 80 11 00 00 [17:16:24]Write to MH i2c: E2 08 00 4B A8 80 11 00 00 00 00 00 00 6D [17:16:24]Write i2c OK [17:16:24]MH_I2C_Read... [17:16:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:16:24]Read from MH i2c: E2 [17:16:24]MH_I2C_Read... [17:16:24]Read from MH i2c: E2 17 00 [17:16:24]MH_I2C_Read... [17:16:24]Read from MH i2c: E2 17 00 4B A8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 BC [17:16:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:16:24]wFMCommunicate OK [17:16:24]requested_item fd.num is exist - process it [17:16:24]SAM_PROTO_GetFieldsCounters [17:16:24]wFMCommunicate request_size=4 [17:16:24]MH_SAM_APDU [17:16:24]CAPDU: 80 13 00 00 [17:16:24]Write to MH i2c: E2 08 00 4C A8 80 13 00 00 00 00 00 00 70 [17:16:24]Write i2c OK [17:16:24]MH_I2C_Read... [17:16:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:16:24]Read from MH i2c: E2 [17:16:24]MH_I2C_Read... [17:16:24]Read from MH i2c: E2 62 00 [17:16:24]MH_I2C_Read... [17:16:24]Read from MH i2c: E2 62 00 4C A8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 5D 72 00 00 0E 04 04 00 74 00 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 22 [17:16:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 5D 72 00 00 0E 04 04 00 74 00 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 [17:16:24]wFMCommunicate OK [17:16:24]SAM_PROTO_GetFieldsCounters done [17:16:24]requested_item shift.num is exist - process it [17:16:24]requested_item shift.opened is exist - process it [17:16:24]req_shift_opened [17:16:24]FM_GetShiftState [17:16:24]SAM_PROTO_GetShiftState [17:16:24]wFMCommunicate request_size=4 [17:16:24]MH_SAM_APDU [17:16:24]CAPDU: 80 13 01 00 [17:16:24]Write to MH i2c: E2 08 00 4D A8 80 13 01 00 00 00 00 00 72 [17:16:24]Write i2c OK [17:16:24]MH_I2C_Read... [17:16:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:16:24]Read from MH i2c: E2 [17:16:24]MH_I2C_Read... [17:16:24]Read from MH i2c: E2 0E 00 [17:16:24]MH_I2C_Read... [17:16:24]Read from MH i2c: E2 0E 00 4D A8 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 1E [17:16:24]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [17:16:24]wFMCommunicate OK [17:16:24]SAM_PROTO_GetShiftState done [17:16:24]FM_GetShiftState done [17:16:24]req_shift_opened done [17:16:24]requested_item shift.open_date is exist - process it [17:16:24]req_shift_open_date [17:16:24]req_shift_open_date done [17:16:24]produce_requested_data done [17:16:24]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29277,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [17:16:24]process_action_free print_text [17:16:24]json_value_free [17:16:24]json_value_free done [17:16:24]process_json_proto returns [17:16:24]Send response to host [17:16:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29277,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [17:16:24]free response buf [17:16:24]execute_script done [17:16:24]execute_script returns [17:16:24]free content buf [17:16:24]Sock 7.Close socket [17:16:24]Sock 7.Thread stoped [17:16:27]OFD Sender: No OFD packet to send [17:16:32]OFD Sender: No OFD packet to send [17:16:37]OFD Sender: No OFD packet to send [17:16:42]OFD Sender: No OFD packet to send [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:17:02]OFD Sender: No OFD packet to send [17:17:07]OFD Sender: No OFD packet to send [17:17:12]OFD Sender: No OFD packet to send [17:17:17]OFD Sender: No OFD packet to send [17:17:22]OFD Sender: No OFD packet to send [17:17:27]OFD Sender: No OFD packet to send [17:17:32]OFD Sender: No OFD packet to send [17:17:37]OFD Sender: No OFD packet to send [17:17:42]OFD Sender: No OFD packet to send [17:17:47]OFD Sender: No OFD packet to send [17:17:52]OFD Sender: No OFD packet to send [17:17:57]OFD Sender: No OFD packet to send [17:17:57]accept exits with 9 [17:17:57]New connection [17:17:57]New thread 3066785124 created [17:17:57]Thread 3066928484 joined [17:17:57]Waiting for new connection... [17:17:57] Sock 9.Parse request [17:17:57]Sock 9.Check first char [17:17:57]Sock 9.First char is OK [17:17:57]request: POST /json_proto HTTP/1.0 [17:17:57]Method: POST [17:17:57]URL: /json_proto [17:17:57]Method is POST - this is cgi request [17:17:57]url: /json_proto [17:17:57]query_string will be loaded in cgi processing [17:17:57]execute_cgi json_proto POST (null) [17:17:57]execute_cgi path=json_proto method=POST [17:17:57]POST find Content-Length [17:17:57]Host: 172.17.33.3:8080 [17:17:57]Content-Length: 819 [17:17:57]Content-Type: application/json [17:17:57] [17:17:57]POST finish read [17:17:57]Found Content-Length = 819 [17:17:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347666", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.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" ] } } [17:17:57]execute_script... [17: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)347666", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.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" ] } } [17:17:57]POST & json_proto [17:17:57]process_json_proto [17:17:57]json parsed OK: [17:17:57]protocol is kg_v1.0 [17:17:57]action value=close_receipt [17:17:57]process_action close_receipt [17:17:57]cmd_close_receipt [17:17:57]MH_GetDate [17:17:57]Write to MH i2c: F0 00 00 4E A8 E5 [17:17:58]Write i2c OK [17:17:58]MH_I2C_Read... [17:17:58]Read from MH i2c: F0 [17:17:58]MH_I2C_Read... [17:17:58]Read from MH i2c: F0 09 00 [17:17:58]MH_I2C_Read... [17:17:58]Read from MH i2c: F0 09 00 4E A8 00 D1 0F 1C 66 23 5B 8F 65 C2 [17:17:58]GetLastDocTimeStamp 1713114971 [17:17:58]current date 1713115089 [17:17:58]FM_GetShiftState [17:17:58]SAM_PROTO_GetShiftState [17:17:58]wFMCommunicate request_size=4 [17:17:58]MH_SAM_APDU [17:17:58]CAPDU: 80 13 01 00 [17:17:58]Write to MH i2c: E2 08 00 4F A8 80 13 01 00 00 00 00 00 74 [17:17:58]Write i2c OK [17:17:58]MH_I2C_Read... [17:17:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:17:58]Read from MH i2c: E2 [17:17:58]MH_I2C_Read... [17:17:58]Read from MH i2c: E2 0E 00 [17:17:58]MH_I2C_Read... [17:17:58]Read from MH i2c: E2 0E 00 4F A8 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 20 [17:17:58]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [17:17:58]wFMCommunicate OK [17:17:58]SAM_PROTO_GetShiftState done [17:17:58]FM_GetShiftState done [17:17:58]opened in 1713053951 [17:17:58]opened+sec_in_day 1713140351 [17:17:58]quantity*price = 100050 [17:17:58]sum+1 = 100052 [17:17:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 188 14.04.2024 17:18 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 29278 ФПД: 256755687297384 1/tax-web-control/client/api/v1/ticket?date=20240414T171809&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29278&fm=256755687297384&tin=02508201610067®Number=0000138879044617&sum=100051 [17:17:59]StoreToDocumentArchive [17:17:59]shift 116 fd 29278 [17:17:59]save to /storage/0116/doc_00029278 [17:17:59]save last doc name /storage/0116/doc_00029278 to /storage/kkm_last_doc_name [17:17:59]save OK [17:17:59]Clear old archive folders... [17:17:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:17:59]tlvbuf is 012862E0 [17:17:59]SAM_PROTO_ClearQueue [17:17:59]wFMCommunicate request_size=4 [17:17:59]MH_SAM_APDU [17:17:59]CAPDU: 80 09 00 00 [17:17:59]Write to MH i2c: E2 08 00 5C A8 80 09 00 00 00 00 00 00 76 [17:17:59]Write i2c OK [17:17:59]MH_I2C_Read... [17:17:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:17:59]Read from MH i2c: E2 [17:17:59]MH_I2C_Read... [17:17:59]Read from MH i2c: E2 03 00 [17:17:59]MH_I2C_Read... [17:17:59]Read from MH i2c: E2 03 00 5C A8 00 90 00 78 [17:17:59]RAPDU: 90 00 [17:17:59]wFMCommunicate OK [17:17:59]SAM_PROTO_ClearQueue done [17:17:59]KKMCreateOFDPacket [17:17:59]OFDProtocolAddRootSTLVToBuf [17:17:59]FM_MakeSignedData [17:17:59]FM_MakeSignedData [17:17:59]SAM_PROTO_SignData [17:17:59]wFMCommunicate request_size=4 [17:17:59]MH_SAM_APDU [17:17:59]CAPDU: 80 0D 01 02 [17:17:59]Write to MH i2c: E2 08 00 5D A8 80 0D 01 02 00 00 00 00 7E [17:17:59]Write i2c OK [17:17:59]MH_I2C_Read... [17:17:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:17:59]Read from MH i2c: E2 [17:17:59]MH_I2C_Read... [17:17:59]Read from MH i2c: E2 03 00 [17:17:59]MH_I2C_Read... [17:17:59]Read from MH i2c: E2 03 00 5D A8 00 90 00 79 [17:17:59]RAPDU: 90 00 [17:17:59]wFMCommunicate OK [17:17:59]wFMCommunicate request_size=255 [17:17:59]MH_SAM_APDU [17: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 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 BC 00 00 00 F4 03 04 00 D1 0F 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5E 72 00 00 35 04 06 00 E9 [17:17:59]Write to MH i2c: E2 02 01 5E A8 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 BC 00 00 00 F4 03 04 00 D1 0F 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5E 72 00 00 35 04 06 00 E9 00 00 5B [17:17:59]Write i2c OK [17:17:59]MH_I2C_Read... [17:17:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:17:59]Read from MH i2c: E2 [17:17:59]MH_I2C_Read... [17:17:59]Read from MH i2c: E2 03 00 [17:17:59]MH_I2C_Read... [17:17:59]Read from MH i2c: E2 03 00 5E A8 00 90 00 7A [17:17:59]RAPDU: 90 00 [17:17:59]wFMCommunicate OK [17:17:59]wFMCommunicate request_size=10 [17:17:59]MH_SAM_APDU [17:17:59]CAPDU: 80 0D 02 02 05 84 97 89 11 68 [17:17:59]Write to MH i2c: E2 0D 00 5F A8 80 0D 02 02 05 00 84 97 89 11 68 00 00 A8 [17:17:59]Write i2c OK [17:17:59]MH_I2C_Read... [17:17:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:17:59]Read from MH i2c: E2 [17:17:59]MH_I2C_Read... [17:17:59]Read from MH i2c: E2 03 00 [17:17:59]MH_I2C_Read... [17:17:59]Read from MH i2c: E2 03 00 5F A8 00 90 00 7B [17:17:59]RAPDU: 90 00 [17:17:59]wFMCommunicate OK [17:17:59]wFMCommunicate request_size=4 [17:17:59]MH_SAM_APDU [17:17:59]CAPDU: 80 0D 03 02 [17:17:59]Write to MH i2c: E2 08 00 60 A8 80 0D 03 02 00 00 00 00 83 [17:17:59]Write i2c OK [17:17:59]MH_I2C_Read... [17:17:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:17:59]Read from MH i2c: E2 [17:17:59]MH_I2C_Read... [17:17:59]Read from MH i2c: E2 0B 00 [17:17:59]MH_I2C_Read... [17:17:59]Read from MH i2c: E2 0B 00 60 A8 00 B0 A8 F4 5B 0B 5B F9 E2 90 00 6C [17:17:59]RAPDU: B0 A8 F4 5B 0B 5B F9 E2 90 00 [17:17:59]wFMCommunicate OK [17:17:59]SAM_PROTO_SignData done [17:17:59]FM_MakeSignedData done [17:17:59]CreateOFDProtocolMessage [17:17:59]wFMCommunicate request_size=4 [17:17:59]MH_SAM_APDU [17:17:59]CAPDU: 80 11 00 00 [17:17:59]Write to MH i2c: E2 08 00 61 A8 80 11 00 00 00 00 00 00 83 [17:17:59]Write i2c OK [17:17:59]MH_I2C_Read... [17:17:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:17:59]Read from MH i2c: E2 [17:17:59]MH_I2C_Read... [17:17:59]Read from MH i2c: E2 17 00 [17:17:59]MH_I2C_Read... [17:17:59]Read from MH i2c: E2 17 00 61 A8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D2 [17:17:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:17:59]wFMCommunicate OK [17:17:59]CreateOFDProtocolMessage done [17:17:59]OFDSenderStorePacket 29278 [17:17:59]StoreOFDPacket docnum=29278 [17:17:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 B0 C4 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 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 BC 00 00 00 F4 03 04 00 D1 0F 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5E 72 00 00 35 04 06 00 E9 84 97 89 11 68 B0 A8 F4 5B 0B 5B F9 E2 [17:17:59]CheckFolder [17:17:59]dirname=/storage/ofd_packets [17:17:59]CheckFolder done [17:17:59]ProducePacketName [17:17:59]name=ofd_packets/00029278 [17:17:59]NVStorageSaveData ofd_packets/00029278 [17:17:59]File name is /storage/ofd_packets/00029278 [17:17:59]Write 301 bytes [17:17:59]NVStorageSaveData done [17:17:59]OFDSenderStorePacket done [17:17:59]KKMCreateOFDPacket done [17:17:59]NVStorageSaveData kkm_last_timestamp [17:17:59]File name is /storage/kkm_last_timestamp [17:17:59]Write 4 bytes [17:17:59]NVStorageSaveData done [17:17:59]ExternCall_PrintAddStr [17:17:59]wPrintStart [17:17:59]Write to MH i2c: 01 00 00 62 A8 0A [17:17:59]Write i2c OK [17:17:59]MH_I2C_Read... [17:17:59]Read from MH i2c: 01 [17:17:59]MH_I2C_Read... [17:17:59]Read from MH i2c: 01 07 00 [17:17:59]MH_I2C_Read... [17:17:59]Read from MH i2c: 01 07 00 62 A8 00 00 00 00 00 FF 0F 1F [17:17:59]RasterBufferAndPrint [17:17:59]line Счет N : (1)347666 [17:17:59]line ИНН: 02508201610067 [17:17:59]line Контрольно-Кассовый Чек [17:17:59]line ПРОДАЖА [17:17:59]line ТРК (МРК, ГНК) : 13 [17:17:59]line Товар: 2710124130 [17:17:59]line Аи-92-К-5 [17:17:59]line 15.560 * 64.30 [17:17:59]line = 1000.51 [17:17:59]line НДС 12% НСП 1% [17:17:59]line > о реализуемом товаре [17:17:59]line ИТОГО: 1000.51 [17:17:59]line НСП 1% : 8.85 [17:17:59]line НДС 12% : 106.25 [17:17:59]line Наличными: 0.00 [17:17:59]line Безнал.: 1000.51 [17:17:59]line Место: АЗС № 108 "Партнер Нефть" [17:17:59]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [17:17:59]line СНО: Общий режим [17:17:59]line Чек 188 14.04.2024 17:18 [17:17:59]line Смена: 116 ФФД: 1.0 [17:17:59]line ЗНМ: 0300000027 [17:17:59]line РНМ: 0000138879044617 [17:17:59]line Версия ККМ: 001 [17:17:59]line Платежная система: Бакай Банк [17:17:59]line ФМ: 0000000000963154 [17:17:59]line ФД: 29278 [17:17:59]line ФПД: 256755687297384 [17:17:59]line 1/tax-web-control/client/api/v1/ticket?date=20240414T171809&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29278&fm=256755687297384&tin=02508201610067®Number=0000138879044617&sum=100051 [17:18:00]OFD Sender: Processing packet 29278 [packets to send 8, broken 7] [17:18:00]ProducePacketName [17:18:00]name=ofd_packets/00029278 [17:18:00]OFD Sender: To server: pG, [17:18:00]CommunicateWithHost lk.salyk.kg:30040 [17:18:00]ConnectInit lk.salyk.kg [17:18:00]written 0, free lines is 4095 [17:18:00]Connected sock=10 [17:18:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 B0 C4 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 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 BC 00 00 00 F4 03 04 00 D1 0F 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5E 72 00 00 35 04 06 00 E9 84 97 89 11 68 B0 A8 F4 5B 0B 5B F9 E2 [17:18:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 39 1E 47 00 A7 C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5E 72 00 00 F4 03 04 00 74 BA 1B 66 B6 04 01 00 00 A2 3F 33 03 1A 34 15 7B [17:18:00]CommunicateWithHost err = 0 [17:18:00]CheckOFDResponse [17:18:00]1017 (14) - 77093643461234 [17:18:00]1041 (16) - 0000000000963154 [17:18:00]1040 (4) - 29278 [17:18:00]1012 (4) - 14.04.2024 11:13 [17:18:00]1206 (1) - 0 [17:18:00]OFD Sender: Remove packet 29278 [17:18:00]ProducePacketName [17:18:00]name=ofd_packets/00029278 [17:18:00]NVStorageDeleteData [17:18:00]Write to MH i2c: 01 00 00 8B A8 33 [17:18:00]Write i2c OK [17:18:00]MH_I2C_Read... [17:18:00]Read from MH i2c: 01 [17:18:00]MH_I2C_Read... [17:18:00]Read from MH i2c: 01 07 00 [17:18:00]MH_I2C_Read... [17:18:00]Read from MH i2c: 01 07 00 8B A8 00 00 00 00 00 D8 0C 1E [17:18:00]RasterBufferAndPrint [17:18:00]line [17:18:00]line [17:18:00]line [17:18:00]line [17:18:00]line [17:18:00]written 0, free lines is 3295 [17:18:00]MH_Cut [17:18:00]Write to MH i2c: D1 01 00 92 A8 01 0C [17:18:00]Write i2c OK [17:18:00]MH_I2C_Read... [17:18:00]Read from MH i2c: D1 [17:18:00]MH_I2C_Read... [17:18:00]Read from MH i2c: D1 01 00 [17:18:00]MH_I2C_Read... [17:18:00]Read from MH i2c: D1 01 00 92 A8 00 0B [17:18:00]Write to MH i2c: 01 00 00 93 A8 3B [17:18:00]Write i2c OK [17:18:00]MH_I2C_Read... [17:18:00]OFD Sender: No OFD packet to send [17:18:01]*** Cut start [17:18:01]*** Partial cut [17:18:01]*** CUTSNS_PIN = 1 [17:18:01]*** CUTSNS_PIN = 0 [17:18:01]*** Brake cut motor [17:18:01]Read from MH i2c: 01 [17:18:01]MH_I2C_Read... [17:18:01]*** Stop cut motor [17:18:01]*** Cut end [17:18:01]Read from MH i2c: 01 07 00 [17:18:01]MH_I2C_Read... [17:18:01]Read from MH i2c: 01 07 00 93 A8 00 00 00 00 00 FF 0F 50 [17:18:01]process_action close_receipt done [17:18:01]requested_data is exist [17:18:01]produce_requested_data [17:18:01]requested_item fm.sn is exist - process it [17:18:01]wFMCommunicate request_size=4 [17:18:01]MH_SAM_APDU [17:18:01]CAPDU: 80 11 00 00 [17:18:01]Write to MH i2c: E2 08 00 94 A8 80 11 00 00 00 00 00 00 B6 [17:18:01]Write i2c OK [17:18:01]MH_I2C_Read... [17:18:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:18:01]Read from MH i2c: E2 [17:18:01]MH_I2C_Read... [17:18:01]Read from MH i2c: E2 17 00 [17:18:01]MH_I2C_Read... [17:18:01]Read from MH i2c: E2 17 00 94 A8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 05 [17:18:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:18:01]wFMCommunicate OK [17:18:01]requested_item fd.num is exist - process it [17:18:01]SAM_PROTO_GetFieldsCounters [17:18:01]wFMCommunicate request_size=4 [17:18:01]MH_SAM_APDU [17:18:01]CAPDU: 80 13 00 00 [17:18:01]Write to MH i2c: E2 08 00 95 A8 80 13 00 00 00 00 00 00 B9 [17:18:01]Write i2c OK [17:18:01]MH_I2C_Read... [17:18:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:18:02]Read from MH i2c: E2 [17:18:02]MH_I2C_Read... [17:18:02]Read from MH i2c: E2 62 00 [17:18:02]MH_I2C_Read... [17:18:02]Read from MH i2c: E2 62 00 95 A8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 5E 72 00 00 0E 04 04 00 74 00 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 6F [17:18:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 5E 72 00 00 0E 04 04 00 74 00 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 [17:18:02]wFMCommunicate OK [17:18:02]SAM_PROTO_GetFieldsCounters done [17:18:02]requested_item shift.num is exist - process it [17:18:02]requested_item shift.opened is exist - process it [17:18:02]req_shift_opened [17:18:02]FM_GetShiftState [17:18:02]SAM_PROTO_GetShiftState [17:18:02]wFMCommunicate request_size=4 [17:18:02]MH_SAM_APDU [17:18:02]CAPDU: 80 13 01 00 [17:18:02]Write to MH i2c: E2 08 00 96 A8 80 13 01 00 00 00 00 00 BB [17:18:02]Write i2c OK [17:18:02]MH_I2C_Read... [17:18:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:18:02]Read from MH i2c: E2 [17:18:02]MH_I2C_Read... [17:18:02]Read from MH i2c: E2 0E 00 [17:18:02]MH_I2C_Read... [17:18:02]Read from MH i2c: E2 0E 00 96 A8 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 67 [17:18:02]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [17:18:02]wFMCommunicate OK [17:18:02]SAM_PROTO_GetShiftState done [17:18:02]FM_GetShiftState done [17:18:02]req_shift_opened done [17:18:02]requested_item shift.open_date is exist - process it [17:18:02]req_shift_open_date [17:18:02]req_shift_open_date done [17:18:02]produce_requested_data done [17:18:02]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29278,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [17:18:02]process_action_free close_receipt [17:18:02]json_value_free [17:18:02]json_value_free done [17:18:02]process_json_proto returns [17:18:02]Send response to host [17:18:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29278,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [17:18:02]free response buf [17:18:02]execute_script done [17:18:02]execute_script returns [17:18:02]free content buf [17:18:02]Sock 9.Close socket [17:18:02]Sock 9.Thread stoped [17:18:05]OFD Sender: No OFD packet to send [17:18:10]OFD Sender: No OFD packet to send [17:18:15]OFD Sender: No OFD packet to send [17:18:20]OFD Sender: No OFD packet to send [17:18:25]OFD Sender: No OFD packet to send [17:18:30]OFD Sender: No OFD packet to send [17:18:35]OFD Sender: No OFD packet to send [17:18:40]OFD Sender: No OFD packet to send [17:18:45]OFD Sender: No OFD packet to send [17:18:50]OFD Sender: No OFD packet to send [17:18:55]OFD Sender: No OFD packet to send [17:19:00]OFD Sender: No OFD packet to send [17:19:05]OFD Sender: No OFD packet to send [17:19:10]OFD Sender: No OFD packet to send [17:19:15]OFD Sender: No OFD packet to send [17:19:20]OFD Sender: No OFD packet to send [17:19:25]OFD Sender: No OFD packet to send [17:19:30]OFD Sender: No OFD packet to send [17:19:35]OFD Sender: No OFD packet to send [17:19:40]OFD Sender: No OFD packet to send [17:19:45]OFD Sender: No OFD packet to send [17:19:50]OFD Sender: No OFD packet to send [17:19:55]OFD Sender: No OFD packet to send [17:20:00]OFD Sender: No OFD packet to send [17:20:05]OFD Sender: No OFD packet to send [17:20:10]OFD Sender: No OFD packet to send [17:20:15]OFD Sender: No OFD packet to send [17:20:20]OFD Sender: No OFD packet to send [17:20:25]OFD Sender: No OFD packet to send [17:20:30]OFD Sender: No OFD packet to send [17:20:35]OFD Sender: No OFD packet to send [17:20:40]OFD Sender: No OFD packet to send [17:20:45]OFD Sender: No OFD packet to send [17:20:50]OFD Sender: No OFD packet to send [17:20:55]OFD Sender: No OFD packet to send [17:21:00]OFD Sender: No OFD packet to send [17:21:05]OFD Sender: No OFD packet to send [17:21:10]OFD Sender: No OFD packet to send [17:21:15]OFD Sender: No OFD packet to send [17:21:20]OFD Sender: No OFD packet to send [17:21:25]OFD Sender: No OFD packet to send [17:21:30]OFD Sender: No OFD packet to send [17:21:35]OFD Sender: No OFD packet to send [17:21:40]OFD Sender: No OFD packet to send [17:21:45]OFD Sender: No OFD packet to send [17:21:50]OFD Sender: No OFD packet to send [17:21:55]OFD Sender: No OFD packet to send [17:22:00]OFD Sender: No OFD packet to send [17:22:05]OFD Sender: No OFD packet to send [17:22:11]OFD Sender: No OFD packet to send [17:22:16]OFD Sender: No OFD packet to send [17:22:21]OFD Sender: No OFD packet to send [17:22:22]accept exits with 7 [17:22:22]New connection [17:22:22]New thread 3066928484 created [17:22:22]Thread 3066785124 joined [17:22:22]Waiting for new connection... [17:22:22] Sock 7.Parse request [17:22:22]Sock 7.Check first char [17:22:22]Sock 7.First char is OK [17:22:22]request: POST /json_proto HTTP/1.0 [17:22:22]Method: POST [17:22:22]URL: /json_proto [17:22:22]Method is POST - this is cgi request [17:22:22]url: /json_proto [17:22:22]query_string will be loaded in cgi processing [17:22:22]execute_cgi json_proto POST (null) [17:22:22]execute_cgi path=json_proto method=POST [17:22:22]POST find Content-Length [17:22:22]Host: 172.17.33.3:8080 [17:22:22]Content-Length: 682 [17:22:22]Content-Type: application/json [17:22:22] [17:22:22]POST finish read [17:22:22]Found Content-Length = 682 [17:22:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347667", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.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:22:22]execute_script... [17:22: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)347667", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.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:22:22]POST & json_proto [17:22:22]process_json_proto [17:22:22]json parsed OK: [17:22:22]protocol is kg_v1.0 [17:22:22]action value=close_receipt [17:22:22]process_action close_receipt [17:22:22]cmd_close_receipt [17:22:22]MH_GetDate [17:22:22]Write to MH i2c: F0 00 00 97 A8 2E [17:22:22]Write i2c OK [17:22:22]MH_I2C_Read... [17:22:22]Read from MH i2c: F0 [17:22:22]MH_I2C_Read... [17:22:22]Read from MH i2c: F0 09 00 [17:22:22]MH_I2C_Read... [17:22:22]Read from MH i2c: F0 09 00 97 A8 00 DA 10 1C 66 23 5B 8F 65 15 [17:22:22]GetLastDocTimeStamp 1713115089 [17:22:22]current date 1713115354 [17:22:22]FM_GetShiftState [17:22:22]SAM_PROTO_GetShiftState [17:22:22]wFMCommunicate request_size=4 [17:22:22]MH_SAM_APDU [17:22:22]CAPDU: 80 13 01 00 [17:22:22]Write to MH i2c: E2 08 00 98 A8 80 13 01 00 00 00 00 00 BD [17:22:22]Write i2c OK [17:22:22]MH_I2C_Read... [17:22:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:22:23]Read from MH i2c: E2 [17:22:23]MH_I2C_Read... [17:22:23]Read from MH i2c: E2 0E 00 [17:22:23]MH_I2C_Read... [17:22:23]Read from MH i2c: E2 0E 00 98 A8 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 69 [17:22:23]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [17:22:23]wFMCommunicate OK [17:22:23]SAM_PROTO_GetShiftState done [17:22:23]FM_GetShiftState done [17:22:23]opened in 1713053951 [17:22:23]opened+sec_in_day 1713140351 [17:22:23]quantity*price = 100050 [17:22:23]sum+1 = 100051 [17:22:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 189 14.04.2024 17:22 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29279 ФПД: 18688724772352 1/tax-web-control/client/api/v1/ticket?date=20240414T172234&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29279&fm=18688724772352&tin=02508201610067®Number=0000138879044617&sum=100000 [17:22:24]StoreToDocumentArchive [17:22:24]shift 116 fd 29279 [17:22:24]save to /storage/0116/doc_00029279 [17:22:24]save last doc name /storage/0116/doc_00029279 to /storage/kkm_last_doc_name [17:22:24]save OK [17:22:24]Clear old archive folders... [17:22:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:22:24]tlvbuf is 011FB020 [17:22:24]SAM_PROTO_ClearQueue [17:22:24]wFMCommunicate request_size=4 [17:22:24]MH_SAM_APDU [17:22:24]CAPDU: 80 09 00 00 [17:22:24]Write to MH i2c: E2 08 00 A5 A8 80 09 00 00 00 00 00 00 BF [17:22:24]Write i2c OK [17:22:24]MH_I2C_Read... [17:22:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:22:24]Read from MH i2c: E2 [17:22:24]MH_I2C_Read... [17:22:24]Read from MH i2c: E2 03 00 [17:22:24]MH_I2C_Read... [17:22:24]Read from MH i2c: E2 03 00 A5 A8 00 90 00 C1 [17:22:24]RAPDU: 90 00 [17:22:24]wFMCommunicate OK [17:22:24]SAM_PROTO_ClearQueue done [17:22:24]KKMCreateOFDPacket [17:22:24]OFDProtocolAddRootSTLVToBuf [17:22:24]FM_MakeSignedData [17:22:24]FM_MakeSignedData [17:22:24]SAM_PROTO_SignData [17:22:24]wFMCommunicate request_size=4 [17:22:24]MH_SAM_APDU [17:22:24]CAPDU: 80 0D 01 02 [17:22:24]Write to MH i2c: E2 08 00 A6 A8 80 0D 01 02 00 00 00 00 C7 [17:22:24]Write i2c OK [17:22:24]MH_I2C_Read... [17:22:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:22:24]Read from MH i2c: E2 [17:22:24]MH_I2C_Read... [17:22:24]Read from MH i2c: E2 03 00 [17:22:24]MH_I2C_Read... [17:22:24]Read from MH i2c: E2 03 00 A6 A8 00 90 00 C2 [17:22:24]RAPDU: 90 00 [17:22:24]wFMCommunicate OK [17:22:24]wFMCommunicate request_size=255 [17:22:24]MH_SAM_APDU [17:22: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 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 BD 00 00 00 F4 03 04 00 DA 10 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5F 72 00 00 35 04 06 00 10 [17:22:24]Write to MH i2c: E2 02 01 A7 A8 80 0D 02 02 FA 00 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 BD 00 00 00 F4 03 04 00 DA 10 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5F 72 00 00 35 04 06 00 10 00 00 C4 [17:22:24]Write i2c OK [17:22:24]MH_I2C_Read... [17:22:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:22:24]Read from MH i2c: E2 [17:22:24]MH_I2C_Read... [17:22:24]Read from MH i2c: E2 03 00 [17:22:24]MH_I2C_Read... [17:22:24]Read from MH i2c: E2 03 00 A7 A8 00 90 00 C3 [17:22:24]RAPDU: 90 00 [17:22:24]wFMCommunicate OK [17:22:24]wFMCommunicate request_size=10 [17:22:24]MH_SAM_APDU [17:22:24]CAPDU: 80 0D 02 02 05 FF 4E CD 26 00 [17:22:24]Write to MH i2c: E2 0D 00 A8 A8 80 0D 02 02 05 00 FF 4E CD 26 00 00 00 14 [17:22:24]Write i2c OK [17:22:24]MH_I2C_Read... [17:22:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:22:24]Read from MH i2c: E2 [17:22:24]MH_I2C_Read... [17:22:24]Read from MH i2c: E2 03 00 [17:22:24]MH_I2C_Read... [17:22:24]Read from MH i2c: E2 03 00 A8 A8 00 90 00 C4 [17:22:24]RAPDU: 90 00 [17:22:24]wFMCommunicate OK [17:22:24]wFMCommunicate request_size=4 [17:22:24]MH_SAM_APDU [17:22:24]CAPDU: 80 0D 03 02 [17:22:24]Write to MH i2c: E2 08 00 A9 A8 80 0D 03 02 00 00 00 00 CC [17:22:24]Write i2c OK [17:22:24]MH_I2C_Read... [17:22:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:22:24]Read from MH i2c: E2 [17:22:24]MH_I2C_Read... [17:22:24]Read from MH i2c: E2 0B 00 [17:22:24]MH_I2C_Read... [17:22:24]Read from MH i2c: E2 0B 00 A9 A8 00 7B EE A2 8E DA 6A 23 1A 90 00 E7 [17:22:24]RAPDU: 7B EE A2 8E DA 6A 23 1A 90 00 [17:22:24]wFMCommunicate OK [17:22:24]SAM_PROTO_SignData done [17:22:24]FM_MakeSignedData done [17:22:24]CreateOFDProtocolMessage [17:22:24]wFMCommunicate request_size=4 [17:22:24]MH_SAM_APDU [17:22:24]CAPDU: 80 11 00 00 [17:22:24]Write to MH i2c: E2 08 00 AA A8 80 11 00 00 00 00 00 00 CC [17:22:24]Write i2c OK [17:22:24]MH_I2C_Read... [17:22:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:22:24]Read from MH i2c: E2 [17:22:24]MH_I2C_Read... [17:22:24]Read from MH i2c: E2 17 00 [17:22:24]MH_I2C_Read... [17:22:24]Read from MH i2c: E2 17 00 AA A8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 1B [17:22:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:22:24]wFMCommunicate OK [17:22:24]CreateOFDProtocolMessage done [17:22:24]OFDSenderStorePacket 29279 [17:22:24]StoreOFDPacket docnum=29279 [17:22:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 1B 47 07 01 E6 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 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 BD 00 00 00 F4 03 04 00 DA 10 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5F 72 00 00 35 04 06 00 10 FF 4E CD 26 00 7B EE A2 8E DA 6A 23 1A [17:22:24]CheckFolder [17:22:24]dirname=/storage/ofd_packets [17:22:24]CheckFolder done [17:22:24]ProducePacketName [17:22:24]name=ofd_packets/00029279 [17:22:24]NVStorageSaveData ofd_packets/00029279 [17:22:24]File name is /storage/ofd_packets/00029279 [17:22:24]Write 301 bytes [17:22:24]NVStorageSaveData done [17:22:24]OFDSenderStorePacket done [17:22:24]KKMCreateOFDPacket done [17:22:24]NVStorageSaveData kkm_last_timestamp [17:22:24]File name is /storage/kkm_last_timestamp [17:22:24]Write 4 bytes [17:22:24]NVStorageSaveData done [17:22:24]ExternCall_PrintAddStr [17:22:24]wPrintStart [17:22:24]Write to MH i2c: 01 00 00 AB A8 53 [17:22:24]Write i2c OK [17:22:24]MH_I2C_Read... [17:22:24]Read from MH i2c: 01 [17:22:24]MH_I2C_Read... [17:22:24]Read from MH i2c: 01 07 00 [17:22:24]MH_I2C_Read... [17:22:24]Read from MH i2c: 01 07 00 AB A8 00 00 00 00 00 FF 0F 68 [17:22:24]RasterBufferAndPrint [17:22:24]line Счет N : (1)347667 [17:22:24]line ИНН: 02508201610067 [17:22:24]line Контрольно-Кассовый Чек [17:22:24]line ПРОДАЖА [17:22:24]line ТРК (МРК, ГНК) : 33 [17:22:24]line Товар: 2710124500 [17:22:24]line Аи-95-К-5 [17:22:24]line 13.800 * 72.50 [17:22:24]line = 1000.50 [17:22:24]line НДС 12% НСП 1% [17:22:24]line > о реализуемом товаре [17:22:24]line ОКРУГЛЕНИЕ: -0.50 [17:22:24]line ИТОГО: 1000.00 [17:22:24]line Внесено: 1000.00 [17:22:24]line СДАЧА: 0.00 [17:22:24]line НСП 1% : 8.85 [17:22:24]line НДС 12% : 106.25 [17:22:24]line Наличными: 1000.00 [17:22:24]line Безнал.: 0.00 [17:22:24]line Место: АЗС № 108 "Партнер Нефть" [17:22:24]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [17:22:24]line СНО: Общий режим [17:22:24]line Чек 189 14.04.2024 17:22 [17:22:24]line Смена: 116 ФФД: 1.0 [17:22:24]line ЗНМ: 0300000027 [17:22:24]line РНМ: 0000138879044617 [17:22:24]line Версия ККМ: 001 [17:22:24]line ФМ: 0000000000963154 [17:22:24]line ФД: 29279 [17:22:24]line ФПД: 18688724772352 [17:22:24]line 1/tax-web-control/client/api/v1/ticket?date=20240414T172234&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29279&fm=18688724772352&tin=02508201610067®Number=0000138879044617&sum=100000 [17:22:25]OFD Sender: Processing packet 29279 [packets to send 8, broken 7] [17:22:25]ProducePacketName [17:22:25]name=ofd_packets/00029279 [17:22:25]OFD Sender: To server: pG, [17:22:25]CommunicateWithHost lk.salyk.kg:30040 [17:22:25]ConnectInit lk.salyk.kg [17:22:25]written 0, free lines is 4095 [17:22:25]Connected sock=10 [17:22:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 1B 47 07 01 E6 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 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 BD 00 00 00 F4 03 04 00 DA 10 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5F 72 00 00 35 04 06 00 10 FF 4E CD 26 00 7B EE A2 8E DA 6A 23 1A [17:22:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 21 5A 47 00 D7 45 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5F 72 00 00 F4 03 04 00 7D BB 1B 66 B6 04 01 00 00 E8 EE 86 00 D0 92 0D B0 [17:22:25]CommunicateWithHost err = 0 [17:22:25]CheckOFDResponse [17:22:25]1017 (14) - 77093643461234 [17:22:25]1041 (16) - 0000000000963154 [17:22:25]1040 (4) - 29279 [17:22:25]1012 (4) - 14.04.2024 11:18 [17:22:25]1206 (1) - 0 [17:22:25]OFD Sender: Remove packet 29279 [17:22:25]ProducePacketName [17:22:25]name=ofd_packets/00029279 [17:22:25]NVStorageDeleteData [17:22:25]Write to MH i2c: 01 00 00 D5 A8 7D [17:22:25]Write i2c OK [17:22:25]MH_I2C_Read... [17:22:25]Read from MH i2c: 01 [17:22:25]MH_I2C_Read... [17:22:25]Read from MH i2c: 01 07 00 [17:22:25]MH_I2C_Read... [17:22:25]Read from MH i2c: 01 07 00 D5 A8 00 00 00 00 00 C2 0C 52 [17:22:25]RasterBufferAndPrint [17:22:25]line [17:22:25]line [17:22:25]line [17:22:25]line [17:22:25]line [17:22:25]written 0, free lines is 3272 [17:22:25]MH_Cut [17:22:25]Write to MH i2c: D1 01 00 DC A8 01 56 [17:22:25]Write i2c OK [17:22:25]MH_I2C_Read... [17:22:25]Read from MH i2c: D1 [17:22:25]MH_I2C_Read... [17:22:25]Read from MH i2c: D1 01 00 [17:22:25]MH_I2C_Read... [17:22:25]Read from MH i2c: D1 01 00 DC A8 00 55 [17:22:25]Write to MH i2c: 01 00 00 DD A8 85 [17:22:25]Write i2c OK [17:22:25]MH_I2C_Read... [17:22:25]OFD Sender: No OFD packet to send [17:22:26]*** Cut start [17:22:26]*** Partial cut [17:22:26]*** CUTSNS_PIN = 1 [17:22:26]*** CUTSNS_PIN = 0 [17:22:26]*** Brake cut motor [17:22:26]Read from MH i2c: 01 [17:22:26]MH_I2C_Read... [17:22:26]*** Stop cut motor [17:22:26]*** Cut end [17:22:26]Read from MH i2c: 01 07 00 [17:22:26]MH_I2C_Read... [17:22:26]Read from MH i2c: 01 07 00 DD A8 00 00 00 00 00 FF 0F 9A [17:22:26]process_action close_receipt done [17:22:26]requested_data is exist [17:22:26]produce_requested_data [17:22:26]requested_item fm.sn is exist - process it [17:22:26]wFMCommunicate request_size=4 [17:22:26]MH_SAM_APDU [17:22:26]CAPDU: 80 11 00 00 [17:22:26]Write to MH i2c: E2 08 00 DE A8 80 11 00 00 00 00 00 00 00 [17:22:26]Write i2c OK [17:22:26]MH_I2C_Read... [17:22:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:22:26]Read from MH i2c: E2 [17:22:26]MH_I2C_Read... [17:22:26]Read from MH i2c: E2 17 00 [17:22:26]MH_I2C_Read... [17:22:26]Read from MH i2c: E2 17 00 DE A8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 4F [17:22:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:22:26]wFMCommunicate OK [17:22:26]requested_item fd.num is exist - process it [17:22:26]SAM_PROTO_GetFieldsCounters [17:22:26]wFMCommunicate request_size=4 [17:22:26]MH_SAM_APDU [17:22:26]CAPDU: 80 13 00 00 [17:22:26]Write to MH i2c: E2 08 00 DF A8 80 13 00 00 00 00 00 00 03 [17:22:26]Write i2c OK [17:22:26]MH_I2C_Read... [17:22:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:22:27]Read from MH i2c: E2 [17:22:27]MH_I2C_Read... [17:22:27]Read from MH i2c: E2 62 00 [17:22:27]MH_I2C_Read... [17:22:27]Read from MH i2c: E2 62 00 DF A8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 5F 72 00 00 0E 04 04 00 74 00 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 BD [17:22:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 5F 72 00 00 0E 04 04 00 74 00 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 [17:22:27]wFMCommunicate OK [17:22:27]SAM_PROTO_GetFieldsCounters done [17:22:27]requested_item shift.num is exist - process it [17:22:27]requested_item shift.opened is exist - process it [17:22:27]req_shift_opened [17:22:27]FM_GetShiftState [17:22:27]SAM_PROTO_GetShiftState [17:22:27]wFMCommunicate request_size=4 [17:22:27]MH_SAM_APDU [17:22:27]CAPDU: 80 13 01 00 [17:22:27]Write to MH i2c: E2 08 00 E0 A8 80 13 01 00 00 00 00 00 05 [17:22:27]Write i2c OK [17:22:27]MH_I2C_Read... [17:22:27]Read from MH i2c: E2 [17:22:27]MH_I2C_Read... [17:22:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:22:27]Read from MH i2c: E2 0E 00 [17:22:27]MH_I2C_Read... [17:22:27]Read from MH i2c: E2 0E 00 E0 A8 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 B1 [17:22:27]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [17:22:27]wFMCommunicate OK [17:22:27]SAM_PROTO_GetShiftState done [17:22:27]FM_GetShiftState done [17:22:27]req_shift_opened done [17:22:27]requested_item shift.open_date is exist - process it [17:22:27]req_shift_open_date [17:22:27]req_shift_open_date done [17:22:27]produce_requested_data done [17:22:27]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29279,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [17:22:27]process_action_free close_receipt [17:22:27]json_value_free [17:22:27]json_value_free done [17:22:27]process_json_proto returns [17:22:27]Send response to host [17:22:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29279,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [17:22:27]free response buf [17:22:27]execute_script done [17:22:27]execute_script returns [17:22:27]free content buf [17:22:27]Sock 7.Close socket [17:22:27]Sock 7.Thread stoped [17:22:30]OFD Sender: No OFD packet to send [17:22:35]OFD Sender: No OFD packet to send [17:22:40]OFD Sender: No OFD packet to send [17:22:45]OFD Sender: No OFD packet to send [17:22:50]OFD Sender: No OFD packet to send [17:22:55]OFD Sender: No OFD packet to send [17:23:00]OFD Sender: No OFD packet to send [17:23:05]OFD Sender: No OFD packet to send [17:23:10]OFD Sender: No OFD packet to send [17:23:15]OFD Sender: No OFD packet to send [17:23:20]OFD Sender: No OFD packet to send [17:23:25]OFD Sender: No OFD packet to send [17:23:30]accept exits with 9 [17:23:30]New connection [17:23:30]New thread 3066785124 created [17:23:30]Thread 3066928484 joined [17:23:30]Waiting for new connection... [17:23:30] Sock 9.Parse request [17:23:30]Sock 9.Check first char [17:23:30]Sock 9.First char is OK [17:23:30]request: POST /json_proto HTTP/1.0 [17:23:30]Method: POST [17:23:30]URL: /json_proto [17:23:30]Method is POST - this is cgi request [17:23:30]url: /json_proto [17:23:30]query_string will be loaded in cgi processing [17:23:30]execute_cgi json_proto POST (null) [17:23:30]execute_cgi path=json_proto method=POST [17:23:30]POST find Content-Length [17:23:30]Host: 172.17.33.3:8080 [17:23:30]Content-Length: 675 [17:23:30]Content-Type: application/json [17:23:30] [17:23:30]POST finish read [17:23:30]Found Content-Length = 675 [17:23:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347668", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.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:23:30]execute_script... [17:23: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)347668", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.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:23:30]POST & json_proto [17:23:30]process_json_proto [17:23:30]json parsed OK: [17:23:30]protocol is kg_v1.0 [17:23:30]action value=close_receipt [17:23:30]process_action close_receipt [17:23:30]cmd_close_receipt [17:23:30]MH_GetDate [17:23:30]Write to MH i2c: F0 00 00 E1 A8 78 [17:23:30]Write i2c OK [17:23:30]MH_I2C_Read... [17:23:30]Read from MH i2c: F0 [17:23:30]MH_I2C_Read... [17:23:30]Read from MH i2c: F0 09 00 [17:23:30]MH_I2C_Read... [17:23:30]Read from MH i2c: F0 09 00 E1 A8 00 1D 11 1C 66 23 5B 8F 65 A3 [17:23:30]GetLastDocTimeStamp 1713115354 [17:23:30]current date 1713115421 [17:23:30]FM_GetShiftState [17:23:30]SAM_PROTO_GetShiftState [17:23:30]wFMCommunicate request_size=4 [17:23:30]MH_SAM_APDU [17:23:30]CAPDU: 80 13 01 00 [17:23:30]Write to MH i2c: E2 08 00 E2 A8 80 13 01 00 00 00 00 00 07 [17:23:30]Write i2c OK [17:23:30]MH_I2C_Read... [17:23:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:23:30]Read from MH i2c: E2 [17:23:30]MH_I2C_Read... [17:23:30]Read from MH i2c: E2 0E 00 [17:23:30]MH_I2C_Read... [17:23:30]Read from MH i2c: E2 0E 00 E2 A8 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 B3 [17:23:30]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [17:23:30]wFMCommunicate OK [17:23:30]SAM_PROTO_GetShiftState done [17:23:30]FM_GetShiftState done [17:23:30]opened in 1713053951 [17:23:30]opened+sec_in_day 1713140351 [17:23:30]quantity*price = 100039 [17:23:30]sum+1 = 100041 [17:23:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 190 14.04.2024 17:23 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29280 ФПД: 66515014165520 1/tax-web-control/client/api/v1/ticket?date=20240414T172341&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29280&fm=66515014165520&tin=02508201610067®Number=0000138879044617&sum=100000 [17:23:31]StoreToDocumentArchive [17:23:31]shift 116 fd 29280 [17:23:31]save to /storage/0116/doc_00029280 [17:23:31]save last doc name /storage/0116/doc_00029280 to /storage/kkm_last_doc_name [17:23:31]save OK [17:23:31]Clear old archive folders... [17:23:31]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:23:31]tlvbuf is 0126E910 [17:23:31]SAM_PROTO_ClearQueue [17:23:31]wFMCommunicate request_size=4 [17:23:31]MH_SAM_APDU [17:23:31]CAPDU: 80 09 00 00 [17:23:31]Write to MH i2c: E2 08 00 EF A8 80 09 00 00 00 00 00 00 09 [17:23:31]Write i2c OK [17:23:31]MH_I2C_Read... [17:23:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:23:32]Read from MH i2c: E2 [17:23:32]MH_I2C_Read... [17:23:32]Read from MH i2c: E2 03 00 [17:23:32]MH_I2C_Read... [17:23:32]Read from MH i2c: E2 03 00 EF A8 00 90 00 0B [17:23:32]RAPDU: 90 00 [17:23:32]wFMCommunicate OK [17:23:32]SAM_PROTO_ClearQueue done [17:23:32]KKMCreateOFDPacket [17:23:32]OFDProtocolAddRootSTLVToBuf [17:23:32]FM_MakeSignedData [17:23:32]FM_MakeSignedData [17:23:32]SAM_PROTO_SignData [17:23:32]wFMCommunicate request_size=4 [17:23:32]MH_SAM_APDU [17:23:32]CAPDU: 80 0D 01 02 [17:23:32]Write to MH i2c: E2 08 00 F0 A8 80 0D 01 02 00 00 00 00 11 [17:23:32]Write i2c OK [17:23:32]MH_I2C_Read... [17:23:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:23:32]Read from MH i2c: E2 [17:23:32]MH_I2C_Read... [17:23:32]Read from MH i2c: E2 03 00 [17:23:32]MH_I2C_Read... [17:23:32]Read from MH i2c: E2 03 00 F0 A8 00 90 00 0C [17:23:32]RAPDU: 90 00 [17:23:32]wFMCommunicate OK [17:23:32]wFMCommunicate request_size=255 [17:23:32]MH_SAM_APDU [17:23:32]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 BE 00 00 00 F4 03 04 00 1D 11 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 60 72 00 00 35 04 06 00 [17:23:32]Write to MH i2c: E2 02 01 F1 A8 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 BE 00 00 00 F4 03 04 00 1D 11 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 60 72 00 00 35 04 06 00 00 00 02 [17:23:32]Write i2c OK [17:23:32]MH_I2C_Read... [17:23:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:23:32]Read from MH i2c: E2 [17:23:32]MH_I2C_Read... [17:23:32]Read from MH i2c: E2 03 00 [17:23:32]MH_I2C_Read... [17:23:32]Read from MH i2c: E2 03 00 F1 A8 00 90 00 0D [17:23:32]RAPDU: 90 00 [17:23:32]wFMCommunicate OK [17:23:32]wFMCommunicate request_size=11 [17:23:32]MH_SAM_APDU [17:23:32]CAPDU: 80 0D 02 02 06 3C 7E BB CA A4 10 [17:23:32]Write to MH i2c: E2 0E 00 F2 A8 80 0D 02 02 06 00 3C 7E BB CA A4 10 00 00 13 [17:23:32]Write i2c OK [17:23:32]MH_I2C_Read... [17:23:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:23:32]Read from MH i2c: E2 [17:23:32]MH_I2C_Read... [17:23:32]Read from MH i2c: E2 03 00 [17:23:32]MH_I2C_Read... [17:23:32]Read from MH i2c: E2 03 00 F2 A8 00 90 00 0E [17:23:32]RAPDU: 90 00 [17:23:32]wFMCommunicate OK [17:23:32]wFMCommunicate request_size=4 [17:23:32]MH_SAM_APDU [17:23:32]CAPDU: 80 0D 03 02 [17:23:32]Write to MH i2c: E2 08 00 F3 A8 80 0D 03 02 00 00 00 00 16 [17:23:32]Write i2c OK [17:23:32]MH_I2C_Read... [17:23:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:23:32]Read from MH i2c: E2 [17:23:32]MH_I2C_Read... [17:23:32]Read from MH i2c: E2 0B 00 [17:23:32]MH_I2C_Read... [17:23:32]Read from MH i2c: E2 0B 00 F3 A8 00 39 A5 FA E4 DC 2C CE 3A 90 00 E3 [17:23:32]RAPDU: 39 A5 FA E4 DC 2C CE 3A 90 00 [17:23:32]wFMCommunicate OK [17:23:32]SAM_PROTO_SignData done [17:23:32]FM_MakeSignedData done [17:23:32]CreateOFDProtocolMessage [17:23:32]wFMCommunicate request_size=4 [17:23:32]MH_SAM_APDU [17:23:32]CAPDU: 80 11 00 00 [17:23:32]Write to MH i2c: E2 08 00 F4 A8 80 11 00 00 00 00 00 00 16 [17:23:32]Write i2c OK [17:23:32]MH_I2C_Read... [17:23:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:23:32]Read from MH i2c: E2 [17:23:32]MH_I2C_Read... [17:23:32]Read from MH i2c: E2 17 00 [17:23:32]MH_I2C_Read... [17:23:32]Read from MH i2c: E2 17 00 F4 A8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 65 [17:23:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:23:32]wFMCommunicate OK [17:23:32]CreateOFDProtocolMessage done [17:23:32]OFDSenderStorePacket 29280 [17:23:32]StoreOFDPacket docnum=29280 [17:23:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 41 6B 08 01 E2 8E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 BE 00 00 00 F4 03 04 00 1D 11 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 60 72 00 00 35 04 06 00 3C 7E BB CA A4 10 39 A5 FA E4 DC 2C CE 3A [17:23:32]CheckFolder [17:23:32]dirname=/storage/ofd_packets [17:23:32]CheckFolder done [17:23:32]ProducePacketName [17:23:32]name=ofd_packets/00029280 [17:23:32]NVStorageSaveData ofd_packets/00029280 [17:23:32]File name is /storage/ofd_packets/00029280 [17:23:32]Write 302 bytes [17:23:32]NVStorageSaveData done [17:23:32]OFDSenderStorePacket done [17:23:32]KKMCreateOFDPacket done [17:23:32]NVStorageSaveData kkm_last_timestamp [17:23:32]File name is /storage/kkm_last_timestamp [17:23:32]Write 4 bytes [17:23:32]NVStorageSaveData done [17:23:32]ExternCall_PrintAddStr [17:23:32]wPrintStart [17:23:32]Write to MH i2c: 01 00 00 F5 A8 9D [17:23:32]Write i2c OK [17:23:32]MH_I2C_Read... [17:23:32]Read from MH i2c: 01 [17:23:32]MH_I2C_Read... [17:23:32]Read from MH i2c: 01 07 00 [17:23:32]MH_I2C_Read... [17:23:32]Read from MH i2c: 01 07 00 F5 A8 00 00 00 00 00 FF 0F B2 [17:23:32]RasterBufferAndPrint [17:23:32]line Счет N : (1)347668 [17:23:32]line ИНН: 02508201610067 [17:23:32]line Контрольно-Кассовый Чек [17:23:32]line ПРОДАЖА [17:23:32]line ТРК (МРК, ГНК) : 22 [17:23:32]line Товар: 2710124130 [17:23:32]line SUPER-92-К-5 [17:23:32]line 15.320 * 65.30 [17:23:32]line = 1000.40 [17:23:32]line НДС 12% НСП 1% [17:23:32]line > о реализуемом товаре [17:23:32]line ОКРУГЛЕНИЕ: -0.40 [17:23:32]line ИТОГО: 1000.00 [17:23:32]line Внесено: 1000.00 [17:23:32]line СДАЧА: 0.00 [17:23:32]line НСП 1% : 8.85 [17:23:32]line НДС 12% : 106.24 [17:23:32]line Наличными: 1000.00 [17:23:32]line Безнал.: 0.00 [17:23:32]line Место: АЗС № 108 "Партнер Нефть" [17:23:32]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [17:23:32]line СНО: Общий режим [17:23:32]line Чек 190 14.04.2024 17:23 [17:23:32]line Смена: 116 ФФД: 1.0 [17:23:32]line ЗНМ: 0300000027 [17:23:32]line РНМ: 0000138879044617 [17:23:32]line Версия ККМ: 001 [17:23:32]line ФМ: 0000000000963154 [17:23:32]line ФД: 29280 [17:23:32]line ФПД: 66515014165520 [17:23:32]line 1/tax-web-control/client/api/v1/ticket?date=20240414T172341&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29280&fm=66515014165520&tin=02508201610067®Number=0000138879044617&sum=100000 [17:23:32]OFD Sender: Processing packet 29280 [packets to send 8, broken 7] [17:23:32]ProducePacketName [17:23:32]name=ofd_packets/00029280 [17:23:32]OFD Sender: To server: pG, [17:23:32]CommunicateWithHost lk.salyk.kg:30040 [17:23:32]ConnectInit lk.salyk.kg [17:23:32]written 0, free lines is 4095 [17:23:32]Connected sock=10 [17:23:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 41 6B 08 01 E2 8E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 BE 00 00 00 F4 03 04 00 1D 11 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 60 72 00 00 35 04 06 00 3C 7E BB CA A4 10 39 A5 FA E4 DC 2C CE 3A [17:23:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 1B 5C 47 00 B8 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 60 72 00 00 F4 03 04 00 C1 BB 1B 66 B6 04 01 00 00 80 61 93 F6 28 9B 2D 5C [17:23:33]CommunicateWithHost err = 0 [17:23:33]CheckOFDResponse [17:23:33]1017 (14) - 77093643461234 [17:23:33]1041 (16) - 0000000000963154 [17:23:33]1040 (4) - 29280 [17:23:33]1012 (4) - 14.04.2024 11:19 [17:23:33]1206 (1) - 0 [17:23:33]OFD Sender: Remove packet 29280 [17:23:33]ProducePacketName [17:23:33]name=ofd_packets/00029280 [17:23:33]NVStorageDeleteData [17:23:33]Write to MH i2c: 01 00 00 1F A9 C8 [17:23:33]Write i2c OK [17:23:33]MH_I2C_Read... [17:23:33]Read from MH i2c: 01 [17:23:33]MH_I2C_Read... [17:23:33]Read from MH i2c: 01 07 00 [17:23:33]MH_I2C_Read... [17:23:33]Read from MH i2c: 01 07 00 1F A9 00 00 00 00 00 C3 0C 9E [17:23:33]RasterBufferAndPrint [17:23:33]line [17:23:33]line [17:23:33]line [17:23:33]line [17:23:33]line [17:23:33]written 0, free lines is 3271 [17:23:33]MH_Cut [17:23:33]Write to MH i2c: D1 01 00 26 A9 01 A1 [17:23:33]Write i2c OK [17:23:33]MH_I2C_Read... [17:23:33]Read from MH i2c: D1 [17:23:33]MH_I2C_Read... [17:23:33]Read from MH i2c: D1 01 00 [17:23:33]MH_I2C_Read... [17:23:33]Read from MH i2c: D1 01 00 26 A9 00 A0 [17:23:33]Write to MH i2c: 01 00 00 27 A9 D0 [17:23:33]Write i2c OK [17:23:33]MH_I2C_Read... [17:23:33]OFD Sender: No OFD packet to send [17:23:34]*** Cut start [17:23:34]*** Partial cut [17:23:34]*** CUTSNS_PIN = 1 [17:23:34]*** CUTSNS_PIN = 0 [17:23:34]*** Brake cut motor [17:23:34]Read from MH i2c: 01 [17:23:34]MH_I2C_Read... [17:23:34]*** Stop cut motor [17:23:34]*** Cut end [17:23:34]Read from MH i2c: 01 07 00 [17:23:34]MH_I2C_Read... [17:23:34]Read from MH i2c: 01 07 00 27 A9 00 00 00 00 00 FF 0F E5 [17:23:34]process_action close_receipt done [17:23:34]requested_data is exist [17:23:34]produce_requested_data [17:23:34]requested_item fm.sn is exist - process it [17:23:34]wFMCommunicate request_size=4 [17:23:34]MH_SAM_APDU [17:23:34]CAPDU: 80 11 00 00 [17:23:34]Write to MH i2c: E2 08 00 28 A9 80 11 00 00 00 00 00 00 4B [17:23:34]Write i2c OK [17:23:34]MH_I2C_Read... [17:23:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:23:34]Read from MH i2c: E2 [17:23:34]MH_I2C_Read... [17:23:34]Read from MH i2c: E2 17 00 [17:23:34]MH_I2C_Read... [17:23:34]Read from MH i2c: E2 17 00 28 A9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 9A [17:23:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:23:34]wFMCommunicate OK [17:23:34]requested_item fd.num is exist - process it [17:23:34]SAM_PROTO_GetFieldsCounters [17:23:34]wFMCommunicate request_size=4 [17:23:34]MH_SAM_APDU [17:23:34]CAPDU: 80 13 00 00 [17:23:34]Write to MH i2c: E2 08 00 29 A9 80 13 00 00 00 00 00 00 4E [17:23:34]Write i2c OK [17:23:34]MH_I2C_Read... [17:23:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:23:34]Read from MH i2c: E2 [17:23:34]MH_I2C_Read... [17:23:34]Read from MH i2c: E2 62 00 [17:23:34]MH_I2C_Read... [17:23:34]Read from MH i2c: E2 62 00 29 A9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 60 72 00 00 0E 04 04 00 74 00 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 0C [17:23:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 60 72 00 00 0E 04 04 00 74 00 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 [17:23:34]wFMCommunicate OK [17:23:34]SAM_PROTO_GetFieldsCounters done [17:23:34]requested_item shift.num is exist - process it [17:23:34]requested_item shift.opened is exist - process it [17:23:34]req_shift_opened [17:23:34]FM_GetShiftState [17:23:34]SAM_PROTO_GetShiftState [17:23:34]wFMCommunicate request_size=4 [17:23:34]MH_SAM_APDU [17:23:34]CAPDU: 80 13 01 00 [17:23:34]Write to MH i2c: E2 08 00 2A A9 80 13 01 00 00 00 00 00 50 [17:23:34]Write i2c OK [17:23:34]MH_I2C_Read... [17:23:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:23:34]Read from MH i2c: E2 [17:23:34]MH_I2C_Read... [17:23:34]Read from MH i2c: E2 0E 00 [17:23:34]MH_I2C_Read... [17:23:34]Read from MH i2c: E2 0E 00 2A A9 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 FC [17:23:34]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [17:23:34]wFMCommunicate OK [17:23:34]SAM_PROTO_GetShiftState done [17:23:34]FM_GetShiftState done [17:23:34]req_shift_opened done [17:23:34]requested_item shift.open_date is exist - process it [17:23:34]req_shift_open_date [17:23:34]req_shift_open_date done [17:23:34]produce_requested_data done [17:23:34]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29280,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [17:23:34]process_action_free close_receipt [17:23:34]json_value_free [17:23:34]json_value_free done [17:23:34]process_json_proto returns [17:23:34]Send response to host [17:23:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29280,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [17:23:34]free response buf [17:23:34]execute_script done [17:23:34]execute_script returns [17:23:34]free content buf [17:23:34]Sock 9.Close socket [17:23:34]Sock 9.Thread stoped [17:23:38]OFD Sender: No OFD packet to send [17:23:43]OFD Sender: No OFD packet to send [17:23:48]OFD Sender: No OFD packet to send [17:23:53]OFD Sender: No OFD packet to send [17:23:58]OFD Sender: No OFD packet to send [17:24:03]OFD Sender: No OFD packet to send [17:24:08]OFD Sender: No OFD packet to send [17:24:13]OFD Sender: No OFD packet to send [17:24:18]OFD Sender: No OFD packet to send [17:24:23]OFD Sender: No OFD packet to send [17:24:28]OFD Sender: No OFD packet to send [17:24:33]OFD Sender: No OFD packet to send [17:24:38]OFD Sender: No OFD packet to send [17:24:43]OFD Sender: No OFD packet to send [17:24:48]OFD Sender: No OFD packet to send [17:24:53]OFD Sender: No OFD packet to send [17:24:58]OFD Sender: No OFD packet to send [17:25:03]OFD Sender: No OFD packet to send [17:25:08]OFD Sender: No OFD packet to send [17:25:13]OFD Sender: No OFD packet to send [17:25:18]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]accept exits with 7 [17:25:33]New connection [17:25:33]New thread 3066928484 created [17:25:33]Thread 3066785124 joined [17:25:33]Waiting for new connection... [17:25:33] Sock 7.Parse request [17:25:33]Sock 7.Check first char [17:25:33]Sock 7.First char is OK [17:25:33]request: POST /json_proto HTTP/1.0 [17:25:33]Method: POST [17:25:33]URL: /json_proto [17:25:33]Method is POST - this is cgi request [17:25:33]url: /json_proto [17:25:33]query_string will be loaded in cgi processing [17:25:33]execute_cgi json_proto POST (null) [17:25:33]execute_cgi path=json_proto method=POST [17:25:33]POST find Content-Length [17:25:33]Host: 172.17.33.3:8080 [17:25:33]Content-Length: 674 [17:25:33]Content-Type: application/json [17:25:33] [17:25:33]POST finish read [17:25:33]Found Content-Length = 674 [17:25:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347669", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.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" ] } } [17:25:33]execute_script... [17:25: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)347669", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.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" ] } } [17:25:33]POST & json_proto [17:25:33]process_json_proto [17:25:33]json parsed OK: [17:25:33]protocol is kg_v1.0 [17:25:33]action value=close_receipt [17:25:33]process_action close_receipt [17:25:33]cmd_close_receipt [17:25:33]MH_GetDate [17:25:33]Write to MH i2c: F0 00 00 2B A9 C3 [17:25:33]Write i2c OK [17:25:33]MH_I2C_Read... [17:25:33]Read from MH i2c: F0 [17:25:33]MH_I2C_Read... [17:25:33]Read from MH i2c: F0 09 00 [17:25:33]MH_I2C_Read... [17:25:33]Read from MH i2c: F0 09 00 2B A9 00 98 11 1C 66 23 5B 8F 65 69 [17:25:33]GetLastDocTimeStamp 1713115421 [17:25:33]current date 1713115544 [17:25:33]FM_GetShiftState [17:25:33]SAM_PROTO_GetShiftState [17:25:33]wFMCommunicate request_size=4 [17:25:33]MH_SAM_APDU [17:25:33]CAPDU: 80 13 01 00 [17:25:33]Write to MH i2c: E2 08 00 2C A9 80 13 01 00 00 00 00 00 52 [17:25:33]Write i2c OK [17:25:33]MH_I2C_Read... [17:25:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:25:33]Read from MH i2c: E2 [17:25:33]MH_I2C_Read... [17:25:33]Read from MH i2c: E2 0E 00 [17:25:33]MH_I2C_Read... [17:25:33]Read from MH i2c: E2 0E 00 2C A9 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 FE [17:25:33]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [17:25:33]wFMCommunicate OK [17:25:33]SAM_PROTO_GetShiftState done [17:25:33]FM_GetShiftState done [17:25:33]opened in 1713053951 [17:25:33]opened+sec_in_day 1713140351 [17:25:33]quantity*price = 50028 [17:25:33]sum+1 = 50029 [17:25:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 191 14.04.2024 17:25 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29281 ФПД: 268978912820652 1/tax-web-control/client/api/v1/ticket?date=20240414T172544&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29281&fm=268978912820652&tin=02508201610067®Number=0000138879044617&sum=50000 [17:25:34]StoreToDocumentArchive [17:25:34]shift 116 fd 29281 [17:25:34]save to /storage/0116/doc_00029281 [17:25:34]save last doc name /storage/0116/doc_00029281 to /storage/kkm_last_doc_name [17:25:34]save OK [17:25:34]Clear old archive folders... [17:25:34]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:25:34]tlvbuf is 012089F0 [17:25:34]SAM_PROTO_ClearQueue [17:25:34]wFMCommunicate request_size=4 [17:25:34]MH_SAM_APDU [17:25:34]CAPDU: 80 09 00 00 [17:25:34]Write to MH i2c: E2 08 00 39 A9 80 09 00 00 00 00 00 00 54 [17:25:34]Write i2c OK [17:25:34]MH_I2C_Read... [17:25:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:25:34]Read from MH i2c: E2 [17:25:34]MH_I2C_Read... [17:25:34]Read from MH i2c: E2 03 00 [17:25:34]MH_I2C_Read... [17:25:34]Read from MH i2c: E2 03 00 39 A9 00 90 00 56 [17:25:34]RAPDU: 90 00 [17:25:34]wFMCommunicate OK [17:25:34]SAM_PROTO_ClearQueue done [17:25:34]KKMCreateOFDPacket [17:25:34]OFDProtocolAddRootSTLVToBuf [17:25:34]FM_MakeSignedData [17:25:34]FM_MakeSignedData [17:25:34]SAM_PROTO_SignData [17:25:34]wFMCommunicate request_size=4 [17:25:34]MH_SAM_APDU [17:25:34]CAPDU: 80 0D 01 02 [17:25:34]Write to MH i2c: E2 08 00 3A A9 80 0D 01 02 00 00 00 00 5C [17:25:34]Write i2c OK [17:25:34]MH_I2C_Read... [17:25:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:25:34]Read from MH i2c: E2 [17:25:34]MH_I2C_Read... [17:25:34]Read from MH i2c: E2 03 00 [17:25:34]MH_I2C_Read... [17:25:34]Read from MH i2c: E2 03 00 3A A9 00 90 00 57 [17:25:34]RAPDU: 90 00 [17:25:34]wFMCommunicate OK [17:25:34]wFMCommunicate request_size=255 [17:25:34]MH_SAM_APDU [17:25: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 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 BF 00 00 00 F4 03 04 00 98 11 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 61 72 00 00 35 04 06 00 F4 A2 88 8C [17:25:34]Write to MH i2c: E2 02 01 3B A9 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 BF 00 00 00 F4 03 04 00 98 11 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 61 72 00 00 35 04 06 00 F4 A2 88 8C 00 00 13 [17:25:34]Write i2c OK [17:25:34]MH_I2C_Read... [17:25:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:25:34]Read from MH i2c: E2 [17:25:34]MH_I2C_Read... [17:25:34]Read from MH i2c: E2 03 00 [17:25:34]MH_I2C_Read... [17:25:34]Read from MH i2c: E2 03 00 3B A9 00 90 00 58 [17:25:34]RAPDU: 90 00 [17:25:34]wFMCommunicate OK [17:25:34]wFMCommunicate request_size=7 [17:25:34]MH_SAM_APDU [17:25:34]CAPDU: 80 0D 02 02 02 FD AC [17:25:34]Write to MH i2c: E2 0A 00 3C A9 80 0D 02 02 02 00 FD AC 00 00 0C [17:25:34]Write i2c OK [17:25:34]MH_I2C_Read... [17:25:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:25:35]Read from MH i2c: E2 [17:25:35]MH_I2C_Read... [17:25:35]Read from MH i2c: E2 03 00 [17:25:35]MH_I2C_Read... [17:25:35]Read from MH i2c: E2 03 00 3C A9 00 90 00 59 [17:25:35]RAPDU: 90 00 [17:25:35]wFMCommunicate OK [17:25:35]wFMCommunicate request_size=4 [17:25:35]MH_SAM_APDU [17:25:35]CAPDU: 80 0D 03 02 [17:25:35]Write to MH i2c: E2 08 00 3D A9 80 0D 03 02 00 00 00 00 61 [17:25:35]Write i2c OK [17:25:35]MH_I2C_Read... [17:25:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:25:35]Read from MH i2c: E2 [17:25:35]MH_I2C_Read... [17:25:35]Read from MH i2c: E2 0B 00 [17:25:35]MH_I2C_Read... [17:25:35]Read from MH i2c: E2 0B 00 3D A9 00 44 06 A4 37 7B EE 4A 7E 90 00 B8 [17:25:35]RAPDU: 44 06 A4 37 7B EE 4A 7E 90 00 [17:25:35]wFMCommunicate OK [17:25:35]SAM_PROTO_SignData done [17:25:35]FM_MakeSignedData done [17:25:35]CreateOFDProtocolMessage [17:25:35]wFMCommunicate request_size=4 [17:25:35]MH_SAM_APDU [17:25:35]CAPDU: 80 11 00 00 [17:25:35]Write to MH i2c: E2 08 00 3E A9 80 11 00 00 00 00 00 00 61 [17:25:35]Write i2c OK [17:25:35]MH_I2C_Read... [17:25:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:25:35]Read from MH i2c: E2 [17:25:35]MH_I2C_Read... [17:25:35]Read from MH i2c: E2 17 00 [17:25:35]MH_I2C_Read... [17:25:35]Read from MH i2c: E2 17 00 3E A9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B0 [17:25:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:25:35]wFMCommunicate OK [17:25:35]CreateOFDProtocolMessage done [17:25:35]OFDSenderStorePacket 29281 [17:25:35]StoreOFDPacket docnum=29281 [17:25:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 1F CB 04 01 4D 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 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 BF 00 00 00 F4 03 04 00 98 11 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 61 72 00 00 35 04 06 00 F4 A2 88 8C FD AC 44 06 A4 37 7B EE 4A 7E [17:25:35]CheckFolder [17:25:35]dirname=/storage/ofd_packets [17:25:35]CheckFolder done [17:25:35]ProducePacketName [17:25:35]name=ofd_packets/00029281 [17:25:35]NVStorageSaveData ofd_packets/00029281 [17:25:35]File name is /storage/ofd_packets/00029281 [17:25:35]Write 298 bytes [17:25:35]NVStorageSaveData done [17:25:35]OFDSenderStorePacket done [17:25:35]KKMCreateOFDPacket done [17:25:35]NVStorageSaveData kkm_last_timestamp [17:25:35]File name is /storage/kkm_last_timestamp [17:25:35]Write 4 bytes [17:25:35]NVStorageSaveData done [17:25:35]ExternCall_PrintAddStr [17:25:35]wPrintStart [17:25:35]Write to MH i2c: 01 00 00 3F A9 E8 [17:25:35]Write i2c OK [17:25:35]MH_I2C_Read... [17:25:35]Read from MH i2c: 01 [17:25:35]MH_I2C_Read... [17:25:35]Read from MH i2c: 01 07 00 [17:25:35]MH_I2C_Read... [17:25:35]Read from MH i2c: 01 07 00 3F A9 00 00 00 00 00 FF 0F FD [17:25:35]RasterBufferAndPrint [17:25:35]line Счет N : (1)347669 [17:25:35]line ИНН: 02508201610067 [17:25:35]line Контрольно-Кассовый Чек [17:25:35]line ПРОДАЖА [17:25:35]line ТРК (МРК, ГНК) : 11 [17:25:35]line Товар: 2710194210 [17:25:35]line ДТ-К-5 [17:25:35]line 6.910 * 72.40 [17:25:35]line = 500.28 [17:25:35]line НДС 12% НСП 1% [17:25:35]line > о реализуемом товаре [17:25:35]line ОКРУГЛЕНИЕ: -0.28 [17:25:35]line ИТОГО: 500.00 [17:25:35]line Внесено: 500.00 [17:25:35]line СДАЧА: 0.00 [17:25:35]line НСП 1% : 4.43 [17:25:35]line НДС 12% : 53.13 [17:25:35]line Наличными: 500.00 [17:25:35]line Безнал.: 0.00 [17:25:35]line Место: АЗС № 108 "Партнер Нефть" [17:25:35]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [17:25:35]line СНО: Общий режим [17:25:35]line Чек 191 14.04.2024 17:25 [17:25:35]line Смена: 116 ФФД: 1.0 [17:25:35]line ЗНМ: 0300000027 [17:25:35]line РНМ: 0000138879044617 [17:25:35]line Версия ККМ: 001 [17:25:35]line ФМ: 0000000000963154 [17:25:35]line ФД: 29281 [17:25:35]line ФПД: 268978912820652 [17:25:35]line 1/tax-web-control/client/api/v1/ticket?date=20240414T172544&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29281&fm=268978912820652&tin=02508201610067®Number=0000138879044617&sum=50000 [17:25:35]OFD Sender: Processing packet 29281 [packets to send 8, broken 7] [17:25:35]ProducePacketName [17:25:35]name=ofd_packets/00029281 [17:25:35]OFD Sender: To server: pG, [17:25:35]CommunicateWithHost lk.salyk.kg:30040 [17:25:35]ConnectInit lk.salyk.kg [17:25:35]written 0, free lines is 4095 [17:25:35]Connected sock=10 [17:25:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 1F CB 04 01 4D 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 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 BF 00 00 00 F4 03 04 00 98 11 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 61 72 00 00 35 04 06 00 F4 A2 88 8C FD AC 44 06 A4 37 7B EE 4A 7E [17:25:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 21 E4 47 00 61 A5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 61 72 00 00 F4 03 04 00 3C BC 1B 66 B6 04 01 00 00 27 AE C5 F7 05 3B 82 A9 [17:25:35]CommunicateWithHost err = 0 [17:25:35]CheckOFDResponse [17:25:35]1017 (14) - 77093643461234 [17:25:35]1041 (16) - 0000000000963154 [17:25:35]1040 (4) - 29281 [17:25:35]1012 (4) - 14.04.2024 11:21 [17:25:35]1206 (1) - 0 [17:25:35]OFD Sender: Remove packet 29281 [17:25:35]ProducePacketName [17:25:35]name=ofd_packets/00029281 [17:25:35]NVStorageDeleteData [17:25:35]Write to MH i2c: 01 00 00 69 A9 12 [17:25:35]Write i2c OK [17:25:35]MH_I2C_Read... [17:25:35]Read from MH i2c: 01 [17:25:35]MH_I2C_Read... [17:25:35]Read from MH i2c: 01 07 00 [17:25:35]MH_I2C_Read... [17:25:35]Read from MH i2c: 01 07 00 69 A9 00 00 00 00 00 C0 0C E5 [17:25:35]RasterBufferAndPrint [17:25:35]line [17:25:35]line [17:25:35]line [17:25:35]line [17:25:35]line [17:25:35]written 0, free lines is 3268 [17:25:35]MH_Cut [17:25:35]Write to MH i2c: D1 01 00 70 A9 01 EB [17:25:35]Write i2c OK [17:25:35]MH_I2C_Read... [17:25:35]Read from MH i2c: D1 [17:25:35]MH_I2C_Read... [17:25:35]Read from MH i2c: D1 01 00 [17:25:35]MH_I2C_Read... [17:25:35]Read from MH i2c: D1 01 00 70 A9 00 EA [17:25:35]Write to MH i2c: 01 00 00 71 A9 1A [17:25:35]Write i2c OK [17:25:35]MH_I2C_Read... [17:25:36]OFD Sender: No OFD packet to send [17:25:36]*** Cut start [17:25:36]*** Partial cut [17:25:36]*** CUTSNS_PIN = 1 [17:25:36]*** CUTSNS_PIN = 0 [17:25:36]*** Brake cut motor [17:25:37]Read from MH i2c: 01 [17:25:37]MH_I2C_Read... [17:25:37]*** Stop cut motor [17:25:37]*** Cut end [17:25:37]Read from MH i2c: 01 07 00 [17:25:37]MH_I2C_Read... [17:25:37]Read from MH i2c: 01 07 00 71 A9 00 00 00 00 00 FF 0F 2F [17:25:37]process_action close_receipt done [17:25:37]requested_data is exist [17:25:37]produce_requested_data [17:25:37]requested_item fm.sn is exist - process it [17:25:37]wFMCommunicate request_size=4 [17:25:37]MH_SAM_APDU [17:25:37]CAPDU: 80 11 00 00 [17:25:37]Write to MH i2c: E2 08 00 72 A9 80 11 00 00 00 00 00 00 95 [17:25:37]Write i2c OK [17:25:37]MH_I2C_Read... [17:25:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:25:37]Read from MH i2c: E2 [17:25:37]MH_I2C_Read... [17:25:37]Read from MH i2c: E2 17 00 [17:25:37]MH_I2C_Read... [17:25:37]Read from MH i2c: E2 17 00 72 A9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E4 [17:25:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:25:37]wFMCommunicate OK [17:25:37]requested_item fd.num is exist - process it [17:25:37]SAM_PROTO_GetFieldsCounters [17:25:37]wFMCommunicate request_size=4 [17:25:37]MH_SAM_APDU [17:25:37]CAPDU: 80 13 00 00 [17:25:37]Write to MH i2c: E2 08 00 73 A9 80 13 00 00 00 00 00 00 98 [17:25:37]Write i2c OK [17:25:37]MH_I2C_Read... [17:25:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:25:37]Read from MH i2c: E2 [17:25:37]MH_I2C_Read... [17:25:37]Read from MH i2c: E2 62 00 [17:25:37]MH_I2C_Read... [17:25:37]Read from MH i2c: E2 62 00 73 A9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 61 72 00 00 0E 04 04 00 74 00 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 5A [17:25:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 61 72 00 00 0E 04 04 00 74 00 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 [17:25:37]wFMCommunicate OK [17:25:37]SAM_PROTO_GetFieldsCounters done [17:25:37]requested_item shift.num is exist - process it [17:25:37]requested_item shift.opened is exist - process it [17:25:37]req_shift_opened [17:25:37]FM_GetShiftState [17:25:37]SAM_PROTO_GetShiftState [17:25:37]wFMCommunicate request_size=4 [17:25:37]MH_SAM_APDU [17:25:37]CAPDU: 80 13 01 00 [17:25:37]Write to MH i2c: E2 08 00 74 A9 80 13 01 00 00 00 00 00 9A [17:25:37]Write i2c OK [17:25:37]MH_I2C_Read... [17:25:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:25:37]Read from MH i2c: E2 [17:25:37]MH_I2C_Read... [17:25:37]Read from MH i2c: E2 0E 00 [17:25:37]MH_I2C_Read... [17:25:37]Read from MH i2c: E2 0E 00 74 A9 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 46 [17:25:37]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [17:25:37]wFMCommunicate OK [17:25:37]SAM_PROTO_GetShiftState done [17:25:37]FM_GetShiftState done [17:25:37]req_shift_opened done [17:25:37]requested_item shift.open_date is exist - process it [17:25:37]req_shift_open_date [17:25:37]req_shift_open_date done [17:25:37]produce_requested_data done [17:25:37]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29281,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [17:25:37]process_action_free close_receipt [17:25:37]json_value_free [17:25:37]json_value_free done [17:25:37]process_json_proto returns [17:25:37]Send response to host [17:25:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29281,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [17:25:37]free response buf [17:25:37]execute_script done [17:25:37]execute_script returns [17:25:37]free content buf [17:25:37]Sock 7.Close socket [17:25:37]Sock 7.Thread stoped [17:25:41]OFD Sender: No OFD packet to send [17:25:46]OFD Sender: No OFD packet to send [17:25:51]OFD Sender: No OFD packet to send [17:25:56]OFD Sender: No OFD packet to send [17:26:01]OFD Sender: No OFD packet to send [17:26:06]OFD Sender: No OFD packet to send [17:26:11]OFD Sender: No OFD packet to send [17:26:16]OFD Sender: No OFD packet to send [17:26:21]OFD Sender: No OFD packet to send [17:26:24]accept exits with 9 [17:26:24]New connection [17:26:24]New thread 3066785124 created [17:26:24]Thread 3066928484 joined [17:26:24]Waiting for new connection... [17:26:24] Sock 9.Parse request [17:26:24]Sock 9.Check first char [17:26:24]Sock 9.First char is OK [17:26:24]request: POST /json_proto HTTP/1.0 [17:26:24]Method: POST [17:26:24]URL: /json_proto [17:26:24]Method is POST - this is cgi request [17:26:24]url: /json_proto [17:26:24]query_string will be loaded in cgi processing [17:26:24]execute_cgi json_proto POST (null) [17:26:24]execute_cgi path=json_proto method=POST [17:26:24]POST find Content-Length [17:26:24]Host: 172.17.33.3:8080 [17:26:24]Content-Length: 679 [17:26:24]Content-Type: application/json [17:26:24] [17:26:24]POST finish read [17:26:24]Found Content-Length = 679 [17:26:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347670", "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:26:24]execute_script... [17: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)347670", "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:26:24]POST & json_proto [17:26:24]process_json_proto [17:26:24]json parsed OK: [17:26:24]protocol is kg_v1.0 [17:26:24]action value=close_receipt [17:26:24]process_action close_receipt [17:26:24]cmd_close_receipt [17:26:24]MH_GetDate [17:26:24]Write to MH i2c: F0 00 00 75 A9 0D [17:26:24]Write i2c OK [17:26:24]MH_I2C_Read... [17:26:24]Read from MH i2c: F0 [17:26:24]MH_I2C_Read... [17:26:24]Read from MH i2c: F0 09 00 [17:26:24]MH_I2C_Read... [17:26:24]Read from MH i2c: F0 09 00 75 A9 00 CB 11 1C 66 23 5B 8F 65 E6 [17:26:24]GetLastDocTimeStamp 1713115544 [17:26:24]current date 1713115595 [17:26:24]FM_GetShiftState [17:26:24]SAM_PROTO_GetShiftState [17:26:24]wFMCommunicate request_size=4 [17:26:24]MH_SAM_APDU [17:26:24]CAPDU: 80 13 01 00 [17:26:24]Write to MH i2c: E2 08 00 76 A9 80 13 01 00 00 00 00 00 9C [17:26:24]Write i2c OK [17:26:24]MH_I2C_Read... [17:26:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:24]Read from MH i2c: E2 [17:26:24]MH_I2C_Read... [17:26:24]Read from MH i2c: E2 0E 00 [17:26:24]MH_I2C_Read... [17:26:24]Read from MH i2c: E2 0E 00 76 A9 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 48 [17:26:24]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [17:26:24]wFMCommunicate OK [17:26:24]SAM_PROTO_GetShiftState done [17:26:24]FM_GetShiftState done [17:26:24]opened in 1713053951 [17:26:24]opened+sec_in_day 1713140351 [17:26:24]quantity*price = 100056 [17:26:24]sum+1 = 100058 [17:26:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 192 14.04.2024 17:26 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29282 ФПД: 86289727728489 1/tax-web-control/client/api/v1/ticket?date=20240414T172636&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29282&fm=86289727728489&tin=02508201610067®Number=0000138879044617&sum=100000 [17:26:26]StoreToDocumentArchive [17:26:26]shift 116 fd 29282 [17:26:26]save to /storage/0116/doc_00029282 [17:26:26]save last doc name /storage/0116/doc_00029282 to /storage/kkm_last_doc_name [17:26:26]save OK [17:26:26]Clear old archive folders... [17:26:26]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:26:26]tlvbuf is 011CB540 [17:26:26]SAM_PROTO_ClearQueue [17:26:26]wFMCommunicate request_size=4 [17:26:26]MH_SAM_APDU [17:26:26]CAPDU: 80 09 00 00 [17:26:26]Write to MH i2c: E2 08 00 83 A9 80 09 00 00 00 00 00 00 9E [17:26:26]Write i2c OK [17:26:26]MH_I2C_Read... [17:26:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:26:26]Read from MH i2c: E2 [17:26:26]MH_I2C_Read... [17:26:26]Read from MH i2c: E2 03 00 [17:26:26]MH_I2C_Read... [17:26:26]Read from MH i2c: E2 03 00 83 A9 00 90 00 A0 [17:26:26]RAPDU: 90 00 [17:26:26]wFMCommunicate OK [17:26:26]SAM_PROTO_ClearQueue done [17:26:26]KKMCreateOFDPacket [17:26:26]OFDProtocolAddRootSTLVToBuf [17:26:26]FM_MakeSignedData [17:26:26]FM_MakeSignedData [17:26:26]SAM_PROTO_SignData [17:26:26]wFMCommunicate request_size=4 [17:26:26]MH_SAM_APDU [17:26:26]CAPDU: 80 0D 01 02 [17:26:26]Write to MH i2c: E2 08 00 84 A9 80 0D 01 02 00 00 00 00 A6 [17:26:26]Write i2c OK [17:26:26]MH_I2C_Read... [17:26:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:26:26]Read from MH i2c: E2 [17:26:26]MH_I2C_Read... [17:26:26]Read from MH i2c: E2 03 00 [17:26:26]MH_I2C_Read... [17:26:26]Read from MH i2c: E2 03 00 84 A9 00 90 00 A1 [17:26:26]RAPDU: 90 00 [17:26:26]wFMCommunicate OK [17:26:26]wFMCommunicate request_size=255 [17:26:26]MH_SAM_APDU [17:26: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 C0 00 00 00 F4 03 04 00 CC 11 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 62 72 00 00 35 04 06 00 4E 7A E4 91 [17:26:26]Write to MH i2c: E2 02 01 85 A9 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 CC 11 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 62 72 00 00 35 04 06 00 4E 7A E4 91 00 00 29 [17:26:26]Write i2c OK [17:26:26]MH_I2C_Read... [17:26:26]OFD Sender: No OFD packet to send [17:26:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:26]Read from MH i2c: E2 [17:26:26]MH_I2C_Read... [17:26:26]Read from MH i2c: E2 03 00 [17:26:26]MH_I2C_Read... [17:26:26]Read from MH i2c: E2 03 00 85 A9 00 90 00 A2 [17:26:26]RAPDU: 90 00 [17:26:26]wFMCommunicate OK [17:26:26]wFMCommunicate request_size=7 [17:26:26]MH_SAM_APDU [17:26:26]CAPDU: 80 0D 02 02 02 AB 69 [17:26:26]Write to MH i2c: E2 0A 00 86 A9 80 0D 02 02 02 00 AB 69 00 00 C1 [17:26:26]Write i2c OK [17:26:26]MH_I2C_Read... [17:26:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:26]Read from MH i2c: E2 [17:26:26]MH_I2C_Read... [17:26:26]Read from MH i2c: E2 03 00 [17:26:26]MH_I2C_Read... [17:26:26]Read from MH i2c: E2 03 00 86 A9 00 90 00 A3 [17:26:26]RAPDU: 90 00 [17:26:26]wFMCommunicate OK [17:26:26]wFMCommunicate request_size=4 [17:26:26]MH_SAM_APDU [17:26:26]CAPDU: 80 0D 03 02 [17:26:26]Write to MH i2c: E2 08 00 87 A9 80 0D 03 02 00 00 00 00 AB [17:26:26]Write i2c OK [17:26:26]MH_I2C_Read... [17:26:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:26:26]Read from MH i2c: E2 [17:26:26]MH_I2C_Read... [17:26:26]Read from MH i2c: E2 0B 00 [17:26:26]MH_I2C_Read... [17:26:26]Read from MH i2c: E2 0B 00 87 A9 00 02 C4 73 3C 66 A1 F9 38 90 00 59 [17:26:26]RAPDU: 02 C4 73 3C 66 A1 F9 38 90 00 [17:26:26]wFMCommunicate OK [17:26:26]SAM_PROTO_SignData done [17:26:26]FM_MakeSignedData done [17:26:26]CreateOFDProtocolMessage [17:26:26]wFMCommunicate request_size=4 [17:26:26]MH_SAM_APDU [17:26:26]CAPDU: 80 11 00 00 [17:26:26]Write to MH i2c: E2 08 00 88 A9 80 11 00 00 00 00 00 00 AB [17:26:26]Write i2c OK [17:26:26]MH_I2C_Read... [17:26:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:26]Read from MH i2c: E2 [17:26:26]MH_I2C_Read... [17:26:26]Read from MH i2c: E2 17 00 [17:26:26]MH_I2C_Read... [17:26:26]Read from MH i2c: E2 17 00 88 A9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 FA [17:26:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:26:26]wFMCommunicate OK [17:26:26]CreateOFDProtocolMessage done [17:26:26]OFDSenderStorePacket 29282 [17:26:26]StoreOFDPacket docnum=29282 [17:26:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 BA CE 04 01 CF 12 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 CC 11 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 62 72 00 00 35 04 06 00 4E 7A E4 91 AB 69 02 C4 73 3C 66 A1 F9 38 [17:26:26]CheckFolder [17:26:26]dirname=/storage/ofd_packets [17:26:26]CheckFolder done [17:26:26]ProducePacketName [17:26:26]name=ofd_packets/00029282 [17:26:26]NVStorageSaveData ofd_packets/00029282 [17:26:26]File name is /storage/ofd_packets/00029282 [17:26:26]Write 298 bytes [17:26:26]NVStorageSaveData done [17:26:26]OFDSenderStorePacket done [17:26:26]KKMCreateOFDPacket done [17:26:26]NVStorageSaveData kkm_last_timestamp [17:26:26]File name is /storage/kkm_last_timestamp [17:26:26]Write 4 bytes [17:26:26]NVStorageSaveData done [17:26:26]ExternCall_PrintAddStr [17:26:26]wPrintStart [17:26:26]Write to MH i2c: 01 00 00 89 A9 32 [17:26:26]Write i2c OK [17:26:26]MH_I2C_Read... [17:26:26]Read from MH i2c: 01 [17:26:26]MH_I2C_Read... [17:26:26]Read from MH i2c: 01 07 00 [17:26:26]MH_I2C_Read... [17:26:26]Read from MH i2c: 01 07 00 89 A9 00 00 00 00 00 FF 0F 47 [17:26:26]RasterBufferAndPrint [17:26:26]line Счет N : (1)347670 [17:26:26]line ИНН: 02508201610067 [17:26:26]line Контрольно-Кассовый Чек [17:26:26]line ПРОДАЖА [17:26:26]line ТРК (МРК, ГНК) : 51 [17:26:26]line Товар: 2710194210 [17:26:26]line ДТ-К-5 [17:26:26]line 13.820 * 72.40 [17:26:26]line = 1000.57 [17:26:26]line НДС 12% НСП 1% [17:26:26]line > о реализуемом товаре [17:26:26]line ОКРУГЛЕНИЕ: -0.57 [17:26:26]line ИТОГО: 1000.00 [17:26:26]line Внесено: 1000.00 [17:26:26]line СДАЧА: 0.00 [17:26:26]line НСП 1% : 8.85 [17:26:26]line НДС 12% : 106.25 [17:26:26]line Наличными: 1000.00 [17:26:26]line Безнал.: 0.00 [17:26:26]line Место: АЗС № 108 "Партнер Нефть" [17:26:26]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [17:26:26]line СНО: Общий режим [17:26:26]line Чек 192 14.04.2024 17:26 [17:26:26]line Смена: 116 ФФД: 1.0 [17:26:26]line ЗНМ: 0300000027 [17:26:26]line РНМ: 0000138879044617 [17:26:26]line Версия ККМ: 001 [17:26:26]line ФМ: 0000000000963154 [17:26:26]line ФД: 29282 [17:26:26]line ФПД: 86289727728489 [17:26:26]line 1/tax-web-control/client/api/v1/ticket?date=20240414T172636&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29282&fm=86289727728489&tin=02508201610067®Number=0000138879044617&sum=100000 [17:26:26]OFD Sender: Processing packet 29282 [packets to send 8, broken 7] [17:26:26]ProducePacketName [17:26:26]name=ofd_packets/00029282 [17:26:26]OFD Sender: To server: pG, [17:26:26]CommunicateWithHost lk.salyk.kg:30040 [17:26:26]ConnectInit lk.salyk.kg [17:26:26]written 0, free lines is 4095 [17:26:26]Connected sock=7 [17:26:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 BA CE 04 01 CF 12 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 CC 11 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 62 72 00 00 35 04 06 00 4E 7A E4 91 AB 69 02 C4 73 3C 66 A1 F9 38 [17:26:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 86 10 47 00 59 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 39 36 33 31 35 34 10 04 04 00 62 72 00 00 F4 03 04 00 6F BC 1B 66 B6 04 01 00 00 23 8D FB 8E A8 11 7B AC [17:26:27]CommunicateWithHost err = 0 [17:26:27]CheckOFDResponse [17:26:27]1017 (14) - 77093643461234 [17:26:27]1041 (16) - 0000000000963154 [17:26:27]1040 (4) - 29282 [17:26:27]1012 (4) - 14.04.2024 11:22 [17:26:27]1206 (1) - 0 [17:26:27]OFD Sender: Remove packet 29282 [17:26:27]ProducePacketName [17:26:27]name=ofd_packets/00029282 [17:26:27]NVStorageDeleteData [17:26:27]Write to MH i2c: 01 00 00 B3 A9 5C [17:26:27]Write i2c OK [17:26:27]MH_I2C_Read... [17:26:27]Read from MH i2c: 01 [17:26:27]MH_I2C_Read... [17:26:27]Read from MH i2c: 01 07 00 [17:26:27]MH_I2C_Read... [17:26:27]Read from MH i2c: 01 07 00 B3 A9 00 00 00 00 00 D3 0C 42 [17:26:27]RasterBufferAndPrint [17:26:27]line [17:26:27]line [17:26:27]line [17:26:27]line [17:26:27]line [17:26:27]written 0, free lines is 3290 [17:26:27]MH_Cut [17:26:27]Write to MH i2c: D1 01 00 BA A9 01 35 [17:26:27]Write i2c OK [17:26:27]MH_I2C_Read... [17:26:27]Read from MH i2c: D1 [17:26:27]MH_I2C_Read... [17:26:27]Read from MH i2c: D1 01 00 [17:26:27]MH_I2C_Read... [17:26:27]Read from MH i2c: D1 01 00 BA A9 00 34 [17:26:27]Write to MH i2c: 01 00 00 BB A9 64 [17:26:27]Write i2c OK [17:26:27]MH_I2C_Read... [17:26:27]OFD Sender: No OFD packet to send [17:26:28]*** Cut start [17:26:28]*** Partial cut [17:26:28]*** CUTSNS_PIN = 1 [17:26:28]*** CUTSNS_PIN = 0 [17:26:28]*** Brake cut motor [17:26:28]Read from MH i2c: 01 [17:26:28]MH_I2C_Read... [17:26:28]*** Stop cut motor [17:26:28]*** Cut end [17:26:28]Read from MH i2c: 01 07 00 [17:26:28]MH_I2C_Read... [17:26:28]Read from MH i2c: 01 07 00 BB A9 00 00 00 00 00 FF 0F 79 [17:26:28]process_action close_receipt done [17:26:28]requested_data is exist [17:26:28]produce_requested_data [17:26:28]requested_item fm.sn is exist - process it [17:26:28]wFMCommunicate request_size=4 [17:26:28]MH_SAM_APDU [17:26:28]CAPDU: 80 11 00 00 [17:26:28]Write to MH i2c: E2 08 00 BC A9 80 11 00 00 00 00 00 00 DF [17:26:28]Write i2c OK [17:26:28]MH_I2C_Read... [17:26:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:28]Read from MH i2c: E2 [17:26:28]MH_I2C_Read... [17:26:28]Read from MH i2c: E2 17 00 [17:26:28]MH_I2C_Read... [17:26:28]Read from MH i2c: E2 17 00 BC A9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 2E [17:26:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:26:28]wFMCommunicate OK [17:26:28]requested_item fd.num is exist - process it [17:26:28]SAM_PROTO_GetFieldsCounters [17:26:28]wFMCommunicate request_size=4 [17:26:28]MH_SAM_APDU [17:26:28]CAPDU: 80 13 00 00 [17:26:28]Write to MH i2c: E2 08 00 BD A9 80 13 00 00 00 00 00 00 E2 [17:26:28]Write i2c OK [17:26:28]MH_I2C_Read... [17:26:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:26:28]Read from MH i2c: E2 [17:26:28]MH_I2C_Read... [17:26:28]Read from MH i2c: E2 62 00 [17:26:28]MH_I2C_Read... [17:26:28]Read from MH i2c: E2 62 00 BD A9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 62 72 00 00 0E 04 04 00 74 00 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 A8 [17:26:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 62 72 00 00 0E 04 04 00 74 00 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 [17:26:28]wFMCommunicate OK [17:26:28]SAM_PROTO_GetFieldsCounters done [17:26:28]requested_item shift.num is exist - process it [17:26:28]requested_item shift.opened is exist - process it [17:26:28]req_shift_opened [17:26:28]FM_GetShiftState [17:26:28]SAM_PROTO_GetShiftState [17:26:28]wFMCommunicate request_size=4 [17:26:28]MH_SAM_APDU [17:26:28]CAPDU: 80 13 01 00 [17:26:28]Write to MH i2c: E2 08 00 BE A9 80 13 01 00 00 00 00 00 E4 [17:26:28]Write i2c OK [17:26:28]MH_I2C_Read... [17:26:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:29]Read from MH i2c: E2 [17:26:29]MH_I2C_Read... [17:26:29]Read from MH i2c: E2 0E 00 [17:26:29]MH_I2C_Read... [17:26:29]Read from MH i2c: E2 0E 00 BE A9 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 90 [17:26:29]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [17:26:29]wFMCommunicate OK [17:26:29]SAM_PROTO_GetShiftState done [17:26:29]FM_GetShiftState done [17:26:29]req_shift_opened done [17:26:29]requested_item shift.open_date is exist - process it [17:26:29]req_shift_open_date [17:26:29]req_shift_open_date done [17:26:29]produce_requested_data done [17:26:29]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29282,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [17:26:29]process_action_free close_receipt [17:26:29]json_value_free [17:26:29]json_value_free done [17:26:29]process_json_proto returns [17:26:29]Send response to host [17:26:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29282,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [17:26:29]free response buf [17:26:29]execute_script done [17:26:29]execute_script returns [17:26:29]free content buf [17:26:29]Sock 9.Close socket [17:26:29]Sock 9.Thread stoped [17:26:32]OFD Sender: No OFD packet to send [17:26:37]OFD Sender: No OFD packet to send [17:26:42]OFD Sender: No OFD packet to send [17:26:47]OFD Sender: No OFD packet to send [17:26:52]OFD Sender: No OFD packet to send [17:26:57]OFD Sender: No OFD packet to send [17:27:02]OFD Sender: No OFD packet to send [17:27:07]OFD Sender: No OFD packet to send [17:27:12]OFD Sender: No OFD packet to send [17:27:17]OFD Sender: No OFD packet to send [17:27:22]OFD Sender: No OFD packet to send [17:27:27]OFD Sender: No OFD packet to send [17:27:32]OFD Sender: No OFD packet to send [17:27:37]OFD Sender: No OFD packet to send [17:27:39]accept exits with 10 [17:27:39]New connection [17:27:39]New thread 3066928484 created [17:27:39]Thread 3066785124 joined [17:27:39]Waiting for new connection... [17:27:39] Sock 10.Parse request [17:27:39]Sock 10.Check first char [17:27:39]Sock 10.First char is OK [17:27:39]request: POST /json_proto HTTP/1.0 [17:27:39]Method: POST [17:27:39]URL: /json_proto [17:27:39]Method is POST - this is cgi request [17:27:39]url: /json_proto [17:27:39]query_string will be loaded in cgi processing [17:27:39]execute_cgi json_proto POST (null) [17:27:39]execute_cgi path=json_proto method=POST [17:27:39]POST find Content-Length [17:27:39]Host: 172.17.33.3:8080 [17:27:39]Content-Length: 787 [17:27:39]Content-Type: application/json [17:27:39] [17:27:39]POST finish read [17:27:39]Found Content-Length = 787 [17:27:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347671", "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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:27:39]execute_script... [17:27: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)347671", "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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:27:39]POST & json_proto [17:27:39]process_json_proto [17:27:39]json parsed OK: [17:27:39]protocol is kg_v1.0 [17:27:39]action value=close_receipt [17:27:39]process_action close_receipt [17:27:39]cmd_close_receipt [17:27:39]MH_GetDate [17:27:39]Write to MH i2c: F0 00 00 BF A9 57 [17:27:39]Write i2c OK [17:27:39]MH_I2C_Read... [17:27:39]Read from MH i2c: F0 [17:27:39]MH_I2C_Read... [17:27:39]Read from MH i2c: F0 09 00 [17:27:39]MH_I2C_Read... [17:27:39]Read from MH i2c: F0 09 00 BF A9 00 16 12 1C 66 23 5B 8F 65 7C [17:27:39]GetLastDocTimeStamp 1713115596 [17:27:39]current date 1713115670 [17:27:39]FM_GetShiftState [17:27:39]SAM_PROTO_GetShiftState [17:27:39]wFMCommunicate request_size=4 [17:27:39]MH_SAM_APDU [17:27:39]CAPDU: 80 13 01 00 [17:27:39]Write to MH i2c: E2 08 00 C0 A9 80 13 01 00 00 00 00 00 E6 [17:27:39]Write i2c OK [17:27:39]MH_I2C_Read... [17:27:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:27:39]Read from MH i2c: E2 [17:27:39]MH_I2C_Read... [17:27:39]Read from MH i2c: E2 0E 00 [17:27:39]MH_I2C_Read... [17:27:39]Read from MH i2c: E2 0E 00 C0 A9 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 92 [17:27:39]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [17:27:39]wFMCommunicate OK [17:27:39]SAM_PROTO_GetShiftState done [17:27:39]FM_GetShiftState done [17:27:39]opened in 1713053951 [17:27:39]opened+sec_in_day 1713140351 [17:27:39]quantity*price = 50028 [17:27:39]sum+1 = 50029 [17:27:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.28 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 0.00 Безнал.: 500.28 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 193 14.04.2024 17:27 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000963154 ФД: 29283 ФПД: 238925573083398 1/tax-web-control/client/api/v1/ticket?date=20240414T172750&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29283&fm=238925573083398&tin=02508201610067®Number=0000138879044617&sum=50028 [17:27:40]StoreToDocumentArchive [17:27:40]shift 116 fd 29283 [17:27:40]save to /storage/0116/doc_00029283 [17:27:40]save last doc name /storage/0116/doc_00029283 to /storage/kkm_last_doc_name [17:27:40]save OK [17:27:40]Clear old archive folders... [17:27:40]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:27:40]tlvbuf is 011F8460 [17:27:40]SAM_PROTO_ClearQueue [17:27:40]wFMCommunicate request_size=4 [17:27:40]MH_SAM_APDU [17:27:40]CAPDU: 80 09 00 00 [17:27:40]Write to MH i2c: E2 08 00 CD A9 80 09 00 00 00 00 00 00 E8 [17:27:40]Write i2c OK [17:27:40]MH_I2C_Read... [17:27:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:27:40]Read from MH i2c: E2 [17:27:40]MH_I2C_Read... [17:27:40]Read from MH i2c: E2 03 00 [17:27:40]MH_I2C_Read... [17:27:40]Read from MH i2c: E2 03 00 CD A9 00 90 00 EA [17:27:40]RAPDU: 90 00 [17:27:40]wFMCommunicate OK [17:27:40]SAM_PROTO_ClearQueue done [17:27:40]KKMCreateOFDPacket [17:27:40]OFDProtocolAddRootSTLVToBuf [17:27:40]FM_MakeSignedData [17:27:40]FM_MakeSignedData [17:27:40]SAM_PROTO_SignData [17:27:40]wFMCommunicate request_size=4 [17:27:40]MH_SAM_APDU [17:27:40]CAPDU: 80 0D 01 02 [17:27:40]Write to MH i2c: E2 08 00 CE A9 80 0D 01 02 00 00 00 00 F0 [17:27:40]Write i2c OK [17:27:40]MH_I2C_Read... [17:27:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:27:40]Read from MH i2c: E2 [17:27:40]MH_I2C_Read... [17:27:40]Read from MH i2c: E2 03 00 [17:27:40]MH_I2C_Read... [17:27:40]Read from MH i2c: E2 03 00 CE A9 00 90 00 EB [17:27:40]RAPDU: 90 00 [17:27:40]wFMCommunicate OK [17:27:40]wFMCommunicate request_size=255 [17:27:40]MH_SAM_APDU [17:27:40]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 C1 00 00 00 F4 03 04 00 16 12 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 63 72 00 00 35 04 06 00 D9 4D 31 E9 [17:27:40]Write to MH i2c: E2 02 01 CF A9 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 C1 00 00 00 F4 03 04 00 16 12 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 63 72 00 00 35 04 06 00 D9 4D 31 E9 00 00 F8 [17:27:40]Write i2c OK [17:27:40]MH_I2C_Read... [17:27:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:27:41]Read from MH i2c: E2 [17:27:41]MH_I2C_Read... [17:27:41]Read from MH i2c: E2 03 00 [17:27:41]MH_I2C_Read... [17:27:41]Read from MH i2c: E2 03 00 CF A9 00 90 00 EC [17:27:41]RAPDU: 90 00 [17:27:41]wFMCommunicate OK [17:27:41]wFMCommunicate request_size=7 [17:27:41]MH_SAM_APDU [17:27:41]CAPDU: 80 0D 02 02 02 51 06 [17:27:41]Write to MH i2c: E2 0A 00 D0 A9 80 0D 02 02 02 00 51 06 00 00 4E [17:27:41]Write i2c OK [17:27:41]MH_I2C_Read... [17:27:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:27:41]Read from MH i2c: E2 [17:27:41]MH_I2C_Read... [17:27:41]Read from MH i2c: E2 03 00 [17:27:41]MH_I2C_Read... [17:27:41]Read from MH i2c: E2 03 00 D0 A9 00 90 00 ED [17:27:41]RAPDU: 90 00 [17:27:41]wFMCommunicate OK [17:27:41]wFMCommunicate request_size=4 [17:27:41]MH_SAM_APDU [17:27:41]CAPDU: 80 0D 03 02 [17:27:41]Write to MH i2c: E2 08 00 D1 A9 80 0D 03 02 00 00 00 00 F5 [17:27:41]Write i2c OK [17:27:41]MH_I2C_Read... [17:27:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:27:41]Read from MH i2c: E2 [17:27:41]MH_I2C_Read... [17:27:41]Read from MH i2c: E2 0B 00 [17:27:41]MH_I2C_Read... [17:27:41]Read from MH i2c: E2 0B 00 D1 A9 00 0F 91 0D 3B D9 6B B8 9C 90 00 76 [17:27:41]RAPDU: 0F 91 0D 3B D9 6B B8 9C 90 00 [17:27:41]wFMCommunicate OK [17:27:41]SAM_PROTO_SignData done [17:27:41]FM_MakeSignedData done [17:27:41]CreateOFDProtocolMessage [17:27:41]wFMCommunicate request_size=4 [17:27:41]MH_SAM_APDU [17:27:41]CAPDU: 80 11 00 00 [17:27:41]Write to MH i2c: E2 08 00 D2 A9 80 11 00 00 00 00 00 00 F5 [17:27:41]Write i2c OK [17:27:41]MH_I2C_Read... [17:27:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:27:41]Read from MH i2c: E2 [17:27:41]MH_I2C_Read... [17:27:41]Read from MH i2c: E2 17 00 [17:27:41]MH_I2C_Read... [17:27:41]Read from MH i2c: E2 17 00 D2 A9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 44 [17:27:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:27:41]wFMCommunicate OK [17:27:41]CreateOFDProtocolMessage done [17:27:41]OFDSenderStorePacket 29283 [17:27:41]StoreOFDPacket docnum=29283 [17:27:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 CD 38 04 01 A9 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 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 C1 00 00 00 F4 03 04 00 16 12 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 63 72 00 00 35 04 06 00 D9 4D 31 E9 51 06 0F 91 0D 3B D9 6B B8 9C [17:27:41]CheckFolder [17:27:41]dirname=/storage/ofd_packets [17:27:41]CheckFolder done [17:27:41]ProducePacketName [17:27:41]name=ofd_packets/00029283 [17:27:41]NVStorageSaveData ofd_packets/00029283 [17:27:41]File name is /storage/ofd_packets/00029283 [17:27:41]Write 298 bytes [17:27:41]NVStorageSaveData done [17:27:41]OFDSenderStorePacket done [17:27:41]KKMCreateOFDPacket done [17:27:41]NVStorageSaveData kkm_last_timestamp [17:27:41]File name is /storage/kkm_last_timestamp [17:27:41]Write 4 bytes [17:27:41]NVStorageSaveData done [17:27:41]ExternCall_PrintAddStr [17:27:41]wPrintStart [17:27:41]Write to MH i2c: 01 00 00 D3 A9 7C [17:27:41]Write i2c OK [17:27:41]MH_I2C_Read... [17:27:41]Read from MH i2c: 01 [17:27:41]MH_I2C_Read... [17:27:41]Read from MH i2c: 01 07 00 [17:27:41]MH_I2C_Read... [17:27:41]Read from MH i2c: 01 07 00 D3 A9 00 00 00 00 00 FF 0F 91 [17:27:41]RasterBufferAndPrint [17:27:41]line Счет N : (1)347671 [17:27:41]line ИНН: 02508201610067 [17:27:41]line Контрольно-Кассовый Чек [17:27:41]line ПРОДАЖА [17:27:41]line ТРК (МРК, ГНК) : 51 [17:27:41]line Товар: 2710194210 [17:27:41]line ДТ-К-5 [17:27:41]line 6.910 * 72.40 [17:27:41]line = 500.28 [17:27:41]line НДС 12% НСП 1% [17:27:41]line > о реализуемом товаре [17:27:41]line ИТОГО: 500.28 [17:27:41]line НСП 1% : 4.43 [17:27:41]line НДС 12% : 53.13 [17:27:41]line Наличными: 0.00 [17:27:41]line Безнал.: 500.28 [17:27:41]line Место: АЗС № 108 "Партнер Нефть" [17:27:41]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [17:27:41]line СНО: Общий режим [17:27:41]line Чек 193 14.04.2024 17:27 [17:27:41]line Смена: 116 ФФД: 1.0 [17:27:41]line ЗНМ: 0300000027 [17:27:41]line РНМ: 0000138879044617 [17:27:41]line Версия ККМ: 001 [17:27:41]line Платежная система: KICB Банк [17:27:41]line ФМ: 0000000000963154 [17:27:41]line ФД: 29283 [17:27:41]line ФПД: 238925573083398 [17:27:41]line 1/tax-web-control/client/api/v1/ticket?date=20240414T172750&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29283&fm=238925573083398&tin=02508201610067®Number=0000138879044617&sum=50028 [17:27:41]OFD Sender: Processing packet 29283 [packets to send 8, broken 7] [17:27:41]ProducePacketName [17:27:41]name=ofd_packets/00029283 [17:27:41]OFD Sender: To server: pG, [17:27:41]CommunicateWithHost lk.salyk.kg:30040 [17:27:41]ConnectInit lk.salyk.kg [17:27:41]written 0, free lines is 4095 [17:27:41]Connected sock=9 [17:27:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 CD 38 04 01 A9 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 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 C1 00 00 00 F4 03 04 00 16 12 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 63 72 00 00 35 04 06 00 D9 4D 31 E9 51 06 0F 91 0D 3B D9 6B B8 9C [17:27:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 5C 87 47 00 B3 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 63 72 00 00 F4 03 04 00 BA BC 1B 66 B6 04 01 00 00 4B 94 89 83 5D 33 E1 EC [17:27:41]CommunicateWithHost err = 0 [17:27:41]CheckOFDResponse [17:27:41]1017 (14) - 77093643461234 [17:27:41]1041 (16) - 0000000000963154 [17:27:41]1040 (4) - 29283 [17:27:41]1012 (4) - 14.04.2024 11:23 [17:27:41]1206 (1) - 0 [17:27:41]OFD Sender: Remove packet 29283 [17:27:41]ProducePacketName [17:27:41]name=ofd_packets/00029283 [17:27:41]NVStorageDeleteData [17:27:42]Write to MH i2c: 01 00 00 FC A9 A5 [17:27:42]Write i2c OK [17:27:42]MH_I2C_Read... [17:27:42]Read from MH i2c: 01 [17:27:42]MH_I2C_Read... [17:27:42]Read from MH i2c: 01 07 00 [17:27:42]MH_I2C_Read... [17:27:42]Read from MH i2c: 01 07 00 FC A9 00 00 00 00 00 DC 0C 94 [17:27:42]RasterBufferAndPrint [17:27:42]line [17:27:42]line [17:27:42]line [17:27:42]line [17:27:42]line [17:27:42]written 0, free lines is 3298 [17:27:42]MH_Cut [17:27:42]Write to MH i2c: D1 01 00 03 AA 01 7F [17:27:42]Write i2c OK [17:27:42]MH_I2C_Read... [17:27:42]Read from MH i2c: D1 [17:27:42]MH_I2C_Read... [17:27:42]Read from MH i2c: D1 01 00 [17:27:42]MH_I2C_Read... [17:27:42]Read from MH i2c: D1 01 00 03 AA 00 7E [17:27:42]Write to MH i2c: 01 00 00 04 AA AE [17:27:42]Write i2c OK [17:27:42]MH_I2C_Read... [17:27:42]OFD Sender: No OFD packet to send [17:27:42]*** Cut start [17:27:42]*** Partial cut [17:27:42]*** CUTSNS_PIN = 1 [17:27:42]*** CUTSNS_PIN = 0 [17:27:43]*** Brake cut motor [17:27:43]Read from MH i2c: 01 [17:27:43]MH_I2C_Read... [17:27:43]*** Stop cut motor [17:27:43]*** Cut end [17:27:43]Read from MH i2c: 01 07 00 [17:27:43]MH_I2C_Read... [17:27:43]Read from MH i2c: 01 07 00 04 AA 00 00 00 00 00 FF 0F C3 [17:27:43]process_action close_receipt done [17:27:43]requested_data is exist [17:27:43]produce_requested_data [17:27:43]requested_item fm.sn is exist - process it [17:27:43]wFMCommunicate request_size=4 [17:27:43]MH_SAM_APDU [17:27:43]CAPDU: 80 11 00 00 [17:27:43]Write to MH i2c: E2 08 00 05 AA 80 11 00 00 00 00 00 00 29 [17:27:43]Write i2c OK [17:27:43]MH_I2C_Read... [17:27:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:27:43]Read from MH i2c: E2 [17:27:43]MH_I2C_Read... [17:27:43]Read from MH i2c: E2 17 00 [17:27:43]MH_I2C_Read... [17:27:43]Read from MH i2c: E2 17 00 05 AA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 78 [17:27:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:27:43]wFMCommunicate OK [17:27:43]requested_item fd.num is exist - process it [17:27:43]SAM_PROTO_GetFieldsCounters [17:27:43]wFMCommunicate request_size=4 [17:27:43]MH_SAM_APDU [17:27:43]CAPDU: 80 13 00 00 [17:27:43]Write to MH i2c: E2 08 00 06 AA 80 13 00 00 00 00 00 00 2C [17:27:43]Write i2c OK [17:27:43]MH_I2C_Read... [17:27:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:27:43]Read from MH i2c: E2 [17:27:43]MH_I2C_Read... [17:27:43]Read from MH i2c: E2 62 00 [17:27:43]MH_I2C_Read... [17:27:43]Read from MH i2c: E2 62 00 06 AA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 63 72 00 00 0E 04 04 00 74 00 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 F6 [17:27:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 63 72 00 00 0E 04 04 00 74 00 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 [17:27:43]wFMCommunicate OK [17:27:43]SAM_PROTO_GetFieldsCounters done [17:27:43]requested_item shift.num is exist - process it [17:27:43]requested_item shift.opened is exist - process it [17:27:43]req_shift_opened [17:27:43]FM_GetShiftState [17:27:43]SAM_PROTO_GetShiftState [17:27:43]wFMCommunicate request_size=4 [17:27:43]MH_SAM_APDU [17:27:43]CAPDU: 80 13 01 00 [17:27:43]Write to MH i2c: E2 08 00 07 AA 80 13 01 00 00 00 00 00 2E [17:27:43]Write i2c OK [17:27:43]MH_I2C_Read... [17:27:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:27:43]Read from MH i2c: E2 [17:27:43]MH_I2C_Read... [17:27:43]Read from MH i2c: E2 0E 00 [17:27:43]MH_I2C_Read... [17:27:43]Read from MH i2c: E2 0E 00 07 AA 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 DA [17:27:43]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [17:27:43]wFMCommunicate OK [17:27:43]SAM_PROTO_GetShiftState done [17:27:43]FM_GetShiftState done [17:27:43]req_shift_opened done [17:27:43]requested_item shift.open_date is exist - process it [17:27:43]req_shift_open_date [17:27:43]req_shift_open_date done [17:27:43]produce_requested_data done [17:27:43]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29283,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [17:27:43]process_action_free close_receipt [17:27:43]json_value_free [17:27:43]json_value_free done [17:27:43]process_json_proto returns [17:27:43]Send response to host [17:27:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29283,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [17:27:43]free response buf [17:27:43]execute_script done [17:27:43]execute_script returns [17:27:43]free content buf [17:27:43]Sock 10.Close socket [17:27:43]Sock 10.Thread stoped [17:27:47]OFD Sender: No OFD packet to send [17:27:52]OFD Sender: No OFD packet to send [17:27:57]OFD Sender: No OFD packet to send [17:28:02]OFD Sender: No OFD packet to send [17:28:07]OFD Sender: No OFD packet to send [17:28:12]OFD Sender: No OFD packet to send [17:28:17]OFD Sender: No OFD packet to send [17:28:22]OFD Sender: No OFD packet to send [17:28:27]OFD Sender: No OFD packet to send [17:28:32]OFD Sender: No OFD packet to send [17:28:37]OFD Sender: No OFD packet to send [17:28:42]OFD Sender: No OFD packet to send [17:28:47]OFD Sender: No OFD packet to send [17:28:52]OFD Sender: No OFD packet to send [17:28:57]OFD Sender: No OFD packet to send [17:29:02]OFD Sender: No OFD packet to send [17:29:07]OFD Sender: No OFD packet to send [17:29:12]OFD Sender: No OFD packet to send [17:29:17]OFD Sender: No OFD packet to send [17:29:22]OFD Sender: No OFD packet to send [17:29:27]OFD Sender: No OFD packet to send [17:29:32]OFD Sender: No OFD packet to send [17:29:37]OFD Sender: No OFD packet to send [17:29:42]OFD Sender: No OFD packet to send [17:29:47]OFD Sender: No OFD packet to send [17:29:52]OFD Sender: No OFD packet to send [17:29:57]OFD Sender: No OFD packet to send [17:30:02]OFD Sender: No OFD packet to send [17:30:07]OFD Sender: No OFD packet to send [17:30:12]OFD Sender: No OFD packet to send [17:30:17]OFD Sender: No OFD packet to send [17:30:22]OFD Sender: No OFD packet to send [17:30:27]OFD Sender: No OFD packet to send [17:30:32]OFD Sender: No OFD packet to send [17:30:37]OFD Sender: No OFD packet to send [17:30:42]OFD Sender: No OFD packet to send [17:30:47]OFD Sender: No OFD packet to send [17:30:52]OFD Sender: No OFD packet to send [17:30:57]OFD Sender: No OFD packet to send [17:31:02]OFD Sender: No OFD packet to send [17:31:07]OFD Sender: No OFD packet to send [17:31:12]OFD Sender: No OFD packet to send [17:31:17]OFD Sender: No OFD packet to send [17:31:22]OFD Sender: No OFD packet to send [17:31:27]OFD Sender: No OFD packet to send [17:31:32]OFD Sender: No OFD packet to send [17:31:37]OFD Sender: No OFD packet to send [17:31:42]OFD Sender: No OFD packet to send [17:31:47]OFD Sender: No OFD packet to send [17:31:52]OFD Sender: No OFD packet to send [17:31:57]OFD Sender: No OFD packet to send [17:32:02]OFD Sender: No OFD packet to send [17:32:07]OFD Sender: No OFD packet to send [17:32:12]OFD Sender: No OFD packet to send [17:32:16]accept exits with 7 [17:32:16]New connection [17:32:16]New thread 3066785124 created [17:32:16]Thread 3066928484 joined [17:32:16]Waiting for new connection... [17:32:16] Sock 7.Parse request [17:32:16]Sock 7.Check first char [17:32:16]Sock 7.First char is OK [17:32:16]request: POST /json_proto HTTP/1.0 [17:32:16]Method: POST [17:32:16]URL: /json_proto [17:32:16]Method is POST - this is cgi request [17:32:16]url: /json_proto [17:32:16]query_string will be loaded in cgi processing [17:32:16]execute_cgi json_proto POST (null) [17:32:16]execute_cgi path=json_proto method=POST [17:32:16]POST find Content-Length [17:32:16]Host: 172.17.33.3:8080 [17:32:16]Content-Length: 682 [17:32:16]Content-Type: application/json [17:32:16] [17:32:16]POST finish read [17:32:16]Found Content-Length = 682 [17:32:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347672", "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" : 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" ] } } [17:32:16]execute_script... [17:32: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)347672", "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" : 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" ] } } [17:32:16]POST & json_proto [17:32:16]process_json_proto [17:32:16]json parsed OK: [17:32:16]protocol is kg_v1.0 [17:32:16]action value=close_receipt [17:32:16]process_action close_receipt [17:32:16]cmd_close_receipt [17:32:16]MH_GetDate [17:32:16]Write to MH i2c: F0 00 00 08 AA A1 [17:32:16]Write i2c OK [17:32:16]MH_I2C_Read... [17:32:16]Read from MH i2c: F0 [17:32:16]MH_I2C_Read... [17:32:16]Read from MH i2c: F0 09 00 [17:32:16]MH_I2C_Read... [17:32:16]Read from MH i2c: F0 09 00 08 AA 00 2B 13 1C 66 23 5B 8F 65 DC [17:32:16]GetLastDocTimeStamp 1713115670 [17:32:16]current date 1713115947 [17:32:16]FM_GetShiftState [17:32:16]SAM_PROTO_GetShiftState [17:32:16]wFMCommunicate request_size=4 [17:32:16]MH_SAM_APDU [17:32:16]CAPDU: 80 13 01 00 [17:32:16]Write to MH i2c: E2 08 00 09 AA 80 13 01 00 00 00 00 00 30 [17:32:16]Write i2c OK [17:32:16]MH_I2C_Read... [17:32:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:32:16]Read from MH i2c: E2 [17:32:16]MH_I2C_Read... [17:32:16]Read from MH i2c: E2 0E 00 [17:32:16]MH_I2C_Read... [17:32:16]Read from MH i2c: E2 0E 00 09 AA 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 DC [17:32:16]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [17:32:16]wFMCommunicate OK [17:32:16]SAM_PROTO_GetShiftState done [17:32:16]FM_GetShiftState done [17:32:16]opened in 1713053951 [17:32:16]opened+sec_in_day 1713140351 [17:32:16]quantity*price = 150011 [17:32:16]sum+1 = 150013 [17:32:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.27 НДС 12% : 159.30 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 194 14.04.2024 17:32 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29284 ФПД: 92040650774607 1/tax-web-control/client/api/v1/ticket?date=20240414T173227&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29284&fm=92040650774607&tin=02508201610067®Number=0000138879044617&sum=150000 [17:32:17]StoreToDocumentArchive [17:32:17]shift 116 fd 29284 [17:32:17]save to /storage/0116/doc_00029284 [17:32:17]save last doc name /storage/0116/doc_00029284 to /storage/kkm_last_doc_name [17:32:17]save OK [17:32:17]Clear old archive folders... [17:32:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:32:17]tlvbuf is 0121E110 [17:32:17]SAM_PROTO_ClearQueue [17:32:17]wFMCommunicate request_size=4 [17:32:17]MH_SAM_APDU [17:32:17]CAPDU: 80 09 00 00 [17:32:17]Write to MH i2c: E2 08 00 16 AA 80 09 00 00 00 00 00 00 32 [17:32:17]Write i2c OK [17:32:17]MH_I2C_Read... [17:32:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:32:17]Read from MH i2c: E2 [17:32:17]MH_I2C_Read... [17:32:17]Read from MH i2c: E2 03 00 [17:32:17]MH_I2C_Read... [17:32:17]Read from MH i2c: E2 03 00 16 AA 00 90 00 34 [17:32:17]RAPDU: 90 00 [17:32:17]wFMCommunicate OK [17:32:17]SAM_PROTO_ClearQueue done [17:32:17]KKMCreateOFDPacket [17:32:17]OFDProtocolAddRootSTLVToBuf [17:32:17]FM_MakeSignedData [17:32:17]FM_MakeSignedData [17:32:17]SAM_PROTO_SignData [17:32:17]wFMCommunicate request_size=4 [17:32:17]MH_SAM_APDU [17:32:17]CAPDU: 80 0D 01 02 [17:32:17]Write to MH i2c: E2 08 00 17 AA 80 0D 01 02 00 00 00 00 3A [17:32:17]Write i2c OK [17:32:17]MH_I2C_Read... [17:32:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:32:17]Read from MH i2c: E2 [17:32:17]MH_I2C_Read... [17:32:17]Read from MH i2c: E2 03 00 [17:32:17]MH_I2C_Read... [17:32:17]Read from MH i2c: E2 03 00 17 AA 00 90 00 35 [17:32:17]RAPDU: 90 00 [17:32:17]wFMCommunicate OK [17:32:17]wFMCommunicate request_size=255 [17:32:17]MH_SAM_APDU [17:32: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 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 C2 00 00 00 F4 03 04 00 2B 13 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 64 72 00 00 35 04 06 00 53 [17:32:17]Write to MH i2c: E2 02 01 18 AA 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 C2 00 00 00 F4 03 04 00 2B 13 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 64 72 00 00 35 04 06 00 53 00 00 9D [17:32:17]Write i2c OK [17:32:17]MH_I2C_Read... [17:32:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:32:18]Read from MH i2c: E2 [17:32:18]MH_I2C_Read... [17:32:18]Read from MH i2c: E2 03 00 [17:32:18]MH_I2C_Read... [17:32:18]Read from MH i2c: E2 03 00 18 AA 00 90 00 36 [17:32:18]RAPDU: 90 00 [17:32:18]wFMCommunicate OK [17:32:18]wFMCommunicate request_size=10 [17:32:18]MH_SAM_APDU [17:32:18]CAPDU: 80 0D 02 02 05 B5 E2 4B 58 4F [17:32:18]Write to MH i2c: E2 0D 00 19 AA 80 0D 02 02 05 00 B5 E2 4B 58 4F 00 00 D0 [17:32:18]Write i2c OK [17:32:18]MH_I2C_Read... [17:32:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:32:18]Read from MH i2c: E2 [17:32:18]MH_I2C_Read... [17:32:18]Read from MH i2c: E2 03 00 [17:32:18]MH_I2C_Read... [17:32:18]Read from MH i2c: E2 03 00 19 AA 00 90 00 37 [17:32:18]RAPDU: 90 00 [17:32:18]wFMCommunicate OK [17:32:18]wFMCommunicate request_size=4 [17:32:18]MH_SAM_APDU [17:32:18]CAPDU: 80 0D 03 02 [17:32:18]Write to MH i2c: E2 08 00 1A AA 80 0D 03 02 00 00 00 00 3F [17:32:18]Write i2c OK [17:32:18]MH_I2C_Read... [17:32:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:32:18]Read from MH i2c: E2 [17:32:18]MH_I2C_Read... [17:32:18]Read from MH i2c: E2 0B 00 [17:32:18]MH_I2C_Read... [17:32:18]Read from MH i2c: E2 0B 00 1A AA 00 B5 0C EE 7C 7B 2F 05 F1 90 00 0B [17:32:18]RAPDU: B5 0C EE 7C 7B 2F 05 F1 90 00 [17:32:18]wFMCommunicate OK [17:32:18]SAM_PROTO_SignData done [17:32:18]FM_MakeSignedData done [17:32:18]CreateOFDProtocolMessage [17:32:18]wFMCommunicate request_size=4 [17:32:18]MH_SAM_APDU [17:32:18]CAPDU: 80 11 00 00 [17:32:18]Write to MH i2c: E2 08 00 1B AA 80 11 00 00 00 00 00 00 3F [17:32:18]Write i2c OK [17:32:18]MH_I2C_Read... [17:32:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:32:18]Read from MH i2c: E2 [17:32:18]MH_I2C_Read... [17:32:18]Read from MH i2c: E2 17 00 [17:32:18]MH_I2C_Read... [17:32:18]Read from MH i2c: E2 17 00 1B AA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 8E [17:32:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:32:18]wFMCommunicate OK [17:32:18]CreateOFDProtocolMessage done [17:32:18]OFDSenderStorePacket 29284 [17:32:18]StoreOFDPacket docnum=29284 [17:32:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 3B A4 07 01 92 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 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 C2 00 00 00 F4 03 04 00 2B 13 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 64 72 00 00 35 04 06 00 53 B5 E2 4B 58 4F B5 0C EE 7C 7B 2F 05 F1 [17:32:18]CheckFolder [17:32:18]dirname=/storage/ofd_packets [17:32:18]CheckFolder done [17:32:18]ProducePacketName [17:32:18]name=ofd_packets/00029284 [17:32:18]NVStorageSaveData ofd_packets/00029284 [17:32:18]File name is /storage/ofd_packets/00029284 [17:32:18]Write 301 bytes [17:32:18]NVStorageSaveData done [17:32:18]OFDSenderStorePacket done [17:32:18]KKMCreateOFDPacket done [17:32:18]NVStorageSaveData kkm_last_timestamp [17:32:18]File name is /storage/kkm_last_timestamp [17:32:18]Write 4 bytes [17:32:18]NVStorageSaveData done [17:32:18]ExternCall_PrintAddStr [17:32:18]wPrintStart [17:32:18]Write to MH i2c: 01 00 00 1C AA C6 [17:32:18]Write i2c OK [17:32:18]MH_I2C_Read... [17:32:18]Read from MH i2c: 01 [17:32:18]MH_I2C_Read... [17:32:18]Read from MH i2c: 01 07 00 [17:32:18]MH_I2C_Read... [17:32:18]Read from MH i2c: 01 07 00 1C AA 00 00 00 00 00 FF 0F DB [17:32:18]RasterBufferAndPrint [17:32:18]line Счет N : (1)347672 [17:32:18]line ИНН: 02508201610067 [17:32:18]line Контрольно-Кассовый Чек [17:32:18]line ПРОДАЖА [17:32:18]line ТРК (МРК, ГНК) : 32 [17:32:18]line Товар: 2710124130 [17:32:18]line Аи-92-К-5 [17:32:18]line 23.330 * 64.30 [17:32:18]line = 1500.12 [17:32:18]line НДС 12% НСП 1% [17:32:18]line > о реализуемом товаре [17:32:18]line ОКРУГЛЕНИЕ: -0.12 [17:32:18]line ИТОГО: 1500.00 [17:32:18]line Внесено: 1500.00 [17:32:18]line СДАЧА: 0.00 [17:32:18]line НСП 1% : 13.27 [17:32:18]line НДС 12% : 159.30 [17:32:18]line Наличными: 1500.00 [17:32:18]line Безнал.: 0.00 [17:32:18]line Место: АЗС № 108 "Партнер Нефть" [17:32:18]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [17:32:18]line СНО: Общий режим [17:32:18]line Чек 194 14.04.2024 17:32 [17:32:18]line Смена: 116 ФФД: 1.0 [17:32:18]line ЗНМ: 0300000027 [17:32:18]line РНМ: 0000138879044617 [17:32:18]line Версия ККМ: 001 [17:32:18]line ФМ: 0000000000963154 [17:32:18]line ФД: 29284 [17:32:18]line ФПД: 92040650774607 [17:32:18]line 1/tax-web-control/client/api/v1/ticket?date=20240414T173227&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29284&fm=92040650774607&tin=02508201610067®Number=0000138879044617&sum=150000 [17:32:18]OFD Sender: Processing packet 29284 [packets to send 8, broken 7] [17:32:18]ProducePacketName [17:32:18]name=ofd_packets/00029284 [17:32:18]OFD Sender: To server: pG, [17:32:18]CommunicateWithHost lk.salyk.kg:30040 [17:32:18]ConnectInit lk.salyk.kg [17:32:18]written 0, free lines is 4095 [17:32:18]Connected sock=10 [17:32:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 3B A4 07 01 92 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 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 C2 00 00 00 F4 03 04 00 2B 13 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 64 72 00 00 35 04 06 00 53 B5 E2 4B 58 4F B5 0C EE 7C 7B 2F 05 F1 [17:32:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 9A E2 47 00 21 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 64 72 00 00 F4 03 04 00 CF BD 1B 66 B6 04 01 00 00 D9 8B FA 8C 55 0C BE CA [17:32:18]CommunicateWithHost err = 0 [17:32:18]CheckOFDResponse [17:32:18]1017 (14) - 77093643461234 [17:32:18]1041 (16) - 0000000000963154 [17:32:18]1040 (4) - 29284 [17:32:18]1012 (4) - 14.04.2024 11:28 [17:32:18]1206 (1) - 0 [17:32:18]OFD Sender: Remove packet 29284 [17:32:18]ProducePacketName [17:32:18]name=ofd_packets/00029284 [17:32:18]NVStorageDeleteData [17:32:19]Write to MH i2c: 01 00 00 46 AA F0 [17:32:19]Write i2c OK [17:32:19]MH_I2C_Read... [17:32:19]Read from MH i2c: 01 [17:32:19]MH_I2C_Read... [17:32:19]Read from MH i2c: 01 07 00 [17:32:19]MH_I2C_Read... [17:32:19]Read from MH i2c: 01 07 00 46 AA 00 00 00 00 00 C4 0C C7 [17:32:19]RasterBufferAndPrint [17:32:19]line [17:32:19]line [17:32:19]line [17:32:19]line [17:32:19]line [17:32:19]written 0, free lines is 3274 [17:32:19]MH_Cut [17:32:19]Write to MH i2c: D1 01 00 4D AA 01 C9 [17:32:19]Write i2c OK [17:32:19]MH_I2C_Read... [17:32:19]Read from MH i2c: D1 [17:32:19]MH_I2C_Read... [17:32:19]Read from MH i2c: D1 01 00 [17:32:19]MH_I2C_Read... [17:32:19]Read from MH i2c: D1 01 00 4D AA 00 C8 [17:32:19]Write to MH i2c: 01 00 00 4E AA F8 [17:32:19]Write i2c OK [17:32:19]MH_I2C_Read... [17:32:19]OFD Sender: No OFD packet to send [17:32:19]*** Cut start [17:32:19]*** Partial cut [17:32:19]*** CUTSNS_PIN = 1 [17:32:19]*** CUTSNS_PIN = 0 [17:32:20]*** Brake cut motor [17:32:20]Read from MH i2c: 01 [17:32:20]MH_I2C_Read... [17:32:20]*** Stop cut motor [17:32:20]*** Cut end [17:32:20]Read from MH i2c: 01 07 00 [17:32:20]MH_I2C_Read... [17:32:20]Read from MH i2c: 01 07 00 4E AA 00 00 00 00 00 FF 0F 0D [17:32:20]process_action close_receipt done [17:32:20]requested_data is exist [17:32:20]produce_requested_data [17:32:20]requested_item fm.sn is exist - process it [17:32:20]wFMCommunicate request_size=4 [17:32:20]MH_SAM_APDU [17:32:20]CAPDU: 80 11 00 00 [17:32:20]Write to MH i2c: E2 08 00 4F AA 80 11 00 00 00 00 00 00 73 [17:32:20]Write i2c OK [17:32:20]MH_I2C_Read... [17:32:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:32:20]Read from MH i2c: E2 [17:32:20]MH_I2C_Read... [17:32:20]Read from MH i2c: E2 17 00 [17:32:20]MH_I2C_Read... [17:32:20]Read from MH i2c: E2 17 00 4F AA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C2 [17:32:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:32:20]wFMCommunicate OK [17:32:20]requested_item fd.num is exist - process it [17:32:20]SAM_PROTO_GetFieldsCounters [17:32:20]wFMCommunicate request_size=4 [17:32:20]MH_SAM_APDU [17:32:20]CAPDU: 80 13 00 00 [17:32:20]Write to MH i2c: E2 08 00 50 AA 80 13 00 00 00 00 00 00 76 [17:32:20]Write i2c OK [17:32:20]MH_I2C_Read... [17:32:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:32:20]Read from MH i2c: E2 [17:32:20]MH_I2C_Read... [17:32:20]Read from MH i2c: E2 62 00 [17:32:20]MH_I2C_Read... [17:32:20]Read from MH i2c: E2 62 00 50 AA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 64 72 00 00 0E 04 04 00 74 00 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 44 [17:32:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 64 72 00 00 0E 04 04 00 74 00 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 [17:32:20]wFMCommunicate OK [17:32:20]SAM_PROTO_GetFieldsCounters done [17:32:20]requested_item shift.num is exist - process it [17:32:20]requested_item shift.opened is exist - process it [17:32:20]req_shift_opened [17:32:20]FM_GetShiftState [17:32:20]SAM_PROTO_GetShiftState [17:32:20]wFMCommunicate request_size=4 [17:32:20]MH_SAM_APDU [17:32:20]CAPDU: 80 13 01 00 [17:32:20]Write to MH i2c: E2 08 00 51 AA 80 13 01 00 00 00 00 00 78 [17:32:20]Write i2c OK [17:32:20]MH_I2C_Read... [17:32:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:32:20]Read from MH i2c: E2 [17:32:20]MH_I2C_Read... [17:32:20]Read from MH i2c: E2 0E 00 [17:32:20]MH_I2C_Read... [17:32:20]Read from MH i2c: E2 0E 00 51 AA 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 24 [17:32:20]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [17:32:20]wFMCommunicate OK [17:32:20]SAM_PROTO_GetShiftState done [17:32:20]FM_GetShiftState done [17:32:20]req_shift_opened done [17:32:20]requested_item shift.open_date is exist - process it [17:32:20]req_shift_open_date [17:32:20]req_shift_open_date done [17:32:20]produce_requested_data done [17:32:20]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29284,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [17:32:20]process_action_free close_receipt [17:32:20]json_value_free [17:32:20]json_value_free done [17:32:20]process_json_proto returns [17:32:20]Send response to host [17:32:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29284,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [17:32:20]free response buf [17:32:20]execute_script done [17:32:20]execute_script returns [17:32:20]free content buf [17:32:20]Sock 7.Close socket [17:32:20]Sock 7.Thread stoped [17:32:24]OFD Sender: No OFD packet to send [17:32:29]OFD Sender: No OFD packet to send [17:32:34]OFD Sender: No OFD packet to send [17:32:39]OFD Sender: No OFD packet to send [17:32:44]OFD Sender: No OFD packet to send [17:32:49]OFD Sender: No OFD packet to send [17:32:54]OFD Sender: No OFD packet to send [17:32:59]OFD Sender: No OFD packet to send [17:33:04]OFD Sender: No OFD packet to send [17:33:09]OFD Sender: No OFD packet to send [17:33:14]OFD Sender: No OFD packet to send [17:33:19]OFD Sender: No OFD packet to send [17:33:24]OFD Sender: No OFD packet to send [17:33:29]OFD Sender: No OFD packet to send [17:33:34]OFD Sender: No OFD packet to send [17:33:39]OFD Sender: No OFD packet to send [17:33:44]OFD Sender: No OFD packet to send [17:33:49]OFD Sender: No OFD packet to send [17:33:54]OFD Sender: No OFD packet to send [17:33:59]OFD Sender: No OFD packet to send [17:34:04]OFD Sender: No OFD packet to send [17:34:09]OFD Sender: No OFD packet to send [17:34:14]OFD Sender: No OFD packet to send [17:34:19]OFD Sender: No OFD packet to send [17:34:24]OFD Sender: No OFD packet to send [17:34:29]OFD Sender: No OFD packet to send [17:34:34]OFD Sender: No OFD packet to send [17:34:39]OFD Sender: No OFD packet to send [17:34:44]OFD Sender: No OFD packet to send [17:34:49]OFD Sender: No OFD packet to send [17:34:54]OFD Sender: No OFD packet to send [17:34:59]OFD Sender: No OFD packet to send [17:35:04]OFD Sender: No OFD packet to send [17:35:09]OFD Sender: No OFD packet to send [17:35:14]OFD Sender: No OFD packet to send [17:35:19]OFD Sender: No OFD packet to send [17:35:24]OFD Sender: No OFD packet to send [17:35:29]OFD Sender: No OFD packet to send [17:35:34]OFD Sender: No OFD packet to send [17:35:39]OFD Sender: No OFD packet to send [17:35:44]OFD Sender: No OFD packet to send [17:35:49]OFD Sender: No OFD packet to send [17:35:54]OFD Sender: No OFD packet to send [17:35:59]OFD Sender: No OFD packet to send [17:36:04]OFD Sender: No OFD packet to send [17:36:09]OFD Sender: No OFD packet to send [17:36:14]OFD Sender: No OFD packet to send [17:36:19]OFD Sender: No OFD packet to send [17:36:24]OFD Sender: No OFD packet to send [17:36:29]OFD Sender: No OFD packet to send [17:36:34]OFD Sender: No OFD packet to send [17:36:39]OFD Sender: No OFD packet to send [17:36:44]OFD Sender: No OFD packet to send [17:36:49]OFD Sender: No OFD packet to send [17:36:54]OFD Sender: No OFD packet to send [17:36:59]OFD Sender: No OFD packet to send [17:37:04]OFD Sender: No OFD packet to send [17:37:09]OFD Sender: No OFD packet to send [17:37:14]OFD Sender: No OFD packet to send [17:37:19]OFD Sender: No OFD packet to send [17:37:24]OFD Sender: No OFD packet to send [17:37:29]OFD Sender: No OFD packet to send [17:37:34]OFD Sender: No OFD packet to send [17:37:39]OFD Sender: No OFD packet to send [17:37:44]OFD Sender: No OFD packet to send [17:37:49]OFD Sender: No OFD packet to send [17:37:54]OFD Sender: No OFD packet to send [17:37:59]OFD Sender: No OFD packet to send [17:38:04]OFD Sender: No OFD packet to send [17:38:09]OFD Sender: No OFD packet to send [17:38:14]OFD Sender: No OFD packet to send [17:38:19]OFD Sender: No OFD packet to send [17:38:24]OFD Sender: No OFD packet to send [17:38:29]OFD Sender: No OFD packet to send [17:38:34]OFD Sender: No OFD packet to send [17:38:39]OFD Sender: No OFD packet to send [17:38:44]OFD Sender: No OFD packet to send [17:38:49]OFD Sender: No OFD packet to send [17:38:54]OFD Sender: No OFD packet to send [17:38:59]OFD Sender: No OFD packet to send [17:39:04]OFD Sender: No OFD packet to send [17:39:09]OFD Sender: No OFD packet to send [17:39:14]OFD Sender: No OFD packet to send [17:39:19]OFD Sender: No OFD packet to send [17:39:24]accept exits with 9 [17:39:24]New connection [17:39:24]New thread 3066928484 created [17:39:24]Thread 3066785124 joined [17:39:24]Waiting for new connection... [17:39:24] Sock 9.Parse request [17:39:24]Sock 9.Check first char [17:39:24]Sock 9.First char is OK [17:39:24]request: POST /json_proto HTTP/1.0 [17:39:24]Method: POST [17:39:24]URL: /json_proto [17:39:24]Method is POST - this is cgi request [17:39:24]url: /json_proto [17:39:24]query_string will be loaded in cgi processing [17:39:24]execute_cgi json_proto POST (null) [17:39:24]execute_cgi path=json_proto method=POST [17:39:24]POST find Content-Length [17:39:24]Host: 172.17.33.3:8080 [17:39:24]Content-Length: 677 [17:39:24]Content-Type: application/json [17:39:24] [17:39:24]POST finish read [17:39:24]Found Content-Length = 677 [17:39:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347673", "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" ] } } [17:39:24]execute_script... [17:39:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347673", "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" ] } } [17:39:24]POST & json_proto [17:39:24]process_json_proto [17:39:24]json parsed OK: [17:39:24]protocol is kg_v1.0 [17:39:24]action value=close_receipt [17:39:24]process_action close_receipt [17:39:24]cmd_close_receipt [17:39:24]MH_GetDate [17:39:24]Write to MH i2c: F0 00 00 52 AA EB [17:39:24]Write i2c OK [17:39:24]MH_I2C_Read... [17:39:24]Read from MH i2c: F0 [17:39:24]MH_I2C_Read... [17:39:24]Read from MH i2c: F0 09 00 [17:39:24]MH_I2C_Read... [17:39:24]Read from MH i2c: F0 09 00 52 AA 00 D7 14 1C 66 23 5B 8F 65 D3 [17:39:24]GetLastDocTimeStamp 1713115947 [17:39:24]current date 1713116375 [17:39:24]FM_GetShiftState [17:39:24]SAM_PROTO_GetShiftState [17:39:24]wFMCommunicate request_size=4 [17:39:24]MH_SAM_APDU [17:39:24]CAPDU: 80 13 01 00 [17:39:24]Write to MH i2c: E2 08 00 53 AA 80 13 01 00 00 00 00 00 7A [17:39:24]Write i2c OK [17:39:24]MH_I2C_Read... [17:39:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:39:24]Read from MH i2c: E2 [17:39:24]MH_I2C_Read... [17:39:24]Read from MH i2c: E2 0E 00 [17:39:24]MH_I2C_Read... [17:39:24]Read from MH i2c: E2 0E 00 53 AA 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 26 [17:39:24]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [17:39:24]wFMCommunicate OK [17:39:24]SAM_PROTO_GetShiftState done [17:39:24]FM_GetShiftState done [17:39:24]opened in 1713053951 [17:39:24]opened+sec_in_day 1713140351 [17:39:24]quantity*price = 30028 [17:39:24]sum+1 = 30029 [17:39:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 195 14.04.2024 17:39 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29285 ФПД: 102402519500455 1/tax-web-control/client/api/v1/ticket?date=20240414T173935&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29285&fm=102402519500455&tin=02508201610067®Number=0000138879044617&sum=30000 [17:39:25]StoreToDocumentArchive [17:39:25]shift 116 fd 29285 [17:39:25]save to /storage/0116/doc_00029285 [17:39:25]save last doc name /storage/0116/doc_00029285 to /storage/kkm_last_doc_name [17:39:25]save OK [17:39:25]Clear old archive folders... [17:39:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:39:25]tlvbuf is 012F3B90 [17:39:25]SAM_PROTO_ClearQueue [17:39:25]wFMCommunicate request_size=4 [17:39:25]MH_SAM_APDU [17:39:25]CAPDU: 80 09 00 00 [17:39:25]Write to MH i2c: E2 08 00 60 AA 80 09 00 00 00 00 00 00 7C [17:39:25]Write i2c OK [17:39:25]MH_I2C_Read... [17:39:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:39:25]Read from MH i2c: E2 [17:39:25]MH_I2C_Read... [17:39:25]Read from MH i2c: E2 03 00 [17:39:25]MH_I2C_Read... [17:39:25]Read from MH i2c: E2 03 00 60 AA 00 90 00 7E [17:39:25]RAPDU: 90 00 [17:39:25]wFMCommunicate OK [17:39:25]SAM_PROTO_ClearQueue done [17:39:25]KKMCreateOFDPacket [17:39:25]OFDProtocolAddRootSTLVToBuf [17:39:25]FM_MakeSignedData [17:39:25]FM_MakeSignedData [17:39:25]SAM_PROTO_SignData [17:39:25]wFMCommunicate request_size=4 [17:39:25]MH_SAM_APDU [17:39:25]CAPDU: 80 0D 01 02 [17:39:25]Write to MH i2c: E2 08 00 61 AA 80 0D 01 02 00 00 00 00 84 [17:39:25]Write i2c OK [17:39:25]MH_I2C_Read... [17:39:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:39:25]Read from MH i2c: E2 [17:39:25]MH_I2C_Read... [17:39:25]Read from MH i2c: E2 03 00 [17:39:25]MH_I2C_Read... [17:39:25]Read from MH i2c: E2 03 00 61 AA 00 90 00 7F [17:39:25]RAPDU: 90 00 [17:39:25]wFMCommunicate OK [17:39:25]wFMCommunicate request_size=255 [17:39:25]MH_SAM_APDU [17:39: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 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 C3 00 00 00 F4 03 04 00 D7 14 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 65 72 00 00 35 04 06 00 5D [17:39:25]Write to MH i2c: E2 02 01 62 AA 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 C3 00 00 00 F4 03 04 00 D7 14 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 65 72 00 00 35 04 06 00 5D 00 00 A1 [17:39:25]Write i2c OK [17:39:25]MH_I2C_Read... [17:39:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:25]Read from MH i2c: E2 [17:39:25]MH_I2C_Read... [17:39:25]Read from MH i2c: E2 03 00 [17:39:25]MH_I2C_Read... [17:39:25]Read from MH i2c: E2 03 00 62 AA 00 90 00 80 [17:39:25]RAPDU: 90 00 [17:39:25]wFMCommunicate OK [17:39:25]wFMCommunicate request_size=10 [17:39:25]MH_SAM_APDU [17:39:25]CAPDU: 80 0D 02 02 05 22 71 CC 86 A7 [17:39:25]Write to MH i2c: E2 0D 00 63 AA 80 0D 02 02 05 00 22 71 CC 86 A7 00 00 1D [17:39:25]Write i2c OK [17:39:25]MH_I2C_Read... [17:39:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:25]Read from MH i2c: E2 [17:39:25]MH_I2C_Read... [17:39:25]Read from MH i2c: E2 03 00 [17:39:25]MH_I2C_Read... [17:39:25]Read from MH i2c: E2 03 00 63 AA 00 90 00 81 [17:39:25]RAPDU: 90 00 [17:39:25]wFMCommunicate OK [17:39:25]wFMCommunicate request_size=4 [17:39:25]MH_SAM_APDU [17:39:25]CAPDU: 80 0D 03 02 [17:39:25]Write to MH i2c: E2 08 00 64 AA 80 0D 03 02 00 00 00 00 89 [17:39:25]Write i2c OK [17:39:25]MH_I2C_Read... [17:39:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:39:25]Read from MH i2c: E2 [17:39:25]MH_I2C_Read... [17:39:25]Read from MH i2c: E2 0B 00 [17:39:25]MH_I2C_Read... [17:39:25]Read from MH i2c: E2 0B 00 64 AA 00 63 43 D2 EB 5D 37 8B 82 90 00 8E [17:39:25]RAPDU: 63 43 D2 EB 5D 37 8B 82 90 00 [17:39:25]wFMCommunicate OK [17:39:25]SAM_PROTO_SignData done [17:39:25]FM_MakeSignedData done [17:39:25]CreateOFDProtocolMessage [17:39:25]wFMCommunicate request_size=4 [17:39:25]MH_SAM_APDU [17:39:25]CAPDU: 80 11 00 00 [17:39:25]Write to MH i2c: E2 08 00 65 AA 80 11 00 00 00 00 00 00 89 [17:39:25]Write i2c OK [17:39:25]MH_I2C_Read... [17:39:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:39:25]Read from MH i2c: E2 [17:39:25]MH_I2C_Read... [17:39:25]Read from MH i2c: E2 17 00 [17:39:25]MH_I2C_Read... [17:39:25]Read from MH i2c: E2 17 00 65 AA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D8 [17:39:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:39:25]wFMCommunicate OK [17:39:25]CreateOFDProtocolMessage done [17:39:25]OFDSenderStorePacket 29285 [17:39:25]StoreOFDPacket docnum=29285 [17:39:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 4C F1 07 01 53 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 C3 00 00 00 F4 03 04 00 D7 14 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 65 72 00 00 35 04 06 00 5D 22 71 CC 86 A7 63 43 D2 EB 5D 37 8B 82 [17:39:25]CheckFolder [17:39:25]dirname=/storage/ofd_packets [17:39:25]CheckFolder done [17:39:25]ProducePacketName [17:39:25]name=ofd_packets/00029285 [17:39:25]NVStorageSaveData ofd_packets/00029285 [17:39:25]File name is /storage/ofd_packets/00029285 [17:39:25]Write 301 bytes [17:39:25]NVStorageSaveData done [17:39:25]OFDSenderStorePacket done [17:39:25]KKMCreateOFDPacket done [17:39:25]NVStorageSaveData kkm_last_timestamp [17:39:25]File name is /storage/kkm_last_timestamp [17:39:25]Write 4 bytes [17:39:25]NVStorageSaveData done [17:39:25]ExternCall_PrintAddStr [17:39:25]wPrintStart [17:39:25]Write to MH i2c: 01 00 00 66 AA 10 [17:39:25]Write i2c OK [17:39:25]MH_I2C_Read... [17:39:25]Read from MH i2c: 01 [17:39:25]MH_I2C_Read... [17:39:25]Read from MH i2c: 01 07 00 [17:39:25]MH_I2C_Read... [17:39:25]Read from MH i2c: 01 07 00 66 AA 00 00 00 00 00 FF 0F 25 [17:39:25]RasterBufferAndPrint [17:39:25]line Счет N : (1)347673 [17:39:25]line ИНН: 02508201610067 [17:39:25]line Контрольно-Кассовый Чек [17:39:25]line ПРОДАЖА [17:39:25]line ТРК (МРК, ГНК) : 32 [17:39:25]line Товар: 2710124130 [17:39:25]line Аи-92-К-5 [17:39:25]line 4.670 * 64.30 [17:39:25]line = 300.28 [17:39:25]line НДС 12% НСП 1% [17:39:25]line > о реализуемом товаре [17:39:25]line ОКРУГЛЕНИЕ: -0.28 [17:39:25]line ИТОГО: 300.00 [17:39:25]line Внесено: 300.00 [17:39:25]line СДАЧА: 0.00 [17:39:25]line НСП 1% : 2.66 [17:39:25]line НДС 12% : 31.89 [17:39:25]line Наличными: 300.00 [17:39:25]line Безнал.: 0.00 [17:39:25]line Место: АЗС № 108 "Партнер Нефть" [17:39:25]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [17:39:25]line СНО: Общий режим [17:39:25]line Чек 195 14.04.2024 17:39 [17:39:25]line Смена: 116 ФФД: 1.0 [17:39:25]line ЗНМ: 0300000027 [17:39:25]line РНМ: 0000138879044617 [17:39:25]line Версия ККМ: 001 [17:39:25]line ФМ: 0000000000963154 [17:39:25]line ФД: 29285 [17:39:25]line ФПД: 102402519500455 [17:39:26]line 1/tax-web-control/client/api/v1/ticket?date=20240414T173935&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29285&fm=102402519500455&tin=02508201610067®Number=0000138879044617&sum=30000 [17:39:26]OFD Sender: Processing packet 29285 [packets to send 8, broken 7] [17:39:26]ProducePacketName [17:39:26]name=ofd_packets/00029285 [17:39:26]OFD Sender: To server: pG, [17:39:26]CommunicateWithHost lk.salyk.kg:30040 [17:39:26]ConnectInit lk.salyk.kg [17:39:26]written 0, free lines is 4095 [17:39:26]Connected sock=10 [17:39:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 4C F1 07 01 53 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 C3 00 00 00 F4 03 04 00 D7 14 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 65 72 00 00 35 04 06 00 5D 22 71 CC 86 A7 63 43 D2 EB 5D 37 8B 82 [17:39:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 A0 69 47 00 26 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 65 72 00 00 F4 03 04 00 7A BF 1B 66 B6 04 01 00 00 F4 ED 17 71 BA 60 8F 12 [17:39:26]CommunicateWithHost err = 0 [17:39:26]CheckOFDResponse [17:39:26]1017 (14) - 77093643461234 [17:39:26]1041 (16) - 0000000000963154 [17:39:26]1040 (4) - 29285 [17:39:26]1012 (4) - 14.04.2024 11:35 [17:39:26]1206 (1) - 0 [17:39:26]OFD Sender: Remove packet 29285 [17:39:26]ProducePacketName [17:39:26]name=ofd_packets/00029285 [17:39:26]NVStorageDeleteData [17:39:26]Write to MH i2c: 01 00 00 90 AA 3A [17:39:26]Write i2c OK [17:39:26]MH_I2C_Read... [17:39:26]Read from MH i2c: 01 [17:39:26]MH_I2C_Read... [17:39:26]Read from MH i2c: 01 07 00 [17:39:26]MH_I2C_Read... [17:39:26]Read from MH i2c: 01 07 00 90 AA 00 00 00 00 00 C6 0C 13 [17:39:26]RasterBufferAndPrint [17:39:26]line [17:39:26]line [17:39:26]line [17:39:26]line [17:39:26]line [17:39:26]written 0, free lines is 3274 [17:39:26]MH_Cut [17:39:26]Write to MH i2c: D1 01 00 97 AA 01 13 [17:39:26]Write i2c OK [17:39:26]MH_I2C_Read... [17:39:26]Read from MH i2c: D1 [17:39:26]MH_I2C_Read... [17:39:26]Read from MH i2c: D1 01 00 [17:39:26]MH_I2C_Read... [17:39:26]Read from MH i2c: D1 01 00 97 AA 00 12 [17:39:26]Write to MH i2c: 01 00 00 98 AA 42 [17:39:26]Write i2c OK [17:39:26]MH_I2C_Read... [17:39:26]OFD Sender: No OFD packet to send [17:39:27]*** Cut start [17:39:27]*** Partial cut [17:39:27]*** CUTSNS_PIN = 1 [17:39:27]*** CUTSNS_PIN = 0 [17:39:27]*** Brake cut motor [17:39:28]Read from MH i2c: 01 [17:39:28]MH_I2C_Read... [17:39:28]*** Stop cut motor [17:39:28]*** Cut end [17:39:28]Read from MH i2c: 01 07 00 [17:39:28]MH_I2C_Read... [17:39:28]Read from MH i2c: 01 07 00 98 AA 00 00 00 00 00 FF 0F 57 [17:39:28]process_action close_receipt done [17:39:28]requested_data is exist [17:39:28]produce_requested_data [17:39:28]requested_item fm.sn is exist - process it [17:39:28]wFMCommunicate request_size=4 [17:39:28]MH_SAM_APDU [17:39:28]CAPDU: 80 11 00 00 [17:39:28]Write to MH i2c: E2 08 00 99 AA 80 11 00 00 00 00 00 00 BD [17:39:28]Write i2c OK [17:39:28]MH_I2C_Read... [17:39:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:39:28]Read from MH i2c: E2 [17:39:28]MH_I2C_Read... [17:39:28]Read from MH i2c: E2 17 00 [17:39:28]MH_I2C_Read... [17:39:28]Read from MH i2c: E2 17 00 99 AA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 0C [17:39:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:39:28]wFMCommunicate OK [17:39:28]requested_item fd.num is exist - process it [17:39:28]SAM_PROTO_GetFieldsCounters [17:39:28]wFMCommunicate request_size=4 [17:39:28]MH_SAM_APDU [17:39:28]CAPDU: 80 13 00 00 [17:39:28]Write to MH i2c: E2 08 00 9A AA 80 13 00 00 00 00 00 00 C0 [17:39:28]Write i2c OK [17:39:28]MH_I2C_Read... [17:39:28]Read from MH i2c: E2 [17:39:28]MH_I2C_Read... [17:39:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:39:28]Read from MH i2c: E2 62 00 [17:39:28]MH_I2C_Read... [17:39:28]Read from MH i2c: E2 62 00 9A AA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 65 72 00 00 0E 04 04 00 74 00 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 92 [17:39:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 65 72 00 00 0E 04 04 00 74 00 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 [17:39:28]wFMCommunicate OK [17:39:28]SAM_PROTO_GetFieldsCounters done [17:39:28]requested_item shift.num is exist - process it [17:39:28]requested_item shift.opened is exist - process it [17:39:28]req_shift_opened [17:39:28]FM_GetShiftState [17:39:28]SAM_PROTO_GetShiftState [17:39:28]wFMCommunicate request_size=4 [17:39:28]MH_SAM_APDU [17:39:28]CAPDU: 80 13 01 00 [17:39:28]Write to MH i2c: E2 08 00 9B AA 80 13 01 00 00 00 00 00 C2 [17:39:28]Write i2c OK [17:39:28]MH_I2C_Read... [17:39:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:39:28]Read from MH i2c: E2 [17:39:28]MH_I2C_Read... [17:39:28]Read from MH i2c: E2 0E 00 [17:39:28]MH_I2C_Read... [17:39:28]Read from MH i2c: E2 0E 00 9B AA 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 6E [17:39:28]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [17:39:28]wFMCommunicate OK [17:39:28]SAM_PROTO_GetShiftState done [17:39:28]FM_GetShiftState done [17:39:28]req_shift_opened done [17:39:28]requested_item shift.open_date is exist - process it [17:39:28]req_shift_open_date [17:39:28]req_shift_open_date done [17:39:28]produce_requested_data done [17:39:28]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29285,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [17:39:28]process_action_free close_receipt [17:39:28]json_value_free [17:39:28]json_value_free done [17:39:28]process_json_proto returns [17:39:28]Send response to host [17:39:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29285,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [17:39:28]free response buf [17:39:28]execute_script done [17:39:28]execute_script returns [17:39:28]free content buf [17:39:28]Sock 9.Close socket [17:39:28]Sock 9.Thread stoped [17:39:31]OFD Sender: No OFD packet to send [17:39:36]OFD Sender: No OFD packet to send [17:39:41]OFD Sender: No OFD packet to send [17:39:46]OFD Sender: No OFD packet to send [17:39:51]OFD Sender: No OFD packet to send [17:39:56]OFD Sender: No OFD packet to send [17:40:01]OFD Sender: No OFD packet to send [17:40:06]OFD Sender: No OFD packet to send [17:40:11]OFD Sender: No OFD packet to send [17:40:16]OFD Sender: No OFD packet to send [17:40:21]OFD Sender: No OFD packet to send [17:40:26]OFD Sender: No OFD packet to send [17:40:31]OFD Sender: No OFD packet to send [17:40:36]OFD Sender: No OFD packet to send [17:40:41]OFD Sender: No OFD packet to send [17:40:46]OFD Sender: No OFD packet to send [17:40:51]OFD Sender: No OFD packet to send [17:40:57]OFD Sender: No OFD packet to send [17:41:02]OFD Sender: No OFD packet to send [17:41:05]accept exits with 7 [17:41:05]New connection [17:41:05]New thread 3066785124 created [17:41:05]Thread 3066928484 joined [17:41:05]Waiting for new connection... [17:41:05] Sock 7.Parse request [17:41:05]Sock 7.Check first char [17:41:05]Sock 7.First char is OK [17:41:05]request: POST /json_proto HTTP/1.0 [17:41:05]Method: POST [17:41:05]URL: /json_proto [17:41:05]Method is POST - this is cgi request [17:41:05]url: /json_proto [17:41:05]query_string will be loaded in cgi processing [17:41:05]execute_cgi json_proto POST (null) [17:41:05]execute_cgi path=json_proto method=POST [17:41:05]POST find Content-Length [17:41:05]Host: 172.17.33.3:8080 [17:41:05]Content-Length: 843 [17:41:05]Content-Type: application/json [17:41:05] [17:41:05]POST finish read [17:41:05]Found Content-Length = 843 [17:41:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347674", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:41:05]execute_script... [17:41: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)347674", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:41:05]POST & json_proto [17:41:05]process_json_proto [17:41:05]json parsed OK: [17:41:05]protocol is kg_v1.0 [17:41:05]action value=close_receipt [17:41:05]process_action close_receipt [17:41:05]cmd_close_receipt [17:41:05]MH_GetDate [17:41:05]Write to MH i2c: F0 00 00 9C AA 35 [17:41:05]Write i2c OK [17:41:05]MH_I2C_Read... [17:41:05]Read from MH i2c: F0 [17:41:05]MH_I2C_Read... [17:41:05]Read from MH i2c: F0 09 00 [17:41:05]MH_I2C_Read... [17:41:05]Read from MH i2c: F0 09 00 9C AA 00 3C 15 1C 66 23 5B 8F 65 83 [17:41:05]GetLastDocTimeStamp 1713116375 [17:41:05]current date 1713116476 [17:41:05]FM_GetShiftState [17:41:05]SAM_PROTO_GetShiftState [17:41:05]wFMCommunicate request_size=4 [17:41:05]MH_SAM_APDU [17:41:05]CAPDU: 80 13 01 00 [17:41:05]Write to MH i2c: E2 08 00 9D AA 80 13 01 00 00 00 00 00 C4 [17:41:05]Write i2c OK [17:41:05]MH_I2C_Read... [17:41:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:41:05]Read from MH i2c: E2 [17:41:05]MH_I2C_Read... [17:41:05]Read from MH i2c: E2 0E 00 [17:41:05]MH_I2C_Read... [17:41:05]Read from MH i2c: E2 0E 00 9D AA 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 70 [17:41:05]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [17:41:05]wFMCommunicate OK [17:41:05]SAM_PROTO_GetShiftState done [17:41:05]FM_GetShiftState done [17:41:05]opened in 1713053951 [17:41:05]opened+sec_in_day 1713140351 [17:41:05]quantity*price = 100050 [17:41:05]sum+1 = 100052 [17:41:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 196 14.04.2024 17:41 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 29286 ФПД: 170605731058833 1/tax-web-control/client/api/v1/ticket?date=20240414T174116&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29286&fm=170605731058833&tin=02508201610067®Number=0000138879044617&sum=100051 [17:41:06]StoreToDocumentArchive [17:41:06]shift 116 fd 29286 [17:41:06]save to /storage/0116/doc_00029286 [17:41:06]save last doc name /storage/0116/doc_00029286 to /storage/kkm_last_doc_name [17:41:06]save OK [17:41:06]Clear old archive folders... [17:41:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:41:06]tlvbuf is 012F37F0 [17:41:06]SAM_PROTO_ClearQueue [17:41:06]wFMCommunicate request_size=4 [17:41:06]MH_SAM_APDU [17:41:06]CAPDU: 80 09 00 00 [17:41:06]Write to MH i2c: E2 08 00 AA AA 80 09 00 00 00 00 00 00 C6 [17:41:06]Write i2c OK [17:41:06]MH_I2C_Read... [17:41:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:41:06]Read from MH i2c: E2 [17:41:06]MH_I2C_Read... [17:41:06]Read from MH i2c: E2 03 00 [17:41:06]MH_I2C_Read... [17:41:06]Read from MH i2c: E2 03 00 AA AA 00 90 00 C8 [17:41:06]RAPDU: 90 00 [17:41:06]wFMCommunicate OK [17:41:06]SAM_PROTO_ClearQueue done [17:41:06]KKMCreateOFDPacket [17:41:06]OFDProtocolAddRootSTLVToBuf [17:41:06]FM_MakeSignedData [17:41:06]FM_MakeSignedData [17:41:06]SAM_PROTO_SignData [17:41:06]wFMCommunicate request_size=4 [17:41:06]MH_SAM_APDU [17:41:06]CAPDU: 80 0D 01 02 [17:41:06]Write to MH i2c: E2 08 00 AB AA 80 0D 01 02 00 00 00 00 CE [17:41:06]Write i2c OK [17:41:06]MH_I2C_Read... [17:41:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:41:06]Read from MH i2c: E2 [17:41:06]MH_I2C_Read... [17:41:06]Read from MH i2c: E2 03 00 [17:41:06]MH_I2C_Read... [17:41:06]Read from MH i2c: E2 03 00 AB AA 00 90 00 C9 [17:41:06]RAPDU: 90 00 [17:41:06]wFMCommunicate OK [17:41:06]wFMCommunicate request_size=255 [17:41:06]MH_SAM_APDU [17:41: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 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 C4 00 00 00 F4 03 04 00 3C 15 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 66 72 00 00 35 04 06 00 9B [17:41:06]Write to MH i2c: E2 02 01 AC AA 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 C4 00 00 00 F4 03 04 00 3C 15 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 66 72 00 00 35 04 06 00 9B 00 00 DE [17:41:06]Write i2c OK [17:41:06]MH_I2C_Read... [17:41:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:41:06]Read from MH i2c: E2 [17:41:06]MH_I2C_Read... [17:41:06]Read from MH i2c: E2 03 00 [17:41:06]MH_I2C_Read... [17:41:06]Read from MH i2c: E2 03 00 AC AA 00 90 00 CA [17:41:06]RAPDU: 90 00 [17:41:06]wFMCommunicate OK [17:41:06]wFMCommunicate request_size=10 [17:41:06]MH_SAM_APDU [17:41:06]CAPDU: 80 0D 02 02 05 2A 3D FF 14 91 [17:41:06]Write to MH i2c: E2 0D 00 AD AA 80 0D 02 02 05 00 2A 3D FF 14 91 00 00 E6 [17:41:06]Write i2c OK [17:41:06]MH_I2C_Read... [17:41:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:41:06]Read from MH i2c: E2 [17:41:06]MH_I2C_Read... [17:41:06]Read from MH i2c: E2 03 00 [17:41:06]MH_I2C_Read... [17:41:06]Read from MH i2c: E2 03 00 AD AA 00 90 00 CB [17:41:06]RAPDU: 90 00 [17:41:06]wFMCommunicate OK [17:41:06]wFMCommunicate request_size=4 [17:41:06]MH_SAM_APDU [17:41:06]CAPDU: 80 0D 03 02 [17:41:06]Write to MH i2c: E2 08 00 AE AA 80 0D 03 02 00 00 00 00 D3 [17:41:06]Write i2c OK [17:41:06]MH_I2C_Read... [17:41:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:41:06]Read from MH i2c: E2 [17:41:06]MH_I2C_Read... [17:41:06]Read from MH i2c: E2 0B 00 [17:41:06]MH_I2C_Read... [17:41:06]Read from MH i2c: E2 0B 00 AE AA 00 FC 16 12 E5 AF 74 EF 43 90 00 32 [17:41:06]RAPDU: FC 16 12 E5 AF 74 EF 43 90 00 [17:41:06]wFMCommunicate OK [17:41:06]SAM_PROTO_SignData done [17:41:06]FM_MakeSignedData done [17:41:06]CreateOFDProtocolMessage [17:41:06]wFMCommunicate request_size=4 [17:41:06]MH_SAM_APDU [17:41:06]CAPDU: 80 11 00 00 [17:41:06]Write to MH i2c: E2 08 00 AF AA 80 11 00 00 00 00 00 00 D3 [17:41:06]Write i2c OK [17:41:06]MH_I2C_Read... [17:41:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:41:07]Read from MH i2c: E2 [17:41:07]MH_I2C_Read... [17:41:07]Read from MH i2c: E2 17 00 [17:41:07]MH_I2C_Read... [17:41:07]Read from MH i2c: E2 17 00 AF AA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 22 [17:41:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:41:07]wFMCommunicate OK [17:41:07]CreateOFDProtocolMessage done [17:41:07]OFDSenderStorePacket 29286 [17:41:07]StoreOFDPacket docnum=29286 [17:41:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 8B 9C 07 01 D8 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 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 C4 00 00 00 F4 03 04 00 3C 15 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 66 72 00 00 35 04 06 00 9B 2A 3D FF 14 91 FC 16 12 E5 AF 74 EF 43 [17:41:07]CheckFolder [17:41:07]dirname=/storage/ofd_packets [17:41:07]CheckFolder done [17:41:07]ProducePacketName [17:41:07]name=ofd_packets/00029286 [17:41:07]NVStorageSaveData ofd_packets/00029286 [17:41:07]File name is /storage/ofd_packets/00029286 [17:41:07]Write 301 bytes [17:41:07]NVStorageSaveData done [17:41:07]OFDSenderStorePacket done [17:41:07]KKMCreateOFDPacket done [17:41:07]NVStorageSaveData kkm_last_timestamp [17:41:07]File name is /storage/kkm_last_timestamp [17:41:07]OFD Sender: Processing packet 29286 [packets to send 8, broken 7] [17:41:07]ProducePacketName [17:41:07]name=ofd_packets/00029286 [17:41:07]OFD Sender: To server: pG, [17:41:07]CommunicateWithHost lk.salyk.kg:30040 [17:41:07]ConnectInit lk.salyk.kg [17:41:07]Write 4 bytes [17:41:07]NVStorageSaveData done [17:41:07]ExternCall_PrintAddStr [17:41:07]wPrintStart [17:41:07]Write to MH i2c: 01 00 00 B0 AA 5A [17:41:07]Write i2c OK [17:41:07]MH_I2C_Read... [17:41:07]Read from MH i2c: 01 [17:41:07]MH_I2C_Read... [17:41:07]Read from MH i2c: 01 07 00 [17:41:07]MH_I2C_Read... [17:41:07]Read from MH i2c: 01 07 00 B0 AA 00 00 00 00 00 FF 0F 6F [17:41:07]RasterBufferAndPrint [17:41:07]line Счет N : (1)347674 [17:41:07]line ИНН: 02508201610067 [17:41:07]line Контрольно-Кассовый Чек [17:41:07]line ПРОДАЖА [17:41:07]line ТРК (МРК, ГНК) : 13 [17:41:07]line Товар: 2710124130 [17:41:07]line Аи-92-К-5 [17:41:07]line 15.560 * 64.30 [17:41:07]line = 1000.51 [17:41:07]line НДС 12% НСП 1% [17:41:07]line > о реализуемом товаре [17:41:07]line ИТОГО: 1000.51 [17:41:07]line НСП 1% : 8.85 [17:41:07]line НДС 12% : 106.25 [17:41:07]line Наличными: 0.00 [17:41:07]line Безнал.: 1000.51 [17:41:07]line Место: АЗС № 108 "Партнер Нефть" [17:41:07]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [17:41:07]line СНО: Общий режим [17:41:07]line Чек 196 14.04.2024 17:41 [17:41:07]line Смена: 116 ФФД: 1.0 [17:41:07]line ЗНМ: 0300000027 [17:41:07]line РНМ: 0000138879044617 [17:41:07]line Версия ККМ: 001 [17:41:07]line Платежная система: АКБ Кыргызстан [17:41:07]line ФМ: 0000000000963154 [17:41:07]line ФД: 29286 [17:41:07]line ФПД: 170605731058833 [17:41:07]line 1/tax-web-control/client/api/v1/ticket?date=20240414T174116&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29286&fm=170605731058833&tin=02508201610067®Number=0000138879044617&sum=100051 [17:41:07]Connected sock=11 [17:41:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 8B 9C 07 01 D8 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 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 C4 00 00 00 F4 03 04 00 3C 15 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 66 72 00 00 35 04 06 00 9B 2A 3D FF 14 91 FC 16 12 E5 AF 74 EF 43 [17:41:07]written 0, free lines is 4095 [17:41:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 C1 BF 47 00 C2 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 39 36 33 31 35 34 10 04 04 00 66 72 00 00 F4 03 04 00 DF BF 1B 66 B6 04 01 00 00 5C 8F 7B 5D DA 5B 16 77 [17:41:07]CommunicateWithHost err = 0 [17:41:07]CheckOFDResponse [17:41:07]1017 (14) - 77093643461234 [17:41:07]1041 (16) - 0000000000963154 [17:41:07]1040 (4) - 29286 [17:41:07]1012 (4) - 14.04.2024 11:37 [17:41:07]1206 (1) - 0 [17:41:07]OFD Sender: Remove packet 29286 [17:41:07]ProducePacketName [17:41:07]name=ofd_packets/00029286 [17:41:07]NVStorageDeleteData [17:41:07]Write to MH i2c: 01 00 00 D9 AA 83 [17:41:07]Write i2c OK [17:41:07]MH_I2C_Read... [17:41:07]Read from MH i2c: 01 [17:41:07]MH_I2C_Read... [17:41:07]Read from MH i2c: 01 07 00 [17:41:07]MH_I2C_Read... [17:41:07]Read from MH i2c: 01 07 00 D9 AA 00 00 00 00 00 D8 0C 6E [17:41:07]RasterBufferAndPrint [17:41:07]line [17:41:07]line [17:41:07]line [17:41:07]line [17:41:07]line [17:41:07]written 0, free lines is 3297 [17:41:07]MH_Cut [17:41:07]Write to MH i2c: D1 01 00 E0 AA 01 5C [17:41:07]Write i2c OK [17:41:07]MH_I2C_Read... [17:41:07]Read from MH i2c: D1 [17:41:07]MH_I2C_Read... [17:41:07]Read from MH i2c: D1 01 00 [17:41:07]MH_I2C_Read... [17:41:07]Read from MH i2c: D1 01 00 E0 AA 00 5B [17:41:07]Write to MH i2c: 01 00 00 E1 AA 8B [17:41:07]Write i2c OK [17:41:07]MH_I2C_Read... [17:41:08]OFD Sender: No OFD packet to send [17:41:08]*** Cut start [17:41:08]*** Partial cut [17:41:08]*** CUTSNS_PIN = 1 [17:41:08]*** CUTSNS_PIN = 0 [17:41:08]*** Brake cut motor [17:41:09]Read from MH i2c: 01 [17:41:09]MH_I2C_Read... [17:41:09]*** Stop cut motor [17:41:09]*** Cut end [17:41:09]Read from MH i2c: 01 07 00 [17:41:09]MH_I2C_Read... [17:41:09]Read from MH i2c: 01 07 00 E1 AA 00 00 00 00 00 FF 0F A0 [17:41:09]process_action close_receipt done [17:41:09]requested_data is exist [17:41:09]produce_requested_data [17:41:09]requested_item fm.sn is exist - process it [17:41:09]wFMCommunicate request_size=4 [17:41:09]MH_SAM_APDU [17:41:09]CAPDU: 80 11 00 00 [17:41:09]Write to MH i2c: E2 08 00 E2 AA 80 11 00 00 00 00 00 00 06 [17:41:09]Write i2c OK [17:41:09]MH_I2C_Read... [17:41:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:41:09]Read from MH i2c: E2 [17:41:09]MH_I2C_Read... [17:41:09]Read from MH i2c: E2 17 00 [17:41:09]MH_I2C_Read... [17:41:09]Read from MH i2c: E2 17 00 E2 AA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 55 [17:41:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:41:09]wFMCommunicate OK [17:41:09]requested_item fd.num is exist - process it [17:41:09]SAM_PROTO_GetFieldsCounters [17:41:09]wFMCommunicate request_size=4 [17:41:09]MH_SAM_APDU [17:41:09]CAPDU: 80 13 00 00 [17:41:09]Write to MH i2c: E2 08 00 E3 AA 80 13 00 00 00 00 00 00 09 [17:41:09]Write i2c OK [17:41:09]MH_I2C_Read... [17:41:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:41:09]Read from MH i2c: E2 [17:41:09]MH_I2C_Read... [17:41:09]Read from MH i2c: E2 62 00 [17:41:09]MH_I2C_Read... [17:41:09]Read from MH i2c: E2 62 00 E3 AA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 66 72 00 00 0E 04 04 00 74 00 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 DF [17:41:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 66 72 00 00 0E 04 04 00 74 00 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 [17:41:09]wFMCommunicate OK [17:41:09]SAM_PROTO_GetFieldsCounters done [17:41:09]requested_item shift.num is exist - process it [17:41:09]requested_item shift.opened is exist - process it [17:41:09]req_shift_opened [17:41:09]FM_GetShiftState [17:41:09]SAM_PROTO_GetShiftState [17:41:09]wFMCommunicate request_size=4 [17:41:09]MH_SAM_APDU [17:41:09]CAPDU: 80 13 01 00 [17:41:09]Write to MH i2c: E2 08 00 E4 AA 80 13 01 00 00 00 00 00 0B [17:41:09]Write i2c OK [17:41:09]MH_I2C_Read... [17:41:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:41:09]Read from MH i2c: E2 [17:41:09]MH_I2C_Read... [17:41:09]Read from MH i2c: E2 0E 00 [17:41:09]MH_I2C_Read... [17:41:09]Read from MH i2c: E2 0E 00 E4 AA 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 B7 [17:41:09]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [17:41:09]wFMCommunicate OK [17:41:09]SAM_PROTO_GetShiftState done [17:41:09]FM_GetShiftState done [17:41:09]req_shift_opened done [17:41:09]requested_item shift.open_date is exist - process it [17:41:09]req_shift_open_date [17:41:09]req_shift_open_date done [17:41:09]produce_requested_data done [17:41:09]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29286,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [17:41:09]process_action_free close_receipt [17:41:09]json_value_free [17:41:09]json_value_free done [17:41:09]process_json_proto returns [17:41:09]Send response to host [17:41:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29286,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [17:41:09]free response buf [17:41:09]execute_script done [17:41:09]execute_script returns [17:41:09]free content buf [17:41:09]Sock 7.Close socket [17:41:09]Sock 7.Thread stoped [17:41:13]OFD Sender: No OFD packet to send [17:41:18]OFD Sender: No OFD packet to send [17:41:23]OFD Sender: No OFD packet to send [17:41:28]OFD Sender: No OFD packet to send [17:41:33]OFD Sender: No OFD packet to send [17:41:38]OFD Sender: No OFD packet to send [17:41:43]OFD Sender: No OFD packet to send [17:41:48]OFD Sender: No OFD packet to send [17:41:53]OFD Sender: No OFD packet to send [17:41:58]OFD Sender: No OFD packet to send [17:42:03]OFD Sender: No OFD packet to send [17:42:08]OFD Sender: No OFD packet to send [17:42:13]OFD Sender: No OFD packet to send [17:42:18]OFD Sender: No OFD packet to send [17:42:23]OFD Sender: No OFD packet to send [17:42:28]OFD Sender: No OFD packet to send [17:42:33]OFD Sender: No OFD packet to send [17:42:38]OFD Sender: No OFD packet to send [17:42:43]OFD Sender: No OFD packet to send [17:42:48]OFD Sender: No OFD packet to send [17:42:53]OFD Sender: No OFD packet to send [17:42:57]accept exits with 9 [17:42:57]New connection [17:42:57]New thread 3066928484 created [17:42:57]Thread 3066785124 joined [17:42:57]Waiting for new connection... [17:42:57] Sock 9.Parse request [17:42:57]Sock 9.Check first char [17:42:57]Sock 9.First char is OK [17:42:57]request: POST /json_proto HTTP/1.0 [17:42:57]Method: POST [17:42:57]URL: /json_proto [17:42:57]Method is POST - this is cgi request [17:42:57]url: /json_proto [17:42:57]query_string will be loaded in cgi processing [17:42:57]execute_cgi json_proto POST (null) [17:42:57]execute_cgi path=json_proto method=POST [17:42:57]POST find Content-Length [17:42:57]Host: 172.17.33.3:8080 [17:42:57]Content-Length: 677 [17:42:57]Content-Type: application/json [17:42:57] [17:42:57]POST finish read [17:42:57]Found Content-Length = 677 [17:42:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347675", "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" ] } } [17:42:57]execute_script... [17:42: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)347675", "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" ] } } [17:42:57]POST & json_proto [17:42:57]process_json_proto [17:42:57]json parsed OK: [17:42:57]protocol is kg_v1.0 [17:42:57]action value=close_receipt [17:42:57]process_action close_receipt [17:42:57]cmd_close_receipt [17:42:57]MH_GetDate [17:42:57]Write to MH i2c: F0 00 00 E5 AA 7E [17:42:57]Write i2c OK [17:42:57]MH_I2C_Read... [17:42:57]Read from MH i2c: F0 [17:42:57]MH_I2C_Read... [17:42:57]Read from MH i2c: F0 09 00 [17:42:57]MH_I2C_Read... [17:42:57]Read from MH i2c: F0 09 00 E5 AA 00 AC 15 1C 66 23 5B 8F 65 3C [17:42:57]GetLastDocTimeStamp 1713116476 [17:42:57]current date 1713116588 [17:42:57]FM_GetShiftState [17:42:57]SAM_PROTO_GetShiftState [17:42:57]wFMCommunicate request_size=4 [17:42:57]MH_SAM_APDU [17:42:57]CAPDU: 80 13 01 00 [17:42:57]Write to MH i2c: E2 08 00 E6 AA 80 13 01 00 00 00 00 00 0D [17:42:57]Write i2c OK [17:42:57]MH_I2C_Read... [17:42:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:42:57]Read from MH i2c: E2 [17:42:57]MH_I2C_Read... [17:42:57]Read from MH i2c: E2 0E 00 [17:42:57]MH_I2C_Read... [17:42:57]Read from MH i2c: E2 0E 00 E6 AA 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 B9 [17:42:57]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [17:42:57]wFMCommunicate OK [17:42:57]SAM_PROTO_GetShiftState done [17:42:57]FM_GetShiftState done [17:42:57]opened in 1713053951 [17:42:57]opened+sec_in_day 1713140351 [17:42:57]quantity*price = 30028 [17:42:57]sum+1 = 30029 [17:42: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 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 197 14.04.2024 17:43 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29287 ФПД: 97947095714037 1/tax-web-control/client/api/v1/ticket?date=20240414T174308&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29287&fm=97947095714037&tin=02508201610067®Number=0000138879044617&sum=30000 [17:42:58]StoreToDocumentArchive [17:42:58]shift 116 fd 29287 [17:42:58]save to /storage/0116/doc_00029287 [17:42:58]save last doc name /storage/0116/doc_00029287 to /storage/kkm_last_doc_name [17:42:58]save OK [17:42:58]Clear old archive folders... [17:42:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:42:58]tlvbuf is 011F8050 [17:42:58]SAM_PROTO_ClearQueue [17:42:58]wFMCommunicate request_size=4 [17:42:58]MH_SAM_APDU [17:42:58]CAPDU: 80 09 00 00 [17:42:58]Write to MH i2c: E2 08 00 F3 AA 80 09 00 00 00 00 00 00 0F [17:42:58]Write i2c OK [17:42:58]MH_I2C_Read... [17:42:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:42:58]Read from MH i2c: E2 [17:42:58]MH_I2C_Read... [17:42:58]Read from MH i2c: E2 03 00 [17:42:58]MH_I2C_Read... [17:42:58]Read from MH i2c: E2 03 00 F3 AA 00 90 00 11 [17:42:58]RAPDU: 90 00 [17:42:58]wFMCommunicate OK [17:42:58]SAM_PROTO_ClearQueue done [17:42:58]KKMCreateOFDPacket [17:42:58]OFDProtocolAddRootSTLVToBuf [17:42:58]FM_MakeSignedData [17:42:58]FM_MakeSignedData [17:42:58]SAM_PROTO_SignData [17:42:58]wFMCommunicate request_size=4 [17:42:58]MH_SAM_APDU [17:42:58]CAPDU: 80 0D 01 02 [17:42:58]Write to MH i2c: E2 08 00 F4 AA 80 0D 01 02 00 00 00 00 17 [17:42:58]Write i2c OK [17:42:58]MH_I2C_Read... [17:42:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:42:58]Read from MH i2c: E2 [17:42:58]MH_I2C_Read... [17:42:58]Read from MH i2c: E2 03 00 [17:42:58]MH_I2C_Read... [17:42:58]Read from MH i2c: E2 03 00 F4 AA 00 90 00 12 [17:42:58]RAPDU: 90 00 [17:42:58]wFMCommunicate OK [17:42:58]wFMCommunicate request_size=255 [17:42:58]MH_SAM_APDU [17:42: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 C5 00 00 00 F4 03 04 00 AC 15 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 67 72 00 00 35 04 06 00 59 [17:42:58]Write to MH i2c: E2 02 01 F5 AA 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 C5 00 00 00 F4 03 04 00 AC 15 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 67 72 00 00 35 04 06 00 59 00 00 0A [17:42:58]Write i2c OK [17:42:58]MH_I2C_Read... [17:42:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:42:59]Read from MH i2c: E2 [17:42:59]MH_I2C_Read... [17:42:59]Read from MH i2c: E2 03 00 [17:42:59]MH_I2C_Read... [17:42:59]Read from MH i2c: E2 03 00 F5 AA 00 90 00 13 [17:42:59]RAPDU: 90 00 [17:42:59]wFMCommunicate OK [17:42:59]wFMCommunicate request_size=10 [17:42:59]MH_SAM_APDU [17:42:59]CAPDU: 80 0D 02 02 05 15 15 D8 C8 F5 [17:42:59]Write to MH i2c: E2 0D 00 F6 AA 80 0D 02 02 05 00 15 15 D8 C8 F5 00 00 E3 [17:42:59]Write i2c OK [17:42:59]MH_I2C_Read... [17:42:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:42:59]Read from MH i2c: E2 [17:42:59]MH_I2C_Read... [17:42:59]Read from MH i2c: E2 03 00 [17:42:59]MH_I2C_Read... [17:42:59]Read from MH i2c: E2 03 00 F6 AA 00 90 00 14 [17:42:59]RAPDU: 90 00 [17:42:59]wFMCommunicate OK [17:42:59]wFMCommunicate request_size=4 [17:42:59]MH_SAM_APDU [17:42:59]CAPDU: 80 0D 03 02 [17:42:59]Write to MH i2c: E2 08 00 F7 AA 80 0D 03 02 00 00 00 00 1C [17:42:59]Write i2c OK [17:42:59]MH_I2C_Read... [17:42:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:42:59]Read from MH i2c: E2 [17:42:59]MH_I2C_Read... [17:42:59]Read from MH i2c: E2 0B 00 [17:42:59]MH_I2C_Read... [17:42:59]Read from MH i2c: E2 0B 00 F7 AA 00 85 25 D8 84 3D A3 18 5B 90 00 76 [17:42:59]RAPDU: 85 25 D8 84 3D A3 18 5B 90 00 [17:42:59]wFMCommunicate OK [17:42:59]SAM_PROTO_SignData done [17:42:59]FM_MakeSignedData done [17:42:59]CreateOFDProtocolMessage [17:42:59]wFMCommunicate request_size=4 [17:42:59]MH_SAM_APDU [17:42:59]CAPDU: 80 11 00 00 [17:42:59]Write to MH i2c: E2 08 00 F8 AA 80 11 00 00 00 00 00 00 1C [17:42:59]Write i2c OK [17:42:59]MH_I2C_Read... [17:42:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:42:59]Read from MH i2c: E2 [17:42:59]MH_I2C_Read... [17:42:59]Read from MH i2c: E2 17 00 [17:42:59]MH_I2C_Read... [17:42:59]Read from MH i2c: E2 17 00 F8 AA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 6B [17:42:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:42:59]wFMCommunicate OK [17:42:59]CreateOFDProtocolMessage done [17:42:59]OFDSenderStorePacket 29287 [17:42:59]StoreOFDPacket docnum=29287 [17:42:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 4C 92 07 01 85 D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 C5 00 00 00 F4 03 04 00 AC 15 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 67 72 00 00 35 04 06 00 59 15 15 D8 C8 F5 85 25 D8 84 3D A3 18 5B [17:42:59]CheckFolder [17:42:59]dirname=/storage/ofd_packets [17:42:59]CheckFolder done [17:42:59]ProducePacketName [17:42:59]name=ofd_packets/00029287 [17:42:59]NVStorageSaveData ofd_packets/00029287 [17:42:59]File name is /storage/ofd_packets/00029287 [17:42:59]Write 301 bytes [17:42:59]NVStorageSaveData done [17:42:59]OFDSenderStorePacket done [17:42:59]KKMCreateOFDPacket done [17:42:59]NVStorageSaveData kkm_last_timestamp [17:42:59]File name is /storage/kkm_last_timestamp [17:42:59]Write 4 bytes [17:42:59]NVStorageSaveData done [17:42:59]ExternCall_PrintAddStr [17:42:59]wPrintStart [17:42:59]Write to MH i2c: 01 00 00 F9 AA A3 [17:42:59]Write i2c OK [17:42:59]MH_I2C_Read... [17:42:59]Read from MH i2c: 01 [17:42:59]MH_I2C_Read... [17:42:59]Read from MH i2c: 01 07 00 [17:42:59]MH_I2C_Read... [17:42:59]Read from MH i2c: 01 07 00 F9 AA 00 00 00 00 00 FF 0F B8 [17:42:59]RasterBufferAndPrint [17:42:59]line Счет N : (1)347675 [17:42:59]line ИНН: 02508201610067 [17:42:59]line Контрольно-Кассовый Чек [17:42:59]line ПРОДАЖА [17:42:59]line ТРК (МРК, ГНК) : 32 [17:42:59]line Товар: 2710124130 [17:42:59]line Аи-92-К-5 [17:42:59]line 4.670 * 64.30 [17:42:59]line = 300.28 [17:42:59]line НДС 12% НСП 1% [17:42:59]line > о реализуемом товаре [17:42:59]line ОКРУГЛЕНИЕ: -0.28 [17:42:59]line ИТОГО: 300.00 [17:42:59]line Внесено: 300.00 [17:42:59]line СДАЧА: 0.00 [17:42:59]line НСП 1% : 2.66 [17:42:59]line НДС 12% : 31.89 [17:42:59]line Наличными: 300.00 [17:42:59]line Безнал.: 0.00 [17:42:59]line Место: АЗС № 108 "Партнер Нефть" [17:42:59]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [17:42:59]line СНО: Общий режим [17:42:59]line Чек 197 14.04.2024 17:43 [17:42:59]line Смена: 116 ФФД: 1.0 [17:42:59]line ЗНМ: 0300000027 [17:42:59]line РНМ: 0000138879044617 [17:42:59]line Версия ККМ: 001 [17:42:59]line ФМ: 0000000000963154 [17:42:59]line ФД: 29287 [17:42:59]line ФПД: 97947095714037 [17:42:59]line 1/tax-web-control/client/api/v1/ticket?date=20240414T174308&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29287&fm=97947095714037&tin=02508201610067®Number=0000138879044617&sum=30000 [17:42:59]OFD Sender: Processing packet 29287 [packets to send 8, broken 7] [17:42:59]ProducePacketName [17:42:59]name=ofd_packets/00029287 [17:42:59]OFD Sender: To server: pG, [17:42:59]CommunicateWithHost lk.salyk.kg:30040 [17:42:59]ConnectInit lk.salyk.kg [17:42:59]written 0, free lines is 4095 [17:42:59]Connected sock=10 [17:42:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 4C 92 07 01 85 D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 C5 00 00 00 F4 03 04 00 AC 15 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 67 72 00 00 35 04 06 00 59 15 15 D8 C8 F5 85 25 D8 84 3D A3 18 5B [17:42:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 8F 68 47 00 CA EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 67 72 00 00 F4 03 04 00 50 C0 1B 66 B6 04 01 00 00 1E 85 CB 9F C4 D6 BC F5 [17:42:59]CommunicateWithHost err = 0 [17:42:59]CheckOFDResponse [17:42:59]1017 (14) - 77093643461234 [17:42:59]1041 (16) - 0000000000963154 [17:42:59]1040 (4) - 29287 [17:42:59]1012 (4) - 14.04.2024 11:38 [17:42:59]1206 (1) - 0 [17:42:59]OFD Sender: Remove packet 29287 [17:42:59]ProducePacketName [17:42:59]name=ofd_packets/00029287 [17:42:59]NVStorageDeleteData [17:43:00]Write to MH i2c: 01 00 00 23 AB CE [17:43:00]Write i2c OK [17:43:00]MH_I2C_Read... [17:43:00]Read from MH i2c: 01 [17:43:00]MH_I2C_Read... [17:43:00]Read from MH i2c: 01 07 00 [17:43:00]MH_I2C_Read... [17:43:00]Read from MH i2c: 01 07 00 23 AB 00 00 00 00 00 C4 0C A5 [17:43:00]RasterBufferAndPrint [17:43:00]line [17:43:00]line [17:43:00]line [17:43:00]line [17:43:00]line [17:43:00]written 0, free lines is 3274 [17:43:00]MH_Cut [17:43:00]Write to MH i2c: D1 01 00 2A AB 01 A7 [17:43:00]Write i2c OK [17:43:00]MH_I2C_Read... [17:43:00]Read from MH i2c: D1 [17:43:00]MH_I2C_Read... [17:43:00]Read from MH i2c: D1 01 00 [17:43:00]MH_I2C_Read... [17:43:00]Read from MH i2c: D1 01 00 2A AB 00 A6 [17:43:00]Write to MH i2c: 01 00 00 2B AB D6 [17:43:00]Write i2c OK [17:43:00]MH_I2C_Read... [17:43:00]OFD Sender: No OFD packet to send [17:43:00]*** Cut start [17:43:00]*** Partial cut [17:43:00]*** CUTSNS_PIN = 1 [17:43:01]*** CUTSNS_PIN = 0 [17:43:01]*** Brake cut motor [17:43:01]Read from MH i2c: 01 [17:43:01]MH_I2C_Read... [17:43:01]*** Stop cut motor [17:43:01]*** Cut end [17:43:01]Read from MH i2c: 01 07 00 [17:43:01]MH_I2C_Read... [17:43:01]Read from MH i2c: 01 07 00 2B AB 00 00 00 00 00 FF 0F EB [17:43:01]process_action close_receipt done [17:43:01]requested_data is exist [17:43:01]produce_requested_data [17:43:01]requested_item fm.sn is exist - process it [17:43:01]wFMCommunicate request_size=4 [17:43:01]MH_SAM_APDU [17:43:01]CAPDU: 80 11 00 00 [17:43:01]Write to MH i2c: E2 08 00 2C AB 80 11 00 00 00 00 00 00 51 [17:43:01]Write i2c OK [17:43:01]MH_I2C_Read... [17:43:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:43:01]Read from MH i2c: E2 [17:43:01]MH_I2C_Read... [17:43:01]Read from MH i2c: E2 17 00 [17:43:01]MH_I2C_Read... [17:43:01]Read from MH i2c: E2 17 00 2C AB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A0 [17:43:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:43:01]wFMCommunicate OK [17:43:01]requested_item fd.num is exist - process it [17:43:01]SAM_PROTO_GetFieldsCounters [17:43:01]wFMCommunicate request_size=4 [17:43:01]MH_SAM_APDU [17:43:01]CAPDU: 80 13 00 00 [17:43:01]Write to MH i2c: E2 08 00 2D AB 80 13 00 00 00 00 00 00 54 [17:43:01]Write i2c OK [17:43:01]MH_I2C_Read... [17:43:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:43:01]Read from MH i2c: E2 [17:43:01]MH_I2C_Read... [17:43:01]Read from MH i2c: E2 62 00 [17:43:01]MH_I2C_Read... [17:43:01]Read from MH i2c: E2 62 00 2D AB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 67 72 00 00 0E 04 04 00 74 00 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 2E [17:43:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 67 72 00 00 0E 04 04 00 74 00 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 [17:43:01]wFMCommunicate OK [17:43:01]SAM_PROTO_GetFieldsCounters done [17:43:01]requested_item shift.num is exist - process it [17:43:01]requested_item shift.opened is exist - process it [17:43:01]req_shift_opened [17:43:01]FM_GetShiftState [17:43:01]SAM_PROTO_GetShiftState [17:43:01]wFMCommunicate request_size=4 [17:43:01]MH_SAM_APDU [17:43:01]CAPDU: 80 13 01 00 [17:43:01]Write to MH i2c: E2 08 00 2E AB 80 13 01 00 00 00 00 00 56 [17:43:01]Write i2c OK [17:43:01]MH_I2C_Read... [17:43:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:43:01]Read from MH i2c: E2 [17:43:01]MH_I2C_Read... [17:43:01]Read from MH i2c: E2 0E 00 [17:43:01]MH_I2C_Read... [17:43:01]Read from MH i2c: E2 0E 00 2E AB 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 02 [17:43:01]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [17:43:01]wFMCommunicate OK [17:43:01]SAM_PROTO_GetShiftState done [17:43:01]FM_GetShiftState done [17:43:01]req_shift_opened done [17:43:01]requested_item shift.open_date is exist - process it [17:43:01]req_shift_open_date [17:43:01]req_shift_open_date done [17:43:01]produce_requested_data done [17:43:01]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29287,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [17:43:01]process_action_free close_receipt [17:43:01]json_value_free [17:43:01]json_value_free done [17:43:01]process_json_proto returns [17:43:01]Send response to host [17:43:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29287,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [17:43:01]free response buf [17:43:01]execute_script done [17:43:01]execute_script returns [17:43:01]free content buf [17:43:01]Sock 9.Close socket [17:43:01]Sock 9.Thread stoped [17:43:05]OFD Sender: No OFD packet to send [17:43:10]OFD Sender: No OFD packet to send [17:43:15]OFD Sender: No OFD packet to send [17:43:20]OFD Sender: No OFD packet to send [17:43:25]OFD Sender: No OFD packet to send [17:43:30]OFD Sender: No OFD packet to send [17:43:35]OFD Sender: No OFD packet to send [17:43:40]OFD Sender: No OFD packet to send [17:43:45]OFD Sender: No OFD packet to send [17:43:50]OFD Sender: No OFD packet to send [17:43:55]OFD Sender: No OFD packet to send [17:44:00]OFD Sender: No OFD packet to send [17:44:05]OFD Sender: No OFD packet to send [17:44:10]OFD Sender: No OFD packet to send [17:44:15]OFD Sender: No OFD packet to send [17:44:15]accept exits with 7 [17:44:15]New connection [17:44:15]New thread 3066785124 created [17:44:15]Thread 3066928484 joined [17:44:15]Waiting for new connection... [17:44:15] Sock 7.Parse request [17:44:15]Sock 7.Check first char [17:44:15]Sock 7.First char is OK [17:44:15]request: POST /json_proto HTTP/1.0 [17:44:15]Method: POST [17:44:15]URL: /json_proto [17:44:15]Method is POST - this is cgi request [17:44:15]url: /json_proto [17:44:15]query_string will be loaded in cgi processing [17:44:15]execute_cgi json_proto POST (null) [17:44:15]execute_cgi path=json_proto method=POST [17:44:15]POST find Content-Length [17:44:15]Host: 172.17.33.3:8080 [17:44:15]Content-Length: 677 [17:44:15]Content-Type: application/json [17:44:15] [17:44:15]POST finish read [17:44:15]Found Content-Length = 677 [17:44:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347676", "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" : 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" ] } } [17:44:15]execute_script... [17: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)347676", "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" : 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" ] } } [17:44:15]POST & json_proto [17:44:15]process_json_proto [17:44:15]json parsed OK: [17:44:15]protocol is kg_v1.0 [17:44:15]action value=close_receipt [17:44:15]process_action close_receipt [17:44:15]cmd_close_receipt [17:44:15]MH_GetDate [17:44:15]Write to MH i2c: F0 00 00 2F AB C9 [17:44:15]Write i2c OK [17:44:15]MH_I2C_Read... [17:44:15]Read from MH i2c: F0 [17:44:15]MH_I2C_Read... [17:44:15]Read from MH i2c: F0 09 00 [17:44:15]MH_I2C_Read... [17:44:15]Read from MH i2c: F0 09 00 2F AB 00 FA 15 1C 66 23 5B 8F 65 D5 [17:44:15]GetLastDocTimeStamp 1713116588 [17:44:15]current date 1713116666 [17:44:15]FM_GetShiftState [17:44:15]SAM_PROTO_GetShiftState [17:44:15]wFMCommunicate request_size=4 [17:44:15]MH_SAM_APDU [17:44:15]CAPDU: 80 13 01 00 [17:44:15]Write to MH i2c: E2 08 00 30 AB 80 13 01 00 00 00 00 00 58 [17:44:15]Write i2c OK [17:44:15]MH_I2C_Read... [17:44:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:44:15]Read from MH i2c: E2 [17:44:15]MH_I2C_Read... [17:44:15]Read from MH i2c: E2 0E 00 [17:44:15]MH_I2C_Read... [17:44:15]Read from MH i2c: E2 0E 00 30 AB 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 04 [17:44:15]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [17:44:15]wFMCommunicate OK [17:44:15]SAM_PROTO_GetShiftState done [17:44:15]FM_GetShiftState done [17:44:15]opened in 1713053951 [17:44:15]opened+sec_in_day 1713140351 [17:44:15]quantity*price = 12024 [17:44:15]sum+1 = 12025 [17:44:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 120.00 Внесено: 120.00 СДАЧА: 0.00 НСП 1% : 1.06 НДС 12% : 12.77 Наличными: 120.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 198 14.04.2024 17:44 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29288 ФПД: 221288474776937 1/tax-web-control/client/api/v1/ticket?date=20240414T174426&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29288&fm=221288474776937&tin=02508201610067®Number=0000138879044617&sum=12000 [17:44:16]StoreToDocumentArchive [17:44:16]shift 116 fd 29288 [17:44:16]save to /storage/0116/doc_00029288 [17:44:16]save last doc name /storage/0116/doc_00029288 to /storage/kkm_last_doc_name [17:44:16]save OK [17:44:16]Clear old archive folders... [17:44:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:44:16]tlvbuf is 012246E0 [17:44:16]SAM_PROTO_ClearQueue [17:44:16]wFMCommunicate request_size=4 [17:44:16]MH_SAM_APDU [17:44:16]CAPDU: 80 09 00 00 [17:44:16]Write to MH i2c: E2 08 00 3D AB 80 09 00 00 00 00 00 00 5A [17:44:16]Write i2c OK [17:44:16]MH_I2C_Read... [17:44:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:44:16]Read from MH i2c: E2 [17:44:16]MH_I2C_Read... [17:44:16]Read from MH i2c: E2 03 00 [17:44:16]MH_I2C_Read... [17:44:16]Read from MH i2c: E2 03 00 3D AB 00 90 00 5C [17:44:16]RAPDU: 90 00 [17:44:16]wFMCommunicate OK [17:44:16]SAM_PROTO_ClearQueue done [17:44:16]KKMCreateOFDPacket [17:44:16]OFDProtocolAddRootSTLVToBuf [17:44:16]FM_MakeSignedData [17:44:16]FM_MakeSignedData [17:44:16]SAM_PROTO_SignData [17:44:16]wFMCommunicate request_size=4 [17:44:16]MH_SAM_APDU [17:44:16]CAPDU: 80 0D 01 02 [17:44:16]Write to MH i2c: E2 08 00 3E AB 80 0D 01 02 00 00 00 00 62 [17:44:16]Write i2c OK [17:44:16]MH_I2C_Read... [17:44:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:44:16]Read from MH i2c: E2 [17:44:16]MH_I2C_Read... [17:44:16]Read from MH i2c: E2 03 00 [17:44:16]MH_I2C_Read... [17:44:16]Read from MH i2c: E2 03 00 3E AB 00 90 00 5D [17:44:16]RAPDU: 90 00 [17:44:16]wFMCommunicate OK [17:44:16]wFMCommunicate request_size=255 [17:44:16]MH_SAM_APDU [17:44: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 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 C6 00 00 00 F4 03 04 00 FA 15 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 68 72 00 00 35 04 06 00 C9 [17:44:16]Write to MH i2c: E2 02 01 3F AB 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 C6 00 00 00 F4 03 04 00 FA 15 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 68 72 00 00 35 04 06 00 C9 00 00 30 [17:44:16]Write i2c OK [17:44:16]MH_I2C_Read... [17:44:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:44:17]Read from MH i2c: E2 [17:44:17]MH_I2C_Read... [17:44:17]Read from MH i2c: E2 03 00 [17:44:17]MH_I2C_Read... [17:44:17]Read from MH i2c: E2 03 00 3F AB 00 90 00 5E [17:44:17]RAPDU: 90 00 [17:44:17]wFMCommunicate OK [17:44:17]wFMCommunicate request_size=10 [17:44:17]MH_SAM_APDU [17:44:17]CAPDU: 80 0D 02 02 05 42 BC EE 95 69 [17:44:17]Write to MH i2c: E2 0D 00 40 AB 80 0D 02 02 05 00 42 BC EE 95 69 00 00 59 [17:44:17]Write i2c OK [17:44:17]MH_I2C_Read... [17:44:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:44:17]Read from MH i2c: E2 [17:44:17]MH_I2C_Read... [17:44:17]Read from MH i2c: E2 03 00 [17:44:17]MH_I2C_Read... [17:44:17]Read from MH i2c: E2 03 00 40 AB 00 90 00 5F [17:44:17]RAPDU: 90 00 [17:44:17]wFMCommunicate OK [17:44:17]wFMCommunicate request_size=4 [17:44:17]MH_SAM_APDU [17:44:17]CAPDU: 80 0D 03 02 [17:44:17]Write to MH i2c: E2 08 00 41 AB 80 0D 03 02 00 00 00 00 67 [17:44:17]Write i2c OK [17:44:17]MH_I2C_Read... [17:44:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:44:17]Read from MH i2c: E2 [17:44:17]MH_I2C_Read... [17:44:17]Read from MH i2c: E2 0B 00 [17:44:17]MH_I2C_Read... [17:44:17]Read from MH i2c: E2 0B 00 41 AB 00 D4 C9 A3 7C 19 6E D4 C9 90 00 48 [17:44:17]RAPDU: D4 C9 A3 7C 19 6E D4 C9 90 00 [17:44:17]wFMCommunicate OK [17:44:17]SAM_PROTO_SignData done [17:44:17]FM_MakeSignedData done [17:44:17]CreateOFDProtocolMessage [17:44:17]wFMCommunicate request_size=4 [17:44:17]MH_SAM_APDU [17:44:17]CAPDU: 80 11 00 00 [17:44:17]Write to MH i2c: E2 08 00 42 AB 80 11 00 00 00 00 00 00 67 [17:44:17]Write i2c OK [17:44:17]MH_I2C_Read... [17:44:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:44:17]Read from MH i2c: E2 [17:44:17]MH_I2C_Read... [17:44:17]Read from MH i2c: E2 17 00 [17:44:17]MH_I2C_Read... [17:44:17]Read from MH i2c: E2 17 00 42 AB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B6 [17:44:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:44:17]wFMCommunicate OK [17:44:17]CreateOFDProtocolMessage done [17:44:17]OFDSenderStorePacket 29288 [17:44:17]StoreOFDPacket docnum=29288 [17:44:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 C7 3B 07 01 BA E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 C6 00 00 00 F4 03 04 00 FA 15 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 68 72 00 00 35 04 06 00 C9 42 BC EE 95 69 D4 C9 A3 7C 19 6E D4 C9 [17:44:17]CheckFolder [17:44:17]dirname=/storage/ofd_packets [17:44:17]CheckFolder done [17:44:17]ProducePacketName [17:44:17]name=ofd_packets/00029288 [17:44:17]NVStorageSaveData ofd_packets/00029288 [17:44:17]File name is /storage/ofd_packets/00029288 [17:44:17]Write 301 bytes [17:44:17]NVStorageSaveData done [17:44:17]OFDSenderStorePacket done [17:44:17]KKMCreateOFDPacket done [17:44:17]NVStorageSaveData kkm_last_timestamp [17:44:17]File name is /storage/kkm_last_timestamp [17:44:17]Write 4 bytes [17:44:17]NVStorageSaveData done [17:44:17]ExternCall_PrintAddStr [17:44:17]wPrintStart [17:44:17]Write to MH i2c: 01 00 00 43 AB EE [17:44:17]Write i2c OK [17:44:17]MH_I2C_Read... [17:44:17]Read from MH i2c: 01 [17:44:17]MH_I2C_Read... [17:44:17]Read from MH i2c: 01 07 00 [17:44:17]MH_I2C_Read... [17:44:17]Read from MH i2c: 01 07 00 43 AB 00 00 00 00 00 FF 0F 03 [17:44:17]RasterBufferAndPrint [17:44:17]line Счет N : (1)347676 [17:44:17]line ИНН: 02508201610067 [17:44:17]line Контрольно-Кассовый Чек [17:44:17]line ПРОДАЖА [17:44:17]line ТРК (МРК, ГНК) : 42 [17:44:17]line Товар: 2710124130 [17:44:17]line Аи-92-К-5 [17:44:17]line 1.870 * 64.30 [17:44:17]line = 120.24 [17:44:17]line НДС 12% НСП 1% [17:44:17]line > о реализуемом товаре [17:44:17]line ОКРУГЛЕНИЕ: -0.24 [17:44:17]line ИТОГО: 120.00 [17:44:17]line Внесено: 120.00 [17:44:17]line СДАЧА: 0.00 [17:44:17]line НСП 1% : 1.06 [17:44:17]line НДС 12% : 12.77 [17:44:17]line Наличными: 120.00 [17:44:17]line Безнал.: 0.00 [17:44:17]line Место: АЗС № 108 "Партнер Нефть" [17:44:17]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [17:44:17]line СНО: Общий режим [17:44:17]line Чек 198 14.04.2024 17:44 [17:44:17]line Смена: 116 ФФД: 1.0 [17:44:17]line ЗНМ: 0300000027 [17:44:17]line РНМ: 0000138879044617 [17:44:17]line Версия ККМ: 001 [17:44:17]line ФМ: 0000000000963154 [17:44:17]line ФД: 29288 [17:44:17]line ФПД: 221288474776937 [17:44:17]line 1/tax-web-control/client/api/v1/ticket?date=20240414T174426&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29288&fm=221288474776937&tin=02508201610067®Number=0000138879044617&sum=12000 [17:44:17]OFD Sender: Processing packet 29288 [packets to send 8, broken 7] [17:44:17]ProducePacketName [17:44:17]name=ofd_packets/00029288 [17:44:17]OFD Sender: To server: pG, [17:44:17]CommunicateWithHost lk.salyk.kg:30040 [17:44:17]ConnectInit lk.salyk.kg [17:44:17]written 0, free lines is 4095 [17:44:17]Connected sock=10 [17:44:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 C7 3B 07 01 BA E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 C6 00 00 00 F4 03 04 00 FA 15 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 68 72 00 00 35 04 06 00 C9 42 BC EE 95 69 D4 C9 A3 7C 19 6E D4 C9 [17:44:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 11 81 47 00 BD 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 68 72 00 00 F4 03 04 00 9E C0 1B 66 B6 04 01 00 00 BB 29 EE A1 F7 1A FA 07 [17:44:17]CommunicateWithHost err = 0 [17:44:17]CheckOFDResponse [17:44:17]1017 (14) - 77093643461234 [17:44:17]1041 (16) - 0000000000963154 [17:44:17]1040 (4) - 29288 [17:44:17]1012 (4) - 14.04.2024 11:40 [17:44:17]1206 (1) - 0 [17:44:17]OFD Sender: Remove packet 29288 [17:44:17]ProducePacketName [17:44:17]name=ofd_packets/00029288 [17:44:17]NVStorageDeleteData [17:44:18]Write to MH i2c: 01 00 00 6D AB 18 [17:44:18]Write i2c OK [17:44:18]MH_I2C_Read... [17:44:18]Read from MH i2c: 01 [17:44:18]MH_I2C_Read... [17:44:18]Read from MH i2c: 01 07 00 [17:44:18]MH_I2C_Read... [17:44:18]Read from MH i2c: 01 07 00 6D AB 00 00 00 00 00 C5 0C F0 [17:44:18]RasterBufferAndPrint [17:44:18]line [17:44:18]line [17:44:18]line [17:44:18]line [17:44:18]line [17:44:18]written 0, free lines is 3276 [17:44:18]MH_Cut [17:44:18]Write to MH i2c: D1 01 00 74 AB 01 F1 [17:44:18]Write i2c OK [17:44:18]MH_I2C_Read... [17:44:18]Read from MH i2c: D1 [17:44:18]MH_I2C_Read... [17:44:18]Read from MH i2c: D1 01 00 [17:44:18]MH_I2C_Read... [17:44:18]Read from MH i2c: D1 01 00 74 AB 00 F0 [17:44:18]Write to MH i2c: 01 00 00 75 AB 20 [17:44:18]Write i2c OK [17:44:18]MH_I2C_Read... [17:44:18]OFD Sender: No OFD packet to send [17:44:18]*** Cut start [17:44:18]*** Partial cut [17:44:18]*** CUTSNS_PIN = 1 [17:44:18]*** CUTSNS_PIN = 0 [17:44:19]*** Brake cut motor [17:44:19]Read from MH i2c: 01 [17:44:19]MH_I2C_Read... [17:44:19]*** Stop cut motor [17:44:19]*** Cut end [17:44:19]Read from MH i2c: 01 07 00 [17:44:19]MH_I2C_Read... [17:44:19]Read from MH i2c: 01 07 00 75 AB 00 00 00 00 00 FF 0F 35 [17:44:19]process_action close_receipt done [17:44:19]requested_data is exist [17:44:19]produce_requested_data [17:44:19]requested_item fm.sn is exist - process it [17:44:19]wFMCommunicate request_size=4 [17:44:19]MH_SAM_APDU [17:44:19]CAPDU: 80 11 00 00 [17:44:19]Write to MH i2c: E2 08 00 76 AB 80 11 00 00 00 00 00 00 9B [17:44:19]Write i2c OK [17:44:19]MH_I2C_Read... [17:44:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:44:19]Read from MH i2c: E2 [17:44:19]MH_I2C_Read... [17:44:19]Read from MH i2c: E2 17 00 [17:44:19]MH_I2C_Read... [17:44:19]Read from MH i2c: E2 17 00 76 AB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 EA [17:44:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:44:19]wFMCommunicate OK [17:44:19]requested_item fd.num is exist - process it [17:44:19]SAM_PROTO_GetFieldsCounters [17:44:19]wFMCommunicate request_size=4 [17:44:19]MH_SAM_APDU [17:44:19]CAPDU: 80 13 00 00 [17:44:19]Write to MH i2c: E2 08 00 77 AB 80 13 00 00 00 00 00 00 9E [17:44:19]Write i2c OK [17:44:19]MH_I2C_Read... [17:44:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:44:19]Read from MH i2c: E2 [17:44:19]MH_I2C_Read... [17:44:19]Read from MH i2c: E2 62 00 [17:44:19]MH_I2C_Read... [17:44:19]Read from MH i2c: E2 62 00 77 AB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 68 72 00 00 0E 04 04 00 74 00 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 7C [17:44:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 68 72 00 00 0E 04 04 00 74 00 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 [17:44:19]wFMCommunicate OK [17:44:19]SAM_PROTO_GetFieldsCounters done [17:44:19]requested_item shift.num is exist - process it [17:44:19]requested_item shift.opened is exist - process it [17:44:19]req_shift_opened [17:44:19]FM_GetShiftState [17:44:19]SAM_PROTO_GetShiftState [17:44:19]wFMCommunicate request_size=4 [17:44:19]MH_SAM_APDU [17:44:19]CAPDU: 80 13 01 00 [17:44:19]Write to MH i2c: E2 08 00 78 AB 80 13 01 00 00 00 00 00 A0 [17:44:19]Write i2c OK [17:44:19]MH_I2C_Read... [17:44:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:44:19]Read from MH i2c: E2 [17:44:19]MH_I2C_Read... [17:44:19]Read from MH i2c: E2 0E 00 [17:44:19]MH_I2C_Read... [17:44:19]Read from MH i2c: E2 0E 00 78 AB 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 4C [17:44:19]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [17:44:19]wFMCommunicate OK [17:44:19]SAM_PROTO_GetShiftState done [17:44:19]FM_GetShiftState done [17:44:19]req_shift_opened done [17:44:19]requested_item shift.open_date is exist - process it [17:44:19]req_shift_open_date [17:44:19]req_shift_open_date done [17:44:19]produce_requested_data done [17:44:19]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29288,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [17:44:19]process_action_free close_receipt [17:44:19]json_value_free [17:44:19]json_value_free done [17:44:19]process_json_proto returns [17:44:19]Send response to host [17:44:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29288,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [17:44:19]free response buf [17:44:19]execute_script done [17:44:19]execute_script returns [17:44:19]free content buf [17:44:19]Sock 7.Close socket [17:44:19]Sock 7.Thread stoped [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:18]OFD Sender: No OFD packet to send [17:47:23]OFD Sender: No OFD packet to send [17:47:28]OFD Sender: No OFD packet to send [17:47:33]OFD Sender: No OFD packet to send [17:47:38]OFD Sender: No OFD packet to send [17:47:43]OFD Sender: No OFD packet to send [17:47:48]OFD Sender: No OFD packet to send [17:47:53]OFD Sender: No OFD packet to send [17:47:58]OFD Sender: No OFD packet to send [17:48:03]OFD Sender: No OFD packet to send [17:48:08]OFD Sender: No OFD packet to send [17:48:13]OFD Sender: No OFD packet to send [17:48:18]OFD Sender: No OFD packet to send [17:48:23]OFD Sender: No OFD packet to send [17:48:28]OFD Sender: No OFD packet to send [17:48:33]OFD Sender: No OFD packet to send [17:48:38]OFD Sender: No OFD packet to send [17:48:43]OFD Sender: No OFD packet to send [17:48:48]OFD Sender: No OFD packet to send [17:48:53]OFD Sender: No OFD packet to send [17:48:58]OFD Sender: No OFD packet to send [17:49:03]OFD Sender: No OFD packet to send [17:49:08]OFD Sender: No OFD packet to send [17:49:13]OFD Sender: No OFD packet to send [17:49:18]OFD Sender: No OFD packet to send [17:49:23]OFD Sender: No OFD packet to send [17:49:28]OFD Sender: No OFD packet to send [17:49:33]OFD Sender: No OFD packet to send [17:49:38]OFD Sender: No OFD packet to send [17:49:43]OFD Sender: No OFD packet to send [17:49:48]OFD Sender: No OFD packet to send [17:49:53]OFD Sender: No OFD packet to send [17:49:58]OFD Sender: No OFD packet to send [17:50:03]OFD Sender: No OFD packet to send [17:50:08]OFD Sender: No OFD packet to send [17:50:13]OFD Sender: No OFD packet to send [17:50:18]OFD Sender: No OFD packet to send [17:50:20]accept exits with 9 [17:50:20]New connection [17:50:20]New thread 3066928484 created [17:50:20]Thread 3066785124 joined [17:50:20]Waiting for new connection... [17:50:20] Sock 9.Parse request [17:50:20]Sock 9.Check first char [17:50:20]Sock 9.First char is OK [17:50:20]request: POST /json_proto HTTP/1.0 [17:50:20]Method: POST [17:50:20]URL: /json_proto [17:50:20]Method is POST - this is cgi request [17:50:20]url: /json_proto [17:50:20]query_string will be loaded in cgi processing [17:50:20]execute_cgi json_proto POST (null) [17:50:20]execute_cgi path=json_proto method=POST [17:50:20]POST find Content-Length [17:50:20]Host: 172.17.33.3:8080 [17:50:20]Content-Length: 677 [17:50:20]Content-Type: application/json [17:50:20] [17:50:20]POST finish read [17:50:20]Found Content-Length = 677 [17:50:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347678", "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" ] } } [17:50:20]execute_script... [17:50: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)347678", "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" ] } } [17:50:20]POST & json_proto [17:50:20]process_json_proto [17:50:20]json parsed OK: [17:50:20]protocol is kg_v1.0 [17:50:20]action value=close_receipt [17:50:20]process_action close_receipt [17:50:20]cmd_close_receipt [17:50:20]MH_GetDate [17:50:20]Write to MH i2c: F0 00 00 79 AB 13 [17:50:20]Write i2c OK [17:50:20]MH_I2C_Read... [17:50:20]Read from MH i2c: F0 [17:50:20]MH_I2C_Read... [17:50:20]Read from MH i2c: F0 09 00 [17:50:20]MH_I2C_Read... [17:50:20]Read from MH i2c: F0 09 00 79 AB 00 68 17 1C 66 23 5B 8F 65 8F [17:50:20]GetLastDocTimeStamp 1713116666 [17:50:20]current date 1713117032 [17:50:20]FM_GetShiftState [17:50:20]SAM_PROTO_GetShiftState [17:50:20]wFMCommunicate request_size=4 [17:50:20]MH_SAM_APDU [17:50:20]CAPDU: 80 13 01 00 [17:50:20]Write to MH i2c: E2 08 00 7A AB 80 13 01 00 00 00 00 00 A2 [17:50:20]Write i2c OK [17:50:20]MH_I2C_Read... [17:50:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:50:20]Read from MH i2c: E2 [17:50:20]MH_I2C_Read... [17:50:20]Read from MH i2c: E2 0E 00 [17:50:20]MH_I2C_Read... [17:50:20]Read from MH i2c: E2 0E 00 7A AB 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 4E [17:50:20]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [17:50:20]wFMCommunicate OK [17:50:20]SAM_PROTO_GetShiftState done [17:50:20]FM_GetShiftState done [17:50:20]opened in 1713053951 [17:50:20]opened+sec_in_day 1713140351 [17:50:20]quantity*price = 60056 [17:50:20]sum+1 = 60057 [17:50:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.78 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 199 14.04.2024 17:50 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29289 ФПД: 112966990080207 1/tax-web-control/client/api/v1/ticket?date=20240414T175032&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29289&fm=112966990080207&tin=02508201610067®Number=0000138879044617&sum=60000 [17:50:22]StoreToDocumentArchive [17:50:22]shift 116 fd 29289 [17:50:22]save to /storage/0116/doc_00029289 [17:50:22]save last doc name /storage/0116/doc_00029289 to /storage/kkm_last_doc_name [17:50:22]save OK [17:50:22]Clear old archive folders... [17:50:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:50:22]tlvbuf is 012F3640 [17:50:22]SAM_PROTO_ClearQueue [17:50:22]wFMCommunicate request_size=4 [17:50:22]MH_SAM_APDU [17:50:22]CAPDU: 80 09 00 00 [17:50:22]Write to MH i2c: E2 08 00 87 AB 80 09 00 00 00 00 00 00 A4 [17:50:22]Write i2c OK [17:50:22]MH_I2C_Read... [17:50:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:50:22]Read from MH i2c: E2 [17:50:22]MH_I2C_Read... [17:50:22]Read from MH i2c: E2 03 00 [17:50:22]MH_I2C_Read... [17:50:22]Read from MH i2c: E2 03 00 87 AB 00 90 00 A6 [17:50:22]RAPDU: 90 00 [17:50:22]wFMCommunicate OK [17:50:22]SAM_PROTO_ClearQueue done [17:50:22]KKMCreateOFDPacket [17:50:22]OFDProtocolAddRootSTLVToBuf [17:50:22]FM_MakeSignedData [17:50:22]FM_MakeSignedData [17:50:22]SAM_PROTO_SignData [17:50:22]wFMCommunicate request_size=4 [17:50:22]MH_SAM_APDU [17:50:22]CAPDU: 80 0D 01 02 [17:50:22]Write to MH i2c: E2 08 00 88 AB 80 0D 01 02 00 00 00 00 AC [17:50:22]Write i2c OK [17:50:22]MH_I2C_Read... [17:50:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:50:22]Read from MH i2c: E2 [17:50:22]MH_I2C_Read... [17:50:22]Read from MH i2c: E2 03 00 [17:50:22]MH_I2C_Read... [17:50:22]Read from MH i2c: E2 03 00 88 AB 00 90 00 A7 [17:50:22]RAPDU: 90 00 [17:50:22]wFMCommunicate OK [17:50:22]wFMCommunicate request_size=255 [17:50:22]MH_SAM_APDU [17:50: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 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 C7 00 00 00 F4 03 04 00 68 17 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 69 72 00 00 35 04 06 00 66 [17:50:22]Write to MH i2c: E2 02 01 89 AB 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 C7 00 00 00 F4 03 04 00 68 17 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 69 72 00 00 35 04 06 00 66 00 00 54 [17:50:22]Write i2c OK [17:50:22]MH_I2C_Read... [17:50:22]Read from MH i2c: E2 [17:50:22]MH_I2C_Read... [17:50:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:50:22]Read from MH i2c: E2 03 00 [17:50:22]MH_I2C_Read... [17:50:22]Read from MH i2c: E2 03 00 89 AB 00 90 00 A8 [17:50:22]RAPDU: 90 00 [17:50:22]wFMCommunicate OK [17:50:22]wFMCommunicate request_size=10 [17:50:22]MH_SAM_APDU [17:50:22]CAPDU: 80 0D 02 02 05 BE 2D 50 A8 CF [17:50:22]Write to MH i2c: E2 0D 00 8A AB 80 0D 02 02 05 00 BE 2D 50 A8 CF 00 00 6B [17:50:22]Write i2c OK [17:50:22]MH_I2C_Read... [17:50:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:50:22]Read from MH i2c: E2 [17:50:22]MH_I2C_Read... [17:50:22]Read from MH i2c: E2 03 00 [17:50:22]MH_I2C_Read... [17:50:22]Read from MH i2c: E2 03 00 8A AB 00 90 00 A9 [17:50:22]RAPDU: 90 00 [17:50:22]wFMCommunicate OK [17:50:22]wFMCommunicate request_size=4 [17:50:22]MH_SAM_APDU [17:50:22]CAPDU: 80 0D 03 02 [17:50:22]Write to MH i2c: E2 08 00 8B AB 80 0D 03 02 00 00 00 00 B1 [17:50:22]Write i2c OK [17:50:22]MH_I2C_Read... [17:50:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:50:22]Read from MH i2c: E2 [17:50:22]MH_I2C_Read... [17:50:22]Read from MH i2c: E2 0B 00 [17:50:22]MH_I2C_Read... [17:50:22]Read from MH i2c: E2 0B 00 8B AB 00 64 05 C7 71 CD 66 E9 C3 90 00 32 [17:50:22]RAPDU: 64 05 C7 71 CD 66 E9 C3 90 00 [17:50:22]wFMCommunicate OK [17:50:22]SAM_PROTO_SignData done [17:50:22]FM_MakeSignedData done [17:50:22]CreateOFDProtocolMessage [17:50:22]wFMCommunicate request_size=4 [17:50:22]MH_SAM_APDU [17:50:22]CAPDU: 80 11 00 00 [17:50:22]Write to MH i2c: E2 08 00 8C AB 80 11 00 00 00 00 00 00 B1 [17:50:22]Write i2c OK [17:50:22]MH_I2C_Read... [17:50:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:50:22]Read from MH i2c: E2 [17:50:22]MH_I2C_Read... [17:50:22]Read from MH i2c: E2 17 00 [17:50:22]MH_I2C_Read... [17:50:22]Read from MH i2c: E2 17 00 8C AB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 00 [17:50:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:50:22]wFMCommunicate OK [17:50:22]CreateOFDProtocolMessage done [17:50:22]OFDSenderStorePacket 29289 [17:50:22]StoreOFDPacket docnum=29289 [17:50:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 D1 A3 07 01 09 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 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 C7 00 00 00 F4 03 04 00 68 17 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 69 72 00 00 35 04 06 00 66 BE 2D 50 A8 CF 64 05 C7 71 CD 66 E9 C3 [17:50:22]CheckFolder [17:50:22]dirname=/storage/ofd_packets [17:50:22]CheckFolder done [17:50:22]ProducePacketName [17:50:22]name=ofd_packets/00029289 [17:50:22]NVStorageSaveData ofd_packets/00029289 [17:50:22]File name is /storage/ofd_packets/00029289 [17:50:22]Write 301 bytes [17:50:22]NVStorageSaveData done [17:50:22]OFDSenderStorePacket done [17:50:22]KKMCreateOFDPacket done [17:50:22]NVStorageSaveData kkm_last_timestamp [17:50:22]File name is /storage/kkm_last_timestamp [17:50:22]Write 4 bytes [17:50:22]NVStorageSaveData done [17:50:22]ExternCall_PrintAddStr [17:50:22]wPrintStart [17:50:22]Write to MH i2c: 01 00 00 8D AB 38 [17:50:22]Write i2c OK [17:50:22]MH_I2C_Read... [17:50:22]Read from MH i2c: 01 [17:50:22]MH_I2C_Read... [17:50:22]Read from MH i2c: 01 07 00 [17:50:22]MH_I2C_Read... [17:50:22]Read from MH i2c: 01 07 00 8D AB 00 00 00 00 00 FF 0F 4D [17:50:22]RasterBufferAndPrint [17:50:22]line Счет N : (1)347678 [17:50:22]line ИНН: 02508201610067 [17:50:22]line Контрольно-Кассовый Чек [17:50:22]line ПРОДАЖА [17:50:22]line ТРК (МРК, ГНК) : 32 [17:50:22]line Товар: 2710124130 [17:50:22]line Аи-92-К-5 [17:50:22]line 9.340 * 64.30 [17:50:22]line = 600.56 [17:50:22]line НДС 12% НСП 1% [17:50:22]line > о реализуемом товаре [17:50:22]line ОКРУГЛЕНИЕ: -0.56 [17:50:22]line ИТОГО: 600.00 [17:50:22]line Внесено: 600.00 [17:50:22]line СДАЧА: 0.00 [17:50:22]line НСП 1% : 5.31 [17:50:22]line НДС 12% : 63.78 [17:50:22]line Наличными: 600.00 [17:50:22]line Безнал.: 0.00 [17:50:22]line Место: АЗС № 108 "Партнер Нефть" [17:50:22]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [17:50:22]line СНО: Общий режим [17:50:22]line Чек 199 14.04.2024 17:50 [17:50:22]line Смена: 116 ФФД: 1.0 [17:50:22]line ЗНМ: 0300000027 [17:50:22]line РНМ: 0000138879044617 [17:50:22]line Версия ККМ: 001 [17:50:22]line ФМ: 0000000000963154 [17:50:22]line ФД: 29289 [17:50:22]line ФПД: 112966990080207 [17:50:22]line 1/tax-web-control/client/api/v1/ticket?date=20240414T175032&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29289&fm=112966990080207&tin=02508201610067®Number=0000138879044617&sum=60000 [17:50:22]OFD Sender: Processing packet 29289 [packets to send 8, broken 7] [17:50:22]ProducePacketName [17:50:22]name=ofd_packets/00029289 [17:50:22]OFD Sender: To server: pG, [17:50:22]CommunicateWithHost lk.salyk.kg:30040 [17:50:22]ConnectInit lk.salyk.kg [17:50:22]written 0, free lines is 4095 [17:50:23]Connected sock=10 [17:50:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 D1 A3 07 01 09 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 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 C7 00 00 00 F4 03 04 00 68 17 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 69 72 00 00 35 04 06 00 66 BE 2D 50 A8 CF 64 05 C7 71 CD 66 E9 C3 [17:50:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 14 69 47 00 DE 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 69 72 00 00 F4 03 04 00 0B C2 1B 66 B6 04 01 00 00 DA E3 12 A7 22 B5 BA 16 [17:50:23]CommunicateWithHost err = 0 [17:50:23]CheckOFDResponse [17:50:23]1017 (14) - 77093643461234 [17:50:23]1041 (16) - 0000000000963154 [17:50:23]1040 (4) - 29289 [17:50:23]1012 (4) - 14.04.2024 11:46 [17:50:23]1206 (1) - 0 [17:50:23]OFD Sender: Remove packet 29289 [17:50:23]ProducePacketName [17:50:23]name=ofd_packets/00029289 [17:50:23]NVStorageDeleteData [17:50:23]Write to MH i2c: 01 00 00 B7 AB 62 [17:50:23]Write i2c OK [17:50:23]MH_I2C_Read... [17:50:23]Read from MH i2c: 01 [17:50:23]MH_I2C_Read... [17:50:23]Read from MH i2c: 01 07 00 [17:50:23]MH_I2C_Read... [17:50:23]Read from MH i2c: 01 07 00 B7 AB 00 00 00 00 00 C9 0C 3E [17:50:23]RasterBufferAndPrint [17:50:23]line [17:50:23]line [17:50:23]line [17:50:23]line [17:50:23]line [17:50:23]written 0, free lines is 3278 [17:50:23]MH_Cut [17:50:23]Write to MH i2c: D1 01 00 BE AB 01 3B [17:50:23]Write i2c OK [17:50:23]MH_I2C_Read... [17:50:23]Read from MH i2c: D1 [17:50:23]MH_I2C_Read... [17:50:23]Read from MH i2c: D1 01 00 [17:50:23]MH_I2C_Read... [17:50:23]Read from MH i2c: D1 01 00 BE AB 00 3A [17:50:23]Write to MH i2c: 01 00 00 BF AB 6A [17:50:23]Write i2c OK [17:50:23]MH_I2C_Read... [17:50:23]OFD Sender: No OFD packet to send [17:50:24]*** Cut start [17:50:24]*** Partial cut [17:50:24]*** CUTSNS_PIN = 1 [17:50:24]*** CUTSNS_PIN = 0 [17:50:24]*** Brake cut motor [17:50:24]Read from MH i2c: 01 [17:50:24]MH_I2C_Read... [17:50:24]*** Stop cut motor [17:50:24]*** Cut end [17:50:24]Read from MH i2c: 01 07 00 [17:50:24]MH_I2C_Read... [17:50:24]Read from MH i2c: 01 07 00 BF AB 00 00 00 00 00 FF 0F 7F [17:50:24]process_action close_receipt done [17:50:24]requested_data is exist [17:50:24]produce_requested_data [17:50:24]requested_item fm.sn is exist - process it [17:50:24]wFMCommunicate request_size=4 [17:50:24]MH_SAM_APDU [17:50:24]CAPDU: 80 11 00 00 [17:50:24]Write to MH i2c: E2 08 00 C0 AB 80 11 00 00 00 00 00 00 E5 [17:50:24]Write i2c OK [17:50:24]MH_I2C_Read... [17:50:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:50:24]Read from MH i2c: E2 [17:50:24]MH_I2C_Read... [17:50:24]Read from MH i2c: E2 17 00 [17:50:24]MH_I2C_Read... [17:50:24]Read from MH i2c: E2 17 00 C0 AB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 34 [17:50:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:50:24]wFMCommunicate OK [17:50:24]requested_item fd.num is exist - process it [17:50:24]SAM_PROTO_GetFieldsCounters [17:50:24]wFMCommunicate request_size=4 [17:50:24]MH_SAM_APDU [17:50:24]CAPDU: 80 13 00 00 [17:50:24]Write to MH i2c: E2 08 00 C1 AB 80 13 00 00 00 00 00 00 E8 [17:50:24]Write i2c OK [17:50:24]MH_I2C_Read... [17:50:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:50:25]Read from MH i2c: E2 [17:50:25]MH_I2C_Read... [17:50:25]Read from MH i2c: E2 62 00 [17:50:25]MH_I2C_Read... [17:50:25]Read from MH i2c: E2 62 00 C1 AB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 69 72 00 00 0E 04 04 00 74 00 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 CA [17:50:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 69 72 00 00 0E 04 04 00 74 00 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 [17:50:25]wFMCommunicate OK [17:50:25]SAM_PROTO_GetFieldsCounters done [17:50:25]requested_item shift.num is exist - process it [17:50:25]requested_item shift.opened is exist - process it [17:50:25]req_shift_opened [17:50:25]FM_GetShiftState [17:50:25]SAM_PROTO_GetShiftState [17:50:25]wFMCommunicate request_size=4 [17:50:25]MH_SAM_APDU [17:50:25]CAPDU: 80 13 01 00 [17:50:25]Write to MH i2c: E2 08 00 C2 AB 80 13 01 00 00 00 00 00 EA [17:50:25]Write i2c OK [17:50:25]MH_I2C_Read... [17:50:25]Read from MH i2c: E2 [17:50:25]MH_I2C_Read... [17:50:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:50:25]Read from MH i2c: E2 0E 00 [17:50:25]MH_I2C_Read... [17:50:25]Read from MH i2c: E2 0E 00 C2 AB 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 96 [17:50:25]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [17:50:25]wFMCommunicate OK [17:50:25]SAM_PROTO_GetShiftState done [17:50:25]FM_GetShiftState done [17:50:25]req_shift_opened done [17:50:25]requested_item shift.open_date is exist - process it [17:50:25]req_shift_open_date [17:50:25]req_shift_open_date done [17:50:25]produce_requested_data done [17:50:25]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29289,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [17:50:25]process_action_free close_receipt [17:50:25]json_value_free [17:50:25]json_value_free done [17:50:25]process_json_proto returns [17:50:25]Send response to host [17:50:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29289,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [17:50:25]free response buf [17:50:25]execute_script done [17:50:25]execute_script returns [17:50:25]free content buf [17:50:25]Sock 9.Close socket [17:50:25]Sock 9.Thread stoped [17:50:28]OFD Sender: No OFD packet to send [17:50:33]OFD Sender: No OFD packet to send [17:50:38]OFD Sender: No OFD packet to send [17:50:43]OFD Sender: No OFD packet to send [17:50:48]OFD Sender: No OFD packet to send [17:50:53]OFD Sender: No OFD packet to send [17:50:58]OFD Sender: No OFD packet to send [17:51:03]OFD Sender: No OFD packet to send [17:51:08]OFD Sender: No OFD packet to send [17:51:13]OFD Sender: No OFD packet to send [17:51:18]OFD Sender: No OFD packet to send [17:51:23]accept exits with 7 [17:51:23]New connection [17:51:23]New thread 3066785124 created [17:51:23]Thread 3066928484 joined [17:51:23]Waiting for new connection... [17:51:23] Sock 7.Parse request [17:51:23]Sock 7.Check first char [17:51:23]Sock 7.First char is OK [17:51:23]request: POST /json_proto HTTP/1.0 [17:51:23]Method: POST [17:51:23]URL: /json_proto [17:51:23]Method is POST - this is cgi request [17:51:23]url: /json_proto [17:51:23]query_string will be loaded in cgi processing [17:51:23]execute_cgi json_proto POST (null) [17:51:23]execute_cgi path=json_proto method=POST [17:51:23]POST find Content-Length [17:51:23]Host: 172.17.33.3:8080 [17:51:23]Content-Length: 685 [17:51:23]Content-Type: application/json [17:51:23] [17:51:23]POST finish read [17:51:23]Found Content-Length = 685 [17:51:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347677", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 38.080, "sum" : 1252.83, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1252.00, "payments": [ { "type": 0, "sum" : 1252.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:51:23]execute_script... [17:51: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)347677", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 38.080, "sum" : 1252.83, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1252.00, "payments": [ { "type": 0, "sum" : 1252.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:51:23]POST & json_proto [17:51:23]process_json_proto [17:51:23]json parsed OK: [17:51:23]protocol is kg_v1.0 [17:51:23]action value=close_receipt [17:51:23]process_action close_receipt [17:51:23]cmd_close_receipt [17:51:23]MH_GetDate [17:51:23]Write to MH i2c: F0 00 00 C3 AB 5D [17:51:23]Write i2c OK [17:51:23]MH_I2C_Read... [17:51:23]Read from MH i2c: F0 [17:51:23]MH_I2C_Read... [17:51:23]Read from MH i2c: F0 09 00 [17:51:23]MH_I2C_Read... [17:51:23]Read from MH i2c: F0 09 00 C3 AB 00 A6 17 1C 66 23 5B 8F 65 17 [17:51:23]GetLastDocTimeStamp 1713117032 [17:51:23]current date 1713117094 [17:51:23]FM_GetShiftState [17:51:23]SAM_PROTO_GetShiftState [17:51:23]wFMCommunicate request_size=4 [17:51:23]MH_SAM_APDU [17:51:23]CAPDU: 80 13 01 00 [17:51:23]Write to MH i2c: E2 08 00 C4 AB 80 13 01 00 00 00 00 00 EC [17:51:23]Write i2c OK [17:51:23]MH_I2C_Read... [17:51:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:51:23]Read from MH i2c: E2 [17:51:23]MH_I2C_Read... [17:51:23]Read from MH i2c: E2 0E 00 [17:51:23]MH_I2C_Read... [17:51:23]Read from MH i2c: E2 0E 00 C4 AB 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 98 [17:51:23]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [17:51:23]wFMCommunicate OK [17:51:23]SAM_PROTO_GetShiftState done [17:51:23]FM_GetShiftState done [17:51:23]opened in 1713053951 [17:51:23]opened+sec_in_day 1713140351 [17:51:23]quantity*price = 125283 [17:51:23]sum+1 = 125284 [17:51:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.83 ИТОГО: 1252.00 Внесено: 1300.00 СДАЧА: 48.00 НСП 1% : 11.09 НДС 12% : 133.04 Наличными: 1252.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 200 14.04.2024 17:51 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29290 ФПД: 266944621338444 1/tax-web-control/client/api/v1/ticket?date=20240414T175134&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29290&fm=266944621338444&tin=02508201610067®Number=0000138879044617&sum=125200 [17:51:24]StoreToDocumentArchive [17:51:24]shift 116 fd 29290 [17:51:24]save to /storage/0116/doc_00029290 [17:51:24]save last doc name /storage/0116/doc_00029290 to /storage/kkm_last_doc_name [17:51:24]save OK [17:51:24]Clear old archive folders... [17:51:24]ProcessDocumentItem done err = 0, tmpTLVsize=250 [17:51:24]tlvbuf is 0122EB80 [17:51:24]SAM_PROTO_ClearQueue [17:51:24]wFMCommunicate request_size=4 [17:51:24]MH_SAM_APDU [17:51:24]CAPDU: 80 09 00 00 [17:51:24]Write to MH i2c: E2 08 00 D1 AB 80 09 00 00 00 00 00 00 EE [17:51:24]Write i2c OK [17:51:24]MH_I2C_Read... [17:51:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:51:24]Read from MH i2c: E2 [17:51:24]MH_I2C_Read... [17:51:24]Read from MH i2c: E2 03 00 [17:51:24]MH_I2C_Read... [17:51:24]Read from MH i2c: E2 03 00 D1 AB 00 90 00 F0 [17:51:24]RAPDU: 90 00 [17:51:24]wFMCommunicate OK [17:51:24]SAM_PROTO_ClearQueue done [17:51:24]KKMCreateOFDPacket [17:51:24]OFDProtocolAddRootSTLVToBuf [17:51:24]FM_MakeSignedData [17:51:24]FM_MakeSignedData [17:51:24]SAM_PROTO_SignData [17:51:24]wFMCommunicate request_size=4 [17:51:24]MH_SAM_APDU [17:51:24]CAPDU: 80 0D 01 02 [17:51:24]Write to MH i2c: E2 08 00 D2 AB 80 0D 01 02 00 00 00 00 F6 [17:51:24]Write i2c OK [17:51:24]MH_I2C_Read... [17:51:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:51:24]Read from MH i2c: E2 [17:51:24]MH_I2C_Read... [17:51:24]Read from MH i2c: E2 03 00 [17:51:24]MH_I2C_Read... [17:51:24]Read from MH i2c: E2 03 00 D2 AB 00 90 00 F1 [17:51:24]RAPDU: 90 00 [17:51:24]wFMCommunicate OK [17:51:24]wFMCommunicate request_size=255 [17:51:24]MH_SAM_APDU [17:51:24]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 94 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 63 E9 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 E9 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 55 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 33 00 00 00 00 07 04 06 00 10 E9 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 A6 17 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6A 72 00 00 35 04 06 00 F2 C8 [17:51:24]Write to MH i2c: E2 02 01 D3 AB 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 94 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 63 E9 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 E9 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 55 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 33 00 00 00 00 07 04 06 00 10 E9 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 A6 17 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6A 72 00 00 35 04 06 00 F2 C8 00 00 DD [17:51:24]Write i2c OK [17:51:24]MH_I2C_Read... [17:51:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:51:24]Read from MH i2c: E2 [17:51:24]MH_I2C_Read... [17:51:24]Read from MH i2c: E2 03 00 [17:51:24]MH_I2C_Read... [17:51:24]Read from MH i2c: E2 03 00 D3 AB 00 90 00 F2 [17:51:24]RAPDU: 90 00 [17:51:24]wFMCommunicate OK [17:51:24]wFMCommunicate request_size=9 [17:51:24]MH_SAM_APDU [17:51:24]CAPDU: 80 0D 02 02 04 E3 54 5F 4C [17:51:24]Write to MH i2c: E2 0C 00 D4 AB 80 0D 02 02 04 00 E3 54 5F 4C 00 00 E3 [17:51:24]Write i2c OK [17:51:24]MH_I2C_Read... [17:51:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:51:24]Read from MH i2c: E2 [17:51:24]MH_I2C_Read... [17:51:24]Read from MH i2c: E2 03 00 [17:51:24]MH_I2C_Read... [17:51:24]Read from MH i2c: E2 03 00 D4 AB 00 90 00 F3 [17:51:24]RAPDU: 90 00 [17:51:24]wFMCommunicate OK [17:51:24]wFMCommunicate request_size=4 [17:51:24]MH_SAM_APDU [17:51:24]CAPDU: 80 0D 03 02 [17:51:24]Write to MH i2c: E2 08 00 D5 AB 80 0D 03 02 00 00 00 00 FB [17:51:24]Write i2c OK [17:51:24]MH_I2C_Read... [17:51:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:51:24]Read from MH i2c: E2 [17:51:24]MH_I2C_Read... [17:51:24]Read from MH i2c: E2 0B 00 [17:51:24]MH_I2C_Read... [17:51:24]Read from MH i2c: E2 0B 00 D5 AB 00 0D 93 49 BE 0A AC 46 B7 90 00 56 [17:51:24]RAPDU: 0D 93 49 BE 0A AC 46 B7 90 00 [17:51:24]wFMCommunicate OK [17:51:24]SAM_PROTO_SignData done [17:51:24]FM_MakeSignedData done [17:51:24]CreateOFDProtocolMessage [17:51:24]wFMCommunicate request_size=4 [17:51:24]MH_SAM_APDU [17:51:24]CAPDU: 80 11 00 00 [17:51:24]Write to MH i2c: E2 08 00 D6 AB 80 11 00 00 00 00 00 00 FB [17:51:24]Write i2c OK [17:51:24]MH_I2C_Read... [17:51:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:51:24]Read from MH i2c: E2 [17:51:24]MH_I2C_Read... [17:51:24]Read from MH i2c: E2 17 00 [17:51:24]MH_I2C_Read... [17:51:24]Read from MH i2c: E2 17 00 D6 AB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 4A [17:51:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:51:24]wFMCommunicate OK [17:51:24]CreateOFDProtocolMessage done [17:51:24]OFDSenderStorePacket 29290 [17:51:24]StoreOFDPacket docnum=29290 [17:51:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 55 68 06 01 78 46 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 94 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 63 E9 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 E9 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 55 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 33 00 00 00 00 07 04 06 00 10 E9 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 A6 17 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6A 72 00 00 35 04 06 00 F2 C8 E3 54 5F 4C 0D 93 49 BE 0A AC 46 B7 [17:51:24]CheckFolder [17:51:24]dirname=/storage/ofd_packets [17:51:24]CheckFolder done [17:51:24]ProducePacketName [17:51:24]name=ofd_packets/00029290 [17:51:24]NVStorageSaveData ofd_packets/00029290 [17:51:24]File name is /storage/ofd_packets/00029290 [17:51:24]Write 300 bytes [17:51:24]NVStorageSaveData done [17:51:24]OFDSenderStorePacket done [17:51:24]KKMCreateOFDPacket done [17:51:24]NVStorageSaveData kkm_last_timestamp [17:51:24]File name is /storage/kkm_last_timestamp [17:51:24]Write 4 bytes [17:51:24]NVStorageSaveData done [17:51:24]ExternCall_PrintAddStr [17:51:24]wPrintStart [17:51:24]Write to MH i2c: 01 00 00 D7 AB 82 [17:51:24]Write i2c OK [17:51:24]MH_I2C_Read... [17:51:24]Read from MH i2c: 01 [17:51:24]MH_I2C_Read... [17:51:24]Read from MH i2c: 01 07 00 [17:51:24]MH_I2C_Read... [17:51:24]Read from MH i2c: 01 07 00 D7 AB 00 00 00 00 00 FF 0F 97 [17:51:24]RasterBufferAndPrint [17:51:24]line Счет N : (1)347677 [17:51:24]line ИНН: 02508201610067 [17:51:24]line Контрольно-Кассовый Чек [17:51:24]line ПРОДАЖА [17:51:24]line ТРК (МРК, ГНК) : 71 [17:51:24]line Товар: 2711129700 [17:51:24]line ГАЗ-К-5 [17:51:24]line 38.080 * 32.90 [17:51:24]line = 1252.83 [17:51:24]line НДС 12% НСП 1% [17:51:24]line > о реализуемом товаре [17:51:24]line ОКРУГЛЕНИЕ: -0.83 [17:51:24]line ИТОГО: 1252.00 [17:51:24]line Внесено: 1300.00 [17:51:24]line СДАЧА: 48.00 [17:51:24]line НСП 1% : 11.09 [17:51:24]line НДС 12% : 133.04 [17:51:24]line Наличными: 1252.00 [17:51:24]line Безнал.: 0.00 [17:51:24]line Место: АЗС № 108 "Партнер Нефть" [17:51:25]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [17:51:25]line СНО: Общий режим [17:51:25]line Чек 200 14.04.2024 17:51 [17:51:25]line Смена: 116 ФФД: 1.0 [17:51:25]line ЗНМ: 0300000027 [17:51:25]line РНМ: 0000138879044617 [17:51:25]line Версия ККМ: 001 [17:51:25]line ФМ: 0000000000963154 [17:51:25]line ФД: 29290 [17:51:25]line ФПД: 266944621338444 [17:51:25]line 1/tax-web-control/client/api/v1/ticket?date=20240414T175134&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29290&fm=266944621338444&tin=02508201610067®Number=0000138879044617&sum=125200 [17:51:25]OFD Sender: Processing packet 29290 [packets to send 8, broken 7] [17:51:25]ProducePacketName [17:51:25]name=ofd_packets/00029290 [17:51:25]OFD Sender: To server: pG, [17:51:25]CommunicateWithHost lk.salyk.kg:30040 [17:51:25]ConnectInit lk.salyk.kg [17:51:25]written 0, free lines is 4095 [17:51:25]Connected sock=10 [17:51:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 55 68 06 01 78 46 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 94 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 63 E9 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 E9 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 55 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 33 00 00 00 00 07 04 06 00 10 E9 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 A6 17 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6A 72 00 00 35 04 06 00 F2 C8 E3 54 5F 4C 0D 93 49 BE 0A AC 46 B7 [17:51:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 74 B2 47 00 11 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6A 72 00 00 F4 03 04 00 49 C2 1B 66 B6 04 01 00 00 EF 47 53 1D D7 0E DE AD [17:51:25]CommunicateWithHost err = 0 [17:51:25]CheckOFDResponse [17:51:25]1017 (14) - 77093643461234 [17:51:25]1041 (16) - 0000000000963154 [17:51:25]1040 (4) - 29290 [17:51:25]1012 (4) - 14.04.2024 11:47 [17:51:25]1206 (1) - 0 [17:51:25]OFD Sender: Remove packet 29290 [17:51:25]ProducePacketName [17:51:25]name=ofd_packets/00029290 [17:51:25]NVStorageDeleteData [17:51:25]Write to MH i2c: 01 00 00 01 AC AD [17:51:25]Write i2c OK [17:51:25]MH_I2C_Read... [17:51:25]Read from MH i2c: 01 [17:51:25]MH_I2C_Read... [17:51:25]Read from MH i2c: 01 07 00 [17:51:25]MH_I2C_Read... [17:51:25]Read from MH i2c: 01 07 00 01 AC 00 00 00 00 00 CB 0C 8B [17:51:25]RasterBufferAndPrint [17:51:25]line [17:51:25]line [17:51:25]line [17:51:25]line [17:51:25]line [17:51:25]written 0, free lines is 3280 [17:51:25]MH_Cut [17:51:25]Write to MH i2c: D1 01 00 08 AC 01 86 [17:51:25]Write i2c OK [17:51:25]MH_I2C_Read... [17:51:25]Read from MH i2c: D1 [17:51:25]MH_I2C_Read... [17:51:25]Read from MH i2c: D1 01 00 [17:51:25]MH_I2C_Read... [17:51:25]Read from MH i2c: D1 01 00 08 AC 00 85 [17:51:25]Write to MH i2c: 01 00 00 09 AC B5 [17:51:25]Write i2c OK [17:51:25]MH_I2C_Read... [17:51:26]OFD Sender: No OFD packet to send [17:51:26]*** Cut start [17:51:26]*** Partial cut [17:51:26]*** CUTSNS_PIN = 1 [17:51:26]*** CUTSNS_PIN = 0 [17:51:26]*** Brake cut motor [17:51:27]Read from MH i2c: 01 [17:51:27]MH_I2C_Read... [17:51:27]*** Stop cut motor [17:51:27]*** Cut end [17:51:27]Read from MH i2c: 01 07 00 [17:51:27]MH_I2C_Read... [17:51:27]Read from MH i2c: 01 07 00 09 AC 00 00 00 00 00 FF 0F CA [17:51:27]process_action close_receipt done [17:51:27]requested_data is exist [17:51:27]produce_requested_data [17:51:27]requested_item fm.sn is exist - process it [17:51:27]wFMCommunicate request_size=4 [17:51:27]MH_SAM_APDU [17:51:27]CAPDU: 80 11 00 00 [17:51:27]Write to MH i2c: E2 08 00 0A AC 80 11 00 00 00 00 00 00 30 [17:51:27]Write i2c OK [17:51:27]MH_I2C_Read... [17:51:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:51:27]Read from MH i2c: E2 [17:51:27]MH_I2C_Read... [17:51:27]Read from MH i2c: E2 17 00 [17:51:27]MH_I2C_Read... [17:51:27]Read from MH i2c: E2 17 00 0A AC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 7F [17:51:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:51:27]wFMCommunicate OK [17:51:27]requested_item fd.num is exist - process it [17:51:27]SAM_PROTO_GetFieldsCounters [17:51:27]wFMCommunicate request_size=4 [17:51:27]MH_SAM_APDU [17:51:27]CAPDU: 80 13 00 00 [17:51:27]Write to MH i2c: E2 08 00 0B AC 80 13 00 00 00 00 00 00 33 [17:51:27]Write i2c OK [17:51:27]MH_I2C_Read... [17:51:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:51:27]Read from MH i2c: E2 [17:51:27]MH_I2C_Read... [17:51:27]Read from MH i2c: E2 62 00 [17:51:27]MH_I2C_Read... [17:51:27]Read from MH i2c: E2 62 00 0B AC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 6A 72 00 00 0E 04 04 00 74 00 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 19 [17:51:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 6A 72 00 00 0E 04 04 00 74 00 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 [17:51:27]wFMCommunicate OK [17:51:27]SAM_PROTO_GetFieldsCounters done [17:51:27]requested_item shift.num is exist - process it [17:51:27]requested_item shift.opened is exist - process it [17:51:27]req_shift_opened [17:51:27]FM_GetShiftState [17:51:27]SAM_PROTO_GetShiftState [17:51:27]wFMCommunicate request_size=4 [17:51:27]MH_SAM_APDU [17:51:27]CAPDU: 80 13 01 00 [17:51:27]Write to MH i2c: E2 08 00 0C AC 80 13 01 00 00 00 00 00 35 [17:51:27]Write i2c OK [17:51:27]MH_I2C_Read... [17:51:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:51:27]Read from MH i2c: E2 [17:51:27]MH_I2C_Read... [17:51:27]Read from MH i2c: E2 0E 00 [17:51:27]MH_I2C_Read... [17:51:27]Read from MH i2c: E2 0E 00 0C AC 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 E1 [17:51:27]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [17:51:27]wFMCommunicate OK [17:51:27]SAM_PROTO_GetShiftState done [17:51:27]FM_GetShiftState done [17:51:27]req_shift_opened done [17:51:27]requested_item shift.open_date is exist - process it [17:51:27]req_shift_open_date [17:51:27]req_shift_open_date done [17:51:27]produce_requested_data done [17:51:27]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29290,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [17:51:27]process_action_free close_receipt [17:51:27]json_value_free [17:51:27]json_value_free done [17:51:27]process_json_proto returns [17:51:27]Send response to host [17:51:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29290,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [17:51:27]free response buf [17:51:27]execute_script done [17:51:27]execute_script returns [17:51:27]free content buf [17:51:27]Sock 7.Close socket [17:51:27]Sock 7.Thread stoped [17:51:31]OFD Sender: No OFD packet to send [17:51:36]OFD Sender: No OFD packet to send [17:51:41]OFD Sender: No OFD packet to send [17:51:46]OFD Sender: No OFD packet to send [17:51:51]OFD Sender: No OFD packet to send [17:51:56]OFD Sender: No OFD packet to send [17:52:01]OFD Sender: No OFD packet to send [17:52:06]OFD Sender: No OFD packet to send [17:52:11]OFD Sender: No OFD packet to send [17:52:16]OFD Sender: No OFD packet to send [17:52:21]OFD Sender: No OFD packet to send [17:52:26]OFD Sender: No OFD packet to send [17:52:31]OFD Sender: No OFD packet to send [17:52:36]OFD Sender: No OFD packet to send [17:52:41]OFD Sender: No OFD packet to send [17:52:46]OFD Sender: No OFD packet to send [17:52:51]OFD Sender: No OFD packet to send [17:52:56]OFD Sender: No OFD packet to send [17:53:01]OFD Sender: No OFD packet to send [17:53:06]OFD Sender: No OFD packet to send [17:53:11]OFD Sender: No OFD packet to send [17:53:16]OFD Sender: No OFD packet to send [17:53:21]OFD Sender: No OFD packet to send [17:53:26]OFD Sender: No OFD packet to send [17:53:31]OFD Sender: No OFD packet to send [17:53:36]OFD Sender: No OFD packet to send [17:53:41]OFD Sender: No OFD packet to send [17:53:46]OFD Sender: No OFD packet to send [17:53:51]OFD Sender: No OFD packet to send [17:53:56]OFD Sender: No OFD packet to send [17:54:01]OFD Sender: No OFD packet to send [17:54:06]OFD Sender: No OFD packet to send [17:54:11]OFD Sender: No OFD packet to send [17:54:16]OFD Sender: No OFD packet to send [17:54:21]OFD Sender: No OFD packet to send [17:54:26]OFD Sender: No OFD packet to send [17:54:31]OFD Sender: No OFD packet to send [17:54:36]OFD Sender: No OFD packet to send [17:54:41]OFD Sender: No OFD packet to send [17:54:46]OFD Sender: No OFD packet to send [17:54:51]OFD Sender: No OFD packet to send [17:54:56]OFD Sender: No OFD packet to send [17:55:01]OFD Sender: No OFD packet to send [17:55:06]OFD Sender: No OFD packet to send [17:55:11]OFD Sender: No OFD packet to send [17:55:16]OFD Sender: No OFD packet to send [17:55:21]OFD Sender: No OFD packet to send [17:55:26]OFD Sender: No OFD packet to send [17:55:31]OFD Sender: No OFD packet to send [17:55:36]OFD Sender: No OFD packet to send [17:55:41]OFD Sender: No OFD packet to send [17:55:46]OFD Sender: No OFD packet to send [17:55:48]accept exits with 9 [17:55:48]New connection [17:55:48]New thread 3066928484 created [17:55:48]Thread 3066785124 joined [17:55:48]Waiting for new connection... [17:55:48] Sock 9.Parse request [17:55:48]Sock 9.Check first char [17:55:48]Sock 9.First char is OK [17:55:48]request: POST /json_proto HTTP/1.0 [17:55:48]Method: POST [17:55:48]URL: /json_proto [17:55:48]Method is POST - this is cgi request [17:55:48]url: /json_proto [17:55:48]query_string will be loaded in cgi processing [17:55:48]execute_cgi json_proto POST (null) [17:55:48]execute_cgi path=json_proto method=POST [17:55:48]POST find Content-Length [17:55:48]Host: 172.17.33.3:8080 [17:55:48]Content-Length: 833 [17:55:48]Content-Type: application/json [17:55:48] [17:55:48]POST finish read [17:55:48]Found Content-Length = 833 [17:55:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347679", "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.960, "sum" : 650.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 650.39 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:55:48]execute_script... [17:55: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)347679", "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.960, "sum" : 650.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 650.39 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:55:48]POST & json_proto [17:55:48]process_json_proto [17:55:48]json parsed OK: [17:55:48]protocol is kg_v1.0 [17:55:48]action value=close_receipt [17:55:48]process_action close_receipt [17:55:48]cmd_close_receipt [17:55:48]MH_GetDate [17:55:48]Write to MH i2c: F0 00 00 0D AC A8 [17:55:48]Write i2c OK [17:55:48]MH_I2C_Read... [17:55:48]Read from MH i2c: F0 [17:55:48]MH_I2C_Read... [17:55:48]Read from MH i2c: F0 09 00 [17:55:48]MH_I2C_Read... [17:55:48]Read from MH i2c: F0 09 00 0D AC 00 AF 18 1C 66 23 5B 8F 65 6C [17:55:48]GetLastDocTimeStamp 1713117094 [17:55:48]current date 1713117359 [17:55:48]FM_GetShiftState [17:55:48]SAM_PROTO_GetShiftState [17:55:48]wFMCommunicate request_size=4 [17:55:48]MH_SAM_APDU [17:55:48]CAPDU: 80 13 01 00 [17:55:48]Write to MH i2c: E2 08 00 0E AC 80 13 01 00 00 00 00 00 37 [17:55:48]Write i2c OK [17:55:48]MH_I2C_Read... [17:55:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:55:48]Read from MH i2c: E2 [17:55:48]MH_I2C_Read... [17:55:48]Read from MH i2c: E2 0E 00 [17:55:48]MH_I2C_Read... [17:55:48]Read from MH i2c: E2 0E 00 0E AC 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 E3 [17:55:48]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [17:55:48]wFMCommunicate OK [17:55:48]SAM_PROTO_GetShiftState done [17:55:48]FM_GetShiftState done [17:55:48]opened in 1713053951 [17:55:48]opened+sec_in_day 1713140351 [17:55:48]quantity*price = 65038 [17:55:48]sum+1 = 65040 [17:55:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 650.39 НСП 1% : 5.76 НДС 12% : 69.07 Наличными: 0.00 Безнал.: 650.39 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 201 14.04.2024 17:55 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 29291 ФПД: 125165274193425 1/tax-web-control/client/api/v1/ticket?date=20240414T175559&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29291&fm=125165274193425&tin=02508201610067®Number=0000138879044617&sum=65039 [17:55:49]StoreToDocumentArchive [17:55:49]shift 116 fd 29291 [17:55:49]save to /storage/0116/doc_00029291 [17:55:49]save last doc name /storage/0116/doc_00029291 to /storage/kkm_last_doc_name [17:55:49]save OK [17:55:49]Clear old archive folders... [17:55:49]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:55:49]tlvbuf is 01224960 [17:55:49]SAM_PROTO_ClearQueue [17:55:49]wFMCommunicate request_size=4 [17:55:49]MH_SAM_APDU [17:55:49]CAPDU: 80 09 00 00 [17:55:49]Write to MH i2c: E2 08 00 1B AC 80 09 00 00 00 00 00 00 39 [17:55:49]Write i2c OK [17:55:49]MH_I2C_Read... [17:55:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:55:49]Read from MH i2c: E2 [17:55:49]MH_I2C_Read... [17:55:49]Read from MH i2c: E2 03 00 [17:55:49]MH_I2C_Read... [17:55:49]Read from MH i2c: E2 03 00 1B AC 00 90 00 3B [17:55:49]RAPDU: 90 00 [17:55:49]wFMCommunicate OK [17:55:49]SAM_PROTO_ClearQueue done [17:55:49]KKMCreateOFDPacket [17:55:49]OFDProtocolAddRootSTLVToBuf [17:55:49]FM_MakeSignedData [17:55:49]FM_MakeSignedData [17:55:49]SAM_PROTO_SignData [17:55:49]wFMCommunicate request_size=4 [17:55:49]MH_SAM_APDU [17:55:49]CAPDU: 80 0D 01 02 [17:55:49]Write to MH i2c: E2 08 00 1C AC 80 0D 01 02 00 00 00 00 41 [17:55:49]Write i2c OK [17:55:49]MH_I2C_Read... [17:55:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:55:49]Read from MH i2c: E2 [17:55:49]MH_I2C_Read... [17:55:49]Read from MH i2c: E2 03 00 [17:55:49]MH_I2C_Read... [17:55:49]Read from MH i2c: E2 03 00 1C AC 00 90 00 3C [17:55:49]RAPDU: 90 00 [17:55:49]wFMCommunicate OK [17:55:49]wFMCommunicate request_size=255 [17:55:49]MH_SAM_APDU [17:55:49]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 0F FE 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 00 00 00 00 00 00 39 04 06 00 0F FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 AF 18 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6B 72 00 00 35 04 06 00 [17:55:49]Write to MH i2c: E2 02 01 1D AC 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 0F FE 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 00 00 00 00 00 00 39 04 06 00 0F FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 AF 18 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6B 72 00 00 35 04 06 00 00 00 9C [17:55:49]Write i2c OK [17:55:49]MH_I2C_Read... [17:55:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:55:50]Read from MH i2c: E2 [17:55:50]MH_I2C_Read... [17:55:50]Read from MH i2c: E2 03 00 [17:55:50]MH_I2C_Read... [17:55:50]Read from MH i2c: E2 03 00 1D AC 00 90 00 3D [17:55:50]RAPDU: 90 00 [17:55:50]wFMCommunicate OK [17:55:50]wFMCommunicate request_size=11 [17:55:50]MH_SAM_APDU [17:55:50]CAPDU: 80 0D 02 02 06 71 D6 4F B4 DE 11 [17:55:50]Write to MH i2c: E2 0E 00 1E AC 80 0D 02 02 06 00 71 D6 4F B4 DE 11 00 00 89 [17:55:50]Write i2c OK [17:55:50]MH_I2C_Read... [17:55:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:55:50]Read from MH i2c: E2 [17:55:50]MH_I2C_Read... [17:55:50]Read from MH i2c: E2 03 00 [17:55:50]MH_I2C_Read... [17:55:50]Read from MH i2c: E2 03 00 1E AC 00 90 00 3E [17:55:50]RAPDU: 90 00 [17:55:50]wFMCommunicate OK [17:55:50]wFMCommunicate request_size=4 [17:55:50]MH_SAM_APDU [17:55:50]CAPDU: 80 0D 03 02 [17:55:50]Write to MH i2c: E2 08 00 1F AC 80 0D 03 02 00 00 00 00 46 [17:55:50]Write i2c OK [17:55:50]MH_I2C_Read... [17:55:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:55:50]Read from MH i2c: E2 [17:55:50]MH_I2C_Read... [17:55:50]Read from MH i2c: E2 0B 00 [17:55:50]MH_I2C_Read... [17:55:50]Read from MH i2c: E2 0B 00 1F AC 00 99 4A 95 93 BC 51 34 6C 90 00 FF [17:55:50]RAPDU: 99 4A 95 93 BC 51 34 6C 90 00 [17:55:50]wFMCommunicate OK [17:55:50]SAM_PROTO_SignData done [17:55:50]FM_MakeSignedData done [17:55:50]CreateOFDProtocolMessage [17:55:50]wFMCommunicate request_size=4 [17:55:50]MH_SAM_APDU [17:55:50]CAPDU: 80 11 00 00 [17:55:50]Write to MH i2c: E2 08 00 20 AC 80 11 00 00 00 00 00 00 46 [17:55:50]Write i2c OK [17:55:50]MH_I2C_Read... [17:55:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:55:50]Read from MH i2c: E2 [17:55:50]MH_I2C_Read... [17:55:50]Read from MH i2c: E2 17 00 [17:55:50]MH_I2C_Read... [17:55:50]Read from MH i2c: E2 17 00 20 AC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 95 [17:55:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:55:50]wFMCommunicate OK [17:55:50]CreateOFDProtocolMessage done [17:55:50]OFDSenderStorePacket 29291 [17:55:50]StoreOFDPacket docnum=29291 [17:55:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 18 51 08 01 02 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 2D 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 0F FE 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 00 00 00 00 00 00 39 04 06 00 0F FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 AF 18 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6B 72 00 00 35 04 06 00 71 D6 4F B4 DE 11 99 4A 95 93 BC 51 34 6C [17:55:50]CheckFolder [17:55:50]dirname=/storage/ofd_packets [17:55:50]CheckFolder done [17:55:50]ProducePacketName [17:55:50]name=ofd_packets/00029291 [17:55:50]NVStorageSaveData ofd_packets/00029291 [17:55:50]File name is /storage/ofd_packets/00029291 [17:55:50]Write 302 bytes [17:55:50]NVStorageSaveData done [17:55:50]OFDSenderStorePacket done [17:55:50]KKMCreateOFDPacket done [17:55:50]NVStorageSaveData kkm_last_timestamp [17:55:50]File name is /storage/kkm_last_timestamp [17:55:50]Write 4 bytes [17:55:50]NVStorageSaveData done [17:55:50]ExternCall_PrintAddStr [17:55:50]wPrintStart [17:55:50]Write to MH i2c: 01 00 00 21 AC CD [17:55:50]Write i2c OK [17:55:50]MH_I2C_Read... [17:55:50]Read from MH i2c: 01 [17:55:50]MH_I2C_Read... [17:55:50]Read from MH i2c: 01 07 00 [17:55:50]MH_I2C_Read... [17:55:50]Read from MH i2c: 01 07 00 21 AC 00 00 00 00 00 FF 0F E2 [17:55:50]RasterBufferAndPrint [17:55:50]line Счет N : (1)347679 [17:55:50]line ИНН: 02508201610067 [17:55:50]line Контрольно-Кассовый Чек [17:55:50]line ПРОДАЖА [17:55:50]line ТРК (МРК, ГНК) : 31 [17:55:50]line Товар: 2710124130 [17:55:50]line SUPER-92-К-5 [17:55:50]line 9.960 * 65.30 [17:55:50]line = 650.39 [17:55:50]line НДС 12% НСП 1% [17:55:50]line > о реализуемом товаре [17:55:50]line ИТОГО: 650.39 [17:55:50]line НСП 1% : 5.76 [17:55:50]line НДС 12% : 69.07 [17:55:50]line Наличными: 0.00 [17:55:50]line Безнал.: 650.39 [17:55:50]line Место: АЗС № 108 "Партнер Нефть" [17:55:50]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [17:55:50]line СНО: Общий режим [17:55:50]line Чек 201 14.04.2024 17:55 [17:55:50]line Смена: 116 ФФД: 1.0 [17:55:50]line ЗНМ: 0300000027 [17:55:50]line РНМ: 0000138879044617 [17:55:50]line Версия ККМ: 001 [17:55:50]line Платежная система: АКБ Кыргызстан [17:55:50]line ФМ: 0000000000963154 [17:55:50]line ФД: 29291 [17:55:50]line ФПД: 125165274193425 [17:55:50]line 1/tax-web-control/client/api/v1/ticket?date=20240414T175559&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29291&fm=125165274193425&tin=02508201610067®Number=0000138879044617&sum=65039 [17:55:50]OFD Sender: Processing packet 29291 [packets to send 8, broken 7] [17:55:50]ProducePacketName [17:55:50]name=ofd_packets/00029291 [17:55:50]OFD Sender: To server: pG, [17:55:50]CommunicateWithHost lk.salyk.kg:30040 [17:55:50]ConnectInit lk.salyk.kg [17:55:50]written 0, free lines is 4095 [17:55:50]Connected sock=10 [17:55:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 18 51 08 01 02 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 2D 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 0F FE 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 00 00 00 00 00 00 39 04 06 00 0F FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 AF 18 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6B 72 00 00 35 04 06 00 71 D6 4F B4 DE 11 99 4A 95 93 BC 51 34 6C [17:55:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 5E 37 47 00 7E 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 39 36 33 31 35 34 10 04 04 00 6B 72 00 00 F4 03 04 00 53 C3 1B 66 B6 04 01 00 00 1D B7 E8 B3 0C 0E 81 AB [17:55:50]CommunicateWithHost err = 0 [17:55:50]CheckOFDResponse [17:55:50]1017 (14) - 77093643461234 [17:55:50]1041 (16) - 0000000000963154 [17:55:50]1040 (4) - 29291 [17:55:50]1012 (4) - 14.04.2024 11:51 [17:55:50]1206 (1) - 0 [17:55:50]OFD Sender: Remove packet 29291 [17:55:50]ProducePacketName [17:55:50]name=ofd_packets/00029291 [17:55:50]NVStorageDeleteData [17:55:50]Write to MH i2c: 01 00 00 4A AC F6 [17:55:50]Write i2c OK [17:55:50]MH_I2C_Read... [17:55:50]Read from MH i2c: 01 [17:55:50]MH_I2C_Read... [17:55:50]Read from MH i2c: 01 07 00 [17:55:50]MH_I2C_Read... [17:55:50]Read from MH i2c: 01 07 00 4A AC 00 00 00 00 00 E5 0C EE [17:55:50]RasterBufferAndPrint [17:55:50]line [17:55:50]line [17:55:50]line [17:55:50]line [17:55:50]line [17:55:50]written 0, free lines is 3310 [17:55:50]MH_Cut [17:55:50]Write to MH i2c: D1 01 00 51 AC 01 CF [17:55:51]Write i2c OK [17:55:51]MH_I2C_Read... [17:55:51]Read from MH i2c: D1 [17:55:51]MH_I2C_Read... [17:55:51]Read from MH i2c: D1 01 00 [17:55:51]MH_I2C_Read... [17:55:51]Read from MH i2c: D1 01 00 51 AC 00 CE [17:55:51]Write to MH i2c: 01 00 00 52 AC FE [17:55:51]Write i2c OK [17:55:51]MH_I2C_Read... [17:55:51]OFD Sender: No OFD packet to send [17:55:51]*** Cut start [17:55:51]*** Partial cut [17:55:51]*** CUTSNS_PIN = 1 [17:55:51]*** CUTSNS_PIN = 0 [17:55:52]*** Brake cut motor [17:55:52]Read from MH i2c: 01 [17:55:52]MH_I2C_Read... [17:55:52]*** Stop cut motor [17:55:52]*** Cut end [17:55:52]Read from MH i2c: 01 07 00 [17:55:52]MH_I2C_Read... [17:55:52]Read from MH i2c: 01 07 00 52 AC 00 00 00 00 00 FF 0F 13 [17:55:52]process_action close_receipt done [17:55:52]requested_data is exist [17:55:52]produce_requested_data [17:55:52]requested_item fm.sn is exist - process it [17:55:52]wFMCommunicate request_size=4 [17:55:52]MH_SAM_APDU [17:55:52]CAPDU: 80 11 00 00 [17:55:52]Write to MH i2c: E2 08 00 53 AC 80 11 00 00 00 00 00 00 79 [17:55:52]Write i2c OK [17:55:52]MH_I2C_Read... [17:55:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:55:52]Read from MH i2c: E2 [17:55:52]MH_I2C_Read... [17:55:52]Read from MH i2c: E2 17 00 [17:55:52]MH_I2C_Read... [17:55:52]Read from MH i2c: E2 17 00 53 AC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C8 [17:55:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:55:52]wFMCommunicate OK [17:55:52]requested_item fd.num is exist - process it [17:55:52]SAM_PROTO_GetFieldsCounters [17:55:52]wFMCommunicate request_size=4 [17:55:52]MH_SAM_APDU [17:55:52]CAPDU: 80 13 00 00 [17:55:52]Write to MH i2c: E2 08 00 54 AC 80 13 00 00 00 00 00 00 7C [17:55:52]Write i2c OK [17:55:52]MH_I2C_Read... [17:55:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:55:52]Read from MH i2c: E2 [17:55:52]MH_I2C_Read... [17:55:52]Read from MH i2c: E2 62 00 [17:55:52]MH_I2C_Read... [17:55:52]Read from MH i2c: E2 62 00 54 AC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 6B 72 00 00 0E 04 04 00 74 00 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 66 [17:55:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 6B 72 00 00 0E 04 04 00 74 00 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 [17:55:52]wFMCommunicate OK [17:55:52]SAM_PROTO_GetFieldsCounters done [17:55:52]requested_item shift.num is exist - process it [17:55:52]requested_item shift.opened is exist - process it [17:55:52]req_shift_opened [17:55:52]FM_GetShiftState [17:55:52]SAM_PROTO_GetShiftState [17:55:52]wFMCommunicate request_size=4 [17:55:52]MH_SAM_APDU [17:55:52]CAPDU: 80 13 01 00 [17:55:52]Write to MH i2c: E2 08 00 55 AC 80 13 01 00 00 00 00 00 7E [17:55:52]Write i2c OK [17:55:52]MH_I2C_Read... [17:55:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:55:52]Read from MH i2c: E2 [17:55:52]MH_I2C_Read... [17:55:52]Read from MH i2c: E2 0E 00 [17:55:52]MH_I2C_Read... [17:55:52]Read from MH i2c: E2 0E 00 55 AC 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 2A [17:55:52]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [17:55:52]wFMCommunicate OK [17:55:52]SAM_PROTO_GetShiftState done [17:55:52]FM_GetShiftState done [17:55:52]req_shift_opened done [17:55:52]requested_item shift.open_date is exist - process it [17:55:52]req_shift_open_date [17:55:52]req_shift_open_date done [17:55:52]produce_requested_data done [17:55:52]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29291,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [17:55:52]process_action_free close_receipt [17:55:52]json_value_free [17:55:52]json_value_free done [17:55:52]process_json_proto returns [17:55:52]Send response to host [17:55:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29291,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [17:55:52]free response buf [17:55:52]execute_script done [17:55:52]execute_script returns [17:55:52]free content buf [17:55:52]Sock 9.Close socket [17:55:52]Sock 9.Thread stoped [17:55:56]OFD Sender: No OFD packet to send [17:56:01]OFD Sender: No OFD packet to send [17:56:06]OFD Sender: No OFD packet to send [17:56:11]OFD Sender: No OFD packet to send [17:56:16]OFD Sender: No OFD packet to send [17:56:21]OFD Sender: No OFD packet to send [17:56:26]OFD Sender: No OFD packet to send [17:56:31]OFD Sender: No OFD packet to send [17:56:36]OFD Sender: No OFD packet to send [17:56:41]OFD Sender: No OFD packet to send [17:56:46]OFD Sender: No OFD packet to send [17:56:51]OFD Sender: No OFD packet to send [17:56:56]OFD Sender: No OFD packet to send [17:57:01]OFD Sender: No OFD packet to send [17:57:06]OFD Sender: No OFD packet to send [17:57:11]OFD Sender: No OFD packet to send [17:57:16]OFD Sender: No OFD packet to send [17:57:21]OFD Sender: No OFD packet to send [17:57:26]OFD Sender: No OFD packet to send [17:57:31]OFD Sender: No OFD packet to send [17:57:36]OFD Sender: No OFD packet to send [17:57:41]OFD Sender: No OFD packet to send [17:57:46]OFD Sender: No OFD packet to send [17:57:51]OFD Sender: No OFD packet to send [17:57:56]accept exits with 7 [17:57:56]New connection [17:57:56]New thread 3066785124 created [17:57:56]Thread 3066928484 joined [17:57:56]Waiting for new connection... [17:57:56] Sock 7.Parse request [17:57:56]Sock 7.Check first char [17:57:56]Sock 7.First char is OK [17:57:56]request: POST /json_proto HTTP/1.0 [17:57:56]Method: POST [17:57:56]URL: /json_proto [17:57:56]Method is POST - this is cgi request [17:57:56]url: /json_proto [17:57:56]query_string will be loaded in cgi processing [17:57:56]execute_cgi json_proto POST (null) [17:57:56]execute_cgi path=json_proto method=POST [17:57:56]POST find Content-Length [17:57:56]Host: 172.17.33.3:8080 [17:57:56]Content-Length: 682 [17:57:56]Content-Type: application/json [17:57:56] [17:57:56]POST finish read [17:57:56]Found Content-Length = 682 [17:57:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347680", "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" ] } } [17:57:56]execute_script... [17:57: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)347680", "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" ] } } [17:57:56]POST & json_proto [17:57:56]process_json_proto [17:57:56]json parsed OK: [17:57:56]protocol is kg_v1.0 [17:57:56]action value=close_receipt [17:57:56]process_action close_receipt [17:57:56]cmd_close_receipt [17:57:56]MH_GetDate [17:57:56]Write to MH i2c: F0 00 00 56 AC F1 [17:57:56]Write i2c OK [17:57:56]MH_I2C_Read... [17:57:56]Read from MH i2c: F0 [17:57:56]MH_I2C_Read... [17:57:56]Read from MH i2c: F0 09 00 [17:57:56]MH_I2C_Read... [17:57:56]Read from MH i2c: F0 09 00 56 AC 00 2F 19 1C 66 23 5B 8F 65 36 [17:57:56]GetLastDocTimeStamp 1713117359 [17:57:56]current date 1713117487 [17:57:56]FM_GetShiftState [17:57:56]SAM_PROTO_GetShiftState [17:57:56]wFMCommunicate request_size=4 [17:57:56]MH_SAM_APDU [17:57:56]CAPDU: 80 13 01 00 [17:57:56]Write to MH i2c: E2 08 00 57 AC 80 13 01 00 00 00 00 00 80 [17:57:56]Write i2c OK [17:57:56]MH_I2C_Read... [17:57:56]OFD Sender: No OFD packet to send [17:57:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:57:56]Read from MH i2c: E2 [17:57:56]MH_I2C_Read... [17:57:56]Read from MH i2c: E2 0E 00 [17:57:56]MH_I2C_Read... [17:57:56]Read from MH i2c: E2 0E 00 57 AC 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 2C [17:57:56]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [17:57:56]wFMCommunicate OK [17:57:56]SAM_PROTO_GetShiftState done [17:57:56]FM_GetShiftState done [17:57:56]opened in 1713053951 [17:57:56]opened+sec_in_day 1713140351 [17:57:56]quantity*price = 100050 [17:57:56]sum+1 = 100052 [17:57: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 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 202 14.04.2024 17:58 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29292 ФПД: 169921434867045 1/tax-web-control/client/api/v1/ticket?date=20240414T175807&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29292&fm=169921434867045&tin=02508201610067®Number=0000138879044617&sum=100000 [17:57:57]StoreToDocumentArchive [17:57:57]shift 116 fd 29292 [17:57:57]save to /storage/0116/doc_00029292 [17:57:57]save last doc name /storage/0116/doc_00029292 to /storage/kkm_last_doc_name [17:57:57]save OK [17:57:57]Clear old archive folders... [17:57:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:57:57]tlvbuf is 012C13A0 [17:57:57]SAM_PROTO_ClearQueue [17:57:57]wFMCommunicate request_size=4 [17:57:57]MH_SAM_APDU [17:57:57]CAPDU: 80 09 00 00 [17:57:57]Write to MH i2c: E2 08 00 64 AC 80 09 00 00 00 00 00 00 82 [17:57:57]Write i2c OK [17:57:57]MH_I2C_Read... [17:57:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:57:57]Read from MH i2c: E2 [17:57:57]MH_I2C_Read... [17:57:57]Read from MH i2c: E2 03 00 [17:57:57]MH_I2C_Read... [17:57:57]Read from MH i2c: E2 03 00 64 AC 00 90 00 84 [17:57:57]RAPDU: 90 00 [17:57:57]wFMCommunicate OK [17:57:57]SAM_PROTO_ClearQueue done [17:57:57]KKMCreateOFDPacket [17:57:57]OFDProtocolAddRootSTLVToBuf [17:57:57]FM_MakeSignedData [17:57:57]FM_MakeSignedData [17:57:57]SAM_PROTO_SignData [17:57:57]wFMCommunicate request_size=4 [17:57:57]MH_SAM_APDU [17:57:57]CAPDU: 80 0D 01 02 [17:57:57]Write to MH i2c: E2 08 00 65 AC 80 0D 01 02 00 00 00 00 8A [17:57:57]Write i2c OK [17:57:57]MH_I2C_Read... [17:57:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:57:57]Read from MH i2c: E2 [17:57:57]MH_I2C_Read... [17:57:57]Read from MH i2c: E2 03 00 [17:57:57]MH_I2C_Read... [17:57:57]Read from MH i2c: E2 03 00 65 AC 00 90 00 85 [17:57:57]RAPDU: 90 00 [17:57:57]wFMCommunicate OK [17:57:57]wFMCommunicate request_size=255 [17:57:57]MH_SAM_APDU [17:57: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 CA 00 00 00 F4 03 04 00 2F 19 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6C 72 00 00 35 04 06 00 9A [17:57:57]Write to MH i2c: E2 02 01 66 AC 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 CA 00 00 00 F4 03 04 00 2F 19 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6C 72 00 00 35 04 06 00 9A 00 00 36 [17:57:57]Write i2c OK [17:57:57]MH_I2C_Read... [17:57:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:57:57]Read from MH i2c: E2 [17:57:57]MH_I2C_Read... [17:57:57]Read from MH i2c: E2 03 00 [17:57:57]MH_I2C_Read... [17:57:57]Read from MH i2c: E2 03 00 66 AC 00 90 00 86 [17:57:57]RAPDU: 90 00 [17:57:57]wFMCommunicate OK [17:57:57]wFMCommunicate request_size=10 [17:57:57]MH_SAM_APDU [17:57:57]CAPDU: 80 0D 02 02 05 8A EA C3 D5 65 [17:57:57]Write to MH i2c: E2 0D 00 67 AC 80 0D 02 02 05 00 8A EA C3 D5 65 00 00 08 [17:57:57]Write i2c OK [17:57:57]MH_I2C_Read... [17:57:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:57:57]Read from MH i2c: E2 [17:57:57]MH_I2C_Read... [17:57:57]Read from MH i2c: E2 03 00 [17:57:57]MH_I2C_Read... [17:57:57]Read from MH i2c: E2 03 00 67 AC 00 90 00 87 [17:57:57]RAPDU: 90 00 [17:57:57]wFMCommunicate OK [17:57:57]wFMCommunicate request_size=4 [17:57:57]MH_SAM_APDU [17:57:57]CAPDU: 80 0D 03 02 [17:57:57]Write to MH i2c: E2 08 00 68 AC 80 0D 03 02 00 00 00 00 8F [17:57:57]Write i2c OK [17:57:57]MH_I2C_Read... [17:57:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:57:57]Read from MH i2c: E2 [17:57:57]MH_I2C_Read... [17:57:57]Read from MH i2c: E2 0B 00 [17:57:57]MH_I2C_Read... [17:57:57]Read from MH i2c: E2 0B 00 68 AC 00 04 23 B9 65 9B 21 E2 E3 90 00 56 [17:57:57]RAPDU: 04 23 B9 65 9B 21 E2 E3 90 00 [17:57:57]wFMCommunicate OK [17:57:57]SAM_PROTO_SignData done [17:57:57]FM_MakeSignedData done [17:57:57]CreateOFDProtocolMessage [17:57:57]wFMCommunicate request_size=4 [17:57:57]MH_SAM_APDU [17:57:57]CAPDU: 80 11 00 00 [17:57:57]Write to MH i2c: E2 08 00 69 AC 80 11 00 00 00 00 00 00 8F [17:57:57]Write i2c OK [17:57:57]MH_I2C_Read... [17:57:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:57:58]Read from MH i2c: E2 [17:57:58]MH_I2C_Read... [17:57:58]Read from MH i2c: E2 17 00 [17:57:58]MH_I2C_Read... [17:57:58]Read from MH i2c: E2 17 00 69 AC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 DE [17:57:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:57:58]wFMCommunicate OK [17:57:58]CreateOFDProtocolMessage done [17:57:58]OFDSenderStorePacket 29292 [17:57:58]StoreOFDPacket docnum=29292 [17:57:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 6A 17 07 01 7A 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 CA 00 00 00 F4 03 04 00 2F 19 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6C 72 00 00 35 04 06 00 9A 8A EA C3 D5 65 04 23 B9 65 9B 21 E2 E3 [17:57:58]CheckFolder [17:57:58]dirname=/storage/ofd_packets [17:57:58]CheckFolder done [17:57:58]ProducePacketName [17:57:58]name=ofd_packets/00029292 [17:57:58]NVStorageSaveData ofd_packets/00029292 [17:57:58]File name is /storage/ofd_packets/00029292 [17:57:58]Write 301 bytes [17:57:58]NVStorageSaveData done [17:57:58]OFDSenderStorePacket done [17:57:58]KKMCreateOFDPacket done [17:57:58]NVStorageSaveData kkm_last_timestamp [17:57:58]File name is /storage/kkm_last_timestamp [17:57:58]Write 4 bytes [17:57:58]NVStorageSaveData done [17:57:58]ExternCall_PrintAddStr [17:57:58]wPrintStart [17:57:58]Write to MH i2c: 01 00 00 6A AC 16 [17:57:58]Write i2c OK [17:57:58]MH_I2C_Read... [17:57:58]Read from MH i2c: 01 [17:57:58]MH_I2C_Read... [17:57:58]Read from MH i2c: 01 07 00 [17:57:58]MH_I2C_Read... [17:57:58]Read from MH i2c: 01 07 00 6A AC 00 00 00 00 00 FF 0F 2B [17:57:58]RasterBufferAndPrint [17:57:58]line Счет N : (1)347680 [17:57:58]line ИНН: 02508201610067 [17:57:58]line Контрольно-Кассовый Чек [17:57:58]line ПРОДАЖА [17:57:58]line ТРК (МРК, ГНК) : 32 [17:57:58]line Товар: 2710124130 [17:57:58]line Аи-92-К-5 [17:57:58]line 15.560 * 64.30 [17:57:58]line = 1000.51 [17:57:58]line НДС 12% НСП 1% [17:57:58]line > о реализуемом товаре [17:57:58]line ОКРУГЛЕНИЕ: -0.51 [17:57:58]line ИТОГО: 1000.00 [17:57:58]line Внесено: 1000.00 [17:57:58]line СДАЧА: 0.00 [17:57:58]line НСП 1% : 8.85 [17:57:58]line НДС 12% : 106.25 [17:57:58]line Наличными: 1000.00 [17:57:58]line Безнал.: 0.00 [17:57:58]line Место: АЗС № 108 "Партнер Нефть" [17:57:58]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [17:57:58]line СНО: Общий режим [17:57:58]line Чек 202 14.04.2024 17:58 [17:57:58]line Смена: 116 ФФД: 1.0 [17:57:58]line ЗНМ: 0300000027 [17:57:58]line РНМ: 0000138879044617 [17:57:58]line Версия ККМ: 001 [17:57:58]line ФМ: 0000000000963154 [17:57:58]line ФД: 29292 [17:57:58]line ФПД: 169921434867045 [17:57:58]line 1/tax-web-control/client/api/v1/ticket?date=20240414T175807&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29292&fm=169921434867045&tin=02508201610067®Number=0000138879044617&sum=100000 [17:57:58]OFD Sender: Processing packet 29292 [packets to send 8, broken 7] [17:57:58]ProducePacketName [17:57:58]name=ofd_packets/00029292 [17:57:58]OFD Sender: To server: pG, [17:57:58]CommunicateWithHost lk.salyk.kg:30040 [17:57:58]ConnectInit lk.salyk.kg [17:57:58]written 0, free lines is 4095 [17:57:58]Connected sock=10 [17:57:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 6A 17 07 01 7A 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 CA 00 00 00 F4 03 04 00 2F 19 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6C 72 00 00 35 04 06 00 9A 8A EA C3 D5 65 04 23 B9 65 9B 21 E2 E3 [17:57:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 D0 D3 47 00 F0 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 39 36 33 31 35 34 10 04 04 00 6C 72 00 00 F4 03 04 00 D2 C3 1B 66 B6 04 01 00 00 EC 4A B5 F1 EB 7F 69 59 [17:57:58]CommunicateWithHost err = 0 [17:57:58]CheckOFDResponse [17:57:58]1017 (14) - 77093643461234 [17:57:58]1041 (16) - 0000000000963154 [17:57:58]1040 (4) - 29292 [17:57:58]1012 (4) - 14.04.2024 11:53 [17:57:58]1206 (1) - 0 [17:57:58]OFD Sender: Remove packet 29292 [17:57:58]ProducePacketName [17:57:58]name=ofd_packets/00029292 [17:57:58]NVStorageDeleteData [17:57:58]Write to MH i2c: 01 00 00 94 AC 40 [17:57:58]Write i2c OK [17:57:58]MH_I2C_Read... [17:57:58]Read from MH i2c: 01 [17:57:58]MH_I2C_Read... [17:57:58]Read from MH i2c: 01 07 00 [17:57:58]MH_I2C_Read... [17:57:58]Read from MH i2c: 01 07 00 94 AC 00 00 00 00 00 CF 0C 22 [17:57:58]RasterBufferAndPrint [17:57:58]line [17:57:58]line [17:57:58]line [17:57:58]line [17:57:58]line [17:57:58]written 0, free lines is 3285 [17:57:58]MH_Cut [17:57:58]Write to MH i2c: D1 01 00 9B AC 01 19 [17:57:58]Write i2c OK [17:57:58]MH_I2C_Read... [17:57:58]Read from MH i2c: D1 [17:57:58]MH_I2C_Read... [17:57:58]Read from MH i2c: D1 01 00 [17:57:58]MH_I2C_Read... [17:57:58]Read from MH i2c: D1 01 00 9B AC 00 18 [17:57:58]Write to MH i2c: 01 00 00 9C AC 48 [17:57:58]Write i2c OK [17:57:58]MH_I2C_Read... [17:57:59]OFD Sender: No OFD packet to send [17:57:59]*** Cut start [17:57:59]*** Partial cut [17:57:59]*** CUTSNS_PIN = 1 [17:57:59]*** CUTSNS_PIN = 0 [17:57:59]*** Brake cut motor [17:58:00]Read from MH i2c: 01 [17:58:00]MH_I2C_Read... [17:58:00]*** Stop cut motor [17:58:00]*** Cut end [17:58:00]Read from MH i2c: 01 07 00 [17:58:00]MH_I2C_Read... [17:58:00]Read from MH i2c: 01 07 00 9C AC 00 00 00 00 00 FF 0F 5D [17:58:00]process_action close_receipt done [17:58:00]requested_data is exist [17:58:00]produce_requested_data [17:58:00]requested_item fm.sn is exist - process it [17:58:00]wFMCommunicate request_size=4 [17:58:00]MH_SAM_APDU [17:58:00]CAPDU: 80 11 00 00 [17:58:00]Write to MH i2c: E2 08 00 9D AC 80 11 00 00 00 00 00 00 C3 [17:58:00]Write i2c OK [17:58:00]MH_I2C_Read... [17:58:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:58:00]Read from MH i2c: E2 [17:58:00]MH_I2C_Read... [17:58:00]Read from MH i2c: E2 17 00 [17:58:00]MH_I2C_Read... [17:58:00]Read from MH i2c: E2 17 00 9D AC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 12 [17:58:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:58:00]wFMCommunicate OK [17:58:00]requested_item fd.num is exist - process it [17:58:00]SAM_PROTO_GetFieldsCounters [17:58:00]wFMCommunicate request_size=4 [17:58:00]MH_SAM_APDU [17:58:00]CAPDU: 80 13 00 00 [17:58:00]Write to MH i2c: E2 08 00 9E AC 80 13 00 00 00 00 00 00 C6 [17:58:00]Write i2c OK [17:58:00]MH_I2C_Read... [17:58:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:58:00]Read from MH i2c: E2 [17:58:00]MH_I2C_Read... [17:58:00]Read from MH i2c: E2 62 00 [17:58:00]MH_I2C_Read... [17:58:00]Read from MH i2c: E2 62 00 9E AC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 6C 72 00 00 0E 04 04 00 74 00 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 B4 [17:58:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 6C 72 00 00 0E 04 04 00 74 00 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 [17:58:00]wFMCommunicate OK [17:58:00]SAM_PROTO_GetFieldsCounters done [17:58:00]requested_item shift.num is exist - process it [17:58:00]requested_item shift.opened is exist - process it [17:58:00]req_shift_opened [17:58:00]FM_GetShiftState [17:58:00]SAM_PROTO_GetShiftState [17:58:00]wFMCommunicate request_size=4 [17:58:00]MH_SAM_APDU [17:58:00]CAPDU: 80 13 01 00 [17:58:00]Write to MH i2c: E2 08 00 9F AC 80 13 01 00 00 00 00 00 C8 [17:58:00]Write i2c OK [17:58:00]MH_I2C_Read... [17:58:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:58:00]Read from MH i2c: E2 [17:58:00]MH_I2C_Read... [17:58:00]Read from MH i2c: E2 0E 00 [17:58:00]MH_I2C_Read... [17:58:00]Read from MH i2c: E2 0E 00 9F AC 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 74 [17:58:00]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [17:58:00]wFMCommunicate OK [17:58:00]SAM_PROTO_GetShiftState done [17:58:00]FM_GetShiftState done [17:58:00]req_shift_opened done [17:58:00]requested_item shift.open_date is exist - process it [17:58:00]req_shift_open_date [17:58:00]req_shift_open_date done [17:58:00]produce_requested_data done [17:58:00]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29292,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [17:58:00]process_action_free close_receipt [17:58:00]json_value_free [17:58:00]json_value_free done [17:58:00]process_json_proto returns [17:58:00]Send response to host [17:58:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29292,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [17:58:00]free response buf [17:58:00]execute_script done [17:58:00]execute_script returns [17:58:00]free content buf [17:58:00]Sock 7.Close socket [17:58:00]Sock 7.Thread stoped [17:58:04]OFD Sender: No OFD packet to send [17:58:09]OFD Sender: No OFD packet to send [17:58:14]OFD Sender: No OFD packet to send [17:58:19]OFD Sender: No OFD packet to send [17:58:24]OFD Sender: No OFD packet to send [17:58:29]OFD Sender: No OFD packet to send [17:58:34]OFD Sender: No OFD packet to send [17:58:39]OFD Sender: No OFD packet to send [17:58:44]OFD Sender: No OFD packet to send [17:58:49]OFD Sender: No OFD packet to send [17:58:54]OFD Sender: No OFD packet to send [17:58:59]OFD Sender: No OFD packet to send [17:59:04]OFD Sender: No OFD packet to send [17:59:09]OFD Sender: No OFD packet to send [17:59:14]OFD Sender: No OFD packet to send [17:59:19]OFD Sender: No OFD packet to send [17:59:24]OFD Sender: No OFD packet to send [17:59:29]OFD Sender: No OFD packet to send [17:59:34]OFD Sender: No OFD packet to send [17:59:39]OFD Sender: No OFD packet to send [17:59:44]OFD Sender: No OFD packet to send [17:59:49]OFD Sender: No OFD packet to send [17:59:54]OFD Sender: No OFD packet to send [17:59:59]OFD Sender: No OFD packet to send [18:00:04]OFD Sender: No OFD packet to send [18:00:09]OFD Sender: No OFD packet to send [18:00:14]OFD Sender: No OFD packet to send [18:00:19]OFD Sender: No OFD packet to send [18:00:24]OFD Sender: No OFD packet to send [18:00:29]OFD Sender: No OFD packet to send [18:00:34]OFD Sender: No OFD packet to send [18:00:39]OFD Sender: No OFD packet to send [18:00:44]OFD Sender: No OFD packet to send [18:00:49]OFD Sender: No OFD packet to send [18:00:54]OFD Sender: No OFD packet to send [18:00:59]OFD Sender: No OFD packet to send [18:01:04]OFD Sender: No OFD packet to send [18:01:09]OFD Sender: No OFD packet to send [18:01:14]OFD Sender: No OFD packet to send [18:01:19]OFD Sender: No OFD packet to send [18:01:24]OFD Sender: No OFD packet to send [18:01:29]OFD Sender: No OFD packet to send [18:01:34]OFD Sender: No OFD packet to send [18:01:39]OFD Sender: No OFD packet to send [18:01:44]OFD Sender: No OFD packet to send [18:01:49]OFD Sender: No OFD packet to send [18:01:54]OFD Sender: No OFD packet to send [18:01:59]OFD Sender: No OFD packet to send [18:02:04]OFD Sender: No OFD packet to send [18:02:09]OFD Sender: No OFD packet to send [18:02:14]OFD Sender: No OFD packet to send [18:02:19]OFD Sender: No OFD packet to send [18:02:24]OFD Sender: No OFD packet to send [18:02:29]OFD Sender: No OFD packet to send [18:02:34]OFD Sender: No OFD packet to send [18:02:39]OFD Sender: No OFD packet to send [18:02:44]OFD Sender: No OFD packet to send [18:02:49]OFD Sender: No OFD packet to send [18:02:54]OFD Sender: No OFD packet to send [18:02:59]OFD Sender: No OFD packet to send [18:03:04]OFD Sender: No OFD packet to send [18:03:09]OFD Sender: No OFD packet to send [18:03:14]OFD Sender: No OFD packet to send [18:03:19]OFD Sender: No OFD packet to send [18:03:24]OFD Sender: No OFD packet to send [18:03:29]OFD Sender: No OFD packet to send [18:03:34]OFD Sender: No OFD packet to send [18:03:39]OFD Sender: No OFD packet to send [18:03:44]OFD Sender: No OFD packet to send [18:03:49]OFD Sender: No OFD packet to send [18:03:54]OFD Sender: No OFD packet to send [18:03:59]OFD Sender: No OFD packet to send [18:04:04]OFD Sender: No OFD packet to send [18:04:05]accept exits with 9 [18:04:05]New connection [18:04:05]New thread 3066928484 created [18:04:05]Thread 3066785124 joined [18:04:05]Waiting for new connection... [18:04:05] Sock 9.Parse request [18:04:05]Sock 9.Check first char [18:04:05]Sock 9.First char is OK [18:04:05]request: POST /json_proto HTTP/1.0 [18:04:05]Method: POST [18:04:05]URL: /json_proto [18:04:05]Method is POST - this is cgi request [18:04:05]url: /json_proto [18:04:05]query_string will be loaded in cgi processing [18:04:05]execute_cgi json_proto POST (null) [18:04:05]execute_cgi path=json_proto method=POST [18:04:05]POST find Content-Length [18:04:05]Host: 172.17.33.3:8080 [18:04:05]Content-Length: 677 [18:04:05]Content-Type: application/json [18:04:05] [18:04:05]POST finish read [18:04:05]Found Content-Length = 677 [18:04:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347681", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.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:04:05]execute_script... [18:04: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)347681", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.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:04:05]POST & json_proto [18:04:05]process_json_proto [18:04:05]json parsed OK: [18:04:05]protocol is kg_v1.0 [18:04:05]action value=close_receipt [18:04:05]process_action close_receipt [18:04:05]cmd_close_receipt [18:04:05]MH_GetDate [18:04:05]Write to MH i2c: F0 00 00 A0 AC 3B [18:04:05]Write i2c OK [18:04:05]MH_I2C_Read... [18:04:05]Read from MH i2c: F0 [18:04:05]MH_I2C_Read... [18:04:05]Read from MH i2c: F0 09 00 [18:04:05]MH_I2C_Read... [18:04:05]Read from MH i2c: F0 09 00 A0 AC 00 A0 1A 1C 66 23 5B 8F 65 F2 [18:04:05]GetLastDocTimeStamp 1713117487 [18:04:05]current date 1713117856 [18:04:05]FM_GetShiftState [18:04:05]SAM_PROTO_GetShiftState [18:04:05]wFMCommunicate request_size=4 [18:04:05]MH_SAM_APDU [18:04:05]CAPDU: 80 13 01 00 [18:04:05]Write to MH i2c: E2 08 00 A1 AC 80 13 01 00 00 00 00 00 CA [18:04:05]Write i2c OK [18:04:05]MH_I2C_Read... [18:04:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:04:05]Read from MH i2c: E2 [18:04:05]MH_I2C_Read... [18:04:05]Read from MH i2c: E2 0E 00 [18:04:05]MH_I2C_Read... [18:04:05]Read from MH i2c: E2 0E 00 A1 AC 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 76 [18:04:05]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [18:04:05]wFMCommunicate OK [18:04:05]SAM_PROTO_GetShiftState done [18:04:05]FM_GetShiftState done [18:04:05]opened in 1713053951 [18:04:05]opened+sec_in_day 1713140351 [18:04:05]quantity*price = 50025 [18:04:05]sum+1 = 50026 [18:04:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 203 14.04.2024 18:04 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29293 ФПД: 201169830920903 1/tax-web-control/client/api/v1/ticket?date=20240414T180417&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29293&fm=201169830920903&tin=02508201610067®Number=0000138879044617&sum=50000 [18:04:06]StoreToDocumentArchive [18:04:06]shift 116 fd 29293 [18:04:06]save to /storage/0116/doc_00029293 [18:04:06]save last doc name /storage/0116/doc_00029293 to /storage/kkm_last_doc_name [18:04:06]save OK [18:04:06]Clear old archive folders... [18:04:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:04:06]tlvbuf is 011DA420 [18:04:06]SAM_PROTO_ClearQueue [18:04:06]wFMCommunicate request_size=4 [18:04:06]MH_SAM_APDU [18:04:06]CAPDU: 80 09 00 00 [18:04:06]Write to MH i2c: E2 08 00 AE AC 80 09 00 00 00 00 00 00 CC [18:04:06]Write i2c OK [18:04:06]MH_I2C_Read... [18:04:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:04:06]Read from MH i2c: E2 [18:04:06]MH_I2C_Read... [18:04:06]Read from MH i2c: E2 03 00 [18:04:06]MH_I2C_Read... [18:04:06]Read from MH i2c: E2 03 00 AE AC 00 90 00 CE [18:04:06]RAPDU: 90 00 [18:04:06]wFMCommunicate OK [18:04:06]SAM_PROTO_ClearQueue done [18:04:06]KKMCreateOFDPacket [18:04:06]OFDProtocolAddRootSTLVToBuf [18:04:06]FM_MakeSignedData [18:04:06]FM_MakeSignedData [18:04:06]SAM_PROTO_SignData [18:04:06]wFMCommunicate request_size=4 [18:04:06]MH_SAM_APDU [18:04:06]CAPDU: 80 0D 01 02 [18:04:06]Write to MH i2c: E2 08 00 AF AC 80 0D 01 02 00 00 00 00 D4 [18:04:06]Write i2c OK [18:04:06]MH_I2C_Read... [18:04:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:04:06]Read from MH i2c: E2 [18:04:06]MH_I2C_Read... [18:04:06]Read from MH i2c: E2 03 00 [18:04:06]MH_I2C_Read... [18:04:06]Read from MH i2c: E2 03 00 AF AC 00 90 00 CF [18:04:06]RAPDU: 90 00 [18:04:06]wFMCommunicate OK [18:04:06]wFMCommunicate request_size=255 [18:04:06]MH_SAM_APDU [18:04: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 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 CB 00 00 00 F4 03 04 00 A1 1A 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6D 72 00 00 35 04 06 00 B6 [18:04:07]Write to MH i2c: E2 02 01 B0 AC 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 CB 00 00 00 F4 03 04 00 A1 1A 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6D 72 00 00 35 04 06 00 B6 00 00 A7 [18:04:07]Write i2c OK [18:04:07]MH_I2C_Read... [18:04:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:04:07]Read from MH i2c: E2 [18:04:07]MH_I2C_Read... [18:04:07]Read from MH i2c: E2 03 00 [18:04:07]MH_I2C_Read... [18:04:07]Read from MH i2c: E2 03 00 B0 AC 00 90 00 D0 [18:04:07]RAPDU: 90 00 [18:04:07]wFMCommunicate OK [18:04:07]wFMCommunicate request_size=10 [18:04:07]MH_SAM_APDU [18:04:07]CAPDU: 80 0D 02 02 05 F6 80 4F C2 C7 [18:04:07]Write to MH i2c: E2 0D 00 B1 AC 80 0D 02 02 05 00 F6 80 4F C2 C7 00 00 2F [18:04:07]Write i2c OK [18:04:07]MH_I2C_Read... [18:04:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:04:07]Read from MH i2c: E2 [18:04:07]MH_I2C_Read... [18:04:07]Read from MH i2c: E2 03 00 [18:04:07]MH_I2C_Read... [18:04:07]Read from MH i2c: E2 03 00 B1 AC 00 90 00 D1 [18:04:07]RAPDU: 90 00 [18:04:07]wFMCommunicate OK [18:04:07]wFMCommunicate request_size=4 [18:04:07]MH_SAM_APDU [18:04:07]CAPDU: 80 0D 03 02 [18:04:07]Write to MH i2c: E2 08 00 B2 AC 80 0D 03 02 00 00 00 00 D9 [18:04:07]Write i2c OK [18:04:07]MH_I2C_Read... [18:04:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:04:07]Read from MH i2c: E2 [18:04:07]MH_I2C_Read... [18:04:07]Read from MH i2c: E2 0B 00 [18:04:07]MH_I2C_Read... [18:04:07]Read from MH i2c: E2 0B 00 B2 AC 00 28 0D 91 8C 07 CE A4 7B 90 00 20 [18:04:07]RAPDU: 28 0D 91 8C 07 CE A4 7B 90 00 [18:04:07]wFMCommunicate OK [18:04:07]SAM_PROTO_SignData done [18:04:07]FM_MakeSignedData done [18:04:07]CreateOFDProtocolMessage [18:04:07]wFMCommunicate request_size=4 [18:04:07]MH_SAM_APDU [18:04:07]CAPDU: 80 11 00 00 [18:04:07]Write to MH i2c: E2 08 00 B3 AC 80 11 00 00 00 00 00 00 D9 [18:04:07]Write i2c OK [18:04:07]MH_I2C_Read... [18:04:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:04:07]Read from MH i2c: E2 [18:04:07]MH_I2C_Read... [18:04:07]Read from MH i2c: E2 17 00 [18:04:07]MH_I2C_Read... [18:04:07]Read from MH i2c: E2 17 00 B3 AC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 28 [18:04:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:04:07]wFMCommunicate OK [18:04:07]CreateOFDProtocolMessage done [18:04:07]OFDSenderStorePacket 29293 [18:04:07]StoreOFDPacket docnum=29293 [18:04:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 DC A2 07 01 CD 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 CB 00 00 00 F4 03 04 00 A1 1A 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6D 72 00 00 35 04 06 00 B6 F6 80 4F C2 C7 28 0D 91 8C 07 CE A4 7B [18:04:07]CheckFolder [18:04:07]dirname=/storage/ofd_packets [18:04:07]CheckFolder done [18:04:07]ProducePacketName [18:04:07]name=ofd_packets/00029293 [18:04:07]NVStorageSaveData ofd_packets/00029293 [18:04:07]File name is /storage/ofd_packets/00029293 [18:04:07]Write 301 bytes [18:04:07]NVStorageSaveData done [18:04:07]OFDSenderStorePacket done [18:04:07]KKMCreateOFDPacket done [18:04:07]NVStorageSaveData kkm_last_timestamp [18:04:07]File name is /storage/kkm_last_timestamp [18:04:07]Write 4 bytes [18:04:07]NVStorageSaveData done [18:04:07]ExternCall_PrintAddStr [18:04:07]wPrintStart [18:04:07]Write to MH i2c: 01 00 00 B4 AC 60 [18:04:07]Write i2c OK [18:04:07]MH_I2C_Read... [18:04:07]Read from MH i2c: 01 [18:04:07]MH_I2C_Read... [18:04:07]Read from MH i2c: 01 07 00 [18:04:07]MH_I2C_Read... [18:04:07]Read from MH i2c: 01 07 00 B4 AC 00 00 00 00 00 FF 0F 75 [18:04:07]RasterBufferAndPrint [18:04:07]line Счет N : (1)347681 [18:04:07]line ИНН: 02508201610067 [18:04:07]line Контрольно-Кассовый Чек [18:04:07]line ПРОДАЖА [18:04:07]line ТРК (МРК, ГНК) : 23 [18:04:07]line Товар: 2710124130 [18:04:07]line Аи-92-К-5 [18:04:07]line 7.780 * 64.30 [18:04:07]line = 500.25 [18:04:07]line НДС 12% НСП 1% [18:04:07]line > о реализуемом товаре [18:04:07]line ОКРУГЛЕНИЕ: -0.25 [18:04:07]line ИТОГО: 500.00 [18:04:07]line Внесено: 500.00 [18:04:07]line СДАЧА: 0.00 [18:04:07]line НСП 1% : 4.43 [18:04:07]line НДС 12% : 53.12 [18:04:07]line Наличными: 500.00 [18:04:07]line Безнал.: 0.00 [18:04:07]line Место: АЗС № 108 "Партнер Нефть" [18:04:07]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [18:04:07]line СНО: Общий режим [18:04:07]line Чек 203 14.04.2024 18:04 [18:04:07]line Смена: 116 ФФД: 1.0 [18:04:07]line ЗНМ: 0300000027 [18:04:07]line РНМ: 0000138879044617 [18:04:07]line Версия ККМ: 001 [18:04:07]line ФМ: 0000000000963154 [18:04:07]line ФД: 29293 [18:04:07]line ФПД: 201169830920903 [18:04:07]line 1/tax-web-control/client/api/v1/ticket?date=20240414T180417&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29293&fm=201169830920903&tin=02508201610067®Number=0000138879044617&sum=50000 [18:04:07]OFD Sender: Processing packet 29293 [packets to send 8, broken 7] [18:04:07]ProducePacketName [18:04:07]name=ofd_packets/00029293 [18:04:07]OFD Sender: To server: pG, [18:04:07]CommunicateWithHost lk.salyk.kg:30040 [18:04:07]ConnectInit lk.salyk.kg [18:04:07]written 0, free lines is 4095 [18:04:07]Connected sock=10 [18:04:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 DC A2 07 01 CD 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 CB 00 00 00 F4 03 04 00 A1 1A 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6D 72 00 00 35 04 06 00 B6 F6 80 4F C2 C7 28 0D 91 8C 07 CE A4 7B [18:04:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 53 8D 47 00 75 F9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6D 72 00 00 F4 03 04 00 44 C5 1B 66 B6 04 01 00 00 7F 5A 14 4B 9A 07 83 01 [18:04:08]CommunicateWithHost err = 0 [18:04:08]CheckOFDResponse [18:04:08]1017 (14) - 77093643461234 [18:04:08]1041 (16) - 0000000000963154 [18:04:08]1040 (4) - 29293 [18:04:08]1012 (4) - 14.04.2024 12:00 [18:04:08]1206 (1) - 0 [18:04:08]OFD Sender: Remove packet 29293 [18:04:08]ProducePacketName [18:04:08]name=ofd_packets/00029293 [18:04:08]NVStorageDeleteData [18:04:08]Write to MH i2c: 01 00 00 DE AC 8A [18:04:08]Write i2c OK [18:04:08]MH_I2C_Read... [18:04:08]Read from MH i2c: 01 [18:04:08]MH_I2C_Read... [18:04:08]Read from MH i2c: 01 07 00 [18:04:08]MH_I2C_Read... [18:04:08]Read from MH i2c: 01 07 00 DE AC 00 00 00 00 00 D7 0C 74 [18:04:08]RasterBufferAndPrint [18:04:08]line [18:04:08]line [18:04:08]line [18:04:08]line [18:04:08]line [18:04:08]written 0, free lines is 3294 [18:04:08]MH_Cut [18:04:08]Write to MH i2c: D1 01 00 E5 AC 01 63 [18:04:08]Write i2c OK [18:04:08]MH_I2C_Read... [18:04:08]Read from MH i2c: D1 [18:04:08]MH_I2C_Read... [18:04:08]Read from MH i2c: D1 01 00 [18:04:08]MH_I2C_Read... [18:04:08]Read from MH i2c: D1 01 00 E5 AC 00 62 [18:04:08]Write to MH i2c: 01 00 00 E6 AC 92 [18:04:08]Write i2c OK [18:04:08]MH_I2C_Read... [18:04:08]OFD Sender: No OFD packet to send [18:04:09]*** Cut start [18:04:09]*** Partial cut [18:04:09]*** CUTSNS_PIN = 1 [18:04:09]*** CUTSNS_PIN = 0 [18:04:09]*** Brake cut motor [18:04:09]Read from MH i2c: 01 [18:04:09]MH_I2C_Read... [18:04:09]*** Stop cut motor [18:04:09]*** Cut end [18:04:09]Read from MH i2c: 01 07 00 [18:04:09]MH_I2C_Read... [18:04:09]Read from MH i2c: 01 07 00 E6 AC 00 00 00 00 00 FF 0F A7 [18:04:09]process_action close_receipt done [18:04:09]requested_data is exist [18:04:09]produce_requested_data [18:04:09]requested_item fm.sn is exist - process it [18:04:09]wFMCommunicate request_size=4 [18:04:09]MH_SAM_APDU [18:04:09]CAPDU: 80 11 00 00 [18:04:09]Write to MH i2c: E2 08 00 E7 AC 80 11 00 00 00 00 00 00 0D [18:04:09]Write i2c OK [18:04:09]MH_I2C_Read... [18:04:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:04:09]Read from MH i2c: E2 [18:04:09]MH_I2C_Read... [18:04:09]Read from MH i2c: E2 17 00 [18:04:09]MH_I2C_Read... [18:04:09]Read from MH i2c: E2 17 00 E7 AC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 5C [18:04:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:04:09]wFMCommunicate OK [18:04:09]requested_item fd.num is exist - process it [18:04:09]SAM_PROTO_GetFieldsCounters [18:04:09]wFMCommunicate request_size=4 [18:04:09]MH_SAM_APDU [18:04:09]CAPDU: 80 13 00 00 [18:04:09]Write to MH i2c: E2 08 00 E8 AC 80 13 00 00 00 00 00 00 10 [18:04:09]Write i2c OK [18:04:09]MH_I2C_Read... [18:04:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:04:09]Read from MH i2c: E2 [18:04:09]MH_I2C_Read... [18:04:09]Read from MH i2c: E2 62 00 [18:04:09]MH_I2C_Read... [18:04:09]Read from MH i2c: E2 62 00 E8 AC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 6D 72 00 00 0E 04 04 00 74 00 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 02 [18:04:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 6D 72 00 00 0E 04 04 00 74 00 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 [18:04:09]wFMCommunicate OK [18:04:09]SAM_PROTO_GetFieldsCounters done [18:04:09]requested_item shift.num is exist - process it [18:04:09]requested_item shift.opened is exist - process it [18:04:09]req_shift_opened [18:04:09]FM_GetShiftState [18:04:09]SAM_PROTO_GetShiftState [18:04:09]wFMCommunicate request_size=4 [18:04:09]MH_SAM_APDU [18:04:09]CAPDU: 80 13 01 00 [18:04:09]Write to MH i2c: E2 08 00 E9 AC 80 13 01 00 00 00 00 00 12 [18:04:09]Write i2c OK [18:04:09]MH_I2C_Read... [18:04:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:04:09]Read from MH i2c: E2 [18:04:09]MH_I2C_Read... [18:04:09]Read from MH i2c: E2 0E 00 [18:04:09]MH_I2C_Read... [18:04:09]Read from MH i2c: E2 0E 00 E9 AC 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 BE [18:04:09]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [18:04:09]wFMCommunicate OK [18:04:09]SAM_PROTO_GetShiftState done [18:04:09]FM_GetShiftState done [18:04:09]req_shift_opened done [18:04:09]requested_item shift.open_date is exist - process it [18:04:09]req_shift_open_date [18:04:09]req_shift_open_date done [18:04:09]produce_requested_data done [18:04:09]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29293,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [18:04:09]process_action_free close_receipt [18:04:09]json_value_free [18:04:09]json_value_free done [18:04:09]process_json_proto returns [18:04:09]Send response to host [18:04:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29293,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [18:04:09]free response buf [18:04:09]execute_script done [18:04:09]execute_script returns [18:04:09]free content buf [18:04:09]Sock 9.Close socket [18:04:09]Sock 9.Thread stoped [18:04:13]OFD Sender: No OFD packet to send [18:04:18]OFD Sender: No OFD packet to send [18:04:23]OFD Sender: No OFD packet to send [18:04:28]OFD Sender: No OFD packet to send [18:04:33]OFD Sender: No OFD packet to send [18:04:38]OFD Sender: No OFD packet to send [18:04:43]OFD Sender: No OFD packet to send [18:04:48]OFD Sender: No OFD packet to send [18:04:53]OFD Sender: No OFD packet to send [18:04:58]OFD Sender: No OFD packet to send [18:05:03]OFD Sender: No OFD packet to send [18:05:07]accept exits with 7 [18:05:07]New connection [18:05:07]New thread 3066785124 created [18:05:07]Thread 3066928484 joined [18:05:07]Waiting for new connection... [18:05:07] Sock 7.Parse request [18:05:07]Sock 7.Check first char [18:05:07]Sock 7.First char is OK [18:05:07]request: POST /json_proto HTTP/1.0 [18:05:07]Method: POST [18:05:07]URL: /json_proto [18:05:07]Method is POST - this is cgi request [18:05:07]url: /json_proto [18:05:07]query_string will be loaded in cgi processing [18:05:07]execute_cgi json_proto POST (null) [18:05:07]execute_cgi path=json_proto method=POST [18:05:07]POST find Content-Length [18:05:07]Host: 172.17.33.3:8080 [18:05:07]Content-Length: 843 [18:05:07]Content-Type: application/json [18:05:07] [18:05:07]POST finish read [18:05:07]Found Content-Length = 843 [18:05:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347682", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 23.330, "sum" : 1500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1500.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:05:07]execute_script... [18:05: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)347682", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 23.330, "sum" : 1500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1500.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:05:07]POST & json_proto [18:05:07]process_json_proto [18:05:07]json parsed OK: [18:05:07]protocol is kg_v1.0 [18:05:07]action value=close_receipt [18:05:07]process_action close_receipt [18:05:07]cmd_close_receipt [18:05:07]MH_GetDate [18:05:07]Write to MH i2c: F0 00 00 EA AC 85 [18:05:07]Write i2c OK [18:05:07]MH_I2C_Read... [18:05:07]Read from MH i2c: F0 [18:05:07]MH_I2C_Read... [18:05:07]Read from MH i2c: F0 09 00 [18:05:07]MH_I2C_Read... [18:05:07]Read from MH i2c: F0 09 00 EA AC 00 DE 1A 1C 66 23 5B 8F 65 7A [18:05:07]GetLastDocTimeStamp 1713117857 [18:05:07]current date 1713117918 [18:05:07]FM_GetShiftState [18:05:07]SAM_PROTO_GetShiftState [18:05:07]wFMCommunicate request_size=4 [18:05:07]MH_SAM_APDU [18:05:07]CAPDU: 80 13 01 00 [18:05:07]Write to MH i2c: E2 08 00 EB AC 80 13 01 00 00 00 00 00 14 [18:05:07]Write i2c OK [18:05:07]MH_I2C_Read... [18:05:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:05:07]Read from MH i2c: E2 [18:05:07]MH_I2C_Read... [18:05:07]Read from MH i2c: E2 0E 00 [18:05:07]MH_I2C_Read... [18:05:07]Read from MH i2c: E2 0E 00 EB AC 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 C0 [18:05:07]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [18:05:07]wFMCommunicate OK [18:05:07]SAM_PROTO_GetShiftState done [18:05:07]FM_GetShiftState done [18:05:07]opened in 1713053951 [18:05:07]opened+sec_in_day 1713140351 [18:05:07]quantity*price = 150011 [18:05:07]sum+1 = 150013 [18:05:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.12 НСП 1% : 13.27 НДС 12% : 159.30 Наличными: 0.00 Безнал.: 1500.12 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 204 14.04.2024 18:05 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 29294 ФПД: 3975230685738 1/tax-web-control/client/api/v1/ticket?date=20240414T180518&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29294&fm=3975230685738&tin=02508201610067®Number=0000138879044617&sum=150012 [18:05:08]StoreToDocumentArchive [18:05:08]shift 116 fd 29294 [18:05:08]save to /storage/0116/doc_00029294 [18:05:08]save last doc name /storage/0116/doc_00029294 to /storage/kkm_last_doc_name [18:05:08]save OK [18:05:08]Clear old archive folders... [18:05:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:05:08]tlvbuf is 012146B0 [18:05:08]SAM_PROTO_ClearQueue [18:05:08]wFMCommunicate request_size=4 [18:05:08]MH_SAM_APDU [18:05:08]CAPDU: 80 09 00 00 [18:05:08]Write to MH i2c: E2 08 00 F8 AC 80 09 00 00 00 00 00 00 16 [18:05:08]Write i2c OK [18:05:08]MH_I2C_Read... [18:05:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:05:08]Read from MH i2c: E2 [18:05:08]MH_I2C_Read... [18:05:08]Read from MH i2c: E2 03 00 [18:05:08]MH_I2C_Read... [18:05:08]Read from MH i2c: E2 03 00 F8 AC 00 90 00 18 [18:05:08]RAPDU: 90 00 [18:05:08]wFMCommunicate OK [18:05:08]SAM_PROTO_ClearQueue done [18:05:08]KKMCreateOFDPacket [18:05:08]OFDProtocolAddRootSTLVToBuf [18:05:08]FM_MakeSignedData [18:05:08]FM_MakeSignedData [18:05:08]SAM_PROTO_SignData [18:05:08]wFMCommunicate request_size=4 [18:05:08]MH_SAM_APDU [18:05:08]CAPDU: 80 0D 01 02 [18:05:08]Write to MH i2c: E2 08 00 F9 AC 80 0D 01 02 00 00 00 00 1E [18:05:08]Write i2c OK [18:05:08]MH_I2C_Read... [18:05:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:05:08]Read from MH i2c: E2 [18:05:08]MH_I2C_Read... [18:05:08]Read from MH i2c: E2 03 00 [18:05:08]MH_I2C_Read... [18:05:08]Read from MH i2c: E2 03 00 F9 AC 00 90 00 19 [18:05:08]RAPDU: 90 00 [18:05:08]wFMCommunicate OK [18:05:08]wFMCommunicate request_size=255 [18:05:08]MH_SAM_APDU [18:05: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 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 FC 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 00 00 00 00 00 00 39 04 06 00 FC 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 DE 1A 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6E 72 00 00 35 04 06 00 03 [18:05:08]Write to MH i2c: E2 02 01 FA AC 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 FC 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 00 00 00 00 00 00 39 04 06 00 FC 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 DE 1A 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6E 72 00 00 35 04 06 00 03 00 00 17 [18:05:08]Write i2c OK [18:05:08]MH_I2C_Read... [18:05:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:05:09]Read from MH i2c: E2 [18:05:09]MH_I2C_Read... [18:05:09]Read from MH i2c: E2 03 00 [18:05:09]MH_I2C_Read... [18:05:09]Read from MH i2c: E2 03 00 FA AC 00 90 00 1A [18:05:09]RAPDU: 90 00 [18:05:09]wFMCommunicate OK [18:05:09]wFMCommunicate request_size=10 [18:05:09]MH_SAM_APDU [18:05:09]CAPDU: 80 0D 02 02 05 9D 8E 36 82 2A [18:05:09]Write to MH i2c: E2 0D 00 FB AC 80 0D 02 02 05 00 9D 8E 36 82 2A 00 00 38 [18:05:09]Write i2c OK [18:05:09]MH_I2C_Read... [18:05:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:05:09]Read from MH i2c: E2 [18:05:09]MH_I2C_Read... [18:05:09]Read from MH i2c: E2 03 00 [18:05:09]MH_I2C_Read... [18:05:09]Read from MH i2c: E2 03 00 FB AC 00 90 00 1B [18:05:09]RAPDU: 90 00 [18:05:09]wFMCommunicate OK [18:05:09]wFMCommunicate request_size=4 [18:05:09]MH_SAM_APDU [18:05:09]CAPDU: 80 0D 03 02 [18:05:09]Write to MH i2c: E2 08 00 FC AC 80 0D 03 02 00 00 00 00 23 [18:05:09]Write i2c OK [18:05:09]MH_I2C_Read... [18:05:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:05:09]Read from MH i2c: E2 [18:05:09]MH_I2C_Read... [18:05:09]Read from MH i2c: E2 0B 00 [18:05:09]MH_I2C_Read... [18:05:09]Read from MH i2c: E2 0B 00 FC AC 00 2F DB 44 78 36 C2 CD A7 90 00 56 [18:05:09]RAPDU: 2F DB 44 78 36 C2 CD A7 90 00 [18:05:09]wFMCommunicate OK [18:05:09]SAM_PROTO_SignData done [18:05:09]FM_MakeSignedData done [18:05:09]CreateOFDProtocolMessage [18:05:09]wFMCommunicate request_size=4 [18:05:09]MH_SAM_APDU [18:05:09]CAPDU: 80 11 00 00 [18:05:09]Write to MH i2c: E2 08 00 FD AC 80 11 00 00 00 00 00 00 23 [18:05:09]Write i2c OK [18:05:09]MH_I2C_Read... [18:05:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:05:09]Read from MH i2c: E2 [18:05:09]MH_I2C_Read... [18:05:09]Read from MH i2c: E2 17 00 [18:05:09]MH_I2C_Read... [18:05:09]Read from MH i2c: E2 17 00 FD AC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 72 [18:05:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:05:09]wFMCommunicate OK [18:05:09]CreateOFDProtocolMessage done [18:05:09]OFDSenderStorePacket 29294 [18:05:09]StoreOFDPacket docnum=29294 [18:05:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 C5 6A 07 01 46 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 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 FC 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 00 00 00 00 00 00 39 04 06 00 FC 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 DE 1A 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6E 72 00 00 35 04 06 00 03 9D 8E 36 82 2A 2F DB 44 78 36 C2 CD A7 [18:05:09]CheckFolder [18:05:09]dirname=/storage/ofd_packets [18:05:09]CheckFolder done [18:05:09]ProducePacketName [18:05:09]name=ofd_packets/00029294 [18:05:09]NVStorageSaveData ofd_packets/00029294 [18:05:09]File name is /storage/ofd_packets/00029294 [18:05:09]Write 301 bytes [18:05:09]NVStorageSaveData done [18:05:09]OFDSenderStorePacket done [18:05:09]KKMCreateOFDPacket done [18:05:09]NVStorageSaveData kkm_last_timestamp [18:05:09]File name is /storage/kkm_last_timestamp [18:05:09]Write 4 bytes [18:05:09]NVStorageSaveData done [18:05:09]ExternCall_PrintAddStr [18:05:09]wPrintStart [18:05:09]Write to MH i2c: 01 00 00 FE AC AA [18:05:09]Write i2c OK [18:05:09]MH_I2C_Read... [18:05:09]Read from MH i2c: 01 [18:05:09]MH_I2C_Read... [18:05:09]Read from MH i2c: 01 07 00 [18:05:09]MH_I2C_Read... [18:05:09]Read from MH i2c: 01 07 00 FE AC 00 00 00 00 00 FF 0F BF [18:05:09]RasterBufferAndPrint [18:05:09]line Счет N : (1)347682 [18:05:09]line ИНН: 02508201610067 [18:05:09]line Контрольно-Кассовый Чек [18:05:09]line ПРОДАЖА [18:05:09]line ТРК (МРК, ГНК) : 23 [18:05:09]line Товар: 2710124130 [18:05:09]line Аи-92-К-5 [18:05:09]line 23.330 * 64.30 [18:05:09]line = 1500.12 [18:05:09]line НДС 12% НСП 1% [18:05:09]line > о реализуемом товаре [18:05:09]line ИТОГО: 1500.12 [18:05:09]line НСП 1% : 13.27 [18:05:09]line НДС 12% : 159.30 [18:05:09]line Наличными: 0.00 [18:05:09]line Безнал.: 1500.12 [18:05:09]line Место: АЗС № 108 "Партнер Нефть" [18:05:09]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [18:05:09]line СНО: Общий режим [18:05:09]line Чек 204 14.04.2024 18:05 [18:05:09]line Смена: 116 ФФД: 1.0 [18:05:09]line ЗНМ: 0300000027 [18:05:09]line РНМ: 0000138879044617 [18:05:09]line Версия ККМ: 001 [18:05:09]line Платежная система: АКБ Кыргызстан [18:05:09]line ФМ: 0000000000963154 [18:05:09]line ФД: 29294 [18:05:09]line ФПД: 3975230685738 [18:05:09]line 1/tax-web-control/client/api/v1/ticket?date=20240414T180518&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29294&fm=3975230685738&tin=02508201610067®Number=0000138879044617&sum=150012 [18:05:09]OFD Sender: Processing packet 29294 [packets to send 8, broken 7] [18:05:09]ProducePacketName [18:05:09]name=ofd_packets/00029294 [18:05:09]OFD Sender: To server: pG, [18:05:09]CommunicateWithHost lk.salyk.kg:30040 [18:05:09]ConnectInit lk.salyk.kg [18:05:09]written 0, free lines is 4095 [18:05:09]Connected sock=9 [18:05:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 C5 6A 07 01 46 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 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 FC 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 00 00 00 00 00 00 39 04 06 00 FC 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 DE 1A 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6E 72 00 00 35 04 06 00 03 9D 8E 36 82 2A 2F DB 44 78 36 C2 CD A7 [18:05:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 86 D5 47 00 D6 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6E 72 00 00 F4 03 04 00 82 C5 1B 66 B6 04 01 00 00 AB 3B 50 9C B3 8A 9E 9E [18:05:09]CommunicateWithHost err = 0 [18:05:09]CheckOFDResponse [18:05:09]1017 (14) - 77093643461234 [18:05:09]1041 (16) - 0000000000963154 [18:05:09]1040 (4) - 29294 [18:05:09]1012 (4) - 14.04.2024 12:01 [18:05:09]1206 (1) - 0 [18:05:09]OFD Sender: Remove packet 29294 [18:05:09]ProducePacketName [18:05:09]name=ofd_packets/00029294 [18:05:09]NVStorageDeleteData [18:05:09]Write to MH i2c: 01 00 00 27 AD D4 [18:05:09]Write i2c OK [18:05:09]MH_I2C_Read... [18:05:09]Read from MH i2c: 01 [18:05:09]MH_I2C_Read... [18:05:09]Read from MH i2c: 01 07 00 [18:05:09]MH_I2C_Read... [18:05:09]Read from MH i2c: 01 07 00 27 AD 00 00 00 00 00 F5 0C DC [18:05:09]RasterBufferAndPrint [18:05:09]line [18:05:09]line [18:05:09]line [18:05:09]line [18:05:09]line [18:05:09]written 0, free lines is 3325 [18:05:09]MH_Cut [18:05:09]Write to MH i2c: D1 01 00 2E AD 01 AD [18:05:09]Write i2c OK [18:05:09]MH_I2C_Read... [18:05:09]Read from MH i2c: D1 [18:05:09]MH_I2C_Read... [18:05:09]Read from MH i2c: D1 01 00 [18:05:09]MH_I2C_Read... [18:05:09]Read from MH i2c: D1 01 00 2E AD 00 AC [18:05:09]Write to MH i2c: 01 00 00 2F AD DC [18:05:09]Write i2c OK [18:05:09]MH_I2C_Read... [18:05:10]OFD Sender: No OFD packet to send [18:05:10]*** Cut start [18:05:10]*** Partial cut [18:05:10]*** CUTSNS_PIN = 1 [18:05:10]*** CUTSNS_PIN = 0 [18:05:11]*** Brake cut motor [18:05:11]Read from MH i2c: 01 [18:05:11]MH_I2C_Read... [18:05:11]*** Stop cut motor [18:05:11]*** Cut end [18:05:11]Read from MH i2c: 01 07 00 [18:05:11]MH_I2C_Read... [18:05:11]Read from MH i2c: 01 07 00 2F AD 00 00 00 00 00 FF 0F F1 [18:05:11]process_action close_receipt done [18:05:11]requested_data is exist [18:05:11]produce_requested_data [18:05:11]requested_item fm.sn is exist - process it [18:05:11]wFMCommunicate request_size=4 [18:05:11]MH_SAM_APDU [18:05:11]CAPDU: 80 11 00 00 [18:05:11]Write to MH i2c: E2 08 00 30 AD 80 11 00 00 00 00 00 00 57 [18:05:11]Write i2c OK [18:05:11]MH_I2C_Read... [18:05:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:05:11]Read from MH i2c: E2 [18:05:11]MH_I2C_Read... [18:05:11]Read from MH i2c: E2 17 00 [18:05:11]MH_I2C_Read... [18:05:11]Read from MH i2c: E2 17 00 30 AD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A6 [18:05:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:05:11]wFMCommunicate OK [18:05:11]requested_item fd.num is exist - process it [18:05:11]SAM_PROTO_GetFieldsCounters [18:05:11]wFMCommunicate request_size=4 [18:05:11]MH_SAM_APDU [18:05:11]CAPDU: 80 13 00 00 [18:05:11]Write to MH i2c: E2 08 00 31 AD 80 13 00 00 00 00 00 00 5A [18:05:11]Write i2c OK [18:05:11]MH_I2C_Read... [18:05:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:05:11]Read from MH i2c: E2 [18:05:11]MH_I2C_Read... [18:05:11]Read from MH i2c: E2 62 00 [18:05:11]MH_I2C_Read... [18:05:11]Read from MH i2c: E2 62 00 31 AD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 6E 72 00 00 0E 04 04 00 74 00 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 50 [18:05:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 6E 72 00 00 0E 04 04 00 74 00 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 [18:05:11]wFMCommunicate OK [18:05:11]SAM_PROTO_GetFieldsCounters done [18:05:11]requested_item shift.num is exist - process it [18:05:11]requested_item shift.opened is exist - process it [18:05:11]req_shift_opened [18:05:11]FM_GetShiftState [18:05:11]SAM_PROTO_GetShiftState [18:05:11]wFMCommunicate request_size=4 [18:05:11]MH_SAM_APDU [18:05:11]CAPDU: 80 13 01 00 [18:05:11]Write to MH i2c: E2 08 00 32 AD 80 13 01 00 00 00 00 00 5C [18:05:11]Write i2c OK [18:05:11]MH_I2C_Read... [18:05:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:05:11]Read from MH i2c: E2 [18:05:11]MH_I2C_Read... [18:05:11]Read from MH i2c: E2 0E 00 [18:05:11]MH_I2C_Read... [18:05:11]Read from MH i2c: E2 0E 00 32 AD 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 08 [18:05:11]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [18:05:11]wFMCommunicate OK [18:05:11]SAM_PROTO_GetShiftState done [18:05:11]FM_GetShiftState done [18:05:11]req_shift_opened done [18:05:11]requested_item shift.open_date is exist - process it [18:05:11]req_shift_open_date [18:05:11]req_shift_open_date done [18:05:11]produce_requested_data done [18:05:11]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29294,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [18:05:11]process_action_free close_receipt [18:05:11]json_value_free [18:05:11]json_value_free done [18:05:11]process_json_proto returns [18:05:11]Send response to host [18:05:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29294,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [18:05:11]free response buf [18:05:11]execute_script done [18:05:11]execute_script returns [18:05:11]free content buf [18:05:11]Sock 7.Close socket [18:05:11]Sock 7.Thread stoped [18:05:15]OFD Sender: No OFD packet to send [18:05:20]OFD Sender: No OFD packet to send [18:05:25]OFD Sender: No OFD packet to send [18:05:30]OFD Sender: No OFD packet to send [18:05:35]OFD Sender: No OFD packet to send [18:05:40]OFD Sender: No OFD packet to send [18:05:45]OFD Sender: No OFD packet to send [18:05:50]OFD Sender: No OFD packet to send [18:05:55]OFD Sender: No OFD packet to send [18:06:00]OFD Sender: No OFD packet to send [18:06:05]OFD Sender: No OFD packet to send [18:06:10]OFD Sender: No OFD packet to send [18:06:15]OFD Sender: No OFD packet to send [18:06:20]OFD Sender: No OFD packet to send [18:06:25]OFD Sender: No OFD packet to send [18:06:30]OFD Sender: No OFD packet to send [18:06:35]OFD Sender: No OFD packet to send [18:06:40]OFD Sender: No OFD packet to send [18:06:45]OFD Sender: No OFD packet to send [18:06:50]OFD Sender: No OFD packet to send [18:06:55]OFD Sender: No OFD packet to send [18:07:00]OFD Sender: No OFD packet to send [18:07:05]OFD Sender: No OFD packet to send [18:07:10]OFD Sender: No OFD packet to send [18:07:15]OFD Sender: No OFD packet to send [18:07:20]OFD Sender: No OFD packet to send [18:07:25]OFD Sender: No OFD packet to send [18:07:30]OFD Sender: No OFD packet to send [18:07:35]OFD Sender: No OFD packet to send [18:07:40]OFD Sender: No OFD packet to send [18:07:45]OFD Sender: No OFD packet to send [18:07:50]OFD Sender: No OFD packet to send [18:07:55]OFD Sender: No OFD packet to send [18:08:00]OFD Sender: No OFD packet to send [18:08:05]OFD Sender: No OFD packet to send [18:08:10]OFD Sender: No OFD packet to send [18:08:15]OFD Sender: No OFD packet to send [18:08:20]OFD Sender: No OFD packet to send [18:08:25]OFD Sender: No OFD packet to send [18:08:30]OFD Sender: No OFD packet to send [18:08:35]OFD Sender: No OFD packet to send [18:08:40]OFD Sender: No OFD packet to send [18:08:45]OFD Sender: No OFD packet to send [18:08:50]OFD Sender: No OFD packet to send [18:08:55]OFD Sender: No OFD packet to send [18:09:00]OFD Sender: No OFD packet to send [18:09:05]OFD Sender: No OFD packet to send [18:09:10]OFD Sender: No OFD packet to send [18:09:12]accept exits with 10 [18:09:12]New connection [18:09:12]New thread 3066928484 created [18:09:12]Thread 3066785124 joined [18:09:12]Waiting for new connection... [18:09:12] Sock 10.Parse request [18:09:12]Sock 10.Check first char [18:09:12]Sock 10.First char is OK [18:09:12]request: POST /json_proto HTTP/1.0 [18:09:12]Method: POST [18:09:12]URL: /json_proto [18:09:12]Method is POST - this is cgi request [18:09:12]url: /json_proto [18:09:12]query_string will be loaded in cgi processing [18:09:12]execute_cgi json_proto POST (null) [18:09:12]execute_cgi path=json_proto method=POST [18:09:12]POST find Content-Length [18:09:12]Host: 172.17.33.3:8080 [18:09:12]Content-Length: 685 [18:09:12]Content-Type: application/json [18:09:12] [18:09:12]POST finish read [18:09:12]Found Content-Length = 685 [18:09:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347683", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 30.400, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:09:12]execute_script... [18:09: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)347683", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 30.400, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:09:12]POST & json_proto [18:09:12]process_json_proto [18:09:12]json parsed OK: [18:09:12]protocol is kg_v1.0 [18:09:12]action value=close_receipt [18:09:12]process_action close_receipt [18:09:12]cmd_close_receipt [18:09:12]MH_GetDate [18:09:12]Write to MH i2c: F0 00 00 33 AD CF [18:09:12]Write i2c OK [18:09:12]MH_I2C_Read... [18:09:12]Read from MH i2c: F0 [18:09:12]MH_I2C_Read... [18:09:12]Read from MH i2c: F0 09 00 [18:09:12]MH_I2C_Read... [18:09:12]Read from MH i2c: F0 09 00 33 AD 00 D3 1B 1C 66 23 5B 8F 65 BA [18:09:12]GetLastDocTimeStamp 1713117918 [18:09:12]current date 1713118163 [18:09:12]FM_GetShiftState [18:09:12]SAM_PROTO_GetShiftState [18:09:12]wFMCommunicate request_size=4 [18:09:12]MH_SAM_APDU [18:09:12]CAPDU: 80 13 01 00 [18:09:12]Write to MH i2c: E2 08 00 34 AD 80 13 01 00 00 00 00 00 5E [18:09:12]Write i2c OK [18:09:12]MH_I2C_Read... [18:09:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:09:12]Read from MH i2c: E2 [18:09:12]MH_I2C_Read... [18:09:12]Read from MH i2c: E2 0E 00 [18:09:12]MH_I2C_Read... [18:09:12]Read from MH i2c: E2 0E 00 34 AD 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 0A [18:09:12]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [18:09:12]wFMCommunicate OK [18:09:12]SAM_PROTO_GetShiftState done [18:09:12]FM_GetShiftState done [18:09:12]opened in 1713053951 [18:09:12]opened+sec_in_day 1713140351 [18:09:12]quantity*price = 100016 [18:09:12]sum+1 = 100017 [18:09:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 205 14.04.2024 18:09 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29295 ФПД: 229057287073184 1/tax-web-control/client/api/v1/ticket?date=20240414T180923&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29295&fm=229057287073184&tin=02508201610067®Number=0000138879044617&sum=100000 [18:09:13]StoreToDocumentArchive [18:09:13]shift 116 fd 29295 [18:09:13]save to /storage/0116/doc_00029295 [18:09:13]save last doc name /storage/0116/doc_00029295 to /storage/kkm_last_doc_name [18:09:13]save OK [18:09:13]Clear old archive folders... [18:09:13]ProcessDocumentItem done err = 0, tmpTLVsize=250 [18:09:13]tlvbuf is 011EE880 [18:09:13]SAM_PROTO_ClearQueue [18:09:13]wFMCommunicate request_size=4 [18:09:13]MH_SAM_APDU [18:09:13]CAPDU: 80 09 00 00 [18:09:13]Write to MH i2c: E2 08 00 41 AD 80 09 00 00 00 00 00 00 60 [18:09:13]Write i2c OK [18:09:13]MH_I2C_Read... [18:09:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:09:13]Read from MH i2c: E2 [18:09:13]MH_I2C_Read... [18:09:13]Read from MH i2c: E2 03 00 [18:09:13]MH_I2C_Read... [18:09:13]Read from MH i2c: E2 03 00 41 AD 00 90 00 62 [18:09:13]RAPDU: 90 00 [18:09:13]wFMCommunicate OK [18:09:13]SAM_PROTO_ClearQueue done [18:09:13]KKMCreateOFDPacket [18:09:13]OFDProtocolAddRootSTLVToBuf [18:09:13]FM_MakeSignedData [18:09:13]FM_MakeSignedData [18:09:13]SAM_PROTO_SignData [18:09:13]wFMCommunicate request_size=4 [18:09:13]MH_SAM_APDU [18:09:13]CAPDU: 80 0D 01 02 [18:09:13]Write to MH i2c: E2 08 00 42 AD 80 0D 01 02 00 00 00 00 68 [18:09:13]Write i2c OK [18:09:13]MH_I2C_Read... [18:09:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:09:13]Read from MH i2c: E2 [18:09:13]MH_I2C_Read... [18:09:13]Read from MH i2c: E2 03 00 [18:09:13]MH_I2C_Read... [18:09:13]Read from MH i2c: E2 03 00 42 AD 00 90 00 63 [18:09:13]RAPDU: 90 00 [18:09:13]wFMCommunicate OK [18:09:13]wFMCommunicate request_size=255 [18:09:13]MH_SAM_APDU [18:09:13]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 D3 1B 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6F 72 00 00 35 04 06 00 D0 53 [18:09:13]Write to MH i2c: E2 02 01 43 AD 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 D3 1B 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6F 72 00 00 35 04 06 00 D0 53 00 00 B3 [18:09:13]Write i2c OK [18:09:13]MH_I2C_Read... [18:09:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:09:14]Read from MH i2c: E2 [18:09:14]MH_I2C_Read... [18:09:14]Read from MH i2c: E2 03 00 [18:09:14]MH_I2C_Read... [18:09:14]Read from MH i2c: E2 03 00 43 AD 00 90 00 64 [18:09:14]RAPDU: 90 00 [18:09:14]wFMCommunicate OK [18:09:14]wFMCommunicate request_size=9 [18:09:14]MH_SAM_APDU [18:09:14]CAPDU: 80 0D 02 02 04 8E 3A AD A0 [18:09:14]Write to MH i2c: E2 0C 00 44 AD 80 0D 02 02 04 00 8E 3A AD A0 00 00 88 [18:09:14]Write i2c OK [18:09:14]MH_I2C_Read... [18:09:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:09:14]Read from MH i2c: E2 [18:09:14]MH_I2C_Read... [18:09:14]Read from MH i2c: E2 03 00 [18:09:14]MH_I2C_Read... [18:09:14]Read from MH i2c: E2 03 00 44 AD 00 90 00 65 [18:09:14]RAPDU: 90 00 [18:09:14]wFMCommunicate OK [18:09:14]wFMCommunicate request_size=4 [18:09:14]MH_SAM_APDU [18:09:14]CAPDU: 80 0D 03 02 [18:09:14]Write to MH i2c: E2 08 00 45 AD 80 0D 03 02 00 00 00 00 6D [18:09:14]Write i2c OK [18:09:14]MH_I2C_Read... [18:09:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:09:14]Read from MH i2c: E2 [18:09:14]MH_I2C_Read... [18:09:14]Read from MH i2c: E2 0B 00 [18:09:14]MH_I2C_Read... [18:09:14]Read from MH i2c: E2 0B 00 45 AD 00 9D 78 07 D4 2F F9 C1 6B 90 00 B2 [18:09:14]RAPDU: 9D 78 07 D4 2F F9 C1 6B 90 00 [18:09:14]wFMCommunicate OK [18:09:14]SAM_PROTO_SignData done [18:09:14]FM_MakeSignedData done [18:09:14]CreateOFDProtocolMessage [18:09:14]wFMCommunicate request_size=4 [18:09:14]MH_SAM_APDU [18:09:14]CAPDU: 80 11 00 00 [18:09:14]Write to MH i2c: E2 08 00 46 AD 80 11 00 00 00 00 00 00 6D [18:09:14]Write i2c OK [18:09:14]MH_I2C_Read... [18:09:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:09:14]Read from MH i2c: E2 [18:09:14]MH_I2C_Read... [18:09:14]Read from MH i2c: E2 17 00 [18:09:14]MH_I2C_Read... [18:09:14]Read from MH i2c: E2 17 00 46 AD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 BC [18:09:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:09:14]wFMCommunicate OK [18:09:14]CreateOFDProtocolMessage done [18:09:14]OFDSenderStorePacket 29295 [18:09:14]StoreOFDPacket docnum=29295 [18:09:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 66 7F 06 01 41 BB 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 D3 1B 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6F 72 00 00 35 04 06 00 D0 53 8E 3A AD A0 9D 78 07 D4 2F F9 C1 6B [18:09:14]CheckFolder [18:09:14]dirname=/storage/ofd_packets [18:09:14]CheckFolder done [18:09:14]ProducePacketName [18:09:14]name=ofd_packets/00029295 [18:09:14]NVStorageSaveData ofd_packets/00029295 [18:09:14]File name is /storage/ofd_packets/00029295 [18:09:14]Write 300 bytes [18:09:14]NVStorageSaveData done [18:09:14]OFDSenderStorePacket done [18:09:14]KKMCreateOFDPacket done [18:09:14]NVStorageSaveData kkm_last_timestamp [18:09:14]File name is /storage/kkm_last_timestamp [18:09:14]Write 4 bytes [18:09:14]NVStorageSaveData done [18:09:14]ExternCall_PrintAddStr [18:09:14]wPrintStart [18:09:14]Write to MH i2c: 01 00 00 47 AD F4 [18:09:14]Write i2c OK [18:09:14]MH_I2C_Read... [18:09:14]Read from MH i2c: 01 [18:09:14]MH_I2C_Read... [18:09:14]Read from MH i2c: 01 07 00 [18:09:14]MH_I2C_Read... [18:09:14]Read from MH i2c: 01 07 00 47 AD 00 00 00 00 00 FF 0F 09 [18:09:14]RasterBufferAndPrint [18:09:14]line Счет N : (1)347683 [18:09:14]line ИНН: 02508201610067 [18:09:14]line Контрольно-Кассовый Чек [18:09:14]line ПРОДАЖА [18:09:14]line ТРК (МРК, ГНК) : 71 [18:09:14]line Товар: 2711129700 [18:09:14]line ГАЗ-К-5 [18:09:14]line 30.400 * 32.90 [18:09:14]line = 1000.16 [18:09:14]line НДС 12% НСП 1% [18:09:14]line > о реализуемом товаре [18:09:14]line ОКРУГЛЕНИЕ: -0.16 [18:09:14]line ИТОГО: 1000.00 [18:09:14]line Внесено: 1000.00 [18:09:14]line СДАЧА: 0.00 [18:09:14]line НСП 1% : 8.85 [18:09:14]line НДС 12% : 106.21 [18:09:14]line Наличными: 1000.00 [18:09:14]line Безнал.: 0.00 [18:09:14]line Место: АЗС № 108 "Партнер Нефть" [18:09:14]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [18:09:14]line СНО: Общий режим [18:09:14]line Чек 205 14.04.2024 18:09 [18:09:14]line Смена: 116 ФФД: 1.0 [18:09:14]line ЗНМ: 0300000027 [18:09:14]line РНМ: 0000138879044617 [18:09:14]line Версия ККМ: 001 [18:09:14]line ФМ: 0000000000963154 [18:09:14]line ФД: 29295 [18:09:14]line ФПД: 229057287073184 [18:09:14]line 1/tax-web-control/client/api/v1/ticket?date=20240414T180923&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29295&fm=229057287073184&tin=02508201610067®Number=0000138879044617&sum=100000 [18:09:14]OFD Sender: Processing packet 29295 [packets to send 8, broken 7] [18:09:14]ProducePacketName [18:09:14]name=ofd_packets/00029295 [18:09:14]OFD Sender: To server: pG, [18:09:14]CommunicateWithHost lk.salyk.kg:30040 [18:09:14]ConnectInit lk.salyk.kg [18:09:14]written 0, free lines is 4095 [18:09:14]Connected sock=9 [18:09:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 66 7F 06 01 41 BB 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 D3 1B 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6F 72 00 00 35 04 06 00 D0 53 8E 3A AD A0 9D 78 07 D4 2F F9 C1 6B [18:09:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 C3 CA 47 00 C6 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 39 36 33 31 35 34 10 04 04 00 6F 72 00 00 F4 03 04 00 77 C6 1B 66 B6 04 01 00 00 F9 97 24 60 50 F4 25 72 [18:09:14]CommunicateWithHost err = 0 [18:09:14]CheckOFDResponse [18:09:14]1017 (14) - 77093643461234 [18:09:14]1041 (16) - 0000000000963154 [18:09:14]1040 (4) - 29295 [18:09:14]1012 (4) - 14.04.2024 12:05 [18:09:14]1206 (1) - 0 [18:09:14]OFD Sender: Remove packet 29295 [18:09:14]ProducePacketName [18:09:14]name=ofd_packets/00029295 [18:09:14]NVStorageDeleteData [18:09:14]Write to MH i2c: 01 00 00 71 AD 1E [18:09:14]Write i2c OK [18:09:14]MH_I2C_Read... [18:09:14]Read from MH i2c: 01 [18:09:14]MH_I2C_Read... [18:09:14]Read from MH i2c: 01 07 00 [18:09:14]MH_I2C_Read... [18:09:14]Read from MH i2c: 01 07 00 71 AD 00 00 00 00 00 C2 0C F3 [18:09:14]RasterBufferAndPrint [18:09:14]line [18:09:14]line [18:09:14]line [18:09:14]line [18:09:14]line [18:09:14]written 0, free lines is 3270 [18:09:14]MH_Cut [18:09:14]Write to MH i2c: D1 01 00 78 AD 01 F7 [18:09:14]Write i2c OK [18:09:14]MH_I2C_Read... [18:09:14]Read from MH i2c: D1 [18:09:14]MH_I2C_Read... [18:09:14]Read from MH i2c: D1 01 00 [18:09:14]MH_I2C_Read... [18:09:14]Read from MH i2c: D1 01 00 78 AD 00 F6 [18:09:14]Write to MH i2c: 01 00 00 79 AD 26 [18:09:14]Write i2c OK [18:09:14]MH_I2C_Read... [18:09:15]OFD Sender: No OFD packet to send [18:09:15]*** Cut start [18:09:15]*** Partial cut [18:09:15]*** CUTSNS_PIN = 1 [18:09:15]*** CUTSNS_PIN = 0 [18:09:16]*** Brake cut motor [18:09:16]Read from MH i2c: 01 [18:09:16]MH_I2C_Read... [18:09:16]*** Stop cut motor [18:09:16]*** Cut end [18:09:16]Read from MH i2c: 01 07 00 [18:09:16]MH_I2C_Read... [18:09:16]Read from MH i2c: 01 07 00 79 AD 00 00 00 00 00 FF 0F 3B [18:09:16]process_action close_receipt done [18:09:16]requested_data is exist [18:09:16]produce_requested_data [18:09:16]requested_item fm.sn is exist - process it [18:09:16]wFMCommunicate request_size=4 [18:09:16]MH_SAM_APDU [18:09:16]CAPDU: 80 11 00 00 [18:09:16]Write to MH i2c: E2 08 00 7A AD 80 11 00 00 00 00 00 00 A1 [18:09:16]Write i2c OK [18:09:16]MH_I2C_Read... [18:09:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:09:16]Read from MH i2c: E2 [18:09:16]MH_I2C_Read... [18:09:16]Read from MH i2c: E2 17 00 [18:09:16]MH_I2C_Read... [18:09:16]Read from MH i2c: E2 17 00 7A AD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F0 [18:09:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:09:16]wFMCommunicate OK [18:09:16]requested_item fd.num is exist - process it [18:09:16]SAM_PROTO_GetFieldsCounters [18:09:16]wFMCommunicate request_size=4 [18:09:16]MH_SAM_APDU [18:09:16]CAPDU: 80 13 00 00 [18:09:16]Write to MH i2c: E2 08 00 7B AD 80 13 00 00 00 00 00 00 A4 [18:09:16]Write i2c OK [18:09:16]MH_I2C_Read... [18:09:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:09:16]Read from MH i2c: E2 [18:09:16]MH_I2C_Read... [18:09:16]Read from MH i2c: E2 62 00 [18:09:16]MH_I2C_Read... [18:09:16]Read from MH i2c: E2 62 00 7B AD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 6F 72 00 00 0E 04 04 00 74 00 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 9E [18:09:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 6F 72 00 00 0E 04 04 00 74 00 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 [18:09:16]wFMCommunicate OK [18:09:16]SAM_PROTO_GetFieldsCounters done [18:09:16]requested_item shift.num is exist - process it [18:09:16]requested_item shift.opened is exist - process it [18:09:16]req_shift_opened [18:09:16]FM_GetShiftState [18:09:16]SAM_PROTO_GetShiftState [18:09:16]wFMCommunicate request_size=4 [18:09:16]MH_SAM_APDU [18:09:16]CAPDU: 80 13 01 00 [18:09:16]Write to MH i2c: E2 08 00 7C AD 80 13 01 00 00 00 00 00 A6 [18:09:16]Write i2c OK [18:09:16]MH_I2C_Read... [18:09:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:09:16]Read from MH i2c: E2 [18:09:16]MH_I2C_Read... [18:09:16]Read from MH i2c: E2 0E 00 [18:09:16]MH_I2C_Read... [18:09:16]Read from MH i2c: E2 0E 00 7C AD 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 52 [18:09:16]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [18:09:16]wFMCommunicate OK [18:09:16]SAM_PROTO_GetShiftState done [18:09:16]FM_GetShiftState done [18:09:16]req_shift_opened done [18:09:16]requested_item shift.open_date is exist - process it [18:09:16]req_shift_open_date [18:09:16]req_shift_open_date done [18:09:16]produce_requested_data done [18:09:16]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29295,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [18:09:16]process_action_free close_receipt [18:09:16]json_value_free [18:09:16]json_value_free done [18:09:16]process_json_proto returns [18:09:16]Send response to host [18:09:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29295,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [18:09:16]free response buf [18:09:16]execute_script done [18:09:16]execute_script returns [18:09:16]free content buf [18:09:16]Sock 10.Close socket [18:09:16]Sock 10.Thread stoped [18:09:20]OFD Sender: No OFD packet to send [18:09:25]OFD Sender: No OFD packet to send [18:09:30]OFD Sender: No OFD packet to send [18:09:35]OFD Sender: No OFD packet to send [18:09:40]OFD Sender: No OFD packet to send [18:09:45]OFD Sender: No OFD packet to send [18:09:50]OFD Sender: No OFD packet to send [18:09:55]OFD Sender: No OFD packet to send [18:10:00]OFD Sender: No OFD packet to send [18:10:05]OFD Sender: No OFD packet to send [18:10:10]OFD Sender: No OFD packet to send [18:10:15]OFD Sender: No OFD packet to send [18:10:20]OFD Sender: No OFD packet to send [18:10:25]OFD Sender: No OFD packet to send [18:10:30]OFD Sender: No OFD packet to send [18:10:35]OFD Sender: No OFD packet to send [18:10:36]int [18:10:36]Write to MH i2c: 01 00 00 7D AD 2A [18:10:36]*** FLAG_PRN_KEY set [18:10:36]Write i2c OK [18:10:36]MH_I2C_Read... [18:10:36]Read from MH i2c: 01 [18:10:36]MH_I2C_Read... [18:10:36]Read from MH i2c: 01 07 00 [18:10:36]MH_I2C_Read... [18:10:36]Read from MH i2c: 01 07 00 7D AD 00 08 00 00 00 FF 0F 47 [18:10:36]state=0 [18:10:36]Key pressed [18:10:36]Feed [18:10:36]Write to MH i2c: D8 00 00 7E AD 02 [18:10:36]Write i2c OK [18:10:36]MH_I2C_Read... [18:10:36]Read from MH i2c: D8 [18:10:36]MH_I2C_Read... [18:10:36]Read from MH i2c: D8 01 00 [18:10:36]MH_I2C_Read... [18:10:36]Read from MH i2c: D8 01 00 7E AD 00 03 [18:10:36]int [18:10:36]Write to MH i2c: 01 00 00 7F AD 2C [18:10:36]Write i2c OK [18:10:36]MH_I2C_Read... [18:10:36]Read from MH i2c: 01 [18:10:36]MH_I2C_Read... [18:10:36]Read from MH i2c: 01 07 00 [18:10:36]MH_I2C_Read... [18:10:36]Read from MH i2c: 01 07 00 7F AD 00 48 00 00 00 3C 00 B7 [18:10:36]state=2 [18:10:36]Key pressed [18:10:37]int [18:10:37]Write to MH i2c: 01 00 00 80 AD 2D [18:10:37]*** FLAG_PRN_KEY reset [18:10:37]Write i2c OK [18:10:37]MH_I2C_Read... [18:10:37]Read from MH i2c: 01 [18:10:37]MH_I2C_Read... [18:10:37]Read from MH i2c: 01 07 00 [18:10:37]MH_I2C_Read... [18:10:37]Read from MH i2c: 01 07 00 80 AD 00 00 00 00 00 F6 0F 39 [18:10:37]state=2 [18:10:37]Stop feed [18:10:40]OFD Sender: No OFD packet to send [18:10:45]OFD Sender: No OFD packet to send [18:10:50]OFD Sender: No OFD packet to send [18:10:55]OFD Sender: No OFD packet to send [18:11:00]OFD Sender: No OFD packet to send [18:11:05]OFD Sender: No OFD packet to send [18:11:10]OFD Sender: No OFD packet to send [18:11:13]int [18:11:13]Write to MH i2c: 01 00 00 81 AD 2E [18:11:13]*** FLAG_PRN_KEY set [18:11:13]Write i2c OK [18:11:13]MH_I2C_Read... [18:11:13]Read from MH i2c: 01 [18:11:13]MH_I2C_Read... [18:11:13]Read from MH i2c: 01 07 00 [18:11:13]MH_I2C_Read... [18:11:13]Read from MH i2c: 01 07 00 81 AD 00 08 00 00 00 FF 0F 4B [18:11:13]state=0 [18:11:13]Key pressed [18:11:13]Feed [18:11:13]Write to MH i2c: D8 00 00 82 AD 06 [18:11:13]Write i2c OK [18:11:13]MH_I2C_Read... [18:11:13]Read from MH i2c: D8 [18:11:13]MH_I2C_Read... [18:11:13]Read from MH i2c: D8 01 00 [18:11:13]MH_I2C_Read... [18:11:13]Read from MH i2c: D8 01 00 82 AD 00 07 [18:11:13]int [18:11:13]Write to MH i2c: 01 00 00 83 AD 30 [18:11:13]Write i2c OK [18:11:13]MH_I2C_Read... [18:11:13]Read from MH i2c: 01 [18:11:13]MH_I2C_Read... [18:11:13]Read from MH i2c: 01 07 00 [18:11:13]MH_I2C_Read... [18:11:13]Read from MH i2c: 01 07 00 83 AD 00 48 00 00 00 3D 00 BC [18:11:13]state=2 [18:11:13]Key pressed [18:11:14]int [18:11:14]Write to MH i2c: 01 00 00 84 AD 31 [18:11:14]*** FLAG_PRN_KEY reset [18:11:14]Write i2c OK [18:11:14]MH_I2C_Read... [18:11:14]Read from MH i2c: 01 [18:11:14]MH_I2C_Read... [18:11:14]Read from MH i2c: 01 07 00 [18:11:14]MH_I2C_Read... [18:11:14]Read from MH i2c: 01 07 00 84 AD 00 00 00 00 00 F6 0F 3D [18:11:14]state=2 [18:11:14]Stop feed [18:11:15]OFD Sender: No OFD packet to send [18:11:20]OFD Sender: No OFD packet to send [18:11:25]OFD Sender: No OFD packet to send [18:11:30]OFD Sender: No OFD packet to send [18:11:35]OFD Sender: No OFD packet to send [18:11:40]OFD Sender: No OFD packet to send [18:11:45]OFD Sender: No OFD packet to send [18:11:50]OFD Sender: No OFD packet to send [18:11:55]OFD Sender: No OFD packet to send [18:12:00]OFD Sender: No OFD packet to send [18:12:05]OFD Sender: No OFD packet to send [18:12:09]accept exits with 7 [18:12:09]New connection [18:12:09]New thread 3066785124 created [18:12:09]Thread 3066928484 joined [18:12:09]Waiting for new connection... [18:12:09] Sock 7.Parse request [18:12:09]Sock 7.Check first char [18:12:09]Sock 7.First char is OK [18:12:09]request: POST /json_proto HTTP/1.0 [18:12:09]Method: POST [18:12:09]URL: /json_proto [18:12:09]Method is POST - this is cgi request [18:12:09]url: /json_proto [18:12:09]query_string will be loaded in cgi processing [18:12:09]execute_cgi json_proto POST (null) [18:12:09]execute_cgi path=json_proto method=POST [18:12:09]POST find Content-Length [18:12:09]Host: 172.17.33.3:8080 [18:12:09]Content-Length: 1202 [18:12:09]Content-Type: application/json [18:12:09] [18:12:09]POST finish read [18:12:09]Found Content-Length = 1202 [18:12:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043B\u0438\u043A\u0431\u0430\u0435\u0432\u0430. \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)347684\u000A14.04.2024 17:54\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 23\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 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\u000A03286\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:12:09]execute_script... [18:12:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043B\u0438\u043A\u0431\u0430\u0435\u0432\u0430. \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)347684\u000A14.04.2024 17:54\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 23\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 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\u000A03286\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:12:09]POST & json_proto [18:12:09]process_json_proto [18:12:09]json parsed OK: [18:12:09]protocol is kg_v1.0 [18:12:09]action value=print_text [18:12:09]process_action print_text [18:12:09]cmd_print_text [18:12:09]ExternCall_PrintAddStr [18:12:09]wPrintStart [18:12:09]Write to MH i2c: 01 00 00 85 AD 32 [18:12:09]Write i2c OK [18:12:09]MH_I2C_Read... [18:12:09]Read from MH i2c: 01 [18:12:09]MH_I2C_Read... [18:12:09]Read from MH i2c: 01 07 00 [18:12:09]MH_I2C_Read... [18:12:09]Read from MH i2c: 01 07 00 85 AD 00 00 00 00 00 FF 0F 47 [18:12:09]RasterBufferAndPrint [18:12:09]line *****ТОВАРНЫЙ ЧЕК***** [18:12:09]line АЗС 108 [18:12:09]line Партнер нефть [18:12:09]line 02508201610067 [18:12:09]line Кассир : Аликбаева. Д. [18:12:09]line Счет N : (1)347684 [18:12:09]line 14.04.2024 17:54 [18:12:09]line ПРОДАЖА [18:12:09]line ТРК (МРК, ГНК): 23 [18:12:09]line Вид ГСМ : 2710124130 [18:12:09]line Аи-92-К-5 [18:12:09]line 50.000 x 64.30 [18:12:09]line ИТОГ: 3215.00 [18:12:09]line Тип оплаты: Талоны: Топливная Карта [18:12:09]line 03286 [18:12:09]line ______________________ [18:12:09]line (подпись) [18:12:09]written 0, free lines is 4095 [18:12:09]Write to MH i2c: 01 00 00 99 AD 46 [18:12:09]Write i2c OK [18:12:09]MH_I2C_Read... [18:12:09]Read from MH i2c: 01 [18:12:09]MH_I2C_Read... [18:12:09]Read from MH i2c: 01 07 00 [18:12:09]MH_I2C_Read... [18:12:09]Read from MH i2c: 01 07 00 99 AD 00 00 00 00 00 14 0E 6F [18:12:09]RasterBufferAndPrint [18:12:09]line [18:12:09]line [18:12:09]line [18:12:09]line [18:12:09]line [18:12:09]written 0, free lines is 3606 [18:12:09]MH_Cut [18:12:09]Write to MH i2c: D1 01 00 A0 AD 01 1F [18:12:09]Write i2c OK [18:12:09]MH_I2C_Read... [18:12:09]Read from MH i2c: D1 [18:12:09]MH_I2C_Read... [18:12:09]Read from MH i2c: D1 01 00 [18:12:09]MH_I2C_Read... [18:12:09]Read from MH i2c: D1 01 00 A0 AD 00 1E [18:12:09]Write to MH i2c: 01 00 00 A1 AD 4E [18:12:09]Write i2c OK [18:12:09]MH_I2C_Read... [18:12:10]*** Cut start [18:12:10]*** Partial cut [18:12:10]*** CUTSNS_PIN = 1 [18:12:10]*** CUTSNS_PIN = 0 [18:12:10]*** Brake cut motor [18:12:10]OFD Sender: No OFD packet to send [18:12:10]Read from MH i2c: 01 [18:12:10]MH_I2C_Read... [18:12:10]*** Stop cut motor [18:12:10]*** Cut end [18:12:10]Read from MH i2c: 01 07 00 [18:12:10]MH_I2C_Read... [18:12:10]Read from MH i2c: 01 07 00 A1 AD 00 00 00 00 00 FF 0F 63 [18:12:10]process_action print_text done [18:12:10]requested_data is exist [18:12:10]produce_requested_data [18:12:10]requested_item fm.sn is exist - process it [18:12:10]wFMCommunicate request_size=4 [18:12:10]MH_SAM_APDU [18:12:10]CAPDU: 80 11 00 00 [18:12:10]Write to MH i2c: E2 08 00 A2 AD 80 11 00 00 00 00 00 00 C9 [18:12:10]Write i2c OK [18:12:10]MH_I2C_Read... [18:12:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:12:10]Read from MH i2c: E2 [18:12:10]MH_I2C_Read... [18:12:10]Read from MH i2c: E2 17 00 [18:12:10]MH_I2C_Read... [18:12:10]Read from MH i2c: E2 17 00 A2 AD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 18 [18:12:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:12:10]wFMCommunicate OK [18:12:10]requested_item fd.num is exist - process it [18:12:10]SAM_PROTO_GetFieldsCounters [18:12:10]wFMCommunicate request_size=4 [18:12:10]MH_SAM_APDU [18:12:10]CAPDU: 80 13 00 00 [18:12:10]Write to MH i2c: E2 08 00 A3 AD 80 13 00 00 00 00 00 00 CC [18:12:10]Write i2c OK [18:12:10]MH_I2C_Read... [18:12:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:12:10]Read from MH i2c: E2 [18:12:10]MH_I2C_Read... [18:12:10]Read from MH i2c: E2 62 00 [18:12:10]MH_I2C_Read... [18:12:10]Read from MH i2c: E2 62 00 A3 AD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 6F 72 00 00 0E 04 04 00 74 00 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 C6 [18:12:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 6F 72 00 00 0E 04 04 00 74 00 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 [18:12:10]wFMCommunicate OK [18:12:10]SAM_PROTO_GetFieldsCounters done [18:12:10]requested_item shift.num is exist - process it [18:12:10]requested_item shift.opened is exist - process it [18:12:10]req_shift_opened [18:12:10]FM_GetShiftState [18:12:10]SAM_PROTO_GetShiftState [18:12:10]wFMCommunicate request_size=4 [18:12:10]MH_SAM_APDU [18:12:10]CAPDU: 80 13 01 00 [18:12:10]Write to MH i2c: E2 08 00 A4 AD 80 13 01 00 00 00 00 00 CE [18:12:10]Write i2c OK [18:12:10]MH_I2C_Read... [18:12:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:12:10]Read from MH i2c: E2 [18:12:10]MH_I2C_Read... [18:12:10]Read from MH i2c: E2 0E 00 [18:12:10]MH_I2C_Read... [18:12:10]Read from MH i2c: E2 0E 00 A4 AD 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 7A [18:12:10]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [18:12:10]wFMCommunicate OK [18:12:10]SAM_PROTO_GetShiftState done [18:12:10]FM_GetShiftState done [18:12:10]req_shift_opened done [18:12:10]requested_item shift.open_date is exist - process it [18:12:10]req_shift_open_date [18:12:10]req_shift_open_date done [18:12:10]produce_requested_data done [18:12:10]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29295,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [18:12:10]process_action_free print_text [18:12:10]json_value_free [18:12:10]json_value_free done [18:12:10]process_json_proto returns [18:12:10]Send response to host [18:12:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29295,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [18:12:10]free response buf [18:12:10]execute_script done [18:12:10]execute_script returns [18:12:10]free content buf [18:12:10]Sock 7.Close socket [18:12:10]Sock 7.Thread stoped [18:12:14]accept exits with 9 [18:12:14]New connection [18:12:14]New thread 3066928484 created [18:12:14]Thread 3066785124 joined [18:12:14]Waiting for new connection... [18:12:14] Sock 9.Parse request [18:12:14]Sock 9.Check first char [18:12:14]Sock 9.First char is OK [18:12:14]request: POST /json_proto HTTP/1.0 [18:12:14]Method: POST [18:12:14]URL: /json_proto [18:12:14]Method is POST - this is cgi request [18:12:14]url: /json_proto [18:12:14]query_string will be loaded in cgi processing [18:12:14]execute_cgi json_proto POST (null) [18:12:14]execute_cgi path=json_proto method=POST [18:12:14]POST find Content-Length [18:12:14]Host: 172.17.33.3:8080 [18:12:14]Content-Length: 677 [18:12:14]Content-Type: application/json [18:12:14] [18:12:14]POST finish read [18:12:14]Found Content-Length = 677 [18:12:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347685", "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" : 8.530, "sum" : 548.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 548.00, "total" : 548.00, "payments": [ { "type": 0, "sum" : 548.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:12:14]execute_script... [18:12: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)347685", "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" : 8.530, "sum" : 548.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 548.00, "total" : 548.00, "payments": [ { "type": 0, "sum" : 548.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:12:14]POST & json_proto [18:12:14]process_json_proto [18:12:14]json parsed OK: [18:12:14]protocol is kg_v1.0 [18:12:14]action value=close_receipt [18:12:14]process_action close_receipt [18:12:14]cmd_close_receipt [18:12:14]MH_GetDate [18:12:14]Write to MH i2c: F0 00 00 A5 AD 41 [18:12:14]Write i2c OK [18:12:14]MH_I2C_Read... [18:12:14]Read from MH i2c: F0 [18:12:14]MH_I2C_Read... [18:12:14]Read from MH i2c: F0 09 00 [18:12:14]MH_I2C_Read... [18:12:14]Read from MH i2c: F0 09 00 A5 AD 00 89 1C 1C 66 23 5B 8F 65 E3 [18:12:14]GetLastDocTimeStamp 1713118163 [18:12:14]current date 1713118345 [18:12:14]FM_GetShiftState [18:12:14]SAM_PROTO_GetShiftState [18:12:14]wFMCommunicate request_size=4 [18:12:14]MH_SAM_APDU [18:12:14]CAPDU: 80 13 01 00 [18:12:14]Write to MH i2c: E2 08 00 A6 AD 80 13 01 00 00 00 00 00 D0 [18:12:14]Write i2c OK [18:12:14]MH_I2C_Read... [18:12:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:12:14]Read from MH i2c: E2 [18:12:14]MH_I2C_Read... [18:12:14]Read from MH i2c: E2 0E 00 [18:12:14]MH_I2C_Read... [18:12:14]Read from MH i2c: E2 0E 00 A6 AD 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 7C [18:12:14]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [18:12:14]wFMCommunicate OK [18:12:14]SAM_PROTO_GetShiftState done [18:12:14]FM_GetShiftState done [18:12:14]opened in 1713053951 [18:12:14]opened+sec_in_day 1713140351 [18:12:14]quantity*price = 54847 [18:12:14]sum+1 = 54849 [18:12:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.48 ИТОГО: 548.00 Внесено: 548.00 СДАЧА: 0.00 НСП 1% : 4.85 НДС 12% : 58.25 Наличными: 548.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 206 14.04.2024 18:12 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29296 ФПД: 3304872064167 1/tax-web-control/client/api/v1/ticket?date=20240414T181225&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29296&fm=3304872064167&tin=02508201610067®Number=0000138879044617&sum=54800 [18:12:15]StoreToDocumentArchive [18:12:15]shift 116 fd 29296 [18:12:15]save to /storage/0116/doc_00029296 [18:12:15]save last doc name /storage/0116/doc_00029296 to /storage/kkm_last_doc_name [18:12:15]save OK [18:12:15]Clear old archive folders... [18:12:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:12:15]tlvbuf is 01224770 [18:12:15]SAM_PROTO_ClearQueue [18:12:15]wFMCommunicate request_size=4 [18:12:15]MH_SAM_APDU [18:12:15]CAPDU: 80 09 00 00 [18:12:15]Write to MH i2c: E2 08 00 B3 AD 80 09 00 00 00 00 00 00 D2 [18:12:15]Write i2c OK [18:12:15]MH_I2C_Read... [18:12:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:12:15]Read from MH i2c: E2 [18:12:15]MH_I2C_Read... [18:12:15]Read from MH i2c: E2 03 00 [18:12:15]MH_I2C_Read... [18:12:15]Read from MH i2c: E2 03 00 B3 AD 00 90 00 D4 [18:12:15]RAPDU: 90 00 [18:12:15]wFMCommunicate OK [18:12:15]SAM_PROTO_ClearQueue done [18:12:15]KKMCreateOFDPacket [18:12:15]OFDProtocolAddRootSTLVToBuf [18:12:15]FM_MakeSignedData [18:12:15]FM_MakeSignedData [18:12:15]SAM_PROTO_SignData [18:12:15]wFMCommunicate request_size=4 [18:12:15]MH_SAM_APDU [18:12:15]CAPDU: 80 0D 01 02 [18:12:15]Write to MH i2c: E2 08 00 B4 AD 80 0D 01 02 00 00 00 00 DA [18:12:15]Write i2c OK [18:12:15]MH_I2C_Read... [18:12:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:12:15]Read from MH i2c: E2 [18:12:15]MH_I2C_Read... [18:12:15]Read from MH i2c: E2 03 00 [18:12:15]MH_I2C_Read... [18:12:15]Read from MH i2c: E2 03 00 B4 AD 00 90 00 D5 [18:12:15]RAPDU: 90 00 [18:12:15]wFMCommunicate OK [18:12:15]wFMCommunicate request_size=255 [18:12:15]MH_SAM_APDU [18:12:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 52 21 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 40 D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 16 00 00 00 00 07 04 06 00 10 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 89 1C 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 70 72 00 00 35 04 06 00 03 [18:12:15]Write to MH i2c: E2 02 01 B5 AD 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 52 21 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 40 D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 16 00 00 00 00 07 04 06 00 10 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 89 1C 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 70 72 00 00 35 04 06 00 03 00 00 98 [18:12:15]Write i2c OK [18:12:15]MH_I2C_Read... [18:12:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:12:15]Read from MH i2c: E2 [18:12:15]MH_I2C_Read... [18:12:15]Read from MH i2c: E2 03 00 [18:12:15]MH_I2C_Read... [18:12:15]Read from MH i2c: E2 03 00 B5 AD 00 90 00 D6 [18:12:15]RAPDU: 90 00 [18:12:15]wFMCommunicate OK [18:12:15]wFMCommunicate request_size=10 [18:12:15]MH_SAM_APDU [18:12:15]CAPDU: 80 0D 02 02 05 01 79 B9 B4 A7 [18:12:15]Write to MH i2c: E2 0D 00 B6 AD 80 0D 02 02 05 00 01 79 B9 B4 A7 00 00 75 [18:12:15]Write i2c OK [18:12:15]MH_I2C_Read... [18:12:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:12:15]Read from MH i2c: E2 [18:12:15]MH_I2C_Read... [18:12:15]Read from MH i2c: E2 03 00 [18:12:15]MH_I2C_Read... [18:12:15]Read from MH i2c: E2 03 00 B6 AD 00 90 00 D7 [18:12:15]RAPDU: 90 00 [18:12:15]wFMCommunicate OK [18:12:15]wFMCommunicate request_size=4 [18:12:15]MH_SAM_APDU [18:12:15]CAPDU: 80 0D 03 02 [18:12:15]Write to MH i2c: E2 08 00 B7 AD 80 0D 03 02 00 00 00 00 DF [18:12:15]Write i2c OK [18:12:15]MH_I2C_Read... [18:12:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:12:16]Read from MH i2c: E2 [18:12:16]MH_I2C_Read... [18:12:16]Read from MH i2c: E2 0B 00 [18:12:16]MH_I2C_Read... [18:12:16]Read from MH i2c: E2 0B 00 B7 AD 00 65 31 16 AB DB D1 7D A3 90 00 03 [18:12:16]RAPDU: 65 31 16 AB DB D1 7D A3 90 00 [18:12:16]wFMCommunicate OK [18:12:16]SAM_PROTO_SignData done [18:12:16]FM_MakeSignedData done [18:12:16]CreateOFDProtocolMessage [18:12:16]wFMCommunicate request_size=4 [18:12:16]MH_SAM_APDU [18:12:16]CAPDU: 80 11 00 00 [18:12:16]Write to MH i2c: E2 08 00 B8 AD 80 11 00 00 00 00 00 00 DF [18:12:16]Write i2c OK [18:12:16]MH_I2C_Read... [18:12:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:12:16]Read from MH i2c: E2 [18:12:16]MH_I2C_Read... [18:12:16]Read from MH i2c: E2 17 00 [18:12:16]MH_I2C_Read... [18:12:16]Read from MH i2c: E2 17 00 B8 AD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 2E [18:12:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:12:16]wFMCommunicate OK [18:12:16]CreateOFDProtocolMessage done [18:12:16]OFDSenderStorePacket 29296 [18:12:16]StoreOFDPacket docnum=29296 [18:12:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 43 13 07 01 D1 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 52 21 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 40 D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 16 00 00 00 00 07 04 06 00 10 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 89 1C 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 70 72 00 00 35 04 06 00 03 01 79 B9 B4 A7 65 31 16 AB DB D1 7D A3 [18:12:16]CheckFolder [18:12:16]dirname=/storage/ofd_packets [18:12:16]CheckFolder done [18:12:16]ProducePacketName [18:12:16]name=ofd_packets/00029296 [18:12:16]NVStorageSaveData ofd_packets/00029296 [18:12:16]File name is /storage/ofd_packets/00029296 [18:12:16]Write 301 bytes [18:12:16]NVStorageSaveData done [18:12:16]OFDSenderStorePacket done [18:12:16]KKMCreateOFDPacket done [18:12:16]NVStorageSaveData kkm_last_timestamp [18:12:16]File name is /storage/kkm_last_timestamp [18:12:16]Write 4 bytes [18:12:16]NVStorageSaveData done [18:12:16]ExternCall_PrintAddStr [18:12:16]wPrintStart [18:12:16]Write to MH i2c: 01 00 00 B9 AD 66 [18:12:16]Write i2c OK [18:12:16]MH_I2C_Read... [18:12:16]Read from MH i2c: 01 [18:12:16]MH_I2C_Read... [18:12:16]Read from MH i2c: 01 07 00 [18:12:16]MH_I2C_Read... [18:12:16]Read from MH i2c: 01 07 00 B9 AD 00 00 00 00 00 FF 0F 7B [18:12:16]RasterBufferAndPrint [18:12:16]line Счет N : (1)347685 [18:12:16]line ИНН: 02508201610067 [18:12:16]line Контрольно-Кассовый Чек [18:12:16]line ПРОДАЖА [18:12:16]line ТРК (МРК, ГНК) : 42 [18:12:16]line Товар: 2710124130 [18:12:16]line Аи-92-К-5 [18:12:16]line 8.530 * 64.30 [18:12:16]line = 548.48 [18:12:16]line НДС 12% НСП 1% [18:12:16]line > о реализуемом товаре [18:12:16]line ОКРУГЛЕНИЕ: -0.48 [18:12:16]line ИТОГО: 548.00 [18:12:16]line Внесено: 548.00 [18:12:16]line СДАЧА: 0.00 [18:12:16]line НСП 1% : 4.85 [18:12:16]line НДС 12% : 58.25 [18:12:16]line Наличными: 548.00 [18:12:16]line Безнал.: 0.00 [18:12:16]line Место: АЗС № 108 "Партнер Нефть" [18:12:16]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [18:12:16]line СНО: Общий режим [18:12:16]line Чек 206 14.04.2024 18:12 [18:12:16]line Смена: 116 ФФД: 1.0 [18:12:16]line ЗНМ: 0300000027 [18:12:16]line РНМ: 0000138879044617 [18:12:16]line Версия ККМ: 001 [18:12:16]line ФМ: 0000000000963154 [18:12:16]line ФД: 29296 [18:12:16]line ФПД: 3304872064167 [18:12:16]line 1/tax-web-control/client/api/v1/ticket?date=20240414T181225&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29296&fm=3304872064167&tin=02508201610067®Number=0000138879044617&sum=54800 [18:12:16]written 0, free lines is 4095 [18:12:16]OFD Sender: Processing packet 29296 [packets to send 8, broken 7] [18:12:16]ProducePacketName [18:12:16]name=ofd_packets/00029296 [18:12:16]OFD Sender: To server: pG, [18:12:16]CommunicateWithHost lk.salyk.kg:30040 [18:12:16]ConnectInit lk.salyk.kg [18:12:16]Connected sock=10 [18:12:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 43 13 07 01 D1 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 52 21 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 40 D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 16 00 00 00 00 07 04 06 00 10 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 89 1C 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 70 72 00 00 35 04 06 00 03 01 79 B9 B4 A7 65 31 16 AB DB D1 7D A3 [18:12:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 6B 20 47 00 70 44 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 70 72 00 00 F4 03 04 00 2D C7 1B 66 B6 04 01 00 00 CF 1F 04 D7 87 0B 3D C7 [18:12:16]CommunicateWithHost err = 0 [18:12:16]CheckOFDResponse [18:12:16]1017 (14) - 77093643461234 [18:12:16]1041 (16) - 0000000000963154 [18:12:16]1040 (4) - 29296 [18:12:16]1012 (4) - 14.04.2024 12:08 [18:12:16]1206 (1) - 0 [18:12:16]OFD Sender: Remove packet 29296 [18:12:16]ProducePacketName [18:12:16]name=ofd_packets/00029296 [18:12:16]NVStorageDeleteData [18:12:16]Write to MH i2c: 01 00 00 E3 AD 90 [18:12:16]Write i2c OK [18:12:16]MH_I2C_Read... [18:12:16]Read from MH i2c: 01 [18:12:16]MH_I2C_Read... [18:12:16]Read from MH i2c: 01 07 00 [18:12:16]MH_I2C_Read... [18:12:16]Read from MH i2c: 01 07 00 E3 AD 00 00 00 00 00 D0 0C 73 [18:12:16]RasterBufferAndPrint [18:12:16]line [18:12:16]line [18:12:16]line [18:12:16]line [18:12:16]line [18:12:16]written 0, free lines is 3287 [18:12:16]MH_Cut [18:12:16]Write to MH i2c: D1 01 00 EA AD 01 69 [18:12:16]Write i2c OK [18:12:16]MH_I2C_Read... [18:12:16]Read from MH i2c: D1 [18:12:16]MH_I2C_Read... [18:12:16]Read from MH i2c: D1 01 00 [18:12:16]MH_I2C_Read... [18:12:16]Read from MH i2c: D1 01 00 EA AD 00 68 [18:12:16]Write to MH i2c: 01 00 00 EB AD 98 [18:12:16]Write i2c OK [18:12:16]MH_I2C_Read... [18:12:17]OFD Sender: No OFD packet to send [18:12:17]*** Cut start [18:12:17]*** Partial cut [18:12:17]*** CUTSNS_PIN = 1 [18:12:17]*** CUTSNS_PIN = 0 [18:12:17]*** Brake cut motor [18:12:18]Read from MH i2c: 01 [18:12:18]MH_I2C_Read... [18:12:18]*** Stop cut motor [18:12:18]*** Cut end [18:12:18]Read from MH i2c: 01 07 00 [18:12:18]MH_I2C_Read... [18:12:18]Read from MH i2c: 01 07 00 EB AD 00 00 00 00 00 FF 0F AD [18:12:18]process_action close_receipt done [18:12:18]requested_data is exist [18:12:18]produce_requested_data [18:12:18]requested_item fm.sn is exist - process it [18:12:18]wFMCommunicate request_size=4 [18:12:18]MH_SAM_APDU [18:12:18]CAPDU: 80 11 00 00 [18:12:18]Write to MH i2c: E2 08 00 EC AD 80 11 00 00 00 00 00 00 13 [18:12:18]Write i2c OK [18:12:18]MH_I2C_Read... [18:12:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:12:18]Read from MH i2c: E2 [18:12:18]MH_I2C_Read... [18:12:18]Read from MH i2c: E2 17 00 [18:12:18]MH_I2C_Read... [18:12:18]Read from MH i2c: E2 17 00 EC AD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 62 [18:12:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:12:18]wFMCommunicate OK [18:12:18]requested_item fd.num is exist - process it [18:12:18]SAM_PROTO_GetFieldsCounters [18:12:18]wFMCommunicate request_size=4 [18:12:18]MH_SAM_APDU [18:12:18]CAPDU: 80 13 00 00 [18:12:18]Write to MH i2c: E2 08 00 ED AD 80 13 00 00 00 00 00 00 16 [18:12:18]Write i2c OK [18:12:18]MH_I2C_Read... [18:12:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:12:18]Read from MH i2c: E2 [18:12:18]MH_I2C_Read... [18:12:18]Read from MH i2c: E2 62 00 [18:12:18]MH_I2C_Read... [18:12:18]Read from MH i2c: E2 62 00 ED AD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 70 72 00 00 0E 04 04 00 74 00 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 [18:12:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 70 72 00 00 0E 04 04 00 74 00 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 [18:12:18]wFMCommunicate OK [18:12:18]SAM_PROTO_GetFieldsCounters done [18:12:18]requested_item shift.num is exist - process it [18:12:18]requested_item shift.opened is exist - process it [18:12:18]req_shift_opened [18:12:18]FM_GetShiftState [18:12:18]SAM_PROTO_GetShiftState [18:12:18]wFMCommunicate request_size=4 [18:12:18]MH_SAM_APDU [18:12:18]CAPDU: 80 13 01 00 [18:12:18]Write to MH i2c: E2 08 00 EE AD 80 13 01 00 00 00 00 00 18 [18:12:18]Write i2c OK [18:12:18]MH_I2C_Read... [18:12:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:12:18]Read from MH i2c: E2 [18:12:18]MH_I2C_Read... [18:12:18]Read from MH i2c: E2 0E 00 [18:12:18]MH_I2C_Read... [18:12:18]Read from MH i2c: E2 0E 00 EE AD 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 C4 [18:12:18]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [18:12:18]wFMCommunicate OK [18:12:18]SAM_PROTO_GetShiftState done [18:12:18]FM_GetShiftState done [18:12:18]req_shift_opened done [18:12:18]requested_item shift.open_date is exist - process it [18:12:18]req_shift_open_date [18:12:18]req_shift_open_date done [18:12:18]produce_requested_data done [18:12:18]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29296,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [18:12:18]process_action_free close_receipt [18:12:18]json_value_free [18:12:18]json_value_free done [18:12:18]process_json_proto returns [18:12:18]Send response to host [18:12:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29296,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [18:12:18]free response buf [18:12:18]execute_script done [18:12:18]execute_script returns [18:12:18]free content buf [18:12:18]Sock 9.Close socket [18:12:18]Sock 9.Thread stoped [18:12:21]accept exits with 7 [18:12:21]New connection [18:12:21]New thread 3066785124 created [18:12:21]Thread 3066928484 joined [18:12:21]Waiting for new connection... [18:12:21] Sock 7.Parse request [18:12:21]Sock 7.Check first char [18:12:21]Sock 7.First char is OK [18:12:21]request: POST /json_proto HTTP/1.0 [18:12:21]Method: POST [18:12:21]URL: /json_proto [18:12:21]Method is POST - this is cgi request [18:12:21]url: /json_proto [18:12:21]query_string will be loaded in cgi processing [18:12:21]execute_cgi json_proto POST (null) [18:12:21]execute_cgi path=json_proto method=POST [18:12:21]POST find Content-Length [18:12:21]Host: 172.17.33.3:8080 [18:12:21]Content-Length: 677 [18:12:21]Content-Type: application/json [18:12:21] [18:12:21]POST finish read [18:12:21]Found Content-Length = 677 [18:12:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347686", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.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:12:21]execute_script... [18:12: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)347686", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.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:12:21]POST & json_proto [18:12:21]process_json_proto [18:12:21]json parsed OK: [18:12:21]protocol is kg_v1.0 [18:12:21]action value=close_receipt [18:12:21]process_action close_receipt [18:12:21]cmd_close_receipt [18:12:21]MH_GetDate [18:12:21]Write to MH i2c: F0 00 00 EF AD 8B [18:12:21]Write i2c OK [18:12:21]MH_I2C_Read... [18:12:21]Read from MH i2c: F0 [18:12:21]MH_I2C_Read... [18:12:21]Read from MH i2c: F0 09 00 [18:12:21]MH_I2C_Read... [18:12:21]Read from MH i2c: F0 09 00 EF AD 00 91 1C 1C 66 23 5B 8F 65 35 [18:12:21]GetLastDocTimeStamp 1713118345 [18:12:21]current date 1713118353 [18:12:21]FM_GetShiftState [18:12:21]SAM_PROTO_GetShiftState [18:12:21]wFMCommunicate request_size=4 [18:12:21]MH_SAM_APDU [18:12:21]CAPDU: 80 13 01 00 [18:12:21]Write to MH i2c: E2 08 00 F0 AD 80 13 01 00 00 00 00 00 1A [18:12:21]Write i2c OK [18:12:21]MH_I2C_Read... [18:12:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:12:21]Read from MH i2c: E2 [18:12:21]MH_I2C_Read... [18:12:21]Read from MH i2c: E2 0E 00 [18:12:21]MH_I2C_Read... [18:12:21]Read from MH i2c: E2 0E 00 F0 AD 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 C6 [18:12:21]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [18:12:21]wFMCommunicate OK [18:12:21]SAM_PROTO_GetShiftState done [18:12:21]FM_GetShiftState done [18:12:21]opened in 1713053951 [18:12:21]opened+sec_in_day 1713140351 [18:12:21]quantity*price = 50025 [18:12:21]sum+1 = 50026 [18:12: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 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 207 14.04.2024 18:12 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29297 ФПД: 113551823816759 1/tax-web-control/client/api/v1/ticket?date=20240414T181233&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29297&fm=113551823816759&tin=02508201610067®Number=0000138879044617&sum=50000 [18:12:23]StoreToDocumentArchive [18:12:23]shift 116 fd 29297 [18:12:23]save to /storage/0116/doc_00029297 [18:12:23]save last doc name /storage/0116/doc_00029297 to /storage/kkm_last_doc_name [18:12:23]save OK [18:12:23]Clear old archive folders... [18:12:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:12:23]tlvbuf is 012F0880 [18:12:23]SAM_PROTO_ClearQueue [18:12:23]wFMCommunicate request_size=4 [18:12:23]MH_SAM_APDU [18:12:23]CAPDU: 80 09 00 00 [18:12:23]Write to MH i2c: E2 08 00 FD AD 80 09 00 00 00 00 00 00 1C [18:12:23]Write i2c OK [18:12:23]MH_I2C_Read... [18:12:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:12:23]Read from MH i2c: E2 [18:12:23]MH_I2C_Read... [18:12:23]Read from MH i2c: E2 03 00 [18:12:23]MH_I2C_Read... [18:12:23]Read from MH i2c: E2 03 00 FD AD 00 90 00 1E [18:12:23]RAPDU: 90 00 [18:12:23]wFMCommunicate OK [18:12:23]SAM_PROTO_ClearQueue done [18:12:23]KKMCreateOFDPacket [18:12:23]OFDProtocolAddRootSTLVToBuf [18:12:23]FM_MakeSignedData [18:12:23]FM_MakeSignedData [18:12:23]SAM_PROTO_SignData [18:12:23]wFMCommunicate request_size=4 [18:12:23]MH_SAM_APDU [18:12:23]CAPDU: 80 0D 01 02 [18:12:23]Write to MH i2c: E2 08 00 FE AD 80 0D 01 02 00 00 00 00 24 [18:12:23]Write i2c OK [18:12:23]MH_I2C_Read... [18:12:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:12:23]Read from MH i2c: E2 [18:12:23]MH_I2C_Read... [18:12:23]Read from MH i2c: E2 03 00 [18:12:23]MH_I2C_Read... [18:12:23]Read from MH i2c: E2 03 00 FE AD 00 90 00 1F [18:12:23]RAPDU: 90 00 [18:12:23]wFMCommunicate OK [18:12:23]wFMCommunicate request_size=255 [18:12:23]MH_SAM_APDU [18:12: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 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 CF 00 00 00 F4 03 04 00 91 1C 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 71 72 00 00 35 04 06 00 67 [18:12:23]Write to MH i2c: E2 02 01 FF AD 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 CF 00 00 00 F4 03 04 00 91 1C 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 71 72 00 00 35 04 06 00 67 00 00 A2 [18:12:23]Write i2c OK [18:12:23]MH_I2C_Read... [18:12:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:12:23]Read from MH i2c: E2 [18:12:23]MH_I2C_Read... [18:12:23]Read from MH i2c: E2 03 00 [18:12:23]MH_I2C_Read... [18:12:23]Read from MH i2c: E2 03 00 FF AD 00 90 00 20 [18:12:23]RAPDU: 90 00 [18:12:23]wFMCommunicate OK [18:12:23]wFMCommunicate request_size=10 [18:12:23]MH_SAM_APDU [18:12:23]CAPDU: 80 0D 02 02 05 46 58 1F 48 37 [18:12:23]Write to MH i2c: E2 0D 00 00 AE 80 0D 02 02 05 00 46 58 1F 48 37 00 00 6E [18:12:23]Write i2c OK [18:12:23]MH_I2C_Read... [18:12:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:12:23]Read from MH i2c: E2 [18:12:23]MH_I2C_Read... [18:12:23]Read from MH i2c: E2 03 00 [18:12:23]MH_I2C_Read... [18:12:23]Read from MH i2c: E2 03 00 00 AE 00 90 00 22 [18:12:23]RAPDU: 90 00 [18:12:23]wFMCommunicate OK [18:12:23]wFMCommunicate request_size=4 [18:12:23]MH_SAM_APDU [18:12:23]CAPDU: 80 0D 03 02 [18:12:23]Write to MH i2c: E2 08 00 01 AE 80 0D 03 02 00 00 00 00 2A [18:12:23]Write i2c OK [18:12:23]MH_I2C_Read... [18:12:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:12:23]Read from MH i2c: E2 [18:12:23]MH_I2C_Read... [18:12:23]Read from MH i2c: E2 0B 00 [18:12:23]MH_I2C_Read... [18:12:23]Read from MH i2c: E2 0B 00 01 AE 00 BF 8B 52 6D 97 AC 37 5C 90 00 0A [18:12:23]RAPDU: BF 8B 52 6D 97 AC 37 5C 90 00 [18:12:23]wFMCommunicate OK [18:12:23]SAM_PROTO_SignData done [18:12:23]FM_MakeSignedData done [18:12:23]CreateOFDProtocolMessage [18:12:23]wFMCommunicate request_size=4 [18:12:23]MH_SAM_APDU [18:12:23]CAPDU: 80 11 00 00 [18:12:23]Write to MH i2c: E2 08 00 02 AE 80 11 00 00 00 00 00 00 2A [18:12:23]Write i2c OK [18:12:23]MH_I2C_Read... [18:12:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:12:23]Read from MH i2c: E2 [18:12:23]MH_I2C_Read... [18:12:23]Read from MH i2c: E2 17 00 [18:12:23]MH_I2C_Read... [18:12:23]Read from MH i2c: E2 17 00 02 AE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 79 [18:12:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:12:23]wFMCommunicate OK [18:12:23]CreateOFDProtocolMessage done [18:12:23]OFDSenderStorePacket 29297 [18:12:23]StoreOFDPacket docnum=29297 [18:12:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 9F 88 07 01 AF 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 CF 00 00 00 F4 03 04 00 91 1C 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 71 72 00 00 35 04 06 00 67 46 58 1F 48 37 BF 8B 52 6D 97 AC 37 5C [18:12:23]CheckFolder [18:12:23]dirname=/storage/ofd_packets [18:12:23]CheckFolder done [18:12:23]ProducePacketName [18:12:23]name=ofd_packets/00029297 [18:12:23]NVStorageSaveData ofd_packets/00029297 [18:12:23]File name is /storage/ofd_packets/00029297 [18:12:23]Write 301 bytes [18:12:23]NVStorageSaveData done [18:12:23]OFDSenderStorePacket done [18:12:23]KKMCreateOFDPacket done [18:12:23]NVStorageSaveData kkm_last_timestamp [18:12:23]File name is /storage/kkm_last_timestamp [18:12:23]Write 4 bytes [18:12:23]NVStorageSaveData done [18:12:23]ExternCall_PrintAddStr [18:12:23]wPrintStart [18:12:23]Write to MH i2c: 01 00 00 03 AE B1 [18:12:23]Write i2c OK [18:12:23]MH_I2C_Read... [18:12:23]Read from MH i2c: 01 [18:12:23]MH_I2C_Read... [18:12:23]Read from MH i2c: 01 07 00 [18:12:23]MH_I2C_Read... [18:12:23]Read from MH i2c: 01 07 00 03 AE 00 00 00 00 00 FF 0F C6 [18:12:23]RasterBufferAndPrint [18:12:23]line Счет N : (1)347686 [18:12:23]line ИНН: 02508201610067 [18:12:23]line Контрольно-Кассовый Чек [18:12:23]line ПРОДАЖА [18:12:23]line ТРК (МРК, ГНК) : 13 [18:12:23]line Товар: 2710124130 [18:12:23]line Аи-92-К-5 [18:12:23]line 7.780 * 64.30 [18:12:23]line = 500.25 [18:12:23]line НДС 12% НСП 1% [18:12:23]line > о реализуемом товаре [18:12:23]line ОКРУГЛЕНИЕ: -0.25 [18:12:23]line ИТОГО: 500.00 [18:12:23]line Внесено: 500.00 [18:12:23]line СДАЧА: 0.00 [18:12:23]line НСП 1% : 4.43 [18:12:23]line НДС 12% : 53.12 [18:12:23]line Наличными: 500.00 [18:12:23]line Безнал.: 0.00 [18:12:23]line Место: АЗС № 108 "Партнер Нефть" [18:12:23]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [18:12:23]line СНО: Общий режим [18:12:23]line Чек 207 14.04.2024 18:12 [18:12:23]line Смена: 116 ФФД: 1.0 [18:12:23]line ЗНМ: 0300000027 [18:12:23]line РНМ: 0000138879044617 [18:12:23]line Версия ККМ: 001 [18:12:23]line ФМ: 0000000000963154 [18:12:23]line ФД: 29297 [18:12:23]line ФПД: 113551823816759 [18:12:23]line 1/tax-web-control/client/api/v1/ticket?date=20240414T181233&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29297&fm=113551823816759&tin=02508201610067®Number=0000138879044617&sum=50000 [18:12:23]written 0, free lines is 4095 [18:12:23]OFD Sender: Processing packet 29297 [packets to send 8, broken 7] [18:12:23]ProducePacketName [18:12:23]name=ofd_packets/00029297 [18:12:23]OFD Sender: To server: pG, [18:12:23]CommunicateWithHost lk.salyk.kg:30040 [18:12:23]ConnectInit lk.salyk.kg [18:12:23]Connected sock=10 [18:12:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 9F 88 07 01 AF 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 CF 00 00 00 F4 03 04 00 91 1C 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 71 72 00 00 35 04 06 00 67 46 58 1F 48 37 BF 8B 52 6D 97 AC 37 5C [18:12:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 A5 5F 47 00 6D 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 71 72 00 00 F4 03 04 00 34 C7 1B 66 B6 04 01 00 00 0D 29 57 C3 E2 74 9C 8F [18:12:24]CommunicateWithHost err = 0 [18:12:24]CheckOFDResponse [18:12:24]1017 (14) - 77093643461234 [18:12:24]1041 (16) - 0000000000963154 [18:12:24]1040 (4) - 29297 [18:12:24]1012 (4) - 14.04.2024 12:08 [18:12:24]1206 (1) - 0 [18:12:24]OFD Sender: Remove packet 29297 [18:12:24]ProducePacketName [18:12:24]name=ofd_packets/00029297 [18:12:24]NVStorageDeleteData [18:12:24]Write to MH i2c: 01 00 00 2D AE DB [18:12:24]Write i2c OK [18:12:24]MH_I2C_Read... [18:12:24]Read from MH i2c: 01 [18:12:24]MH_I2C_Read... [18:12:24]Read from MH i2c: 01 07 00 [18:12:24]MH_I2C_Read... [18:12:24]Read from MH i2c: 01 07 00 2D AE 00 00 00 00 00 DB 0C C9 [18:12:24]RasterBufferAndPrint [18:12:24]line [18:12:24]line [18:12:24]line [18:12:24]line [18:12:24]line [18:12:24]written 0, free lines is 3301 [18:12:24]MH_Cut [18:12:24]Write to MH i2c: D1 01 00 34 AE 01 B4 [18:12:24]Write i2c OK [18:12:24]MH_I2C_Read... [18:12:24]Read from MH i2c: D1 [18:12:24]MH_I2C_Read... [18:12:24]Read from MH i2c: D1 01 00 [18:12:24]MH_I2C_Read... [18:12:24]Read from MH i2c: D1 01 00 34 AE 00 B3 [18:12:24]Write to MH i2c: 01 00 00 35 AE E3 [18:12:24]Write i2c OK [18:12:24]MH_I2C_Read... [18:12:24]OFD Sender: No OFD packet to send [18:12:24]*** Cut start [18:12:24]*** Partial cut [18:12:24]*** CUTSNS_PIN = 1 [18:12:24]*** CUTSNS_PIN = 0 [18:12:25]*** Brake cut motor [18:12:25]Read from MH i2c: 01 [18:12:25]MH_I2C_Read... [18:12:25]*** Stop cut motor [18:12:25]*** Cut end [18:12:25]Read from MH i2c: 01 07 00 [18:12:25]MH_I2C_Read... [18:12:25]Read from MH i2c: 01 07 00 35 AE 00 00 00 00 00 FF 0F F8 [18:12:25]process_action close_receipt done [18:12:25]requested_data is exist [18:12:25]produce_requested_data [18:12:25]requested_item fm.sn is exist - process it [18:12:25]wFMCommunicate request_size=4 [18:12:25]MH_SAM_APDU [18:12:25]CAPDU: 80 11 00 00 [18:12:25]Write to MH i2c: E2 08 00 36 AE 80 11 00 00 00 00 00 00 5E [18:12:25]Write i2c OK [18:12:25]MH_I2C_Read... [18:12:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:12:25]Read from MH i2c: E2 [18:12:25]MH_I2C_Read... [18:12:25]Read from MH i2c: E2 17 00 [18:12:25]MH_I2C_Read... [18:12:25]Read from MH i2c: E2 17 00 36 AE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 AD [18:12:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:12:25]wFMCommunicate OK [18:12:25]requested_item fd.num is exist - process it [18:12:25]SAM_PROTO_GetFieldsCounters [18:12:25]wFMCommunicate request_size=4 [18:12:25]MH_SAM_APDU [18:12:25]CAPDU: 80 13 00 00 [18:12:25]Write to MH i2c: E2 08 00 37 AE 80 13 00 00 00 00 00 00 61 [18:12:25]Write i2c OK [18:12:25]MH_I2C_Read... [18:12:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:12:25]Read from MH i2c: E2 [18:12:25]MH_I2C_Read... [18:12:25]Read from MH i2c: E2 62 00 [18:12:25]MH_I2C_Read... [18:12:25]Read from MH i2c: E2 62 00 37 AE 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 71 72 00 00 0E 04 04 00 74 00 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 63 [18:12:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 71 72 00 00 0E 04 04 00 74 00 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 [18:12:25]wFMCommunicate OK [18:12:25]SAM_PROTO_GetFieldsCounters done [18:12:25]requested_item shift.num is exist - process it [18:12:25]requested_item shift.opened is exist - process it [18:12:25]req_shift_opened [18:12:25]FM_GetShiftState [18:12:25]SAM_PROTO_GetShiftState [18:12:25]wFMCommunicate request_size=4 [18:12:25]MH_SAM_APDU [18:12:25]CAPDU: 80 13 01 00 [18:12:25]Write to MH i2c: E2 08 00 38 AE 80 13 01 00 00 00 00 00 63 [18:12:25]Write i2c OK [18:12:25]MH_I2C_Read... [18:12:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:12:25]Read from MH i2c: E2 [18:12:25]MH_I2C_Read... [18:12:25]Read from MH i2c: E2 0E 00 [18:12:25]MH_I2C_Read... [18:12:25]Read from MH i2c: E2 0E 00 38 AE 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 0F [18:12:25]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [18:12:25]wFMCommunicate OK [18:12:25]SAM_PROTO_GetShiftState done [18:12:25]FM_GetShiftState done [18:12:25]req_shift_opened done [18:12:25]requested_item shift.open_date is exist - process it [18:12:25]req_shift_open_date [18:12:25]req_shift_open_date done [18:12:25]produce_requested_data done [18:12:25]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29297,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [18:12:25]process_action_free close_receipt [18:12:25]json_value_free [18:12:25]json_value_free done [18:12:25]process_json_proto returns [18:12:25]Send response to host [18:12:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29297,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [18:12:25]free response buf [18:12:25]execute_script done [18:12:25]execute_script returns [18:12:25]free content buf [18:12:25]Sock 7.Close socket [18:12:25]Sock 7.Thread stoped [18:12:29]OFD Sender: No OFD packet to send [18:12:34]OFD Sender: No OFD packet to send [18:12:39]OFD Sender: No OFD packet to send [18:12:44]OFD Sender: No OFD packet to send [18:12:49]OFD Sender: No OFD packet to send [18:12:54]OFD Sender: No OFD packet to send [18:12:59]OFD Sender: No OFD packet to send [18:13:04]OFD Sender: No OFD packet to send [18:13:09]OFD Sender: No OFD packet to send [18:13:14]OFD Sender: No OFD packet to send [18:13:19]OFD Sender: No OFD packet to send [18:13:24]OFD Sender: No OFD packet to send [18:13:29]OFD Sender: No OFD packet to send [18:13:34]OFD Sender: No OFD packet to send [18:13:39]OFD Sender: No OFD packet to send [18:13:44]OFD Sender: No OFD packet to send [18:13:49]OFD Sender: No OFD packet to send [18:13:54]OFD Sender: No OFD packet to send [18:13:59]OFD Sender: No OFD packet to send [18:14:04]OFD Sender: No OFD packet to send [18:14:09]OFD Sender: No OFD packet to send [18:14:14]OFD Sender: No OFD packet to send [18:14:19]OFD Sender: No OFD packet to send [18:14:24]OFD Sender: No OFD packet to send [18:14:29]OFD Sender: No OFD packet to send [18:14:34]OFD Sender: No OFD packet to send [18:14:39]OFD Sender: No OFD packet to send [18:14:44]OFD Sender: No OFD packet to send [18:14:49]OFD Sender: No OFD packet to send [18:14:54]OFD Sender: No OFD packet to send [18:14:59]OFD Sender: No OFD packet to send [18:15:04]OFD Sender: No OFD packet to send [18:15:09]OFD Sender: No OFD packet to send [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:50]accept exits with 9 [18:17:50]New connection [18:17:50]New thread 3066928484 created [18:17:50]Thread 3066785124 joined [18:17:50]Waiting for new connection... [18:17:50] Sock 9.Parse request [18:17:50]Sock 9.Check first char [18:17:50]Sock 9.First char is OK [18:17:50]request: POST /json_proto HTTP/1.0 [18:17:50]Method: POST [18:17:50]URL: /json_proto [18:17:50]Method is POST - this is cgi request [18:17:50]url: /json_proto [18:17:50]query_string will be loaded in cgi processing [18:17:50]execute_cgi json_proto POST (null) [18:17:50]execute_cgi path=json_proto method=POST [18:17:50]POST find Content-Length [18:17:50]Host: 172.17.33.3:8080 [18:17:50]Content-Length: 809 [18:17:50]Content-Type: application/json [18:17:50] [18:17:50]POST finish read [18:17:50]Found Content-Length = 809 [18:17:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347687", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.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" ] } } [18:17:50]execute_script... [18:17: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)347687", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.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" ] } } [18:17:50]POST & json_proto [18:17:50]process_json_proto [18:17:50]json parsed OK: [18:17:50]protocol is kg_v1.0 [18:17:50]action value=close_receipt [18:17:50]process_action close_receipt [18:17:50]cmd_close_receipt [18:17:50]MH_GetDate [18:17:50]Write to MH i2c: F0 00 00 39 AE D6 [18:17:50]Write i2c OK [18:17:50]MH_I2C_Read... [18:17:50]Read from MH i2c: F0 [18:17:50]MH_I2C_Read... [18:17:50]Read from MH i2c: F0 09 00 [18:17:50]MH_I2C_Read... [18:17:50]Read from MH i2c: F0 09 00 39 AE 00 D9 1D 1C 66 23 5B 8F 65 C9 [18:17:50]GetLastDocTimeStamp 1713118353 [18:17:50]current date 1713118681 [18:17:50]FM_GetShiftState [18:17:50]SAM_PROTO_GetShiftState [18:17:50]wFMCommunicate request_size=4 [18:17:50]MH_SAM_APDU [18:17:50]CAPDU: 80 13 01 00 [18:17:50]Write to MH i2c: E2 08 00 3A AE 80 13 01 00 00 00 00 00 65 [18:17:50]Write i2c OK [18:17:50]MH_I2C_Read... [18:17:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:17:50]Read from MH i2c: E2 [18:17:50]MH_I2C_Read... [18:17:50]Read from MH i2c: E2 0E 00 [18:17:50]MH_I2C_Read... [18:17:50]Read from MH i2c: E2 0E 00 3A AE 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 11 [18:17:50]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [18:17:50]wFMCommunicate OK [18:17:50]SAM_PROTO_GetShiftState done [18:17:50]FM_GetShiftState done [18:17:50]opened in 1713053951 [18:17:50]opened+sec_in_day 1713140351 [18:17:50]quantity*price = 50019 [18:17:50]sum+1 = 50021 [18:17:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.20 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.20 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 208 14.04.2024 18:18 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 29298 ФПД: 49101172674993 1/tax-web-control/client/api/v1/ticket?date=20240414T181801&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29298&fm=49101172674993&tin=02508201610067®Number=0000138879044617&sum=50020 [18:17:51]StoreToDocumentArchive [18:17:51]shift 116 fd 29298 [18:17:51]save to /storage/0116/doc_00029298 [18:17:51]save last doc name /storage/0116/doc_00029298 to /storage/kkm_last_doc_name [18:17:51]save OK [18:17:51]Clear old archive folders... [18:17:51]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:17:51]tlvbuf is 01224C00 [18:17:51]SAM_PROTO_ClearQueue [18:17:51]wFMCommunicate request_size=4 [18:17:51]MH_SAM_APDU [18:17:51]CAPDU: 80 09 00 00 [18:17:51]Write to MH i2c: E2 08 00 47 AE 80 09 00 00 00 00 00 00 67 [18:17:51]Write i2c OK [18:17:51]MH_I2C_Read... [18:17:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:17:51]Read from MH i2c: E2 [18:17:51]MH_I2C_Read... [18:17:51]Read from MH i2c: E2 03 00 [18:17:51]MH_I2C_Read... [18:17:51]Read from MH i2c: E2 03 00 47 AE 00 90 00 69 [18:17:51]RAPDU: 90 00 [18:17:51]wFMCommunicate OK [18:17:51]SAM_PROTO_ClearQueue done [18:17:51]KKMCreateOFDPacket [18:17:51]OFDProtocolAddRootSTLVToBuf [18:17:51]FM_MakeSignedData [18:17:51]FM_MakeSignedData [18:17:51]SAM_PROTO_SignData [18:17:51]wFMCommunicate request_size=4 [18:17:51]MH_SAM_APDU [18:17:51]CAPDU: 80 0D 01 02 [18:17:51]Write to MH i2c: E2 08 00 48 AE 80 0D 01 02 00 00 00 00 6F [18:17:51]Write i2c OK [18:17:51]MH_I2C_Read... [18:17:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:17:51]Read from MH i2c: E2 [18:17:51]MH_I2C_Read... [18:17:51]Read from MH i2c: E2 03 00 [18:17:51]MH_I2C_Read... [18:17:51]Read from MH i2c: E2 03 00 48 AE 00 90 00 6A [18:17:51]RAPDU: 90 00 [18:17:51]wFMCommunicate OK [18:17:51]wFMCommunicate request_size=255 [18:17:51]MH_SAM_APDU [18:17:51]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 D0 00 00 00 F4 03 04 00 D9 1D 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 72 72 00 00 35 04 06 00 [18:17:51]Write to MH i2c: E2 02 01 49 AE 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 D0 00 00 00 F4 03 04 00 D9 1D 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 72 72 00 00 35 04 06 00 00 00 89 [18:17:51]Write i2c OK [18:17:51]MH_I2C_Read... [18:17:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:17:52]Read from MH i2c: E2 [18:17:52]MH_I2C_Read... [18:17:52]Read from MH i2c: E2 03 00 [18:17:52]MH_I2C_Read... [18:17:52]Read from MH i2c: E2 03 00 49 AE 00 90 00 6B [18:17:52]RAPDU: 90 00 [18:17:52]wFMCommunicate OK [18:17:52]wFMCommunicate request_size=11 [18:17:52]MH_SAM_APDU [18:17:52]CAPDU: 80 0D 02 02 06 2C A8 41 F4 91 B1 [18:17:52]Write to MH i2c: E2 0E 00 4A AE 80 0D 02 02 06 00 2C A8 41 F4 91 B1 00 00 C9 [18:17:52]Write i2c OK [18:17:52]MH_I2C_Read... [18:17:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:17:52]Read from MH i2c: E2 [18:17:52]MH_I2C_Read... [18:17:52]Read from MH i2c: E2 03 00 [18:17:52]MH_I2C_Read... [18:17:52]Read from MH i2c: E2 03 00 4A AE 00 90 00 6C [18:17:52]RAPDU: 90 00 [18:17:52]wFMCommunicate OK [18:17:52]wFMCommunicate request_size=4 [18:17:52]MH_SAM_APDU [18:17:52]CAPDU: 80 0D 03 02 [18:17:52]Write to MH i2c: E2 08 00 4B AE 80 0D 03 02 00 00 00 00 74 [18:17:52]Write i2c OK [18:17:52]MH_I2C_Read... [18:17:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:17:52]Read from MH i2c: E2 [18:17:52]MH_I2C_Read... [18:17:52]Read from MH i2c: E2 0B 00 [18:17:52]MH_I2C_Read... [18:17:52]Read from MH i2c: E2 0B 00 4B AE 00 E6 04 C4 23 EF A5 EC A7 90 00 6D [18:17:52]RAPDU: E6 04 C4 23 EF A5 EC A7 90 00 [18:17:52]wFMCommunicate OK [18:17:52]SAM_PROTO_SignData done [18:17:52]FM_MakeSignedData done [18:17:52]CreateOFDProtocolMessage [18:17:52]wFMCommunicate request_size=4 [18:17:52]MH_SAM_APDU [18:17:52]CAPDU: 80 11 00 00 [18:17:52]Write to MH i2c: E2 08 00 4C AE 80 11 00 00 00 00 00 00 74 [18:17:52]Write i2c OK [18:17:52]MH_I2C_Read... [18:17:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:17:52]Read from MH i2c: E2 [18:17:52]MH_I2C_Read... [18:17:52]Read from MH i2c: E2 17 00 [18:17:52]MH_I2C_Read... [18:17:52]Read from MH i2c: E2 17 00 4C AE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C3 [18:17:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:17:52]wFMCommunicate OK [18:17:52]CreateOFDProtocolMessage done [18:17:52]OFDSenderStorePacket 29298 [18:17:52]StoreOFDPacket docnum=29298 [18:17:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 E0 41 08 01 62 7A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 D0 00 00 00 F4 03 04 00 D9 1D 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 72 72 00 00 35 04 06 00 2C A8 41 F4 91 B1 E6 04 C4 23 EF A5 EC A7 [18:17:52]CheckFolder [18:17:52]dirname=/storage/ofd_packets [18:17:52]CheckFolder done [18:17:52]ProducePacketName [18:17:52]name=ofd_packets/00029298 [18:17:52]NVStorageSaveData ofd_packets/00029298 [18:17:52]File name is /storage/ofd_packets/00029298 [18:17:52]Write 302 bytes [18:17:52]NVStorageSaveData done [18:17:52]OFDSenderStorePacket done [18:17:52]KKMCreateOFDPacket done [18:17:52]NVStorageSaveData kkm_last_timestamp [18:17:52]File name is /storage/kkm_last_timestamp [18:17:52]Write 4 bytes [18:17:52]NVStorageSaveData done [18:17:52]ExternCall_PrintAddStr [18:17:52]wPrintStart [18:17:52]Write to MH i2c: 01 00 00 4D AE FB [18:17:52]Write i2c OK [18:17:52]MH_I2C_Read... [18:17:52]Read from MH i2c: 01 [18:17:52]MH_I2C_Read... [18:17:52]Read from MH i2c: 01 07 00 [18:17:52]MH_I2C_Read... [18:17:52]Read from MH i2c: 01 07 00 4D AE 00 00 00 00 00 FF 0F 10 [18:17:52]RasterBufferAndPrint [18:17:52]line Счет N : (1)347687 [18:17:52]line ИНН: 02508201610067 [18:17:52]line Контрольно-Кассовый Чек [18:17:52]line ПРОДАЖА [18:17:52]line ТРК (МРК, ГНК) : 22 [18:17:52]line Товар: 2710124130 [18:17:52]line SUPER-92-К-5 [18:17:52]line 7.660 * 65.30 [18:17:52]line = 500.20 [18:17:52]line НДС 12% НСП 1% [18:17:52]line > о реализуемом товаре [18:17:52]line ИТОГО: 500.20 [18:17:52]line НСП 1% : 4.43 [18:17:52]line НДС 12% : 53.12 [18:17:52]line Наличными: 0.00 [18:17:52]line Безнал.: 500.20 [18:17:52]line Место: АЗС № 108 "Партнер Нефть" [18:17:52]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [18:17:52]line СНО: Общий режим [18:17:52]line Чек 208 14.04.2024 18:18 [18:17:52]line Смена: 116 ФФД: 1.0 [18:17:52]line ЗНМ: 0300000027 [18:17:52]line РНМ: 0000138879044617 [18:17:52]line Версия ККМ: 001 [18:17:52]line Платежная система: Бакай Банк [18:17:52]line ФМ: 0000000000963154 [18:17:52]line ФД: 29298 [18:17:52]line ФПД: 49101172674993 [18:17:52]line 1/tax-web-control/client/api/v1/ticket?date=20240414T181801&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29298&fm=49101172674993&tin=02508201610067®Number=0000138879044617&sum=50020 [18:17:52]OFD Sender: Processing packet 29298 [packets to send 8, broken 7] [18:17:52]ProducePacketName [18:17:52]name=ofd_packets/00029298 [18:17:52]OFD Sender: To server: pG, [18:17:52]CommunicateWithHost lk.salyk.kg:30040 [18:17:52]ConnectInit lk.salyk.kg [18:17:52]written 0, free lines is 4095 [18:17:52]Connected sock=10 [18:17:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 E0 41 08 01 62 7A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 D0 00 00 00 F4 03 04 00 D9 1D 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 72 72 00 00 35 04 06 00 2C A8 41 F4 91 B1 E6 04 C4 23 EF A5 EC A7 [18:17:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 93 B2 47 00 8D DB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 72 72 00 00 F4 03 04 00 7D C8 1B 66 B6 04 01 00 00 B7 8C 9F E4 72 FD 67 21 [18:17:52]CommunicateWithHost err = 0 [18:17:52]CheckOFDResponse [18:17:52]1017 (14) - 77093643461234 [18:17:52]1041 (16) - 0000000000963154 [18:17:52]1040 (4) - 29298 [18:17:52]1012 (4) - 14.04.2024 12:13 [18:17:52]1206 (1) - 0 [18:17:52]OFD Sender: Remove packet 29298 [18:17:52]ProducePacketName [18:17:52]name=ofd_packets/00029298 [18:17:52]NVStorageDeleteData [18:17:53]Write to MH i2c: 01 00 00 76 AE 24 [18:17:53]Write i2c OK [18:17:53]MH_I2C_Read... [18:17:53]Read from MH i2c: 01 [18:17:53]MH_I2C_Read... [18:17:53]Read from MH i2c: 01 07 00 [18:17:53]MH_I2C_Read... [18:17:53]Read from MH i2c: 01 07 00 76 AE 00 00 00 00 00 E2 0C 19 [18:17:53]RasterBufferAndPrint [18:17:53]line [18:17:53]line [18:17:53]line [18:17:53]line [18:17:53]line [18:17:53]written 0, free lines is 3304 [18:17:53]MH_Cut [18:17:53]Write to MH i2c: D1 01 00 7D AE 01 FD [18:17:53]Write i2c OK [18:17:53]MH_I2C_Read... [18:17:53]Read from MH i2c: D1 [18:17:53]MH_I2C_Read... [18:17:53]Read from MH i2c: D1 01 00 [18:17:53]MH_I2C_Read... [18:17:53]Read from MH i2c: D1 01 00 7D AE 00 FC [18:17:53]Write to MH i2c: 01 00 00 7E AE 2C [18:17:53]Write i2c OK [18:17:53]MH_I2C_Read... [18:17:53]OFD Sender: No OFD packet to send [18:17:53]*** Cut start [18:17:53]*** Partial cut [18:17:53]*** CUTSNS_PIN = 1 [18:17:53]*** CUTSNS_PIN = 0 [18:17:54]*** Brake cut motor [18:17:54]Read from MH i2c: 01 [18:17:54]MH_I2C_Read... [18:17:54]*** Stop cut motor [18:17:54]*** Cut end [18:17:54]Read from MH i2c: 01 07 00 [18:17:54]MH_I2C_Read... [18:17:54]Read from MH i2c: 01 07 00 7E AE 00 00 00 00 00 FF 0F 41 [18:17:54]process_action close_receipt done [18:17:54]requested_data is exist [18:17:54]produce_requested_data [18:17:54]requested_item fm.sn is exist - process it [18:17:54]wFMCommunicate request_size=4 [18:17:54]MH_SAM_APDU [18:17:54]CAPDU: 80 11 00 00 [18:17:54]Write to MH i2c: E2 08 00 7F AE 80 11 00 00 00 00 00 00 A7 [18:17:54]Write i2c OK [18:17:54]MH_I2C_Read... [18:17:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:17:54]Read from MH i2c: E2 [18:17:54]MH_I2C_Read... [18:17:54]Read from MH i2c: E2 17 00 [18:17:54]MH_I2C_Read... [18:17:54]Read from MH i2c: E2 17 00 7F AE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F6 [18:17:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:17:54]wFMCommunicate OK [18:17:54]requested_item fd.num is exist - process it [18:17:54]SAM_PROTO_GetFieldsCounters [18:17:54]wFMCommunicate request_size=4 [18:17:54]MH_SAM_APDU [18:17:54]CAPDU: 80 13 00 00 [18:17:54]Write to MH i2c: E2 08 00 80 AE 80 13 00 00 00 00 00 00 AA [18:17:54]Write i2c OK [18:17:54]MH_I2C_Read... [18:17:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:17:54]Read from MH i2c: E2 [18:17:54]MH_I2C_Read... [18:17:54]Read from MH i2c: E2 62 00 [18:17:54]MH_I2C_Read... [18:17:54]Read from MH i2c: E2 62 00 80 AE 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 72 72 00 00 0E 04 04 00 74 00 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 B0 [18:17:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 72 72 00 00 0E 04 04 00 74 00 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 [18:17:54]wFMCommunicate OK [18:17:54]SAM_PROTO_GetFieldsCounters done [18:17:54]requested_item shift.num is exist - process it [18:17:54]requested_item shift.opened is exist - process it [18:17:54]req_shift_opened [18:17:54]FM_GetShiftState [18:17:54]SAM_PROTO_GetShiftState [18:17:54]wFMCommunicate request_size=4 [18:17:54]MH_SAM_APDU [18:17:54]CAPDU: 80 13 01 00 [18:17:54]Write to MH i2c: E2 08 00 81 AE 80 13 01 00 00 00 00 00 AC [18:17:54]Write i2c OK [18:17:54]MH_I2C_Read... [18:17:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:17:54]Read from MH i2c: E2 [18:17:54]MH_I2C_Read... [18:17:54]Read from MH i2c: E2 0E 00 [18:17:54]MH_I2C_Read... [18:17:54]Read from MH i2c: E2 0E 00 81 AE 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 58 [18:17:54]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [18:17:54]wFMCommunicate OK [18:17:54]SAM_PROTO_GetShiftState done [18:17:54]FM_GetShiftState done [18:17:54]req_shift_opened done [18:17:54]requested_item shift.open_date is exist - process it [18:17:54]req_shift_open_date [18:17:54]req_shift_open_date done [18:17:54]produce_requested_data done [18:17:54]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29298,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [18:17:54]process_action_free close_receipt [18:17:54]json_value_free [18:17:54]json_value_free done [18:17:54]process_json_proto returns [18:17:54]Send response to host [18:17:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29298,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [18:17:54]free response buf [18:17:54]execute_script done [18:17:54]execute_script returns [18:17:54]free content buf [18:17:54]Sock 9.Close socket [18:17:54]Sock 9.Thread stoped [18:17:58]OFD Sender: No OFD packet to send [18:18:03]OFD Sender: No OFD packet to send [18:18:08]OFD Sender: No OFD packet to send [18:18:13]OFD Sender: No OFD packet to send [18:18:18]OFD Sender: No OFD packet to send [18:18:18]accept exits with 7 [18:18:18]New connection [18:18:18]New thread 3066785124 created [18:18:18]Thread 3066928484 joined [18:18:18]Waiting for new connection... [18:18:18] Sock 7.Parse request [18:18:18]Sock 7.Check first char [18:18:18]Sock 7.First char is OK [18:18:18]request: POST /json_proto HTTP/1.0 [18:18:18]Method: POST [18:18:18]URL: /json_proto [18:18:18]Method is POST - this is cgi request [18:18:18]url: /json_proto [18:18:18]query_string will be loaded in cgi processing [18:18:18]execute_cgi json_proto POST (null) [18:18:18]execute_cgi path=json_proto method=POST [18:18:18]POST find Content-Length [18:18:18]Host: 172.17.33.3:8080 [18:18:18]Content-Length: 674 [18:18:18]Content-Type: application/json [18:18:18] [18:18:18]POST finish read [18:18:18]Found Content-Length = 674 [18:18:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347688", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.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" ] } } [18:18:18]execute_script... [18:18: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)347688", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.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" ] } } [18:18:18]POST & json_proto [18:18:18]process_json_proto [18:18:18]json parsed OK: [18:18:18]protocol is kg_v1.0 [18:18:18]action value=close_receipt [18:18:18]process_action close_receipt [18:18:18]cmd_close_receipt [18:18:18]MH_GetDate [18:18:18]Write to MH i2c: F0 00 00 82 AE 1F [18:18:18]Write i2c OK [18:18:18]MH_I2C_Read... [18:18:18]Read from MH i2c: F0 [18:18:18]MH_I2C_Read... [18:18:18]Read from MH i2c: F0 09 00 [18:18:18]MH_I2C_Read... [18:18:18]Read from MH i2c: F0 09 00 82 AE 00 F5 1D 1C 66 23 5B 8F 65 2E [18:18:18]GetLastDocTimeStamp 1713118681 [18:18:18]current date 1713118709 [18:18:18]FM_GetShiftState [18:18:18]SAM_PROTO_GetShiftState [18:18:18]wFMCommunicate request_size=4 [18:18:18]MH_SAM_APDU [18:18:18]CAPDU: 80 13 01 00 [18:18:18]Write to MH i2c: E2 08 00 83 AE 80 13 01 00 00 00 00 00 AE [18:18:18]Write i2c OK [18:18:18]MH_I2C_Read... [18:18:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:18:18]Read from MH i2c: E2 [18:18:18]MH_I2C_Read... [18:18:18]Read from MH i2c: E2 0E 00 [18:18:18]MH_I2C_Read... [18:18:18]Read from MH i2c: E2 0E 00 83 AE 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 5A [18:18:18]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [18:18:18]wFMCommunicate OK [18:18:18]SAM_PROTO_GetShiftState done [18:18:18]FM_GetShiftState done [18:18:18]opened in 1713053951 [18:18:18]opened+sec_in_day 1713140351 [18:18:18]quantity*price = 50028 [18:18:18]sum+1 = 50029 [18:18:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 209 14.04.2024 18:18 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29299 ФПД: 188025947061148 1/tax-web-control/client/api/v1/ticket?date=20240414T181830&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29299&fm=188025947061148&tin=02508201610067®Number=0000138879044617&sum=50000 [18:18:19]StoreToDocumentArchive [18:18:19]shift 116 fd 29299 [18:18:19]save to /storage/0116/doc_00029299 [18:18:19]save last doc name /storage/0116/doc_00029299 to /storage/kkm_last_doc_name [18:18:19]save OK [18:18:19]Clear old archive folders... [18:18:19]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:18:19]tlvbuf is 012F3840 [18:18:19]SAM_PROTO_ClearQueue [18:18:19]wFMCommunicate request_size=4 [18:18:19]MH_SAM_APDU [18:18:19]CAPDU: 80 09 00 00 [18:18:19]Write to MH i2c: E2 08 00 90 AE 80 09 00 00 00 00 00 00 B0 [18:18:19]Write i2c OK [18:18:19]MH_I2C_Read... [18:18:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:18:19]Read from MH i2c: E2 [18:18:19]MH_I2C_Read... [18:18:19]Read from MH i2c: E2 03 00 [18:18:19]MH_I2C_Read... [18:18:19]Read from MH i2c: E2 03 00 90 AE 00 90 00 B2 [18:18:19]RAPDU: 90 00 [18:18:19]wFMCommunicate OK [18:18:19]SAM_PROTO_ClearQueue done [18:18:19]KKMCreateOFDPacket [18:18:19]OFDProtocolAddRootSTLVToBuf [18:18:19]FM_MakeSignedData [18:18:19]FM_MakeSignedData [18:18:19]SAM_PROTO_SignData [18:18:19]wFMCommunicate request_size=4 [18:18:19]MH_SAM_APDU [18:18:19]CAPDU: 80 0D 01 02 [18:18:19]Write to MH i2c: E2 08 00 91 AE 80 0D 01 02 00 00 00 00 B8 [18:18:19]Write i2c OK [18:18:19]MH_I2C_Read... [18:18:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:18:19]Read from MH i2c: E2 [18:18:19]MH_I2C_Read... [18:18:19]Read from MH i2c: E2 03 00 [18:18:19]MH_I2C_Read... [18:18:19]Read from MH i2c: E2 03 00 91 AE 00 90 00 B3 [18:18:19]RAPDU: 90 00 [18:18:19]wFMCommunicate OK [18:18:19]wFMCommunicate request_size=255 [18:18:19]MH_SAM_APDU [18:18: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 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 D1 00 00 00 F4 03 04 00 F6 1D 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 73 72 00 00 35 04 06 00 AB 02 33 C8 [18:18:19]Write to MH i2c: E2 02 01 92 AE 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 D1 00 00 00 F4 03 04 00 F6 1D 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 73 72 00 00 35 04 06 00 AB 02 33 C8 00 00 FB [18:18:19]Write i2c OK [18:18:19]MH_I2C_Read... [18:18:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:18:20]Read from MH i2c: E2 [18:18:20]MH_I2C_Read... [18:18:20]Read from MH i2c: E2 03 00 [18:18:20]MH_I2C_Read... [18:18:20]Read from MH i2c: E2 03 00 92 AE 00 90 00 B4 [18:18:20]RAPDU: 90 00 [18:18:20]wFMCommunicate OK [18:18:20]wFMCommunicate request_size=7 [18:18:20]MH_SAM_APDU [18:18:20]CAPDU: 80 0D 02 02 02 7B 9C [18:18:20]Write to MH i2c: E2 0A 00 93 AE 80 0D 02 02 02 00 7B 9C 00 00 D6 [18:18:20]Write i2c OK [18:18:20]MH_I2C_Read... [18:18:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:18:20]Read from MH i2c: E2 [18:18:20]MH_I2C_Read... [18:18:20]Read from MH i2c: E2 03 00 [18:18:20]MH_I2C_Read... [18:18:20]Read from MH i2c: E2 03 00 93 AE 00 90 00 B5 [18:18:20]RAPDU: 90 00 [18:18:20]wFMCommunicate OK [18:18:20]wFMCommunicate request_size=4 [18:18:20]MH_SAM_APDU [18:18:20]CAPDU: 80 0D 03 02 [18:18:20]Write to MH i2c: E2 08 00 94 AE 80 0D 03 02 00 00 00 00 BD [18:18:20]Write i2c OK [18:18:20]MH_I2C_Read... [18:18:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:18:20]Read from MH i2c: E2 [18:18:20]MH_I2C_Read... [18:18:20]Read from MH i2c: E2 0B 00 [18:18:20]MH_I2C_Read... [18:18:20]Read from MH i2c: E2 0B 00 94 AE 00 59 26 F2 99 A9 33 3B 7D 90 00 5C [18:18:20]RAPDU: 59 26 F2 99 A9 33 3B 7D 90 00 [18:18:20]wFMCommunicate OK [18:18:20]SAM_PROTO_SignData done [18:18:20]FM_MakeSignedData done [18:18:20]CreateOFDProtocolMessage [18:18:20]wFMCommunicate request_size=4 [18:18:20]MH_SAM_APDU [18:18:20]CAPDU: 80 11 00 00 [18:18:20]Write to MH i2c: E2 08 00 95 AE 80 11 00 00 00 00 00 00 BD [18:18:20]Write i2c OK [18:18:20]MH_I2C_Read... [18:18:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:18:20]Read from MH i2c: E2 [18:18:20]MH_I2C_Read... [18:18:20]Read from MH i2c: E2 17 00 [18:18:20]MH_I2C_Read... [18:18:20]Read from MH i2c: E2 17 00 95 AE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 0C [18:18:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:18:20]wFMCommunicate OK [18:18:20]CreateOFDProtocolMessage done [18:18:20]OFDSenderStorePacket 29299 [18:18:20]StoreOFDPacket docnum=29299 [18:18:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 FF 3A 04 01 4B 45 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 D1 00 00 00 F4 03 04 00 F6 1D 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 73 72 00 00 35 04 06 00 AB 02 33 C8 7B 9C 59 26 F2 99 A9 33 3B 7D [18:18:20]CheckFolder [18:18:20]dirname=/storage/ofd_packets [18:18:20]CheckFolder done [18:18:20]ProducePacketName [18:18:20]name=ofd_packets/00029299 [18:18:20]NVStorageSaveData ofd_packets/00029299 [18:18:20]File name is /storage/ofd_packets/00029299 [18:18:20]Write 298 bytes [18:18:20]NVStorageSaveData done [18:18:20]OFDSenderStorePacket done [18:18:20]KKMCreateOFDPacket done [18:18:20]NVStorageSaveData kkm_last_timestamp [18:18:20]File name is /storage/kkm_last_timestamp [18:18:20]Write 4 bytes [18:18:20]NVStorageSaveData done [18:18:20]ExternCall_PrintAddStr [18:18:20]wPrintStart [18:18:20]Write to MH i2c: 01 00 00 96 AE 44 [18:18:20]Write i2c OK [18:18:20]MH_I2C_Read... [18:18:20]Read from MH i2c: 01 [18:18:20]MH_I2C_Read... [18:18:20]Read from MH i2c: 01 07 00 [18:18:20]MH_I2C_Read... [18:18:20]Read from MH i2c: 01 07 00 96 AE 00 00 00 00 00 FF 0F 59 [18:18:20]RasterBufferAndPrint [18:18:20]line Счет N : (1)347688 [18:18:20]line ИНН: 02508201610067 [18:18:20]line Контрольно-Кассовый Чек [18:18:20]line ПРОДАЖА [18:18:20]line ТРК (МРК, ГНК) : 11 [18:18:20]line Товар: 2710194210 [18:18:20]line ДТ-К-5 [18:18:20]line 6.910 * 72.40 [18:18:20]line = 500.28 [18:18:20]line НДС 12% НСП 1% [18:18:20]line > о реализуемом товаре [18:18:20]line ОКРУГЛЕНИЕ: -0.28 [18:18:20]line ИТОГО: 500.00 [18:18:20]line Внесено: 500.00 [18:18:20]line СДАЧА: 0.00 [18:18:20]line НСП 1% : 4.43 [18:18:20]line НДС 12% : 53.13 [18:18:20]line Наличными: 500.00 [18:18:20]line Безнал.: 0.00 [18:18:20]line Место: АЗС № 108 "Партнер Нефть" [18:18:20]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [18:18:20]line СНО: Общий режим [18:18:20]line Чек 209 14.04.2024 18:18 [18:18:20]line Смена: 116 ФФД: 1.0 [18:18:20]line ЗНМ: 0300000027 [18:18:20]line РНМ: 0000138879044617 [18:18:20]line Версия ККМ: 001 [18:18:20]line ФМ: 0000000000963154 [18:18:20]line ФД: 29299 [18:18:20]line ФПД: 188025947061148 [18:18:20]line 1/tax-web-control/client/api/v1/ticket?date=20240414T181830&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29299&fm=188025947061148&tin=02508201610067®Number=0000138879044617&sum=50000 [18:18:20]OFD Sender: Processing packet 29299 [packets to send 8, broken 7] [18:18:20]ProducePacketName [18:18:20]name=ofd_packets/00029299 [18:18:20]OFD Sender: To server: pG, [18:18:20]CommunicateWithHost lk.salyk.kg:30040 [18:18:20]ConnectInit lk.salyk.kg [18:18:20]written 0, free lines is 4095 [18:18:20]Connected sock=10 [18:18:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 FF 3A 04 01 4B 45 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 D1 00 00 00 F4 03 04 00 F6 1D 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 73 72 00 00 35 04 06 00 AB 02 33 C8 7B 9C 59 26 F2 99 A9 33 3B 7D [18:18:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 F3 41 47 00 5E 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 73 72 00 00 F4 03 04 00 99 C8 1B 66 B6 04 01 00 00 8B 9D 9A 25 76 43 00 A3 [18:18:20]CommunicateWithHost err = 0 [18:18:20]CheckOFDResponse [18:18:20]1017 (14) - 77093643461234 [18:18:20]1041 (16) - 0000000000963154 [18:18:20]1040 (4) - 29299 [18:18:20]1012 (4) - 14.04.2024 12:14 [18:18:20]1206 (1) - 0 [18:18:20]OFD Sender: Remove packet 29299 [18:18:20]ProducePacketName [18:18:20]name=ofd_packets/00029299 [18:18:20]NVStorageDeleteData [18:18:21]Write to MH i2c: 01 00 00 C0 AE 6E [18:18:21]Write i2c OK [18:18:21]MH_I2C_Read... [18:18:21]Read from MH i2c: 01 [18:18:21]MH_I2C_Read... [18:18:21]Read from MH i2c: 01 07 00 [18:18:21]MH_I2C_Read... [18:18:21]Read from MH i2c: 01 07 00 C0 AE 00 00 00 00 00 C6 0C 47 [18:18:21]RasterBufferAndPrint [18:18:21]line [18:18:21]line [18:18:21]line [18:18:21]line [18:18:21]line [18:18:21]written 0, free lines is 3276 [18:18:21]MH_Cut [18:18:21]Write to MH i2c: D1 01 00 C7 AE 01 47 [18:18:21]Write i2c OK [18:18:21]MH_I2C_Read... [18:18:21]Read from MH i2c: D1 [18:18:21]MH_I2C_Read... [18:18:21]Read from MH i2c: D1 01 00 [18:18:21]MH_I2C_Read... [18:18:21]Read from MH i2c: D1 01 00 C7 AE 00 46 [18:18:21]Write to MH i2c: 01 00 00 C8 AE 76 [18:18:21]Write i2c OK [18:18:21]MH_I2C_Read... [18:18:21]OFD Sender: No OFD packet to send [18:18:21]*** Cut start [18:18:21]*** Partial cut [18:18:21]*** CUTSNS_PIN = 1 [18:18:21]*** CUTSNS_PIN = 0 [18:18:22]*** Brake cut motor [18:18:22]Read from MH i2c: 01 [18:18:22]MH_I2C_Read... [18:18:22]*** Stop cut motor [18:18:22]*** Cut end [18:18:22]Read from MH i2c: 01 07 00 [18:18:22]MH_I2C_Read... [18:18:22]Read from MH i2c: 01 07 00 C8 AE 00 00 00 00 00 FF 0F 8B [18:18:22]process_action close_receipt done [18:18:22]requested_data is exist [18:18:22]produce_requested_data [18:18:22]requested_item fm.sn is exist - process it [18:18:22]wFMCommunicate request_size=4 [18:18:22]MH_SAM_APDU [18:18:22]CAPDU: 80 11 00 00 [18:18:22]Write to MH i2c: E2 08 00 C9 AE 80 11 00 00 00 00 00 00 F1 [18:18:22]Write i2c OK [18:18:22]MH_I2C_Read... [18:18:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:18:22]Read from MH i2c: E2 [18:18:22]MH_I2C_Read... [18:18:22]Read from MH i2c: E2 17 00 [18:18:22]MH_I2C_Read... [18:18:22]Read from MH i2c: E2 17 00 C9 AE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 40 [18:18:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:18:22]wFMCommunicate OK [18:18:22]requested_item fd.num is exist - process it [18:18:22]SAM_PROTO_GetFieldsCounters [18:18:22]wFMCommunicate request_size=4 [18:18:22]MH_SAM_APDU [18:18:22]CAPDU: 80 13 00 00 [18:18:22]Write to MH i2c: E2 08 00 CA AE 80 13 00 00 00 00 00 00 F4 [18:18:22]Write i2c OK [18:18:22]MH_I2C_Read... [18:18:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:18:22]Read from MH i2c: E2 [18:18:22]MH_I2C_Read... [18:18:22]Read from MH i2c: E2 62 00 [18:18:22]MH_I2C_Read... [18:18:22]Read from MH i2c: E2 62 00 CA AE 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 73 72 00 00 0E 04 04 00 74 00 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 FE [18:18:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 73 72 00 00 0E 04 04 00 74 00 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 [18:18:22]wFMCommunicate OK [18:18:22]SAM_PROTO_GetFieldsCounters done [18:18:22]requested_item shift.num is exist - process it [18:18:22]requested_item shift.opened is exist - process it [18:18:22]req_shift_opened [18:18:22]FM_GetShiftState [18:18:22]SAM_PROTO_GetShiftState [18:18:22]wFMCommunicate request_size=4 [18:18:22]MH_SAM_APDU [18:18:22]CAPDU: 80 13 01 00 [18:18:22]Write to MH i2c: E2 08 00 CB AE 80 13 01 00 00 00 00 00 F6 [18:18:22]Write i2c OK [18:18:22]MH_I2C_Read... [18:18:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:18:22]Read from MH i2c: E2 [18:18:22]MH_I2C_Read... [18:18:22]Read from MH i2c: E2 0E 00 [18:18:22]MH_I2C_Read... [18:18:22]Read from MH i2c: E2 0E 00 CB AE 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 A2 [18:18:22]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [18:18:22]wFMCommunicate OK [18:18:22]SAM_PROTO_GetShiftState done [18:18:22]FM_GetShiftState done [18:18:22]req_shift_opened done [18:18:22]requested_item shift.open_date is exist - process it [18:18:22]req_shift_open_date [18:18:22]req_shift_open_date done [18:18:22]produce_requested_data done [18:18:22]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29299,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [18:18:22]process_action_free close_receipt [18:18:22]json_value_free [18:18:22]json_value_free done [18:18:22]process_json_proto returns [18:18:22]Send response to host [18:18:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29299,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [18:18:22]free response buf [18:18:22]execute_script done [18:18:22]execute_script returns [18:18:22]free content buf [18:18:22]Sock 7.Close socket [18:18:22]Sock 7.Thread stoped [18:18:26]OFD Sender: No OFD packet to send [18:18:31]OFD Sender: No OFD packet to send [18:18:36]OFD Sender: No OFD packet to send [18:18:41]OFD Sender: No OFD packet to send [18:18:46]OFD Sender: No OFD packet to send [18:18:50]accept exits with 9 [18:18:50]New connection [18:18:50]New thread 3066928484 created [18:18:50]Thread 3066785124 joined [18:18:50]Waiting for new connection... [18:18:50] Sock 9.Parse request [18:18:50]Sock 9.Check first char [18:18:50]Sock 9.First char is OK [18:18:50]request: POST /json_proto HTTP/1.0 [18:18:50]Method: POST [18:18:50]URL: /json_proto [18:18:50]Method is POST - this is cgi request [18:18:50]url: /json_proto [18:18:50]query_string will be loaded in cgi processing [18:18:50]execute_cgi json_proto POST (null) [18:18:50]execute_cgi path=json_proto method=POST [18:18:50]POST find Content-Length [18:18:50]Host: 172.17.33.3:8080 [18:18:50]Content-Length: 816 [18:18:50]Content-Type: application/json [18:18:50] [18:18:50]POST finish read [18:18:50]Found Content-Length = 816 [18:18:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347689", "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" ] } } [18:18:50]execute_script... [18:18:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347689", "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" ] } } [18:18:50]POST & json_proto [18:18:50]process_json_proto [18:18:50]json parsed OK: [18:18:50]protocol is kg_v1.0 [18:18:50]action value=close_receipt [18:18:50]process_action close_receipt [18:18:50]cmd_close_receipt [18:18:50]MH_GetDate [18:18:50]Write to MH i2c: F0 00 00 CC AE 69 [18:18:50]Write i2c OK [18:18:50]MH_I2C_Read... [18:18:50]Read from MH i2c: F0 [18:18:50]MH_I2C_Read... [18:18:50]Read from MH i2c: F0 09 00 [18:18:50]MH_I2C_Read... [18:18:50]Read from MH i2c: F0 09 00 CC AE 00 15 1E 1C 66 23 5B 8F 65 99 [18:18:50]GetLastDocTimeStamp 1713118710 [18:18:50]current date 1713118741 [18:18:50]FM_GetShiftState [18:18:50]SAM_PROTO_GetShiftState [18:18:50]wFMCommunicate request_size=4 [18:18:50]MH_SAM_APDU [18:18:50]CAPDU: 80 13 01 00 [18:18:50]Write to MH i2c: E2 08 00 CD AE 80 13 01 00 00 00 00 00 F8 [18:18:50]Write i2c OK [18:18:50]MH_I2C_Read... [18:18:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:18:50]Read from MH i2c: E2 [18:18:50]MH_I2C_Read... [18:18:50]Read from MH i2c: E2 0E 00 [18:18:50]MH_I2C_Read... [18:18:50]Read from MH i2c: E2 0E 00 CD AE 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 A4 [18:18:50]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [18:18:50]wFMCommunicate OK [18:18:50]SAM_PROTO_GetShiftState done [18:18:50]FM_GetShiftState done [18:18:50]opened in 1713053951 [18:18:50]opened+sec_in_day 1713140351 [18:18:50]quantity*price = 50025 [18:18:50]sum+1 = 50026 [18:18:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.25 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.25 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 210 14.04.2024 18:19 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 29300 ФПД: 12571905062037 1/tax-web-control/client/api/v1/ticket?date=20240414T181901&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29300&fm=12571905062037&tin=02508201610067®Number=0000138879044617&sum=50025 [18:18:51]StoreToDocumentArchive [18:18:51]shift 116 fd 29300 [18:18:51]save to /storage/0116/doc_00029300 [18:18:51]save last doc name /storage/0116/doc_00029300 to /storage/kkm_last_doc_name [18:18:51]save OK [18:18:51]Clear old archive folders... [18:18:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:18:51]tlvbuf is 012CFED0 [18:18:51]SAM_PROTO_ClearQueue [18:18:51]wFMCommunicate request_size=4 [18:18:51]MH_SAM_APDU [18:18:51]CAPDU: 80 09 00 00 [18:18:51]Write to MH i2c: E2 08 00 DA AE 80 09 00 00 00 00 00 00 FA [18:18:51]Write i2c OK [18:18:51]MH_I2C_Read... [18:18:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:18:51]Read from MH i2c: E2 [18:18:51]MH_I2C_Read... [18:18:51]Read from MH i2c: E2 03 00 [18:18:51]MH_I2C_Read... [18:18:51]Read from MH i2c: E2 03 00 DA AE 00 90 00 FC [18:18:51]RAPDU: 90 00 [18:18:51]wFMCommunicate OK [18:18:51]SAM_PROTO_ClearQueue done [18:18:51]KKMCreateOFDPacket [18:18:51]OFDProtocolAddRootSTLVToBuf [18:18:51]FM_MakeSignedData [18:18:51]FM_MakeSignedData [18:18:51]SAM_PROTO_SignData [18:18:51]wFMCommunicate request_size=4 [18:18:51]MH_SAM_APDU [18:18:51]CAPDU: 80 0D 01 02 [18:18:51]Write to MH i2c: E2 08 00 DB AE 80 0D 01 02 00 00 00 00 02 [18:18:51]Write i2c OK [18:18:51]MH_I2C_Read... [18:18:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:18:51]Read from MH i2c: E2 [18:18:51]MH_I2C_Read... [18:18:51]Read from MH i2c: E2 03 00 [18:18:51]MH_I2C_Read... [18:18:51]Read from MH i2c: E2 03 00 DB AE 00 90 00 FD [18:18:51]RAPDU: 90 00 [18:18:51]wFMCommunicate OK [18:18:51]wFMCommunicate request_size=255 [18:18:51]MH_SAM_APDU [18:18: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 D2 00 00 00 F4 03 04 00 15 1E 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 74 72 00 00 35 04 06 00 0B [18:18:51]Write to MH i2c: E2 02 01 DC AE 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 D2 00 00 00 F4 03 04 00 15 1E 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 74 72 00 00 35 04 06 00 0B 00 00 E2 [18:18:51]Write i2c OK [18:18:51]MH_I2C_Read... [18:18:51]OFD Sender: No OFD packet to send [18:18:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:18:51]Read from MH i2c: E2 [18:18:51]MH_I2C_Read... [18:18:51]Read from MH i2c: E2 03 00 [18:18:51]MH_I2C_Read... [18:18:51]Read from MH i2c: E2 03 00 DC AE 00 90 00 FE [18:18:51]RAPDU: 90 00 [18:18:51]wFMCommunicate OK [18:18:51]wFMCommunicate request_size=10 [18:18:51]MH_SAM_APDU [18:18:51]CAPDU: 80 0D 02 02 05 6F 1F EF 74 95 [18:18:51]Write to MH i2c: E2 0D 00 DD AE 80 0D 02 02 05 00 6F 1F EF 74 95 00 00 95 [18:18:51]Write i2c OK [18:18:51]MH_I2C_Read... [18:18:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:18:51]Read from MH i2c: E2 [18:18:51]MH_I2C_Read... [18:18:51]Read from MH i2c: E2 03 00 [18:18:51]MH_I2C_Read... [18:18:51]Read from MH i2c: E2 03 00 DD AE 00 90 00 FF [18:18:51]RAPDU: 90 00 [18:18:51]wFMCommunicate OK [18:18:51]wFMCommunicate request_size=4 [18:18:51]MH_SAM_APDU [18:18:51]CAPDU: 80 0D 03 02 [18:18:51]Write to MH i2c: E2 08 00 DE AE 80 0D 03 02 00 00 00 00 07 [18:18:51]Write i2c OK [18:18:51]MH_I2C_Read... [18:18:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:18:51]Read from MH i2c: E2 [18:18:51]MH_I2C_Read... [18:18:51]Read from MH i2c: E2 0B 00 [18:18:51]MH_I2C_Read... [18:18:51]Read from MH i2c: E2 0B 00 DE AE 00 4D 68 18 DE 85 A7 1E F3 90 00 F0 [18:18:51]RAPDU: 4D 68 18 DE 85 A7 1E F3 90 00 [18:18:51]wFMCommunicate OK [18:18:51]SAM_PROTO_SignData done [18:18:51]FM_MakeSignedData done [18:18:51]CreateOFDProtocolMessage [18:18:51]wFMCommunicate request_size=4 [18:18:51]MH_SAM_APDU [18:18:51]CAPDU: 80 11 00 00 [18:18:51]Write to MH i2c: E2 08 00 DF AE 80 11 00 00 00 00 00 00 07 [18:18:51]Write i2c OK [18:18:51]MH_I2C_Read... [18:18:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:18:51]Read from MH i2c: E2 [18:18:51]MH_I2C_Read... [18:18:51]Read from MH i2c: E2 17 00 [18:18:51]MH_I2C_Read... [18:18:51]Read from MH i2c: E2 17 00 DF AE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 56 [18:18:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:18:51]wFMCommunicate OK [18:18:51]CreateOFDProtocolMessage done [18:18:51]OFDSenderStorePacket 29300 [18:18:51]StoreOFDPacket docnum=29300 [18:18:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 DF 37 07 01 9B 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 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 D2 00 00 00 F4 03 04 00 15 1E 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 74 72 00 00 35 04 06 00 0B 6F 1F EF 74 95 4D 68 18 DE 85 A7 1E F3 [18:18:51]CheckFolder [18:18:51]dirname=/storage/ofd_packets [18:18:51]CheckFolder done [18:18:51]ProducePacketName [18:18:51]name=ofd_packets/00029300 [18:18:51]NVStorageSaveData ofd_packets/00029300 [18:18:51]File name is /storage/ofd_packets/00029300 [18:18:51]Write 301 bytes [18:18:51]NVStorageSaveData done [18:18:51]OFDSenderStorePacket done [18:18:51]KKMCreateOFDPacket done [18:18:51]NVStorageSaveData kkm_last_timestamp [18:18:51]File name is /storage/kkm_last_timestamp [18:18:51]Write 4 bytes [18:18:51]NVStorageSaveData done [18:18:51]ExternCall_PrintAddStr [18:18:51]wPrintStart [18:18:51]Write to MH i2c: 01 00 00 E0 AE 8E [18:18:51]Write i2c OK [18:18:51]MH_I2C_Read... [18:18:51]Read from MH i2c: 01 [18:18:51]MH_I2C_Read... [18:18:51]Read from MH i2c: 01 07 00 [18:18:51]MH_I2C_Read... [18:18:51]Read from MH i2c: 01 07 00 E0 AE 00 00 00 00 00 FF 0F A3 [18:18:51]RasterBufferAndPrint [18:18:51]line Счет N : (1)347689 [18:18:51]line ИНН: 02508201610067 [18:18:51]line Контрольно-Кассовый Чек [18:18:51]line ПРОДАЖА [18:18:51]line ТРК (МРК, ГНК) : 32 [18:18:51]line Товар: 2710124130 [18:18:51]line Аи-92-К-5 [18:18:51]line 7.780 * 64.30 [18:18:51]line = 500.25 [18:18:51]line НДС 12% НСП 1% [18:18:51]line > о реализуемом товаре [18:18:51]line ИТОГО: 500.25 [18:18:51]line НСП 1% : 4.43 [18:18:51]line НДС 12% : 53.12 [18:18:51]line Наличными: 0.00 [18:18:51]line Безнал.: 500.25 [18:18:51]line Место: АЗС № 108 "Партнер Нефть" [18:18:51]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [18:18:51]line СНО: Общий режим [18:18:51]line Чек 210 14.04.2024 18:19 [18:18:51]line Смена: 116 ФФД: 1.0 [18:18:51]line ЗНМ: 0300000027 [18:18:51]line РНМ: 0000138879044617 [18:18:51]line Версия ККМ: 001 [18:18:51]line Платежная система: Бакай Банк [18:18:51]line ФМ: 0000000000963154 [18:18:51]line ФД: 29300 [18:18:51]line ФПД: 12571905062037 [18:18:52]line 1/tax-web-control/client/api/v1/ticket?date=20240414T181901&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29300&fm=12571905062037&tin=02508201610067®Number=0000138879044617&sum=50025 [18:18:52]OFD Sender: Processing packet 29300 [packets to send 8, broken 7] [18:18:52]ProducePacketName [18:18:52]name=ofd_packets/00029300 [18:18:52]OFD Sender: To server: pG, [18:18:52]CommunicateWithHost lk.salyk.kg:30040 [18:18:52]ConnectInit lk.salyk.kg [18:18:52]written 0, free lines is 4095 [18:18:52]Connected sock=10 [18:18:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 DF 37 07 01 9B 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 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 D2 00 00 00 F4 03 04 00 15 1E 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 74 72 00 00 35 04 06 00 0B 6F 1F EF 74 95 4D 68 18 DE 85 A7 1E F3 [18:18:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 08 61 47 00 CF 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 39 36 33 31 35 34 10 04 04 00 74 72 00 00 F4 03 04 00 B8 C8 1B 66 B6 04 01 00 00 34 04 D3 E8 85 32 83 9F [18:18:52]CommunicateWithHost err = 0 [18:18:52]CheckOFDResponse [18:18:52]1017 (14) - 77093643461234 [18:18:52]1041 (16) - 0000000000963154 [18:18:52]1040 (4) - 29300 [18:18:52]1012 (4) - 14.04.2024 12:14 [18:18:52]1206 (1) - 0 [18:18:52]OFD Sender: Remove packet 29300 [18:18:52]ProducePacketName [18:18:52]name=ofd_packets/00029300 [18:18:52]NVStorageDeleteData [18:18:52]Write to MH i2c: 01 00 00 09 AF B8 [18:18:52]Write i2c OK [18:18:52]MH_I2C_Read... [18:18:52]Read from MH i2c: 01 [18:18:52]MH_I2C_Read... [18:18:52]Read from MH i2c: 01 07 00 [18:18:52]MH_I2C_Read... [18:18:52]Read from MH i2c: 01 07 00 09 AF 00 00 00 00 00 E4 0C AF [18:18:52]RasterBufferAndPrint [18:18:52]line [18:18:52]line [18:18:52]line [18:18:52]line [18:18:52]line [18:18:52]written 0, free lines is 3305 [18:18:52]MH_Cut [18:18:52]Write to MH i2c: D1 01 00 10 AF 01 91 [18:18:52]Write i2c OK [18:18:52]MH_I2C_Read... [18:18:52]Read from MH i2c: D1 [18:18:52]MH_I2C_Read... [18:18:52]Read from MH i2c: D1 01 00 [18:18:52]MH_I2C_Read... [18:18:52]Read from MH i2c: D1 01 00 10 AF 00 90 [18:18:52]Write to MH i2c: 01 00 00 11 AF C0 [18:18:52]Write i2c OK [18:18:52]MH_I2C_Read... [18:18:52]OFD Sender: No OFD packet to send [18:18:53]*** Cut start [18:18:53]*** Partial cut [18:18:53]*** CUTSNS_PIN = 1 [18:18:53]*** CUTSNS_PIN = 0 [18:18:53]*** Brake cut motor [18:18:54]Read from MH i2c: 01 [18:18:54]MH_I2C_Read... [18:18:54]*** Stop cut motor [18:18:54]*** Cut end [18:18:54]Read from MH i2c: 01 07 00 [18:18:54]MH_I2C_Read... [18:18:54]Read from MH i2c: 01 07 00 11 AF 00 00 00 00 00 FF 0F D5 [18:18:54]process_action close_receipt done [18:18:54]requested_data is exist [18:18:54]produce_requested_data [18:18:54]requested_item fm.sn is exist - process it [18:18:54]wFMCommunicate request_size=4 [18:18:54]MH_SAM_APDU [18:18:54]CAPDU: 80 11 00 00 [18:18:54]Write to MH i2c: E2 08 00 12 AF 80 11 00 00 00 00 00 00 3B [18:18:54]Write i2c OK [18:18:54]MH_I2C_Read... [18:18:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:18:54]Read from MH i2c: E2 [18:18:54]MH_I2C_Read... [18:18:54]Read from MH i2c: E2 17 00 [18:18:54]MH_I2C_Read... [18:18:54]Read from MH i2c: E2 17 00 12 AF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 8A [18:18:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:18:54]wFMCommunicate OK [18:18:54]requested_item fd.num is exist - process it [18:18:54]SAM_PROTO_GetFieldsCounters [18:18:54]wFMCommunicate request_size=4 [18:18:54]MH_SAM_APDU [18:18:54]CAPDU: 80 13 00 00 [18:18:54]Write to MH i2c: E2 08 00 13 AF 80 13 00 00 00 00 00 00 3E [18:18:54]Write i2c OK [18:18:54]MH_I2C_Read... [18:18:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:18:54]Read from MH i2c: E2 [18:18:54]MH_I2C_Read... [18:18:54]Read from MH i2c: E2 62 00 [18:18:54]MH_I2C_Read... [18:18:54]Read from MH i2c: E2 62 00 13 AF 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 74 72 00 00 0E 04 04 00 74 00 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 4C [18:18:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 74 72 00 00 0E 04 04 00 74 00 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 [18:18:54]wFMCommunicate OK [18:18:54]SAM_PROTO_GetFieldsCounters done [18:18:54]requested_item shift.num is exist - process it [18:18:54]requested_item shift.opened is exist - process it [18:18:54]req_shift_opened [18:18:54]FM_GetShiftState [18:18:54]SAM_PROTO_GetShiftState [18:18:54]wFMCommunicate request_size=4 [18:18:54]MH_SAM_APDU [18:18:54]CAPDU: 80 13 01 00 [18:18:54]Write to MH i2c: E2 08 00 14 AF 80 13 01 00 00 00 00 00 40 [18:18:54]Write i2c OK [18:18:54]MH_I2C_Read... [18:18:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:18:54]Read from MH i2c: E2 [18:18:54]MH_I2C_Read... [18:18:54]Read from MH i2c: E2 0E 00 [18:18:54]MH_I2C_Read... [18:18:54]Read from MH i2c: E2 0E 00 14 AF 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 EC [18:18:54]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [18:18:54]wFMCommunicate OK [18:18:54]SAM_PROTO_GetShiftState done [18:18:54]FM_GetShiftState done [18:18:54]req_shift_opened done [18:18:54]requested_item shift.open_date is exist - process it [18:18:54]req_shift_open_date [18:18:54]req_shift_open_date done [18:18:54]produce_requested_data done [18:18:54]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29300,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [18:18:54]process_action_free close_receipt [18:18:54]json_value_free [18:18:54]json_value_free done [18:18:54]process_json_proto returns [18:18:54]Send response to host [18:18:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29300,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [18:18:54]free response buf [18:18:54]execute_script done [18:18:54]execute_script returns [18:18:54]free content buf [18:18:54]Sock 9.Close socket [18:18:54]Sock 9.Thread stoped [18:18:57]OFD Sender: No OFD packet to send [18:19:02]OFD Sender: No OFD packet to send [18:19:07]OFD Sender: No OFD packet to send [18:19:12]OFD Sender: No OFD packet to send [18:19:17]OFD Sender: No OFD packet to send [18:19:22]OFD Sender: No OFD packet to send [18:19:27]OFD Sender: No OFD packet to send [18:19:32]OFD Sender: No OFD packet to send [18:19:37]OFD Sender: No OFD packet to send [18:19:42]OFD Sender: No OFD packet to send [18:19:47]OFD Sender: No OFD packet to send [18:19:52]OFD Sender: No OFD packet to send [18:19:57]OFD Sender: No OFD packet to send [18:20:02]OFD Sender: No OFD packet to send [18:20:08]OFD Sender: No OFD packet to send [18:20:13]OFD Sender: No OFD packet to send [18:20:18]OFD Sender: No OFD packet to send [18:20:23]OFD Sender: No OFD packet to send [18:20:28]OFD Sender: No OFD packet to send [18:20:33]OFD Sender: No OFD packet to send [18:20:38]OFD Sender: No OFD packet to send [18:20:43]OFD Sender: No OFD packet to send [18:20:48]OFD Sender: No OFD packet to send [18:20:53]OFD Sender: No OFD packet to send [18:20:58]OFD Sender: No OFD packet to send [18:21:03]OFD Sender: No OFD packet to send [18:21:08]OFD Sender: No OFD packet to send [18:21:13]OFD Sender: No OFD packet to send [18:21:18]OFD Sender: No OFD packet to send [18:21:23]OFD Sender: No OFD packet to send [18:21:28]OFD Sender: No OFD packet to send [18:21:33]OFD Sender: No OFD packet to send [18:21:38]OFD Sender: No OFD packet to send [18:21:43]OFD Sender: No OFD packet to send [18:21:48]OFD Sender: No OFD packet to send [18:21:53]OFD Sender: No OFD packet to send [18:21:58]OFD Sender: No OFD packet to send [18:22:03]OFD Sender: No OFD packet to send [18:22:08]OFD Sender: No OFD packet to send [18:22:13]OFD Sender: No OFD packet to send [18:22:18]OFD Sender: No OFD packet to send [18:22:23]OFD Sender: No OFD packet to send [18:22:28]OFD Sender: No OFD packet to send [18:22:33]OFD Sender: No OFD packet to send [18:22:38]OFD Sender: No OFD packet to send [18:22:43]OFD Sender: No OFD packet to send [18:22:48]OFD Sender: No OFD packet to send [18:22:53]OFD Sender: No OFD packet to send [18:22:58]OFD Sender: No OFD packet to send [18:23:03]OFD Sender: No OFD packet to send [18:23:08]OFD Sender: No OFD packet to send [18:23:13]OFD Sender: No OFD packet to send [18:23:18]OFD Sender: No OFD packet to send [18:23:23]OFD Sender: No OFD packet to send [18:23:28]OFD Sender: No OFD packet to send [18:23:33]OFD Sender: No OFD packet to send [18:23:34]accept exits with 7 [18:23:34]New connection [18:23:34]New thread 3066785124 created [18:23:34]Thread 3066928484 joined [18:23:34]Waiting for new connection... [18:23:34] Sock 7.Parse request [18:23:34]Sock 7.Check first char [18:23:34]Sock 7.First char is OK [18:23:34]request: POST /json_proto HTTP/1.0 [18:23:34]Method: POST [18:23:34]URL: /json_proto [18:23:34]Method is POST - this is cgi request [18:23:34]url: /json_proto [18:23:34]query_string will be loaded in cgi processing [18:23:34]execute_cgi json_proto POST (null) [18:23:34]execute_cgi path=json_proto method=POST [18:23:34]POST find Content-Length [18:23:34]Host: 172.17.33.3:8080 [18:23:34]Content-Length: 675 [18:23:34]Content-Type: application/json [18:23:34] [18:23:34]POST finish read [18:23:34]Found Content-Length = 675 [18:23:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347690", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 10.020, "sum" : 725.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 725.00, "total" : 725.00, "payments": [ { "type": 0, "sum" : 725.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:23:34]execute_script... [18:23:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347690", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 10.020, "sum" : 725.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 725.00, "total" : 725.00, "payments": [ { "type": 0, "sum" : 725.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:23:34]POST & json_proto [18:23:34]process_json_proto [18:23:34]json parsed OK: [18:23:34]protocol is kg_v1.0 [18:23:34]action value=close_receipt [18:23:34]process_action close_receipt [18:23:34]cmd_close_receipt [18:23:34]MH_GetDate [18:23:34]Write to MH i2c: F0 00 00 15 AF B3 [18:23:34]Write i2c OK [18:23:34]MH_I2C_Read... [18:23:34]Read from MH i2c: F0 [18:23:34]MH_I2C_Read... [18:23:34]Read from MH i2c: F0 09 00 [18:23:34]MH_I2C_Read... [18:23:34]Read from MH i2c: F0 09 00 15 AF 00 31 1F 1C 66 23 5B 8F 65 00 [18:23:34]GetLastDocTimeStamp 1713118741 [18:23:34]current date 1713119025 [18:23:34]FM_GetShiftState [18:23:34]SAM_PROTO_GetShiftState [18:23:34]wFMCommunicate request_size=4 [18:23:34]MH_SAM_APDU [18:23:34]CAPDU: 80 13 01 00 [18:23:34]Write to MH i2c: E2 08 00 16 AF 80 13 01 00 00 00 00 00 42 [18:23:34]Write i2c OK [18:23:34]MH_I2C_Read... [18:23:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:23:34]Read from MH i2c: E2 [18:23:34]MH_I2C_Read... [18:23:34]Read from MH i2c: E2 0E 00 [18:23:34]MH_I2C_Read... [18:23:34]Read from MH i2c: E2 0E 00 16 AF 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 EE [18:23:34]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [18:23:34]wFMCommunicate OK [18:23:34]SAM_PROTO_GetShiftState done [18:23:34]FM_GetShiftState done [18:23:34]opened in 1713053951 [18:23:34]opened+sec_in_day 1713140351 [18:23:34]quantity*price = 72544 [18:23:34]sum+1 = 72546 [18:23:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 725.00 Внесено: 725.00 СДАЧА: 0.00 НСП 1% : 6.42 НДС 12% : 77.04 Наличными: 725.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 211 14.04.2024 18:23 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29301 ФПД: 25502621811313 1/tax-web-control/client/api/v1/ticket?date=20240414T182345&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29301&fm=25502621811313&tin=02508201610067®Number=0000138879044617&sum=72500 [18:23:35]StoreToDocumentArchive [18:23:35]shift 116 fd 29301 [18:23:35]save to /storage/0116/doc_00029301 [18:23:35]save last doc name /storage/0116/doc_00029301 to /storage/kkm_last_doc_name [18:23:35]save OK [18:23:35]Clear old archive folders... [18:23:35]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:23:35]tlvbuf is 011CE6D0 [18:23:35]SAM_PROTO_ClearQueue [18:23:35]wFMCommunicate request_size=4 [18:23:35]MH_SAM_APDU [18:23:35]CAPDU: 80 09 00 00 [18:23:35]Write to MH i2c: E2 08 00 23 AF 80 09 00 00 00 00 00 00 44 [18:23:35]Write i2c OK [18:23:35]MH_I2C_Read... [18:23:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:23:35]Read from MH i2c: E2 [18:23:35]MH_I2C_Read... [18:23:35]Read from MH i2c: E2 03 00 [18:23:35]MH_I2C_Read... [18:23:35]Read from MH i2c: E2 03 00 23 AF 00 90 00 46 [18:23:35]RAPDU: 90 00 [18:23:35]wFMCommunicate OK [18:23:35]SAM_PROTO_ClearQueue done [18:23:35]KKMCreateOFDPacket [18:23:35]OFDProtocolAddRootSTLVToBuf [18:23:35]FM_MakeSignedData [18:23:35]FM_MakeSignedData [18:23:35]SAM_PROTO_SignData [18:23:35]wFMCommunicate request_size=4 [18:23:35]MH_SAM_APDU [18:23:35]CAPDU: 80 0D 01 02 [18:23:35]Write to MH i2c: E2 08 00 24 AF 80 0D 01 02 00 00 00 00 4C [18:23:35]Write i2c OK [18:23:35]MH_I2C_Read... [18:23:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:23:35]Read from MH i2c: E2 [18:23:35]MH_I2C_Read... [18:23:35]Read from MH i2c: E2 03 00 [18:23:35]MH_I2C_Read... [18:23:35]Read from MH i2c: E2 03 00 24 AF 00 90 00 47 [18:23:35]RAPDU: 90 00 [18:23:35]wFMCommunicate OK [18:23:35]wFMCommunicate request_size=255 [18:23:35]MH_SAM_APDU [18:23: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 24 27 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 61 1B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 1B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 1E 00 00 00 00 07 04 06 00 34 1B 01 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 31 1F 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 75 72 00 00 35 04 06 00 17 31 CA B6 [18:23:35]Write to MH i2c: E2 02 01 25 AF 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 24 27 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 61 1B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 1B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 1E 00 00 00 00 07 04 06 00 34 1B 01 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 31 1F 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 75 72 00 00 35 04 06 00 17 31 CA B6 00 00 14 [18:23:35]Write i2c OK [18:23:35]MH_I2C_Read... [18:23:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:23:35]Read from MH i2c: E2 [18:23:35]MH_I2C_Read... [18:23:35]Read from MH i2c: E2 03 00 [18:23:35]MH_I2C_Read... [18:23:35]Read from MH i2c: E2 03 00 25 AF 00 90 00 48 [18:23:35]RAPDU: 90 00 [18:23:35]wFMCommunicate OK [18:23:35]wFMCommunicate request_size=7 [18:23:35]MH_SAM_APDU [18:23:35]CAPDU: 80 0D 02 02 02 C2 71 [18:23:35]Write to MH i2c: E2 0A 00 26 AF 80 0D 02 02 02 00 C2 71 00 00 86 [18:23:35]Write i2c OK [18:23:35]MH_I2C_Read... [18:23:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:23:35]Read from MH i2c: E2 [18:23:35]MH_I2C_Read... [18:23:35]Read from MH i2c: E2 03 00 [18:23:35]MH_I2C_Read... [18:23:35]Read from MH i2c: E2 03 00 26 AF 00 90 00 49 [18:23:35]RAPDU: 90 00 [18:23:35]wFMCommunicate OK [18:23:35]wFMCommunicate request_size=4 [18:23:35]MH_SAM_APDU [18:23:35]CAPDU: 80 0D 03 02 [18:23:35]Write to MH i2c: E2 08 00 27 AF 80 0D 03 02 00 00 00 00 51 [18:23:35]Write i2c OK [18:23:35]MH_I2C_Read... [18:23:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:23:35]Read from MH i2c: E2 [18:23:35]MH_I2C_Read... [18:23:35]Read from MH i2c: E2 0B 00 [18:23:35]MH_I2C_Read... [18:23:35]Read from MH i2c: E2 0B 00 27 AF 00 66 8F BA A0 45 A8 E8 2A 90 00 A0 [18:23:35]RAPDU: 66 8F BA A0 45 A8 E8 2A 90 00 [18:23:35]wFMCommunicate OK [18:23:35]SAM_PROTO_SignData done [18:23:35]FM_MakeSignedData done [18:23:35]CreateOFDProtocolMessage [18:23:35]wFMCommunicate request_size=4 [18:23:35]MH_SAM_APDU [18:23:35]CAPDU: 80 11 00 00 [18:23:35]Write to MH i2c: E2 08 00 28 AF 80 11 00 00 00 00 00 00 51 [18:23:35]Write i2c OK [18:23:35]MH_I2C_Read... [18:23:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:23:35]Read from MH i2c: E2 [18:23:35]MH_I2C_Read... [18:23:35]Read from MH i2c: E2 17 00 [18:23:35]MH_I2C_Read... [18:23:35]Read from MH i2c: E2 17 00 28 AF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A0 [18:23:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:23:35]wFMCommunicate OK [18:23:35]CreateOFDProtocolMessage done [18:23:35]OFDSenderStorePacket 29301 [18:23:35]StoreOFDPacket docnum=29301 [18:23:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 45 8F 04 01 8D 70 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 24 27 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 61 1B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 1B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 1E 00 00 00 00 07 04 06 00 34 1B 01 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 31 1F 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 75 72 00 00 35 04 06 00 17 31 CA B6 C2 71 66 8F BA A0 45 A8 E8 2A [18:23:35]CheckFolder [18:23:35]dirname=/storage/ofd_packets [18:23:35]CheckFolder done [18:23:35]ProducePacketName [18:23:35]name=ofd_packets/00029301 [18:23:35]NVStorageSaveData ofd_packets/00029301 [18:23:35]File name is /storage/ofd_packets/00029301 [18:23:35]Write 298 bytes [18:23:35]NVStorageSaveData done [18:23:35]OFDSenderStorePacket done [18:23:35]KKMCreateOFDPacket done [18:23:35]NVStorageSaveData kkm_last_timestamp [18:23:35]File name is /storage/kkm_last_timestamp [18:23:35]Write 4 bytes [18:23:35]NVStorageSaveData done [18:23:35]ExternCall_PrintAddStr [18:23:35]wPrintStart [18:23:35]Write to MH i2c: 01 00 00 29 AF D8 [18:23:35]Write i2c OK [18:23:35]MH_I2C_Read... [18:23:35]Read from MH i2c: 01 [18:23:35]MH_I2C_Read... [18:23:35]Read from MH i2c: 01 07 00 [18:23:35]MH_I2C_Read... [18:23:35]Read from MH i2c: 01 07 00 29 AF 00 00 00 00 00 FF 0F ED [18:23:35]RasterBufferAndPrint [18:23:35]line Счет N : (1)347690 [18:23:35]line ИНН: 02508201610067 [18:23:35]line Контрольно-Кассовый Чек [18:23:35]line ПРОДАЖА [18:23:35]line ТРК (МРК, ГНК) : 21 [18:23:35]line Товар: 2710194210 [18:23:35]line ДТ-К-5 [18:23:35]line 10.020 * 72.40 [18:23:35]line = 725.45 [18:23:35]line НДС 12% НСП 1% [18:23:35]line > о реализуемом товаре [18:23:35]line ОКРУГЛЕНИЕ: -0.45 [18:23:35]line ИТОГО: 725.00 [18:23:35]line Внесено: 725.00 [18:23:35]line СДАЧА: 0.00 [18:23:35]line НСП 1% : 6.42 [18:23:35]line НДС 12% : 77.04 [18:23:35]line Наличными: 725.00 [18:23:35]line Безнал.: 0.00 [18:23:35]line Место: АЗС № 108 "Партнер Нефть" [18:23:35]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [18:23:35]line СНО: Общий режим [18:23:35]line Чек 211 14.04.2024 18:23 [18:23:35]line Смена: 116 ФФД: 1.0 [18:23:35]line ЗНМ: 0300000027 [18:23:35]line РНМ: 0000138879044617 [18:23:35]line Версия ККМ: 001 [18:23:35]line ФМ: 0000000000963154 [18:23:35]line ФД: 29301 [18:23:35]line ФПД: 25502621811313 [18:23:36]line 1/tax-web-control/client/api/v1/ticket?date=20240414T182345&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29301&fm=25502621811313&tin=02508201610067®Number=0000138879044617&sum=72500 [18:23:36]OFD Sender: Processing packet 29301 [packets to send 8, broken 7] [18:23:36]ProducePacketName [18:23:36]name=ofd_packets/00029301 [18:23:36]OFD Sender: To server: pG, [18:23:36]CommunicateWithHost lk.salyk.kg:30040 [18:23:36]ConnectInit lk.salyk.kg [18:23:36]written 0, free lines is 4095 [18:23:36]Connected sock=10 [18:23:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 45 8F 04 01 8D 70 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 24 27 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 61 1B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 1B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 1E 00 00 00 00 07 04 06 00 34 1B 01 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 31 1F 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 75 72 00 00 35 04 06 00 17 31 CA B6 C2 71 66 8F BA A0 45 A8 E8 2A [18:23:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 03 CA 47 00 9E 94 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 75 72 00 00 F4 03 04 00 D4 C9 1B 66 B6 04 01 00 00 A3 A2 39 FB DB B6 04 4C [18:23:36]CommunicateWithHost err = 0 [18:23:36]CheckOFDResponse [18:23:36]1017 (14) - 77093643461234 [18:23:36]1041 (16) - 0000000000963154 [18:23:36]1040 (4) - 29301 [18:23:36]1012 (4) - 14.04.2024 12:19 [18:23:36]1206 (1) - 0 [18:23:36]OFD Sender: Remove packet 29301 [18:23:36]ProducePacketName [18:23:36]name=ofd_packets/00029301 [18:23:36]NVStorageDeleteData [18:23:36]Write to MH i2c: 01 00 00 53 AF 02 [18:23:36]Write i2c OK [18:23:36]MH_I2C_Read... [18:23:36]Read from MH i2c: 01 [18:23:36]MH_I2C_Read... [18:23:36]Read from MH i2c: 01 07 00 [18:23:36]MH_I2C_Read... [18:23:36]Read from MH i2c: 01 07 00 53 AF 00 00 00 00 00 C8 0C DD [18:23:36]RasterBufferAndPrint [18:23:36]line [18:23:36]line [18:23:36]line [18:23:36]line [18:23:36]line [18:23:36]written 0, free lines is 3277 [18:23:36]MH_Cut [18:23:36]Write to MH i2c: D1 01 00 5A AF 01 DB [18:23:36]Write i2c OK [18:23:36]MH_I2C_Read... [18:23:36]Read from MH i2c: D1 [18:23:36]MH_I2C_Read... [18:23:36]Read from MH i2c: D1 01 00 [18:23:36]MH_I2C_Read... [18:23:36]Read from MH i2c: D1 01 00 5A AF 00 DA [18:23:36]Write to MH i2c: 01 00 00 5B AF 0A [18:23:36]Write i2c OK [18:23:36]MH_I2C_Read... [18:23:36]OFD Sender: No OFD packet to send [18:23:37]*** Cut start [18:23:37]*** Partial cut [18:23:37]*** CUTSNS_PIN = 1 [18:23:37]*** CUTSNS_PIN = 0 [18:23:37]*** Brake cut motor [18:23:37]Read from MH i2c: 01 [18:23:37]MH_I2C_Read... [18:23:37]*** Stop cut motor [18:23:37]*** Cut end [18:23:37]Read from MH i2c: 01 07 00 [18:23:37]MH_I2C_Read... [18:23:37]Read from MH i2c: 01 07 00 5B AF 00 00 00 00 00 FF 0F 1F [18:23:37]process_action close_receipt done [18:23:37]requested_data is exist [18:23:37]produce_requested_data [18:23:37]requested_item fm.sn is exist - process it [18:23:37]wFMCommunicate request_size=4 [18:23:37]MH_SAM_APDU [18:23:37]CAPDU: 80 11 00 00 [18:23:37]Write to MH i2c: E2 08 00 5C AF 80 11 00 00 00 00 00 00 85 [18:23:37]Write i2c OK [18:23:37]MH_I2C_Read... [18:23:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:23:37]Read from MH i2c: E2 [18:23:37]MH_I2C_Read... [18:23:37]Read from MH i2c: E2 17 00 [18:23:37]MH_I2C_Read... [18:23:37]Read from MH i2c: E2 17 00 5C AF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D4 [18:23:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:23:37]wFMCommunicate OK [18:23:37]requested_item fd.num is exist - process it [18:23:37]SAM_PROTO_GetFieldsCounters [18:23:37]wFMCommunicate request_size=4 [18:23:37]MH_SAM_APDU [18:23:37]CAPDU: 80 13 00 00 [18:23:37]Write to MH i2c: E2 08 00 5D AF 80 13 00 00 00 00 00 00 88 [18:23:37]Write i2c OK [18:23:37]MH_I2C_Read... [18:23:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:23:38]Read from MH i2c: E2 [18:23:38]MH_I2C_Read... [18:23:38]Read from MH i2c: E2 62 00 [18:23:38]MH_I2C_Read... [18:23:38]Read from MH i2c: E2 62 00 5D AF 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 75 72 00 00 0E 04 04 00 74 00 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 9A [18:23:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 75 72 00 00 0E 04 04 00 74 00 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 [18:23:38]wFMCommunicate OK [18:23:38]SAM_PROTO_GetFieldsCounters done [18:23:38]requested_item shift.num is exist - process it [18:23:38]requested_item shift.opened is exist - process it [18:23:38]req_shift_opened [18:23:38]FM_GetShiftState [18:23:38]SAM_PROTO_GetShiftState [18:23:38]wFMCommunicate request_size=4 [18:23:38]MH_SAM_APDU [18:23:38]CAPDU: 80 13 01 00 [18:23:38]Write to MH i2c: E2 08 00 5E AF 80 13 01 00 00 00 00 00 8A [18:23:38]Write i2c OK [18:23:38]MH_I2C_Read... [18:23:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:23:38]Read from MH i2c: E2 [18:23:38]MH_I2C_Read... [18:23:38]Read from MH i2c: E2 0E 00 [18:23:38]MH_I2C_Read... [18:23:38]Read from MH i2c: E2 0E 00 5E AF 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 36 [18:23:38]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [18:23:38]wFMCommunicate OK [18:23:38]SAM_PROTO_GetShiftState done [18:23:38]FM_GetShiftState done [18:23:38]req_shift_opened done [18:23:38]requested_item shift.open_date is exist - process it [18:23:38]req_shift_open_date [18:23:38]req_shift_open_date done [18:23:38]produce_requested_data done [18:23:38]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29301,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [18:23:38]process_action_free close_receipt [18:23:38]json_value_free [18:23:38]json_value_free done [18:23:38]process_json_proto returns [18:23:38]Send response to host [18:23:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29301,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [18:23:38]free response buf [18:23:38]execute_script done [18:23:38]execute_script returns [18:23:38]free content buf [18:23:38]Sock 7.Close socket [18:23:38]Sock 7.Thread stoped [18:23:41]OFD Sender: No OFD packet to send [18:23:46]OFD Sender: No OFD packet to send [18:23:51]OFD Sender: No OFD packet to send [18:23:56]OFD Sender: No OFD packet to send [18:24:01]OFD Sender: No OFD packet to send [18:24:06]OFD Sender: No OFD packet to send [18:24:11]OFD Sender: No OFD packet to send [18:24:16]OFD Sender: No OFD packet to send [18:24:21]OFD Sender: No OFD packet to send [18:24:26]OFD Sender: No OFD packet to send [18:24:31]OFD Sender: No OFD packet to send [18:24:36]OFD Sender: No OFD packet to send [18:24:41]OFD Sender: No OFD packet to send [18:24:46]OFD Sender: No OFD packet to send [18:24:51]OFD Sender: No OFD packet to send [18:24:56]OFD Sender: No OFD packet to send [18:25:01]OFD Sender: No OFD packet to send [18:25:06]OFD Sender: No OFD packet to send [18:25:11]OFD Sender: No OFD packet to send [18:25:16]OFD Sender: No OFD packet to send [18:25:21]OFD Sender: No OFD packet to send [18:25:26]OFD Sender: No OFD packet to send [18:25:31]OFD Sender: No OFD packet to send [18:25:33]accept exits with 9 [18:25:33]New connection [18:25:33]New thread 3066928484 created [18:25:33]Thread 3066785124 joined [18:25:33]Waiting for new connection... [18:25:33] Sock 9.Parse request [18:25:33]Sock 9.Check first char [18:25:33]Sock 9.First char is OK [18:25:33]request: POST /json_proto HTTP/1.0 [18:25:33]Method: POST [18:25:33]URL: /json_proto [18:25:33]Method is POST - this is cgi request [18:25:33]url: /json_proto [18:25:33]query_string will be loaded in cgi processing [18:25:33]execute_cgi json_proto POST (null) [18:25:33]execute_cgi path=json_proto method=POST [18:25:33]POST find Content-Length [18:25:33]Host: 172.17.33.3:8080 [18:25:33]Content-Length: 685 [18:25:33]Content-Type: application/json [18:25:33] [18:25:33]POST finish read [18:25:33]Found Content-Length = 685 [18:25:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347691", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 54.810, "sum" : 1803.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 1803.00, "payments": [ { "type": 0, "sum" : 1803.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:25:33]execute_script... [18:25: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)347691", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 54.810, "sum" : 1803.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 1803.00, "payments": [ { "type": 0, "sum" : 1803.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:25:33]POST & json_proto [18:25:33]process_json_proto [18:25:33]json parsed OK: [18:25:33]protocol is kg_v1.0 [18:25:33]action value=close_receipt [18:25:33]process_action close_receipt [18:25:33]cmd_close_receipt [18:25:33]MH_GetDate [18:25:33]Write to MH i2c: F0 00 00 5F AF FD [18:25:33]Write i2c OK [18:25:33]MH_I2C_Read... [18:25:33]Read from MH i2c: F0 [18:25:33]MH_I2C_Read... [18:25:33]Read from MH i2c: F0 09 00 [18:25:33]MH_I2C_Read... [18:25:33]Read from MH i2c: F0 09 00 5F AF 00 A8 1F 1C 66 23 5B 8F 65 C1 [18:25:33]GetLastDocTimeStamp 1713119025 [18:25:33]current date 1713119144 [18:25:33]FM_GetShiftState [18:25:33]SAM_PROTO_GetShiftState [18:25:33]wFMCommunicate request_size=4 [18:25:33]MH_SAM_APDU [18:25:33]CAPDU: 80 13 01 00 [18:25:33]Write to MH i2c: E2 08 00 60 AF 80 13 01 00 00 00 00 00 8C [18:25:33]Write i2c OK [18:25:33]MH_I2C_Read... [18:25:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:25:33]Read from MH i2c: E2 [18:25:33]MH_I2C_Read... [18:25:33]Read from MH i2c: E2 0E 00 [18:25:33]MH_I2C_Read... [18:25:33]Read from MH i2c: E2 0E 00 60 AF 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 38 [18:25:33]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [18:25:33]wFMCommunicate OK [18:25:33]SAM_PROTO_GetShiftState done [18:25:33]FM_GetShiftState done [18:25:33]opened in 1713053951 [18:25:33]opened+sec_in_day 1713140351 [18:25:33]quantity*price = 180324 [18:25:33]sum+1 = 180326 [18:25:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 1803.00 Внесено: 3000.00 СДАЧА: 1197.00 НСП 1% : 15.96 НДС 12% : 191.50 Наличными: 1803.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 212 14.04.2024 18:25 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29302 ФПД: 129445406769176 1/tax-web-control/client/api/v1/ticket?date=20240414T182544&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29302&fm=129445406769176&tin=02508201610067®Number=0000138879044617&sum=180300 [18:25:34]StoreToDocumentArchive [18:25:34]shift 116 fd 29302 [18:25:34]save to /storage/0116/doc_00029302 [18:25:34]save last doc name /storage/0116/doc_00029302 to /storage/kkm_last_doc_name [18:25:34]save OK [18:25:34]Clear old archive folders... [18:25:34]ProcessDocumentItem done err = 0, tmpTLVsize=250 [18:25:34]tlvbuf is 011DA4B0 [18:25:34]SAM_PROTO_ClearQueue [18:25:34]wFMCommunicate request_size=4 [18:25:34]MH_SAM_APDU [18:25:34]CAPDU: 80 09 00 00 [18:25:34]Write to MH i2c: E2 08 00 6D AF 80 09 00 00 00 00 00 00 8E [18:25:34]Write i2c OK [18:25:34]MH_I2C_Read... [18:25:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:25:34]Read from MH i2c: E2 [18:25:34]MH_I2C_Read... [18:25:34]Read from MH i2c: E2 03 00 [18:25:34]MH_I2C_Read... [18:25:34]Read from MH i2c: E2 03 00 6D AF 00 90 00 90 [18:25:34]RAPDU: 90 00 [18:25:34]wFMCommunicate OK [18:25:34]SAM_PROTO_ClearQueue done [18:25:34]KKMCreateOFDPacket [18:25:34]OFDProtocolAddRootSTLVToBuf [18:25:34]FM_MakeSignedData [18:25:34]FM_MakeSignedData [18:25:34]SAM_PROTO_SignData [18:25:34]wFMCommunicate request_size=4 [18:25:34]MH_SAM_APDU [18:25:34]CAPDU: 80 0D 01 02 [18:25:34]Write to MH i2c: E2 08 00 6E AF 80 0D 01 02 00 00 00 00 96 [18:25:34]Write i2c OK [18:25:34]MH_I2C_Read... [18:25:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:25:34]Read from MH i2c: E2 [18:25:34]MH_I2C_Read... [18:25:34]Read from MH i2c: E2 03 00 [18:25:34]MH_I2C_Read... [18:25:34]Read from MH i2c: E2 03 00 6E AF 00 90 00 91 [18:25:34]RAPDU: 90 00 [18:25:34]wFMCommunicate OK [18:25:34]wFMCommunicate request_size=255 [18:25:34]MH_SAM_APDU [18:25:34]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 1A D6 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 65 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 CE 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 D4 00 00 00 F4 03 04 00 A8 1F 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 76 72 00 00 35 04 06 00 75 BA [18:25:34]Write to MH i2c: E2 02 01 6F AF 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 1A D6 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 65 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 CE 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 D4 00 00 00 F4 03 04 00 A8 1F 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 76 72 00 00 35 04 06 00 75 BA 00 00 88 [18:25:34]Write i2c OK [18:25:34]MH_I2C_Read... [18:25:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:25:35]Read from MH i2c: E2 [18:25:35]MH_I2C_Read... [18:25:35]Read from MH i2c: E2 03 00 [18:25:35]MH_I2C_Read... [18:25:35]Read from MH i2c: E2 03 00 6F AF 00 90 00 92 [18:25:35]RAPDU: 90 00 [18:25:35]wFMCommunicate OK [18:25:35]wFMCommunicate request_size=9 [18:25:35]MH_SAM_APDU [18:25:35]CAPDU: 80 0D 02 02 04 DB 7D 00 18 [18:25:35]Write to MH i2c: E2 0C 00 70 AF 80 0D 02 02 04 00 DB 7D 00 18 00 00 11 [18:25:35]Write i2c OK [18:25:35]MH_I2C_Read... [18:25:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:25:35]Read from MH i2c: E2 [18:25:35]MH_I2C_Read... [18:25:35]Read from MH i2c: E2 03 00 [18:25:35]MH_I2C_Read... [18:25:35]Read from MH i2c: E2 03 00 70 AF 00 90 00 93 [18:25:35]RAPDU: 90 00 [18:25:35]wFMCommunicate OK [18:25:35]wFMCommunicate request_size=4 [18:25:35]MH_SAM_APDU [18:25:35]CAPDU: 80 0D 03 02 [18:25:35]Write to MH i2c: E2 08 00 71 AF 80 0D 03 02 00 00 00 00 9B [18:25:35]Write i2c OK [18:25:35]MH_I2C_Read... [18:25:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:25:35]Read from MH i2c: E2 [18:25:35]MH_I2C_Read... [18:25:35]Read from MH i2c: E2 0B 00 [18:25:35]MH_I2C_Read... [18:25:35]Read from MH i2c: E2 0B 00 71 AF 00 09 52 D6 B8 36 37 9F 80 90 00 11 [18:25:35]RAPDU: 09 52 D6 B8 36 37 9F 80 90 00 [18:25:35]wFMCommunicate OK [18:25:35]SAM_PROTO_SignData done [18:25:35]FM_MakeSignedData done [18:25:35]CreateOFDProtocolMessage [18:25:35]wFMCommunicate request_size=4 [18:25:35]MH_SAM_APDU [18:25:35]CAPDU: 80 11 00 00 [18:25:35]Write to MH i2c: E2 08 00 72 AF 80 11 00 00 00 00 00 00 9B [18:25:35]Write i2c OK [18:25:35]MH_I2C_Read... [18:25:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:25:35]Read from MH i2c: E2 [18:25:35]MH_I2C_Read... [18:25:35]Read from MH i2c: E2 17 00 [18:25:35]MH_I2C_Read... [18:25:35]Read from MH i2c: E2 17 00 72 AF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 EA [18:25:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:25:35]wFMCommunicate OK [18:25:35]CreateOFDProtocolMessage done [18:25:35]OFDSenderStorePacket 29302 [18:25:35]StoreOFDPacket docnum=29302 [18:25:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 59 8F 06 01 D5 3F 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 1A D6 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 65 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 CE 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 D4 00 00 00 F4 03 04 00 A8 1F 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 76 72 00 00 35 04 06 00 75 BA DB 7D 00 18 09 52 D6 B8 36 37 9F 80 [18:25:35]CheckFolder [18:25:35]dirname=/storage/ofd_packets [18:25:35]CheckFolder done [18:25:35]ProducePacketName [18:25:35]name=ofd_packets/00029302 [18:25:35]NVStorageSaveData ofd_packets/00029302 [18:25:35]File name is /storage/ofd_packets/00029302 [18:25:35]Write 300 bytes [18:25:35]NVStorageSaveData done [18:25:35]OFDSenderStorePacket done [18:25:35]KKMCreateOFDPacket done [18:25:35]NVStorageSaveData kkm_last_timestamp [18:25:35]File name is /storage/kkm_last_timestamp [18:25:35]Write 4 bytes [18:25:35]NVStorageSaveData done [18:25:35]ExternCall_PrintAddStr [18:25:35]wPrintStart [18:25:35]Write to MH i2c: 01 00 00 73 AF 22 [18:25:35]Write i2c OK [18:25:35]MH_I2C_Read... [18:25:35]Read from MH i2c: 01 [18:25:35]MH_I2C_Read... [18:25:35]Read from MH i2c: 01 07 00 [18:25:35]MH_I2C_Read... [18:25:35]Read from MH i2c: 01 07 00 73 AF 00 00 00 00 00 FF 0F 37 [18:25:35]RasterBufferAndPrint [18:25:35]line Счет N : (1)347691 [18:25:35]line ИНН: 02508201610067 [18:25:35]line Контрольно-Кассовый Чек [18:25:35]line ПРОДАЖА [18:25:35]line ТРК (МРК, ГНК) : 71 [18:25:35]line Товар: 2711129700 [18:25:35]line ГАЗ-К-5 [18:25:35]line 54.810 * 32.90 [18:25:35]line = 1803.25 [18:25:35]line НДС 12% НСП 1% [18:25:35]line > о реализуемом товаре [18:25:35]line ОКРУГЛЕНИЕ: -0.25 [18:25:35]line ИТОГО: 1803.00 [18:25:35]line Внесено: 3000.00 [18:25:35]line СДАЧА: 1197.00 [18:25:35]line НСП 1% : 15.96 [18:25:35]line НДС 12% : 191.50 [18:25:35]line Наличными: 1803.00 [18:25:35]line Безнал.: 0.00 [18:25:35]line Место: АЗС № 108 "Партнер Нефть" [18:25:35]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [18:25:35]line СНО: Общий режим [18:25:35]line Чек 212 14.04.2024 18:25 [18:25:35]line Смена: 116 ФФД: 1.0 [18:25:35]line ЗНМ: 0300000027 [18:25:35]line РНМ: 0000138879044617 [18:25:35]line Версия ККМ: 001 [18:25:35]line ФМ: 0000000000963154 [18:25:35]line ФД: 29302 [18:25:35]line ФПД: 129445406769176 [18:25:35]line 1/tax-web-control/client/api/v1/ticket?date=20240414T182544&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29302&fm=129445406769176&tin=02508201610067®Number=0000138879044617&sum=180300 [18:25:35]OFD Sender: Processing packet 29302 [packets to send 8, broken 7] [18:25:35]ProducePacketName [18:25:35]name=ofd_packets/00029302 [18:25:35]OFD Sender: To server: pG, [18:25:35]CommunicateWithHost lk.salyk.kg:30040 [18:25:35]ConnectInit lk.salyk.kg [18:25:35]written 0, free lines is 4095 [18:25:35]Connected sock=10 [18:25:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 59 8F 06 01 D5 3F 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 1A D6 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 65 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 CE 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 D4 00 00 00 F4 03 04 00 A8 1F 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 76 72 00 00 35 04 06 00 75 BA DB 7D 00 18 09 52 D6 B8 36 37 9F 80 [18:25:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 52 15 47 00 46 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 39 36 33 31 35 34 10 04 04 00 76 72 00 00 F4 03 04 00 4C CA 1B 66 B6 04 01 00 00 7B 9C F5 45 9A 48 75 FB [18:25:35]CommunicateWithHost err = 0 [18:25:35]CheckOFDResponse [18:25:35]1017 (14) - 77093643461234 [18:25:35]1041 (16) - 0000000000963154 [18:25:35]1040 (4) - 29302 [18:25:35]1012 (4) - 14.04.2024 12:21 [18:25:35]1206 (1) - 0 [18:25:35]OFD Sender: Remove packet 29302 [18:25:35]ProducePacketName [18:25:35]name=ofd_packets/00029302 [18:25:35]NVStorageDeleteData [18:25:35]Write to MH i2c: 01 00 00 9D AF 4C [18:25:35]Write i2c OK [18:25:35]MH_I2C_Read... [18:25:35]Read from MH i2c: 01 [18:25:35]MH_I2C_Read... [18:25:35]Read from MH i2c: 01 07 00 [18:25:35]MH_I2C_Read... [18:25:35]Read from MH i2c: 01 07 00 9D AF 00 00 00 00 00 D2 0C 31 [18:25:35]RasterBufferAndPrint [18:25:35]line [18:25:35]line [18:25:35]line [18:25:35]line [18:25:35]line [18:25:35]written 0, free lines is 3288 [18:25:35]MH_Cut [18:25:35]Write to MH i2c: D1 01 00 A4 AF 01 25 [18:25:36]Write i2c OK [18:25:36]MH_I2C_Read... [18:25:36]Read from MH i2c: D1 [18:25:36]MH_I2C_Read... [18:25:36]Read from MH i2c: D1 01 00 [18:25:36]MH_I2C_Read... [18:25:36]Read from MH i2c: D1 01 00 A4 AF 00 24 [18:25:36]Write to MH i2c: 01 00 00 A5 AF 54 [18:25:36]Write i2c OK [18:25:36]MH_I2C_Read... [18:25:36]OFD Sender: No OFD packet to send [18:25:36]*** Cut start [18:25:36]*** Partial cut [18:25:36]*** CUTSNS_PIN = 1 [18:25:36]*** CUTSNS_PIN = 0 [18:25:37]*** Brake cut motor [18:25:37]Read from MH i2c: 01 [18:25:37]MH_I2C_Read... [18:25:37]*** Stop cut motor [18:25:37]*** Cut end [18:25:37]Read from MH i2c: 01 07 00 [18:25:37]MH_I2C_Read... [18:25:37]Read from MH i2c: 01 07 00 A5 AF 00 00 00 00 00 FF 0F 69 [18:25:37]process_action close_receipt done [18:25:37]requested_data is exist [18:25:37]produce_requested_data [18:25:37]requested_item fm.sn is exist - process it [18:25:37]wFMCommunicate request_size=4 [18:25:37]MH_SAM_APDU [18:25:37]CAPDU: 80 11 00 00 [18:25:37]Write to MH i2c: E2 08 00 A6 AF 80 11 00 00 00 00 00 00 CF [18:25:37]Write i2c OK [18:25:37]MH_I2C_Read... [18:25:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:25:37]Read from MH i2c: E2 [18:25:37]MH_I2C_Read... [18:25:37]Read from MH i2c: E2 17 00 [18:25:37]MH_I2C_Read... [18:25:37]Read from MH i2c: E2 17 00 A6 AF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 1E [18:25:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:25:37]wFMCommunicate OK [18:25:37]requested_item fd.num is exist - process it [18:25:37]SAM_PROTO_GetFieldsCounters [18:25:37]wFMCommunicate request_size=4 [18:25:37]MH_SAM_APDU [18:25:37]CAPDU: 80 13 00 00 [18:25:37]Write to MH i2c: E2 08 00 A7 AF 80 13 00 00 00 00 00 00 D2 [18:25:37]Write i2c OK [18:25:37]MH_I2C_Read... [18:25:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:25:37]Read from MH i2c: E2 [18:25:37]MH_I2C_Read... [18:25:37]Read from MH i2c: E2 62 00 [18:25:37]MH_I2C_Read... [18:25:37]Read from MH i2c: E2 62 00 A7 AF 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 76 72 00 00 0E 04 04 00 74 00 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 E8 [18:25:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 76 72 00 00 0E 04 04 00 74 00 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 [18:25:37]wFMCommunicate OK [18:25:37]SAM_PROTO_GetFieldsCounters done [18:25:37]requested_item shift.num is exist - process it [18:25:37]requested_item shift.opened is exist - process it [18:25:37]req_shift_opened [18:25:37]FM_GetShiftState [18:25:37]SAM_PROTO_GetShiftState [18:25:37]wFMCommunicate request_size=4 [18:25:37]MH_SAM_APDU [18:25:37]CAPDU: 80 13 01 00 [18:25:37]Write to MH i2c: E2 08 00 A8 AF 80 13 01 00 00 00 00 00 D4 [18:25:37]Write i2c OK [18:25:37]MH_I2C_Read... [18:25:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:25:37]Read from MH i2c: E2 [18:25:37]MH_I2C_Read... [18:25:37]Read from MH i2c: E2 0E 00 [18:25:37]MH_I2C_Read... [18:25:37]Read from MH i2c: E2 0E 00 A8 AF 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 80 [18:25:37]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [18:25:37]wFMCommunicate OK [18:25:37]SAM_PROTO_GetShiftState done [18:25:37]FM_GetShiftState done [18:25:37]req_shift_opened done [18:25:37]requested_item shift.open_date is exist - process it [18:25:37]req_shift_open_date [18:25:37]req_shift_open_date done [18:25:37]produce_requested_data done [18:25:37]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29302,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [18:25:37]process_action_free close_receipt [18:25:37]json_value_free [18:25:37]json_value_free done [18:25:37]process_json_proto returns [18:25:37]Send response to host [18:25:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29302,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [18:25:37]free response buf [18:25:37]execute_script done [18:25:37]execute_script returns [18:25:37]free content buf [18:25:37]Sock 9.Close socket [18:25:37]Sock 9.Thread stoped [18:25:41]OFD Sender: No OFD packet to send [18:25:46]OFD Sender: No OFD packet to send [18:25:51]OFD Sender: No OFD packet to send [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:46]OFD Sender: No OFD packet to send [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:46]OFD Sender: No OFD packet to send [18:27:51]OFD Sender: No OFD packet to send [18:27:56]OFD Sender: No OFD packet to send [18:28:01]OFD Sender: No OFD packet to send [18:28:06]OFD Sender: No OFD packet to send [18:28:11]OFD Sender: No OFD packet to send [18:28:16]OFD Sender: No OFD packet to send [18:28:21]OFD Sender: No OFD packet to send [18:28:26]OFD Sender: No OFD packet to send [18:28:31]OFD Sender: No OFD packet to send [18:28:36]OFD Sender: No OFD packet to send [18:28:41]OFD Sender: No OFD packet to send [18:28:46]OFD Sender: No OFD packet to send [18:28:51]OFD Sender: No OFD packet to send [18:28:56]OFD Sender: No OFD packet to send [18:29:01]OFD Sender: No OFD packet to send [18:29:06]OFD Sender: No OFD packet to send [18:29:11]OFD Sender: No OFD packet to send [18:29:16]OFD Sender: No OFD packet to send [18:29:21]OFD Sender: No OFD packet to send [18:29:26]OFD Sender: No OFD packet to send [18:29:31]OFD Sender: No OFD packet to send [18:29:36]OFD Sender: No OFD packet to send [18:29:41]OFD Sender: No OFD packet to send [18:29:46]OFD Sender: No OFD packet to send [18:29:51]OFD Sender: No OFD packet to send [18:29:56]OFD Sender: No OFD packet to send [18:30:01]OFD Sender: No OFD packet to send [18:30:06]OFD Sender: No OFD packet to send [18:30:11]OFD Sender: No OFD packet to send [18:30:16]OFD Sender: No OFD packet to send [18:30:21]OFD Sender: No OFD packet to send [18:30:26]OFD Sender: No OFD packet to send [18:30:31]OFD Sender: No OFD packet to send [18:30:36]OFD Sender: No OFD packet to send [18:30:41]OFD Sender: No OFD packet to send [18:30:46]OFD Sender: No OFD packet to send [18:30:51]OFD Sender: No OFD packet to send [18:30:56]OFD Sender: No OFD packet to send [18:31:01]OFD Sender: No OFD packet to send [18:31:06]OFD Sender: No OFD packet to send [18:31:11]OFD Sender: No OFD packet to send [18:31:16]OFD Sender: No OFD packet to send [18:31:21]OFD Sender: No OFD packet to send [18:31:26]OFD Sender: No OFD packet to send [18:31:31]OFD Sender: No OFD packet to send [18:31:36]OFD Sender: No OFD packet to send [18:31:41]OFD Sender: No OFD packet to send [18:31:46]OFD Sender: No OFD packet to send [18:31:51]OFD Sender: No OFD packet to send [18:31:56]OFD Sender: No OFD packet to send [18:32:01]OFD Sender: No OFD packet to send [18:32:06]OFD Sender: No OFD packet to send [18:32:11]OFD Sender: No OFD packet to send [18:32:16]OFD Sender: No OFD packet to send [18:32:21]OFD Sender: No OFD packet to send [18:32:26]OFD Sender: No OFD packet to send [18:32:31]OFD Sender: No OFD packet to send [18:32:36]OFD Sender: No OFD packet to send [18:32:41]OFD Sender: No OFD packet to send [18:32:46]OFD Sender: No OFD packet to send [18:32:51]OFD Sender: No OFD packet to send [18:32:56]OFD Sender: No OFD packet to send [18:33:01]OFD Sender: No OFD packet to send [18:33:06]OFD Sender: No OFD packet to send [18:33:11]OFD Sender: No OFD packet to send [18:33:16]OFD Sender: No OFD packet to send [18:33:21]OFD Sender: No OFD packet to send [18:33:26]OFD Sender: No OFD packet to send [18:33:31]OFD Sender: No OFD packet to send [18:33:36]OFD Sender: No OFD packet to send [18:33:41]OFD Sender: No OFD packet to send [18:33:46]OFD Sender: No OFD packet to send [18:33:51]OFD Sender: No OFD packet to send [18:33:56]accept exits with 7 [18:33:56]New connection [18:33:56]New thread 3066785124 created [18:33:56]Thread 3066928484 joined [18:33:56]Waiting for new connection... [18:33:56] Sock 7.Parse request [18:33:56]Sock 7.Check first char [18:33:56]Sock 7.First char is OK [18:33:56]request: POST /json_proto HTTP/1.0 [18:33:56]Method: POST [18:33:56]URL: /json_proto [18:33:56]Method is POST - this is cgi request [18:33:56]url: /json_proto [18:33:56]query_string will be loaded in cgi processing [18:33:56]execute_cgi json_proto POST (null) [18:33:56]execute_cgi path=json_proto method=POST [18:33:56]POST find Content-Length [18:33:56]Host: 172.17.33.3:8080 [18:33:56]Content-Length: 817 [18:33:56]Content-Type: application/json [18:33:56] [18:33:56]POST finish read [18:33:56]Found Content-Length = 817 [18:33:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347692", "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" ] } } [18:33:56]execute_script... [18:33: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)347692", "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" ] } } [18:33:56]POST & json_proto [18:33:56]process_json_proto [18:33:56]json parsed OK: [18:33:56]protocol is kg_v1.0 [18:33:56]action value=close_receipt [18:33:56]process_action close_receipt [18:33:56]cmd_close_receipt [18:33:56]MH_GetDate [18:33:56]Write to MH i2c: F0 00 00 A9 AF 47 [18:33:56]Write i2c OK [18:33:56]MH_I2C_Read... [18:33:56]Read from MH i2c: F0 [18:33:56]MH_I2C_Read... [18:33:56]Read from MH i2c: F0 09 00 [18:33:56]MH_I2C_Read... [18:33:56]Read from MH i2c: F0 09 00 A9 AF 00 9F 21 1C 66 23 5B 8F 65 04 [18:33:56]GetLastDocTimeStamp 1713119144 [18:33:56]current date 1713119647 [18:33:56]FM_GetShiftState [18:33:56]SAM_PROTO_GetShiftState [18:33:56]wFMCommunicate request_size=4 [18:33:56]MH_SAM_APDU [18:33:56]CAPDU: 80 13 01 00 [18:33:56]Write to MH i2c: E2 08 00 AA AF 80 13 01 00 00 00 00 00 D6 [18:33:56]Write i2c OK [18:33:56]MH_I2C_Read... [18:33:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:33:56]Read from MH i2c: E2 [18:33:56]MH_I2C_Read... [18:33:56]Read from MH i2c: E2 0E 00 [18:33:56]MH_I2C_Read... [18:33:56]Read from MH i2c: E2 0E 00 AA AF 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 82 [18:33:56]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [18:33:56]wFMCommunicate OK [18:33:56]SAM_PROTO_GetShiftState done [18:33:56]FM_GetShiftState done [18:33:56]opened in 1713053951 [18:33:56]opened+sec_in_day 1713140351 [18:33:56]quantity*price = 70022 [18:33:56]sum+1 = 70024 [18:33:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.23 НСП 1% : 6.20 НДС 12% : 74.36 Наличными: 0.00 Безнал.: 700.23 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 213 14.04.2024 18:34 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 29303 ФПД: 123867821757047 1/tax-web-control/client/api/v1/ticket?date=20240414T183407&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29303&fm=123867821757047&tin=02508201610067®Number=0000138879044617&sum=70023 [18:33:57]StoreToDocumentArchive [18:33:57]shift 116 fd 29303 [18:33:57]save to /storage/0116/doc_00029303 [18:33:57]save last doc name /storage/0116/doc_00029303 to /storage/kkm_last_doc_name [18:33:57]save OK [18:33:57]Clear old archive folders... [18:33:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:33:57]tlvbuf is 01224810 [18:33:57]SAM_PROTO_ClearQueue [18:33:57]wFMCommunicate request_size=4 [18:33:57]MH_SAM_APDU [18:33:57]CAPDU: 80 09 00 00 [18:33:57]Write to MH i2c: E2 08 00 B7 AF 80 09 00 00 00 00 00 00 D8 [18:33:57]Write i2c OK [18:33:57]MH_I2C_Read... [18:33:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:33:57]Read from MH i2c: E2 [18:33:57]MH_I2C_Read... [18:33:57]Read from MH i2c: E2 03 00 [18:33:57]MH_I2C_Read... [18:33:57]Read from MH i2c: E2 03 00 B7 AF 00 90 00 DA [18:33:57]RAPDU: 90 00 [18:33:57]wFMCommunicate OK [18:33:57]SAM_PROTO_ClearQueue done [18:33:57]KKMCreateOFDPacket [18:33:57]OFDProtocolAddRootSTLVToBuf [18:33:57]FM_MakeSignedData [18:33:57]FM_MakeSignedData [18:33:57]SAM_PROTO_SignData [18:33:57]wFMCommunicate request_size=4 [18:33:57]MH_SAM_APDU [18:33:57]CAPDU: 80 0D 01 02 [18:33:57]Write to MH i2c: E2 08 00 B8 AF 80 0D 01 02 00 00 00 00 E0 [18:33:57]Write i2c OK [18:33:57]MH_I2C_Read... [18:33:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:33:57]Read from MH i2c: E2 [18:33:57]MH_I2C_Read... [18:33:57]Read from MH i2c: E2 03 00 [18:33:57]MH_I2C_Read... [18:33:57]Read from MH i2c: E2 03 00 B8 AF 00 90 00 DB [18:33:57]RAPDU: 90 00 [18:33:57]wFMCommunicate OK [18:33:57]wFMCommunicate request_size=255 [18:33:57]MH_SAM_APDU [18:33: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 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 D5 00 00 00 F4 03 04 00 9F 21 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 77 72 00 00 35 04 06 00 70 [18:33:57]Write to MH i2c: E2 02 01 B9 AF 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 D5 00 00 00 F4 03 04 00 9F 21 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 77 72 00 00 35 04 06 00 70 00 00 38 [18:33:57]Write i2c OK [18:33:57]MH_I2C_Read... [18:33:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:33:57]Read from MH i2c: E2 [18:33:57]MH_I2C_Read... [18:33:57]Read from MH i2c: E2 03 00 [18:33:57]MH_I2C_Read... [18:33:57]Read from MH i2c: E2 03 00 B9 AF 00 90 00 DC [18:33:57]RAPDU: 90 00 [18:33:57]wFMCommunicate OK [18:33:57]wFMCommunicate request_size=10 [18:33:57]MH_SAM_APDU [18:33:57]CAPDU: 80 0D 02 02 05 A8 39 83 D2 77 [18:33:57]Write to MH i2c: E2 0D 00 BA AF 80 0D 02 02 05 00 A8 39 83 D2 77 00 00 9A [18:33:57]Write i2c OK [18:33:57]MH_I2C_Read... [18:33:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:33:58]Read from MH i2c: E2 [18:33:58]MH_I2C_Read... [18:33:58]Read from MH i2c: E2 03 00 [18:33:58]MH_I2C_Read... [18:33:58]Read from MH i2c: E2 03 00 BA AF 00 90 00 DD [18:33:58]RAPDU: 90 00 [18:33:58]wFMCommunicate OK [18:33:58]wFMCommunicate request_size=4 [18:33:58]MH_SAM_APDU [18:33:58]CAPDU: 80 0D 03 02 [18:33:58]Write to MH i2c: E2 08 00 BB AF 80 0D 03 02 00 00 00 00 E5 [18:33:58]Write i2c OK [18:33:58]MH_I2C_Read... [18:33:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:33:58]Read from MH i2c: E2 [18:33:58]MH_I2C_Read... [18:33:58]Read from MH i2c: E2 0B 00 [18:33:58]MH_I2C_Read... [18:33:58]Read from MH i2c: E2 0B 00 BB AF 00 82 2D BA 19 24 7C 62 C9 90 00 33 [18:33:58]RAPDU: 82 2D BA 19 24 7C 62 C9 90 00 [18:33:58]wFMCommunicate OK [18:33:58]SAM_PROTO_SignData done [18:33:58]FM_MakeSignedData done [18:33:58]CreateOFDProtocolMessage [18:33:58]wFMCommunicate request_size=4 [18:33:58]MH_SAM_APDU [18:33:58]CAPDU: 80 11 00 00 [18:33:58]Write to MH i2c: E2 08 00 BC AF 80 11 00 00 00 00 00 00 E5 [18:33:58]Write i2c OK [18:33:58]MH_I2C_Read... [18:33:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:33:58]Read from MH i2c: E2 [18:33:58]MH_I2C_Read... [18:33:58]Read from MH i2c: E2 17 00 [18:33:58]MH_I2C_Read... [18:33:58]Read from MH i2c: E2 17 00 BC AF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 34 [18:33:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:33:58]wFMCommunicate OK [18:33:58]CreateOFDProtocolMessage done [18:33:58]OFDSenderStorePacket 29303 [18:33:58]StoreOFDPacket docnum=29303 [18:33:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 43 75 07 01 A2 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 D5 00 00 00 F4 03 04 00 9F 21 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 77 72 00 00 35 04 06 00 70 A8 39 83 D2 77 82 2D BA 19 24 7C 62 C9 [18:33:58]CheckFolder [18:33:58]dirname=/storage/ofd_packets [18:33:58]CheckFolder done [18:33:58]ProducePacketName [18:33:58]name=ofd_packets/00029303 [18:33:58]NVStorageSaveData ofd_packets/00029303 [18:33:58]File name is /storage/ofd_packets/00029303 [18:33:58]Write 301 bytes [18:33:58]NVStorageSaveData done [18:33:58]OFDSenderStorePacket done [18:33:58]KKMCreateOFDPacket done [18:33:58]NVStorageSaveData kkm_last_timestamp [18:33:58]File name is /storage/kkm_last_timestamp [18:33:58]Write 4 bytes [18:33:58]NVStorageSaveData done [18:33:58]ExternCall_PrintAddStr [18:33:58]wPrintStart [18:33:58]Write to MH i2c: 01 00 00 BD AF 6C [18:33:58]Write i2c OK [18:33:58]MH_I2C_Read... [18:33:58]Read from MH i2c: 01 [18:33:58]MH_I2C_Read... [18:33:58]Read from MH i2c: 01 07 00 [18:33:58]MH_I2C_Read... [18:33:58]Read from MH i2c: 01 07 00 BD AF 00 00 00 00 00 FF 0F 81 [18:33:58]RasterBufferAndPrint [18:33:58]line Счет N : (1)347692 [18:33:58]line ИНН: 02508201610067 [18:33:58]line Контрольно-Кассовый Чек [18:33:58]line ПРОДАЖА [18:33:58]line ТРК (МРК, ГНК) : 32 [18:33:58]line Товар: 2710124130 [18:33:58]line Аи-92-К-5 [18:33:58]line 10.890 * 64.30 [18:33:58]line = 700.23 [18:33:58]line НДС 12% НСП 1% [18:33:58]line > о реализуемом товаре [18:33:58]line ИТОГО: 700.23 [18:33:58]line НСП 1% : 6.20 [18:33:58]line НДС 12% : 74.36 [18:33:58]line Наличными: 0.00 [18:33:58]line Безнал.: 700.23 [18:33:58]line Место: АЗС № 108 "Партнер Нефть" [18:33:58]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [18:33:58]line СНО: Общий режим [18:33:58]line Чек 213 14.04.2024 18:34 [18:33:58]line Смена: 116 ФФД: 1.0 [18:33:58]line ЗНМ: 0300000027 [18:33:58]line РНМ: 0000138879044617 [18:33:58]line Версия ККМ: 001 [18:33:58]line Платежная система: Бакай Банк [18:33:58]line ФМ: 0000000000963154 [18:33:58]line ФД: 29303 [18:33:58]line ФПД: 123867821757047 [18:33:58]line 1/tax-web-control/client/api/v1/ticket?date=20240414T183407&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29303&fm=123867821757047&tin=02508201610067®Number=0000138879044617&sum=70023 [18:33:58]OFD Sender: Processing packet 29303 [packets to send 8, broken 7] [18:33:58]ProducePacketName [18:33:58]name=ofd_packets/00029303 [18:33:58]OFD Sender: To server: pG, [18:33:58]CommunicateWithHost lk.salyk.kg:30040 [18:33:58]ConnectInit lk.salyk.kg [18:33:58]written 0, free lines is 4095 [18:33:58]Connected sock=10 [18:33:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 43 75 07 01 A2 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 D5 00 00 00 F4 03 04 00 9F 21 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 77 72 00 00 35 04 06 00 70 A8 39 83 D2 77 82 2D BA 19 24 7C 62 C9 [18:33:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 4D B7 47 00 4B EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 77 72 00 00 F4 03 04 00 43 CC 1B 66 B6 04 01 00 00 20 B3 B7 E1 5D 23 06 DA [18:33:58]CommunicateWithHost err = 0 [18:33:58]CheckOFDResponse [18:33:58]1017 (14) - 77093643461234 [18:33:58]1041 (16) - 0000000000963154 [18:33:58]1040 (4) - 29303 [18:33:58]1012 (4) - 14.04.2024 12:29 [18:33:58]1206 (1) - 0 [18:33:58]OFD Sender: Remove packet 29303 [18:33:58]ProducePacketName [18:33:58]name=ofd_packets/00029303 [18:33:58]NVStorageDeleteData [18:33:58]Write to MH i2c: 01 00 00 E6 AF 95 [18:33:58]Write i2c OK [18:33:58]MH_I2C_Read... [18:33:58]Read from MH i2c: 01 [18:33:58]MH_I2C_Read... [18:33:58]Read from MH i2c: 01 07 00 [18:33:58]MH_I2C_Read... [18:33:58]Read from MH i2c: 01 07 00 E6 AF 00 00 00 00 00 DB 0C 83 [18:33:58]RasterBufferAndPrint [18:33:58]line [18:33:58]line [18:33:58]line [18:33:58]line [18:33:58]line [18:33:58]written 0, free lines is 3298 [18:33:58]MH_Cut [18:33:58]Write to MH i2c: D1 01 00 ED AF 01 6E [18:33:58]Write i2c OK [18:33:58]MH_I2C_Read... [18:33:58]Read from MH i2c: D1 [18:33:58]MH_I2C_Read... [18:33:58]Read from MH i2c: D1 01 00 [18:33:58]MH_I2C_Read... [18:33:58]Read from MH i2c: D1 01 00 ED AF 00 6D [18:33:58]Write to MH i2c: 01 00 00 EE AF 9D [18:33:58]Write i2c OK [18:33:58]MH_I2C_Read... [18:33:59]OFD Sender: No OFD packet to send [18:33:59]*** Cut start [18:33:59]*** Partial cut [18:33:59]*** CUTSNS_PIN = 1 [18:33:59]*** CUTSNS_PIN = 0 [18:33:59]*** Brake cut motor [18:34:00]Read from MH i2c: 01 [18:34:00]MH_I2C_Read... [18:34:00]*** Stop cut motor [18:34:00]*** Cut end [18:34:00]Read from MH i2c: 01 07 00 [18:34:00]MH_I2C_Read... [18:34:00]Read from MH i2c: 01 07 00 EE AF 00 00 00 00 00 FF 0F B2 [18:34:00]process_action close_receipt done [18:34:00]requested_data is exist [18:34:00]produce_requested_data [18:34:00]requested_item fm.sn is exist - process it [18:34:00]wFMCommunicate request_size=4 [18:34:00]MH_SAM_APDU [18:34:00]CAPDU: 80 11 00 00 [18:34:00]Write to MH i2c: E2 08 00 EF AF 80 11 00 00 00 00 00 00 18 [18:34:00]Write i2c OK [18:34:00]MH_I2C_Read... [18:34:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:34:00]Read from MH i2c: E2 [18:34:00]MH_I2C_Read... [18:34:00]Read from MH i2c: E2 17 00 [18:34:00]MH_I2C_Read... [18:34:00]Read from MH i2c: E2 17 00 EF AF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 67 [18:34:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:34:00]wFMCommunicate OK [18:34:00]requested_item fd.num is exist - process it [18:34:00]SAM_PROTO_GetFieldsCounters [18:34:00]wFMCommunicate request_size=4 [18:34:00]MH_SAM_APDU [18:34:00]CAPDU: 80 13 00 00 [18:34:00]Write to MH i2c: E2 08 00 F0 AF 80 13 00 00 00 00 00 00 1B [18:34:00]Write i2c OK [18:34:00]MH_I2C_Read... [18:34:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:34:00]Read from MH i2c: E2 [18:34:00]MH_I2C_Read... [18:34:00]Read from MH i2c: E2 62 00 [18:34:00]MH_I2C_Read... [18:34:00]Read from MH i2c: E2 62 00 F0 AF 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 77 72 00 00 0E 04 04 00 74 00 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 35 [18:34:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 77 72 00 00 0E 04 04 00 74 00 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 [18:34:00]wFMCommunicate OK [18:34:00]SAM_PROTO_GetFieldsCounters done [18:34:00]requested_item shift.num is exist - process it [18:34:00]requested_item shift.opened is exist - process it [18:34:00]req_shift_opened [18:34:00]FM_GetShiftState [18:34:00]SAM_PROTO_GetShiftState [18:34:00]wFMCommunicate request_size=4 [18:34:00]MH_SAM_APDU [18:34:00]CAPDU: 80 13 01 00 [18:34:00]Write to MH i2c: E2 08 00 F1 AF 80 13 01 00 00 00 00 00 1D [18:34:00]Write i2c OK [18:34:00]MH_I2C_Read... [18:34:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:34:00]Read from MH i2c: E2 [18:34:00]MH_I2C_Read... [18:34:00]Read from MH i2c: E2 0E 00 [18:34:00]MH_I2C_Read... [18:34:00]Read from MH i2c: E2 0E 00 F1 AF 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 C9 [18:34:00]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [18:34:00]wFMCommunicate OK [18:34:00]SAM_PROTO_GetShiftState done [18:34:00]FM_GetShiftState done [18:34:00]req_shift_opened done [18:34:00]requested_item shift.open_date is exist - process it [18:34:00]req_shift_open_date [18:34:00]req_shift_open_date done [18:34:00]produce_requested_data done [18:34:00]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29303,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [18:34:00]process_action_free close_receipt [18:34:00]json_value_free [18:34:00]json_value_free done [18:34:00]process_json_proto returns [18:34:00]Send response to host [18:34:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29303,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [18:34:00]free response buf [18:34:00]execute_script done [18:34:00]execute_script returns [18:34:00]free content buf [18:34:00]Sock 7.Close socket [18:34:00]Sock 7.Thread stoped [18:34:04]OFD Sender: No OFD packet to send [18:34:09]OFD Sender: No OFD packet to send [18:34:14]OFD Sender: No OFD packet to send [18:34:19]OFD Sender: No OFD packet to send [18:34:24]OFD Sender: No OFD packet to send [18:34:29]OFD Sender: No OFD packet to send [18:34:34]OFD Sender: No OFD packet to send [18:34:39]OFD Sender: No OFD packet to send [18:34:44]OFD Sender: No OFD packet to send [18:34:49]OFD Sender: No OFD packet to send [18:34:54]OFD Sender: No OFD packet to send [18:34:59]OFD Sender: No OFD packet to send [18:35:04]OFD Sender: No OFD packet to send [18:35:09]OFD Sender: No OFD packet to send [18:35:14]OFD Sender: No OFD packet to send [18:35:19]OFD Sender: No OFD packet to send [18:35:24]OFD Sender: No OFD packet to send [18:35:29]OFD Sender: No OFD packet to send [18:35:34]OFD Sender: No OFD packet to send [18:35:39]OFD Sender: No OFD packet to send [18:35:44]OFD Sender: No OFD packet to send [18:35:49]OFD Sender: No OFD packet to send [18:35:54]OFD Sender: No OFD packet to send [18:35:59]OFD Sender: No OFD packet to send [18:36:04]OFD Sender: No OFD packet to send [18:36:09]OFD Sender: No OFD packet to send [18:36:14]OFD Sender: No OFD packet to send [18:36:19]OFD Sender: No OFD packet to send [18:36:24]OFD Sender: No OFD packet to send [18:36:29]OFD Sender: No OFD packet to send [18:36:34]OFD Sender: No OFD packet to send [18:36:39]OFD Sender: No OFD packet to send [18:36:44]OFD Sender: No OFD packet to send [18:36:49]OFD Sender: No OFD packet to send [18:36:54]OFD Sender: No OFD packet to send [18:36:59]OFD Sender: No OFD packet to send [18:37:04]OFD Sender: No OFD packet to send [18:37:09]OFD Sender: No OFD packet to send [18:37:14]OFD Sender: No OFD packet to send [18:37:19]OFD Sender: No OFD packet to send [18:37:24]OFD Sender: No OFD packet to send [18:37:29]OFD Sender: No OFD packet to send [18:37:34]OFD Sender: No OFD packet to send [18:37:39]OFD Sender: No OFD packet to send [18:37:44]OFD Sender: No OFD packet to send [18:37:49]OFD Sender: No OFD packet to send [18:37:54]OFD Sender: No OFD packet to send [18:37:59]OFD Sender: No OFD packet to send [18:38:04]OFD Sender: No OFD packet to send [18:38:09]OFD Sender: No OFD packet to send [18:38:14]OFD Sender: No OFD packet to send [18:38:19]OFD Sender: No OFD packet to send [18:38:24]OFD Sender: No OFD packet to send [18:38:29]OFD Sender: No OFD packet to send [18:38:34]OFD Sender: No OFD packet to send [18:38:39]OFD Sender: No OFD packet to send [18:38:44]OFD Sender: No OFD packet to send [18:38:49]OFD Sender: No OFD packet to send [18:38:54]OFD Sender: No OFD packet to send [18:38:59]OFD Sender: No OFD packet to send [18:39:04]OFD Sender: No OFD packet to send [18:39:09]OFD Sender: No OFD packet to send [18:39:14]OFD Sender: No OFD packet to send [18:39:19]OFD Sender: No OFD packet to send [18:39:24]OFD Sender: No OFD packet to send [18:39:29]OFD Sender: No OFD packet to send [18:39:34]OFD Sender: No OFD packet to send [18:39:39]OFD Sender: No OFD packet to send [18:39:44]OFD Sender: No OFD packet to send [18:39:49]OFD Sender: No OFD packet to send [18:39:54]OFD Sender: No OFD packet to send [18:39:59]OFD Sender: No OFD packet to send [18:40:04]OFD Sender: No OFD packet to send [18:40:09]OFD Sender: No OFD packet to send [18:40:14]OFD Sender: No OFD packet to send [18:40:19]OFD Sender: No OFD packet to send [18:40:21]accept exits with 9 [18:40:21]New connection [18:40:21]New thread 3066928484 created [18:40:21]Thread 3066785124 joined [18:40:21]Waiting for new connection... [18:40:21] Sock 9.Parse request [18:40:21]Sock 9.Check first char [18:40:21]Sock 9.First char is OK [18:40:21]request: POST /json_proto HTTP/1.0 [18:40:21]Method: POST [18:40:21]URL: /json_proto [18:40:21]Method is POST - this is cgi request [18:40:21]url: /json_proto [18:40:21]query_string will be loaded in cgi processing [18:40:21]execute_cgi json_proto POST (null) [18:40:21]execute_cgi path=json_proto method=POST [18:40:21]POST find Content-Length [18:40:21]Host: 172.17.33.3:8080 [18:40:21]Content-Length: 677 [18:40:21]Content-Type: application/json [18:40:21] [18:40:21]POST finish read [18:40:21]Found Content-Length = 677 [18:40:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347693", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.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:21]execute_script... [18:40: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)347693", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.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:21]POST & json_proto [18:40:21]process_json_proto [18:40:21]json parsed OK: [18:40:21]protocol is kg_v1.0 [18:40:21]action value=close_receipt [18:40:21]process_action close_receipt [18:40:21]cmd_close_receipt [18:40:21]MH_GetDate [18:40:21]Write to MH i2c: F0 00 00 F2 AF 90 [18:40:21]Write i2c OK [18:40:21]MH_I2C_Read... [18:40:21]Read from MH i2c: F0 [18:40:21]MH_I2C_Read... [18:40:21]Read from MH i2c: F0 09 00 [18:40:21]MH_I2C_Read... [18:40:21]Read from MH i2c: F0 09 00 F2 AF 00 21 23 1C 66 23 5B 8F 65 D1 [18:40:21]GetLastDocTimeStamp 1713119647 [18:40:21]current date 1713120033 [18:40:21]FM_GetShiftState [18:40:21]SAM_PROTO_GetShiftState [18:40:21]wFMCommunicate request_size=4 [18:40:21]MH_SAM_APDU [18:40:21]CAPDU: 80 13 01 00 [18:40:21]Write to MH i2c: E2 08 00 F3 AF 80 13 01 00 00 00 00 00 1F [18:40:21]Write i2c OK [18:40:21]MH_I2C_Read... [18:40:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:40:22]Read from MH i2c: E2 [18:40:22]MH_I2C_Read... [18:40:22]Read from MH i2c: E2 0E 00 [18:40:22]MH_I2C_Read... [18:40:22]Read from MH i2c: E2 0E 00 F3 AF 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 CB [18:40:22]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [18:40:22]wFMCommunicate OK [18:40:22]SAM_PROTO_GetShiftState done [18:40:22]FM_GetShiftState done [18:40:22]opened in 1713053951 [18:40:22]opened+sec_in_day 1713140351 [18:40:22]quantity*price = 50025 [18:40:22]sum+1 = 50026 [18:40:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 214 14.04.2024 18:40 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29304 ФПД: 155087124483569 1/tax-web-control/client/api/v1/ticket?date=20240414T184033&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29304&fm=155087124483569&tin=02508201610067®Number=0000138879044617&sum=50000 [18:40:23]StoreToDocumentArchive [18:40:23]shift 116 fd 29304 [18:40:23]save to /storage/0116/doc_00029304 [18:40:23]save last doc name /storage/0116/doc_00029304 to /storage/kkm_last_doc_name [18:40:23]save OK [18:40:23]Clear old archive folders... [18:40:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:40:23]tlvbuf is 011DA810 [18:40:23]SAM_PROTO_ClearQueue [18:40:23]wFMCommunicate request_size=4 [18:40:23]MH_SAM_APDU [18:40:23]CAPDU: 80 09 00 00 [18:40:23]Write to MH i2c: E2 08 00 00 B0 80 09 00 00 00 00 00 00 22 [18:40:23]Write i2c OK [18:40:23]MH_I2C_Read... [18:40:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:40:23]Read from MH i2c: E2 [18:40:23]MH_I2C_Read... [18:40:23]Read from MH i2c: E2 03 00 [18:40:23]MH_I2C_Read... [18:40:23]Read from MH i2c: E2 03 00 00 B0 00 90 00 24 [18:40:23]RAPDU: 90 00 [18:40:23]wFMCommunicate OK [18:40:23]SAM_PROTO_ClearQueue done [18:40:23]KKMCreateOFDPacket [18:40:23]OFDProtocolAddRootSTLVToBuf [18:40:23]FM_MakeSignedData [18:40:23]FM_MakeSignedData [18:40:23]SAM_PROTO_SignData [18:40:23]wFMCommunicate request_size=4 [18:40:23]MH_SAM_APDU [18:40:23]CAPDU: 80 0D 01 02 [18:40:23]Write to MH i2c: E2 08 00 01 B0 80 0D 01 02 00 00 00 00 2A [18:40:23]Write i2c OK [18:40:23]MH_I2C_Read... [18:40:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:40:23]Read from MH i2c: E2 [18:40:23]MH_I2C_Read... [18:40:23]Read from MH i2c: E2 03 00 [18:40:23]MH_I2C_Read... [18:40:23]Read from MH i2c: E2 03 00 01 B0 00 90 00 25 [18:40:23]RAPDU: 90 00 [18:40:23]wFMCommunicate OK [18:40:23]wFMCommunicate request_size=255 [18:40:23]MH_SAM_APDU [18:40: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 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 D6 00 00 00 F4 03 04 00 21 23 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 78 72 00 00 35 04 06 00 8D [18:40:23]Write to MH i2c: E2 02 01 02 B0 80 0D 02 02 FA 00 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 D6 00 00 00 F4 03 04 00 21 23 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 78 72 00 00 35 04 06 00 8D 00 00 3A [18:40:23]Write i2c OK [18:40:23]MH_I2C_Read... [18:40:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:40:23]Read from MH i2c: E2 [18:40:23]MH_I2C_Read... [18:40:23]Read from MH i2c: E2 03 00 [18:40:23]MH_I2C_Read... [18:40:23]Read from MH i2c: E2 03 00 02 B0 00 90 00 26 [18:40:23]RAPDU: 90 00 [18:40:23]wFMCommunicate OK [18:40:23]wFMCommunicate request_size=10 [18:40:23]MH_SAM_APDU [18:40:23]CAPDU: 80 0D 02 02 05 0D 08 F6 CD F1 [18:40:23]Write to MH i2c: E2 0D 00 03 B0 80 0D 02 02 05 00 0D 08 F6 CD F1 00 00 00 [18:40:23]Write i2c OK [18:40:23]MH_I2C_Read... [18:40:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:40:23]Read from MH i2c: E2 [18:40:23]MH_I2C_Read... [18:40:23]Read from MH i2c: E2 03 00 [18:40:23]MH_I2C_Read... [18:40:23]Read from MH i2c: E2 03 00 03 B0 00 90 00 27 [18:40:23]RAPDU: 90 00 [18:40:23]wFMCommunicate OK [18:40:23]wFMCommunicate request_size=4 [18:40:23]MH_SAM_APDU [18:40:23]CAPDU: 80 0D 03 02 [18:40:23]Write to MH i2c: E2 08 00 04 B0 80 0D 03 02 00 00 00 00 2F [18:40:23]Write i2c OK [18:40:23]MH_I2C_Read... [18:40:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:40:23]Read from MH i2c: E2 [18:40:23]MH_I2C_Read... [18:40:23]Read from MH i2c: E2 0B 00 [18:40:23]MH_I2C_Read... [18:40:23]Read from MH i2c: E2 0B 00 04 B0 00 56 33 D9 B2 31 FE 26 02 90 00 9B [18:40:23]RAPDU: 56 33 D9 B2 31 FE 26 02 90 00 [18:40:23]wFMCommunicate OK [18:40:23]SAM_PROTO_SignData done [18:40:23]FM_MakeSignedData done [18:40:23]CreateOFDProtocolMessage [18:40:23]wFMCommunicate request_size=4 [18:40:23]MH_SAM_APDU [18:40:23]CAPDU: 80 11 00 00 [18:40:23]Write to MH i2c: E2 08 00 05 B0 80 11 00 00 00 00 00 00 2F [18:40:23]Write i2c OK [18:40:23]MH_I2C_Read... [18:40:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:40:23]Read from MH i2c: E2 [18:40:23]MH_I2C_Read... [18:40:23]Read from MH i2c: E2 17 00 [18:40:23]MH_I2C_Read... [18:40:23]Read from MH i2c: E2 17 00 05 B0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 7E [18:40:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:40:23]wFMCommunicate OK [18:40:23]CreateOFDProtocolMessage done [18:40:23]OFDSenderStorePacket 29304 [18:40:23]StoreOFDPacket docnum=29304 [18:40:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 8B DD 07 01 3B A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 D6 00 00 00 F4 03 04 00 21 23 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 78 72 00 00 35 04 06 00 8D 0D 08 F6 CD F1 56 33 D9 B2 31 FE 26 02 [18:40:23]CheckFolder [18:40:23]dirname=/storage/ofd_packets [18:40:23]CheckFolder done [18:40:23]ProducePacketName [18:40:23]name=ofd_packets/00029304 [18:40:23]NVStorageSaveData ofd_packets/00029304 [18:40:23]File name is /storage/ofd_packets/00029304 [18:40:23]Write 301 bytes [18:40:23]NVStorageSaveData done [18:40:23]OFDSenderStorePacket done [18:40:23]KKMCreateOFDPacket done [18:40:23]NVStorageSaveData kkm_last_timestamp [18:40:23]File name is /storage/kkm_last_timestamp [18:40:23]Write 4 bytes [18:40:23]NVStorageSaveData done [18:40:23]ExternCall_PrintAddStr [18:40:23]wPrintStart [18:40:23]Write to MH i2c: 01 00 00 06 B0 B6 [18:40:23]Write i2c OK [18:40:23]MH_I2C_Read... [18:40:23]Read from MH i2c: 01 [18:40:23]MH_I2C_Read... [18:40:23]Read from MH i2c: 01 07 00 [18:40:23]MH_I2C_Read... [18:40:23]Read from MH i2c: 01 07 00 06 B0 00 00 00 00 00 FF 0F CB [18:40:23]RasterBufferAndPrint [18:40:23]line Счет N : (1)347693 [18:40:23]line ИНН: 02508201610067 [18:40:23]line Контрольно-Кассовый Чек [18:40:23]line ПРОДАЖА [18:40:23]line ТРК (МРК, ГНК) : 33 [18:40:23]line Товар: 2710124500 [18:40:23]line Аи-95-К-5 [18:40:23]line 6.900 * 72.50 [18:40:23]line = 500.25 [18:40:23]line НДС 12% НСП 1% [18:40:23]line > о реализуемом товаре [18:40:23]line ОКРУГЛЕНИЕ: -0.25 [18:40:23]line ИТОГО: 500.00 [18:40:23]line Внесено: 500.00 [18:40:23]line СДАЧА: 0.00 [18:40:23]line НСП 1% : 4.43 [18:40:23]line НДС 12% : 53.12 [18:40:23]line Наличными: 500.00 [18:40:23]line Безнал.: 0.00 [18:40:23]line Место: АЗС № 108 "Партнер Нефть" [18:40:23]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [18:40:23]line СНО: Общий режим [18:40:23]line Чек 214 14.04.2024 18:40 [18:40:23]line Смена: 116 ФФД: 1.0 [18:40:23]line ЗНМ: 0300000027 [18:40:23]line РНМ: 0000138879044617 [18:40:23]line Версия ККМ: 001 [18:40:23]line ФМ: 0000000000963154 [18:40:23]line ФД: 29304 [18:40:23]line ФПД: 155087124483569 [18:40:24]line 1/tax-web-control/client/api/v1/ticket?date=20240414T184033&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29304&fm=155087124483569&tin=02508201610067®Number=0000138879044617&sum=50000 [18:40:24]OFD Sender: Processing packet 29304 [packets to send 8, broken 7] [18:40:24]ProducePacketName [18:40:24]name=ofd_packets/00029304 [18:40:24]OFD Sender: To server: pG, [18:40:24]CommunicateWithHost lk.salyk.kg:30040 [18:40:24]ConnectInit lk.salyk.kg [18:40:24]written 0, free lines is 4095 [18:40:24]Connected sock=10 [18:40:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 8B DD 07 01 3B A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 D6 00 00 00 F4 03 04 00 21 23 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 78 72 00 00 35 04 06 00 8D 0D 08 F6 CD F1 56 33 D9 B2 31 FE 26 02 [18:40:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 4E 22 47 00 D4 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 78 72 00 00 F4 03 04 00 C4 CD 1B 66 B6 04 01 00 00 AB 5B DF 69 85 FD 8E 8E [18:40:24]CommunicateWithHost err = 0 [18:40:24]CheckOFDResponse [18:40:24]1017 (14) - 77093643461234 [18:40:24]1041 (16) - 0000000000963154 [18:40:24]1040 (4) - 29304 [18:40:24]1012 (4) - 14.04.2024 12:36 [18:40:24]1206 (1) - 0 [18:40:24]OFD Sender: Remove packet 29304 [18:40:24]ProducePacketName [18:40:24]name=ofd_packets/00029304 [18:40:24]NVStorageDeleteData [18:40:24]Write to MH i2c: 01 00 00 30 B0 E0 [18:40:24]Write i2c OK [18:40:24]MH_I2C_Read... [18:40:24]Read from MH i2c: 01 [18:40:24]MH_I2C_Read... [18:40:24]Read from MH i2c: 01 07 00 [18:40:24]MH_I2C_Read... [18:40:24]Read from MH i2c: 01 07 00 30 B0 00 00 00 00 00 C0 0C B3 [18:40:24]RasterBufferAndPrint [18:40:24]line [18:40:24]line [18:40:24]line [18:40:24]line [18:40:24]line [18:40:24]written 0, free lines is 3270 [18:40:24]MH_Cut [18:40:24]Write to MH i2c: D1 01 00 37 B0 01 B9 [18:40:24]Write i2c OK [18:40:24]MH_I2C_Read... [18:40:24]Read from MH i2c: D1 [18:40:24]MH_I2C_Read... [18:40:24]Read from MH i2c: D1 01 00 [18:40:24]MH_I2C_Read... [18:40:24]Read from MH i2c: D1 01 00 37 B0 00 B8 [18:40:24]Write to MH i2c: 01 00 00 38 B0 E8 [18:40:24]Write i2c OK [18:40:24]MH_I2C_Read... [18:40:24]OFD Sender: No OFD packet to send [18:40:25]*** Cut start [18:40:25]*** Partial cut [18:40:25]*** CUTSNS_PIN = 1 [18:40:25]*** CUTSNS_PIN = 0 [18:40:25]*** Brake cut motor [18:40:25]Read from MH i2c: 01 [18:40:25]MH_I2C_Read... [18:40:25]*** Stop cut motor [18:40:25]*** Cut end [18:40:25]Read from MH i2c: 01 07 00 [18:40:25]MH_I2C_Read... [18:40:25]Read from MH i2c: 01 07 00 38 B0 00 00 00 00 00 FF 0F FD [18:40:25]process_action close_receipt done [18:40:25]requested_data is exist [18:40:25]produce_requested_data [18:40:25]requested_item fm.sn is exist - process it [18:40:25]wFMCommunicate request_size=4 [18:40:25]MH_SAM_APDU [18:40:25]CAPDU: 80 11 00 00 [18:40:25]Write to MH i2c: E2 08 00 39 B0 80 11 00 00 00 00 00 00 63 [18:40:25]Write i2c OK [18:40:25]MH_I2C_Read... [18:40:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:40:25]Read from MH i2c: E2 [18:40:25]MH_I2C_Read... [18:40:25]Read from MH i2c: E2 17 00 [18:40:25]MH_I2C_Read... [18:40:25]Read from MH i2c: E2 17 00 39 B0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B2 [18:40:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:40:25]wFMCommunicate OK [18:40:25]requested_item fd.num is exist - process it [18:40:25]SAM_PROTO_GetFieldsCounters [18:40:25]wFMCommunicate request_size=4 [18:40:25]MH_SAM_APDU [18:40:25]CAPDU: 80 13 00 00 [18:40:25]Write to MH i2c: E2 08 00 3A B0 80 13 00 00 00 00 00 00 66 [18:40:25]Write i2c OK [18:40:25]MH_I2C_Read... [18:40:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:40:26]Read from MH i2c: E2 [18:40:26]MH_I2C_Read... [18:40:26]Read from MH i2c: E2 62 00 [18:40:26]MH_I2C_Read... [18:40:26]Read from MH i2c: E2 62 00 3A B0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 78 72 00 00 0E 04 04 00 74 00 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 84 [18:40:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 78 72 00 00 0E 04 04 00 74 00 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 [18:40:26]wFMCommunicate OK [18:40:26]SAM_PROTO_GetFieldsCounters done [18:40:26]requested_item shift.num is exist - process it [18:40:26]requested_item shift.opened is exist - process it [18:40:26]req_shift_opened [18:40:26]FM_GetShiftState [18:40:26]SAM_PROTO_GetShiftState [18:40:26]wFMCommunicate request_size=4 [18:40:26]MH_SAM_APDU [18:40:26]CAPDU: 80 13 01 00 [18:40:26]Write to MH i2c: E2 08 00 3B B0 80 13 01 00 00 00 00 00 68 [18:40:26]Write i2c OK [18:40:26]MH_I2C_Read... [18:40:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:40:26]Read from MH i2c: E2 [18:40:26]MH_I2C_Read... [18:40:26]Read from MH i2c: E2 0E 00 [18:40:26]MH_I2C_Read... [18:40:26]Read from MH i2c: E2 0E 00 3B B0 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 14 [18:40:26]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [18:40:26]wFMCommunicate OK [18:40:26]SAM_PROTO_GetShiftState done [18:40:26]FM_GetShiftState done [18:40:26]req_shift_opened done [18:40:26]requested_item shift.open_date is exist - process it [18:40:26]req_shift_open_date [18:40:26]req_shift_open_date done [18:40:26]produce_requested_data done [18:40:26]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29304,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [18:40:26]process_action_free close_receipt [18:40:26]json_value_free [18:40:26]json_value_free done [18:40:26]process_json_proto returns [18:40:26]Send response to host [18:40:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29304,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [18:40:26]free response buf [18:40:26]execute_script done [18:40:26]execute_script returns [18:40:26]free content buf [18:40:26]Sock 9.Close socket [18:40:26]Sock 9.Thread stoped [18:40:29]OFD Sender: No OFD packet to send [18:40:34]OFD Sender: No OFD packet to send [18:40:39]OFD Sender: No OFD packet to send [18:40:44]OFD Sender: No OFD packet to send [18:40:49]OFD Sender: No OFD packet to send [18:40:54]OFD Sender: No OFD packet to send [18:40:59]OFD Sender: No OFD packet to send [18:41:04]OFD Sender: No OFD packet to send [18:41:09]OFD Sender: No OFD packet to send [18:41:14]OFD Sender: No OFD packet to send [18:41:19]OFD Sender: No OFD packet to send [18:41:24]OFD Sender: No OFD packet to send [18:41:29]OFD Sender: No OFD packet to send [18:41:34]OFD Sender: No OFD packet to send [18:41:39]OFD Sender: No OFD packet to send [18:41:44]OFD Sender: No OFD packet to send [18:41:49]OFD Sender: No OFD packet to send [18:41:54]OFD Sender: No OFD packet to send [18:41:59]OFD Sender: No OFD packet to send [18:42:04]OFD Sender: No OFD packet to send [18:42:09]OFD Sender: No OFD packet to send [18:42:14]OFD Sender: No OFD packet to send [18:42:19]OFD Sender: No OFD packet to send [18:42:24]OFD Sender: No OFD packet to send [18:42:29]OFD Sender: No OFD packet to send [18:42:34]OFD Sender: No OFD packet to send [18:42:39]OFD Sender: No OFD packet to send [18:42:44]OFD Sender: No OFD packet to send [18:42:49]OFD Sender: No OFD packet to send [18:42:54]OFD Sender: No OFD packet to send [18:42:59]OFD Sender: No OFD packet to send [18:43:04]OFD Sender: No OFD packet to send [18:43:09]OFD Sender: No OFD packet to send [18:43:14]OFD Sender: No OFD packet to send [18:43:19]OFD Sender: No OFD packet to send [18:43:24]accept exits with 7 [18:43:24]New connection [18:43:24]New thread 3066785124 created [18:43:24]Thread 3066928484 joined [18:43:24]Waiting for new connection... [18:43:24] Sock 7.Parse request [18:43:24]Sock 7.Check first char [18:43:24]Sock 7.First char is OK [18:43:24]request: POST /json_proto HTTP/1.0 [18:43:24]Method: POST [18:43:24]URL: /json_proto [18:43:24]Method is POST - this is cgi request [18:43:24]url: /json_proto [18:43:24]query_string will be loaded in cgi processing [18:43:24]execute_cgi json_proto POST (null) [18:43:24]execute_cgi path=json_proto method=POST [18:43:24]POST find Content-Length [18:43:24]Host: 172.17.33.3:8080 [18:43:24]Content-Length: 677 [18:43:24]Content-Type: application/json [18:43:24] [18:43:24]POST finish read [18:43:24]Found Content-Length = 677 [18:43:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347694", "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:43:24]execute_script... [18:43: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)347694", "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:43:24]POST & json_proto [18:43:24]process_json_proto [18:43:24]json parsed OK: [18:43:24]protocol is kg_v1.0 [18:43:24]action value=close_receipt [18:43:24]process_action close_receipt [18:43:24]cmd_close_receipt [18:43:24]MH_GetDate [18:43:24]Write to MH i2c: F0 00 00 3C B0 DB [18:43:24]Write i2c OK [18:43:24]MH_I2C_Read... [18:43:24]Read from MH i2c: F0 [18:43:24]MH_I2C_Read... [18:43:24]Read from MH i2c: F0 09 00 [18:43:24]MH_I2C_Read... [18:43:24]Read from MH i2c: F0 09 00 3C B0 00 D7 23 1C 66 23 5B 8F 65 D2 [18:43:24]GetLastDocTimeStamp 1713120033 [18:43:24]current date 1713120215 [18:43:24]FM_GetShiftState [18:43:24]SAM_PROTO_GetShiftState [18:43:24]wFMCommunicate request_size=4 [18:43:24]MH_SAM_APDU [18:43:24]CAPDU: 80 13 01 00 [18:43:24]Write to MH i2c: E2 08 00 3D B0 80 13 01 00 00 00 00 00 6A [18:43:24]Write i2c OK [18:43:24]MH_I2C_Read... [18:43:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:43:24]Read from MH i2c: E2 [18:43:24]MH_I2C_Read... [18:43:24]Read from MH i2c: E2 0E 00 [18:43:24]MH_I2C_Read... [18:43:24]Read from MH i2c: E2 0E 00 3D B0 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 16 [18:43:24]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [18:43:24]wFMCommunicate OK [18:43:24]SAM_PROTO_GetShiftState done [18:43:24]FM_GetShiftState done [18:43:24]opened in 1713053951 [18:43:24]opened+sec_in_day 1713140351 [18:43:24]quantity*price = 40058 [18:43:24]sum+1 = 40060 [18:43:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.54 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 215 14.04.2024 18:43 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29305 ФПД: 14939625885055 1/tax-web-control/client/api/v1/ticket?date=20240414T184335&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29305&fm=14939625885055&tin=02508201610067®Number=0000138879044617&sum=40000 [18:43:25]StoreToDocumentArchive [18:43:25]shift 116 fd 29305 [18:43:25]save to /storage/0116/doc_00029305 [18:43:25]save last doc name /storage/0116/doc_00029305 to /storage/kkm_last_doc_name [18:43:25]save OK [18:43:25]Clear old archive folders... [18:43:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:43:25]tlvbuf is 011DA6D0 [18:43:25]SAM_PROTO_ClearQueue [18:43:25]wFMCommunicate request_size=4 [18:43:25]MH_SAM_APDU [18:43:25]CAPDU: 80 09 00 00 [18:43:25]Write to MH i2c: E2 08 00 4A B0 80 09 00 00 00 00 00 00 6C [18:43:25]Write i2c OK [18:43:25]MH_I2C_Read... [18:43:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:43:25]Read from MH i2c: E2 [18:43:25]MH_I2C_Read... [18:43:25]Read from MH i2c: E2 03 00 [18:43:25]MH_I2C_Read... [18:43:25]Read from MH i2c: E2 03 00 4A B0 00 90 00 6E [18:43:25]RAPDU: 90 00 [18:43:25]wFMCommunicate OK [18:43:25]SAM_PROTO_ClearQueue done [18:43:25]KKMCreateOFDPacket [18:43:25]OFDProtocolAddRootSTLVToBuf [18:43:25]FM_MakeSignedData [18:43:25]FM_MakeSignedData [18:43:25]SAM_PROTO_SignData [18:43:25]wFMCommunicate request_size=4 [18:43:25]MH_SAM_APDU [18:43:25]CAPDU: 80 0D 01 02 [18:43:25]Write to MH i2c: E2 08 00 4B B0 80 0D 01 02 00 00 00 00 74 [18:43:25]Write i2c OK [18:43:25]MH_I2C_Read... [18:43:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:43:25]Read from MH i2c: E2 [18:43:25]MH_I2C_Read... [18:43:25]Read from MH i2c: E2 03 00 [18:43:25]MH_I2C_Read... [18:43:25]Read from MH i2c: E2 03 00 4B B0 00 90 00 6F [18:43:25]RAPDU: 90 00 [18:43:25]wFMCommunicate OK [18:43:25]wFMCommunicate request_size=255 [18:43:25]MH_SAM_APDU [18:43: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 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 D7 00 00 00 F4 03 04 00 D7 23 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 79 72 00 00 35 04 06 00 0D [18:43:25]Write to MH i2c: E2 02 01 4C B0 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 D7 00 00 00 F4 03 04 00 D7 23 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 79 72 00 00 35 04 06 00 0D 00 00 DF [18:43:25]Write i2c OK [18:43:25]MH_I2C_Read... [18:43:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:43:25]Read from MH i2c: E2 [18:43:25]MH_I2C_Read... [18:43:25]Read from MH i2c: E2 03 00 [18:43:25]MH_I2C_Read... [18:43:25]Read from MH i2c: E2 03 00 4C B0 00 90 00 70 [18:43:25]RAPDU: 90 00 [18:43:25]wFMCommunicate OK [18:43:25]wFMCommunicate request_size=10 [18:43:25]MH_SAM_APDU [18:43:25]CAPDU: 80 0D 02 02 05 96 67 18 0D 7F [18:43:25]Write to MH i2c: E2 0D 00 4D B0 80 0D 02 02 05 00 96 67 18 0D 7F 00 00 22 [18:43:25]Write i2c OK [18:43:25]MH_I2C_Read... [18:43:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:43:25]Read from MH i2c: E2 [18:43:25]MH_I2C_Read... [18:43:25]Read from MH i2c: E2 03 00 [18:43:25]MH_I2C_Read... [18:43:25]Read from MH i2c: E2 03 00 4D B0 00 90 00 71 [18:43:25]RAPDU: 90 00 [18:43:25]wFMCommunicate OK [18:43:25]wFMCommunicate request_size=4 [18:43:25]MH_SAM_APDU [18:43:25]CAPDU: 80 0D 03 02 [18:43:25]Write to MH i2c: E2 08 00 4E B0 80 0D 03 02 00 00 00 00 79 [18:43:25]Write i2c OK [18:43:25]MH_I2C_Read... [18:43:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:43:25]Read from MH i2c: E2 [18:43:25]MH_I2C_Read... [18:43:25]Read from MH i2c: E2 0B 00 [18:43:25]MH_I2C_Read... [18:43:25]Read from MH i2c: E2 0B 00 4E B0 00 3C EA E0 E9 43 52 C4 99 90 00 5B [18:43:25]RAPDU: 3C EA E0 E9 43 52 C4 99 90 00 [18:43:25]wFMCommunicate OK [18:43:25]SAM_PROTO_SignData done [18:43:25]FM_MakeSignedData done [18:43:25]CreateOFDProtocolMessage [18:43:25]wFMCommunicate request_size=4 [18:43:25]MH_SAM_APDU [18:43:25]CAPDU: 80 11 00 00 [18:43:25]Write to MH i2c: E2 08 00 4F B0 80 11 00 00 00 00 00 00 79 [18:43:25]Write i2c OK [18:43:25]MH_I2C_Read... [18:43:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:43:25]Read from MH i2c: E2 [18:43:25]MH_I2C_Read... [18:43:25]Read from MH i2c: E2 17 00 [18:43:25]MH_I2C_Read... [18:43:25]Read from MH i2c: E2 17 00 4F B0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C8 [18:43:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:43:25]wFMCommunicate OK [18:43:25]CreateOFDProtocolMessage done [18:43:25]OFDSenderStorePacket 29305 [18:43:25]StoreOFDPacket docnum=29305 [18:43:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 CA 90 07 01 EB 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 D7 00 00 00 F4 03 04 00 D7 23 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 79 72 00 00 35 04 06 00 0D 96 67 18 0D 7F 3C EA E0 E9 43 52 C4 99 [18:43:25]CheckFolder [18:43:25]dirname=/storage/ofd_packets [18:43:25]CheckFolder done [18:43:25]ProducePacketName [18:43:25]name=ofd_packets/00029305 [18:43:25]NVStorageSaveData ofd_packets/00029305 [18:43:25]File name is /storage/ofd_packets/00029305 [18:43:25]Write 301 bytes [18:43:25]NVStorageSaveData done [18:43:25]OFDSenderStorePacket done [18:43:25]KKMCreateOFDPacket done [18:43:25]NVStorageSaveData kkm_last_timestamp [18:43:25]File name is /storage/kkm_last_timestamp [18:43:25]Write 4 bytes [18:43:25]NVStorageSaveData done [18:43:25]ExternCall_PrintAddStr [18:43:25]wPrintStart [18:43:25]Write to MH i2c: 01 00 00 50 B0 00 [18:43:25]Write i2c OK [18:43:25]MH_I2C_Read... [18:43:25]Read from MH i2c: 01 [18:43:25]MH_I2C_Read... [18:43:25]Read from MH i2c: 01 07 00 [18:43:25]MH_I2C_Read... [18:43:25]Read from MH i2c: 01 07 00 50 B0 00 00 00 00 00 FF 0F 15 [18:43:25]RasterBufferAndPrint [18:43:25]line Счет N : (1)347694 [18:43:25]line ИНН: 02508201610067 [18:43:25]line Контрольно-Кассовый Чек [18:43:25]line ПРОДАЖА [18:43:25]line ТРК (МРК, ГНК) : 32 [18:43:25]line Товар: 2710124130 [18:43:25]line Аи-92-К-5 [18:43:25]line 6.230 * 64.30 [18:43:25]line = 400.59 [18:43:25]line НДС 12% НСП 1% [18:43:25]line > о реализуемом товаре [18:43:25]line ОКРУГЛЕНИЕ: -0.59 [18:43:25]line ИТОГО: 400.00 [18:43:25]line Внесено: 400.00 [18:43:25]line СДАЧА: 0.00 [18:43:25]line НСП 1% : 3.54 [18:43:25]line НДС 12% : 42.54 [18:43:25]line Наличными: 400.00 [18:43:25]line Безнал.: 0.00 [18:43:25]line Место: АЗС № 108 "Партнер Нефть" [18:43:25]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [18:43:25]line СНО: Общий режим [18:43:25]line Чек 215 14.04.2024 18:43 [18:43:25]line Смена: 116 ФФД: 1.0 [18:43:25]line ЗНМ: 0300000027 [18:43:25]line РНМ: 0000138879044617 [18:43:25]line Версия ККМ: 001 [18:43:25]line ФМ: 0000000000963154 [18:43:25]line ФД: 29305 [18:43:25]line ФПД: 14939625885055 [18:43:25]line 1/tax-web-control/client/api/v1/ticket?date=20240414T184335&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29305&fm=14939625885055&tin=02508201610067®Number=0000138879044617&sum=40000 [18:43:26]OFD Sender: Processing packet 29305 [packets to send 8, broken 7] [18:43:26]ProducePacketName [18:43:26]name=ofd_packets/00029305 [18:43:26]OFD Sender: To server: pG, [18:43:26]CommunicateWithHost lk.salyk.kg:30040 [18:43:26]ConnectInit lk.salyk.kg [18:43:26]written 0, free lines is 4095 [18:43:26]Connected sock=9 [18:43:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 CA 90 07 01 EB 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 D7 00 00 00 F4 03 04 00 D7 23 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 79 72 00 00 35 04 06 00 0D 96 67 18 0D 7F 3C EA E0 E9 43 52 C4 99 [18:43:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 E2 D7 47 00 43 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 39 36 33 31 35 34 10 04 04 00 79 72 00 00 F4 03 04 00 7A CE 1B 66 B6 04 01 00 00 6A B9 7A 19 61 A2 B8 27 [18:43:26]CommunicateWithHost err = 0 [18:43:26]CheckOFDResponse [18:43:26]1017 (14) - 77093643461234 [18:43:26]1041 (16) - 0000000000963154 [18:43:26]1040 (4) - 29305 [18:43:26]1012 (4) - 14.04.2024 12:39 [18:43:26]1206 (1) - 0 [18:43:26]OFD Sender: Remove packet 29305 [18:43:26]ProducePacketName [18:43:26]name=ofd_packets/00029305 [18:43:26]NVStorageDeleteData [18:43:26]Write to MH i2c: 01 00 00 7A B0 2A [18:43:26]Write i2c OK [18:43:26]MH_I2C_Read... [18:43:26]Read from MH i2c: 01 [18:43:26]MH_I2C_Read... [18:43:26]Read from MH i2c: 01 07 00 [18:43:26]MH_I2C_Read... [18:43:26]Read from MH i2c: 01 07 00 7A B0 00 00 00 00 00 E0 0C 1D [18:43:26]RasterBufferAndPrint [18:43:26]line [18:43:26]line [18:43:26]line [18:43:26]line [18:43:26]line [18:43:26]written 0, free lines is 3303 [18:43:26]MH_Cut [18:43:26]Write to MH i2c: D1 01 00 81 B0 01 03 [18:43:26]Write i2c OK [18:43:26]MH_I2C_Read... [18:43:26]Read from MH i2c: D1 [18:43:26]MH_I2C_Read... [18:43:26]Read from MH i2c: D1 01 00 [18:43:26]MH_I2C_Read... [18:43:26]Read from MH i2c: D1 01 00 81 B0 00 02 [18:43:26]Write to MH i2c: 01 00 00 82 B0 32 [18:43:26]Write i2c OK [18:43:26]MH_I2C_Read... [18:43:27]OFD Sender: No OFD packet to send [18:43:27]*** Cut start [18:43:27]*** Partial cut [18:43:27]*** CUTSNS_PIN = 1 [18:43:27]*** CUTSNS_PIN = 0 [18:43:27]*** Brake cut motor [18:43:28]Read from MH i2c: 01 [18:43:28]MH_I2C_Read... [18:43:28]*** Stop cut motor [18:43:28]*** Cut end [18:43:28]Read from MH i2c: 01 07 00 [18:43:28]MH_I2C_Read... [18:43:28]Read from MH i2c: 01 07 00 82 B0 00 00 00 00 00 FF 0F 47 [18:43:28]process_action close_receipt done [18:43:28]requested_data is exist [18:43:28]produce_requested_data [18:43:28]requested_item fm.sn is exist - process it [18:43:28]wFMCommunicate request_size=4 [18:43:28]MH_SAM_APDU [18:43:28]CAPDU: 80 11 00 00 [18:43:28]Write to MH i2c: E2 08 00 83 B0 80 11 00 00 00 00 00 00 AD [18:43:28]Write i2c OK [18:43:28]MH_I2C_Read... [18:43:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:43:28]Read from MH i2c: E2 [18:43:28]MH_I2C_Read... [18:43:28]Read from MH i2c: E2 17 00 [18:43:28]MH_I2C_Read... [18:43:28]Read from MH i2c: E2 17 00 83 B0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 FC [18:43:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:43:28]wFMCommunicate OK [18:43:28]requested_item fd.num is exist - process it [18:43:28]SAM_PROTO_GetFieldsCounters [18:43:28]wFMCommunicate request_size=4 [18:43:28]MH_SAM_APDU [18:43:28]CAPDU: 80 13 00 00 [18:43:28]Write to MH i2c: E2 08 00 84 B0 80 13 00 00 00 00 00 00 B0 [18:43:28]Write i2c OK [18:43:28]MH_I2C_Read... [18:43:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:43:28]Read from MH i2c: E2 [18:43:28]MH_I2C_Read... [18:43:28]Read from MH i2c: E2 62 00 [18:43:28]MH_I2C_Read... [18:43:28]Read from MH i2c: E2 62 00 84 B0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 79 72 00 00 0E 04 04 00 74 00 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 D2 [18:43:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 79 72 00 00 0E 04 04 00 74 00 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 [18:43:28]wFMCommunicate OK [18:43:28]SAM_PROTO_GetFieldsCounters done [18:43:28]requested_item shift.num is exist - process it [18:43:28]requested_item shift.opened is exist - process it [18:43:28]req_shift_opened [18:43:28]FM_GetShiftState [18:43:28]SAM_PROTO_GetShiftState [18:43:28]wFMCommunicate request_size=4 [18:43:28]MH_SAM_APDU [18:43:28]CAPDU: 80 13 01 00 [18:43:28]Write to MH i2c: E2 08 00 85 B0 80 13 01 00 00 00 00 00 B2 [18:43:28]Write i2c OK [18:43:28]MH_I2C_Read... [18:43:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:43:28]Read from MH i2c: E2 [18:43:28]MH_I2C_Read... [18:43:28]Read from MH i2c: E2 0E 00 [18:43:28]MH_I2C_Read... [18:43:28]Read from MH i2c: E2 0E 00 85 B0 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 5E [18:43:28]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [18:43:28]wFMCommunicate OK [18:43:28]SAM_PROTO_GetShiftState done [18:43:28]FM_GetShiftState done [18:43:28]req_shift_opened done [18:43:28]requested_item shift.open_date is exist - process it [18:43:28]req_shift_open_date [18:43:28]req_shift_open_date done [18:43:28]produce_requested_data done [18:43:28]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29305,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [18:43:28]process_action_free close_receipt [18:43:28]json_value_free [18:43:28]json_value_free done [18:43:28]process_json_proto returns [18:43:28]Send response to host [18:43:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29305,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [18:43:28]free response buf [18:43:28]execute_script done [18:43:28]execute_script returns [18:43:28]free content buf [18:43:28]Sock 7.Close socket [18:43:28]Sock 7.Thread stoped [18:43:32]OFD Sender: No OFD packet to send [18:43:37]OFD Sender: No OFD packet to send [18:43:42]OFD Sender: No OFD packet to send [18:43:47]OFD Sender: No OFD packet to send [18:43:52]OFD Sender: No OFD packet to send [18:43:57]OFD Sender: No OFD packet to send [18:44:02]OFD Sender: No OFD packet to send [18:44:07]OFD Sender: No OFD packet to send [18:44:12]OFD Sender: No OFD packet to send [18:44:17]OFD Sender: No OFD packet to send [18:44:22]OFD Sender: No OFD packet to send [18:44:27]OFD Sender: No OFD packet to send [18:44:32]OFD Sender: No OFD packet to send [18:44:37]OFD Sender: No OFD packet to send [18:44:42]OFD Sender: No OFD packet to send [18:44:47]OFD Sender: No OFD packet to send [18:44:52]OFD Sender: No OFD packet to send [18:44:57]OFD Sender: No OFD packet to send [18:45:02]OFD Sender: No OFD packet to send [18:45:07]OFD Sender: No OFD packet to send [18:45:12]OFD Sender: No OFD packet to send [18:45:17]OFD Sender: No OFD packet to send [18:45:22]OFD Sender: No OFD packet to send [18:45:27]OFD Sender: No OFD packet to send [18:45:32]OFD Sender: No OFD packet to send [18:45:37]OFD Sender: No OFD packet to send [18:45:42]OFD Sender: No OFD packet to send [18:45:47]OFD Sender: No OFD packet to send [18:45:52]OFD Sender: No OFD packet to send [18:45:57]OFD Sender: No OFD packet to send [18:46:02]OFD Sender: No OFD packet to send [18:46:07]OFD Sender: No OFD packet to send [18:46:12]OFD Sender: No OFD packet to send [18:46:17]OFD Sender: No OFD packet to send [18:46:22]OFD Sender: No OFD packet to send [18:46:27]OFD Sender: No OFD packet to send [18:46:32]OFD Sender: No OFD packet to send [18:46:37]OFD Sender: No OFD packet to send [18:46:42]OFD Sender: No OFD packet to send [18:46:47]OFD Sender: No OFD packet to send [18:46:52]OFD Sender: No OFD packet to send [18:46:57]OFD Sender: No OFD packet to send [18:47:02]OFD Sender: No OFD packet to send [18:47:07]OFD Sender: No OFD packet to send [18:47:12]OFD Sender: No OFD packet to send [18:47:17]OFD Sender: No OFD packet to send [18:47:22]OFD Sender: No OFD packet to send [18:47:27]OFD Sender: No OFD packet to send [18:47:28]accept exits with 10 [18:47:28]New connection [18:47:28]New thread 3066928484 created [18:47:28]Thread 3066785124 joined [18:47:28]Waiting for new connection... [18:47:28] Sock 10.Parse request [18:47:28]Sock 10.Check first char [18:47:28]Sock 10.First char is OK [18:47:28]request: POST /json_proto HTTP/1.0 [18:47:28]Method: POST [18:47:28]URL: /json_proto [18:47:28]Method is POST - this is cgi request [18:47:28]url: /json_proto [18:47:28]query_string will be loaded in cgi processing [18:47:28]execute_cgi json_proto POST (null) [18:47:28]execute_cgi path=json_proto method=POST [18:47:28]POST find Content-Length [18:47:28]Host: 172.17.33.3:8080 [18:47:28]Content-Length: 642 [18:47:28]Content-Type: application/json [18:47:28] [18:47:28]POST finish read [18:47:28]Found Content-Length = 642 [18:47:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347695", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 20.000, "sum" : 1286.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1286.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:47:28]execute_script... [18:47: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)347695", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 20.000, "sum" : 1286.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1286.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:47:28]POST & json_proto [18:47:28]process_json_proto [18:47:28]json parsed OK: [18:47:28]protocol is kg_v1.0 [18:47:28]action value=close_receipt [18:47:28]process_action close_receipt [18:47:28]cmd_close_receipt [18:47:28]MH_GetDate [18:47:28]Write to MH i2c: F0 00 00 86 B0 25 [18:47:28]Write i2c OK [18:47:28]MH_I2C_Read... [18:47:28]Read from MH i2c: F0 [18:47:28]MH_I2C_Read... [18:47:28]Read from MH i2c: F0 09 00 [18:47:28]MH_I2C_Read... [18:47:28]Read from MH i2c: F0 09 00 86 B0 00 CB 24 1C 66 23 5B 8F 65 11 [18:47:28]GetLastDocTimeStamp 1713120215 [18:47:28]current date 1713120459 [18:47:28]FM_GetShiftState [18:47:28]SAM_PROTO_GetShiftState [18:47:28]wFMCommunicate request_size=4 [18:47:28]MH_SAM_APDU [18:47:28]CAPDU: 80 13 01 00 [18:47:28]Write to MH i2c: E2 08 00 87 B0 80 13 01 00 00 00 00 00 B4 [18:47:28]Write i2c OK [18:47:28]MH_I2C_Read... [18:47:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:47:28]Read from MH i2c: E2 [18:47:28]MH_I2C_Read... [18:47:28]Read from MH i2c: E2 0E 00 [18:47:28]MH_I2C_Read... [18:47:28]Read from MH i2c: E2 0E 00 87 B0 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 60 [18:47:28]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [18:47:28]wFMCommunicate OK [18:47:28]SAM_PROTO_GetShiftState done [18:47:28]FM_GetShiftState done [18:47:28]opened in 1713053951 [18:47:28]opened+sec_in_day 1713140351 [18:47:28]quantity*price = 128600 [18:47:28]sum+1 = 128601 [18:47:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1286.00 НСП 1% : 11.38 НДС 12% : 136.57 Наличными: 1286.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 216 14.04.2024 18:47 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29306 ФПД: 54364398447947 1/tax-web-control/client/api/v1/ticket?date=20240414T184739&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29306&fm=54364398447947&tin=02508201610067®Number=0000138879044617&sum=128600 [18:47:29]StoreToDocumentArchive [18:47:29]shift 116 fd 29306 [18:47:29]save to /storage/0116/doc_00029306 [18:47:29]save last doc name /storage/0116/doc_00029306 to /storage/kkm_last_doc_name [18:47:29]save OK [18:47:29]Clear old archive folders... [18:47:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:47:29]tlvbuf is 012F39C0 [18:47:29]SAM_PROTO_ClearQueue [18:47:29]wFMCommunicate request_size=4 [18:47:29]MH_SAM_APDU [18:47:29]CAPDU: 80 09 00 00 [18:47:29]Write to MH i2c: E2 08 00 94 B0 80 09 00 00 00 00 00 00 B6 [18:47:29]Write i2c OK [18:47:29]MH_I2C_Read... [18:47:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:47:29]Read from MH i2c: E2 [18:47:29]MH_I2C_Read... [18:47:29]Read from MH i2c: E2 03 00 [18:47:29]MH_I2C_Read... [18:47:29]Read from MH i2c: E2 03 00 94 B0 00 90 00 B8 [18:47:29]RAPDU: 90 00 [18:47:29]wFMCommunicate OK [18:47:29]SAM_PROTO_ClearQueue done [18:47:29]KKMCreateOFDPacket [18:47:29]OFDProtocolAddRootSTLVToBuf [18:47:29]FM_MakeSignedData [18:47:29]FM_MakeSignedData [18:47:29]SAM_PROTO_SignData [18:47:29]wFMCommunicate request_size=4 [18:47:29]MH_SAM_APDU [18:47:29]CAPDU: 80 0D 01 02 [18:47:29]Write to MH i2c: E2 08 00 95 B0 80 0D 01 02 00 00 00 00 BE [18:47:29]Write i2c OK [18:47:29]MH_I2C_Read... [18:47:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:47:29]Read from MH i2c: E2 [18:47:29]MH_I2C_Read... [18:47:29]Read from MH i2c: E2 03 00 [18:47:29]MH_I2C_Read... [18:47:29]Read from MH i2c: E2 03 00 95 B0 00 90 00 B9 [18:47:29]RAPDU: 90 00 [18:47:29]wFMCommunicate OK [18:47:29]wFMCommunicate request_size=255 [18:47:29]MH_SAM_APDU [18:47: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 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 D8 00 00 00 F4 03 04 00 CB 24 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7A 72 00 00 35 04 06 00 31 [18:47:29]Write to MH i2c: E2 02 01 96 B0 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 D8 00 00 00 F4 03 04 00 CB 24 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7A 72 00 00 35 04 06 00 31 00 00 55 [18:47:29]Write i2c OK [18:47:29]MH_I2C_Read... [18:47:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:47:29]Read from MH i2c: E2 [18:47:29]MH_I2C_Read... [18:47:29]Read from MH i2c: E2 03 00 [18:47:29]MH_I2C_Read... [18:47:29]Read from MH i2c: E2 03 00 96 B0 00 90 00 BA [18:47:29]RAPDU: 90 00 [18:47:29]wFMCommunicate OK [18:47:29]wFMCommunicate request_size=10 [18:47:29]MH_SAM_APDU [18:47:29]CAPDU: 80 0D 02 02 05 71 B2 A8 6D 4B [18:47:29]Write to MH i2c: E2 0D 00 97 B0 80 0D 02 02 05 00 71 B2 A8 6D 4B 00 00 4E [18:47:29]Write i2c OK [18:47:29]MH_I2C_Read... [18:47:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:47:29]Read from MH i2c: E2 [18:47:29]MH_I2C_Read... [18:47:29]Read from MH i2c: E2 03 00 [18:47:29]MH_I2C_Read... [18:47:29]Read from MH i2c: E2 03 00 97 B0 00 90 00 BB [18:47:29]RAPDU: 90 00 [18:47:29]wFMCommunicate OK [18:47:29]wFMCommunicate request_size=4 [18:47:29]MH_SAM_APDU [18:47:29]CAPDU: 80 0D 03 02 [18:47:29]Write to MH i2c: E2 08 00 98 B0 80 0D 03 02 00 00 00 00 C3 [18:47:29]Write i2c OK [18:47:29]MH_I2C_Read... [18:47:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:47:29]Read from MH i2c: E2 [18:47:29]MH_I2C_Read... [18:47:29]Read from MH i2c: E2 0B 00 [18:47:29]MH_I2C_Read... [18:47:29]Read from MH i2c: E2 0B 00 98 B0 00 93 AE FE F5 95 AB 32 A0 90 00 0A [18:47:29]RAPDU: 93 AE FE F5 95 AB 32 A0 90 00 [18:47:29]wFMCommunicate OK [18:47:29]SAM_PROTO_SignData done [18:47:29]FM_MakeSignedData done [18:47:29]CreateOFDProtocolMessage [18:47:29]wFMCommunicate request_size=4 [18:47:29]MH_SAM_APDU [18:47:29]CAPDU: 80 11 00 00 [18:47:29]Write to MH i2c: E2 08 00 99 B0 80 11 00 00 00 00 00 00 C3 [18:47:29]Write i2c OK [18:47:29]MH_I2C_Read... [18:47:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:47:29]Read from MH i2c: E2 [18:47:29]MH_I2C_Read... [18:47:29]Read from MH i2c: E2 17 00 [18:47:29]MH_I2C_Read... [18:47:29]Read from MH i2c: E2 17 00 99 B0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 12 [18:47:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:47:29]wFMCommunicate OK [18:47:29]CreateOFDProtocolMessage done [18:47:29]OFDSenderStorePacket 29306 [18:47:29]StoreOFDPacket docnum=29306 [18:47:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 6C 55 07 01 7F 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 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 D8 00 00 00 F4 03 04 00 CB 24 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7A 72 00 00 35 04 06 00 31 71 B2 A8 6D 4B 93 AE FE F5 95 AB 32 A0 [18:47:29]CheckFolder [18:47:29]dirname=/storage/ofd_packets [18:47:29]CheckFolder done [18:47:29]ProducePacketName [18:47:29]name=ofd_packets/00029306 [18:47:29]NVStorageSaveData ofd_packets/00029306 [18:47:29]File name is /storage/ofd_packets/00029306 [18:47:29]Write 301 bytes [18:47:29]NVStorageSaveData done [18:47:29]OFDSenderStorePacket done [18:47:29]KKMCreateOFDPacket done [18:47:29]NVStorageSaveData kkm_last_timestamp [18:47:29]File name is /storage/kkm_last_timestamp [18:47:29]Write 4 bytes [18:47:29]NVStorageSaveData done [18:47:29]ExternCall_PrintAddStr [18:47:29]wPrintStart [18:47:29]Write to MH i2c: 01 00 00 9A B0 4A [18:47:29]Write i2c OK [18:47:29]MH_I2C_Read... [18:47:29]Read from MH i2c: 01 [18:47:29]MH_I2C_Read... [18:47:29]Read from MH i2c: 01 07 00 [18:47:29]MH_I2C_Read... [18:47:29]Read from MH i2c: 01 07 00 9A B0 00 00 00 00 00 FF 0F 5F [18:47:29]RasterBufferAndPrint [18:47:29]line Счет N : (1)347695 [18:47:29]line ИНН: 02508201610067 [18:47:29]line Контрольно-Кассовый Чек [18:47:29]line ПРОДАЖА [18:47:29]line ТРК (МРК, ГНК) : 13 [18:47:29]line Товар: 2710124130 [18:47:29]line Аи-92-К-5 [18:47:29]line 20.000 * 64.30 [18:47:29]line = 1286.00 [18:47:29]line НДС 12% НСП 1% [18:47:29]line > о реализуемом товаре [18:47:29]line ИТОГО: 1286.00 [18:47:29]line НСП 1% : 11.38 [18:47:29]line НДС 12% : 136.57 [18:47:29]line Наличными: 1286.00 [18:47:29]line Безнал.: 0.00 [18:47:29]line Место: АЗС № 108 "Партнер Нефть" [18:47:29]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [18:47:29]line СНО: Общий режим [18:47:29]line Чек 216 14.04.2024 18:47 [18:47:29]line Смена: 116 ФФД: 1.0 [18:47:29]line ЗНМ: 0300000027 [18:47:29]line РНМ: 0000138879044617 [18:47:29]line Версия ККМ: 001 [18:47:29]line ФМ: 0000000000963154 [18:47:29]line ФД: 29306 [18:47:29]line ФПД: 54364398447947 [18:47:29]line 1/tax-web-control/client/api/v1/ticket?date=20240414T184739&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29306&fm=54364398447947&tin=02508201610067®Number=0000138879044617&sum=128600 [18:47:30]written 0, free lines is 4095 [18:47:30]OFD Sender: Processing packet 29306 [packets to send 8, broken 7] [18:47:30]ProducePacketName [18:47:30]name=ofd_packets/00029306 [18:47:30]OFD Sender: To server: pG, [18:47:30]CommunicateWithHost lk.salyk.kg:30040 [18:47:30]ConnectInit lk.salyk.kg [18:47:30]Connected sock=9 [18:47:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 6C 55 07 01 7F 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 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 D8 00 00 00 F4 03 04 00 CB 24 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7A 72 00 00 35 04 06 00 31 71 B2 A8 6D 4B 93 AE FE F5 95 AB 32 A0 [18:47:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 04 38 47 00 88 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 39 36 33 31 35 34 10 04 04 00 7A 72 00 00 F4 03 04 00 6E CF 1B 66 B6 04 01 00 00 A8 5E 75 D7 91 D9 FB BC [18:47:30]CommunicateWithHost err = 0 [18:47:30]CheckOFDResponse [18:47:30]1017 (14) - 77093643461234 [18:47:30]1041 (16) - 0000000000963154 [18:47:30]1040 (4) - 29306 [18:47:30]1012 (4) - 14.04.2024 12:43 [18:47:30]1206 (1) - 0 [18:47:30]OFD Sender: Remove packet 29306 [18:47:30]ProducePacketName [18:47:30]name=ofd_packets/00029306 [18:47:30]NVStorageDeleteData [18:47:30]Write to MH i2c: 01 00 00 C1 B0 71 [18:47:30]Write i2c OK [18:47:30]MH_I2C_Read... [18:47:30]Read from MH i2c: 01 [18:47:30]MH_I2C_Read... [18:47:30]Read from MH i2c: 01 07 00 [18:47:30]MH_I2C_Read... [18:47:30]Read from MH i2c: 01 07 00 C1 B0 00 00 00 00 00 FF 0C 83 [18:47:30]RasterBufferAndPrint [18:47:30]line [18:47:30]line [18:47:30]line [18:47:30]line [18:47:30]line [18:47:30]written 0, free lines is 3332 [18:47:30]MH_Cut [18:47:30]Write to MH i2c: D1 01 00 C8 B0 01 4A [18:47:30]Write i2c OK [18:47:30]MH_I2C_Read... [18:47:30]Read from MH i2c: D1 [18:47:30]MH_I2C_Read... [18:47:30]Read from MH i2c: D1 01 00 [18:47:30]MH_I2C_Read... [18:47:30]Read from MH i2c: D1 01 00 C8 B0 00 49 [18:47:30]Write to MH i2c: 01 00 00 C9 B0 79 [18:47:30]Write i2c OK [18:47:30]MH_I2C_Read... [18:47:31]OFD Sender: No OFD packet to send [18:47:31]*** Cut start [18:47:31]*** Partial cut [18:47:31]*** CUTSNS_PIN = 1 [18:47:31]*** CUTSNS_PIN = 0 [18:47:31]*** Brake cut motor [18:47:32]Read from MH i2c: 01 [18:47:32]MH_I2C_Read... [18:47:32]*** Stop cut motor [18:47:32]*** Cut end [18:47:32]Read from MH i2c: 01 07 00 [18:47:32]MH_I2C_Read... [18:47:32]Read from MH i2c: 01 07 00 C9 B0 00 00 00 00 00 FF 0F 8E [18:47:32]process_action close_receipt done [18:47:32]requested_data is exist [18:47:32]produce_requested_data [18:47:32]requested_item fm.sn is exist - process it [18:47:32]wFMCommunicate request_size=4 [18:47:32]MH_SAM_APDU [18:47:32]CAPDU: 80 11 00 00 [18:47:32]Write to MH i2c: E2 08 00 CA B0 80 11 00 00 00 00 00 00 F4 [18:47:32]Write i2c OK [18:47:32]MH_I2C_Read... [18:47:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:47:32]Read from MH i2c: E2 [18:47:32]MH_I2C_Read... [18:47:32]Read from MH i2c: E2 17 00 [18:47:32]MH_I2C_Read... [18:47:32]Read from MH i2c: E2 17 00 CA B0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 43 [18:47:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:47:32]wFMCommunicate OK [18:47:32]requested_item fd.num is exist - process it [18:47:32]SAM_PROTO_GetFieldsCounters [18:47:32]wFMCommunicate request_size=4 [18:47:32]MH_SAM_APDU [18:47:32]CAPDU: 80 13 00 00 [18:47:32]Write to MH i2c: E2 08 00 CB B0 80 13 00 00 00 00 00 00 F7 [18:47:32]Write i2c OK [18:47:32]MH_I2C_Read... [18:47:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:47:32]Read from MH i2c: E2 [18:47:32]MH_I2C_Read... [18:47:32]Read from MH i2c: E2 62 00 [18:47:32]MH_I2C_Read... [18:47:32]Read from MH i2c: E2 62 00 CB B0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 7A 72 00 00 0E 04 04 00 74 00 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 1D [18:47:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 7A 72 00 00 0E 04 04 00 74 00 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 [18:47:32]wFMCommunicate OK [18:47:32]SAM_PROTO_GetFieldsCounters done [18:47:32]requested_item shift.num is exist - process it [18:47:32]requested_item shift.opened is exist - process it [18:47:32]req_shift_opened [18:47:32]FM_GetShiftState [18:47:32]SAM_PROTO_GetShiftState [18:47:32]wFMCommunicate request_size=4 [18:47:32]MH_SAM_APDU [18:47:32]CAPDU: 80 13 01 00 [18:47:32]Write to MH i2c: E2 08 00 CC B0 80 13 01 00 00 00 00 00 F9 [18:47:32]Write i2c OK [18:47:32]MH_I2C_Read... [18:47:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:47:32]Read from MH i2c: E2 [18:47:32]MH_I2C_Read... [18:47:32]Read from MH i2c: E2 0E 00 [18:47:32]MH_I2C_Read... [18:47:32]Read from MH i2c: E2 0E 00 CC B0 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 A5 [18:47:32]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [18:47:32]wFMCommunicate OK [18:47:32]SAM_PROTO_GetShiftState done [18:47:32]FM_GetShiftState done [18:47:32]req_shift_opened done [18:47:32]requested_item shift.open_date is exist - process it [18:47:32]req_shift_open_date [18:47:32]req_shift_open_date done [18:47:32]produce_requested_data done [18:47:32]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29306,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [18:47:32]process_action_free close_receipt [18:47:32]json_value_free [18:47:32]json_value_free done [18:47:32]process_json_proto returns [18:47:32]Send response to host [18:47:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29306,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [18:47:32]free response buf [18:47:32]execute_script done [18:47:32]execute_script returns [18:47:32]free content buf [18:47:32]Sock 10.Close socket [18:47:32]Sock 10.Thread stoped [18:47:36]OFD Sender: No OFD packet to send [18:47:41]OFD Sender: No OFD packet to send [18:47:46]OFD Sender: No OFD packet to send [18:47:51]OFD Sender: No OFD packet to send [18:47:56]OFD Sender: No OFD packet to send [18:48:01]OFD Sender: No OFD packet to send [18:48:06]OFD Sender: No OFD packet to send [18:48:11]OFD Sender: No OFD packet to send [18:48:16]OFD Sender: No OFD packet to send [18:48:21]OFD Sender: No OFD packet to send [18:48:26]OFD Sender: No OFD packet to send [18:48:31]OFD Sender: No OFD packet to send [18:48:36]OFD Sender: No OFD packet to send [18:48:41]OFD Sender: No OFD packet to send [18:48:46]OFD Sender: No OFD packet to send [18:48:51]OFD Sender: No OFD packet to send [18:48:56]OFD Sender: No OFD packet to send [18:49:01]OFD Sender: No OFD packet to send [18:49:06]OFD Sender: No OFD packet to send [18:49:11]OFD Sender: No OFD packet to send [18:49:16]OFD Sender: No OFD packet to send [18:49:21]OFD Sender: No OFD packet to send [18:49:26]OFD Sender: No OFD packet to send [18:49:31]OFD Sender: No OFD packet to send [18:49:36]OFD Sender: No OFD packet to send [18:49:41]OFD Sender: No OFD packet to send [18:49:46]OFD Sender: No OFD packet to send [18:49:51]OFD Sender: No OFD packet to send [18:49:56]OFD Sender: No OFD packet to send [18:50:01]OFD Sender: No OFD packet to send [18:50:06]OFD Sender: No OFD packet to send [18:50:11]OFD Sender: No OFD packet to send [18:50:16]OFD Sender: No OFD packet to send [18:50:21]OFD Sender: No OFD packet to send [18:50:26]OFD Sender: No OFD packet to send [18:50:31]OFD Sender: No OFD packet to send [18:50:36]OFD Sender: No OFD packet to send [18:50:41]OFD Sender: No OFD packet to send [18:50:46]OFD Sender: No OFD packet to send [18:50:51]OFD Sender: No OFD packet to send [18:50:56]OFD Sender: No OFD packet to send [18:51:01]OFD Sender: No OFD packet to send [18:51:06]OFD Sender: No OFD packet to send [18:51:11]OFD Sender: No OFD packet to send [18:51:16]OFD Sender: No OFD packet to send [18:51:21]OFD Sender: No OFD packet to send [18:51:26]OFD Sender: No OFD packet to send [18:51:31]OFD Sender: No OFD packet to send [18:51:36]OFD Sender: No OFD packet to send [18:51:41]OFD Sender: No OFD packet to send [18:51:46]OFD Sender: No OFD packet to send [18:51:51]OFD Sender: No OFD packet to send [18:51:56]OFD Sender: No OFD packet to send [18:52:01]OFD Sender: No OFD packet to send [18:52:06]OFD Sender: No OFD packet to send [18:52:11]OFD Sender: No OFD packet to send [18:52:16]OFD Sender: No OFD packet to send [18:52:21]OFD Sender: No OFD packet to send [18:52:26]OFD Sender: No OFD packet to send [18:52:31]OFD Sender: No OFD packet to send [18:52:36]OFD Sender: No OFD packet to send [18:52:41]OFD Sender: No OFD packet to send [18:52:46]OFD Sender: No OFD packet to send [18:52:51]OFD Sender: No OFD packet to send [18:52:56]OFD Sender: No OFD packet to send [18:53:01]OFD Sender: No OFD packet to send [18:53:06]OFD Sender: No OFD packet to send [18:53:11]OFD Sender: No OFD packet to send [18:53:16]OFD Sender: No OFD packet to send [18:53:21]OFD Sender: No OFD packet to send [18:53:26]OFD Sender: No OFD packet to send [18:53:31]OFD Sender: No OFD packet to send [18:53:36]OFD Sender: No OFD packet to send [18:53:41]OFD Sender: No OFD packet to send [18:53:46]OFD Sender: No OFD packet to send [18:53:51]OFD Sender: No OFD packet to send [18:53:56]OFD Sender: No OFD packet to send [18:54:01]OFD Sender: No OFD packet to send [18:54:06]OFD Sender: No OFD packet to send [18:54:11]OFD Sender: No OFD packet to send [18:54:16]OFD Sender: No OFD packet to send [18:54:21]OFD Sender: No OFD packet to send [18:54:26]OFD Sender: No OFD packet to send [18:54:31]OFD Sender: No OFD packet to send [18:54:36]OFD Sender: No OFD packet to send [18:54:41]OFD Sender: No OFD packet to send [18:54:46]OFD Sender: No OFD packet to send [18:54:51]OFD Sender: No OFD packet to send [18:54:56]OFD Sender: No OFD packet to send [18:55:01]OFD Sender: No OFD packet to send [18:55:06]OFD Sender: No OFD packet to send [18:55:11]OFD Sender: No OFD packet to send [18:55:16]OFD Sender: No OFD packet to send [18:55:16]accept exits with 7 [18:55:16]New connection [18:55:16]New thread 3066785124 created [18:55:16]Thread 3066928484 joined [18:55:16]Waiting for new connection... [18:55:16] Sock 7.Parse request [18:55:16]Sock 7.Check first char [18:55:16]Sock 7.First char is OK [18:55:16]request: POST /json_proto HTTP/1.0 [18:55:16]Method: POST [18:55:16]URL: /json_proto [18:55:16]Method is POST - this is cgi request [18:55:16]url: /json_proto [18:55:16]query_string will be loaded in cgi processing [18:55:16]execute_cgi json_proto POST (null) [18:55:16]execute_cgi path=json_proto method=POST [18:55:16]POST find Content-Length [18:55:16]Host: 172.17.33.3:8080 [18:55:16]Content-Length: 674 [18:55:16]Content-Type: application/json [18:55:16] [18:55:16]POST finish read [18:55:16]Found Content-Length = 674 [18:55:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347696", "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.150, "sum" : 590.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 593.00, "total" : 590.00, "payments": [ { "type": 0, "sum" : 590.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:55:16]execute_script... [18:55: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)347696", "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.150, "sum" : 590.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 593.00, "total" : 590.00, "payments": [ { "type": 0, "sum" : 590.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:55:16]POST & json_proto [18:55:16]process_json_proto [18:55:16]json parsed OK: [18:55:16]protocol is kg_v1.0 [18:55:16]action value=close_receipt [18:55:16]process_action close_receipt [18:55:16]cmd_close_receipt [18:55:16]MH_GetDate [18:55:16]Write to MH i2c: F0 00 00 CD B0 6C [18:55:16]Write i2c OK [18:55:16]MH_I2C_Read... [18:55:16]Read from MH i2c: F0 [18:55:16]MH_I2C_Read... [18:55:16]Read from MH i2c: F0 09 00 [18:55:16]MH_I2C_Read... [18:55:16]Read from MH i2c: F0 09 00 CD B0 00 A0 26 1C 66 23 5B 8F 65 2F [18:55:16]GetLastDocTimeStamp 1713120459 [18:55:16]current date 1713120928 [18:55:16]FM_GetShiftState [18:55:16]SAM_PROTO_GetShiftState [18:55:16]wFMCommunicate request_size=4 [18:55:16]MH_SAM_APDU [18:55:16]CAPDU: 80 13 01 00 [18:55:16]Write to MH i2c: E2 08 00 CE B0 80 13 01 00 00 00 00 00 FB [18:55:16]Write i2c OK [18:55:16]MH_I2C_Read... [18:55:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:55:16]Read from MH i2c: E2 [18:55:16]MH_I2C_Read... [18:55:16]Read from MH i2c: E2 0E 00 [18:55:16]MH_I2C_Read... [18:55:16]Read from MH i2c: E2 0E 00 CE B0 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 A7 [18:55:16]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [18:55:16]wFMCommunicate OK [18:55:16]SAM_PROTO_GetShiftState done [18:55:16]FM_GetShiftState done [18:55:16]opened in 1713053951 [18:55:16]opened+sec_in_day 1713140351 [18:55:16]quantity*price = 59006 [18:55:16]sum+1 = 59007 [18:55:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 590.00 Внесено: 593.00 СДАЧА: 3.00 НСП 1% : 5.22 НДС 12% : 62.66 Наличными: 590.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 217 14.04.2024 18:55 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29307 ФПД: 71798379337637 1/tax-web-control/client/api/v1/ticket?date=20240414T185528&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29307&fm=71798379337637&tin=02508201610067®Number=0000138879044617&sum=59000 [18:55:17]StoreToDocumentArchive [18:55:17]shift 116 fd 29307 [18:55:17]save to /storage/0116/doc_00029307 [18:55:17]save last doc name /storage/0116/doc_00029307 to /storage/kkm_last_doc_name [18:55:17]save OK [18:55:17]Clear old archive folders... [18:55:17]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:55:17]tlvbuf is 01208620 [18:55:17]SAM_PROTO_ClearQueue [18:55:17]wFMCommunicate request_size=4 [18:55:17]MH_SAM_APDU [18:55:17]CAPDU: 80 09 00 00 [18:55:17]Write to MH i2c: E2 08 00 DB B0 80 09 00 00 00 00 00 00 FD [18:55:17]Write i2c OK [18:55:17]MH_I2C_Read... [18:55:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:55:17]Read from MH i2c: E2 [18:55:17]MH_I2C_Read... [18:55:17]Read from MH i2c: E2 03 00 [18:55:17]MH_I2C_Read... [18:55:17]Read from MH i2c: E2 03 00 DB B0 00 90 00 FF [18:55:17]RAPDU: 90 00 [18:55:17]wFMCommunicate OK [18:55:17]SAM_PROTO_ClearQueue done [18:55:17]KKMCreateOFDPacket [18:55:17]OFDProtocolAddRootSTLVToBuf [18:55:17]FM_MakeSignedData [18:55:17]FM_MakeSignedData [18:55:17]SAM_PROTO_SignData [18:55:17]wFMCommunicate request_size=4 [18:55:17]MH_SAM_APDU [18:55:17]CAPDU: 80 0D 01 02 [18:55:17]Write to MH i2c: E2 08 00 DC B0 80 0D 01 02 00 00 00 00 05 [18:55:17]Write i2c OK [18:55:17]MH_I2C_Read... [18:55:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:55:17]Read from MH i2c: E2 [18:55:17]MH_I2C_Read... [18:55:17]Read from MH i2c: E2 03 00 [18:55:17]MH_I2C_Read... [18:55:17]Read from MH i2c: E2 03 00 DC B0 00 90 00 00 [18:55:17]RAPDU: 90 00 [18:55:17]wFMCommunicate OK [18:55:17]wFMCommunicate request_size=255 [18:55:17]MH_SAM_APDU [18:55: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 D6 1F 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 7E E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 18 00 00 00 00 07 04 06 00 78 E6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 A0 26 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7B 72 00 00 35 04 06 00 41 4C DC E5 [18:55:17]Write to MH i2c: E2 02 01 DD B0 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 D6 1F 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 7E E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 18 00 00 00 00 07 04 06 00 78 E6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 A0 26 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7B 72 00 00 35 04 06 00 41 4C DC E5 00 00 66 [18:55:17]Write i2c OK [18:55:17]MH_I2C_Read... [18:55:18]Read from MH i2c: E2 [18:55:18]MH_I2C_Read... [18:55:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:55:18]Read from MH i2c: E2 03 00 [18:55:18]MH_I2C_Read... [18:55:18]Read from MH i2c: E2 03 00 DD B0 00 90 00 01 [18:55:18]RAPDU: 90 00 [18:55:18]wFMCommunicate OK [18:55:18]wFMCommunicate request_size=7 [18:55:18]MH_SAM_APDU [18:55:18]CAPDU: 80 0D 02 02 02 57 A5 [18:55:18]Write to MH i2c: E2 0A 00 DE B0 80 0D 02 02 02 00 57 A5 00 00 08 [18:55:18]Write i2c OK [18:55:18]MH_I2C_Read... [18:55:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:55:18]Read from MH i2c: E2 [18:55:18]MH_I2C_Read... [18:55:18]Read from MH i2c: E2 03 00 [18:55:18]MH_I2C_Read... [18:55:18]Read from MH i2c: E2 03 00 DE B0 00 90 00 02 [18:55:18]RAPDU: 90 00 [18:55:18]wFMCommunicate OK [18:55:18]wFMCommunicate request_size=4 [18:55:18]MH_SAM_APDU [18:55:18]CAPDU: 80 0D 03 02 [18:55:18]Write to MH i2c: E2 08 00 DF B0 80 0D 03 02 00 00 00 00 0A [18:55:18]Write i2c OK [18:55:18]MH_I2C_Read... [18:55:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:55:18]Read from MH i2c: E2 [18:55:18]MH_I2C_Read... [18:55:18]Read from MH i2c: E2 0B 00 [18:55:18]MH_I2C_Read... [18:55:18]Read from MH i2c: E2 0B 00 DF B0 00 F5 FF 6F 08 7F E9 8A 59 90 00 C1 [18:55:18]RAPDU: F5 FF 6F 08 7F E9 8A 59 90 00 [18:55:18]wFMCommunicate OK [18:55:18]SAM_PROTO_SignData done [18:55:18]FM_MakeSignedData done [18:55:18]CreateOFDProtocolMessage [18:55:18]wFMCommunicate request_size=4 [18:55:18]MH_SAM_APDU [18:55:18]CAPDU: 80 11 00 00 [18:55:18]Write to MH i2c: E2 08 00 E0 B0 80 11 00 00 00 00 00 00 0A [18:55:18]Write i2c OK [18:55:18]MH_I2C_Read... [18:55:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:55:18]Read from MH i2c: E2 [18:55:18]MH_I2C_Read... [18:55:18]Read from MH i2c: E2 17 00 [18:55:18]MH_I2C_Read... [18:55:18]Read from MH i2c: E2 17 00 E0 B0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 59 [18:55:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:55:18]wFMCommunicate OK [18:55:18]CreateOFDProtocolMessage done [18:55:18]OFDSenderStorePacket 29307 [18:55:18]StoreOFDPacket docnum=29307 [18:55:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 88 63 04 01 F0 2C 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 D6 1F 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 7E E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 18 00 00 00 00 07 04 06 00 78 E6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 A0 26 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7B 72 00 00 35 04 06 00 41 4C DC E5 57 A5 F5 FF 6F 08 7F E9 8A 59 [18:55:18]CheckFolder [18:55:18]dirname=/storage/ofd_packets [18:55:18]CheckFolder done [18:55:18]ProducePacketName [18:55:18]name=ofd_packets/00029307 [18:55:18]NVStorageSaveData ofd_packets/00029307 [18:55:18]File name is /storage/ofd_packets/00029307 [18:55:18]Write 298 bytes [18:55:18]NVStorageSaveData done [18:55:18]OFDSenderStorePacket done [18:55:18]KKMCreateOFDPacket done [18:55:18]NVStorageSaveData kkm_last_timestamp [18:55:18]File name is /storage/kkm_last_timestamp [18:55:18]Write 4 bytes [18:55:18]NVStorageSaveData done [18:55:18]ExternCall_PrintAddStr [18:55:18]wPrintStart [18:55:18]Write to MH i2c: 01 00 00 E1 B0 91 [18:55:18]Write i2c OK [18:55:18]MH_I2C_Read... [18:55:18]Read from MH i2c: 01 [18:55:18]MH_I2C_Read... [18:55:18]Read from MH i2c: 01 07 00 [18:55:18]MH_I2C_Read... [18:55:18]Read from MH i2c: 01 07 00 E1 B0 00 00 00 00 00 FF 0F A6 [18:55:18]RasterBufferAndPrint [18:55:18]line Счет N : (1)347696 [18:55:18]line ИНН: 02508201610067 [18:55:18]line Контрольно-Кассовый Чек [18:55:18]line ПРОДАЖА [18:55:18]line ТРК (МРК, ГНК) : 61 [18:55:18]line Товар: 2710194210 [18:55:18]line ДТ-К-5 [18:55:18]line 8.150 * 72.40 [18:55:18]line = 590.06 [18:55:18]line НДС 12% НСП 1% [18:55:18]line > о реализуемом товаре [18:55:18]line ОКРУГЛЕНИЕ: -0.06 [18:55:18]line ИТОГО: 590.00 [18:55:18]line Внесено: 593.00 [18:55:18]line СДАЧА: 3.00 [18:55:18]line НСП 1% : 5.22 [18:55:18]line НДС 12% : 62.66 [18:55:18]line Наличными: 590.00 [18:55:18]line Безнал.: 0.00 [18:55:18]line Место: АЗС № 108 "Партнер Нефть" [18:55:18]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [18:55:18]line СНО: Общий режим [18:55:18]line Чек 217 14.04.2024 18:55 [18:55:18]line Смена: 116 ФФД: 1.0 [18:55:18]line ЗНМ: 0300000027 [18:55:18]line РНМ: 0000138879044617 [18:55:18]line Версия ККМ: 001 [18:55:18]line ФМ: 0000000000963154 [18:55:18]line ФД: 29307 [18:55:18]line ФПД: 71798379337637 [18:55:18]line 1/tax-web-control/client/api/v1/ticket?date=20240414T185528&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29307&fm=71798379337637&tin=02508201610067®Number=0000138879044617&sum=59000 [18:55:18]OFD Sender: Processing packet 29307 [packets to send 8, broken 7] [18:55:18]ProducePacketName [18:55:18]name=ofd_packets/00029307 [18:55:18]OFD Sender: To server: pG, [18:55:18]CommunicateWithHost lk.salyk.kg:30040 [18:55:18]ConnectInit lk.salyk.kg [18:55:18]written 0, free lines is 4095 [18:55:18]Connected sock=10 [18:55:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 88 63 04 01 F0 2C 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 D6 1F 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 7E E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 18 00 00 00 00 07 04 06 00 78 E6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 A0 26 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7B 72 00 00 35 04 06 00 41 4C DC E5 57 A5 F5 FF 6F 08 7F E9 8A 59 [18:55:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 35 D2 47 00 BE DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7B 72 00 00 F4 03 04 00 43 D1 1B 66 B6 04 01 00 00 CD CF D5 70 CF F1 8B D6 [18:55:19]CommunicateWithHost err = 0 [18:55:19]CheckOFDResponse [18:55:19]1017 (14) - 77093643461234 [18:55:19]1041 (16) - 0000000000963154 [18:55:19]1040 (4) - 29307 [18:55:19]1012 (4) - 14.04.2024 12:51 [18:55:19]1206 (1) - 0 [18:55:19]OFD Sender: Remove packet 29307 [18:55:19]ProducePacketName [18:55:19]name=ofd_packets/00029307 [18:55:19]NVStorageDeleteData [18:55:19]Write to MH i2c: 01 00 00 0B B1 BC [18:55:19]Write i2c OK [18:55:19]MH_I2C_Read... [18:55:19]Read from MH i2c: 01 [18:55:19]MH_I2C_Read... [18:55:19]Read from MH i2c: 01 07 00 [18:55:19]MH_I2C_Read... [18:55:19]Read from MH i2c: 01 07 00 0B B1 00 00 00 00 00 D0 0C 9F [18:55:19]RasterBufferAndPrint [18:55:19]line [18:55:19]line [18:55:19]line [18:55:19]line [18:55:19]line [18:55:19]written 0, free lines is 3286 [18:55:19]MH_Cut [18:55:19]Write to MH i2c: D1 01 00 12 B1 01 95 [18:55:19]Write i2c OK [18:55:19]MH_I2C_Read... [18:55:19]Read from MH i2c: D1 [18:55:19]MH_I2C_Read... [18:55:19]Read from MH i2c: D1 01 00 [18:55:19]MH_I2C_Read... [18:55:19]Read from MH i2c: D1 01 00 12 B1 00 94 [18:55:19]Write to MH i2c: 01 00 00 13 B1 C4 [18:55:19]Write i2c OK [18:55:19]MH_I2C_Read... [18:55:19]OFD Sender: No OFD packet to send [18:55:19]*** Cut start [18:55:19]*** Partial cut [18:55:19]*** CUTSNS_PIN = 1 [18:55:20]*** CUTSNS_PIN = 0 [18:55:20]*** Brake cut motor [18:55:20]Read from MH i2c: 01 [18:55:20]MH_I2C_Read... [18:55:20]*** Stop cut motor [18:55:20]*** Cut end [18:55:20]Read from MH i2c: 01 07 00 [18:55:20]MH_I2C_Read... [18:55:20]Read from MH i2c: 01 07 00 13 B1 00 00 00 00 00 FF 0F D9 [18:55:20]process_action close_receipt done [18:55:20]requested_data is exist [18:55:20]produce_requested_data [18:55:20]requested_item fm.sn is exist - process it [18:55:20]wFMCommunicate request_size=4 [18:55:20]MH_SAM_APDU [18:55:20]CAPDU: 80 11 00 00 [18:55:20]Write to MH i2c: E2 08 00 14 B1 80 11 00 00 00 00 00 00 3F [18:55:20]Write i2c OK [18:55:20]MH_I2C_Read... [18:55:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:55:20]Read from MH i2c: E2 [18:55:20]MH_I2C_Read... [18:55:20]Read from MH i2c: E2 17 00 [18:55:20]MH_I2C_Read... [18:55:20]Read from MH i2c: E2 17 00 14 B1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 8E [18:55:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:55:20]wFMCommunicate OK [18:55:20]requested_item fd.num is exist - process it [18:55:20]SAM_PROTO_GetFieldsCounters [18:55:20]wFMCommunicate request_size=4 [18:55:20]MH_SAM_APDU [18:55:20]CAPDU: 80 13 00 00 [18:55:20]Write to MH i2c: E2 08 00 15 B1 80 13 00 00 00 00 00 00 42 [18:55:20]Write i2c OK [18:55:20]MH_I2C_Read... [18:55:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:55:20]Read from MH i2c: E2 [18:55:20]MH_I2C_Read... [18:55:20]Read from MH i2c: E2 62 00 [18:55:20]MH_I2C_Read... [18:55:20]Read from MH i2c: E2 62 00 15 B1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 7B 72 00 00 0E 04 04 00 74 00 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 6C [18:55:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 7B 72 00 00 0E 04 04 00 74 00 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 [18:55:20]wFMCommunicate OK [18:55:20]SAM_PROTO_GetFieldsCounters done [18:55:20]requested_item shift.num is exist - process it [18:55:20]requested_item shift.opened is exist - process it [18:55:20]req_shift_opened [18:55:20]FM_GetShiftState [18:55:20]SAM_PROTO_GetShiftState [18:55:20]wFMCommunicate request_size=4 [18:55:20]MH_SAM_APDU [18:55:20]CAPDU: 80 13 01 00 [18:55:20]Write to MH i2c: E2 08 00 16 B1 80 13 01 00 00 00 00 00 44 [18:55:20]Write i2c OK [18:55:20]MH_I2C_Read... [18:55:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:55:20]Read from MH i2c: E2 [18:55:20]MH_I2C_Read... [18:55:20]Read from MH i2c: E2 0E 00 [18:55:20]MH_I2C_Read... [18:55:20]Read from MH i2c: E2 0E 00 16 B1 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 F0 [18:55:20]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [18:55:20]wFMCommunicate OK [18:55:20]SAM_PROTO_GetShiftState done [18:55:20]FM_GetShiftState done [18:55:20]req_shift_opened done [18:55:20]requested_item shift.open_date is exist - process it [18:55:20]req_shift_open_date [18:55:20]req_shift_open_date done [18:55:20]produce_requested_data done [18:55:20]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29307,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [18:55:20]process_action_free close_receipt [18:55:20]json_value_free [18:55:20]json_value_free done [18:55:20]process_json_proto returns [18:55:20]Send response to host [18:55:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29307,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [18:55:20]free response buf [18:55:20]execute_script done [18:55:20]execute_script returns [18:55:20]free content buf [18:55:20]Sock 7.Close socket [18:55:20]Sock 7.Thread stoped [18:55:24]OFD Sender: No OFD packet to send [18:55:29]OFD Sender: No OFD packet to send [18:55:34]OFD Sender: No OFD packet to send [18:55:39]OFD Sender: No OFD packet to send [18:55:44]OFD Sender: No OFD packet to send [18:55:49]OFD Sender: No OFD packet to send [18:55:54]OFD Sender: No OFD packet to send [18:55:59]OFD Sender: No OFD packet to send [18:56:04]OFD Sender: No OFD packet to send [18:56:09]OFD Sender: No OFD packet to send [18:56:14]OFD Sender: No OFD packet to send [18:56:19]OFD Sender: No OFD packet to send [18:56:24]OFD Sender: No OFD packet to send [18:56:29]OFD Sender: No OFD packet to send [18:56:34]OFD Sender: No OFD packet to send [18:56:39]OFD Sender: No OFD packet to send [18:56:44]OFD Sender: No OFD packet to send [18:56:49]OFD Sender: No OFD packet to send [18:56:54]OFD Sender: No OFD packet to send [18:56:59]OFD Sender: No OFD packet to send [18:57:04]OFD Sender: No OFD packet to send [18:57:09]OFD Sender: No OFD packet to send [18:57:14]OFD Sender: No OFD packet to send [18:57:19]OFD Sender: No OFD packet to send [18:57:24]OFD Sender: No OFD packet to send [18:57:28]accept exits with 9 [18:57:28]New connection [18:57:28]New thread 3066928484 created [18:57:28]Thread 3066785124 joined [18:57:28]Waiting for new connection... [18:57:28] Sock 9.Parse request [18:57:28]Sock 9.Check first char [18:57:28]Sock 9.First char is OK [18:57:28]request: POST /json_proto HTTP/1.0 [18:57:28]Method: POST [18:57:28]URL: /json_proto [18:57:28]Method is POST - this is cgi request [18:57:28]url: /json_proto [18:57:28]query_string will be loaded in cgi processing [18:57:28]execute_cgi json_proto POST (null) [18:57:28]execute_cgi path=json_proto method=POST [18:57:28]POST find Content-Length [18:57:28]Host: 172.17.33.3:8080 [18:57:28]Content-Length: 677 [18:57:28]Content-Type: application/json [18:57:28] [18:57:28]POST finish read [18:57:28]Found Content-Length = 677 [18:57:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347697", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 8.010, "sum" : 515.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 515.00, "total" : 515.00, "payments": [ { "type": 0, "sum" : 515.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:57:28]execute_script... [18:57: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)347697", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 8.010, "sum" : 515.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 515.00, "total" : 515.00, "payments": [ { "type": 0, "sum" : 515.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:57:28]POST & json_proto [18:57:28]process_json_proto [18:57:28]json parsed OK: [18:57:28]protocol is kg_v1.0 [18:57:28]action value=close_receipt [18:57:28]process_action close_receipt [18:57:28]cmd_close_receipt [18:57:28]MH_GetDate [18:57:28]Write to MH i2c: F0 00 00 17 B1 B7 [18:57:28]Write i2c OK [18:57:28]MH_I2C_Read... [18:57:28]Read from MH i2c: F0 [18:57:28]MH_I2C_Read... [18:57:28]Read from MH i2c: F0 09 00 [18:57:28]MH_I2C_Read... [18:57:28]Read from MH i2c: F0 09 00 17 B1 00 23 27 1C 66 23 5B 8F 65 FE [18:57:28]GetLastDocTimeStamp 1713120928 [18:57:28]current date 1713121059 [18:57:28]FM_GetShiftState [18:57:28]SAM_PROTO_GetShiftState [18:57:28]wFMCommunicate request_size=4 [18:57:28]MH_SAM_APDU [18:57:28]CAPDU: 80 13 01 00 [18:57:28]Write to MH i2c: E2 08 00 18 B1 80 13 01 00 00 00 00 00 46 [18:57:28]Write i2c OK [18:57:28]MH_I2C_Read... [18:57:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:57:28]Read from MH i2c: E2 [18:57:28]MH_I2C_Read... [18:57:28]Read from MH i2c: E2 0E 00 [18:57:28]MH_I2C_Read... [18:57:28]Read from MH i2c: E2 0E 00 18 B1 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 F2 [18:57:28]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [18:57:28]wFMCommunicate OK [18:57:28]SAM_PROTO_GetShiftState done [18:57:28]FM_GetShiftState done [18:57:28]opened in 1713053951 [18:57:28]opened+sec_in_day 1713140351 [18:57:28]quantity*price = 51504 [18:57:28]sum+1 = 51505 [18:57:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 515.00 Внесено: 515.00 СДАЧА: 0.00 НСП 1% : 4.56 НДС 12% : 54.69 Наличными: 515.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 218 14.04.2024 18:57 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29308 ФПД: 98456356380081 1/tax-web-control/client/api/v1/ticket?date=20240414T185739&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29308&fm=98456356380081&tin=02508201610067®Number=0000138879044617&sum=51500 [18:57:29]StoreToDocumentArchive [18:57:29]shift 116 fd 29308 [18:57:29]save to /storage/0116/doc_00029308 [18:57:29]save last doc name /storage/0116/doc_00029308 to /storage/kkm_last_doc_name [18:57:29]save OK [18:57:29]Clear old archive folders... [18:57:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:57:29]tlvbuf is 01224400 [18:57:29]SAM_PROTO_ClearQueue [18:57:29]wFMCommunicate request_size=4 [18:57:29]MH_SAM_APDU [18:57:29]CAPDU: 80 09 00 00 [18:57:29]Write to MH i2c: E2 08 00 25 B1 80 09 00 00 00 00 00 00 48 [18:57:29]Write i2c OK [18:57:29]MH_I2C_Read... [18:57:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:57:29]Read from MH i2c: E2 [18:57:29]MH_I2C_Read... [18:57:29]Read from MH i2c: E2 03 00 [18:57:29]MH_I2C_Read... [18:57:29]Read from MH i2c: E2 03 00 25 B1 00 90 00 4A [18:57:29]RAPDU: 90 00 [18:57:29]wFMCommunicate OK [18:57:29]SAM_PROTO_ClearQueue done [18:57:29]KKMCreateOFDPacket [18:57:29]OFDProtocolAddRootSTLVToBuf [18:57:29]FM_MakeSignedData [18:57:29]FM_MakeSignedData [18:57:29]SAM_PROTO_SignData [18:57:29]wFMCommunicate request_size=4 [18:57:29]MH_SAM_APDU [18:57:29]CAPDU: 80 0D 01 02 [18:57:29]Write to MH i2c: E2 08 00 26 B1 80 0D 01 02 00 00 00 00 50 [18:57:29]Write i2c OK [18:57:29]MH_I2C_Read... [18:57:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:57:29]Read from MH i2c: E2 [18:57:29]MH_I2C_Read... [18:57:29]Read from MH i2c: E2 03 00 [18:57:29]MH_I2C_Read... [18:57:29]Read from MH i2c: E2 03 00 26 B1 00 90 00 4B [18:57:29]RAPDU: 90 00 [18:57:29]wFMCommunicate OK [18:57:29]wFMCommunicate request_size=255 [18:57:29]MH_SAM_APDU [18:57: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 1F 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 30 C9 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C C9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C8 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 15 00 00 00 00 07 04 06 00 2C C9 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 23 27 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7C 72 00 00 35 04 06 00 59 [18:57:29]Write to MH i2c: E2 02 01 27 B1 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1F 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 30 C9 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C C9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C8 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 15 00 00 00 00 07 04 06 00 2C C9 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 23 27 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7C 72 00 00 35 04 06 00 59 00 00 96 [18:57:29]Write i2c OK [18:57:29]MH_I2C_Read... [18:57:29]OFD Sender: No OFD packet to send [18:57:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:57:29]Read from MH i2c: E2 [18:57:29]MH_I2C_Read... [18:57:29]Read from MH i2c: E2 03 00 [18:57:29]MH_I2C_Read... [18:57:29]Read from MH i2c: E2 03 00 27 B1 00 90 00 4C [18:57:29]RAPDU: 90 00 [18:57:29]wFMCommunicate OK [18:57:29]wFMCommunicate request_size=10 [18:57:29]MH_SAM_APDU [18:57:29]CAPDU: 80 0D 02 02 05 8B A8 25 DD B1 [18:57:29]Write to MH i2c: E2 0D 00 28 B1 80 0D 02 02 05 00 8B A8 25 DD B1 00 00 43 [18:57:29]Write i2c OK [18:57:29]MH_I2C_Read... [18:57:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:57:29]Read from MH i2c: E2 [18:57:29]MH_I2C_Read... [18:57:29]Read from MH i2c: E2 03 00 [18:57:29]MH_I2C_Read... [18:57:29]Read from MH i2c: E2 03 00 28 B1 00 90 00 4D [18:57:29]RAPDU: 90 00 [18:57:29]wFMCommunicate OK [18:57:29]wFMCommunicate request_size=4 [18:57:29]MH_SAM_APDU [18:57:29]CAPDU: 80 0D 03 02 [18:57:29]Write to MH i2c: E2 08 00 29 B1 80 0D 03 02 00 00 00 00 55 [18:57:29]Write i2c OK [18:57:29]MH_I2C_Read... [18:57:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:57:29]Read from MH i2c: E2 [18:57:29]MH_I2C_Read... [18:57:29]Read from MH i2c: E2 0B 00 [18:57:29]MH_I2C_Read... [18:57:29]Read from MH i2c: E2 0B 00 29 B1 00 46 68 08 89 12 52 5E 67 90 00 BE [18:57:29]RAPDU: 46 68 08 89 12 52 5E 67 90 00 [18:57:29]wFMCommunicate OK [18:57:29]SAM_PROTO_SignData done [18:57:29]FM_MakeSignedData done [18:57:29]CreateOFDProtocolMessage [18:57:29]wFMCommunicate request_size=4 [18:57:29]MH_SAM_APDU [18:57:29]CAPDU: 80 11 00 00 [18:57:29]Write to MH i2c: E2 08 00 2A B1 80 11 00 00 00 00 00 00 55 [18:57:29]Write i2c OK [18:57:29]MH_I2C_Read... [18:57:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:57:30]Read from MH i2c: E2 [18:57:30]MH_I2C_Read... [18:57:30]Read from MH i2c: E2 17 00 [18:57:30]MH_I2C_Read... [18:57:30]Read from MH i2c: E2 17 00 2A B1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A4 [18:57:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:57:30]wFMCommunicate OK [18:57:30]CreateOFDProtocolMessage done [18:57:30]OFDSenderStorePacket 29308 [18:57:30]StoreOFDPacket docnum=29308 [18:57:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 45 DC 07 01 D1 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 4A 1F 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 30 C9 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C C9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C8 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 15 00 00 00 00 07 04 06 00 2C C9 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 23 27 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7C 72 00 00 35 04 06 00 59 8B A8 25 DD B1 46 68 08 89 12 52 5E 67 [18:57:30]CheckFolder [18:57:30]dirname=/storage/ofd_packets [18:57:30]CheckFolder done [18:57:30]ProducePacketName [18:57:30]name=ofd_packets/00029308 [18:57:30]NVStorageSaveData ofd_packets/00029308 [18:57:30]File name is /storage/ofd_packets/00029308 [18:57:30]Write 301 bytes [18:57:30]NVStorageSaveData done [18:57:30]OFDSenderStorePacket done [18:57:30]KKMCreateOFDPacket done [18:57:30]NVStorageSaveData kkm_last_timestamp [18:57:30]File name is /storage/kkm_last_timestamp [18:57:30]Write 4 bytes [18:57:30]NVStorageSaveData done [18:57:30]ExternCall_PrintAddStr [18:57:30]wPrintStart [18:57:30]Write to MH i2c: 01 00 00 2B B1 DC [18:57:30]Write i2c OK [18:57:30]MH_I2C_Read... [18:57:30]Read from MH i2c: 01 [18:57:30]MH_I2C_Read... [18:57:30]Read from MH i2c: 01 07 00 [18:57:30]MH_I2C_Read... [18:57:30]Read from MH i2c: 01 07 00 2B B1 00 00 00 00 00 FF 0F F1 [18:57:30]RasterBufferAndPrint [18:57:30]line Счет N : (1)347697 [18:57:30]line ИНН: 02508201610067 [18:57:30]line Контрольно-Кассовый Чек [18:57:30]line ПРОДАЖА [18:57:30]line ТРК (МРК, ГНК) : 23 [18:57:30]line Товар: 2710124130 [18:57:30]line Аи-92-К-5 [18:57:30]line 8.010 * 64.30 [18:57:30]line = 515.04 [18:57:30]line НДС 12% НСП 1% [18:57:30]line > о реализуемом товаре [18:57:30]line ОКРУГЛЕНИЕ: -0.04 [18:57:30]line ИТОГО: 515.00 [18:57:30]line Внесено: 515.00 [18:57:30]line СДАЧА: 0.00 [18:57:30]line НСП 1% : 4.56 [18:57:30]line НДС 12% : 54.69 [18:57:30]line Наличными: 515.00 [18:57:30]line Безнал.: 0.00 [18:57:30]line Место: АЗС № 108 "Партнер Нефть" [18:57:30]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [18:57:30]line СНО: Общий режим [18:57:30]line Чек 218 14.04.2024 18:57 [18:57:30]line Смена: 116 ФФД: 1.0 [18:57:30]line ЗНМ: 0300000027 [18:57:30]line РНМ: 0000138879044617 [18:57:30]line Версия ККМ: 001 [18:57:30]line ФМ: 0000000000963154 [18:57:30]line ФД: 29308 [18:57:30]line ФПД: 98456356380081 [18:57:30]line 1/tax-web-control/client/api/v1/ticket?date=20240414T185739&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29308&fm=98456356380081&tin=02508201610067®Number=0000138879044617&sum=51500 [18:57:30]OFD Sender: Processing packet 29308 [packets to send 8, broken 7] [18:57:30]ProducePacketName [18:57:30]name=ofd_packets/00029308 [18:57:30]OFD Sender: To server: pG, [18:57:30]CommunicateWithHost lk.salyk.kg:30040 [18:57:30]ConnectInit lk.salyk.kg [18:57:30]written 0, free lines is 4095 [18:57:30]Connected sock=10 [18:57:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 45 DC 07 01 D1 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 4A 1F 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 30 C9 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C C9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C8 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 15 00 00 00 00 07 04 06 00 2C C9 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 23 27 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7C 72 00 00 35 04 06 00 59 8B A8 25 DD B1 46 68 08 89 12 52 5E 67 [18:57:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 33 65 47 00 22 3F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7C 72 00 00 F4 03 04 00 C7 D1 1B 66 B6 04 01 00 00 45 E8 8D 6D 69 19 87 61 [18:57:30]CommunicateWithHost err = 0 [18:57:30]CheckOFDResponse [18:57:30]1017 (14) - 77093643461234 [18:57:30]1041 (16) - 0000000000963154 [18:57:30]1040 (4) - 29308 [18:57:30]1012 (4) - 14.04.2024 12:53 [18:57:30]1206 (1) - 0 [18:57:30]OFD Sender: Remove packet 29308 [18:57:30]ProducePacketName [18:57:30]name=ofd_packets/00029308 [18:57:30]NVStorageDeleteData [18:57:30]Write to MH i2c: 01 00 00 55 B1 06 [18:57:30]Write i2c OK [18:57:30]MH_I2C_Read... [18:57:30]Read from MH i2c: 01 [18:57:30]MH_I2C_Read... [18:57:30]Read from MH i2c: 01 07 00 [18:57:30]MH_I2C_Read... [18:57:30]Read from MH i2c: 01 07 00 55 B1 00 00 00 00 00 D2 0C EB [18:57:30]RasterBufferAndPrint [18:57:30]line [18:57:30]line [18:57:30]line [18:57:30]line [18:57:30]line [18:57:30]written 0, free lines is 3289 [18:57:30]MH_Cut [18:57:30]Write to MH i2c: D1 01 00 5C B1 01 DF [18:57:30]Write i2c OK [18:57:30]MH_I2C_Read... [18:57:30]Read from MH i2c: D1 [18:57:30]MH_I2C_Read... [18:57:30]Read from MH i2c: D1 01 00 [18:57:30]MH_I2C_Read... [18:57:30]Read from MH i2c: D1 01 00 5C B1 00 DE [18:57:30]Write to MH i2c: 01 00 00 5D B1 0E [18:57:30]Write i2c OK [18:57:30]MH_I2C_Read... [18:57:31]OFD Sender: No OFD packet to send [18:57:31]*** Cut start [18:57:31]*** Partial cut [18:57:31]*** CUTSNS_PIN = 1 [18:57:31]*** CUTSNS_PIN = 0 [18:57:31]*** Brake cut motor [18:57:32]Read from MH i2c: 01 [18:57:32]MH_I2C_Read... [18:57:32]*** Stop cut motor [18:57:32]*** Cut end [18:57:32]Read from MH i2c: 01 07 00 [18:57:32]MH_I2C_Read... [18:57:32]Read from MH i2c: 01 07 00 5D B1 00 00 00 00 00 FF 0F 23 [18:57:32]process_action close_receipt done [18:57:32]requested_data is exist [18:57:32]produce_requested_data [18:57:32]requested_item fm.sn is exist - process it [18:57:32]wFMCommunicate request_size=4 [18:57:32]MH_SAM_APDU [18:57:32]CAPDU: 80 11 00 00 [18:57:32]Write to MH i2c: E2 08 00 5E B1 80 11 00 00 00 00 00 00 89 [18:57:32]Write i2c OK [18:57:32]MH_I2C_Read... [18:57:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:57:32]Read from MH i2c: E2 [18:57:32]MH_I2C_Read... [18:57:32]Read from MH i2c: E2 17 00 [18:57:32]MH_I2C_Read... [18:57:32]Read from MH i2c: E2 17 00 5E B1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D8 [18:57:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:57:32]wFMCommunicate OK [18:57:32]requested_item fd.num is exist - process it [18:57:32]SAM_PROTO_GetFieldsCounters [18:57:32]wFMCommunicate request_size=4 [18:57:32]MH_SAM_APDU [18:57:32]CAPDU: 80 13 00 00 [18:57:32]Write to MH i2c: E2 08 00 5F B1 80 13 00 00 00 00 00 00 8C [18:57:32]Write i2c OK [18:57:32]MH_I2C_Read... [18:57:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:57:32]Read from MH i2c: E2 [18:57:32]MH_I2C_Read... [18:57:32]Read from MH i2c: E2 62 00 [18:57:32]MH_I2C_Read... [18:57:32]Read from MH i2c: E2 62 00 5F B1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 7C 72 00 00 0E 04 04 00 74 00 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 BA [18:57:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 7C 72 00 00 0E 04 04 00 74 00 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 [18:57:32]wFMCommunicate OK [18:57:32]SAM_PROTO_GetFieldsCounters done [18:57:32]requested_item shift.num is exist - process it [18:57:32]requested_item shift.opened is exist - process it [18:57:32]req_shift_opened [18:57:32]FM_GetShiftState [18:57:32]SAM_PROTO_GetShiftState [18:57:32]wFMCommunicate request_size=4 [18:57:32]MH_SAM_APDU [18:57:32]CAPDU: 80 13 01 00 [18:57:32]Write to MH i2c: E2 08 00 60 B1 80 13 01 00 00 00 00 00 8E [18:57:32]Write i2c OK [18:57:32]MH_I2C_Read... [18:57:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:57:32]Read from MH i2c: E2 [18:57:32]MH_I2C_Read... [18:57:32]Read from MH i2c: E2 0E 00 [18:57:32]MH_I2C_Read... [18:57:32]Read from MH i2c: E2 0E 00 60 B1 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 3A [18:57:32]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [18:57:32]wFMCommunicate OK [18:57:32]SAM_PROTO_GetShiftState done [18:57:32]FM_GetShiftState done [18:57:32]req_shift_opened done [18:57:32]requested_item shift.open_date is exist - process it [18:57:32]req_shift_open_date [18:57:32]req_shift_open_date done [18:57:32]produce_requested_data done [18:57:32]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29308,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [18:57:32]process_action_free close_receipt [18:57:32]json_value_free [18:57:32]json_value_free done [18:57:32]process_json_proto returns [18:57:32]Send response to host [18:57:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29308,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [18:57:32]free response buf [18:57:32]execute_script done [18:57:32]execute_script returns [18:57:32]free content buf [18:57:32]Sock 9.Close socket [18:57:32]Sock 9.Thread stoped [18:57:36]OFD Sender: No OFD packet to send [18:57:41]OFD Sender: No OFD packet to send [18:57:46]OFD Sender: No OFD packet to send [18:57:51]OFD Sender: No OFD packet to send [18:57:56]OFD Sender: No OFD packet to send [18:58:01]OFD Sender: No OFD packet to send [18:58:06]OFD Sender: No OFD packet to send [18:58:11]OFD Sender: No OFD packet to send [18:58:16]OFD Sender: No OFD packet to send [18:58:21]OFD Sender: No OFD packet to send [18:58:26]OFD Sender: No OFD packet to send [18:58:31]OFD Sender: No OFD packet to send [18:58:36]OFD Sender: No OFD packet to send [18:58:41]OFD Sender: No OFD packet to send [18:58:46]OFD Sender: No OFD packet to send [18:58:51]OFD Sender: No OFD packet to send [18:58:56]OFD Sender: No OFD packet to send [18:59:01]OFD Sender: No OFD packet to send [18:59:06]OFD Sender: No OFD packet to send [18:59:11]OFD Sender: No OFD packet to send [18:59:16]OFD Sender: No OFD packet to send [18:59:21]OFD Sender: No OFD packet to send [18:59:26]OFD Sender: No OFD packet to send [18:59:31]OFD Sender: No OFD packet to send [18:59:36]OFD Sender: No OFD packet to send [18:59:39]accept exits with 7 [18:59:39]New connection [18:59:39]New thread 3066785124 created [18:59:39]Thread 3066928484 joined [18:59:39]Waiting for new connection... [18:59:39] Sock 7.Parse request [18:59:39]Sock 7.Check first char [18:59:39]Sock 7.First char is OK [18:59:39]request: POST /json_proto HTTP/1.0 [18:59:39]Method: POST [18:59:39]URL: /json_proto [18:59:39]Method is POST - this is cgi request [18:59:39]url: /json_proto [18:59:39]query_string will be loaded in cgi processing [18:59:39]execute_cgi json_proto POST (null) [18:59:39]execute_cgi path=json_proto method=POST [18:59:39]POST find Content-Length [18:59:39]Host: 172.17.33.3:8080 [18:59:39]Content-Length: 681 [18:59:39]Content-Type: application/json [18:59:39] [18:59:39]POST finish read [18:59:39]Found Content-Length = 681 [18:59:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347698", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 21.280, "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" ] } } [18:59:39]execute_script... [18: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)347698", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 21.280, "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" ] } } [18:59:39]POST & json_proto [18:59:39]process_json_proto [18:59:39]json parsed OK: [18:59:39]protocol is kg_v1.0 [18:59:39]action value=close_receipt [18:59:39]process_action close_receipt [18:59:39]cmd_close_receipt [18:59:39]MH_GetDate [18:59:39]Write to MH i2c: F0 00 00 61 B1 01 [18:59:39]Write i2c OK [18:59:39]MH_I2C_Read... [18:59:39]Read from MH i2c: F0 [18:59:39]MH_I2C_Read... [18:59:39]Read from MH i2c: F0 09 00 [18:59:39]MH_I2C_Read... [18:59:39]Read from MH i2c: F0 09 00 61 B1 00 A6 27 1C 66 23 5B 8F 65 CB [18:59:39]GetLastDocTimeStamp 1713121059 [18:59:39]current date 1713121190 [18:59:39]FM_GetShiftState [18:59:39]SAM_PROTO_GetShiftState [18:59:39]wFMCommunicate request_size=4 [18:59:39]MH_SAM_APDU [18:59:39]CAPDU: 80 13 01 00 [18:59:39]Write to MH i2c: E2 08 00 62 B1 80 13 01 00 00 00 00 00 90 [18:59:39]Write i2c OK [18:59:39]MH_I2C_Read... [18:59:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:59:39]Read from MH i2c: E2 [18:59:39]MH_I2C_Read... [18:59:39]Read from MH i2c: E2 0E 00 [18:59:39]MH_I2C_Read... [18:59:39]Read from MH i2c: E2 0E 00 62 B1 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 3C [18:59:39]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [18:59:39]wFMCommunicate OK [18:59:39]SAM_PROTO_GetShiftState done [18:59:39]FM_GetShiftState done [18:59:39]opened in 1713053951 [18:59:39]opened+sec_in_day 1713140351 [18:59:39]quantity*price = 70011 [18:59:39]sum+1 = 70012 [18:59:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.35 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 219 14.04.2024 18:59 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29309 ФПД: 93214873275554 1/tax-web-control/client/api/v1/ticket?date=20240414T185950&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29309&fm=93214873275554&tin=02508201610067®Number=0000138879044617&sum=70000 [18:59:40]StoreToDocumentArchive [18:59:40]shift 116 fd 29309 [18:59:40]save to /storage/0116/doc_00029309 [18:59:40]save last doc name /storage/0116/doc_00029309 to /storage/kkm_last_doc_name [18:59:40]save OK [18:59:40]Clear old archive folders... [18:59:40]ProcessDocumentItem done err = 0, tmpTLVsize=250 [18:59:40]tlvbuf is 011B6F40 [18:59:40]SAM_PROTO_ClearQueue [18:59:40]wFMCommunicate request_size=4 [18:59:40]MH_SAM_APDU [18:59:40]CAPDU: 80 09 00 00 [18:59:40]Write to MH i2c: E2 08 00 6F B1 80 09 00 00 00 00 00 00 92 [18:59:40]Write i2c OK [18:59:40]MH_I2C_Read... [18:59:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:59:40]Read from MH i2c: E2 [18:59:40]MH_I2C_Read... [18:59:40]Read from MH i2c: E2 03 00 [18:59:40]MH_I2C_Read... [18:59:40]Read from MH i2c: E2 03 00 6F B1 00 90 00 94 [18:59:40]RAPDU: 90 00 [18:59:40]wFMCommunicate OK [18:59:40]SAM_PROTO_ClearQueue done [18:59:40]KKMCreateOFDPacket [18:59:40]OFDProtocolAddRootSTLVToBuf [18:59:40]FM_MakeSignedData [18:59:40]FM_MakeSignedData [18:59:40]SAM_PROTO_SignData [18:59:40]wFMCommunicate request_size=4 [18:59:40]MH_SAM_APDU [18:59:40]CAPDU: 80 0D 01 02 [18:59:40]Write to MH i2c: E2 08 00 70 B1 80 0D 01 02 00 00 00 00 9A [18:59:40]Write i2c OK [18:59:40]MH_I2C_Read... [18:59:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:59:40]Read from MH i2c: E2 [18:59:40]MH_I2C_Read... [18:59:40]Read from MH i2c: E2 03 00 [18:59:40]MH_I2C_Read... [18:59:40]Read from MH i2c: E2 03 00 70 B1 00 90 00 95 [18:59:40]RAPDU: 90 00 [18:59:40]wFMCommunicate OK [18:59:40]wFMCommunicate request_size=255 [18:59:40]MH_SAM_APDU [18:59: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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 20 53 00 00 00 00 00 37 04 06 00 DA 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 DB 00 00 00 F4 03 04 00 A6 27 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7D 72 00 00 35 04 06 00 54 C7 [18:59:40]Write to MH i2c: E2 02 01 71 B1 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 20 53 00 00 00 00 00 37 04 06 00 DA 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 DB 00 00 00 F4 03 04 00 A6 27 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7D 72 00 00 35 04 06 00 54 C7 00 00 99 [18:59:40]Write i2c OK [18:59:40]MH_I2C_Read... [18:59:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:59:40]Read from MH i2c: E2 [18:59:40]MH_I2C_Read... [18:59:40]Read from MH i2c: E2 03 00 [18:59:40]MH_I2C_Read... [18:59:40]Read from MH i2c: E2 03 00 71 B1 00 90 00 96 [18:59:40]RAPDU: 90 00 [18:59:40]wFMCommunicate OK [18:59:40]wFMCommunicate request_size=9 [18:59:40]MH_SAM_APDU [18:59:40]CAPDU: 80 0D 02 02 04 47 68 CC A2 [18:59:40]Write to MH i2c: E2 0C 00 72 B1 80 0D 02 02 04 00 47 68 CC A2 00 00 C2 [18:59:40]Write i2c OK [18:59:40]MH_I2C_Read... [18:59:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:59:40]Read from MH i2c: E2 [18:59:40]MH_I2C_Read... [18:59:40]Read from MH i2c: E2 03 00 [18:59:40]MH_I2C_Read... [18:59:40]Read from MH i2c: E2 03 00 72 B1 00 90 00 97 [18:59:40]RAPDU: 90 00 [18:59:40]wFMCommunicate OK [18:59:40]wFMCommunicate request_size=4 [18:59:40]MH_SAM_APDU [18:59:40]CAPDU: 80 0D 03 02 [18:59:40]Write to MH i2c: E2 08 00 73 B1 80 0D 03 02 00 00 00 00 9F [18:59:40]Write i2c OK [18:59:40]MH_I2C_Read... [18:59:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:59:41]Read from MH i2c: E2 [18:59:41]MH_I2C_Read... [18:59:41]Read from MH i2c: E2 0B 00 [18:59:41]MH_I2C_Read... [18:59:41]Read from MH i2c: E2 0B 00 73 B1 00 D2 D3 0A 1B AC 11 09 56 90 00 86 [18:59:41]RAPDU: D2 D3 0A 1B AC 11 09 56 90 00 [18:59:41]wFMCommunicate OK [18:59:41]SAM_PROTO_SignData done [18:59:41]FM_MakeSignedData done [18:59:41]CreateOFDProtocolMessage [18:59:41]wFMCommunicate request_size=4 [18:59:41]MH_SAM_APDU [18:59:41]CAPDU: 80 11 00 00 [18:59:41]Write to MH i2c: E2 08 00 74 B1 80 11 00 00 00 00 00 00 9F [18:59:41]Write i2c OK [18:59:41]MH_I2C_Read... [18:59:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:59:41]Read from MH i2c: E2 [18:59:41]MH_I2C_Read... [18:59:41]Read from MH i2c: E2 17 00 [18:59:41]MH_I2C_Read... [18:59:41]Read from MH i2c: E2 17 00 74 B1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 EE [18:59:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:59:41]wFMCommunicate OK [18:59:41]CreateOFDProtocolMessage done [18:59:41]OFDSenderStorePacket 29309 [18:59:41]StoreOFDPacket docnum=29309 [18:59:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 AB 48 06 01 DC 3E 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 20 53 00 00 00 00 00 37 04 06 00 DA 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 DB 00 00 00 F4 03 04 00 A6 27 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7D 72 00 00 35 04 06 00 54 C7 47 68 CC A2 D2 D3 0A 1B AC 11 09 56 [18:59:41]CheckFolder [18:59:41]dirname=/storage/ofd_packets [18:59:41]CheckFolder done [18:59:41]ProducePacketName [18:59:41]name=ofd_packets/00029309 [18:59:41]NVStorageSaveData ofd_packets/00029309 [18:59:41]File name is /storage/ofd_packets/00029309 [18:59:41]Write 300 bytes [18:59:41]NVStorageSaveData done [18:59:41]OFDSenderStorePacket done [18:59:41]KKMCreateOFDPacket done [18:59:41]NVStorageSaveData kkm_last_timestamp [18:59:41]File name is /storage/kkm_last_timestamp [18:59:41]Write 4 bytes [18:59:41]NVStorageSaveData done [18:59:41]ExternCall_PrintAddStr [18:59:41]wPrintStart [18:59:41]Write to MH i2c: 01 00 00 75 B1 26 [18:59:41]Write i2c OK [18:59:41]MH_I2C_Read... [18:59:41]Read from MH i2c: 01 [18:59:41]MH_I2C_Read... [18:59:41]Read from MH i2c: 01 07 00 [18:59:41]MH_I2C_Read... [18:59:41]Read from MH i2c: 01 07 00 75 B1 00 00 00 00 00 FF 0F 3B [18:59:41]RasterBufferAndPrint [18:59:41]line Счет N : (1)347698 [18:59:41]line ИНН: 02508201610067 [18:59:41]line Контрольно-Кассовый Чек [18:59:41]line ПРОДАЖА [18:59:41]line ТРК (МРК, ГНК) : 71 [18:59:41]line Товар: 2711129700 [18:59:41]line ГАЗ-К-5 [18:59:41]line 21.280 * 32.90 [18:59:41]line = 700.11 [18:59:41]line НДС 12% НСП 1% [18:59:41]line > о реализуемом товаре [18:59:41]line ОКРУГЛЕНИЕ: -0.11 [18:59:41]line ИТОГО: 700.00 [18:59:41]line Внесено: 700.00 [18:59:41]line СДАЧА: 0.00 [18:59:41]line НСП 1% : 6.20 [18:59:41]line НДС 12% : 74.35 [18:59:41]line Наличными: 700.00 [18:59:41]line Безнал.: 0.00 [18:59:41]line Место: АЗС № 108 "Партнер Нефть" [18:59:41]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [18:59:41]line СНО: Общий режим [18:59:41]line Чек 219 14.04.2024 18:59 [18:59:41]line Смена: 116 ФФД: 1.0 [18:59:41]line ЗНМ: 0300000027 [18:59:41]line РНМ: 0000138879044617 [18:59:41]line Версия ККМ: 001 [18:59:41]line ФМ: 0000000000963154 [18:59:41]line ФД: 29309 [18:59:41]line ФПД: 93214873275554 [18:59:41]line 1/tax-web-control/client/api/v1/ticket?date=20240414T185950&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29309&fm=93214873275554&tin=02508201610067®Number=0000138879044617&sum=70000 [18:59:41]OFD Sender: Processing packet 29309 [packets to send 8, broken 7] [18:59:41]ProducePacketName [18:59:41]name=ofd_packets/00029309 [18:59:41]OFD Sender: To server: pG, [18:59:41]CommunicateWithHost lk.salyk.kg:30040 [18:59:41]ConnectInit lk.salyk.kg [18:59:41]written 0, free lines is 4095 [18:59:41]Connected sock=10 [18:59:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 AB 48 06 01 DC 3E 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 20 53 00 00 00 00 00 37 04 06 00 DA 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 DB 00 00 00 F4 03 04 00 A6 27 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7D 72 00 00 35 04 06 00 54 C7 47 68 CC A2 D2 D3 0A 1B AC 11 09 56 [18:59:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 7A B9 47 00 82 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7D 72 00 00 F4 03 04 00 4A D2 1B 66 B6 04 01 00 00 AD 40 D4 39 3E 6B 3E C8 [18:59:41]CommunicateWithHost err = 0 [18:59:41]CheckOFDResponse [18:59:41]1017 (14) - 77093643461234 [18:59:41]1041 (16) - 0000000000963154 [18:59:41]1040 (4) - 29309 [18:59:41]1012 (4) - 14.04.2024 12:55 [18:59:41]1206 (1) - 0 [18:59:41]OFD Sender: Remove packet 29309 [18:59:41]ProducePacketName [18:59:41]name=ofd_packets/00029309 [18:59:41]NVStorageDeleteData [18:59:41]Write to MH i2c: 01 00 00 9F B1 50 [18:59:41]Write i2c OK [18:59:41]MH_I2C_Read... [18:59:41]Read from MH i2c: 01 [18:59:41]MH_I2C_Read... [18:59:41]Read from MH i2c: 01 07 00 [18:59:41]MH_I2C_Read... [18:59:41]Read from MH i2c: 01 07 00 9F B1 00 00 00 00 00 CA 0C 2D [18:59:41]RasterBufferAndPrint [18:59:41]line [18:59:41]line [18:59:41]line [18:59:41]line [18:59:41]line [18:59:41]written 0, free lines is 3280 [18:59:41]MH_Cut [18:59:41]Write to MH i2c: D1 01 00 A6 B1 01 29 [18:59:41]Write i2c OK [18:59:41]MH_I2C_Read... [18:59:41]Read from MH i2c: D1 [18:59:41]MH_I2C_Read... [18:59:41]Read from MH i2c: D1 01 00 [18:59:41]MH_I2C_Read... [18:59:41]Read from MH i2c: D1 01 00 A6 B1 00 28 [18:59:41]Write to MH i2c: 01 00 00 A7 B1 58 [18:59:41]Write i2c OK [18:59:41]MH_I2C_Read... [18:59:42]OFD Sender: No OFD packet to send [18:59:42]*** Cut start [18:59:42]*** Partial cut [18:59:42]*** CUTSNS_PIN = 1 [18:59:42]*** CUTSNS_PIN = 0 [18:59:42]*** Brake cut motor [18:59:43]Read from MH i2c: 01 [18:59:43]MH_I2C_Read... [18:59:43]*** Stop cut motor [18:59:43]*** Cut end [18:59:43]Read from MH i2c: 01 07 00 [18:59:43]MH_I2C_Read... [18:59:43]Read from MH i2c: 01 07 00 A7 B1 00 00 00 00 00 FF 0F 6D [18:59:43]process_action close_receipt done [18:59:43]requested_data is exist [18:59:43]produce_requested_data [18:59:43]requested_item fm.sn is exist - process it [18:59:43]wFMCommunicate request_size=4 [18:59:43]MH_SAM_APDU [18:59:43]CAPDU: 80 11 00 00 [18:59:43]Write to MH i2c: E2 08 00 A8 B1 80 11 00 00 00 00 00 00 D3 [18:59:43]Write i2c OK [18:59:43]MH_I2C_Read... [18:59:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:59:43]Read from MH i2c: E2 [18:59:43]MH_I2C_Read... [18:59:43]Read from MH i2c: E2 17 00 [18:59:43]MH_I2C_Read... [18:59:43]Read from MH i2c: E2 17 00 A8 B1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 22 [18:59:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:59:43]wFMCommunicate OK [18:59:43]requested_item fd.num is exist - process it [18:59:43]SAM_PROTO_GetFieldsCounters [18:59:43]wFMCommunicate request_size=4 [18:59:43]MH_SAM_APDU [18:59:43]CAPDU: 80 13 00 00 [18:59:43]Write to MH i2c: E2 08 00 A9 B1 80 13 00 00 00 00 00 00 D6 [18:59:43]Write i2c OK [18:59:43]MH_I2C_Read... [18:59:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:59:43]Read from MH i2c: E2 [18:59:43]MH_I2C_Read... [18:59:43]Read from MH i2c: E2 62 00 [18:59:43]MH_I2C_Read... [18:59:43]Read from MH i2c: E2 62 00 A9 B1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 7D 72 00 00 0E 04 04 00 74 00 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 08 [18:59:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 7D 72 00 00 0E 04 04 00 74 00 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 [18:59:43]wFMCommunicate OK [18:59:43]SAM_PROTO_GetFieldsCounters done [18:59:43]requested_item shift.num is exist - process it [18:59:43]requested_item shift.opened is exist - process it [18:59:43]req_shift_opened [18:59:43]FM_GetShiftState [18:59:43]SAM_PROTO_GetShiftState [18:59:43]wFMCommunicate request_size=4 [18:59:43]MH_SAM_APDU [18:59:43]CAPDU: 80 13 01 00 [18:59:43]Write to MH i2c: E2 08 00 AA B1 80 13 01 00 00 00 00 00 D8 [18:59:43]Write i2c OK [18:59:43]MH_I2C_Read... [18:59:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:59:43]Read from MH i2c: E2 [18:59:43]MH_I2C_Read... [18:59:43]Read from MH i2c: E2 0E 00 [18:59:43]MH_I2C_Read... [18:59:43]Read from MH i2c: E2 0E 00 AA B1 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 84 [18:59:43]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [18:59:43]wFMCommunicate OK [18:59:43]SAM_PROTO_GetShiftState done [18:59:43]FM_GetShiftState done [18:59:43]req_shift_opened done [18:59:43]requested_item shift.open_date is exist - process it [18:59:43]req_shift_open_date [18:59:43]req_shift_open_date done [18:59:43]produce_requested_data done [18:59:43]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29309,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [18:59:43]process_action_free close_receipt [18:59:43]json_value_free [18:59:43]json_value_free done [18:59:43]process_json_proto returns [18:59:43]Send response to host [18:59:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29309,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [18:59:43]free response buf [18:59:43]execute_script done [18:59:43]execute_script returns [18:59:43]free content buf [18:59:43]Sock 7.Close socket [18:59:43]Sock 7.Thread stoped [18:59:47]OFD Sender: No OFD packet to send [18:59:52]OFD Sender: No OFD packet to send [18:59:57]OFD Sender: No OFD packet to send [19:00:02]OFD Sender: No OFD packet to send [19:00:07]OFD Sender: No OFD packet to send [19:00:12]OFD Sender: No OFD packet to send [19:00:17]OFD Sender: No OFD packet to send [19:00:22]OFD Sender: No OFD packet to send [19:00:27]OFD Sender: No OFD packet to send [19:00:32]OFD Sender: No OFD packet to send [19:00:37]OFD Sender: No OFD packet to send [19:00:42]OFD Sender: No OFD packet to send [19:00:47]OFD Sender: No OFD packet to send [19:00:52]OFD Sender: No OFD packet to send [19:00:57]OFD Sender: No OFD packet to send [19:01:02]OFD Sender: No OFD packet to send [19:01:04]accept exits with 9 [19:01:04]New connection [19:01:04]New thread 3066928484 created [19:01:04]Thread 3066785124 joined [19:01:04]Waiting for new connection... [19:01:04] Sock 9.Parse request [19:01:04]Sock 9.Check first char [19:01:04]Sock 9.First char is OK [19:01:04]request: POST /json_proto HTTP/1.0 [19:01:04]Method: POST [19:01:04]URL: /json_proto [19:01:04]Method is POST - this is cgi request [19:01:04]url: /json_proto [19:01:04]query_string will be loaded in cgi processing [19:01:04]execute_cgi json_proto POST (null) [19:01:04]execute_cgi path=json_proto method=POST [19:01:04]POST find Content-Length [19:01:04]Host: 172.17.33.3:8080 [19:01:04]Content-Length: 682 [19:01:04]Content-Type: application/json [19:01:04] [19:01:04]POST finish read [19:01:04]Found Content-Length = 682 [19:01:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347699", "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" ] } } [19:01:04]execute_script... [19:01: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)347699", "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" ] } } [19:01:04]POST & json_proto [19:01:04]process_json_proto [19:01:04]json parsed OK: [19:01:04]protocol is kg_v1.0 [19:01:04]action value=close_receipt [19:01:04]process_action close_receipt [19:01:04]cmd_close_receipt [19:01:04]MH_GetDate [19:01:04]Write to MH i2c: F0 00 00 AB B1 4B [19:01:04]Write i2c OK [19:01:04]MH_I2C_Read... [19:01:04]Read from MH i2c: F0 [19:01:04]MH_I2C_Read... [19:01:04]Read from MH i2c: F0 09 00 [19:01:04]MH_I2C_Read... [19:01:04]Read from MH i2c: F0 09 00 AB B1 00 FC 27 1C 66 23 5B 8F 65 6B [19:01:04]GetLastDocTimeStamp 1713121190 [19:01:04]current date 1713121276 [19:01:04]FM_GetShiftState [19:01:04]SAM_PROTO_GetShiftState [19:01:04]wFMCommunicate request_size=4 [19:01:04]MH_SAM_APDU [19:01:04]CAPDU: 80 13 01 00 [19:01:04]Write to MH i2c: E2 08 00 AC B1 80 13 01 00 00 00 00 00 DA [19:01:04]Write i2c OK [19:01:04]MH_I2C_Read... [19:01:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:01:04]Read from MH i2c: E2 [19:01:04]MH_I2C_Read... [19:01:04]Read from MH i2c: E2 0E 00 [19:01:04]MH_I2C_Read... [19:01:04]Read from MH i2c: E2 0E 00 AC B1 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 86 [19:01:04]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [19:01:04]wFMCommunicate OK [19:01:04]SAM_PROTO_GetShiftState done [19:01:04]FM_GetShiftState done [19:01:04]opened in 1713053951 [19:01:04]opened+sec_in_day 1713140351 [19:01:04]quantity*price = 100050 [19:01:04]sum+1 = 100052 [19:01:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 220 14.04.2024 19:01 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29310 ФПД: 251875970513464 1/tax-web-control/client/api/v1/ticket?date=20240414T190116&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29310&fm=251875970513464&tin=02508201610067®Number=0000138879044617&sum=100000 [19:01:05]StoreToDocumentArchive [19:01:05]shift 116 fd 29310 [19:01:05]save to /storage/0116/doc_00029310 [19:01:05]save last doc name /storage/0116/doc_00029310 to /storage/kkm_last_doc_name [19:01:05]save OK [19:01:05]Clear old archive folders... [19:01:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:01:05]tlvbuf is 012143A0 [19:01:05]SAM_PROTO_ClearQueue [19:01:05]wFMCommunicate request_size=4 [19:01:05]MH_SAM_APDU [19:01:05]CAPDU: 80 09 00 00 [19:01:05]Write to MH i2c: E2 08 00 B9 B1 80 09 00 00 00 00 00 00 DC [19:01:05]Write i2c OK [19:01:05]MH_I2C_Read... [19:01:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:01:05]Read from MH i2c: E2 [19:01:05]MH_I2C_Read... [19:01:05]Read from MH i2c: E2 03 00 [19:01:05]MH_I2C_Read... [19:01:05]Read from MH i2c: E2 03 00 B9 B1 00 90 00 DE [19:01:05]RAPDU: 90 00 [19:01:05]wFMCommunicate OK [19:01:05]SAM_PROTO_ClearQueue done [19:01:05]KKMCreateOFDPacket [19:01:05]OFDProtocolAddRootSTLVToBuf [19:01:05]FM_MakeSignedData [19:01:05]FM_MakeSignedData [19:01:05]SAM_PROTO_SignData [19:01:05]wFMCommunicate request_size=4 [19:01:05]MH_SAM_APDU [19:01:05]CAPDU: 80 0D 01 02 [19:01:05]Write to MH i2c: E2 08 00 BA B1 80 0D 01 02 00 00 00 00 E4 [19:01:05]Write i2c OK [19:01:05]MH_I2C_Read... [19:01:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:01:05]Read from MH i2c: E2 [19:01:05]MH_I2C_Read... [19:01:05]Read from MH i2c: E2 03 00 [19:01:05]MH_I2C_Read... [19:01:05]Read from MH i2c: E2 03 00 BA B1 00 90 00 DF [19:01:05]RAPDU: 90 00 [19:01:05]wFMCommunicate OK [19:01:05]wFMCommunicate request_size=255 [19:01:05]MH_SAM_APDU [19:01: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 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 DC 00 00 00 F4 03 04 00 FC 27 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7E 72 00 00 35 04 06 00 E5 [19:01:05]Write to MH i2c: E2 02 01 BB B1 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 DC 00 00 00 F4 03 04 00 FC 27 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7E 72 00 00 35 04 06 00 E5 00 00 DA [19:01:05]Write i2c OK [19:01:05]MH_I2C_Read... [19:01:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:01:06]Read from MH i2c: E2 [19:01:06]MH_I2C_Read... [19:01:06]Read from MH i2c: E2 03 00 [19:01:06]MH_I2C_Read... [19:01:06]Read from MH i2c: E2 03 00 BB B1 00 90 00 E0 [19:01:06]RAPDU: 90 00 [19:01:06]wFMCommunicate OK [19:01:06]wFMCommunicate request_size=10 [19:01:06]MH_SAM_APDU [19:01:06]CAPDU: 80 0D 02 02 05 14 71 BF FA 38 [19:01:06]Write to MH i2c: E2 0D 00 BC B1 80 0D 02 02 05 00 14 71 BF FA 38 00 00 67 [19:01:06]Write i2c OK [19:01:06]MH_I2C_Read... [19:01:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:01:06]Read from MH i2c: E2 [19:01:06]MH_I2C_Read... [19:01:06]Read from MH i2c: E2 03 00 [19:01:06]MH_I2C_Read... [19:01:06]Read from MH i2c: E2 03 00 BC B1 00 90 00 E1 [19:01:06]RAPDU: 90 00 [19:01:06]wFMCommunicate OK [19:01:06]wFMCommunicate request_size=4 [19:01:06]MH_SAM_APDU [19:01:06]CAPDU: 80 0D 03 02 [19:01:06]Write to MH i2c: E2 08 00 BD B1 80 0D 03 02 00 00 00 00 E9 [19:01:06]Write i2c OK [19:01:06]MH_I2C_Read... [19:01:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:01:06]Read from MH i2c: E2 [19:01:06]MH_I2C_Read... [19:01:06]Read from MH i2c: E2 0B 00 [19:01:06]MH_I2C_Read... [19:01:06]Read from MH i2c: E2 0B 00 BD B1 00 B8 6B 85 79 C3 FF EF B2 90 00 6E [19:01:06]RAPDU: B8 6B 85 79 C3 FF EF B2 90 00 [19:01:06]wFMCommunicate OK [19:01:06]SAM_PROTO_SignData done [19:01:06]FM_MakeSignedData done [19:01:06]CreateOFDProtocolMessage [19:01:06]wFMCommunicate request_size=4 [19:01:06]MH_SAM_APDU [19:01:06]CAPDU: 80 11 00 00 [19:01:06]Write to MH i2c: E2 08 00 BE B1 80 11 00 00 00 00 00 00 E9 [19:01:06]Write i2c OK [19:01:06]MH_I2C_Read... [19:01:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:01:06]Read from MH i2c: E2 [19:01:06]MH_I2C_Read... [19:01:06]Read from MH i2c: E2 17 00 [19:01:06]MH_I2C_Read... [19:01:06]Read from MH i2c: E2 17 00 BE B1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 38 [19:01:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:01:06]wFMCommunicate OK [19:01:06]CreateOFDProtocolMessage done [19:01:06]OFDSenderStorePacket 29310 [19:01:06]StoreOFDPacket docnum=29310 [19:01:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 C0 44 07 01 A3 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 DC 00 00 00 F4 03 04 00 FC 27 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7E 72 00 00 35 04 06 00 E5 14 71 BF FA 38 B8 6B 85 79 C3 FF EF B2 [19:01:06]CheckFolder [19:01:06]dirname=/storage/ofd_packets [19:01:06]CheckFolder done [19:01:06]ProducePacketName [19:01:06]name=ofd_packets/00029310 [19:01:06]NVStorageSaveData ofd_packets/00029310 [19:01:06]File name is /storage/ofd_packets/00029310 [19:01:06]Write 301 bytes [19:01:06]NVStorageSaveData done [19:01:06]OFDSenderStorePacket done [19:01:06]KKMCreateOFDPacket done [19:01:06]NVStorageSaveData kkm_last_timestamp [19:01:06]File name is /storage/kkm_last_timestamp [19:01:06]Write 4 bytes [19:01:06]NVStorageSaveData done [19:01:06]ExternCall_PrintAddStr [19:01:06]wPrintStart [19:01:06]Write to MH i2c: 01 00 00 BF B1 70 [19:01:06]Write i2c OK [19:01:06]MH_I2C_Read... [19:01:06]Read from MH i2c: 01 [19:01:06]MH_I2C_Read... [19:01:06]Read from MH i2c: 01 07 00 [19:01:06]MH_I2C_Read... [19:01:06]Read from MH i2c: 01 07 00 BF B1 00 00 00 00 00 FF 0F 85 [19:01:06]RasterBufferAndPrint [19:01:06]line Счет N : (1)347699 [19:01:06]line ИНН: 02508201610067 [19:01:06]line Контрольно-Кассовый Чек [19:01:06]line ПРОДАЖА [19:01:06]line ТРК (МРК, ГНК) : 42 [19:01:06]line Товар: 2710124130 [19:01:06]line Аи-92-К-5 [19:01:06]line 15.560 * 64.30 [19:01:06]line = 1000.51 [19:01:06]line НДС 12% НСП 1% [19:01:06]line > о реализуемом товаре [19:01:06]line ОКРУГЛЕНИЕ: -0.51 [19:01:06]line ИТОГО: 1000.00 [19:01:06]line Внесено: 1000.00 [19:01:06]line СДАЧА: 0.00 [19:01:06]line НСП 1% : 8.85 [19:01:06]line НДС 12% : 106.25 [19:01:06]line Наличными: 1000.00 [19:01:06]line Безнал.: 0.00 [19:01:06]line Место: АЗС № 108 "Партнер Нефть" [19:01:06]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [19:01:06]line СНО: Общий режим [19:01:06]line Чек 220 14.04.2024 19:01 [19:01:06]line Смена: 116 ФФД: 1.0 [19:01:06]line ЗНМ: 0300000027 [19:01:06]line РНМ: 0000138879044617 [19:01:06]line Версия ККМ: 001 [19:01:06]line ФМ: 0000000000963154 [19:01:06]line ФД: 29310 [19:01:06]line ФПД: 251875970513464 [19:01:06]line 1/tax-web-control/client/api/v1/ticket?date=20240414T190116&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29310&fm=251875970513464&tin=02508201610067®Number=0000138879044617&sum=100000 [19:01:06]OFD Sender: Processing packet 29310 [packets to send 8, broken 7] [19:01:06]ProducePacketName [19:01:06]name=ofd_packets/00029310 [19:01:06]OFD Sender: To server: pG, [19:01:06]CommunicateWithHost lk.salyk.kg:30040 [19:01:06]ConnectInit lk.salyk.kg [19:01:06]written 0, free lines is 4095 [19:01:06]Connected sock=10 [19:01:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 C0 44 07 01 A3 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 DC 00 00 00 F4 03 04 00 FC 27 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7E 72 00 00 35 04 06 00 E5 14 71 BF FA 38 B8 6B 85 79 C3 FF EF B2 [19:01:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 C6 22 47 00 C0 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 39 36 33 31 35 34 10 04 04 00 7E 72 00 00 F4 03 04 00 9F D2 1B 66 B6 04 01 00 00 94 2A C1 6B 69 73 75 A0 [19:01:06]CommunicateWithHost err = 0 [19:01:06]CheckOFDResponse [19:01:06]1017 (14) - 77093643461234 [19:01:06]1041 (16) - 0000000000963154 [19:01:06]1040 (4) - 29310 [19:01:06]1012 (4) - 14.04.2024 12:57 [19:01:06]1206 (1) - 0 [19:01:06]OFD Sender: Remove packet 29310 [19:01:06]ProducePacketName [19:01:06]name=ofd_packets/00029310 [19:01:06]NVStorageDeleteData [19:01:07]Write to MH i2c: 01 00 00 E9 B1 9A [19:01:07]Write i2c OK [19:01:07]MH_I2C_Read... [19:01:07]Read from MH i2c: 01 [19:01:07]MH_I2C_Read... [19:01:07]Read from MH i2c: 01 07 00 [19:01:07]MH_I2C_Read... [19:01:07]Read from MH i2c: 01 07 00 E9 B1 00 00 00 00 00 D5 0C 82 [19:01:07]RasterBufferAndPrint [19:01:07]line [19:01:07]line [19:01:07]line [19:01:07]line [19:01:07]line [19:01:07]written 0, free lines is 3292 [19:01:07]MH_Cut [19:01:07]Write to MH i2c: D1 01 00 F0 B1 01 73 [19:01:07]Write i2c OK [19:01:07]MH_I2C_Read... [19:01:07]Read from MH i2c: D1 [19:01:07]MH_I2C_Read... [19:01:07]Read from MH i2c: D1 01 00 [19:01:07]MH_I2C_Read... [19:01:07]Read from MH i2c: D1 01 00 F0 B1 00 72 [19:01:07]Write to MH i2c: 01 00 00 F1 B1 A2 [19:01:07]Write i2c OK [19:01:07]MH_I2C_Read... [19:01:07]OFD Sender: No OFD packet to send [19:01:07]*** Cut start [19:01:07]*** Partial cut [19:01:07]*** CUTSNS_PIN = 1 [19:01:07]*** CUTSNS_PIN = 0 [19:01:08]*** Brake cut motor [19:01:08]Read from MH i2c: 01 [19:01:08]MH_I2C_Read... [19:01:08]*** Stop cut motor [19:01:08]*** Cut end [19:01:08]Read from MH i2c: 01 07 00 [19:01:08]MH_I2C_Read... [19:01:08]Read from MH i2c: 01 07 00 F1 B1 00 00 00 00 00 FF 0F B7 [19:01:08]process_action close_receipt done [19:01:08]requested_data is exist [19:01:08]produce_requested_data [19:01:08]requested_item fm.sn is exist - process it [19:01:08]wFMCommunicate request_size=4 [19:01:08]MH_SAM_APDU [19:01:08]CAPDU: 80 11 00 00 [19:01:08]Write to MH i2c: E2 08 00 F2 B1 80 11 00 00 00 00 00 00 1D [19:01:08]Write i2c OK [19:01:08]MH_I2C_Read... [19:01:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:01:08]Read from MH i2c: E2 [19:01:08]MH_I2C_Read... [19:01:08]Read from MH i2c: E2 17 00 [19:01:08]MH_I2C_Read... [19:01:08]Read from MH i2c: E2 17 00 F2 B1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 6C [19:01:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:01:08]wFMCommunicate OK [19:01:08]requested_item fd.num is exist - process it [19:01:08]SAM_PROTO_GetFieldsCounters [19:01:08]wFMCommunicate request_size=4 [19:01:08]MH_SAM_APDU [19:01:08]CAPDU: 80 13 00 00 [19:01:08]Write to MH i2c: E2 08 00 F3 B1 80 13 00 00 00 00 00 00 20 [19:01:08]Write i2c OK [19:01:08]MH_I2C_Read... [19:01:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:01:08]Read from MH i2c: E2 [19:01:08]MH_I2C_Read... [19:01:08]Read from MH i2c: E2 62 00 [19:01:08]MH_I2C_Read... [19:01:08]Read from MH i2c: E2 62 00 F3 B1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 7E 72 00 00 0E 04 04 00 74 00 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 56 [19:01:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 7E 72 00 00 0E 04 04 00 74 00 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 [19:01:08]wFMCommunicate OK [19:01:08]SAM_PROTO_GetFieldsCounters done [19:01:08]requested_item shift.num is exist - process it [19:01:08]requested_item shift.opened is exist - process it [19:01:08]req_shift_opened [19:01:08]FM_GetShiftState [19:01:08]SAM_PROTO_GetShiftState [19:01:08]wFMCommunicate request_size=4 [19:01:08]MH_SAM_APDU [19:01:08]CAPDU: 80 13 01 00 [19:01:08]Write to MH i2c: E2 08 00 F4 B1 80 13 01 00 00 00 00 00 22 [19:01:08]Write i2c OK [19:01:08]MH_I2C_Read... [19:01:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:01:08]Read from MH i2c: E2 [19:01:08]MH_I2C_Read... [19:01:08]Read from MH i2c: E2 0E 00 [19:01:08]MH_I2C_Read... [19:01:08]Read from MH i2c: E2 0E 00 F4 B1 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 CE [19:01:08]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [19:01:08]wFMCommunicate OK [19:01:08]SAM_PROTO_GetShiftState done [19:01:08]FM_GetShiftState done [19:01:08]req_shift_opened done [19:01:08]requested_item shift.open_date is exist - process it [19:01:08]req_shift_open_date [19:01:08]req_shift_open_date done [19:01:08]produce_requested_data done [19:01:08]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29310,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [19:01:08]process_action_free close_receipt [19:01:08]json_value_free [19:01:08]json_value_free done [19:01:08]process_json_proto returns [19:01:08]Send response to host [19:01:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29310,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [19:01:08]free response buf [19:01:08]execute_script done [19:01:08]execute_script returns [19:01:08]free content buf [19:01:08]Sock 9.Close socket [19:01:08]Sock 9.Thread stoped [19:01:12]OFD Sender: No OFD packet to send [19:01:17]OFD Sender: No OFD packet to send [19:01:22]OFD Sender: No OFD packet to send [19:01:27]OFD Sender: No OFD packet to send [19:01:32]OFD Sender: No OFD packet to send [19:01:37]OFD Sender: No OFD packet to send [19:01:42]OFD Sender: No OFD packet to send [19:01:47]OFD Sender: No OFD packet to send [19:01:52]OFD Sender: No OFD packet to send [19:01:57]OFD Sender: No OFD packet to send [19:02:02]OFD Sender: No OFD packet to send [19:02:07]OFD Sender: No OFD packet to send [19:02:12]OFD Sender: No OFD packet to send [19:02:17]OFD Sender: No OFD packet to send [19:02:22]OFD Sender: No OFD packet to send [19:02:27]OFD Sender: No OFD packet to send [19:02:32]OFD Sender: No OFD packet to send [19:02:37]OFD Sender: No OFD packet to send [19:02:42]OFD Sender: No OFD packet to send [19:02:47]OFD Sender: No OFD packet to send [19:02:52]OFD Sender: No OFD packet to send [19:02:54]accept exits with 7 [19:02:54]New connection [19:02:54]New thread 3066785124 created [19:02:54]Thread 3066928484 joined [19:02:54]Waiting for new connection... [19:02:54] Sock 7.Parse request [19:02:54]Sock 7.Check first char [19:02:54]Sock 7.First char is OK [19:02:54]request: POST /json_proto HTTP/1.0 [19:02:54]Method: POST [19:02:54]URL: /json_proto [19:02:54]Method is POST - this is cgi request [19:02:54]url: /json_proto [19:02:54]query_string will be loaded in cgi processing [19:02:54]execute_cgi json_proto POST (null) [19:02:54]execute_cgi path=json_proto method=POST [19:02:54]POST find Content-Length [19:02:54]Host: 172.17.33.3:8080 [19:02:54]Content-Length: 678 [19:02:54]Content-Type: application/json [19:02:54] [19:02:54]POST finish read [19:02:54]Found Content-Length = 678 [19:02:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347700", "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.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" ] } } [19:02:54]execute_script... [19:02: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)347700", "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.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" ] } } [19:02:54]POST & json_proto [19:02:54]process_json_proto [19:02:54]json parsed OK: [19:02:54]protocol is kg_v1.0 [19:02:54]action value=close_receipt [19:02:54]process_action close_receipt [19:02:54]cmd_close_receipt [19:02:54]MH_GetDate [19:02:54]Write to MH i2c: F0 00 00 F5 B1 95 [19:02:54]Write i2c OK [19:02:54]MH_I2C_Read... [19:02:54]Read from MH i2c: F0 [19:02:54]MH_I2C_Read... [19:02:54]Read from MH i2c: F0 09 00 [19:02:54]MH_I2C_Read... [19:02:54]Read from MH i2c: F0 09 00 F5 B1 00 69 28 1C 66 23 5B 8F 65 23 [19:02:54]GetLastDocTimeStamp 1713121276 [19:02:54]current date 1713121385 [19:02:54]FM_GetShiftState [19:02:54]SAM_PROTO_GetShiftState [19:02:54]wFMCommunicate request_size=4 [19:02:54]MH_SAM_APDU [19:02:54]CAPDU: 80 13 01 00 [19:02:54]Write to MH i2c: E2 08 00 F6 B1 80 13 01 00 00 00 00 00 24 [19:02:54]Write i2c OK [19:02:54]MH_I2C_Read... [19:02:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:02:54]Read from MH i2c: E2 [19:02:54]MH_I2C_Read... [19:02:54]Read from MH i2c: E2 0E 00 [19:02:54]MH_I2C_Read... [19:02:54]Read from MH i2c: E2 0E 00 F6 B1 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 D0 [19:02:54]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [19:02:54]wFMCommunicate OK [19:02:54]SAM_PROTO_GetShiftState done [19:02:54]FM_GetShiftState done [19:02:54]opened in 1713053951 [19:02:54]opened+sec_in_day 1713140351 [19:02:54]quantity*price = 65007 [19:02:54]sum+1 = 65008 [19:02:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.75 НДС 12% : 69.03 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 221 14.04.2024 19:03 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29311 ФПД: 210331620429202 1/tax-web-control/client/api/v1/ticket?date=20240414T190305&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29311&fm=210331620429202&tin=02508201610067®Number=0000138879044617&sum=65000 [19:02:55]StoreToDocumentArchive [19:02:55]shift 116 fd 29311 [19:02:55]save to /storage/0116/doc_00029311 [19:02:55]save last doc name /storage/0116/doc_00029311 to /storage/kkm_last_doc_name [19:02:55]save OK [19:02:55]Clear old archive folders... [19:02:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:02:55]tlvbuf is 01285F20 [19:02:55]SAM_PROTO_ClearQueue [19:02:55]wFMCommunicate request_size=4 [19:02:55]MH_SAM_APDU [19:02:55]CAPDU: 80 09 00 00 [19:02:55]Write to MH i2c: E2 08 00 03 B2 80 09 00 00 00 00 00 00 27 [19:02:55]Write i2c OK [19:02:55]MH_I2C_Read... [19:02:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:02:55]Read from MH i2c: E2 [19:02:55]MH_I2C_Read... [19:02:55]Read from MH i2c: E2 03 00 [19:02:55]MH_I2C_Read... [19:02:55]Read from MH i2c: E2 03 00 03 B2 00 90 00 29 [19:02:55]RAPDU: 90 00 [19:02:55]wFMCommunicate OK [19:02:55]SAM_PROTO_ClearQueue done [19:02:55]KKMCreateOFDPacket [19:02:55]OFDProtocolAddRootSTLVToBuf [19:02:55]FM_MakeSignedData [19:02:55]FM_MakeSignedData [19:02:55]SAM_PROTO_SignData [19:02:55]wFMCommunicate request_size=4 [19:02:55]MH_SAM_APDU [19:02:55]CAPDU: 80 0D 01 02 [19:02:55]Write to MH i2c: E2 08 00 04 B2 80 0D 01 02 00 00 00 00 2F [19:02:55]Write i2c OK [19:02:55]MH_I2C_Read... [19:02:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:02:55]Read from MH i2c: E2 [19:02:55]MH_I2C_Read... [19:02:55]Read from MH i2c: E2 03 00 [19:02:55]MH_I2C_Read... [19:02:55]Read from MH i2c: E2 03 00 04 B2 00 90 00 2A [19:02:55]RAPDU: 90 00 [19:02:55]wFMCommunicate OK [19:02:55]wFMCommunicate request_size=255 [19:02:55]MH_SAM_APDU [19:02: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 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 DD 00 00 00 F4 03 04 00 69 28 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7F 72 00 00 35 04 06 00 BF [19:02:55]Write to MH i2c: E2 02 01 05 B2 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 DD 00 00 00 F4 03 04 00 69 28 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7F 72 00 00 35 04 06 00 BF 00 00 4E [19:02:55]Write i2c OK [19:02:55]MH_I2C_Read... [19:02:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:02:55]Read from MH i2c: E2 [19:02:55]MH_I2C_Read... [19:02:55]Read from MH i2c: E2 03 00 [19:02:55]MH_I2C_Read... [19:02:55]Read from MH i2c: E2 03 00 05 B2 00 90 00 2B [19:02:55]RAPDU: 90 00 [19:02:55]wFMCommunicate OK [19:02:55]wFMCommunicate request_size=10 [19:02:55]MH_SAM_APDU [19:02:55]CAPDU: 80 0D 02 02 05 4B A5 85 4D 92 [19:02:55]Write to MH i2c: E2 0D 00 06 B2 80 0D 02 02 05 00 4B A5 85 4D 92 00 00 90 [19:02:55]Write i2c OK [19:02:55]MH_I2C_Read... [19:02:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:02:56]Read from MH i2c: E2 [19:02:56]MH_I2C_Read... [19:02:56]Read from MH i2c: E2 03 00 [19:02:56]MH_I2C_Read... [19:02:56]Read from MH i2c: E2 03 00 06 B2 00 90 00 2C [19:02:56]RAPDU: 90 00 [19:02:56]wFMCommunicate OK [19:02:56]wFMCommunicate request_size=4 [19:02:56]MH_SAM_APDU [19:02:56]CAPDU: 80 0D 03 02 [19:02:56]Write to MH i2c: E2 08 00 07 B2 80 0D 03 02 00 00 00 00 34 [19:02:56]Write i2c OK [19:02:56]MH_I2C_Read... [19:02:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:02:56]Read from MH i2c: E2 [19:02:56]MH_I2C_Read... [19:02:56]Read from MH i2c: E2 0B 00 [19:02:56]MH_I2C_Read... [19:02:56]Read from MH i2c: E2 0B 00 07 B2 00 93 86 0A 6C E8 21 B4 27 90 00 A8 [19:02:56]RAPDU: 93 86 0A 6C E8 21 B4 27 90 00 [19:02:56]wFMCommunicate OK [19:02:56]SAM_PROTO_SignData done [19:02:56]FM_MakeSignedData done [19:02:56]CreateOFDProtocolMessage [19:02:56]wFMCommunicate request_size=4 [19:02:56]MH_SAM_APDU [19:02:56]CAPDU: 80 11 00 00 [19:02:56]Write to MH i2c: E2 08 00 08 B2 80 11 00 00 00 00 00 00 34 [19:02:56]Write i2c OK [19:02:56]MH_I2C_Read... [19:02:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:02:56]Read from MH i2c: E2 [19:02:56]MH_I2C_Read... [19:02:56]Read from MH i2c: E2 17 00 [19:02:56]MH_I2C_Read... [19:02:56]Read from MH i2c: E2 17 00 08 B2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 83 [19:02:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:02:56]wFMCommunicate OK [19:02:56]CreateOFDProtocolMessage done [19:02:56]OFDSenderStorePacket 29311 [19:02:56]StoreOFDPacket docnum=29311 [19:02:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 0B 25 07 01 82 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 DD 00 00 00 F4 03 04 00 69 28 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7F 72 00 00 35 04 06 00 BF 4B A5 85 4D 92 93 86 0A 6C E8 21 B4 27 [19:02:56]CheckFolder [19:02:56]dirname=/storage/ofd_packets [19:02:56]CheckFolder done [19:02:56]ProducePacketName [19:02:56]name=ofd_packets/00029311 [19:02:56]NVStorageSaveData ofd_packets/00029311 [19:02:56]File name is /storage/ofd_packets/00029311 [19:02:56]Write 301 bytes [19:02:56]NVStorageSaveData done [19:02:56]OFDSenderStorePacket done [19:02:56]KKMCreateOFDPacket done [19:02:56]NVStorageSaveData kkm_last_timestamp [19:02:56]File name is /storage/kkm_last_timestamp [19:02:56]Write 4 bytes [19:02:56]NVStorageSaveData done [19:02:56]ExternCall_PrintAddStr [19:02:56]wPrintStart [19:02:56]Write to MH i2c: 01 00 00 09 B2 BB [19:02:56]Write i2c OK [19:02:56]MH_I2C_Read... [19:02:56]Read from MH i2c: 01 [19:02:56]MH_I2C_Read... [19:02:56]Read from MH i2c: 01 07 00 [19:02:56]MH_I2C_Read... [19:02:56]Read from MH i2c: 01 07 00 09 B2 00 00 00 00 00 FF 0F D0 [19:02:56]RasterBufferAndPrint [19:02:56]line Счет N : (1)347700 [19:02:56]line ИНН: 02508201610067 [19:02:56]line Контрольно-Кассовый Чек [19:02:56]line ПРОДАЖА [19:02:56]line ТРК (МРК, ГНК) : 32 [19:02:56]line Товар: 2710124130 [19:02:56]line Аи-92-К-5 [19:02:56]line 10.110 * 64.30 [19:02:56]line = 650.07 [19:02:56]line НДС 12% НСП 1% [19:02:56]line > о реализуемом товаре [19:02:56]line ОКРУГЛЕНИЕ: -0.07 [19:02:56]line ИТОГО: 650.00 [19:02:56]line Внесено: 650.00 [19:02:56]line СДАЧА: 0.00 [19:02:56]line НСП 1% : 5.75 [19:02:56]line НДС 12% : 69.03 [19:02:56]line Наличными: 650.00 [19:02:56]line Безнал.: 0.00 [19:02:56]line Место: АЗС № 108 "Партнер Нефть" [19:02:56]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [19:02:56]line СНО: Общий режим [19:02:56]line Чек 221 14.04.2024 19:03 [19:02:56]line Смена: 116 ФФД: 1.0 [19:02:56]line ЗНМ: 0300000027 [19:02:56]line РНМ: 0000138879044617 [19:02:56]line Версия ККМ: 001 [19:02:56]line ФМ: 0000000000963154 [19:02:56]line ФД: 29311 [19:02:56]line ФПД: 210331620429202 [19:02:56]line 1/tax-web-control/client/api/v1/ticket?date=20240414T190305&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29311&fm=210331620429202&tin=02508201610067®Number=0000138879044617&sum=65000 [19:02:56]OFD Sender: Processing packet 29311 [packets to send 8, broken 7] [19:02:56]ProducePacketName [19:02:56]name=ofd_packets/00029311 [19:02:56]OFD Sender: To server: pG, [19:02:56]CommunicateWithHost lk.salyk.kg:30040 [19:02:56]ConnectInit lk.salyk.kg [19:02:56]written 0, free lines is 4095 [19:02:56]Connected sock=10 [19:02:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 0B 25 07 01 82 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 DD 00 00 00 F4 03 04 00 69 28 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7F 72 00 00 35 04 06 00 BF 4B A5 85 4D 92 93 86 0A 6C E8 21 B4 27 [19:02:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 5A D2 47 00 15 CC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7F 72 00 00 F4 03 04 00 0D D3 1B 66 B6 04 01 00 00 FE 3A 00 19 38 78 92 74 [19:02:56]CommunicateWithHost err = 0 [19:02:56]CheckOFDResponse [19:02:56]1017 (14) - 77093643461234 [19:02:56]1041 (16) - 0000000000963154 [19:02:56]1040 (4) - 29311 [19:02:56]1012 (4) - 14.04.2024 12:58 [19:02:56]1206 (1) - 0 [19:02:56]OFD Sender: Remove packet 29311 [19:02:56]ProducePacketName [19:02:56]name=ofd_packets/00029311 [19:02:56]NVStorageDeleteData [19:02:56]Write to MH i2c: 01 00 00 33 B2 E5 [19:02:56]Write i2c OK [19:02:56]MH_I2C_Read... [19:02:56]Read from MH i2c: 01 [19:02:56]MH_I2C_Read... [19:02:56]Read from MH i2c: 01 07 00 [19:02:56]MH_I2C_Read... [19:02:56]Read from MH i2c: 01 07 00 33 B2 00 00 00 00 00 E1 0C D9 [19:02:56]RasterBufferAndPrint [19:02:56]line [19:02:56]line [19:02:56]line [19:02:56]line [19:02:56]line [19:02:56]written 0, free lines is 3303 [19:02:56]MH_Cut [19:02:56]Write to MH i2c: D1 01 00 3A B2 01 BE [19:02:56]Write i2c OK [19:02:56]MH_I2C_Read... [19:02:56]Read from MH i2c: D1 [19:02:56]MH_I2C_Read... [19:02:56]Read from MH i2c: D1 01 00 [19:02:56]MH_I2C_Read... [19:02:56]Read from MH i2c: D1 01 00 3A B2 00 BD [19:02:56]Write to MH i2c: 01 00 00 3B B2 ED [19:02:56]Write i2c OK [19:02:56]MH_I2C_Read... [19:02:57]OFD Sender: No OFD packet to send [19:02:57]*** Cut start [19:02:57]*** Partial cut [19:02:57]*** CUTSNS_PIN = 1 [19:02:57]*** CUTSNS_PIN = 0 [19:02:58]*** Brake cut motor [19:02:58]Read from MH i2c: 01 [19:02:58]MH_I2C_Read... [19:02:58]*** Stop cut motor [19:02:58]*** Cut end [19:02:58]Read from MH i2c: 01 07 00 [19:02:58]MH_I2C_Read... [19:02:58]Read from MH i2c: 01 07 00 3B B2 00 00 00 00 00 FF 0F 02 [19:02:58]process_action close_receipt done [19:02:58]requested_data is exist [19:02:58]produce_requested_data [19:02:58]requested_item fm.sn is exist - process it [19:02:58]wFMCommunicate request_size=4 [19:02:58]MH_SAM_APDU [19:02:58]CAPDU: 80 11 00 00 [19:02:58]Write to MH i2c: E2 08 00 3C B2 80 11 00 00 00 00 00 00 68 [19:02:58]Write i2c OK [19:02:58]MH_I2C_Read... [19:02:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:02:58]Read from MH i2c: E2 [19:02:58]MH_I2C_Read... [19:02:58]Read from MH i2c: E2 17 00 [19:02:58]MH_I2C_Read... [19:02:58]Read from MH i2c: E2 17 00 3C B2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B7 [19:02:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:02:58]wFMCommunicate OK [19:02:58]requested_item fd.num is exist - process it [19:02:58]SAM_PROTO_GetFieldsCounters [19:02:58]wFMCommunicate request_size=4 [19:02:58]MH_SAM_APDU [19:02:58]CAPDU: 80 13 00 00 [19:02:58]Write to MH i2c: E2 08 00 3D B2 80 13 00 00 00 00 00 00 6B [19:02:58]Write i2c OK [19:02:58]MH_I2C_Read... [19:02:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:02:58]Read from MH i2c: E2 [19:02:58]MH_I2C_Read... [19:02:58]Read from MH i2c: E2 62 00 [19:02:58]MH_I2C_Read... [19:02:58]Read from MH i2c: E2 62 00 3D B2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 7F 72 00 00 0E 04 04 00 74 00 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 A5 [19:02:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 7F 72 00 00 0E 04 04 00 74 00 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 [19:02:58]wFMCommunicate OK [19:02:58]SAM_PROTO_GetFieldsCounters done [19:02:58]requested_item shift.num is exist - process it [19:02:58]requested_item shift.opened is exist - process it [19:02:58]req_shift_opened [19:02:58]FM_GetShiftState [19:02:58]SAM_PROTO_GetShiftState [19:02:58]wFMCommunicate request_size=4 [19:02:58]MH_SAM_APDU [19:02:58]CAPDU: 80 13 01 00 [19:02:58]Write to MH i2c: E2 08 00 3E B2 80 13 01 00 00 00 00 00 6D [19:02:58]Write i2c OK [19:02:58]MH_I2C_Read... [19:02:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:02:58]Read from MH i2c: E2 [19:02:58]MH_I2C_Read... [19:02:58]Read from MH i2c: E2 0E 00 [19:02:58]MH_I2C_Read... [19:02:58]Read from MH i2c: E2 0E 00 3E B2 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 19 [19:02:58]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [19:02:58]wFMCommunicate OK [19:02:58]SAM_PROTO_GetShiftState done [19:02:58]FM_GetShiftState done [19:02:58]req_shift_opened done [19:02:58]requested_item shift.open_date is exist - process it [19:02:58]req_shift_open_date [19:02:58]req_shift_open_date done [19:02:58]produce_requested_data done [19:02:58]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29311,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [19:02:58]process_action_free close_receipt [19:02:58]json_value_free [19:02:58]json_value_free done [19:02:58]process_json_proto returns [19:02:58]Send response to host [19:02:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29311,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [19:02:58]free response buf [19:02:58]execute_script done [19:02:58]execute_script returns [19:02:58]free content buf [19:02:58]Sock 7.Close socket [19:02:58]Sock 7.Thread stoped [19:03:02]OFD Sender: No OFD packet to send [19:03:07]OFD Sender: No OFD packet to send [19:03:12]OFD Sender: No OFD packet to send [19:03:17]OFD Sender: No OFD packet to send [19:03:22]OFD Sender: No OFD packet to send [19:03:27]OFD Sender: No OFD packet to send [19:03:32]OFD Sender: No OFD packet to send [19:03:37]OFD Sender: No OFD packet to send [19:03:42]OFD Sender: No OFD packet to send [19:03:47]OFD Sender: No OFD packet to send [19:03:52]OFD Sender: No OFD packet to send [19:03:57]OFD Sender: No OFD packet to send [19:04:02]OFD Sender: No OFD packet to send [19:04:07]OFD Sender: No OFD packet to send [19:04:12]OFD Sender: No OFD packet to send [19:04:17]OFD Sender: No OFD packet to send [19:04:22]OFD Sender: No OFD packet to send [19:04:27]OFD Sender: No OFD packet to send [19:04:32]OFD Sender: No OFD packet to send [19:04:37]OFD Sender: No OFD packet to send [19:04:42]OFD Sender: No OFD packet to send [19:04:47]OFD Sender: No OFD packet to send [19:04:52]OFD Sender: No OFD packet to send [19:04:54]accept exits with 9 [19:04:54]New connection [19:04:54]New thread 3066928484 created [19:04:54]Thread 3066785124 joined [19:04:54]Waiting for new connection... [19:04:54] Sock 9.Parse request [19:04:54]Sock 9.Check first char [19:04:54]Sock 9.First char is OK [19:04:54]request: POST /json_proto HTTP/1.0 [19:04:54]Method: POST [19:04:54]URL: /json_proto [19:04:54]Method is POST - this is cgi request [19:04:54]url: /json_proto [19:04:54]query_string will be loaded in cgi processing [19:04:54]execute_cgi json_proto POST (null) [19:04:54]execute_cgi path=json_proto method=POST [19:04:54]POST find Content-Length [19:04:54]Host: 172.17.33.3:8080 [19:04:54]Content-Length: 675 [19:04:54]Content-Type: application/json [19:04:54] [19:04:54]POST finish read [19:04:54]Found Content-Length = 675 [19:04:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347701", "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" : 18.990, "sum" : 1240.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 1240.00, "payments": [ { "type": 0, "sum" : 1240.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:04:54]execute_script... [19: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)347701", "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" : 18.990, "sum" : 1240.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 1240.00, "payments": [ { "type": 0, "sum" : 1240.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:04:54]POST & json_proto [19:04:54]process_json_proto [19:04:54]json parsed OK: [19:04:54]protocol is kg_v1.0 [19:04:54]action value=close_receipt [19:04:54]process_action close_receipt [19:04:54]cmd_close_receipt [19:04:54]MH_GetDate [19:04:54]Write to MH i2c: F0 00 00 3F B2 E0 [19:04:54]Write i2c OK [19:04:54]MH_I2C_Read... [19:04:54]Read from MH i2c: F0 [19:04:54]MH_I2C_Read... [19:04:54]Read from MH i2c: F0 09 00 [19:04:54]MH_I2C_Read... [19:04:54]Read from MH i2c: F0 09 00 3F B2 00 E1 28 1C 66 23 5B 8F 65 E6 [19:04:54]GetLastDocTimeStamp 1713121385 [19:04:54]current date 1713121505 [19:04:54]FM_GetShiftState [19:04:54]SAM_PROTO_GetShiftState [19:04:54]wFMCommunicate request_size=4 [19:04:54]MH_SAM_APDU [19:04:54]CAPDU: 80 13 01 00 [19:04:54]Write to MH i2c: E2 08 00 40 B2 80 13 01 00 00 00 00 00 6F [19:04:54]Write i2c OK [19:04:54]MH_I2C_Read... [19:04:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:04:54]Read from MH i2c: E2 [19:04:54]MH_I2C_Read... [19:04:54]Read from MH i2c: E2 0E 00 [19:04:54]MH_I2C_Read... [19:04:54]Read from MH i2c: E2 0E 00 40 B2 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 1B [19:04:54]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [19:04:54]wFMCommunicate OK [19:04:54]SAM_PROTO_GetShiftState done [19:04:54]FM_GetShiftState done [19:04:54]opened in 1713053951 [19:04:54]opened+sec_in_day 1713140351 [19:04:54]quantity*price = 124004 [19:04:54]sum+1 = 124006 [19:04:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1240.00 Внесено: 3000.00 СДАЧА: 1760.00 НСП 1% : 10.97 НДС 12% : 131.69 Наличными: 1240.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 222 14.04.2024 19:05 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29312 ФПД: 262131512920852 1/tax-web-control/client/api/v1/ticket?date=20240414T190505&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29312&fm=262131512920852&tin=02508201610067®Number=0000138879044617&sum=124000 [19:04:55]StoreToDocumentArchive [19:04:55]shift 116 fd 29312 [19:04:55]save to /storage/0116/doc_00029312 [19:04:55]save last doc name /storage/0116/doc_00029312 to /storage/kkm_last_doc_name [19:04:55]save OK [19:04:55]Clear old archive folders... [19:04:55]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:04:55]tlvbuf is 011E32F0 [19:04:55]SAM_PROTO_ClearQueue [19:04:55]wFMCommunicate request_size=4 [19:04:55]MH_SAM_APDU [19:04:55]CAPDU: 80 09 00 00 [19:04:55]Write to MH i2c: E2 08 00 4D B2 80 09 00 00 00 00 00 00 71 [19:04:55]Write i2c OK [19:04:55]MH_I2C_Read... [19:04:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:04:55]Read from MH i2c: E2 [19:04:55]MH_I2C_Read... [19:04:55]Read from MH i2c: E2 03 00 [19:04:55]MH_I2C_Read... [19:04:55]Read from MH i2c: E2 03 00 4D B2 00 90 00 73 [19:04:55]RAPDU: 90 00 [19:04:55]wFMCommunicate OK [19:04:55]SAM_PROTO_ClearQueue done [19:04:55]KKMCreateOFDPacket [19:04:55]OFDProtocolAddRootSTLVToBuf [19:04:55]FM_MakeSignedData [19:04:55]FM_MakeSignedData [19:04:55]SAM_PROTO_SignData [19:04:55]wFMCommunicate request_size=4 [19:04:55]MH_SAM_APDU [19:04:55]CAPDU: 80 0D 01 02 [19:04:55]Write to MH i2c: E2 08 00 4E B2 80 0D 01 02 00 00 00 00 79 [19:04:55]Write i2c OK [19:04:55]MH_I2C_Read... [19:04:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:04:55]Read from MH i2c: E2 [19:04:55]MH_I2C_Read... [19:04:55]Read from MH i2c: E2 03 00 [19:04:55]MH_I2C_Read... [19:04:55]Read from MH i2c: E2 03 00 4E B2 00 90 00 74 [19:04:55]RAPDU: 90 00 [19:04:55]wFMCommunicate OK [19:04:55]wFMCommunicate request_size=255 [19:04:55]MH_SAM_APDU [19:04: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 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 4A 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 65 E4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 E4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 33 00 00 00 00 07 04 06 00 60 E4 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 E1 28 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 80 72 00 00 35 04 06 00 [19:04:55]Write to MH i2c: E2 02 01 4F B2 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 4A 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 65 E4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 E4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 33 00 00 00 00 07 04 06 00 60 E4 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 E1 28 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 80 72 00 00 35 04 06 00 00 00 F1 [19:04:55]Write i2c OK [19:04:55]MH_I2C_Read... [19:04:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:04:55]Read from MH i2c: E2 [19:04:55]MH_I2C_Read... [19:04:55]Read from MH i2c: E2 03 00 [19:04:55]MH_I2C_Read... [19:04:55]Read from MH i2c: E2 03 00 4F B2 00 90 00 75 [19:04:55]RAPDU: 90 00 [19:04:55]wFMCommunicate OK [19:04:55]wFMCommunicate request_size=11 [19:04:55]MH_SAM_APDU [19:04:55]CAPDU: 80 0D 02 02 06 EE 68 3F B6 4B 14 [19:04:55]Write to MH i2c: E2 0E 00 50 B2 80 0D 02 02 06 00 EE 68 3F B6 4B 14 00 00 32 [19:04:55]Write i2c OK [19:04:55]MH_I2C_Read... [19:04:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:04:55]Read from MH i2c: E2 [19:04:55]MH_I2C_Read... [19:04:55]Read from MH i2c: E2 03 00 [19:04:55]MH_I2C_Read... [19:04:55]Read from MH i2c: E2 03 00 50 B2 00 90 00 76 [19:04:55]RAPDU: 90 00 [19:04:55]wFMCommunicate OK [19:04:55]wFMCommunicate request_size=4 [19:04:55]MH_SAM_APDU [19:04:55]CAPDU: 80 0D 03 02 [19:04:55]Write to MH i2c: E2 08 00 51 B2 80 0D 03 02 00 00 00 00 7E [19:04:55]Write i2c OK [19:04:55]MH_I2C_Read... [19:04:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:04:55]Read from MH i2c: E2 [19:04:55]MH_I2C_Read... [19:04:55]Read from MH i2c: E2 0B 00 [19:04:55]MH_I2C_Read... [19:04:55]Read from MH i2c: E2 0B 00 51 B2 00 3B BE 18 E8 91 FE CA 2A 90 00 FB [19:04:55]RAPDU: 3B BE 18 E8 91 FE CA 2A 90 00 [19:04:55]wFMCommunicate OK [19:04:55]SAM_PROTO_SignData done [19:04:55]FM_MakeSignedData done [19:04:55]CreateOFDProtocolMessage [19:04:55]wFMCommunicate request_size=4 [19:04:55]MH_SAM_APDU [19:04:55]CAPDU: 80 11 00 00 [19:04:55]Write to MH i2c: E2 08 00 52 B2 80 11 00 00 00 00 00 00 7E [19:04:55]Write i2c OK [19:04:55]MH_I2C_Read... [19:04:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:04:55]Read from MH i2c: E2 [19:04:55]MH_I2C_Read... [19:04:55]Read from MH i2c: E2 17 00 [19:04:55]MH_I2C_Read... [19:04:55]Read from MH i2c: E2 17 00 52 B2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 CD [19:04:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:04:55]wFMCommunicate OK [19:04:55]CreateOFDProtocolMessage done [19:04:55]OFDSenderStorePacket 29312 [19:04:55]StoreOFDPacket docnum=29312 [19:04:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 9E 6F 08 01 0D CC 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 4A 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 65 E4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 E4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 33 00 00 00 00 07 04 06 00 60 E4 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 E1 28 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 80 72 00 00 35 04 06 00 EE 68 3F B6 4B 14 3B BE 18 E8 91 FE CA 2A [19:04:55]CheckFolder [19:04:55]dirname=/storage/ofd_packets [19:04:55]CheckFolder done [19:04:55]ProducePacketName [19:04:55]name=ofd_packets/00029312 [19:04:55]NVStorageSaveData ofd_packets/00029312 [19:04:55]File name is /storage/ofd_packets/00029312 [19:04:55]Write 302 bytes [19:04:55]NVStorageSaveData done [19:04:55]OFDSenderStorePacket done [19:04:55]KKMCreateOFDPacket done [19:04:55]NVStorageSaveData kkm_last_timestamp [19:04:55]File name is /storage/kkm_last_timestamp [19:04:55]Write 4 bytes [19:04:55]NVStorageSaveData done [19:04:55]ExternCall_PrintAddStr [19:04:55]wPrintStart [19:04:55]Write to MH i2c: 01 00 00 53 B2 05 [19:04:55]Write i2c OK [19:04:55]MH_I2C_Read... [19:04:55]Read from MH i2c: 01 [19:04:55]MH_I2C_Read... [19:04:55]Read from MH i2c: 01 07 00 [19:04:55]MH_I2C_Read... [19:04:55]Read from MH i2c: 01 07 00 53 B2 00 00 00 00 00 FF 0F 1A [19:04:55]RasterBufferAndPrint [19:04:55]line Счет N : (1)347701 [19:04:55]line ИНН: 02508201610067 [19:04:55]line Контрольно-Кассовый Чек [19:04:55]line ПРОДАЖА [19:04:55]line ТРК (МРК, ГНК) : 31 [19:04:55]line Товар: 2710124130 [19:04:55]line SUPER-92-К-5 [19:04:55]line 18.990 * 65.30 [19:04:55]line = 1240.05 [19:04:55]line НДС 12% НСП 1% [19:04:55]line > о реализуемом товаре [19:04:55]line ОКРУГЛЕНИЕ: -0.05 [19:04:55]line ИТОГО: 1240.00 [19:04:55]line Внесено: 3000.00 [19:04:55]line СДАЧА: 1760.00 [19:04:55]line НСП 1% : 10.97 [19:04:55]line НДС 12% : 131.69 [19:04:55]line Наличными: 1240.00 [19:04:55]line Безнал.: 0.00 [19:04:55]line Место: АЗС № 108 "Партнер Нефть" [19:04:55]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [19:04:55]line СНО: Общий режим [19:04:55]line Чек 222 14.04.2024 19:05 [19:04:55]line Смена: 116 ФФД: 1.0 [19:04:55]line ЗНМ: 0300000027 [19:04:55]line РНМ: 0000138879044617 [19:04:55]line Версия ККМ: 001 [19:04:55]line ФМ: 0000000000963154 [19:04:55]line ФД: 29312 [19:04:55]line ФПД: 262131512920852 [19:04:56]line 1/tax-web-control/client/api/v1/ticket?date=20240414T190505&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29312&fm=262131512920852&tin=02508201610067®Number=0000138879044617&sum=124000 [19:04:56]OFD Sender: Processing packet 29312 [packets to send 8, broken 7] [19:04:56]ProducePacketName [19:04:56]name=ofd_packets/00029312 [19:04:56]OFD Sender: To server: pG, [19:04:56]CommunicateWithHost lk.salyk.kg:30040 [19:04:56]ConnectInit lk.salyk.kg [19:04:56]written 0, free lines is 4095 [19:04:56]Connected sock=10 [19:04:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 9E 6F 08 01 0D CC 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 4A 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 65 E4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 E4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 33 00 00 00 00 07 04 06 00 60 E4 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 E1 28 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 80 72 00 00 35 04 06 00 EE 68 3F B6 4B 14 3B BE 18 E8 91 FE CA 2A [19:04:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 B5 75 47 00 44 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 80 72 00 00 F4 03 04 00 84 D3 1B 66 B6 04 01 00 00 34 3C F8 96 E2 23 8A B2 [19:04:56]CommunicateWithHost err = 0 [19:04:56]CheckOFDResponse [19:04:56]1017 (14) - 77093643461234 [19:04:56]1041 (16) - 0000000000963154 [19:04:56]1040 (4) - 29312 [19:04:56]1012 (4) - 14.04.2024 13:00 [19:04:56]1206 (1) - 0 [19:04:56]OFD Sender: Remove packet 29312 [19:04:56]ProducePacketName [19:04:56]name=ofd_packets/00029312 [19:04:56]NVStorageDeleteData [19:04:56]Write to MH i2c: 01 00 00 7D B2 2F [19:04:56]Write i2c OK [19:04:56]MH_I2C_Read... [19:04:56]Read from MH i2c: 01 [19:04:56]MH_I2C_Read... [19:04:56]Read from MH i2c: 01 07 00 [19:04:56]MH_I2C_Read... [19:04:56]Read from MH i2c: 01 07 00 7D B2 00 00 00 00 00 E6 0C 28 [19:04:56]RasterBufferAndPrint [19:04:56]line [19:04:56]line [19:04:56]line [19:04:56]line [19:04:56]line [19:04:56]written 0, free lines is 3308 [19:04:56]MH_Cut [19:04:56]Write to MH i2c: D1 01 00 84 B2 01 08 [19:04:56]Write i2c OK [19:04:56]MH_I2C_Read... [19:04:56]Read from MH i2c: D1 [19:04:56]MH_I2C_Read... [19:04:56]Read from MH i2c: D1 01 00 [19:04:56]MH_I2C_Read... [19:04:56]Read from MH i2c: D1 01 00 84 B2 00 07 [19:04:56]Write to MH i2c: 01 00 00 85 B2 37 [19:04:56]Write i2c OK [19:04:56]MH_I2C_Read... [19:04:56]OFD Sender: No OFD packet to send [19:04:57]*** Cut start [19:04:57]*** Partial cut [19:04:57]*** CUTSNS_PIN = 1 [19:04:57]*** CUTSNS_PIN = 0 [19:04:57]*** Brake cut motor [19:04:57]Read from MH i2c: 01 [19:04:57]MH_I2C_Read... [19:04:57]*** Stop cut motor [19:04:57]*** Cut end [19:04:57]Read from MH i2c: 01 07 00 [19:04:57]MH_I2C_Read... [19:04:57]Read from MH i2c: 01 07 00 85 B2 00 00 00 00 00 FF 0F 4C [19:04:57]process_action close_receipt done [19:04:57]requested_data is exist [19:04:57]produce_requested_data [19:04:57]requested_item fm.sn is exist - process it [19:04:57]wFMCommunicate request_size=4 [19:04:57]MH_SAM_APDU [19:04:57]CAPDU: 80 11 00 00 [19:04:57]Write to MH i2c: E2 08 00 86 B2 80 11 00 00 00 00 00 00 B2 [19:04:57]Write i2c OK [19:04:57]MH_I2C_Read... [19:04:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:04:57]Read from MH i2c: E2 [19:04:57]MH_I2C_Read... [19:04:57]Read from MH i2c: E2 17 00 [19:04:57]MH_I2C_Read... [19:04:57]Read from MH i2c: E2 17 00 86 B2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 01 [19:04:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:04:57]wFMCommunicate OK [19:04:57]requested_item fd.num is exist - process it [19:04:57]SAM_PROTO_GetFieldsCounters [19:04:57]wFMCommunicate request_size=4 [19:04:57]MH_SAM_APDU [19:04:57]CAPDU: 80 13 00 00 [19:04:57]Write to MH i2c: E2 08 00 87 B2 80 13 00 00 00 00 00 00 B5 [19:04:57]Write i2c OK [19:04:57]MH_I2C_Read... [19:04:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:04:58]Read from MH i2c: E2 [19:04:58]MH_I2C_Read... [19:04:58]Read from MH i2c: E2 62 00 [19:04:58]MH_I2C_Read... [19:04:58]Read from MH i2c: E2 62 00 87 B2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 80 72 00 00 0E 04 04 00 74 00 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 F3 [19:04:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 80 72 00 00 0E 04 04 00 74 00 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 [19:04:58]wFMCommunicate OK [19:04:58]SAM_PROTO_GetFieldsCounters done [19:04:58]requested_item shift.num is exist - process it [19:04:58]requested_item shift.opened is exist - process it [19:04:58]req_shift_opened [19:04:58]FM_GetShiftState [19:04:58]SAM_PROTO_GetShiftState [19:04:58]wFMCommunicate request_size=4 [19:04:58]MH_SAM_APDU [19:04:58]CAPDU: 80 13 01 00 [19:04:58]Write to MH i2c: E2 08 00 88 B2 80 13 01 00 00 00 00 00 B7 [19:04:58]Write i2c OK [19:04:58]MH_I2C_Read... [19:04:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:04:58]Read from MH i2c: E2 [19:04:58]MH_I2C_Read... [19:04:58]Read from MH i2c: E2 0E 00 [19:04:58]MH_I2C_Read... [19:04:58]Read from MH i2c: E2 0E 00 88 B2 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 63 [19:04:58]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [19:04:58]wFMCommunicate OK [19:04:58]SAM_PROTO_GetShiftState done [19:04:58]FM_GetShiftState done [19:04:58]req_shift_opened done [19:04:58]requested_item shift.open_date is exist - process it [19:04:58]req_shift_open_date [19:04:58]req_shift_open_date done [19:04:58]produce_requested_data done [19:04:58]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29312,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [19:04:58]process_action_free close_receipt [19:04:58]json_value_free [19:04:58]json_value_free done [19:04:58]process_json_proto returns [19:04:58]Send response to host [19:04:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29312,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [19:04:58]free response buf [19:04:58]execute_script done [19:04:58]execute_script returns [19:04:58]free content buf [19:04:58]Sock 9.Close socket [19:04:58]Sock 9.Thread stoped [19:05:01]OFD Sender: No OFD packet to send [19:05:06]OFD Sender: No OFD packet to send [19:05:11]OFD Sender: No OFD packet to send [19:05:16]OFD Sender: No OFD packet to send [19:05:21]OFD Sender: No OFD packet to send [19:05:26]OFD Sender: No OFD packet to send [19:05:31]OFD Sender: No OFD packet to send [19:05:36]OFD Sender: No OFD packet to send [19:05:38]int [19:05:38]Write to MH i2c: 01 00 00 89 B2 3B [19:05:38]*** FLAG_PRN_KEY set [19:05:38]Write i2c OK [19:05:38]MH_I2C_Read... [19:05:38]Read from MH i2c: 01 [19:05:38]MH_I2C_Read... [19:05:38]Read from MH i2c: 01 07 00 [19:05:38]MH_I2C_Read... [19:05:38]Read from MH i2c: 01 07 00 89 B2 00 08 00 00 00 FF 0F 58 [19:05:38]state=0 [19:05:38]Key pressed [19:05:38]Feed [19:05:38]Write to MH i2c: D8 00 00 8A B2 13 [19:05:38]Write i2c OK [19:05:38]MH_I2C_Read... [19:05:38]Read from MH i2c: D8 [19:05:38]MH_I2C_Read... [19:05:38]Read from MH i2c: D8 01 00 [19:05:38]MH_I2C_Read... [19:05:38]Read from MH i2c: D8 01 00 8A B2 00 14 [19:05:38]int [19:05:38]Write to MH i2c: 01 00 00 8B B2 3D [19:05:38]Write i2c OK [19:05:38]MH_I2C_Read... [19:05:38]Read from MH i2c: 01 [19:05:38]MH_I2C_Read... [19:05:38]Read from MH i2c: 01 07 00 [19:05:38]MH_I2C_Read... [19:05:38]Read from MH i2c: 01 07 00 8B B2 00 48 00 00 00 3C 00 C8 [19:05:38]state=2 [19:05:38]Key pressed [19:05:39]int [19:05:39]Write to MH i2c: 01 00 00 8C B2 3E [19:05:39]*** FLAG_PRN_KEY reset [19:05:39]Write i2c OK [19:05:39]MH_I2C_Read... [19:05:39]Read from MH i2c: 01 [19:05:39]MH_I2C_Read... [19:05:39]Read from MH i2c: 01 07 00 [19:05:39]MH_I2C_Read... [19:05:39]Read from MH i2c: 01 07 00 8C B2 00 00 00 00 00 F7 0F 4B [19:05:39]state=2 [19:05:39]Stop feed [19:05:41]OFD Sender: No OFD packet to send [19:05:46]OFD Sender: No OFD packet to send [19:05:51]OFD Sender: No OFD packet to send [19:05:56]OFD Sender: No OFD packet to send [19:06:01]OFD Sender: No OFD packet to send [19:06:06]OFD Sender: No OFD packet to send [19:06:11]OFD Sender: No OFD packet to send [19:06:16]OFD Sender: No OFD packet to send [19:06:21]OFD Sender: No OFD packet to send [19:06:25]int [19:06:25]Write to MH i2c: 01 00 00 8D B2 3F [19:06:25]*** FLAG_PRN_KEY set [19:06:25]Write i2c OK [19:06:25]MH_I2C_Read... [19:06:25]Read from MH i2c: 01 [19:06:25]MH_I2C_Read... [19:06:25]Read from MH i2c: 01 07 00 [19:06:25]MH_I2C_Read... [19:06:25]Read from MH i2c: 01 07 00 8D B2 00 08 00 00 00 FF 0F 5C [19:06:25]state=0 [19:06:25]Key pressed [19:06:25]Feed [19:06:25]Write to MH i2c: D8 00 00 8E B2 17 [19:06:25]Write i2c OK [19:06:25]MH_I2C_Read... [19:06:25]Read from MH i2c: D8 [19:06:25]MH_I2C_Read... [19:06:25]Read from MH i2c: D8 01 00 [19:06:25]MH_I2C_Read... [19:06:25]Read from MH i2c: D8 01 00 8E B2 00 18 [19:06:25]int [19:06:25]Write to MH i2c: 01 00 00 8F B2 41 [19:06:25]Write i2c OK [19:06:25]MH_I2C_Read... [19:06:25]Read from MH i2c: 01 [19:06:25]MH_I2C_Read... [19:06:25]Read from MH i2c: 01 07 00 [19:06:25]MH_I2C_Read... [19:06:25]Read from MH i2c: 01 07 00 8F B2 00 48 00 00 00 3D 00 CD [19:06:25]state=2 [19:06:25]Key pressed [19:06:26]int [19:06:26]Write to MH i2c: 01 00 00 90 B2 42 [19:06:26]*** FLAG_PRN_KEY reset [19:06:26]Write i2c OK [19:06:26]MH_I2C_Read... [19:06:26]Read from MH i2c: 01 [19:06:26]MH_I2C_Read... [19:06:26]Read from MH i2c: 01 07 00 [19:06:26]MH_I2C_Read... [19:06:26]Read from MH i2c: 01 07 00 90 B2 00 00 00 00 00 FF 0F 57 [19:06:26]state=2 [19:06:26]Stop feed [19:06:26]OFD Sender: No OFD packet to send [19:06:31]OFD Sender: No OFD packet to send [19:06:36]OFD Sender: No OFD packet to send [19:06:42]OFD Sender: No OFD packet to send [19:06:47]OFD Sender: No OFD packet to send [19:06:52]OFD Sender: No OFD packet to send [19:06:57]OFD Sender: No OFD packet to send [19:07:02]OFD Sender: No OFD packet to send [19:07:07]OFD Sender: No OFD packet to send [19:07:12]OFD Sender: No OFD packet to send [19:07:17]OFD Sender: No OFD packet to send [19:07:22]OFD Sender: No OFD packet to send [19:07:27]OFD Sender: No OFD packet to send [19:07:32]OFD Sender: No OFD packet to send [19:07:37]OFD Sender: No OFD packet to send [19:07:42]OFD Sender: No OFD packet to send [19:07:47]OFD Sender: No OFD packet to send [19:07:52]OFD Sender: No OFD packet to send [19:07:57]OFD Sender: No OFD packet to send [19:08:02]OFD Sender: No OFD packet to send [19:08:07]OFD Sender: No OFD packet to send [19:08:12]OFD Sender: No OFD packet to send [19:08:17]OFD Sender: No OFD packet to send [19:08:22]OFD Sender: No OFD packet to send [19:08:27]OFD Sender: No OFD packet to send [19:08:32]OFD Sender: No OFD packet to send [19:08:37]OFD Sender: No OFD packet to send [19:08:42]OFD Sender: No OFD packet to send [19:08:47]OFD Sender: No OFD packet to send [19:08:52]OFD Sender: No OFD packet to send [19:08:57]OFD Sender: No OFD packet to send [19:09:02]OFD Sender: No OFD packet to send [19:09:07]OFD Sender: No OFD packet to send [19:09:12]OFD Sender: No OFD packet to send [19:09:17]OFD Sender: No OFD packet to send [19:09:22]OFD Sender: No OFD packet to send [19:09:27]OFD Sender: No OFD packet to send [19:09:32]OFD Sender: No OFD packet to send [19:09:37]OFD Sender: No OFD packet to send [19:09:42]OFD Sender: No OFD packet to send [19:09:47]OFD Sender: No OFD packet to send [19:09:52]OFD Sender: No OFD packet to send [19:09:57]OFD Sender: No OFD packet to send [19:10:02]OFD Sender: No OFD packet to send [19:10:07]OFD Sender: No OFD packet to send [19:10:12]OFD Sender: No OFD packet to send [19:10:17]OFD Sender: No OFD packet to send [19:10:22]OFD Sender: No OFD packet to send [19:10:27]OFD Sender: No OFD packet to send [19:10:32]OFD Sender: No OFD packet to send [19:10:37]OFD Sender: No OFD packet to send [19:10:42]OFD Sender: No OFD packet to send [19:10:47]OFD Sender: No OFD packet to send [19:10:52]OFD Sender: No OFD packet to send [19:10:57]OFD Sender: No OFD packet to send [19:11:02]OFD Sender: No OFD packet to send [19:11:07]OFD Sender: No OFD packet to send [19:11:12]OFD Sender: No OFD packet to send [19:11:17]OFD Sender: No OFD packet to send [19:11:22]OFD Sender: No OFD packet to send [19:11:27]OFD Sender: No OFD packet to send [19:11:32]OFD Sender: No OFD packet to send [19:11:37]OFD Sender: No OFD packet to send [19:11:42]OFD Sender: No OFD packet to send [19:11:47]OFD Sender: No OFD packet to send [19:11:52]OFD Sender: No OFD packet to send [19:11:57]OFD Sender: No OFD packet to send [19:12:02]OFD Sender: No OFD packet to send [19:12:07]OFD Sender: No OFD packet to send [19:12:12]OFD Sender: No OFD packet to send [19:12:17]OFD Sender: No OFD packet to send [19:12:17]accept exits with 7 [19:12:17]New connection [19:12:17]New thread 3066785124 created [19:12:17]Thread 3066928484 joined [19:12:17]Waiting for new connection... [19:12:17] Sock 7.Parse request [19:12:17]Sock 7.Check first char [19:12:17]Sock 7.First char is OK [19:12:17]request: POST /json_proto HTTP/1.0 [19:12:17]Method: POST [19:12:17]URL: /json_proto [19:12:17]Method is POST - this is cgi request [19:12:17]url: /json_proto [19:12:17]query_string will be loaded in cgi processing [19:12:17]execute_cgi json_proto POST (null) [19:12:17]execute_cgi path=json_proto method=POST [19:12:17]POST find Content-Length [19:12:17]Host: 172.17.33.3:8080 [19:12:17]Content-Length: 805 [19:12:17]Content-Type: application/json [19:12:17] [19:12:17]POST finish read [19:12:17]Found Content-Length = 805 [19:12:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347703", "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 }]} ], "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" : 1500.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:12:17]execute_script... [19:12: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)347703", "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 }]} ], "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" : 1500.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:12:17]POST & json_proto [19:12:17]process_json_proto [19:12:17]json parsed OK: [19:12:17]protocol is kg_v1.0 [19:12:17]action value=close_receipt [19:12:17]process_action close_receipt [19:12:17]cmd_close_receipt [19:12:17]MH_GetDate [19:12:17]Write to MH i2c: F0 00 00 91 B2 32 [19:12:17]Write i2c OK [19:12:17]MH_I2C_Read... [19:12:17]Read from MH i2c: F0 [19:12:17]MH_I2C_Read... [19:12:17]Read from MH i2c: F0 09 00 [19:12:17]MH_I2C_Read... [19:12:17]Read from MH i2c: F0 09 00 91 B2 00 9C 2A 1C 66 23 5B 8F 65 F5 [19:12:17]GetLastDocTimeStamp 1713121505 [19:12:17]current date 1713121948 [19:12:17]FM_GetShiftState [19:12:17]SAM_PROTO_GetShiftState [19:12:17]wFMCommunicate request_size=4 [19:12:17]MH_SAM_APDU [19:12:17]CAPDU: 80 13 01 00 [19:12:17]Write to MH i2c: E2 08 00 92 B2 80 13 01 00 00 00 00 00 C1 [19:12:17]Write i2c OK [19:12:17]MH_I2C_Read... [19:12:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:12:17]Read from MH i2c: E2 [19:12:17]MH_I2C_Read... [19:12:17]Read from MH i2c: E2 0E 00 [19:12:17]MH_I2C_Read... [19:12:17]Read from MH i2c: E2 0E 00 92 B2 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 6D [19:12:17]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [19:12:17]wFMCommunicate OK [19:12:17]SAM_PROTO_GetShiftState done [19:12:17]FM_GetShiftState done [19:12:17]opened in 1713053951 [19:12:17]opened+sec_in_day 1713140351 [19:12:17]quantity*price = 150012 [19:12:17]sum+1 = 150014 [19:12:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.13 НСП 1% : 13.27 НДС 12% : 159.31 Наличными: 0.00 Безнал.: 1500.13 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 223 14.04.2024 19:12 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29313 ФПД: 252635256114834 1/tax-web-control/client/api/v1/ticket?date=20240414T191228&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29313&fm=252635256114834&tin=02508201610067®Number=0000138879044617&sum=150013 [19:12:18]StoreToDocumentArchive [19:12:18]shift 116 fd 29313 [19:12:18]save to /storage/0116/doc_00029313 [19:12:18]save last doc name /storage/0116/doc_00029313 to /storage/kkm_last_doc_name [19:12:18]save OK [19:12:18]Clear old archive folders... [19:12:18]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:12:18]tlvbuf is 01286100 [19:12:18]SAM_PROTO_ClearQueue [19:12:18]wFMCommunicate request_size=4 [19:12:18]MH_SAM_APDU [19:12:18]CAPDU: 80 09 00 00 [19:12:18]Write to MH i2c: E2 08 00 9F B2 80 09 00 00 00 00 00 00 C3 [19:12:18]Write i2c OK [19:12:18]MH_I2C_Read... [19:12:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:12:18]Read from MH i2c: E2 [19:12:18]MH_I2C_Read... [19:12:18]Read from MH i2c: E2 03 00 [19:12:18]MH_I2C_Read... [19:12:18]Read from MH i2c: E2 03 00 9F B2 00 90 00 C5 [19:12:18]RAPDU: 90 00 [19:12:18]wFMCommunicate OK [19:12:18]SAM_PROTO_ClearQueue done [19:12:18]KKMCreateOFDPacket [19:12:18]OFDProtocolAddRootSTLVToBuf [19:12:18]FM_MakeSignedData [19:12:18]FM_MakeSignedData [19:12:18]SAM_PROTO_SignData [19:12:18]wFMCommunicate request_size=4 [19:12:18]MH_SAM_APDU [19:12:18]CAPDU: 80 0D 01 02 [19:12:18]Write to MH i2c: E2 08 00 A0 B2 80 0D 01 02 00 00 00 00 CB [19:12:18]Write i2c OK [19:12:18]MH_I2C_Read... [19:12:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:12:18]Read from MH i2c: E2 [19:12:18]MH_I2C_Read... [19:12:18]Read from MH i2c: E2 03 00 [19:12:18]MH_I2C_Read... [19:12:18]Read from MH i2c: E2 03 00 A0 B2 00 90 00 C6 [19:12:18]RAPDU: 90 00 [19:12:18]wFMCommunicate OK [19:12:18]wFMCommunicate request_size=255 [19:12:18]MH_SAM_APDU [19:12:18]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 FD 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 00 00 00 00 00 00 39 04 06 00 FD 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 9C 2A 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 81 72 00 00 35 04 06 00 E5 C5 3A B2 [19:12:18]Write to MH i2c: E2 02 01 A1 B2 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 FD 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 00 00 00 00 00 00 39 04 06 00 FD 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 9C 2A 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 81 72 00 00 35 04 06 00 E5 C5 3A B2 00 00 92 [19:12:18]Write i2c OK [19:12:18]MH_I2C_Read... [19:12:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:12:18]Read from MH i2c: E2 [19:12:18]MH_I2C_Read... [19:12:18]Read from MH i2c: E2 03 00 [19:12:18]MH_I2C_Read... [19:12:18]Read from MH i2c: E2 03 00 A1 B2 00 90 00 C7 [19:12:18]RAPDU: 90 00 [19:12:18]wFMCommunicate OK [19:12:18]wFMCommunicate request_size=7 [19:12:18]MH_SAM_APDU [19:12:18]CAPDU: 80 0D 02 02 02 CE 92 [19:12:18]Write to MH i2c: E2 0A 00 A2 B2 80 0D 02 02 02 00 CE 92 00 00 32 [19:12:18]Write i2c OK [19:12:18]MH_I2C_Read... [19:12:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:12:18]Read from MH i2c: E2 [19:12:18]MH_I2C_Read... [19:12:18]Read from MH i2c: E2 03 00 [19:12:18]MH_I2C_Read... [19:12:18]Read from MH i2c: E2 03 00 A2 B2 00 90 00 C8 [19:12:18]RAPDU: 90 00 [19:12:18]wFMCommunicate OK [19:12:18]wFMCommunicate request_size=4 [19:12:18]MH_SAM_APDU [19:12:18]CAPDU: 80 0D 03 02 [19:12:18]Write to MH i2c: E2 08 00 A3 B2 80 0D 03 02 00 00 00 00 D0 [19:12:18]Write i2c OK [19:12:18]MH_I2C_Read... [19:12:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:12:19]Read from MH i2c: E2 [19:12:19]MH_I2C_Read... [19:12:19]Read from MH i2c: E2 0B 00 [19:12:19]MH_I2C_Read... [19:12:19]Read from MH i2c: E2 0B 00 A3 B2 00 87 E1 91 FF E2 92 50 F1 90 00 7E [19:12:19]RAPDU: 87 E1 91 FF E2 92 50 F1 90 00 [19:12:19]wFMCommunicate OK [19:12:19]SAM_PROTO_SignData done [19:12:19]FM_MakeSignedData done [19:12:19]CreateOFDProtocolMessage [19:12:19]wFMCommunicate request_size=4 [19:12:19]MH_SAM_APDU [19:12:19]CAPDU: 80 11 00 00 [19:12:19]Write to MH i2c: E2 08 00 A4 B2 80 11 00 00 00 00 00 00 D0 [19:12:19]Write i2c OK [19:12:19]MH_I2C_Read... [19:12:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:12:19]Read from MH i2c: E2 [19:12:19]MH_I2C_Read... [19:12:19]Read from MH i2c: E2 17 00 [19:12:19]MH_I2C_Read... [19:12:19]Read from MH i2c: E2 17 00 A4 B2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 1F [19:12:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:12:19]wFMCommunicate OK [19:12:19]CreateOFDProtocolMessage done [19:12:19]OFDSenderStorePacket 29313 [19:12:19]StoreOFDPacket docnum=29313 [19:12:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 F9 41 04 01 C1 0E 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 FD 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 00 00 00 00 00 00 39 04 06 00 FD 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 9C 2A 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 81 72 00 00 35 04 06 00 E5 C5 3A B2 CE 92 87 E1 91 FF E2 92 50 F1 [19:12:19]CheckFolder [19:12:19]dirname=/storage/ofd_packets [19:12:19]CheckFolder done [19:12:19]ProducePacketName [19:12:19]name=ofd_packets/00029313 [19:12:19]NVStorageSaveData ofd_packets/00029313 [19:12:19]File name is /storage/ofd_packets/00029313 [19:12:19]Write 298 bytes [19:12:19]NVStorageSaveData done [19:12:19]OFDSenderStorePacket done [19:12:19]KKMCreateOFDPacket done [19:12:19]NVStorageSaveData kkm_last_timestamp [19:12:19]File name is /storage/kkm_last_timestamp [19:12:19]Write 4 bytes [19:12:19]NVStorageSaveData done [19:12:19]ExternCall_PrintAddStr [19:12:19]wPrintStart [19:12:19]Write to MH i2c: 01 00 00 A5 B2 57 [19:12:19]Write i2c OK [19:12:19]MH_I2C_Read... [19:12:19]Read from MH i2c: 01 [19:12:19]MH_I2C_Read... [19:12:19]Read from MH i2c: 01 07 00 [19:12:19]MH_I2C_Read... [19:12:19]Read from MH i2c: 01 07 00 A5 B2 00 00 00 00 00 FF 0F 6C [19:12:19]RasterBufferAndPrint [19:12:19]line Счет N : (1)347703 [19:12:19]line ИНН: 02508201610067 [19:12:19]line Контрольно-Кассовый Чек [19:12:19]line ПРОДАЖА [19:12:19]line ТРК (МРК, ГНК) : 51 [19:12:19]line Товар: 2710194210 [19:12:19]line ДТ-К-5 [19:12:19]line 20.720 * 72.40 [19:12:19]line = 1500.13 [19:12:19]line НДС 12% НСП 1% [19:12:19]line > о реализуемом товаре [19:12:19]line ИТОГО: 1500.13 [19:12:19]line НСП 1% : 13.27 [19:12:19]line НДС 12% : 159.31 [19:12:19]line Наличными: 0.00 [19:12:19]line Безнал.: 1500.13 [19:12:19]line Место: АЗС № 108 "Партнер Нефть" [19:12:19]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [19:12:19]line СНО: Общий режим [19:12:19]line Чек 223 14.04.2024 19:12 [19:12:19]line Смена: 116 ФФД: 1.0 [19:12:19]line ЗНМ: 0300000027 [19:12:19]line РНМ: 0000138879044617 [19:12:19]line Версия ККМ: 001 [19:12:19]line Платежная система: О! деньги [19:12:19]line ФМ: 0000000000963154 [19:12:19]line ФД: 29313 [19:12:19]line ФПД: 252635256114834 [19:12:19]line 1/tax-web-control/client/api/v1/ticket?date=20240414T191228&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29313&fm=252635256114834&tin=02508201610067®Number=0000138879044617&sum=150013 [19:12:19]OFD Sender: Processing packet 29313 [packets to send 8, broken 7] [19:12:19]ProducePacketName [19:12:19]name=ofd_packets/00029313 [19:12:19]OFD Sender: To server: pG, [19:12:19]CommunicateWithHost lk.salyk.kg:30040 [19:12:19]ConnectInit lk.salyk.kg [19:12:19]written 0, free lines is 4095 [19:12:19]Connected sock=10 [19:12:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 F9 41 04 01 C1 0E 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 FD 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 00 00 00 00 00 00 39 04 06 00 FD 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 9C 2A 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 81 72 00 00 35 04 06 00 E5 C5 3A B2 CE 92 87 E1 91 FF E2 92 50 F1 [19:12:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 9F 0A 47 00 61 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 39 36 33 31 35 34 10 04 04 00 81 72 00 00 F4 03 04 00 40 D5 1B 66 B6 04 01 00 00 F4 2D 39 FB E4 55 80 BB [19:12:19]CommunicateWithHost err = 0 [19:12:19]CheckOFDResponse [19:12:19]1017 (14) - 77093643461234 [19:12:19]1041 (16) - 0000000000963154 [19:12:19]1040 (4) - 29313 [19:12:19]1012 (4) - 14.04.2024 13:08 [19:12:19]1206 (1) - 0 [19:12:19]OFD Sender: Remove packet 29313 [19:12:19]ProducePacketName [19:12:19]name=ofd_packets/00029313 [19:12:19]NVStorageDeleteData [19:12:19]Write to MH i2c: 01 00 00 CE B2 80 [19:12:19]Write i2c OK [19:12:19]MH_I2C_Read... [19:12:19]Read from MH i2c: 01 [19:12:19]MH_I2C_Read... [19:12:19]Read from MH i2c: 01 07 00 [19:12:19]MH_I2C_Read... [19:12:19]Read from MH i2c: 01 07 00 CE B2 00 00 00 00 00 EA 0C 7D [19:12:19]RasterBufferAndPrint [19:12:19]line [19:12:19]line [19:12:19]line [19:12:19]line [19:12:19]line [19:12:19]written 0, free lines is 3312 [19:12:19]MH_Cut [19:12:19]Write to MH i2c: D1 01 00 D5 B2 01 59 [19:12:19]Write i2c OK [19:12:19]MH_I2C_Read... [19:12:19]Read from MH i2c: D1 [19:12:19]MH_I2C_Read... [19:12:19]Read from MH i2c: D1 01 00 [19:12:19]MH_I2C_Read... [19:12:19]Read from MH i2c: D1 01 00 D5 B2 00 58 [19:12:19]Write to MH i2c: 01 00 00 D6 B2 88 [19:12:19]Write i2c OK [19:12:19]MH_I2C_Read... [19:12:20]OFD Sender: No OFD packet to send [19:12:20]*** Cut start [19:12:20]*** Partial cut [19:12:20]*** CUTSNS_PIN = 1 [19:12:20]*** CUTSNS_PIN = 0 [19:12:20]*** Brake cut motor [19:12:21]Read from MH i2c: 01 [19:12:21]MH_I2C_Read... [19:12:21]*** Stop cut motor [19:12:21]*** Cut end [19:12:21]Read from MH i2c: 01 07 00 [19:12:21]MH_I2C_Read... [19:12:21]Read from MH i2c: 01 07 00 D6 B2 00 00 00 00 00 FF 0F 9D [19:12:21]process_action close_receipt done [19:12:21]requested_data is exist [19:12:21]produce_requested_data [19:12:21]requested_item fm.sn is exist - process it [19:12:21]wFMCommunicate request_size=4 [19:12:21]MH_SAM_APDU [19:12:21]CAPDU: 80 11 00 00 [19:12:21]Write to MH i2c: E2 08 00 D7 B2 80 11 00 00 00 00 00 00 03 [19:12:21]Write i2c OK [19:12:21]MH_I2C_Read... [19:12:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:12:21]Read from MH i2c: E2 [19:12:21]MH_I2C_Read... [19:12:21]Read from MH i2c: E2 17 00 [19:12:21]MH_I2C_Read... [19:12:21]Read from MH i2c: E2 17 00 D7 B2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 52 [19:12:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:12:21]wFMCommunicate OK [19:12:21]requested_item fd.num is exist - process it [19:12:21]SAM_PROTO_GetFieldsCounters [19:12:21]wFMCommunicate request_size=4 [19:12:21]MH_SAM_APDU [19:12:21]CAPDU: 80 13 00 00 [19:12:21]Write to MH i2c: E2 08 00 D8 B2 80 13 00 00 00 00 00 00 06 [19:12:21]Write i2c OK [19:12:21]MH_I2C_Read... [19:12:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:12:21]Read from MH i2c: E2 [19:12:21]MH_I2C_Read... [19:12:21]Read from MH i2c: E2 62 00 [19:12:21]MH_I2C_Read... [19:12:21]Read from MH i2c: E2 62 00 D8 B2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 81 72 00 00 0E 04 04 00 74 00 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 48 [19:12:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 81 72 00 00 0E 04 04 00 74 00 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 [19:12:21]wFMCommunicate OK [19:12:21]SAM_PROTO_GetFieldsCounters done [19:12:21]requested_item shift.num is exist - process it [19:12:21]requested_item shift.opened is exist - process it [19:12:21]req_shift_opened [19:12:21]FM_GetShiftState [19:12:21]SAM_PROTO_GetShiftState [19:12:21]wFMCommunicate request_size=4 [19:12:21]MH_SAM_APDU [19:12:21]CAPDU: 80 13 01 00 [19:12:21]Write to MH i2c: E2 08 00 D9 B2 80 13 01 00 00 00 00 00 08 [19:12:21]Write i2c OK [19:12:21]MH_I2C_Read... [19:12:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:12:21]Read from MH i2c: E2 [19:12:21]MH_I2C_Read... [19:12:21]Read from MH i2c: E2 0E 00 [19:12:21]MH_I2C_Read... [19:12:21]Read from MH i2c: E2 0E 00 D9 B2 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 B4 [19:12:21]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [19:12:21]wFMCommunicate OK [19:12:21]SAM_PROTO_GetShiftState done [19:12:21]FM_GetShiftState done [19:12:21]req_shift_opened done [19:12:21]requested_item shift.open_date is exist - process it [19:12:21]req_shift_open_date [19:12:21]req_shift_open_date done [19:12:21]produce_requested_data done [19:12:21]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29313,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [19:12:21]process_action_free close_receipt [19:12:21]json_value_free [19:12:21]json_value_free done [19:12:21]process_json_proto returns [19:12:21]Send response to host [19:12:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29313,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [19:12:21]free response buf [19:12:21]execute_script done [19:12:21]execute_script returns [19:12:21]free content buf [19:12:21]Sock 7.Close socket [19:12:21]Sock 7.Thread stoped [19:12:25]OFD Sender: No OFD packet to send [19:12:30]OFD Sender: No OFD packet to send [19:12:35]OFD Sender: No OFD packet to send [19:12:40]OFD Sender: No OFD packet to send [19:12:45]OFD Sender: No OFD packet to send [19:12:50]OFD Sender: No OFD packet to send [19:12:55]OFD Sender: No OFD packet to send [19:13:00]OFD Sender: No OFD packet to send [19:13:00]accept exits with 9 [19:13:00]New connection [19:13:00]New thread 3066928484 created [19:13:00]Thread 3066785124 joined [19:13:00]Waiting for new connection... [19:13:00] Sock 9.Parse request [19:13:00]Sock 9.Check first char [19:13:00]Sock 9.First char is OK [19:13:00]request: POST /json_proto HTTP/1.0 [19:13:00]Method: POST [19:13:00]URL: /json_proto [19:13:00]Method is POST - this is cgi request [19:13:00]url: /json_proto [19:13:00]query_string will be loaded in cgi processing [19:13:00]execute_cgi json_proto POST (null) [19:13:00]execute_cgi path=json_proto method=POST [19:13:00]POST find Content-Length [19:13:00]Host: 172.17.33.3:8080 [19:13:00]Content-Length: 1208 [19:13:00]Content-Type: application/json [19:13:00] [19:13:00]POST finish read [19:13:00]Found Content-Length = 1208 [19:13:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043B\u0438\u043A\u0431\u0430\u0435\u0432\u0430. \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)347702\u000A14.04.2024 18:54\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 60.000 x 64.30\u000A\u0418\u0422\u041E\u0413: 3858.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3581557;3581559;3581556\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:13:00]execute_script... [19:13:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043B\u0438\u043A\u0431\u0430\u0435\u0432\u0430. \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)347702\u000A14.04.2024 18:54\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 60.000 x 64.30\u000A\u0418\u0422\u041E\u0413: 3858.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3581557;3581559;3581556\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:13:00]POST & json_proto [19:13:00]process_json_proto [19:13:00]json parsed OK: [19:13:00]protocol is kg_v1.0 [19:13:00]action value=print_text [19:13:00]process_action print_text [19:13:00]cmd_print_text [19:13:00]ExternCall_PrintAddStr [19:13:00]wPrintStart [19:13:00]Write to MH i2c: 01 00 00 DA B2 8C [19:13:00]Write i2c OK [19:13:00]MH_I2C_Read... [19:13:00]Read from MH i2c: 01 [19:13:00]MH_I2C_Read... [19:13:00]Read from MH i2c: 01 07 00 [19:13:00]MH_I2C_Read... [19:13:00]Read from MH i2c: 01 07 00 DA B2 00 00 00 00 00 FF 0F A1 [19:13:00]RasterBufferAndPrint [19:13:00]line *****ТОВАРНЫЙ ЧЕК***** [19:13:00]line АЗС 108 [19:13:00]line Партнер нефть [19:13:00]line 02508201610067 [19:13:00]line Кассир : Аликбаева. Д. [19:13:00]line Счет N : (1)347702 [19:13:00]line 14.04.2024 18:54 [19:13:00]line ПРОДАЖА [19:13:00]line ТРК (МРК, ГНК): 32 [19:13:00]line Вид ГСМ : 2710124130 [19:13:00]line Аи-92-К-5 [19:13:00]line 60.000 x 64.30 [19:13:00]line ИТОГ: 3858.00 [19:13:00]line Тип оплаты: Талоны: Партнер нефть [19:13:00]line 3581557;3581559;3581556 [19:13:00]line ______________________ [19:13:00]line (подпись) [19:13:00]written 0, free lines is 4095 [19:13:01]Write to MH i2c: 01 00 00 EE B2 A0 [19:13:01]Write i2c OK [19:13:01]MH_I2C_Read... [19:13:01]Read from MH i2c: 01 [19:13:01]MH_I2C_Read... [19:13:01]Read from MH i2c: 01 07 00 [19:13:01]MH_I2C_Read... [19:13:01]Read from MH i2c: 01 07 00 EE B2 00 00 00 00 00 1D 0E D2 [19:13:01]RasterBufferAndPrint [19:13:01]line [19:13:01]line [19:13:01]line [19:13:01]line [19:13:01]line [19:13:01]written 0, free lines is 3615 [19:13:01]MH_Cut [19:13:01]Write to MH i2c: D1 01 00 F5 B2 01 79 [19:13:01]Write i2c OK [19:13:01]MH_I2C_Read... [19:13:01]Read from MH i2c: D1 [19:13:01]MH_I2C_Read... [19:13:01]Read from MH i2c: D1 01 00 [19:13:01]MH_I2C_Read... [19:13:01]Read from MH i2c: D1 01 00 F5 B2 00 78 [19:13:01]Write to MH i2c: 01 00 00 F6 B2 A8 [19:13:01]Write i2c OK [19:13:01]MH_I2C_Read... [19:13:01]*** Cut start [19:13:01]*** Partial cut [19:13:01]*** CUTSNS_PIN = 1 [19:13:01]*** CUTSNS_PIN = 0 [19:13:01]*** Brake cut motor [19:13:02]Read from MH i2c: 01 [19:13:02]MH_I2C_Read... [19:13:02]*** Stop cut motor [19:13:02]*** Cut end [19:13:02]Read from MH i2c: 01 07 00 [19:13:02]MH_I2C_Read... [19:13:02]Read from MH i2c: 01 07 00 F6 B2 00 00 00 00 00 FF 0F BD [19:13:02]process_action print_text done [19:13:02]requested_data is exist [19:13:02]produce_requested_data [19:13:02]requested_item fm.sn is exist - process it [19:13:02]wFMCommunicate request_size=4 [19:13:02]MH_SAM_APDU [19:13:02]CAPDU: 80 11 00 00 [19:13:02]Write to MH i2c: E2 08 00 F7 B2 80 11 00 00 00 00 00 00 23 [19:13:02]Write i2c OK [19:13:02]MH_I2C_Read... [19:13:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:13:02]Read from MH i2c: E2 [19:13:02]MH_I2C_Read... [19:13:02]Read from MH i2c: E2 17 00 [19:13:02]MH_I2C_Read... [19:13:02]Read from MH i2c: E2 17 00 F7 B2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 72 [19:13:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:13:02]wFMCommunicate OK [19:13:02]requested_item fd.num is exist - process it [19:13:02]SAM_PROTO_GetFieldsCounters [19:13:02]wFMCommunicate request_size=4 [19:13:02]MH_SAM_APDU [19:13:02]CAPDU: 80 13 00 00 [19:13:02]Write to MH i2c: E2 08 00 F8 B2 80 13 00 00 00 00 00 00 26 [19:13:02]Write i2c OK [19:13:02]MH_I2C_Read... [19:13:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:13:02]Read from MH i2c: E2 [19:13:02]MH_I2C_Read... [19:13:02]Read from MH i2c: E2 62 00 [19:13:02]MH_I2C_Read... [19:13:02]Read from MH i2c: E2 62 00 F8 B2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 81 72 00 00 0E 04 04 00 74 00 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 68 [19:13:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 81 72 00 00 0E 04 04 00 74 00 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 [19:13:02]wFMCommunicate OK [19:13:02]SAM_PROTO_GetFieldsCounters done [19:13:02]requested_item shift.num is exist - process it [19:13:02]requested_item shift.opened is exist - process it [19:13:02]req_shift_opened [19:13:02]FM_GetShiftState [19:13:02]SAM_PROTO_GetShiftState [19:13:02]wFMCommunicate request_size=4 [19:13:02]MH_SAM_APDU [19:13:02]CAPDU: 80 13 01 00 [19:13:02]Write to MH i2c: E2 08 00 F9 B2 80 13 01 00 00 00 00 00 28 [19:13:02]Write i2c OK [19:13:02]MH_I2C_Read... [19:13:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:13:02]Read from MH i2c: E2 [19:13:02]MH_I2C_Read... [19:13:02]Read from MH i2c: E2 0E 00 [19:13:02]MH_I2C_Read... [19:13:02]Read from MH i2c: E2 0E 00 F9 B2 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 D4 [19:13:02]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [19:13:02]wFMCommunicate OK [19:13:02]SAM_PROTO_GetShiftState done [19:13:02]FM_GetShiftState done [19:13:02]req_shift_opened done [19:13:02]requested_item shift.open_date is exist - process it [19:13:02]req_shift_open_date [19:13:02]req_shift_open_date done [19:13:02]produce_requested_data done [19:13:02]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29313,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [19:13:02]process_action_free print_text [19:13:02]json_value_free [19:13:02]json_value_free done [19:13:02]process_json_proto returns [19:13:02]Send response to host [19:13:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29313,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [19:13:02]free response buf [19:13:02]execute_script done [19:13:02]execute_script returns [19:13:02]free content buf [19:13:02]Sock 9.Close socket [19:13:02]Sock 9.Thread stoped [19:13:05]OFD Sender: No OFD packet to send [19:13:10]OFD Sender: No OFD packet to send [19:13:15]OFD Sender: No OFD packet to send [19:13:20]OFD Sender: No OFD packet to send [19:13:25]OFD Sender: No OFD packet to send [19:13:30]OFD Sender: No OFD packet to send [19:13:35]OFD Sender: No OFD packet to send [19:13:40]OFD Sender: No OFD packet to send [19:13:45]OFD Sender: No OFD packet to send [19:13:50]OFD Sender: No OFD packet to send [19:13:55]OFD Sender: No OFD packet to send [19:14:00]OFD Sender: No OFD packet to send [19:14:05]OFD Sender: No OFD packet to send [19:14:10]OFD Sender: No OFD packet to send [19:14:15]OFD Sender: No OFD packet to send [19:14:20]OFD Sender: No OFD packet to send [19:14:25]OFD Sender: No OFD packet to send [19:14:30]OFD Sender: No OFD packet to send [19:14:35]OFD Sender: No OFD packet to send [19:14:40]OFD Sender: No OFD packet to send [19:14:45]OFD Sender: No OFD packet to send [19:14:50]OFD Sender: No OFD packet to send [19:14:52]accept exits with 7 [19:14:52]New connection [19:14:52]New thread 3066785124 created [19:14:52]Thread 3066928484 joined [19:14:52]Waiting for new connection... [19:14:52] Sock 7.Parse request [19:14:52]Sock 7.Check first char [19:14:52]Sock 7.First char is OK [19:14:52]request: POST /json_proto HTTP/1.0 [19:14:52]Method: POST [19:14:52]URL: /json_proto [19:14:52]Method is POST - this is cgi request [19:14:52]url: /json_proto [19:14:52]query_string will be loaded in cgi processing [19:14:52]execute_cgi json_proto POST (null) [19:14:52]execute_cgi path=json_proto method=POST [19:14:52]POST find Content-Length [19:14:52]Host: 172.17.33.3:8080 [19:14:52]Content-Length: 670 [19:14:52]Content-Type: application/json [19:14:52] [19:14:52]POST finish read [19:14:52]Found Content-Length = 670 [19:14:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347704", "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" : 8.120, "sum" : 530.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 530.00, "total" : 530.00, "payments": [ { "type": 0, "sum" : 530.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:14:52]execute_script... [19:14: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)347704", "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" : 8.120, "sum" : 530.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 530.00, "total" : 530.00, "payments": [ { "type": 0, "sum" : 530.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:14:52]POST & json_proto [19:14:52]process_json_proto [19:14:52]json parsed OK: [19:14:52]protocol is kg_v1.0 [19:14:52]action value=close_receipt [19:14:52]process_action close_receipt [19:14:52]cmd_close_receipt [19:14:52]MH_GetDate [19:14:52]Write to MH i2c: F0 00 00 FA B2 9B [19:14:52]Write i2c OK [19:14:52]MH_I2C_Read... [19:14:52]Read from MH i2c: F0 [19:14:52]MH_I2C_Read... [19:14:52]Read from MH i2c: F0 09 00 [19:14:52]MH_I2C_Read... [19:14:52]Read from MH i2c: F0 09 00 FA B2 00 38 2B 1C 66 23 5B 8F 65 FB [19:14:52]GetLastDocTimeStamp 1713121948 [19:14:52]current date 1713122104 [19:14:52]FM_GetShiftState [19:14:52]SAM_PROTO_GetShiftState [19:14:52]wFMCommunicate request_size=4 [19:14:52]MH_SAM_APDU [19:14:52]CAPDU: 80 13 01 00 [19:14:52]Write to MH i2c: E2 08 00 FB B2 80 13 01 00 00 00 00 00 2A [19:14:52]Write i2c OK [19:14:52]MH_I2C_Read... [19:14:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:14:52]Read from MH i2c: E2 [19:14:52]MH_I2C_Read... [19:14:52]Read from MH i2c: E2 0E 00 [19:14:52]MH_I2C_Read... [19:14:52]Read from MH i2c: E2 0E 00 FB B2 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 D6 [19:14:52]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [19:14:52]wFMCommunicate OK [19:14:52]SAM_PROTO_GetShiftState done [19:14:52]FM_GetShiftState done [19:14:52]opened in 1713053951 [19:14:52]opened+sec_in_day 1713140351 [19:14:52]quantity*price = 53023 [19:14:52]sum+1 = 53025 [19:14:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 530.00 Внесено: 530.00 СДАЧА: 0.00 НСП 1% : 4.69 НДС 12% : 56.31 Наличными: 530.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 224 14.04.2024 19:15 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29314 ФПД: 156674631147020 1/tax-web-control/client/api/v1/ticket?date=20240414T191504&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29314&fm=156674631147020&tin=02508201610067®Number=0000138879044617&sum=53000 [19:14:53]StoreToDocumentArchive [19:14:53]shift 116 fd 29314 [19:14:53]save to /storage/0116/doc_00029314 [19:14:53]save last doc name /storage/0116/doc_00029314 to /storage/kkm_last_doc_name [19:14:53]save OK [19:14:53]Clear old archive folders... [19:14:53]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:14:53]tlvbuf is 011B7420 [19:14:53]SAM_PROTO_ClearQueue [19:14:53]wFMCommunicate request_size=4 [19:14:53]MH_SAM_APDU [19:14:53]CAPDU: 80 09 00 00 [19:14:53]Write to MH i2c: E2 08 00 08 B3 80 09 00 00 00 00 00 00 2D [19:14:53]Write i2c OK [19:14:53]MH_I2C_Read... [19:14:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:14:54]Read from MH i2c: E2 [19:14:54]MH_I2C_Read... [19:14:54]Read from MH i2c: E2 03 00 [19:14:54]MH_I2C_Read... [19:14:54]Read from MH i2c: E2 03 00 08 B3 00 90 00 2F [19:14:54]RAPDU: 90 00 [19:14:54]wFMCommunicate OK [19:14:54]SAM_PROTO_ClearQueue done [19:14:54]KKMCreateOFDPacket [19:14:54]OFDProtocolAddRootSTLVToBuf [19:14:54]FM_MakeSignedData [19:14:54]FM_MakeSignedData [19:14:54]SAM_PROTO_SignData [19:14:54]wFMCommunicate request_size=4 [19:14:54]MH_SAM_APDU [19:14:54]CAPDU: 80 0D 01 02 [19:14:54]Write to MH i2c: E2 08 00 09 B3 80 0D 01 02 00 00 00 00 35 [19:14:54]Write i2c OK [19:14:54]MH_I2C_Read... [19:14:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:14:54]Read from MH i2c: E2 [19:14:54]MH_I2C_Read... [19:14:54]Read from MH i2c: E2 03 00 [19:14:54]MH_I2C_Read... [19:14:54]Read from MH i2c: E2 03 00 09 B3 00 90 00 30 [19:14:54]RAPDU: 90 00 [19:14:54]wFMCommunicate OK [19:14:54]wFMCommunicate request_size=255 [19:14:54]MH_SAM_APDU [19:14: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 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 1F 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 20 CF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 CF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 15 00 00 00 00 07 04 06 00 08 CF 00 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 38 2B 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 82 72 00 00 35 04 06 00 [19:14:54]Write to MH i2c: E2 02 01 0A B3 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 1F 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 20 CF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 CF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 15 00 00 00 00 07 04 06 00 08 CF 00 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 38 2B 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 82 72 00 00 35 04 06 00 00 00 2C [19:14:54]Write i2c OK [19:14:54]MH_I2C_Read... [19:14:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:14:54]Read from MH i2c: E2 [19:14:54]MH_I2C_Read... [19:14:54]Read from MH i2c: E2 03 00 [19:14:54]MH_I2C_Read... [19:14:54]Read from MH i2c: E2 03 00 0A B3 00 90 00 31 [19:14:54]RAPDU: 90 00 [19:14:54]wFMCommunicate OK [19:14:54]wFMCommunicate request_size=11 [19:14:54]MH_SAM_APDU [19:14:54]CAPDU: 80 0D 02 02 06 8E 7E A7 BC 1E 0C [19:14:54]Write to MH i2c: E2 0E 00 0B B3 80 0D 02 02 06 00 8E 7E A7 BC 1E 0C 00 00 DD [19:14:54]Write i2c OK [19:14:54]MH_I2C_Read... [19:14:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:14:54]Read from MH i2c: E2 [19:14:54]MH_I2C_Read... [19:14:54]Read from MH i2c: E2 03 00 [19:14:54]MH_I2C_Read... [19:14:54]Read from MH i2c: E2 03 00 0B B3 00 90 00 32 [19:14:54]RAPDU: 90 00 [19:14:54]wFMCommunicate OK [19:14:54]wFMCommunicate request_size=4 [19:14:54]MH_SAM_APDU [19:14:54]CAPDU: 80 0D 03 02 [19:14:54]Write to MH i2c: E2 08 00 0C B3 80 0D 03 02 00 00 00 00 3A [19:14:54]Write i2c OK [19:14:54]MH_I2C_Read... [19:14:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:14:54]Read from MH i2c: E2 [19:14:54]MH_I2C_Read... [19:14:54]Read from MH i2c: E2 0B 00 [19:14:54]MH_I2C_Read... [19:14:54]Read from MH i2c: E2 0B 00 0C B3 00 5E AF D8 6C 6E 40 B9 0E 90 00 01 [19:14:54]RAPDU: 5E AF D8 6C 6E 40 B9 0E 90 00 [19:14:54]wFMCommunicate OK [19:14:54]SAM_PROTO_SignData done [19:14:54]FM_MakeSignedData done [19:14:54]CreateOFDProtocolMessage [19:14:54]wFMCommunicate request_size=4 [19:14:54]MH_SAM_APDU [19:14:54]CAPDU: 80 11 00 00 [19:14:54]Write to MH i2c: E2 08 00 0D B3 80 11 00 00 00 00 00 00 3A [19:14:54]Write i2c OK [19:14:54]MH_I2C_Read... [19:14:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:14:54]Read from MH i2c: E2 [19:14:54]MH_I2C_Read... [19:14:54]Read from MH i2c: E2 17 00 [19:14:54]MH_I2C_Read... [19:14:54]Read from MH i2c: E2 17 00 0D B3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 89 [19:14:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:14:54]wFMCommunicate OK [19:14:54]CreateOFDProtocolMessage done [19:14:54]OFDSenderStorePacket 29314 [19:14:54]StoreOFDPacket docnum=29314 [19:14:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 64 5C 08 01 8D 84 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 1F 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 20 CF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 CF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 15 00 00 00 00 07 04 06 00 08 CF 00 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 38 2B 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 82 72 00 00 35 04 06 00 8E 7E A7 BC 1E 0C 5E AF D8 6C 6E 40 B9 0E [19:14:54]CheckFolder [19:14:54]dirname=/storage/ofd_packets [19:14:54]CheckFolder done [19:14:54]ProducePacketName [19:14:54]name=ofd_packets/00029314 [19:14:54]NVStorageSaveData ofd_packets/00029314 [19:14:54]File name is /storage/ofd_packets/00029314 [19:14:54]Write 302 bytes [19:14:54]NVStorageSaveData done [19:14:54]OFDSenderStorePacket done [19:14:54]KKMCreateOFDPacket done [19:14:54]NVStorageSaveData kkm_last_timestamp [19:14:54]File name is /storage/kkm_last_timestamp [19:14:54]Write 4 bytes [19:14:54]NVStorageSaveData done [19:14:54]ExternCall_PrintAddStr [19:14:54]wPrintStart [19:14:54]Write to MH i2c: 01 00 00 0E B3 C1 [19:14:54]Write i2c OK [19:14:54]MH_I2C_Read... [19:14:54]Read from MH i2c: 01 [19:14:54]MH_I2C_Read... [19:14:54]Read from MH i2c: 01 07 00 [19:14:54]MH_I2C_Read... [19:14:54]Read from MH i2c: 01 07 00 0E B3 00 00 00 00 00 FF 0F D6 [19:14:54]RasterBufferAndPrint [19:14:54]line Счет N : (1)347704 [19:14:54]line ИНН: 02508201610067 [19:14:54]line Контрольно-Кассовый Чек [19:14:54]line ПРОДАЖА [19:14:54]line ТРК (МРК, ГНК) : 52 [19:14:54]line Товар: 2710124130 [19:14:54]line SUPER-92-К-5 [19:14:54]line 8.120 * 65.30 [19:14:54]line = 530.24 [19:14:54]line НДС 12% НСП 1% [19:14:54]line > о реализуемом товаре [19:14:54]line ОКРУГЛЕНИЕ: -0.24 [19:14:54]line ИТОГО: 530.00 [19:14:54]line Внесено: 530.00 [19:14:54]line СДАЧА: 0.00 [19:14:54]line НСП 1% : 4.69 [19:14:54]line НДС 12% : 56.31 [19:14:54]line Наличными: 530.00 [19:14:54]line Безнал.: 0.00 [19:14:54]line Место: АЗС № 108 "Партнер Нефть" [19:14:54]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [19:14:54]line СНО: Общий режим [19:14:54]line Чек 224 14.04.2024 19:15 [19:14:54]line Смена: 116 ФФД: 1.0 [19:14:54]line ЗНМ: 0300000027 [19:14:54]line РНМ: 0000138879044617 [19:14:54]line Версия ККМ: 001 [19:14:54]line ФМ: 0000000000963154 [19:14:54]line ФД: 29314 [19:14:54]line ФПД: 156674631147020 [19:14:54]line 1/tax-web-control/client/api/v1/ticket?date=20240414T191504&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29314&fm=156674631147020&tin=02508201610067®Number=0000138879044617&sum=53000 [19:14:54]OFD Sender: Processing packet 29314 [packets to send 8, broken 7] [19:14:54]ProducePacketName [19:14:54]name=ofd_packets/00029314 [19:14:54]OFD Sender: To server: pG, [19:14:54]CommunicateWithHost lk.salyk.kg:30040 [19:14:54]ConnectInit lk.salyk.kg [19:14:54]written 0, free lines is 4095 [19:14:54]Connected sock=10 [19:14:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 64 5C 08 01 8D 84 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 1F 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 20 CF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 CF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 15 00 00 00 00 07 04 06 00 08 CF 00 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 38 2B 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 82 72 00 00 35 04 06 00 8E 7E A7 BC 1E 0C 5E AF D8 6C 6E 40 B9 0E [19:14:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 F1 23 47 00 83 72 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 82 72 00 00 F4 03 04 00 DB D5 1B 66 B6 04 01 00 00 66 EB 8A DF 1D B2 2B 9A [19:14:55]CommunicateWithHost err = 0 [19:14:55]CheckOFDResponse [19:14:55]1017 (14) - 77093643461234 [19:14:55]1041 (16) - 0000000000963154 [19:14:55]1040 (4) - 29314 [19:14:55]1012 (4) - 14.04.2024 13:10 [19:14:55]1206 (1) - 0 [19:14:55]OFD Sender: Remove packet 29314 [19:14:55]ProducePacketName [19:14:55]name=ofd_packets/00029314 [19:14:55]NVStorageDeleteData [19:14:55]Write to MH i2c: 01 00 00 38 B3 EB [19:14:55]Write i2c OK [19:14:55]MH_I2C_Read... [19:14:55]Read from MH i2c: 01 [19:14:55]MH_I2C_Read... [19:14:55]Read from MH i2c: 01 07 00 [19:14:55]MH_I2C_Read... [19:14:55]Read from MH i2c: 01 07 00 38 B3 00 00 00 00 00 D8 0C D6 [19:14:55]RasterBufferAndPrint [19:14:55]line [19:14:55]line [19:14:55]line [19:14:55]line [19:14:55]line [19:14:55]written 0, free lines is 3295 [19:14:55]MH_Cut [19:14:55]Write to MH i2c: D1 01 00 3F B3 01 C4 [19:14:55]Write i2c OK [19:14:55]MH_I2C_Read... [19:14:55]Read from MH i2c: D1 [19:14:55]MH_I2C_Read... [19:14:55]Read from MH i2c: D1 01 00 [19:14:55]MH_I2C_Read... [19:14:55]Read from MH i2c: D1 01 00 3F B3 00 C3 [19:14:55]Write to MH i2c: 01 00 00 40 B3 F3 [19:14:55]Write i2c OK [19:14:55]MH_I2C_Read... [19:14:55]OFD Sender: No OFD packet to send [19:14:56]*** Cut start [19:14:56]*** Partial cut [19:14:56]*** CUTSNS_PIN = 1 [19:14:56]*** CUTSNS_PIN = 0 [19:14:56]*** Brake cut motor [19:14:56]Read from MH i2c: 01 [19:14:56]MH_I2C_Read... [19:14:56]*** Stop cut motor [19:14:56]*** Cut end [19:14:56]Read from MH i2c: 01 07 00 [19:14:56]MH_I2C_Read... [19:14:56]Read from MH i2c: 01 07 00 40 B3 00 00 00 00 00 FF 0F 08 [19:14:56]process_action close_receipt done [19:14:56]requested_data is exist [19:14:56]produce_requested_data [19:14:56]requested_item fm.sn is exist - process it [19:14:56]wFMCommunicate request_size=4 [19:14:56]MH_SAM_APDU [19:14:56]CAPDU: 80 11 00 00 [19:14:56]Write to MH i2c: E2 08 00 41 B3 80 11 00 00 00 00 00 00 6E [19:14:56]Write i2c OK [19:14:56]MH_I2C_Read... [19:14:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:14:56]Read from MH i2c: E2 [19:14:56]MH_I2C_Read... [19:14:56]Read from MH i2c: E2 17 00 [19:14:56]MH_I2C_Read... [19:14:56]Read from MH i2c: E2 17 00 41 B3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 BD [19:14:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:14:56]wFMCommunicate OK [19:14:56]requested_item fd.num is exist - process it [19:14:56]SAM_PROTO_GetFieldsCounters [19:14:56]wFMCommunicate request_size=4 [19:14:56]MH_SAM_APDU [19:14:56]CAPDU: 80 13 00 00 [19:14:56]Write to MH i2c: E2 08 00 42 B3 80 13 00 00 00 00 00 00 71 [19:14:56]Write i2c OK [19:14:56]MH_I2C_Read... [19:14:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:14:56]Read from MH i2c: E2 [19:14:56]MH_I2C_Read... [19:14:56]Read from MH i2c: E2 62 00 [19:14:56]MH_I2C_Read... [19:14:56]Read from MH i2c: E2 62 00 42 B3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 82 72 00 00 0E 04 04 00 74 00 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 B7 [19:14:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 82 72 00 00 0E 04 04 00 74 00 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 [19:14:56]wFMCommunicate OK [19:14:56]SAM_PROTO_GetFieldsCounters done [19:14:56]requested_item shift.num is exist - process it [19:14:56]requested_item shift.opened is exist - process it [19:14:56]req_shift_opened [19:14:56]FM_GetShiftState [19:14:56]SAM_PROTO_GetShiftState [19:14:56]wFMCommunicate request_size=4 [19:14:56]MH_SAM_APDU [19:14:56]CAPDU: 80 13 01 00 [19:14:56]Write to MH i2c: E2 08 00 43 B3 80 13 01 00 00 00 00 00 73 [19:14:56]Write i2c OK [19:14:56]MH_I2C_Read... [19:14:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:14:56]Read from MH i2c: E2 [19:14:56]MH_I2C_Read... [19:14:56]Read from MH i2c: E2 0E 00 [19:14:56]MH_I2C_Read... [19:14:56]Read from MH i2c: E2 0E 00 43 B3 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 1F [19:14:56]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [19:14:56]wFMCommunicate OK [19:14:56]SAM_PROTO_GetShiftState done [19:14:56]FM_GetShiftState done [19:14:56]req_shift_opened done [19:14:56]requested_item shift.open_date is exist - process it [19:14:56]req_shift_open_date [19:14:56]req_shift_open_date done [19:14:56]produce_requested_data done [19:14:56]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29314,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [19:14:56]process_action_free close_receipt [19:14:56]json_value_free [19:14:56]json_value_free done [19:14:56]process_json_proto returns [19:14:56]Send response to host [19:14:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29314,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [19:14:56]free response buf [19:14:56]execute_script done [19:14:56]execute_script returns [19:14:56]free content buf [19:14:56]Sock 7.Close socket [19:14:56]Sock 7.Thread stoped [19:15:00]OFD Sender: No OFD packet to send [19:15:05]OFD Sender: No OFD packet to send [19:15:10]OFD Sender: No OFD packet to send [19:15:15]OFD Sender: No OFD packet to send [19:15:20]OFD Sender: No OFD packet to send [19:15:25]OFD Sender: No OFD packet to send [19:15:30]OFD Sender: No OFD packet to send [19:15:35]OFD Sender: No OFD packet to send [19:15:40]OFD Sender: No OFD packet to send [19:15:45]OFD Sender: No OFD packet to send [19:15:50]OFD Sender: No OFD packet to send [19:15:55]OFD Sender: No OFD packet to send [19:16:00]OFD Sender: No OFD packet to send [19:16:05]OFD Sender: No OFD packet to send [19:16:10]OFD Sender: No OFD packet to send [19:16:15]OFD Sender: No OFD packet to send [19:16:20]OFD Sender: No OFD packet to send [19:16:25]OFD Sender: No OFD packet to send [19:16:30]OFD Sender: No OFD packet to send [19:16:35]OFD Sender: No OFD packet to send [19:16:40]OFD Sender: No OFD packet to send [19:16:45]OFD Sender: No OFD packet to send [19:16:50]OFD Sender: No OFD packet to send [19:16:55]OFD Sender: No OFD packet to send [19:17:00]OFD Sender: No OFD packet to send [19:17:05]OFD Sender: No OFD packet to send [19:17:10]OFD Sender: No OFD packet to send [19:17:15]OFD Sender: No OFD packet to send [19:17:20]OFD Sender: No OFD packet to send [19:17:25]OFD Sender: No OFD packet to send [19:17:30]OFD Sender: No OFD packet to send [19:17:35]OFD Sender: No OFD packet to send [19:17:40]OFD Sender: No OFD packet to send [19:17:45]OFD Sender: No OFD packet to send [19:17:50]OFD Sender: No OFD packet to send [19:17:55]OFD Sender: No OFD packet to send [19:18:00]OFD Sender: No OFD packet to send [19:18:05]OFD Sender: No OFD packet to send [19:18:10]OFD Sender: No OFD packet to send [19:18:15]OFD Sender: No OFD packet to send [19:18:20]OFD Sender: No OFD packet to send [19:18:25]OFD Sender: No OFD packet to send [19:18:30]OFD Sender: No OFD packet to send [19:18:35]OFD Sender: No OFD packet to send [19:18:40]OFD Sender: No OFD packet to send [19:18:45]OFD Sender: No OFD packet to send [19:18:50]OFD Sender: No OFD packet to send [19:18:55]OFD Sender: No OFD packet to send [19:19:00]OFD Sender: No OFD packet to send [19:19:05]OFD Sender: No OFD packet to send [19:19:10]OFD Sender: No OFD packet to send [19:19:15]OFD Sender: No OFD packet to send [19:19:20]OFD Sender: No OFD packet to send [19:19:22]accept exits with 9 [19:19:22]New connection [19:19:22]New thread 3066928484 created [19:19:22]Thread 3066785124 joined [19:19:22]Waiting for new connection... [19:19:22] Sock 9.Parse request [19:19:22]Sock 9.Check first char [19:19:22]Sock 9.First char is OK [19:19:22]request: POST /json_proto HTTP/1.0 [19:19:22]Method: POST [19:19:22]URL: /json_proto [19:19:22]Method is POST - this is cgi request [19:19:22]url: /json_proto [19:19:22]query_string will be loaded in cgi processing [19:19:22]execute_cgi json_proto POST (null) [19:19:22]execute_cgi path=json_proto method=POST [19:19:22]POST find Content-Length [19:19:22]Host: 172.17.33.3:8080 [19:19:22]Content-Length: 675 [19:19:22]Content-Type: application/json [19:19:22] [19:19:22]POST finish read [19:19:22]Found Content-Length = 675 [19:19:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347705", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 1.330, "sum" : 85.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 85.00, "payments": [ { "type": 0, "sum" : 85.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:19:22]execute_script... [19:19: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)347705", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 1.330, "sum" : 85.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 85.00, "payments": [ { "type": 0, "sum" : 85.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:19:22]POST & json_proto [19:19:22]process_json_proto [19:19:22]json parsed OK: [19:19:22]protocol is kg_v1.0 [19:19:22]action value=close_receipt [19:19:22]process_action close_receipt [19:19:22]cmd_close_receipt [19:19:22]MH_GetDate [19:19:22]Write to MH i2c: F0 00 00 44 B3 E6 [19:19:22]Write i2c OK [19:19:22]MH_I2C_Read... [19:19:22]Read from MH i2c: F0 [19:19:22]MH_I2C_Read... [19:19:22]Read from MH i2c: F0 09 00 [19:19:22]MH_I2C_Read... [19:19:22]Read from MH i2c: F0 09 00 44 B3 00 46 2C 1C 66 23 5B 8F 65 55 [19:19:22]GetLastDocTimeStamp 1713122104 [19:19:22]current date 1713122374 [19:19:22]FM_GetShiftState [19:19:22]SAM_PROTO_GetShiftState [19:19:22]wFMCommunicate request_size=4 [19:19:22]MH_SAM_APDU [19:19:22]CAPDU: 80 13 01 00 [19:19:22]Write to MH i2c: E2 08 00 45 B3 80 13 01 00 00 00 00 00 75 [19:19:22]Write i2c OK [19:19:22]MH_I2C_Read... [19:19:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:19:22]Read from MH i2c: E2 [19:19:22]MH_I2C_Read... [19:19:22]Read from MH i2c: E2 0E 00 [19:19:22]MH_I2C_Read... [19:19:22]Read from MH i2c: E2 0E 00 45 B3 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 21 [19:19:22]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [19:19:22]wFMCommunicate OK [19:19:22]SAM_PROTO_GetShiftState done [19:19:22]FM_GetShiftState done [19:19:22]opened in 1713053951 [19:19:22]opened+sec_in_day 1713140351 [19:19:22]quantity*price = 8551 [19:19:22]sum+1 = 8553 [19:19:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 85.00 Внесено: 1000.00 СДАЧА: 915.00 НСП 1% : 0.76 НДС 12% : 9.08 Наличными: 85.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 225 14.04.2024 19:19 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29315 ФПД: 222479959941011 1/tax-web-control/client/api/v1/ticket?date=20240414T191934&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29315&fm=222479959941011&tin=02508201610067®Number=0000138879044617&sum=8500 [19:19:23]StoreToDocumentArchive [19:19:23]shift 116 fd 29315 [19:19:23]save to /storage/0116/doc_00029315 [19:19:23]save last doc name /storage/0116/doc_00029315 to /storage/kkm_last_doc_name [19:19:23]save OK [19:19:23]Clear old archive folders... [19:19:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:19:23]tlvbuf is 012F0A80 [19:19:23]SAM_PROTO_ClearQueue [19:19:23]wFMCommunicate request_size=4 [19:19:23]MH_SAM_APDU [19:19:23]CAPDU: 80 09 00 00 [19:19:23]Write to MH i2c: E2 08 00 52 B3 80 09 00 00 00 00 00 00 77 [19:19:23]Write i2c OK [19:19:23]MH_I2C_Read... [19:19:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:19:23]Read from MH i2c: E2 [19:19:23]MH_I2C_Read... [19:19:23]Read from MH i2c: E2 03 00 [19:19:23]MH_I2C_Read... [19:19:23]Read from MH i2c: E2 03 00 52 B3 00 90 00 79 [19:19:23]RAPDU: 90 00 [19:19:23]wFMCommunicate OK [19:19:23]SAM_PROTO_ClearQueue done [19:19:23]KKMCreateOFDPacket [19:19:23]OFDProtocolAddRootSTLVToBuf [19:19:23]FM_MakeSignedData [19:19:23]FM_MakeSignedData [19:19:23]SAM_PROTO_SignData [19:19:23]wFMCommunicate request_size=4 [19:19:23]MH_SAM_APDU [19:19:23]CAPDU: 80 0D 01 02 [19:19:23]Write to MH i2c: E2 08 00 53 B3 80 0D 01 02 00 00 00 00 7F [19:19:23]Write i2c OK [19:19:23]MH_I2C_Read... [19:19:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:19:23]Read from MH i2c: E2 [19:19:23]MH_I2C_Read... [19:19:23]Read from MH i2c: E2 03 00 [19:19:23]MH_I2C_Read... [19:19:23]Read from MH i2c: E2 03 00 53 B3 00 90 00 7A [19:19:23]RAPDU: 90 00 [19:19:23]wFMCommunicate OK [19:19:23]wFMCommunicate request_size=255 [19:19:23]MH_SAM_APDU [19:19: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 32 05 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 68 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 4C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 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 E1 00 00 00 F4 03 04 00 46 2C 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 83 72 00 00 35 04 06 00 CA [19:19:23]Write to MH i2c: E2 02 01 54 B3 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 05 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 68 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 4C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 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 E1 00 00 00 F4 03 04 00 46 2C 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 83 72 00 00 35 04 06 00 CA 00 00 2A [19:19:23]Write i2c OK [19:19:23]MH_I2C_Read... [19:19:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:19:24]Read from MH i2c: E2 [19:19:24]MH_I2C_Read... [19:19:24]Read from MH i2c: E2 03 00 [19:19:24]MH_I2C_Read... [19:19:24]Read from MH i2c: E2 03 00 54 B3 00 90 00 7B [19:19:24]RAPDU: 90 00 [19:19:24]wFMCommunicate OK [19:19:24]wFMCommunicate request_size=10 [19:19:24]MH_SAM_APDU [19:19:24]CAPDU: 80 0D 02 02 05 58 26 FB 5F 93 [19:19:24]Write to MH i2c: E2 0D 00 55 B3 80 0D 02 02 05 00 58 26 FB 5F 93 00 00 F7 [19:19:24]Write i2c OK [19:19:24]MH_I2C_Read... [19:19:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:19:24]Read from MH i2c: E2 [19:19:24]MH_I2C_Read... [19:19:24]Read from MH i2c: E2 03 00 [19:19:24]MH_I2C_Read... [19:19:24]Read from MH i2c: E2 03 00 55 B3 00 90 00 7C [19:19:24]RAPDU: 90 00 [19:19:24]wFMCommunicate OK [19:19:24]wFMCommunicate request_size=4 [19:19:24]MH_SAM_APDU [19:19:24]CAPDU: 80 0D 03 02 [19:19:24]Write to MH i2c: E2 08 00 56 B3 80 0D 03 02 00 00 00 00 84 [19:19:24]Write i2c OK [19:19:24]MH_I2C_Read... [19:19:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:19:24]Read from MH i2c: E2 [19:19:24]MH_I2C_Read... [19:19:24]Read from MH i2c: E2 0B 00 [19:19:24]MH_I2C_Read... [19:19:24]Read from MH i2c: E2 0B 00 56 B3 00 8F 1A 8F 9C 4C 2D 7E 2C 90 00 7C [19:19:24]RAPDU: 8F 1A 8F 9C 4C 2D 7E 2C 90 00 [19:19:24]wFMCommunicate OK [19:19:24]SAM_PROTO_SignData done [19:19:24]FM_MakeSignedData done [19:19:24]CreateOFDProtocolMessage [19:19:24]wFMCommunicate request_size=4 [19:19:24]MH_SAM_APDU [19:19:24]CAPDU: 80 11 00 00 [19:19:24]Write to MH i2c: E2 08 00 57 B3 80 11 00 00 00 00 00 00 84 [19:19:24]Write i2c OK [19:19:24]MH_I2C_Read... [19:19:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:19:24]Read from MH i2c: E2 [19:19:24]MH_I2C_Read... [19:19:24]Read from MH i2c: E2 17 00 [19:19:24]MH_I2C_Read... [19:19:24]Read from MH i2c: E2 17 00 57 B3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D3 [19:19:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:19:24]wFMCommunicate OK [19:19:24]CreateOFDProtocolMessage done [19:19:24]OFDSenderStorePacket 29315 [19:19:24]StoreOFDPacket docnum=29315 [19:19:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 F9 EE 07 01 0D F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 05 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 68 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 4C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 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 E1 00 00 00 F4 03 04 00 46 2C 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 83 72 00 00 35 04 06 00 CA 58 26 FB 5F 93 8F 1A 8F 9C 4C 2D 7E 2C [19:19:24]CheckFolder [19:19:24]dirname=/storage/ofd_packets [19:19:24]CheckFolder done [19:19:24]ProducePacketName [19:19:24]name=ofd_packets/00029315 [19:19:24]NVStorageSaveData ofd_packets/00029315 [19:19:24]File name is /storage/ofd_packets/00029315 [19:19:24]Write 301 bytes [19:19:24]NVStorageSaveData done [19:19:24]OFDSenderStorePacket done [19:19:24]KKMCreateOFDPacket done [19:19:24]NVStorageSaveData kkm_last_timestamp [19:19:24]File name is /storage/kkm_last_timestamp [19:19:24]Write 4 bytes [19:19:24]NVStorageSaveData done [19:19:24]ExternCall_PrintAddStr [19:19:24]wPrintStart [19:19:24]Write to MH i2c: 01 00 00 58 B3 0B [19:19:24]Write i2c OK [19:19:24]MH_I2C_Read... [19:19:24]Read from MH i2c: 01 [19:19:24]MH_I2C_Read... [19:19:24]Read from MH i2c: 01 07 00 [19:19:24]MH_I2C_Read... [19:19:24]Read from MH i2c: 01 07 00 58 B3 00 00 00 00 00 FF 0F 20 [19:19:24]RasterBufferAndPrint [19:19:24]line Счет N : (1)347705 [19:19:24]line ИНН: 02508201610067 [19:19:24]line Контрольно-Кассовый Чек [19:19:24]line ПРОДАЖА [19:19:24]line ТРК (МРК, ГНК) : 13 [19:19:24]line Товар: 2710124130 [19:19:24]line Аи-92-К-5 [19:19:24]line 1.330 * 64.30 [19:19:24]line = 85.52 [19:19:24]line НДС 12% НСП 1% [19:19:24]line > о реализуемом товаре [19:19:24]line ОКРУГЛЕНИЕ: -0.52 [19:19:24]line ИТОГО: 85.00 [19:19:24]line Внесено: 1000.00 [19:19:24]line СДАЧА: 915.00 [19:19:24]line НСП 1% : 0.76 [19:19:24]line НДС 12% : 9.08 [19:19:24]line Наличными: 85.00 [19:19:24]line Безнал.: 0.00 [19:19:24]line Место: АЗС № 108 "Партнер Нефть" [19:19:24]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [19:19:24]line СНО: Общий режим [19:19:24]line Чек 225 14.04.2024 19:19 [19:19:24]line Смена: 116 ФФД: 1.0 [19:19:24]line ЗНМ: 0300000027 [19:19:24]line РНМ: 0000138879044617 [19:19:24]line Версия ККМ: 001 [19:19:24]line ФМ: 0000000000963154 [19:19:24]line ФД: 29315 [19:19:24]line ФПД: 222479959941011 [19:19:24]line 1/tax-web-control/client/api/v1/ticket?date=20240414T191934&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29315&fm=222479959941011&tin=02508201610067®Number=0000138879044617&sum=8500 [19:19:24]OFD Sender: Processing packet 29315 [packets to send 8, broken 7] [19:19:24]ProducePacketName [19:19:24]name=ofd_packets/00029315 [19:19:24]OFD Sender: To server: pG, [19:19:24]CommunicateWithHost lk.salyk.kg:30040 [19:19:24]ConnectInit lk.salyk.kg [19:19:24]written 0, free lines is 4095 [19:19:24]Connected sock=10 [19:19:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 F9 EE 07 01 0D F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 05 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 68 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 4C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 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 E1 00 00 00 F4 03 04 00 46 2C 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 83 72 00 00 35 04 06 00 CA 58 26 FB 5F 93 8F 1A 8F 9C 4C 2D 7E 2C [19:19:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 1B E1 47 00 BC A7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 83 72 00 00 F4 03 04 00 E9 D6 1B 66 B6 04 01 00 00 18 DF C5 90 06 3B B8 49 [19:19:24]CommunicateWithHost err = 0 [19:19:24]CheckOFDResponse [19:19:24]1017 (14) - 77093643461234 [19:19:24]1041 (16) - 0000000000963154 [19:19:24]1040 (4) - 29315 [19:19:24]1012 (4) - 14.04.2024 13:15 [19:19:24]1206 (1) - 0 [19:19:24]OFD Sender: Remove packet 29315 [19:19:24]ProducePacketName [19:19:24]name=ofd_packets/00029315 [19:19:24]NVStorageDeleteData [19:19:25]Write to MH i2c: 01 00 00 82 B3 35 [19:19:25]Write i2c OK [19:19:25]MH_I2C_Read... [19:19:25]Read from MH i2c: 01 [19:19:25]MH_I2C_Read... [19:19:25]Read from MH i2c: 01 07 00 [19:19:25]MH_I2C_Read... [19:19:25]Read from MH i2c: 01 07 00 82 B3 00 00 00 00 00 D7 0C 1F [19:19:25]RasterBufferAndPrint [19:19:25]line [19:19:25]line [19:19:25]line [19:19:25]line [19:19:25]line [19:19:25]written 0, free lines is 3294 [19:19:25]MH_Cut [19:19:25]Write to MH i2c: D1 01 00 89 B3 01 0E [19:19:25]Write i2c OK [19:19:25]MH_I2C_Read... [19:19:25]Read from MH i2c: D1 [19:19:25]MH_I2C_Read... [19:19:25]Read from MH i2c: D1 01 00 [19:19:25]MH_I2C_Read... [19:19:25]Read from MH i2c: D1 01 00 89 B3 00 0D [19:19:25]Write to MH i2c: 01 00 00 8A B3 3D [19:19:25]Write i2c OK [19:19:25]MH_I2C_Read... [19:19:25]OFD Sender: No OFD packet to send [19:19:25]*** Cut start [19:19:25]*** Partial cut [19:19:25]*** CUTSNS_PIN = 1 [19:19:25]*** CUTSNS_PIN = 0 [19:19:26]*** Brake cut motor [19:19:26]Read from MH i2c: 01 [19:19:26]MH_I2C_Read... [19:19:26]*** Stop cut motor [19:19:26]*** Cut end [19:19:26]Read from MH i2c: 01 07 00 [19:19:26]MH_I2C_Read... [19:19:26]Read from MH i2c: 01 07 00 8A B3 00 00 00 00 00 FF 0F 52 [19:19:26]process_action close_receipt done [19:19:26]requested_data is exist [19:19:26]produce_requested_data [19:19:26]requested_item fm.sn is exist - process it [19:19:26]wFMCommunicate request_size=4 [19:19:26]MH_SAM_APDU [19:19:26]CAPDU: 80 11 00 00 [19:19:26]Write to MH i2c: E2 08 00 8B B3 80 11 00 00 00 00 00 00 B8 [19:19:26]Write i2c OK [19:19:26]MH_I2C_Read... [19:19:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:19:26]Read from MH i2c: E2 [19:19:26]MH_I2C_Read... [19:19:26]Read from MH i2c: E2 17 00 [19:19:26]MH_I2C_Read... [19:19:26]Read from MH i2c: E2 17 00 8B B3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 07 [19:19:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:19:26]wFMCommunicate OK [19:19:26]requested_item fd.num is exist - process it [19:19:26]SAM_PROTO_GetFieldsCounters [19:19:26]wFMCommunicate request_size=4 [19:19:26]MH_SAM_APDU [19:19:26]CAPDU: 80 13 00 00 [19:19:26]Write to MH i2c: E2 08 00 8C B3 80 13 00 00 00 00 00 00 BB [19:19:26]Write i2c OK [19:19:26]MH_I2C_Read... [19:19:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:19:26]Read from MH i2c: E2 [19:19:26]MH_I2C_Read... [19:19:26]Read from MH i2c: E2 62 00 [19:19:26]MH_I2C_Read... [19:19:26]Read from MH i2c: E2 62 00 8C B3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 83 72 00 00 0E 04 04 00 74 00 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 05 [19:19:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 83 72 00 00 0E 04 04 00 74 00 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 [19:19:26]wFMCommunicate OK [19:19:26]SAM_PROTO_GetFieldsCounters done [19:19:26]requested_item shift.num is exist - process it [19:19:26]requested_item shift.opened is exist - process it [19:19:26]req_shift_opened [19:19:26]FM_GetShiftState [19:19:26]SAM_PROTO_GetShiftState [19:19:26]wFMCommunicate request_size=4 [19:19:26]MH_SAM_APDU [19:19:26]CAPDU: 80 13 01 00 [19:19:26]Write to MH i2c: E2 08 00 8D B3 80 13 01 00 00 00 00 00 BD [19:19:26]Write i2c OK [19:19:26]MH_I2C_Read... [19:19:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:19:26]Read from MH i2c: E2 [19:19:26]MH_I2C_Read... [19:19:26]Read from MH i2c: E2 0E 00 [19:19:26]MH_I2C_Read... [19:19:26]Read from MH i2c: E2 0E 00 8D B3 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 69 [19:19:26]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [19:19:26]wFMCommunicate OK [19:19:26]SAM_PROTO_GetShiftState done [19:19:26]FM_GetShiftState done [19:19:26]req_shift_opened done [19:19:26]requested_item shift.open_date is exist - process it [19:19:26]req_shift_open_date [19:19:26]req_shift_open_date done [19:19:26]produce_requested_data done [19:19:26]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29315,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [19:19:26]process_action_free close_receipt [19:19:26]json_value_free [19:19:26]json_value_free done [19:19:26]process_json_proto returns [19:19:26]Send response to host [19:19:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29315,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [19:19:26]free response buf [19:19:26]execute_script done [19:19:26]execute_script returns [19:19:26]free content buf [19:19:26]Sock 9.Close socket [19:19:26]Sock 9.Thread stoped [19:19:30]OFD Sender: No OFD packet to send [19:19:35]OFD Sender: No OFD packet to send [19:19:40]OFD Sender: No OFD packet to send [19:19:45]accept exits with 7 [19:19:45]New connection [19:19:45]New thread 3066785124 created [19:19:45]Thread 3066928484 joined [19:19:45]Waiting for new connection... [19:19:45] Sock 7.Parse request [19:19:45]Sock 7.Check first char [19:19:45]Sock 7.First char is OK [19:19:45]request: POST /json_proto HTTP/1.0 [19:19:45]Method: POST [19:19:45]URL: /json_proto [19:19:45]Method is POST - this is cgi request [19:19:45]url: /json_proto [19:19:45]query_string will be loaded in cgi processing [19:19:45]execute_cgi json_proto POST (null) [19:19:45]execute_cgi path=json_proto method=POST [19:19:45]POST find Content-Length [19:19:45]Host: 172.17.33.3:8080 [19:19:45]Content-Length: 685 [19:19:45]Content-Type: application/json [19:19:45] [19:19:45]POST finish read [19:19:45]Found Content-Length = 685 [19:19:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347706", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 45.600, "sum" : 1500.24, "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:19:45]execute_script... [19:19:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347706", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 45.600, "sum" : 1500.24, "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:19:45]POST & json_proto [19:19:45]process_json_proto [19:19:45]json parsed OK: [19:19:45]protocol is kg_v1.0 [19:19:45]action value=close_receipt [19:19:45]process_action close_receipt [19:19:45]cmd_close_receipt [19:19:45]MH_GetDate [19:19:45]Write to MH i2c: F0 00 00 8E B3 30 [19:19:45]Write i2c OK [19:19:45]MH_I2C_Read... [19:19:45]Read from MH i2c: F0 [19:19:45]MH_I2C_Read... [19:19:45]Read from MH i2c: F0 09 00 [19:19:45]MH_I2C_Read... [19:19:45]Read from MH i2c: F0 09 00 8E B3 00 5C 2C 1C 66 23 5B 8F 65 B5 [19:19:45]GetLastDocTimeStamp 1713122374 [19:19:45]current date 1713122396 [19:19:45]FM_GetShiftState [19:19:45]SAM_PROTO_GetShiftState [19:19:45]wFMCommunicate request_size=4 [19:19:45]MH_SAM_APDU [19:19:45]CAPDU: 80 13 01 00 [19:19:45]Write to MH i2c: E2 08 00 8F B3 80 13 01 00 00 00 00 00 BF [19:19:45]Write i2c OK [19:19:45]MH_I2C_Read... [19:19:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:19:45]Read from MH i2c: E2 [19:19:45]MH_I2C_Read... [19:19:45]Read from MH i2c: E2 0E 00 [19:19:45]MH_I2C_Read... [19:19:45]Read from MH i2c: E2 0E 00 8F B3 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 6B [19:19:45]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [19:19:45]wFMCommunicate OK [19:19:45]SAM_PROTO_GetShiftState done [19:19:45]FM_GetShiftState done [19:19:45]opened in 1713053951 [19:19:45]opened+sec_in_day 1713140351 [19:19:45]quantity*price = 150024 [19:19:45]sum+1 = 150025 [19:19:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.32 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 226 14.04.2024 19:19 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29316 ФПД: 25984501251615 1/tax-web-control/client/api/v1/ticket?date=20240414T191956&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29316&fm=25984501251615&tin=02508201610067®Number=0000138879044617&sum=150000 [19:19:46]StoreToDocumentArchive [19:19:46]shift 116 fd 29316 [19:19:46]save to /storage/0116/doc_00029316 [19:19:46]save last doc name /storage/0116/doc_00029316 to /storage/kkm_last_doc_name [19:19:46]save OK [19:19:46]Clear old archive folders... [19:19:46]ProcessDocumentItem done err = 0, tmpTLVsize=250 [19:19:46]tlvbuf is 01208640 [19:19:46]SAM_PROTO_ClearQueue [19:19:46]wFMCommunicate request_size=4 [19:19:46]MH_SAM_APDU [19:19:46]CAPDU: 80 09 00 00 [19:19:46]Write to MH i2c: E2 08 00 9C B3 80 09 00 00 00 00 00 00 C1 [19:19:46]Write i2c OK [19:19:46]MH_I2C_Read... [19:19:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:19:46]Read from MH i2c: E2 [19:19:46]MH_I2C_Read... [19:19:46]Read from MH i2c: E2 03 00 [19:19:46]MH_I2C_Read... [19:19:46]Read from MH i2c: E2 03 00 9C B3 00 90 00 C3 [19:19:46]RAPDU: 90 00 [19:19:46]wFMCommunicate OK [19:19:46]SAM_PROTO_ClearQueue done [19:19:46]KKMCreateOFDPacket [19:19:46]OFDProtocolAddRootSTLVToBuf [19:19:46]FM_MakeSignedData [19:19:46]FM_MakeSignedData [19:19:46]SAM_PROTO_SignData [19:19:46]wFMCommunicate request_size=4 [19:19:46]MH_SAM_APDU [19:19:46]CAPDU: 80 0D 01 02 [19:19:46]Write to MH i2c: E2 08 00 9D B3 80 0D 01 02 00 00 00 00 C9 [19:19:46]Write i2c OK [19:19:46]MH_I2C_Read... [19:19:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:19:46]Read from MH i2c: E2 [19:19:46]MH_I2C_Read... [19:19:46]Read from MH i2c: E2 03 00 [19:19:46]MH_I2C_Read... [19:19:46]Read from MH i2c: E2 03 00 9D B3 00 90 00 C4 [19:19:46]RAPDU: 90 00 [19:19:46]wFMCommunicate OK [19:19:46]wFMCommunicate request_size=255 [19:19:46]MH_SAM_APDU [19:19:46]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 20 B2 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 08 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 E2 00 00 00 F4 03 04 00 5C 2C 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 84 72 00 00 35 04 06 00 17 A1 [19:19:46]Write to MH i2c: E2 02 01 9E B3 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 20 B2 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 08 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 E2 00 00 00 F4 03 04 00 5C 2C 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 84 72 00 00 35 04 06 00 17 A1 00 00 DF [19:19:46]Write i2c OK [19:19:46]MH_I2C_Read... [19:19:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:19:46]Read from MH i2c: E2 [19:19:46]MH_I2C_Read... [19:19:46]Read from MH i2c: E2 03 00 [19:19:46]MH_I2C_Read... [19:19:46]Read from MH i2c: E2 03 00 9E B3 00 90 00 C5 [19:19:46]RAPDU: 90 00 [19:19:46]wFMCommunicate OK [19:19:46]wFMCommunicate request_size=9 [19:19:46]MH_SAM_APDU [19:19:46]CAPDU: 80 0D 02 02 04 FC F7 7E 1F [19:19:46]Write to MH i2c: E2 0C 00 9F B3 80 0D 02 02 04 00 FC F7 7E 1F 00 00 64 [19:19:46]Write i2c OK [19:19:46]MH_I2C_Read... [19:19:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:19:46]Read from MH i2c: E2 [19:19:46]MH_I2C_Read... [19:19:46]Read from MH i2c: E2 03 00 [19:19:46]MH_I2C_Read... [19:19:46]Read from MH i2c: E2 03 00 9F B3 00 90 00 C6 [19:19:46]RAPDU: 90 00 [19:19:46]wFMCommunicate OK [19:19:46]wFMCommunicate request_size=4 [19:19:46]MH_SAM_APDU [19:19:46]CAPDU: 80 0D 03 02 [19:19:46]Write to MH i2c: E2 08 00 A0 B3 80 0D 03 02 00 00 00 00 CE [19:19:46]Write i2c OK [19:19:46]MH_I2C_Read... [19:19:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:19:46]Read from MH i2c: E2 [19:19:46]MH_I2C_Read... [19:19:46]Read from MH i2c: E2 0B 00 [19:19:46]MH_I2C_Read... [19:19:46]Read from MH i2c: E2 0B 00 A0 B3 00 63 5C 9C D3 96 E8 51 63 90 00 2F [19:19:46]RAPDU: 63 5C 9C D3 96 E8 51 63 90 00 [19:19:46]wFMCommunicate OK [19:19:46]SAM_PROTO_SignData done [19:19:46]FM_MakeSignedData done [19:19:46]CreateOFDProtocolMessage [19:19:46]wFMCommunicate request_size=4 [19:19:46]MH_SAM_APDU [19:19:46]CAPDU: 80 11 00 00 [19:19:46]Write to MH i2c: E2 08 00 A1 B3 80 11 00 00 00 00 00 00 CE [19:19:46]Write i2c OK [19:19:46]MH_I2C_Read... [19:19:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:19:46]Read from MH i2c: E2 [19:19:46]MH_I2C_Read... [19:19:46]Read from MH i2c: E2 17 00 [19:19:46]MH_I2C_Read... [19:19:46]Read from MH i2c: E2 17 00 A1 B3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 1D [19:19:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:19:46]wFMCommunicate OK [19:19:46]CreateOFDProtocolMessage done [19:19:46]OFDSenderStorePacket 29316 [19:19:46]StoreOFDPacket docnum=29316 [19:19:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 BB 67 06 01 CA 90 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 20 B2 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 08 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 E2 00 00 00 F4 03 04 00 5C 2C 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 84 72 00 00 35 04 06 00 17 A1 FC F7 7E 1F 63 5C 9C D3 96 E8 51 63 [19:19:46]CheckFolder [19:19:46]dirname=/storage/ofd_packets [19:19:46]CheckFolder done [19:19:46]ProducePacketName [19:19:46]name=ofd_packets/00029316 [19:19:46]NVStorageSaveData ofd_packets/00029316 [19:19:46]File name is /storage/ofd_packets/00029316 [19:19:46]Write 300 bytes [19:19:46]NVStorageSaveData done [19:19:46]OFDSenderStorePacket done [19:19:46]KKMCreateOFDPacket done [19:19:46]NVStorageSaveData kkm_last_timestamp [19:19:46]File name is /storage/kkm_last_timestamp [19:19:46]OFD Sender: Processing packet 29316 [packets to send 8, broken 7] [19:19:46]ProducePacketName [19:19:46]name=ofd_packets/00029316 [19:19:46]OFD Sender: To server: pG, [19:19:46]CommunicateWithHost lk.salyk.kg:30040 [19:19:46]ConnectInit lk.salyk.kg [19:19:46]Write 4 bytes [19:19:46]NVStorageSaveData done [19:19:46]ExternCall_PrintAddStr [19:19:46]wPrintStart [19:19:46]Write to MH i2c: 01 00 00 A2 B3 55 [19:19:46]Write i2c OK [19:19:46]MH_I2C_Read... [19:19:46]Read from MH i2c: 01 [19:19:46]MH_I2C_Read... [19:19:46]Read from MH i2c: 01 07 00 [19:19:46]MH_I2C_Read... [19:19:46]Read from MH i2c: 01 07 00 A2 B3 00 00 00 00 00 FF 0F 6A [19:19:46]RasterBufferAndPrint [19:19:46]line Счет N : (1)347706 [19:19:46]line ИНН: 02508201610067 [19:19:46]line Контрольно-Кассовый Чек [19:19:46]line ПРОДАЖА [19:19:46]line ТРК (МРК, ГНК) : 71 [19:19:46]line Товар: 2711129700 [19:19:46]line ГАЗ-К-5 [19:19:46]line 45.600 * 32.90 [19:19:46]line = 1500.24 [19:19:46]line НДС 12% НСП 1% [19:19:46]line > о реализуемом товаре [19:19:46]line ОКРУГЛЕНИЕ: -0.24 [19:19:46]line ИТОГО: 1500.00 [19:19:46]line Внесено: 1500.00 [19:19:46]line СДАЧА: 0.00 [19:19:46]line НСП 1% : 13.28 [19:19:46]line НДС 12% : 159.32 [19:19:46]line Наличными: 1500.00 [19:19:46]line Безнал.: 0.00 [19:19:46]line Место: АЗС № 108 "Партнер Нефть" [19:19:46]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [19:19:46]line СНО: Общий режим [19:19:46]line Чек 226 14.04.2024 19:19 [19:19:46]line Смена: 116 ФФД: 1.0 [19:19:46]line ЗНМ: 0300000027 [19:19:46]line РНМ: 0000138879044617 [19:19:47]line Версия ККМ: 001 [19:19:47]line ФМ: 0000000000963154 [19:19:47]line ФД: 29316 [19:19:47]line ФПД: 25984501251615 [19:19:47]line 1/tax-web-control/client/api/v1/ticket?date=20240414T191956&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29316&fm=25984501251615&tin=02508201610067®Number=0000138879044617&sum=150000 [19:19:47]Connected sock=11 [19:19:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 BB 67 06 01 CA 90 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 20 B2 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 08 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 E2 00 00 00 F4 03 04 00 5C 2C 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 84 72 00 00 35 04 06 00 17 A1 FC F7 7E 1F 63 5C 9C D3 96 E8 51 63 [19:19:47]written 0, free lines is 4095 [19:19:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 B4 81 47 00 F2 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 84 72 00 00 F4 03 04 00 FF D6 1B 66 B6 04 01 00 00 80 7A 3A D2 B2 FD BB 73 [19:19:47]CommunicateWithHost err = 0 [19:19:47]CheckOFDResponse [19:19:47]1017 (14) - 77093643461234 [19:19:47]1041 (16) - 0000000000963154 [19:19:47]1040 (4) - 29316 [19:19:47]1012 (4) - 14.04.2024 13:15 [19:19:47]1206 (1) - 0 [19:19:47]OFD Sender: Remove packet 29316 [19:19:47]ProducePacketName [19:19:47]name=ofd_packets/00029316 [19:19:47]NVStorageDeleteData [19:19:47]Write to MH i2c: 01 00 00 CC B3 7F [19:19:47]Write i2c OK [19:19:47]MH_I2C_Read... [19:19:47]Read from MH i2c: 01 [19:19:47]MH_I2C_Read... [19:19:47]Read from MH i2c: 01 07 00 [19:19:47]MH_I2C_Read... [19:19:47]Read from MH i2c: 01 07 00 CC B3 00 00 00 00 00 CA 0C 5C [19:19:47]RasterBufferAndPrint [19:19:47]line [19:19:47]line [19:19:47]line [19:19:47]line [19:19:47]line [19:19:47]written 0, free lines is 3280 [19:19:47]MH_Cut [19:19:47]Write to MH i2c: D1 01 00 D3 B3 01 58 [19:19:47]Write i2c OK [19:19:47]MH_I2C_Read... [19:19:47]Read from MH i2c: D1 [19:19:47]MH_I2C_Read... [19:19:47]Read from MH i2c: D1 01 00 [19:19:47]MH_I2C_Read... [19:19:47]Read from MH i2c: D1 01 00 D3 B3 00 57 [19:19:47]Write to MH i2c: 01 00 00 D4 B3 87 [19:19:47]Write i2c OK [19:19:47]MH_I2C_Read... [19:19:47]OFD Sender: No OFD packet to send [19:19:48]*** Cut start [19:19:48]*** Partial cut [19:19:48]*** CUTSNS_PIN = 1 [19:19:48]*** CUTSNS_PIN = 0 [19:19:48]*** Brake cut motor [19:19:48]Read from MH i2c: 01 [19:19:48]MH_I2C_Read... [19:19:48]*** Stop cut motor [19:19:48]*** Cut end [19:19:48]Read from MH i2c: 01 07 00 [19:19:48]MH_I2C_Read... [19:19:48]Read from MH i2c: 01 07 00 D4 B3 00 00 00 00 00 FF 0F 9C [19:19:49]process_action close_receipt done [19:19:49]requested_data is exist [19:19:49]produce_requested_data [19:19:49]requested_item fm.sn is exist - process it [19:19:49]wFMCommunicate request_size=4 [19:19:49]MH_SAM_APDU [19:19:49]CAPDU: 80 11 00 00 [19:19:49]Write to MH i2c: E2 08 00 D5 B3 80 11 00 00 00 00 00 00 02 [19:19:49]Write i2c OK [19:19:49]MH_I2C_Read... [19:19:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:19:49]Read from MH i2c: E2 [19:19:49]MH_I2C_Read... [19:19:49]Read from MH i2c: E2 17 00 [19:19:49]MH_I2C_Read... [19:19:49]Read from MH i2c: E2 17 00 D5 B3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 51 [19:19:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:19:49]wFMCommunicate OK [19:19:49]requested_item fd.num is exist - process it [19:19:49]SAM_PROTO_GetFieldsCounters [19:19:49]wFMCommunicate request_size=4 [19:19:49]MH_SAM_APDU [19:19:49]CAPDU: 80 13 00 00 [19:19:49]Write to MH i2c: E2 08 00 D6 B3 80 13 00 00 00 00 00 00 05 [19:19:49]Write i2c OK [19:19:49]MH_I2C_Read... [19:19:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:19:49]Read from MH i2c: E2 [19:19:49]MH_I2C_Read... [19:19:49]Read from MH i2c: E2 62 00 [19:19:49]MH_I2C_Read... [19:19:49]Read from MH i2c: E2 62 00 D6 B3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 84 72 00 00 0E 04 04 00 74 00 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 53 [19:19:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 84 72 00 00 0E 04 04 00 74 00 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 [19:19:49]wFMCommunicate OK [19:19:49]SAM_PROTO_GetFieldsCounters done [19:19:49]requested_item shift.num is exist - process it [19:19:49]requested_item shift.opened is exist - process it [19:19:49]req_shift_opened [19:19:49]FM_GetShiftState [19:19:49]SAM_PROTO_GetShiftState [19:19:49]wFMCommunicate request_size=4 [19:19:49]MH_SAM_APDU [19:19:49]CAPDU: 80 13 01 00 [19:19:49]Write to MH i2c: E2 08 00 D7 B3 80 13 01 00 00 00 00 00 07 [19:19:49]Write i2c OK [19:19:49]MH_I2C_Read... [19:19:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:19:49]Read from MH i2c: E2 [19:19:49]MH_I2C_Read... [19:19:49]Read from MH i2c: E2 0E 00 [19:19:49]MH_I2C_Read... [19:19:49]Read from MH i2c: E2 0E 00 D7 B3 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 B3 [19:19:49]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [19:19:49]wFMCommunicate OK [19:19:49]SAM_PROTO_GetShiftState done [19:19:49]FM_GetShiftState done [19:19:49]req_shift_opened done [19:19:49]requested_item shift.open_date is exist - process it [19:19:49]req_shift_open_date [19:19:49]req_shift_open_date done [19:19:49]produce_requested_data done [19:19:49]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29316,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [19:19:49]process_action_free close_receipt [19:19:49]json_value_free [19:19:49]json_value_free done [19:19:49]process_json_proto returns [19:19:49]Send response to host [19:19:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29316,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [19:19:49]free response buf [19:19:49]execute_script done [19:19:49]execute_script returns [19:19:49]free content buf [19:19:49]Sock 7.Close socket [19:19:49]Sock 7.Thread stoped [19:19:52]OFD Sender: No OFD packet to send [19:19:57]OFD Sender: No OFD packet to send [19:20:02]OFD Sender: No OFD packet to send [19:20:07]OFD Sender: No OFD packet to send [19:20:12]OFD Sender: No OFD packet to send [19:20:17]OFD Sender: No OFD packet to send [19:20:22]OFD Sender: No OFD packet to send [19:20:27]OFD Sender: No OFD packet to send [19:20:32]OFD Sender: No OFD packet to send [19:20:35]accept exits with 9 [19:20:35]New connection [19:20:35]New thread 3066928484 created [19:20:35]Thread 3066785124 joined [19:20:35]Waiting for new connection... [19:20:35] Sock 9.Parse request [19:20:35]Sock 9.Check first char [19:20:35]Sock 9.First char is OK [19:20:35]request: POST /json_proto HTTP/1.0 [19:20:35]Method: POST [19:20:35]URL: /json_proto [19:20:35]Method is POST - this is cgi request [19:20:35]url: /json_proto [19:20:35]query_string will be loaded in cgi processing [19:20:35]execute_cgi json_proto POST (null) [19:20:35]execute_cgi path=json_proto method=POST [19:20:35]POST find Content-Length [19:20:35]Host: 172.17.33.3:8080 [19:20:35]Content-Length: 678 [19:20:35]Content-Type: application/json [19:20:35] [19:20:35]POST finish read [19:20:35]Found Content-Length = 678 [19:20:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347707", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 14.240, "sum" : 915.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 915.00, "total" : 915.00, "payments": [ { "type": 0, "sum" : 915.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:20:35]execute_script... [19:20: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)347707", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 14.240, "sum" : 915.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 915.00, "total" : 915.00, "payments": [ { "type": 0, "sum" : 915.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:20:35]POST & json_proto [19:20:35]process_json_proto [19:20:35]json parsed OK: [19:20:35]protocol is kg_v1.0 [19:20:35]action value=close_receipt [19:20:35]process_action close_receipt [19:20:35]cmd_close_receipt [19:20:35]MH_GetDate [19:20:35]Write to MH i2c: F0 00 00 D8 B3 7A [19:20:35]Write i2c OK [19:20:35]MH_I2C_Read... [19:20:35]Read from MH i2c: F0 [19:20:35]MH_I2C_Read... [19:20:35]Read from MH i2c: F0 09 00 [19:20:35]MH_I2C_Read... [19:20:35]Read from MH i2c: F0 09 00 D8 B3 00 8E 2C 1C 66 23 5B 8F 65 31 [19:20:35]GetLastDocTimeStamp 1713122396 [19:20:35]current date 1713122446 [19:20:35]FM_GetShiftState [19:20:35]SAM_PROTO_GetShiftState [19:20:35]wFMCommunicate request_size=4 [19:20:35]MH_SAM_APDU [19:20:35]CAPDU: 80 13 01 00 [19:20:35]Write to MH i2c: E2 08 00 D9 B3 80 13 01 00 00 00 00 00 09 [19:20:35]Write i2c OK [19:20:35]MH_I2C_Read... [19:20:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:20:35]Read from MH i2c: E2 [19:20:35]MH_I2C_Read... [19:20:35]Read from MH i2c: E2 0E 00 [19:20:35]MH_I2C_Read... [19:20:35]Read from MH i2c: E2 0E 00 D9 B3 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 B5 [19:20:35]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [19:20:35]wFMCommunicate OK [19:20:35]SAM_PROTO_GetShiftState done [19:20:35]FM_GetShiftState done [19:20:35]opened in 1713053951 [19:20:35]opened+sec_in_day 1713140351 [19:20:35]quantity*price = 91563 [19:20:35]sum+1 = 91564 [19:20:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 915.00 Внесено: 915.00 СДАЧА: 0.00 НСП 1% : 8.10 НДС 12% : 97.23 Наличными: 915.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 227 14.04.2024 19:20 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29317 ФПД: 141036621537388 1/tax-web-control/client/api/v1/ticket?date=20240414T192046&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29317&fm=141036621537388&tin=02508201610067®Number=0000138879044617&sum=91500 [19:20:36]StoreToDocumentArchive [19:20:36]shift 116 fd 29317 [19:20:36]save to /storage/0116/doc_00029317 [19:20:36]save last doc name /storage/0116/doc_00029317 to /storage/kkm_last_doc_name [19:20:36]save OK [19:20:36]Clear old archive folders... [19:20:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:20:36]tlvbuf is 011D49A0 [19:20:36]SAM_PROTO_ClearQueue [19:20:36]wFMCommunicate request_size=4 [19:20:36]MH_SAM_APDU [19:20:36]CAPDU: 80 09 00 00 [19:20:36]Write to MH i2c: E2 08 00 E6 B3 80 09 00 00 00 00 00 00 0B [19:20:36]Write i2c OK [19:20:36]MH_I2C_Read... [19:20:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:20:36]Read from MH i2c: E2 [19:20:36]MH_I2C_Read... [19:20:36]Read from MH i2c: E2 03 00 [19:20:36]MH_I2C_Read... [19:20:36]Read from MH i2c: E2 03 00 E6 B3 00 90 00 0D [19:20:36]RAPDU: 90 00 [19:20:36]wFMCommunicate OK [19:20:36]SAM_PROTO_ClearQueue done [19:20:36]KKMCreateOFDPacket [19:20:36]OFDProtocolAddRootSTLVToBuf [19:20:36]FM_MakeSignedData [19:20:36]FM_MakeSignedData [19:20:36]SAM_PROTO_SignData [19:20:36]wFMCommunicate request_size=4 [19:20:36]MH_SAM_APDU [19:20:36]CAPDU: 80 0D 01 02 [19:20:36]Write to MH i2c: E2 08 00 E7 B3 80 0D 01 02 00 00 00 00 13 [19:20:36]Write i2c OK [19:20:36]MH_I2C_Read... [19:20:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:20:36]Read from MH i2c: E2 [19:20:36]MH_I2C_Read... [19:20:36]Read from MH i2c: E2 03 00 [19:20:36]MH_I2C_Read... [19:20:36]Read from MH i2c: E2 03 00 E7 B3 00 90 00 0E [19:20:36]RAPDU: 90 00 [19:20:36]wFMCommunicate OK [19:20:36]wFMCommunicate request_size=255 [19:20:36]MH_SAM_APDU [19:20:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 37 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 AB 65 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 65 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 25 00 00 00 00 07 04 06 00 6C 65 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 8E 2C 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 85 72 00 00 35 04 06 00 80 [19:20:36]Write to MH i2c: E2 02 01 E8 B3 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 37 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 AB 65 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 65 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 25 00 00 00 00 07 04 06 00 6C 65 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 8E 2C 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 85 72 00 00 35 04 06 00 80 00 00 54 [19:20:36]Write i2c OK [19:20:36]MH_I2C_Read... [19:20:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:20:36]Read from MH i2c: E2 [19:20:36]MH_I2C_Read... [19:20:36]Read from MH i2c: E2 03 00 [19:20:36]MH_I2C_Read... [19:20:36]Read from MH i2c: E2 03 00 E8 B3 00 90 00 0F [19:20:36]RAPDU: 90 00 [19:20:36]wFMCommunicate OK [19:20:36]wFMCommunicate request_size=10 [19:20:36]MH_SAM_APDU [19:20:36]CAPDU: 80 0D 02 02 05 45 A5 BA 20 6C [19:20:36]Write to MH i2c: E2 0D 00 E9 B3 80 0D 02 02 05 00 45 A5 BA 20 6C 00 00 50 [19:20:36]Write i2c OK [19:20:36]MH_I2C_Read... [19:20:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:20:36]Read from MH i2c: E2 [19:20:36]MH_I2C_Read... [19:20:36]Read from MH i2c: E2 03 00 [19:20:36]MH_I2C_Read... [19:20:36]Read from MH i2c: E2 03 00 E9 B3 00 90 00 10 [19:20:36]RAPDU: 90 00 [19:20:36]wFMCommunicate OK [19:20:36]wFMCommunicate request_size=4 [19:20:36]MH_SAM_APDU [19:20:36]CAPDU: 80 0D 03 02 [19:20:36]Write to MH i2c: E2 08 00 EA B3 80 0D 03 02 00 00 00 00 18 [19:20:36]Write i2c OK [19:20:36]MH_I2C_Read... [19:20:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:20:36]Read from MH i2c: E2 [19:20:36]MH_I2C_Read... [19:20:36]Read from MH i2c: E2 0B 00 [19:20:36]MH_I2C_Read... [19:20:36]Read from MH i2c: E2 0B 00 EA B3 00 A5 98 32 5D 17 75 DD 3E 90 00 8C [19:20:36]RAPDU: A5 98 32 5D 17 75 DD 3E 90 00 [19:20:36]wFMCommunicate OK [19:20:36]SAM_PROTO_SignData done [19:20:36]FM_MakeSignedData done [19:20:36]CreateOFDProtocolMessage [19:20:36]wFMCommunicate request_size=4 [19:20:36]MH_SAM_APDU [19:20:36]CAPDU: 80 11 00 00 [19:20:36]Write to MH i2c: E2 08 00 EB B3 80 11 00 00 00 00 00 00 18 [19:20:36]Write i2c OK [19:20:36]MH_I2C_Read... [19:20:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:20:36]Read from MH i2c: E2 [19:20:36]MH_I2C_Read... [19:20:36]Read from MH i2c: E2 17 00 [19:20:36]MH_I2C_Read... [19:20:36]Read from MH i2c: E2 17 00 EB B3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 67 [19:20:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:20:36]wFMCommunicate OK [19:20:36]CreateOFDProtocolMessage done [19:20:36]OFDSenderStorePacket 29317 [19:20:36]StoreOFDPacket docnum=29317 [19:20:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 80 25 07 01 B1 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 A0 37 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 AB 65 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 65 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 25 00 00 00 00 07 04 06 00 6C 65 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 8E 2C 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 85 72 00 00 35 04 06 00 80 45 A5 BA 20 6C A5 98 32 5D 17 75 DD 3E [19:20:36]CheckFolder [19:20:36]dirname=/storage/ofd_packets [19:20:36]CheckFolder done [19:20:36]ProducePacketName [19:20:36]name=ofd_packets/00029317 [19:20:36]NVStorageSaveData ofd_packets/00029317 [19:20:36]File name is /storage/ofd_packets/00029317 [19:20:36]Write 301 bytes [19:20:36]NVStorageSaveData done [19:20:36]OFDSenderStorePacket done [19:20:36]KKMCreateOFDPacket done [19:20:36]NVStorageSaveData kkm_last_timestamp [19:20:36]File name is /storage/kkm_last_timestamp [19:20:36]Write 4 bytes [19:20:36]NVStorageSaveData done [19:20:36]ExternCall_PrintAddStr [19:20:36]wPrintStart [19:20:36]Write to MH i2c: 01 00 00 EC B3 9F [19:20:36]Write i2c OK [19:20:36]MH_I2C_Read... [19:20:36]Read from MH i2c: 01 [19:20:36]MH_I2C_Read... [19:20:36]Read from MH i2c: 01 07 00 [19:20:36]MH_I2C_Read... [19:20:36]Read from MH i2c: 01 07 00 EC B3 00 00 00 00 00 FF 0F B4 [19:20:36]RasterBufferAndPrint [19:20:36]line Счет N : (1)347707 [19:20:36]line ИНН: 02508201610067 [19:20:36]line Контрольно-Кассовый Чек [19:20:36]line ПРОДАЖА [19:20:36]line ТРК (МРК, ГНК) : 13 [19:20:36]line Товар: 2710124130 [19:20:36]line Аи-92-К-5 [19:20:36]line 14.240 * 64.30 [19:20:36]line = 915.63 [19:20:36]line НДС 12% НСП 1% [19:20:36]line > о реализуемом товаре [19:20:36]line ОКРУГЛЕНИЕ: -0.63 [19:20:36]line ИТОГО: 915.00 [19:20:36]line Внесено: 915.00 [19:20:36]line СДАЧА: 0.00 [19:20:36]line НСП 1% : 8.10 [19:20:36]line НДС 12% : 97.23 [19:20:36]line Наличными: 915.00 [19:20:36]line Безнал.: 0.00 [19:20:36]line Место: АЗС № 108 "Партнер Нефть" [19:20:36]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [19:20:36]line СНО: Общий режим [19:20:36]line Чек 227 14.04.2024 19:20 [19:20:36]line Смена: 116 ФФД: 1.0 [19:20:36]line ЗНМ: 0300000027 [19:20:36]line РНМ: 0000138879044617 [19:20:36]line Версия ККМ: 001 [19:20:36]line ФМ: 0000000000963154 [19:20:36]line ФД: 29317 [19:20:36]line ФПД: 141036621537388 [19:20:37]line 1/tax-web-control/client/api/v1/ticket?date=20240414T192046&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29317&fm=141036621537388&tin=02508201610067®Number=0000138879044617&sum=91500 [19:20:37]OFD Sender: Processing packet 29317 [packets to send 8, broken 7] [19:20:37]ProducePacketName [19:20:37]name=ofd_packets/00029317 [19:20:37]OFD Sender: To server: pG, [19:20:37]CommunicateWithHost lk.salyk.kg:30040 [19:20:37]ConnectInit lk.salyk.kg [19:20:37]written 0, free lines is 4095 [19:20:37]Connected sock=10 [19:20:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 80 25 07 01 B1 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 A0 37 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 AB 65 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 65 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 25 00 00 00 00 07 04 06 00 6C 65 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 8E 2C 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 85 72 00 00 35 04 06 00 80 45 A5 BA 20 6C A5 98 32 5D 17 75 DD 3E [19:20:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 5C 55 47 00 80 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 39 36 33 31 35 34 10 04 04 00 85 72 00 00 F4 03 04 00 31 D7 1B 66 B6 04 01 00 00 EA DC 8D 84 67 03 42 79 [19:20:37]CommunicateWithHost err = 0 [19:20:37]CheckOFDResponse [19:20:37]1017 (14) - 77093643461234 [19:20:37]1041 (16) - 0000000000963154 [19:20:37]1040 (4) - 29317 [19:20:37]1012 (4) - 14.04.2024 13:16 [19:20:37]1206 (1) - 0 [19:20:37]OFD Sender: Remove packet 29317 [19:20:37]ProducePacketName [19:20:37]name=ofd_packets/00029317 [19:20:37]NVStorageDeleteData [19:20:37]Write to MH i2c: 01 00 00 16 B4 CA [19:20:37]Write i2c OK [19:20:37]MH_I2C_Read... [19:20:37]Read from MH i2c: 01 [19:20:37]MH_I2C_Read... [19:20:37]Read from MH i2c: 01 07 00 [19:20:37]MH_I2C_Read... [19:20:37]Read from MH i2c: 01 07 00 16 B4 00 00 00 00 00 CC 0C A9 [19:20:37]RasterBufferAndPrint [19:20:37]line [19:20:37]line [19:20:37]line [19:20:37]line [19:20:37]line [19:20:37]written 0, free lines is 3282 [19:20:37]MH_Cut [19:20:37]Write to MH i2c: D1 01 00 1D B4 01 A3 [19:20:37]Write i2c OK [19:20:37]MH_I2C_Read... [19:20:37]Read from MH i2c: D1 [19:20:37]MH_I2C_Read... [19:20:37]Read from MH i2c: D1 01 00 [19:20:37]MH_I2C_Read... [19:20:37]Read from MH i2c: D1 01 00 1D B4 00 A2 [19:20:37]Write to MH i2c: 01 00 00 1E B4 D2 [19:20:37]Write i2c OK [19:20:37]MH_I2C_Read... [19:20:37]OFD Sender: No OFD packet to send [19:20:38]*** Cut start [19:20:38]*** Partial cut [19:20:38]*** CUTSNS_PIN = 1 [19:20:38]*** CUTSNS_PIN = 0 [19:20:38]*** Brake cut motor [19:20:38]Read from MH i2c: 01 [19:20:38]MH_I2C_Read... [19:20:38]*** Stop cut motor [19:20:38]*** Cut end [19:20:38]Read from MH i2c: 01 07 00 [19:20:38]MH_I2C_Read... [19:20:38]Read from MH i2c: 01 07 00 1E B4 00 00 00 00 00 FF 0F E7 [19:20:38]process_action close_receipt done [19:20:38]requested_data is exist [19:20:38]produce_requested_data [19:20:38]requested_item fm.sn is exist - process it [19:20:38]wFMCommunicate request_size=4 [19:20:38]MH_SAM_APDU [19:20:38]CAPDU: 80 11 00 00 [19:20:38]Write to MH i2c: E2 08 00 1F B4 80 11 00 00 00 00 00 00 4D [19:20:38]Write i2c OK [19:20:38]MH_I2C_Read... [19:20:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:20:38]Read from MH i2c: E2 [19:20:38]MH_I2C_Read... [19:20:38]Read from MH i2c: E2 17 00 [19:20:38]MH_I2C_Read... [19:20:38]Read from MH i2c: E2 17 00 1F B4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 9C [19:20:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:20:38]wFMCommunicate OK [19:20:38]requested_item fd.num is exist - process it [19:20:38]SAM_PROTO_GetFieldsCounters [19:20:38]wFMCommunicate request_size=4 [19:20:38]MH_SAM_APDU [19:20:38]CAPDU: 80 13 00 00 [19:20:38]Write to MH i2c: E2 08 00 20 B4 80 13 00 00 00 00 00 00 50 [19:20:38]Write i2c OK [19:20:38]MH_I2C_Read... [19:20:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:20:39]Read from MH i2c: E2 [19:20:39]MH_I2C_Read... [19:20:39]Read from MH i2c: E2 62 00 [19:20:39]MH_I2C_Read... [19:20:39]Read from MH i2c: E2 62 00 20 B4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 85 72 00 00 0E 04 04 00 74 00 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 A2 [19:20:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 85 72 00 00 0E 04 04 00 74 00 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 [19:20:39]wFMCommunicate OK [19:20:39]SAM_PROTO_GetFieldsCounters done [19:20:39]requested_item shift.num is exist - process it [19:20:39]requested_item shift.opened is exist - process it [19:20:39]req_shift_opened [19:20:39]FM_GetShiftState [19:20:39]SAM_PROTO_GetShiftState [19:20:39]wFMCommunicate request_size=4 [19:20:39]MH_SAM_APDU [19:20:39]CAPDU: 80 13 01 00 [19:20:39]Write to MH i2c: E2 08 00 21 B4 80 13 01 00 00 00 00 00 52 [19:20:39]Write i2c OK [19:20:39]MH_I2C_Read... [19:20:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:20:39]Read from MH i2c: E2 [19:20:39]MH_I2C_Read... [19:20:39]Read from MH i2c: E2 0E 00 [19:20:39]MH_I2C_Read... [19:20:39]Read from MH i2c: E2 0E 00 21 B4 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 FE [19:20:39]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [19:20:39]wFMCommunicate OK [19:20:39]SAM_PROTO_GetShiftState done [19:20:39]FM_GetShiftState done [19:20:39]req_shift_opened done [19:20:39]requested_item shift.open_date is exist - process it [19:20:39]req_shift_open_date [19:20:39]req_shift_open_date done [19:20:39]produce_requested_data done [19:20:39]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29317,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [19:20:39]process_action_free close_receipt [19:20:39]json_value_free [19:20:39]json_value_free done [19:20:39]process_json_proto returns [19:20:39]Send response to host [19:20:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29317,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [19:20:39]free response buf [19:20:39]execute_script done [19:20:39]execute_script returns [19:20:39]free content buf [19:20:39]Sock 9.Close socket [19:20:39]Sock 9.Thread stoped [19:20:42]OFD Sender: No OFD packet to send [19:20:47]OFD Sender: No OFD packet to send [19:20:52]OFD Sender: No OFD packet to send [19:20:57]OFD Sender: No OFD packet to send [19:21:02]OFD Sender: No OFD packet to send [19:21:07]OFD Sender: No OFD packet to send [19:21:12]OFD Sender: No OFD packet to send [19:21:17]OFD Sender: No OFD packet to send [19:21:22]OFD Sender: No OFD packet to send [19:21:27]OFD Sender: No OFD packet to send [19:21:32]OFD Sender: No OFD packet to send [19:21:37]OFD Sender: No OFD packet to send [19:21:42]OFD Sender: No OFD packet to send [19:21:47]OFD Sender: No OFD packet to send [19:21:52]OFD Sender: No OFD packet to send [19:21:57]OFD Sender: No OFD packet to send [19:22:02]OFD Sender: No OFD packet to send [19:22:07]OFD Sender: No OFD packet to send [19:22:12]OFD Sender: No OFD packet to send [19:22:17]OFD Sender: No OFD packet to send [19:22:22]OFD Sender: No OFD packet to send [19:22:27]OFD Sender: No OFD packet to send [19:22:32]OFD Sender: No OFD packet to send [19:22:37]OFD Sender: No OFD packet to send [19:22:42]OFD Sender: No OFD packet to send [19:22:47]OFD Sender: No OFD packet to send [19:22:52]OFD Sender: No OFD packet to send [19:22:57]OFD Sender: No OFD packet to send [19:23:02]OFD Sender: No OFD packet to send [19:23:08]OFD Sender: No OFD packet to send [19:23:09]accept exits with 7 [19:23:09]New connection [19:23:09]New thread 3066785124 created [19:23:09]Thread 3066928484 joined [19:23:09]Waiting for new connection... [19:23:09] Sock 7.Parse request [19:23:09]Sock 7.Check first char [19:23:09]Sock 7.First char is OK [19:23:09]request: POST /json_proto HTTP/1.0 [19:23:09]Method: POST [19:23:09]URL: /json_proto [19:23:09]Method is POST - this is cgi request [19:23:09]url: /json_proto [19:23:09]query_string will be loaded in cgi processing [19:23:09]execute_cgi json_proto POST (null) [19:23:09]execute_cgi path=json_proto method=POST [19:23:09]POST find Content-Length [19:23:09]Host: 172.17.33.3:8080 [19:23:09]Content-Length: 682 [19:23:09]Content-Type: application/json [19:23:09] [19:23:09]POST finish read [19:23:09]Found Content-Length = 682 [19:23:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347709", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.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" ] } } [19:23:09]execute_script... [19:23: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)347709", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.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" ] } } [19:23:09]POST & json_proto [19:23:09]process_json_proto [19:23:09]json parsed OK: [19:23:09]protocol is kg_v1.0 [19:23:09]action value=close_receipt [19:23:09]process_action close_receipt [19:23:09]cmd_close_receipt [19:23:09]MH_GetDate [19:23:09]Write to MH i2c: F0 00 00 22 B4 C5 [19:23:09]Write i2c OK [19:23:09]MH_I2C_Read... [19:23:09]Read from MH i2c: F0 [19:23:09]MH_I2C_Read... [19:23:09]Read from MH i2c: F0 09 00 [19:23:09]MH_I2C_Read... [19:23:09]Read from MH i2c: F0 09 00 22 B4 00 28 2D 1C 66 23 5B 8F 65 17 [19:23:09]GetLastDocTimeStamp 1713122446 [19:23:09]current date 1713122600 [19:23:09]FM_GetShiftState [19:23:09]SAM_PROTO_GetShiftState [19:23:09]wFMCommunicate request_size=4 [19:23:09]MH_SAM_APDU [19:23:09]CAPDU: 80 13 01 00 [19:23:09]Write to MH i2c: E2 08 00 23 B4 80 13 01 00 00 00 00 00 54 [19:23:09]Write i2c OK [19:23:09]MH_I2C_Read... [19:23:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:23:09]Read from MH i2c: E2 [19:23:09]MH_I2C_Read... [19:23:09]Read from MH i2c: E2 0E 00 [19:23:09]MH_I2C_Read... [19:23:09]Read from MH i2c: E2 0E 00 23 B4 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 00 [19:23:09]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [19:23:09]wFMCommunicate OK [19:23:09]SAM_PROTO_GetShiftState done [19:23:09]FM_GetShiftState done [19:23:09]opened in 1713053951 [19:23:09]opened+sec_in_day 1713140351 [19:23:09]quantity*price = 100050 [19:23:09]sum+1 = 100052 [19:23:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 228 14.04.2024 19:23 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29318 ФПД: 231380646445486 1/tax-web-control/client/api/v1/ticket?date=20240414T192320&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29318&fm=231380646445486&tin=02508201610067®Number=0000138879044617&sum=100000 [19:23:10]StoreToDocumentArchive [19:23:10]shift 116 fd 29318 [19:23:10]save to /storage/0116/doc_00029318 [19:23:10]save last doc name /storage/0116/doc_00029318 to /storage/kkm_last_doc_name [19:23:10]save OK [19:23:10]Clear old archive folders... [19:23:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:23:10]tlvbuf is 011F81B0 [19:23:10]SAM_PROTO_ClearQueue [19:23:10]wFMCommunicate request_size=4 [19:23:10]MH_SAM_APDU [19:23:10]CAPDU: 80 09 00 00 [19:23:10]Write to MH i2c: E2 08 00 30 B4 80 09 00 00 00 00 00 00 56 [19:23:10]Write i2c OK [19:23:10]MH_I2C_Read... [19:23:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:23:10]Read from MH i2c: E2 [19:23:10]MH_I2C_Read... [19:23:10]Read from MH i2c: E2 03 00 [19:23:10]MH_I2C_Read... [19:23:10]Read from MH i2c: E2 03 00 30 B4 00 90 00 58 [19:23:10]RAPDU: 90 00 [19:23:10]wFMCommunicate OK [19:23:10]SAM_PROTO_ClearQueue done [19:23:10]KKMCreateOFDPacket [19:23:10]OFDProtocolAddRootSTLVToBuf [19:23:10]FM_MakeSignedData [19:23:10]FM_MakeSignedData [19:23:10]SAM_PROTO_SignData [19:23:10]wFMCommunicate request_size=4 [19:23:10]MH_SAM_APDU [19:23:10]CAPDU: 80 0D 01 02 [19:23:10]Write to MH i2c: E2 08 00 31 B4 80 0D 01 02 00 00 00 00 5E [19:23:10]Write i2c OK [19:23:10]MH_I2C_Read... [19:23:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:23:10]Read from MH i2c: E2 [19:23:10]MH_I2C_Read... [19:23:10]Read from MH i2c: E2 03 00 [19:23:10]MH_I2C_Read... [19:23:10]Read from MH i2c: E2 03 00 31 B4 00 90 00 59 [19:23:10]RAPDU: 90 00 [19:23:10]wFMCommunicate OK [19:23:10]wFMCommunicate request_size=255 [19:23:10]MH_SAM_APDU [19:23: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 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 E4 00 00 00 F4 03 04 00 28 2D 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 86 72 00 00 35 04 06 00 D2 [19:23:10]Write to MH i2c: E2 02 01 32 B4 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 E4 00 00 00 F4 03 04 00 28 2D 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 86 72 00 00 35 04 06 00 D2 00 00 83 [19:23:10]Write i2c OK [19:23:10]MH_I2C_Read... [19:23:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:23:10]Read from MH i2c: E2 [19:23:10]MH_I2C_Read... [19:23:10]Read from MH i2c: E2 03 00 [19:23:10]MH_I2C_Read... [19:23:10]Read from MH i2c: E2 03 00 32 B4 00 90 00 5A [19:23:10]RAPDU: 90 00 [19:23:10]wFMCommunicate OK [19:23:10]wFMCommunicate request_size=10 [19:23:10]MH_SAM_APDU [19:23:10]CAPDU: 80 0D 02 02 05 70 81 3D 41 AE [19:23:10]Write to MH i2c: E2 0D 00 33 B4 80 0D 02 02 05 00 70 81 3D 41 AE 00 00 88 [19:23:10]Write i2c OK [19:23:10]MH_I2C_Read... [19:23:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:23:10]Read from MH i2c: E2 [19:23:10]MH_I2C_Read... [19:23:10]Read from MH i2c: E2 03 00 [19:23:10]MH_I2C_Read... [19:23:10]Read from MH i2c: E2 03 00 33 B4 00 90 00 5B [19:23:10]RAPDU: 90 00 [19:23:10]wFMCommunicate OK [19:23:10]wFMCommunicate request_size=4 [19:23:10]MH_SAM_APDU [19:23:10]CAPDU: 80 0D 03 02 [19:23:10]Write to MH i2c: E2 08 00 34 B4 80 0D 03 02 00 00 00 00 63 [19:23:10]Write i2c OK [19:23:10]MH_I2C_Read... [19:23:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:23:10]Read from MH i2c: E2 [19:23:10]MH_I2C_Read... [19:23:10]Read from MH i2c: E2 0B 00 [19:23:10]MH_I2C_Read... [19:23:10]Read from MH i2c: E2 0B 00 34 B4 00 6F C8 15 7E 1B 28 70 E4 90 00 C5 [19:23:10]RAPDU: 6F C8 15 7E 1B 28 70 E4 90 00 [19:23:10]wFMCommunicate OK [19:23:10]SAM_PROTO_SignData done [19:23:10]FM_MakeSignedData done [19:23:10]CreateOFDProtocolMessage [19:23:10]wFMCommunicate request_size=4 [19:23:10]MH_SAM_APDU [19:23:10]CAPDU: 80 11 00 00 [19:23:10]Write to MH i2c: E2 08 00 35 B4 80 11 00 00 00 00 00 00 63 [19:23:10]Write i2c OK [19:23:10]MH_I2C_Read... [19:23:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:23:10]Read from MH i2c: E2 [19:23:10]MH_I2C_Read... [19:23:10]Read from MH i2c: E2 17 00 [19:23:10]MH_I2C_Read... [19:23:10]Read from MH i2c: E2 17 00 35 B4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B2 [19:23:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:23:10]wFMCommunicate OK [19:23:10]CreateOFDProtocolMessage done [19:23:10]OFDSenderStorePacket 29318 [19:23:10]StoreOFDPacket docnum=29318 [19:23:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 CB A2 07 01 BD FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 E4 00 00 00 F4 03 04 00 28 2D 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 86 72 00 00 35 04 06 00 D2 70 81 3D 41 AE 6F C8 15 7E 1B 28 70 E4 [19:23:10]CheckFolder [19:23:10]dirname=/storage/ofd_packets [19:23:10]CheckFolder done [19:23:10]ProducePacketName [19:23:10]name=ofd_packets/00029318 [19:23:10]NVStorageSaveData ofd_packets/00029318 [19:23:10]File name is /storage/ofd_packets/00029318 [19:23:10]Write 301 bytes [19:23:10]NVStorageSaveData done [19:23:10]OFDSenderStorePacket done [19:23:10]KKMCreateOFDPacket done [19:23:10]NVStorageSaveData kkm_last_timestamp [19:23:10]File name is /storage/kkm_last_timestamp [19:23:10]Write 4 bytes [19:23:10]NVStorageSaveData done [19:23:10]ExternCall_PrintAddStr [19:23:10]wPrintStart [19:23:10]Write to MH i2c: 01 00 00 36 B4 EA [19:23:10]Write i2c OK [19:23:10]MH_I2C_Read... [19:23:10]Read from MH i2c: 01 [19:23:10]MH_I2C_Read... [19:23:10]Read from MH i2c: 01 07 00 [19:23:10]MH_I2C_Read... [19:23:10]Read from MH i2c: 01 07 00 36 B4 00 00 00 00 00 FF 0F FF [19:23:10]RasterBufferAndPrint [19:23:10]line Счет N : (1)347709 [19:23:10]line ИНН: 02508201610067 [19:23:10]line Контрольно-Кассовый Чек [19:23:10]line ПРОДАЖА [19:23:10]line ТРК (МРК, ГНК) : 13 [19:23:10]line Товар: 2710124130 [19:23:10]line Аи-92-К-5 [19:23:10]line 15.560 * 64.30 [19:23:10]line = 1000.51 [19:23:10]line НДС 12% НСП 1% [19:23:10]line > о реализуемом товаре [19:23:10]line ОКРУГЛЕНИЕ: -0.51 [19:23:10]line ИТОГО: 1000.00 [19:23:10]line Внесено: 1000.00 [19:23:10]line СДАЧА: 0.00 [19:23:10]line НСП 1% : 8.85 [19:23:10]line НДС 12% : 106.25 [19:23:10]line Наличными: 1000.00 [19:23:10]line Безнал.: 0.00 [19:23:10]line Место: АЗС № 108 "Партнер Нефть" [19:23:10]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [19:23:10]line СНО: Общий режим [19:23:10]line Чек 228 14.04.2024 19:23 [19:23:10]line Смена: 116 ФФД: 1.0 [19:23:10]line ЗНМ: 0300000027 [19:23:10]line РНМ: 0000138879044617 [19:23:10]line Версия ККМ: 001 [19:23:10]line ФМ: 0000000000963154 [19:23:10]line ФД: 29318 [19:23:10]line ФПД: 231380646445486 [19:23:11]line 1/tax-web-control/client/api/v1/ticket?date=20240414T192320&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29318&fm=231380646445486&tin=02508201610067®Number=0000138879044617&sum=100000 [19:23:11]OFD Sender: Processing packet 29318 [packets to send 8, broken 7] [19:23:11]ProducePacketName [19:23:11]name=ofd_packets/00029318 [19:23:11]OFD Sender: To server: pG, [19:23:11]CommunicateWithHost lk.salyk.kg:30040 [19:23:11]ConnectInit lk.salyk.kg [19:23:11]written 0, free lines is 4095 [19:23:11]Connected sock=10 [19:23:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 CB A2 07 01 BD FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 E4 00 00 00 F4 03 04 00 28 2D 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 86 72 00 00 35 04 06 00 D2 70 81 3D 41 AE 6F C8 15 7E 1B 28 70 E4 [19:23:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 AB 07 47 00 F8 BC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 86 72 00 00 F4 03 04 00 CB D7 1B 66 B6 04 01 00 00 F1 6B DF 55 60 9C 6D 77 [19:23:11]CommunicateWithHost err = 0 [19:23:11]CheckOFDResponse [19:23:11]1017 (14) - 77093643461234 [19:23:11]1041 (16) - 0000000000963154 [19:23:11]1040 (4) - 29318 [19:23:11]1012 (4) - 14.04.2024 13:19 [19:23:11]1206 (1) - 0 [19:23:11]OFD Sender: Remove packet 29318 [19:23:11]ProducePacketName [19:23:11]name=ofd_packets/00029318 [19:23:11]NVStorageDeleteData [19:23:11]Write to MH i2c: 01 00 00 60 B4 14 [19:23:11]Write i2c OK [19:23:11]MH_I2C_Read... [19:23:11]Read from MH i2c: 01 [19:23:11]MH_I2C_Read... [19:23:11]Read from MH i2c: 01 07 00 [19:23:11]MH_I2C_Read... [19:23:11]Read from MH i2c: 01 07 00 60 B4 00 00 00 00 00 CB 0C F2 [19:23:11]RasterBufferAndPrint [19:23:11]line [19:23:11]line [19:23:11]line [19:23:11]line [19:23:11]line [19:23:11]written 0, free lines is 3281 [19:23:11]MH_Cut [19:23:11]Write to MH i2c: D1 01 00 67 B4 01 ED [19:23:11]Write i2c OK [19:23:11]MH_I2C_Read... [19:23:11]Read from MH i2c: D1 [19:23:11]MH_I2C_Read... [19:23:11]Read from MH i2c: D1 01 00 [19:23:11]MH_I2C_Read... [19:23:11]Read from MH i2c: D1 01 00 67 B4 00 EC [19:23:11]Write to MH i2c: 01 00 00 68 B4 1C [19:23:11]Write i2c OK [19:23:11]MH_I2C_Read... [19:23:11]OFD Sender: No OFD packet to send [19:23:12]*** Cut start [19:23:12]*** Partial cut [19:23:12]*** CUTSNS_PIN = 1 [19:23:12]*** CUTSNS_PIN = 0 [19:23:12]*** Brake cut motor [19:23:13]Read from MH i2c: 01 [19:23:13]MH_I2C_Read... [19:23:13]*** Stop cut motor [19:23:13]*** Cut end [19:23:13]Read from MH i2c: 01 07 00 [19:23:13]MH_I2C_Read... [19:23:13]Read from MH i2c: 01 07 00 68 B4 00 00 00 00 00 FF 0F 31 [19:23:13]process_action close_receipt done [19:23:13]requested_data is exist [19:23:13]produce_requested_data [19:23:13]requested_item fm.sn is exist - process it [19:23:13]wFMCommunicate request_size=4 [19:23:13]MH_SAM_APDU [19:23:13]CAPDU: 80 11 00 00 [19:23:13]Write to MH i2c: E2 08 00 69 B4 80 11 00 00 00 00 00 00 97 [19:23:13]Write i2c OK [19:23:13]MH_I2C_Read... [19:23:13]Read from MH i2c: E2 [19:23:13]MH_I2C_Read... [19:23:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:23:13]Read from MH i2c: E2 17 00 [19:23:13]MH_I2C_Read... [19:23:13]Read from MH i2c: E2 17 00 69 B4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E6 [19:23:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:23:13]wFMCommunicate OK [19:23:13]requested_item fd.num is exist - process it [19:23:13]SAM_PROTO_GetFieldsCounters [19:23:13]wFMCommunicate request_size=4 [19:23:13]MH_SAM_APDU [19:23:13]CAPDU: 80 13 00 00 [19:23:13]Write to MH i2c: E2 08 00 6A B4 80 13 00 00 00 00 00 00 9A [19:23:13]Write i2c OK [19:23:13]MH_I2C_Read... [19:23:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:23:13]Read from MH i2c: E2 [19:23:13]MH_I2C_Read... [19:23:13]Read from MH i2c: E2 62 00 [19:23:13]MH_I2C_Read... [19:23:13]Read from MH i2c: E2 62 00 6A B4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 86 72 00 00 0E 04 04 00 74 00 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 F0 [19:23:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 86 72 00 00 0E 04 04 00 74 00 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 [19:23:13]wFMCommunicate OK [19:23:13]SAM_PROTO_GetFieldsCounters done [19:23:13]requested_item shift.num is exist - process it [19:23:13]requested_item shift.opened is exist - process it [19:23:13]req_shift_opened [19:23:13]FM_GetShiftState [19:23:13]SAM_PROTO_GetShiftState [19:23:13]wFMCommunicate request_size=4 [19:23:13]MH_SAM_APDU [19:23:13]CAPDU: 80 13 01 00 [19:23:13]Write to MH i2c: E2 08 00 6B B4 80 13 01 00 00 00 00 00 9C [19:23:13]Write i2c OK [19:23:13]MH_I2C_Read... [19:23:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:23:13]Read from MH i2c: E2 [19:23:13]MH_I2C_Read... [19:23:13]Read from MH i2c: E2 0E 00 [19:23:13]MH_I2C_Read... [19:23:13]Read from MH i2c: E2 0E 00 6B B4 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 48 [19:23:13]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [19:23:13]wFMCommunicate OK [19:23:13]SAM_PROTO_GetShiftState done [19:23:13]FM_GetShiftState done [19:23:13]req_shift_opened done [19:23:13]requested_item shift.open_date is exist - process it [19:23:13]req_shift_open_date [19:23:13]req_shift_open_date done [19:23:13]produce_requested_data done [19:23:13]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29318,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [19:23:13]process_action_free close_receipt [19:23:13]json_value_free [19:23:13]json_value_free done [19:23:13]process_json_proto returns [19:23:13]Send response to host [19:23:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29318,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [19:23:13]free response buf [19:23:13]execute_script done [19:23:13]execute_script returns [19:23:13]free content buf [19:23:13]Sock 7.Close socket [19:23:13]Sock 7.Thread stoped [19:23:16]OFD Sender: No OFD packet to send [19:23:21]OFD Sender: No OFD packet to send [19:23:26]OFD Sender: No OFD packet to send [19:23:31]OFD Sender: No OFD packet to send [19:23:36]OFD Sender: No OFD packet to send [19:23:41]OFD Sender: No OFD packet to send [19:23:47]OFD Sender: No OFD packet to send [19:23:52]OFD Sender: No OFD packet to send [19:23:57]OFD Sender: No OFD packet to send [19:24:02]OFD Sender: No OFD packet to send [19:24:07]OFD Sender: No OFD packet to send [19:24:12]OFD Sender: No OFD packet to send [19:24:17]OFD Sender: No OFD packet to send [19:24:22]OFD Sender: No OFD packet to send [19:24:27]OFD Sender: No OFD packet to send [19:24:30]accept exits with 9 [19:24:30]New connection [19:24:30]New thread 3066928484 created [19:24:30]Thread 3066785124 joined [19:24:30]Waiting for new connection... [19:24:30] Sock 9.Parse request [19:24:30]Sock 9.Check first char [19:24:30]Sock 9.First char is OK [19:24:30]request: POST /json_proto HTTP/1.0 [19:24:30]Method: POST [19:24:30]URL: /json_proto [19:24:30]Method is POST - this is cgi request [19:24:30]url: /json_proto [19:24:30]query_string will be loaded in cgi processing [19:24:30]execute_cgi json_proto POST (null) [19:24:30]execute_cgi path=json_proto method=POST [19:24:30]POST find Content-Length [19:24:30]Host: 172.17.33.3:8080 [19:24:30]Content-Length: 685 [19:24:30]Content-Type: application/json [19:24:30] [19:24:30]POST finish read [19:24:30]Found Content-Length = 685 [19:24:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347708", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 51.680, "sum" : 1700.27, "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" ] } } [19:24:30]execute_script... [19:24: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)347708", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 51.680, "sum" : 1700.27, "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" ] } } [19:24:30]POST & json_proto [19:24:30]process_json_proto [19:24:30]json parsed OK: [19:24:30]protocol is kg_v1.0 [19:24:30]action value=close_receipt [19:24:30]process_action close_receipt [19:24:30]cmd_close_receipt [19:24:30]MH_GetDate [19:24:30]Write to MH i2c: F0 00 00 6C B4 0F [19:24:30]Write i2c OK [19:24:30]MH_I2C_Read... [19:24:30]Read from MH i2c: F0 [19:24:30]MH_I2C_Read... [19:24:30]Read from MH i2c: F0 09 00 [19:24:30]MH_I2C_Read... [19:24:30]Read from MH i2c: F0 09 00 6C B4 00 79 2D 1C 66 23 5B 8F 65 B2 [19:24:30]GetLastDocTimeStamp 1713122600 [19:24:30]current date 1713122681 [19:24:30]FM_GetShiftState [19:24:30]SAM_PROTO_GetShiftState [19:24:30]wFMCommunicate request_size=4 [19:24:30]MH_SAM_APDU [19:24:30]CAPDU: 80 13 01 00 [19:24:30]Write to MH i2c: E2 08 00 6D B4 80 13 01 00 00 00 00 00 9E [19:24:30]Write i2c OK [19:24:30]MH_I2C_Read... [19:24:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:24:30]Read from MH i2c: E2 [19:24:30]MH_I2C_Read... [19:24:30]Read from MH i2c: E2 0E 00 [19:24:30]MH_I2C_Read... [19:24:30]Read from MH i2c: E2 0E 00 6D B4 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 4A [19:24:30]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [19:24:30]wFMCommunicate OK [19:24:30]SAM_PROTO_GetShiftState done [19:24:30]FM_GetShiftState done [19:24:30]opened in 1713053951 [19:24:30]opened+sec_in_day 1713140351 [19:24:30]quantity*price = 170027 [19:24:30]sum+1 = 170028 [19:24:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 1700.00 Внесено: 1700.00 СДАЧА: 0.00 НСП 1% : 15.05 НДС 12% : 180.56 Наличными: 1700.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 229 14.04.2024 19:24 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29319 ФПД: 22145072596703 1/tax-web-control/client/api/v1/ticket?date=20240414T192441&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29319&fm=22145072596703&tin=02508201610067®Number=0000138879044617&sum=170000 [19:24:31]StoreToDocumentArchive [19:24:31]shift 116 fd 29319 [19:24:31]save to /storage/0116/doc_00029319 [19:24:31]save last doc name /storage/0116/doc_00029319 to /storage/kkm_last_doc_name [19:24:31]save OK [19:24:31]Clear old archive folders... [19:24:31]ProcessDocumentItem done err = 0, tmpTLVsize=250 [19:24:31]tlvbuf is 01230560 [19:24:31]SAM_PROTO_ClearQueue [19:24:31]wFMCommunicate request_size=4 [19:24:31]MH_SAM_APDU [19:24:31]CAPDU: 80 09 00 00 [19:24:31]Write to MH i2c: E2 08 00 7A B4 80 09 00 00 00 00 00 00 A0 [19:24:31]Write i2c OK [19:24:31]MH_I2C_Read... [19:24:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:24:31]Read from MH i2c: E2 [19:24:31]MH_I2C_Read... [19:24:31]Read from MH i2c: E2 03 00 [19:24:31]MH_I2C_Read... [19:24:31]Read from MH i2c: E2 03 00 7A B4 00 90 00 A2 [19:24:31]RAPDU: 90 00 [19:24:31]wFMCommunicate OK [19:24:31]SAM_PROTO_ClearQueue done [19:24:31]KKMCreateOFDPacket [19:24:31]OFDProtocolAddRootSTLVToBuf [19:24:31]FM_MakeSignedData [19:24:31]FM_MakeSignedData [19:24:31]SAM_PROTO_SignData [19:24:31]wFMCommunicate request_size=4 [19:24:31]MH_SAM_APDU [19:24:31]CAPDU: 80 0D 01 02 [19:24:31]Write to MH i2c: E2 08 00 7B B4 80 0D 01 02 00 00 00 00 A8 [19:24:31]Write i2c OK [19:24:31]MH_I2C_Read... [19:24:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:24:31]Read from MH i2c: E2 [19:24:31]MH_I2C_Read... [19:24:31]Read from MH i2c: E2 03 00 [19:24:31]MH_I2C_Read... [19:24:31]Read from MH i2c: E2 03 00 7B B4 00 90 00 A3 [19:24:31]RAPDU: 90 00 [19:24:31]wFMCommunicate OK [19:24:31]wFMCommunicate request_size=255 [19:24:31]MH_SAM_APDU [19:24:31]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 E0 C9 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 2B 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 88 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 E5 00 00 00 F4 03 04 00 79 2D 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 87 72 00 00 35 04 06 00 14 24 [19:24:31]Write to MH i2c: E2 02 01 7C B4 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 E0 C9 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 2B 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 88 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 E5 00 00 00 F4 03 04 00 79 2D 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 87 72 00 00 35 04 06 00 14 24 00 00 8D [19:24:31]Write i2c OK [19:24:31]MH_I2C_Read... [19:24:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:24:31]Read from MH i2c: E2 [19:24:31]MH_I2C_Read... [19:24:31]Read from MH i2c: E2 03 00 [19:24:31]MH_I2C_Read... [19:24:31]Read from MH i2c: E2 03 00 7C B4 00 90 00 A4 [19:24:31]RAPDU: 90 00 [19:24:31]wFMCommunicate OK [19:24:31]wFMCommunicate request_size=9 [19:24:31]MH_SAM_APDU [19:24:31]CAPDU: 80 0D 02 02 04 0D 2F 86 DF [19:24:31]Write to MH i2c: E2 0C 00 7D B4 80 0D 02 02 04 00 0D 2F 86 DF 00 00 54 [19:24:31]Write i2c OK [19:24:31]MH_I2C_Read... [19:24:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:24:31]Read from MH i2c: E2 [19:24:31]MH_I2C_Read... [19:24:31]Read from MH i2c: E2 03 00 [19:24:31]MH_I2C_Read... [19:24:31]Read from MH i2c: E2 03 00 7D B4 00 90 00 A5 [19:24:31]RAPDU: 90 00 [19:24:31]wFMCommunicate OK [19:24:31]wFMCommunicate request_size=4 [19:24:31]MH_SAM_APDU [19:24:31]CAPDU: 80 0D 03 02 [19:24:31]Write to MH i2c: E2 08 00 7E B4 80 0D 03 02 00 00 00 00 AD [19:24:31]Write i2c OK [19:24:31]MH_I2C_Read... [19:24:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:24:31]Read from MH i2c: E2 [19:24:31]MH_I2C_Read... [19:24:31]Read from MH i2c: E2 0B 00 [19:24:31]MH_I2C_Read... [19:24:31]Read from MH i2c: E2 0B 00 7E B4 00 9C 51 6A 73 D0 31 4E FE 90 00 C5 [19:24:31]RAPDU: 9C 51 6A 73 D0 31 4E FE 90 00 [19:24:31]wFMCommunicate OK [19:24:31]SAM_PROTO_SignData done [19:24:31]FM_MakeSignedData done [19:24:31]CreateOFDProtocolMessage [19:24:31]wFMCommunicate request_size=4 [19:24:31]MH_SAM_APDU [19:24:31]CAPDU: 80 11 00 00 [19:24:31]Write to MH i2c: E2 08 00 7F B4 80 11 00 00 00 00 00 00 AD [19:24:31]Write i2c OK [19:24:31]MH_I2C_Read... [19:24:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:24:31]Read from MH i2c: E2 [19:24:31]MH_I2C_Read... [19:24:31]Read from MH i2c: E2 17 00 [19:24:31]MH_I2C_Read... [19:24:31]Read from MH i2c: E2 17 00 7F B4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 FC [19:24:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:24:31]wFMCommunicate OK [19:24:31]CreateOFDProtocolMessage done [19:24:31]OFDSenderStorePacket 29319 [19:24:31]StoreOFDPacket docnum=29319 [19:24:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 9C E0 06 01 85 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 E0 C9 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 2B 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 88 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 E5 00 00 00 F4 03 04 00 79 2D 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 87 72 00 00 35 04 06 00 14 24 0D 2F 86 DF 9C 51 6A 73 D0 31 4E FE [19:24:31]CheckFolder [19:24:31]dirname=/storage/ofd_packets [19:24:31]CheckFolder done [19:24:31]ProducePacketName [19:24:31]name=ofd_packets/00029319 [19:24:31]NVStorageSaveData ofd_packets/00029319 [19:24:31]File name is /storage/ofd_packets/00029319 [19:24:31]Write 300 bytes [19:24:31]NVStorageSaveData done [19:24:31]OFDSenderStorePacket done [19:24:31]KKMCreateOFDPacket done [19:24:31]NVStorageSaveData kkm_last_timestamp [19:24:31]File name is /storage/kkm_last_timestamp [19:24:31]Write 4 bytes [19:24:31]NVStorageSaveData done [19:24:31]ExternCall_PrintAddStr [19:24:31]wPrintStart [19:24:31]Write to MH i2c: 01 00 00 80 B4 34 [19:24:31]Write i2c OK [19:24:31]MH_I2C_Read... [19:24:31]Read from MH i2c: 01 [19:24:31]MH_I2C_Read... [19:24:31]Read from MH i2c: 01 07 00 [19:24:31]MH_I2C_Read... [19:24:31]Read from MH i2c: 01 07 00 80 B4 00 00 00 00 00 FF 0F 49 [19:24:31]RasterBufferAndPrint [19:24:31]line Счет N : (1)347708 [19:24:31]line ИНН: 02508201610067 [19:24:31]line Контрольно-Кассовый Чек [19:24:31]line ПРОДАЖА [19:24:31]line ТРК (МРК, ГНК) : 71 [19:24:31]line Товар: 2711129700 [19:24:31]line ГАЗ-К-5 [19:24:31]line 51.680 * 32.90 [19:24:31]line = 1700.27 [19:24:31]line НДС 12% НСП 1% [19:24:31]line > о реализуемом товаре [19:24:31]line ОКРУГЛЕНИЕ: -0.27 [19:24:31]line ИТОГО: 1700.00 [19:24:31]line Внесено: 1700.00 [19:24:31]line СДАЧА: 0.00 [19:24:31]line НСП 1% : 15.05 [19:24:31]line НДС 12% : 180.56 [19:24:31]line Наличными: 1700.00 [19:24:31]line Безнал.: 0.00 [19:24:31]line Место: АЗС № 108 "Партнер Нефть" [19:24:31]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [19:24:31]line СНО: Общий режим [19:24:31]line Чек 229 14.04.2024 19:24 [19:24:31]line Смена: 116 ФФД: 1.0 [19:24:31]line ЗНМ: 0300000027 [19:24:31]line РНМ: 0000138879044617 [19:24:31]line Версия ККМ: 001 [19:24:31]line ФМ: 0000000000963154 [19:24:31]line ФД: 29319 [19:24:31]line ФПД: 22145072596703 [19:24:32]line 1/tax-web-control/client/api/v1/ticket?date=20240414T192441&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29319&fm=22145072596703&tin=02508201610067®Number=0000138879044617&sum=170000 [19:24:32]OFD Sender: Processing packet 29319 [packets to send 8, broken 7] [19:24:32]ProducePacketName [19:24:32]name=ofd_packets/00029319 [19:24:32]OFD Sender: To server: pG, [19:24:32]CommunicateWithHost lk.salyk.kg:30040 [19:24:32]ConnectInit lk.salyk.kg [19:24:32]written 0, free lines is 4095 [19:24:32]Connected sock=6 [19:24:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 9C E0 06 01 85 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 E0 C9 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 2B 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 88 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 E5 00 00 00 F4 03 04 00 79 2D 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 87 72 00 00 35 04 06 00 14 24 0D 2F 86 DF 9C 51 6A 73 D0 31 4E FE [19:24:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 CD DA 47 00 97 AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 87 72 00 00 F4 03 04 00 1C D8 1B 66 B6 04 01 00 00 A3 ED D7 85 21 AF CB 81 [19:24:32]CommunicateWithHost err = 0 [19:24:32]CheckOFDResponse [19:24:32]1017 (14) - 77093643461234 [19:24:32]1041 (16) - 0000000000963154 [19:24:32]1040 (4) - 29319 [19:24:32]1012 (4) - 14.04.2024 13:20 [19:24:32]1206 (1) - 0 [19:24:32]OFD Sender: Remove packet 29319 [19:24:32]ProducePacketName [19:24:32]name=ofd_packets/00029319 [19:24:32]NVStorageDeleteData [19:24:32]Write to MH i2c: 01 00 00 AA B4 5E [19:24:32]Write i2c OK [19:24:32]MH_I2C_Read... [19:24:32]Read from MH i2c: 01 [19:24:32]MH_I2C_Read... [19:24:32]Read from MH i2c: 01 07 00 [19:24:32]MH_I2C_Read... [19:24:32]Read from MH i2c: 01 07 00 AA B4 00 00 00 00 00 D7 0C 48 [19:24:32]RasterBufferAndPrint [19:24:32]line [19:24:32]line [19:24:32]line [19:24:32]line [19:24:32]line [19:24:32]written 0, free lines is 3295 [19:24:32]MH_Cut [19:24:32]Write to MH i2c: D1 01 00 B1 B4 01 37 [19:24:32]Write i2c OK [19:24:32]MH_I2C_Read... [19:24:32]Read from MH i2c: D1 [19:24:32]MH_I2C_Read... [19:24:32]Read from MH i2c: D1 01 00 [19:24:32]MH_I2C_Read... [19:24:32]Read from MH i2c: D1 01 00 B1 B4 00 36 [19:24:32]Write to MH i2c: 01 00 00 B2 B4 66 [19:24:32]Write i2c OK [19:24:32]MH_I2C_Read... [19:24:32]OFD Sender: No OFD packet to send [19:24:33]*** Cut start [19:24:33]*** Partial cut [19:24:33]*** CUTSNS_PIN = 1 [19:24:33]*** CUTSNS_PIN = 0 [19:24:33]*** Brake cut motor [19:24:33]Read from MH i2c: 01 [19:24:33]MH_I2C_Read... [19:24:33]*** Stop cut motor [19:24:33]*** Cut end [19:24:33]Read from MH i2c: 01 07 00 [19:24:33]MH_I2C_Read... [19:24:33]Read from MH i2c: 01 07 00 B2 B4 00 00 00 00 00 FF 0F 7B [19:24:33]process_action close_receipt done [19:24:33]requested_data is exist [19:24:33]produce_requested_data [19:24:33]requested_item fm.sn is exist - process it [19:24:33]wFMCommunicate request_size=4 [19:24:33]MH_SAM_APDU [19:24:33]CAPDU: 80 11 00 00 [19:24:33]Write to MH i2c: E2 08 00 B3 B4 80 11 00 00 00 00 00 00 E1 [19:24:33]Write i2c OK [19:24:33]MH_I2C_Read... [19:24:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:24:33]Read from MH i2c: E2 [19:24:33]MH_I2C_Read... [19:24:33]Read from MH i2c: E2 17 00 [19:24:33]MH_I2C_Read... [19:24:34]Read from MH i2c: E2 17 00 B3 B4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 30 [19:24:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:24:34]wFMCommunicate OK [19:24:34]requested_item fd.num is exist - process it [19:24:34]SAM_PROTO_GetFieldsCounters [19:24:34]wFMCommunicate request_size=4 [19:24:34]MH_SAM_APDU [19:24:34]CAPDU: 80 13 00 00 [19:24:34]Write to MH i2c: E2 08 00 B4 B4 80 13 00 00 00 00 00 00 E4 [19:24:34]Write i2c OK [19:24:34]MH_I2C_Read... [19:24:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:24:34]Read from MH i2c: E2 [19:24:34]MH_I2C_Read... [19:24:34]Read from MH i2c: E2 62 00 [19:24:34]MH_I2C_Read... [19:24:34]Read from MH i2c: E2 62 00 B4 B4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 87 72 00 00 0E 04 04 00 74 00 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 3E [19:24:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 87 72 00 00 0E 04 04 00 74 00 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 [19:24:34]wFMCommunicate OK [19:24:34]SAM_PROTO_GetFieldsCounters done [19:24:34]requested_item shift.num is exist - process it [19:24:34]requested_item shift.opened is exist - process it [19:24:34]req_shift_opened [19:24:34]FM_GetShiftState [19:24:34]SAM_PROTO_GetShiftState [19:24:34]wFMCommunicate request_size=4 [19:24:34]MH_SAM_APDU [19:24:34]CAPDU: 80 13 01 00 [19:24:34]Write to MH i2c: E2 08 00 B5 B4 80 13 01 00 00 00 00 00 E6 [19:24:34]Write i2c OK [19:24:34]MH_I2C_Read... [19:24:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:24:34]Read from MH i2c: E2 [19:24:34]MH_I2C_Read... [19:24:34]Read from MH i2c: E2 0E 00 [19:24:34]MH_I2C_Read... [19:24:34]Read from MH i2c: E2 0E 00 B5 B4 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 92 [19:24:34]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [19:24:34]wFMCommunicate OK [19:24:34]SAM_PROTO_GetShiftState done [19:24:34]FM_GetShiftState done [19:24:34]req_shift_opened done [19:24:34]requested_item shift.open_date is exist - process it [19:24:34]req_shift_open_date [19:24:34]req_shift_open_date done [19:24:34]produce_requested_data done [19:24:34]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29319,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [19:24:34]process_action_free close_receipt [19:24:34]json_value_free [19:24:34]json_value_free done [19:24:34]process_json_proto returns [19:24:34]Send response to host [19:24:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29319,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [19:24:34]free response buf [19:24:34]execute_script done [19:24:34]execute_script returns [19:24:34]free content buf [19:24:34]Sock 9.Close socket [19:24:34]Sock 9.Thread stoped [19:24:37]OFD Sender: No OFD packet to send [19:24:42]OFD Sender: No OFD packet to send [19:24:47]OFD Sender: No OFD packet to send [19:24:52]OFD Sender: No OFD packet to send [19:24:57]OFD Sender: No OFD packet to send [19:25:02]OFD Sender: No OFD packet to send [19:25:07]OFD Sender: No OFD packet to send [19:25:12]OFD Sender: No OFD packet to send [19:25:17]OFD Sender: No OFD packet to send [19:25:22]OFD Sender: No OFD packet to send [19:25:27]OFD Sender: No OFD packet to send [19:25:32]OFD Sender: No OFD packet to send [19:25:37]OFD Sender: No OFD packet to send [19:25:42]OFD Sender: No OFD packet to send [19:25:47]OFD Sender: No OFD packet to send [19:25:52]OFD Sender: No OFD packet to send [19:25:57]OFD Sender: No OFD packet to send [19:26:02]OFD Sender: No OFD packet to send [19:26:07]OFD Sender: No OFD packet to send [19:26:10]accept exits with 7 [19:26:10]New connection [19:26:10]New thread 3066785124 created [19:26:10]Thread 3066928484 joined [19:26:10]Waiting for new connection... [19:26:10] Sock 7.Parse request [19:26:10]Sock 7.Check first char [19:26:10]Sock 7.First char is OK [19:26:10]request: POST /json_proto HTTP/1.0 [19:26:10]Method: POST [19:26:10]URL: /json_proto [19:26:10]Method is POST - this is cgi request [19:26:10]url: /json_proto [19:26:10]query_string will be loaded in cgi processing [19:26:10]execute_cgi json_proto POST (null) [19:26:10]execute_cgi path=json_proto method=POST [19:26:10]POST find Content-Length [19:26:10]Host: 172.17.33.3:8080 [19:26:10]Content-Length: 677 [19:26:10]Content-Type: application/json [19:26:10] [19:26:10]POST finish read [19:26:10]Found Content-Length = 677 [19:26:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347710", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.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:26:10]execute_script... [19:26: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)347710", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.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:26:10]POST & json_proto [19:26:10]process_json_proto [19:26:10]json parsed OK: [19:26:10]protocol is kg_v1.0 [19:26:10]action value=close_receipt [19:26:10]process_action close_receipt [19:26:10]cmd_close_receipt [19:26:10]MH_GetDate [19:26:10]Write to MH i2c: F0 00 00 B6 B4 59 [19:26:10]Write i2c OK [19:26:10]MH_I2C_Read... [19:26:10]Read from MH i2c: F0 [19:26:10]MH_I2C_Read... [19:26:10]Read from MH i2c: F0 09 00 [19:26:10]MH_I2C_Read... [19:26:10]Read from MH i2c: F0 09 00 B6 B4 00 DE 2D 1C 66 23 5B 8F 65 61 [19:26:10]GetLastDocTimeStamp 1713122681 [19:26:10]current date 1713122782 [19:26:10]FM_GetShiftState [19:26:10]SAM_PROTO_GetShiftState [19:26:10]wFMCommunicate request_size=4 [19:26:10]MH_SAM_APDU [19:26:10]CAPDU: 80 13 01 00 [19:26:10]Write to MH i2c: E2 08 00 B7 B4 80 13 01 00 00 00 00 00 E8 [19:26:10]Write i2c OK [19:26:10]MH_I2C_Read... [19:26:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:26:10]Read from MH i2c: E2 [19:26:10]MH_I2C_Read... [19:26:10]Read from MH i2c: E2 0E 00 [19:26:10]MH_I2C_Read... [19:26:10]Read from MH i2c: E2 0E 00 B7 B4 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 94 [19:26:10]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [19:26:10]wFMCommunicate OK [19:26:10]SAM_PROTO_GetShiftState done [19:26:10]FM_GetShiftState done [19:26:10]opened in 1713053951 [19:26:10]opened+sec_in_day 1713140351 [19:26:10]quantity*price = 50025 [19:26:10]sum+1 = 50026 [19:26:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 230 14.04.2024 19:26 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29320 ФПД: 163605125955357 1/tax-web-control/client/api/v1/ticket?date=20240414T192622&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29320&fm=163605125955357&tin=02508201610067®Number=0000138879044617&sum=50000 [19:26:11]StoreToDocumentArchive [19:26:11]shift 116 fd 29320 [19:26:11]save to /storage/0116/doc_00029320 [19:26:11]save last doc name /storage/0116/doc_00029320 to /storage/kkm_last_doc_name [19:26:11]save OK [19:26:11]Clear old archive folders... [19:26:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:26:11]tlvbuf is 011D49A0 [19:26:11]SAM_PROTO_ClearQueue [19:26:11]wFMCommunicate request_size=4 [19:26:11]MH_SAM_APDU [19:26:11]CAPDU: 80 09 00 00 [19:26:11]Write to MH i2c: E2 08 00 C4 B4 80 09 00 00 00 00 00 00 EA [19:26:11]Write i2c OK [19:26:11]MH_I2C_Read... [19:26:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:26:12]Read from MH i2c: E2 [19:26:12]MH_I2C_Read... [19:26:12]Read from MH i2c: E2 03 00 [19:26:12]MH_I2C_Read... [19:26:12]Read from MH i2c: E2 03 00 C4 B4 00 90 00 EC [19:26:12]RAPDU: 90 00 [19:26:12]wFMCommunicate OK [19:26:12]SAM_PROTO_ClearQueue done [19:26:12]KKMCreateOFDPacket [19:26:12]OFDProtocolAddRootSTLVToBuf [19:26:12]FM_MakeSignedData [19:26:12]FM_MakeSignedData [19:26:12]SAM_PROTO_SignData [19:26:12]wFMCommunicate request_size=4 [19:26:12]MH_SAM_APDU [19:26:12]CAPDU: 80 0D 01 02 [19:26:12]Write to MH i2c: E2 08 00 C5 B4 80 0D 01 02 00 00 00 00 F2 [19:26:12]Write i2c OK [19:26:12]MH_I2C_Read... [19:26:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:26:12]Read from MH i2c: E2 [19:26:12]MH_I2C_Read... [19:26:12]Read from MH i2c: E2 03 00 [19:26:12]MH_I2C_Read... [19:26:12]Read from MH i2c: E2 03 00 C5 B4 00 90 00 ED [19:26:12]RAPDU: 90 00 [19:26:12]wFMCommunicate OK [19:26:12]wFMCommunicate request_size=255 [19:26:12]MH_SAM_APDU [19:26: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 E6 00 00 00 F4 03 04 00 DE 2D 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 88 72 00 00 35 04 06 00 94 [19:26:12]Write to MH i2c: E2 02 01 C6 B4 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 E6 00 00 00 F4 03 04 00 DE 2D 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 88 72 00 00 35 04 06 00 94 00 00 29 [19:26:12]Write i2c OK [19:26:12]MH_I2C_Read... [19:26:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:26:12]Read from MH i2c: E2 [19:26:12]MH_I2C_Read... [19:26:12]Read from MH i2c: E2 03 00 [19:26:12]MH_I2C_Read... [19:26:12]Read from MH i2c: E2 03 00 C6 B4 00 90 00 EE [19:26:12]RAPDU: 90 00 [19:26:12]wFMCommunicate OK [19:26:12]wFMCommunicate request_size=10 [19:26:12]MH_SAM_APDU [19:26:12]CAPDU: 80 0D 02 02 05 CC 49 6A 7F 1D [19:26:12]Write to MH i2c: E2 0D 00 C7 B4 80 0D 02 02 05 00 CC 49 6A 7F 1D 00 00 1A [19:26:12]Write i2c OK [19:26:12]MH_I2C_Read... [19:26:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:26:12]Read from MH i2c: E2 [19:26:12]MH_I2C_Read... [19:26:12]Read from MH i2c: E2 03 00 [19:26:12]MH_I2C_Read... [19:26:12]Read from MH i2c: E2 03 00 C7 B4 00 90 00 EF [19:26:12]RAPDU: 90 00 [19:26:12]wFMCommunicate OK [19:26:12]wFMCommunicate request_size=4 [19:26:12]MH_SAM_APDU [19:26:12]CAPDU: 80 0D 03 02 [19:26:12]Write to MH i2c: E2 08 00 C8 B4 80 0D 03 02 00 00 00 00 F7 [19:26:12]Write i2c OK [19:26:12]MH_I2C_Read... [19:26:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:26:12]Read from MH i2c: E2 [19:26:12]MH_I2C_Read... [19:26:12]Read from MH i2c: E2 0B 00 [19:26:12]MH_I2C_Read... [19:26:12]Read from MH i2c: E2 0B 00 C8 B4 00 F2 90 63 E7 D7 59 E5 27 90 00 00 [19:26:12]RAPDU: F2 90 63 E7 D7 59 E5 27 90 00 [19:26:12]wFMCommunicate OK [19:26:12]SAM_PROTO_SignData done [19:26:12]FM_MakeSignedData done [19:26:12]CreateOFDProtocolMessage [19:26:12]wFMCommunicate request_size=4 [19:26:12]MH_SAM_APDU [19:26:12]CAPDU: 80 11 00 00 [19:26:12]Write to MH i2c: E2 08 00 C9 B4 80 11 00 00 00 00 00 00 F7 [19:26:12]Write i2c OK [19:26:12]MH_I2C_Read... [19:26:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:26:12]Read from MH i2c: E2 [19:26:12]MH_I2C_Read... [19:26:12]Read from MH i2c: E2 17 00 [19:26:12]MH_I2C_Read... [19:26:12]Read from MH i2c: E2 17 00 C9 B4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 46 [19:26:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:26:12]wFMCommunicate OK [19:26:12]CreateOFDProtocolMessage done [19:26:12]OFDSenderStorePacket 29320 [19:26:12]StoreOFDPacket docnum=29320 [19:26:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 DB C5 07 01 7C 97 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 E6 00 00 00 F4 03 04 00 DE 2D 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 88 72 00 00 35 04 06 00 94 CC 49 6A 7F 1D F2 90 63 E7 D7 59 E5 27 [19:26:12]CheckFolder [19:26:12]dirname=/storage/ofd_packets [19:26:12]CheckFolder done [19:26:12]ProducePacketName [19:26:12]name=ofd_packets/00029320 [19:26:12]NVStorageSaveData ofd_packets/00029320 [19:26:12]File name is /storage/ofd_packets/00029320 [19:26:12]Write 301 bytes [19:26:12]NVStorageSaveData done [19:26:12]OFDSenderStorePacket done [19:26:12]KKMCreateOFDPacket done [19:26:12]NVStorageSaveData kkm_last_timestamp [19:26:12]File name is /storage/kkm_last_timestamp [19:26:12]Write 4 bytes [19:26:12]NVStorageSaveData done [19:26:12]ExternCall_PrintAddStr [19:26:12]wPrintStart [19:26:12]Write to MH i2c: 01 00 00 CA B4 7E [19:26:12]Write i2c OK [19:26:12]MH_I2C_Read... [19:26:12]Read from MH i2c: 01 [19:26:12]MH_I2C_Read... [19:26:12]Read from MH i2c: 01 07 00 [19:26:12]MH_I2C_Read... [19:26:12]Read from MH i2c: 01 07 00 CA B4 00 00 00 00 00 FF 0F 93 [19:26:12]RasterBufferAndPrint [19:26:12]line Счет N : (1)347710 [19:26:12]line ИНН: 02508201610067 [19:26:12]line Контрольно-Кассовый Чек [19:26:12]line ПРОДАЖА [19:26:12]line ТРК (МРК, ГНК) : 23 [19:26:12]line Товар: 2710124130 [19:26:12]line Аи-92-К-5 [19:26:12]line 7.780 * 64.30 [19:26:12]line = 500.25 [19:26:12]line НДС 12% НСП 1% [19:26:12]line > о реализуемом товаре [19:26:12]line ОКРУГЛЕНИЕ: -0.25 [19:26:12]line ИТОГО: 500.00 [19:26:12]line Внесено: 500.00 [19:26:12]line СДАЧА: 0.00 [19:26:12]line НСП 1% : 4.43 [19:26:12]line НДС 12% : 53.12 [19:26:12]line Наличными: 500.00 [19:26:12]line Безнал.: 0.00 [19:26:12]line Место: АЗС № 108 "Партнер Нефть" [19:26:12]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [19:26:12]line СНО: Общий режим [19:26:12]line Чек 230 14.04.2024 19:26 [19:26:12]line Смена: 116 ФФД: 1.0 [19:26:12]line ЗНМ: 0300000027 [19:26:12]line РНМ: 0000138879044617 [19:26:12]line Версия ККМ: 001 [19:26:12]line ФМ: 0000000000963154 [19:26:12]line ФД: 29320 [19:26:12]line ФПД: 163605125955357 [19:26:12]line 1/tax-web-control/client/api/v1/ticket?date=20240414T192622&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29320&fm=163605125955357&tin=02508201610067®Number=0000138879044617&sum=50000 [19:26:12]OFD Sender: Processing packet 29320 [packets to send 8, broken 7] [19:26:12]ProducePacketName [19:26:12]name=ofd_packets/00029320 [19:26:12]OFD Sender: To server: pG, [19:26:12]CommunicateWithHost lk.salyk.kg:30040 [19:26:12]ConnectInit lk.salyk.kg [19:26:12]written 0, free lines is 4095 [19:26:12]Connected sock=10 [19:26:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 DB C5 07 01 7C 97 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 E6 00 00 00 F4 03 04 00 DE 2D 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 88 72 00 00 35 04 06 00 94 CC 49 6A 7F 1D F2 90 63 E7 D7 59 E5 27 [19:26:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 B9 BA 47 00 CC 76 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 88 72 00 00 F4 03 04 00 81 D8 1B 66 B6 04 01 00 00 34 90 D2 AB 17 52 BB D2 [19:26:13]CommunicateWithHost err = 0 [19:26:13]CheckOFDResponse [19:26:13]1017 (14) - 77093643461234 [19:26:13]1041 (16) - 0000000000963154 [19:26:13]1040 (4) - 29320 [19:26:13]1012 (4) - 14.04.2024 13:22 [19:26:13]1206 (1) - 0 [19:26:13]OFD Sender: Remove packet 29320 [19:26:13]ProducePacketName [19:26:13]name=ofd_packets/00029320 [19:26:13]NVStorageDeleteData [19:26:13]Write to MH i2c: 01 00 00 F4 B4 A8 [19:26:13]Write i2c OK [19:26:13]MH_I2C_Read... [19:26:13]Read from MH i2c: 01 [19:26:13]MH_I2C_Read... [19:26:13]Read from MH i2c: 01 07 00 [19:26:13]MH_I2C_Read... [19:26:13]Read from MH i2c: 01 07 00 F4 B4 00 00 00 00 00 D0 0C 8B [19:26:13]RasterBufferAndPrint [19:26:13]line [19:26:13]line [19:26:13]line [19:26:13]line [19:26:13]line [19:26:13]written 0, free lines is 3286 [19:26:13]MH_Cut [19:26:13]Write to MH i2c: D1 01 00 FB B4 01 81 [19:26:13]Write i2c OK [19:26:13]MH_I2C_Read... [19:26:13]Read from MH i2c: D1 [19:26:13]MH_I2C_Read... [19:26:13]Read from MH i2c: D1 01 00 [19:26:13]MH_I2C_Read... [19:26:13]Read from MH i2c: D1 01 00 FB B4 00 80 [19:26:13]Write to MH i2c: 01 00 00 FC B4 B0 [19:26:13]Write i2c OK [19:26:13]MH_I2C_Read... [19:26:13]OFD Sender: No OFD packet to send [19:26:14]*** Cut start [19:26:14]*** Partial cut [19:26:14]*** CUTSNS_PIN = 1 [19:26:14]*** CUTSNS_PIN = 0 [19:26:14]*** Brake cut motor [19:26:14]Read from MH i2c: 01 [19:26:14]MH_I2C_Read... [19:26:14]*** Stop cut motor [19:26:14]*** Cut end [19:26:14]Read from MH i2c: 01 07 00 [19:26:14]MH_I2C_Read... [19:26:14]Read from MH i2c: 01 07 00 FC B4 00 00 00 00 00 FF 0F C5 [19:26:14]process_action close_receipt done [19:26:14]requested_data is exist [19:26:14]produce_requested_data [19:26:14]requested_item fm.sn is exist - process it [19:26:14]wFMCommunicate request_size=4 [19:26:14]MH_SAM_APDU [19:26:14]CAPDU: 80 11 00 00 [19:26:14]Write to MH i2c: E2 08 00 FD B4 80 11 00 00 00 00 00 00 2B [19:26:14]Write i2c OK [19:26:14]MH_I2C_Read... [19:26:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:26:14]Read from MH i2c: E2 [19:26:14]MH_I2C_Read... [19:26:14]Read from MH i2c: E2 17 00 [19:26:14]MH_I2C_Read... [19:26:14]Read from MH i2c: E2 17 00 FD B4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 7A [19:26:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:26:14]wFMCommunicate OK [19:26:14]requested_item fd.num is exist - process it [19:26:14]SAM_PROTO_GetFieldsCounters [19:26:14]wFMCommunicate request_size=4 [19:26:14]MH_SAM_APDU [19:26:14]CAPDU: 80 13 00 00 [19:26:14]Write to MH i2c: E2 08 00 FE B4 80 13 00 00 00 00 00 00 2E [19:26:14]Write i2c OK [19:26:14]MH_I2C_Read... [19:26:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:26:14]Read from MH i2c: E2 [19:26:14]MH_I2C_Read... [19:26:14]Read from MH i2c: E2 62 00 [19:26:14]MH_I2C_Read... [19:26:14]Read from MH i2c: E2 62 00 FE B4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 88 72 00 00 0E 04 04 00 74 00 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 8C [19:26:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 88 72 00 00 0E 04 04 00 74 00 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 [19:26:14]wFMCommunicate OK [19:26:14]SAM_PROTO_GetFieldsCounters done [19:26:14]requested_item shift.num is exist - process it [19:26:14]requested_item shift.opened is exist - process it [19:26:14]req_shift_opened [19:26:14]FM_GetShiftState [19:26:14]SAM_PROTO_GetShiftState [19:26:14]wFMCommunicate request_size=4 [19:26:14]MH_SAM_APDU [19:26:14]CAPDU: 80 13 01 00 [19:26:14]Write to MH i2c: E2 08 00 FF B4 80 13 01 00 00 00 00 00 30 [19:26:14]Write i2c OK [19:26:14]MH_I2C_Read... [19:26:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:26:14]Read from MH i2c: E2 [19:26:14]MH_I2C_Read... [19:26:14]Read from MH i2c: E2 0E 00 [19:26:14]MH_I2C_Read... [19:26:14]Read from MH i2c: E2 0E 00 FF B4 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 DC [19:26:14]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [19:26:14]wFMCommunicate OK [19:26:14]SAM_PROTO_GetShiftState done [19:26:14]FM_GetShiftState done [19:26:14]req_shift_opened done [19:26:14]requested_item shift.open_date is exist - process it [19:26:14]req_shift_open_date [19:26:14]req_shift_open_date done [19:26:14]produce_requested_data done [19:26:14]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29320,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [19:26:14]process_action_free close_receipt [19:26:14]json_value_free [19:26:14]json_value_free done [19:26:14]process_json_proto returns [19:26:14]Send response to host [19:26:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29320,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [19:26:14]free response buf [19:26:14]execute_script done [19:26:14]execute_script returns [19:26:14]free content buf [19:26:14]Sock 7.Close socket [19:26:14]Sock 7.Thread stoped [19:26:18]OFD Sender: No OFD packet to send [19:26:23]OFD Sender: No OFD packet to send [19:26:28]OFD Sender: No OFD packet to send [19:26:33]OFD Sender: No OFD packet to send [19:26:38]OFD Sender: No OFD packet to send [19:26:43]OFD Sender: No OFD packet to send [19:26:48]OFD Sender: No OFD packet to send [19:26:53]OFD Sender: No OFD packet to send [19:26:58]OFD Sender: No OFD packet to send [19:27:03]OFD Sender: No OFD packet to send [19:27:08]OFD Sender: No OFD packet to send [19:27:13]OFD Sender: No OFD packet to send [19:27:18]OFD Sender: No OFD packet to send [19:27:23]OFD Sender: No OFD packet to send [19:27:28]OFD Sender: No OFD packet to send [19:27:33]OFD Sender: No OFD packet to send [19:27:38]OFD Sender: No OFD packet to send [19:27:43]OFD Sender: No OFD packet to send [19:27:48]OFD Sender: No OFD packet to send [19:27:53]OFD Sender: No OFD packet to send [19:27:58]OFD Sender: No OFD packet to send [19:28:03]OFD Sender: No OFD packet to send [19:28:08]OFD Sender: No OFD packet to send [19:28:13]OFD Sender: No OFD packet to send [19:28:18]OFD Sender: No OFD packet to send [19:28:23]OFD Sender: No OFD packet to send [19:28:28]OFD Sender: No OFD packet to send [19:28:33]OFD Sender: No OFD packet to send [19:28:38]OFD Sender: No OFD packet to send [19:28:43]OFD Sender: No OFD packet to send [19:28:48]OFD Sender: No OFD packet to send [19:28:53]OFD Sender: No OFD packet to send [19:28:58]OFD Sender: No OFD packet to send [19:29:03]OFD Sender: No OFD packet to send [19:29:08]OFD Sender: No OFD packet to send [19:29:13]OFD Sender: No OFD packet to send [19:29:18]OFD Sender: No OFD packet to send [19:29:23]OFD Sender: No OFD packet to send [19:29:28]OFD Sender: No OFD packet to send [19:29:33]OFD Sender: No OFD packet to send [19:29:38]OFD Sender: No OFD packet to send [19:29:43]OFD Sender: No OFD packet to send [19:29:48]OFD Sender: No OFD packet to send [19:29:53]OFD Sender: No OFD packet to send [19:29:58]OFD Sender: No OFD packet to send [19:30:03]OFD Sender: No OFD packet to send [19:30:08]OFD Sender: No OFD packet to send [19:30:13]OFD Sender: No OFD packet to send [19:30:18]OFD Sender: No OFD packet to send [19:30:23]OFD Sender: No OFD packet to send [19:30:28]OFD Sender: No OFD packet to send [19:30:33]OFD Sender: No OFD packet to send [19:30:38]OFD Sender: No OFD packet to send [19:30:43]OFD Sender: No OFD packet to send [19:30:48]OFD Sender: No OFD packet to send [19:30:53]OFD Sender: No OFD packet to send [19:30:58]OFD Sender: No OFD packet to send [19:31:03]OFD Sender: No OFD packet to send [19:31:08]OFD Sender: No OFD packet to send [19:31:13]OFD Sender: No OFD packet to send [19:31:18]OFD Sender: No OFD packet to send [19:31:23]OFD Sender: No OFD packet to send [19:31:28]OFD Sender: No OFD packet to send [19:31:33]OFD Sender: No OFD packet to send [19:31:38]OFD Sender: No OFD packet to send [19:31:43]OFD Sender: No OFD packet to send [19:31:48]OFD Sender: No OFD packet to send [19:31:53]OFD Sender: No OFD packet to send [19:31:58]OFD Sender: No OFD packet to send [19:32:03]OFD Sender: No OFD packet to send [19:32:08]OFD Sender: No OFD packet to send [19:32:13]OFD Sender: No OFD packet to send [19:32:18]OFD Sender: No OFD packet to send [19:32:23]OFD Sender: No OFD packet to send [19:32:28]OFD Sender: No OFD packet to send [19:32:33]OFD Sender: No OFD packet to send [19:32:38]OFD Sender: No OFD packet to send [19:32:43]OFD Sender: No OFD packet to send [19:32:48]OFD Sender: No OFD packet to send [19:32:53]OFD Sender: No OFD packet to send [19:32:58]OFD Sender: No OFD packet to send [19:33:03]OFD Sender: No OFD packet to send [19:33:08]OFD Sender: No OFD packet to send [19:33:13]OFD Sender: No OFD packet to send [19:33:18]OFD Sender: No OFD packet to send [19:33:23]OFD Sender: No OFD packet to send [19:33:28]OFD Sender: No OFD packet to send [19:33:33]OFD Sender: No OFD packet to send [19:33:38]OFD Sender: No OFD packet to send [19:33:43]OFD Sender: No OFD packet to send [19:33:49]OFD Sender: No OFD packet to send [19:33:54]OFD Sender: No OFD packet to send [19:33:59]OFD Sender: No OFD packet to send [19:34:04]OFD Sender: No OFD packet to send [19:34:09]OFD Sender: No OFD packet to send [19:34:14]OFD Sender: No OFD packet to send [19:34:19]OFD Sender: No OFD packet to send [19:34:24]OFD Sender: No OFD packet to send [19:34:29]OFD Sender: No OFD packet to send [19:34:34]OFD Sender: No OFD packet to send [19:34:39]OFD Sender: No OFD packet to send [19:34:44]OFD Sender: No OFD packet to send [19:34:49]OFD Sender: No OFD packet to send [19:34:54]OFD Sender: No OFD packet to send [19:34:59]OFD Sender: No OFD packet to send [19:35:04]OFD Sender: No OFD packet to send [19:35:09]OFD Sender: No OFD packet to send [19:35:14]OFD Sender: No OFD packet to send [19:35:19]OFD Sender: No OFD packet to send [19:35:24]OFD Sender: No OFD packet to send [19:35:29]OFD Sender: No OFD packet to send [19:35:34]OFD Sender: No OFD packet to send [19:35:39]OFD Sender: No OFD packet to send [19:35:44]OFD Sender: No OFD packet to send [19:35:49]OFD Sender: No OFD packet to send [19:35:54]OFD Sender: No OFD packet to send [19:35:59]OFD Sender: No OFD packet to send [19:36:04]OFD Sender: No OFD packet to send [19:36:09]OFD Sender: No OFD packet to send [19:36:14]OFD Sender: No OFD packet to send [19:36:19]OFD Sender: No OFD packet to send [19:36:24]OFD Sender: No OFD packet to send [19:36:29]OFD Sender: No OFD packet to send [19:36:34]OFD Sender: No OFD packet to send [19:36:39]OFD Sender: No OFD packet to send [19:36:44]OFD Sender: No OFD packet to send [19:36:49]OFD Sender: No OFD packet to send [19:36:54]OFD Sender: No OFD packet to send [19:36:59]OFD Sender: No OFD packet to send [19:37:04]OFD Sender: No OFD packet to send [19:37:09]OFD Sender: No OFD packet to send [19:37:14]OFD Sender: No OFD packet to send [19:37:19]OFD Sender: No OFD packet to send [19:37:24]OFD Sender: No OFD packet to send [19:37:29]OFD Sender: No OFD packet to send [19:37:34]OFD Sender: No OFD packet to send [19:37:39]OFD Sender: No OFD packet to send [19:37:44]OFD Sender: No OFD packet to send [19:37:49]OFD Sender: No OFD packet to send [19:37:54]OFD Sender: No OFD packet to send [19:37:59]OFD Sender: No OFD packet to send [19:38:04]OFD Sender: No OFD packet to send [19:38:09]OFD Sender: No OFD packet to send [19:38:14]OFD Sender: No OFD packet to send [19:38:19]OFD Sender: No OFD packet to send [19:38:24]OFD Sender: No OFD packet to send [19:38:29]OFD Sender: No OFD packet to send [19:38:34]OFD Sender: No OFD packet to send [19:38:39]OFD Sender: No OFD packet to send [19:38:44]OFD Sender: No OFD packet to send [19:38:49]OFD Sender: No OFD packet to send [19:38:54]OFD Sender: No OFD packet to send [19:38:59]OFD Sender: No OFD packet to send [19:39:04]OFD Sender: No OFD packet to send [19:39:09]OFD Sender: No OFD packet to send [19:39:14]OFD Sender: No OFD packet to send [19:39:19]OFD Sender: No OFD packet to send [19:39:24]OFD Sender: No OFD packet to send [19:39:29]OFD Sender: No OFD packet to send [19:39:34]OFD Sender: No OFD packet to send [19:39:39]OFD Sender: No OFD packet to send [19:39:44]OFD Sender: No OFD packet to send [19:39:49]OFD Sender: No OFD packet to send [19:39:54]OFD Sender: No OFD packet to send [19:39:59]OFD Sender: No OFD packet to send [19:40:04]OFD Sender: No OFD packet to send [19:40:09]OFD Sender: No OFD packet to send [19:40:14]OFD Sender: No OFD packet to send [19:40:19]OFD Sender: No OFD packet to send [19:40:24]OFD Sender: No OFD packet to send [19:40:29]OFD Sender: No OFD packet to send [19:40:34]OFD Sender: No OFD packet to send [19:40:39]OFD Sender: No OFD packet to send [19:40:44]OFD Sender: No OFD packet to send [19:40:49]OFD Sender: No OFD packet to send [19:40:54]OFD Sender: No OFD packet to send [19:40:59]OFD Sender: No OFD packet to send [19:41:04]OFD Sender: No OFD packet to send [19:41:09]OFD Sender: No OFD packet to send [19:41:14]OFD Sender: No OFD packet to send [19:41:19]OFD Sender: No OFD packet to send [19:41:24]OFD Sender: No OFD packet to send [19:41:29]OFD Sender: No OFD packet to send [19:41:34]OFD Sender: No OFD packet to send [19:41:39]OFD Sender: No OFD packet to send [19:41:44]OFD Sender: No OFD packet to send [19:41:49]OFD Sender: No OFD packet to send [19:41:54]OFD Sender: No OFD packet to send [19:41:59]OFD Sender: No OFD packet to send [19:42:04]OFD Sender: No OFD packet to send [19:42:09]OFD Sender: No OFD packet to send [19:42:14]OFD Sender: No OFD packet to send [19:42:16]accept exits with 9 [19:42:16]New connection [19:42:16]New thread 3066928484 created [19:42:16]Thread 3066785124 joined [19:42:16]Waiting for new connection... [19:42:16] Sock 9.Parse request [19:42:16]Sock 9.Check first char [19:42:16]Sock 9.First char is OK [19:42:16]request: POST /json_proto HTTP/1.0 [19:42:16]Method: POST [19:42:16]URL: /json_proto [19:42:16]Method is POST - this is cgi request [19:42:16]url: /json_proto [19:42:16]query_string will be loaded in cgi processing [19:42:16]execute_cgi json_proto POST (null) [19:42:16]execute_cgi path=json_proto method=POST [19:42:16]POST find Content-Length [19:42:16]Host: 172.17.33.3:8080 [19:42:16]Content-Length: 811 [19:42:16]Content-Type: application/json [19:42:16] [19:42:16]POST finish read [19:42:16]Found Content-Length = 811 [19:42:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347711", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 45.600, "sum" : 1500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:42:16]execute_script... [19:42: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)347711", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 45.600, "sum" : 1500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:42:16]POST & json_proto [19:42:16]process_json_proto [19:42:16]json parsed OK: [19:42:16]protocol is kg_v1.0 [19:42:16]action value=close_receipt [19:42:16]process_action close_receipt [19:42:16]cmd_close_receipt [19:42:16]MH_GetDate [19:42:16]Write to MH i2c: F0 00 00 00 B5 A4 [19:42:16]Write i2c OK [19:42:16]MH_I2C_Read... [19:42:16]Read from MH i2c: F0 [19:42:16]MH_I2C_Read... [19:42:16]Read from MH i2c: F0 09 00 [19:42:16]MH_I2C_Read... [19:42:16]Read from MH i2c: F0 09 00 00 B5 00 A4 31 1C 66 23 5B 8F 65 76 [19:42:16]GetLastDocTimeStamp 1713122782 [19:42:16]current date 1713123748 [19:42:16]FM_GetShiftState [19:42:16]SAM_PROTO_GetShiftState [19:42:16]wFMCommunicate request_size=4 [19:42:16]MH_SAM_APDU [19:42:16]CAPDU: 80 13 01 00 [19:42:16]Write to MH i2c: E2 08 00 01 B5 80 13 01 00 00 00 00 00 33 [19:42:16]Write i2c OK [19:42:16]MH_I2C_Read... [19:42:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:42:16]Read from MH i2c: E2 [19:42:16]MH_I2C_Read... [19:42:16]Read from MH i2c: E2 0E 00 [19:42:16]MH_I2C_Read... [19:42:16]Read from MH i2c: E2 0E 00 01 B5 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 DF [19:42:16]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [19:42:16]wFMCommunicate OK [19:42:16]SAM_PROTO_GetShiftState done [19:42:16]FM_GetShiftState done [19:42:16]opened in 1713053951 [19:42:16]opened+sec_in_day 1713140351 [19:42:16]quantity*price = 150024 [19:42:16]sum+1 = 150025 [19:42:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.24 НСП 1% : 13.28 НДС 12% : 159.32 Наличными: 0.00 Безнал.: 1500.24 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 231 14.04.2024 19:42 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29321 ФПД: 27842729410143 1/tax-web-control/client/api/v1/ticket?date=20240414T194228&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29321&fm=27842729410143&tin=02508201610067®Number=0000138879044617&sum=150024 [19:42:17]StoreToDocumentArchive [19:42:17]shift 116 fd 29321 [19:42:17]save to /storage/0116/doc_00029321 [19:42:17]save last doc name /storage/0116/doc_00029321 to /storage/kkm_last_doc_name [19:42:17]save OK [19:42:17]Clear old archive folders... [19:42:17]ProcessDocumentItem done err = 0, tmpTLVsize=250 [19:42:17]tlvbuf is 011EB020 [19:42:17]SAM_PROTO_ClearQueue [19:42:17]wFMCommunicate request_size=4 [19:42:17]MH_SAM_APDU [19:42:17]CAPDU: 80 09 00 00 [19:42:17]Write to MH i2c: E2 08 00 0E B5 80 09 00 00 00 00 00 00 35 [19:42:17]Write i2c OK [19:42:17]MH_I2C_Read... [19:42:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:42:17]Read from MH i2c: E2 [19:42:17]MH_I2C_Read... [19:42:17]Read from MH i2c: E2 03 00 [19:42:17]MH_I2C_Read... [19:42:17]Read from MH i2c: E2 03 00 0E B5 00 90 00 37 [19:42:17]RAPDU: 90 00 [19:42:17]wFMCommunicate OK [19:42:17]SAM_PROTO_ClearQueue done [19:42:17]KKMCreateOFDPacket [19:42:17]OFDProtocolAddRootSTLVToBuf [19:42:17]FM_MakeSignedData [19:42:17]FM_MakeSignedData [19:42:17]SAM_PROTO_SignData [19:42:17]wFMCommunicate request_size=4 [19:42:17]MH_SAM_APDU [19:42:17]CAPDU: 80 0D 01 02 [19:42:17]Write to MH i2c: E2 08 00 0F B5 80 0D 01 02 00 00 00 00 3D [19:42:17]Write i2c OK [19:42:17]MH_I2C_Read... [19:42:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:42:17]Read from MH i2c: E2 [19:42:17]MH_I2C_Read... [19:42:17]Read from MH i2c: E2 03 00 [19:42:17]MH_I2C_Read... [19:42:17]Read from MH i2c: E2 03 00 0F B5 00 90 00 38 [19:42:17]RAPDU: 90 00 [19:42:17]wFMCommunicate OK [19:42:17]wFMCommunicate request_size=255 [19:42:17]MH_SAM_APDU [19:42: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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 20 B2 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 08 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 A4 31 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 89 72 00 00 35 04 06 00 19 52 [19:42:17]Write to MH i2c: E2 02 01 10 B5 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 20 B2 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 08 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 A4 31 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 89 72 00 00 35 04 06 00 19 52 00 00 8F [19:42:17]Write i2c OK [19:42:17]MH_I2C_Read... [19:42:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:42:18]Read from MH i2c: E2 [19:42:18]MH_I2C_Read... [19:42:18]Read from MH i2c: E2 03 00 [19:42:18]MH_I2C_Read... [19:42:18]Read from MH i2c: E2 03 00 10 B5 00 90 00 39 [19:42:18]RAPDU: 90 00 [19:42:18]wFMCommunicate OK [19:42:18]wFMCommunicate request_size=9 [19:42:18]MH_SAM_APDU [19:42:18]CAPDU: 80 0D 02 02 04 A3 FE FE 5F [19:42:18]Write to MH i2c: E2 0C 00 11 B5 80 0D 02 02 04 00 A3 FE FE 5F 00 00 46 [19:42:18]Write i2c OK [19:42:18]MH_I2C_Read... [19:42:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:42:18]Read from MH i2c: E2 [19:42:18]MH_I2C_Read... [19:42:18]Read from MH i2c: E2 03 00 [19:42:18]MH_I2C_Read... [19:42:18]Read from MH i2c: E2 03 00 11 B5 00 90 00 3A [19:42:18]RAPDU: 90 00 [19:42:18]wFMCommunicate OK [19:42:18]wFMCommunicate request_size=4 [19:42:18]MH_SAM_APDU [19:42:18]CAPDU: 80 0D 03 02 [19:42:18]Write to MH i2c: E2 08 00 12 B5 80 0D 03 02 00 00 00 00 42 [19:42:18]Write i2c OK [19:42:18]MH_I2C_Read... [19:42:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:42:18]Read from MH i2c: E2 [19:42:18]MH_I2C_Read... [19:42:18]Read from MH i2c: E2 0B 00 [19:42:18]MH_I2C_Read... [19:42:18]Read from MH i2c: E2 0B 00 12 B5 00 19 31 7D 62 2E 62 77 71 90 00 E4 [19:42:18]RAPDU: 19 31 7D 62 2E 62 77 71 90 00 [19:42:18]wFMCommunicate OK [19:42:18]SAM_PROTO_SignData done [19:42:18]FM_MakeSignedData done [19:42:18]CreateOFDProtocolMessage [19:42:18]wFMCommunicate request_size=4 [19:42:18]MH_SAM_APDU [19:42:18]CAPDU: 80 11 00 00 [19:42:18]Write to MH i2c: E2 08 00 13 B5 80 11 00 00 00 00 00 00 42 [19:42:18]Write i2c OK [19:42:18]MH_I2C_Read... [19:42:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:42:18]Read from MH i2c: E2 [19:42:18]MH_I2C_Read... [19:42:18]Read from MH i2c: E2 17 00 [19:42:18]MH_I2C_Read... [19:42:18]Read from MH i2c: E2 17 00 13 B5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 91 [19:42:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:42:18]wFMCommunicate OK [19:42:18]CreateOFDProtocolMessage done [19:42:18]OFDSenderStorePacket 29321 [19:42:18]StoreOFDPacket docnum=29321 [19:42:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 7F 24 06 01 16 6C 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 20 B2 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 08 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 A4 31 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 89 72 00 00 35 04 06 00 19 52 A3 FE FE 5F 19 31 7D 62 2E 62 77 71 [19:42:18]CheckFolder [19:42:18]dirname=/storage/ofd_packets [19:42:18]CheckFolder done [19:42:18]ProducePacketName [19:42:18]name=ofd_packets/00029321 [19:42:18]NVStorageSaveData ofd_packets/00029321 [19:42:18]File name is /storage/ofd_packets/00029321 [19:42:18]Write 300 bytes [19:42:18]NVStorageSaveData done [19:42:18]OFDSenderStorePacket done [19:42:18]KKMCreateOFDPacket done [19:42:18]NVStorageSaveData kkm_last_timestamp [19:42:18]File name is /storage/kkm_last_timestamp [19:42:18]Write 4 bytes [19:42:18]NVStorageSaveData done [19:42:18]ExternCall_PrintAddStr [19:42:18]wPrintStart [19:42:18]Write to MH i2c: 01 00 00 14 B5 C9 [19:42:18]Write i2c OK [19:42:18]MH_I2C_Read... [19:42:18]Read from MH i2c: 01 [19:42:18]MH_I2C_Read... [19:42:18]Read from MH i2c: 01 07 00 [19:42:18]MH_I2C_Read... [19:42:18]Read from MH i2c: 01 07 00 14 B5 00 00 00 00 00 FF 0F DE [19:42:18]RasterBufferAndPrint [19:42:18]line Счет N : (1)347711 [19:42:18]line ИНН: 02508201610067 [19:42:18]line Контрольно-Кассовый Чек [19:42:18]line ПРОДАЖА [19:42:18]line ТРК (МРК, ГНК) : 71 [19:42:18]line Товар: 2711129700 [19:42:18]line ГАЗ-К-5 [19:42:18]line 45.600 * 32.90 [19:42:18]line = 1500.24 [19:42:18]line НДС 12% НСП 1% [19:42:18]line > о реализуемом товаре [19:42:18]line ИТОГО: 1500.24 [19:42:18]line НСП 1% : 13.28 [19:42:18]line НДС 12% : 159.32 [19:42:18]line Наличными: 0.00 [19:42:18]line Безнал.: 1500.24 [19:42:18]line Место: АЗС № 108 "Партнер Нефть" [19:42:18]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [19:42:18]line СНО: Общий режим [19:42:18]line Чек 231 14.04.2024 19:42 [19:42:18]line Смена: 116 ФФД: 1.0 [19:42:18]line ЗНМ: 0300000027 [19:42:18]line РНМ: 0000138879044617 [19:42:18]line Версия ККМ: 001 [19:42:18]line Платежная система: О! деньги [19:42:18]line ФМ: 0000000000963154 [19:42:18]line ФД: 29321 [19:42:18]line ФПД: 27842729410143 [19:42:18]line 1/tax-web-control/client/api/v1/ticket?date=20240414T194228&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29321&fm=27842729410143&tin=02508201610067®Number=0000138879044617&sum=150024 [19:42:18]OFD Sender: Processing packet 29321 [packets to send 8, broken 7] [19:42:18]ProducePacketName [19:42:18]name=ofd_packets/00029321 [19:42:18]OFD Sender: To server: pG, [19:42:18]CommunicateWithHost lk.salyk.kg:30040 [19:42:18]ConnectInit lk.salyk.kg [19:42:18]written 0, free lines is 4095 [19:42:18]Connected sock=10 [19:42:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 7F 24 06 01 16 6C 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 20 B2 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 08 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 A4 31 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 89 72 00 00 35 04 06 00 19 52 A3 FE FE 5F 19 31 7D 62 2E 62 77 71 [19:42:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 6F E1 47 00 79 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 39 36 33 31 35 34 10 04 04 00 89 72 00 00 F4 03 04 00 47 DC 1B 66 B6 04 01 00 00 50 A3 AB D9 C9 D3 C7 4E [19:42:18]CommunicateWithHost err = 0 [19:42:18]CheckOFDResponse [19:42:18]1017 (14) - 77093643461234 [19:42:18]1041 (16) - 0000000000963154 [19:42:18]1040 (4) - 29321 [19:42:18]1012 (4) - 14.04.2024 13:38 [19:42:18]1206 (1) - 0 [19:42:18]OFD Sender: Remove packet 29321 [19:42:18]ProducePacketName [19:42:18]name=ofd_packets/00029321 [19:42:18]NVStorageDeleteData [19:42:19]Write to MH i2c: 01 00 00 3D B5 F2 [19:42:19]Write i2c OK [19:42:19]MH_I2C_Read... [19:42:19]Read from MH i2c: 01 [19:42:19]MH_I2C_Read... [19:42:19]Read from MH i2c: 01 07 00 [19:42:19]MH_I2C_Read... [19:42:19]Read from MH i2c: 01 07 00 3D B5 00 00 00 00 00 D2 0C D7 [19:42:19]RasterBufferAndPrint [19:42:19]line [19:42:19]line [19:42:19]line [19:42:19]line [19:42:19]line [19:42:19]written 0, free lines is 3286 [19:42:19]MH_Cut [19:42:19]Write to MH i2c: D1 01 00 44 B5 01 CB [19:42:19]Write i2c OK [19:42:19]MH_I2C_Read... [19:42:19]Read from MH i2c: D1 [19:42:19]MH_I2C_Read... [19:42:19]Read from MH i2c: D1 01 00 [19:42:19]MH_I2C_Read... [19:42:19]Read from MH i2c: D1 01 00 44 B5 00 CA [19:42:19]Write to MH i2c: 01 00 00 45 B5 FA [19:42:19]Write i2c OK [19:42:19]MH_I2C_Read... [19:42:19]OFD Sender: No OFD packet to send [19:42:19]*** Cut start [19:42:19]*** Partial cut [19:42:19]*** CUTSNS_PIN = 1 [19:42:20]*** CUTSNS_PIN = 0 [19:42:20]*** Brake cut motor [19:42:20]Read from MH i2c: 01 [19:42:20]MH_I2C_Read... [19:42:20]*** Stop cut motor [19:42:20]*** Cut end [19:42:20]Read from MH i2c: 01 07 00 [19:42:20]MH_I2C_Read... [19:42:20]Read from MH i2c: 01 07 00 45 B5 00 00 00 00 00 FF 0F 0F [19:42:20]process_action close_receipt done [19:42:20]requested_data is exist [19:42:20]produce_requested_data [19:42:20]requested_item fm.sn is exist - process it [19:42:20]wFMCommunicate request_size=4 [19:42:20]MH_SAM_APDU [19:42:20]CAPDU: 80 11 00 00 [19:42:20]Write to MH i2c: E2 08 00 46 B5 80 11 00 00 00 00 00 00 75 [19:42:20]Write i2c OK [19:42:20]MH_I2C_Read... [19:42:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:42:20]Read from MH i2c: E2 [19:42:20]MH_I2C_Read... [19:42:20]Read from MH i2c: E2 17 00 [19:42:20]MH_I2C_Read... [19:42:20]Read from MH i2c: E2 17 00 46 B5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C4 [19:42:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:42:20]wFMCommunicate OK [19:42:20]requested_item fd.num is exist - process it [19:42:20]SAM_PROTO_GetFieldsCounters [19:42:20]wFMCommunicate request_size=4 [19:42:20]MH_SAM_APDU [19:42:20]CAPDU: 80 13 00 00 [19:42:20]Write to MH i2c: E2 08 00 47 B5 80 13 00 00 00 00 00 00 78 [19:42:20]Write i2c OK [19:42:20]MH_I2C_Read... [19:42:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:42:20]Read from MH i2c: E2 [19:42:20]MH_I2C_Read... [19:42:20]Read from MH i2c: E2 62 00 [19:42:20]MH_I2C_Read... [19:42:20]Read from MH i2c: E2 62 00 47 B5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 89 72 00 00 0E 04 04 00 74 00 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 DA [19:42:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 89 72 00 00 0E 04 04 00 74 00 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 [19:42:20]wFMCommunicate OK [19:42:20]SAM_PROTO_GetFieldsCounters done [19:42:20]requested_item shift.num is exist - process it [19:42:20]requested_item shift.opened is exist - process it [19:42:20]req_shift_opened [19:42:20]FM_GetShiftState [19:42:20]SAM_PROTO_GetShiftState [19:42:20]wFMCommunicate request_size=4 [19:42:20]MH_SAM_APDU [19:42:20]CAPDU: 80 13 01 00 [19:42:20]Write to MH i2c: E2 08 00 48 B5 80 13 01 00 00 00 00 00 7A [19:42:20]Write i2c OK [19:42:20]MH_I2C_Read... [19:42:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:42:20]Read from MH i2c: E2 [19:42:20]MH_I2C_Read... [19:42:20]Read from MH i2c: E2 0E 00 [19:42:20]MH_I2C_Read... [19:42:20]Read from MH i2c: E2 0E 00 48 B5 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 26 [19:42:20]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [19:42:20]wFMCommunicate OK [19:42:20]SAM_PROTO_GetShiftState done [19:42:20]FM_GetShiftState done [19:42:20]req_shift_opened done [19:42:20]requested_item shift.open_date is exist - process it [19:42:20]req_shift_open_date [19:42:20]req_shift_open_date done [19:42:20]produce_requested_data done [19:42:20]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29321,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [19:42:20]process_action_free close_receipt [19:42:20]json_value_free [19:42:20]json_value_free done [19:42:20]process_json_proto returns [19:42:20]Send response to host [19:42:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29321,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [19:42:20]free response buf [19:42:20]execute_script done [19:42:20]execute_script returns [19:42:20]free content buf [19:42:20]Sock 9.Close socket [19:42:20]Sock 9.Thread stoped [19:42:24]OFD Sender: No OFD packet to send [19:42:29]OFD Sender: No OFD packet to send [19:42:34]OFD Sender: No OFD packet to send [19:42:39]OFD Sender: No OFD packet to send [19:42:44]OFD Sender: No OFD packet to send [19:42:49]OFD Sender: No OFD packet to send [19:42:54]OFD Sender: No OFD packet to send [19:42:59]OFD Sender: No OFD packet to send [19:43:04]OFD Sender: No OFD packet to send [19:43:09]OFD Sender: No OFD packet to send [19:43:14]OFD Sender: No OFD packet to send [19:43:19]OFD Sender: No OFD packet to send [19:43:24]OFD Sender: No OFD packet to send [19:43:29]OFD Sender: No OFD packet to send [19:43:34]OFD Sender: No OFD packet to send [19:43:39]OFD Sender: No OFD packet to send [19:43:44]OFD Sender: No OFD packet to send [19:43:49]OFD Sender: No OFD packet to send [19:43:54]OFD Sender: No OFD packet to send [19:43:59]OFD Sender: No OFD packet to send [19:44:04]OFD Sender: No OFD packet to send [19:44:05]accept exits with 7 [19:44:05]New connection [19:44:05]New thread 3066785124 created [19:44:05]Thread 3066928484 joined [19:44:05]Waiting for new connection... [19:44:05] Sock 7.Parse request [19:44:05]Sock 7.Check first char [19:44:05]Sock 7.First char is OK [19:44:05]request: POST /json_proto HTTP/1.0 [19:44:05]Method: POST [19:44:05]URL: /json_proto [19:44:05]Method is POST - this is cgi request [19:44:05]url: /json_proto [19:44:05]query_string will be loaded in cgi processing [19:44:05]execute_cgi json_proto POST (null) [19:44:05]execute_cgi path=json_proto method=POST [19:44:05]POST find Content-Length [19:44:05]Host: 172.17.33.3:8080 [19:44:05]Content-Length: 670 [19:44:05]Content-Type: application/json [19:44:05] [19:44:05]POST finish read [19:44:05]Found Content-Length = 670 [19:44:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347712", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.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:44:05]execute_script... [19:44:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347712", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.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:44:05]POST & json_proto [19:44:05]process_json_proto [19:44:05]json parsed OK: [19:44:05]protocol is kg_v1.0 [19:44:05]action value=close_receipt [19:44:05]process_action close_receipt [19:44:05]cmd_close_receipt [19:44:05]MH_GetDate [19:44:05]Write to MH i2c: F0 00 00 49 B5 ED [19:44:05]Write i2c OK [19:44:05]MH_I2C_Read... [19:44:05]Read from MH i2c: F0 [19:44:05]MH_I2C_Read... [19:44:05]Read from MH i2c: F0 09 00 [19:44:05]MH_I2C_Read... [19:44:05]Read from MH i2c: F0 09 00 49 B5 00 11 32 1C 66 23 5B 8F 65 2D [19:44:05]GetLastDocTimeStamp 1713123748 [19:44:05]current date 1713123857 [19:44:05]FM_GetShiftState [19:44:05]SAM_PROTO_GetShiftState [19:44:05]wFMCommunicate request_size=4 [19:44:05]MH_SAM_APDU [19:44:05]CAPDU: 80 13 01 00 [19:44:05]Write to MH i2c: E2 08 00 4A B5 80 13 01 00 00 00 00 00 7C [19:44:05]Write i2c OK [19:44:05]MH_I2C_Read... [19:44:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:44:05]Read from MH i2c: E2 [19:44:05]MH_I2C_Read... [19:44:05]Read from MH i2c: E2 0E 00 [19:44:05]MH_I2C_Read... [19:44:05]Read from MH i2c: E2 0E 00 4A B5 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 28 [19:44:05]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [19:44:05]wFMCommunicate OK [19:44:05]SAM_PROTO_GetShiftState done [19:44:05]FM_GetShiftState done [19:44:05]opened in 1713053951 [19:44:05]opened+sec_in_day 1713140351 [19:44:05]quantity*price = 50019 [19:44:05]sum+1 = 50021 [19:44: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 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 232 14.04.2024 19:44 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29322 ФПД: 179522457084411 1/tax-web-control/client/api/v1/ticket?date=20240414T194417&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29322&fm=179522457084411&tin=02508201610067®Number=0000138879044617&sum=50000 [19:44:06]StoreToDocumentArchive [19:44:06]shift 116 fd 29322 [19:44:06]save to /storage/0116/doc_00029322 [19:44:06]save last doc name /storage/0116/doc_00029322 to /storage/kkm_last_doc_name [19:44:06]save OK [19:44:06]Clear old archive folders... [19:44:06]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:44:06]tlvbuf is 011EAEA0 [19:44:06]SAM_PROTO_ClearQueue [19:44:06]wFMCommunicate request_size=4 [19:44:06]MH_SAM_APDU [19:44:06]CAPDU: 80 09 00 00 [19:44:06]Write to MH i2c: E2 08 00 57 B5 80 09 00 00 00 00 00 00 7E [19:44:06]Write i2c OK [19:44:06]MH_I2C_Read... [19:44:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:44:06]Read from MH i2c: E2 [19:44:06]MH_I2C_Read... [19:44:06]Read from MH i2c: E2 03 00 [19:44:06]MH_I2C_Read... [19:44:06]Read from MH i2c: E2 03 00 57 B5 00 90 00 80 [19:44:06]RAPDU: 90 00 [19:44:06]wFMCommunicate OK [19:44:06]SAM_PROTO_ClearQueue done [19:44:06]KKMCreateOFDPacket [19:44:06]OFDProtocolAddRootSTLVToBuf [19:44:06]FM_MakeSignedData [19:44:06]FM_MakeSignedData [19:44:06]SAM_PROTO_SignData [19:44:06]wFMCommunicate request_size=4 [19:44:06]MH_SAM_APDU [19:44:06]CAPDU: 80 0D 01 02 [19:44:06]Write to MH i2c: E2 08 00 58 B5 80 0D 01 02 00 00 00 00 86 [19:44:06]Write i2c OK [19:44:06]MH_I2C_Read... [19:44:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:44:06]Read from MH i2c: E2 [19:44:06]MH_I2C_Read... [19:44:06]Read from MH i2c: E2 03 00 [19:44:06]MH_I2C_Read... [19:44:06]Read from MH i2c: E2 03 00 58 B5 00 90 00 81 [19:44:06]RAPDU: 90 00 [19:44:06]wFMCommunicate OK [19:44:06]wFMCommunicate request_size=255 [19:44:06]MH_SAM_APDU [19:44: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 2D 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 E8 00 00 00 F4 03 04 00 11 32 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8A 72 00 00 35 04 06 00 [19:44:06]Write to MH i2c: E2 02 01 59 B5 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 E8 00 00 00 F4 03 04 00 11 32 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8A 72 00 00 35 04 06 00 00 00 F5 [19:44:06]Write i2c OK [19:44:06]MH_I2C_Read... [19:44:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:44:07]Read from MH i2c: E2 [19:44:07]MH_I2C_Read... [19:44:07]Read from MH i2c: E2 03 00 [19:44:07]MH_I2C_Read... [19:44:07]Read from MH i2c: E2 03 00 59 B5 00 90 00 82 [19:44:07]RAPDU: 90 00 [19:44:07]wFMCommunicate OK [19:44:07]wFMCommunicate request_size=11 [19:44:07]MH_SAM_APDU [19:44:07]CAPDU: 80 0D 02 02 06 A3 46 54 48 A1 FB [19:44:07]Write to MH i2c: E2 0E 00 5A B5 80 0D 02 02 06 00 A3 46 54 48 A1 FB 00 00 B6 [19:44:07]Write i2c OK [19:44:07]MH_I2C_Read... [19:44:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:44:07]Read from MH i2c: E2 [19:44:07]MH_I2C_Read... [19:44:07]Read from MH i2c: E2 03 00 [19:44:07]MH_I2C_Read... [19:44:07]Read from MH i2c: E2 03 00 5A B5 00 90 00 83 [19:44:07]RAPDU: 90 00 [19:44:07]wFMCommunicate OK [19:44:07]wFMCommunicate request_size=4 [19:44:07]MH_SAM_APDU [19:44:07]CAPDU: 80 0D 03 02 [19:44:07]Write to MH i2c: E2 08 00 5B B5 80 0D 03 02 00 00 00 00 8B [19:44:07]Write i2c OK [19:44:07]MH_I2C_Read... [19:44:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:44:07]Read from MH i2c: E2 [19:44:07]MH_I2C_Read... [19:44:07]Read from MH i2c: E2 0B 00 [19:44:07]MH_I2C_Read... [19:44:07]Read from MH i2c: E2 0B 00 5B B5 00 D4 FB 36 38 C3 94 AF DC 90 00 AB [19:44:07]RAPDU: D4 FB 36 38 C3 94 AF DC 90 00 [19:44:07]wFMCommunicate OK [19:44:07]SAM_PROTO_SignData done [19:44:07]FM_MakeSignedData done [19:44:07]CreateOFDProtocolMessage [19:44:07]wFMCommunicate request_size=4 [19:44:07]MH_SAM_APDU [19:44:07]CAPDU: 80 11 00 00 [19:44:07]Write to MH i2c: E2 08 00 5C B5 80 11 00 00 00 00 00 00 8B [19:44:07]Write i2c OK [19:44:07]MH_I2C_Read... [19:44:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:44:07]Read from MH i2c: E2 [19:44:07]MH_I2C_Read... [19:44:07]Read from MH i2c: E2 17 00 [19:44:07]MH_I2C_Read... [19:44:07]Read from MH i2c: E2 17 00 5C B5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 DA [19:44:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:44:07]wFMCommunicate OK [19:44:07]CreateOFDProtocolMessage done [19:44:07]OFDSenderStorePacket 29322 [19:44:07]StoreOFDPacket docnum=29322 [19:44:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 B9 59 08 01 29 2D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 E8 00 00 00 F4 03 04 00 11 32 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8A 72 00 00 35 04 06 00 A3 46 54 48 A1 FB D4 FB 36 38 C3 94 AF DC [19:44:07]CheckFolder [19:44:07]dirname=/storage/ofd_packets [19:44:07]CheckFolder done [19:44:07]ProducePacketName [19:44:07]name=ofd_packets/00029322 [19:44:07]NVStorageSaveData ofd_packets/00029322 [19:44:07]File name is /storage/ofd_packets/00029322 [19:44:07]Write 302 bytes [19:44:07]NVStorageSaveData done [19:44:07]OFDSenderStorePacket done [19:44:07]KKMCreateOFDPacket done [19:44:07]NVStorageSaveData kkm_last_timestamp [19:44:07]File name is /storage/kkm_last_timestamp [19:44:07]Write 4 bytes [19:44:07]NVStorageSaveData done [19:44:07]ExternCall_PrintAddStr [19:44:07]wPrintStart [19:44:07]Write to MH i2c: 01 00 00 5D B5 12 [19:44:07]Write i2c OK [19:44:07]MH_I2C_Read... [19:44:07]Read from MH i2c: 01 [19:44:07]MH_I2C_Read... [19:44:07]Read from MH i2c: 01 07 00 [19:44:07]MH_I2C_Read... [19:44:07]Read from MH i2c: 01 07 00 5D B5 00 00 00 00 00 FF 0F 27 [19:44:07]RasterBufferAndPrint [19:44:07]line Счет N : (1)347712 [19:44:07]line ИНН: 02508201610067 [19:44:07]line Контрольно-Кассовый Чек [19:44:07]line ПРОДАЖА [19:44:07]line ТРК (МРК, ГНК) : 12 [19:44:07]line Товар: 2710124130 [19:44:07]line SUPER-92-К-5 [19:44:07]line 7.660 * 65.30 [19:44:07]line = 500.20 [19:44:07]line НДС 12% НСП 1% [19:44:07]line > о реализуемом товаре [19:44:07]line ОКРУГЛЕНИЕ: -0.20 [19:44:07]line ИТОГО: 500.00 [19:44:07]line Внесено: 500.00 [19:44:07]line СДАЧА: 0.00 [19:44:07]line НСП 1% : 4.43 [19:44:07]line НДС 12% : 53.12 [19:44:07]line Наличными: 500.00 [19:44:07]line Безнал.: 0.00 [19:44:07]line Место: АЗС № 108 "Партнер Нефть" [19:44:07]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [19:44:07]line СНО: Общий режим [19:44:07]line Чек 232 14.04.2024 19:44 [19:44:07]line Смена: 116 ФФД: 1.0 [19:44:07]line ЗНМ: 0300000027 [19:44:07]line РНМ: 0000138879044617 [19:44:07]line Версия ККМ: 001 [19:44:07]line ФМ: 0000000000963154 [19:44:07]line ФД: 29322 [19:44:07]line ФПД: 179522457084411 [19:44:07]line 1/tax-web-control/client/api/v1/ticket?date=20240414T194417&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29322&fm=179522457084411&tin=02508201610067®Number=0000138879044617&sum=50000 [19:44:07]OFD Sender: Processing packet 29322 [packets to send 8, broken 7] [19:44:07]ProducePacketName [19:44:07]name=ofd_packets/00029322 [19:44:07]OFD Sender: To server: pG, [19:44:07]CommunicateWithHost lk.salyk.kg:30040 [19:44:07]ConnectInit lk.salyk.kg [19:44:07]written 0, free lines is 4095 [19:44:07]Connected sock=10 [19:44:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 B9 59 08 01 29 2D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 E8 00 00 00 F4 03 04 00 11 32 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8A 72 00 00 35 04 06 00 A3 46 54 48 A1 FB D4 FB 36 38 C3 94 AF DC [19:44:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 00 74 47 00 AF B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8A 72 00 00 F4 03 04 00 B4 DC 1B 66 B6 04 01 00 00 E3 5F BB DA CD EE FA 6E [19:44:08]CommunicateWithHost err = 0 [19:44:08]CheckOFDResponse [19:44:08]1017 (14) - 77093643461234 [19:44:08]1041 (16) - 0000000000963154 [19:44:08]1040 (4) - 29322 [19:44:08]1012 (4) - 14.04.2024 13:40 [19:44:08]1206 (1) - 0 [19:44:08]OFD Sender: Remove packet 29322 [19:44:08]ProducePacketName [19:44:08]name=ofd_packets/00029322 [19:44:08]NVStorageDeleteData [19:44:08]Write to MH i2c: 01 00 00 87 B5 3C [19:44:08]Write i2c OK [19:44:08]MH_I2C_Read... [19:44:08]Read from MH i2c: 01 [19:44:08]MH_I2C_Read... [19:44:08]Read from MH i2c: 01 07 00 [19:44:08]MH_I2C_Read... [19:44:08]Read from MH i2c: 01 07 00 87 B5 00 00 00 00 00 C4 0C 13 [19:44:08]RasterBufferAndPrint [19:44:08]line [19:44:08]line [19:44:08]line [19:44:08]line [19:44:08]line [19:44:08]written 0, free lines is 3274 [19:44:08]MH_Cut [19:44:08]Write to MH i2c: D1 01 00 8E B5 01 15 [19:44:08]Write i2c OK [19:44:08]MH_I2C_Read... [19:44:08]Read from MH i2c: D1 [19:44:08]MH_I2C_Read... [19:44:08]Read from MH i2c: D1 01 00 [19:44:08]MH_I2C_Read... [19:44:08]Read from MH i2c: D1 01 00 8E B5 00 14 [19:44:08]Write to MH i2c: 01 00 00 8F B5 44 [19:44:08]Write i2c OK [19:44:08]MH_I2C_Read... [19:44:08]OFD Sender: No OFD packet to send [19:44:08]*** Cut start [19:44:08]*** Partial cut [19:44:08]*** CUTSNS_PIN = 1 [19:44:09]*** CUTSNS_PIN = 0 [19:44:09]*** Brake cut motor [19:44:09]Read from MH i2c: 01 [19:44:09]MH_I2C_Read... [19:44:09]*** Stop cut motor [19:44:09]*** Cut end [19:44:09]Read from MH i2c: 01 07 00 [19:44:09]MH_I2C_Read... [19:44:09]Read from MH i2c: 01 07 00 8F B5 00 00 00 00 00 FF 0F 59 [19:44:09]process_action close_receipt done [19:44:09]requested_data is exist [19:44:09]produce_requested_data [19:44:09]requested_item fm.sn is exist - process it [19:44:09]wFMCommunicate request_size=4 [19:44:09]MH_SAM_APDU [19:44:09]CAPDU: 80 11 00 00 [19:44:09]Write to MH i2c: E2 08 00 90 B5 80 11 00 00 00 00 00 00 BF [19:44:09]Write i2c OK [19:44:09]MH_I2C_Read... [19:44:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:44:09]Read from MH i2c: E2 [19:44:09]MH_I2C_Read... [19:44:09]Read from MH i2c: E2 17 00 [19:44:09]MH_I2C_Read... [19:44:09]Read from MH i2c: E2 17 00 90 B5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 0E [19:44:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:44:09]wFMCommunicate OK [19:44:09]requested_item fd.num is exist - process it [19:44:09]SAM_PROTO_GetFieldsCounters [19:44:09]wFMCommunicate request_size=4 [19:44:09]MH_SAM_APDU [19:44:09]CAPDU: 80 13 00 00 [19:44:09]Write to MH i2c: E2 08 00 91 B5 80 13 00 00 00 00 00 00 C2 [19:44:09]Write i2c OK [19:44:09]MH_I2C_Read... [19:44:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:44:09]Read from MH i2c: E2 [19:44:09]MH_I2C_Read... [19:44:09]Read from MH i2c: E2 62 00 [19:44:09]MH_I2C_Read... [19:44:09]Read from MH i2c: E2 62 00 91 B5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 8A 72 00 00 0E 04 04 00 74 00 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 28 [19:44:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 8A 72 00 00 0E 04 04 00 74 00 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 [19:44:09]wFMCommunicate OK [19:44:09]SAM_PROTO_GetFieldsCounters done [19:44:09]requested_item shift.num is exist - process it [19:44:09]requested_item shift.opened is exist - process it [19:44:09]req_shift_opened [19:44:09]FM_GetShiftState [19:44:09]SAM_PROTO_GetShiftState [19:44:09]wFMCommunicate request_size=4 [19:44:09]MH_SAM_APDU [19:44:09]CAPDU: 80 13 01 00 [19:44:09]Write to MH i2c: E2 08 00 92 B5 80 13 01 00 00 00 00 00 C4 [19:44:09]Write i2c OK [19:44:09]MH_I2C_Read... [19:44:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:44:09]Read from MH i2c: E2 [19:44:09]MH_I2C_Read... [19:44:09]Read from MH i2c: E2 0E 00 [19:44:09]MH_I2C_Read... [19:44:09]Read from MH i2c: E2 0E 00 92 B5 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 70 [19:44:09]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [19:44:09]wFMCommunicate OK [19:44:09]SAM_PROTO_GetShiftState done [19:44:09]FM_GetShiftState done [19:44:09]req_shift_opened done [19:44:09]requested_item shift.open_date is exist - process it [19:44:09]req_shift_open_date [19:44:09]req_shift_open_date done [19:44:09]produce_requested_data done [19:44:09]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29322,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [19:44:09]process_action_free close_receipt [19:44:09]json_value_free [19:44:09]json_value_free done [19:44:09]process_json_proto returns [19:44:09]Send response to host [19:44:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29322,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [19:44:09]free response buf [19:44:09]execute_script done [19:44:09]execute_script returns [19:44:09]free content buf [19:44:09]Sock 7.Close socket [19:44:09]Sock 7.Thread stoped [19:44:13]OFD Sender: No OFD packet to send [19:44:18]OFD Sender: No OFD packet to send [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:03]OFD Sender: No OFD packet to send [19:45:08]OFD Sender: No OFD packet to send [19:45:13]OFD Sender: No OFD packet to send [19:45:18]OFD Sender: No OFD packet to send [19:45:23]OFD Sender: No OFD packet to send [19:45:28]OFD Sender: No OFD packet to send [19:45:33]OFD Sender: No OFD packet to send [19:45:38]OFD Sender: No OFD packet to send [19:45:43]OFD Sender: No OFD packet to send [19:45:48]OFD Sender: No OFD packet to send [19:45:53]OFD Sender: No OFD packet to send [19:45:58]OFD Sender: No OFD packet to send [19:46:03]OFD Sender: No OFD packet to send [19:46:08]OFD Sender: No OFD packet to send [19:46:13]OFD Sender: No OFD packet to send [19:46:18]OFD Sender: No OFD packet to send [19:46:23]OFD Sender: No OFD packet to send [19:46:28]OFD Sender: No OFD packet to send [19:46:33]OFD Sender: No OFD packet to send [19:46:38]OFD Sender: No OFD packet to send [19:46:43]OFD Sender: No OFD packet to send [19:46:48]OFD Sender: No OFD packet to send [19:46:53]OFD Sender: No OFD packet to send [19:46:58]OFD Sender: No OFD packet to send [19:47:03]OFD Sender: No OFD packet to send [19:47:08]OFD Sender: No OFD packet to send [19:47:13]OFD Sender: No OFD packet to send [19:47:18]OFD Sender: No OFD packet to send [19:47:23]OFD Sender: No OFD packet to send [19:47:24]accept exits with 9 [19:47:24]New connection [19:47:24]New thread 3066928484 created [19:47:24]Thread 3066785124 joined [19:47:24]Waiting for new connection... [19:47:24] Sock 9.Parse request [19:47:24]Sock 9.Check first char [19:47:24]Sock 9.First char is OK [19:47:24]request: POST /json_proto HTTP/1.0 [19:47:24]Method: POST [19:47:24]URL: /json_proto [19:47:24]Method is POST - this is cgi request [19:47:24]url: /json_proto [19:47:24]query_string will be loaded in cgi processing [19:47:24]execute_cgi json_proto POST (null) [19:47:24]execute_cgi path=json_proto method=POST [19:47:24]POST find Content-Length [19:47:24]Host: 172.17.33.3:8080 [19:47:24]Content-Length: 678 [19:47:24]Content-Type: application/json [19:47:24] [19:47:24]POST finish read [19:47:24]Found Content-Length = 678 [19:47:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347714", "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" : 14.470, "sum" : 930.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 930.00, "total" : 930.00, "payments": [ { "type": 0, "sum" : 930.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:47:24]execute_script... [19:47: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)347714", "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" : 14.470, "sum" : 930.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 930.00, "total" : 930.00, "payments": [ { "type": 0, "sum" : 930.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:47:24]POST & json_proto [19:47:24]process_json_proto [19:47:24]json parsed OK: [19:47:24]protocol is kg_v1.0 [19:47:24]action value=close_receipt [19:47:24]process_action close_receipt [19:47:24]cmd_close_receipt [19:47:24]MH_GetDate [19:47:24]Write to MH i2c: F0 00 00 93 B5 37 [19:47:24]Write i2c OK [19:47:24]MH_I2C_Read... [19:47:24]Read from MH i2c: F0 [19:47:24]MH_I2C_Read... [19:47:24]Read from MH i2c: F0 09 00 [19:47:24]MH_I2C_Read... [19:47:24]Read from MH i2c: F0 09 00 93 B5 00 D8 32 1C 66 23 5B 8F 65 3E [19:47:24]GetLastDocTimeStamp 1713123857 [19:47:24]current date 1713124056 [19:47:24]FM_GetShiftState [19:47:24]SAM_PROTO_GetShiftState [19:47:24]wFMCommunicate request_size=4 [19:47:24]MH_SAM_APDU [19:47:24]CAPDU: 80 13 01 00 [19:47:24]Write to MH i2c: E2 08 00 94 B5 80 13 01 00 00 00 00 00 C6 [19:47:24]Write i2c OK [19:47:24]MH_I2C_Read... [19:47:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:47:25]Read from MH i2c: E2 [19:47:25]MH_I2C_Read... [19:47:25]Read from MH i2c: E2 0E 00 [19:47:25]MH_I2C_Read... [19:47:25]Read from MH i2c: E2 0E 00 94 B5 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 72 [19:47:25]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [19:47:25]wFMCommunicate OK [19:47:25]SAM_PROTO_GetShiftState done [19:47:25]FM_GetShiftState done [19:47:25]opened in 1713053951 [19:47:25]opened+sec_in_day 1713140351 [19:47:25]quantity*price = 93042 [19:47:25]sum+1 = 93043 [19:47:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 930.00 Внесено: 930.00 СДАЧА: 0.00 НСП 1% : 8.23 НДС 12% : 98.81 Наличными: 930.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 233 14.04.2024 19:47 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29323 ФПД: 128294024338080 1/tax-web-control/client/api/v1/ticket?date=20240414T194736&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29323&fm=128294024338080&tin=02508201610067®Number=0000138879044617&sum=93000 [19:47:26]StoreToDocumentArchive [19:47:26]shift 116 fd 29323 [19:47:26]save to /storage/0116/doc_00029323 [19:47:26]save last doc name /storage/0116/doc_00029323 to /storage/kkm_last_doc_name [19:47:26]save OK [19:47:26]Clear old archive folders... [19:47:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:47:26]tlvbuf is 012F3780 [19:47:26]SAM_PROTO_ClearQueue [19:47:26]wFMCommunicate request_size=4 [19:47:26]MH_SAM_APDU [19:47:26]CAPDU: 80 09 00 00 [19:47:26]Write to MH i2c: E2 08 00 A1 B5 80 09 00 00 00 00 00 00 C8 [19:47:26]Write i2c OK [19:47:26]MH_I2C_Read... [19:47:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:47:26]Read from MH i2c: E2 [19:47:26]MH_I2C_Read... [19:47:26]Read from MH i2c: E2 03 00 [19:47:26]MH_I2C_Read... [19:47:26]Read from MH i2c: E2 03 00 A1 B5 00 90 00 CA [19:47:26]RAPDU: 90 00 [19:47:26]wFMCommunicate OK [19:47:26]SAM_PROTO_ClearQueue done [19:47:26]KKMCreateOFDPacket [19:47:26]OFDProtocolAddRootSTLVToBuf [19:47:26]FM_MakeSignedData [19:47:26]FM_MakeSignedData [19:47:26]SAM_PROTO_SignData [19:47:26]wFMCommunicate request_size=4 [19:47:26]MH_SAM_APDU [19:47:26]CAPDU: 80 0D 01 02 [19:47:26]Write to MH i2c: E2 08 00 A2 B5 80 0D 01 02 00 00 00 00 D0 [19:47:26]Write i2c OK [19:47:26]MH_I2C_Read... [19:47:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:47:26]Read from MH i2c: E2 [19:47:26]MH_I2C_Read... [19:47:26]Read from MH i2c: E2 03 00 [19:47:26]MH_I2C_Read... [19:47:26]Read from MH i2c: E2 03 00 A2 B5 00 90 00 CB [19:47:26]RAPDU: 90 00 [19:47:26]wFMCommunicate OK [19:47:26]wFMCommunicate request_size=255 [19:47:26]MH_SAM_APDU [19:47: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 86 38 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 72 6B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 6B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 26 00 00 00 00 07 04 06 00 48 6B 01 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 D8 32 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8B 72 00 00 35 04 06 00 74 [19:47:26]Write to MH i2c: E2 02 01 A3 B5 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 38 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 72 6B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 6B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 26 00 00 00 00 07 04 06 00 48 6B 01 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 D8 32 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8B 72 00 00 35 04 06 00 74 00 00 85 [19:47:26]Write i2c OK [19:47:26]MH_I2C_Read... [19:47:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:47:26]Read from MH i2c: E2 [19:47:26]MH_I2C_Read... [19:47:26]Read from MH i2c: E2 03 00 [19:47:26]MH_I2C_Read... [19:47:26]Read from MH i2c: E2 03 00 A3 B5 00 90 00 CC [19:47:26]RAPDU: 90 00 [19:47:26]wFMCommunicate OK [19:47:26]wFMCommunicate request_size=10 [19:47:26]MH_SAM_APDU [19:47:26]CAPDU: 80 0D 02 02 05 AE C7 BF 5A A0 [19:47:26]Write to MH i2c: E2 0D 00 A4 B5 80 0D 02 02 05 00 AE C7 BF 5A A0 00 00 0B [19:47:26]Write i2c OK [19:47:26]MH_I2C_Read... [19:47:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:47:26]Read from MH i2c: E2 [19:47:26]MH_I2C_Read... [19:47:26]Read from MH i2c: E2 03 00 [19:47:26]MH_I2C_Read... [19:47:26]Read from MH i2c: E2 03 00 A4 B5 00 90 00 CD [19:47:26]RAPDU: 90 00 [19:47:26]wFMCommunicate OK [19:47:26]wFMCommunicate request_size=4 [19:47:26]MH_SAM_APDU [19:47:26]CAPDU: 80 0D 03 02 [19:47:26]Write to MH i2c: E2 08 00 A5 B5 80 0D 03 02 00 00 00 00 D5 [19:47:26]Write i2c OK [19:47:26]MH_I2C_Read... [19:47:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:47:26]Read from MH i2c: E2 [19:47:26]MH_I2C_Read... [19:47:26]Read from MH i2c: E2 0B 00 [19:47:26]MH_I2C_Read... [19:47:26]Read from MH i2c: E2 0B 00 A5 B5 00 46 9A 33 D1 86 06 D6 CF 90 00 EB [19:47:26]RAPDU: 46 9A 33 D1 86 06 D6 CF 90 00 [19:47:26]wFMCommunicate OK [19:47:26]SAM_PROTO_SignData done [19:47:26]FM_MakeSignedData done [19:47:26]CreateOFDProtocolMessage [19:47:26]wFMCommunicate request_size=4 [19:47:26]MH_SAM_APDU [19:47:26]CAPDU: 80 11 00 00 [19:47:26]Write to MH i2c: E2 08 00 A6 B5 80 11 00 00 00 00 00 00 D5 [19:47:26]Write i2c OK [19:47:26]MH_I2C_Read... [19:47:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:47:26]Read from MH i2c: E2 [19:47:26]MH_I2C_Read... [19:47:26]Read from MH i2c: E2 17 00 [19:47:26]MH_I2C_Read... [19:47:26]Read from MH i2c: E2 17 00 A6 B5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 24 [19:47:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:47:26]wFMCommunicate OK [19:47:26]CreateOFDProtocolMessage done [19:47:26]OFDSenderStorePacket 29323 [19:47:26]StoreOFDPacket docnum=29323 [19:47:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 77 D2 07 01 9C B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 38 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 72 6B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 6B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 26 00 00 00 00 07 04 06 00 48 6B 01 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 D8 32 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8B 72 00 00 35 04 06 00 74 AE C7 BF 5A A0 46 9A 33 D1 86 06 D6 CF [19:47:26]CheckFolder [19:47:26]dirname=/storage/ofd_packets [19:47:26]CheckFolder done [19:47:26]ProducePacketName [19:47:26]name=ofd_packets/00029323 [19:47:26]NVStorageSaveData ofd_packets/00029323 [19:47:26]File name is /storage/ofd_packets/00029323 [19:47:26]Write 301 bytes [19:47:26]NVStorageSaveData done [19:47:26]OFDSenderStorePacket done [19:47:26]KKMCreateOFDPacket done [19:47:26]NVStorageSaveData kkm_last_timestamp [19:47:26]File name is /storage/kkm_last_timestamp [19:47:26]Write 4 bytes [19:47:26]NVStorageSaveData done [19:47:26]ExternCall_PrintAddStr [19:47:26]wPrintStart [19:47:26]Write to MH i2c: 01 00 00 A7 B5 5C [19:47:26]Write i2c OK [19:47:26]MH_I2C_Read... [19:47:26]Read from MH i2c: 01 [19:47:26]MH_I2C_Read... [19:47:26]Read from MH i2c: 01 07 00 [19:47:26]MH_I2C_Read... [19:47:26]Read from MH i2c: 01 07 00 A7 B5 00 00 00 00 00 FF 0F 71 [19:47:26]RasterBufferAndPrint [19:47:26]line Счет N : (1)347714 [19:47:26]line ИНН: 02508201610067 [19:47:26]line Контрольно-Кассовый Чек [19:47:26]line ПРОДАЖА [19:47:26]line ТРК (МРК, ГНК) : 32 [19:47:26]line Товар: 2710124130 [19:47:26]line Аи-92-К-5 [19:47:26]line 14.470 * 64.30 [19:47:26]line = 930.42 [19:47:26]line НДС 12% НСП 1% [19:47:26]line > о реализуемом товаре [19:47:26]line ОКРУГЛЕНИЕ: -0.42 [19:47:26]line ИТОГО: 930.00 [19:47:26]line Внесено: 930.00 [19:47:26]line СДАЧА: 0.00 [19:47:26]line НСП 1% : 8.23 [19:47:26]line НДС 12% : 98.81 [19:47:26]line Наличными: 930.00 [19:47:26]line Безнал.: 0.00 [19:47:26]line Место: АЗС № 108 "Партнер Нефть" [19:47:26]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [19:47:26]line СНО: Общий режим [19:47:26]line Чек 233 14.04.2024 19:47 [19:47:26]line Смена: 116 ФФД: 1.0 [19:47:26]line ЗНМ: 0300000027 [19:47:26]line РНМ: 0000138879044617 [19:47:26]line Версия ККМ: 001 [19:47:26]line ФМ: 0000000000963154 [19:47:26]line ФД: 29323 [19:47:26]line ФПД: 128294024338080 [19:47:26]line 1/tax-web-control/client/api/v1/ticket?date=20240414T194736&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29323&fm=128294024338080&tin=02508201610067®Number=0000138879044617&sum=93000 [19:47:27]OFD Sender: Processing packet 29323 [packets to send 8, broken 7] [19:47:27]ProducePacketName [19:47:27]name=ofd_packets/00029323 [19:47:27]OFD Sender: To server: pG, [19:47:27]CommunicateWithHost lk.salyk.kg:30040 [19:47:27]ConnectInit lk.salyk.kg [19:47:27]written 0, free lines is 4095 [19:47:27]Connected sock=10 [19:47:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 77 D2 07 01 9C B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 38 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 72 6B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 6B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 26 00 00 00 00 07 04 06 00 48 6B 01 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 D8 32 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8B 72 00 00 35 04 06 00 74 AE C7 BF 5A A0 46 9A 33 D1 86 06 D6 CF [19:47:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 66 18 47 00 FC 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 39 36 33 31 35 34 10 04 04 00 8B 72 00 00 F4 03 04 00 7B DD 1B 66 B6 04 01 00 00 77 DE 1E 57 81 EC 1E A8 [19:47:27]CommunicateWithHost err = 0 [19:47:27]CheckOFDResponse [19:47:27]1017 (14) - 77093643461234 [19:47:27]1041 (16) - 0000000000963154 [19:47:27]1040 (4) - 29323 [19:47:27]1012 (4) - 14.04.2024 13:43 [19:47:27]1206 (1) - 0 [19:47:27]OFD Sender: Remove packet 29323 [19:47:27]ProducePacketName [19:47:27]name=ofd_packets/00029323 [19:47:27]NVStorageDeleteData [19:47:27]Write to MH i2c: 01 00 00 D1 B5 86 [19:47:27]Write i2c OK [19:47:27]MH_I2C_Read... [19:47:27]Read from MH i2c: 01 [19:47:27]MH_I2C_Read... [19:47:27]Read from MH i2c: 01 07 00 [19:47:27]MH_I2C_Read... [19:47:27]Read from MH i2c: 01 07 00 D1 B5 00 00 00 00 00 CF 0C 68 [19:47:27]RasterBufferAndPrint [19:47:27]line [19:47:27]line [19:47:27]line [19:47:27]line [19:47:27]line [19:47:27]written 0, free lines is 3286 [19:47:27]MH_Cut [19:47:27]Write to MH i2c: D1 01 00 D8 B5 01 5F [19:47:27]Write i2c OK [19:47:27]MH_I2C_Read... [19:47:27]Read from MH i2c: D1 [19:47:27]MH_I2C_Read... [19:47:27]Read from MH i2c: D1 01 00 [19:47:27]MH_I2C_Read... [19:47:27]Read from MH i2c: D1 01 00 D8 B5 00 5E [19:47:27]Write to MH i2c: 01 00 00 D9 B5 8E [19:47:27]Write i2c OK [19:47:27]MH_I2C_Read... [19:47:27]OFD Sender: No OFD packet to send [19:47:28]*** Cut start [19:47:28]*** Partial cut [19:47:28]*** CUTSNS_PIN = 1 [19:47:28]*** CUTSNS_PIN = 0 [19:47:28]*** Brake cut motor [19:47:28]Read from MH i2c: 01 [19:47:28]MH_I2C_Read... [19:47:28]*** Stop cut motor [19:47:28]*** Cut end [19:47:28]Read from MH i2c: 01 07 00 [19:47:28]MH_I2C_Read... [19:47:28]Read from MH i2c: 01 07 00 D9 B5 00 00 00 00 00 FF 0F A3 [19:47:28]process_action close_receipt done [19:47:28]requested_data is exist [19:47:28]produce_requested_data [19:47:28]requested_item fm.sn is exist - process it [19:47:28]wFMCommunicate request_size=4 [19:47:28]MH_SAM_APDU [19:47:28]CAPDU: 80 11 00 00 [19:47:28]Write to MH i2c: E2 08 00 DA B5 80 11 00 00 00 00 00 00 09 [19:47:28]Write i2c OK [19:47:28]MH_I2C_Read... [19:47:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:47:28]Read from MH i2c: E2 [19:47:28]MH_I2C_Read... [19:47:28]Read from MH i2c: E2 17 00 [19:47:28]MH_I2C_Read... [19:47:28]Read from MH i2c: E2 17 00 DA B5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 58 [19:47:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:47:28]wFMCommunicate OK [19:47:28]requested_item fd.num is exist - process it [19:47:28]SAM_PROTO_GetFieldsCounters [19:47:28]wFMCommunicate request_size=4 [19:47:28]MH_SAM_APDU [19:47:28]CAPDU: 80 13 00 00 [19:47:28]Write to MH i2c: E2 08 00 DB B5 80 13 00 00 00 00 00 00 0C [19:47:28]Write i2c OK [19:47:28]MH_I2C_Read... [19:47:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:47:29]Read from MH i2c: E2 [19:47:29]MH_I2C_Read... [19:47:29]Read from MH i2c: E2 62 00 [19:47:29]MH_I2C_Read... [19:47:29]Read from MH i2c: E2 62 00 DB B5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 8B 72 00 00 0E 04 04 00 74 00 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 76 [19:47:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 8B 72 00 00 0E 04 04 00 74 00 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 [19:47:29]wFMCommunicate OK [19:47:29]SAM_PROTO_GetFieldsCounters done [19:47:29]requested_item shift.num is exist - process it [19:47:29]requested_item shift.opened is exist - process it [19:47:29]req_shift_opened [19:47:29]FM_GetShiftState [19:47:29]SAM_PROTO_GetShiftState [19:47:29]wFMCommunicate request_size=4 [19:47:29]MH_SAM_APDU [19:47:29]CAPDU: 80 13 01 00 [19:47:29]Write to MH i2c: E2 08 00 DC B5 80 13 01 00 00 00 00 00 0E [19:47:29]Write i2c OK [19:47:29]MH_I2C_Read... [19:47:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:47:29]Read from MH i2c: E2 [19:47:29]MH_I2C_Read... [19:47:29]Read from MH i2c: E2 0E 00 [19:47:29]MH_I2C_Read... [19:47:29]Read from MH i2c: E2 0E 00 DC B5 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 BA [19:47:29]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [19:47:29]wFMCommunicate OK [19:47:29]SAM_PROTO_GetShiftState done [19:47:29]FM_GetShiftState done [19:47:29]req_shift_opened done [19:47:29]requested_item shift.open_date is exist - process it [19:47:29]req_shift_open_date [19:47:29]req_shift_open_date done [19:47:29]produce_requested_data done [19:47:29]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29323,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [19:47:29]process_action_free close_receipt [19:47:29]json_value_free [19:47:29]json_value_free done [19:47:29]process_json_proto returns [19:47:29]Send response to host [19:47:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29323,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [19:47:29]free response buf [19:47:29]execute_script done [19:47:29]execute_script returns [19:47:29]free content buf [19:47:29]Sock 9.Close socket [19:47:29]Sock 9.Thread stoped [19:47:32]OFD Sender: No OFD packet to send [19:47:37]OFD Sender: No OFD packet to send [19:47:42]OFD Sender: No OFD packet to send [19:47:47]OFD Sender: No OFD packet to send [19:47:52]OFD Sender: No OFD packet to send [19:47:57]OFD Sender: No OFD packet to send [19:48:02]OFD Sender: No OFD packet to send [19:48:07]OFD Sender: No OFD packet to send [19:48:08]accept exits with 7 [19:48:08]New connection [19:48:08]New thread 3066785124 created [19:48:08]Thread 3066928484 joined [19:48:08]Waiting for new connection... [19:48:08] Sock 7.Parse request [19:48:08]Sock 7.Check first char [19:48:08]Sock 7.First char is OK [19:48:08]request: POST /json_proto HTTP/1.0 [19:48:08]Method: POST [19:48:08]URL: /json_proto [19:48:08]Method is POST - this is cgi request [19:48:08]url: /json_proto [19:48:08]query_string will be loaded in cgi processing [19:48:08]execute_cgi json_proto POST (null) [19:48:08]execute_cgi path=json_proto method=POST [19:48:08]POST find Content-Length [19:48:08]Host: 172.17.33.3:8080 [19:48:08]Content-Length: 677 [19:48:08]Content-Type: application/json [19:48:08] [19:48:08]POST finish read [19:48:08]Found Content-Length = 677 [19:48:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347715", "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" ] } } [19:48:08]execute_script... [19: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)347715", "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" ] } } [19:48:08]POST & json_proto [19:48:08]process_json_proto [19:48:08]json parsed OK: [19:48:08]protocol is kg_v1.0 [19:48:08]action value=close_receipt [19:48:08]process_action close_receipt [19:48:08]cmd_close_receipt [19:48:08]MH_GetDate [19:48:08]Write to MH i2c: F0 00 00 DD B5 81 [19:48:08]Write i2c OK [19:48:08]MH_I2C_Read... [19:48:08]Read from MH i2c: F0 [19:48:08]MH_I2C_Read... [19:48:08]Read from MH i2c: F0 09 00 [19:48:08]MH_I2C_Read... [19:48:08]Read from MH i2c: F0 09 00 DD B5 00 03 33 1C 66 23 5B 8F 65 B4 [19:48:08]GetLastDocTimeStamp 1713124056 [19:48:08]current date 1713124099 [19:48:08]FM_GetShiftState [19:48:08]SAM_PROTO_GetShiftState [19:48:08]wFMCommunicate request_size=4 [19:48:08]MH_SAM_APDU [19:48:08]CAPDU: 80 13 01 00 [19:48:08]Write to MH i2c: E2 08 00 DE B5 80 13 01 00 00 00 00 00 10 [19:48:08]Write i2c OK [19:48:08]MH_I2C_Read... [19:48:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:48:08]Read from MH i2c: E2 [19:48:08]MH_I2C_Read... [19:48:08]Read from MH i2c: E2 0E 00 [19:48:08]MH_I2C_Read... [19:48:08]Read from MH i2c: E2 0E 00 DE B5 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 BC [19:48:08]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [19:48:08]wFMCommunicate OK [19:48:08]SAM_PROTO_GetShiftState done [19:48:08]FM_GetShiftState done [19:48:08]opened in 1713053951 [19:48:08]opened+sec_in_day 1713140351 [19:48:08]quantity*price = 50025 [19:48:08]sum+1 = 50026 [19:48:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 234 14.04.2024 19:48 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29324 ФПД: 211215537687424 1/tax-web-control/client/api/v1/ticket?date=20240414T194819&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29324&fm=211215537687424&tin=02508201610067®Number=0000138879044617&sum=50000 [19:48:09]StoreToDocumentArchive [19:48:09]shift 116 fd 29324 [19:48:09]save to /storage/0116/doc_00029324 [19:48:09]save last doc name /storage/0116/doc_00029324 to /storage/kkm_last_doc_name [19:48:09]save OK [19:48:09]Clear old archive folders... [19:48:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:48:09]tlvbuf is 012F0A80 [19:48:09]SAM_PROTO_ClearQueue [19:48:09]wFMCommunicate request_size=4 [19:48:09]MH_SAM_APDU [19:48:09]CAPDU: 80 09 00 00 [19:48:09]Write to MH i2c: E2 08 00 EB B5 80 09 00 00 00 00 00 00 12 [19:48:09]Write i2c OK [19:48:09]MH_I2C_Read... [19:48:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:48:09]Read from MH i2c: E2 [19:48:09]MH_I2C_Read... [19:48:09]Read from MH i2c: E2 03 00 [19:48:09]MH_I2C_Read... [19:48:09]Read from MH i2c: E2 03 00 EB B5 00 90 00 14 [19:48:09]RAPDU: 90 00 [19:48:09]wFMCommunicate OK [19:48:09]SAM_PROTO_ClearQueue done [19:48:09]KKMCreateOFDPacket [19:48:09]OFDProtocolAddRootSTLVToBuf [19:48:09]FM_MakeSignedData [19:48:09]FM_MakeSignedData [19:48:09]SAM_PROTO_SignData [19:48:09]wFMCommunicate request_size=4 [19:48:09]MH_SAM_APDU [19:48:09]CAPDU: 80 0D 01 02 [19:48:09]Write to MH i2c: E2 08 00 EC B5 80 0D 01 02 00 00 00 00 1A [19:48:09]Write i2c OK [19:48:09]MH_I2C_Read... [19:48:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:48:09]Read from MH i2c: E2 [19:48:09]MH_I2C_Read... [19:48:09]Read from MH i2c: E2 03 00 [19:48:09]MH_I2C_Read... [19:48:09]Read from MH i2c: E2 03 00 EC B5 00 90 00 15 [19:48:09]RAPDU: 90 00 [19:48:09]wFMCommunicate OK [19:48:09]wFMCommunicate request_size=255 [19:48:09]MH_SAM_APDU [19: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 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 EA 00 00 00 F4 03 04 00 03 33 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8C 72 00 00 35 04 06 00 C0 [19:48:09]Write to MH i2c: E2 02 01 ED B5 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 EA 00 00 00 F4 03 04 00 03 33 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8C 72 00 00 35 04 06 00 C0 00 00 B0 [19:48:09]Write i2c OK [19:48:09]MH_I2C_Read... [19:48:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:48:09]Read from MH i2c: E2 [19:48:09]MH_I2C_Read... [19:48:09]Read from MH i2c: E2 03 00 [19:48:09]MH_I2C_Read... [19:48:09]Read from MH i2c: E2 03 00 ED B5 00 90 00 16 [19:48:09]RAPDU: 90 00 [19:48:09]wFMCommunicate OK [19:48:09]wFMCommunicate request_size=10 [19:48:09]MH_SAM_APDU [19:48:09]CAPDU: 80 0D 02 02 05 19 73 18 4B 80 [19:48:09]Write to MH i2c: E2 0D 00 EE B5 80 0D 02 02 05 00 19 73 18 4B 80 00 00 96 [19:48:09]Write i2c OK [19:48:09]MH_I2C_Read... [19:48:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:48:09]Read from MH i2c: E2 [19:48:09]MH_I2C_Read... [19:48:09]Read from MH i2c: E2 03 00 [19:48:09]MH_I2C_Read... [19:48:09]Read from MH i2c: E2 03 00 EE B5 00 90 00 17 [19:48:09]RAPDU: 90 00 [19:48:09]wFMCommunicate OK [19:48:09]wFMCommunicate request_size=4 [19:48:09]MH_SAM_APDU [19:48:09]CAPDU: 80 0D 03 02 [19:48:09]Write to MH i2c: E2 08 00 EF B5 80 0D 03 02 00 00 00 00 1F [19:48:09]Write i2c OK [19:48:09]MH_I2C_Read... [19:48:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:48:09]Read from MH i2c: E2 [19:48:09]MH_I2C_Read... [19:48:09]Read from MH i2c: E2 0B 00 [19:48:09]MH_I2C_Read... [19:48:09]Read from MH i2c: E2 0B 00 EF B5 00 2A B8 30 3B 09 9F 22 3F 90 00 76 [19:48:09]RAPDU: 2A B8 30 3B 09 9F 22 3F 90 00 [19:48:09]wFMCommunicate OK [19:48:09]SAM_PROTO_SignData done [19:48:09]FM_MakeSignedData done [19:48:09]CreateOFDProtocolMessage [19:48:09]wFMCommunicate request_size=4 [19:48:09]MH_SAM_APDU [19:48:09]CAPDU: 80 11 00 00 [19:48:09]Write to MH i2c: E2 08 00 F0 B5 80 11 00 00 00 00 00 00 1F [19:48:09]Write i2c OK [19:48:09]MH_I2C_Read... [19:48:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:48:09]Read from MH i2c: E2 [19:48:09]MH_I2C_Read... [19:48:09]Read from MH i2c: E2 17 00 [19:48:09]MH_I2C_Read... [19:48:09]Read from MH i2c: E2 17 00 F0 B5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 6E [19:48:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:48:09]wFMCommunicate OK [19:48:09]CreateOFDProtocolMessage done [19:48:09]OFDSenderStorePacket 29324 [19:48:09]StoreOFDPacket docnum=29324 [19:48:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 6C 3F 07 01 DF 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 EA 00 00 00 F4 03 04 00 03 33 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8C 72 00 00 35 04 06 00 C0 19 73 18 4B 80 2A B8 30 3B 09 9F 22 3F [19:48:09]CheckFolder [19:48:09]dirname=/storage/ofd_packets [19:48:09]CheckFolder done [19:48:09]ProducePacketName [19:48:09]name=ofd_packets/00029324 [19:48:09]NVStorageSaveData ofd_packets/00029324 [19:48:09]File name is /storage/ofd_packets/00029324 [19:48:09]Write 301 bytes [19:48:09]NVStorageSaveData done [19:48:09]OFDSenderStorePacket done [19:48:09]KKMCreateOFDPacket done [19:48:09]NVStorageSaveData kkm_last_timestamp [19:48:09]File name is /storage/kkm_last_timestamp [19:48:09]Write 4 bytes [19:48:09]NVStorageSaveData done [19:48:09]ExternCall_PrintAddStr [19:48:09]wPrintStart [19:48:09]Write to MH i2c: 01 00 00 F1 B5 A6 [19:48:09]Write i2c OK [19:48:09]MH_I2C_Read... [19:48:09]Read from MH i2c: 01 [19:48:09]MH_I2C_Read... [19:48:09]Read from MH i2c: 01 07 00 [19:48:09]MH_I2C_Read... [19:48:09]Read from MH i2c: 01 07 00 F1 B5 00 00 00 00 00 FF 0F BB [19:48:09]RasterBufferAndPrint [19:48:09]line Счет N : (1)347715 [19:48:09]line ИНН: 02508201610067 [19:48:09]line Контрольно-Кассовый Чек [19:48:09]line ПРОДАЖА [19:48:09]line ТРК (МРК, ГНК) : 42 [19:48:09]line Товар: 2710124130 [19:48:09]line Аи-92-К-5 [19:48:09]line 7.780 * 64.30 [19:48:09]line = 500.25 [19:48:09]line НДС 12% НСП 1% [19:48:09]line > о реализуемом товаре [19:48:09]line ОКРУГЛЕНИЕ: -0.25 [19:48:09]line ИТОГО: 500.00 [19:48:09]line Внесено: 500.00 [19:48:09]line СДАЧА: 0.00 [19:48:09]line НСП 1% : 4.43 [19:48:09]line НДС 12% : 53.12 [19:48:09]line Наличными: 500.00 [19:48:09]line Безнал.: 0.00 [19:48:09]line Место: АЗС № 108 "Партнер Нефть" [19:48:09]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [19:48:09]line СНО: Общий режим [19:48:09]line Чек 234 14.04.2024 19:48 [19:48:09]line Смена: 116 ФФД: 1.0 [19:48:09]line ЗНМ: 0300000027 [19:48:09]line РНМ: 0000138879044617 [19:48:09]line Версия ККМ: 001 [19:48:09]line ФМ: 0000000000963154 [19:48:09]line ФД: 29324 [19:48:09]line ФПД: 211215537687424 [19:48:10]line 1/tax-web-control/client/api/v1/ticket?date=20240414T194819&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29324&fm=211215537687424&tin=02508201610067®Number=0000138879044617&sum=50000 [19:48:10]OFD Sender: Processing packet 29324 [packets to send 8, broken 7] [19:48:10]ProducePacketName [19:48:10]name=ofd_packets/00029324 [19:48:10]OFD Sender: To server: pG, [19:48:10]CommunicateWithHost lk.salyk.kg:30040 [19:48:10]ConnectInit lk.salyk.kg [19:48:10]written 0, free lines is 4095 [19:48:10]Connected sock=10 [19:48:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 6C 3F 07 01 DF 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 EA 00 00 00 F4 03 04 00 03 33 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8C 72 00 00 35 04 06 00 C0 19 73 18 4B 80 2A B8 30 3B 09 9F 22 3F [19:48:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 B5 6E 47 00 A5 B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8C 72 00 00 F4 03 04 00 A6 DD 1B 66 B6 04 01 00 00 7B 37 0D 2B 78 F0 A6 A6 [19:48:10]CommunicateWithHost err = 0 [19:48:10]CheckOFDResponse [19:48:10]1017 (14) - 77093643461234 [19:48:10]1041 (16) - 0000000000963154 [19:48:10]1040 (4) - 29324 [19:48:10]1012 (4) - 14.04.2024 13:44 [19:48:10]1206 (1) - 0 [19:48:10]OFD Sender: Remove packet 29324 [19:48:10]ProducePacketName [19:48:10]name=ofd_packets/00029324 [19:48:10]NVStorageDeleteData [19:48:10]Write to MH i2c: 01 00 00 1B B6 D1 [19:48:10]Write i2c OK [19:48:10]MH_I2C_Read... [19:48:10]Read from MH i2c: 01 [19:48:10]MH_I2C_Read... [19:48:10]Read from MH i2c: 01 07 00 [19:48:10]MH_I2C_Read... [19:48:10]Read from MH i2c: 01 07 00 1B B6 00 00 00 00 00 C5 0C A9 [19:48:10]RasterBufferAndPrint [19:48:10]line [19:48:10]line [19:48:10]line [19:48:10]line [19:48:10]line [19:48:10]written 0, free lines is 3274 [19:48:10]MH_Cut [19:48:10]Write to MH i2c: D1 01 00 22 B6 01 AA [19:48:10]Write i2c OK [19:48:10]MH_I2C_Read... [19:48:10]Read from MH i2c: D1 [19:48:10]MH_I2C_Read... [19:48:10]Read from MH i2c: D1 01 00 [19:48:10]MH_I2C_Read... [19:48:10]Read from MH i2c: D1 01 00 22 B6 00 A9 [19:48:10]Write to MH i2c: 01 00 00 23 B6 D9 [19:48:10]Write i2c OK [19:48:10]MH_I2C_Read... [19:48:10]OFD Sender: No OFD packet to send [19:48:11]*** Cut start [19:48:11]*** Partial cut [19:48:11]*** CUTSNS_PIN = 1 [19:48:11]*** CUTSNS_PIN = 0 [19:48:11]*** Brake cut motor [19:48:11]Read from MH i2c: 01 [19:48:11]MH_I2C_Read... [19:48:11]*** Stop cut motor [19:48:11]*** Cut end [19:48:11]Read from MH i2c: 01 07 00 [19:48:11]MH_I2C_Read... [19:48:11]Read from MH i2c: 01 07 00 23 B6 00 00 00 00 00 FF 0F EE [19:48:11]process_action close_receipt done [19:48:11]requested_data is exist [19:48:11]produce_requested_data [19:48:11]requested_item fm.sn is exist - process it [19:48:11]wFMCommunicate request_size=4 [19:48:11]MH_SAM_APDU [19:48:11]CAPDU: 80 11 00 00 [19:48:11]Write to MH i2c: E2 08 00 24 B6 80 11 00 00 00 00 00 00 54 [19:48:11]Write i2c OK [19:48:11]MH_I2C_Read... [19:48:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:48:11]Read from MH i2c: E2 [19:48:11]MH_I2C_Read... [19:48:11]Read from MH i2c: E2 17 00 [19:48:11]MH_I2C_Read... [19:48:11]Read from MH i2c: E2 17 00 24 B6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A3 [19:48:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:48:11]wFMCommunicate OK [19:48:11]requested_item fd.num is exist - process it [19:48:11]SAM_PROTO_GetFieldsCounters [19:48:11]wFMCommunicate request_size=4 [19:48:11]MH_SAM_APDU [19:48:11]CAPDU: 80 13 00 00 [19:48:11]Write to MH i2c: E2 08 00 25 B6 80 13 00 00 00 00 00 00 57 [19:48:11]Write i2c OK [19:48:11]MH_I2C_Read... [19:48:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:48:12]Read from MH i2c: E2 [19:48:12]MH_I2C_Read... [19:48:12]Read from MH i2c: E2 62 00 [19:48:12]MH_I2C_Read... [19:48:12]Read from MH i2c: E2 62 00 25 B6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 8C 72 00 00 0E 04 04 00 74 00 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 C5 [19:48:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 8C 72 00 00 0E 04 04 00 74 00 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 [19:48:12]wFMCommunicate OK [19:48:12]SAM_PROTO_GetFieldsCounters done [19:48:12]requested_item shift.num is exist - process it [19:48:12]requested_item shift.opened is exist - process it [19:48:12]req_shift_opened [19:48:12]FM_GetShiftState [19:48:12]SAM_PROTO_GetShiftState [19:48:12]wFMCommunicate request_size=4 [19:48:12]MH_SAM_APDU [19:48:12]CAPDU: 80 13 01 00 [19:48:12]Write to MH i2c: E2 08 00 26 B6 80 13 01 00 00 00 00 00 59 [19:48:12]Write i2c OK [19:48:12]MH_I2C_Read... [19:48:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:48:12]Read from MH i2c: E2 [19:48:12]MH_I2C_Read... [19:48:12]Read from MH i2c: E2 0E 00 [19:48:12]MH_I2C_Read... [19:48:12]Read from MH i2c: E2 0E 00 26 B6 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 05 [19:48:12]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [19:48:12]wFMCommunicate OK [19:48:12]SAM_PROTO_GetShiftState done [19:48:12]FM_GetShiftState done [19:48:12]req_shift_opened done [19:48:12]requested_item shift.open_date is exist - process it [19:48:12]req_shift_open_date [19:48:12]req_shift_open_date done [19:48:12]produce_requested_data done [19:48:12]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29324,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [19:48:12]process_action_free close_receipt [19:48:12]json_value_free [19:48:12]json_value_free done [19:48:12]process_json_proto returns [19:48:12]Send response to host [19:48:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29324,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [19:48:12]free response buf [19:48:12]execute_script done [19:48:12]execute_script returns [19:48:12]free content buf [19:48:12]Sock 7.Close socket [19:48:12]Sock 7.Thread stoped [19:48:15]OFD Sender: No OFD packet to send [19:48:20]OFD Sender: No OFD packet to send [19:48:25]OFD Sender: No OFD packet to send [19:48:30]OFD Sender: No OFD packet to send [19:48:35]OFD Sender: No OFD packet to send [19:48:40]OFD Sender: No OFD packet to send [19:48:45]OFD Sender: No OFD packet to send [19:48:50]OFD Sender: No OFD packet to send [19:48:55]OFD Sender: No OFD packet to send [19:49:00]OFD Sender: No OFD packet to send [19:49:03]accept exits with 9 [19:49:03]New connection [19:49:03]New thread 3066928484 created [19:49:03]Thread 3066785124 joined [19:49:03]Waiting for new connection... [19:49:03] Sock 9.Parse request [19:49:03]Sock 9.Check first char [19:49:03]Sock 9.First char is OK [19:49:03]request: POST /json_proto HTTP/1.0 [19:49:03]Method: POST [19:49:03]URL: /json_proto [19:49:03]Method is POST - this is cgi request [19:49:03]url: /json_proto [19:49:03]query_string will be loaded in cgi processing [19:49:03]execute_cgi json_proto POST (null) [19:49:03]execute_cgi path=json_proto method=POST [19:49:03]POST find Content-Length [19:49:03]Host: 172.17.33.3:8080 [19:49:03]Content-Length: 685 [19:49:03]Content-Type: application/json [19:49:03] [19:49:03]POST finish read [19:49:03]Found Content-Length = 685 [19:49:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347713", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 54.520, "sum" : 1793.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1793.00, "payments": [ { "type": 0, "sum" : 1793.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:49:03]execute_script... [19:49: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)347713", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 54.520, "sum" : 1793.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1793.00, "payments": [ { "type": 0, "sum" : 1793.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:49:03]POST & json_proto [19:49:03]process_json_proto [19:49:03]json parsed OK: [19:49:03]protocol is kg_v1.0 [19:49:03]action value=close_receipt [19:49:03]process_action close_receipt [19:49:03]cmd_close_receipt [19:49:03]MH_GetDate [19:49:03]Write to MH i2c: F0 00 00 27 B6 CC [19:49:03]Write i2c OK [19:49:03]MH_I2C_Read... [19:49:03]Read from MH i2c: F0 [19:49:03]MH_I2C_Read... [19:49:03]Read from MH i2c: F0 09 00 [19:49:03]MH_I2C_Read... [19:49:03]Read from MH i2c: F0 09 00 27 B6 00 3A 33 1C 66 23 5B 8F 65 36 [19:49:03]GetLastDocTimeStamp 1713124099 [19:49:03]current date 1713124154 [19:49:03]FM_GetShiftState [19:49:03]SAM_PROTO_GetShiftState [19:49:03]wFMCommunicate request_size=4 [19:49:03]MH_SAM_APDU [19:49:03]CAPDU: 80 13 01 00 [19:49:03]Write to MH i2c: E2 08 00 28 B6 80 13 01 00 00 00 00 00 5B [19:49:03]Write i2c OK [19:49:03]MH_I2C_Read... [19:49:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:49:03]Read from MH i2c: E2 [19:49:03]MH_I2C_Read... [19:49:03]Read from MH i2c: E2 0E 00 [19:49:03]MH_I2C_Read... [19:49:03]Read from MH i2c: E2 0E 00 28 B6 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 07 [19:49:03]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [19:49:03]wFMCommunicate OK [19:49:03]SAM_PROTO_GetShiftState done [19:49:03]FM_GetShiftState done [19:49:03]opened in 1713053951 [19:49:03]opened+sec_in_day 1713140351 [19:49:03]quantity*price = 179370 [19:49:03]sum+1 = 179372 [19:49:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.71 ИТОГО: 1793.00 Внесено: 2000.00 СДАЧА: 207.00 НСП 1% : 15.87 НДС 12% : 190.48 Наличными: 1793.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 235 14.04.2024 19:49 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29325 ФПД: 19600682446306 1/tax-web-control/client/api/v1/ticket?date=20240414T194914&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29325&fm=19600682446306&tin=02508201610067®Number=0000138879044617&sum=179300 [19:49:04]StoreToDocumentArchive [19:49:04]shift 116 fd 29325 [19:49:04]save to /storage/0116/doc_00029325 [19:49:04]save last doc name /storage/0116/doc_00029325 to /storage/kkm_last_doc_name [19:49:04]save OK [19:49:04]Clear old archive folders... [19:49:04]ProcessDocumentItem done err = 0, tmpTLVsize=250 [19:49:04]tlvbuf is 011FB2C0 [19:49:04]SAM_PROTO_ClearQueue [19:49:04]wFMCommunicate request_size=4 [19:49:04]MH_SAM_APDU [19:49:04]CAPDU: 80 09 00 00 [19:49:04]Write to MH i2c: E2 08 00 35 B6 80 09 00 00 00 00 00 00 5D [19:49:04]Write i2c OK [19:49:04]MH_I2C_Read... [19:49:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:49:04]Read from MH i2c: E2 [19:49:04]MH_I2C_Read... [19:49:04]Read from MH i2c: E2 03 00 [19:49:04]MH_I2C_Read... [19:49:04]Read from MH i2c: E2 03 00 35 B6 00 90 00 5F [19:49:04]RAPDU: 90 00 [19:49:04]wFMCommunicate OK [19:49:04]SAM_PROTO_ClearQueue done [19:49:04]KKMCreateOFDPacket [19:49:04]OFDProtocolAddRootSTLVToBuf [19:49:04]FM_MakeSignedData [19:49:04]FM_MakeSignedData [19:49:04]SAM_PROTO_SignData [19:49:04]wFMCommunicate request_size=4 [19:49:04]MH_SAM_APDU [19:49:04]CAPDU: 80 0D 01 02 [19:49:04]Write to MH i2c: E2 08 00 36 B6 80 0D 01 02 00 00 00 00 65 [19:49:04]Write i2c OK [19:49:04]MH_I2C_Read... [19:49:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:49:04]Read from MH i2c: E2 [19:49:04]MH_I2C_Read... [19:49:04]Read from MH i2c: E2 03 00 [19:49:04]MH_I2C_Read... [19:49:04]Read from MH i2c: E2 03 00 36 B6 00 90 00 60 [19:49:04]RAPDU: 90 00 [19:49:04]wFMCommunicate OK [19:49:04]wFMCommunicate request_size=255 [19:49:04]MH_SAM_APDU [19:49: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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 F8 D4 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 AB BC 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 BC 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 4A 00 00 00 00 07 04 06 00 64 BC 02 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 3A 33 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8D 72 00 00 35 04 06 00 11 D3 [19:49:04]Write to MH i2c: E2 02 01 37 B6 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 F8 D4 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 AB BC 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 BC 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 4A 00 00 00 00 07 04 06 00 64 BC 02 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 3A 33 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8D 72 00 00 35 04 06 00 11 D3 00 00 B7 [19:49:04]Write i2c OK [19:49:04]MH_I2C_Read... [19:49:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:49:04]Read from MH i2c: E2 [19:49:04]MH_I2C_Read... [19:49:04]Read from MH i2c: E2 03 00 [19:49:04]MH_I2C_Read... [19:49:04]Read from MH i2c: E2 03 00 37 B6 00 90 00 61 [19:49:04]RAPDU: 90 00 [19:49:04]wFMCommunicate OK [19:49:04]wFMCommunicate request_size=9 [19:49:04]MH_SAM_APDU [19:49:04]CAPDU: 80 0D 02 02 04 A3 B6 ED E2 [19:49:04]Write to MH i2c: E2 0C 00 38 B6 80 0D 02 02 04 00 A3 B6 ED E2 00 00 98 [19:49:04]Write i2c OK [19:49:04]MH_I2C_Read... [19:49:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:49:04]Read from MH i2c: E2 [19:49:04]MH_I2C_Read... [19:49:04]Read from MH i2c: E2 03 00 [19:49:04]MH_I2C_Read... [19:49:04]Read from MH i2c: E2 03 00 38 B6 00 90 00 62 [19:49:04]RAPDU: 90 00 [19:49:04]wFMCommunicate OK [19:49:04]wFMCommunicate request_size=4 [19:49:04]MH_SAM_APDU [19:49:04]CAPDU: 80 0D 03 02 [19:49:04]Write to MH i2c: E2 08 00 39 B6 80 0D 03 02 00 00 00 00 6A [19:49:04]Write i2c OK [19:49:04]MH_I2C_Read... [19:49:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:49:04]Read from MH i2c: E2 [19:49:04]MH_I2C_Read... [19:49:04]Read from MH i2c: E2 0B 00 [19:49:04]MH_I2C_Read... [19:49:04]Read from MH i2c: E2 0B 00 39 B6 00 7E E3 F3 9D 4E BB 04 E0 90 00 49 [19:49:04]RAPDU: 7E E3 F3 9D 4E BB 04 E0 90 00 [19:49:04]wFMCommunicate OK [19:49:04]SAM_PROTO_SignData done [19:49:04]FM_MakeSignedData done [19:49:04]CreateOFDProtocolMessage [19:49:04]wFMCommunicate request_size=4 [19:49:04]MH_SAM_APDU [19:49:04]CAPDU: 80 11 00 00 [19:49:04]Write to MH i2c: E2 08 00 3A B6 80 11 00 00 00 00 00 00 6A [19:49:04]Write i2c OK [19:49:04]MH_I2C_Read... [19:49:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:49:04]Read from MH i2c: E2 [19:49:04]MH_I2C_Read... [19:49:04]Read from MH i2c: E2 17 00 [19:49:04]MH_I2C_Read... [19:49:04]Read from MH i2c: E2 17 00 3A B6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B9 [19:49:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:49:04]wFMCommunicate OK [19:49:04]CreateOFDProtocolMessage done [19:49:04]OFDSenderStorePacket 29325 [19:49:04]StoreOFDPacket docnum=29325 [19:49:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 6B 63 06 01 02 F9 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 F8 D4 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 AB BC 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 BC 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 4A 00 00 00 00 07 04 06 00 64 BC 02 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 3A 33 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8D 72 00 00 35 04 06 00 11 D3 A3 B6 ED E2 7E E3 F3 9D 4E BB 04 E0 [19:49:04]CheckFolder [19:49:04]dirname=/storage/ofd_packets [19:49:04]CheckFolder done [19:49:04]ProducePacketName [19:49:04]name=ofd_packets/00029325 [19:49:04]NVStorageSaveData ofd_packets/00029325 [19:49:04]File name is /storage/ofd_packets/00029325 [19:49:04]Write 300 bytes [19:49:04]NVStorageSaveData done [19:49:04]OFDSenderStorePacket done [19:49:04]KKMCreateOFDPacket done [19:49:04]NVStorageSaveData kkm_last_timestamp [19:49:04]File name is /storage/kkm_last_timestamp [19:49:04]Write 4 bytes [19:49:04]NVStorageSaveData done [19:49:04]ExternCall_PrintAddStr [19:49:04]wPrintStart [19:49:04]Write to MH i2c: 01 00 00 3B B6 F1 [19:49:04]Write i2c OK [19:49:04]MH_I2C_Read... [19:49:04]Read from MH i2c: 01 [19:49:04]MH_I2C_Read... [19:49:04]Read from MH i2c: 01 07 00 [19:49:04]MH_I2C_Read... [19:49:04]Read from MH i2c: 01 07 00 3B B6 00 00 00 00 00 FF 0F 06 [19:49:04]RasterBufferAndPrint [19:49:04]line Счет N : (1)347713 [19:49:04]line ИНН: 02508201610067 [19:49:04]line Контрольно-Кассовый Чек [19:49:04]line ПРОДАЖА [19:49:04]line ТРК (МРК, ГНК) : 71 [19:49:04]line Товар: 2711129700 [19:49:04]line ГАЗ-К-5 [19:49:04]line 54.520 * 32.90 [19:49:04]line = 1793.71 [19:49:04]line НДС 12% НСП 1% [19:49:04]line > о реализуемом товаре [19:49:04]line ОКРУГЛЕНИЕ: -0.71 [19:49:04]line ИТОГО: 1793.00 [19:49:04]line Внесено: 2000.00 [19:49:04]line СДАЧА: 207.00 [19:49:04]line НСП 1% : 15.87 [19:49:04]line НДС 12% : 190.48 [19:49:04]line Наличными: 1793.00 [19:49:04]line Безнал.: 0.00 [19:49:04]line Место: АЗС № 108 "Партнер Нефть" [19:49:04]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [19:49:04]line СНО: Общий режим [19:49:04]line Чек 235 14.04.2024 19:49 [19:49:04]line Смена: 116 ФФД: 1.0 [19:49:04]line ЗНМ: 0300000027 [19:49:04]line РНМ: 0000138879044617 [19:49:04]line Версия ККМ: 001 [19:49:04]line ФМ: 0000000000963154 [19:49:04]line ФД: 29325 [19:49:04]line ФПД: 19600682446306 [19:49:04]line 1/tax-web-control/client/api/v1/ticket?date=20240414T194914&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29325&fm=19600682446306&tin=02508201610067®Number=0000138879044617&sum=179300 [19:49:05]OFD Sender: Processing packet 29325 [packets to send 8, broken 7] [19:49:05]ProducePacketName [19:49:05]name=ofd_packets/00029325 [19:49:05]OFD Sender: To server: pG, [19:49:05]CommunicateWithHost lk.salyk.kg:30040 [19:49:05]ConnectInit lk.salyk.kg [19:49:05]written 0, free lines is 4095 [19:49:05]Connected sock=10 [19:49:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 6B 63 06 01 02 F9 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 F8 D4 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 AB BC 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 BC 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 4A 00 00 00 00 07 04 06 00 64 BC 02 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 3A 33 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8D 72 00 00 35 04 06 00 11 D3 A3 B6 ED E2 7E E3 F3 9D 4E BB 04 E0 [19:49:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 6B 38 47 00 00 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 39 36 33 31 35 34 10 04 04 00 8D 72 00 00 F4 03 04 00 DE DD 1B 66 B6 04 01 00 00 0E 14 36 4D B1 FA 3B F1 [19:49:05]CommunicateWithHost err = 0 [19:49:05]CheckOFDResponse [19:49:05]1017 (14) - 77093643461234 [19:49:05]1041 (16) - 0000000000963154 [19:49:05]1040 (4) - 29325 [19:49:05]1012 (4) - 14.04.2024 13:45 [19:49:05]1206 (1) - 0 [19:49:05]OFD Sender: Remove packet 29325 [19:49:05]ProducePacketName [19:49:05]name=ofd_packets/00029325 [19:49:05]NVStorageDeleteData [19:49:05]Write to MH i2c: 01 00 00 65 B6 1B [19:49:05]Write i2c OK [19:49:05]MH_I2C_Read... [19:49:05]Read from MH i2c: 01 [19:49:05]MH_I2C_Read... [19:49:05]Read from MH i2c: 01 07 00 [19:49:05]MH_I2C_Read... [19:49:05]Read from MH i2c: 01 07 00 65 B6 00 00 00 00 00 CB 0C F9 [19:49:05]RasterBufferAndPrint [19:49:05]line [19:49:05]line [19:49:05]line [19:49:05]line [19:49:05]line [19:49:05]written 0, free lines is 3282 [19:49:05]MH_Cut [19:49:05]Write to MH i2c: D1 01 00 6C B6 01 F4 [19:49:05]Write i2c OK [19:49:05]MH_I2C_Read... [19:49:05]Read from MH i2c: D1 [19:49:05]MH_I2C_Read... [19:49:05]Read from MH i2c: D1 01 00 [19:49:05]MH_I2C_Read... [19:49:05]Read from MH i2c: D1 01 00 6C B6 00 F3 [19:49:05]Write to MH i2c: 01 00 00 6D B6 23 [19:49:05]Write i2c OK [19:49:05]MH_I2C_Read... [19:49:06]OFD Sender: No OFD packet to send [19:49:06]*** Cut start [19:49:06]*** Partial cut [19:49:06]*** CUTSNS_PIN = 1 [19:49:06]*** CUTSNS_PIN = 0 [19:49:06]*** Brake cut motor [19:49:07]Read from MH i2c: 01 [19:49:07]MH_I2C_Read... [19:49:07]*** Stop cut motor [19:49:07]*** Cut end [19:49:07]Read from MH i2c: 01 07 00 [19:49:07]MH_I2C_Read... [19:49:07]Read from MH i2c: 01 07 00 6D B6 00 00 00 00 00 FF 0F 38 [19:49:07]process_action close_receipt done [19:49:07]requested_data is exist [19:49:07]produce_requested_data [19:49:07]requested_item fm.sn is exist - process it [19:49:07]wFMCommunicate request_size=4 [19:49:07]MH_SAM_APDU [19:49:07]CAPDU: 80 11 00 00 [19:49:07]Write to MH i2c: E2 08 00 6E B6 80 11 00 00 00 00 00 00 9E [19:49:07]Write i2c OK [19:49:07]MH_I2C_Read... [19:49:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:49:07]Read from MH i2c: E2 [19:49:07]MH_I2C_Read... [19:49:07]Read from MH i2c: E2 17 00 [19:49:07]MH_I2C_Read... [19:49:07]Read from MH i2c: E2 17 00 6E B6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 ED [19:49:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:49:07]wFMCommunicate OK [19:49:07]requested_item fd.num is exist - process it [19:49:07]SAM_PROTO_GetFieldsCounters [19:49:07]wFMCommunicate request_size=4 [19:49:07]MH_SAM_APDU [19:49:07]CAPDU: 80 13 00 00 [19:49:07]Write to MH i2c: E2 08 00 6F B6 80 13 00 00 00 00 00 00 A1 [19:49:07]Write i2c OK [19:49:07]MH_I2C_Read... [19:49:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:49:07]Read from MH i2c: E2 [19:49:07]MH_I2C_Read... [19:49:07]Read from MH i2c: E2 62 00 [19:49:07]MH_I2C_Read... [19:49:07]Read from MH i2c: E2 62 00 6F B6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 8D 72 00 00 0E 04 04 00 74 00 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 13 [19:49:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 8D 72 00 00 0E 04 04 00 74 00 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 [19:49:07]wFMCommunicate OK [19:49:07]SAM_PROTO_GetFieldsCounters done [19:49:07]requested_item shift.num is exist - process it [19:49:07]requested_item shift.opened is exist - process it [19:49:07]req_shift_opened [19:49:07]FM_GetShiftState [19:49:07]SAM_PROTO_GetShiftState [19:49:07]wFMCommunicate request_size=4 [19:49:07]MH_SAM_APDU [19:49:07]CAPDU: 80 13 01 00 [19:49:07]Write to MH i2c: E2 08 00 70 B6 80 13 01 00 00 00 00 00 A3 [19:49:07]Write i2c OK [19:49:07]MH_I2C_Read... [19:49:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:49:07]Read from MH i2c: E2 [19:49:07]MH_I2C_Read... [19:49:07]Read from MH i2c: E2 0E 00 [19:49:07]MH_I2C_Read... [19:49:07]Read from MH i2c: E2 0E 00 70 B6 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 4F [19:49:07]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [19:49:07]wFMCommunicate OK [19:49:07]SAM_PROTO_GetShiftState done [19:49:07]FM_GetShiftState done [19:49:07]req_shift_opened done [19:49:07]requested_item shift.open_date is exist - process it [19:49:07]req_shift_open_date [19:49:07]req_shift_open_date done [19:49:07]produce_requested_data done [19:49:07]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29325,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [19:49:07]process_action_free close_receipt [19:49:07]json_value_free [19:49:07]json_value_free done [19:49:07]process_json_proto returns [19:49:07]Send response to host [19:49:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29325,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [19:49:07]free response buf [19:49:07]execute_script done [19:49:07]execute_script returns [19:49:07]free content buf [19:49:07]Sock 9.Close socket [19:49:07]Sock 9.Thread stoped [19:49:11]OFD Sender: No OFD packet to send [19:49:16]OFD Sender: No OFD packet to send [19:49:21]OFD Sender: No OFD packet to send [19:49:26]OFD Sender: No OFD packet to send [19:49:31]OFD Sender: No OFD packet to send [19:49:36]OFD Sender: No OFD packet to send [19:49:41]OFD Sender: No OFD packet to send [19:49:46]OFD Sender: No OFD packet to send [19:49:50]accept exits with 7 [19:49:50]New connection [19:49:50]New thread 3066785124 created [19:49:50]Thread 3066928484 joined [19:49:50]Waiting for new connection... [19:49:50] Sock 7.Parse request [19:49:50]Sock 7.Check first char [19:49:50]Sock 7.First char is OK [19:49:50]request: POST /json_proto HTTP/1.0 [19:49:50]Method: POST [19:49:50]URL: /json_proto [19:49:50]Method is POST - this is cgi request [19:49:50]url: /json_proto [19:49:50]query_string will be loaded in cgi processing [19:49:50]execute_cgi json_proto POST (null) [19:49:50]execute_cgi path=json_proto method=POST [19:49:50]POST find Content-Length [19:49:50]Host: 172.17.33.3:8080 [19:49:50]Content-Length: 677 [19:49:50]Content-Type: application/json [19:49:50] [19:49:50]POST finish read [19:49:50]Found Content-Length = 677 [19:49:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347716", "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" ] } } [19:49:50]execute_script... [19:49: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)347716", "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" ] } } [19:49:50]POST & json_proto [19:49:50]process_json_proto [19:49:50]json parsed OK: [19:49:50]protocol is kg_v1.0 [19:49:50]action value=close_receipt [19:49:50]process_action close_receipt [19:49:50]cmd_close_receipt [19:49:50]MH_GetDate [19:49:50]Write to MH i2c: F0 00 00 71 B6 16 [19:49:50]Write i2c OK [19:49:50]MH_I2C_Read... [19:49:50]Read from MH i2c: F0 [19:49:50]MH_I2C_Read... [19:49:50]Read from MH i2c: F0 09 00 [19:49:50]MH_I2C_Read... [19:49:50]Read from MH i2c: F0 09 00 71 B6 00 69 33 1C 66 23 5B 8F 65 AF [19:49:50]GetLastDocTimeStamp 1713124154 [19:49:50]current date 1713124201 [19:49:50]FM_GetShiftState [19:49:50]SAM_PROTO_GetShiftState [19:49:50]wFMCommunicate request_size=4 [19:49:50]MH_SAM_APDU [19:49:50]CAPDU: 80 13 01 00 [19:49:50]Write to MH i2c: E2 08 00 72 B6 80 13 01 00 00 00 00 00 A5 [19:49:50]Write i2c OK [19:49:50]MH_I2C_Read... [19:49:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:49:50]Read from MH i2c: E2 [19:49:50]MH_I2C_Read... [19:49:50]Read from MH i2c: E2 0E 00 [19:49:50]MH_I2C_Read... [19:49:50]Read from MH i2c: E2 0E 00 72 B6 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 51 [19:49:50]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [19:49:50]wFMCommunicate OK [19:49:50]SAM_PROTO_GetShiftState done [19:49:50]FM_GetShiftState done [19:49:50]opened in 1713053951 [19:49:50]opened+sec_in_day 1713140351 [19:49:50]quantity*price = 50025 [19:49:50]sum+1 = 50026 [19:49: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 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 236 14.04.2024 19:50 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29326 ФПД: 257653677150037 1/tax-web-control/client/api/v1/ticket?date=20240414T195001&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29326&fm=257653677150037&tin=02508201610067®Number=0000138879044617&sum=50000 [19:49:51]StoreToDocumentArchive [19:49:51]shift 116 fd 29326 [19:49:51]save to /storage/0116/doc_00029326 [19:49:51]save last doc name /storage/0116/doc_00029326 to /storage/kkm_last_doc_name [19:49:51]save OK [19:49:51]Clear old archive folders... [19:49:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:49:51]tlvbuf is 011E3590 [19:49:51]SAM_PROTO_ClearQueue [19:49:51]wFMCommunicate request_size=4 [19:49:51]MH_SAM_APDU [19:49:51]CAPDU: 80 09 00 00 [19:49:51]Write to MH i2c: E2 08 00 7F B6 80 09 00 00 00 00 00 00 A7 [19:49:51]Write i2c OK [19:49:51]MH_I2C_Read... [19:49:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:49:51]Read from MH i2c: E2 [19:49:51]MH_I2C_Read... [19:49:51]Read from MH i2c: E2 03 00 [19:49:51]MH_I2C_Read... [19:49:51]Read from MH i2c: E2 03 00 7F B6 00 90 00 A9 [19:49:51]RAPDU: 90 00 [19:49:51]wFMCommunicate OK [19:49:51]SAM_PROTO_ClearQueue done [19:49:51]KKMCreateOFDPacket [19:49:51]OFDProtocolAddRootSTLVToBuf [19:49:51]FM_MakeSignedData [19:49:51]FM_MakeSignedData [19:49:51]SAM_PROTO_SignData [19:49:51]wFMCommunicate request_size=4 [19:49:51]MH_SAM_APDU [19:49:51]CAPDU: 80 0D 01 02 [19:49:51]Write to MH i2c: E2 08 00 80 B6 80 0D 01 02 00 00 00 00 AF [19:49:51]Write i2c OK [19:49:51]MH_I2C_Read... [19:49:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:49:51]Read from MH i2c: E2 [19:49:51]MH_I2C_Read... [19:49:51]Read from MH i2c: E2 03 00 [19:49:51]MH_I2C_Read... [19:49:51]Read from MH i2c: E2 03 00 80 B6 00 90 00 AA [19:49:51]RAPDU: 90 00 [19:49:51]wFMCommunicate OK [19:49:51]wFMCommunicate request_size=255 [19:49:51]MH_SAM_APDU [19:49: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 EC 00 00 00 F4 03 04 00 69 33 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8E 72 00 00 35 04 06 00 EA [19:49:51]Write to MH i2c: E2 02 01 81 B6 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 EC 00 00 00 F4 03 04 00 69 33 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8E 72 00 00 35 04 06 00 EA 00 00 D9 [19:49:51]Write i2c OK [19:49:51]MH_I2C_Read... [19:49:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:49:51]Read from MH i2c: E2 [19:49:51]MH_I2C_Read... [19:49:51]Read from MH i2c: E2 03 00 [19:49:51]MH_I2C_Read... [19:49:51]Read from MH i2c: E2 03 00 81 B6 00 90 00 AB [19:49:51]RAPDU: 90 00 [19:49:51]wFMCommunicate OK [19:49:51]wFMCommunicate request_size=10 [19:49:51]MH_SAM_APDU [19:49:51]CAPDU: 80 0D 02 02 05 55 AB E6 CF 55 [19:49:51]Write to MH i2c: E2 0D 00 82 B6 80 0D 02 02 05 00 55 AB E6 CF 55 00 00 C6 [19:49:51]Write i2c OK [19:49:51]MH_I2C_Read... [19:49:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:49:51]Read from MH i2c: E2 [19:49:51]MH_I2C_Read... [19:49:51]Read from MH i2c: E2 03 00 [19:49:51]MH_I2C_Read... [19:49:51]Read from MH i2c: E2 03 00 82 B6 00 90 00 AC [19:49:51]RAPDU: 90 00 [19:49:51]wFMCommunicate OK [19:49:51]wFMCommunicate request_size=4 [19:49:51]MH_SAM_APDU [19:49:51]CAPDU: 80 0D 03 02 [19:49:51]Write to MH i2c: E2 08 00 83 B6 80 0D 03 02 00 00 00 00 B4 [19:49:51]Write i2c OK [19:49:51]MH_I2C_Read... [19:49:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:49:51]Read from MH i2c: E2 [19:49:51]MH_I2C_Read... [19:49:51]Read from MH i2c: E2 0B 00 [19:49:51]MH_I2C_Read... [19:49:51]Read from MH i2c: E2 0B 00 83 B6 00 4B F0 02 55 97 BD 67 E3 90 00 E5 [19:49:51]RAPDU: 4B F0 02 55 97 BD 67 E3 90 00 [19:49:51]wFMCommunicate OK [19:49:51]SAM_PROTO_SignData done [19:49:51]FM_MakeSignedData done [19:49:51]CreateOFDProtocolMessage [19:49:51]wFMCommunicate request_size=4 [19:49:51]MH_SAM_APDU [19:49:51]CAPDU: 80 11 00 00 [19:49:51]Write to MH i2c: E2 08 00 84 B6 80 11 00 00 00 00 00 00 B4 [19:49:51]Write i2c OK [19:49:51]MH_I2C_Read... [19:49:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:49:51]Read from MH i2c: E2 [19:49:51]MH_I2C_Read... [19:49:51]Read from MH i2c: E2 17 00 [19:49:51]MH_I2C_Read... [19:49:51]Read from MH i2c: E2 17 00 84 B6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 03 [19:49:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:49:51]wFMCommunicate OK [19:49:51]CreateOFDProtocolMessage done [19:49:51]OFDSenderStorePacket 29326 [19:49:51]StoreOFDPacket docnum=29326 [19:49:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 B3 D9 07 01 18 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 EC 00 00 00 F4 03 04 00 69 33 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8E 72 00 00 35 04 06 00 EA 55 AB E6 CF 55 4B F0 02 55 97 BD 67 E3 [19:49:51]CheckFolder [19:49:51]dirname=/storage/ofd_packets [19:49:51]CheckFolder done [19:49:51]ProducePacketName [19:49:51]name=ofd_packets/00029326 [19:49:51]NVStorageSaveData ofd_packets/00029326 [19:49:51]File name is /storage/ofd_packets/00029326 [19:49:51]Write 301 bytes [19:49:51]NVStorageSaveData done [19:49:51]OFDSenderStorePacket done [19:49:51]KKMCreateOFDPacket done [19:49:51]NVStorageSaveData kkm_last_timestamp [19:49:51]File name is /storage/kkm_last_timestamp [19:49:51]Write 4 bytes [19:49:51]NVStorageSaveData done [19:49:51]ExternCall_PrintAddStr [19:49:51]wPrintStart [19:49:51]Write to MH i2c: 01 00 00 85 B6 3B [19:49:51]Write i2c OK [19:49:51]MH_I2C_Read... [19:49:51]Read from MH i2c: 01 [19:49:51]MH_I2C_Read... [19:49:51]Read from MH i2c: 01 07 00 [19:49:51]MH_I2C_Read... [19:49:51]Read from MH i2c: 01 07 00 85 B6 00 00 00 00 00 FF 0F 50 [19:49:51]RasterBufferAndPrint [19:49:51]line Счет N : (1)347716 [19:49:51]line ИНН: 02508201610067 [19:49:51]line Контрольно-Кассовый Чек [19:49:51]line ПРОДАЖА [19:49:51]line ТРК (МРК, ГНК) : 32 [19:49:51]line Товар: 2710124130 [19:49:51]line Аи-92-К-5 [19:49:51]line 7.780 * 64.30 [19:49:51]line = 500.25 [19:49:51]line НДС 12% НСП 1% [19:49:51]line > о реализуемом товаре [19:49:51]line ОКРУГЛЕНИЕ: -0.25 [19:49:51]line ИТОГО: 500.00 [19:49:51]line Внесено: 500.00 [19:49:51]line СДАЧА: 0.00 [19:49:51]line НСП 1% : 4.43 [19:49:51]line НДС 12% : 53.12 [19:49:51]line Наличными: 500.00 [19:49:51]line Безнал.: 0.00 [19:49:51]line Место: АЗС № 108 "Партнер Нефть" [19:49:51]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [19:49:51]line СНО: Общий режим [19:49:51]line Чек 236 14.04.2024 19:50 [19:49:51]line Смена: 116 ФФД: 1.0 [19:49:51]line ЗНМ: 0300000027 [19:49:51]line РНМ: 0000138879044617 [19:49:51]line Версия ККМ: 001 [19:49:51]line ФМ: 0000000000963154 [19:49:51]line ФД: 29326 [19:49:51]line ФПД: 257653677150037 [19:49:52]line 1/tax-web-control/client/api/v1/ticket?date=20240414T195001&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29326&fm=257653677150037&tin=02508201610067®Number=0000138879044617&sum=50000 [19:49:52]OFD Sender: Processing packet 29326 [packets to send 8, broken 7] [19:49:52]ProducePacketName [19:49:52]name=ofd_packets/00029326 [19:49:52]OFD Sender: To server: pG, [19:49:52]CommunicateWithHost lk.salyk.kg:30040 [19:49:52]ConnectInit lk.salyk.kg [19:49:52]written 0, free lines is 4095 [19:49:52]Connected sock=10 [19:49:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 B3 D9 07 01 18 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 EC 00 00 00 F4 03 04 00 69 33 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8E 72 00 00 35 04 06 00 EA 55 AB E6 CF 55 4B F0 02 55 97 BD 67 E3 [19:49:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 12 17 47 00 90 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 39 36 33 31 35 34 10 04 04 00 8E 72 00 00 F4 03 04 00 0D DE 1B 66 B6 04 01 00 00 AA 34 0F E3 91 CF 48 72 [19:49:52]CommunicateWithHost err = 0 [19:49:52]CheckOFDResponse [19:49:52]1017 (14) - 77093643461234 [19:49:52]1041 (16) - 0000000000963154 [19:49:52]1040 (4) - 29326 [19:49:52]1012 (4) - 14.04.2024 13:45 [19:49:52]1206 (1) - 0 [19:49:52]OFD Sender: Remove packet 29326 [19:49:52]ProducePacketName [19:49:52]name=ofd_packets/00029326 [19:49:52]NVStorageDeleteData [19:49:52]Write to MH i2c: 01 00 00 AF B6 65 [19:49:52]Write i2c OK [19:49:52]MH_I2C_Read... [19:49:52]Read from MH i2c: 01 [19:49:52]MH_I2C_Read... [19:49:52]Read from MH i2c: 01 07 00 [19:49:52]MH_I2C_Read... [19:49:52]Read from MH i2c: 01 07 00 AF B6 00 00 00 00 00 D1 0C 49 [19:49:52]RasterBufferAndPrint [19:49:52]line [19:49:52]line [19:49:52]line [19:49:52]line [19:49:52]line [19:49:52]written 0, free lines is 3288 [19:49:52]MH_Cut [19:49:52]Write to MH i2c: D1 01 00 B6 B6 01 3E [19:49:52]Write i2c OK [19:49:52]MH_I2C_Read... [19:49:52]Read from MH i2c: D1 [19:49:52]MH_I2C_Read... [19:49:52]Read from MH i2c: D1 01 00 [19:49:52]MH_I2C_Read... [19:49:52]Read from MH i2c: D1 01 00 B6 B6 00 3D [19:49:52]Write to MH i2c: 01 00 00 B7 B6 6D [19:49:52]Write i2c OK [19:49:52]MH_I2C_Read... [19:49:53]OFD Sender: No OFD packet to send [19:49:53]*** Cut start [19:49:53]*** Partial cut [19:49:53]*** CUTSNS_PIN = 1 [19:49:53]*** CUTSNS_PIN = 0 [19:49:53]*** Brake cut motor [19:49:54]Read from MH i2c: 01 [19:49:54]MH_I2C_Read... [19:49:54]*** Stop cut motor [19:49:54]*** Cut end [19:49:54]Read from MH i2c: 01 07 00 [19:49:54]MH_I2C_Read... [19:49:54]Read from MH i2c: 01 07 00 B7 B6 00 00 00 00 00 FF 0F 82 [19:49:54]process_action close_receipt done [19:49:54]requested_data is exist [19:49:54]produce_requested_data [19:49:54]requested_item fm.sn is exist - process it [19:49:54]wFMCommunicate request_size=4 [19:49:54]MH_SAM_APDU [19:49:54]CAPDU: 80 11 00 00 [19:49:54]Write to MH i2c: E2 08 00 B8 B6 80 11 00 00 00 00 00 00 E8 [19:49:54]Write i2c OK [19:49:54]MH_I2C_Read... [19:49:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:49:54]Read from MH i2c: E2 [19:49:54]MH_I2C_Read... [19:49:54]Read from MH i2c: E2 17 00 [19:49:54]MH_I2C_Read... [19:49:54]Read from MH i2c: E2 17 00 B8 B6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 37 [19:49:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:49:54]wFMCommunicate OK [19:49:54]requested_item fd.num is exist - process it [19:49:54]SAM_PROTO_GetFieldsCounters [19:49:54]wFMCommunicate request_size=4 [19:49:54]MH_SAM_APDU [19:49:54]CAPDU: 80 13 00 00 [19:49:54]Write to MH i2c: E2 08 00 B9 B6 80 13 00 00 00 00 00 00 EB [19:49:54]Write i2c OK [19:49:54]MH_I2C_Read... [19:49:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:49:54]Read from MH i2c: E2 [19:49:54]MH_I2C_Read... [19:49:54]Read from MH i2c: E2 62 00 [19:49:54]MH_I2C_Read... [19:49:54]Read from MH i2c: E2 62 00 B9 B6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 8E 72 00 00 0E 04 04 00 74 00 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 61 [19:49:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 8E 72 00 00 0E 04 04 00 74 00 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 [19:49:54]wFMCommunicate OK [19:49:54]SAM_PROTO_GetFieldsCounters done [19:49:54]requested_item shift.num is exist - process it [19:49:54]requested_item shift.opened is exist - process it [19:49:54]req_shift_opened [19:49:54]FM_GetShiftState [19:49:54]SAM_PROTO_GetShiftState [19:49:54]wFMCommunicate request_size=4 [19:49:54]MH_SAM_APDU [19:49:54]CAPDU: 80 13 01 00 [19:49:54]Write to MH i2c: E2 08 00 BA B6 80 13 01 00 00 00 00 00 ED [19:49:54]Write i2c OK [19:49:54]MH_I2C_Read... [19:49:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:49:54]Read from MH i2c: E2 [19:49:54]MH_I2C_Read... [19:49:54]Read from MH i2c: E2 0E 00 [19:49:54]MH_I2C_Read... [19:49:54]Read from MH i2c: E2 0E 00 BA B6 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 99 [19:49:54]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [19:49:54]wFMCommunicate OK [19:49:54]SAM_PROTO_GetShiftState done [19:49:54]FM_GetShiftState done [19:49:54]req_shift_opened done [19:49:54]requested_item shift.open_date is exist - process it [19:49:54]req_shift_open_date [19:49:54]req_shift_open_date done [19:49:54]produce_requested_data done [19:49:54]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29326,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [19:49:54]process_action_free close_receipt [19:49:54]json_value_free [19:49:54]json_value_free done [19:49:54]process_json_proto returns [19:49:54]Send response to host [19:49:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29326,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [19:49:54]free response buf [19:49:54]execute_script done [19:49:54]execute_script returns [19:49:54]free content buf [19:49:54]Sock 7.Close socket [19:49:54]Sock 7.Thread stoped [19:49:58]OFD Sender: No OFD packet to send [19:50:03]OFD Sender: No OFD packet to send [19:50:08]OFD Sender: No OFD packet to send [19:50:13]OFD Sender: No OFD packet to send [19:50:18]OFD Sender: No OFD packet to send [19:50:23]OFD Sender: No OFD packet to send [19:50:28]OFD Sender: No OFD packet to send [19:50:33]OFD Sender: No OFD packet to send [19:50:38]OFD Sender: No OFD packet to send [19:50:43]OFD Sender: No OFD packet to send [19:50:48]OFD Sender: No OFD packet to send [19:50:53]OFD Sender: No OFD packet to send [19:50:54]accept exits with 9 [19:50:54]New connection [19:50:54]New thread 3066928484 created [19:50:54]Thread 3066785124 joined [19:50:54]Waiting for new connection... [19:50:54] Sock 9.Parse request [19:50:54]Sock 9.Check first char [19:50:54]Sock 9.First char is OK [19:50:54]request: POST /json_proto HTTP/1.0 [19:50:54]Method: POST [19:50:54]URL: /json_proto [19:50:54]Method is POST - this is cgi request [19:50:54]url: /json_proto [19:50:54]query_string will be loaded in cgi processing [19:50:54]execute_cgi json_proto POST (null) [19:50:54]execute_cgi path=json_proto method=POST [19:50:54]POST find Content-Length [19:50:54]Host: 172.17.33.3:8080 [19:50:54]Content-Length: 681 [19:50:54]Content-Type: application/json [19:50:54] [19:50:54]POST finish read [19:50:54]Found Content-Length = 681 [19:50:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347717", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 15.200, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:50:54]execute_script... [19:50: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)347717", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 15.200, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:50:54]POST & json_proto [19:50:54]process_json_proto [19:50:54]json parsed OK: [19:50:54]protocol is kg_v1.0 [19:50:54]action value=close_receipt [19:50:54]process_action close_receipt [19:50:54]cmd_close_receipt [19:50:54]MH_GetDate [19:50:54]Write to MH i2c: F0 00 00 BB B6 60 [19:50:54]Write i2c OK [19:50:54]MH_I2C_Read... [19:50:54]Read from MH i2c: F0 [19:50:54]MH_I2C_Read... [19:50:54]Read from MH i2c: F0 09 00 [19:50:54]MH_I2C_Read... [19:50:54]Read from MH i2c: F0 09 00 BB B6 00 A9 33 1C 66 23 5B 8F 65 39 [19:50:54]GetLastDocTimeStamp 1713124201 [19:50:54]current date 1713124265 [19:50:54]FM_GetShiftState [19:50:54]SAM_PROTO_GetShiftState [19:50:54]wFMCommunicate request_size=4 [19:50:54]MH_SAM_APDU [19:50:54]CAPDU: 80 13 01 00 [19:50:54]Write to MH i2c: E2 08 00 BC B6 80 13 01 00 00 00 00 00 EF [19:50:54]Write i2c OK [19:50:54]MH_I2C_Read... [19:50:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:50:54]Read from MH i2c: E2 [19:50:54]MH_I2C_Read... [19:50:54]Read from MH i2c: E2 0E 00 [19:50:54]MH_I2C_Read... [19:50:54]Read from MH i2c: E2 0E 00 BC B6 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 9B [19:50:54]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [19:50:54]wFMCommunicate OK [19:50:54]SAM_PROTO_GetShiftState done [19:50:54]FM_GetShiftState done [19:50:54]opened in 1713053951 [19:50:54]opened+sec_in_day 1713140351 [19:50:54]quantity*price = 50008 [19:50:54]sum+1 = 50009 [19:50:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 237 14.04.2024 19:51 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29327 ФПД: 200109542211205 1/tax-web-control/client/api/v1/ticket?date=20240414T195105&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29327&fm=200109542211205&tin=02508201610067®Number=0000138879044617&sum=50000 [19:50:55]StoreToDocumentArchive [19:50:55]shift 116 fd 29327 [19:50:55]save to /storage/0116/doc_00029327 [19:50:55]save last doc name /storage/0116/doc_00029327 to /storage/kkm_last_doc_name [19:50:55]save OK [19:50:55]Clear old archive folders... [19:50:55]ProcessDocumentItem done err = 0, tmpTLVsize=250 [19:50:55]tlvbuf is 011DA6D0 [19:50:55]SAM_PROTO_ClearQueue [19:50:55]wFMCommunicate request_size=4 [19:50:55]MH_SAM_APDU [19:50:55]CAPDU: 80 09 00 00 [19:50:55]Write to MH i2c: E2 08 00 C9 B6 80 09 00 00 00 00 00 00 F1 [19:50:55]Write i2c OK [19:50:55]MH_I2C_Read... [19:50:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:50:55]Read from MH i2c: E2 [19:50:55]MH_I2C_Read... [19:50:55]Read from MH i2c: E2 03 00 [19:50:55]MH_I2C_Read... [19:50:55]Read from MH i2c: E2 03 00 C9 B6 00 90 00 F3 [19:50:55]RAPDU: 90 00 [19:50:55]wFMCommunicate OK [19:50:55]SAM_PROTO_ClearQueue done [19:50:55]KKMCreateOFDPacket [19:50:55]OFDProtocolAddRootSTLVToBuf [19:50:55]FM_MakeSignedData [19:50:55]FM_MakeSignedData [19:50:55]SAM_PROTO_SignData [19:50:55]wFMCommunicate request_size=4 [19:50:55]MH_SAM_APDU [19:50:55]CAPDU: 80 0D 01 02 [19:50:55]Write to MH i2c: E2 08 00 CA B6 80 0D 01 02 00 00 00 00 F9 [19:50:55]Write i2c OK [19:50:55]MH_I2C_Read... [19:50:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:50:55]Read from MH i2c: E2 [19:50:55]MH_I2C_Read... [19:50:55]Read from MH i2c: E2 03 00 [19:50:55]MH_I2C_Read... [19:50:55]Read from MH i2c: E2 03 00 CA B6 00 90 00 F4 [19:50:55]RAPDU: 90 00 [19:50:55]wFMCommunicate OK [19:50:55]wFMCommunicate request_size=255 [19:50:55]MH_SAM_APDU [19:50:55]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 A9 33 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8F 72 00 00 35 04 06 00 B5 FF [19:50:55]Write to MH i2c: E2 02 01 CB B6 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 A9 33 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8F 72 00 00 35 04 06 00 B5 FF 00 00 94 [19:50:55]Write i2c OK [19:50:55]MH_I2C_Read... [19:50:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:50:55]Read from MH i2c: E2 [19:50:55]MH_I2C_Read... [19:50:55]Read from MH i2c: E2 03 00 [19:50:55]MH_I2C_Read... [19:50:55]Read from MH i2c: E2 03 00 CB B6 00 90 00 F5 [19:50:55]RAPDU: 90 00 [19:50:55]wFMCommunicate OK [19:50:55]wFMCommunicate request_size=9 [19:50:55]MH_SAM_APDU [19:50:55]CAPDU: 80 0D 02 02 04 A2 2D FE 85 [19:50:55]Write to MH i2c: E2 0C 00 CC B6 80 0D 02 02 04 00 A2 2D FE 85 00 00 56 [19:50:55]Write i2c OK [19:50:55]MH_I2C_Read... [19:50:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:50:55]Read from MH i2c: E2 [19:50:55]MH_I2C_Read... [19:50:55]Read from MH i2c: E2 03 00 [19:50:55]MH_I2C_Read... [19:50:55]Read from MH i2c: E2 03 00 CC B6 00 90 00 F6 [19:50:55]RAPDU: 90 00 [19:50:55]wFMCommunicate OK [19:50:55]wFMCommunicate request_size=4 [19:50:55]MH_SAM_APDU [19:50:55]CAPDU: 80 0D 03 02 [19:50:55]Write to MH i2c: E2 08 00 CD B6 80 0D 03 02 00 00 00 00 FE [19:50:55]Write i2c OK [19:50:55]MH_I2C_Read... [19:50:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:50:55]Read from MH i2c: E2 [19:50:55]MH_I2C_Read... [19:50:55]Read from MH i2c: E2 0B 00 [19:50:55]MH_I2C_Read... [19:50:55]Read from MH i2c: E2 0B 00 CD B6 00 8D 57 D0 04 AF 5F AE 82 90 00 F5 [19:50:55]RAPDU: 8D 57 D0 04 AF 5F AE 82 90 00 [19:50:55]wFMCommunicate OK [19:50:55]SAM_PROTO_SignData done [19:50:55]FM_MakeSignedData done [19:50:55]CreateOFDProtocolMessage [19:50:55]wFMCommunicate request_size=4 [19:50:55]MH_SAM_APDU [19:50:55]CAPDU: 80 11 00 00 [19:50:55]Write to MH i2c: E2 08 00 CE B6 80 11 00 00 00 00 00 00 FE [19:50:55]Write i2c OK [19:50:55]MH_I2C_Read... [19:50:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:50:55]Read from MH i2c: E2 [19:50:55]MH_I2C_Read... [19:50:55]Read from MH i2c: E2 17 00 [19:50:55]MH_I2C_Read... [19:50:55]Read from MH i2c: E2 17 00 CE B6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 4D [19:50:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:50:55]wFMCommunicate OK [19:50:55]CreateOFDProtocolMessage done [19:50:55]OFDSenderStorePacket 29327 [19:50:55]StoreOFDPacket docnum=29327 [19:50:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 43 4B 06 01 06 89 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 A9 33 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8F 72 00 00 35 04 06 00 B5 FF A2 2D FE 85 8D 57 D0 04 AF 5F AE 82 [19:50:55]CheckFolder [19:50:55]dirname=/storage/ofd_packets [19:50:55]CheckFolder done [19:50:55]ProducePacketName [19:50:55]name=ofd_packets/00029327 [19:50:55]NVStorageSaveData ofd_packets/00029327 [19:50:55]File name is /storage/ofd_packets/00029327 [19:50:55]Write 300 bytes [19:50:55]NVStorageSaveData done [19:50:55]OFDSenderStorePacket done [19:50:55]KKMCreateOFDPacket done [19:50:55]NVStorageSaveData kkm_last_timestamp [19:50:55]File name is /storage/kkm_last_timestamp [19:50:55]Write 4 bytes [19:50:55]NVStorageSaveData done [19:50:55]ExternCall_PrintAddStr [19:50:55]wPrintStart [19:50:55]Write to MH i2c: 01 00 00 CF B6 85 [19:50:55]Write i2c OK [19:50:55]MH_I2C_Read... [19:50:55]Read from MH i2c: 01 [19:50:55]MH_I2C_Read... [19:50:55]Read from MH i2c: 01 07 00 [19:50:55]MH_I2C_Read... [19:50:55]Read from MH i2c: 01 07 00 CF B6 00 00 00 00 00 FF 0F 9A [19:50:55]RasterBufferAndPrint [19:50:55]line Счет N : (1)347717 [19:50:55]line ИНН: 02508201610067 [19:50:55]line Контрольно-Кассовый Чек [19:50:55]line ПРОДАЖА [19:50:55]line ТРК (МРК, ГНК) : 71 [19:50:55]line Товар: 2711129700 [19:50:55]line ГАЗ-К-5 [19:50:55]line 15.200 * 32.90 [19:50:55]line = 500.08 [19:50:55]line НДС 12% НСП 1% [19:50:55]line > о реализуемом товаре [19:50:55]line ОКРУГЛЕНИЕ: -0.08 [19:50:55]line ИТОГО: 500.00 [19:50:55]line Внесено: 500.00 [19:50:55]line СДАЧА: 0.00 [19:50:55]line НСП 1% : 4.42 [19:50:55]line НДС 12% : 53.11 [19:50:55]line Наличными: 500.00 [19:50:55]line Безнал.: 0.00 [19:50:55]line Место: АЗС № 108 "Партнер Нефть" [19:50:55]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [19:50:55]line СНО: Общий режим [19:50:55]line Чек 237 14.04.2024 19:51 [19:50:55]line Смена: 116 ФФД: 1.0 [19:50:55]line ЗНМ: 0300000027 [19:50:55]line РНМ: 0000138879044617 [19:50:55]line Версия ККМ: 001 [19:50:55]line ФМ: 0000000000963154 [19:50:55]line ФД: 29327 [19:50:55]line ФПД: 200109542211205 [19:50:55]line 1/tax-web-control/client/api/v1/ticket?date=20240414T195105&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29327&fm=200109542211205&tin=02508201610067®Number=0000138879044617&sum=50000 [19:50:56]OFD Sender: Processing packet 29327 [packets to send 8, broken 7] [19:50:56]ProducePacketName [19:50:56]name=ofd_packets/00029327 [19:50:56]OFD Sender: To server: pG, [19:50:56]CommunicateWithHost lk.salyk.kg:30040 [19:50:56]ConnectInit lk.salyk.kg [19:50:56]written 0, free lines is 4095 [19:50:56]Connected sock=10 [19:50:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 43 4B 06 01 06 89 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 A9 33 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8F 72 00 00 35 04 06 00 B5 FF A2 2D FE 85 8D 57 D0 04 AF 5F AE 82 [19:50:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 4B 8E 47 00 4B 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 39 36 33 31 35 34 10 04 04 00 8F 72 00 00 F4 03 04 00 4C DE 1B 66 B6 04 01 00 00 21 8C 80 D7 F1 AC BB 7C [19:50:56]CommunicateWithHost err = 0 [19:50:56]CheckOFDResponse [19:50:56]1017 (14) - 77093643461234 [19:50:56]1041 (16) - 0000000000963154 [19:50:56]1040 (4) - 29327 [19:50:56]1012 (4) - 14.04.2024 13:46 [19:50:56]1206 (1) - 0 [19:50:56]OFD Sender: Remove packet 29327 [19:50:56]ProducePacketName [19:50:56]name=ofd_packets/00029327 [19:50:56]NVStorageDeleteData [19:50:56]Write to MH i2c: 01 00 00 F9 B6 AF [19:50:56]Write i2c OK [19:50:56]MH_I2C_Read... [19:50:56]Read from MH i2c: 01 [19:50:56]MH_I2C_Read... [19:50:56]Read from MH i2c: 01 07 00 [19:50:56]MH_I2C_Read... [19:50:56]Read from MH i2c: 01 07 00 F9 B6 00 00 00 00 00 D3 0C 95 [19:50:56]RasterBufferAndPrint [19:50:56]line [19:50:56]line [19:50:56]line [19:50:56]line [19:50:56]line [19:50:56]written 0, free lines is 3290 [19:50:56]MH_Cut [19:50:56]Write to MH i2c: D1 01 00 00 B7 01 89 [19:50:56]Write i2c OK [19:50:56]MH_I2C_Read... [19:50:56]Read from MH i2c: D1 [19:50:56]MH_I2C_Read... [19:50:56]Read from MH i2c: D1 01 00 [19:50:56]MH_I2C_Read... [19:50:56]Read from MH i2c: D1 01 00 00 B7 00 88 [19:50:56]Write to MH i2c: 01 00 00 01 B7 B8 [19:50:56]Write i2c OK [19:50:56]MH_I2C_Read... [19:50:56]OFD Sender: No OFD packet to send [19:50:57]*** Cut start [19:50:57]*** Partial cut [19:50:57]*** CUTSNS_PIN = 1 [19:50:57]*** CUTSNS_PIN = 0 [19:50:57]*** Brake cut motor [19:50:57]Read from MH i2c: 01 [19:50:57]MH_I2C_Read... [19:50:57]*** Stop cut motor [19:50:57]*** Cut end [19:50:57]Read from MH i2c: 01 07 00 [19:50:57]MH_I2C_Read... [19:50:57]Read from MH i2c: 01 07 00 01 B7 00 00 00 00 00 FF 0F CD [19:50:57]process_action close_receipt done [19:50:57]requested_data is exist [19:50:57]produce_requested_data [19:50:57]requested_item fm.sn is exist - process it [19:50:57]wFMCommunicate request_size=4 [19:50:57]MH_SAM_APDU [19:50:57]CAPDU: 80 11 00 00 [19:50:57]Write to MH i2c: E2 08 00 02 B7 80 11 00 00 00 00 00 00 33 [19:50:57]Write i2c OK [19:50:57]MH_I2C_Read... [19:50:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:50:58]Read from MH i2c: E2 [19:50:58]MH_I2C_Read... [19:50:58]Read from MH i2c: E2 17 00 [19:50:58]MH_I2C_Read... [19:50:58]Read from MH i2c: E2 17 00 02 B7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 82 [19:50:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:50:58]wFMCommunicate OK [19:50:58]requested_item fd.num is exist - process it [19:50:58]SAM_PROTO_GetFieldsCounters [19:50:58]wFMCommunicate request_size=4 [19:50:58]MH_SAM_APDU [19:50:58]CAPDU: 80 13 00 00 [19:50:58]Write to MH i2c: E2 08 00 03 B7 80 13 00 00 00 00 00 00 36 [19:50:58]Write i2c OK [19:50:58]MH_I2C_Read... [19:50:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:50:58]Read from MH i2c: E2 [19:50:58]MH_I2C_Read... [19:50:58]Read from MH i2c: E2 62 00 [19:50:58]MH_I2C_Read... [19:50:58]Read from MH i2c: E2 62 00 03 B7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 8F 72 00 00 0E 04 04 00 74 00 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 B0 [19:50:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 8F 72 00 00 0E 04 04 00 74 00 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 [19:50:58]wFMCommunicate OK [19:50:58]SAM_PROTO_GetFieldsCounters done [19:50:58]requested_item shift.num is exist - process it [19:50:58]requested_item shift.opened is exist - process it [19:50:58]req_shift_opened [19:50:58]FM_GetShiftState [19:50:58]SAM_PROTO_GetShiftState [19:50:58]wFMCommunicate request_size=4 [19:50:58]MH_SAM_APDU [19:50:58]CAPDU: 80 13 01 00 [19:50:58]Write to MH i2c: E2 08 00 04 B7 80 13 01 00 00 00 00 00 38 [19:50:58]Write i2c OK [19:50:58]MH_I2C_Read... [19:50:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:50:58]Read from MH i2c: E2 [19:50:58]MH_I2C_Read... [19:50:58]Read from MH i2c: E2 0E 00 [19:50:58]MH_I2C_Read... [19:50:58]Read from MH i2c: E2 0E 00 04 B7 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 E4 [19:50:58]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [19:50:58]wFMCommunicate OK [19:50:58]SAM_PROTO_GetShiftState done [19:50:58]FM_GetShiftState done [19:50:58]req_shift_opened done [19:50:58]requested_item shift.open_date is exist - process it [19:50:58]req_shift_open_date [19:50:58]req_shift_open_date done [19:50:58]produce_requested_data done [19:50:58]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29327,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [19:50:58]process_action_free close_receipt [19:50:58]json_value_free [19:50:58]json_value_free done [19:50:58]process_json_proto returns [19:50:58]Send response to host [19:50:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29327,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [19:50:58]free response buf [19:50:58]execute_script done [19:50:58]execute_script returns [19:50:58]free content buf [19:50:58]Sock 9.Close socket [19:50:58]Sock 9.Thread stoped [19:51:01]OFD Sender: No OFD packet to send [19:51:06]OFD Sender: No OFD packet to send [19:51:11]OFD Sender: No OFD packet to send [19:51:16]OFD Sender: No OFD packet to send [19:51:21]OFD Sender: No OFD packet to send [19:51:26]OFD Sender: No OFD packet to send [19:51:31]OFD Sender: No OFD packet to send [19:51:36]OFD Sender: No OFD packet to send [19:51:40]accept exits with 7 [19:51:40]New connection [19:51:40]New thread 3066785124 created [19:51:40]Thread 3066928484 joined [19:51:40]Waiting for new connection... [19:51:40] Sock 7.Parse request [19:51:40]Sock 7.Check first char [19:51:40]Sock 7.First char is OK [19:51:40]request: POST /json_proto HTTP/1.0 [19:51:40]Method: POST [19:51:40]URL: /json_proto [19:51:40]Method is POST - this is cgi request [19:51:40]url: /json_proto [19:51:40]query_string will be loaded in cgi processing [19:51:40]execute_cgi json_proto POST (null) [19:51:40]execute_cgi path=json_proto method=POST [19:51:40]POST find Content-Length [19:51:40]Host: 172.17.33.3:8080 [19:51:40]Content-Length: 798 [19:51:40]Content-Type: application/json [19:51:40] [19:51:40]POST finish read [19:51:40]Found Content-Length = 798 [19:51:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347718", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 3.170, "sum" : 207.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" : 207.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:51:40]execute_script... [19:51: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)347718", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 3.170, "sum" : 207.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" : 207.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:51:40]POST & json_proto [19:51:40]process_json_proto [19:51:40]json parsed OK: [19:51:40]protocol is kg_v1.0 [19:51:40]action value=close_receipt [19:51:40]process_action close_receipt [19:51:40]cmd_close_receipt [19:51:40]MH_GetDate [19:51:40]Write to MH i2c: F0 00 00 05 B7 AB [19:51:40]Write i2c OK [19:51:40]MH_I2C_Read... [19:51:40]Read from MH i2c: F0 [19:51:40]MH_I2C_Read... [19:51:40]Read from MH i2c: F0 09 00 [19:51:40]MH_I2C_Read... [19:51:40]Read from MH i2c: F0 09 00 05 B7 00 D8 33 1C 66 23 5B 8F 65 B3 [19:51:40]GetLastDocTimeStamp 1713124265 [19:51:40]current date 1713124312 [19:51:40]FM_GetShiftState [19:51:40]SAM_PROTO_GetShiftState [19:51:40]wFMCommunicate request_size=4 [19:51:40]MH_SAM_APDU [19:51:40]CAPDU: 80 13 01 00 [19:51:40]Write to MH i2c: E2 08 00 06 B7 80 13 01 00 00 00 00 00 3A [19:51:40]Write i2c OK [19:51:40]MH_I2C_Read... [19:51:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:51:40]Read from MH i2c: E2 [19:51:40]MH_I2C_Read... [19:51:40]Read from MH i2c: E2 0E 00 [19:51:40]MH_I2C_Read... [19:51:40]Read from MH i2c: E2 0E 00 06 B7 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 E6 [19:51:40]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [19:51:40]wFMCommunicate OK [19:51:40]SAM_PROTO_GetShiftState done [19:51:40]FM_GetShiftState done [19:51:40]opened in 1713053951 [19:51:40]opened+sec_in_day 1713140351 [19:51:40]quantity*price = 20700 [19:51:40]sum+1 = 20701 [19:51:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 207.00 НСП 1% : 1.83 НДС 12% : 21.98 Наличными: 0.00 Безнал.: 207.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 238 14.04.2024 19:51 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29328 ФПД: 4013597397463 1/tax-web-control/client/api/v1/ticket?date=20240414T195152&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29328&fm=4013597397463&tin=02508201610067®Number=0000138879044617&sum=20700 [19:51:41]StoreToDocumentArchive [19:51:41]shift 116 fd 29328 [19:51:41]save to /storage/0116/doc_00029328 [19:51:41]save last doc name /storage/0116/doc_00029328 to /storage/kkm_last_doc_name [19:51:41]save OK [19:51:41]Clear old archive folders... [19:51:41]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:51:41]tlvbuf is 011EE680 [19:51:41]SAM_PROTO_ClearQueue [19:51:41]wFMCommunicate request_size=4 [19:51:41]MH_SAM_APDU [19:51:41]CAPDU: 80 09 00 00 [19:51:41]Write to MH i2c: E2 08 00 13 B7 80 09 00 00 00 00 00 00 3C [19:51:41]Write i2c OK [19:51:41]MH_I2C_Read... [19:51:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:51:41]Read from MH i2c: E2 [19:51:41]MH_I2C_Read... [19:51:41]Read from MH i2c: E2 03 00 [19:51:41]MH_I2C_Read... [19:51:41]Read from MH i2c: E2 03 00 13 B7 00 90 00 3E [19:51:41]RAPDU: 90 00 [19:51:41]wFMCommunicate OK [19:51:41]SAM_PROTO_ClearQueue done [19:51:41]KKMCreateOFDPacket [19:51:41]OFDProtocolAddRootSTLVToBuf [19:51:41]FM_MakeSignedData [19:51:41]FM_MakeSignedData [19:51:41]SAM_PROTO_SignData [19:51:41]wFMCommunicate request_size=4 [19:51:41]MH_SAM_APDU [19:51:41]CAPDU: 80 0D 01 02 [19:51:41]Write to MH i2c: E2 08 00 14 B7 80 0D 01 02 00 00 00 00 44 [19:51:41]Write i2c OK [19:51:41]MH_I2C_Read... [19:51:41]OFD Sender: No OFD packet to send [19:51:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:51:42]Read from MH i2c: E2 [19:51:42]MH_I2C_Read... [19:51:42]Read from MH i2c: E2 03 00 [19:51:42]MH_I2C_Read... [19:51:42]Read from MH i2c: E2 03 00 14 B7 00 90 00 3F [19:51:42]RAPDU: 90 00 [19:51:42]wFMCommunicate OK [19:51:42]wFMCommunicate request_size=255 [19:51:42]MH_SAM_APDU [19:51:42]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 62 0C 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 DC 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 96 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DC 50 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 D8 33 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 90 72 00 00 35 04 06 00 [19:51:42]Write to MH i2c: E2 02 01 15 B7 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 62 0C 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 DC 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 96 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DC 50 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 D8 33 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 90 72 00 00 35 04 06 00 00 00 E8 [19:51:42]Write i2c OK [19:51:42]MH_I2C_Read... [19:51:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:51:42]Read from MH i2c: E2 [19:51:42]MH_I2C_Read... [19:51:42]Read from MH i2c: E2 03 00 [19:51:42]MH_I2C_Read... [19:51:42]Read from MH i2c: E2 03 00 15 B7 00 90 00 40 [19:51:42]RAPDU: 90 00 [19:51:42]wFMCommunicate OK [19:51:42]wFMCommunicate request_size=11 [19:51:42]MH_SAM_APDU [19:51:42]CAPDU: 80 0D 02 02 06 03 A6 7D 0C 11 D7 [19:51:42]Write to MH i2c: E2 0E 00 16 B7 80 0D 02 02 06 00 03 A6 7D 0C 11 D7 00 00 6D [19:51:42]Write i2c OK [19:51:42]MH_I2C_Read... [19:51:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:51:42]Read from MH i2c: E2 [19:51:42]MH_I2C_Read... [19:51:42]Read from MH i2c: E2 03 00 [19:51:42]MH_I2C_Read... [19:51:42]Read from MH i2c: E2 03 00 16 B7 00 90 00 41 [19:51:42]RAPDU: 90 00 [19:51:42]wFMCommunicate OK [19:51:42]wFMCommunicate request_size=4 [19:51:42]MH_SAM_APDU [19:51:42]CAPDU: 80 0D 03 02 [19:51:42]Write to MH i2c: E2 08 00 17 B7 80 0D 03 02 00 00 00 00 49 [19:51:42]Write i2c OK [19:51:42]MH_I2C_Read... [19:51:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:51:42]Read from MH i2c: E2 [19:51:42]MH_I2C_Read... [19:51:42]Read from MH i2c: E2 0B 00 [19:51:42]MH_I2C_Read... [19:51:42]Read from MH i2c: E2 0B 00 17 B7 00 CD 17 A6 16 2A 30 BA E2 90 00 E0 [19:51:42]RAPDU: CD 17 A6 16 2A 30 BA E2 90 00 [19:51:42]wFMCommunicate OK [19:51:42]SAM_PROTO_SignData done [19:51:42]FM_MakeSignedData done [19:51:42]CreateOFDProtocolMessage [19:51:42]wFMCommunicate request_size=4 [19:51:42]MH_SAM_APDU [19:51:42]CAPDU: 80 11 00 00 [19:51:42]Write to MH i2c: E2 08 00 18 B7 80 11 00 00 00 00 00 00 49 [19:51:42]Write i2c OK [19:51:42]MH_I2C_Read... [19:51:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:51:42]Read from MH i2c: E2 [19:51:42]MH_I2C_Read... [19:51:42]Read from MH i2c: E2 17 00 [19:51:42]MH_I2C_Read... [19:51:42]Read from MH i2c: E2 17 00 18 B7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 98 [19:51:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:51:42]wFMCommunicate OK [19:51:42]CreateOFDProtocolMessage done [19:51:42]OFDSenderStorePacket 29328 [19:51:42]StoreOFDPacket docnum=29328 [19:51:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 A1 48 08 01 A3 BF 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 62 0C 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 DC 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 96 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DC 50 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 D8 33 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 90 72 00 00 35 04 06 00 03 A6 7D 0C 11 D7 CD 17 A6 16 2A 30 BA E2 [19:51:42]CheckFolder [19:51:42]dirname=/storage/ofd_packets [19:51:42]CheckFolder done [19:51:42]ProducePacketName [19:51:42]name=ofd_packets/00029328 [19:51:42]NVStorageSaveData ofd_packets/00029328 [19:51:42]File name is /storage/ofd_packets/00029328 [19:51:42]Write 302 bytes [19:51:42]NVStorageSaveData done [19:51:42]OFDSenderStorePacket done [19:51:42]KKMCreateOFDPacket done [19:51:42]NVStorageSaveData kkm_last_timestamp [19:51:42]File name is /storage/kkm_last_timestamp [19:51:42]Write 4 bytes [19:51:42]NVStorageSaveData done [19:51:42]ExternCall_PrintAddStr [19:51:42]wPrintStart [19:51:42]Write to MH i2c: 01 00 00 19 B7 D0 [19:51:42]Write i2c OK [19:51:42]MH_I2C_Read... [19:51:42]Read from MH i2c: 01 [19:51:42]MH_I2C_Read... [19:51:42]Read from MH i2c: 01 07 00 [19:51:42]MH_I2C_Read... [19:51:42]Read from MH i2c: 01 07 00 19 B7 00 00 00 00 00 FF 0F E5 [19:51:42]RasterBufferAndPrint [19:51:42]line Счет N : (1)347718 [19:51:42]line ИНН: 02508201610067 [19:51:42]line Контрольно-Кассовый Чек [19:51:42]line ПРОДАЖА [19:51:42]line ТРК (МРК, ГНК) : 12 [19:51:42]line Товар: 2710124130 [19:51:42]line SUPER-92-К-5 [19:51:42]line 3.170 * 65.30 [19:51:42]line = 207.00 [19:51:42]line НДС 12% НСП 1% [19:51:42]line > о реализуемом товаре [19:51:42]line ИТОГО: 207.00 [19:51:42]line НСП 1% : 1.83 [19:51:42]line НДС 12% : 21.98 [19:51:42]line Наличными: 0.00 [19:51:42]line Безнал.: 207.00 [19:51:42]line Место: АЗС № 108 "Партнер Нефть" [19:51:42]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [19:51:42]line СНО: Общий режим [19:51:42]line Чек 238 14.04.2024 19:51 [19:51:42]line Смена: 116 ФФД: 1.0 [19:51:42]line ЗНМ: 0300000027 [19:51:42]line РНМ: 0000138879044617 [19:51:42]line Версия ККМ: 001 [19:51:42]line Платежная система: О! деньги [19:51:42]line ФМ: 0000000000963154 [19:51:42]line ФД: 29328 [19:51:42]line ФПД: 4013597397463 [19:51:42]line 1/tax-web-control/client/api/v1/ticket?date=20240414T195152&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29328&fm=4013597397463&tin=02508201610067®Number=0000138879044617&sum=20700 [19:51:42]written 0, free lines is 4095 [19:51:42]OFD Sender: Processing packet 29328 [packets to send 8, broken 7] [19:51:42]ProducePacketName [19:51:42]name=ofd_packets/00029328 [19:51:42]OFD Sender: To server: pG, [19:51:42]CommunicateWithHost lk.salyk.kg:30040 [19:51:42]ConnectInit lk.salyk.kg [19:51:42]Connected sock=10 [19:51:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 A1 48 08 01 A3 BF 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 62 0C 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 DC 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 96 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DC 50 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 D8 33 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 90 72 00 00 35 04 06 00 03 A6 7D 0C 11 D7 CD 17 A6 16 2A 30 BA E2 [19:51:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 F6 D2 47 00 27 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 39 36 33 31 35 34 10 04 04 00 90 72 00 00 F4 03 04 00 7B DE 1B 66 B6 04 01 00 00 21 53 64 BE 01 E0 5C A1 [19:51:42]CommunicateWithHost err = 0 [19:51:42]CheckOFDResponse [19:51:42]1017 (14) - 77093643461234 [19:51:42]1041 (16) - 0000000000963154 [19:51:42]1040 (4) - 29328 [19:51:42]1012 (4) - 14.04.2024 13:47 [19:51:42]1206 (1) - 0 [19:51:42]OFD Sender: Remove packet 29328 [19:51:42]ProducePacketName [19:51:42]name=ofd_packets/00029328 [19:51:42]NVStorageDeleteData [19:51:42]Write to MH i2c: 01 00 00 42 B7 F9 [19:51:42]Write i2c OK [19:51:42]MH_I2C_Read... [19:51:42]Read from MH i2c: 01 [19:51:42]MH_I2C_Read... [19:51:42]Read from MH i2c: 01 07 00 [19:51:42]MH_I2C_Read... [19:51:42]Read from MH i2c: 01 07 00 42 B7 00 00 00 00 00 F4 0C 00 [19:51:42]RasterBufferAndPrint [19:51:42]line [19:51:42]line [19:51:42]line [19:51:42]line [19:51:42]line [19:51:42]written 0, free lines is 3324 [19:51:42]MH_Cut [19:51:42]Write to MH i2c: D1 01 00 49 B7 01 D2 [19:51:42]Write i2c OK [19:51:42]MH_I2C_Read... [19:51:42]Read from MH i2c: D1 [19:51:42]MH_I2C_Read... [19:51:42]Read from MH i2c: D1 01 00 [19:51:42]MH_I2C_Read... [19:51:42]Read from MH i2c: D1 01 00 49 B7 00 D1 [19:51:42]Write to MH i2c: 01 00 00 4A B7 01 [19:51:42]Write i2c OK [19:51:42]MH_I2C_Read... [19:51:43]OFD Sender: No OFD packet to send [19:51:43]*** Cut start [19:51:43]*** Partial cut [19:51:43]*** CUTSNS_PIN = 1 [19:51:43]*** CUTSNS_PIN = 0 [19:51:43]*** Brake cut motor [19:51:44]Read from MH i2c: 01 [19:51:44]MH_I2C_Read... [19:51:44]*** Stop cut motor [19:51:44]*** Cut end [19:51:44]Read from MH i2c: 01 07 00 [19:51:44]MH_I2C_Read... [19:51:44]Read from MH i2c: 01 07 00 4A B7 00 00 00 00 00 FF 0F 16 [19:51:44]process_action close_receipt done [19:51:44]requested_data is exist [19:51:44]produce_requested_data [19:51:44]requested_item fm.sn is exist - process it [19:51:44]wFMCommunicate request_size=4 [19:51:44]MH_SAM_APDU [19:51:44]CAPDU: 80 11 00 00 [19:51:44]Write to MH i2c: E2 08 00 4B B7 80 11 00 00 00 00 00 00 7C [19:51:44]Write i2c OK [19:51:44]MH_I2C_Read... [19:51:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:51:44]Read from MH i2c: E2 [19:51:44]MH_I2C_Read... [19:51:44]Read from MH i2c: E2 17 00 [19:51:44]MH_I2C_Read... [19:51:44]Read from MH i2c: E2 17 00 4B B7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 CB [19:51:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:51:44]wFMCommunicate OK [19:51:44]requested_item fd.num is exist - process it [19:51:44]SAM_PROTO_GetFieldsCounters [19:51:44]wFMCommunicate request_size=4 [19:51:44]MH_SAM_APDU [19:51:44]CAPDU: 80 13 00 00 [19:51:44]Write to MH i2c: E2 08 00 4C B7 80 13 00 00 00 00 00 00 7F [19:51:44]Write i2c OK [19:51:44]MH_I2C_Read... [19:51:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:51:44]Read from MH i2c: E2 [19:51:44]MH_I2C_Read... [19:51:44]Read from MH i2c: E2 62 00 [19:51:44]MH_I2C_Read... [19:51:44]Read from MH i2c: E2 62 00 4C B7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 90 72 00 00 0E 04 04 00 74 00 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 FD [19:51:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 90 72 00 00 0E 04 04 00 74 00 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 [19:51:44]wFMCommunicate OK [19:51:44]SAM_PROTO_GetFieldsCounters done [19:51:44]requested_item shift.num is exist - process it [19:51:44]requested_item shift.opened is exist - process it [19:51:44]req_shift_opened [19:51:44]FM_GetShiftState [19:51:44]SAM_PROTO_GetShiftState [19:51:44]wFMCommunicate request_size=4 [19:51:44]MH_SAM_APDU [19:51:44]CAPDU: 80 13 01 00 [19:51:44]Write to MH i2c: E2 08 00 4D B7 80 13 01 00 00 00 00 00 81 [19:51:44]Write i2c OK [19:51:44]MH_I2C_Read... [19:51:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:51:44]Read from MH i2c: E2 [19:51:44]MH_I2C_Read... [19:51:44]Read from MH i2c: E2 0E 00 [19:51:44]MH_I2C_Read... [19:51:44]Read from MH i2c: E2 0E 00 4D B7 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 2D [19:51:44]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [19:51:44]wFMCommunicate OK [19:51:44]SAM_PROTO_GetShiftState done [19:51:44]FM_GetShiftState done [19:51:44]req_shift_opened done [19:51:44]requested_item shift.open_date is exist - process it [19:51:44]req_shift_open_date [19:51:44]req_shift_open_date done [19:51:44]produce_requested_data done [19:51:44]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29328,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [19:51:44]process_action_free close_receipt [19:51:44]json_value_free [19:51:44]json_value_free done [19:51:44]process_json_proto returns [19:51:44]Send response to host [19:51:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29328,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [19:51:44]free response buf [19:51:44]execute_script done [19:51:44]execute_script returns [19:51:44]free content buf [19:51:44]Sock 7.Close socket [19:51:44]Sock 7.Thread stoped [19:51:48]OFD Sender: No OFD packet to send [19:51:53]OFD Sender: No OFD packet to send [19:51:58]OFD Sender: No OFD packet to send [19:52:03]OFD Sender: No OFD packet to send [19:52:08]OFD Sender: No OFD packet to send [19:52:13]OFD Sender: No OFD packet to send [19:52:18]OFD Sender: No OFD packet to send [19:52:18]accept exits with 9 [19:52:18]New connection [19:52:18]New thread 3066928484 created [19:52:18]Thread 3066785124 joined [19:52:18]Waiting for new connection... [19:52:18] Sock 9.Parse request [19:52:18]Sock 9.Check first char [19:52:18]Sock 9.First char is OK [19:52:18]request: POST /json_proto HTTP/1.0 [19:52:18]Method: POST [19:52:18]URL: /json_proto [19:52:18]Method is POST - this is cgi request [19:52:18]url: /json_proto [19:52:18]query_string will be loaded in cgi processing [19:52:18]execute_cgi json_proto POST (null) [19:52:18]execute_cgi path=json_proto method=POST [19:52:18]POST find Content-Length [19:52:18]Host: 172.17.33.3:8080 [19:52:18]Content-Length: 837 [19:52:18]Content-Type: application/json [19:52:18] [19:52:18]POST finish read [19:52:18]Found Content-Length = 837 [19:52:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347719", "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.840, "sum" : 350.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 350.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:52:18]execute_script... [19:52: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)347719", "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.840, "sum" : 350.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 350.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:52:18]POST & json_proto [19:52:18]process_json_proto [19:52:18]json parsed OK: [19:52:18]protocol is kg_v1.0 [19:52:18]action value=close_receipt [19:52:18]process_action close_receipt [19:52:18]cmd_close_receipt [19:52:18]MH_GetDate [19:52:18]Write to MH i2c: F0 00 00 4E B7 F4 [19:52:18]Write i2c OK [19:52:18]MH_I2C_Read... [19:52:18]Read from MH i2c: F0 [19:52:18]MH_I2C_Read... [19:52:18]Read from MH i2c: F0 09 00 [19:52:18]MH_I2C_Read... [19:52:18]Read from MH i2c: F0 09 00 4E B7 00 FE 33 1C 66 23 5B 8F 65 22 [19:52:18]GetLastDocTimeStamp 1713124312 [19:52:18]current date 1713124350 [19:52:18]FM_GetShiftState [19:52:18]SAM_PROTO_GetShiftState [19:52:18]wFMCommunicate request_size=4 [19:52:18]MH_SAM_APDU [19:52:18]CAPDU: 80 13 01 00 [19:52:18]Write to MH i2c: E2 08 00 4F B7 80 13 01 00 00 00 00 00 83 [19:52:18]Write i2c OK [19:52:18]MH_I2C_Read... [19:52:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:52:18]Read from MH i2c: E2 [19:52:18]MH_I2C_Read... [19:52:18]Read from MH i2c: E2 0E 00 [19:52:18]MH_I2C_Read... [19:52:18]Read from MH i2c: E2 0E 00 4F B7 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 2F [19:52:18]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [19:52:18]wFMCommunicate OK [19:52:18]SAM_PROTO_GetShiftState done [19:52:18]FM_GetShiftState done [19:52:18]opened in 1713053951 [19:52:18]opened+sec_in_day 1713140351 [19:52:18]quantity*price = 35041 [19:52:18]sum+1 = 35043 [19:52:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 350.42 НСП 1% : 3.10 НДС 12% : 37.21 Наличными: 0.00 Безнал.: 350.42 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 239 14.04.2024 19:52 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 29329 ФПД: 48822267383790 1/tax-web-control/client/api/v1/ticket?date=20240414T195230&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29329&fm=48822267383790&tin=02508201610067®Number=0000138879044617&sum=35042 [19:52:20]StoreToDocumentArchive [19:52:20]shift 116 fd 29329 [19:52:20]save to /storage/0116/doc_00029329 [19:52:20]save last doc name /storage/0116/doc_00029329 to /storage/kkm_last_doc_name [19:52:20]save OK [19:52:20]Clear old archive folders... [19:52:20]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:52:20]tlvbuf is 01286210 [19:52:20]SAM_PROTO_ClearQueue [19:52:20]wFMCommunicate request_size=4 [19:52:20]MH_SAM_APDU [19:52:20]CAPDU: 80 09 00 00 [19:52:20]Write to MH i2c: E2 08 00 5C B7 80 09 00 00 00 00 00 00 85 [19:52:20]Write i2c OK [19:52:20]MH_I2C_Read... [19:52:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:52:20]Read from MH i2c: E2 [19:52:20]MH_I2C_Read... [19:52:20]Read from MH i2c: E2 03 00 [19:52:20]MH_I2C_Read... [19:52:20]Read from MH i2c: E2 03 00 5C B7 00 90 00 87 [19:52:20]RAPDU: 90 00 [19:52:20]wFMCommunicate OK [19:52:20]SAM_PROTO_ClearQueue done [19:52:20]KKMCreateOFDPacket [19:52:20]OFDProtocolAddRootSTLVToBuf [19:52:20]FM_MakeSignedData [19:52:20]FM_MakeSignedData [19:52:20]SAM_PROTO_SignData [19:52:20]wFMCommunicate request_size=4 [19:52:20]MH_SAM_APDU [19:52:20]CAPDU: 80 0D 01 02 [19:52:20]Write to MH i2c: E2 08 00 5D B7 80 0D 01 02 00 00 00 00 8D [19:52:20]Write i2c OK [19:52:20]MH_I2C_Read... [19:52:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:52:20]Read from MH i2c: E2 [19:52:20]MH_I2C_Read... [19:52:20]Read from MH i2c: E2 03 00 [19:52:20]MH_I2C_Read... [19:52:20]Read from MH i2c: E2 03 00 5D B7 00 90 00 88 [19:52:20]RAPDU: 90 00 [19:52:20]wFMCommunicate OK [19:52:20]wFMCommunicate request_size=255 [19:52:20]MH_SAM_APDU [19:52:20]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E8 12 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 E2 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E2 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 E2 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 FE 33 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 91 72 00 00 35 04 06 00 2C 67 51 E7 [19:52:20]Write to MH i2c: E2 02 01 5E B7 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 E8 12 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 E2 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E2 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 E2 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 FE 33 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 91 72 00 00 35 04 06 00 2C 67 51 E7 00 00 55 [19:52:20]Write i2c OK [19:52:20]MH_I2C_Read... [19:52:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:52:20]Read from MH i2c: E2 [19:52:20]MH_I2C_Read... [19:52:20]Read from MH i2c: E2 03 00 [19:52:20]MH_I2C_Read... [19:52:20]Read from MH i2c: E2 03 00 5E B7 00 90 00 89 [19:52:20]RAPDU: 90 00 [19:52:20]wFMCommunicate OK [19:52:20]wFMCommunicate request_size=7 [19:52:20]MH_SAM_APDU [19:52:20]CAPDU: 80 0D 02 02 02 8F EE [19:52:20]Write to MH i2c: E2 0A 00 5F B7 80 0D 02 02 02 00 8F EE 00 00 11 [19:52:20]Write i2c OK [19:52:20]MH_I2C_Read... [19:52:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:52:20]Read from MH i2c: E2 [19:52:20]MH_I2C_Read... [19:52:20]Read from MH i2c: E2 03 00 [19:52:20]MH_I2C_Read... [19:52:20]Read from MH i2c: E2 03 00 5F B7 00 90 00 8A [19:52:20]RAPDU: 90 00 [19:52:20]wFMCommunicate OK [19:52:20]wFMCommunicate request_size=4 [19:52:20]MH_SAM_APDU [19:52:20]CAPDU: 80 0D 03 02 [19:52:20]Write to MH i2c: E2 08 00 60 B7 80 0D 03 02 00 00 00 00 92 [19:52:20]Write i2c OK [19:52:20]MH_I2C_Read... [19:52:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:52:20]Read from MH i2c: E2 [19:52:20]MH_I2C_Read... [19:52:20]Read from MH i2c: E2 0B 00 [19:52:20]MH_I2C_Read... [19:52:20]Read from MH i2c: E2 0B 00 60 B7 00 BA 86 8D 0B 92 A5 6B DF 90 00 EC [19:52:20]RAPDU: BA 86 8D 0B 92 A5 6B DF 90 00 [19:52:20]wFMCommunicate OK [19:52:20]SAM_PROTO_SignData done [19:52:20]FM_MakeSignedData done [19:52:20]CreateOFDProtocolMessage [19:52:20]wFMCommunicate request_size=4 [19:52:20]MH_SAM_APDU [19:52:20]CAPDU: 80 11 00 00 [19:52:20]Write to MH i2c: E2 08 00 61 B7 80 11 00 00 00 00 00 00 92 [19:52:20]Write i2c OK [19:52:20]MH_I2C_Read... [19:52:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:52:20]Read from MH i2c: E2 [19:52:20]MH_I2C_Read... [19:52:20]Read from MH i2c: E2 17 00 [19:52:20]MH_I2C_Read... [19:52:20]Read from MH i2c: E2 17 00 61 B7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E1 [19:52:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:52:20]wFMCommunicate OK [19:52:20]CreateOFDProtocolMessage done [19:52:20]OFDSenderStorePacket 29329 [19:52:20]StoreOFDPacket docnum=29329 [19:52:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 26 73 04 01 A2 AB 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 E8 12 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 E2 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E2 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 E2 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 FE 33 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 91 72 00 00 35 04 06 00 2C 67 51 E7 8F EE BA 86 8D 0B 92 A5 6B DF [19:52:20]CheckFolder [19:52:20]dirname=/storage/ofd_packets [19:52:20]CheckFolder done [19:52:20]ProducePacketName [19:52:20]name=ofd_packets/00029329 [19:52:20]NVStorageSaveData ofd_packets/00029329 [19:52:20]File name is /storage/ofd_packets/00029329 [19:52:20]Write 298 bytes [19:52:20]NVStorageSaveData done [19:52:20]OFDSenderStorePacket done [19:52:20]KKMCreateOFDPacket done [19:52:20]NVStorageSaveData kkm_last_timestamp [19:52:20]File name is /storage/kkm_last_timestamp [19:52:20]Write 4 bytes [19:52:20]NVStorageSaveData done [19:52:20]ExternCall_PrintAddStr [19:52:20]wPrintStart [19:52:20]Write to MH i2c: 01 00 00 62 B7 19 [19:52:20]Write i2c OK [19:52:20]MH_I2C_Read... [19:52:20]Read from MH i2c: 01 [19:52:20]MH_I2C_Read... [19:52:20]Read from MH i2c: 01 07 00 [19:52:20]MH_I2C_Read... [19:52:20]Read from MH i2c: 01 07 00 62 B7 00 00 00 00 00 FF 0F 2E [19:52:20]RasterBufferAndPrint [19:52:20]line Счет N : (1)347719 [19:52:20]line ИНН: 02508201610067 [19:52:20]line Контрольно-Кассовый Чек [19:52:20]line ПРОДАЖА [19:52:20]line ТРК (МРК, ГНК) : 51 [19:52:20]line Товар: 2710194210 [19:52:20]line ДТ-К-5 [19:52:20]line 4.840 * 72.40 [19:52:20]line = 350.42 [19:52:20]line НДС 12% НСП 1% [19:52:20]line > о реализуемом товаре [19:52:20]line ИТОГО: 350.42 [19:52:20]line НСП 1% : 3.10 [19:52:20]line НДС 12% : 37.21 [19:52:20]line Наличными: 0.00 [19:52:20]line Безнал.: 350.42 [19:52:20]line Место: АЗС № 108 "Партнер Нефть" [19:52:20]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [19:52:20]line СНО: Общий режим [19:52:20]line Чек 239 14.04.2024 19:52 [19:52:20]line Смена: 116 ФФД: 1.0 [19:52:20]line ЗНМ: 0300000027 [19:52:20]line РНМ: 0000138879044617 [19:52:20]line Версия ККМ: 001 [19:52:20]line Платежная система: АКБ Кыргызстан [19:52:20]line ФМ: 0000000000963154 [19:52:20]line ФД: 29329 [19:52:20]line ФПД: 48822267383790 [19:52:20]line 1/tax-web-control/client/api/v1/ticket?date=20240414T195230&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29329&fm=48822267383790&tin=02508201610067®Number=0000138879044617&sum=35042 [19:52:20]OFD Sender: Processing packet 29329 [packets to send 8, broken 7] [19:52:20]ProducePacketName [19:52:20]name=ofd_packets/00029329 [19:52:20]OFD Sender: To server: pG, [19:52:20]CommunicateWithHost lk.salyk.kg:30040 [19:52:20]ConnectInit lk.salyk.kg [19:52:20]written 0, free lines is 4095 [19:52:21]Write to MH i2c: 01 00 00 8B B7 42 [19:52:21]Write i2c OK [19:52:21]MH_I2C_Read... [19:52:21]Read from MH i2c: 01 [19:52:21]MH_I2C_Read... [19:52:21]Read from MH i2c: 01 07 00 [19:52:21]MH_I2C_Read... [19:52:21]Read from MH i2c: 01 07 00 8B B7 00 00 00 00 00 E1 0C 36 [19:52:21]RasterBufferAndPrint [19:52:21]line [19:52:21]line [19:52:21]line [19:52:21]line [19:52:21]line [19:52:21]written 0, free lines is 3303 [19:52:21]MH_Cut [19:52:21]Write to MH i2c: D1 01 00 92 B7 01 1B [19:52:21]Write i2c OK [19:52:21]MH_I2C_Read... [19:52:21]Read from MH i2c: D1 [19:52:21]MH_I2C_Read... [19:52:21]Read from MH i2c: D1 01 00 [19:52:21]MH_I2C_Read... [19:52:21]Read from MH i2c: D1 01 00 92 B7 00 1A [19:52:21]Write to MH i2c: 01 00 00 93 B7 4A [19:52:21]Write i2c OK [19:52:21]MH_I2C_Read... [19:52:22]*** Cut start [19:52:22]*** Partial cut [19:52:22]*** CUTSNS_PIN = 1 [19:52:22]*** CUTSNS_PIN = 0 [19:52:22]*** Brake cut motor [19:52:22]Read from MH i2c: 01 [19:52:22]MH_I2C_Read... [19:52:22]*** Stop cut motor [19:52:22]*** Cut end [19:52:22]Read from MH i2c: 01 07 00 [19:52:22]MH_I2C_Read... [19:52:22]Read from MH i2c: 01 07 00 93 B7 00 00 00 00 00 FF 0F 5F [19:52:22]process_action close_receipt done [19:52:22]requested_data is exist [19:52:22]produce_requested_data [19:52:22]requested_item fm.sn is exist - process it [19:52:22]wFMCommunicate request_size=4 [19:52:22]MH_SAM_APDU [19:52:22]CAPDU: 80 11 00 00 [19:52:22]Write to MH i2c: E2 08 00 94 B7 80 11 00 00 00 00 00 00 C5 [19:52:22]Write i2c OK [19:52:22]MH_I2C_Read... [19:52:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:52:22]Read from MH i2c: E2 [19:52:22]MH_I2C_Read... [19:52:22]Read from MH i2c: E2 17 00 [19:52:22]MH_I2C_Read... [19:52:22]Read from MH i2c: E2 17 00 94 B7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 14 [19:52:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:52:22]wFMCommunicate OK [19:52:22]requested_item fd.num is exist - process it [19:52:22]SAM_PROTO_GetFieldsCounters [19:52:22]wFMCommunicate request_size=4 [19:52:22]MH_SAM_APDU [19:52:22]CAPDU: 80 13 00 00 [19:52:22]Write to MH i2c: E2 08 00 95 B7 80 13 00 00 00 00 00 00 C8 [19:52:22]Write i2c OK [19:52:22]MH_I2C_Read... [19:52:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:52:23]Read from MH i2c: E2 [19:52:23]MH_I2C_Read... [19:52:23]Read from MH i2c: E2 62 00 [19:52:23]MH_I2C_Read... [19:52:23]Read from MH i2c: E2 62 00 95 B7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 91 72 00 00 0E 04 04 00 74 00 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 4A [19:52:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 91 72 00 00 0E 04 04 00 74 00 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 [19:52:23]wFMCommunicate OK [19:52:23]SAM_PROTO_GetFieldsCounters done [19:52:23]requested_item shift.num is exist - process it [19:52:23]requested_item shift.opened is exist - process it [19:52:23]req_shift_opened [19:52:23]FM_GetShiftState [19:52:23]SAM_PROTO_GetShiftState [19:52:23]wFMCommunicate request_size=4 [19:52:23]MH_SAM_APDU [19:52:23]CAPDU: 80 13 01 00 [19:52:23]Write to MH i2c: E2 08 00 96 B7 80 13 01 00 00 00 00 00 CA [19:52:23]Write i2c OK [19:52:23]MH_I2C_Read... [19:52:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:52:23]Read from MH i2c: E2 [19:52:23]MH_I2C_Read... [19:52:23]Read from MH i2c: E2 0E 00 [19:52:23]MH_I2C_Read... [19:52:23]Read from MH i2c: E2 0E 00 96 B7 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 76 [19:52:23]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [19:52:23]wFMCommunicate OK [19:52:23]SAM_PROTO_GetShiftState done [19:52:23]FM_GetShiftState done [19:52:23]req_shift_opened done [19:52:23]requested_item shift.open_date is exist - process it [19:52:23]req_shift_open_date [19:52:23]req_shift_open_date done [19:52:23]produce_requested_data done [19:52:23]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29329,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [19:52:23]process_action_free close_receipt [19:52:23]json_value_free [19:52:23]json_value_free done [19:52:23]process_json_proto returns [19:52:23]Send response to host [19:52:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29329,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [19:52:23]free response buf [19:52:23]execute_script done [19:52:23]execute_script returns [19:52:23]free content buf [19:52:23]Sock 9.Close socket [19:52:23]Sock 9.Thread stoped [19:53:01]accept exits with 7 [19:53:01]New connection [19:53:01]New thread 3066785124 created [19:53:01]Thread 3066928484 joined [19:53:01]Waiting for new connection... [19:53:01] Sock 7.Parse request [19:53:01]Sock 7.Check first char [19:53:01]Sock 7.First char is OK [19:53:01]request: POST /json_proto HTTP/1.0 [19:53:01]Method: POST [19:53:01]URL: /json_proto [19:53:01]Method is POST - this is cgi request [19:53:01]url: /json_proto [19:53:01]query_string will be loaded in cgi processing [19:53:01]execute_cgi json_proto POST (null) [19:53:01]execute_cgi path=json_proto method=POST [19:53:01]POST find Content-Length [19:53:01]Host: 172.17.33.3:8080 [19:53:01]Content-Length: 674 [19:53:01]Content-Type: application/json [19:53:01] [19:53:01]POST finish read [19:53:01]Found Content-Length = 674 [19:53:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347720", "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" : 2.080, "sum" : 150.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:53:01]execute_script... [19:53:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347720", "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" : 2.080, "sum" : 150.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:53:01]POST & json_proto [19:53:01]process_json_proto [19:53:01]json parsed OK: [19:53:01]protocol is kg_v1.0 [19:53:01]action value=close_receipt [19:53:01]process_action close_receipt [19:53:01]cmd_close_receipt [19:53:01]MH_GetDate [19:53:01]Write to MH i2c: F0 00 00 97 B7 3D [19:53:01]Write i2c OK [19:53:01]MH_I2C_Read... [19:53:01]Read from MH i2c: F0 [19:53:01]MH_I2C_Read... [19:53:01]Read from MH i2c: F0 09 00 [19:53:01]MH_I2C_Read... [19:53:01]Read from MH i2c: F0 09 00 97 B7 00 29 34 1C 66 23 5B 8F 65 97 [19:53:01]GetLastDocTimeStamp 1713124350 [19:53:01]current date 1713124393 [19:53:01]FM_GetShiftState [19:53:01]SAM_PROTO_GetShiftState [19:53:01]wFMCommunicate request_size=4 [19:53:01]MH_SAM_APDU [19:53:01]CAPDU: 80 13 01 00 [19:53:01]Write to MH i2c: E2 08 00 98 B7 80 13 01 00 00 00 00 00 CC [19:53:01]Write i2c OK [19:53:01]MH_I2C_Read... [19:53:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:53:01]Read from MH i2c: E2 [19:53:01]MH_I2C_Read... [19:53:01]Read from MH i2c: E2 0E 00 [19:53:01]MH_I2C_Read... [19:53:01]Read from MH i2c: E2 0E 00 98 B7 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 78 [19:53:01]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [19:53:01]wFMCommunicate OK [19:53:01]SAM_PROTO_GetShiftState done [19:53:01]FM_GetShiftState done [19:53:01]opened in 1713053951 [19:53:01]opened+sec_in_day 1713140351 [19:53:01]quantity*price = 15059 [19:53:01]sum+1 = 15060 [19:53:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 150.00 Внесено: 150.00 СДАЧА: 0.00 НСП 1% : 1.33 НДС 12% : 15.99 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 240 14.04.2024 19:53 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29330 ФПД: 12797352097446 1/tax-web-control/client/api/v1/ticket?date=20240414T195313&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29330&fm=12797352097446&tin=02508201610067®Number=0000138879044617&sum=15000 [19:53:02]StoreToDocumentArchive [19:53:02]shift 116 fd 29330 [19:53:02]save to /storage/0116/doc_00029330 [19:53:02]save last doc name /storage/0116/doc_00029330 to /storage/kkm_last_doc_name [19:53:02]save OK [19:53:02]Clear old archive folders... [19:53:02]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:53:02]tlvbuf is 011B7730 [19:53:02]SAM_PROTO_ClearQueue [19:53:02]wFMCommunicate request_size=4 [19:53:02]MH_SAM_APDU [19:53:02]CAPDU: 80 09 00 00 [19:53:02]Write to MH i2c: E2 08 00 A5 B7 80 09 00 00 00 00 00 00 CE [19:53:02]Write i2c OK [19:53:02]MH_I2C_Read... [19:53:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:53:02]Read from MH i2c: E2 [19:53:02]MH_I2C_Read... [19:53:02]Read from MH i2c: E2 03 00 [19:53:02]MH_I2C_Read... [19:53:02]Read from MH i2c: E2 03 00 A5 B7 00 90 00 D0 [19:53:02]RAPDU: 90 00 [19:53:02]wFMCommunicate OK [19:53:02]SAM_PROTO_ClearQueue done [19:53:02]KKMCreateOFDPacket [19:53:02]OFDProtocolAddRootSTLVToBuf [19:53:02]FM_MakeSignedData [19:53:02]FM_MakeSignedData [19:53:02]SAM_PROTO_SignData [19:53:02]wFMCommunicate request_size=4 [19:53:02]MH_SAM_APDU [19:53:02]CAPDU: 80 0D 01 02 [19:53:02]Write to MH i2c: E2 08 00 A6 B7 80 0D 01 02 00 00 00 00 D6 [19:53:02]Write i2c OK [19:53:02]MH_I2C_Read... [19:53:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:53:02]Read from MH i2c: E2 [19:53:02]MH_I2C_Read... [19:53:02]Read from MH i2c: E2 03 00 [19:53:02]MH_I2C_Read... [19:53:02]Read from MH i2c: E2 03 00 A6 B7 00 90 00 D1 [19:53:02]RAPDU: 90 00 [19:53:02]wFMCommunicate OK [19:53:02]wFMCommunicate request_size=255 [19:53:02]MH_SAM_APDU [19:53:02]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 20 08 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D3 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 29 34 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 92 72 00 00 35 04 06 00 0B A3 9D A0 [19:53:02]Write to MH i2c: E2 02 01 A7 B7 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 20 08 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D3 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 29 34 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 92 72 00 00 35 04 06 00 0B A3 9D A0 00 00 89 [19:53:02]Write i2c OK [19:53:02]MH_I2C_Read... [19:53:03]Read from MH i2c: E2 [19:53:03]MH_I2C_Read... [19:53:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:53:03]Read from MH i2c: E2 03 00 [19:53:03]MH_I2C_Read... [19:53:03]Read from MH i2c: E2 03 00 A7 B7 00 90 00 D2 [19:53:03]RAPDU: 90 00 [19:53:03]wFMCommunicate OK [19:53:03]wFMCommunicate request_size=7 [19:53:03]MH_SAM_APDU [19:53:03]CAPDU: 80 0D 02 02 02 36 A6 [19:53:03]Write to MH i2c: E2 0A 00 A8 B7 80 0D 02 02 02 00 36 A6 00 00 B9 [19:53:03]Write i2c OK [19:53:03]MH_I2C_Read... [19:53:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:53:03]Read from MH i2c: E2 [19:53:03]MH_I2C_Read... [19:53:03]Read from MH i2c: E2 03 00 [19:53:03]MH_I2C_Read... [19:53:03]Read from MH i2c: E2 03 00 A8 B7 00 90 00 D3 [19:53:03]RAPDU: 90 00 [19:53:03]wFMCommunicate OK [19:53:03]wFMCommunicate request_size=4 [19:53:03]MH_SAM_APDU [19:53:03]CAPDU: 80 0D 03 02 [19:53:03]Write to MH i2c: E2 08 00 A9 B7 80 0D 03 02 00 00 00 00 DB [19:53:03]Write i2c OK [19:53:03]MH_I2C_Read... [19:53:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:53:03]Read from MH i2c: E2 [19:53:03]MH_I2C_Read... [19:53:03]Read from MH i2c: E2 0B 00 [19:53:03]MH_I2C_Read... [19:53:03]Read from MH i2c: E2 0B 00 A9 B7 00 4D BA 9E 90 9C EA 79 71 90 00 81 [19:53:03]RAPDU: 4D BA 9E 90 9C EA 79 71 90 00 [19:53:03]wFMCommunicate OK [19:53:03]SAM_PROTO_SignData done [19:53:03]FM_MakeSignedData done [19:53:03]CreateOFDProtocolMessage [19:53:03]wFMCommunicate request_size=4 [19:53:03]MH_SAM_APDU [19:53:03]CAPDU: 80 11 00 00 [19:53:03]Write to MH i2c: E2 08 00 AA B7 80 11 00 00 00 00 00 00 DB [19:53:03]Write i2c OK [19:53:03]MH_I2C_Read... [19:53:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:53:03]Read from MH i2c: E2 [19:53:03]MH_I2C_Read... [19:53:03]Read from MH i2c: E2 17 00 [19:53:03]MH_I2C_Read... [19:53:03]Read from MH i2c: E2 17 00 AA B7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 2A [19:53:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:53:03]wFMCommunicate OK [19:53:03]CreateOFDProtocolMessage done [19:53:03]OFDSenderStorePacket 29330 [19:53:03]StoreOFDPacket docnum=29330 [19:53:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 C9 DD 04 01 BA 09 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 20 08 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D3 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 29 34 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 92 72 00 00 35 04 06 00 0B A3 9D A0 36 A6 4D BA 9E 90 9C EA 79 71 [19:53:03]CheckFolder [19:53:03]dirname=/storage/ofd_packets [19:53:03]CheckFolder done [19:53:03]ProducePacketName [19:53:03]name=ofd_packets/00029330 [19:53:03]NVStorageSaveData ofd_packets/00029330 [19:53:03]File name is /storage/ofd_packets/00029330 [19:53:03]Write 298 bytes [19:53:03]NVStorageSaveData done [19:53:03]OFDSenderStorePacket done [19:53:03]KKMCreateOFDPacket done [19:53:03]NVStorageSaveData kkm_last_timestamp [19:53:03]File name is /storage/kkm_last_timestamp [19:53:03]Write 4 bytes [19:53:03]NVStorageSaveData done [19:53:03]ExternCall_PrintAddStr [19:53:03]wPrintStart [19:53:03]Write to MH i2c: 01 00 00 AB B7 62 [19:53:03]Write i2c OK [19:53:03]MH_I2C_Read... [19:53:03]Read from MH i2c: 01 [19:53:03]MH_I2C_Read... [19:53:03]Read from MH i2c: 01 07 00 [19:53:03]MH_I2C_Read... [19:53:03]Read from MH i2c: 01 07 00 AB B7 00 00 00 00 00 FF 0F 77 [19:53:03]RasterBufferAndPrint [19:53:03]line Счет N : (1)347720 [19:53:03]line ИНН: 02508201610067 [19:53:03]line Контрольно-Кассовый Чек [19:53:03]line ПРОДАЖА [19:53:03]line ТРК (МРК, ГНК) : 51 [19:53:03]line Товар: 2710194210 [19:53:03]line ДТ-К-5 [19:53:03]line 2.080 * 72.40 [19:53:03]line = 150.59 [19:53:03]line НДС 12% НСП 1% [19:53:03]line > о реализуемом товаре [19:53:03]line ОКРУГЛЕНИЕ: -0.59 [19:53:03]line ИТОГО: 150.00 [19:53:03]line Внесено: 150.00 [19:53:03]line СДАЧА: 0.00 [19:53:03]line НСП 1% : 1.33 [19:53:03]line НДС 12% : 15.99 [19:53:03]line Наличными: 150.00 [19:53:03]line Безнал.: 0.00 [19:53:03]line Место: АЗС № 108 "Партнер Нефть" [19:53:03]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [19:53:03]line СНО: Общий режим [19:53:03]line Чек 240 14.04.2024 19:53 [19:53:03]line Смена: 116 ФФД: 1.0 [19:53:03]line ЗНМ: 0300000027 [19:53:03]line РНМ: 0000138879044617 [19:53:03]line Версия ККМ: 001 [19:53:03]line ФМ: 0000000000963154 [19:53:03]line ФД: 29330 [19:53:03]line ФПД: 12797352097446 [19:53:03]line 1/tax-web-control/client/api/v1/ticket?date=20240414T195313&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29330&fm=12797352097446&tin=02508201610067®Number=0000138879044617&sum=15000 [19:53:03]written 0, free lines is 4095 [19:53:04]Write to MH i2c: 01 00 00 D5 B7 8C [19:53:04]Write i2c OK [19:53:04]MH_I2C_Read... [19:53:04]Read from MH i2c: 01 [19:53:04]MH_I2C_Read... [19:53:04]Read from MH i2c: 01 07 00 [19:53:04]MH_I2C_Read... [19:53:04]Read from MH i2c: 01 07 00 D5 B7 00 00 00 00 00 BC 0C 5B [19:53:04]RasterBufferAndPrint [19:53:04]line [19:53:04]line [19:53:04]line [19:53:04]line [19:53:04]line [19:53:04]written 0, free lines is 3266 [19:53:04]MH_Cut [19:53:04]Write to MH i2c: D1 01 00 DC B7 01 65 [19:53:04]Write i2c OK [19:53:04]MH_I2C_Read... [19:53:04]Read from MH i2c: D1 [19:53:04]MH_I2C_Read... [19:53:04]Read from MH i2c: D1 01 00 [19:53:04]MH_I2C_Read... [19:53:04]Read from MH i2c: D1 01 00 DC B7 00 64 [19:53:04]Write to MH i2c: 01 00 00 DD B7 94 [19:53:04]Write i2c OK [19:53:04]MH_I2C_Read... [19:53:04]*** Cut start [19:53:04]*** Partial cut [19:53:04]*** CUTSNS_PIN = 1 [19:53:04]*** CUTSNS_PIN = 0 [19:53:05]*** Brake cut motor [19:53:05]Read from MH i2c: 01 [19:53:05]MH_I2C_Read... [19:53:05]*** Stop cut motor [19:53:05]*** Cut end [19:53:05]Read from MH i2c: 01 07 00 [19:53:05]MH_I2C_Read... [19:53:05]Read from MH i2c: 01 07 00 DD B7 00 00 00 00 00 FF 0F A9 [19:53:05]process_action close_receipt done [19:53:05]requested_data is exist [19:53:05]produce_requested_data [19:53:05]requested_item fm.sn is exist - process it [19:53:05]wFMCommunicate request_size=4 [19:53:05]MH_SAM_APDU [19:53:05]CAPDU: 80 11 00 00 [19:53:05]Write to MH i2c: E2 08 00 DE B7 80 11 00 00 00 00 00 00 0F [19:53:05]Write i2c OK [19:53:05]MH_I2C_Read... [19:53:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:53:05]Read from MH i2c: E2 [19:53:05]MH_I2C_Read... [19:53:05]Read from MH i2c: E2 17 00 [19:53:05]MH_I2C_Read... [19:53:05]Read from MH i2c: E2 17 00 DE B7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 5E [19:53:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:53:05]wFMCommunicate OK [19:53:05]requested_item fd.num is exist - process it [19:53:05]SAM_PROTO_GetFieldsCounters [19:53:05]wFMCommunicate request_size=4 [19:53:05]MH_SAM_APDU [19:53:05]CAPDU: 80 13 00 00 [19:53:05]Write to MH i2c: E2 08 00 DF B7 80 13 00 00 00 00 00 00 12 [19:53:05]Write i2c OK [19:53:05]MH_I2C_Read... [19:53:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:53:05]Read from MH i2c: E2 [19:53:05]MH_I2C_Read... [19:53:05]Read from MH i2c: E2 62 00 [19:53:05]MH_I2C_Read... [19:53:05]Read from MH i2c: E2 62 00 DF B7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 92 72 00 00 0E 04 04 00 74 00 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 98 [19:53:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 92 72 00 00 0E 04 04 00 74 00 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 [19:53:05]wFMCommunicate OK [19:53:05]SAM_PROTO_GetFieldsCounters done [19:53:05]requested_item shift.num is exist - process it [19:53:05]requested_item shift.opened is exist - process it [19:53:05]req_shift_opened [19:53:05]FM_GetShiftState [19:53:05]SAM_PROTO_GetShiftState [19:53:05]wFMCommunicate request_size=4 [19:53:05]MH_SAM_APDU [19:53:05]CAPDU: 80 13 01 00 [19:53:05]Write to MH i2c: E2 08 00 E0 B7 80 13 01 00 00 00 00 00 14 [19:53:05]Write i2c OK [19:53:05]MH_I2C_Read... [19:53:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:53:05]Read from MH i2c: E2 [19:53:05]MH_I2C_Read... [19:53:05]Read from MH i2c: E2 0E 00 [19:53:05]MH_I2C_Read... [19:53:05]Read from MH i2c: E2 0E 00 E0 B7 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 C0 [19:53:05]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [19:53:05]wFMCommunicate OK [19:53:05]SAM_PROTO_GetShiftState done [19:53:05]FM_GetShiftState done [19:53:05]req_shift_opened done [19:53:05]requested_item shift.open_date is exist - process it [19:53:05]req_shift_open_date [19:53:05]req_shift_open_date done [19:53:05]produce_requested_data done [19:53:05]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29330,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [19:53:05]process_action_free close_receipt [19:53:05]json_value_free [19:53:05]json_value_free done [19:53:05]process_json_proto returns [19:53:05]Send response to host [19:53:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29330,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [19:53:05]free response buf [19:53:05]execute_script done [19:53:05]execute_script returns [19:53:05]free content buf [19:53:05]Sock 7.Close socket [19:53:05]Sock 7.Thread stoped [19:54:12]accept exits with 9 [19:54:12]New connection [19:54:12]New thread 3066928484 created [19:54:12]Thread 3066785124 joined [19:54:12]Waiting for new connection... [19:54:12] Sock 9.Parse request [19:54:12]Sock 9.Check first char [19:54:12]Sock 9.First char is OK [19:54:12]request: POST /json_proto HTTP/1.0 [19:54:12]Method: POST [19:54:12]URL: /json_proto [19:54:12]Method is POST - this is cgi request [19:54:12]url: /json_proto [19:54:12]query_string will be loaded in cgi processing [19:54:12]execute_cgi json_proto POST (null) [19:54:12]execute_cgi path=json_proto method=POST [19:54:12]POST find Content-Length [19:54:12]Host: 172.17.33.3:8080 [19:54:12]Content-Length: 674 [19:54:12]Content-Type: application/json [19:54:12] [19:54:12]POST finish read [19:54:12]Found Content-Length = 674 [19:54:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347721", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.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:54:12]execute_script... [19:54: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)347721", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.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:54:12]POST & json_proto [19:54:12]process_json_proto [19:54:12]json parsed OK: [19:54:12]protocol is kg_v1.0 [19:54:12]action value=close_receipt [19:54:12]process_action close_receipt [19:54:12]cmd_close_receipt [19:54:12]MH_GetDate [19:54:12]Write to MH i2c: F0 00 00 E1 B7 87 [19:54:12]Write i2c OK [19:54:12]MH_I2C_Read... [19:54:12]Read from MH i2c: F0 [19:54:12]MH_I2C_Read... [19:54:12]Read from MH i2c: F0 09 00 [19:54:12]MH_I2C_Read... [19:54:12]Read from MH i2c: F0 09 00 E1 B7 00 70 34 1C 66 23 5B 8F 65 28 [19:54:12]GetLastDocTimeStamp 1713124393 [19:54:12]current date 1713124464 [19:54:12]FM_GetShiftState [19:54:12]SAM_PROTO_GetShiftState [19:54:12]wFMCommunicate request_size=4 [19:54:12]MH_SAM_APDU [19:54:12]CAPDU: 80 13 01 00 [19:54:12]Write to MH i2c: E2 08 00 E2 B7 80 13 01 00 00 00 00 00 16 [19:54:12]Write i2c OK [19:54:12]MH_I2C_Read... [19:54:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:54:13]Read from MH i2c: E2 [19:54:13]MH_I2C_Read... [19:54:13]Read from MH i2c: E2 0E 00 [19:54:13]MH_I2C_Read... [19:54:13]Read from MH i2c: E2 0E 00 E2 B7 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 C2 [19:54:13]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [19:54:13]wFMCommunicate OK [19:54:13]SAM_PROTO_GetShiftState done [19:54:13]FM_GetShiftState done [19:54:13]opened in 1713053951 [19:54:13]opened+sec_in_day 1713140351 [19:54:13]quantity*price = 50028 [19:54:13]sum+1 = 50029 [19:54:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 241 14.04.2024 19:54 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29331 ФПД: 122932611451573 1/tax-web-control/client/api/v1/ticket?date=20240414T195424&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29331&fm=122932611451573&tin=02508201610067®Number=0000138879044617&sum=50000 [19:54:14]StoreToDocumentArchive [19:54:14]shift 116 fd 29331 [19:54:14]save to /storage/0116/doc_00029331 [19:54:14]save last doc name /storage/0116/doc_00029331 to /storage/kkm_last_doc_name [19:54:14]save OK [19:54:14]Clear old archive folders... [19:54:14]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:54:14]tlvbuf is 011EAEB0 [19:54:14]SAM_PROTO_ClearQueue [19:54:14]wFMCommunicate request_size=4 [19:54:14]MH_SAM_APDU [19:54:14]CAPDU: 80 09 00 00 [19:54:14]Write to MH i2c: E2 08 00 EF B7 80 09 00 00 00 00 00 00 18 [19:54:14]Write i2c OK [19:54:14]MH_I2C_Read... [19:54:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:54:14]Read from MH i2c: E2 [19:54:14]MH_I2C_Read... [19:54:14]Read from MH i2c: E2 03 00 [19:54:14]MH_I2C_Read... [19:54:14]Read from MH i2c: E2 03 00 EF B7 00 90 00 1A [19:54:14]RAPDU: 90 00 [19:54:14]wFMCommunicate OK [19:54:14]SAM_PROTO_ClearQueue done [19:54:14]KKMCreateOFDPacket [19:54:14]OFDProtocolAddRootSTLVToBuf [19:54:14]FM_MakeSignedData [19:54:14]FM_MakeSignedData [19:54:14]SAM_PROTO_SignData [19:54:14]wFMCommunicate request_size=4 [19:54:14]MH_SAM_APDU [19:54:14]CAPDU: 80 0D 01 02 [19:54:14]Write to MH i2c: E2 08 00 F0 B7 80 0D 01 02 00 00 00 00 20 [19:54:14]Write i2c OK [19:54:14]MH_I2C_Read... [19:54:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:54:14]Read from MH i2c: E2 [19:54:14]MH_I2C_Read... [19:54:14]Read from MH i2c: E2 03 00 [19:54:14]MH_I2C_Read... [19:54:14]Read from MH i2c: E2 03 00 F0 B7 00 90 00 1B [19:54:14]RAPDU: 90 00 [19:54:14]wFMCommunicate OK [19:54:14]wFMCommunicate request_size=255 [19:54:14]MH_SAM_APDU [19:54:14]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 F1 00 00 00 F4 03 04 00 70 34 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 93 72 00 00 35 04 06 00 6F CE 7A A3 [19:54:14]Write to MH i2c: E2 02 01 F1 B7 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 F1 00 00 00 F4 03 04 00 70 34 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 93 72 00 00 35 04 06 00 6F CE 7A A3 00 00 E6 [19:54:14]Write i2c OK [19:54:14]MH_I2C_Read... [19:54:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:54:14]Read from MH i2c: E2 [19:54:14]MH_I2C_Read... [19:54:14]Read from MH i2c: E2 03 00 [19:54:14]MH_I2C_Read... [19:54:14]Read from MH i2c: E2 03 00 F1 B7 00 90 00 1C [19:54:14]RAPDU: 90 00 [19:54:14]wFMCommunicate OK [19:54:14]wFMCommunicate request_size=7 [19:54:14]MH_SAM_APDU [19:54:14]CAPDU: 80 0D 02 02 02 0A B5 [19:54:14]Write to MH i2c: E2 0A 00 F2 B7 80 0D 02 02 02 00 0A B5 00 00 E6 [19:54:14]Write i2c OK [19:54:14]MH_I2C_Read... [19:54:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:54:14]Read from MH i2c: E2 [19:54:14]MH_I2C_Read... [19:54:14]Read from MH i2c: E2 03 00 [19:54:14]MH_I2C_Read... [19:54:14]Read from MH i2c: E2 03 00 F2 B7 00 90 00 1D [19:54:14]RAPDU: 90 00 [19:54:14]wFMCommunicate OK [19:54:14]wFMCommunicate request_size=4 [19:54:14]MH_SAM_APDU [19:54:14]CAPDU: 80 0D 03 02 [19:54:14]Write to MH i2c: E2 08 00 F3 B7 80 0D 03 02 00 00 00 00 25 [19:54:14]Write i2c OK [19:54:14]MH_I2C_Read... [19:54:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:54:14]Read from MH i2c: E2 [19:54:14]MH_I2C_Read... [19:54:14]Read from MH i2c: E2 0B 00 [19:54:14]MH_I2C_Read... [19:54:14]Read from MH i2c: E2 0B 00 F3 B7 00 30 EE 1E F8 E9 09 18 89 90 00 ED [19:54:14]RAPDU: 30 EE 1E F8 E9 09 18 89 90 00 [19:54:14]wFMCommunicate OK [19:54:14]SAM_PROTO_SignData done [19:54:14]FM_MakeSignedData done [19:54:14]CreateOFDProtocolMessage [19:54:14]wFMCommunicate request_size=4 [19:54:14]MH_SAM_APDU [19:54:14]CAPDU: 80 11 00 00 [19:54:14]Write to MH i2c: E2 08 00 F4 B7 80 11 00 00 00 00 00 00 25 [19:54:14]Write i2c OK [19:54:14]MH_I2C_Read... [19:54:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:54:14]Read from MH i2c: E2 [19:54:14]MH_I2C_Read... [19:54:14]Read from MH i2c: E2 17 00 [19:54:14]MH_I2C_Read... [19:54:14]Read from MH i2c: E2 17 00 F4 B7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 74 [19:54:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:54:14]wFMCommunicate OK [19:54:14]CreateOFDProtocolMessage done [19:54:14]OFDSenderStorePacket 29331 [19:54:14]StoreOFDPacket docnum=29331 [19:54:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 10 02 04 01 AC 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 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 F1 00 00 00 F4 03 04 00 70 34 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 93 72 00 00 35 04 06 00 6F CE 7A A3 0A B5 30 EE 1E F8 E9 09 18 89 [19:54:14]CheckFolder [19:54:14]dirname=/storage/ofd_packets [19:54:14]CheckFolder done [19:54:14]ProducePacketName [19:54:14]name=ofd_packets/00029331 [19:54:14]NVStorageSaveData ofd_packets/00029331 [19:54:14]File name is /storage/ofd_packets/00029331 [19:54:14]Write 298 bytes [19:54:14]NVStorageSaveData done [19:54:14]OFDSenderStorePacket done [19:54:14]KKMCreateOFDPacket done [19:54:14]NVStorageSaveData kkm_last_timestamp [19:54:14]File name is /storage/kkm_last_timestamp [19:54:14]Write 4 bytes [19:54:14]NVStorageSaveData done [19:54:14]ExternCall_PrintAddStr [19:54:14]wPrintStart [19:54:14]Write to MH i2c: 01 00 00 F5 B7 AC [19:54:14]Write i2c OK [19:54:14]MH_I2C_Read... [19:54:14]Read from MH i2c: 01 [19:54:14]MH_I2C_Read... [19:54:14]Read from MH i2c: 01 07 00 [19:54:14]MH_I2C_Read... [19:54:14]Read from MH i2c: 01 07 00 F5 B7 00 00 00 00 00 FF 0F C1 [19:54:14]RasterBufferAndPrint [19:54:14]line Счет N : (1)347721 [19:54:14]line ИНН: 02508201610067 [19:54:14]line Контрольно-Кассовый Чек [19:54:14]line ПРОДАЖА [19:54:14]line ТРК (МРК, ГНК) : 21 [19:54:14]line Товар: 2710194210 [19:54:14]line ДТ-К-5 [19:54:14]line 6.910 * 72.40 [19:54:14]line = 500.28 [19:54:14]line НДС 12% НСП 1% [19:54:14]line > о реализуемом товаре [19:54:14]line ОКРУГЛЕНИЕ: -0.28 [19:54:14]line ИТОГО: 500.00 [19:54:14]line Внесено: 500.00 [19:54:14]line СДАЧА: 0.00 [19:54:14]line НСП 1% : 4.43 [19:54:14]line НДС 12% : 53.13 [19:54:14]line Наличными: 500.00 [19:54:14]line Безнал.: 0.00 [19:54:14]line Место: АЗС № 108 "Партнер Нефть" [19:54:14]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [19:54:14]line СНО: Общий режим [19:54:14]line Чек 241 14.04.2024 19:54 [19:54:14]line Смена: 116 ФФД: 1.0 [19:54:14]line ЗНМ: 0300000027 [19:54:14]line РНМ: 0000138879044617 [19:54:14]line Версия ККМ: 001 [19:54:14]line ФМ: 0000000000963154 [19:54:14]line ФД: 29331 [19:54:14]line ФПД: 122932611451573 [19:54:14]line 1/tax-web-control/client/api/v1/ticket?date=20240414T195424&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29331&fm=122932611451573&tin=02508201610067®Number=0000138879044617&sum=50000 [19:54:14]written 0, free lines is 4095 [19:54:15]Write to MH i2c: 01 00 00 1F B8 D7 [19:54:15]Write i2c OK [19:54:15]MH_I2C_Read... [19:54:15]Read from MH i2c: 01 [19:54:15]MH_I2C_Read... [19:54:15]Read from MH i2c: 01 07 00 [19:54:15]MH_I2C_Read... [19:54:15]Read from MH i2c: 01 07 00 1F B8 00 00 00 00 00 C1 0C AB [19:54:15]RasterBufferAndPrint [19:54:15]line [19:54:15]line [19:54:15]line [19:54:15]line [19:54:15]line [19:54:15]written 0, free lines is 3270 [19:54:15]MH_Cut [19:54:15]Write to MH i2c: D1 01 00 26 B8 01 B0 [19:54:15]Write i2c OK [19:54:15]MH_I2C_Read... [19:54:15]Read from MH i2c: D1 [19:54:15]MH_I2C_Read... [19:54:15]Read from MH i2c: D1 01 00 [19:54:15]MH_I2C_Read... [19:54:15]Read from MH i2c: D1 01 00 26 B8 00 AF [19:54:15]Write to MH i2c: 01 00 00 27 B8 DF [19:54:15]Write i2c OK [19:54:15]MH_I2C_Read... [19:54:16]*** Cut start [19:54:16]*** Partial cut [19:54:16]*** CUTSNS_PIN = 1 [19:54:16]*** CUTSNS_PIN = 0 [19:54:16]*** Brake cut motor [19:54:16]Read from MH i2c: 01 [19:54:16]MH_I2C_Read... [19:54:16]*** Stop cut motor [19:54:16]*** Cut end [19:54:16]Read from MH i2c: 01 07 00 [19:54:16]MH_I2C_Read... [19:54:16]Read from MH i2c: 01 07 00 27 B8 00 00 00 00 00 FF 0F F4 [19:54:16]process_action close_receipt done [19:54:16]requested_data is exist [19:54:16]produce_requested_data [19:54:16]requested_item fm.sn is exist - process it [19:54:16]wFMCommunicate request_size=4 [19:54:16]MH_SAM_APDU [19:54:16]CAPDU: 80 11 00 00 [19:54:16]Write to MH i2c: E2 08 00 28 B8 80 11 00 00 00 00 00 00 5A [19:54:16]Write i2c OK [19:54:16]MH_I2C_Read... [19:54:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:54:16]Read from MH i2c: E2 [19:54:16]MH_I2C_Read... [19:54:16]Read from MH i2c: E2 17 00 [19:54:16]MH_I2C_Read... [19:54:16]Read from MH i2c: E2 17 00 28 B8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A9 [19:54:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:54:16]wFMCommunicate OK [19:54:16]requested_item fd.num is exist - process it [19:54:16]SAM_PROTO_GetFieldsCounters [19:54:16]wFMCommunicate request_size=4 [19:54:16]MH_SAM_APDU [19:54:16]CAPDU: 80 13 00 00 [19:54:16]Write to MH i2c: E2 08 00 29 B8 80 13 00 00 00 00 00 00 5D [19:54:16]Write i2c OK [19:54:16]MH_I2C_Read... [19:54:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:54:17]Read from MH i2c: E2 [19:54:17]MH_I2C_Read... [19:54:17]Read from MH i2c: E2 62 00 [19:54:17]MH_I2C_Read... [19:54:17]Read from MH i2c: E2 62 00 29 B8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 93 72 00 00 0E 04 04 00 74 00 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 E7 [19:54:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 93 72 00 00 0E 04 04 00 74 00 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 [19:54:17]wFMCommunicate OK [19:54:17]SAM_PROTO_GetFieldsCounters done [19:54:17]requested_item shift.num is exist - process it [19:54:17]requested_item shift.opened is exist - process it [19:54:17]req_shift_opened [19:54:17]FM_GetShiftState [19:54:17]SAM_PROTO_GetShiftState [19:54:17]wFMCommunicate request_size=4 [19:54:17]MH_SAM_APDU [19:54:17]CAPDU: 80 13 01 00 [19:54:17]Write to MH i2c: E2 08 00 2A B8 80 13 01 00 00 00 00 00 5F [19:54:17]Write i2c OK [19:54:17]MH_I2C_Read... [19:54:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:54:17]Read from MH i2c: E2 [19:54:17]MH_I2C_Read... [19:54:17]Read from MH i2c: E2 0E 00 [19:54:17]MH_I2C_Read... [19:54:17]Read from MH i2c: E2 0E 00 2A B8 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 0B [19:54:17]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [19:54:17]wFMCommunicate OK [19:54:17]SAM_PROTO_GetShiftState done [19:54:17]FM_GetShiftState done [19:54:17]req_shift_opened done [19:54:17]requested_item shift.open_date is exist - process it [19:54:17]req_shift_open_date [19:54:17]req_shift_open_date done [19:54:17]produce_requested_data done [19:54:17]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29331,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [19:54:17]process_action_free close_receipt [19:54:17]json_value_free [19:54:17]json_value_free done [19:54:17]process_json_proto returns [19:54:17]Send response to host [19:54:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29331,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [19:54:17]free response buf [19:54:17]execute_script done [19:54:17]execute_script returns [19:54:17]free content buf [19:54:17]Sock 9.Close socket [19:54:17]Sock 9.Thread stoped [19:54:33]ConnectInit Can't connect to host [19:54:33]CommunicateWithHost connect error [19:54:33]CommunicateWithHost err = -1 [19:54:33]OFD Sender: Server communicate error [19:54:33]OFD Sender: Processing packet 29329 [packets to send 10, broken 7] [19:54:33]ProducePacketName [19:54:33]name=ofd_packets/00029329 [19:54:33]OFD Sender: To server: pG, [19:54:33]CommunicateWithHost lk.salyk.kg:30040 [19:54:33]ConnectInit lk.salyk.kg [00:00:09] *** EcrCore started. Build 196 *** [00:00:09]MH_InterfaceInit /dev/i2c-1 [00:00:09]/dev/ttyS4 opened [00:00:09]Malloc ok [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 E4 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 89 [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:10]*** Serial: 3139303353513838 54000000005725E4 (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 9231139+1703893795=1713124934 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x200ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33530624 [00:00:10]*** Is cutter blocked? [00:00: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 E4 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 8A [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 65 00 64 00 FF FF A7 [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 46 36 1C 66 23 5B 8F 65 6F [20:02:14]Current date/time: 14.04.2024 20:02 [20:02:14]FM_Init [20:02:14]wFMConnect [20:02:14]MH_SAM_On [20:02:14]Write to MH i2c: E0 00 00 08 00 E7 [20:02:14]Write i2c OK [20:02:14]MH_I2C_Read... [20:02:14]*** iso7816_init finished! [20:02:14]*** atr: [20:02:14]*** 0F 3B D5 18 FF 81 91 FE [20:02:14]*** 1F C3 80 73 C8 21 10 0A [20:02:14]*** 00 00 00 00 00 00 00 00 [20:02:14]*** 00 00 00 00 00 00 00 00 [20:02:14]*** 00 00 00 00 00 00 00 00 [20:02:14]*** 00 00 00 00 00 00 00 00 [20:02:14]*** 00 00 00 00 00 00 00 00 [20:02:14]*** 00 00 00 00 00 00 00 00 [20:02:14]Read from MH i2c: E0 [20:02:14]MH_I2C_Read... [20:02:14]Read from MH i2c: E0 10 00 [20:02:14]MH_I2C_Read... [20:02:14]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 [20:02:14]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [20:02:14]wFMCommunicate request_size=10 [20:02:14]MH_SAM_APDU [20:02:14]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [20:02:14]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [20:02:14]Write i2c OK [20:02:14]MH_I2C_Read... [20:02:14]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [20:02:14]Read from MH i2c: E2 [20:02:14]MH_I2C_Read... [20:02:14]Read from MH i2c: E2 03 00 [20:02:14]MH_I2C_Read... [20:02:14]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [20:02:14]RAPDU: 90 00 [20:02:14]wFMCommunicate OK [20:02:14]wFMCommunicate request_size=4 [20:02:14]MH_SAM_APDU [20:02:14]CAPDU: 80 11 00 00 [20:02:14]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [20:02:14]Write i2c OK [20:02:14]MH_I2C_Read... [20:02:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:02:14]Read from MH i2c: E2 [20:02:14]MH_I2C_Read... [20:02:14]Read from MH i2c: E2 17 00 [20:02:14]MH_I2C_Read... [20:02:14]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D3 [20:02:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:02:14]wFMCommunicate OK [20:02:14]Detected FM SN is 0000000000963154 [20:02:14]Stored FM SN is 0000000000963154 [20:02:14]wFMCommunicate request_size=9 [20:02:14]MH_SAM_APDU [20:02:14]CAPDU: 80 16 00 00 04 9D 42 01 00 [20:02:14]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 9D 42 01 00 00 00 72 [20:02:14]Write i2c OK [20:02:14]MH_I2C_Read... [20:02:14]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [20:02:14]Read from MH i2c: E2 [20:02:14]MH_I2C_Read... [20:02:14]Read from MH i2c: E2 03 00 [20:02:14]MH_I2C_Read... [20:02:14]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [20:02:14]RAPDU: 90 00 [20:02:14]wFMCommunicate OK [20:02:14]FM PIN OK [20:02:14]wFMCommunicate request_size=8 [20:02:14]MH_SAM_APDU [20:02:14]CAPDU: 80 14 04 00 03 02 00 01 [20:02:14]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [20:02:14]Write i2c OK [20:02:14]MH_I2C_Read... [20:02:14]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [20:02:14]Read from MH i2c: E2 [20:02:14]MH_I2C_Read... [20:02:14]Read from MH i2c: E2 03 00 [20:02:14]MH_I2C_Read... [20:02:14]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [20:02:14]RAPDU: 90 00 [20:02:14]wFMCommunicate OK [20:02:14]wFMCommunicate request_size=13 [20:02:14]MH_SAM_APDU [20:02:14]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [20:02:14]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 [20:02:14]Write i2c OK [20:02:14]MH_I2C_Read... [20:02:14]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [20:02:14]Read from MH i2c: E2 [20:02:14]MH_I2C_Read... [20:02:14]Read from MH i2c: E2 03 00 [20:02:14]MH_I2C_Read... [20:02:14]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [20:02:14]RAPDU: 90 00 [20:02:14]wFMCommunicate OK [20:02:14]wFMCommunicate request_size=4 [20:02:14]MH_SAM_APDU [20:02:14]CAPDU: 80 11 00 00 [20:02:14]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [20:02:14]Write i2c OK [20:02:14]MH_I2C_Read... [20:02:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:02:14]Read from MH i2c: E2 [20:02:14]MH_I2C_Read... [20:02:14]Read from MH i2c: E2 17 00 [20:02:14]MH_I2C_Read... [20:02:14]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D7 [20:02:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:02:14]wFMCommunicate OK [20:02:14]DocumentArchiveInit [20:02:14]Start Httpd... [20:02:14]Httpd thread 3067399524 created [20:02:14]Write to MH i2c: 01 00 00 0F 00 0F [20:02:14]Write i2c OK [20:02:14]MH_I2C_Read... [20:02:14]Read from MH i2c: 01 [20:02:14]MH_I2C_Read... [20:02:14]Read from MH i2c: 01 07 00 [20:02:14]MH_I2C_Read... [20:02:14]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [20:02:14]Allocated Socket 5 [20:02:14]Bind OK [20:02:14]Listen OK [20:02:14]httpd running on port 8080 [20:02:14]Waiting for new connection... [20:02:14]MH Int Process started [20:02:14]OFD Sender: No OFD packet to send [20:02:19]int [20:02:19]Write to MH i2c: 01 00 00 10 00 10 [20:02:19]*** FLAG_PRN_PAP1 set [20:02:19]Write i2c OK [20:02:19]MH_I2C_Read... [20:02:19]Read from MH i2c: 01 [20:02:19]MH_I2C_Read... [20:02:19]Read from MH i2c: 01 07 00 [20:02:19]MH_I2C_Read... [20:02:19]Read from MH i2c: 01 07 00 10 00 00 01 00 00 00 FF 0F 26 [20:02:19]state=0 [20:02:19]No paper [20:02:19]int [20:02:19]Write to MH i2c: 01 00 00 11 00 11 [20:02:19]*** FLAG_PRN_PAP2 set [20:02:19]Write i2c OK [20:02:19]MH_I2C_Read... [20:02:19]Read from MH i2c: 01 [20:02:19]MH_I2C_Read... [20:02:19]Read from MH i2c: 01 07 00 [20:02:19]MH_I2C_Read... [20:02:19]Read from MH i2c: 01 07 00 11 00 00 03 00 00 00 FF 0F 29 [20:02:19]state=0 [20:02:19]No paper [20:02:19]Cover opened [20:02:19]OFD Sender: No OFD packet to send [20:02:20]int [20:02:20]Write to MH i2c: 01 00 00 12 00 12 [20:02:20]*** FLAG_PRN_PAP2 reset [20:02:20]Write i2c OK [20:02:20]MH_I2C_Read... [20:02:20]Read from MH i2c: 01 [20:02:20]MH_I2C_Read... [20:02:20]Read from MH i2c: 01 07 00 [20:02:20]MH_I2C_Read... [20:02:20]Read from MH i2c: 01 07 00 12 00 00 01 00 00 00 FF 0F 28 [20:02:20]state=3 [20:02:20]No paper [20:02:20]Cover closed [20:02:20]int [20:02:20]Write to MH i2c: 01 00 00 13 00 13 [20:02:20]*** FLAG_PRN_PAP1 reset [20:02:20]Write i2c OK [20:02:20]MH_I2C_Read... [20:02:20]Read from MH i2c: 01 [20:02:20]MH_I2C_Read... [20:02:20]Read from MH i2c: 01 07 00 [20:02:20]MH_I2C_Read... [20:02:20]Read from MH i2c: 01 07 00 13 00 00 00 00 00 00 FF 0F 28 [20:02:20]state=0 [20:02:21]int [20:02:21]Write to MH i2c: 01 00 00 14 00 14 [20:02:21]*** FLAG_PRN_KEY set [20:02:21]Write i2c OK [20:02:21]MH_I2C_Read... [20:02:21]Read from MH i2c: 01 [20:02:21]MH_I2C_Read... [20:02:21]Read from MH i2c: 01 07 00 [20:02:21]MH_I2C_Read... [20:02:21]Read from MH i2c: 01 07 00 14 00 00 08 00 00 00 FF 0F 31 [20:02:21]state=0 [20:02:21]Key pressed [20:02:21]Feed [20:02:21]Write to MH i2c: D8 00 00 15 00 EC [20:02:21]Write i2c OK [20:02:21]MH_I2C_Read... [20:02:21]Read from MH i2c: D8 [20:02:21]MH_I2C_Read... [20:02:21]Read from MH i2c: D8 01 00 [20:02:21]MH_I2C_Read... [20:02:21]Read from MH i2c: D8 01 00 15 00 00 ED [20:02:21]int [20:02:21]Write to MH i2c: 01 00 00 16 00 16 [20:02:21]Write i2c OK [20:02:21]MH_I2C_Read... [20:02:21]Read from MH i2c: 01 [20:02:21]MH_I2C_Read... [20:02:21]Read from MH i2c: 01 07 00 [20:02:21]MH_I2C_Read... [20:02:21]Read from MH i2c: 01 07 00 16 00 00 48 00 00 00 3D 00 A2 [20:02:21]state=2 [20:02:21]Key pressed [20:02:21]int [20:02:21]Write to MH i2c: 01 00 00 17 00 17 [20:02:21]*** FLAG_PRN_KEY reset [20:02:21]Write i2c OK [20:02:21]MH_I2C_Read... [20:02:21]Read from MH i2c: 01 [20:02:21]MH_I2C_Read... [20:02:21]Read from MH i2c: 01 07 00 [20:02:21]MH_I2C_Read... [20:02:21]Read from MH i2c: 01 07 00 17 00 00 00 00 00 00 FA 0F 27 [20:02:21]state=2 [20:02:21]Stop feed [20:02:24]OFD Sender: No OFD packet to send [20:02:29]OFD Sender: No OFD packet to send [20:02:34]OFD Sender: No OFD packet to send [20:02:39]OFD Sender: No OFD packet to send [20:02:44]OFD Sender: No OFD packet to send [20:02:49]OFD Sender: No OFD packet to send [20:02:54]OFD Sender: No OFD packet to send [20:02:59]OFD Sender: No OFD packet to send [20:03:04]OFD Sender: No OFD packet to send [20:03:09]OFD Sender: No OFD packet to send [20:03:14]OFD Sender: No OFD packet to send [20:03:19]OFD Sender: No OFD packet to send [20:03:24]OFD Sender: No OFD packet to send [20:03:26]accept exits with 6 [20:03:26]New connection [20:03:26]New thread 3067112804 created [20:03:26]Waiting for new connection... [20:03:26] Sock 6.Parse request [20:03:26]Sock 6.Check first char [20:03:26]Sock 6.First char is OK [20:03:26]request: POST /json_proto HTTP/1.0 [20:03:26]Method: POST [20:03:26]URL: /json_proto [20:03:26]Method is POST - this is cgi request [20:03:26]url: /json_proto [20:03:26]query_string will be loaded in cgi processing [20:03:26]execute_cgi json_proto POST (null) [20:03:26]execute_cgi path=json_proto method=POST [20:03:26]POST find Content-Length [20:03:26]Host: 172.17.33.3:8080 [20:03:26]Content-Length: 215 [20:03:26]Content-Type: application/json [20:03:26] [20:03:26]POST finish read [20:03:26]Found Content-Length = 215 [20:03:26]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" ] } } [20:03:26]execute_script... [20:03:26]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" ] } } [20:03:26]POST & json_proto [20:03:26]process_json_proto [20:03:26]json parsed OK: [20:03:26]protocol is kg_v1.0 [20:03:26]action value=get_value [20:03:26]process_action get_value [20:03:26]cmd_get_value [20:03:26]process_action get_value done [20:03:26]requested_data is exist [20:03:26]produce_requested_data [20:03:26]requested_item kkm.sn is exist - process it [20:03:26]requested_item kkm.ver is exist - process it [20:03:26]requested_item fm.sn is exist - process it [20:03:26]wFMCommunicate request_size=4 [20:03:26]MH_SAM_APDU [20:03:26]CAPDU: 80 11 00 00 [20:03:26]Write to MH i2c: E2 08 00 18 00 80 11 00 00 00 00 00 00 92 [20:03:26]Write i2c OK [20:03:26]MH_I2C_Read... [20:03:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:03:26]Read from MH i2c: E2 [20:03:26]MH_I2C_Read... [20:03:26]Read from MH i2c: E2 17 00 [20:03:26]MH_I2C_Read... [20:03:26]Read from MH i2c: E2 17 00 18 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E1 [20:03:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:03:26]wFMCommunicate OK [20:03:26]requested_item fd.num is exist - process it [20:03:26]SAM_PROTO_GetFieldsCounters [20:03:26]wFMCommunicate request_size=4 [20:03:26]MH_SAM_APDU [20:03:26]CAPDU: 80 13 00 00 [20:03:26]Write to MH i2c: E2 08 00 19 00 80 13 00 00 00 00 00 00 95 [20:03:26]Write i2c OK [20:03:26]MH_I2C_Read... [20:03:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:03:26]Read from MH i2c: E2 [20:03:26]MH_I2C_Read... [20:03:26]Read from MH i2c: E2 62 00 [20:03:26]MH_I2C_Read... [20:03:26]Read from MH i2c: E2 62 00 19 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 94 72 00 00 0E 04 04 00 74 00 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 23 [20:03:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 94 72 00 00 0E 04 04 00 74 00 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 [20:03:26]wFMCommunicate OK [20:03:26]SAM_PROTO_GetFieldsCounters done [20:03:26]requested_item shift.num is exist - process it [20:03:26]requested_item shift.opened is exist - process it [20:03:26]req_shift_opened [20:03:26]FM_GetShiftState [20:03:26]SAM_PROTO_GetShiftState [20:03:26]wFMCommunicate request_size=4 [20:03:26]MH_SAM_APDU [20:03:26]CAPDU: 80 13 01 00 [20:03:26]Write to MH i2c: E2 08 00 1A 00 80 13 01 00 00 00 00 00 97 [20:03:26]Write i2c OK [20:03:26]MH_I2C_Read... [20:03:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:03:26]Read from MH i2c: E2 [20:03:26]MH_I2C_Read... [20:03:26]Read from MH i2c: E2 0E 00 [20:03:26]MH_I2C_Read... [20:03:26]Read from MH i2c: E2 0E 00 1A 00 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 43 [20:03:26]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [20:03:26]wFMCommunicate OK [20:03:26]SAM_PROTO_GetShiftState done [20:03:26]FM_GetShiftState done [20:03:26]req_shift_opened done [20:03:26]requested_item shift.open_date is exist - process it [20:03:26]req_shift_open_date [20:03:26]req_shift_open_date done [20:03:26]produce_requested_data done [20:03:26]produce_requested_data return {"kkm.sn":"0300000027","kkm.ver":"001","fm.sn":"0000000000963154","fd.num":29332,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [20:03:26]process_action_free get_value [20:03:26]json_value_free [20:03:26]json_value_free done [20:03:26]process_json_proto returns [20:03:26]Send response to host [20:03:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000027","kkm.ver":"001","fm.sn":"0000000000963154","fd.num":29332,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [20:03:26]free response buf [20:03:26]execute_script done [20:03:26]execute_script returns [20:03:26]free content buf [20:03:26]Sock 6.Close socket [20:03:26]Sock 6.Thread stoped [20:03:26]accept exits with 10 [20:03:26]New connection [20:03:26]New thread 3066969444 created [20:03:26]Thread 3067112804 joined [20:03:26]Waiting for new connection... [20:03:26] Sock 10.Parse request [20:03:26]Sock 10.Check first char [20:03:26]Sock 10.First char is OK [20:03:26]request: POST /json_proto HTTP/1.0 [20:03:26]Method: POST [20:03:26]URL: /json_proto [20:03:26]Method is POST - this is cgi request [20:03:26]url: /json_proto [20:03:26]query_string will be loaded in cgi processing [20:03:26]execute_cgi json_proto POST (null) [20:03:26]execute_cgi path=json_proto method=POST [20:03:26]POST find Content-Length [20:03:26]Host: 172.17.33.3:8080 [20:03:26]Content-Length: 331 [20:03:26]Content-Type: application/json [20:03:26] [20:03:26]POST finish read [20:03:26]Found Content-Length = 331 [20:03:26]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" ] } } [20:03:26]execute_script... [20:03:26]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" ] } } [20:03:26]POST & json_proto [20:03:26]process_json_proto [20:03:26]json parsed OK: [20:03:26]protocol is kg_v1.0 [20:03:26]action value=get_value [20:03:26]process_action get_value [20:03:26]cmd_get_value [20:03:26]process_action get_value done [20:03:26]requested_data is exist [20:03:26]produce_requested_data [20:03:26]requested_item fm.sale.total is exist - process it [20:03:26]SAM_PROTO_GetFMData [20:03:26]wFMCommunicate request_size=4 [20:03:26]MH_SAM_APDU [20:03:26]CAPDU: 80 13 03 00 [20:03:26]Write to MH i2c: E2 08 00 1B 00 80 13 03 00 00 00 00 00 9A [20:03:26]Write i2c OK [20:03:26]MH_I2C_Read... [20:03:27]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [20:03:27]Read from MH i2c: E2 [20:03:27]MH_I2C_Read... [20:03:27]Read from MH i2c: E2 FD 00 [20:03:27]MH_I2C_Read... [20:03:27]Read from MH i2c: E2 FD 00 1B 00 00 C3 04 85 04 BF 04 6E 04 04 00 AC 71 00 00 69 04 A1 00 6F 04 04 00 49 6E 00 00 B1 04 04 00 CD EB 9B B3 70 04 04 00 A0 F9 66 72 72 04 04 00 2D F2 34 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 8C C8 13 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 49 F2 96 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 63 03 00 00 B1 04 04 00 64 9C E3 0C 70 04 04 00 64 9C E3 0C 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 88 70 5E 01 EF 03 09 00 F6 90 00 72 [20:03:27]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 AC 71 00 00 69 04 A1 00 6F 04 04 00 49 6E 00 00 B1 04 04 00 CD EB 9B B3 70 04 04 00 A0 F9 66 72 72 04 04 00 2D F2 34 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 8C C8 13 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 49 F2 96 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 63 03 00 00 B1 04 04 00 64 9C E3 0C 70 04 04 00 64 9C E3 0C 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 88 70 5E 01 EF 03 09 00 F6 90 00 [20:03:27]wFMCommunicate OK [20:03:27]wFMCommunicate request_size=4 [20:03:27]MH_SAM_APDU [20:03:27]CAPDU: 80 17 00 00 [20:03:27]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [20:03:27]Write i2c OK [20:03:27]MH_I2C_Read... [20:03:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:03:27]Read from MH i2c: E2 [20:03:27]MH_I2C_Read... [20:03:27]Read from MH i2c: E2 FD 00 [20:03:27]MH_I2C_Read... [20:03:27]Read from MH i2c: E2 FD 00 1C 00 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 9B 33 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 90 00 47 [20:03:27]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 9B 33 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 90 00 [20:03:27]wFMCommunicate OK [20:03:27]wFMCommunicate request_size=4 [20:03:27]MH_SAM_APDU [20:03:27]CAPDU: 80 17 00 00 [20:03:27]Write to MH i2c: E2 08 00 1D 00 80 17 00 00 00 00 00 00 9D [20:03:27]Write i2c OK [20:03:27]MH_I2C_Read... [20:03:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:03:27]Read from MH i2c: E2 [20:03:27]MH_I2C_Read... [20:03:27]Read from MH i2c: E2 FD 00 [20:03:27]MH_I2C_Read... [20:03:27]Read from MH i2c: E2 FD 00 1D 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 90 00 BB [20:03:27]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 90 00 [20:03:27]wFMCommunicate OK [20:03:27]wFMCommunicate request_size=4 [20:03:27]MH_SAM_APDU [20:03:27]CAPDU: 80 17 00 00 [20:03:27]Write to MH i2c: E2 08 00 1E 00 80 17 00 00 00 00 00 00 9E [20:03:27]Write i2c OK [20:03:27]MH_I2C_Read... [20:03:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:03:27]Read from MH i2c: E2 [20:03:27]MH_I2C_Read... [20:03:27]Read from MH i2c: E2 FD 00 [20:03:27]MH_I2C_Read... [20:03:27]Read from MH i2c: E2 FD 00 1E 00 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 10 [20:03:27]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [20:03:27]wFMCommunicate OK [20:03:27]wFMCommunicate request_size=4 [20:03:27]MH_SAM_APDU [20:03:27]CAPDU: 80 17 00 00 [20:03:27]Write to MH i2c: E2 08 00 1F 00 80 17 00 00 00 00 00 00 9F [20:03:27]Write i2c OK [20:03:27]MH_I2C_Read... [20:03:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [20:03:28]Read from MH i2c: E2 [20:03:28]MH_I2C_Read... [20:03:28]Read from MH i2c: E2 E0 00 [20:03:28]MH_I2C_Read... [20:03:28]Read from MH i2c: E2 E0 00 1F 00 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 89 [20:03:28]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [20:03:28]wFMCommunicate OK [20:03:28]SAM_PROTO_GetFMData done [20:03:28]requested_item fm.sale_refund.total is exist - process it [20:03:28]requested_item fm.buy.total is exist - process it [20:03:28]requested_item shift.sale.total is exist - process it [20:03:28]SAM_PROTO_GetShiftData [20:03:28]wFMCommunicate request_size=4 [20:03:28]MH_SAM_APDU [20:03:28]CAPDU: 80 13 02 00 [20:03:28]Write to MH i2c: E2 08 00 20 00 80 13 02 00 00 00 00 00 9E [20:03:28]Write i2c OK [20:03:28]MH_I2C_Read... [20:03:28]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [20:03:28]Read from MH i2c: E2 [20:03:28]MH_I2C_Read... [20:03:28]Read from MH i2c: E2 FD 00 [20:03:28]MH_I2C_Read... [20:03:28]Read from MH i2c: E2 FD 00 20 00 00 BC 04 AA 04 B8 04 6E 04 04 00 F2 00 00 00 69 04 9E 00 6F 04 04 00 EF 00 00 00 B1 04 04 00 46 1C 91 01 70 04 04 00 90 72 15 01 72 04 03 00 B6 A9 7B 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 D0 9A 2A 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 D3 8C 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 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 4C 85 42 70 04 03 00 4C 85 42 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 71 10 07 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 20 [20:03:28]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 F2 00 00 00 69 04 9E 00 6F 04 04 00 EF 00 00 00 B1 04 04 00 46 1C 91 01 70 04 04 00 90 72 15 01 72 04 03 00 B6 A9 7B 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 D0 9A 2A 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 D3 8C 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 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 4C 85 42 70 04 03 00 4C 85 42 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 71 10 07 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [20:03:28]wFMCommunicate OK [20:03:28]wFMCommunicate request_size=4 [20:03:28]MH_SAM_APDU [20:03:28]CAPDU: 80 17 00 00 [20:03:28]Write to MH i2c: E2 08 00 21 00 80 17 00 00 00 00 00 00 A1 [20:03:28]Write i2c OK [20:03:28]MH_I2C_Read... [20:03:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:03:28]Read from MH i2c: E2 [20:03:28]MH_I2C_Read... [20:03:28]Read from MH i2c: E2 FD 00 [20:03:28]MH_I2C_Read... [20:03:28]Read from MH i2c: E2 FD 00 21 00 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 B4 96 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 95 [20:03:28]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 B4 96 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [20:03:28]wFMCommunicate OK [20:03:28]wFMCommunicate request_size=4 [20:03:28]MH_SAM_APDU [20:03:28]CAPDU: 80 17 00 00 [20:03:28]Write to MH i2c: E2 08 00 22 00 80 17 00 00 00 00 00 00 A2 [20:03:28]Write i2c OK [20:03:28]MH_I2C_Read... [20:03:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:03:29]Read from MH i2c: E2 [20:03:29]MH_I2C_Read... [20:03:29]Read from MH i2c: E2 FD 00 [20:03:29]MH_I2C_Read... [20:03:29]Read from MH i2c: E2 FD 00 22 00 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 CB [20:03:29]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [20:03:29]wFMCommunicate OK [20:03:29]wFMCommunicate request_size=4 [20:03:29]MH_SAM_APDU [20:03:29]CAPDU: 80 17 00 00 [20:03:29]Write to MH i2c: E2 08 00 23 00 80 17 00 00 00 00 00 00 A3 [20:03:29]Write i2c OK [20:03:29]MH_I2C_Read... [20:03:29]OFD Sender: No OFD packet to send [20:03:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:03:29]Read from MH i2c: E2 [20:03:29]MH_I2C_Read... [20:03:29]Read from MH i2c: E2 FD 00 [20:03:29]MH_I2C_Read... [20:03:29]Read from MH i2c: E2 FD 00 23 00 00 03 00 00 EF 03 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 90 00 24 [20:03:29]RAPDU: 03 00 00 EF 03 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 90 00 [20:03:29]wFMCommunicate OK [20:03:29]wFMCommunicate request_size=4 [20:03:29]MH_SAM_APDU [20:03:29]CAPDU: 80 17 00 00 [20:03:29]Write to MH i2c: E2 08 00 24 00 80 17 00 00 00 00 00 00 A4 [20:03:29]Write i2c OK [20:03:29]MH_I2C_Read... [20:03:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [20:03:29]Read from MH i2c: E2 [20:03:29]MH_I2C_Read... [20:03:29]Read from MH i2c: E2 D9 00 [20:03:29]MH_I2C_Read... [20:03:29]Read from MH i2c: E2 D9 00 24 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 [20:03:29]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [20:03:29]wFMCommunicate OK [20:03:29]SAM_PROTO_GetShiftData done [20:03:29]requested_item shift.sale.total_cash is exist - process it [20:03:29]requested_item shift.sale_refund.total is exist - process it [20:03:29]requested_item shift.sale_refund.total_cash is exist - process it [20:03:29]requested_item shift.buy.total is exist - process it [20:03:29]requested_item shift.buy.total_cash is exist - process it [20:03:29]produce_requested_data done [20:03:29]produce_requested_data return {"fm.sale.total":30133401.09,"fm.sale_refund.total":2162433.00,"fm.buy.total":0.00,"shift.sale.total":262871.74,"shift.sale.total_cash":181828.00,"shift.sale_refund.total":43595.00,"shift.sale_refund.total_cash":43595.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [20:03:29]process_action_free get_value [20:03:29]json_value_free [20:03:29]json_value_free done [20:03:29]process_json_proto returns [20:03:29]Send response to host [20:03:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":30133401.09,"fm.sale_refund.total":2162433.00,"fm.buy.total":0.00,"shift.sale.total":262871.74,"shift.sale.total_cash":181828.00,"shift.sale_refund.total":43595.00,"shift.sale_refund.total_cash":43595.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [20:03:29]free response buf [20:03:29]execute_script done [20:03:29]execute_script returns [20:03:29]free content buf [20:03:29]Sock 10.Close socket [20:03:29]Sock 10.Thread stoped [20:03:29]accept exits with 6 [20:03:29]New connection [20:03:29]New thread 3067112804 created [20:03:29]Thread 3066969444 joined [20:03:29]Waiting for new connection... [20:03:29] Sock 6.Parse request [20:03:29]Sock 6.Check first char [20:03:29]Sock 6.First char is OK [20:03:29]request: POST /json_proto HTTP/1.0 [20:03:29]Method: POST [20:03:29]URL: /json_proto [20:03:29]Method is POST - this is cgi request [20:03:29]url: /json_proto [20:03:29]query_string will be loaded in cgi processing [20:03:29]execute_cgi json_proto POST (null) [20:03:29]execute_cgi path=json_proto method=POST [20:03:29]POST find Content-Length [20:03:29]Host: 172.17.33.3:8080 [20:03:29]Content-Length: 144 [20:03:29]Content-Type: application/json [20:03:29] [20:03:29]POST finish read [20:03:29]Found Content-Length = 144 [20:03:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [20:03:29]execute_script... [20:03:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [20:03:29]POST & json_proto [20:03:29]process_json_proto [20:03:29]json parsed OK: [20:03:29]protocol is kg_v1.0 [20:03:29]action value=print_doc [20:03:29]process_action print_doc [20:03:29]ExternCall_PrintAddStr [20:03:29]wPrintStart [20:03:29]Write to MH i2c: 01 00 00 25 00 25 [20:03:29]Write i2c OK [20:03:29]MH_I2C_Read... [20:03:29]Read from MH i2c: 01 [20:03:29]MH_I2C_Read... [20:03:29]Read from MH i2c: 01 07 00 [20:03:29]MH_I2C_Read... [20:03:29]Read from MH i2c: 01 07 00 25 00 00 00 00 00 00 FF 0F 3A [20:03:30]RasterBufferAndPrint [20:03:30]line Счет N : (1)347721 [20:03:30]line ИНН: 02508201610067 [20:03:30]line Контрольно-Кассовый Чек [20:03:30]line ПРОДАЖА [20:03:30]line ТРК (МРК, ГНК) : 21 [20:03:30]line Товар: 2710194210 [20:03:30]line ДТ-К-5 [20:03:30]line 6.910 * 72.40 [20:03:30]line = 500.28 [20:03:30]line НДС 12% НСП 1% [20:03:30]line > о реализуемом товаре [20:03:30]line ОКРУГЛЕНИЕ: -0.28 [20:03:30]line ИТОГО: 500.00 [20:03:30]line Внесено: 500.00 [20:03:30]line СДАЧА: 0.00 [20:03:30]line НСП 1% : 4.43 [20:03:30]line НДС 12% : 53.13 [20:03:30]line Наличными: 500.00 [20:03:30]line Безнал.: 0.00 [20:03:30]line Место: АЗС № 108 "Партнер Нефть" [20:03:30]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [20:03:30]line СНО: Общий режим [20:03:30]line Чек 241 14.04.2024 19:54 [20:03:30]line Смена: 116 ФФД: 1.0 [20:03:30]line ЗНМ: 0300000027 [20:03:30]line РНМ: 0000138879044617 [20:03:30]line Версия ККМ: 001 [20:03:30]line ФМ: 0000000000963154 [20:03:30]line ФД: 29331 [20:03:30]line ФПД: 122932611451573 [20:03:30]line 1/tax-web-control/client/api/v1/ticket?date=20240414T195424&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29331&fm=122932611451573&tin=02508201610067®Number=0000138879044617&sum=50000 [20:03:30]written 0, free lines is 4095 [20:03:30]Write to MH i2c: 01 00 00 4F 00 4F [20:03:30]Write i2c OK [20:03:30]MH_I2C_Read... [20:03:30]Read from MH i2c: 01 [20:03:30]MH_I2C_Read... [20:03:30]Read from MH i2c: 01 07 00 [20:03:30]MH_I2C_Read... [20:03:30]Read from MH i2c: 01 07 00 4F 00 00 00 00 00 00 D1 0C 33 [20:03:30]RasterBufferAndPrint [20:03:30]line [20:03:30]line [20:03:30]line [20:03:30]line [20:03:30]line [20:03:30]written 0, free lines is 3294 [20:03:30]MH_Cut [20:03:30]Write to MH i2c: D1 01 00 56 00 01 28 [20:03:30]Write i2c OK [20:03:30]MH_I2C_Read... [20:03:30]Read from MH i2c: D1 [20:03:30]MH_I2C_Read... [20:03:30]Read from MH i2c: D1 01 00 [20:03:30]MH_I2C_Read... [20:03:30]Read from MH i2c: D1 01 00 56 00 00 27 [20:03:30]Write to MH i2c: 01 00 00 57 00 57 [20:03:30]Write i2c OK [20:03:30]MH_I2C_Read... [20:03:31]*** Cut start [20:03:31]*** Partial cut [20:03:31]*** CUTSNS_PIN = 1 [20:03:31]*** CUTSNS_PIN = 0 [20:03:31]*** Brake cut motor [20:03:31]Read from MH i2c: 01 [20:03:31]MH_I2C_Read... [20:03:31]Read from MH i2c: 01 07 00 [20:03:31]MH_I2C_Read... [20:03:31]*** Stop cut motor [20:03:31]*** Cut end [20:03:31]Read from MH i2c: 01 07 00 57 00 00 00 00 00 00 FF 0F 6C [20:03:31]process_action print_doc done [20:03:31]requested_data is exist [20:03:31]produce_requested_data [20:03:31]produce_requested_data return (null) [20:03:31]process_action_free print_doc [20:03:31]json_value_free [20:03:31]json_value_free done [20:03:31]process_json_proto returns [20:03:31]Send response to host [20:03:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [20:03:31]free response buf [20:03:31]execute_script done [20:03:31]execute_script returns [20:03:31]free content buf [20:03:31]Sock 6.Close socket [20:03:31]Sock 6.Thread stoped [20:03:34]OFD Sender: No OFD packet to send [20:03:39]OFD Sender: No OFD packet to send [20:03:44]OFD Sender: No OFD packet to send [20:03:49]OFD Sender: No OFD packet to send [20:03:54]OFD Sender: No OFD packet to send [20:03:59]OFD Sender: No OFD packet to send [20:04:04]OFD Sender: No OFD packet to send [20:04:09]OFD Sender: No OFD packet to send [20:04:14]OFD Sender: No OFD packet to send [20:04:19]OFD Sender: No OFD packet to send [20:04:23]accept exits with 9 [20:04:23]New connection [20:04:23]New thread 3066969444 created [20:04:23]Thread 3067112804 joined [20:04:23]Waiting for new connection... [20:04:23] Sock 9.Parse request [20:04:23]Sock 9.Check first char [20:04:23]Sock 9.First char is OK [20:04:23]request: POST /json_proto HTTP/1.0 [20:04:23]Method: POST [20:04:23]URL: /json_proto [20:04:23]Method is POST - this is cgi request [20:04:23]url: /json_proto [20:04:23]query_string will be loaded in cgi processing [20:04:23]execute_cgi json_proto POST (null) [20:04:23]execute_cgi path=json_proto method=POST [20:04:23]POST find Content-Length [20:04:23]Host: 172.17.33.3:8080 [20:04:23]Content-Length: 677 [20:04:23]Content-Type: application/json [20:04:23] [20:04:23]POST finish read [20:04:23]Found Content-Length = 677 [20:04:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347728", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.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:04:23]execute_script... [20:04: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)347728", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.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:04:23]POST & json_proto [20:04:23]process_json_proto [20:04:23]json parsed OK: [20:04:23]protocol is kg_v1.0 [20:04:23]action value=close_receipt [20:04:23]process_action close_receipt [20:04:23]cmd_close_receipt [20:04:23]MH_GetDate [20:04:23]Write to MH i2c: F0 00 00 58 00 47 [20:04:23]Write i2c OK [20:04:23]MH_I2C_Read... [20:04:23]Read from MH i2c: F0 [20:04:23]MH_I2C_Read... [20:04:23]Read from MH i2c: F0 09 00 [20:04:23]MH_I2C_Read... [20:04:23]Read from MH i2c: F0 09 00 58 00 00 C8 36 1C 66 23 5B 8F 65 42 [20:04:23]GetLastDocTimeStamp 1713124464 [20:04:23]current date 1713125064 [20:04:23]FM_GetShiftState [20:04:23]SAM_PROTO_GetShiftState [20:04:23]wFMCommunicate request_size=4 [20:04:23]MH_SAM_APDU [20:04:23]CAPDU: 80 13 01 00 [20:04:23]Write to MH i2c: E2 08 00 59 00 80 13 01 00 00 00 00 00 D6 [20:04:23]Write i2c OK [20:04:23]MH_I2C_Read... [20:04:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:04:24]Read from MH i2c: E2 [20:04:24]MH_I2C_Read... [20:04:24]Read from MH i2c: E2 0E 00 [20:04:24]MH_I2C_Read... [20:04:24]Read from MH i2c: E2 0E 00 59 00 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 82 [20:04:24]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [20:04:24]wFMCommunicate OK [20:04:24]SAM_PROTO_GetShiftState done [20:04:24]FM_GetShiftState done [20:04:24]opened in 1713053951 [20:04:24]opened+sec_in_day 1713140351 [20:04:24]quantity*price = 40058 [20:04:24]sum+1 = 40060 [20:04:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.54 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 243 14.04.2024 20:04 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29333 ФПД: 232472396524262 1/tax-web-control/client/api/v1/ticket?date=20240414T200424&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29333&fm=232472396524262&tin=02508201610067®Number=0000138879044617&sum=40000 [20:04:25]StoreToDocumentArchive [20:04:25]shift 116 fd 29333 [20:04:25]save to /storage/0116/doc_00029333 [20:04:25]save last doc name /storage/0116/doc_00029333 to /storage/kkm_last_doc_name [20:04:25]save OK [20:04:25]Clear old archive folders... [20:04:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:04:25]tlvbuf is 002588A0 [20:04:25]SAM_PROTO_ClearQueue [20:04:25]wFMCommunicate request_size=4 [20:04:25]MH_SAM_APDU [20:04:25]CAPDU: 80 09 00 00 [20:04:25]Write to MH i2c: E2 08 00 66 00 80 09 00 00 00 00 00 00 D8 [20:04:25]Write i2c OK [20:04:25]MH_I2C_Read... [20:04:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:04:25]Read from MH i2c: E2 [20:04:25]MH_I2C_Read... [20:04:25]Read from MH i2c: E2 03 00 [20:04:25]MH_I2C_Read... [20:04:25]Read from MH i2c: E2 03 00 66 00 00 90 00 DA [20:04:25]RAPDU: 90 00 [20:04:25]wFMCommunicate OK [20:04:25]SAM_PROTO_ClearQueue done [20:04:25]KKMCreateOFDPacket [20:04:25]OFDProtocolAddRootSTLVToBuf [20:04:25]FM_MakeSignedData [20:04:25]FM_MakeSignedData [20:04:25]SAM_PROTO_SignData [20:04:25]wFMCommunicate request_size=4 [20:04:25]MH_SAM_APDU [20:04:25]CAPDU: 80 0D 01 02 [20:04:25]Write to MH i2c: E2 08 00 67 00 80 0D 01 02 00 00 00 00 E0 [20:04:25]Write i2c OK [20:04:25]MH_I2C_Read... [20:04:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:04:25]Read from MH i2c: E2 [20:04:25]MH_I2C_Read... [20:04:25]Read from MH i2c: E2 03 00 [20:04:25]MH_I2C_Read... [20:04:25]Read from MH i2c: E2 03 00 67 00 00 90 00 DB [20:04:25]RAPDU: 90 00 [20:04:25]wFMCommunicate OK [20:04:25]wFMCommunicate request_size=255 [20:04:25]MH_SAM_APDU [20:04: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 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 F3 00 00 00 F4 03 04 00 C8 36 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 95 72 00 00 35 04 06 00 D3 [20:04:25]Write to MH i2c: E2 02 01 68 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 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 F3 00 00 00 F4 03 04 00 C8 36 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 95 72 00 00 35 04 06 00 D3 00 00 4D [20:04:25]Write i2c OK [20:04:25]MH_I2C_Read... [20:04:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:04:25]Read from MH i2c: E2 [20:04:25]MH_I2C_Read... [20:04:25]Read from MH i2c: E2 03 00 [20:04:25]MH_I2C_Read... [20:04:25]Read from MH i2c: E2 03 00 68 00 00 90 00 DC [20:04:25]RAPDU: 90 00 [20:04:25]wFMCommunicate OK [20:04:25]wFMCommunicate request_size=10 [20:04:25]MH_SAM_APDU [20:04:25]CAPDU: 80 0D 02 02 05 6E B2 9D 6A E6 [20:04:25]Write to MH i2c: E2 0D 00 69 00 80 0D 02 02 05 00 6E B2 9D 6A E6 00 00 FA [20:04:25]Write i2c OK [20:04:25]MH_I2C_Read... [20:04:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:04:25]Read from MH i2c: E2 [20:04:25]MH_I2C_Read... [20:04:25]Read from MH i2c: E2 03 00 [20:04:25]MH_I2C_Read... [20:04:25]Read from MH i2c: E2 03 00 69 00 00 90 00 DD [20:04:25]RAPDU: 90 00 [20:04:25]wFMCommunicate OK [20:04:25]wFMCommunicate request_size=4 [20:04:25]MH_SAM_APDU [20:04:25]CAPDU: 80 0D 03 02 [20:04:25]Write to MH i2c: E2 08 00 6A 00 80 0D 03 02 00 00 00 00 E5 [20:04:25]Write i2c OK [20:04:25]MH_I2C_Read... [20:04:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:04:25]Read from MH i2c: E2 [20:04:25]MH_I2C_Read... [20:04:25]Read from MH i2c: E2 0B 00 [20:04:25]MH_I2C_Read... [20:04:25]Read from MH i2c: E2 0B 00 6A 00 00 ED 04 EE B1 93 C8 31 16 90 00 18 [20:04:25]RAPDU: ED 04 EE B1 93 C8 31 16 90 00 [20:04:25]wFMCommunicate OK [20:04:25]SAM_PROTO_SignData done [20:04:25]FM_MakeSignedData done [20:04:25]CreateOFDProtocolMessage [20:04:25]wFMCommunicate request_size=4 [20:04:25]MH_SAM_APDU [20:04:25]CAPDU: 80 11 00 00 [20:04:25]Write to MH i2c: E2 08 00 6B 00 80 11 00 00 00 00 00 00 E5 [20:04:25]Write i2c OK [20:04:25]MH_I2C_Read... [20:04:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:04:25]Read from MH i2c: E2 [20:04:25]MH_I2C_Read... [20:04:25]Read from MH i2c: E2 17 00 [20:04:25]MH_I2C_Read... [20:04:25]Read from MH i2c: E2 17 00 6B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 34 [20:04:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:04:25]wFMCommunicate OK [20:04:25]CreateOFDProtocolMessage done [20:04:25]OFDSenderStorePacket 29333 [20:04:25]StoreOFDPacket docnum=29333 [20:04:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 21 44 07 01 BF 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 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 F3 00 00 00 F4 03 04 00 C8 36 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 95 72 00 00 35 04 06 00 D3 6E B2 9D 6A E6 ED 04 EE B1 93 C8 31 16 [20:04:25]CheckFolder [20:04:25]dirname=/storage/ofd_packets [20:04:25]CheckFolder done [20:04:25]ProducePacketName [20:04:25]name=ofd_packets/00029333 [20:04:25]NVStorageSaveData ofd_packets/00029333 [20:04:25]File name is /storage/ofd_packets/00029333 [20:04:25]Write 301 bytes [20:04:25]NVStorageSaveData done [20:04:25]OFDSenderStorePacket done [20:04:25]KKMCreateOFDPacket done [20:04:25]NVStorageSaveData kkm_last_timestamp [20:04:25]File name is /storage/kkm_last_timestamp [20:04:25]Write 4 bytes [20:04:25]NVStorageSaveData done [20:04:25]ExternCall_PrintAddStr [20:04:25]wPrintStart [20:04:25]Write to MH i2c: 01 00 00 6C 00 6C [20:04:25]Write i2c OK [20:04:25]MH_I2C_Read... [20:04:25]Read from MH i2c: 01 [20:04:25]MH_I2C_Read... [20:04:25]Read from MH i2c: 01 07 00 [20:04:25]MH_I2C_Read... [20:04:25]Read from MH i2c: 01 07 00 6C 00 00 00 00 00 00 FF 0F 81 [20:04:25]RasterBufferAndPrint [20:04:25]line Счет N : (1)347728 [20:04:25]line ИНН: 02508201610067 [20:04:25]line Контрольно-Кассовый Чек [20:04:25]line ПРОДАЖА [20:04:25]line ТРК (МРК, ГНК) : 23 [20:04:25]line Товар: 2710124130 [20:04:25]line Аи-92-К-5 [20:04:25]line 6.230 * 64.30 [20:04:25]line = 400.59 [20:04:25]line НДС 12% НСП 1% [20:04:25]line > о реализуемом товаре [20:04:25]line ОКРУГЛЕНИЕ: -0.59 [20:04:25]line ИТОГО: 400.00 [20:04:25]line Внесено: 400.00 [20:04:25]line СДАЧА: 0.00 [20:04:25]line НСП 1% : 3.54 [20:04:25]line НДС 12% : 42.54 [20:04:25]line Наличными: 400.00 [20:04:25]line Безнал.: 0.00 [20:04:25]line Место: АЗС № 108 "Партнер Нефть" [20:04:25]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [20:04:25]line СНО: Общий режим [20:04:25]line Чек 243 14.04.2024 20:04 [20:04:25]line Смена: 116 ФФД: 1.0 [20:04:25]line ЗНМ: 0300000027 [20:04:25]line РНМ: 0000138879044617 [20:04:25]line Версия ККМ: 001 [20:04:25]line ФМ: 0000000000963154 [20:04:25]line ФД: 29333 [20:04:25]line ФПД: 232472396524262 [20:04:26]line 1/tax-web-control/client/api/v1/ticket?date=20240414T200424&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29333&fm=232472396524262&tin=02508201610067®Number=0000138879044617&sum=40000 [20:04:26]OFD Sender: Processing packet 29333 [packets to send 8, broken 7] [20:04:26]ProducePacketName [20:04:26]name=ofd_packets/00029333 [20:04:26]OFD Sender: To server: pG, [20:04:26]CommunicateWithHost lk.salyk.kg:30040 [20:04:26]ConnectInit lk.salyk.kg [20:04:26]written 0, free lines is 4095 [20:04:26]Connected sock=8 [20:04:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 21 44 07 01 BF 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 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 F3 00 00 00 F4 03 04 00 C8 36 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 95 72 00 00 35 04 06 00 D3 6E B2 9D 6A E6 ED 04 EE B1 93 C8 31 16 [20:04:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 29 4F 47 00 D2 44 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 95 72 00 00 F4 03 04 00 6B E1 1B 66 B6 04 01 00 00 34 7C 21 85 41 15 62 2D [20:04:26]CommunicateWithHost err = 0 [20:04:26]CheckOFDResponse [20:04:26]1017 (14) - 77093643461234 [20:04:26]1041 (16) - 0000000000963154 [20:04:26]1040 (4) - 29333 [20:04:26]1012 (4) - 14.04.2024 14:00 [20:04:26]1206 (1) - 0 [20:04:26]OFD Sender: Remove packet 29333 [20:04:26]ProducePacketName [20:04:26]name=ofd_packets/00029333 [20:04:26]NVStorageDeleteData [20:04:26]Write to MH i2c: 01 00 00 96 00 96 [20:04:26]Write i2c OK [20:04:26]MH_I2C_Read... [20:04:26]Read from MH i2c: 01 [20:04:26]MH_I2C_Read... [20:04:26]Read from MH i2c: 01 07 00 [20:04:26]MH_I2C_Read... [20:04:26]Read from MH i2c: 01 07 00 96 00 00 00 00 00 00 DA 0C 83 [20:04:26]RasterBufferAndPrint [20:04:26]line [20:04:26]line [20:04:26]line [20:04:26]line [20:04:26]line [20:04:26]written 0, free lines is 3297 [20:04:26]MH_Cut [20:04:26]Write to MH i2c: D1 01 00 9D 00 01 6F [20:04:26]Write i2c OK [20:04:26]MH_I2C_Read... [20:04:26]Read from MH i2c: D1 [20:04:26]MH_I2C_Read... [20:04:26]Read from MH i2c: D1 01 00 [20:04:26]MH_I2C_Read... [20:04:26]Read from MH i2c: D1 01 00 9D 00 00 6E [20:04:26]Write to MH i2c: 01 00 00 9E 00 9E [20:04:26]Write i2c OK [20:04:26]MH_I2C_Read... [20:04:26]OFD Sender: No OFD packet to send [20:04:27]*** Cut start [20:04:27]*** Partial cut [20:04:27]*** CUTSNS_PIN = 1 [20:04:27]*** CUTSNS_PIN = 0 [20:04:27]*** Brake cut motor [20:04:27]Read from MH i2c: 01 [20:04:27]MH_I2C_Read... [20:04:27]*** Stop cut motor [20:04:27]*** Cut end [20:04:27]Read from MH i2c: 01 07 00 [20:04:27]MH_I2C_Read... [20:04:27]Read from MH i2c: 01 07 00 9E 00 00 00 00 00 00 FF 0F B3 [20:04:27]process_action close_receipt done [20:04:27]requested_data is exist [20:04:27]produce_requested_data [20:04:27]requested_item fm.sn is exist - process it [20:04:27]wFMCommunicate request_size=4 [20:04:27]MH_SAM_APDU [20:04:27]CAPDU: 80 11 00 00 [20:04:27]Write to MH i2c: E2 08 00 9F 00 80 11 00 00 00 00 00 00 19 [20:04:27]Write i2c OK [20:04:27]MH_I2C_Read... [20:04:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:04:27]Read from MH i2c: E2 [20:04:27]MH_I2C_Read... [20:04:27]Read from MH i2c: E2 17 00 [20:04:27]MH_I2C_Read... [20:04:27]Read from MH i2c: E2 17 00 9F 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 68 [20:04:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:04:27]wFMCommunicate OK [20:04:27]requested_item fd.num is exist - process it [20:04:27]SAM_PROTO_GetFieldsCounters [20:04:27]wFMCommunicate request_size=4 [20:04:27]MH_SAM_APDU [20:04:27]CAPDU: 80 13 00 00 [20:04:27]Write to MH i2c: E2 08 00 A0 00 80 13 00 00 00 00 00 00 1C [20:04:27]Write i2c OK [20:04:27]MH_I2C_Read... [20:04:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:04:28]Read from MH i2c: E2 [20:04:28]MH_I2C_Read... [20:04:28]Read from MH i2c: E2 62 00 [20:04:28]MH_I2C_Read... [20:04:28]Read from MH i2c: E2 62 00 A0 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 95 72 00 00 0E 04 04 00 74 00 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 [20:04:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 95 72 00 00 0E 04 04 00 74 00 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 [20:04:28]wFMCommunicate OK [20:04:28]SAM_PROTO_GetFieldsCounters done [20:04:28]requested_item shift.num is exist - process it [20:04:28]requested_item shift.opened is exist - process it [20:04:28]req_shift_opened [20:04:28]FM_GetShiftState [20:04:28]SAM_PROTO_GetShiftState [20:04:28]wFMCommunicate request_size=4 [20:04:28]MH_SAM_APDU [20:04:28]CAPDU: 80 13 01 00 [20:04:28]Write to MH i2c: E2 08 00 A1 00 80 13 01 00 00 00 00 00 1E [20:04:28]Write i2c OK [20:04:28]MH_I2C_Read... [20:04:28]Read from MH i2c: E2 [20:04:28]MH_I2C_Read... [20:04:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:04:28]Read from MH i2c: E2 0E 00 [20:04:28]MH_I2C_Read... [20:04:28]Read from MH i2c: E2 0E 00 A1 00 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 CA [20:04:28]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [20:04:28]wFMCommunicate OK [20:04:28]SAM_PROTO_GetShiftState done [20:04:28]FM_GetShiftState done [20:04:28]req_shift_opened done [20:04:28]requested_item shift.open_date is exist - process it [20:04:28]req_shift_open_date [20:04:28]req_shift_open_date done [20:04:28]produce_requested_data done [20:04:28]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29333,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [20:04:28]process_action_free close_receipt [20:04:28]json_value_free [20:04:28]json_value_free done [20:04:28]process_json_proto returns [20:04:28]Send response to host [20:04:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29333,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [20:04:28]free response buf [20:04:28]execute_script done [20:04:28]execute_script returns [20:04:28]free content buf [20:04:28]Sock 9.Close socket [20:04:28]Sock 9.Thread stoped [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:06]OFD Sender: No OFD packet to send [20:07:11]OFD Sender: No OFD packet to send [20:07:16]OFD Sender: No OFD packet to send [20:07:21]OFD Sender: No OFD packet to send [20:07:26]OFD Sender: No OFD packet to send [20:07:31]OFD Sender: No OFD packet to send [20:07:36]OFD Sender: No OFD packet to send [20:07:41]OFD Sender: No OFD packet to send [20:07:46]OFD Sender: No OFD packet to send [20:07:51]OFD Sender: No OFD packet to send [20:07:56]OFD Sender: No OFD packet to send [20:08:01]OFD Sender: No OFD packet to send [20:08:06]OFD Sender: No OFD packet to send [20:08:11]OFD Sender: No OFD packet to send [20:08:16]OFD Sender: No OFD packet to send [20:08:21]OFD Sender: No OFD packet to send [20:08:26]OFD Sender: No OFD packet to send [20:08:31]OFD Sender: No OFD packet to send [20:08:36]OFD Sender: No OFD packet to send [20:08:41]OFD Sender: No OFD packet to send [20:08:46]OFD Sender: No OFD packet to send [20:08:51]OFD Sender: No OFD packet to send [20:08:57]OFD Sender: No OFD packet to send [20:09:02]OFD Sender: No OFD packet to send [20:09:07]OFD Sender: No OFD packet to send [20:09:12]OFD Sender: No OFD packet to send [20:09:17]OFD Sender: No OFD packet to send [20:09:22]OFD Sender: No OFD packet to send [20:09:27]OFD Sender: No OFD packet to send [20:09:32]OFD Sender: No OFD packet to send [20:09:37]OFD Sender: No OFD packet to send [20:09:42]OFD Sender: No OFD packet to send [20:09:47]OFD Sender: No OFD packet to send [20:09:52]OFD Sender: No OFD packet to send [20:09:57]OFD Sender: No OFD packet to send [20:10:02]OFD Sender: No OFD packet to send [20:10:07]OFD Sender: No OFD packet to send [20:10:12]OFD Sender: No OFD packet to send [20:10:17]OFD Sender: No OFD packet to send [20:10:22]OFD Sender: No OFD packet to send [20:10:27]OFD Sender: No OFD packet to send [20:10:32]OFD Sender: No OFD packet to send [20:10:37]OFD Sender: No OFD packet to send [20:10:42]OFD Sender: No OFD packet to send [20:10:47]OFD Sender: No OFD packet to send [20:10:52]OFD Sender: No OFD packet to send [20:10:57]OFD Sender: No OFD packet to send [20:11:02]OFD Sender: No OFD packet to send [20:11:07]OFD Sender: No OFD packet to send [20:11:12]OFD Sender: No OFD packet to send [20:11:17]OFD Sender: No OFD packet to send [20:11:22]OFD Sender: No OFD packet to send [20:11:27]OFD Sender: No OFD packet to send [20:11:32]OFD Sender: No OFD packet to send [20:11:37]OFD Sender: No OFD packet to send [20:11:42]OFD Sender: No OFD packet to send [20:11:47]OFD Sender: No OFD packet to send [20:11:52]OFD Sender: No OFD packet to send [20:11:57]OFD Sender: No OFD packet to send [20:12:02]OFD Sender: No OFD packet to send [20:12:07]OFD Sender: No OFD packet to send [20:12:12]OFD Sender: No OFD packet to send [20:12:17]OFD Sender: No OFD packet to send [20:12:22]OFD Sender: No OFD packet to send [20:12:27]OFD Sender: No OFD packet to send [20:12:32]OFD Sender: No OFD packet to send [20:12:37]OFD Sender: No OFD packet to send [20:12:42]OFD Sender: No OFD packet to send [20:12:47]OFD Sender: No OFD packet to send [20:12:52]OFD Sender: No OFD packet to send [20:12:57]OFD Sender: No OFD packet to send [20:13:02]OFD Sender: No OFD packet to send [20:13:07]OFD Sender: No OFD packet to send [20:13:12]OFD Sender: No OFD packet to send [20:13:17]OFD Sender: No OFD packet to send [20:13:22]OFD Sender: No OFD packet to send [20:13:27]OFD Sender: No OFD packet to send [20:13:32]OFD Sender: No OFD packet to send [20:13:37]OFD Sender: No OFD packet to send [20:13:42]OFD Sender: No OFD packet to send [20:13:47]OFD Sender: No OFD packet to send [20:13:52]OFD Sender: No OFD packet to send [20:13:57]OFD Sender: No OFD packet to send [20:14:02]OFD Sender: No OFD packet to send [20:14:07]OFD Sender: No OFD packet to send [20:14:12]OFD Sender: No OFD packet to send [20:14:17]OFD Sender: No OFD packet to send [20:14:22]OFD Sender: No OFD packet to send [20:14:27]OFD Sender: No OFD packet to send [20:14:31]accept exits with 10 [20:14:31]New connection [20:14:31]New thread 3067112804 created [20:14:31]Thread 3066969444 joined [20:14:31]Waiting for new connection... [20:14:31] Sock 10.Parse request [20:14:31]Sock 10.Check first char [20:14:31]Sock 10.First char is OK [20:14:31]request: POST /json_proto HTTP/1.0 [20:14:31]Method: POST [20:14:31]URL: /json_proto [20:14:31]Method is POST - this is cgi request [20:14:31]url: /json_proto [20:14:31]query_string will be loaded in cgi processing [20:14:31]execute_cgi json_proto POST (null) [20:14:31]execute_cgi path=json_proto method=POST [20:14:31]POST find Content-Length [20:14:31]Host: 172.17.33.3:8080 [20:14:31]Content-Length: 808 [20:14:31]Content-Type: application/json [20:14:31] [20:14:31]POST finish read [20:14:31]Found Content-Length = 808 [20:14:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347729", "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" : 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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.37 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:14:31]execute_script... [20:14: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)347729", "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" : 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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.37 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:14:31]POST & json_proto [20:14:31]process_json_proto [20:14:31]json parsed OK: [20:14:31]protocol is kg_v1.0 [20:14:31]action value=close_receipt [20:14:31]process_action close_receipt [20:14:31]cmd_close_receipt [20:14:31]MH_GetDate [20:14:31]Write to MH i2c: F0 00 00 A2 00 91 [20:14:31]Write i2c OK [20:14:31]MH_I2C_Read... [20:14:31]Read from MH i2c: F0 [20:14:31]MH_I2C_Read... [20:14:31]Read from MH i2c: F0 09 00 [20:14:31]MH_I2C_Read... [20:14:31]Read from MH i2c: F0 09 00 A2 00 00 28 39 1C 66 23 5B 8F 65 EF [20:14:31]GetLastDocTimeStamp 1713125064 [20:14:31]current date 1713125672 [20:14:31]FM_GetShiftState [20:14:31]SAM_PROTO_GetShiftState [20:14:31]wFMCommunicate request_size=4 [20:14:31]MH_SAM_APDU [20:14:31]CAPDU: 80 13 01 00 [20:14:31]Write to MH i2c: E2 08 00 A3 00 80 13 01 00 00 00 00 00 20 [20:14:31]Write i2c OK [20:14:31]MH_I2C_Read... [20:14:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:14:31]Read from MH i2c: E2 [20:14:31]MH_I2C_Read... [20:14:31]Read from MH i2c: E2 0E 00 [20:14:31]MH_I2C_Read... [20:14:31]Read from MH i2c: E2 0E 00 A3 00 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 CC [20:14:31]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [20:14:31]wFMCommunicate OK [20:14:31]SAM_PROTO_GetShiftState done [20:14:31]FM_GetShiftState done [20:14:31]opened in 1713053951 [20:14:31]opened+sec_in_day 1713140351 [20:14:31]quantity*price = 200037 [20:14:31]sum+1 = 200038 [20:14:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.37 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 0.00 Безнал.: 2000.37 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 244 14.04.2024 20:14 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29334 ФПД: 124550106592390 1/tax-web-control/client/api/v1/ticket?date=20240414T201432&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29334&fm=124550106592390&tin=02508201610067®Number=0000138879044617&sum=200037 [20:14:32]StoreToDocumentArchive [20:14:32]shift 116 fd 29334 [20:14:32]save to /storage/0116/doc_00029334 [20:14:32]save last doc name /storage/0116/doc_00029334 to /storage/kkm_last_doc_name [20:14:32]save OK [20:14:32]Clear old archive folders... [20:14:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:14:32]tlvbuf is 001EE330 [20:14:32]SAM_PROTO_ClearQueue [20:14:32]wFMCommunicate request_size=4 [20:14:32]MH_SAM_APDU [20:14:32]CAPDU: 80 09 00 00 [20:14:32]Write to MH i2c: E2 08 00 B0 00 80 09 00 00 00 00 00 00 22 [20:14:32]Write i2c OK [20:14:32]MH_I2C_Read... [20:14:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:14:32]Read from MH i2c: E2 [20:14:32]MH_I2C_Read... [20:14:32]Read from MH i2c: E2 03 00 [20:14:32]MH_I2C_Read... [20:14:32]Read from MH i2c: E2 03 00 B0 00 00 90 00 24 [20:14:32]RAPDU: 90 00 [20:14:32]wFMCommunicate OK [20:14:32]SAM_PROTO_ClearQueue done [20:14:32]KKMCreateOFDPacket [20:14:32]OFDProtocolAddRootSTLVToBuf [20:14:32]FM_MakeSignedData [20:14:32]FM_MakeSignedData [20:14:32]SAM_PROTO_SignData [20:14:32]wFMCommunicate request_size=4 [20:14:32]MH_SAM_APDU [20:14:32]CAPDU: 80 0D 01 02 [20:14:32]Write to MH i2c: E2 08 00 B1 00 80 0D 01 02 00 00 00 00 2A [20:14:32]Write i2c OK [20:14:32]MH_I2C_Read... [20:14:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:14:32]Read from MH i2c: E2 [20:14:32]MH_I2C_Read... [20:14:32]Read from MH i2c: E2 03 00 [20:14:32]MH_I2C_Read... [20:14:32]Read from MH i2c: E2 03 00 B1 00 00 90 00 25 [20:14:32]RAPDU: 90 00 [20:14:32]wFMCommunicate OK [20:14:32]wFMCommunicate request_size=255 [20:14:32]MH_SAM_APDU [20:14: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 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 F4 00 00 00 F4 03 04 00 28 39 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 96 72 00 00 35 04 06 00 71 [20:14:32]Write to MH i2c: E2 02 01 B2 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 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 F4 00 00 00 F4 03 04 00 28 39 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 96 72 00 00 35 04 06 00 71 00 00 E7 [20:14:32]Write i2c OK [20:14:32]MH_I2C_Read... [20:14:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:14:32]Read from MH i2c: E2 [20:14:32]MH_I2C_Read... [20:14:32]Read from MH i2c: E2 03 00 [20:14:32]MH_I2C_Read... [20:14:32]Read from MH i2c: E2 03 00 B2 00 00 90 00 26 [20:14:32]RAPDU: 90 00 [20:14:32]wFMCommunicate OK [20:14:32]wFMCommunicate request_size=10 [20:14:32]MH_SAM_APDU [20:14:32]CAPDU: 80 0D 02 02 05 47 14 DC 34 86 [20:14:32]Write to MH i2c: E2 0D 00 B3 00 80 0D 02 02 05 00 47 14 DC 34 86 00 00 28 [20:14:32]Write i2c OK [20:14:32]MH_I2C_Read... [20:14:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:14:32]Read from MH i2c: E2 [20:14:32]MH_I2C_Read... [20:14:32]Read from MH i2c: E2 03 00 [20:14:32]MH_I2C_Read... [20:14:32]Read from MH i2c: E2 03 00 B3 00 00 90 00 27 [20:14:32]RAPDU: 90 00 [20:14:32]wFMCommunicate OK [20:14:32]wFMCommunicate request_size=4 [20:14:32]MH_SAM_APDU [20:14:32]CAPDU: 80 0D 03 02 [20:14:32]Write to MH i2c: E2 08 00 B4 00 80 0D 03 02 00 00 00 00 2F [20:14:32]Write i2c OK [20:14:32]MH_I2C_Read... [20:14:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:14:32]Read from MH i2c: E2 [20:14:32]MH_I2C_Read... [20:14:32]Read from MH i2c: E2 0B 00 [20:14:32]MH_I2C_Read... [20:14:32]Read from MH i2c: E2 0B 00 B4 00 00 5B 93 73 9B AB 0F 45 2A 90 00 55 [20:14:32]RAPDU: 5B 93 73 9B AB 0F 45 2A 90 00 [20:14:32]wFMCommunicate OK [20:14:32]SAM_PROTO_SignData done [20:14:32]FM_MakeSignedData done [20:14:32]CreateOFDProtocolMessage [20:14:32]wFMCommunicate request_size=4 [20:14:32]MH_SAM_APDU [20:14:32]CAPDU: 80 11 00 00 [20:14:32]Write to MH i2c: E2 08 00 B5 00 80 11 00 00 00 00 00 00 2F [20:14:32]Write i2c OK [20:14:32]MH_I2C_Read... [20:14:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:14:32]Read from MH i2c: E2 [20:14:32]MH_I2C_Read... [20:14:32]Read from MH i2c: E2 17 00 [20:14:32]MH_I2C_Read... [20:14:32]Read from MH i2c: E2 17 00 B5 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 7E [20:14:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:14:32]wFMCommunicate OK [20:14:32]CreateOFDProtocolMessage done [20:14:32]OFDSenderStorePacket 29334 [20:14:32]StoreOFDPacket docnum=29334 [20:14:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 60 D2 07 01 EC 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 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 F4 00 00 00 F4 03 04 00 28 39 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 96 72 00 00 35 04 06 00 71 47 14 DC 34 86 5B 93 73 9B AB 0F 45 2A [20:14:32]CheckFolder [20:14:32]dirname=/storage/ofd_packets [20:14:32]CheckFolder done [20:14:32]ProducePacketName [20:14:32]name=ofd_packets/00029334 [20:14:32]NVStorageSaveData ofd_packets/00029334 [20:14:32]File name is /storage/ofd_packets/00029334 [20:14:32]Write 301 bytes [20:14:32]NVStorageSaveData done [20:14:32]OFDSenderStorePacket done [20:14:32]KKMCreateOFDPacket done [20:14:32]NVStorageSaveData kkm_last_timestamp [20:14:32]File name is /storage/kkm_last_timestamp [20:14:32]Write 4 bytes [20:14:32]NVStorageSaveData done [20:14:32]ExternCall_PrintAddStr [20:14:32]wPrintStart [20:14:32]Write to MH i2c: 01 00 00 B6 00 B6 [20:14:32]Write i2c OK [20:14:32]MH_I2C_Read... [20:14:32]Read from MH i2c: 01 [20:14:32]MH_I2C_Read... [20:14:32]Read from MH i2c: 01 07 00 [20:14:32]MH_I2C_Read... [20:14:32]Read from MH i2c: 01 07 00 B6 00 00 00 00 00 00 FF 0F CB [20:14:32]RasterBufferAndPrint [20:14:32]line Счет N : (1)347729 [20:14:32]line ИНН: 02508201610067 [20:14:32]line Контрольно-Кассовый Чек [20:14:32]line ПРОДАЖА [20:14:32]line ТРК (МРК, ГНК) : 32 [20:14:32]line Товар: 2710124130 [20:14:32]line Аи-92-К-5 [20:14:32]line 31.110 * 64.30 [20:14:32]line = 2000.37 [20:14:32]line НДС 12% НСП 1% [20:14:32]line > о реализуемом товаре [20:14:32]line ИТОГО: 2000.37 [20:14:32]line НСП 1% : 17.70 [20:14:32]line НДС 12% : 212.43 [20:14:32]line Наличными: 0.00 [20:14:32]line Безнал.: 2000.37 [20:14:32]line Место: АЗС № 108 "Партнер Нефть" [20:14:32]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [20:14:32]line СНО: Общий режим [20:14:32]line Чек 244 14.04.2024 20:14 [20:14:32]line Смена: 116 ФФД: 1.0 [20:14:32]line ЗНМ: 0300000027 [20:14:32]line РНМ: 0000138879044617 [20:14:32]line Версия ККМ: 001 [20:14:32]line Платежная система: О! деньги [20:14:32]line ФМ: 0000000000963154 [20:14:32]line ФД: 29334 [20:14:33]line ФПД: 124550106592390 [20:14:33]line 1/tax-web-control/client/api/v1/ticket?date=20240414T201432&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29334&fm=124550106592390&tin=02508201610067®Number=0000138879044617&sum=200037 [20:14:33]OFD Sender: Processing packet 29334 [packets to send 8, broken 7] [20:14:33]ProducePacketName [20:14:33]name=ofd_packets/00029334 [20:14:33]OFD Sender: To server: pG, [20:14:33]CommunicateWithHost lk.salyk.kg:30040 [20:14:33]ConnectInit lk.salyk.kg [20:14:33]written 0, free lines is 4095 [20:14:33]Connected sock=9 [20:14:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 60 D2 07 01 EC 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 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 F4 00 00 00 F4 03 04 00 28 39 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 96 72 00 00 35 04 06 00 71 47 14 DC 34 86 5B 93 73 9B AB 0F 45 2A [20:14:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 6F 53 47 00 92 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 96 72 00 00 F4 03 04 00 CB E3 1B 66 B6 04 01 00 00 A8 17 69 45 7B 4E 69 A0 [20:14:33]CommunicateWithHost err = 0 [20:14:33]CheckOFDResponse [20:14:33]1017 (14) - 77093643461234 [20:14:33]1041 (16) - 0000000000963154 [20:14:33]1040 (4) - 29334 [20:14:33]1012 (4) - 14.04.2024 14:10 [20:14:33]1206 (1) - 0 [20:14:33]OFD Sender: Remove packet 29334 [20:14:33]ProducePacketName [20:14:33]name=ofd_packets/00029334 [20:14:33]NVStorageDeleteData [20:14:33]Write to MH i2c: 01 00 00 DF 00 DF [20:14:33]Write i2c OK [20:14:33]MH_I2C_Read... [20:14:33]Read from MH i2c: 01 [20:14:33]MH_I2C_Read... [20:14:33]Read from MH i2c: 01 07 00 [20:14:33]MH_I2C_Read... [20:14:33]Read from MH i2c: 01 07 00 DF 00 00 00 00 00 00 E2 0C D4 [20:14:33]RasterBufferAndPrint [20:14:33]line [20:14:33]line [20:14:33]line [20:14:33]line [20:14:33]line [20:14:33]written 0, free lines is 3304 [20:14:33]MH_Cut [20:14:33]Write to MH i2c: D1 01 00 E6 00 01 B8 [20:14:33]Write i2c OK [20:14:33]MH_I2C_Read... [20:14:33]Read from MH i2c: D1 [20:14:33]MH_I2C_Read... [20:14:33]Read from MH i2c: D1 01 00 [20:14:33]MH_I2C_Read... [20:14:33]Read from MH i2c: D1 01 00 E6 00 00 B7 [20:14:33]Write to MH i2c: 01 00 00 E7 00 E7 [20:14:33]Write i2c OK [20:14:33]MH_I2C_Read... [20:14:34]OFD Sender: No OFD packet to send [20:14:34]*** Cut start [20:14:34]*** Partial cut [20:14:34]*** CUTSNS_PIN = 1 [20:14:34]*** CUTSNS_PIN = 0 [20:14:34]*** Brake cut motor [20:14:35]Read from MH i2c: 01 [20:14:35]MH_I2C_Read... [20:14:35]*** Stop cut motor [20:14:35]*** Cut end [20:14:35]Read from MH i2c: 01 07 00 [20:14:35]MH_I2C_Read... [20:14:35]Read from MH i2c: 01 07 00 E7 00 00 00 00 00 00 FF 0F FC [20:14:35]process_action close_receipt done [20:14:35]requested_data is exist [20:14:35]produce_requested_data [20:14:35]requested_item fm.sn is exist - process it [20:14:35]wFMCommunicate request_size=4 [20:14:35]MH_SAM_APDU [20:14:35]CAPDU: 80 11 00 00 [20:14:35]Write to MH i2c: E2 08 00 E8 00 80 11 00 00 00 00 00 00 62 [20:14:35]Write i2c OK [20:14:35]MH_I2C_Read... [20:14:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:14:35]Read from MH i2c: E2 [20:14:35]MH_I2C_Read... [20:14:35]Read from MH i2c: E2 17 00 [20:14:35]MH_I2C_Read... [20:14:35]Read from MH i2c: E2 17 00 E8 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B1 [20:14:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:14:35]wFMCommunicate OK [20:14:35]requested_item fd.num is exist - process it [20:14:35]SAM_PROTO_GetFieldsCounters [20:14:35]wFMCommunicate request_size=4 [20:14:35]MH_SAM_APDU [20:14:35]CAPDU: 80 13 00 00 [20:14:35]Write to MH i2c: E2 08 00 E9 00 80 13 00 00 00 00 00 00 65 [20:14:35]Write i2c OK [20:14:35]MH_I2C_Read... [20:14:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:14:35]Read from MH i2c: E2 [20:14:35]MH_I2C_Read... [20:14:35]Read from MH i2c: E2 62 00 [20:14:35]MH_I2C_Read... [20:14:35]Read from MH i2c: E2 62 00 E9 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 96 72 00 00 0E 04 04 00 74 00 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 FB [20:14:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 96 72 00 00 0E 04 04 00 74 00 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 [20:14:35]wFMCommunicate OK [20:14:35]SAM_PROTO_GetFieldsCounters done [20:14:35]requested_item shift.num is exist - process it [20:14:35]requested_item shift.opened is exist - process it [20:14:35]req_shift_opened [20:14:35]FM_GetShiftState [20:14:35]SAM_PROTO_GetShiftState [20:14:35]wFMCommunicate request_size=4 [20:14:35]MH_SAM_APDU [20:14:35]CAPDU: 80 13 01 00 [20:14:35]Write to MH i2c: E2 08 00 EA 00 80 13 01 00 00 00 00 00 67 [20:14:35]Write i2c OK [20:14:35]MH_I2C_Read... [20:14:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:14:35]Read from MH i2c: E2 [20:14:35]MH_I2C_Read... [20:14:35]Read from MH i2c: E2 0E 00 [20:14:35]MH_I2C_Read... [20:14:35]Read from MH i2c: E2 0E 00 EA 00 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 13 [20:14:35]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [20:14:35]wFMCommunicate OK [20:14:35]SAM_PROTO_GetShiftState done [20:14:35]FM_GetShiftState done [20:14:35]req_shift_opened done [20:14:35]requested_item shift.open_date is exist - process it [20:14:35]req_shift_open_date [20:14:35]req_shift_open_date done [20:14:35]produce_requested_data done [20:14:35]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29334,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [20:14:35]process_action_free close_receipt [20:14:35]json_value_free [20:14:35]json_value_free done [20:14:35]process_json_proto returns [20:14:35]Send response to host [20:14:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29334,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [20:14:35]free response buf [20:14:35]execute_script done [20:14:35]execute_script returns [20:14:35]free content buf [20:14:35]Sock 10.Close socket [20:14:35]Sock 10.Thread stoped [20:14:39]OFD Sender: No OFD packet to send [20:14:44]OFD Sender: No OFD packet to send [20:14:49]OFD Sender: No OFD packet to send [20:14:54]OFD Sender: No OFD packet to send [20:14:59]OFD Sender: No OFD packet to send [20:15:04]OFD Sender: No OFD packet to send [20:15:09]OFD Sender: No OFD packet to send [20:15:14]OFD Sender: No OFD packet to send [20:15:19]OFD Sender: No OFD packet to send [20:15:24]OFD Sender: No OFD packet to send [20:15:26]accept exits with 8 [20:15:26]New connection [20:15:26]New thread 3066969444 created [20:15:26]Thread 3067112804 joined [20:15:26]Waiting for new connection... [20:15:26] Sock 8.Parse request [20:15:26]Sock 8.Check first char [20:15:26]Sock 8.First char is OK [20:15:26]request: POST /json_proto HTTP/1.0 [20:15:26]Method: POST [20:15:26]URL: /json_proto [20:15:26]Method is POST - this is cgi request [20:15:26]url: /json_proto [20:15:26]query_string will be loaded in cgi processing [20:15:26]execute_cgi json_proto POST (null) [20:15:26]execute_cgi path=json_proto method=POST [20:15:26]POST find Content-Length [20:15:26]Host: 172.17.33.3:8080 [20:15:26]Content-Length: 679 [20:15:26]Content-Type: application/json [20:15:26] [20:15:26]POST finish read [20:15:26]Found Content-Length = 679 [20:15:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347730", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 17.720, "sum" : 1282.93, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1289.00, "total" : 1282.00, "payments": [ { "type": 0, "sum" : 1282.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:15:26]execute_script... [20:15: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)347730", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 17.720, "sum" : 1282.93, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1289.00, "total" : 1282.00, "payments": [ { "type": 0, "sum" : 1282.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:15:26]POST & json_proto [20:15:26]process_json_proto [20:15:26]json parsed OK: [20:15:26]protocol is kg_v1.0 [20:15:26]action value=close_receipt [20:15:26]process_action close_receipt [20:15:26]cmd_close_receipt [20:15:26]MH_GetDate [20:15:26]Write to MH i2c: F0 00 00 EB 00 DA [20:15:26]Write i2c OK [20:15:26]MH_I2C_Read... [20:15:26]Read from MH i2c: F0 [20:15:26]MH_I2C_Read... [20:15:26]Read from MH i2c: F0 09 00 [20:15:26]MH_I2C_Read... [20:15:26]Read from MH i2c: F0 09 00 EB 00 00 5F 39 1C 66 23 5B 8F 65 6F [20:15:26]GetLastDocTimeStamp 1713125672 [20:15:26]current date 1713125727 [20:15:26]FM_GetShiftState [20:15:26]SAM_PROTO_GetShiftState [20:15:26]wFMCommunicate request_size=4 [20:15:26]MH_SAM_APDU [20:15:26]CAPDU: 80 13 01 00 [20:15:26]Write to MH i2c: E2 08 00 EC 00 80 13 01 00 00 00 00 00 69 [20:15:26]Write i2c OK [20:15:26]MH_I2C_Read... [20:15:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:15:26]Read from MH i2c: E2 [20:15:26]MH_I2C_Read... [20:15:26]Read from MH i2c: E2 0E 00 [20:15:26]MH_I2C_Read... [20:15:26]Read from MH i2c: E2 0E 00 EC 00 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 15 [20:15:26]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [20:15:26]wFMCommunicate OK [20:15:26]SAM_PROTO_GetShiftState done [20:15:26]FM_GetShiftState done [20:15:26]opened in 1713053951 [20:15:26]opened+sec_in_day 1713140351 [20:15:26]quantity*price = 128292 [20:15:26]sum+1 = 128294 [20:15:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.93 ИТОГО: 1282.00 Внесено: 1289.00 СДАЧА: 7.00 НСП 1% : 11.35 НДС 12% : 136.24 Наличными: 1282.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 245 14.04.2024 20:15 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29335 ФПД: 209023295129600 1/tax-web-control/client/api/v1/ticket?date=20240414T201527&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29335&fm=209023295129600&tin=02508201610067®Number=0000138879044617&sum=128200 [20:15:28]StoreToDocumentArchive [20:15:28]shift 116 fd 29335 [20:15:28]save to /storage/0116/doc_00029335 [20:15:28]save last doc name /storage/0116/doc_00029335 to /storage/kkm_last_doc_name [20:15:28]save OK [20:15:28]Clear old archive folders... [20:15:28]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:15:28]tlvbuf is 00257990 [20:15:28]SAM_PROTO_ClearQueue [20:15:28]wFMCommunicate request_size=4 [20:15:28]MH_SAM_APDU [20:15:28]CAPDU: 80 09 00 00 [20:15:28]Write to MH i2c: E2 08 00 F9 00 80 09 00 00 00 00 00 00 6B [20:15:28]Write i2c OK [20:15:28]MH_I2C_Read... [20:15:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:15:28]Read from MH i2c: E2 [20:15:28]MH_I2C_Read... [20:15:28]Read from MH i2c: E2 03 00 [20:15:28]MH_I2C_Read... [20:15:28]Read from MH i2c: E2 03 00 F9 00 00 90 00 6D [20:15:28]RAPDU: 90 00 [20:15:28]wFMCommunicate OK [20:15:28]SAM_PROTO_ClearQueue done [20:15:28]KKMCreateOFDPacket [20:15:28]OFDProtocolAddRootSTLVToBuf [20:15:28]FM_MakeSignedData [20:15:28]FM_MakeSignedData [20:15:28]SAM_PROTO_SignData [20:15:28]wFMCommunicate request_size=4 [20:15:28]MH_SAM_APDU [20:15:28]CAPDU: 80 0D 01 02 [20:15:28]Write to MH i2c: E2 08 00 FA 00 80 0D 01 02 00 00 00 00 73 [20:15:28]Write i2c OK [20:15:28]MH_I2C_Read... [20:15:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:15:28]Read from MH i2c: E2 [20:15:28]MH_I2C_Read... [20:15:28]Read from MH i2c: E2 03 00 [20:15:28]MH_I2C_Read... [20:15:28]Read from MH i2c: E2 03 00 FA 00 00 90 00 6E [20:15:28]RAPDU: 90 00 [20:15:28]wFMCommunicate OK [20:15:28]wFMCommunicate request_size=255 [20:15:28]MH_SAM_APDU [20:15: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 38 45 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 25 F5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 F4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 35 00 00 00 00 07 04 06 00 C8 F4 01 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 5F 39 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 97 72 00 00 35 04 06 00 BE 1B 07 41 [20:15:28]Write to MH i2c: E2 02 01 FB 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 38 45 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 25 F5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 F4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 35 00 00 00 00 07 04 06 00 C8 F4 01 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 5F 39 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 97 72 00 00 35 04 06 00 BE 1B 07 41 00 00 F0 [20:15:28]Write i2c OK [20:15:28]MH_I2C_Read... [20:15:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:15:28]Read from MH i2c: E2 [20:15:28]MH_I2C_Read... [20:15:28]Read from MH i2c: E2 03 00 [20:15:28]MH_I2C_Read... [20:15:28]Read from MH i2c: E2 03 00 FB 00 00 90 00 6F [20:15:28]RAPDU: 90 00 [20:15:28]wFMCommunicate OK [20:15:28]wFMCommunicate request_size=7 [20:15:28]MH_SAM_APDU [20:15:28]CAPDU: 80 0D 02 02 02 88 00 [20:15:28]Write to MH i2c: E2 0A 00 FC 00 80 0D 02 02 02 00 88 00 00 00 02 [20:15:28]Write i2c OK [20:15:28]MH_I2C_Read... [20:15:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:15:28]Read from MH i2c: E2 [20:15:28]MH_I2C_Read... [20:15:28]Read from MH i2c: E2 03 00 [20:15:28]MH_I2C_Read... [20:15:28]Read from MH i2c: E2 03 00 FC 00 00 90 00 70 [20:15:28]RAPDU: 90 00 [20:15:28]wFMCommunicate OK [20:15:28]wFMCommunicate request_size=4 [20:15:28]MH_SAM_APDU [20:15:28]CAPDU: 80 0D 03 02 [20:15:28]Write to MH i2c: E2 08 00 FD 00 80 0D 03 02 00 00 00 00 78 [20:15:28]Write i2c OK [20:15:28]MH_I2C_Read... [20:15:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:15:28]Read from MH i2c: E2 [20:15:28]MH_I2C_Read... [20:15:28]Read from MH i2c: E2 0B 00 [20:15:28]MH_I2C_Read... [20:15:28]Read from MH i2c: E2 0B 00 FD 00 00 85 5D BD E6 17 6E 8F 04 90 00 16 [20:15:28]RAPDU: 85 5D BD E6 17 6E 8F 04 90 00 [20:15:28]wFMCommunicate OK [20:15:28]SAM_PROTO_SignData done [20:15:28]FM_MakeSignedData done [20:15:28]CreateOFDProtocolMessage [20:15:28]wFMCommunicate request_size=4 [20:15:28]MH_SAM_APDU [20:15:28]CAPDU: 80 11 00 00 [20:15:28]Write to MH i2c: E2 08 00 FE 00 80 11 00 00 00 00 00 00 78 [20:15:28]Write i2c OK [20:15:28]MH_I2C_Read... [20:15:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:15:28]Read from MH i2c: E2 [20:15:28]MH_I2C_Read... [20:15:28]Read from MH i2c: E2 17 00 [20:15:28]MH_I2C_Read... [20:15:28]Read from MH i2c: E2 17 00 FE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C7 [20:15:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:15:28]wFMCommunicate OK [20:15:28]CreateOFDProtocolMessage done [20:15:28]OFDSenderStorePacket 29335 [20:15:28]StoreOFDPacket docnum=29335 [20:15:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 8D 93 04 01 F7 37 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 38 45 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 25 F5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 F4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 35 00 00 00 00 07 04 06 00 C8 F4 01 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 5F 39 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 97 72 00 00 35 04 06 00 BE 1B 07 41 88 00 85 5D BD E6 17 6E 8F 04 [20:15:28]CheckFolder [20:15:28]dirname=/storage/ofd_packets [20:15:28]CheckFolder done [20:15:28]ProducePacketName [20:15:28]name=ofd_packets/00029335 [20:15:28]NVStorageSaveData ofd_packets/00029335 [20:15:28]File name is /storage/ofd_packets/00029335 [20:15:28]Write 298 bytes [20:15:28]NVStorageSaveData done [20:15:28]OFDSenderStorePacket done [20:15:28]KKMCreateOFDPacket done [20:15:28]NVStorageSaveData kkm_last_timestamp [20:15:28]File name is /storage/kkm_last_timestamp [20:15:28]Write 4 bytes [20:15:28]NVStorageSaveData done [20:15:28]ExternCall_PrintAddStr [20:15:28]wPrintStart [20:15:28]Write to MH i2c: 01 00 00 FF 00 FF [20:15:28]Write i2c OK [20:15:28]MH_I2C_Read... [20:15:28]Read from MH i2c: 01 [20:15:28]MH_I2C_Read... [20:15:28]Read from MH i2c: 01 07 00 [20:15:28]MH_I2C_Read... [20:15:28]Read from MH i2c: 01 07 00 FF 00 00 00 00 00 00 FF 0F 14 [20:15:28]RasterBufferAndPrint [20:15:28]line Счет N : (1)347730 [20:15:28]line ИНН: 02508201610067 [20:15:28]line Контрольно-Кассовый Чек [20:15:28]line ПРОДАЖА [20:15:28]line ТРК (МРК, ГНК) : 21 [20:15:28]line Товар: 2710194210 [20:15:28]line ДТ-К-5 [20:15:28]line 17.720 * 72.40 [20:15:28]line = 1282.93 [20:15:28]line НДС 12% НСП 1% [20:15:28]line > о реализуемом товаре [20:15:28]line ОКРУГЛЕНИЕ: -0.93 [20:15:28]line ИТОГО: 1282.00 [20:15:28]line Внесено: 1289.00 [20:15:28]line СДАЧА: 7.00 [20:15:28]line НСП 1% : 11.35 [20:15:28]line НДС 12% : 136.24 [20:15:28]line Наличными: 1282.00 [20:15:28]line Безнал.: 0.00 [20:15:28]line Место: АЗС № 108 "Партнер Нефть" [20:15:28]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [20:15:28]line СНО: Общий режим [20:15:28]line Чек 245 14.04.2024 20:15 [20:15:28]line Смена: 116 ФФД: 1.0 [20:15:28]line ЗНМ: 0300000027 [20:15:28]line РНМ: 0000138879044617 [20:15:28]line Версия ККМ: 001 [20:15:28]line ФМ: 0000000000963154 [20:15:28]line ФД: 29335 [20:15:28]line ФПД: 209023295129600 [20:15:28]line 1/tax-web-control/client/api/v1/ticket?date=20240414T201527&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29335&fm=209023295129600&tin=02508201610067®Number=0000138879044617&sum=128200 [20:15:28]OFD Sender: Processing packet 29335 [packets to send 8, broken 7] [20:15:28]ProducePacketName [20:15:28]name=ofd_packets/00029335 [20:15:28]OFD Sender: To server: pG, [20:15:28]CommunicateWithHost lk.salyk.kg:30040 [20:15:28]ConnectInit lk.salyk.kg [20:15:28]written 0, free lines is 4095 [20:15:28]Connected sock=10 [20:15:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 8D 93 04 01 F7 37 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 38 45 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 25 F5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 F4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 35 00 00 00 00 07 04 06 00 C8 F4 01 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 5F 39 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 97 72 00 00 35 04 06 00 BE 1B 07 41 88 00 85 5D BD E6 17 6E 8F 04 [20:15:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 3B 20 47 00 B0 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 39 36 33 31 35 34 10 04 04 00 97 72 00 00 F4 03 04 00 02 E4 1B 66 B6 04 01 00 00 97 E2 62 8E E0 43 4C 7C [20:15:29]CommunicateWithHost err = 0 [20:15:29]CheckOFDResponse [20:15:29]1017 (14) - 77093643461234 [20:15:29]1041 (16) - 0000000000963154 [20:15:29]1040 (4) - 29335 [20:15:29]1012 (4) - 14.04.2024 14:11 [20:15:29]1206 (1) - 0 [20:15:29]OFD Sender: Remove packet 29335 [20:15:29]ProducePacketName [20:15:29]name=ofd_packets/00029335 [20:15:29]NVStorageDeleteData [20:15:29]Write to MH i2c: 01 00 00 29 01 2A [20:15:29]Write i2c OK [20:15:29]MH_I2C_Read... [20:15:29]Read from MH i2c: 01 [20:15:29]MH_I2C_Read... [20:15:29]Read from MH i2c: 01 07 00 [20:15:29]MH_I2C_Read... [20:15:29]Read from MH i2c: 01 07 00 29 01 00 00 00 00 00 D4 0C 11 [20:15:29]RasterBufferAndPrint [20:15:29]line [20:15:29]line [20:15:29]line [20:15:29]line [20:15:29]line [20:15:29]written 0, free lines is 3292 [20:15:29]MH_Cut [20:15:29]Write to MH i2c: D1 01 00 30 01 01 03 [20:15:29]Write i2c OK [20:15:29]MH_I2C_Read... [20:15:29]Read from MH i2c: D1 [20:15:29]MH_I2C_Read... [20:15:29]Read from MH i2c: D1 01 00 [20:15:29]MH_I2C_Read... [20:15:29]Read from MH i2c: D1 01 00 30 01 00 02 [20:15:29]Write to MH i2c: 01 00 00 31 01 32 [20:15:29]Write i2c OK [20:15:29]MH_I2C_Read... [20:15:29]OFD Sender: No OFD packet to send [20:15:30]*** Cut start [20:15:30]*** Partial cut [20:15:30]*** CUTSNS_PIN = 1 [20:15:30]*** CUTSNS_PIN = 0 [20:15:30]*** Brake cut motor [20:15:30]Read from MH i2c: 01 [20:15:30]MH_I2C_Read... [20:15:30]*** Stop cut motor [20:15:30]*** Cut end [20:15:30]Read from MH i2c: 01 07 00 [20:15:30]MH_I2C_Read... [20:15:30]Read from MH i2c: 01 07 00 31 01 00 00 00 00 00 FF 0F 47 [20:15:30]process_action close_receipt done [20:15:30]requested_data is exist [20:15:30]produce_requested_data [20:15:30]requested_item fm.sn is exist - process it [20:15:30]wFMCommunicate request_size=4 [20:15:30]MH_SAM_APDU [20:15:30]CAPDU: 80 11 00 00 [20:15:30]Write to MH i2c: E2 08 00 32 01 80 11 00 00 00 00 00 00 AD [20:15:30]Write i2c OK [20:15:30]MH_I2C_Read... [20:15:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:15:30]Read from MH i2c: E2 [20:15:30]MH_I2C_Read... [20:15:30]Read from MH i2c: E2 17 00 [20:15:30]MH_I2C_Read... [20:15:30]Read from MH i2c: E2 17 00 32 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 FC [20:15:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:15:30]wFMCommunicate OK [20:15:30]requested_item fd.num is exist - process it [20:15:30]SAM_PROTO_GetFieldsCounters [20:15:30]wFMCommunicate request_size=4 [20:15:30]MH_SAM_APDU [20:15:30]CAPDU: 80 13 00 00 [20:15:30]Write to MH i2c: E2 08 00 33 01 80 13 00 00 00 00 00 00 B0 [20:15:30]Write i2c OK [20:15:30]MH_I2C_Read... [20:15:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:15:30]Read from MH i2c: E2 [20:15:30]MH_I2C_Read... [20:15:30]Read from MH i2c: E2 62 00 [20:15:30]MH_I2C_Read... [20:15:30]Read from MH i2c: E2 62 00 33 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 97 72 00 00 0E 04 04 00 74 00 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 4A [20:15:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 97 72 00 00 0E 04 04 00 74 00 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 [20:15:30]wFMCommunicate OK [20:15:30]SAM_PROTO_GetFieldsCounters done [20:15:30]requested_item shift.num is exist - process it [20:15:30]requested_item shift.opened is exist - process it [20:15:30]req_shift_opened [20:15:30]FM_GetShiftState [20:15:30]SAM_PROTO_GetShiftState [20:15:30]wFMCommunicate request_size=4 [20:15:30]MH_SAM_APDU [20:15:30]CAPDU: 80 13 01 00 [20:15:30]Write to MH i2c: E2 08 00 34 01 80 13 01 00 00 00 00 00 B2 [20:15:30]Write i2c OK [20:15:30]MH_I2C_Read... [20:15:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:15:31]Read from MH i2c: E2 [20:15:31]MH_I2C_Read... [20:15:31]Read from MH i2c: E2 0E 00 [20:15:31]MH_I2C_Read... [20:15:31]Read from MH i2c: E2 0E 00 34 01 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 5E [20:15:31]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [20:15:31]wFMCommunicate OK [20:15:31]SAM_PROTO_GetShiftState done [20:15:31]FM_GetShiftState done [20:15:31]req_shift_opened done [20:15:31]requested_item shift.open_date is exist - process it [20:15:31]req_shift_open_date [20:15:31]req_shift_open_date done [20:15:31]produce_requested_data done [20:15:31]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29335,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [20:15:31]process_action_free close_receipt [20:15:31]json_value_free [20:15:31]json_value_free done [20:15:31]process_json_proto returns [20:15:31]Send response to host [20:15:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29335,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [20:15:31]free response buf [20:15:31]execute_script done [20:15:31]execute_script returns [20:15:31]free content buf [20:15:31]Sock 8.Close socket [20:15:31]Sock 8.Thread stoped [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:50]accept exits with 9 [20:15:50]New connection [20:15:50]New thread 3067112804 created [20:15:50]Thread 3066969444 joined [20:15:50]Waiting for new connection... [20:15:50] Sock 9.Parse request [20:15:50]Sock 9.Check first char [20:15:50]Sock 9.First char is OK [20:15:50]request: POST /json_proto HTTP/1.0 [20:15:50]Method: POST [20:15:50]URL: /json_proto [20:15:50]Method is POST - this is cgi request [20:15:50]url: /json_proto [20:15:50]query_string will be loaded in cgi processing [20:15:50]execute_cgi json_proto POST (null) [20:15:50]execute_cgi path=json_proto method=POST [20:15:50]POST find Content-Length [20:15:50]Host: 172.17.33.3:8080 [20:15:50]Content-Length: 215 [20:15:50]Content-Type: application/json [20:15:50] [20:15:50]POST finish read [20:15:50]Found Content-Length = 215 [20:15:50]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" ] } } [20:15:50]execute_script... [20:15:50]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" ] } } [20:15:50]POST & json_proto [20:15:50]process_json_proto [20:15:50]json parsed OK: [20:15:50]protocol is kg_v1.0 [20:15:50]action value=get_value [20:15:50]process_action get_value [20:15:50]cmd_get_value [20:15:50]process_action get_value done [20:15:50]requested_data is exist [20:15:50]produce_requested_data [20:15:50]requested_item kkm.sn is exist - process it [20:15:50]requested_item kkm.ver is exist - process it [20:15:50]requested_item fm.sn is exist - process it [20:15:50]wFMCommunicate request_size=4 [20:15:50]MH_SAM_APDU [20:15:50]CAPDU: 80 11 00 00 [20:15:50]Write to MH i2c: E2 08 00 35 01 80 11 00 00 00 00 00 00 B0 [20:15:50]Write i2c OK [20:15:50]MH_I2C_Read... [20:15:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:15:51]Read from MH i2c: E2 [20:15:51]MH_I2C_Read... [20:15:51]Read from MH i2c: E2 17 00 [20:15:51]MH_I2C_Read... [20:15:51]Read from MH i2c: E2 17 00 35 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 FF [20:15:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:15:51]wFMCommunicate OK [20:15:51]requested_item fd.num is exist - process it [20:15:51]SAM_PROTO_GetFieldsCounters [20:15:51]wFMCommunicate request_size=4 [20:15:51]MH_SAM_APDU [20:15:51]CAPDU: 80 13 00 00 [20:15:51]Write to MH i2c: E2 08 00 36 01 80 13 00 00 00 00 00 00 B3 [20:15:51]Write i2c OK [20:15:51]MH_I2C_Read... [20:15:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:15:51]Read from MH i2c: E2 [20:15:51]MH_I2C_Read... [20:15:51]Read from MH i2c: E2 62 00 [20:15:51]MH_I2C_Read... [20:15:51]Read from MH i2c: E2 62 00 36 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 97 72 00 00 0E 04 04 00 74 00 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 4D [20:15:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 97 72 00 00 0E 04 04 00 74 00 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 [20:15:51]wFMCommunicate OK [20:15:51]SAM_PROTO_GetFieldsCounters done [20:15:51]requested_item shift.num is exist - process it [20:15:51]requested_item shift.opened is exist - process it [20:15:51]req_shift_opened [20:15:51]FM_GetShiftState [20:15:51]SAM_PROTO_GetShiftState [20:15:51]wFMCommunicate request_size=4 [20:15:51]MH_SAM_APDU [20:15:51]CAPDU: 80 13 01 00 [20:15:51]Write to MH i2c: E2 08 00 37 01 80 13 01 00 00 00 00 00 B5 [20:15:51]Write i2c OK [20:15:51]MH_I2C_Read... [20:15:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:15:51]Read from MH i2c: E2 [20:15:51]MH_I2C_Read... [20:15:51]Read from MH i2c: E2 0E 00 [20:15:51]MH_I2C_Read... [20:15:51]Read from MH i2c: E2 0E 00 37 01 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 61 [20:15:51]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [20:15:51]wFMCommunicate OK [20:15:51]SAM_PROTO_GetShiftState done [20:15:51]FM_GetShiftState done [20:15:51]req_shift_opened done [20:15:51]requested_item shift.open_date is exist - process it [20:15:51]req_shift_open_date [20:15:51]req_shift_open_date done [20:15:51]produce_requested_data done [20:15:51]produce_requested_data return {"kkm.sn":"0300000027","kkm.ver":"001","fm.sn":"0000000000963154","fd.num":29335,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [20:15:51]process_action_free get_value [20:15:51]json_value_free [20:15:51]json_value_free done [20:15:51]process_json_proto returns [20:15:51]Send response to host [20:15:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000027","kkm.ver":"001","fm.sn":"0000000000963154","fd.num":29335,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [20:15:51]free response buf [20:15:51]execute_script done [20:15:51]execute_script returns [20:15:51]free content buf [20:15:51]Sock 9.Close socket [20:15:51]Sock 9.Thread stoped [20:15:51]accept exits with 8 [20:15:51]New connection [20:15:51]New thread 3066969444 created [20:15:51]Thread 3067112804 joined [20:15:51]Waiting for new connection... [20:15:51] Sock 8.Parse request [20:15:51]Sock 8.Check first char [20:15:51]Sock 8.First char is OK [20:15:51]request: POST /json_proto HTTP/1.0 [20:15:51]Method: POST [20:15:51]URL: /json_proto [20:15:51]Method is POST - this is cgi request [20:15:51]url: /json_proto [20:15:51]query_string will be loaded in cgi processing [20:15:51]execute_cgi json_proto POST (null) [20:15:51]execute_cgi path=json_proto method=POST [20:15:51]POST find Content-Length [20:15:51]Host: 172.17.33.3:8080 [20:15:51]Content-Length: 331 [20:15:51]Content-Type: application/json [20:15:51] [20:15:51]POST finish read [20:15:51]Found Content-Length = 331 [20:15:51]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" ] } } [20:15:51]execute_script... [20:15:51]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" ] } } [20:15:51]POST & json_proto [20:15:51]process_json_proto [20:15:51]json parsed OK: [20:15:51]protocol is kg_v1.0 [20:15:51]action value=get_value [20:15:51]process_action get_value [20:15:51]cmd_get_value [20:15:51]process_action get_value done [20:15:51]requested_data is exist [20:15:51]produce_requested_data [20:15:51]requested_item fm.sale.total is exist - process it [20:15:51]SAM_PROTO_GetFMData [20:15:51]wFMCommunicate request_size=4 [20:15:51]MH_SAM_APDU [20:15:51]CAPDU: 80 13 03 00 [20:15:51]Write to MH i2c: E2 08 00 38 01 80 13 03 00 00 00 00 00 B8 [20:15:51]Write i2c OK [20:15:51]MH_I2C_Read... [20:15:51]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [20:15:52]Read from MH i2c: E2 [20:15:52]MH_I2C_Read... [20:15:52]Read from MH i2c: E2 FD 00 [20:15:52]MH_I2C_Read... [20:15:52]Read from MH i2c: E2 FD 00 38 01 00 C3 04 85 04 BF 04 6E 04 04 00 AF 71 00 00 69 04 A1 00 6F 04 04 00 4C 6E 00 00 B1 04 04 00 3A 8A A1 B3 70 04 04 00 A8 8A 69 72 72 04 04 00 92 FF 37 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 5D 61 14 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 04 FF 96 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 63 03 00 00 B1 04 04 00 64 9C E3 0C 70 04 04 00 64 9C E3 0C 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 88 70 5E 01 EF 03 09 00 F6 90 00 EC [20:15:52]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 AF 71 00 00 69 04 A1 00 6F 04 04 00 4C 6E 00 00 B1 04 04 00 3A 8A A1 B3 70 04 04 00 A8 8A 69 72 72 04 04 00 92 FF 37 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 5D 61 14 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 04 FF 96 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 63 03 00 00 B1 04 04 00 64 9C E3 0C 70 04 04 00 64 9C E3 0C 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 88 70 5E 01 EF 03 09 00 F6 90 00 [20:15:52]wFMCommunicate OK [20:15:52]wFMCommunicate request_size=4 [20:15:52]MH_SAM_APDU [20:15:52]CAPDU: 80 17 00 00 [20:15:52]Write to MH i2c: E2 08 00 39 01 80 17 00 00 00 00 00 00 BA [20:15:52]Write i2c OK [20:15:52]MH_I2C_Read... [20:15:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:15:52]Read from MH i2c: E2 [20:15:52]MH_I2C_Read... [20:15:52]Read from MH i2c: E2 FD 00 [20:15:52]MH_I2C_Read... [20:15:52]Read from MH i2c: E2 FD 00 39 01 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 9B 33 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 90 00 65 [20:15:52]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 9B 33 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 90 00 [20:15:52]wFMCommunicate OK [20:15:52]wFMCommunicate request_size=4 [20:15:52]MH_SAM_APDU [20:15:52]CAPDU: 80 17 00 00 [20:15:52]Write to MH i2c: E2 08 00 3A 01 80 17 00 00 00 00 00 00 BB [20:15:52]Write i2c OK [20:15:52]MH_I2C_Read... [20:15:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:15:52]Read from MH i2c: E2 [20:15:52]MH_I2C_Read... [20:15:52]Read from MH i2c: E2 FD 00 [20:15:52]MH_I2C_Read... [20:15:52]Read from MH i2c: E2 FD 00 3A 01 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 90 00 D9 [20:15:52]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 90 00 [20:15:52]wFMCommunicate OK [20:15:52]wFMCommunicate request_size=4 [20:15:52]MH_SAM_APDU [20:15:52]CAPDU: 80 17 00 00 [20:15:52]Write to MH i2c: E2 08 00 3B 01 80 17 00 00 00 00 00 00 BC [20:15:52]Write i2c OK [20:15:52]MH_I2C_Read... [20:15:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:15:52]Read from MH i2c: E2 [20:15:52]MH_I2C_Read... [20:15:52]Read from MH i2c: E2 FD 00 [20:15:52]MH_I2C_Read... [20:15:52]Read from MH i2c: E2 FD 00 3B 01 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 2E [20:15:52]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [20:15:52]wFMCommunicate OK [20:15:52]wFMCommunicate request_size=4 [20:15:52]MH_SAM_APDU [20:15:52]CAPDU: 80 17 00 00 [20:15:52]Write to MH i2c: E2 08 00 3C 01 80 17 00 00 00 00 00 00 BD [20:15:52]Write i2c OK [20:15:52]MH_I2C_Read... [20:15:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [20:15:53]Read from MH i2c: E2 [20:15:53]MH_I2C_Read... [20:15:53]Read from MH i2c: E2 E0 00 [20:15:53]MH_I2C_Read... [20:15:53]Read from MH i2c: E2 E0 00 3C 01 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 A7 [20:15:53]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [20:15:53]wFMCommunicate OK [20:15:53]SAM_PROTO_GetFMData done [20:15:53]requested_item fm.sale_refund.total is exist - process it [20:15:53]requested_item fm.buy.total is exist - process it [20:15:53]requested_item shift.sale.total is exist - process it [20:15:53]SAM_PROTO_GetShiftData [20:15:53]wFMCommunicate request_size=4 [20:15:53]MH_SAM_APDU [20:15:53]CAPDU: 80 13 02 00 [20:15:53]Write to MH i2c: E2 08 00 3D 01 80 13 02 00 00 00 00 00 BC [20:15:53]Write i2c OK [20:15:53]MH_I2C_Read... [20:15:53]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [20:15:53]Read from MH i2c: E2 [20:15:53]MH_I2C_Read... [20:15:53]Read from MH i2c: E2 FD 00 [20:15:53]MH_I2C_Read... [20:15:53]Read from MH i2c: E2 FD 00 3D 01 00 BC 04 AA 04 B8 04 6E 04 04 00 F5 00 00 00 69 04 9E 00 6F 04 04 00 F2 00 00 00 B1 04 04 00 B3 BA 96 01 70 04 04 00 98 03 18 01 72 04 03 00 1B B7 7E 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 A1 33 2B 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 8E 99 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 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 4C 85 42 70 04 03 00 4C 85 42 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 71 10 07 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 99 [20:15:53]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 F5 00 00 00 69 04 9E 00 6F 04 04 00 F2 00 00 00 B1 04 04 00 B3 BA 96 01 70 04 04 00 98 03 18 01 72 04 03 00 1B B7 7E 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 A1 33 2B 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 8E 99 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 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 4C 85 42 70 04 03 00 4C 85 42 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 71 10 07 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [20:15:53]wFMCommunicate OK [20:15:53]wFMCommunicate request_size=4 [20:15:53]MH_SAM_APDU [20:15:53]CAPDU: 80 17 00 00 [20:15:53]Write to MH i2c: E2 08 00 3E 01 80 17 00 00 00 00 00 00 BF [20:15:53]Write i2c OK [20:15:53]MH_I2C_Read... [20:15:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:15:53]Read from MH i2c: E2 [20:15:53]MH_I2C_Read... [20:15:53]Read from MH i2c: E2 FD 00 [20:15:53]MH_I2C_Read... [20:15:53]Read from MH i2c: E2 FD 00 3E 01 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 B4 96 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B3 [20:15:53]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 B4 96 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [20:15:53]wFMCommunicate OK [20:15:53]wFMCommunicate request_size=4 [20:15:53]MH_SAM_APDU [20:15:53]CAPDU: 80 17 00 00 [20:15:53]Write to MH i2c: E2 08 00 3F 01 80 17 00 00 00 00 00 00 C0 [20:15:53]Write i2c OK [20:15:53]MH_I2C_Read... [20:15:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:15:54]Read from MH i2c: E2 [20:15:54]MH_I2C_Read... [20:15:54]Read from MH i2c: E2 FD 00 [20:15:54]MH_I2C_Read... [20:15:54]Read from MH i2c: E2 FD 00 3F 01 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E9 [20:15:54]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [20:15:54]wFMCommunicate OK [20:15:54]wFMCommunicate request_size=4 [20:15:54]MH_SAM_APDU [20:15:54]CAPDU: 80 17 00 00 [20:15:54]Write to MH i2c: E2 08 00 40 01 80 17 00 00 00 00 00 00 C1 [20:15:54]Write i2c OK [20:15:54]MH_I2C_Read... [20:15:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:15:54]Read from MH i2c: E2 [20:15:54]MH_I2C_Read... [20:15:54]Read from MH i2c: E2 FD 00 [20:15:54]MH_I2C_Read... [20:15:54]Read from MH i2c: E2 FD 00 40 01 00 03 00 00 EF 03 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 90 00 42 [20:15:54]RAPDU: 03 00 00 EF 03 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 90 00 [20:15:54]wFMCommunicate OK [20:15:54]wFMCommunicate request_size=4 [20:15:54]MH_SAM_APDU [20:15:54]CAPDU: 80 17 00 00 [20:15:54]Write to MH i2c: E2 08 00 41 01 80 17 00 00 00 00 00 00 C2 [20:15:54]Write i2c OK [20:15:54]MH_I2C_Read... [20:15:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [20:15:54]Read from MH i2c: E2 [20:15:54]MH_I2C_Read... [20:15:54]Read from MH i2c: E2 D9 00 [20:15:54]MH_I2C_Read... [20:15:54]Read from MH i2c: E2 D9 00 41 01 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 A1 [20:15:54]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [20:15:54]wFMCommunicate OK [20:15:54]SAM_PROTO_GetShiftData done [20:15:54]requested_item shift.sale.total_cash is exist - process it [20:15:54]requested_item shift.sale_refund.total is exist - process it [20:15:54]requested_item shift.sale_refund.total_cash is exist - process it [20:15:54]requested_item shift.buy.total is exist - process it [20:15:54]requested_item shift.buy.total_cash is exist - process it [20:15:54]produce_requested_data done [20:15:54]produce_requested_data return {"fm.sale.total":30137083.46,"fm.sale_refund.total":2162433.00,"fm.buy.total":0.00,"shift.sale.total":266554.11,"shift.sale.total_cash":183510.00,"shift.sale_refund.total":43595.00,"shift.sale_refund.total_cash":43595.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [20:15:54]process_action_free get_value [20:15:54]json_value_free [20:15:54]json_value_free done [20:15:54]process_json_proto returns [20:15:54]Send response to host [20:15:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":30137083.46,"fm.sale_refund.total":2162433.00,"fm.buy.total":0.00,"shift.sale.total":266554.11,"shift.sale.total_cash":183510.00,"shift.sale_refund.total":43595.00,"shift.sale_refund.total_cash":43595.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [20:15:54]free response buf [20:15:54]execute_script done [20:15:54]execute_script returns [20:15:54]free content buf [20:15:54]Sock 8.Close socket [20:15:54]Sock 8.Thread stoped [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:01]accept exits with 9 [20:18:01]New connection [20:18:01]New thread 3067112804 created [20:18:01]Thread 3066969444 joined [20:18:01]Waiting for new connection... [20:18:01] Sock 9.Parse request [20:18:01]Sock 9.Check first char [20:18:01]Sock 9.First char is OK [20:18:01]request: POST /json_proto HTTP/1.0 [20:18:01]Method: POST [20:18:01]URL: /json_proto [20:18:01]Method is POST - this is cgi request [20:18:01]url: /json_proto [20:18:01]query_string will be loaded in cgi processing [20:18:01]execute_cgi json_proto POST (null) [20:18:01]execute_cgi path=json_proto method=POST [20:18:01]POST find Content-Length [20:18:01]Host: 172.17.33.3:8080 [20:18:01]Content-Length: 677 [20:18:01]Content-Type: application/json [20:18:01] [20:18:01]POST finish read [20:18:01]Found Content-Length = 677 [20:18:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347731", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.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" ] } } [20:18:01]execute_script... [20: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 : (1)347731", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.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" ] } } [20:18:01]POST & json_proto [20:18:01]process_json_proto [20:18:01]json parsed OK: [20:18:01]protocol is kg_v1.0 [20:18:01]action value=close_receipt [20:18:01]process_action close_receipt [20:18:01]cmd_close_receipt [20:18:01]MH_GetDate [20:18:01]Write to MH i2c: F0 00 00 42 01 32 [20:18:01]Write i2c OK [20:18:01]MH_I2C_Read... [20:18:01]Read from MH i2c: F0 [20:18:01]MH_I2C_Read... [20:18:01]Read from MH i2c: F0 09 00 [20:18:01]MH_I2C_Read... [20:18:01]Read from MH i2c: F0 09 00 42 01 00 FA 39 1C 66 23 5B 8F 65 62 [20:18:01]GetLastDocTimeStamp 1713125727 [20:18:01]current date 1713125882 [20:18:01]FM_GetShiftState [20:18:01]SAM_PROTO_GetShiftState [20:18:01]wFMCommunicate request_size=4 [20:18:01]MH_SAM_APDU [20:18:01]CAPDU: 80 13 01 00 [20:18:01]Write to MH i2c: E2 08 00 43 01 80 13 01 00 00 00 00 00 C1 [20:18:01]Write i2c OK [20:18:01]MH_I2C_Read... [20:18:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:18:01]Read from MH i2c: E2 [20:18:01]MH_I2C_Read... [20:18:01]Read from MH i2c: E2 0E 00 [20:18:01]MH_I2C_Read... [20:18:01]Read from MH i2c: E2 0E 00 43 01 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 6D [20:18:01]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [20:18:01]wFMCommunicate OK [20:18:01]SAM_PROTO_GetShiftState done [20:18:01]FM_GetShiftState done [20:18:01]opened in 1713053951 [20:18:01]opened+sec_in_day 1713140351 [20:18:01]quantity*price = 60056 [20:18:01]sum+1 = 60057 [20:18:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.78 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 246 14.04.2024 20:18 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29336 ФПД: 193137733607877 1/tax-web-control/client/api/v1/ticket?date=20240414T201802&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29336&fm=193137733607877&tin=02508201610067®Number=0000138879044617&sum=60000 [20:18:03]StoreToDocumentArchive [20:18:03]shift 116 fd 29336 [20:18:03]save to /storage/0116/doc_00029336 [20:18:03]save last doc name /storage/0116/doc_00029336 to /storage/kkm_last_doc_name [20:18:03]save OK [20:18:03]Clear old archive folders... [20:18:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:18:03]tlvbuf is 002785F0 [20:18:03]SAM_PROTO_ClearQueue [20:18:03]wFMCommunicate request_size=4 [20:18:03]MH_SAM_APDU [20:18:03]CAPDU: 80 09 00 00 [20:18:03]Write to MH i2c: E2 08 00 50 01 80 09 00 00 00 00 00 00 C3 [20:18:03]Write i2c OK [20:18:03]MH_I2C_Read... [20:18:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:18:03]Read from MH i2c: E2 [20:18:03]MH_I2C_Read... [20:18:03]Read from MH i2c: E2 03 00 [20:18:03]MH_I2C_Read... [20:18:03]Read from MH i2c: E2 03 00 50 01 00 90 00 C5 [20:18:03]RAPDU: 90 00 [20:18:03]wFMCommunicate OK [20:18:03]SAM_PROTO_ClearQueue done [20:18:03]KKMCreateOFDPacket [20:18:03]OFDProtocolAddRootSTLVToBuf [20:18:03]FM_MakeSignedData [20:18:03]FM_MakeSignedData [20:18:03]SAM_PROTO_SignData [20:18:03]wFMCommunicate request_size=4 [20:18:03]MH_SAM_APDU [20:18:03]CAPDU: 80 0D 01 02 [20:18:03]Write to MH i2c: E2 08 00 51 01 80 0D 01 02 00 00 00 00 CB [20:18:03]Write i2c OK [20:18:03]MH_I2C_Read... [20:18:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:18:03]Read from MH i2c: E2 [20:18:03]MH_I2C_Read... [20:18:03]Read from MH i2c: E2 03 00 [20:18:03]MH_I2C_Read... [20:18:03]Read from MH i2c: E2 03 00 51 01 00 90 00 C6 [20:18:03]RAPDU: 90 00 [20:18:03]wFMCommunicate OK [20:18:03]wFMCommunicate request_size=255 [20:18:03]MH_SAM_APDU [20:18: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 F6 00 00 00 F4 03 04 00 FA 39 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 98 72 00 00 35 04 06 00 AF [20:18:03]Write to MH i2c: E2 02 01 52 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 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 F6 00 00 00 F4 03 04 00 FA 39 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 98 72 00 00 35 04 06 00 AF 00 00 CE [20:18:03]Write i2c OK [20:18:03]MH_I2C_Read... [20:18:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:18:03]Read from MH i2c: E2 [20:18:03]MH_I2C_Read... [20:18:03]Read from MH i2c: E2 03 00 [20:18:03]MH_I2C_Read... [20:18:03]Read from MH i2c: E2 03 00 52 01 00 90 00 C7 [20:18:03]RAPDU: 90 00 [20:18:03]wFMCommunicate OK [20:18:03]wFMCommunicate request_size=10 [20:18:03]MH_SAM_APDU [20:18:03]CAPDU: 80 0D 02 02 05 A8 62 01 21 C5 [20:18:03]Write to MH i2c: E2 0D 00 53 01 80 0D 02 02 05 00 A8 62 01 21 C5 00 00 C9 [20:18:03]Write i2c OK [20:18:03]MH_I2C_Read... [20:18:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:18:03]Read from MH i2c: E2 [20:18:03]MH_I2C_Read... [20:18:03]Read from MH i2c: E2 03 00 [20:18:03]MH_I2C_Read... [20:18:03]Read from MH i2c: E2 03 00 53 01 00 90 00 C8 [20:18:03]RAPDU: 90 00 [20:18:03]wFMCommunicate OK [20:18:03]wFMCommunicate request_size=4 [20:18:03]MH_SAM_APDU [20:18:03]CAPDU: 80 0D 03 02 [20:18:03]Write to MH i2c: E2 08 00 54 01 80 0D 03 02 00 00 00 00 D0 [20:18:03]Write i2c OK [20:18:03]MH_I2C_Read... [20:18:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:18:03]Read from MH i2c: E2 [20:18:03]MH_I2C_Read... [20:18:03]Read from MH i2c: E2 0B 00 [20:18:03]MH_I2C_Read... [20:18:03]Read from MH i2c: E2 0B 00 54 01 00 A1 82 6C D9 82 CA 2B D5 90 00 85 [20:18:03]RAPDU: A1 82 6C D9 82 CA 2B D5 90 00 [20:18:03]wFMCommunicate OK [20:18:03]SAM_PROTO_SignData done [20:18:03]FM_MakeSignedData done [20:18:03]CreateOFDProtocolMessage [20:18:03]wFMCommunicate request_size=4 [20:18:03]MH_SAM_APDU [20:18:03]CAPDU: 80 11 00 00 [20:18:03]Write to MH i2c: E2 08 00 55 01 80 11 00 00 00 00 00 00 D0 [20:18:03]Write i2c OK [20:18:03]MH_I2C_Read... [20:18:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:18:03]Read from MH i2c: E2 [20:18:03]MH_I2C_Read... [20:18:03]Read from MH i2c: E2 17 00 [20:18:03]MH_I2C_Read... [20:18:03]Read from MH i2c: E2 17 00 55 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 1F [20:18:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:18:03]wFMCommunicate OK [20:18:03]CreateOFDProtocolMessage done [20:18:03]OFDSenderStorePacket 29336 [20:18:03]StoreOFDPacket docnum=29336 [20:18:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 D1 9F 07 01 A8 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 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 F6 00 00 00 F4 03 04 00 FA 39 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 98 72 00 00 35 04 06 00 AF A8 62 01 21 C5 A1 82 6C D9 82 CA 2B D5 [20:18:03]CheckFolder [20:18:03]dirname=/storage/ofd_packets [20:18:03]CheckFolder done [20:18:03]ProducePacketName [20:18:03]name=ofd_packets/00029336 [20:18:03]NVStorageSaveData ofd_packets/00029336 [20:18:03]File name is /storage/ofd_packets/00029336 [20:18:03]Write 301 bytes [20:18:03]NVStorageSaveData done [20:18:03]OFDSenderStorePacket done [20:18:03]KKMCreateOFDPacket done [20:18:03]NVStorageSaveData kkm_last_timestamp [20:18:03]File name is /storage/kkm_last_timestamp [20:18:03]Write 4 bytes [20:18:03]NVStorageSaveData done [20:18:03]ExternCall_PrintAddStr [20:18:03]wPrintStart [20:18:03]Write to MH i2c: 01 00 00 56 01 57 [20:18:03]Write i2c OK [20:18:03]MH_I2C_Read... [20:18:03]Read from MH i2c: 01 [20:18:03]MH_I2C_Read... [20:18:03]Read from MH i2c: 01 07 00 [20:18:03]MH_I2C_Read... [20:18:03]Read from MH i2c: 01 07 00 56 01 00 00 00 00 00 FF 0F 6C [20:18:03]RasterBufferAndPrint [20:18:03]line Счет N : (1)347731 [20:18:03]line ИНН: 02508201610067 [20:18:03]line Контрольно-Кассовый Чек [20:18:03]line ПРОДАЖА [20:18:03]line ТРК (МРК, ГНК) : 23 [20:18:03]line Товар: 2710124130 [20:18:03]line Аи-92-К-5 [20:18:03]line 9.340 * 64.30 [20:18:03]line = 600.56 [20:18:03]line НДС 12% НСП 1% [20:18:03]line > о реализуемом товаре [20:18:03]line ОКРУГЛЕНИЕ: -0.56 [20:18:03]line ИТОГО: 600.00 [20:18:03]line Внесено: 600.00 [20:18:03]line СДАЧА: 0.00 [20:18:03]line НСП 1% : 5.31 [20:18:03]line НДС 12% : 63.78 [20:18:03]line Наличными: 600.00 [20:18:03]line Безнал.: 0.00 [20:18:03]line Место: АЗС № 108 "Партнер Нефть" [20:18:03]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [20:18:03]line СНО: Общий режим [20:18:03]line Чек 246 14.04.2024 20:18 [20:18:03]line Смена: 116 ФФД: 1.0 [20:18:03]line ЗНМ: 0300000027 [20:18:03]line РНМ: 0000138879044617 [20:18:03]line Версия ККМ: 001 [20:18:03]line ФМ: 0000000000963154 [20:18:03]line ФД: 29336 [20:18:03]line ФПД: 193137733607877 [20:18:03]line 1/tax-web-control/client/api/v1/ticket?date=20240414T201802&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29336&fm=193137733607877&tin=02508201610067®Number=0000138879044617&sum=60000 [20:18:03]OFD Sender: Processing packet 29336 [packets to send 8, broken 7] [20:18:03]ProducePacketName [20:18:03]name=ofd_packets/00029336 [20:18:03]OFD Sender: To server: pG, [20:18:03]CommunicateWithHost lk.salyk.kg:30040 [20:18:03]ConnectInit lk.salyk.kg [20:18:03]written 0, free lines is 4095 [20:18:03]Connected sock=10 [20:18:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 D1 9F 07 01 A8 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 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 F6 00 00 00 F4 03 04 00 FA 39 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 98 72 00 00 35 04 06 00 AF A8 62 01 21 C5 A1 82 6C D9 82 CA 2B D5 [20:18:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 9D 1F 47 00 FB 8B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 98 72 00 00 F4 03 04 00 9D E4 1B 66 B6 04 01 00 00 3F 94 ED 75 A0 AD 11 D7 [20:18:04]CommunicateWithHost err = 0 [20:18:04]CheckOFDResponse [20:18:04]1017 (14) - 77093643461234 [20:18:04]1041 (16) - 0000000000963154 [20:18:04]1040 (4) - 29336 [20:18:04]1012 (4) - 14.04.2024 14:13 [20:18:04]1206 (1) - 0 [20:18:04]OFD Sender: Remove packet 29336 [20:18:04]ProducePacketName [20:18:04]name=ofd_packets/00029336 [20:18:04]NVStorageDeleteData [20:18:04]Write to MH i2c: 01 00 00 80 01 81 [20:18:04]Write i2c OK [20:18:04]MH_I2C_Read... [20:18:04]Read from MH i2c: 01 [20:18:04]MH_I2C_Read... [20:18:04]Read from MH i2c: 01 07 00 [20:18:04]MH_I2C_Read... [20:18:04]Read from MH i2c: 01 07 00 80 01 00 00 00 00 00 D7 0C 6B [20:18:04]RasterBufferAndPrint [20:18:04]line [20:18:04]line [20:18:04]line [20:18:04]line [20:18:04]line [20:18:04]written 0, free lines is 3294 [20:18:04]MH_Cut [20:18:04]Write to MH i2c: D1 01 00 87 01 01 5A [20:18:04]Write i2c OK [20:18:04]MH_I2C_Read... [20:18:04]Read from MH i2c: D1 [20:18:04]MH_I2C_Read... [20:18:04]Read from MH i2c: D1 01 00 [20:18:04]MH_I2C_Read... [20:18:04]Read from MH i2c: D1 01 00 87 01 00 59 [20:18:04]Write to MH i2c: 01 00 00 88 01 89 [20:18:04]Write i2c OK [20:18:04]MH_I2C_Read... [20:18:04]OFD Sender: No OFD packet to send [20:18:05]*** Cut start [20:18:05]*** Partial cut [20:18:05]*** CUTSNS_PIN = 1 [20:18:05]*** CUTSNS_PIN = 0 [20:18:05]*** Brake cut motor [20:18:05]Read from MH i2c: 01 [20:18:05]MH_I2C_Read... [20:18:05]*** Stop cut motor [20:18:05]*** Cut end [20:18:05]Read from MH i2c: 01 07 00 [20:18:05]MH_I2C_Read... [20:18:05]Read from MH i2c: 01 07 00 88 01 00 00 00 00 00 FF 0F 9E [20:18:05]process_action close_receipt done [20:18:05]requested_data is exist [20:18:05]produce_requested_data [20:18:05]requested_item fm.sn is exist - process it [20:18:05]wFMCommunicate request_size=4 [20:18:05]MH_SAM_APDU [20:18:05]CAPDU: 80 11 00 00 [20:18:05]Write to MH i2c: E2 08 00 89 01 80 11 00 00 00 00 00 00 04 [20:18:05]Write i2c OK [20:18:05]MH_I2C_Read... [20:18:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:18:05]Read from MH i2c: E2 [20:18:05]MH_I2C_Read... [20:18:05]Read from MH i2c: E2 17 00 [20:18:05]MH_I2C_Read... [20:18:05]Read from MH i2c: E2 17 00 89 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 53 [20:18:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:18:05]wFMCommunicate OK [20:18:05]requested_item fd.num is exist - process it [20:18:05]SAM_PROTO_GetFieldsCounters [20:18:05]wFMCommunicate request_size=4 [20:18:05]MH_SAM_APDU [20:18:05]CAPDU: 80 13 00 00 [20:18:05]Write to MH i2c: E2 08 00 8A 01 80 13 00 00 00 00 00 00 07 [20:18:05]Write i2c OK [20:18:05]MH_I2C_Read... [20:18:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:18:05]Read from MH i2c: E2 [20:18:05]MH_I2C_Read... [20:18:05]Read from MH i2c: E2 62 00 [20:18:05]MH_I2C_Read... [20:18:05]Read from MH i2c: E2 62 00 8A 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 98 72 00 00 0E 04 04 00 74 00 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 A5 [20:18:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 98 72 00 00 0E 04 04 00 74 00 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 [20:18:05]wFMCommunicate OK [20:18:05]SAM_PROTO_GetFieldsCounters done [20:18:05]requested_item shift.num is exist - process it [20:18:05]requested_item shift.opened is exist - process it [20:18:05]req_shift_opened [20:18:05]FM_GetShiftState [20:18:05]SAM_PROTO_GetShiftState [20:18:05]wFMCommunicate request_size=4 [20:18:05]MH_SAM_APDU [20:18:05]CAPDU: 80 13 01 00 [20:18:05]Write to MH i2c: E2 08 00 8B 01 80 13 01 00 00 00 00 00 09 [20:18:05]Write i2c OK [20:18:05]MH_I2C_Read... [20:18:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:18:06]Read from MH i2c: E2 [20:18:06]MH_I2C_Read... [20:18:06]Read from MH i2c: E2 0E 00 [20:18:06]MH_I2C_Read... [20:18:06]Read from MH i2c: E2 0E 00 8B 01 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 B5 [20:18:06]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [20:18:06]wFMCommunicate OK [20:18:06]SAM_PROTO_GetShiftState done [20:18:06]FM_GetShiftState done [20:18:06]req_shift_opened done [20:18:06]requested_item shift.open_date is exist - process it [20:18:06]req_shift_open_date [20:18:06]req_shift_open_date done [20:18:06]produce_requested_data done [20:18:06]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29336,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [20:18:06]process_action_free close_receipt [20:18:06]json_value_free [20:18:06]json_value_free done [20:18:06]process_json_proto returns [20:18:06]Send response to host [20:18:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29336,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [20:18:06]free response buf [20:18:06]execute_script done [20:18:06]execute_script returns [20:18:06]free content buf [20:18:06]Sock 9.Close socket [20:18:06]Sock 9.Thread stoped [20:18:09]OFD Sender: No OFD packet to send [20:18:14]OFD Sender: No OFD packet to send [20:18:19]OFD Sender: No OFD packet to send [20:18:24]OFD Sender: No OFD packet to send [20:18:29]OFD Sender: No OFD packet to send [20:18:34]OFD Sender: No OFD packet to send [20:18:39]OFD Sender: No OFD packet to send [20:18:44]OFD Sender: No OFD packet to send [20:18:49]OFD Sender: No OFD packet to send [20:18:54]OFD Sender: No OFD packet to send [20:18:59]OFD Sender: No OFD packet to send [20:19:04]OFD Sender: No OFD packet to send [20:19:09]OFD Sender: No OFD packet to send [20:19:14]OFD Sender: No OFD packet to send [20:19:19]OFD Sender: No OFD packet to send [20:19:24]OFD Sender: No OFD packet to send [20:19:29]OFD Sender: No OFD packet to send [20:19:34]OFD Sender: No OFD packet to send [20:19:39]OFD Sender: No OFD packet to send [20:19:44]OFD Sender: No OFD packet to send [20:19:49]OFD Sender: No OFD packet to send [20:19:54]OFD Sender: No OFD packet to send [20:19:57]accept exits with 8 [20:19:57]New connection [20:19:57]New thread 3066969444 created [20:19:57]Thread 3067112804 joined [20:19:57]Waiting for new connection... [20:19:57] Sock 8.Parse request [20:19:57]Sock 8.Check first char [20:19:57]Sock 8.First char is OK [20:19:57]request: POST /json_proto HTTP/1.0 [20:19:57]Method: POST [20:19:57]URL: /json_proto [20:19:57]Method is POST - this is cgi request [20:19:57]url: /json_proto [20:19:57]query_string will be loaded in cgi processing [20:19:57]execute_cgi json_proto POST (null) [20:19:57]execute_cgi path=json_proto method=POST [20:19:57]POST find Content-Length [20:19:57]Host: 172.17.33.3:8080 [20:19:57]Content-Length: 805 [20:19:57]Content-Type: application/json [20:19:57] [20:19:57]POST finish read [20:19:57]Found Content-Length = 805 [20:19:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347732", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 34.540, "sum" : 2500.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2500.70 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:19:57]execute_script... [20:19: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)347732", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 34.540, "sum" : 2500.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2500.70 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:19:57]POST & json_proto [20:19:57]process_json_proto [20:19:57]json parsed OK: [20:19:57]protocol is kg_v1.0 [20:19:57]action value=close_receipt [20:19:57]process_action close_receipt [20:19:57]cmd_close_receipt [20:19:57]MH_GetDate [20:19:57]Write to MH i2c: F0 00 00 8C 01 7C [20:19:57]Write i2c OK [20:19:57]MH_I2C_Read... [20:19:57]Read from MH i2c: F0 [20:19:57]MH_I2C_Read... [20:19:57]Read from MH i2c: F0 09 00 [20:19:57]MH_I2C_Read... [20:19:57]Read from MH i2c: F0 09 00 8C 01 00 6D 3A 1C 66 23 5B 8F 65 20 [20:19:57]GetLastDocTimeStamp 1713125882 [20:19:57]current date 1713125997 [20:19:57]FM_GetShiftState [20:19:57]SAM_PROTO_GetShiftState [20:19:57]wFMCommunicate request_size=4 [20:19:57]MH_SAM_APDU [20:19:57]CAPDU: 80 13 01 00 [20:19:57]Write to MH i2c: E2 08 00 8D 01 80 13 01 00 00 00 00 00 0B [20:19:57]Write i2c OK [20:19:57]MH_I2C_Read... [20:19:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:19:57]Read from MH i2c: E2 [20:19:57]MH_I2C_Read... [20:19:57]Read from MH i2c: E2 0E 00 [20:19:57]MH_I2C_Read... [20:19:57]Read from MH i2c: E2 0E 00 8D 01 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 B7 [20:19:57]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [20:19:57]wFMCommunicate OK [20:19:57]SAM_PROTO_GetShiftState done [20:19:57]FM_GetShiftState done [20:19:57]opened in 1713053951 [20:19:57]opened+sec_in_day 1713140351 [20:19:57]quantity*price = 250069 [20:19:57]sum+1 = 250071 [20:19:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2500.70 НСП 1% : 22.13 НДС 12% : 265.56 Наличными: 0.00 Безнал.: 2500.70 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 247 14.04.2024 20:19 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29337 ФПД: 212839322367862 1/tax-web-control/client/api/v1/ticket?date=20240414T201958&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29337&fm=212839322367862&tin=02508201610067®Number=0000138879044617&sum=250070 [20:19:58]StoreToDocumentArchive [20:19:58]shift 116 fd 29337 [20:19:58]save to /storage/0116/doc_00029337 [20:19:58]save last doc name /storage/0116/doc_00029337 to /storage/kkm_last_doc_name [20:19:58]save OK [20:19:58]Clear old archive folders... [20:19:58]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:19:58]tlvbuf is 002784C0 [20:19:58]SAM_PROTO_ClearQueue [20:19:58]wFMCommunicate request_size=4 [20:19:58]MH_SAM_APDU [20:19:58]CAPDU: 80 09 00 00 [20:19:58]Write to MH i2c: E2 08 00 9A 01 80 09 00 00 00 00 00 00 0D [20:19:58]Write i2c OK [20:19:58]MH_I2C_Read... [20:19:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:19:58]Read from MH i2c: E2 [20:19:58]MH_I2C_Read... [20:19:58]Read from MH i2c: E2 03 00 [20:19:58]MH_I2C_Read... [20:19:58]Read from MH i2c: E2 03 00 9A 01 00 90 00 0F [20:19:58]RAPDU: 90 00 [20:19:58]wFMCommunicate OK [20:19:58]SAM_PROTO_ClearQueue done [20:19:58]KKMCreateOFDPacket [20:19:58]OFDProtocolAddRootSTLVToBuf [20:19:58]FM_MakeSignedData [20:19:58]FM_MakeSignedData [20:19:58]SAM_PROTO_SignData [20:19:58]wFMCommunicate request_size=4 [20:19:58]MH_SAM_APDU [20:19:58]CAPDU: 80 0D 01 02 [20:19:58]Write to MH i2c: E2 08 00 9B 01 80 0D 01 02 00 00 00 00 15 [20:19:58]Write i2c OK [20:19:58]MH_I2C_Read... [20:19:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:19:58]Read from MH i2c: E2 [20:19:58]MH_I2C_Read... [20:19:58]Read from MH i2c: E2 03 00 [20:19:58]MH_I2C_Read... [20:19:58]Read from MH i2c: E2 03 00 9B 01 00 90 00 10 [20:19:58]RAPDU: 90 00 [20:19:58]wFMCommunicate OK [20:19:58]wFMCommunicate request_size=255 [20:19:58]MH_SAM_APDU [20:19:58]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 D6 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 00 00 00 00 00 00 39 04 06 00 D6 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 6E 3A 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 99 72 00 00 35 04 06 00 C1 93 84 34 [20:19:58]Write to MH i2c: E2 02 01 9C 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 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 D6 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 00 00 00 00 00 00 39 04 06 00 D6 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 6E 3A 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 99 72 00 00 35 04 06 00 C1 93 84 34 00 00 DC [20:19:58]Write i2c OK [20:19:58]MH_I2C_Read... [20:19:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:19:58]Read from MH i2c: E2 [20:19:58]MH_I2C_Read... [20:19:58]Read from MH i2c: E2 03 00 [20:19:58]MH_I2C_Read... [20:19:58]Read from MH i2c: E2 03 00 9C 01 00 90 00 11 [20:19:58]RAPDU: 90 00 [20:19:58]wFMCommunicate OK [20:19:58]wFMCommunicate request_size=7 [20:19:58]MH_SAM_APDU [20:19:58]CAPDU: 80 0D 02 02 02 37 76 [20:19:58]Write to MH i2c: E2 0A 00 9D 01 80 0D 02 02 02 00 37 76 00 00 C9 [20:19:58]Write i2c OK [20:19:58]MH_I2C_Read... [20:19:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:19:58]Read from MH i2c: E2 [20:19:58]MH_I2C_Read... [20:19:58]Read from MH i2c: E2 03 00 [20:19:58]MH_I2C_Read... [20:19:58]Read from MH i2c: E2 03 00 9D 01 00 90 00 12 [20:19:58]RAPDU: 90 00 [20:19:58]wFMCommunicate OK [20:19:58]wFMCommunicate request_size=4 [20:19:58]MH_SAM_APDU [20:19:58]CAPDU: 80 0D 03 02 [20:19:58]Write to MH i2c: E2 08 00 9E 01 80 0D 03 02 00 00 00 00 1A [20:19:58]Write i2c OK [20:19:58]MH_I2C_Read... [20:19:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:19:58]Read from MH i2c: E2 [20:19:58]MH_I2C_Read... [20:19:58]Read from MH i2c: E2 0B 00 [20:19:58]MH_I2C_Read... [20:19:58]Read from MH i2c: E2 0B 00 9E 01 00 CB 67 D7 41 BA B3 4C C5 90 00 E3 [20:19:58]RAPDU: CB 67 D7 41 BA B3 4C C5 90 00 [20:19:58]wFMCommunicate OK [20:19:58]SAM_PROTO_SignData done [20:19:58]FM_MakeSignedData done [20:19:58]CreateOFDProtocolMessage [20:19:58]wFMCommunicate request_size=4 [20:19:58]MH_SAM_APDU [20:19:58]CAPDU: 80 11 00 00 [20:19:58]Write to MH i2c: E2 08 00 9F 01 80 11 00 00 00 00 00 00 1A [20:19:58]Write i2c OK [20:19:58]MH_I2C_Read... [20:19:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:19:58]Read from MH i2c: E2 [20:19:58]MH_I2C_Read... [20:19:58]Read from MH i2c: E2 17 00 [20:19:58]MH_I2C_Read... [20:19:58]Read from MH i2c: E2 17 00 9F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 69 [20:19:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:19:58]wFMCommunicate OK [20:19:58]CreateOFDProtocolMessage done [20:19:58]OFDSenderStorePacket 29337 [20:19:58]StoreOFDPacket docnum=29337 [20:19:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 D1 2D 04 01 99 CC 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 D6 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 00 00 00 00 00 00 39 04 06 00 D6 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 6E 3A 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 99 72 00 00 35 04 06 00 C1 93 84 34 37 76 CB 67 D7 41 BA B3 4C C5 [20:19:58]CheckFolder [20:19:58]dirname=/storage/ofd_packets [20:19:58]CheckFolder done [20:19:58]ProducePacketName [20:19:58]name=ofd_packets/00029337 [20:19:58]NVStorageSaveData ofd_packets/00029337 [20:19:58]File name is /storage/ofd_packets/00029337 [20:19:58]Write 298 bytes [20:19:58]NVStorageSaveData done [20:19:58]OFDSenderStorePacket done [20:19:58]KKMCreateOFDPacket done [20:19:58]NVStorageSaveData kkm_last_timestamp [20:19:58]File name is /storage/kkm_last_timestamp [20:19:58]Write 4 bytes [20:19:58]NVStorageSaveData done [20:19:58]ExternCall_PrintAddStr [20:19:58]wPrintStart [20:19:58]Write to MH i2c: 01 00 00 A0 01 A1 [20:19:58]Write i2c OK [20:19:58]MH_I2C_Read... [20:19:58]Read from MH i2c: 01 [20:19:58]MH_I2C_Read... [20:19:58]Read from MH i2c: 01 07 00 [20:19:58]MH_I2C_Read... [20:19:58]Read from MH i2c: 01 07 00 A0 01 00 00 00 00 00 FF 0F B6 [20:19:58]RasterBufferAndPrint [20:19:58]line Счет N : (1)347732 [20:19:58]line ИНН: 02508201610067 [20:19:58]line Контрольно-Кассовый Чек [20:19:58]line ПРОДАЖА [20:19:58]line ТРК (МРК, ГНК) : 11 [20:19:58]line Товар: 2710194210 [20:19:58]line ДТ-К-5 [20:19:58]line 34.540 * 72.40 [20:19:58]line = 2500.70 [20:19:58]line НДС 12% НСП 1% [20:19:58]line > о реализуемом товаре [20:19:58]line ИТОГО: 2500.70 [20:19:58]line НСП 1% : 22.13 [20:19:58]line НДС 12% : 265.56 [20:19:58]line Наличными: 0.00 [20:19:58]line Безнал.: 2500.70 [20:19:58]line Место: АЗС № 108 "Партнер Нефть" [20:19:58]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [20:19:58]line СНО: Общий режим [20:19:58]line Чек 247 14.04.2024 20:19 [20:19:58]line Смена: 116 ФФД: 1.0 [20:19:58]line ЗНМ: 0300000027 [20:19:58]line РНМ: 0000138879044617 [20:19:58]line Версия ККМ: 001 [20:19:58]line Платежная система: О! деньги [20:19:58]line ФМ: 0000000000963154 [20:19:58]line ФД: 29337 [20:19:59]line ФПД: 212839322367862 [20:19:59]line 1/tax-web-control/client/api/v1/ticket?date=20240414T201958&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29337&fm=212839322367862&tin=02508201610067®Number=0000138879044617&sum=250070 [20:19:59]OFD Sender: Processing packet 29337 [packets to send 8, broken 7] [20:19:59]ProducePacketName [20:19:59]name=ofd_packets/00029337 [20:19:59]OFD Sender: To server: pG, [20:19:59]CommunicateWithHost lk.salyk.kg:30040 [20:19:59]ConnectInit lk.salyk.kg [20:19:59]written 0, free lines is 4095 [20:19:59]Connected sock=10 [20:19:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 D1 2D 04 01 99 CC 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 D6 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 00 00 00 00 00 00 39 04 06 00 D6 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 6E 3A 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 99 72 00 00 35 04 06 00 C1 93 84 34 37 76 CB 67 D7 41 BA B3 4C C5 [20:19:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 3C F6 47 00 A1 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 39 36 33 31 35 34 10 04 04 00 99 72 00 00 F4 03 04 00 11 E5 1B 66 B6 04 01 00 00 10 FF D4 4C 4A 61 49 20 [20:19:59]CommunicateWithHost err = 0 [20:19:59]CheckOFDResponse [20:19:59]1017 (14) - 77093643461234 [20:19:59]1041 (16) - 0000000000963154 [20:19:59]1040 (4) - 29337 [20:19:59]1012 (4) - 14.04.2024 14:15 [20:19:59]1206 (1) - 0 [20:19:59]OFD Sender: Remove packet 29337 [20:19:59]ProducePacketName [20:19:59]name=ofd_packets/00029337 [20:19:59]NVStorageDeleteData [20:19:59]Write to MH i2c: 01 00 00 C9 01 CA [20:19:59]Write i2c OK [20:19:59]MH_I2C_Read... [20:19:59]Read from MH i2c: 01 [20:19:59]MH_I2C_Read... [20:19:59]Read from MH i2c: 01 07 00 [20:19:59]MH_I2C_Read... [20:19:59]Read from MH i2c: 01 07 00 C9 01 00 00 00 00 00 EC 0C C9 [20:19:59]RasterBufferAndPrint [20:19:59]line [20:19:59]line [20:19:59]line [20:19:59]line [20:19:59]line [20:19:59]written 0, free lines is 3313 [20:19:59]MH_Cut [20:19:59]Write to MH i2c: D1 01 00 D0 01 01 A3 [20:19:59]Write i2c OK [20:19:59]MH_I2C_Read... [20:19:59]Read from MH i2c: D1 [20:19:59]MH_I2C_Read... [20:19:59]Read from MH i2c: D1 01 00 [20:19:59]MH_I2C_Read... [20:19:59]Read from MH i2c: D1 01 00 D0 01 00 A2 [20:19:59]Write to MH i2c: 01 00 00 D1 01 D2 [20:19:59]Write i2c OK [20:19:59]MH_I2C_Read... [20:19:59]OFD Sender: No OFD packet to send [20:20:00]*** Cut start [20:20:00]*** Partial cut [20:20:00]*** CUTSNS_PIN = 1 [20:20:00]*** CUTSNS_PIN = 0 [20:20:00]*** Brake cut motor [20:20:00]Read from MH i2c: 01 [20:20:00]MH_I2C_Read... [20:20:00]*** Stop cut motor [20:20:00]*** Cut end [20:20:00]Read from MH i2c: 01 07 00 [20:20:00]MH_I2C_Read... [20:20:00]Read from MH i2c: 01 07 00 D1 01 00 00 00 00 00 FF 0F E7 [20:20:00]process_action close_receipt done [20:20:00]requested_data is exist [20:20:00]produce_requested_data [20:20:00]requested_item fm.sn is exist - process it [20:20:00]wFMCommunicate request_size=4 [20:20:00]MH_SAM_APDU [20:20:00]CAPDU: 80 11 00 00 [20:20:00]Write to MH i2c: E2 08 00 D2 01 80 11 00 00 00 00 00 00 4D [20:20:00]Write i2c OK [20:20:00]MH_I2C_Read... [20:20:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:20:01]Read from MH i2c: E2 [20:20:01]MH_I2C_Read... [20:20:01]Read from MH i2c: E2 17 00 [20:20:01]MH_I2C_Read... [20:20:01]Read from MH i2c: E2 17 00 D2 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 9C [20:20:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:20:01]wFMCommunicate OK [20:20:01]requested_item fd.num is exist - process it [20:20:01]SAM_PROTO_GetFieldsCounters [20:20:01]wFMCommunicate request_size=4 [20:20:01]MH_SAM_APDU [20:20:01]CAPDU: 80 13 00 00 [20:20:01]Write to MH i2c: E2 08 00 D3 01 80 13 00 00 00 00 00 00 50 [20:20:01]Write i2c OK [20:20:01]MH_I2C_Read... [20:20:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:20:01]Read from MH i2c: E2 [20:20:01]MH_I2C_Read... [20:20:01]Read from MH i2c: E2 62 00 [20:20:01]MH_I2C_Read... [20:20:01]Read from MH i2c: E2 62 00 D3 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 99 72 00 00 0E 04 04 00 74 00 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 F2 [20:20:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 99 72 00 00 0E 04 04 00 74 00 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 [20:20:01]wFMCommunicate OK [20:20:01]SAM_PROTO_GetFieldsCounters done [20:20:01]requested_item shift.num is exist - process it [20:20:01]requested_item shift.opened is exist - process it [20:20:01]req_shift_opened [20:20:01]FM_GetShiftState [20:20:01]SAM_PROTO_GetShiftState [20:20:01]wFMCommunicate request_size=4 [20:20:01]MH_SAM_APDU [20:20:01]CAPDU: 80 13 01 00 [20:20:01]Write to MH i2c: E2 08 00 D4 01 80 13 01 00 00 00 00 00 52 [20:20:01]Write i2c OK [20:20:01]MH_I2C_Read... [20:20:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:20:01]Read from MH i2c: E2 [20:20:01]MH_I2C_Read... [20:20:01]Read from MH i2c: E2 0E 00 [20:20:01]MH_I2C_Read... [20:20:01]Read from MH i2c: E2 0E 00 D4 01 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 FE [20:20:01]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [20:20:01]wFMCommunicate OK [20:20:01]SAM_PROTO_GetShiftState done [20:20:01]FM_GetShiftState done [20:20:01]req_shift_opened done [20:20:01]requested_item shift.open_date is exist - process it [20:20:01]req_shift_open_date [20:20:01]req_shift_open_date done [20:20:01]produce_requested_data done [20:20:01]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29337,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [20:20:01]process_action_free close_receipt [20:20:01]json_value_free [20:20:01]json_value_free done [20:20:01]process_json_proto returns [20:20:01]Send response to host [20:20:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29337,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [20:20:01]free response buf [20:20:01]execute_script done [20:20:01]execute_script returns [20:20:01]free content buf [20:20:01]Sock 8.Close socket [20:20:01]Sock 8.Thread stoped [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:46]accept exits with 9 [20:21:46]New connection [20:21:46]New thread 3067112804 created [20:21:46]Thread 3066969444 joined [20:21:46]Waiting for new connection... [20:21:46] Sock 9.Parse request [20:21:46]Sock 9.Check first char [20:21:46]Sock 9.First char is OK [20:21:46]request: POST /json_proto HTTP/1.0 [20:21:46]Method: POST [20:21:46]URL: /json_proto [20:21:46]Method is POST - this is cgi request [20:21:46]url: /json_proto [20:21:46]query_string will be loaded in cgi processing [20:21:46]execute_cgi json_proto POST (null) [20:21:46]execute_cgi path=json_proto method=POST [20:21:46]POST find Content-Length [20:21:46]Host: 172.17.33.3:8080 [20:21:46]Content-Length: 682 [20:21:46]Content-Type: application/json [20:21:46] [20:21:46]POST finish read [20:21:46]Found Content-Length = 682 [20:21:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347733", "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:21:46]execute_script... [20:21: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)347733", "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:21:46]POST & json_proto [20:21:46]process_json_proto [20:21:46]json parsed OK: [20:21:46]protocol is kg_v1.0 [20:21:46]action value=close_receipt [20:21:46]process_action close_receipt [20:21:46]cmd_close_receipt [20:21:46]MH_GetDate [20:21:46]Write to MH i2c: F0 00 00 D5 01 C5 [20:21:46]Write i2c OK [20:21:46]MH_I2C_Read... [20:21:46]Read from MH i2c: F0 [20:21:46]MH_I2C_Read... [20:21:46]Read from MH i2c: F0 09 00 [20:21:46]MH_I2C_Read... [20:21:46]Read from MH i2c: F0 09 00 D5 01 00 DB 3A 1C 66 23 5B 8F 65 D7 [20:21:46]GetLastDocTimeStamp 1713125998 [20:21:46]current date 1713126107 [20:21:46]FM_GetShiftState [20:21:46]SAM_PROTO_GetShiftState [20:21:46]wFMCommunicate request_size=4 [20:21:46]MH_SAM_APDU [20:21:46]CAPDU: 80 13 01 00 [20:21:46]Write to MH i2c: E2 08 00 D6 01 80 13 01 00 00 00 00 00 54 [20:21:46]Write i2c OK [20:21:46]MH_I2C_Read... [20:21:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:21:46]Read from MH i2c: E2 [20:21:46]MH_I2C_Read... [20:21:46]Read from MH i2c: E2 0E 00 [20:21:46]MH_I2C_Read... [20:21:46]Read from MH i2c: E2 0E 00 D6 01 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 00 [20:21:46]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [20:21:46]wFMCommunicate OK [20:21:46]SAM_PROTO_GetShiftState done [20:21:46]FM_GetShiftState done [20:21:46]opened in 1713053951 [20:21:46]opened+sec_in_day 1713140351 [20:21:46]quantity*price = 100050 [20:21:46]sum+1 = 100052 [20:21:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 248 14.04.2024 20:21 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29338 ФПД: 8034065262578 1/tax-web-control/client/api/v1/ticket?date=20240414T202147&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29338&fm=8034065262578&tin=02508201610067®Number=0000138879044617&sum=100000 [20:21:47]StoreToDocumentArchive [20:21:47]shift 116 fd 29338 [20:21:47]save to /storage/0116/doc_00029338 [20:21:47]save last doc name /storage/0116/doc_00029338 to /storage/kkm_last_doc_name [20:21:47]save OK [20:21:47]Clear old archive folders... [20:21:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:21:47]tlvbuf is 00275E80 [20:21:47]SAM_PROTO_ClearQueue [20:21:47]wFMCommunicate request_size=4 [20:21:47]MH_SAM_APDU [20:21:47]CAPDU: 80 09 00 00 [20:21:47]Write to MH i2c: E2 08 00 E3 01 80 09 00 00 00 00 00 00 56 [20:21:47]Write i2c OK [20:21:47]MH_I2C_Read... [20:21:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:21:47]Read from MH i2c: E2 [20:21:47]MH_I2C_Read... [20:21:47]Read from MH i2c: E2 03 00 [20:21:47]MH_I2C_Read... [20:21:47]Read from MH i2c: E2 03 00 E3 01 00 90 00 58 [20:21:47]RAPDU: 90 00 [20:21:47]wFMCommunicate OK [20:21:47]SAM_PROTO_ClearQueue done [20:21:47]KKMCreateOFDPacket [20:21:47]OFDProtocolAddRootSTLVToBuf [20:21:47]FM_MakeSignedData [20:21:47]FM_MakeSignedData [20:21:47]SAM_PROTO_SignData [20:21:47]wFMCommunicate request_size=4 [20:21:47]MH_SAM_APDU [20:21:47]CAPDU: 80 0D 01 02 [20:21:47]Write to MH i2c: E2 08 00 E4 01 80 0D 01 02 00 00 00 00 5E [20:21:47]Write i2c OK [20:21:47]MH_I2C_Read... [20:21:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:21:48]Read from MH i2c: E2 [20:21:48]MH_I2C_Read... [20:21:48]Read from MH i2c: E2 03 00 [20:21:48]MH_I2C_Read... [20:21:48]Read from MH i2c: E2 03 00 E4 01 00 90 00 59 [20:21:48]RAPDU: 90 00 [20:21:48]wFMCommunicate OK [20:21:48]wFMCommunicate request_size=255 [20:21:48]MH_SAM_APDU [20:21: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 F8 00 00 00 F4 03 04 00 DB 3A 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9A 72 00 00 35 04 06 00 07 [20:21:48]Write to MH i2c: E2 02 01 E5 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 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 F8 00 00 00 F4 03 04 00 DB 3A 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9A 72 00 00 35 04 06 00 07 00 00 A0 [20:21:48]Write i2c OK [20:21:48]MH_I2C_Read... [20:21:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:21:48]Read from MH i2c: E2 [20:21:48]MH_I2C_Read... [20:21:48]Read from MH i2c: E2 03 00 [20:21:48]MH_I2C_Read... [20:21:48]Read from MH i2c: E2 03 00 E5 01 00 90 00 5A [20:21:48]RAPDU: 90 00 [20:21:48]wFMCommunicate OK [20:21:48]wFMCommunicate request_size=10 [20:21:48]MH_SAM_APDU [20:21:48]CAPDU: 80 0D 02 02 05 4E 93 9B 27 F2 [20:21:48]Write to MH i2c: E2 0D 00 E6 01 80 0D 02 02 05 00 4E 93 9B 27 F2 00 00 00 [20:21:48]Write i2c OK [20:21:48]MH_I2C_Read... [20:21:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:21:48]Read from MH i2c: E2 [20:21:48]MH_I2C_Read... [20:21:48]Read from MH i2c: E2 03 00 [20:21:48]MH_I2C_Read... [20:21:48]Read from MH i2c: E2 03 00 E6 01 00 90 00 5B [20:21:48]RAPDU: 90 00 [20:21:48]wFMCommunicate OK [20:21:48]wFMCommunicate request_size=4 [20:21:48]MH_SAM_APDU [20:21:48]CAPDU: 80 0D 03 02 [20:21:48]Write to MH i2c: E2 08 00 E7 01 80 0D 03 02 00 00 00 00 63 [20:21:48]Write i2c OK [20:21:48]MH_I2C_Read... [20:21:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:21:48]Read from MH i2c: E2 [20:21:48]MH_I2C_Read... [20:21:48]Read from MH i2c: E2 0B 00 [20:21:48]MH_I2C_Read... [20:21:48]Read from MH i2c: E2 0B 00 E7 01 00 68 AF 88 2D B5 F8 8A 5D 90 00 C4 [20:21:48]RAPDU: 68 AF 88 2D B5 F8 8A 5D 90 00 [20:21:48]wFMCommunicate OK [20:21:48]SAM_PROTO_SignData done [20:21:48]FM_MakeSignedData done [20:21:48]CreateOFDProtocolMessage [20:21:48]wFMCommunicate request_size=4 [20:21:48]MH_SAM_APDU [20:21:48]CAPDU: 80 11 00 00 [20:21:48]Write to MH i2c: E2 08 00 E8 01 80 11 00 00 00 00 00 00 63 [20:21:48]Write i2c OK [20:21:48]MH_I2C_Read... [20:21:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:21:48]Read from MH i2c: E2 [20:21:48]MH_I2C_Read... [20:21:48]Read from MH i2c: E2 17 00 [20:21:48]MH_I2C_Read... [20:21:48]Read from MH i2c: E2 17 00 E8 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B2 [20:21:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:21:48]wFMCommunicate OK [20:21:48]CreateOFDProtocolMessage done [20:21:48]OFDSenderStorePacket 29338 [20:21:48]StoreOFDPacket docnum=29338 [20:21:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 D8 69 07 01 2E E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 F8 00 00 00 F4 03 04 00 DB 3A 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9A 72 00 00 35 04 06 00 07 4E 93 9B 27 F2 68 AF 88 2D B5 F8 8A 5D [20:21:48]CheckFolder [20:21:48]dirname=/storage/ofd_packets [20:21:48]CheckFolder done [20:21:48]ProducePacketName [20:21:48]name=ofd_packets/00029338 [20:21:48]NVStorageSaveData ofd_packets/00029338 [20:21:48]File name is /storage/ofd_packets/00029338 [20:21:48]Write 301 bytes [20:21:48]NVStorageSaveData done [20:21:48]OFDSenderStorePacket done [20:21:48]KKMCreateOFDPacket done [20:21:48]NVStorageSaveData kkm_last_timestamp [20:21:48]File name is /storage/kkm_last_timestamp [20:21:48]Write 4 bytes [20:21:48]NVStorageSaveData done [20:21:48]ExternCall_PrintAddStr [20:21:48]wPrintStart [20:21:48]Write to MH i2c: 01 00 00 E9 01 EA [20:21:48]Write i2c OK [20:21:48]MH_I2C_Read... [20:21:48]Read from MH i2c: 01 [20:21:48]MH_I2C_Read... [20:21:48]Read from MH i2c: 01 07 00 [20:21:48]MH_I2C_Read... [20:21:48]Read from MH i2c: 01 07 00 E9 01 00 00 00 00 00 FF 0F FF [20:21:48]RasterBufferAndPrint [20:21:48]line Счет N : (1)347733 [20:21:48]line ИНН: 02508201610067 [20:21:48]line Контрольно-Кассовый Чек [20:21:48]line ПРОДАЖА [20:21:48]line ТРК (МРК, ГНК) : 32 [20:21:48]line Товар: 2710124130 [20:21:48]line Аи-92-К-5 [20:21:48]line 15.560 * 64.30 [20:21:48]line = 1000.51 [20:21:48]line НДС 12% НСП 1% [20:21:48]line > о реализуемом товаре [20:21:48]line ОКРУГЛЕНИЕ: -0.51 [20:21:48]line ИТОГО: 1000.00 [20:21:48]line Внесено: 1000.00 [20:21:48]line СДАЧА: 0.00 [20:21:48]line НСП 1% : 8.85 [20:21:48]line НДС 12% : 106.25 [20:21:48]line Наличными: 1000.00 [20:21:48]line Безнал.: 0.00 [20:21:48]line Место: АЗС № 108 "Партнер Нефть" [20:21:48]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [20:21:48]line СНО: Общий режим [20:21:48]line Чек 248 14.04.2024 20:21 [20:21:48]line Смена: 116 ФФД: 1.0 [20:21:48]line ЗНМ: 0300000027 [20:21:48]line РНМ: 0000138879044617 [20:21:48]line Версия ККМ: 001 [20:21:48]line ФМ: 0000000000963154 [20:21:48]line ФД: 29338 [20:21:48]line ФПД: 8034065262578 [20:21:48]line 1/tax-web-control/client/api/v1/ticket?date=20240414T202147&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29338&fm=8034065262578&tin=02508201610067®Number=0000138879044617&sum=100000 [20:21:48]OFD Sender: Processing packet 29338 [packets to send 8, broken 7] [20:21:48]ProducePacketName [20:21:48]name=ofd_packets/00029338 [20:21:48]OFD Sender: To server: pG, [20:21:48]CommunicateWithHost lk.salyk.kg:30040 [20:21:48]ConnectInit lk.salyk.kg [20:21:48]written 0, free lines is 4095 [20:21:48]Connected sock=10 [20:21:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 D8 69 07 01 2E E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 F8 00 00 00 F4 03 04 00 DB 3A 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9A 72 00 00 35 04 06 00 07 4E 93 9B 27 F2 68 AF 88 2D B5 F8 8A 5D [20:21:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 98 B3 47 00 22 2C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9A 72 00 00 F4 03 04 00 7E E5 1B 66 B6 04 01 00 00 03 BC EA 27 B9 EB 54 65 [20:21:49]CommunicateWithHost err = 0 [20:21:49]CheckOFDResponse [20:21:49]1017 (14) - 77093643461234 [20:21:49]1041 (16) - 0000000000963154 [20:21:49]1040 (4) - 29338 [20:21:49]1012 (4) - 14.04.2024 14:17 [20:21:49]1206 (1) - 0 [20:21:49]OFD Sender: Remove packet 29338 [20:21:49]ProducePacketName [20:21:49]name=ofd_packets/00029338 [20:21:49]NVStorageDeleteData [20:21:49]Write to MH i2c: 01 00 00 13 02 15 [20:21:49]Write i2c OK [20:21:49]MH_I2C_Read... [20:21:49]Read from MH i2c: 01 [20:21:49]MH_I2C_Read... [20:21:49]Read from MH i2c: 01 07 00 [20:21:49]MH_I2C_Read... [20:21:49]Read from MH i2c: 01 07 00 13 02 00 00 00 00 00 CA 0C F2 [20:21:49]RasterBufferAndPrint [20:21:49]line [20:21:49]line [20:21:49]line [20:21:49]line [20:21:49]line [20:21:49]written 0, free lines is 3278 [20:21:49]MH_Cut [20:21:49]Write to MH i2c: D1 01 00 1A 02 01 EE [20:21:49]Write i2c OK [20:21:49]MH_I2C_Read... [20:21:49]Read from MH i2c: D1 [20:21:49]MH_I2C_Read... [20:21:49]Read from MH i2c: D1 01 00 [20:21:49]MH_I2C_Read... [20:21:49]Read from MH i2c: D1 01 00 1A 02 00 ED [20:21:49]Write to MH i2c: 01 00 00 1B 02 1D [20:21:49]Write i2c OK [20:21:49]MH_I2C_Read... [20:21:49]OFD Sender: No OFD packet to send [20:21:49]*** Cut start [20:21:49]*** Partial cut [20:21:49]*** CUTSNS_PIN = 1 [20:21:50]*** CUTSNS_PIN = 0 [20:21:50]*** Brake cut motor [20:21:50]Read from MH i2c: 01 [20:21:50]MH_I2C_Read... [20:21:50]*** Stop cut motor [20:21:50]*** Cut end [20:21:50]Read from MH i2c: 01 07 00 [20:21:50]MH_I2C_Read... [20:21:50]Read from MH i2c: 01 07 00 1B 02 00 00 00 00 00 FF 0F 32 [20:21:50]process_action close_receipt done [20:21:50]requested_data is exist [20:21:50]produce_requested_data [20:21:50]requested_item fm.sn is exist - process it [20:21:50]wFMCommunicate request_size=4 [20:21:50]MH_SAM_APDU [20:21:50]CAPDU: 80 11 00 00 [20:21:50]Write to MH i2c: E2 08 00 1C 02 80 11 00 00 00 00 00 00 98 [20:21:50]Write i2c OK [20:21:50]MH_I2C_Read... [20:21:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:21:50]Read from MH i2c: E2 [20:21:50]MH_I2C_Read... [20:21:50]Read from MH i2c: E2 17 00 [20:21:50]MH_I2C_Read... [20:21:50]Read from MH i2c: E2 17 00 1C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E7 [20:21:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:21:50]wFMCommunicate OK [20:21:50]requested_item fd.num is exist - process it [20:21:50]SAM_PROTO_GetFieldsCounters [20:21:50]wFMCommunicate request_size=4 [20:21:50]MH_SAM_APDU [20:21:50]CAPDU: 80 13 00 00 [20:21:50]Write to MH i2c: E2 08 00 1D 02 80 13 00 00 00 00 00 00 9B [20:21:50]Write i2c OK [20:21:50]MH_I2C_Read... [20:21:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:21:50]Read from MH i2c: E2 [20:21:50]MH_I2C_Read... [20:21:50]Read from MH i2c: E2 62 00 [20:21:50]MH_I2C_Read... [20:21:50]Read from MH i2c: E2 62 00 1D 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 9A 72 00 00 0E 04 04 00 74 00 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 41 [20:21:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 9A 72 00 00 0E 04 04 00 74 00 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 [20:21:50]wFMCommunicate OK [20:21:50]SAM_PROTO_GetFieldsCounters done [20:21:50]requested_item shift.num is exist - process it [20:21:50]requested_item shift.opened is exist - process it [20:21:50]req_shift_opened [20:21:50]FM_GetShiftState [20:21:50]SAM_PROTO_GetShiftState [20:21:50]wFMCommunicate request_size=4 [20:21:50]MH_SAM_APDU [20:21:50]CAPDU: 80 13 01 00 [20:21:50]Write to MH i2c: E2 08 00 1E 02 80 13 01 00 00 00 00 00 9D [20:21:50]Write i2c OK [20:21:50]MH_I2C_Read... [20:21:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:21:50]Read from MH i2c: E2 [20:21:50]MH_I2C_Read... [20:21:50]Read from MH i2c: E2 0E 00 [20:21:50]MH_I2C_Read... [20:21:50]Read from MH i2c: E2 0E 00 1E 02 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 49 [20:21:50]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [20:21:50]wFMCommunicate OK [20:21:50]SAM_PROTO_GetShiftState done [20:21:50]FM_GetShiftState done [20:21:50]req_shift_opened done [20:21:50]requested_item shift.open_date is exist - process it [20:21:50]req_shift_open_date [20:21:50]req_shift_open_date done [20:21:50]produce_requested_data done [20:21:50]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29338,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [20:21:50]process_action_free close_receipt [20:21:50]json_value_free [20:21:50]json_value_free done [20:21:50]process_json_proto returns [20:21:50]Send response to host [20:21:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29338,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [20:21:50]free response buf [20:21:50]execute_script done [20:21:50]execute_script returns [20:21:50]free content buf [20:21:50]Sock 9.Close socket [20:21:50]Sock 9.Thread stoped [20:21:54]OFD Sender: No OFD packet to send [20:21:59]OFD Sender: No OFD packet to send [20:22:04]OFD Sender: No OFD packet to send [20:22:09]OFD Sender: No OFD packet to send [20:22:14]OFD Sender: No OFD packet to send [20:22:19]OFD Sender: No OFD packet to send [20:22:24]OFD Sender: No OFD packet to send [20:22:29]OFD Sender: No OFD packet to send [20:22:34]OFD Sender: No OFD packet to send [20:22:39]OFD Sender: No OFD packet to send [20:22:44]OFD Sender: No OFD packet to send [20:22:49]OFD Sender: No OFD packet to send [20:22:54]OFD Sender: No OFD packet to send [20:22:59]OFD Sender: No OFD packet to send [20:23:04]OFD Sender: No OFD packet to send [20:23:09]OFD Sender: No OFD packet to send [20:23:14]OFD Sender: No OFD packet to send [20:23:19]OFD Sender: No OFD packet to send [20:23:24]OFD Sender: No OFD packet to send [20:23:29]OFD Sender: No OFD packet to send [20:23:34]OFD Sender: No OFD packet to send [20:23:39]OFD Sender: No OFD packet to send [20:23:44]OFD Sender: No OFD packet to send [20:23:49]OFD Sender: No OFD packet to send [20:23:54]OFD Sender: No OFD packet to send [20:23:59]OFD Sender: No OFD packet to send [20:24:04]OFD Sender: No OFD packet to send [20:24:09]OFD Sender: No OFD packet to send [20:24:14]OFD Sender: No OFD packet to send [20:24:19]OFD Sender: No OFD packet to send [20:24:24]OFD Sender: No OFD packet to send [20:24:29]OFD Sender: No OFD packet to send [20:24:34]OFD Sender: No OFD packet to send [20:24:39]OFD Sender: No OFD packet to send [20:24:44]OFD Sender: No OFD packet to send [20:24:49]OFD Sender: No OFD packet to send [20:24:54]OFD Sender: No OFD packet to send [20:24:57]accept exits with 8 [20:24:57]New connection [20:24:57]New thread 3066969444 created [20:24:57]Thread 3067112804 joined [20:24:57]Waiting for new connection... [20:24:57] Sock 8.Parse request [20:24:57]Sock 8.Check first char [20:24:57]Sock 8.First char is OK [20:24:57]request: POST /json_proto HTTP/1.0 [20:24:57]Method: POST [20:24:57]URL: /json_proto [20:24:57]Method is POST - this is cgi request [20:24:57]url: /json_proto [20:24:57]query_string will be loaded in cgi processing [20:24:57]execute_cgi json_proto POST (null) [20:24:57]execute_cgi path=json_proto method=POST [20:24:57]POST find Content-Length [20:24:57]Host: 172.17.33.3:8080 [20:24:57]Content-Length: 1191 [20:24:57]Content-Type: application/json [20:24:57] [20:24:57]POST finish read [20:24:57]Found Content-Length = 1191 [20:24:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043B\u0438\u043A\u0431\u0430\u0435\u0432\u0430. \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)347735\u000A14.04.2024 20:06\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: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3873998\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:24:57]execute_script... [20:24:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043B\u0438\u043A\u0431\u0430\u0435\u0432\u0430. \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)347735\u000A14.04.2024 20:06\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: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3873998\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:24:57]POST & json_proto [20:24:57]process_json_proto [20:24:57]json parsed OK: [20:24:57]protocol is kg_v1.0 [20:24:57]action value=print_text [20:24:57]process_action print_text [20:24:57]cmd_print_text [20:24:57]ExternCall_PrintAddStr [20:24:57]wPrintStart [20:24:57]Write to MH i2c: 01 00 00 1F 02 21 [20:24:57]Write i2c OK [20:24:57]MH_I2C_Read... [20:24:57]Read from MH i2c: 01 [20:24:57]MH_I2C_Read... [20:24:57]Read from MH i2c: 01 07 00 [20:24:57]MH_I2C_Read... [20:24:57]Read from MH i2c: 01 07 00 1F 02 00 00 00 00 00 FF 0F 36 [20:24:57]RasterBufferAndPrint [20:24:57]line *****ТОВАРНЫЙ ЧЕК***** [20:24:57]line АЗС 108 [20:24:57]line Партнер нефть [20:24:57]line 02508201610067 [20:24:57]line Кассир : Аликбаева. Д. [20:24:57]line Счет N : (1)347735 [20:24:57]line 14.04.2024 20:06 [20:24:57]line ПРОДАЖА [20:24:57]line ТРК (МРК, ГНК): 42 [20:24:57]line Вид ГСМ : 2710124130 [20:24:57]line Аи-92-К-5 [20:24:57]line 10.000 x 64.30 [20:24:57]line ИТОГ: 643.00 [20:24:57]line Тип оплаты: Талоны: Партнер нефть [20:24:57]line 3873998 [20:24:57]line ______________________ [20:24:57]line (подпись) [20:24:57]written 0, free lines is 4095 [20:24:57]Write to MH i2c: 01 00 00 33 02 35 [20:24:57]Write i2c OK [20:24:57]MH_I2C_Read... [20:24:57]Read from MH i2c: 01 [20:24:57]MH_I2C_Read... [20:24:57]Read from MH i2c: 01 07 00 [20:24:57]MH_I2C_Read... [20:24:57]Read from MH i2c: 01 07 00 33 02 00 00 00 00 00 14 0E 5E [20:24:57]RasterBufferAndPrint [20:24:57]line [20:24:57]line [20:24:57]line [20:24:57]line [20:24:57]line [20:24:57]written 0, free lines is 3606 [20:24:57]MH_Cut [20:24:57]Write to MH i2c: D1 01 00 3A 02 01 0E [20:24:57]Write i2c OK [20:24:57]MH_I2C_Read... [20:24:57]Read from MH i2c: D1 [20:24:57]MH_I2C_Read... [20:24:57]Read from MH i2c: D1 01 00 [20:24:57]MH_I2C_Read... [20:24:57]Read from MH i2c: D1 01 00 3A 02 00 0D [20:24:57]Write to MH i2c: 01 00 00 3B 02 3D [20:24:57]Write i2c OK [20:24:57]MH_I2C_Read... [20:24:57]*** Cut start [20:24:57]*** Partial cut [20:24:57]*** CUTSNS_PIN = 1 [20:24:57]*** CUTSNS_PIN = 0 [20:24:58]*** Brake cut motor [20:24:58]Read from MH i2c: 01 [20:24:58]MH_I2C_Read... [20:24:58]*** Stop cut motor [20:24:58]*** Cut end [20:24:58]Read from MH i2c: 01 07 00 [20:24:58]MH_I2C_Read... [20:24:58]Read from MH i2c: 01 07 00 3B 02 00 00 00 00 00 FF 0F 52 [20:24:58]process_action print_text done [20:24:58]requested_data is exist [20:24:58]produce_requested_data [20:24:58]requested_item fm.sn is exist - process it [20:24:58]wFMCommunicate request_size=4 [20:24:58]MH_SAM_APDU [20:24:58]CAPDU: 80 11 00 00 [20:24:58]Write to MH i2c: E2 08 00 3C 02 80 11 00 00 00 00 00 00 B8 [20:24:58]Write i2c OK [20:24:58]MH_I2C_Read... [20:24:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:24:58]Read from MH i2c: E2 [20:24:58]MH_I2C_Read... [20:24:58]Read from MH i2c: E2 17 00 [20:24:58]MH_I2C_Read... [20:24:58]Read from MH i2c: E2 17 00 3C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 07 [20:24:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:24:58]wFMCommunicate OK [20:24:58]requested_item fd.num is exist - process it [20:24:58]SAM_PROTO_GetFieldsCounters [20:24:58]wFMCommunicate request_size=4 [20:24:58]MH_SAM_APDU [20:24:58]CAPDU: 80 13 00 00 [20:24:58]Write to MH i2c: E2 08 00 3D 02 80 13 00 00 00 00 00 00 BB [20:24:58]Write i2c OK [20:24:58]MH_I2C_Read... [20:24:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:24:58]Read from MH i2c: E2 [20:24:58]MH_I2C_Read... [20:24:58]Read from MH i2c: E2 62 00 [20:24:58]MH_I2C_Read... [20:24:58]Read from MH i2c: E2 62 00 3D 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 9A 72 00 00 0E 04 04 00 74 00 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 61 [20:24:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 9A 72 00 00 0E 04 04 00 74 00 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 [20:24:58]wFMCommunicate OK [20:24:58]SAM_PROTO_GetFieldsCounters done [20:24:58]requested_item shift.num is exist - process it [20:24:58]requested_item shift.opened is exist - process it [20:24:58]req_shift_opened [20:24:58]FM_GetShiftState [20:24:58]SAM_PROTO_GetShiftState [20:24:58]wFMCommunicate request_size=4 [20:24:58]MH_SAM_APDU [20:24:58]CAPDU: 80 13 01 00 [20:24:58]Write to MH i2c: E2 08 00 3E 02 80 13 01 00 00 00 00 00 BD [20:24:58]Write i2c OK [20:24:58]MH_I2C_Read... [20:24:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:24:58]Read from MH i2c: E2 [20:24:58]MH_I2C_Read... [20:24:58]Read from MH i2c: E2 0E 00 [20:24:58]MH_I2C_Read... [20:24:58]Read from MH i2c: E2 0E 00 3E 02 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 69 [20:24:58]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [20:24:58]wFMCommunicate OK [20:24:58]SAM_PROTO_GetShiftState done [20:24:58]FM_GetShiftState done [20:24:58]req_shift_opened done [20:24:58]requested_item shift.open_date is exist - process it [20:24:58]req_shift_open_date [20:24:58]req_shift_open_date done [20:24:58]produce_requested_data done [20:24:58]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29338,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [20:24:58]process_action_free print_text [20:24:58]json_value_free [20:24:58]json_value_free done [20:24:58]process_json_proto returns [20:24:58]Send response to host [20:24:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29338,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [20:24:58]free response buf [20:24:58]execute_script done [20:24:58]execute_script returns [20:24:58]free content buf [20:24:58]Sock 8.Close socket [20:24:58]Sock 8.Thread stoped [20:24:59]OFD Sender: No OFD packet to send [20:25:04]OFD Sender: No OFD packet to send [20:25:09]OFD Sender: No OFD packet to send [20:25:14]accept exits with 9 [20:25:14]New connection [20:25:14]New thread 3067112804 created [20:25:14]Thread 3066969444 joined [20:25:14]Waiting for new connection... [20:25:14] Sock 9.Parse request [20:25:14]Sock 9.Check first char [20:25:14]Sock 9.First char is OK [20:25:14]request: POST /json_proto HTTP/1.0 [20:25:14]Method: POST [20:25:14]URL: /json_proto [20:25:14]Method is POST - this is cgi request [20:25:14]url: /json_proto [20:25:14]query_string will be loaded in cgi processing [20:25:14]execute_cgi json_proto POST (null) [20:25:14]execute_cgi path=json_proto method=POST [20:25:14]POST find Content-Length [20:25:14]Host: 172.17.33.3:8080 [20:25:14]Content-Length: 1202 [20:25:14]Content-Type: application/json [20:25:14] [20:25:14]POST finish read [20:25:14]Found Content-Length = 1202 [20:25:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043B\u0438\u043A\u0431\u0430\u0435\u0432\u0430. \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)347734\u000A14.04.2024 20:06\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 13\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 53.500 x 64.30\u000A\u0418\u0422\u041E\u0413: 3440.05\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\u000A32577\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:25:14]execute_script... [20:25:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043B\u0438\u043A\u0431\u0430\u0435\u0432\u0430. \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)347734\u000A14.04.2024 20:06\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 13\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 53.500 x 64.30\u000A\u0418\u0422\u041E\u0413: 3440.05\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\u000A32577\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:25:14]POST & json_proto [20:25:14]process_json_proto [20:25:14]json parsed OK: [20:25:14]protocol is kg_v1.0 [20:25:14]action value=print_text [20:25:14]process_action print_text [20:25:14]cmd_print_text [20:25:14]ExternCall_PrintAddStr [20:25:14]wPrintStart [20:25:14]Write to MH i2c: 01 00 00 3F 02 41 [20:25:14]Write i2c OK [20:25:14]MH_I2C_Read... [20:25:14]Read from MH i2c: 01 [20:25:14]MH_I2C_Read... [20:25:14]Read from MH i2c: 01 07 00 [20:25:14]MH_I2C_Read... [20:25:14]Read from MH i2c: 01 07 00 3F 02 00 00 00 00 00 FF 0F 56 [20:25:14]RasterBufferAndPrint [20:25:14]line *****ТОВАРНЫЙ ЧЕК***** [20:25:14]line АЗС 108 [20:25:14]line Партнер нефть [20:25:14]line 02508201610067 [20:25:14]line Кассир : Аликбаева. Д. [20:25:14]line Счет N : (1)347734 [20:25:14]line 14.04.2024 20:06 [20:25:14]line ПРОДАЖА [20:25:14]line ТРК (МРК, ГНК): 13 [20:25:14]line Вид ГСМ : 2710124130 [20:25:14]line Аи-92-К-5 [20:25:14]line 53.500 x 64.30 [20:25:14]line ИТОГ: 3440.05 [20:25:14]line Тип оплаты: Талоны: Топливная Карта [20:25:14]line 32577 [20:25:14]line ______________________ [20:25:14]line (подпись) [20:25:14]written 0, free lines is 4095 [20:25:14]Write to MH i2c: 01 00 00 53 02 55 [20:25:14]Write i2c OK [20:25:14]MH_I2C_Read... [20:25:14]Read from MH i2c: 01 [20:25:14]MH_I2C_Read... [20:25:14]Read from MH i2c: 01 07 00 [20:25:14]MH_I2C_Read... [20:25:14]Read from MH i2c: 01 07 00 53 02 00 00 00 00 00 12 0E 7C [20:25:14]RasterBufferAndPrint [20:25:14]line [20:25:14]line [20:25:14]line [20:25:14]line [20:25:14]line [20:25:14]written 0, free lines is 3604 [20:25:14]MH_Cut [20:25:14]Write to MH i2c: D1 01 00 5A 02 01 2E [20:25:14]Write i2c OK [20:25:14]MH_I2C_Read... [20:25:14]Read from MH i2c: D1 [20:25:14]MH_I2C_Read... [20:25:14]Read from MH i2c: D1 01 00 [20:25:14]MH_I2C_Read... [20:25:14]Read from MH i2c: D1 01 00 5A 02 00 2D [20:25:14]Write to MH i2c: 01 00 00 5B 02 5D [20:25:14]Write i2c OK [20:25:14]MH_I2C_Read... [20:25:14]OFD Sender: No OFD packet to send [20:25:15]*** Cut start [20:25:15]*** Partial cut [20:25:15]*** CUTSNS_PIN = 1 [20:25:15]*** CUTSNS_PIN = 0 [20:25:15]*** Brake cut motor [20:25:15]Read from MH i2c: 01 [20:25:15]MH_I2C_Read... [20:25:15]*** Stop cut motor [20:25:15]*** Cut end [20:25:15]Read from MH i2c: 01 07 00 [20:25:15]MH_I2C_Read... [20:25:15]Read from MH i2c: 01 07 00 5B 02 00 00 00 00 00 FF 0F 72 [20:25:15]process_action print_text done [20:25:15]requested_data is exist [20:25:15]produce_requested_data [20:25:15]requested_item fm.sn is exist - process it [20:25:15]wFMCommunicate request_size=4 [20:25:15]MH_SAM_APDU [20:25:15]CAPDU: 80 11 00 00 [20:25:15]Write to MH i2c: E2 08 00 5C 02 80 11 00 00 00 00 00 00 D8 [20:25:15]Write i2c OK [20:25:15]MH_I2C_Read... [20:25:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:25:15]Read from MH i2c: E2 [20:25:15]MH_I2C_Read... [20:25:15]Read from MH i2c: E2 17 00 [20:25:15]MH_I2C_Read... [20:25:15]Read from MH i2c: E2 17 00 5C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 27 [20:25:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:25:15]wFMCommunicate OK [20:25:15]requested_item fd.num is exist - process it [20:25:15]SAM_PROTO_GetFieldsCounters [20:25:15]wFMCommunicate request_size=4 [20:25:15]MH_SAM_APDU [20:25:15]CAPDU: 80 13 00 00 [20:25:15]Write to MH i2c: E2 08 00 5D 02 80 13 00 00 00 00 00 00 DB [20:25:15]Write i2c OK [20:25:15]MH_I2C_Read... [20:25:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:25:15]Read from MH i2c: E2 [20:25:15]MH_I2C_Read... [20:25:15]Read from MH i2c: E2 62 00 [20:25:15]MH_I2C_Read... [20:25:15]Read from MH i2c: E2 62 00 5D 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 9A 72 00 00 0E 04 04 00 74 00 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 81 [20:25:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 9A 72 00 00 0E 04 04 00 74 00 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 [20:25:15]wFMCommunicate OK [20:25:15]SAM_PROTO_GetFieldsCounters done [20:25:15]requested_item shift.num is exist - process it [20:25:15]requested_item shift.opened is exist - process it [20:25:15]req_shift_opened [20:25:15]FM_GetShiftState [20:25:15]SAM_PROTO_GetShiftState [20:25:15]wFMCommunicate request_size=4 [20:25:15]MH_SAM_APDU [20:25:15]CAPDU: 80 13 01 00 [20:25:15]Write to MH i2c: E2 08 00 5E 02 80 13 01 00 00 00 00 00 DD [20:25:15]Write i2c OK [20:25:15]MH_I2C_Read... [20:25:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:25:16]Read from MH i2c: E2 [20:25:16]MH_I2C_Read... [20:25:16]Read from MH i2c: E2 0E 00 [20:25:16]MH_I2C_Read... [20:25:16]Read from MH i2c: E2 0E 00 5E 02 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 89 [20:25:16]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [20:25:16]wFMCommunicate OK [20:25:16]SAM_PROTO_GetShiftState done [20:25:16]FM_GetShiftState done [20:25:16]req_shift_opened done [20:25:16]requested_item shift.open_date is exist - process it [20:25:16]req_shift_open_date [20:25:16]req_shift_open_date done [20:25:16]produce_requested_data done [20:25:16]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29338,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [20:25:16]process_action_free print_text [20:25:16]json_value_free [20:25:16]json_value_free done [20:25:16]process_json_proto returns [20:25:16]Send response to host [20:25:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29338,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [20:25:16]free response buf [20:25:16]execute_script done [20:25:16]execute_script returns [20:25:16]free content buf [20:25:16]Sock 9.Close socket [20:25:16]Sock 9.Thread stoped [20:25:19]OFD Sender: No OFD packet to send [20:25:24]OFD Sender: No OFD packet to send [20:25:29]OFD Sender: No OFD packet to send [20:25:34]OFD Sender: No OFD packet to send [20:25:39]OFD Sender: No OFD packet to send [20:25:44]OFD Sender: No OFD packet to send [20:25:49]OFD Sender: No OFD packet to send [20:25:54]OFD Sender: No OFD packet to send [20:25:59]OFD Sender: No OFD packet to send [20:26:04]OFD Sender: No OFD packet to send [20:26:09]OFD Sender: No OFD packet to send [20:26:14]OFD Sender: No OFD packet to send [20:26:19]OFD Sender: No OFD packet to send [20:26:24]OFD Sender: No OFD packet to send [20:26:29]OFD Sender: No OFD packet to send [20:26:34]OFD Sender: No OFD packet to send [20:26:39]OFD Sender: No OFD packet to send [20:26:44]OFD Sender: No OFD packet to send [20:26:49]OFD Sender: No OFD packet to send [20:26:54]OFD Sender: No OFD packet to send [20:26:59]OFD Sender: No OFD packet to send [20:27:04]OFD Sender: No OFD packet to send [20:27:09]OFD Sender: No OFD packet to send [20:27:14]OFD Sender: No OFD packet to send [20:27:19]OFD Sender: No OFD packet to send [20:27:24]OFD Sender: No OFD packet to send [20:27:29]OFD Sender: No OFD packet to send [20:27:34]OFD Sender: No OFD packet to send [20:27:39]OFD Sender: No OFD packet to send [20:27:44]OFD Sender: No OFD packet to send [20:27:49]OFD Sender: No OFD packet to send [20:27:54]OFD Sender: No OFD packet to send [20:27:59]OFD Sender: No OFD packet to send [20:28:04]OFD Sender: No OFD packet to send [20:28:09]OFD Sender: No OFD packet to send [20:28:14]OFD Sender: No OFD packet to send [20:28:19]OFD Sender: No OFD packet to send [20:28:24]OFD Sender: No OFD packet to send [20:28:29]OFD Sender: No OFD packet to send [20:28:34]OFD Sender: No OFD packet to send [20:28:39]OFD Sender: No OFD packet to send [20:28:44]OFD Sender: No OFD packet to send [20:28:49]OFD Sender: No OFD packet to send [20:28:54]OFD Sender: No OFD packet to send [20:28:59]OFD Sender: No OFD packet to send [20:29:04]OFD Sender: No OFD packet to send [20:29:09]OFD Sender: No OFD packet to send [20:29:14]OFD Sender: No OFD packet to send [20:29:19]OFD Sender: No OFD packet to send [20:29:24]OFD Sender: No OFD packet to send [20:29:29]OFD Sender: No OFD packet to send [20:29:34]OFD Sender: No OFD packet to send [20:29:39]OFD Sender: No OFD packet to send [20:29:44]OFD Sender: No OFD packet to send [20:29:49]OFD Sender: No OFD packet to send [20:29:54]OFD Sender: No OFD packet to send [20:29:59]OFD Sender: No OFD packet to send [20:30:04]OFD Sender: No OFD packet to send [20:30:09]OFD Sender: No OFD packet to send [20:30:14]accept exits with 8 [20:30:14]New connection [20:30:14]New thread 3066969444 created [20:30:14]Thread 3067112804 joined [20:30:14]Waiting for new connection... [20:30:14] Sock 8.Parse request [20:30:14]Sock 8.Check first char [20:30:14]Sock 8.First char is OK [20:30:14]request: POST /json_proto HTTP/1.0 [20:30:14]Method: POST [20:30:14]URL: /json_proto [20:30:14]Method is POST - this is cgi request [20:30:14]url: /json_proto [20:30:14]query_string will be loaded in cgi processing [20:30:14]execute_cgi json_proto POST (null) [20:30:14]execute_cgi path=json_proto method=POST [20:30:14]POST find Content-Length [20:30:14]Host: 172.17.33.3:8080 [20:30:14]Content-Length: 806 [20:30:14]Content-Type: application/json [20:30:14] [20:30:14]POST finish read [20:30:14]Found Content-Length = 806 [20:30:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347736", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.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" ] } } [20:30:14]execute_script... [20:30: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)347736", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.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" ] } } [20:30:14]POST & json_proto [20:30:14]process_json_proto [20:30:14]json parsed OK: [20:30:14]protocol is kg_v1.0 [20:30:14]action value=close_receipt [20:30:14]process_action close_receipt [20:30:14]cmd_close_receipt [20:30:14]MH_GetDate [20:30:14]Write to MH i2c: F0 00 00 5F 02 50 [20:30:14]Write i2c OK [20:30:14]MH_I2C_Read... [20:30:14]Read from MH i2c: F0 [20:30:14]MH_I2C_Read... [20:30:14]Read from MH i2c: F0 09 00 [20:30:14]MH_I2C_Read... [20:30:14]Read from MH i2c: F0 09 00 5F 02 00 D7 3C 1C 66 23 5B 8F 65 60 [20:30:14]GetLastDocTimeStamp 1713126107 [20:30:14]current date 1713126615 [20:30:14]FM_GetShiftState [20:30:14]SAM_PROTO_GetShiftState [20:30:14]wFMCommunicate request_size=4 [20:30:14]MH_SAM_APDU [20:30:14]CAPDU: 80 13 01 00 [20:30:14]Write to MH i2c: E2 08 00 60 02 80 13 01 00 00 00 00 00 DF [20:30:14]Write i2c OK [20:30:14]MH_I2C_Read... [20:30:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:30:14]Read from MH i2c: E2 [20:30:14]MH_I2C_Read... [20:30:14]Read from MH i2c: E2 0E 00 [20:30:14]MH_I2C_Read... [20:30:14]Read from MH i2c: E2 0E 00 60 02 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 8B [20:30:14]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [20:30:14]wFMCommunicate OK [20:30:14]SAM_PROTO_GetShiftState done [20:30:14]FM_GetShiftState done [20:30:14]opened in 1713053951 [20:30:14]opened+sec_in_day 1713140351 [20:30:14]quantity*price = 80053 [20:30:14]sum+1 = 80055 [20:30:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 800.54 НСП 1% : 7.08 НДС 12% : 85.01 Наличными: 0.00 Безнал.: 800.54 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 249 14.04.2024 20:30 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29339 ФПД: 274670272561384 1/tax-web-control/client/api/v1/ticket?date=20240414T203015&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29339&fm=274670272561384&tin=02508201610067®Number=0000138879044617&sum=80054 [20:30:15]StoreToDocumentArchive [20:30:15]shift 116 fd 29339 [20:30:15]save to /storage/0116/doc_00029339 [20:30:15]save last doc name /storage/0116/doc_00029339 to /storage/kkm_last_doc_name [20:30:15]save OK [20:30:15]Clear old archive folders... [20:30:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:30:15]tlvbuf is 00275D50 [20:30:15]SAM_PROTO_ClearQueue [20:30:15]wFMCommunicate request_size=4 [20:30:15]MH_SAM_APDU [20:30:15]CAPDU: 80 09 00 00 [20:30:15]Write to MH i2c: E2 08 00 6D 02 80 09 00 00 00 00 00 00 E1 [20:30:15]Write i2c OK [20:30:15]MH_I2C_Read... [20:30:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:30:15]Read from MH i2c: E2 [20:30:15]MH_I2C_Read... [20:30:15]Read from MH i2c: E2 03 00 [20:30:15]MH_I2C_Read... [20:30:15]Read from MH i2c: E2 03 00 6D 02 00 90 00 E3 [20:30:15]RAPDU: 90 00 [20:30:15]wFMCommunicate OK [20:30:15]SAM_PROTO_ClearQueue done [20:30:15]KKMCreateOFDPacket [20:30:15]OFDProtocolAddRootSTLVToBuf [20:30:15]FM_MakeSignedData [20:30:15]FM_MakeSignedData [20:30:15]SAM_PROTO_SignData [20:30:15]wFMCommunicate request_size=4 [20:30:15]MH_SAM_APDU [20:30:15]CAPDU: 80 0D 01 02 [20:30:15]Write to MH i2c: E2 08 00 6E 02 80 0D 01 02 00 00 00 00 E9 [20:30:15]Write i2c OK [20:30:15]MH_I2C_Read... [20:30:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:30:15]Read from MH i2c: E2 [20:30:15]MH_I2C_Read... [20:30:15]Read from MH i2c: E2 03 00 [20:30:15]MH_I2C_Read... [20:30:15]Read from MH i2c: E2 03 00 6E 02 00 90 00 E4 [20:30:15]RAPDU: 90 00 [20:30:15]wFMCommunicate OK [20:30:15]wFMCommunicate request_size=255 [20:30:15]MH_SAM_APDU [20:30:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 F9 00 00 00 F4 03 04 00 D7 3C 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9B 72 00 00 35 04 06 00 F9 [20:30:15]Write to MH i2c: E2 02 01 6F 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 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 F9 00 00 00 F4 03 04 00 D7 3C 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9B 72 00 00 35 04 06 00 F9 00 00 0A [20:30:15]Write i2c OK [20:30:15]MH_I2C_Read... [20:30:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:30:16]Read from MH i2c: E2 [20:30:16]MH_I2C_Read... [20:30:16]Read from MH i2c: E2 03 00 [20:30:16]MH_I2C_Read... [20:30:16]Read from MH i2c: E2 03 00 6F 02 00 90 00 E5 [20:30:16]RAPDU: 90 00 [20:30:16]wFMCommunicate OK [20:30:16]wFMCommunicate request_size=10 [20:30:16]MH_SAM_APDU [20:30:16]CAPDU: 80 0D 02 02 05 CF A8 06 C0 E8 [20:30:16]Write to MH i2c: E2 0D 00 70 02 80 0D 02 02 05 00 CF A8 06 C0 E8 00 00 1B [20:30:16]Write i2c OK [20:30:16]MH_I2C_Read... [20:30:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:30:16]Read from MH i2c: E2 [20:30:16]MH_I2C_Read... [20:30:16]Read from MH i2c: E2 03 00 [20:30:16]MH_I2C_Read... [20:30:16]Read from MH i2c: E2 03 00 70 02 00 90 00 E6 [20:30:16]RAPDU: 90 00 [20:30:16]wFMCommunicate OK [20:30:16]wFMCommunicate request_size=4 [20:30:16]MH_SAM_APDU [20:30:16]CAPDU: 80 0D 03 02 [20:30:16]Write to MH i2c: E2 08 00 71 02 80 0D 03 02 00 00 00 00 EE [20:30:16]Write i2c OK [20:30:16]MH_I2C_Read... [20:30:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:30:16]Read from MH i2c: E2 [20:30:16]MH_I2C_Read... [20:30:16]Read from MH i2c: E2 0B 00 [20:30:16]MH_I2C_Read... [20:30:16]Read from MH i2c: E2 0B 00 71 02 00 E6 7B A4 8A 10 C5 F7 EC 90 00 36 [20:30:16]RAPDU: E6 7B A4 8A 10 C5 F7 EC 90 00 [20:30:16]wFMCommunicate OK [20:30:16]SAM_PROTO_SignData done [20:30:16]FM_MakeSignedData done [20:30:16]CreateOFDProtocolMessage [20:30:16]wFMCommunicate request_size=4 [20:30:16]MH_SAM_APDU [20:30:16]CAPDU: 80 11 00 00 [20:30:16]Write to MH i2c: E2 08 00 72 02 80 11 00 00 00 00 00 00 EE [20:30:16]Write i2c OK [20:30:16]MH_I2C_Read... [20:30:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:30:16]Read from MH i2c: E2 [20:30:16]MH_I2C_Read... [20:30:16]Read from MH i2c: E2 17 00 [20:30:16]MH_I2C_Read... [20:30:16]Read from MH i2c: E2 17 00 72 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 3D [20:30:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:30:16]wFMCommunicate OK [20:30:16]CreateOFDProtocolMessage done [20:30:16]OFDSenderStorePacket 29339 [20:30:16]StoreOFDPacket docnum=29339 [20:30:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 65 A5 07 01 C5 5F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 F9 00 00 00 F4 03 04 00 D7 3C 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9B 72 00 00 35 04 06 00 F9 CF A8 06 C0 E8 E6 7B A4 8A 10 C5 F7 EC [20:30:16]CheckFolder [20:30:16]dirname=/storage/ofd_packets [20:30:16]CheckFolder done [20:30:16]ProducePacketName [20:30:16]name=ofd_packets/00029339 [20:30:16]NVStorageSaveData ofd_packets/00029339 [20:30:16]File name is /storage/ofd_packets/00029339 [20:30:16]Write 301 bytes [20:30:16]NVStorageSaveData done [20:30:16]OFDSenderStorePacket done [20:30:16]KKMCreateOFDPacket done [20:30:16]NVStorageSaveData kkm_last_timestamp [20:30:16]File name is /storage/kkm_last_timestamp [20:30:16]Write 4 bytes [20:30:16]NVStorageSaveData done [20:30:16]ExternCall_PrintAddStr [20:30:16]wPrintStart [20:30:16]Write to MH i2c: 01 00 00 73 02 75 [20:30:16]Write i2c OK [20:30:16]MH_I2C_Read... [20:30:16]Read from MH i2c: 01 [20:30:16]MH_I2C_Read... [20:30:16]Read from MH i2c: 01 07 00 [20:30:16]MH_I2C_Read... [20:30:16]Read from MH i2c: 01 07 00 73 02 00 00 00 00 00 FF 0F 8A [20:30:16]RasterBufferAndPrint [20:30:16]line Счет N : (1)347736 [20:30:16]line ИНН: 02508201610067 [20:30:16]line Контрольно-Кассовый Чек [20:30:16]line ПРОДАЖА [20:30:16]line ТРК (МРК, ГНК) : 13 [20:30:16]line Товар: 2710124130 [20:30:16]line Аи-92-К-5 [20:30:16]line 12.450 * 64.30 [20:30:16]line = 800.54 [20:30:16]line НДС 12% НСП 1% [20:30:16]line > о реализуемом товаре [20:30:16]line ИТОГО: 800.54 [20:30:16]line НСП 1% : 7.08 [20:30:16]line НДС 12% : 85.01 [20:30:16]line Наличными: 0.00 [20:30:16]line Безнал.: 800.54 [20:30:16]line Место: АЗС № 108 "Партнер Нефть" [20:30:16]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [20:30:16]line СНО: Общий режим [20:30:16]line Чек 249 14.04.2024 20:30 [20:30:16]line Смена: 116 ФФД: 1.0 [20:30:16]line ЗНМ: 0300000027 [20:30:16]line РНМ: 0000138879044617 [20:30:16]line Версия ККМ: 001 [20:30:16]line Платежная система: О! деньги [20:30:16]line ФМ: 0000000000963154 [20:30:16]line ФД: 29339 [20:30:16]line ФПД: 274670272561384 [20:30:16]line 1/tax-web-control/client/api/v1/ticket?date=20240414T203015&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29339&fm=274670272561384&tin=02508201610067®Number=0000138879044617&sum=80054 [20:30:16]OFD Sender: Processing packet 29339 [packets to send 8, broken 7] [20:30:16]ProducePacketName [20:30:16]name=ofd_packets/00029339 [20:30:16]OFD Sender: To server: pG, [20:30:16]CommunicateWithHost lk.salyk.kg:30040 [20:30:16]ConnectInit lk.salyk.kg [20:30:16]written 0, free lines is 4095 [20:30:16]Connected sock=10 [20:30:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 65 A5 07 01 C5 5F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 F9 00 00 00 F4 03 04 00 D7 3C 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9B 72 00 00 35 04 06 00 F9 CF A8 06 C0 E8 E6 7B A4 8A 10 C5 F7 EC [20:30:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 AB 54 47 00 9B 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 39 36 33 31 35 34 10 04 04 00 9B 72 00 00 F4 03 04 00 7A E7 1B 66 B6 04 01 00 00 38 D9 89 39 4D 83 E0 15 [20:30:16]CommunicateWithHost err = 0 [20:30:16]CheckOFDResponse [20:30:16]1017 (14) - 77093643461234 [20:30:16]1041 (16) - 0000000000963154 [20:30:16]1040 (4) - 29339 [20:30:16]1012 (4) - 14.04.2024 14:26 [20:30:16]1206 (1) - 0 [20:30:16]OFD Sender: Remove packet 29339 [20:30:16]ProducePacketName [20:30:16]name=ofd_packets/00029339 [20:30:16]NVStorageDeleteData [20:30:17]Write to MH i2c: 01 00 00 9C 02 9E [20:30:17]Write i2c OK [20:30:17]MH_I2C_Read... [20:30:17]Read from MH i2c: 01 [20:30:17]MH_I2C_Read... [20:30:17]Read from MH i2c: 01 07 00 [20:30:17]MH_I2C_Read... [20:30:17]Read from MH i2c: 01 07 00 9C 02 00 00 00 00 00 E6 0C 97 [20:30:17]RasterBufferAndPrint [20:30:17]line [20:30:17]line [20:30:17]line [20:30:17]line [20:30:17]line [20:30:17]written 0, free lines is 3308 [20:30:17]MH_Cut [20:30:17]Write to MH i2c: D1 01 00 A3 02 01 77 [20:30:17]Write i2c OK [20:30:17]MH_I2C_Read... [20:30:17]Read from MH i2c: D1 [20:30:17]MH_I2C_Read... [20:30:17]Read from MH i2c: D1 01 00 [20:30:17]MH_I2C_Read... [20:30:17]Read from MH i2c: D1 01 00 A3 02 00 76 [20:30:17]Write to MH i2c: 01 00 00 A4 02 A6 [20:30:17]Write i2c OK [20:30:17]MH_I2C_Read... [20:30:17]OFD Sender: No OFD packet to send [20:30:17]*** Cut start [20:30:17]*** Partial cut [20:30:17]*** CUTSNS_PIN = 1 [20:30:17]*** CUTSNS_PIN = 0 [20:30:18]*** Brake cut motor [20:30:18]Read from MH i2c: 01 [20:30:18]MH_I2C_Read... [20:30:18]*** Stop cut motor [20:30:18]*** Cut end [20:30:18]Read from MH i2c: 01 07 00 [20:30:18]MH_I2C_Read... [20:30:18]Read from MH i2c: 01 07 00 A4 02 00 00 00 00 00 FF 0F BB [20:30:18]process_action close_receipt done [20:30:18]requested_data is exist [20:30:18]produce_requested_data [20:30:18]requested_item fm.sn is exist - process it [20:30:18]wFMCommunicate request_size=4 [20:30:18]MH_SAM_APDU [20:30:18]CAPDU: 80 11 00 00 [20:30:18]Write to MH i2c: E2 08 00 A5 02 80 11 00 00 00 00 00 00 21 [20:30:18]Write i2c OK [20:30:18]MH_I2C_Read... [20:30:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:30:18]Read from MH i2c: E2 [20:30:18]MH_I2C_Read... [20:30:18]Read from MH i2c: E2 17 00 [20:30:18]MH_I2C_Read... [20:30:18]Read from MH i2c: E2 17 00 A5 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 70 [20:30:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:30:18]wFMCommunicate OK [20:30:18]requested_item fd.num is exist - process it [20:30:18]SAM_PROTO_GetFieldsCounters [20:30:18]wFMCommunicate request_size=4 [20:30:18]MH_SAM_APDU [20:30:18]CAPDU: 80 13 00 00 [20:30:18]Write to MH i2c: E2 08 00 A6 02 80 13 00 00 00 00 00 00 24 [20:30:18]Write i2c OK [20:30:18]MH_I2C_Read... [20:30:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:30:18]Read from MH i2c: E2 [20:30:18]MH_I2C_Read... [20:30:18]Read from MH i2c: E2 62 00 [20:30:18]MH_I2C_Read... [20:30:18]Read from MH i2c: E2 62 00 A6 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 9B 72 00 00 0E 04 04 00 74 00 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 CE [20:30:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 9B 72 00 00 0E 04 04 00 74 00 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 [20:30:18]wFMCommunicate OK [20:30:18]SAM_PROTO_GetFieldsCounters done [20:30:18]requested_item shift.num is exist - process it [20:30:18]requested_item shift.opened is exist - process it [20:30:18]req_shift_opened [20:30:18]FM_GetShiftState [20:30:18]SAM_PROTO_GetShiftState [20:30:18]wFMCommunicate request_size=4 [20:30:18]MH_SAM_APDU [20:30:18]CAPDU: 80 13 01 00 [20:30:18]Write to MH i2c: E2 08 00 A7 02 80 13 01 00 00 00 00 00 26 [20:30:18]Write i2c OK [20:30:18]MH_I2C_Read... [20:30:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:30:18]Read from MH i2c: E2 [20:30:18]MH_I2C_Read... [20:30:18]Read from MH i2c: E2 0E 00 [20:30:18]MH_I2C_Read... [20:30:18]Read from MH i2c: E2 0E 00 A7 02 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 D2 [20:30:18]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [20:30:18]wFMCommunicate OK [20:30:18]SAM_PROTO_GetShiftState done [20:30:18]FM_GetShiftState done [20:30:18]req_shift_opened done [20:30:18]requested_item shift.open_date is exist - process it [20:30:18]req_shift_open_date [20:30:18]req_shift_open_date done [20:30:18]produce_requested_data done [20:30:18]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29339,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [20:30:18]process_action_free close_receipt [20:30:18]json_value_free [20:30:18]json_value_free done [20:30:18]process_json_proto returns [20:30:18]Send response to host [20:30:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29339,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [20:30:18]free response buf [20:30:18]execute_script done [20:30:18]execute_script returns [20:30:18]free content buf [20:30:18]Sock 8.Close socket [20:30:18]Sock 8.Thread stoped [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:57]OFD Sender: No OFD packet to send [20:31:02]OFD Sender: No OFD packet to send [20:31:07]OFD Sender: No OFD packet to send [20:31:12]OFD Sender: No OFD packet to send [20:31:17]OFD Sender: No OFD packet to send [20:31:22]OFD Sender: No OFD packet to send [20:31:27]OFD Sender: No OFD packet to send [20:31:32]OFD Sender: No OFD packet to send [20:31:37]OFD Sender: No OFD packet to send [20:31:42]OFD Sender: No OFD packet to send [20:31:47]OFD Sender: No OFD packet to send [20:31:52]OFD Sender: No OFD packet to send [20:31:57]OFD Sender: No OFD packet to send [20:32:02]OFD Sender: No OFD packet to send [20:32:07]OFD Sender: No OFD packet to send [20:32:12]OFD Sender: No OFD packet to send [20:32:17]OFD Sender: No OFD packet to send [20:32:22]OFD Sender: No OFD packet to send [20:32:27]OFD Sender: No OFD packet to send [20:32:32]OFD Sender: No OFD packet to send [20:32:37]OFD Sender: No OFD packet to send [20:32:42]OFD Sender: No OFD packet to send [20:32:47]OFD Sender: No OFD packet to send [20:32:52]OFD Sender: No OFD packet to send [20:32:57]OFD Sender: No OFD packet to send [20:33:02]OFD Sender: No OFD packet to send [20:33:07]OFD Sender: No OFD packet to send [20:33:12]OFD Sender: No OFD packet to send [20:33:17]OFD Sender: No OFD packet to send [20:33:22]OFD Sender: No OFD packet to send [20:33:27]OFD Sender: No OFD packet to send [20:33:32]OFD Sender: No OFD packet to send [20:33:37]OFD Sender: No OFD packet to send [20:33:42]OFD Sender: No OFD packet to send [20:33:47]OFD Sender: No OFD packet to send [20:33:52]OFD Sender: No OFD packet to send [20:33:57]OFD Sender: No OFD packet to send [20:34:02]OFD Sender: No OFD packet to send [20:34:07]OFD Sender: No OFD packet to send [20:34:12]OFD Sender: No OFD packet to send [20:34:17]OFD Sender: No OFD packet to send [20:34:22]OFD Sender: No OFD packet to send [20:34:27]OFD Sender: No OFD packet to send [20:34:32]OFD Sender: No OFD packet to send [20:34:37]OFD Sender: No OFD packet to send [20:34:42]OFD Sender: No OFD packet to send [20:34:47]OFD Sender: No OFD packet to send [20:34:52]OFD Sender: No OFD packet to send [20:34:57]OFD Sender: No OFD packet to send [20:35:02]OFD Sender: No OFD packet to send [20:35:07]OFD Sender: No OFD packet to send [20:35:12]OFD Sender: No OFD packet to send [20:35:17]OFD Sender: No OFD packet to send [20:35:22]OFD Sender: No OFD packet to send [20:35:27]OFD Sender: No OFD packet to send [20:35:32]OFD Sender: No OFD packet to send [20:35:37]OFD Sender: No OFD packet to send [20:35:42]OFD Sender: No OFD packet to send [20:35:47]OFD Sender: No OFD packet to send [20:35:52]OFD Sender: No OFD packet to send [20:35:57]OFD Sender: No OFD packet to send [20:36:02]OFD Sender: No OFD packet to send [20:36:07]OFD Sender: No OFD packet to send [20:36:12]OFD Sender: No OFD packet to send [20:36:17]OFD Sender: No OFD packet to send [20:36:22]OFD Sender: No OFD packet to send [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]accept exits with 9 [20:36:57]New connection [20:36:57]New thread 3067112804 created [20:36:57]Thread 3066969444 joined [20:36:57]Waiting for new connection... [20:36:57] Sock 9.Parse request [20:36:57]Sock 9.Check first char [20:36:57]Sock 9.First char is OK [20:36:57]request: POST /json_proto HTTP/1.0 [20:36:57]Method: POST [20:36:57]URL: /json_proto [20:36:57]Method is POST - this is cgi request [20:36:57]url: /json_proto [20:36:57]query_string will be loaded in cgi processing [20:36:57]execute_cgi json_proto POST (null) [20:36:57]execute_cgi path=json_proto method=POST [20:36:57]POST find Content-Length [20:36:57]Host: 172.17.33.3:8080 [20:36:57]Content-Length: 682 [20:36:57]Content-Type: application/json [20:36:57] [20:36:57]POST finish read [20:36:57]Found Content-Length = 682 [20:36:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347739", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.50, "quantity" : 27.590, "sum" : 2000.28, "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:36:57]execute_script... [20: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)347739", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.50, "quantity" : 27.590, "sum" : 2000.28, "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:36:57]POST & json_proto [20:36:57]process_json_proto [20:36:57]json parsed OK: [20:36:57]protocol is kg_v1.0 [20:36:57]action value=close_receipt [20:36:57]process_action close_receipt [20:36:57]cmd_close_receipt [20:36:57]MH_GetDate [20:36:57]Write to MH i2c: F0 00 00 A8 02 99 [20:36:57]Write i2c OK [20:36:57]MH_I2C_Read... [20:36:57]Read from MH i2c: F0 [20:36:57]MH_I2C_Read... [20:36:57]Read from MH i2c: F0 09 00 [20:36:57]MH_I2C_Read... [20:36:57]Read from MH i2c: F0 09 00 A8 02 00 6A 3E 1C 66 23 5B 8F 65 3E [20:36:57]GetLastDocTimeStamp 1713126615 [20:36:57]current date 1713127018 [20:36:57]FM_GetShiftState [20:36:57]SAM_PROTO_GetShiftState [20:36:57]wFMCommunicate request_size=4 [20:36:57]MH_SAM_APDU [20:36:57]CAPDU: 80 13 01 00 [20:36:57]Write to MH i2c: E2 08 00 A9 02 80 13 01 00 00 00 00 00 28 [20:36:57]Write i2c OK [20:36:57]MH_I2C_Read... [20:36:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:36:57]Read from MH i2c: E2 [20:36:57]MH_I2C_Read... [20:36:57]Read from MH i2c: E2 0E 00 [20:36:57]MH_I2C_Read... [20:36:57]Read from MH i2c: E2 0E 00 A9 02 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 D4 [20:36:57]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [20:36:57]wFMCommunicate OK [20:36:57]SAM_PROTO_GetShiftState done [20:36:57]FM_GetShiftState done [20:36:57]opened in 1713053951 [20:36:57]opened+sec_in_day 1713140351 [20:36:57]quantity*price = 200027 [20:36:57]sum+1 = 200029 [20:36:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 250 14.04.2024 20:36 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29340 ФПД: 111420949005879 1/tax-web-control/client/api/v1/ticket?date=20240414T203658&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29340&fm=111420949005879&tin=02508201610067®Number=0000138879044617&sum=200000 [20:36:58]StoreToDocumentArchive [20:36:58]shift 116 fd 29340 [20:36:58]save to /storage/0116/doc_00029340 [20:36:58]save last doc name /storage/0116/doc_00029340 to /storage/kkm_last_doc_name [20:36:58]save OK [20:36:58]Clear old archive folders... [20:36:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:36:58]tlvbuf is 0027BB90 [20:36:58]SAM_PROTO_ClearQueue [20:36:58]wFMCommunicate request_size=4 [20:36:58]MH_SAM_APDU [20:36:58]CAPDU: 80 09 00 00 [20:36:58]Write to MH i2c: E2 08 00 B6 02 80 09 00 00 00 00 00 00 2A [20:36:58]Write i2c OK [20:36:58]MH_I2C_Read... [20:36:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:36:58]Read from MH i2c: E2 [20:36:58]MH_I2C_Read... [20:36:58]Read from MH i2c: E2 03 00 [20:36:58]MH_I2C_Read... [20:36:58]Read from MH i2c: E2 03 00 B6 02 00 90 00 2C [20:36:58]RAPDU: 90 00 [20:36:58]wFMCommunicate OK [20:36:58]SAM_PROTO_ClearQueue done [20:36:58]KKMCreateOFDPacket [20:36:58]OFDProtocolAddRootSTLVToBuf [20:36:58]FM_MakeSignedData [20:36:58]FM_MakeSignedData [20:36:58]SAM_PROTO_SignData [20:36:58]wFMCommunicate request_size=4 [20:36:58]MH_SAM_APDU [20:36:58]CAPDU: 80 0D 01 02 [20:36:58]Write to MH i2c: E2 08 00 B7 02 80 0D 01 02 00 00 00 00 32 [20:36:58]Write i2c OK [20:36:58]MH_I2C_Read... [20:36:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:36:58]Read from MH i2c: E2 [20:36:58]MH_I2C_Read... [20:36:58]Read from MH i2c: E2 03 00 [20:36:58]MH_I2C_Read... [20:36:58]Read from MH i2c: E2 03 00 B7 02 00 90 00 2D [20:36:58]RAPDU: 90 00 [20:36:58]wFMCommunicate OK [20:36:58]wFMCommunicate request_size=255 [20:36:58]MH_SAM_APDU [20:36: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C6 6B 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 5C 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 FA 00 00 00 F4 03 04 00 6A 3E 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9C 72 00 00 35 04 06 00 65 [20:36:58]Write to MH i2c: E2 02 01 B8 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 C6 6B 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 5C 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 FA 00 00 00 F4 03 04 00 6A 3E 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9C 72 00 00 35 04 06 00 65 00 00 4F [20:36:58]Write i2c OK [20:36:58]MH_I2C_Read... [20:36:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:36:59]Read from MH i2c: E2 [20:36:59]MH_I2C_Read... [20:36:59]Read from MH i2c: E2 03 00 [20:36:59]MH_I2C_Read... [20:36:59]Read from MH i2c: E2 03 00 B8 02 00 90 00 2E [20:36:59]RAPDU: 90 00 [20:36:59]wFMCommunicate OK [20:36:59]wFMCommunicate request_size=10 [20:36:59]MH_SAM_APDU [20:36:59]CAPDU: 80 0D 02 02 05 56 36 16 06 37 [20:36:59]Write to MH i2c: E2 0D 00 B9 02 80 0D 02 02 05 00 56 36 16 06 37 00 00 1E [20:36:59]Write i2c OK [20:36:59]MH_I2C_Read... [20:36:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:36:59]Read from MH i2c: E2 [20:36:59]MH_I2C_Read... [20:36:59]Read from MH i2c: E2 03 00 [20:36:59]MH_I2C_Read... [20:36:59]Read from MH i2c: E2 03 00 B9 02 00 90 00 2F [20:36:59]RAPDU: 90 00 [20:36:59]wFMCommunicate OK [20:36:59]wFMCommunicate request_size=4 [20:36:59]MH_SAM_APDU [20:36:59]CAPDU: 80 0D 03 02 [20:36:59]Write to MH i2c: E2 08 00 BA 02 80 0D 03 02 00 00 00 00 37 [20:36:59]Write i2c OK [20:36:59]MH_I2C_Read... [20:36:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:36:59]Read from MH i2c: E2 [20:36:59]MH_I2C_Read... [20:36:59]Read from MH i2c: E2 0B 00 [20:36:59]MH_I2C_Read... [20:36:59]Read from MH i2c: E2 0B 00 BA 02 00 2A 88 1D 1C 3B 36 76 5B 90 00 65 [20:36:59]RAPDU: 2A 88 1D 1C 3B 36 76 5B 90 00 [20:36:59]wFMCommunicate OK [20:36:59]SAM_PROTO_SignData done [20:36:59]FM_MakeSignedData done [20:36:59]CreateOFDProtocolMessage [20:36:59]wFMCommunicate request_size=4 [20:36:59]MH_SAM_APDU [20:36:59]CAPDU: 80 11 00 00 [20:36:59]Write to MH i2c: E2 08 00 BB 02 80 11 00 00 00 00 00 00 37 [20:36:59]Write i2c OK [20:36:59]MH_I2C_Read... [20:36:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:36:59]Read from MH i2c: E2 [20:36:59]MH_I2C_Read... [20:36:59]Read from MH i2c: E2 17 00 [20:36:59]MH_I2C_Read... [20:36:59]Read from MH i2c: E2 17 00 BB 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 86 [20:36:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:36:59]wFMCommunicate OK [20:36:59]CreateOFDProtocolMessage done [20:36:59]OFDSenderStorePacket 29340 [20:36:59]StoreOFDPacket docnum=29340 [20:36:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 FA A5 07 01 FA 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C6 6B 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 5C 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 FA 00 00 00 F4 03 04 00 6A 3E 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9C 72 00 00 35 04 06 00 65 56 36 16 06 37 2A 88 1D 1C 3B 36 76 5B [20:36:59]CheckFolder [20:36:59]dirname=/storage/ofd_packets [20:36:59]CheckFolder done [20:36:59]ProducePacketName [20:36:59]name=ofd_packets/00029340 [20:36:59]NVStorageSaveData ofd_packets/00029340 [20:36:59]File name is /storage/ofd_packets/00029340 [20:36:59]Write 301 bytes [20:36:59]NVStorageSaveData done [20:36:59]OFDSenderStorePacket done [20:36:59]KKMCreateOFDPacket done [20:36:59]NVStorageSaveData kkm_last_timestamp [20:36:59]File name is /storage/kkm_last_timestamp [20:36:59]Write 4 bytes [20:36:59]NVStorageSaveData done [20:36:59]ExternCall_PrintAddStr [20:36:59]wPrintStart [20:36:59]Write to MH i2c: 01 00 00 BC 02 BE [20:36:59]Write i2c OK [20:36:59]MH_I2C_Read... [20:36:59]Read from MH i2c: 01 [20:36:59]MH_I2C_Read... [20:36:59]Read from MH i2c: 01 07 00 [20:36:59]MH_I2C_Read... [20:36:59]Read from MH i2c: 01 07 00 BC 02 00 00 00 00 00 FF 0F D3 [20:36:59]RasterBufferAndPrint [20:36:59]line Счет N : (1)347739 [20:36:59]line ИНН: 02508201610067 [20:36:59]line Контрольно-Кассовый Чек [20:36:59]line ПРОДАЖА [20:36:59]line ТРК (МРК, ГНК) : 33 [20:36:59]line Товар: 2710124500 [20:36:59]line Аи-95-К-5 [20:36:59]line 27.590 * 72.50 [20:36:59]line = 2000.28 [20:36:59]line НДС 12% НСП 1% [20:36:59]line > о реализуемом товаре [20:36:59]line ОКРУГЛЕНИЕ: -0.28 [20:36:59]line ИТОГО: 2000.00 [20:36:59]line Внесено: 2000.00 [20:36:59]line СДАЧА: 0.00 [20:36:59]line НСП 1% : 17.70 [20:36:59]line НДС 12% : 212.42 [20:36:59]line Наличными: 2000.00 [20:36:59]line Безнал.: 0.00 [20:36:59]line Место: АЗС № 108 "Партнер Нефть" [20:36:59]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [20:36:59]line СНО: Общий режим [20:36:59]line Чек 250 14.04.2024 20:36 [20:36:59]line Смена: 116 ФФД: 1.0 [20:36:59]line ЗНМ: 0300000027 [20:36:59]line РНМ: 0000138879044617 [20:36:59]line Версия ККМ: 001 [20:36:59]line ФМ: 0000000000963154 [20:36:59]line ФД: 29340 [20:36:59]line ФПД: 111420949005879 [20:36:59]line 1/tax-web-control/client/api/v1/ticket?date=20240414T203658&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29340&fm=111420949005879&tin=02508201610067®Number=0000138879044617&sum=200000 [20:36:59]OFD Sender: Processing packet 29340 [packets to send 8, broken 7] [20:36:59]ProducePacketName [20:36:59]name=ofd_packets/00029340 [20:36:59]OFD Sender: To server: pG, [20:36:59]CommunicateWithHost lk.salyk.kg:30040 [20:36:59]ConnectInit lk.salyk.kg [20:36:59]written 0, free lines is 4095 [20:36:59]Connected sock=10 [20:36:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 FA A5 07 01 FA 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C6 6B 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 5C 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 FA 00 00 00 F4 03 04 00 6A 3E 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9C 72 00 00 35 04 06 00 65 56 36 16 06 37 2A 88 1D 1C 3B 36 76 5B [20:36:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 13 16 47 00 A0 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 39 36 33 31 35 34 10 04 04 00 9C 72 00 00 F4 03 04 00 0D E9 1B 66 B6 04 01 00 00 1A 03 54 00 30 07 0C 2A [20:36:59]CommunicateWithHost err = 0 [20:36:59]CheckOFDResponse [20:36:59]1017 (14) - 77093643461234 [20:36:59]1041 (16) - 0000000000963154 [20:36:59]1040 (4) - 29340 [20:36:59]1012 (4) - 14.04.2024 14:32 [20:36:59]1206 (1) - 0 [20:36:59]OFD Sender: Remove packet 29340 [20:36:59]ProducePacketName [20:36:59]name=ofd_packets/00029340 [20:36:59]NVStorageDeleteData [20:37:00]Write to MH i2c: 01 00 00 E6 02 E8 [20:37:00]Write i2c OK [20:37:00]MH_I2C_Read... [20:37:00]Read from MH i2c: 01 [20:37:00]MH_I2C_Read... [20:37:00]Read from MH i2c: 01 07 00 [20:37:00]MH_I2C_Read... [20:37:00]Read from MH i2c: 01 07 00 E6 02 00 00 00 00 00 CD 0C C8 [20:37:00]RasterBufferAndPrint [20:37:00]line [20:37:00]line [20:37:00]line [20:37:00]line [20:37:00]line [20:37:00]written 0, free lines is 3281 [20:37:00]MH_Cut [20:37:00]Write to MH i2c: D1 01 00 ED 02 01 C1 [20:37:00]Write i2c OK [20:37:00]MH_I2C_Read... [20:37:00]Read from MH i2c: D1 [20:37:00]MH_I2C_Read... [20:37:00]Read from MH i2c: D1 01 00 [20:37:00]MH_I2C_Read... [20:37:00]Read from MH i2c: D1 01 00 ED 02 00 C0 [20:37:00]Write to MH i2c: 01 00 00 EE 02 F0 [20:37:00]Write i2c OK [20:37:00]MH_I2C_Read... [20:37:00]OFD Sender: No OFD packet to send [20:37:00]*** Cut start [20:37:00]*** Partial cut [20:37:00]*** CUTSNS_PIN = 1 [20:37:00]*** CUTSNS_PIN = 0 [20:37:01]*** Brake cut motor [20:37:01]Read from MH i2c: 01 [20:37:01]MH_I2C_Read... [20:37:01]*** Stop cut motor [20:37:01]*** Cut end [20:37:01]Read from MH i2c: 01 07 00 [20:37:01]MH_I2C_Read... [20:37:01]Read from MH i2c: 01 07 00 EE 02 00 00 00 00 00 FF 0F 05 [20:37:01]process_action close_receipt done [20:37:01]requested_data is exist [20:37:01]produce_requested_data [20:37:01]requested_item fm.sn is exist - process it [20:37:01]wFMCommunicate request_size=4 [20:37:01]MH_SAM_APDU [20:37:01]CAPDU: 80 11 00 00 [20:37:01]Write to MH i2c: E2 08 00 EF 02 80 11 00 00 00 00 00 00 6B [20:37:01]Write i2c OK [20:37:01]MH_I2C_Read... [20:37:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:37:01]Read from MH i2c: E2 [20:37:01]MH_I2C_Read... [20:37:01]Read from MH i2c: E2 17 00 [20:37:01]MH_I2C_Read... [20:37:01]Read from MH i2c: E2 17 00 EF 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 BA [20:37:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:37:01]wFMCommunicate OK [20:37:01]requested_item fd.num is exist - process it [20:37:01]SAM_PROTO_GetFieldsCounters [20:37:01]wFMCommunicate request_size=4 [20:37:01]MH_SAM_APDU [20:37:01]CAPDU: 80 13 00 00 [20:37:01]Write to MH i2c: E2 08 00 F0 02 80 13 00 00 00 00 00 00 6E [20:37:01]Write i2c OK [20:37:01]MH_I2C_Read... [20:37:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:37:01]Read from MH i2c: E2 [20:37:01]MH_I2C_Read... [20:37:01]Read from MH i2c: E2 62 00 [20:37:01]MH_I2C_Read... [20:37:01]Read from MH i2c: E2 62 00 F0 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 9C 72 00 00 0E 04 04 00 74 00 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 1C [20:37:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 9C 72 00 00 0E 04 04 00 74 00 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 [20:37:01]wFMCommunicate OK [20:37:01]SAM_PROTO_GetFieldsCounters done [20:37:01]requested_item shift.num is exist - process it [20:37:01]requested_item shift.opened is exist - process it [20:37:01]req_shift_opened [20:37:01]FM_GetShiftState [20:37:01]SAM_PROTO_GetShiftState [20:37:01]wFMCommunicate request_size=4 [20:37:01]MH_SAM_APDU [20:37:01]CAPDU: 80 13 01 00 [20:37:01]Write to MH i2c: E2 08 00 F1 02 80 13 01 00 00 00 00 00 70 [20:37:01]Write i2c OK [20:37:01]MH_I2C_Read... [20:37:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:37:01]Read from MH i2c: E2 [20:37:01]MH_I2C_Read... [20:37:01]Read from MH i2c: E2 0E 00 [20:37:01]MH_I2C_Read... [20:37:01]Read from MH i2c: E2 0E 00 F1 02 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 1C [20:37:01]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [20:37:01]wFMCommunicate OK [20:37:01]SAM_PROTO_GetShiftState done [20:37:01]FM_GetShiftState done [20:37:01]req_shift_opened done [20:37:01]requested_item shift.open_date is exist - process it [20:37:01]req_shift_open_date [20:37:01]req_shift_open_date done [20:37:01]produce_requested_data done [20:37:01]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29340,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [20:37:01]process_action_free close_receipt [20:37:01]json_value_free [20:37:01]json_value_free done [20:37:01]process_json_proto returns [20:37:01]Send response to host [20:37:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29340,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [20:37:01]free response buf [20:37:01]execute_script done [20:37:01]execute_script returns [20:37:01]free content buf [20:37:01]Sock 9.Close socket [20:37:01]Sock 9.Thread stoped [20:37:05]OFD Sender: No OFD packet to send [20:37:10]OFD Sender: No OFD packet to send [20:37:15]OFD Sender: No OFD packet to send [20:37:20]OFD Sender: No OFD packet to send [20:37:25]OFD Sender: No OFD packet to send [20:37:30]OFD Sender: No OFD packet to send [20:37:35]OFD Sender: No OFD packet to send [20:37:40]OFD Sender: No OFD packet to send [20:37:45]OFD Sender: No OFD packet to send [20:37:50]OFD Sender: No OFD packet to send [20:37:55]OFD Sender: No OFD packet to send [20:38:00]OFD Sender: No OFD packet to send [20:38:05]OFD Sender: No OFD packet to send [20:38:10]OFD Sender: No OFD packet to send [20:38:15]OFD Sender: No OFD packet to send [20:38:20]OFD Sender: No OFD packet to send [20:38:25]OFD Sender: No OFD packet to send [20:38:30]OFD Sender: No OFD packet to send [20:38:35]OFD Sender: No OFD packet to send [20:38:40]OFD Sender: No OFD packet to send [20:38:40]accept exits with 8 [20:38:40]New connection [20:38:40]New thread 3066969444 created [20:38:40]Thread 3067112804 joined [20:38:40]Waiting for new connection... [20:38:40] Sock 8.Parse request [20:38:40]Sock 8.Check first char [20:38:40]Sock 8.First char is OK [20:38:40]request: POST /json_proto HTTP/1.0 [20:38:40]Method: POST [20:38:40]URL: /json_proto [20:38:40]Method is POST - this is cgi request [20:38:40]url: /json_proto [20:38:40]query_string will be loaded in cgi processing [20:38:40]execute_cgi json_proto POST (null) [20:38:40]execute_cgi path=json_proto method=POST [20:38:40]POST find Content-Length [20:38:40]Host: 172.17.33.3:8080 [20:38:40]Content-Length: 801 [20:38:40]Content-Type: application/json [20:38:40] [20:38:40]POST finish read [20:38:40]Found Content-Length = 801 [20:38:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347737", "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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:38:40]execute_script... [20:38:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347737", "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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:38:40]POST & json_proto [20:38:40]process_json_proto [20:38:40]json parsed OK: [20:38:40]protocol is kg_v1.0 [20:38:40]action value=close_receipt [20:38:40]process_action close_receipt [20:38:40]cmd_close_receipt [20:38:40]MH_GetDate [20:38:40]Write to MH i2c: F0 00 00 F2 02 E3 [20:38:40]Write i2c OK [20:38:40]MH_I2C_Read... [20:38:40]Read from MH i2c: F0 [20:38:40]MH_I2C_Read... [20:38:40]Read from MH i2c: F0 09 00 [20:38:40]MH_I2C_Read... [20:38:40]Read from MH i2c: F0 09 00 F2 02 00 D1 3E 1C 66 23 5B 8F 65 EF [20:38:40]GetLastDocTimeStamp 1713127018 [20:38:40]current date 1713127121 [20:38:40]FM_GetShiftState [20:38:40]SAM_PROTO_GetShiftState [20:38:40]wFMCommunicate request_size=4 [20:38:40]MH_SAM_APDU [20:38:40]CAPDU: 80 13 01 00 [20:38:40]Write to MH i2c: E2 08 00 F3 02 80 13 01 00 00 00 00 00 72 [20:38:40]Write i2c OK [20:38:40]MH_I2C_Read... [20:38:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:38:40]Read from MH i2c: E2 [20:38:40]MH_I2C_Read... [20:38:40]Read from MH i2c: E2 0E 00 [20:38:40]MH_I2C_Read... [20:38:40]Read from MH i2c: E2 0E 00 F3 02 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 1E [20:38:40]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [20:38:40]wFMCommunicate OK [20:38:40]SAM_PROTO_GetShiftState done [20:38:40]FM_GetShiftState done [20:38:40]opened in 1713053951 [20:38:40]opened+sec_in_day 1713140351 [20:38:40]quantity*price = 100039 [20:38:40]sum+1 = 100041 [20:38:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.40 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 0.00 Безнал.: 1000.40 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 251 14.04.2024 20:38 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29341 ФПД: 108229652685826 1/tax-web-control/client/api/v1/ticket?date=20240414T203841&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29341&fm=108229652685826&tin=02508201610067®Number=0000138879044617&sum=100040 [20:38:41]StoreToDocumentArchive [20:38:41]shift 116 fd 29341 [20:38:41]save to /storage/0116/doc_00029341 [20:38:41]save last doc name /storage/0116/doc_00029341 to /storage/kkm_last_doc_name [20:38:41]save OK [20:38:41]Clear old archive folders... [20:38:41]ProcessDocumentItem done err = 0, tmpTLVsize=252 [20:38:41]tlvbuf is 00279100 [20:38:41]SAM_PROTO_ClearQueue [20:38:41]wFMCommunicate request_size=4 [20:38:41]MH_SAM_APDU [20:38:41]CAPDU: 80 09 00 00 [20:38:41]Write to MH i2c: E2 08 00 00 03 80 09 00 00 00 00 00 00 75 [20:38:41]Write i2c OK [20:38:41]MH_I2C_Read... [20:38:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:38:41]Read from MH i2c: E2 [20:38:41]MH_I2C_Read... [20:38:41]Read from MH i2c: E2 03 00 [20:38:41]MH_I2C_Read... [20:38:41]Read from MH i2c: E2 03 00 00 03 00 90 00 77 [20:38:41]RAPDU: 90 00 [20:38:41]wFMCommunicate OK [20:38:41]SAM_PROTO_ClearQueue done [20:38:41]KKMCreateOFDPacket [20:38:41]OFDProtocolAddRootSTLVToBuf [20:38:41]FM_MakeSignedData [20:38:41]FM_MakeSignedData [20:38:41]SAM_PROTO_SignData [20:38:41]wFMCommunicate request_size=4 [20:38:41]MH_SAM_APDU [20:38:41]CAPDU: 80 0D 01 02 [20:38:41]Write to MH i2c: E2 08 00 01 03 80 0D 01 02 00 00 00 00 7D [20:38:41]Write i2c OK [20:38:41]MH_I2C_Read... [20:38:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:38:41]Read from MH i2c: E2 [20:38:41]MH_I2C_Read... [20:38:41]Read from MH i2c: E2 03 00 [20:38:41]MH_I2C_Read... [20:38:41]Read from MH i2c: E2 03 00 01 03 00 90 00 78 [20:38:41]RAPDU: 90 00 [20:38:41]wFMCommunicate OK [20:38:41]wFMCommunicate request_size=255 [20:38:41]MH_SAM_APDU [20:38:41]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 FB 00 00 00 F4 03 04 00 D1 3E 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9D 72 00 00 35 04 06 00 [20:38:41]Write to MH i2c: E2 02 01 02 03 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 FB 00 00 00 F4 03 04 00 D1 3E 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9D 72 00 00 35 04 06 00 00 00 19 [20:38:41]Write i2c OK [20:38:41]MH_I2C_Read... [20:38:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:38:42]Read from MH i2c: E2 [20:38:42]MH_I2C_Read... [20:38:42]Read from MH i2c: E2 03 00 [20:38:42]MH_I2C_Read... [20:38:42]Read from MH i2c: E2 03 00 02 03 00 90 00 79 [20:38:42]RAPDU: 90 00 [20:38:42]wFMCommunicate OK [20:38:42]wFMCommunicate request_size=11 [20:38:42]MH_SAM_APDU [20:38:42]CAPDU: 80 0D 02 02 06 62 6F 2E 00 A4 02 [20:38:42]Write to MH i2c: E2 0E 00 03 03 80 0D 02 02 06 00 62 6F 2E 00 A4 02 00 00 31 [20:38:42]Write i2c OK [20:38:42]MH_I2C_Read... [20:38:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:38:42]Read from MH i2c: E2 [20:38:42]MH_I2C_Read... [20:38:42]Read from MH i2c: E2 03 00 [20:38:42]MH_I2C_Read... [20:38:42]Read from MH i2c: E2 03 00 03 03 00 90 00 7A [20:38:42]RAPDU: 90 00 [20:38:42]wFMCommunicate OK [20:38:42]wFMCommunicate request_size=4 [20:38:42]MH_SAM_APDU [20:38:42]CAPDU: 80 0D 03 02 [20:38:42]Write to MH i2c: E2 08 00 04 03 80 0D 03 02 00 00 00 00 82 [20:38:42]Write i2c OK [20:38:42]MH_I2C_Read... [20:38:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:38:42]Read from MH i2c: E2 [20:38:42]MH_I2C_Read... [20:38:42]Read from MH i2c: E2 0B 00 [20:38:42]MH_I2C_Read... [20:38:42]Read from MH i2c: E2 0B 00 04 03 00 2A 72 6B 63 E7 16 34 7D 90 00 9B [20:38:42]RAPDU: 2A 72 6B 63 E7 16 34 7D 90 00 [20:38:42]wFMCommunicate OK [20:38:42]SAM_PROTO_SignData done [20:38:42]FM_MakeSignedData done [20:38:42]CreateOFDProtocolMessage [20:38:42]wFMCommunicate request_size=4 [20:38:42]MH_SAM_APDU [20:38:42]CAPDU: 80 11 00 00 [20:38:42]Write to MH i2c: E2 08 00 05 03 80 11 00 00 00 00 00 00 82 [20:38:42]Write i2c OK [20:38:42]MH_I2C_Read... [20:38:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:38:42]Read from MH i2c: E2 [20:38:42]MH_I2C_Read... [20:38:42]Read from MH i2c: E2 17 00 [20:38:42]MH_I2C_Read... [20:38:42]Read from MH i2c: E2 17 00 05 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D1 [20:38:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:38:42]wFMCommunicate OK [20:38:42]CreateOFDProtocolMessage done [20:38:42]OFDSenderStorePacket 29341 [20:38:42]StoreOFDPacket docnum=29341 [20:38:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 77 49 08 01 EB 1A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 FB 00 00 00 F4 03 04 00 D1 3E 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9D 72 00 00 35 04 06 00 62 6F 2E 00 A4 02 2A 72 6B 63 E7 16 34 7D [20:38:42]CheckFolder [20:38:42]dirname=/storage/ofd_packets [20:38:42]CheckFolder done [20:38:42]ProducePacketName [20:38:42]name=ofd_packets/00029341 [20:38:42]NVStorageSaveData ofd_packets/00029341 [20:38:42]File name is /storage/ofd_packets/00029341 [20:38:42]Write 302 bytes [20:38:42]NVStorageSaveData done [20:38:42]OFDSenderStorePacket done [20:38:42]KKMCreateOFDPacket done [20:38:42]NVStorageSaveData kkm_last_timestamp [20:38:42]File name is /storage/kkm_last_timestamp [20:38:42]Write 4 bytes [20:38:42]NVStorageSaveData done [20:38:42]ExternCall_PrintAddStr [20:38:42]wPrintStart [20:38:42]Write to MH i2c: 01 00 00 06 03 09 [20:38:42]Write i2c OK [20:38:42]MH_I2C_Read... [20:38:42]Read from MH i2c: 01 [20:38:42]MH_I2C_Read... [20:38:42]Read from MH i2c: 01 07 00 [20:38:42]MH_I2C_Read... [20:38:42]Read from MH i2c: 01 07 00 06 03 00 00 00 00 00 FF 0F 1E [20:38:42]RasterBufferAndPrint [20:38:42]line Счет N : (1)347737 [20:38:42]line ИНН: 02508201610067 [20:38:42]line Контрольно-Кассовый Чек [20:38:42]line ПРОДАЖА [20:38:42]line ТРК (МРК, ГНК) : 41 [20:38:42]line Товар: 2710124130 [20:38:42]line SUPER-92-К-5 [20:38:42]line 15.320 * 65.30 [20:38:42]line = 1000.40 [20:38:42]line НДС 12% НСП 1% [20:38:42]line > о реализуемом товаре [20:38:42]line ИТОГО: 1000.40 [20:38:42]line НСП 1% : 8.85 [20:38:42]line НДС 12% : 106.24 [20:38:42]line Наличными: 0.00 [20:38:42]line Безнал.: 1000.40 [20:38:42]line Место: АЗС № 108 "Партнер Нефть" [20:38:42]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [20:38:42]line СНО: Общий режим [20:38:42]line Чек 251 14.04.2024 20:38 [20:38:42]line Смена: 116 ФФД: 1.0 [20:38:42]line ЗНМ: 0300000027 [20:38:42]line РНМ: 0000138879044617 [20:38:42]line Версия ККМ: 001 [20:38:42]line Платежная система: О! деньги [20:38:42]line ФМ: 0000000000963154 [20:38:42]line ФД: 29341 [20:38:42]line ФПД: 108229652685826 [20:38:42]line 1/tax-web-control/client/api/v1/ticket?date=20240414T203841&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29341&fm=108229652685826&tin=02508201610067®Number=0000138879044617&sum=100040 [20:38:42]OFD Sender: Processing packet 29341 [packets to send 8, broken 7] [20:38:42]ProducePacketName [20:38:42]name=ofd_packets/00029341 [20:38:42]OFD Sender: To server: pG, [20:38:42]CommunicateWithHost lk.salyk.kg:30040 [20:38:42]ConnectInit lk.salyk.kg [20:38:42]written 0, free lines is 4095 [20:38:42]Connected sock=10 [20:38:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 77 49 08 01 EB 1A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 FB 00 00 00 F4 03 04 00 D1 3E 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9D 72 00 00 35 04 06 00 62 6F 2E 00 A4 02 2A 72 6B 63 E7 16 34 7D [20:38:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 68 A1 47 00 A7 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 39 36 33 31 35 34 10 04 04 00 9D 72 00 00 F4 03 04 00 74 E9 1B 66 B6 04 01 00 00 63 5C 0F C4 4D 12 C6 20 [20:38:42]CommunicateWithHost err = 0 [20:38:42]CheckOFDResponse [20:38:42]1017 (14) - 77093643461234 [20:38:42]1041 (16) - 0000000000963154 [20:38:42]1040 (4) - 29341 [20:38:42]1012 (4) - 14.04.2024 14:34 [20:38:42]1206 (1) - 0 [20:38:42]OFD Sender: Remove packet 29341 [20:38:42]ProducePacketName [20:38:42]name=ofd_packets/00029341 [20:38:42]NVStorageDeleteData [20:38:42]Write to MH i2c: 01 00 00 2F 03 32 [20:38:42]Write i2c OK [20:38:42]MH_I2C_Read... [20:38:42]Read from MH i2c: 01 [20:38:42]MH_I2C_Read... [20:38:42]Read from MH i2c: 01 07 00 [20:38:42]MH_I2C_Read... [20:38:42]Read from MH i2c: 01 07 00 2F 03 00 00 00 00 00 E0 0C 25 [20:38:42]RasterBufferAndPrint [20:38:42]line [20:38:42]line [20:38:42]line [20:38:42]line [20:38:42]line [20:38:42]written 0, free lines is 3302 [20:38:42]MH_Cut [20:38:42]Write to MH i2c: D1 01 00 36 03 01 0B [20:38:42]Write i2c OK [20:38:42]MH_I2C_Read... [20:38:42]Read from MH i2c: D1 [20:38:42]MH_I2C_Read... [20:38:42]Read from MH i2c: D1 01 00 [20:38:42]MH_I2C_Read... [20:38:42]Read from MH i2c: D1 01 00 36 03 00 0A [20:38:42]Write to MH i2c: 01 00 00 37 03 3A [20:38:42]Write i2c OK [20:38:42]MH_I2C_Read... [20:38:43]OFD Sender: No OFD packet to send [20:38:43]*** Cut start [20:38:43]*** Partial cut [20:38:43]*** CUTSNS_PIN = 1 [20:38:43]*** CUTSNS_PIN = 0 [20:38:44]*** Brake cut motor [20:38:44]Read from MH i2c: 01 [20:38:44]MH_I2C_Read... [20:38:44]*** Stop cut motor [20:38:44]*** Cut end [20:38:44]Read from MH i2c: 01 07 00 [20:38:44]MH_I2C_Read... [20:38:44]Read from MH i2c: 01 07 00 37 03 00 00 00 00 00 FF 0F 4F [20:38:44]process_action close_receipt done [20:38:44]requested_data is exist [20:38:44]produce_requested_data [20:38:44]requested_item fm.sn is exist - process it [20:38:44]wFMCommunicate request_size=4 [20:38:44]MH_SAM_APDU [20:38:44]CAPDU: 80 11 00 00 [20:38:44]Write to MH i2c: E2 08 00 38 03 80 11 00 00 00 00 00 00 B5 [20:38:44]Write i2c OK [20:38:44]MH_I2C_Read... [20:38:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:38:44]Read from MH i2c: E2 [20:38:44]MH_I2C_Read... [20:38:44]Read from MH i2c: E2 17 00 [20:38:44]MH_I2C_Read... [20:38:44]Read from MH i2c: E2 17 00 38 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 04 [20:38:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:38:44]wFMCommunicate OK [20:38:44]requested_item fd.num is exist - process it [20:38:44]SAM_PROTO_GetFieldsCounters [20:38:44]wFMCommunicate request_size=4 [20:38:44]MH_SAM_APDU [20:38:44]CAPDU: 80 13 00 00 [20:38:44]Write to MH i2c: E2 08 00 39 03 80 13 00 00 00 00 00 00 B8 [20:38:44]Write i2c OK [20:38:44]MH_I2C_Read... [20:38:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:38:44]Read from MH i2c: E2 [20:38:44]MH_I2C_Read... [20:38:44]Read from MH i2c: E2 62 00 [20:38:44]MH_I2C_Read... [20:38:44]Read from MH i2c: E2 62 00 39 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 9D 72 00 00 0E 04 04 00 74 00 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 6A [20:38:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 9D 72 00 00 0E 04 04 00 74 00 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 [20:38:44]wFMCommunicate OK [20:38:44]SAM_PROTO_GetFieldsCounters done [20:38:44]requested_item shift.num is exist - process it [20:38:44]requested_item shift.opened is exist - process it [20:38:44]req_shift_opened [20:38:44]FM_GetShiftState [20:38:44]SAM_PROTO_GetShiftState [20:38:44]wFMCommunicate request_size=4 [20:38:44]MH_SAM_APDU [20:38:44]CAPDU: 80 13 01 00 [20:38:44]Write to MH i2c: E2 08 00 3A 03 80 13 01 00 00 00 00 00 BA [20:38:44]Write i2c OK [20:38:44]MH_I2C_Read... [20:38:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:38:44]Read from MH i2c: E2 [20:38:44]MH_I2C_Read... [20:38:44]Read from MH i2c: E2 0E 00 [20:38:44]MH_I2C_Read... [20:38:44]Read from MH i2c: E2 0E 00 3A 03 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 66 [20:38:44]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [20:38:44]wFMCommunicate OK [20:38:44]SAM_PROTO_GetShiftState done [20:38:44]FM_GetShiftState done [20:38:44]req_shift_opened done [20:38:44]requested_item shift.open_date is exist - process it [20:38:44]req_shift_open_date [20:38:44]req_shift_open_date done [20:38:44]produce_requested_data done [20:38:44]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29341,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [20:38:44]process_action_free close_receipt [20:38:44]json_value_free [20:38:44]json_value_free done [20:38:44]process_json_proto returns [20:38:44]Send response to host [20:38:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29341,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [20:38:44]free response buf [20:38:44]execute_script done [20:38:44]execute_script returns [20:38:44]free content buf [20:38:44]Sock 8.Close socket [20:38:44]Sock 8.Thread stoped [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:00]accept exits with 9 [20:39:00]New connection [20:39:00]New thread 3067112804 created [20:39:00]Thread 3066969444 joined [20:39:00]Waiting for new connection... [20:39:00] Sock 9.Parse request [20:39:00]Sock 9.Check first char [20:39:00]Sock 9.First char is OK [20:39:00]request: POST /json_proto HTTP/1.0 [20:39:00]Method: POST [20:39:00]URL: /json_proto [20:39:00]Method is POST - this is cgi request [20:39:00]url: /json_proto [20:39:00]query_string will be loaded in cgi processing [20:39:00]execute_cgi json_proto POST (null) [20:39:00]execute_cgi path=json_proto method=POST [20:39:00]POST find Content-Length [20:39:00]Host: 172.17.33.3:8080 [20:39:00]Content-Length: 685 [20:39:00]Content-Type: application/json [20:39:00] [20:39:00]POST finish read [20:39:00]Found Content-Length = 685 [20:39:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347738", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 47.120, "sum" : 1550.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1550.00, "total" : 1550.00, "payments": [ { "type": 0, "sum" : 1550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:39:00]execute_script... [20:39: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)347738", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 47.120, "sum" : 1550.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1550.00, "total" : 1550.00, "payments": [ { "type": 0, "sum" : 1550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:39:00]POST & json_proto [20:39:00]process_json_proto [20:39:00]json parsed OK: [20:39:00]protocol is kg_v1.0 [20:39:00]action value=close_receipt [20:39:00]process_action close_receipt [20:39:00]cmd_close_receipt [20:39:00]MH_GetDate [20:39:00]Write to MH i2c: F0 00 00 3B 03 2D [20:39:00]Write i2c OK [20:39:00]MH_I2C_Read... [20:39:00]Read from MH i2c: F0 [20:39:00]MH_I2C_Read... [20:39:00]Read from MH i2c: F0 09 00 [20:39:00]MH_I2C_Read... [20:39:00]Read from MH i2c: F0 09 00 3B 03 00 E5 3E 1C 66 23 5B 8F 65 4D [20:39:00]GetLastDocTimeStamp 1713127121 [20:39:00]current date 1713127141 [20:39:00]FM_GetShiftState [20:39:00]SAM_PROTO_GetShiftState [20:39:00]wFMCommunicate request_size=4 [20:39:00]MH_SAM_APDU [20:39:00]CAPDU: 80 13 01 00 [20:39:00]Write to MH i2c: E2 08 00 3C 03 80 13 01 00 00 00 00 00 BC [20:39:00]Write i2c OK [20:39:00]MH_I2C_Read... [20:39:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:39:00]Read from MH i2c: E2 [20:39:00]MH_I2C_Read... [20:39:00]Read from MH i2c: E2 0E 00 [20:39:00]MH_I2C_Read... [20:39:00]Read from MH i2c: E2 0E 00 3C 03 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 68 [20:39:00]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [20:39:00]wFMCommunicate OK [20:39:00]SAM_PROTO_GetShiftState done [20:39:00]FM_GetShiftState done [20:39:00]opened in 1713053951 [20:39:00]opened+sec_in_day 1713140351 [20:39:00]quantity*price = 155024 [20:39:00]sum+1 = 155026 [20:39:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 1550.00 Внесено: 1550.00 СДАЧА: 0.00 НСП 1% : 13.72 НДС 12% : 164.63 Наличными: 1550.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 252 14.04.2024 20:39 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29342 ФПД: 137178685104875 1/tax-web-control/client/api/v1/ticket?date=20240414T203901&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29342&fm=137178685104875&tin=02508201610067®Number=0000138879044617&sum=155000 [20:39:01]StoreToDocumentArchive [20:39:01]shift 116 fd 29342 [20:39:01]save to /storage/0116/doc_00029342 [20:39:01]save last doc name /storage/0116/doc_00029342 to /storage/kkm_last_doc_name [20:39:01]save OK [20:39:01]Clear old archive folders... [20:39:01]ProcessDocumentItem done err = 0, tmpTLVsize=250 [20:39:01]tlvbuf is 00272210 [20:39:01]SAM_PROTO_ClearQueue [20:39:01]wFMCommunicate request_size=4 [20:39:01]MH_SAM_APDU [20:39:01]CAPDU: 80 09 00 00 [20:39:01]Write to MH i2c: E2 08 00 49 03 80 09 00 00 00 00 00 00 BE [20:39:01]Write i2c OK [20:39:01]MH_I2C_Read... [20:39:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:39:01]Read from MH i2c: E2 [20:39:01]MH_I2C_Read... [20:39:01]Read from MH i2c: E2 03 00 [20:39:01]MH_I2C_Read... [20:39:01]Read from MH i2c: E2 03 00 49 03 00 90 00 C0 [20:39:01]RAPDU: 90 00 [20:39:01]wFMCommunicate OK [20:39:01]SAM_PROTO_ClearQueue done [20:39:01]KKMCreateOFDPacket [20:39:01]OFDProtocolAddRootSTLVToBuf [20:39:01]FM_MakeSignedData [20:39:01]FM_MakeSignedData [20:39:01]SAM_PROTO_SignData [20:39:01]wFMCommunicate request_size=4 [20:39:01]MH_SAM_APDU [20:39:01]CAPDU: 80 0D 01 02 [20:39:01]Write to MH i2c: E2 08 00 4A 03 80 0D 01 02 00 00 00 00 C6 [20:39:01]Write i2c OK [20:39:01]MH_I2C_Read... [20:39:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:39:01]Read from MH i2c: E2 [20:39:01]MH_I2C_Read... [20:39:01]Read from MH i2c: E2 03 00 [20:39:01]MH_I2C_Read... [20:39:01]Read from MH i2c: E2 03 00 4A 03 00 90 00 C1 [20:39:01]RAPDU: 90 00 [20:39:01]wFMCommunicate OK [20:39:01]wFMCommunicate request_size=255 [20:39:01]MH_SAM_APDU [20:39: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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 10 B8 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 91 5D 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 5D 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 40 00 00 00 00 07 04 06 00 78 5D 02 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 E5 3E 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9E 72 00 00 35 04 06 00 7C C3 [20:39:01]Write to MH i2c: E2 02 01 4B 03 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 10 B8 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 91 5D 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 5D 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 40 00 00 00 00 07 04 06 00 78 5D 02 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 E5 3E 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9E 72 00 00 35 04 06 00 7C C3 00 00 3D [20:39:01]Write i2c OK [20:39:01]MH_I2C_Read... [20:39:02]Read from MH i2c: E2 [20:39:02]MH_I2C_Read... [20:39:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:39:02]Read from MH i2c: E2 03 00 [20:39:02]MH_I2C_Read... [20:39:02]Read from MH i2c: E2 03 00 4B 03 00 90 00 C2 [20:39:02]RAPDU: 90 00 [20:39:02]wFMCommunicate OK [20:39:02]wFMCommunicate request_size=9 [20:39:02]MH_SAM_APDU [20:39:02]CAPDU: 80 0D 02 02 04 66 CB E2 EB [20:39:02]Write to MH i2c: E2 0C 00 4C 03 80 0D 02 02 04 00 66 CB E2 EB 00 00 CF [20:39:02]Write i2c OK [20:39:02]MH_I2C_Read... [20:39:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:39:02]Read from MH i2c: E2 [20:39:02]MH_I2C_Read... [20:39:02]Read from MH i2c: E2 03 00 [20:39:02]MH_I2C_Read... [20:39:02]Read from MH i2c: E2 03 00 4C 03 00 90 00 C3 [20:39:02]RAPDU: 90 00 [20:39:02]wFMCommunicate OK [20:39:02]wFMCommunicate request_size=4 [20:39:02]MH_SAM_APDU [20:39:02]CAPDU: 80 0D 03 02 [20:39:02]Write to MH i2c: E2 08 00 4D 03 80 0D 03 02 00 00 00 00 CB [20:39:02]Write i2c OK [20:39:02]MH_I2C_Read... [20:39:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:39:02]Read from MH i2c: E2 [20:39:02]MH_I2C_Read... [20:39:02]Read from MH i2c: E2 0B 00 [20:39:02]MH_I2C_Read... [20:39:02]Read from MH i2c: E2 0B 00 4D 03 00 9D B2 96 75 01 2D BF 6C 90 00 7F [20:39:02]RAPDU: 9D B2 96 75 01 2D BF 6C 90 00 [20:39:02]wFMCommunicate OK [20:39:02]SAM_PROTO_SignData done [20:39:02]FM_MakeSignedData done [20:39:02]CreateOFDProtocolMessage [20:39:02]wFMCommunicate request_size=4 [20:39:02]MH_SAM_APDU [20:39:02]CAPDU: 80 11 00 00 [20:39:02]Write to MH i2c: E2 08 00 4E 03 80 11 00 00 00 00 00 00 CB [20:39:02]Write i2c OK [20:39:02]MH_I2C_Read... [20:39:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:39:02]Read from MH i2c: E2 [20:39:02]MH_I2C_Read... [20:39:02]Read from MH i2c: E2 17 00 [20:39:02]MH_I2C_Read... [20:39:02]Read from MH i2c: E2 17 00 4E 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 1A [20:39:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:39:02]wFMCommunicate OK [20:39:02]CreateOFDProtocolMessage done [20:39:02]OFDSenderStorePacket 29342 [20:39:02]StoreOFDPacket docnum=29342 [20:39:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 F1 A3 06 01 85 25 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 10 B8 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 91 5D 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 5D 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 40 00 00 00 00 07 04 06 00 78 5D 02 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 E5 3E 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9E 72 00 00 35 04 06 00 7C C3 66 CB E2 EB 9D B2 96 75 01 2D BF 6C [20:39:02]CheckFolder [20:39:02]dirname=/storage/ofd_packets [20:39:02]CheckFolder done [20:39:02]ProducePacketName [20:39:02]name=ofd_packets/00029342 [20:39:02]NVStorageSaveData ofd_packets/00029342 [20:39:02]File name is /storage/ofd_packets/00029342 [20:39:02]Write 300 bytes [20:39:02]NVStorageSaveData done [20:39:02]OFDSenderStorePacket done [20:39:02]KKMCreateOFDPacket done [20:39:02]NVStorageSaveData kkm_last_timestamp [20:39:02]File name is /storage/kkm_last_timestamp [20:39:02]Write 4 bytes [20:39:02]NVStorageSaveData done [20:39:02]ExternCall_PrintAddStr [20:39:02]wPrintStart [20:39:02]Write to MH i2c: 01 00 00 4F 03 52 [20:39:02]Write i2c OK [20:39:02]MH_I2C_Read... [20:39:02]Read from MH i2c: 01 [20:39:02]MH_I2C_Read... [20:39:02]Read from MH i2c: 01 07 00 [20:39:02]MH_I2C_Read... [20:39:02]Read from MH i2c: 01 07 00 4F 03 00 00 00 00 00 FF 0F 67 [20:39:02]RasterBufferAndPrint [20:39:02]line Счет N : (1)347738 [20:39:02]line ИНН: 02508201610067 [20:39:02]line Контрольно-Кассовый Чек [20:39:02]line ПРОДАЖА [20:39:02]line ТРК (МРК, ГНК) : 71 [20:39:02]line Товар: 2711129700 [20:39:02]line ГАЗ-К-5 [20:39:02]line 47.120 * 32.90 [20:39:02]line = 1550.25 [20:39:02]line НДС 12% НСП 1% [20:39:02]line > о реализуемом товаре [20:39:02]line ОКРУГЛЕНИЕ: -0.25 [20:39:02]line ИТОГО: 1550.00 [20:39:02]line Внесено: 1550.00 [20:39:02]line СДАЧА: 0.00 [20:39:02]line НСП 1% : 13.72 [20:39:02]line НДС 12% : 164.63 [20:39:02]line Наличными: 1550.00 [20:39:02]line Безнал.: 0.00 [20:39:02]line Место: АЗС № 108 "Партнер Нефть" [20:39:02]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [20:39:02]line СНО: Общий режим [20:39:02]line Чек 252 14.04.2024 20:39 [20:39:02]line Смена: 116 ФФД: 1.0 [20:39:02]line ЗНМ: 0300000027 [20:39:02]line РНМ: 0000138879044617 [20:39:02]line Версия ККМ: 001 [20:39:02]line ФМ: 0000000000963154 [20:39:02]line ФД: 29342 [20:39:02]line ФПД: 137178685104875 [20:39:02]line 1/tax-web-control/client/api/v1/ticket?date=20240414T203901&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29342&fm=137178685104875&tin=02508201610067®Number=0000138879044617&sum=155000 [20:39:02]OFD Sender: Processing packet 29342 [packets to send 8, broken 7] [20:39:02]ProducePacketName [20:39:02]name=ofd_packets/00029342 [20:39:02]OFD Sender: To server: pG, [20:39:02]CommunicateWithHost lk.salyk.kg:30040 [20:39:02]ConnectInit lk.salyk.kg [20:39:02]written 0, free lines is 4095 [20:39:02]Connected sock=10 [20:39:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 F1 A3 06 01 85 25 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 10 B8 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 91 5D 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 5D 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 40 00 00 00 00 07 04 06 00 78 5D 02 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 E5 3E 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9E 72 00 00 35 04 06 00 7C C3 66 CB E2 EB 9D B2 96 75 01 2D BF 6C [20:39:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 BD 99 47 00 9A FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9E 72 00 00 F4 03 04 00 88 E9 1B 66 B6 04 01 00 00 17 9B 4C 8E 25 4E 50 CD [20:39:02]CommunicateWithHost err = 0 [20:39:02]CheckOFDResponse [20:39:02]1017 (14) - 77093643461234 [20:39:02]1041 (16) - 0000000000963154 [20:39:02]1040 (4) - 29342 [20:39:02]1012 (4) - 14.04.2024 14:34 [20:39:02]1206 (1) - 0 [20:39:02]OFD Sender: Remove packet 29342 [20:39:02]ProducePacketName [20:39:02]name=ofd_packets/00029342 [20:39:02]NVStorageDeleteData [20:39:02]Write to MH i2c: 01 00 00 79 03 7C [20:39:02]Write i2c OK [20:39:02]MH_I2C_Read... [20:39:02]Read from MH i2c: 01 [20:39:02]MH_I2C_Read... [20:39:02]Read from MH i2c: 01 07 00 [20:39:02]MH_I2C_Read... [20:39:02]Read from MH i2c: 01 07 00 79 03 00 00 00 00 00 C4 0C 53 [20:39:02]RasterBufferAndPrint [20:39:02]line [20:39:02]line [20:39:02]line [20:39:02]line [20:39:02]line [20:39:02]written 0, free lines is 3273 [20:39:02]MH_Cut [20:39:02]Write to MH i2c: D1 01 00 80 03 01 55 [20:39:02]Write i2c OK [20:39:02]MH_I2C_Read... [20:39:02]Read from MH i2c: D1 [20:39:02]MH_I2C_Read... [20:39:02]Read from MH i2c: D1 01 00 [20:39:02]MH_I2C_Read... [20:39:02]Read from MH i2c: D1 01 00 80 03 00 54 [20:39:02]Write to MH i2c: 01 00 00 81 03 84 [20:39:02]Write i2c OK [20:39:02]MH_I2C_Read... [20:39:03]OFD Sender: No OFD packet to send [20:39:03]*** Cut start [20:39:03]*** Partial cut [20:39:03]*** CUTSNS_PIN = 1 [20:39:03]*** CUTSNS_PIN = 0 [20:39:04]*** Brake cut motor [20:39:04]Read from MH i2c: 01 [20:39:04]MH_I2C_Read... [20:39:04]*** Stop cut motor [20:39:04]*** Cut end [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 81 03 00 00 00 00 00 FF 0F 99 [20:39:04]process_action close_receipt done [20:39:04]requested_data is exist [20:39:04]produce_requested_data [20:39:04]requested_item fm.sn is exist - process it [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 82 03 80 11 00 00 00 00 00 00 FF [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 82 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 4E [20:39:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:39:04]wFMCommunicate OK [20:39:04]requested_item fd.num is exist - process it [20:39:04]SAM_PROTO_GetFieldsCounters [20:39:04]wFMCommunicate request_size=4 [20:39:04]MH_SAM_APDU [20:39:04]CAPDU: 80 13 00 00 [20:39:04]Write to MH i2c: E2 08 00 83 03 80 13 00 00 00 00 00 00 02 [20:39:04]Write i2c OK [20:39:04]MH_I2C_Read... [20:39:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:39:04]Read from MH i2c: E2 [20:39:04]MH_I2C_Read... [20:39:04]Read from MH i2c: E2 62 00 [20:39:04]MH_I2C_Read... [20:39:04]Read from MH i2c: E2 62 00 83 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 9E 72 00 00 0E 04 04 00 74 00 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 B8 [20:39:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 9E 72 00 00 0E 04 04 00 74 00 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 [20:39:04]wFMCommunicate OK [20:39:04]SAM_PROTO_GetFieldsCounters done [20:39:04]requested_item shift.num is exist - process it [20:39:04]requested_item shift.opened is exist - process it [20:39:04]req_shift_opened [20:39:04]FM_GetShiftState [20:39:04]SAM_PROTO_GetShiftState [20:39:04]wFMCommunicate request_size=4 [20:39:04]MH_SAM_APDU [20:39:04]CAPDU: 80 13 01 00 [20:39:04]Write to MH i2c: E2 08 00 84 03 80 13 01 00 00 00 00 00 04 [20:39:04]Write i2c OK [20:39:04]MH_I2C_Read... [20:39:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:39:04]Read from MH i2c: E2 [20:39:04]MH_I2C_Read... [20:39:04]Read from MH i2c: E2 0E 00 [20:39:04]MH_I2C_Read... [20:39:04]Read from MH i2c: E2 0E 00 84 03 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 B0 [20:39:04]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [20:39:04]wFMCommunicate OK [20:39:04]SAM_PROTO_GetShiftState done [20:39:04]FM_GetShiftState done [20:39:04]req_shift_opened done [20:39:04]requested_item shift.open_date is exist - process it [20:39:04]req_shift_open_date [20:39:04]req_shift_open_date done [20:39:04]produce_requested_data done [20:39:04]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29342,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [20:39:04]process_action_free close_receipt [20:39:04]json_value_free [20:39:04]json_value_free done [20:39:04]process_json_proto returns [20:39:04]Send response to host [20:39:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29342,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [20:39:04]free response buf [20:39:04]execute_script done [20:39:04]execute_script returns [20:39:04]free content buf [20:39:04]Sock 9.Close socket [20:39:04]Sock 9.Thread stoped [20:39:08]OFD Sender: No OFD packet to send [20:39:13]OFD Sender: No OFD packet to send [20:39:18]OFD Sender: No OFD packet to send [20:39:23]OFD Sender: No OFD packet to send [20:39:28]OFD Sender: No OFD packet to send [20:39:33]OFD Sender: No OFD packet to send [20:39:38]OFD Sender: No OFD packet to send [20:39:43]OFD Sender: No OFD packet to send [20:39:48]OFD Sender: No OFD packet to send [20:39:53]OFD Sender: No OFD packet to send [20:39:58]OFD Sender: No OFD packet to send [20:40:03]OFD Sender: No OFD packet to send [20:40:08]OFD Sender: No OFD packet to send [20:40:13]OFD Sender: No OFD packet to send [20:40:18]OFD Sender: No OFD packet to send [20:40:23]OFD Sender: No OFD packet to send [20:40:28]OFD Sender: No OFD packet to send [20:40:33]OFD Sender: No OFD packet to send [20:40:38]OFD Sender: No OFD packet to send [20:40:43]OFD Sender: No OFD packet to send [20:40:48]OFD Sender: No OFD packet to send [20:40:53]OFD Sender: No OFD packet to send [20:40:58]OFD Sender: No OFD packet to send [20:41:03]OFD Sender: No OFD packet to send [20:41:08]OFD Sender: No OFD packet to send [20:41:13]OFD Sender: No OFD packet to send [20:41:18]OFD Sender: No OFD packet to send [20:41:23]OFD Sender: No OFD packet to send [20:41:28]OFD Sender: No OFD packet to send [20:41:33]OFD Sender: No OFD packet to send [20:41:38]OFD Sender: No OFD packet to send [20:41:43]OFD Sender: No OFD packet to send [20:41:48]OFD Sender: No OFD packet to send [20:41:53]OFD Sender: No OFD packet to send [20:41:58]OFD Sender: No OFD packet to send [20:42:03]OFD Sender: No OFD packet to send [20:42:08]OFD Sender: No OFD packet to send [20:42:13]OFD Sender: No OFD packet to send [20:42:18]OFD Sender: No OFD packet to send [20:42:23]OFD Sender: No OFD packet to send [20:42:28]OFD Sender: No OFD packet to send [20:42:33]OFD Sender: No OFD packet to send [20:42:38]OFD Sender: No OFD packet to send [20:42:43]OFD Sender: No OFD packet to send [20:42:48]OFD Sender: No OFD packet to send [20:42:53]OFD Sender: No OFD packet to send [20:42:58]OFD Sender: No OFD packet to send [20:43:03]OFD Sender: No OFD packet to send [20:43:08]OFD Sender: No OFD packet to send [20:43:13]OFD Sender: No OFD packet to send [20:43:18]OFD Sender: No OFD packet to send [20:43:23]OFD Sender: No OFD packet to send [20:43:28]OFD Sender: No OFD packet to send [20:43:33]OFD Sender: No OFD packet to send [20:43:38]OFD Sender: No OFD packet to send [20:43:43]OFD Sender: No OFD packet to send [20:43:48]OFD Sender: No OFD packet to send [20:43:53]OFD Sender: No OFD packet to send [20:43:58]OFD Sender: No OFD packet to send [20:44:03]OFD Sender: No OFD packet to send [20:44:08]OFD Sender: No OFD packet to send [20:44:13]OFD Sender: No OFD packet to send [20:44:18]OFD Sender: No OFD packet to send [20:44:23]OFD Sender: No OFD packet to send [20:44:28]OFD Sender: No OFD packet to send [20:44:33]OFD Sender: No OFD packet to send [20:44:38]OFD Sender: No OFD packet to send [20:44:43]OFD Sender: No OFD packet to send [20:44:48]OFD Sender: No OFD packet to send [20:44:53]OFD Sender: No OFD packet to send [20:44:58]OFD Sender: No OFD packet to send [20:45:03]OFD Sender: No OFD packet to send [20:45:08]OFD Sender: No OFD packet to send [20:45:13]OFD Sender: No OFD packet to send [20:45:18]OFD Sender: No OFD packet to send [20:45:23]OFD Sender: No OFD packet to send [20:45:28]OFD Sender: No OFD packet to send [20:45:33]OFD Sender: No OFD packet to send [20:45:38]OFD Sender: No OFD packet to send [20:45:43]OFD Sender: No OFD packet to send [20:45:48]OFD Sender: No OFD packet to send [20:45:53]OFD Sender: No OFD packet to send [20:45:58]OFD Sender: No OFD packet to send [20:46:03]OFD Sender: No OFD packet to send [20:46:06]accept exits with 8 [20:46:06]New connection [20:46:06]New thread 3066969444 created [20:46:06]Thread 3067112804 joined [20:46:06]Waiting for new connection... [20:46:06] Sock 8.Parse request [20:46:06]Sock 8.Check first char [20:46:06]Sock 8.First char is OK [20:46:06]request: POST /json_proto HTTP/1.0 [20:46:06]Method: POST [20:46:06]URL: /json_proto [20:46:06]Method is POST - this is cgi request [20:46:06]url: /json_proto [20:46:06]query_string will be loaded in cgi processing [20:46:06]execute_cgi json_proto POST (null) [20:46:06]execute_cgi path=json_proto method=POST [20:46:06]POST find Content-Length [20:46:06]Host: 172.17.33.3:8080 [20:46:06]Content-Length: 685 [20:46:06]Content-Type: application/json [20:46:06] [20:46:06]POST finish read [20:46:06]Found Content-Length = 685 [20:46:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347740", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 81.870, "sum" : 2693.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 2693.00, "payments": [ { "type": 0, "sum" : 2693.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:46:06]execute_script... [20:46: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)347740", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 81.870, "sum" : 2693.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 2693.00, "payments": [ { "type": 0, "sum" : 2693.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:46:06]POST & json_proto [20:46:06]process_json_proto [20:46:06]json parsed OK: [20:46:06]protocol is kg_v1.0 [20:46:06]action value=close_receipt [20:46:06]process_action close_receipt [20:46:06]cmd_close_receipt [20:46:06]MH_GetDate [20:46:06]Write to MH i2c: F0 00 00 85 03 77 [20:46:06]Write i2c OK [20:46:06]MH_I2C_Read... [20:46:06]Read from MH i2c: F0 [20:46:06]MH_I2C_Read... [20:46:06]Read from MH i2c: F0 09 00 [20:46:06]MH_I2C_Read... [20:46:06]Read from MH i2c: F0 09 00 85 03 00 8F 40 1C 66 23 5B 8F 65 43 [20:46:06]GetLastDocTimeStamp 1713127141 [20:46:06]current date 1713127567 [20:46:06]FM_GetShiftState [20:46:06]SAM_PROTO_GetShiftState [20:46:06]wFMCommunicate request_size=4 [20:46:06]MH_SAM_APDU [20:46:06]CAPDU: 80 13 01 00 [20:46:06]Write to MH i2c: E2 08 00 86 03 80 13 01 00 00 00 00 00 06 [20:46:06]Write i2c OK [20:46:06]MH_I2C_Read... [20:46:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:46:06]Read from MH i2c: E2 [20:46:06]MH_I2C_Read... [20:46:06]Read from MH i2c: E2 0E 00 [20:46:06]MH_I2C_Read... [20:46:06]Read from MH i2c: E2 0E 00 86 03 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 B2 [20:46:06]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [20:46:06]wFMCommunicate OK [20:46:06]SAM_PROTO_GetShiftState done [20:46:06]FM_GetShiftState done [20:46:06]opened in 1713053951 [20:46:06]opened+sec_in_day 1713140351 [20:46:06]quantity*price = 269352 [20:46:06]sum+1 = 269353 [20:46:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 2693.00 Внесено: 3000.00 СДАЧА: 307.00 НСП 1% : 23.84 НДС 12% : 286.04 Наличными: 2693.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 253 14.04.2024 20:46 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29343 ФПД: 51978063648621 1/tax-web-control/client/api/v1/ticket?date=20240414T204607&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29343&fm=51978063648621&tin=02508201610067®Number=0000138879044617&sum=269300 [20:46:07]StoreToDocumentArchive [20:46:07]shift 116 fd 29343 [20:46:07]save to /storage/0116/doc_00029343 [20:46:07]save last doc name /storage/0116/doc_00029343 to /storage/kkm_last_doc_name [20:46:07]save OK [20:46:07]Clear old archive folders... [20:46:07]ProcessDocumentItem done err = 0, tmpTLVsize=250 [20:46:07]tlvbuf is 0025D7B0 [20:46:07]SAM_PROTO_ClearQueue [20:46:07]wFMCommunicate request_size=4 [20:46:07]MH_SAM_APDU [20:46:07]CAPDU: 80 09 00 00 [20:46:07]Write to MH i2c: E2 08 00 93 03 80 09 00 00 00 00 00 00 08 [20:46:07]Write i2c OK [20:46:07]MH_I2C_Read... [20:46:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:46:07]Read from MH i2c: E2 [20:46:07]MH_I2C_Read... [20:46:07]Read from MH i2c: E2 03 00 [20:46:07]MH_I2C_Read... [20:46:07]Read from MH i2c: E2 03 00 93 03 00 90 00 0A [20:46:07]RAPDU: 90 00 [20:46:07]wFMCommunicate OK [20:46:07]SAM_PROTO_ClearQueue done [20:46:07]KKMCreateOFDPacket [20:46:07]OFDProtocolAddRootSTLVToBuf [20:46:07]FM_MakeSignedData [20:46:07]FM_MakeSignedData [20:46:07]SAM_PROTO_SignData [20:46:07]wFMCommunicate request_size=4 [20:46:07]MH_SAM_APDU [20:46:07]CAPDU: 80 0D 01 02 [20:46:07]Write to MH i2c: E2 08 00 94 03 80 0D 01 02 00 00 00 00 10 [20:46:07]Write i2c OK [20:46:07]MH_I2C_Read... [20:46:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:46:07]Read from MH i2c: E2 [20:46:07]MH_I2C_Read... [20:46:07]Read from MH i2c: E2 03 00 [20:46:07]MH_I2C_Read... [20:46:07]Read from MH i2c: E2 03 00 94 03 00 90 00 0B [20:46:07]RAPDU: 90 00 [20:46:07]wFMCommunicate OK [20:46:07]wFMCommunicate request_size=255 [20:46:07]MH_SAM_APDU [20:46:07]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 CE 3F 01 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 28 1C 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 1B 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 6F 00 00 00 00 07 04 06 00 F4 1B 04 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 8F 40 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9F 72 00 00 35 04 06 00 2F 46 [20:46:07]Write to MH i2c: E2 02 01 95 03 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 CE 3F 01 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 28 1C 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 1B 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 6F 00 00 00 00 07 04 06 00 F4 1B 04 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 8F 40 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9F 72 00 00 35 04 06 00 2F 46 00 00 15 [20:46:07]Write i2c OK [20:46:07]MH_I2C_Read... [20:46:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:46:07]Read from MH i2c: E2 [20:46:07]MH_I2C_Read... [20:46:07]Read from MH i2c: E2 03 00 [20:46:07]MH_I2C_Read... [20:46:07]Read from MH i2c: E2 03 00 95 03 00 90 00 0C [20:46:07]RAPDU: 90 00 [20:46:07]wFMCommunicate OK [20:46:07]wFMCommunicate request_size=9 [20:46:07]MH_SAM_APDU [20:46:07]CAPDU: 80 0D 02 02 04 16 05 17 6D [20:46:07]Write to MH i2c: E2 0C 00 96 03 80 0D 02 02 04 00 16 05 17 6D 00 00 BA [20:46:07]Write i2c OK [20:46:07]MH_I2C_Read... [20:46:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:46:07]Read from MH i2c: E2 [20:46:07]MH_I2C_Read... [20:46:07]Read from MH i2c: E2 03 00 [20:46:07]MH_I2C_Read... [20:46:07]Read from MH i2c: E2 03 00 96 03 00 90 00 0D [20:46:07]RAPDU: 90 00 [20:46:07]wFMCommunicate OK [20:46:07]wFMCommunicate request_size=4 [20:46:07]MH_SAM_APDU [20:46:07]CAPDU: 80 0D 03 02 [20:46:07]Write to MH i2c: E2 08 00 97 03 80 0D 03 02 00 00 00 00 15 [20:46:07]Write i2c OK [20:46:07]MH_I2C_Read... [20:46:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:46:07]Read from MH i2c: E2 [20:46:07]MH_I2C_Read... [20:46:07]Read from MH i2c: E2 0B 00 [20:46:07]MH_I2C_Read... [20:46:07]Read from MH i2c: E2 0B 00 97 03 00 45 88 F0 D1 41 65 92 12 90 00 EE [20:46:07]RAPDU: 45 88 F0 D1 41 65 92 12 90 00 [20:46:07]wFMCommunicate OK [20:46:07]SAM_PROTO_SignData done [20:46:07]FM_MakeSignedData done [20:46:07]CreateOFDProtocolMessage [20:46:07]wFMCommunicate request_size=4 [20:46:07]MH_SAM_APDU [20:46:07]CAPDU: 80 11 00 00 [20:46:07]Write to MH i2c: E2 08 00 98 03 80 11 00 00 00 00 00 00 15 [20:46:07]Write i2c OK [20:46:07]MH_I2C_Read... [20:46:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:46:07]Read from MH i2c: E2 [20:46:07]MH_I2C_Read... [20:46:07]Read from MH i2c: E2 17 00 [20:46:07]MH_I2C_Read... [20:46:07]Read from MH i2c: E2 17 00 98 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 64 [20:46:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:46:07]wFMCommunicate OK [20:46:07]CreateOFDProtocolMessage done [20:46:07]OFDSenderStorePacket 29343 [20:46:07]StoreOFDPacket docnum=29343 [20:46:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 0C 9D 06 01 6E B2 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 CE 3F 01 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 28 1C 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 1B 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 6F 00 00 00 00 07 04 06 00 F4 1B 04 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 8F 40 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9F 72 00 00 35 04 06 00 2F 46 16 05 17 6D 45 88 F0 D1 41 65 92 12 [20:46:07]CheckFolder [20:46:07]dirname=/storage/ofd_packets [20:46:07]CheckFolder done [20:46:07]ProducePacketName [20:46:07]name=ofd_packets/00029343 [20:46:07]NVStorageSaveData ofd_packets/00029343 [20:46:07]File name is /storage/ofd_packets/00029343 [20:46:07]Write 300 bytes [20:46:07]NVStorageSaveData done [20:46:07]OFDSenderStorePacket done [20:46:07]KKMCreateOFDPacket done [20:46:07]NVStorageSaveData kkm_last_timestamp [20:46:07]File name is /storage/kkm_last_timestamp [20:46:07]Write 4 bytes [20:46:07]NVStorageSaveData done [20:46:07]ExternCall_PrintAddStr [20:46:07]wPrintStart [20:46:07]Write to MH i2c: 01 00 00 99 03 9C [20:46:07]Write i2c OK [20:46:07]MH_I2C_Read... [20:46:07]Read from MH i2c: 01 [20:46:07]MH_I2C_Read... [20:46:07]Read from MH i2c: 01 07 00 [20:46:07]MH_I2C_Read... [20:46:07]Read from MH i2c: 01 07 00 99 03 00 00 00 00 00 FF 0F B1 [20:46:07]RasterBufferAndPrint [20:46:07]line Счет N : (1)347740 [20:46:07]line ИНН: 02508201610067 [20:46:07]line Контрольно-Кассовый Чек [20:46:07]line ПРОДАЖА [20:46:07]line ТРК (МРК, ГНК) : 71 [20:46:07]line Товар: 2711129700 [20:46:07]line ГАЗ-К-5 [20:46:07]line 81.870 * 32.90 [20:46:07]line = 2693.52 [20:46:07]line НДС 12% НСП 1% [20:46:07]line > о реализуемом товаре [20:46:07]line ОКРУГЛЕНИЕ: -0.52 [20:46:07]line ИТОГО: 2693.00 [20:46:07]line Внесено: 3000.00 [20:46:07]line СДАЧА: 307.00 [20:46:07]line НСП 1% : 23.84 [20:46:07]line НДС 12% : 286.04 [20:46:07]line Наличными: 2693.00 [20:46:07]line Безнал.: 0.00 [20:46:07]line Место: АЗС № 108 "Партнер Нефть" [20:46:07]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [20:46:07]line СНО: Общий режим [20:46:07]line Чек 253 14.04.2024 20:46 [20:46:07]line Смена: 116 ФФД: 1.0 [20:46:07]line ЗНМ: 0300000027 [20:46:07]line РНМ: 0000138879044617 [20:46:07]line Версия ККМ: 001 [20:46:07]line ФМ: 0000000000963154 [20:46:07]line ФД: 29343 [20:46:07]line ФПД: 51978063648621 [20:46:07]line 1/tax-web-control/client/api/v1/ticket?date=20240414T204607&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29343&fm=51978063648621&tin=02508201610067®Number=0000138879044617&sum=269300 [20:46:08]OFD Sender: Processing packet 29343 [packets to send 8, broken 7] [20:46:08]ProducePacketName [20:46:08]name=ofd_packets/00029343 [20:46:08]OFD Sender: To server: pG, [20:46:08]CommunicateWithHost lk.salyk.kg:30040 [20:46:08]ConnectInit lk.salyk.kg [20:46:08]written 0, free lines is 4095 [20:46:08]Connected sock=10 [20:46:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 0C 9D 06 01 6E B2 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 CE 3F 01 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 28 1C 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 1B 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 6F 00 00 00 00 07 04 06 00 F4 1B 04 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 8F 40 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9F 72 00 00 35 04 06 00 2F 46 16 05 17 6D 45 88 F0 D1 41 65 92 12 [20:46:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 97 92 47 00 69 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9F 72 00 00 F4 03 04 00 32 EB 1B 66 B6 04 01 00 00 B1 72 65 4E BD 7C C6 F4 [20:46:08]CommunicateWithHost err = 0 [20:46:08]CheckOFDResponse [20:46:08]1017 (14) - 77093643461234 [20:46:08]1041 (16) - 0000000000963154 [20:46:08]1040 (4) - 29343 [20:46:08]1012 (4) - 14.04.2024 14:41 [20:46:08]1206 (1) - 0 [20:46:08]OFD Sender: Remove packet 29343 [20:46:08]ProducePacketName [20:46:08]name=ofd_packets/00029343 [20:46:08]NVStorageDeleteData [20:46:08]Write to MH i2c: 01 00 00 C3 03 C6 [20:46:08]Write i2c OK [20:46:08]MH_I2C_Read... [20:46:08]Read from MH i2c: 01 [20:46:08]MH_I2C_Read... [20:46:08]Read from MH i2c: 01 07 00 [20:46:08]MH_I2C_Read... [20:46:08]Read from MH i2c: 01 07 00 C3 03 00 00 00 00 00 E0 0C B9 [20:46:08]RasterBufferAndPrint [20:46:08]line [20:46:08]line [20:46:08]line [20:46:08]line [20:46:08]line [20:46:08]written 0, free lines is 3301 [20:46:08]MH_Cut [20:46:08]Write to MH i2c: D1 01 00 CA 03 01 9F [20:46:08]Write i2c OK [20:46:08]MH_I2C_Read... [20:46:08]Read from MH i2c: D1 [20:46:08]MH_I2C_Read... [20:46:08]Read from MH i2c: D1 01 00 [20:46:08]MH_I2C_Read... [20:46:08]Read from MH i2c: D1 01 00 CA 03 00 9E [20:46:08]Write to MH i2c: 01 00 00 CB 03 CE [20:46:08]Write i2c OK [20:46:08]MH_I2C_Read... [20:46:09]OFD Sender: No OFD packet to send [20:46:09]*** Cut start [20:46:09]*** Partial cut [20:46:09]*** CUTSNS_PIN = 1 [20:46:09]*** CUTSNS_PIN = 0 [20:46:09]*** Brake cut motor [20:46:10]Read from MH i2c: 01 [20:46:10]MH_I2C_Read... [20:46:10]*** Stop cut motor [20:46:10]*** Cut end [20:46:10]Read from MH i2c: 01 07 00 [20:46:10]MH_I2C_Read... [20:46:10]Read from MH i2c: 01 07 00 CB 03 00 00 00 00 00 FF 0F E3 [20:46:10]process_action close_receipt done [20:46:10]requested_data is exist [20:46:10]produce_requested_data [20:46:10]requested_item fm.sn is exist - process it [20:46:10]wFMCommunicate request_size=4 [20:46:10]MH_SAM_APDU [20:46:10]CAPDU: 80 11 00 00 [20:46:10]Write to MH i2c: E2 08 00 CC 03 80 11 00 00 00 00 00 00 49 [20:46:10]Write i2c OK [20:46:10]MH_I2C_Read... [20:46:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:46:10]Read from MH i2c: E2 [20:46:10]MH_I2C_Read... [20:46:10]Read from MH i2c: E2 17 00 [20:46:10]MH_I2C_Read... [20:46:10]Read from MH i2c: E2 17 00 CC 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 98 [20:46:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:46:10]wFMCommunicate OK [20:46:10]requested_item fd.num is exist - process it [20:46:10]SAM_PROTO_GetFieldsCounters [20:46:10]wFMCommunicate request_size=4 [20:46:10]MH_SAM_APDU [20:46:10]CAPDU: 80 13 00 00 [20:46:10]Write to MH i2c: E2 08 00 CD 03 80 13 00 00 00 00 00 00 4C [20:46:10]Write i2c OK [20:46:10]MH_I2C_Read... [20:46:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:46:10]Read from MH i2c: E2 [20:46:10]MH_I2C_Read... [20:46:10]Read from MH i2c: E2 62 00 [20:46:10]MH_I2C_Read... [20:46:10]Read from MH i2c: E2 62 00 CD 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 9F 72 00 00 0E 04 04 00 74 00 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 06 [20:46:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 9F 72 00 00 0E 04 04 00 74 00 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 [20:46:10]wFMCommunicate OK [20:46:10]SAM_PROTO_GetFieldsCounters done [20:46:10]requested_item shift.num is exist - process it [20:46:10]requested_item shift.opened is exist - process it [20:46:10]req_shift_opened [20:46:10]FM_GetShiftState [20:46:10]SAM_PROTO_GetShiftState [20:46:10]wFMCommunicate request_size=4 [20:46:10]MH_SAM_APDU [20:46:10]CAPDU: 80 13 01 00 [20:46:10]Write to MH i2c: E2 08 00 CE 03 80 13 01 00 00 00 00 00 4E [20:46:10]Write i2c OK [20:46:10]MH_I2C_Read... [20:46:10]Read from MH i2c: E2 [20:46:10]MH_I2C_Read... [20:46:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:46:10]Read from MH i2c: E2 0E 00 [20:46:10]MH_I2C_Read... [20:46:10]Read from MH i2c: E2 0E 00 CE 03 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 FA [20:46:10]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [20:46:10]wFMCommunicate OK [20:46:10]SAM_PROTO_GetShiftState done [20:46:10]FM_GetShiftState done [20:46:10]req_shift_opened done [20:46:10]requested_item shift.open_date is exist - process it [20:46:10]req_shift_open_date [20:46:10]req_shift_open_date done [20:46:10]produce_requested_data done [20:46:10]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29343,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [20:46:10]process_action_free close_receipt [20:46:10]json_value_free [20:46:10]json_value_free done [20:46:10]process_json_proto returns [20:46:10]Send response to host [20:46:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29343,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [20:46:10]free response buf [20:46:10]execute_script done [20:46:10]execute_script returns [20:46:10]free content buf [20:46:10]Sock 8.Close socket [20:46:10]Sock 8.Thread stoped [20:46:10]accept exits with 9 [20:46:10]New connection [20:46:10]New thread 3067112804 created [20:46:10]Thread 3066969444 joined [20:46:10]Waiting for new connection... [20:46:10] Sock 9.Parse request [20:46:10]Sock 9.Check first char [20:46:10]Sock 9.First char is OK [20:46:10]request: POST /json_proto HTTP/1.0 [20:46:10]Method: POST [20:46:10]URL: /json_proto [20:46:10]Method is POST - this is cgi request [20:46:10]url: /json_proto [20:46:10]query_string will be loaded in cgi processing [20:46:10]execute_cgi json_proto POST (null) [20:46:10]execute_cgi path=json_proto method=POST [20:46:10]POST find Content-Length [20:46:10]Host: 172.17.33.3:8080 [20:46:10]Content-Length: 819 [20:46:10]Content-Type: application/json [20:46:10] [20:46:10]POST finish read [20:46:10]Found Content-Length = 819 [20:46:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347741", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.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" ] } } [20:46:10]execute_script... [20:46: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)347741", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.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" ] } } [20:46:10]POST & json_proto [20:46:10]process_json_proto [20:46:10]json parsed OK: [20:46:10]protocol is kg_v1.0 [20:46:10]action value=close_receipt [20:46:10]process_action close_receipt [20:46:10]cmd_close_receipt [20:46:10]MH_GetDate [20:46:10]Write to MH i2c: F0 00 00 CF 03 C1 [20:46:10]Write i2c OK [20:46:10]MH_I2C_Read... [20:46:10]Read from MH i2c: F0 [20:46:10]MH_I2C_Read... [20:46:10]Read from MH i2c: F0 09 00 [20:46:10]MH_I2C_Read... [20:46:10]Read from MH i2c: F0 09 00 CF 03 00 93 40 1C 66 23 5B 8F 65 91 [20:46:10]GetLastDocTimeStamp 1713127567 [20:46:10]current date 1713127571 [20:46:10]FM_GetShiftState [20:46:10]SAM_PROTO_GetShiftState [20:46:10]wFMCommunicate request_size=4 [20:46:10]MH_SAM_APDU [20:46:10]CAPDU: 80 13 01 00 [20:46:10]Write to MH i2c: E2 08 00 D0 03 80 13 01 00 00 00 00 00 50 [20:46:10]Write i2c OK [20:46:10]MH_I2C_Read... [20:46:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:46:10]Read from MH i2c: E2 [20:46:10]MH_I2C_Read... [20:46:10]Read from MH i2c: E2 0E 00 [20:46:10]MH_I2C_Read... [20:46:10]Read from MH i2c: E2 0E 00 D0 03 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 FC [20:46:10]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [20:46:10]wFMCommunicate OK [20:46:10]SAM_PROTO_GetShiftState done [20:46:10]FM_GetShiftState done [20:46:10]opened in 1713053951 [20:46:10]opened+sec_in_day 1713140351 [20:46:10]quantity*price = 100050 [20:46:10]sum+1 = 100051 [20:46:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.50 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.50 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 254 14.04.2024 20:46 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 29344 ФПД: 101208006329883 1/tax-web-control/client/api/v1/ticket?date=20240414T204611&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29344&fm=101208006329883&tin=02508201610067®Number=0000138879044617&sum=100050 [20:46:12]StoreToDocumentArchive [20:46:12]shift 116 fd 29344 [20:46:12]save to /storage/0116/doc_00029344 [20:46:12]save last doc name /storage/0116/doc_00029344 to /storage/kkm_last_doc_name [20:46:12]save OK [20:46:12]Clear old archive folders... [20:46:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:46:12]tlvbuf is 0025D6A0 [20:46:12]SAM_PROTO_ClearQueue [20:46:12]wFMCommunicate request_size=4 [20:46:12]MH_SAM_APDU [20:46:12]CAPDU: 80 09 00 00 [20:46:12]Write to MH i2c: E2 08 00 DD 03 80 09 00 00 00 00 00 00 52 [20:46:12]Write i2c OK [20:46:12]MH_I2C_Read... [20:46:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:46:12]Read from MH i2c: E2 [20:46:12]MH_I2C_Read... [20:46:12]Read from MH i2c: E2 03 00 [20:46:12]MH_I2C_Read... [20:46:12]Read from MH i2c: E2 03 00 DD 03 00 90 00 54 [20:46:12]RAPDU: 90 00 [20:46:12]wFMCommunicate OK [20:46:12]SAM_PROTO_ClearQueue done [20:46:12]KKMCreateOFDPacket [20:46:12]OFDProtocolAddRootSTLVToBuf [20:46:12]FM_MakeSignedData [20:46:12]FM_MakeSignedData [20:46:12]SAM_PROTO_SignData [20:46:12]wFMCommunicate request_size=4 [20:46:12]MH_SAM_APDU [20:46:12]CAPDU: 80 0D 01 02 [20:46:12]Write to MH i2c: E2 08 00 DE 03 80 0D 01 02 00 00 00 00 5A [20:46:12]Write i2c OK [20:46:12]MH_I2C_Read... [20:46:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:46:12]Read from MH i2c: E2 [20:46:12]MH_I2C_Read... [20:46:12]Read from MH i2c: E2 03 00 [20:46:12]MH_I2C_Read... [20:46:12]Read from MH i2c: E2 03 00 DE 03 00 90 00 55 [20:46:12]RAPDU: 90 00 [20:46:12]wFMCommunicate OK [20:46:12]wFMCommunicate request_size=255 [20:46:12]MH_SAM_APDU [20:46:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 FE 00 00 00 F4 03 04 00 93 40 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A0 72 00 00 35 04 06 00 5C [20:46:12]Write to MH i2c: E2 02 01 DF 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 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 FE 00 00 00 F4 03 04 00 93 40 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A0 72 00 00 35 04 06 00 5C 00 00 72 [20:46:12]Write i2c OK [20:46:12]MH_I2C_Read... [20:46:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:46:12]Read from MH i2c: E2 [20:46:12]MH_I2C_Read... [20:46:12]Read from MH i2c: E2 03 00 [20:46:12]MH_I2C_Read... [20:46:12]Read from MH i2c: E2 03 00 DF 03 00 90 00 56 [20:46:12]RAPDU: 90 00 [20:46:12]wFMCommunicate OK [20:46:12]wFMCommunicate request_size=10 [20:46:12]MH_SAM_APDU [20:46:12]CAPDU: 80 0D 02 02 05 0C 53 44 06 1B [20:46:12]Write to MH i2c: E2 0D 00 E0 03 80 0D 02 02 05 00 0C 53 44 06 1B 00 00 2B [20:46:12]Write i2c OK [20:46:12]MH_I2C_Read... [20:46:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:46:12]Read from MH i2c: E2 [20:46:12]MH_I2C_Read... [20:46:12]Read from MH i2c: E2 03 00 [20:46:12]MH_I2C_Read... [20:46:12]Read from MH i2c: E2 03 00 E0 03 00 90 00 57 [20:46:12]RAPDU: 90 00 [20:46:12]wFMCommunicate OK [20:46:12]wFMCommunicate request_size=4 [20:46:12]MH_SAM_APDU [20:46:12]CAPDU: 80 0D 03 02 [20:46:12]Write to MH i2c: E2 08 00 E1 03 80 0D 03 02 00 00 00 00 5F [20:46:12]Write i2c OK [20:46:12]MH_I2C_Read... [20:46:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:46:12]Read from MH i2c: E2 [20:46:12]MH_I2C_Read... [20:46:12]Read from MH i2c: E2 0B 00 [20:46:12]MH_I2C_Read... [20:46:12]Read from MH i2c: E2 0B 00 E1 03 00 B9 13 5E 03 AE BF 43 A8 90 00 E5 [20:46:12]RAPDU: B9 13 5E 03 AE BF 43 A8 90 00 [20:46:12]wFMCommunicate OK [20:46:12]SAM_PROTO_SignData done [20:46:12]FM_MakeSignedData done [20:46:12]CreateOFDProtocolMessage [20:46:12]wFMCommunicate request_size=4 [20:46:12]MH_SAM_APDU [20:46:12]CAPDU: 80 11 00 00 [20:46:12]Write to MH i2c: E2 08 00 E2 03 80 11 00 00 00 00 00 00 5F [20:46:12]Write i2c OK [20:46:12]MH_I2C_Read... [20:46:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:46:12]Read from MH i2c: E2 [20:46:12]MH_I2C_Read... [20:46:12]Read from MH i2c: E2 17 00 [20:46:12]MH_I2C_Read... [20:46:12]Read from MH i2c: E2 17 00 E2 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 AE [20:46:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:46:12]wFMCommunicate OK [20:46:12]CreateOFDProtocolMessage done [20:46:12]OFDSenderStorePacket 29344 [20:46:12]StoreOFDPacket docnum=29344 [20:46:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 6A 1B 07 01 A9 50 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 FE 00 00 00 F4 03 04 00 93 40 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A0 72 00 00 35 04 06 00 5C 0C 53 44 06 1B B9 13 5E 03 AE BF 43 A8 [20:46:12]CheckFolder [20:46:12]dirname=/storage/ofd_packets [20:46:12]CheckFolder done [20:46:12]ProducePacketName [20:46:12]name=ofd_packets/00029344 [20:46:12]NVStorageSaveData ofd_packets/00029344 [20:46:12]File name is /storage/ofd_packets/00029344 [20:46:12]Write 301 bytes [20:46:12]NVStorageSaveData done [20:46:12]OFDSenderStorePacket done [20:46:12]KKMCreateOFDPacket done [20:46:12]NVStorageSaveData kkm_last_timestamp [20:46:12]File name is /storage/kkm_last_timestamp [20:46:12]Write 4 bytes [20:46:12]NVStorageSaveData done [20:46:12]ExternCall_PrintAddStr [20:46:12]wPrintStart [20:46:12]Write to MH i2c: 01 00 00 E3 03 E6 [20:46:12]Write i2c OK [20:46:12]MH_I2C_Read... [20:46:12]Read from MH i2c: 01 [20:46:12]MH_I2C_Read... [20:46:12]Read from MH i2c: 01 07 00 [20:46:12]MH_I2C_Read... [20:46:12]Read from MH i2c: 01 07 00 E3 03 00 00 00 00 00 FF 0F FB [20:46:12]RasterBufferAndPrint [20:46:12]line Счет N : (1)347741 [20:46:12]line ИНН: 02508201610067 [20:46:12]line Контрольно-Кассовый Чек [20:46:12]line ПРОДАЖА [20:46:12]line ТРК (МРК, ГНК) : 43 [20:46:12]line Товар: 2710124500 [20:46:12]line Аи-95-К-5 [20:46:12]line 13.800 * 72.50 [20:46:12]line = 1000.50 [20:46:12]line НДС 12% НСП 1% [20:46:12]line > о реализуемом товаре [20:46:12]line ИТОГО: 1000.50 [20:46:12]line НСП 1% : 8.85 [20:46:12]line НДС 12% : 106.25 [20:46:12]line Наличными: 0.00 [20:46:12]line Безнал.: 1000.50 [20:46:12]line Место: АЗС № 108 "Партнер Нефть" [20:46:12]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [20:46:12]line СНО: Общий режим [20:46:12]line Чек 254 14.04.2024 20:46 [20:46:12]line Смена: 116 ФФД: 1.0 [20:46:12]line ЗНМ: 0300000027 [20:46:12]line РНМ: 0000138879044617 [20:46:12]line Версия ККМ: 001 [20:46:12]line Платежная система: Бакай Банк [20:46:12]line ФМ: 0000000000963154 [20:46:12]line ФД: 29344 [20:46:12]line ФПД: 101208006329883 [20:46:12]line 1/tax-web-control/client/api/v1/ticket?date=20240414T204611&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29344&fm=101208006329883&tin=02508201610067®Number=0000138879044617&sum=100050 [20:46:12]written 0, free lines is 4095 [20:46:13]OFD Sender: Processing packet 29344 [packets to send 8, broken 7] [20:46:13]ProducePacketName [20:46:13]name=ofd_packets/00029344 [20:46:13]OFD Sender: To server: pG, [20:46:13]CommunicateWithHost lk.salyk.kg:30040 [20:46:13]ConnectInit lk.salyk.kg [20:46:13]Connected sock=10 [20:46:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 6A 1B 07 01 A9 50 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 FE 00 00 00 F4 03 04 00 93 40 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A0 72 00 00 35 04 06 00 5C 0C 53 44 06 1B B9 13 5E 03 AE BF 43 A8 [20:46:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 8E 9F 47 00 CE 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 39 36 33 31 35 34 10 04 04 00 A0 72 00 00 F4 03 04 00 37 EB 1B 66 B6 04 01 00 00 09 17 0D D1 E0 C2 35 F8 [20:46:13]CommunicateWithHost err = 0 [20:46:13]CheckOFDResponse [20:46:13]1017 (14) - 77093643461234 [20:46:13]1041 (16) - 0000000000963154 [20:46:13]1040 (4) - 29344 [20:46:13]1012 (4) - 14.04.2024 14:41 [20:46:13]1206 (1) - 0 [20:46:13]OFD Sender: Remove packet 29344 [20:46:13]ProducePacketName [20:46:13]name=ofd_packets/00029344 [20:46:13]NVStorageDeleteData [20:46:13]Write to MH i2c: 01 00 00 0C 04 10 [20:46:13]Write i2c OK [20:46:13]MH_I2C_Read... [20:46:13]Read from MH i2c: 01 [20:46:13]MH_I2C_Read... [20:46:13]Read from MH i2c: 01 07 00 [20:46:13]MH_I2C_Read... [20:46:13]Read from MH i2c: 01 07 00 0C 04 00 00 00 00 00 F4 0C 17 [20:46:13]RasterBufferAndPrint [20:46:13]line [20:46:13]line [20:46:13]line [20:46:13]line [20:46:13]line [20:46:13]written 0, free lines is 3330 [20:46:13]MH_Cut [20:46:13]Write to MH i2c: D1 01 00 13 04 01 E9 [20:46:13]Write i2c OK [20:46:13]MH_I2C_Read... [20:46:13]Read from MH i2c: D1 [20:46:13]MH_I2C_Read... [20:46:13]Read from MH i2c: D1 01 00 [20:46:13]MH_I2C_Read... [20:46:13]Read from MH i2c: D1 01 00 13 04 00 E8 [20:46:13]Write to MH i2c: 01 00 00 14 04 18 [20:46:13]Write i2c OK [20:46:13]MH_I2C_Read... [20:46:13]OFD Sender: No OFD packet to send [20:46:14]*** Cut start [20:46:14]*** Partial cut [20:46:14]*** CUTSNS_PIN = 1 [20:46:14]*** CUTSNS_PIN = 0 [20:46:14]*** Brake cut motor [20:46:14]Read from MH i2c: 01 [20:46:14]MH_I2C_Read... [20:46:14]*** Stop cut motor [20:46:14]*** Cut end [20:46:14]Read from MH i2c: 01 07 00 [20:46:14]MH_I2C_Read... [20:46:14]Read from MH i2c: 01 07 00 14 04 00 00 00 00 00 FF 0F 2D [20:46:14]process_action close_receipt done [20:46:14]requested_data is exist [20:46:14]produce_requested_data [20:46:14]requested_item fm.sn is exist - process it [20:46:14]wFMCommunicate request_size=4 [20:46:14]MH_SAM_APDU [20:46:14]CAPDU: 80 11 00 00 [20:46:14]Write to MH i2c: E2 08 00 15 04 80 11 00 00 00 00 00 00 93 [20:46:14]Write i2c OK [20:46:14]MH_I2C_Read... [20:46:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:46:14]Read from MH i2c: E2 [20:46:14]MH_I2C_Read... [20:46:14]Read from MH i2c: E2 17 00 [20:46:14]MH_I2C_Read... [20:46:14]Read from MH i2c: E2 17 00 15 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E2 [20:46:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:46:14]wFMCommunicate OK [20:46:14]requested_item fd.num is exist - process it [20:46:14]SAM_PROTO_GetFieldsCounters [20:46:14]wFMCommunicate request_size=4 [20:46:14]MH_SAM_APDU [20:46:14]CAPDU: 80 13 00 00 [20:46:14]Write to MH i2c: E2 08 00 16 04 80 13 00 00 00 00 00 00 96 [20:46:14]Write i2c OK [20:46:14]MH_I2C_Read... [20:46:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:46:15]Read from MH i2c: E2 [20:46:15]MH_I2C_Read... [20:46:15]Read from MH i2c: E2 62 00 [20:46:15]MH_I2C_Read... [20:46:15]Read from MH i2c: E2 62 00 16 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A0 72 00 00 0E 04 04 00 74 00 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 54 [20:46:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A0 72 00 00 0E 04 04 00 74 00 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 [20:46:15]wFMCommunicate OK [20:46:15]SAM_PROTO_GetFieldsCounters done [20:46:15]requested_item shift.num is exist - process it [20:46:15]requested_item shift.opened is exist - process it [20:46:15]req_shift_opened [20:46:15]FM_GetShiftState [20:46:15]SAM_PROTO_GetShiftState [20:46:15]wFMCommunicate request_size=4 [20:46:15]MH_SAM_APDU [20:46:15]CAPDU: 80 13 01 00 [20:46:15]Write to MH i2c: E2 08 00 17 04 80 13 01 00 00 00 00 00 98 [20:46:15]Write i2c OK [20:46:15]MH_I2C_Read... [20:46:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:46:15]Read from MH i2c: E2 [20:46:15]MH_I2C_Read... [20:46:15]Read from MH i2c: E2 0E 00 [20:46:15]MH_I2C_Read... [20:46:15]Read from MH i2c: E2 0E 00 17 04 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 44 [20:46:15]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [20:46:15]wFMCommunicate OK [20:46:15]SAM_PROTO_GetShiftState done [20:46:15]FM_GetShiftState done [20:46:15]req_shift_opened done [20:46:15]requested_item shift.open_date is exist - process it [20:46:15]req_shift_open_date [20:46:15]req_shift_open_date done [20:46:15]produce_requested_data done [20:46:15]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29344,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [20:46:15]process_action_free close_receipt [20:46:15]json_value_free [20:46:15]json_value_free done [20:46:15]process_json_proto returns [20:46:15]Send response to host [20:46:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29344,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [20:46:15]free response buf [20:46:15]execute_script done [20:46:15]execute_script returns [20:46:15]free content buf [20:46:15]Sock 9.Close socket [20:46:15]Sock 9.Thread stoped [20:46:18]OFD Sender: No OFD packet to send [20:46:23]OFD Sender: No OFD packet to send [20:46:28]OFD Sender: No OFD packet to send [20:46:32]accept exits with 8 [20:46:32]New connection [20:46:32]New thread 3066969444 created [20:46:32]Thread 3067112804 joined [20:46:32]Waiting for new connection... [20:46:32] Sock 8.Parse request [20:46:32]Sock 8.Check first char [20:46:32]Sock 8.First char is OK [20:46:32]request: POST /json_proto HTTP/1.0 [20:46:32]Method: POST [20:46:32]URL: /json_proto [20:46:32]Method is POST - this is cgi request [20:46:32]url: /json_proto [20:46:32]query_string will be loaded in cgi processing [20:46:32]execute_cgi json_proto POST (null) [20:46:32]execute_cgi path=json_proto method=POST [20:46:32]POST find Content-Length [20:46:32]Host: 172.17.33.3:8080 [20:46:32]Content-Length: 670 [20:46:32]Content-Type: application/json [20:46:32] [20:46:32]POST finish read [20:46:32]Found Content-Length = 670 [20:46:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347743", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.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" ] } } [20:46:32]execute_script... [20:46: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)347743", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.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" ] } } [20:46:32]POST & json_proto [20:46:32]process_json_proto [20:46:32]json parsed OK: [20:46:32]protocol is kg_v1.0 [20:46:32]action value=close_receipt [20:46:32]process_action close_receipt [20:46:32]cmd_close_receipt [20:46:32]MH_GetDate [20:46:32]Write to MH i2c: F0 00 00 18 04 0B [20:46:32]Write i2c OK [20:46:32]MH_I2C_Read... [20:46:32]Read from MH i2c: F0 [20:46:32]MH_I2C_Read... [20:46:32]Read from MH i2c: F0 09 00 [20:46:32]MH_I2C_Read... [20:46:32]Read from MH i2c: F0 09 00 18 04 00 A9 40 1C 66 23 5B 8F 65 F1 [20:46:32]GetLastDocTimeStamp 1713127571 [20:46:32]current date 1713127593 [20:46:32]FM_GetShiftState [20:46:32]SAM_PROTO_GetShiftState [20:46:32]wFMCommunicate request_size=4 [20:46:32]MH_SAM_APDU [20:46:32]CAPDU: 80 13 01 00 [20:46:32]Write to MH i2c: E2 08 00 19 04 80 13 01 00 00 00 00 00 9A [20:46:32]Write i2c OK [20:46:32]MH_I2C_Read... [20:46:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:46:32]Read from MH i2c: E2 [20:46:32]MH_I2C_Read... [20:46:32]Read from MH i2c: E2 0E 00 [20:46:32]MH_I2C_Read... [20:46:32]Read from MH i2c: E2 0E 00 19 04 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 46 [20:46:32]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [20:46:32]wFMCommunicate OK [20:46:32]SAM_PROTO_GetShiftState done [20:46:32]FM_GetShiftState done [20:46:32]opened in 1713053951 [20:46:32]opened+sec_in_day 1713140351 [20:46:32]quantity*price = 30038 [20:46:32]sum+1 = 30039 [20:46:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 255 14.04.2024 20:46 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29345 ФПД: 155232173302282 1/tax-web-control/client/api/v1/ticket?date=20240414T204633&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29345&fm=155232173302282&tin=02508201610067®Number=0000138879044617&sum=30000 [20:46:33]StoreToDocumentArchive [20:46:33]shift 116 fd 29345 [20:46:33]save to /storage/0116/doc_00029345 [20:46:33]save last doc name /storage/0116/doc_00029345 to /storage/kkm_last_doc_name [20:46:33]save OK [20:46:33]Clear old archive folders... [20:46:33]ProcessDocumentItem done err = 0, tmpTLVsize=252 [20:46:33]tlvbuf is 00271D30 [20:46:33]SAM_PROTO_ClearQueue [20:46:33]wFMCommunicate request_size=4 [20:46:33]MH_SAM_APDU [20:46:33]CAPDU: 80 09 00 00 [20:46:33]Write to MH i2c: E2 08 00 26 04 80 09 00 00 00 00 00 00 9C [20:46:33]Write i2c OK [20:46:33]MH_I2C_Read... [20:46:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:46:33]Read from MH i2c: E2 [20:46:33]MH_I2C_Read... [20:46:33]Read from MH i2c: E2 03 00 [20:46:33]MH_I2C_Read... [20:46:33]Read from MH i2c: E2 03 00 26 04 00 90 00 9E [20:46:33]RAPDU: 90 00 [20:46:33]wFMCommunicate OK [20:46:33]SAM_PROTO_ClearQueue done [20:46:33]KKMCreateOFDPacket [20:46:33]OFDProtocolAddRootSTLVToBuf [20:46:33]FM_MakeSignedData [20:46:33]FM_MakeSignedData [20:46:33]SAM_PROTO_SignData [20:46:33]wFMCommunicate request_size=4 [20:46:33]MH_SAM_APDU [20:46:33]CAPDU: 80 0D 01 02 [20:46:33]Write to MH i2c: E2 08 00 27 04 80 0D 01 02 00 00 00 00 A4 [20:46:33]Write i2c OK [20:46:33]MH_I2C_Read... [20:46:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:46:33]Read from MH i2c: E2 [20:46:33]MH_I2C_Read... [20:46:33]Read from MH i2c: E2 03 00 [20:46:33]MH_I2C_Read... [20:46:34]Read from MH i2c: E2 03 00 27 04 00 90 00 9F [20:46:34]RAPDU: 90 00 [20:46:34]wFMCommunicate OK [20:46:34]wFMCommunicate request_size=255 [20:46:34]MH_SAM_APDU [20:46:34]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 FF 00 00 00 F4 03 04 00 A9 40 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A1 72 00 00 35 04 06 00 [20:46:34]Write to MH i2c: E2 02 01 28 04 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 FF 00 00 00 F4 03 04 00 A9 40 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A1 72 00 00 35 04 06 00 00 00 AC [20:46:34]Write i2c OK [20:46:34]MH_I2C_Read... [20:46:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:46:34]Read from MH i2c: E2 [20:46:34]MH_I2C_Read... [20:46:34]Read from MH i2c: E2 03 00 [20:46:34]MH_I2C_Read... [20:46:34]Read from MH i2c: E2 03 00 28 04 00 90 00 A0 [20:46:34]RAPDU: 90 00 [20:46:34]wFMCommunicate OK [20:46:34]wFMCommunicate request_size=11 [20:46:34]MH_SAM_APDU [20:46:34]CAPDU: 80 0D 02 02 06 8D 2E CE 8C 22 0A [20:46:34]Write to MH i2c: E2 0E 00 29 04 80 0D 02 02 06 00 8D 2E CE 8C 22 0A 00 00 F4 [20:46:34]Write i2c OK [20:46:34]MH_I2C_Read... [20:46:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:46:34]Read from MH i2c: E2 [20:46:34]MH_I2C_Read... [20:46:34]Read from MH i2c: E2 03 00 [20:46:34]MH_I2C_Read... [20:46:34]Read from MH i2c: E2 03 00 29 04 00 90 00 A1 [20:46:34]RAPDU: 90 00 [20:46:34]wFMCommunicate OK [20:46:34]wFMCommunicate request_size=4 [20:46:34]MH_SAM_APDU [20:46:34]CAPDU: 80 0D 03 02 [20:46:34]Write to MH i2c: E2 08 00 2A 04 80 0D 03 02 00 00 00 00 A9 [20:46:34]Write i2c OK [20:46:34]MH_I2C_Read... [20:46:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:46:34]Read from MH i2c: E2 [20:46:34]MH_I2C_Read... [20:46:34]Read from MH i2c: E2 0B 00 [20:46:34]MH_I2C_Read... [20:46:34]Read from MH i2c: E2 0B 00 2A 04 00 4A 5B BD BB 25 13 59 9B 90 00 F3 [20:46:34]RAPDU: 4A 5B BD BB 25 13 59 9B 90 00 [20:46:34]wFMCommunicate OK [20:46:34]SAM_PROTO_SignData done [20:46:34]FM_MakeSignedData done [20:46:34]CreateOFDProtocolMessage [20:46:34]wFMCommunicate request_size=4 [20:46:34]MH_SAM_APDU [20:46:34]CAPDU: 80 11 00 00 [20:46:34]Write to MH i2c: E2 08 00 2B 04 80 11 00 00 00 00 00 00 A9 [20:46:34]Write i2c OK [20:46:34]MH_I2C_Read... [20:46:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:46:34]Read from MH i2c: E2 [20:46:34]MH_I2C_Read... [20:46:34]Read from MH i2c: E2 17 00 [20:46:34]MH_I2C_Read... [20:46:34]Read from MH i2c: E2 17 00 2B 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F8 [20:46:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:46:34]wFMCommunicate OK [20:46:34]CreateOFDProtocolMessage done [20:46:34]OFDSenderStorePacket 29345 [20:46:34]StoreOFDPacket docnum=29345 [20:46:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 7B 5D 08 01 DF 35 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 FF 00 00 00 F4 03 04 00 A9 40 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A1 72 00 00 35 04 06 00 8D 2E CE 8C 22 0A 4A 5B BD BB 25 13 59 9B [20:46:34]CheckFolder [20:46:34]dirname=/storage/ofd_packets [20:46:34]CheckFolder done [20:46:34]ProducePacketName [20:46:34]name=ofd_packets/00029345 [20:46:34]NVStorageSaveData ofd_packets/00029345 [20:46:34]File name is /storage/ofd_packets/00029345 [20:46:34]Write 302 bytes [20:46:34]NVStorageSaveData done [20:46:34]OFDSenderStorePacket done [20:46:34]KKMCreateOFDPacket done [20:46:34]NVStorageSaveData kkm_last_timestamp [20:46:34]File name is /storage/kkm_last_timestamp [20:46:34]Write 4 bytes [20:46:34]NVStorageSaveData done [20:46:34]ExternCall_PrintAddStr [20:46:34]wPrintStart [20:46:34]Write to MH i2c: 01 00 00 2C 04 30 [20:46:34]Write i2c OK [20:46:34]MH_I2C_Read... [20:46:34]Read from MH i2c: 01 [20:46:34]MH_I2C_Read... [20:46:34]Read from MH i2c: 01 07 00 [20:46:34]MH_I2C_Read... [20:46:34]Read from MH i2c: 01 07 00 2C 04 00 00 00 00 00 FF 0F 45 [20:46:34]RasterBufferAndPrint [20:46:34]line Счет N : (1)347743 [20:46:34]line ИНН: 02508201610067 [20:46:34]line Контрольно-Кассовый Чек [20:46:34]line ПРОДАЖА [20:46:34]line ТРК (МРК, ГНК) : 22 [20:46:34]line Товар: 2710124130 [20:46:34]line SUPER-92-К-5 [20:46:34]line 4.600 * 65.30 [20:46:34]line = 300.38 [20:46:34]line НДС 12% НСП 1% [20:46:34]line > о реализуемом товаре [20:46:34]line ОКРУГЛЕНИЕ: -0.38 [20:46:34]line ИТОГО: 300.00 [20:46:34]line Внесено: 300.00 [20:46:34]line СДАЧА: 0.00 [20:46:34]line НСП 1% : 2.66 [20:46:34]line НДС 12% : 31.90 [20:46:34]line Наличными: 300.00 [20:46:34]line Безнал.: 0.00 [20:46:34]line Место: АЗС № 108 "Партнер Нефть" [20:46:34]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [20:46:34]line СНО: Общий режим [20:46:34]line Чек 255 14.04.2024 20:46 [20:46:34]line Смена: 116 ФФД: 1.0 [20:46:34]line ЗНМ: 0300000027 [20:46:34]line РНМ: 0000138879044617 [20:46:34]line Версия ККМ: 001 [20:46:34]line ФМ: 0000000000963154 [20:46:34]line ФД: 29345 [20:46:34]line ФПД: 155232173302282 [20:46:34]line 1/tax-web-control/client/api/v1/ticket?date=20240414T204633&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29345&fm=155232173302282&tin=02508201610067®Number=0000138879044617&sum=30000 [20:46:34]written 0, free lines is 4095 [20:46:34]OFD Sender: Processing packet 29345 [packets to send 8, broken 7] [20:46:34]ProducePacketName [20:46:34]name=ofd_packets/00029345 [20:46:34]OFD Sender: To server: pG, [20:46:34]CommunicateWithHost lk.salyk.kg:30040 [20:46:34]ConnectInit lk.salyk.kg [20:46:34]Connected sock=10 [20:46:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 7B 5D 08 01 DF 35 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 FF 00 00 00 F4 03 04 00 A9 40 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A1 72 00 00 35 04 06 00 8D 2E CE 8C 22 0A 4A 5B BD BB 25 13 59 9B [20:46:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 F3 71 47 00 74 DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A1 72 00 00 F4 03 04 00 4C EB 1B 66 B6 04 01 00 00 9B 14 CA 45 DE 85 16 1E [20:46:34]CommunicateWithHost err = 0 [20:46:34]CheckOFDResponse [20:46:34]1017 (14) - 77093643461234 [20:46:34]1041 (16) - 0000000000963154 [20:46:34]1040 (4) - 29345 [20:46:34]1012 (4) - 14.04.2024 14:42 [20:46:34]1206 (1) - 0 [20:46:34]OFD Sender: Remove packet 29345 [20:46:34]ProducePacketName [20:46:34]name=ofd_packets/00029345 [20:46:34]NVStorageDeleteData [20:46:34]Write to MH i2c: 01 00 00 56 04 5A [20:46:34]Write i2c OK [20:46:34]MH_I2C_Read... [20:46:34]Read from MH i2c: 01 [20:46:34]MH_I2C_Read... [20:46:34]Read from MH i2c: 01 07 00 [20:46:34]MH_I2C_Read... [20:46:34]Read from MH i2c: 01 07 00 56 04 00 00 00 00 00 E3 0C 50 [20:46:34]RasterBufferAndPrint [20:46:34]line [20:46:34]line [20:46:34]line [20:46:34]line [20:46:34]line [20:46:34]written 0, free lines is 3307 [20:46:34]MH_Cut [20:46:34]Write to MH i2c: D1 01 00 5D 04 01 33 [20:46:34]Write i2c OK [20:46:34]MH_I2C_Read... [20:46:34]Read from MH i2c: D1 [20:46:34]MH_I2C_Read... [20:46:34]Read from MH i2c: D1 01 00 [20:46:34]MH_I2C_Read... [20:46:34]Read from MH i2c: D1 01 00 5D 04 00 32 [20:46:34]Write to MH i2c: 01 00 00 5E 04 62 [20:46:34]Write i2c OK [20:46:34]MH_I2C_Read... [20:46:35]OFD Sender: No OFD packet to send [20:46:35]*** Cut start [20:46:35]*** Partial cut [20:46:35]*** CUTSNS_PIN = 1 [20:46:35]*** CUTSNS_PIN = 0 [20:46:35]*** Brake cut motor [20:46:36]Read from MH i2c: 01 [20:46:36]MH_I2C_Read... [20:46:36]*** Stop cut motor [20:46:36]*** Cut end [20:46:36]Read from MH i2c: 01 07 00 [20:46:36]MH_I2C_Read... [20:46:36]Read from MH i2c: 01 07 00 5E 04 00 00 00 00 00 FF 0F 77 [20:46:36]process_action close_receipt done [20:46:36]requested_data is exist [20:46:36]produce_requested_data [20:46:36]requested_item fm.sn is exist - process it [20:46:36]wFMCommunicate request_size=4 [20:46:36]MH_SAM_APDU [20:46:36]CAPDU: 80 11 00 00 [20:46:36]Write to MH i2c: E2 08 00 5F 04 80 11 00 00 00 00 00 00 DD [20:46:36]Write i2c OK [20:46:36]MH_I2C_Read... [20:46:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:46:36]Read from MH i2c: E2 [20:46:36]MH_I2C_Read... [20:46:36]Read from MH i2c: E2 17 00 [20:46:36]MH_I2C_Read... [20:46:36]Read from MH i2c: E2 17 00 5F 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 2C [20:46:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:46:36]wFMCommunicate OK [20:46:36]requested_item fd.num is exist - process it [20:46:36]SAM_PROTO_GetFieldsCounters [20:46:36]wFMCommunicate request_size=4 [20:46:36]MH_SAM_APDU [20:46:36]CAPDU: 80 13 00 00 [20:46:36]Write to MH i2c: E2 08 00 60 04 80 13 00 00 00 00 00 00 E0 [20:46:36]Write i2c OK [20:46:36]MH_I2C_Read... [20:46:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:46:36]Read from MH i2c: E2 [20:46:36]MH_I2C_Read... [20:46:36]Read from MH i2c: E2 62 00 [20:46:36]MH_I2C_Read... [20:46:36]Read from MH i2c: E2 62 00 60 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A1 72 00 00 0E 04 04 00 74 00 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 A3 [20:46:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A1 72 00 00 0E 04 04 00 74 00 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 [20:46:36]wFMCommunicate OK [20:46:36]SAM_PROTO_GetFieldsCounters done [20:46:36]requested_item shift.num is exist - process it [20:46:36]requested_item shift.opened is exist - process it [20:46:36]req_shift_opened [20:46:36]FM_GetShiftState [20:46:36]SAM_PROTO_GetShiftState [20:46:36]wFMCommunicate request_size=4 [20:46:36]MH_SAM_APDU [20:46:36]CAPDU: 80 13 01 00 [20:46:36]Write to MH i2c: E2 08 00 61 04 80 13 01 00 00 00 00 00 E2 [20:46:36]Write i2c OK [20:46:36]MH_I2C_Read... [20:46:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:46:36]Read from MH i2c: E2 [20:46:36]MH_I2C_Read... [20:46:36]Read from MH i2c: E2 0E 00 [20:46:36]MH_I2C_Read... [20:46:36]Read from MH i2c: E2 0E 00 61 04 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 8E [20:46:36]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [20:46:36]wFMCommunicate OK [20:46:36]SAM_PROTO_GetShiftState done [20:46:36]FM_GetShiftState done [20:46:36]req_shift_opened done [20:46:36]requested_item shift.open_date is exist - process it [20:46:36]req_shift_open_date [20:46:36]req_shift_open_date done [20:46:36]produce_requested_data done [20:46:36]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29345,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [20:46:36]process_action_free close_receipt [20:46:36]json_value_free [20:46:36]json_value_free done [20:46:36]process_json_proto returns [20:46:36]Send response to host [20:46:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29345,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [20:46:36]free response buf [20:46:36]execute_script done [20:46:36]execute_script returns [20:46:36]free content buf [20:46:36]Sock 8.Close socket [20:46:36]Sock 8.Thread stoped [20:46:36]accept exits with 9 [20:46:36]New connection [20:46:36]New thread 3067112804 created [20:46:36]Thread 3066969444 joined [20:46:36]Waiting for new connection... [20:46:36] Sock 9.Parse request [20:46:36]Sock 9.Check first char [20:46:36]Sock 9.First char is OK [20:46:36]request: POST /json_proto HTTP/1.0 [20:46:36]Method: POST [20:46:36]URL: /json_proto [20:46:36]Method is POST - this is cgi request [20:46:36]url: /json_proto [20:46:36]query_string will be loaded in cgi processing [20:46:36]execute_cgi json_proto POST (null) [20:46:36]execute_cgi path=json_proto method=POST [20:46:36]POST find Content-Length [20:46:36]Host: 172.17.33.3:8080 [20:46:36]Content-Length: 682 [20:46:36]Content-Type: application/json [20:46:36] [20:46:36]POST finish read [20:46:36]Found Content-Length = 682 [20:46:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347742", "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:46:36]execute_script... [20:46: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)347742", "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:46:36]POST & json_proto [20:46:36]process_json_proto [20:46:36]json parsed OK: [20:46:36]protocol is kg_v1.0 [20:46:36]action value=close_receipt [20:46:36]process_action close_receipt [20:46:36]cmd_close_receipt [20:46:36]MH_GetDate [20:46:36]Write to MH i2c: F0 00 00 62 04 55 [20:46:36]Write i2c OK [20:46:36]MH_I2C_Read... [20:46:36]Read from MH i2c: F0 [20:46:36]MH_I2C_Read... [20:46:36]Read from MH i2c: F0 09 00 [20:46:36]MH_I2C_Read... [20:46:36]Read from MH i2c: F0 09 00 62 04 00 AD 40 1C 66 23 5B 8F 65 3F [20:46:36]GetLastDocTimeStamp 1713127593 [20:46:36]current date 1713127597 [20:46:36]FM_GetShiftState [20:46:36]SAM_PROTO_GetShiftState [20:46:36]wFMCommunicate request_size=4 [20:46:36]MH_SAM_APDU [20:46:36]CAPDU: 80 13 01 00 [20:46:36]Write to MH i2c: E2 08 00 63 04 80 13 01 00 00 00 00 00 E4 [20:46:36]Write i2c OK [20:46:36]MH_I2C_Read... [20:46:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:46:36]Read from MH i2c: E2 [20:46:36]MH_I2C_Read... [20:46:36]Read from MH i2c: E2 0E 00 [20:46:36]MH_I2C_Read... [20:46:36]Read from MH i2c: E2 0E 00 63 04 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 90 [20:46:36]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [20:46:36]wFMCommunicate OK [20:46:36]SAM_PROTO_GetShiftState done [20:46:36]FM_GetShiftState done [20:46:36]opened in 1713053951 [20:46:36]opened+sec_in_day 1713140351 [20:46:36]quantity*price = 100050 [20:46:36]sum+1 = 100052 [20:46: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 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 256 14.04.2024 20:46 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29346 ФПД: 108084060687691 1/tax-web-control/client/api/v1/ticket?date=20240414T204637&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29346&fm=108084060687691&tin=02508201610067®Number=0000138879044617&sum=100000 [20:46:38]StoreToDocumentArchive [20:46:38]shift 116 fd 29346 [20:46:38]save to /storage/0116/doc_00029346 [20:46:38]save last doc name /storage/0116/doc_00029346 to /storage/kkm_last_doc_name [20:46:38]save OK [20:46:38]Clear old archive folders... [20:46:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:46:38]tlvbuf is 002606D0 [20:46:38]SAM_PROTO_ClearQueue [20:46:38]wFMCommunicate request_size=4 [20:46:38]MH_SAM_APDU [20:46:38]CAPDU: 80 09 00 00 [20:46:38]Write to MH i2c: E2 08 00 70 04 80 09 00 00 00 00 00 00 E6 [20:46:38]Write i2c OK [20:46:38]MH_I2C_Read... [20:46:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:46:38]Read from MH i2c: E2 [20:46:38]MH_I2C_Read... [20:46:38]Read from MH i2c: E2 03 00 [20:46:38]MH_I2C_Read... [20:46:38]Read from MH i2c: E2 03 00 70 04 00 90 00 E8 [20:46:38]RAPDU: 90 00 [20:46:38]wFMCommunicate OK [20:46:38]SAM_PROTO_ClearQueue done [20:46:38]KKMCreateOFDPacket [20:46:38]OFDProtocolAddRootSTLVToBuf [20:46:38]FM_MakeSignedData [20:46:38]FM_MakeSignedData [20:46:38]SAM_PROTO_SignData [20:46:38]wFMCommunicate request_size=4 [20:46:38]MH_SAM_APDU [20:46:38]CAPDU: 80 0D 01 02 [20:46:38]Write to MH i2c: E2 08 00 71 04 80 0D 01 02 00 00 00 00 EE [20:46:38]Write i2c OK [20:46:38]MH_I2C_Read... [20:46:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:46:38]Read from MH i2c: E2 [20:46:38]MH_I2C_Read... [20:46:38]Read from MH i2c: E2 03 00 [20:46:38]MH_I2C_Read... [20:46:38]Read from MH i2c: E2 03 00 71 04 00 90 00 E9 [20:46:38]RAPDU: 90 00 [20:46:38]wFMCommunicate OK [20:46:38]wFMCommunicate request_size=255 [20:46:38]MH_SAM_APDU [20:46: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 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 00 01 00 00 F4 03 04 00 AD 40 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A2 72 00 00 35 04 06 00 62 [20:46:38]Write to MH i2c: E2 02 01 72 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 00 01 00 00 F4 03 04 00 AD 40 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A2 72 00 00 35 04 06 00 62 00 00 74 [20:46:38]Write i2c OK [20:46:38]MH_I2C_Read... [20:46:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:46:38]Read from MH i2c: E2 [20:46:38]MH_I2C_Read... [20:46:38]Read from MH i2c: E2 03 00 [20:46:38]MH_I2C_Read... [20:46:38]Read from MH i2c: E2 03 00 72 04 00 90 00 EA [20:46:38]RAPDU: 90 00 [20:46:38]wFMCommunicate OK [20:46:38]wFMCommunicate request_size=10 [20:46:38]MH_SAM_APDU [20:46:38]CAPDU: 80 0D 02 02 05 4D 48 0B 0D 4B [20:46:38]Write to MH i2c: E2 0D 00 73 04 80 0D 02 02 05 00 4D 48 0B 0D 4B 00 00 F3 [20:46:38]Write i2c OK [20:46:38]MH_I2C_Read... [20:46:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:46:38]Read from MH i2c: E2 [20:46:38]MH_I2C_Read... [20:46:38]Read from MH i2c: E2 03 00 [20:46:38]MH_I2C_Read... [20:46:38]Read from MH i2c: E2 03 00 73 04 00 90 00 EB [20:46:38]RAPDU: 90 00 [20:46:38]wFMCommunicate OK [20:46:38]wFMCommunicate request_size=4 [20:46:38]MH_SAM_APDU [20:46:38]CAPDU: 80 0D 03 02 [20:46:38]Write to MH i2c: E2 08 00 74 04 80 0D 03 02 00 00 00 00 F3 [20:46:38]Write i2c OK [20:46:38]MH_I2C_Read... [20:46:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:46:38]Read from MH i2c: E2 [20:46:38]MH_I2C_Read... [20:46:38]Read from MH i2c: E2 0B 00 [20:46:38]MH_I2C_Read... [20:46:38]Read from MH i2c: E2 0B 00 74 04 00 7C 6D AC DB 6E 17 89 D5 90 00 47 [20:46:38]RAPDU: 7C 6D AC DB 6E 17 89 D5 90 00 [20:46:38]wFMCommunicate OK [20:46:38]SAM_PROTO_SignData done [20:46:38]FM_MakeSignedData done [20:46:38]CreateOFDProtocolMessage [20:46:38]wFMCommunicate request_size=4 [20:46:38]MH_SAM_APDU [20:46:38]CAPDU: 80 11 00 00 [20:46:38]Write to MH i2c: E2 08 00 75 04 80 11 00 00 00 00 00 00 F3 [20:46:38]Write i2c OK [20:46:38]MH_I2C_Read... [20:46:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:46:39]Read from MH i2c: E2 [20:46:39]MH_I2C_Read... [20:46:39]Read from MH i2c: E2 17 00 [20:46:39]MH_I2C_Read... [20:46:39]Read from MH i2c: E2 17 00 75 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 42 [20:46:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:46:39]wFMCommunicate OK [20:46:39]CreateOFDProtocolMessage done [20:46:39]OFDSenderStorePacket 29346 [20:46:39]StoreOFDPacket docnum=29346 [20:46:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 A9 D4 07 01 7F 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 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 00 01 00 00 F4 03 04 00 AD 40 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A2 72 00 00 35 04 06 00 62 4D 48 0B 0D 4B 7C 6D AC DB 6E 17 89 D5 [20:46:39]CheckFolder [20:46:39]dirname=/storage/ofd_packets [20:46:39]CheckFolder done [20:46:39]ProducePacketName [20:46:39]name=ofd_packets/00029346 [20:46:39]NVStorageSaveData ofd_packets/00029346 [20:46:39]File name is /storage/ofd_packets/00029346 [20:46:39]Write 301 bytes [20:46:39]NVStorageSaveData done [20:46:39]OFDSenderStorePacket done [20:46:39]KKMCreateOFDPacket done [20:46:39]NVStorageSaveData kkm_last_timestamp [20:46:39]File name is /storage/kkm_last_timestamp [20:46:39]Write 4 bytes [20:46:39]NVStorageSaveData done [20:46:39]ExternCall_PrintAddStr [20:46:39]wPrintStart [20:46:39]Write to MH i2c: 01 00 00 76 04 7A [20:46:39]Write i2c OK [20:46:39]MH_I2C_Read... [20:46:39]Read from MH i2c: 01 [20:46:39]MH_I2C_Read... [20:46:39]Read from MH i2c: 01 07 00 [20:46:39]MH_I2C_Read... [20:46:39]Read from MH i2c: 01 07 00 76 04 00 00 00 00 00 FF 0F 8F [20:46:39]RasterBufferAndPrint [20:46:39]line Счет N : (1)347742 [20:46:39]line ИНН: 02508201610067 [20:46:39]line Контрольно-Кассовый Чек [20:46:39]line ПРОДАЖА [20:46:39]line ТРК (МРК, ГНК) : 32 [20:46:39]line Товар: 2710124130 [20:46:39]line Аи-92-К-5 [20:46:39]line 15.560 * 64.30 [20:46:39]line = 1000.51 [20:46:39]line НДС 12% НСП 1% [20:46:39]line > о реализуемом товаре [20:46:39]line ОКРУГЛЕНИЕ: -0.51 [20:46:39]line ИТОГО: 1000.00 [20:46:39]line Внесено: 1000.00 [20:46:39]line СДАЧА: 0.00 [20:46:39]line НСП 1% : 8.85 [20:46:39]line НДС 12% : 106.25 [20:46:39]line Наличными: 1000.00 [20:46:39]line Безнал.: 0.00 [20:46:39]line Место: АЗС № 108 "Партнер Нефть" [20:46:39]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [20:46:39]line СНО: Общий режим [20:46:39]line Чек 256 14.04.2024 20:46 [20:46:39]line Смена: 116 ФФД: 1.0 [20:46:39]line ЗНМ: 0300000027 [20:46:39]line РНМ: 0000138879044617 [20:46:39]line Версия ККМ: 001 [20:46:39]line ФМ: 0000000000963154 [20:46:39]line ФД: 29346 [20:46:39]line ФПД: 108084060687691 [20:46:39]line 1/tax-web-control/client/api/v1/ticket?date=20240414T204637&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29346&fm=108084060687691&tin=02508201610067®Number=0000138879044617&sum=100000 [20:46:39]written 0, free lines is 4095 [20:46:39]OFD Sender: Processing packet 29346 [packets to send 8, broken 7] [20:46:39]ProducePacketName [20:46:39]name=ofd_packets/00029346 [20:46:39]OFD Sender: To server: pG, [20:46:39]CommunicateWithHost lk.salyk.kg:30040 [20:46:39]ConnectInit lk.salyk.kg [20:46:39]Connected sock=8 [20:46:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 A9 D4 07 01 7F 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 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 00 01 00 00 F4 03 04 00 AD 40 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A2 72 00 00 35 04 06 00 62 4D 48 0B 0D 4B 7C 6D AC DB 6E 17 89 D5 [20:46:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 7D 00 47 00 E2 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A2 72 00 00 F4 03 04 00 51 EB 1B 66 B6 04 01 00 00 90 C2 9F CB B7 65 9D 10 [20:46:39]CommunicateWithHost err = 0 [20:46:39]CheckOFDResponse [20:46:39]1017 (14) - 77093643461234 [20:46:39]1041 (16) - 0000000000963154 [20:46:39]1040 (4) - 29346 [20:46:39]1012 (4) - 14.04.2024 14:42 [20:46:39]1206 (1) - 0 [20:46:39]OFD Sender: Remove packet 29346 [20:46:39]ProducePacketName [20:46:39]name=ofd_packets/00029346 [20:46:39]NVStorageDeleteData [20:46:39]Write to MH i2c: 01 00 00 A0 04 A4 [20:46:39]Write i2c OK [20:46:39]MH_I2C_Read... [20:46:39]Read from MH i2c: 01 [20:46:39]MH_I2C_Read... [20:46:39]Read from MH i2c: 01 07 00 [20:46:39]MH_I2C_Read... [20:46:39]Read from MH i2c: 01 07 00 A0 04 00 00 00 00 00 E7 0C 9E [20:46:39]RasterBufferAndPrint [20:46:39]line [20:46:39]line [20:46:39]line [20:46:39]line [20:46:39]line [20:46:39]written 0, free lines is 3318 [20:46:39]MH_Cut [20:46:39]Write to MH i2c: D1 01 00 A7 04 01 7D [20:46:39]Write i2c OK [20:46:39]MH_I2C_Read... [20:46:39]Read from MH i2c: D1 [20:46:39]MH_I2C_Read... [20:46:39]Read from MH i2c: D1 01 00 [20:46:39]MH_I2C_Read... [20:46:39]Read from MH i2c: D1 01 00 A7 04 00 7C [20:46:39]Write to MH i2c: 01 00 00 A8 04 AC [20:46:39]Write i2c OK [20:46:39]MH_I2C_Read... [20:46:39]OFD Sender: No OFD packet to send [20:46:40]*** Cut start [20:46:40]*** Partial cut [20:46:40]*** CUTSNS_PIN = 1 [20:46:40]*** CUTSNS_PIN = 0 [20:46:40]*** Brake cut motor [20:46:40]Read from MH i2c: 01 [20:46:40]MH_I2C_Read... [20:46:40]*** Stop cut motor [20:46:40]*** Cut end [20:46:40]Read from MH i2c: 01 07 00 [20:46:40]MH_I2C_Read... [20:46:40]Read from MH i2c: 01 07 00 A8 04 00 00 00 00 00 FF 0F C1 [20:46:40]process_action close_receipt done [20:46:40]requested_data is exist [20:46:40]produce_requested_data [20:46:40]requested_item fm.sn is exist - process it [20:46:40]wFMCommunicate request_size=4 [20:46:40]MH_SAM_APDU [20:46:40]CAPDU: 80 11 00 00 [20:46:40]Write to MH i2c: E2 08 00 A9 04 80 11 00 00 00 00 00 00 27 [20:46:40]Write i2c OK [20:46:40]MH_I2C_Read... [20:46:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:46:40]Read from MH i2c: E2 [20:46:40]MH_I2C_Read... [20:46:40]Read from MH i2c: E2 17 00 [20:46:40]MH_I2C_Read... [20:46:40]Read from MH i2c: E2 17 00 A9 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 76 [20:46:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:46:40]wFMCommunicate OK [20:46:40]requested_item fd.num is exist - process it [20:46:40]SAM_PROTO_GetFieldsCounters [20:46:41]wFMCommunicate request_size=4 [20:46:41]MH_SAM_APDU [20:46:41]CAPDU: 80 13 00 00 [20:46:41]Write to MH i2c: E2 08 00 AA 04 80 13 00 00 00 00 00 00 2A [20:46:41]Write i2c OK [20:46:41]MH_I2C_Read... [20:46:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:46:41]Read from MH i2c: E2 [20:46:41]MH_I2C_Read... [20:46:41]Read from MH i2c: E2 62 00 [20:46:41]MH_I2C_Read... [20:46:41]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 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A2 72 00 00 0E 04 04 00 74 00 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 F3 [20:46:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A2 72 00 00 0E 04 04 00 74 00 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 [20:46:41]wFMCommunicate OK [20:46:41]SAM_PROTO_GetFieldsCounters done [20:46:41]requested_item shift.num is exist - process it [20:46:41]requested_item shift.opened is exist - process it [20:46:41]req_shift_opened [20:46:41]FM_GetShiftState [20:46:41]SAM_PROTO_GetShiftState [20:46:41]wFMCommunicate request_size=4 [20:46:41]MH_SAM_APDU [20:46:41]CAPDU: 80 13 01 00 [20:46:41]Write to MH i2c: E2 08 00 AB 04 80 13 01 00 00 00 00 00 2C [20:46:41]Write i2c OK [20:46:41]MH_I2C_Read... [20:46:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:46:41]Read from MH i2c: E2 [20:46:41]MH_I2C_Read... [20:46:41]Read from MH i2c: E2 0E 00 [20:46:41]MH_I2C_Read... [20:46:41]Read from MH i2c: E2 0E 00 AB 04 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 D8 [20:46:41]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [20:46:41]wFMCommunicate OK [20:46:41]SAM_PROTO_GetShiftState done [20:46:41]FM_GetShiftState done [20:46:41]req_shift_opened done [20:46:41]requested_item shift.open_date is exist - process it [20:46:41]req_shift_open_date [20:46:41]req_shift_open_date done [20:46:41]produce_requested_data done [20:46:41]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29346,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [20:46:41]process_action_free close_receipt [20:46:41]json_value_free [20:46:41]json_value_free done [20:46:41]process_json_proto returns [20:46:41]Send response to host [20:46:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29346,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [20:46:41]free response buf [20:46:41]execute_script done [20:46:41]execute_script returns [20:46:41]free content buf [20:46:41]Sock 9.Close socket [20:46:41]Sock 9.Thread stoped [20:46:44]OFD Sender: No OFD packet to send [20:46:49]OFD Sender: No OFD packet to send [20:46:54]OFD Sender: No OFD packet to send [20:46:59]OFD Sender: No OFD packet to send [20:47:05]OFD Sender: No OFD packet to send [20:47:10]OFD Sender: No OFD packet to send [20:47:15]OFD Sender: No OFD packet to send [20:47:20]OFD Sender: No OFD packet to send [20:47:25]OFD Sender: No OFD packet to send [20:47:30]OFD Sender: No OFD packet to send [20:47:35]OFD Sender: No OFD packet to send [20:47:40]OFD Sender: No OFD packet to send [20:47:45]OFD Sender: No OFD packet to send [20:47:50]OFD Sender: No OFD packet to send [20:47:55]OFD Sender: No OFD packet to send [20:48:00]OFD Sender: No OFD packet to send [20:48:05]OFD Sender: No OFD packet to send [20:48:10]OFD Sender: No OFD packet to send [20:48:15]OFD Sender: No OFD packet to send [20:48:20]OFD Sender: No OFD packet to send [20:48:25]OFD Sender: No OFD packet to send [20:48:30]OFD Sender: No OFD packet to send [20:48:35]OFD Sender: No OFD packet to send [20:48:40]OFD Sender: No OFD packet to send [20:48:45]OFD Sender: No OFD packet to send [20:48:50]OFD Sender: No OFD packet to send [20:48:55]OFD Sender: No OFD packet to send [20:48:59]accept exits with 10 [20:48:59]New connection [20:48:59]New thread 3066969444 created [20:48:59]Thread 3067112804 joined [20:48:59]Waiting for new connection... [20:48:59] Sock 10.Parse request [20:48:59]Sock 10.Check first char [20:48:59]Sock 10.First char is OK [20:48:59]request: POST /json_proto HTTP/1.0 [20:48:59]Method: POST [20:48:59]URL: /json_proto [20:48:59]Method is POST - this is cgi request [20:48:59]url: /json_proto [20:48:59]query_string will be loaded in cgi processing [20:48:59]execute_cgi json_proto POST (null) [20:48:59]execute_cgi path=json_proto method=POST [20:48:59]POST find Content-Length [20:48:59]Host: 172.17.33.3:8080 [20:48:59]Content-Length: 1197 [20:48:59]Content-Type: application/json [20:48:59] [20:48:59]POST finish read [20:48:59]Found Content-Length = 1197 [20:48:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043B\u0438\u043A\u0431\u0430\u0435\u0432\u0430. \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)347745\u000A14.04.2024 20:30\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 72.40\u000A\u0418\u0422\u041E\u0413: 1448.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3729643;3729642\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:48:59]execute_script... [20:48:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043B\u0438\u043A\u0431\u0430\u0435\u0432\u0430. \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)347745\u000A14.04.2024 20:30\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 72.40\u000A\u0418\u0422\u041E\u0413: 1448.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3729643;3729642\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:48:59]POST & json_proto [20:48:59]process_json_proto [20:48:59]json parsed OK: [20:48:59]protocol is kg_v1.0 [20:48:59]action value=print_text [20:48:59]process_action print_text [20:48:59]cmd_print_text [20:48:59]ExternCall_PrintAddStr [20:48:59]wPrintStart [20:48:59]Write to MH i2c: 01 00 00 AC 04 B0 [20:48:59]Write i2c OK [20:48:59]MH_I2C_Read... [20:48:59]Read from MH i2c: 01 [20:48:59]MH_I2C_Read... [20:48:59]Read from MH i2c: 01 07 00 [20:48:59]MH_I2C_Read... [20:48:59]Read from MH i2c: 01 07 00 AC 04 00 00 00 00 00 FF 0F C5 [20:48:59]RasterBufferAndPrint [20:48:59]line *****ТОВАРНЫЙ ЧЕК***** [20:48:59]line АЗС 108 [20:48:59]line Партнер нефть [20:48:59]line 02508201610067 [20:48:59]line Кассир : Аликбаева. Д. [20:48:59]line Счет N : (1)347745 [20:48:59]line 14.04.2024 20:30 [20:48:59]line ПРОДАЖА [20:48:59]line ТРК (МРК, ГНК): 11 [20:48:59]line Вид ГСМ : 2710194210 [20:48:59]line ДТ-К-5 [20:48:59]line 20.000 x 72.40 [20:48:59]line ИТОГ: 1448.00 [20:48:59]line Тип оплаты: Талоны: Партнер нефть [20:48:59]line 3729643;3729642 [20:48:59]line ______________________ [20:48:59]line (подпись) [20:48:59]written 0, free lines is 4095 [20:48:59]Write to MH i2c: 01 00 00 C0 04 C4 [20:48:59]Write i2c OK [20:48:59]MH_I2C_Read... [20:48:59]Read from MH i2c: 01 [20:48:59]MH_I2C_Read... [20:48:59]Read from MH i2c: 01 07 00 [20:48:59]MH_I2C_Read... [20:48:59]Read from MH i2c: 01 07 00 C0 04 00 00 00 00 00 16 0E EF [20:48:59]RasterBufferAndPrint [20:48:59]line [20:48:59]line [20:48:59]line [20:48:59]line [20:48:59]line [20:48:59]written 0, free lines is 3608 [20:48:59]MH_Cut [20:48:59]Write to MH i2c: D1 01 00 C7 04 01 9D [20:48:59]Write i2c OK [20:48:59]MH_I2C_Read... [20:48:59]Read from MH i2c: D1 [20:48:59]MH_I2C_Read... [20:48:59]Read from MH i2c: D1 01 00 [20:48:59]MH_I2C_Read... [20:48:59]Read from MH i2c: D1 01 00 C7 04 00 9C [20:48:59]Write to MH i2c: 01 00 00 C8 04 CC [20:48:59]Write i2c OK [20:48:59]MH_I2C_Read... [20:48:59]*** Cut start [20:48:59]*** Partial cut [20:48:59]*** CUTSNS_PIN = 1 [20:48:59]*** CUTSNS_PIN = 0 [20:49:00]OFD Sender: No OFD packet to send [20:49:00]*** Brake cut motor [20:49:00]Read from MH i2c: 01 [20:49:00]MH_I2C_Read... [20:49:00]*** Stop cut motor [20:49:00]*** Cut end [20:49:00]Read from MH i2c: 01 07 00 [20:49:00]MH_I2C_Read... [20:49:00]Read from MH i2c: 01 07 00 C8 04 00 00 00 00 00 FF 0F E1 [20:49:00]process_action print_text done [20:49:00]requested_data is exist [20:49:00]produce_requested_data [20:49:00]requested_item fm.sn is exist - process it [20:49:00]wFMCommunicate request_size=4 [20:49:00]MH_SAM_APDU [20:49:00]CAPDU: 80 11 00 00 [20:49:00]Write to MH i2c: E2 08 00 C9 04 80 11 00 00 00 00 00 00 47 [20:49:00]Write i2c OK [20:49:00]MH_I2C_Read... [20:49:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:49:00]Read from MH i2c: E2 [20:49:00]MH_I2C_Read... [20:49:00]Read from MH i2c: E2 17 00 [20:49:00]MH_I2C_Read... [20:49:00]Read from MH i2c: E2 17 00 C9 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 96 [20:49:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:49:00]wFMCommunicate OK [20:49:00]requested_item fd.num is exist - process it [20:49:00]SAM_PROTO_GetFieldsCounters [20:49:00]wFMCommunicate request_size=4 [20:49:00]MH_SAM_APDU [20:49:00]CAPDU: 80 13 00 00 [20:49:00]Write to MH i2c: E2 08 00 CA 04 80 13 00 00 00 00 00 00 4A [20:49:00]Write i2c OK [20:49:00]MH_I2C_Read... [20:49:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:49:00]Read from MH i2c: E2 [20:49:00]MH_I2C_Read... [20:49:00]Read from MH i2c: E2 62 00 [20:49:00]MH_I2C_Read... [20:49:00]Read from MH i2c: E2 62 00 CA 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A2 72 00 00 0E 04 04 00 74 00 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 13 [20:49:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A2 72 00 00 0E 04 04 00 74 00 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 [20:49:00]wFMCommunicate OK [20:49:00]SAM_PROTO_GetFieldsCounters done [20:49:00]requested_item shift.num is exist - process it [20:49:00]requested_item shift.opened is exist - process it [20:49:00]req_shift_opened [20:49:00]FM_GetShiftState [20:49:00]SAM_PROTO_GetShiftState [20:49:00]wFMCommunicate request_size=4 [20:49:00]MH_SAM_APDU [20:49:00]CAPDU: 80 13 01 00 [20:49:00]Write to MH i2c: E2 08 00 CB 04 80 13 01 00 00 00 00 00 4C [20:49:00]Write i2c OK [20:49:00]MH_I2C_Read... [20:49:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:49:00]Read from MH i2c: E2 [20:49:00]MH_I2C_Read... [20:49:00]Read from MH i2c: E2 0E 00 [20:49:00]MH_I2C_Read... [20:49:00]Read from MH i2c: E2 0E 00 CB 04 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 F8 [20:49:00]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [20:49:00]wFMCommunicate OK [20:49:00]SAM_PROTO_GetShiftState done [20:49:00]FM_GetShiftState done [20:49:00]req_shift_opened done [20:49:00]requested_item shift.open_date is exist - process it [20:49:00]req_shift_open_date [20:49:00]req_shift_open_date done [20:49:00]produce_requested_data done [20:49:00]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29346,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [20:49:00]process_action_free print_text [20:49:00]json_value_free [20:49:00]json_value_free done [20:49:00]process_json_proto returns [20:49:00]Send response to host [20:49:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29346,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [20:49:00]free response buf [20:49:00]execute_script done [20:49:00]execute_script returns [20:49:00]free content buf [20:49:00]Sock 10.Close socket [20:49:00]Sock 10.Thread stoped [20:49:05]OFD Sender: No OFD packet to send [20:49:10]OFD Sender: No OFD packet to send [20:49:15]OFD Sender: No OFD packet to send [20:49:15]accept exits with 8 [20:49:15]New connection [20:49:15]New thread 3067112804 created [20:49:15]Thread 3066969444 joined [20:49:15]Waiting for new connection... [20:49:15] Sock 8.Parse request [20:49:15]Sock 8.Check first char [20:49:15]Sock 8.First char is OK [20:49:15]request: POST /json_proto HTTP/1.0 [20:49:15]Method: POST [20:49:15]URL: /json_proto [20:49:15]Method is POST - this is cgi request [20:49:15]url: /json_proto [20:49:15]query_string will be loaded in cgi processing [20:49:15]execute_cgi json_proto POST (null) [20:49:15]execute_cgi path=json_proto method=POST [20:49:15]POST find Content-Length [20:49:15]Host: 172.17.33.3:8080 [20:49:15]Content-Length: 682 [20:49:15]Content-Type: application/json [20:49:15] [20:49:15]POST finish read [20:49:15]Found Content-Length = 682 [20:49:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347744", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 42.310, "sum" : 2720.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 2720.00, "payments": [ { "type": 0, "sum" : 2720.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:49:15]execute_script... [20:49:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347744", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 42.310, "sum" : 2720.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 2720.00, "payments": [ { "type": 0, "sum" : 2720.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:49:15]POST & json_proto [20:49:15]process_json_proto [20:49:15]json parsed OK: [20:49:15]protocol is kg_v1.0 [20:49:15]action value=close_receipt [20:49:15]process_action close_receipt [20:49:15]cmd_close_receipt [20:49:15]MH_GetDate [20:49:15]Write to MH i2c: F0 00 00 CC 04 BF [20:49:15]Write i2c OK [20:49:15]MH_I2C_Read... [20:49:15]Read from MH i2c: F0 [20:49:15]MH_I2C_Read... [20:49:15]Read from MH i2c: F0 09 00 [20:49:15]MH_I2C_Read... [20:49:15]Read from MH i2c: F0 09 00 CC 04 00 4C 41 1C 66 23 5B 8F 65 49 [20:49:15]GetLastDocTimeStamp 1713127597 [20:49:15]current date 1713127756 [20:49:15]FM_GetShiftState [20:49:15]SAM_PROTO_GetShiftState [20:49:15]wFMCommunicate request_size=4 [20:49:15]MH_SAM_APDU [20:49:15]CAPDU: 80 13 01 00 [20:49:15]Write to MH i2c: E2 08 00 CD 04 80 13 01 00 00 00 00 00 4E [20:49:15]Write i2c OK [20:49:15]MH_I2C_Read... [20:49:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:49:15]Read from MH i2c: E2 [20:49:15]MH_I2C_Read... [20:49:15]Read from MH i2c: E2 0E 00 [20:49:15]MH_I2C_Read... [20:49:15]Read from MH i2c: E2 0E 00 CD 04 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 FA [20:49:15]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [20:49:15]wFMCommunicate OK [20:49:15]SAM_PROTO_GetShiftState done [20:49:15]FM_GetShiftState done [20:49:15]opened in 1713053951 [20:49:15]opened+sec_in_day 1713140351 [20:49:15]quantity*price = 272053 [20:49:15]sum+1 = 272054 [20:49:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 2720.00 Внесено: 5000.00 СДАЧА: 2280.00 НСП 1% : 24.07 НДС 12% : 288.91 Наличными: 2720.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 257 14.04.2024 20:49 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29347 ФПД: 211891822328537 1/tax-web-control/client/api/v1/ticket?date=20240414T204916&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29347&fm=211891822328537&tin=02508201610067®Number=0000138879044617&sum=272000 [20:49:16]StoreToDocumentArchive [20:49:16]shift 116 fd 29347 [20:49:16]save to /storage/0116/doc_00029347 [20:49:16]save last doc name /storage/0116/doc_00029347 to /storage/kkm_last_doc_name [20:49:16]save OK [20:49:16]Clear old archive folders... [20:49:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:49:16]tlvbuf is 0024C690 [20:49:16]SAM_PROTO_ClearQueue [20:49:16]wFMCommunicate request_size=4 [20:49:16]MH_SAM_APDU [20:49:16]CAPDU: 80 09 00 00 [20:49:16]Write to MH i2c: E2 08 00 DA 04 80 09 00 00 00 00 00 00 50 [20:49:16]Write i2c OK [20:49:16]MH_I2C_Read... [20:49:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:49:16]Read from MH i2c: E2 [20:49:16]MH_I2C_Read... [20:49:16]Read from MH i2c: E2 03 00 [20:49:16]MH_I2C_Read... [20:49:16]Read from MH i2c: E2 03 00 DA 04 00 90 00 52 [20:49:16]RAPDU: 90 00 [20:49:16]wFMCommunicate OK [20:49:16]SAM_PROTO_ClearQueue done [20:49:16]KKMCreateOFDPacket [20:49:16]OFDProtocolAddRootSTLVToBuf [20:49:16]FM_MakeSignedData [20:49:16]FM_MakeSignedData [20:49:16]SAM_PROTO_SignData [20:49:16]wFMCommunicate request_size=4 [20:49:16]MH_SAM_APDU [20:49:16]CAPDU: 80 0D 01 02 [20:49:16]Write to MH i2c: E2 08 00 DB 04 80 0D 01 02 00 00 00 00 58 [20:49:16]Write i2c OK [20:49:16]MH_I2C_Read... [20:49:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:49:16]Read from MH i2c: E2 [20:49:16]MH_I2C_Read... [20:49:16]Read from MH i2c: E2 03 00 [20:49:16]MH_I2C_Read... [20:49:16]Read from MH i2c: E2 03 00 DB 04 00 90 00 53 [20:49:16]RAPDU: 90 00 [20:49:16]wFMCommunicate OK [20:49:16]wFMCommunicate request_size=255 [20:49:16]MH_SAM_APDU [20:49: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 46 A5 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 B5 26 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 26 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DB 70 00 00 00 00 07 04 06 00 80 26 04 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 4C 41 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A3 72 00 00 35 04 06 00 C0 [20:49:16]Write to MH i2c: E2 02 01 DC 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 46 A5 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 B5 26 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 26 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DB 70 00 00 00 00 07 04 06 00 80 26 04 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 4C 41 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A3 72 00 00 35 04 06 00 C0 00 00 E9 [20:49:16]Write i2c OK [20:49:16]MH_I2C_Read... [20:49:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:49:16]Read from MH i2c: E2 [20:49:16]MH_I2C_Read... [20:49:16]Read from MH i2c: E2 03 00 [20:49:16]MH_I2C_Read... [20:49:16]Read from MH i2c: E2 03 00 DC 04 00 90 00 54 [20:49:16]RAPDU: 90 00 [20:49:16]wFMCommunicate OK [20:49:16]wFMCommunicate request_size=10 [20:49:16]MH_SAM_APDU [20:49:16]CAPDU: 80 0D 02 02 05 B6 E8 CC FA D9 [20:49:16]Write to MH i2c: E2 0D 00 DD 04 80 0D 02 02 05 00 B6 E8 CC FA D9 00 00 A2 [20:49:16]Write i2c OK [20:49:16]MH_I2C_Read... [20:49:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:49:16]Read from MH i2c: E2 [20:49:16]MH_I2C_Read... [20:49:16]Read from MH i2c: E2 03 00 [20:49:16]MH_I2C_Read... [20:49:16]Read from MH i2c: E2 03 00 DD 04 00 90 00 55 [20:49:16]RAPDU: 90 00 [20:49:16]wFMCommunicate OK [20:49:16]wFMCommunicate request_size=4 [20:49:16]MH_SAM_APDU [20:49:16]CAPDU: 80 0D 03 02 [20:49:16]Write to MH i2c: E2 08 00 DE 04 80 0D 03 02 00 00 00 00 5D [20:49:16]Write i2c OK [20:49:16]MH_I2C_Read... [20:49:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:49:16]Read from MH i2c: E2 [20:49:16]MH_I2C_Read... [20:49:16]Read from MH i2c: E2 0B 00 [20:49:16]MH_I2C_Read... [20:49:16]Read from MH i2c: E2 0B 00 DE 04 00 4D 5B 44 2A A9 F6 5D C7 90 00 37 [20:49:16]RAPDU: 4D 5B 44 2A A9 F6 5D C7 90 00 [20:49:16]wFMCommunicate OK [20:49:16]SAM_PROTO_SignData done [20:49:16]FM_MakeSignedData done [20:49:16]CreateOFDProtocolMessage [20:49:16]wFMCommunicate request_size=4 [20:49:16]MH_SAM_APDU [20:49:16]CAPDU: 80 11 00 00 [20:49:16]Write to MH i2c: E2 08 00 DF 04 80 11 00 00 00 00 00 00 5D [20:49:16]Write i2c OK [20:49:16]MH_I2C_Read... [20:49:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:49:16]Read from MH i2c: E2 [20:49:16]MH_I2C_Read... [20:49:16]Read from MH i2c: E2 17 00 [20:49:16]MH_I2C_Read... [20:49:16]Read from MH i2c: E2 17 00 DF 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 AC [20:49:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:49:16]wFMCommunicate OK [20:49:16]CreateOFDProtocolMessage done [20:49:16]OFDSenderStorePacket 29347 [20:49:16]StoreOFDPacket docnum=29347 [20:49:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 28 F5 07 01 E6 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 46 A5 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 B5 26 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 26 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DB 70 00 00 00 00 07 04 06 00 80 26 04 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 4C 41 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A3 72 00 00 35 04 06 00 C0 B6 E8 CC FA D9 4D 5B 44 2A A9 F6 5D C7 [20:49:16]CheckFolder [20:49:16]dirname=/storage/ofd_packets [20:49:16]CheckFolder done [20:49:16]ProducePacketName [20:49:16]name=ofd_packets/00029347 [20:49:16]NVStorageSaveData ofd_packets/00029347 [20:49:16]File name is /storage/ofd_packets/00029347 [20:49:16]Write 301 bytes [20:49:16]NVStorageSaveData done [20:49:16]OFDSenderStorePacket done [20:49:16]KKMCreateOFDPacket done [20:49:16]NVStorageSaveData kkm_last_timestamp [20:49:16]File name is /storage/kkm_last_timestamp [20:49:16]Write 4 bytes [20:49:16]NVStorageSaveData done [20:49:16]ExternCall_PrintAddStr [20:49:16]wPrintStart [20:49:16]Write to MH i2c: 01 00 00 E0 04 E4 [20:49:16]Write i2c OK [20:49:16]MH_I2C_Read... [20:49:16]Read from MH i2c: 01 [20:49:16]MH_I2C_Read... [20:49:16]Read from MH i2c: 01 07 00 [20:49:16]MH_I2C_Read... [20:49:16]Read from MH i2c: 01 07 00 E0 04 00 00 00 00 00 FF 0F F9 [20:49:16]RasterBufferAndPrint [20:49:16]line Счет N : (1)347744 [20:49:16]line ИНН: 02508201610067 [20:49:16]line Контрольно-Кассовый Чек [20:49:16]line ПРОДАЖА [20:49:16]line ТРК (МРК, ГНК) : 23 [20:49:16]line Товар: 2710124130 [20:49:16]line Аи-92-К-5 [20:49:16]line 42.310 * 64.30 [20:49:16]line = 2720.53 [20:49:16]line НДС 12% НСП 1% [20:49:16]line > о реализуемом товаре [20:49:16]line ОКРУГЛЕНИЕ: -0.53 [20:49:16]line ИТОГО: 2720.00 [20:49:16]line Внесено: 5000.00 [20:49:16]line СДАЧА: 2280.00 [20:49:16]line НСП 1% : 24.07 [20:49:16]line НДС 12% : 288.91 [20:49:16]line Наличными: 2720.00 [20:49:16]line Безнал.: 0.00 [20:49:16]line Место: АЗС № 108 "Партнер Нефть" [20:49:16]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [20:49:16]line СНО: Общий режим [20:49:16]line Чек 257 14.04.2024 20:49 [20:49:16]line Смена: 116 ФФД: 1.0 [20:49:16]line ЗНМ: 0300000027 [20:49:16]line РНМ: 0000138879044617 [20:49:16]line Версия ККМ: 001 [20:49:16]line ФМ: 0000000000963154 [20:49:16]line ФД: 29347 [20:49:16]line ФПД: 211891822328537 [20:49:16]line 1/tax-web-control/client/api/v1/ticket?date=20240414T204916&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29347&fm=211891822328537&tin=02508201610067®Number=0000138879044617&sum=272000 [20:49:17]OFD Sender: Processing packet 29347 [packets to send 8, broken 7] [20:49:17]ProducePacketName [20:49:17]name=ofd_packets/00029347 [20:49:17]OFD Sender: To server: pG, [20:49:17]CommunicateWithHost lk.salyk.kg:30040 [20:49:17]ConnectInit lk.salyk.kg [20:49:17]written 0, free lines is 4095 [20:49:17]Connected sock=10 [20:49:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 28 F5 07 01 E6 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 46 A5 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 B5 26 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 26 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DB 70 00 00 00 00 07 04 06 00 80 26 04 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 4C 41 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A3 72 00 00 35 04 06 00 C0 B6 E8 CC FA D9 4D 5B 44 2A A9 F6 5D C7 [20:49:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 CF E4 47 00 E5 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A3 72 00 00 F4 03 04 00 EF EB 1B 66 B6 04 01 00 00 94 54 BF F5 20 24 4A 0E [20:49:17]CommunicateWithHost err = 0 [20:49:17]CheckOFDResponse [20:49:17]1017 (14) - 77093643461234 [20:49:17]1041 (16) - 0000000000963154 [20:49:17]1040 (4) - 29347 [20:49:17]1012 (4) - 14.04.2024 14:45 [20:49:17]1206 (1) - 0 [20:49:17]OFD Sender: Remove packet 29347 [20:49:17]ProducePacketName [20:49:17]name=ofd_packets/00029347 [20:49:17]NVStorageDeleteData [20:49:17]Write to MH i2c: 01 00 00 0A 05 0F [20:49:17]Write i2c OK [20:49:17]MH_I2C_Read... [20:49:17]Read from MH i2c: 01 [20:49:17]MH_I2C_Read... [20:49:17]Read from MH i2c: 01 07 00 [20:49:17]MH_I2C_Read... [20:49:17]Read from MH i2c: 01 07 00 0A 05 00 00 00 00 00 DA 0C FC [20:49:17]RasterBufferAndPrint [20:49:17]line [20:49:17]line [20:49:17]line [20:49:17]line [20:49:17]line [20:49:17]written 0, free lines is 3297 [20:49:17]MH_Cut [20:49:17]Write to MH i2c: D1 01 00 11 05 01 E8 [20:49:17]Write i2c OK [20:49:17]MH_I2C_Read... [20:49:17]Read from MH i2c: D1 [20:49:17]MH_I2C_Read... [20:49:17]Read from MH i2c: D1 01 00 [20:49:17]MH_I2C_Read... [20:49:17]Read from MH i2c: D1 01 00 11 05 00 E7 [20:49:17]Write to MH i2c: 01 00 00 12 05 17 [20:49:17]Write i2c OK [20:49:17]MH_I2C_Read... [20:49:18]OFD Sender: No OFD packet to send [20:49:18]*** Cut start [20:49:18]*** Partial cut [20:49:18]*** CUTSNS_PIN = 1 [20:49:18]*** CUTSNS_PIN = 0 [20:49:18]*** Brake cut motor [20:49:19]Read from MH i2c: 01 [20:49:19]MH_I2C_Read... [20:49:19]*** Stop cut motor [20:49:19]*** Cut end [20:49:19]Read from MH i2c: 01 07 00 [20:49:19]MH_I2C_Read... [20:49:19]Read from MH i2c: 01 07 00 12 05 00 00 00 00 00 FF 0F 2C [20:49:19]process_action close_receipt done [20:49:19]requested_data is exist [20:49:19]produce_requested_data [20:49:19]requested_item fm.sn is exist - process it [20:49:19]wFMCommunicate request_size=4 [20:49:19]MH_SAM_APDU [20:49:19]CAPDU: 80 11 00 00 [20:49:19]Write to MH i2c: E2 08 00 13 05 80 11 00 00 00 00 00 00 92 [20:49:19]Write i2c OK [20:49:19]MH_I2C_Read... [20:49:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:49:19]Read from MH i2c: E2 [20:49:19]MH_I2C_Read... [20:49:19]Read from MH i2c: E2 17 00 [20:49:19]MH_I2C_Read... [20:49:19]Read from MH i2c: E2 17 00 13 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E1 [20:49:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:49:19]wFMCommunicate OK [20:49:19]requested_item fd.num is exist - process it [20:49:19]SAM_PROTO_GetFieldsCounters [20:49:19]wFMCommunicate request_size=4 [20:49:19]MH_SAM_APDU [20:49:19]CAPDU: 80 13 00 00 [20:49:19]Write to MH i2c: E2 08 00 14 05 80 13 00 00 00 00 00 00 95 [20:49:19]Write i2c OK [20:49:19]MH_I2C_Read... [20:49:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:49:19]Read from MH i2c: E2 [20:49:19]MH_I2C_Read... [20:49:19]Read from MH i2c: E2 62 00 [20:49:19]MH_I2C_Read... [20:49:19]Read from MH i2c: E2 62 00 14 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A3 72 00 00 0E 04 04 00 74 00 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 62 [20:49:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A3 72 00 00 0E 04 04 00 74 00 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 [20:49:19]wFMCommunicate OK [20:49:19]SAM_PROTO_GetFieldsCounters done [20:49:19]requested_item shift.num is exist - process it [20:49:19]requested_item shift.opened is exist - process it [20:49:19]req_shift_opened [20:49:19]FM_GetShiftState [20:49:19]SAM_PROTO_GetShiftState [20:49:19]wFMCommunicate request_size=4 [20:49:19]MH_SAM_APDU [20:49:19]CAPDU: 80 13 01 00 [20:49:19]Write to MH i2c: E2 08 00 15 05 80 13 01 00 00 00 00 00 97 [20:49:19]Write i2c OK [20:49:19]MH_I2C_Read... [20:49:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:49:19]Read from MH i2c: E2 [20:49:19]MH_I2C_Read... [20:49:19]Read from MH i2c: E2 0E 00 [20:49:19]MH_I2C_Read... [20:49:19]Read from MH i2c: E2 0E 00 15 05 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 43 [20:49:19]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [20:49:19]wFMCommunicate OK [20:49:19]SAM_PROTO_GetShiftState done [20:49:19]FM_GetShiftState done [20:49:19]req_shift_opened done [20:49:19]requested_item shift.open_date is exist - process it [20:49:19]req_shift_open_date [20:49:19]req_shift_open_date done [20:49:19]produce_requested_data done [20:49:19]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29347,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [20:49:19]process_action_free close_receipt [20:49:19]json_value_free [20:49:19]json_value_free done [20:49:19]process_json_proto returns [20:49:19]Send response to host [20:49:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29347,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [20:49:19]free response buf [20:49:19]execute_script done [20:49:19]execute_script returns [20:49:19]free content buf [20:49:19]Sock 8.Close socket [20:49:19]Sock 8.Thread stoped [20:49:23]OFD Sender: No OFD packet to send [20:49:28]OFD Sender: No OFD packet to send [20:49:33]OFD Sender: No OFD packet to send [20:49:38]OFD Sender: No OFD packet to send [20:49:43]OFD Sender: No OFD packet to send [20:49:48]OFD Sender: No OFD packet to send [20:49:53]OFD Sender: No OFD packet to send [20:49:58]OFD Sender: No OFD packet to send [20:50:03]OFD Sender: No OFD packet to send [20:50:08]OFD Sender: No OFD packet to send [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:45]accept exits with 9 [20:50:45]New connection [20:50:45]New thread 3066969444 created [20:50:45]Thread 3067112804 joined [20:50:45]Waiting for new connection... [20:50:45] Sock 9.Parse request [20:50:45]Sock 9.Check first char [20:50:45]Sock 9.First char is OK [20:50:45]request: POST /json_proto HTTP/1.0 [20:50:45]Method: POST [20:50:45]URL: /json_proto [20:50:45]Method is POST - this is cgi request [20:50:45]url: /json_proto [20:50:45]query_string will be loaded in cgi processing [20:50:45]execute_cgi json_proto POST (null) [20:50:45]execute_cgi path=json_proto method=POST [20:50:45]POST find Content-Length [20:50:45]Host: 172.17.33.3:8080 [20:50:45]Content-Length: 679 [20:50:45]Content-Type: application/json [20:50:45] [20:50:45]POST finish read [20:50:45]Found Content-Length = 679 [20:50:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347747", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.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" ] } } [20:50:45]execute_script... [20:50: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)347747", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.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" ] } } [20:50:45]POST & json_proto [20:50:45]process_json_proto [20:50:45]json parsed OK: [20:50:45]protocol is kg_v1.0 [20:50:45]action value=close_receipt [20:50:45]process_action close_receipt [20:50:45]cmd_close_receipt [20:50:45]MH_GetDate [20:50:45]Write to MH i2c: F0 00 00 16 05 0A [20:50:45]Write i2c OK [20:50:45]MH_I2C_Read... [20:50:45]Read from MH i2c: F0 [20:50:45]MH_I2C_Read... [20:50:45]Read from MH i2c: F0 09 00 [20:50:45]MH_I2C_Read... [20:50:45]Read from MH i2c: F0 09 00 16 05 00 A6 41 1C 66 23 5B 8F 65 EE [20:50:45]GetLastDocTimeStamp 1713127756 [20:50:45]current date 1713127846 [20:50:45]FM_GetShiftState [20:50:45]SAM_PROTO_GetShiftState [20:50:45]wFMCommunicate request_size=4 [20:50:45]MH_SAM_APDU [20:50:45]CAPDU: 80 13 01 00 [20:50:45]Write to MH i2c: E2 08 00 17 05 80 13 01 00 00 00 00 00 99 [20:50:45]Write i2c OK [20:50:45]MH_I2C_Read... [20:50:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:50:45]Read from MH i2c: E2 [20:50:45]MH_I2C_Read... [20:50:45]Read from MH i2c: E2 0E 00 [20:50:45]MH_I2C_Read... [20:50:45]Read from MH i2c: E2 0E 00 17 05 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 45 [20:50:45]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [20:50:45]wFMCommunicate OK [20:50:45]SAM_PROTO_GetShiftState done [20:50:45]FM_GetShiftState done [20:50:45]opened in 1713053951 [20:50:45]opened+sec_in_day 1713140351 [20:50:45]quantity*price = 500066 [20:50:45]sum+1 = 500068 [20:50:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.67 ИТОГО: 5000.00 Внесено: 5000.00 СДАЧА: 0.00 НСП 1% : 44.25 НДС 12% : 531.04 Наличными: 5000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 258 14.04.2024 20:50 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29348 ФПД: 34655499645800 1/tax-web-control/client/api/v1/ticket?date=20240414T205046&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29348&fm=34655499645800&tin=02508201610067®Number=0000138879044617&sum=500000 [20:50:46]StoreToDocumentArchive [20:50:46]shift 116 fd 29348 [20:50:46]save to /storage/0116/doc_00029348 [20:50:46]save last doc name /storage/0116/doc_00029348 to /storage/kkm_last_doc_name [20:50:46]save OK [20:50:46]Clear old archive folders... [20:50:46]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:50:46]tlvbuf is 0026AF10 [20:50:46]SAM_PROTO_ClearQueue [20:50:46]wFMCommunicate request_size=4 [20:50:46]MH_SAM_APDU [20:50:46]CAPDU: 80 09 00 00 [20:50:46]Write to MH i2c: E2 08 00 24 05 80 09 00 00 00 00 00 00 9B [20:50:46]Write i2c OK [20:50:46]MH_I2C_Read... [20:50:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:50:46]Read from MH i2c: E2 [20:50:46]MH_I2C_Read... [20:50:46]Read from MH i2c: E2 03 00 [20:50:46]MH_I2C_Read... [20:50:46]Read from MH i2c: E2 03 00 24 05 00 90 00 9D [20:50:46]RAPDU: 90 00 [20:50:46]wFMCommunicate OK [20:50:46]SAM_PROTO_ClearQueue done [20:50:46]KKMCreateOFDPacket [20:50:46]OFDProtocolAddRootSTLVToBuf [20:50:46]FM_MakeSignedData [20:50:46]FM_MakeSignedData [20:50:46]SAM_PROTO_SignData [20:50:46]wFMCommunicate request_size=4 [20:50:46]MH_SAM_APDU [20:50:46]CAPDU: 80 0D 01 02 [20:50:46]Write to MH i2c: E2 08 00 25 05 80 0D 01 02 00 00 00 00 A3 [20:50:46]Write i2c OK [20:50:46]MH_I2C_Read... [20:50:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:50:46]Read from MH i2c: E2 [20:50:46]MH_I2C_Read... [20:50:46]Read from MH i2c: E2 03 00 [20:50:46]MH_I2C_Read... [20:50:46]Read from MH i2c: E2 03 00 25 05 00 90 00 9E [20:50:46]RAPDU: 90 00 [20:50:46]wFMCommunicate OK [20:50:46]wFMCommunicate request_size=255 [20:50:46]MH_SAM_APDU [20:50:46]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 02 01 00 00 F4 03 04 00 A6 41 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A4 72 00 00 35 04 06 00 1F 84 DC BE [20:50:46]Write to MH i2c: E2 02 01 26 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 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 02 01 00 00 F4 03 04 00 A6 41 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A4 72 00 00 35 04 06 00 1F 84 DC BE 00 00 C4 [20:50:46]Write i2c OK [20:50:46]MH_I2C_Read... [20:50:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:50:46]Read from MH i2c: E2 [20:50:46]MH_I2C_Read... [20:50:46]Read from MH i2c: E2 03 00 [20:50:46]MH_I2C_Read... [20:50:46]Read from MH i2c: E2 03 00 26 05 00 90 00 9F [20:50:46]RAPDU: 90 00 [20:50:46]wFMCommunicate OK [20:50:46]wFMCommunicate request_size=7 [20:50:46]MH_SAM_APDU [20:50:46]CAPDU: 80 0D 02 02 02 F3 68 [20:50:46]Write to MH i2c: E2 0A 00 27 05 80 0D 02 02 02 00 F3 68 00 00 05 [20:50:46]Write i2c OK [20:50:46]MH_I2C_Read... [20:50:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:50:46]Read from MH i2c: E2 [20:50:46]MH_I2C_Read... [20:50:46]Read from MH i2c: E2 03 00 [20:50:46]MH_I2C_Read... [20:50:46]Read from MH i2c: E2 03 00 27 05 00 90 00 A0 [20:50:46]RAPDU: 90 00 [20:50:46]wFMCommunicate OK [20:50:46]wFMCommunicate request_size=4 [20:50:46]MH_SAM_APDU [20:50:46]CAPDU: 80 0D 03 02 [20:50:46]Write to MH i2c: E2 08 00 28 05 80 0D 03 02 00 00 00 00 A8 [20:50:46]Write i2c OK [20:50:46]MH_I2C_Read... [20:50:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:50:46]Read from MH i2c: E2 [20:50:46]MH_I2C_Read... [20:50:46]Read from MH i2c: E2 0B 00 [20:50:46]MH_I2C_Read... [20:50:46]Read from MH i2c: E2 0B 00 28 05 00 32 42 DD D6 52 FF 15 19 90 00 4F [20:50:46]RAPDU: 32 42 DD D6 52 FF 15 19 90 00 [20:50:46]wFMCommunicate OK [20:50:46]SAM_PROTO_SignData done [20:50:46]FM_MakeSignedData done [20:50:46]CreateOFDProtocolMessage [20:50:46]wFMCommunicate request_size=4 [20:50:46]MH_SAM_APDU [20:50:46]CAPDU: 80 11 00 00 [20:50:46]Write to MH i2c: E2 08 00 29 05 80 11 00 00 00 00 00 00 A8 [20:50:46]Write i2c OK [20:50:46]MH_I2C_Read... [20:50:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:50:47]Read from MH i2c: E2 [20:50:47]MH_I2C_Read... [20:50:47]Read from MH i2c: E2 17 00 [20:50:47]MH_I2C_Read... [20:50:47]Read from MH i2c: E2 17 00 29 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F7 [20:50:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:50:47]wFMCommunicate OK [20:50:47]CreateOFDProtocolMessage done [20:50:47]OFDSenderStorePacket 29348 [20:50:47]StoreOFDPacket docnum=29348 [20:50:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 4B BB 04 01 37 F1 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 02 01 00 00 F4 03 04 00 A6 41 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A4 72 00 00 35 04 06 00 1F 84 DC BE F3 68 32 42 DD D6 52 FF 15 19 [20:50:47]CheckFolder [20:50:47]dirname=/storage/ofd_packets [20:50:47]CheckFolder done [20:50:47]ProducePacketName [20:50:47]name=ofd_packets/00029348 [20:50:47]NVStorageSaveData ofd_packets/00029348 [20:50:47]File name is /storage/ofd_packets/00029348 [20:50:47]Write 298 bytes [20:50:47]NVStorageSaveData done [20:50:47]OFDSenderStorePacket done [20:50:47]KKMCreateOFDPacket done [20:50:47]NVStorageSaveData kkm_last_timestamp [20:50:47]File name is /storage/kkm_last_timestamp [20:50:47]Write 4 bytes [20:50:47]NVStorageSaveData done [20:50:47]ExternCall_PrintAddStr [20:50:47]wPrintStart [20:50:47]Write to MH i2c: 01 00 00 2A 05 2F [20:50:47]Write i2c OK [20:50:47]MH_I2C_Read... [20:50:47]Read from MH i2c: 01 [20:50:47]MH_I2C_Read... [20:50:47]Read from MH i2c: 01 07 00 [20:50:47]MH_I2C_Read... [20:50:47]Read from MH i2c: 01 07 00 2A 05 00 00 00 00 00 FF 0F 44 [20:50:47]RasterBufferAndPrint [20:50:47]line Счет N : (1)347747 [20:50:47]line ИНН: 02508201610067 [20:50:47]line Контрольно-Кассовый Чек [20:50:47]line ПРОДАЖА [20:50:47]line ТРК (МРК, ГНК) : 21 [20:50:47]line Товар: 2710194210 [20:50:47]line ДТ-К-5 [20:50:47]line 69.070 * 72.40 [20:50:47]line = 5000.67 [20:50:47]line НДС 12% НСП 1% [20:50:47]line > о реализуемом товаре [20:50:47]line ОКРУГЛЕНИЕ: -0.67 [20:50:47]line ИТОГО: 5000.00 [20:50:47]line Внесено: 5000.00 [20:50:47]line СДАЧА: 0.00 [20:50:47]line НСП 1% : 44.25 [20:50:47]line НДС 12% : 531.04 [20:50:47]line Наличными: 5000.00 [20:50:47]line Безнал.: 0.00 [20:50:47]line Место: АЗС № 108 "Партнер Нефть" [20:50:47]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [20:50:47]line СНО: Общий режим [20:50:47]line Чек 258 14.04.2024 20:50 [20:50:47]line Смена: 116 ФФД: 1.0 [20:50:47]line ЗНМ: 0300000027 [20:50:47]line РНМ: 0000138879044617 [20:50:47]line Версия ККМ: 001 [20:50:47]line ФМ: 0000000000963154 [20:50:47]line ФД: 29348 [20:50:47]line ФПД: 34655499645800 [20:50:47]line 1/tax-web-control/client/api/v1/ticket?date=20240414T205046&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29348&fm=34655499645800&tin=02508201610067®Number=0000138879044617&sum=500000 [20:50:47]OFD Sender: Processing packet 29348 [packets to send 8, broken 7] [20:50:47]ProducePacketName [20:50:47]name=ofd_packets/00029348 [20:50:47]OFD Sender: To server: pG, [20:50:47]CommunicateWithHost lk.salyk.kg:30040 [20:50:47]ConnectInit lk.salyk.kg [20:50:47]written 0, free lines is 4095 [20:50:47]Connected sock=10 [20:50:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 4B BB 04 01 37 F1 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 02 01 00 00 F4 03 04 00 A6 41 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A4 72 00 00 35 04 06 00 1F 84 DC BE F3 68 32 42 DD D6 52 FF 15 19 [20:50:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 09 5F 47 00 5F B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A4 72 00 00 F4 03 04 00 49 EC 1B 66 B6 04 01 00 00 33 1A E4 F4 B0 37 33 F0 [20:50:47]CommunicateWithHost err = 0 [20:50:47]CheckOFDResponse [20:50:47]1017 (14) - 77093643461234 [20:50:47]1041 (16) - 0000000000963154 [20:50:47]1040 (4) - 29348 [20:50:47]1012 (4) - 14.04.2024 14:46 [20:50:47]1206 (1) - 0 [20:50:47]OFD Sender: Remove packet 29348 [20:50:47]ProducePacketName [20:50:47]name=ofd_packets/00029348 [20:50:47]NVStorageDeleteData [20:50:47]Write to MH i2c: 01 00 00 54 05 59 [20:50:47]Write i2c OK [20:50:47]MH_I2C_Read... [20:50:47]Read from MH i2c: 01 [20:50:47]MH_I2C_Read... [20:50:47]Read from MH i2c: 01 07 00 [20:50:47]MH_I2C_Read... [20:50:47]Read from MH i2c: 01 07 00 54 05 00 00 00 00 00 CD 0C 39 [20:50:47]RasterBufferAndPrint [20:50:47]line [20:50:47]line [20:50:47]line [20:50:47]line [20:50:47]line [20:50:47]written 0, free lines is 3283 [20:50:47]MH_Cut [20:50:47]Write to MH i2c: D1 01 00 5B 05 01 32 [20:50:47]Write i2c OK [20:50:47]MH_I2C_Read... [20:50:47]Read from MH i2c: D1 [20:50:47]MH_I2C_Read... [20:50:47]Read from MH i2c: D1 01 00 [20:50:47]MH_I2C_Read... [20:50:47]Read from MH i2c: D1 01 00 5B 05 00 31 [20:50:47]Write to MH i2c: 01 00 00 5C 05 61 [20:50:47]Write i2c OK [20:50:47]MH_I2C_Read... [20:50:48]OFD Sender: No OFD packet to send [20:50:48]*** Cut start [20:50:48]*** Partial cut [20:50:48]*** CUTSNS_PIN = 1 [20:50:48]*** CUTSNS_PIN = 0 [20:50:48]*** Brake cut motor [20:50:49]Read from MH i2c: 01 [20:50:49]MH_I2C_Read... [20:50:49]*** Stop cut motor [20:50:49]*** Cut end [20:50:49]Read from MH i2c: 01 07 00 [20:50:49]MH_I2C_Read... [20:50:49]Read from MH i2c: 01 07 00 5C 05 00 00 00 00 00 FF 0F 76 [20:50:49]process_action close_receipt done [20:50:49]requested_data is exist [20:50:49]produce_requested_data [20:50:49]requested_item fm.sn is exist - process it [20:50:49]wFMCommunicate request_size=4 [20:50:49]MH_SAM_APDU [20:50:49]CAPDU: 80 11 00 00 [20:50:49]Write to MH i2c: E2 08 00 5D 05 80 11 00 00 00 00 00 00 DC [20:50:49]Write i2c OK [20:50:49]MH_I2C_Read... [20:50:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:50:49]Read from MH i2c: E2 [20:50:49]MH_I2C_Read... [20:50:49]Read from MH i2c: E2 17 00 [20:50:49]MH_I2C_Read... [20:50:49]Read from MH i2c: E2 17 00 5D 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 2B [20:50:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:50:49]wFMCommunicate OK [20:50:49]requested_item fd.num is exist - process it [20:50:49]SAM_PROTO_GetFieldsCounters [20:50:49]wFMCommunicate request_size=4 [20:50:49]MH_SAM_APDU [20:50:49]CAPDU: 80 13 00 00 [20:50:49]Write to MH i2c: E2 08 00 5E 05 80 13 00 00 00 00 00 00 DF [20:50:49]Write i2c OK [20:50:49]MH_I2C_Read... [20:50:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:50:49]Read from MH i2c: E2 [20:50:49]MH_I2C_Read... [20:50:49]Read from MH i2c: E2 62 00 [20:50:49]MH_I2C_Read... [20:50:49]Read from MH i2c: E2 62 00 5E 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A4 72 00 00 0E 04 04 00 74 00 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 B0 [20:50:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A4 72 00 00 0E 04 04 00 74 00 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 [20:50:49]wFMCommunicate OK [20:50:49]SAM_PROTO_GetFieldsCounters done [20:50:49]requested_item shift.num is exist - process it [20:50:49]requested_item shift.opened is exist - process it [20:50:49]req_shift_opened [20:50:49]FM_GetShiftState [20:50:49]SAM_PROTO_GetShiftState [20:50:49]wFMCommunicate request_size=4 [20:50:49]MH_SAM_APDU [20:50:49]CAPDU: 80 13 01 00 [20:50:49]Write to MH i2c: E2 08 00 5F 05 80 13 01 00 00 00 00 00 E1 [20:50:49]Write i2c OK [20:50:49]MH_I2C_Read... [20:50:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:50:49]Read from MH i2c: E2 [20:50:49]MH_I2C_Read... [20:50:49]Read from MH i2c: E2 0E 00 [20:50:49]MH_I2C_Read... [20:50:49]Read from MH i2c: E2 0E 00 5F 05 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 8D [20:50:49]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [20:50:49]wFMCommunicate OK [20:50:49]SAM_PROTO_GetShiftState done [20:50:49]FM_GetShiftState done [20:50:49]req_shift_opened done [20:50:49]requested_item shift.open_date is exist - process it [20:50:49]req_shift_open_date [20:50:49]req_shift_open_date done [20:50:49]produce_requested_data done [20:50:49]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29348,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [20:50:49]process_action_free close_receipt [20:50:49]json_value_free [20:50:49]json_value_free done [20:50:49]process_json_proto returns [20:50:49]Send response to host [20:50:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29348,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [20:50:49]free response buf [20:50:49]execute_script done [20:50:49]execute_script returns [20:50:49]free content buf [20:50:49]Sock 9.Close socket [20:50:49]Sock 9.Thread stoped [20:50:51]accept exits with 8 [20:50:51]New connection [20:50:51]New thread 3067112804 created [20:50:51]Thread 3066969444 joined [20:50:51]Waiting for new connection... [20:50:51] Sock 8.Parse request [20:50:51]Sock 8.Check first char [20:50:51]Sock 8.First char is OK [20:50:51]request: POST /json_proto HTTP/1.0 [20:50:51]Method: POST [20:50:51]URL: /json_proto [20:50:51]Method is POST - this is cgi request [20:50:51]url: /json_proto [20:50:51]query_string will be loaded in cgi processing [20:50:51]execute_cgi json_proto POST (null) [20:50:51]execute_cgi path=json_proto method=POST [20:50:51]POST find Content-Length [20:50:51]Host: 172.17.33.3:8080 [20:50:51]Content-Length: 735 [20:50:51]Content-Type: application/json [20:50:51] [20:50:51]POST finish read [20:50:51]Found Content-Length = 735 [20:50:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 29348, "base_FM": "0000000000963154", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347747", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.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" ] } } [20:50:51]execute_script... [20:50:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 29348, "base_FM": "0000000000963154", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347747", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.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" ] } } [20:50:51]POST & json_proto [20:50:51]process_json_proto [20:50:51]json parsed OK: [20:50:51]protocol is kg_v1.0 [20:50:51]action value=close_receipt [20:50:51]process_action close_receipt [20:50:51]cmd_close_receipt [20:50:51]MH_GetDate [20:50:51]Write to MH i2c: F0 00 00 60 05 54 [20:50:51]Write i2c OK [20:50:51]MH_I2C_Read... [20:50:51]Read from MH i2c: F0 [20:50:51]MH_I2C_Read... [20:50:51]Read from MH i2c: F0 09 00 [20:50:51]MH_I2C_Read... [20:50:51]Read from MH i2c: F0 09 00 60 05 00 AC 41 1C 66 23 5B 8F 65 3E [20:50:51]GetLastDocTimeStamp 1713127846 [20:50:51]current date 1713127852 [20:50:51]FM_GetShiftState [20:50:51]SAM_PROTO_GetShiftState [20:50:51]wFMCommunicate request_size=4 [20:50:51]MH_SAM_APDU [20:50:51]CAPDU: 80 13 01 00 [20:50:51]Write to MH i2c: E2 08 00 61 05 80 13 01 00 00 00 00 00 E3 [20:50:51]Write i2c OK [20:50:51]MH_I2C_Read... [20:50:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:50:51]Read from MH i2c: E2 [20:50:51]MH_I2C_Read... [20:50:51]Read from MH i2c: E2 0E 00 [20:50:51]MH_I2C_Read... [20:50:51]Read from MH i2c: E2 0E 00 61 05 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 8F [20:50:51]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [20:50:51]wFMCommunicate OK [20:50:51]SAM_PROTO_GetShiftState done [20:50:51]FM_GetShiftState done [20:50:51]opened in 1713053951 [20:50:51]opened+sec_in_day 1713140351 [20:50:51]quantity*price = 500066 [20:50:51]sum+1 = 500068 [20:50:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.67 ИТОГО: 5000.00 НСП 1% : 44.25 НДС 12% : 531.04 Наличными: 5000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 259 14.04.2024 20:50 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФД осн.: 29348 ФМ осн.: 0000000000963154 ФМ: 0000000000963154 ФД: 29349 ФПД: 19870819840106 1/tax-web-control/client/api/v1/ticket?date=20240414T205052&type=2&operation_type=1&fn_number=0000000000963154&fd_number=29349&fm=19870819840106&tin=02508201610067®Number=0000138879044617&sum=500000 [20:50:52]StoreToDocumentArchive [20:50:52]shift 116 fd 29349 [20:50:52]save to /storage/0116/doc_00029349 [20:50:52]save last doc name /storage/0116/doc_00029349 to /storage/kkm_last_doc_name [20:50:52]save OK [20:50:52]Clear old archive folders... [20:50:52]ProcessDocumentItem done err = 0, tmpTLVsize=276 [20:50:52]tlvbuf is 00273A20 [20:50:52]SAM_PROTO_ClearQueue [20:50:52]wFMCommunicate request_size=4 [20:50:52]MH_SAM_APDU [20:50:52]CAPDU: 80 09 00 00 [20:50:52]Write to MH i2c: E2 08 00 70 05 80 09 00 00 00 00 00 00 E7 [20:50:52]Write i2c OK [20:50:52]MH_I2C_Read... [20:50:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:50:52]Read from MH i2c: E2 [20:50:52]MH_I2C_Read... [20:50:52]Read from MH i2c: E2 03 00 [20:50:52]MH_I2C_Read... [20:50:52]Read from MH i2c: E2 03 00 70 05 00 90 00 E9 [20:50:52]RAPDU: 90 00 [20:50:52]wFMCommunicate OK [20:50:52]SAM_PROTO_ClearQueue done [20:50:52]KKMCreateOFDPacket [20:50:52]OFDProtocolAddRootSTLVToBuf [20:50:52]FM_MakeSignedData [20:50:52]FM_MakeSignedData [20:50:52]SAM_PROTO_SignData [20:50:52]wFMCommunicate request_size=4 [20:50:52]MH_SAM_APDU [20:50:52]CAPDU: 80 0D 01 02 [20:50:52]Write to MH i2c: E2 08 00 71 05 80 0D 01 02 00 00 00 00 EF [20:50:52]Write i2c OK [20:50:52]MH_I2C_Read... [20:50:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:50:52]Read from MH i2c: E2 [20:50:52]MH_I2C_Read... [20:50:52]Read from MH i2c: E2 03 00 [20:50:52]MH_I2C_Read... [20:50:52]Read from MH i2c: E2 03 00 71 05 00 90 00 EA [20:50:52]RAPDU: 90 00 [20:50:52]wFMCommunicate OK [20:50:52]wFMCommunicate request_size=255 [20:50:52]MH_SAM_APDU [20:50:52]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 02 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 03 01 00 00 F4 03 04 00 AC 41 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 A4 72 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 30 30 30 30 [20:50:52]Write to MH i2c: E2 02 01 72 05 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 02 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 03 01 00 00 F4 03 04 00 AC 41 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 A4 72 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 30 30 30 30 00 00 CC [20:50:52]Write i2c OK [20:50:52]MH_I2C_Read... [20:50:53]OFD Sender: No OFD packet to send [20:50:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:50:53]Read from MH i2c: E2 [20:50:53]MH_I2C_Read... [20:50:53]Read from MH i2c: E2 03 00 [20:50:53]MH_I2C_Read... [20:50:53]Read from MH i2c: E2 03 00 72 05 00 90 00 EB [20:50:53]RAPDU: 90 00 [20:50:53]wFMCommunicate OK [20:50:53]wFMCommunicate request_size=35 [20:50:53]MH_SAM_APDU [20:50:53]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A5 72 00 00 35 04 06 00 12 12 89 28 70 6A [20:50:53]Write to MH i2c: E2 26 00 73 05 80 0D 02 02 1E 00 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A5 72 00 00 35 04 06 00 12 12 89 28 70 6A 00 00 A7 [20:50:53]Write i2c OK [20:50:53]MH_I2C_Read... [20:50:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:50:53]Read from MH i2c: E2 [20:50:53]MH_I2C_Read... [20:50:53]Read from MH i2c: E2 03 00 [20:50:53]MH_I2C_Read... [20:50:53]Read from MH i2c: E2 03 00 73 05 00 90 00 EC [20:50:53]RAPDU: 90 00 [20:50:53]wFMCommunicate OK [20:50:53]wFMCommunicate request_size=4 [20:50:53]MH_SAM_APDU [20:50:53]CAPDU: 80 0D 03 02 [20:50:53]Write to MH i2c: E2 08 00 74 05 80 0D 03 02 00 00 00 00 F4 [20:50:53]Write i2c OK [20:50:53]MH_I2C_Read... [20:50:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:50:53]Read from MH i2c: E2 [20:50:53]MH_I2C_Read... [20:50:53]Read from MH i2c: E2 0B 00 [20:50:53]MH_I2C_Read... [20:50:53]Read from MH i2c: E2 0B 00 74 05 00 05 75 6F 60 8C 8C 71 5C 90 00 23 [20:50:53]RAPDU: 05 75 6F 60 8C 8C 71 5C 90 00 [20:50:53]wFMCommunicate OK [20:50:53]SAM_PROTO_SignData done [20:50:53]FM_MakeSignedData done [20:50:53]CreateOFDProtocolMessage [20:50:53]wFMCommunicate request_size=4 [20:50:53]MH_SAM_APDU [20:50:53]CAPDU: 80 11 00 00 [20:50:53]Write to MH i2c: E2 08 00 75 05 80 11 00 00 00 00 00 00 F4 [20:50:53]Write i2c OK [20:50:53]MH_I2C_Read... [20:50:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:50:53]Read from MH i2c: E2 [20:50:53]MH_I2C_Read... [20:50:53]Read from MH i2c: E2 17 00 [20:50:53]MH_I2C_Read... [20:50:53]Read from MH i2c: E2 17 00 75 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 43 [20:50:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:50:53]wFMCommunicate OK [20:50:53]CreateOFDProtocolMessage done [20:50:53]OFDSenderStorePacket 29349 [20:50:53]StoreOFDPacket docnum=29349 [20:50:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 28 01 00 00 84 E8 20 01 94 5E 5A 03 01 00 03 00 14 01 1E 04 01 00 02 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 03 01 00 00 F4 03 04 00 AC 41 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 A4 72 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A5 72 00 00 35 04 06 00 12 12 89 28 70 6A 05 75 6F 60 8C 8C 71 5C [20:50:53]CheckFolder [20:50:53]dirname=/storage/ofd_packets [20:50:53]CheckFolder done [20:50:53]ProducePacketName [20:50:53]name=ofd_packets/00029349 [20:50:53]NVStorageSaveData ofd_packets/00029349 [20:50:53]File name is /storage/ofd_packets/00029349 [20:50:53]Write 326 bytes [20:50:53]NVStorageSaveData done [20:50:53]OFDSenderStorePacket done [20:50:53]KKMCreateOFDPacket done [20:50:53]NVStorageSaveData kkm_last_timestamp [20:50:53]File name is /storage/kkm_last_timestamp [20:50:53]Write 4 bytes [20:50:53]NVStorageSaveData done [20:50:53]ExternCall_PrintAddStr [20:50:53]wPrintStart [20:50:53]Write to MH i2c: 01 00 00 76 05 7B [20:50:53]Write i2c OK [20:50:53]MH_I2C_Read... [20:50:53]Read from MH i2c: 01 [20:50:53]MH_I2C_Read... [20:50:53]Read from MH i2c: 01 07 00 [20:50:53]MH_I2C_Read... [20:50:53]Read from MH i2c: 01 07 00 76 05 00 00 00 00 00 FF 0F 90 [20:50:53]RasterBufferAndPrint [20:50:53]line Счет N : (1)347747 [20:50:53]line ИНН: 02508201610067 [20:50:53]line Контрольно-Кассовый Чек [20:50:53]line ВОЗВРАТ ПРОДАЖИ [20:50:53]line ТРК (МРК, ГНК) : 21 [20:50:53]line Товар: 2710194210 [20:50:53]line ДТ-К-5 [20:50:53]line 69.070 * 72.40 [20:50:53]line = 5000.67 [20:50:53]line НДС 12% НСП 1% [20:50:53]line > о реализуемом товаре [20:50:53]line ОКРУГЛЕНИЕ: -0.67 [20:50:53]line ИТОГО: 5000.00 [20:50:53]line НСП 1% : 44.25 [20:50:53]line НДС 12% : 531.04 [20:50:53]line Наличными: 5000.00 [20:50:53]line Безнал.: 0.00 [20:50:53]line Место: АЗС № 108 "Партнер Нефть" [20:50:53]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [20:50:53]line СНО: Общий режим [20:50:53]line Чек 259 14.04.2024 20:50 [20:50:53]line Смена: 116 ФФД: 1.0 [20:50:53]line ЗНМ: 0300000027 [20:50:53]line РНМ: 0000138879044617 [20:50:53]line Версия ККМ: 001 [20:50:53]line ФД осн.: 29348 [20:50:53]line ФМ осн.: 0000000000963154 [20:50:53]line ФМ: 0000000000963154 [20:50:53]line ФД: 29349 [20:50:53]line ФПД: 19870819840106 [20:50:53]line 1/tax-web-control/client/api/v1/ticket?date=20240414T205052&type=2&operation_type=1&fn_number=0000000000963154&fd_number=29349&fm=19870819840106&tin=02508201610067®Number=0000138879044617&sum=500000 [20:50:53]OFD Sender: Processing packet 29349 [packets to send 8, broken 7] [20:50:53]ProducePacketName [20:50:53]name=ofd_packets/00029349 [20:50:53]OFD Sender: To server: pG, [20:50:53]CommunicateWithHost lk.salyk.kg:30040 [20:50:53]ConnectInit lk.salyk.kg [20:50:53]written 0, free lines is 4095 [20:50:53]Connected sock=11 [20:50:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 28 01 00 00 84 E8 20 01 94 5E 5A 03 01 00 03 00 14 01 1E 04 01 00 02 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 03 01 00 00 F4 03 04 00 AC 41 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 A4 72 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A5 72 00 00 35 04 06 00 12 12 89 28 70 6A 05 75 6F 60 8C 8C 71 5C [20:50:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 79 B6 47 00 8F 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 39 36 33 31 35 34 10 04 04 00 A5 72 00 00 F4 03 04 00 4F EC 1B 66 B6 04 01 00 00 3B 07 96 7D BD CC 89 E1 [20:50:54]CommunicateWithHost err = 0 [20:50:54]CheckOFDResponse [20:50:54]1017 (14) - 77093643461234 [20:50:54]1041 (16) - 0000000000963154 [20:50:54]1040 (4) - 29349 [20:50:54]1012 (4) - 14.04.2024 14:46 [20:50:54]1206 (1) - 0 [20:50:54]OFD Sender: Remove packet 29349 [20:50:54]ProducePacketName [20:50:54]name=ofd_packets/00029349 [20:50:54]NVStorageDeleteData [20:50:54]Write to MH i2c: 01 00 00 A0 05 A5 [20:50:54]Write i2c OK [20:50:54]MH_I2C_Read... [20:50:54]Read from MH i2c: 01 [20:50:54]MH_I2C_Read... [20:50:54]Read from MH i2c: 01 07 00 [20:50:54]MH_I2C_Read... [20:50:54]Read from MH i2c: 01 07 00 A0 05 00 00 00 00 00 DB 0C 93 [20:50:54]RasterBufferAndPrint [20:50:54]line [20:50:54]line [20:50:54]line [20:50:54]line [20:50:54]line [20:50:54]written 0, free lines is 3304 [20:50:54]MH_Cut [20:50:54]Write to MH i2c: D1 01 00 A7 05 01 7E [20:50:54]Write i2c OK [20:50:54]MH_I2C_Read... [20:50:54]Read from MH i2c: D1 [20:50:54]MH_I2C_Read... [20:50:54]Read from MH i2c: D1 01 00 [20:50:54]MH_I2C_Read... [20:50:54]Read from MH i2c: D1 01 00 A7 05 00 7D [20:50:54]Write to MH i2c: 01 00 00 A8 05 AD [20:50:54]Write i2c OK [20:50:54]MH_I2C_Read... [20:50:54]OFD Sender: No OFD packet to send [20:50:55]*** Cut start [20:50:55]*** Partial cut [20:50:55]*** CUTSNS_PIN = 1 [20:50:55]*** CUTSNS_PIN = 0 [20:50:55]*** Brake cut motor [20:50:55]Read from MH i2c: 01 [20:50:55]MH_I2C_Read... [20:50:55]*** Stop cut motor [20:50:55]*** Cut end [20:50:55]Read from MH i2c: 01 07 00 [20:50:55]MH_I2C_Read... [20:50:55]Read from MH i2c: 01 07 00 A8 05 00 00 00 00 00 FF 0F C2 [20:50:55]process_action close_receipt done [20:50:55]requested_data is exist [20:50:55]produce_requested_data [20:50:55]requested_item fm.sn is exist - process it [20:50:55]wFMCommunicate request_size=4 [20:50:55]MH_SAM_APDU [20:50:55]CAPDU: 80 11 00 00 [20:50:55]Write to MH i2c: E2 08 00 A9 05 80 11 00 00 00 00 00 00 28 [20:50:55]Write i2c OK [20:50:55]MH_I2C_Read... [20:50:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:50:55]Read from MH i2c: E2 [20:50:55]MH_I2C_Read... [20:50:55]Read from MH i2c: E2 17 00 [20:50:55]MH_I2C_Read... [20:50:55]Read from MH i2c: E2 17 00 A9 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 77 [20:50:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:50:55]wFMCommunicate OK [20:50:55]requested_item fd.num is exist - process it [20:50:55]SAM_PROTO_GetFieldsCounters [20:50:55]wFMCommunicate request_size=4 [20:50:55]MH_SAM_APDU [20:50:55]CAPDU: 80 13 00 00 [20:50:55]Write to MH i2c: E2 08 00 AA 05 80 13 00 00 00 00 00 00 2B [20:50:55]Write i2c OK [20:50:55]MH_I2C_Read... [20:50:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:50:55]Read from MH i2c: E2 [20:50:55]MH_I2C_Read... [20:50:55]Read from MH i2c: E2 62 00 [20:50:55]MH_I2C_Read... [20:50:55]Read from MH i2c: E2 62 00 AA 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A5 72 00 00 0E 04 04 00 74 00 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 00 [20:50:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A5 72 00 00 0E 04 04 00 74 00 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 [20:50:55]wFMCommunicate OK [20:50:55]SAM_PROTO_GetFieldsCounters done [20:50:55]requested_item shift.num is exist - process it [20:50:55]requested_item shift.opened is exist - process it [20:50:55]req_shift_opened [20:50:55]FM_GetShiftState [20:50:55]SAM_PROTO_GetShiftState [20:50:55]wFMCommunicate request_size=4 [20:50:55]MH_SAM_APDU [20:50:55]CAPDU: 80 13 01 00 [20:50:55]Write to MH i2c: E2 08 00 AB 05 80 13 01 00 00 00 00 00 2D [20:50:55]Write i2c OK [20:50:55]MH_I2C_Read... [20:50:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:50:55]Read from MH i2c: E2 [20:50:55]MH_I2C_Read... [20:50:55]Read from MH i2c: E2 0E 00 [20:50:55]MH_I2C_Read... [20:50:55]Read from MH i2c: E2 0E 00 AB 05 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 D9 [20:50:55]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [20:50:55]wFMCommunicate OK [20:50:55]SAM_PROTO_GetShiftState done [20:50:55]FM_GetShiftState done [20:50:55]req_shift_opened done [20:50:55]requested_item shift.open_date is exist - process it [20:50:55]req_shift_open_date [20:50:55]req_shift_open_date done [20:50:55]produce_requested_data done [20:50:55]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29349,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [20:50:55]process_action_free close_receipt [20:50:55]json_value_free [20:50:55]json_value_free done [20:50:55]process_json_proto returns [20:50:55]Send response to host [20:50:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29349,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [20:50:55]free response buf [20:50:55]execute_script done [20:50:55]execute_script returns [20:50:55]free content buf [20:50:55]Sock 8.Close socket [20:50:55]Sock 8.Thread stoped [20:50:59]OFD Sender: No OFD packet to send [20:51:04]OFD Sender: No OFD packet to send [20:51:09]OFD Sender: No OFD packet to send [20:51:10]accept exits with 9 [20:51:10]New connection [20:51:10]New thread 3066969444 created [20:51:10]Thread 3067112804 joined [20:51:10]Waiting for new connection... [20:51:10] Sock 9.Parse request [20:51:10]Sock 9.Check first char [20:51:10]Sock 9.First char is OK [20:51:10]request: POST /json_proto HTTP/1.0 [20:51:10]Method: POST [20:51:10]URL: /json_proto [20:51:10]Method is POST - this is cgi request [20:51:10]url: /json_proto [20:51:10]query_string will be loaded in cgi processing [20:51:10]execute_cgi json_proto POST (null) [20:51:10]execute_cgi path=json_proto method=POST [20:51:10]POST find Content-Length [20:51:10]Host: 172.17.33.3:8080 [20:51:10]Content-Length: 675 [20:51:10]Content-Type: application/json [20:51:10] [20:51:10]POST finish read [20:51:10]Found Content-Length = 675 [20:51:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347746", "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" ] } } [20:51:10]execute_script... [20:51: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)347746", "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" ] } } [20:51:10]POST & json_proto [20:51:10]process_json_proto [20:51:10]json parsed OK: [20:51:10]protocol is kg_v1.0 [20:51:10]action value=close_receipt [20:51:10]process_action close_receipt [20:51:10]cmd_close_receipt [20:51:10]MH_GetDate [20:51:10]Write to MH i2c: F0 00 00 AC 05 A0 [20:51:10]Write i2c OK [20:51:10]MH_I2C_Read... [20:51:10]Read from MH i2c: F0 [20:51:10]MH_I2C_Read... [20:51:10]Read from MH i2c: F0 09 00 [20:51:10]MH_I2C_Read... [20:51:10]Read from MH i2c: F0 09 00 AC 05 00 BF 41 1C 66 23 5B 8F 65 9D [20:51:10]GetLastDocTimeStamp 1713127852 [20:51:10]current date 1713127871 [20:51:10]FM_GetShiftState [20:51:10]SAM_PROTO_GetShiftState [20:51:10]wFMCommunicate request_size=4 [20:51:10]MH_SAM_APDU [20:51:10]CAPDU: 80 13 01 00 [20:51:10]Write to MH i2c: E2 08 00 AD 05 80 13 01 00 00 00 00 00 2F [20:51:10]Write i2c OK [20:51:10]MH_I2C_Read... [20:51:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:51:10]Read from MH i2c: E2 [20:51:10]MH_I2C_Read... [20:51:10]Read from MH i2c: E2 0E 00 [20:51:10]MH_I2C_Read... [20:51:10]Read from MH i2c: E2 0E 00 AD 05 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 DB [20:51:10]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [20:51:10]wFMCommunicate OK [20:51:10]SAM_PROTO_GetShiftState done [20:51:10]FM_GetShiftState done [20:51:10]opened in 1713053951 [20:51:10]opened+sec_in_day 1713140351 [20:51:10]quantity*price = 100039 [20:51:10]sum+1 = 100041 [20:51: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 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 260 14.04.2024 20:51 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29350 ФПД: 261902848482772 1/tax-web-control/client/api/v1/ticket?date=20240414T205111&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29350&fm=261902848482772&tin=02508201610067®Number=0000138879044617&sum=100000 [20:51:11]StoreToDocumentArchive [20:51:11]shift 116 fd 29350 [20:51:11]save to /storage/0116/doc_00029350 [20:51:11]save last doc name /storage/0116/doc_00029350 to /storage/kkm_last_doc_name [20:51:11]save OK [20:51:11]Clear old archive folders... [20:51:11]ProcessDocumentItem done err = 0, tmpTLVsize=252 [20:51:11]tlvbuf is 00207D80 [20:51:11]SAM_PROTO_ClearQueue [20:51:11]wFMCommunicate request_size=4 [20:51:11]MH_SAM_APDU [20:51:11]CAPDU: 80 09 00 00 [20:51:11]Write to MH i2c: E2 08 00 BA 05 80 09 00 00 00 00 00 00 31 [20:51:11]Write i2c OK [20:51:11]MH_I2C_Read... [20:51:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:51:11]Read from MH i2c: E2 [20:51:11]MH_I2C_Read... [20:51:11]Read from MH i2c: E2 03 00 [20:51:11]MH_I2C_Read... [20:51:11]Read from MH i2c: E2 03 00 BA 05 00 90 00 33 [20:51:11]RAPDU: 90 00 [20:51:11]wFMCommunicate OK [20:51:11]SAM_PROTO_ClearQueue done [20:51:11]KKMCreateOFDPacket [20:51:11]OFDProtocolAddRootSTLVToBuf [20:51:11]FM_MakeSignedData [20:51:11]FM_MakeSignedData [20:51:11]SAM_PROTO_SignData [20:51:11]wFMCommunicate request_size=4 [20:51:11]MH_SAM_APDU [20:51:11]CAPDU: 80 0D 01 02 [20:51:11]Write to MH i2c: E2 08 00 BB 05 80 0D 01 02 00 00 00 00 39 [20:51:11]Write i2c OK [20:51:11]MH_I2C_Read... [20:51:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:51:11]Read from MH i2c: E2 [20:51:11]MH_I2C_Read... [20:51:11]Read from MH i2c: E2 03 00 [20:51:11]MH_I2C_Read... [20:51:11]Read from MH i2c: E2 03 00 BB 05 00 90 00 34 [20:51:11]RAPDU: 90 00 [20:51:11]wFMCommunicate OK [20:51:11]wFMCommunicate request_size=255 [20:51:11]MH_SAM_APDU [20:51: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 2D 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 04 01 00 00 F4 03 04 00 BF 41 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A6 72 00 00 35 04 06 00 [20:51:11]Write to MH i2c: E2 02 01 BC 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 2D 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 04 01 00 00 F4 03 04 00 BF 41 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A6 72 00 00 35 04 06 00 00 00 89 [20:51:11]Write i2c OK [20:51:11]MH_I2C_Read... [20:51:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:51:11]Read from MH i2c: E2 [20:51:11]MH_I2C_Read... [20:51:11]Read from MH i2c: E2 03 00 [20:51:11]MH_I2C_Read... [20:51:11]Read from MH i2c: E2 03 00 BC 05 00 90 00 35 [20:51:11]RAPDU: 90 00 [20:51:11]wFMCommunicate OK [20:51:11]wFMCommunicate request_size=11 [20:51:11]MH_SAM_APDU [20:51:11]CAPDU: 80 0D 02 02 06 EE 33 02 3F DD D4 [20:51:11]Write to MH i2c: E2 0E 00 BD 05 80 0D 02 02 06 00 EE 33 02 3F DD D4 00 00 5B [20:51:11]Write i2c OK [20:51:11]MH_I2C_Read... [20:51:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:51:11]Read from MH i2c: E2 [20:51:11]MH_I2C_Read... [20:51:11]Read from MH i2c: E2 03 00 [20:51:11]MH_I2C_Read... [20:51:11]Read from MH i2c: E2 03 00 BD 05 00 90 00 36 [20:51:11]RAPDU: 90 00 [20:51:11]wFMCommunicate OK [20:51:11]wFMCommunicate request_size=4 [20:51:11]MH_SAM_APDU [20:51:11]CAPDU: 80 0D 03 02 [20:51:11]Write to MH i2c: E2 08 00 BE 05 80 0D 03 02 00 00 00 00 3E [20:51:11]Write i2c OK [20:51:11]MH_I2C_Read... [20:51:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:51:11]Read from MH i2c: E2 [20:51:11]MH_I2C_Read... [20:51:11]Read from MH i2c: E2 0B 00 [20:51:11]MH_I2C_Read... [20:51:11]Read from MH i2c: E2 0B 00 BE 05 00 13 2D 95 4C 16 87 02 D3 90 00 D2 [20:51:11]RAPDU: 13 2D 95 4C 16 87 02 D3 90 00 [20:51:11]wFMCommunicate OK [20:51:11]SAM_PROTO_SignData done [20:51:11]FM_MakeSignedData done [20:51:11]CreateOFDProtocolMessage [20:51:11]wFMCommunicate request_size=4 [20:51:11]MH_SAM_APDU [20:51:11]CAPDU: 80 11 00 00 [20:51:11]Write to MH i2c: E2 08 00 BF 05 80 11 00 00 00 00 00 00 3E [20:51:11]Write i2c OK [20:51:11]MH_I2C_Read... [20:51:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:51:11]Read from MH i2c: E2 [20:51:11]MH_I2C_Read... [20:51:11]Read from MH i2c: E2 17 00 [20:51:11]MH_I2C_Read... [20:51:11]Read from MH i2c: E2 17 00 BF 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 8D [20:51:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:51:11]wFMCommunicate OK [20:51:11]CreateOFDProtocolMessage done [20:51:11]OFDSenderStorePacket 29350 [20:51:11]StoreOFDPacket docnum=29350 [20:51:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 D0 60 08 01 44 1E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 04 01 00 00 F4 03 04 00 BF 41 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A6 72 00 00 35 04 06 00 EE 33 02 3F DD D4 13 2D 95 4C 16 87 02 D3 [20:51:11]CheckFolder [20:51:11]dirname=/storage/ofd_packets [20:51:11]CheckFolder done [20:51:11]ProducePacketName [20:51:11]name=ofd_packets/00029350 [20:51:11]NVStorageSaveData ofd_packets/00029350 [20:51:11]File name is /storage/ofd_packets/00029350 [20:51:11]Write 302 bytes [20:51:11]NVStorageSaveData done [20:51:11]OFDSenderStorePacket done [20:51:11]KKMCreateOFDPacket done [20:51:11]NVStorageSaveData kkm_last_timestamp [20:51:11]File name is /storage/kkm_last_timestamp [20:51:11]Write 4 bytes [20:51:11]NVStorageSaveData done [20:51:11]ExternCall_PrintAddStr [20:51:11]wPrintStart [20:51:11]Write to MH i2c: 01 00 00 C0 05 C5 [20:51:11]Write i2c OK [20:51:11]MH_I2C_Read... [20:51:11]Read from MH i2c: 01 [20:51:11]MH_I2C_Read... [20:51:11]Read from MH i2c: 01 07 00 [20:51:11]MH_I2C_Read... [20:51:11]Read from MH i2c: 01 07 00 C0 05 00 00 00 00 00 FF 0F DA [20:51:11]RasterBufferAndPrint [20:51:11]line Счет N : (1)347746 [20:51:11]line ИНН: 02508201610067 [20:51:11]line Контрольно-Кассовый Чек [20:51:11]line ПРОДАЖА [20:51:11]line ТРК (МРК, ГНК) : 41 [20:51:11]line Товар: 2710124130 [20:51:11]line SUPER-92-К-5 [20:51:11]line 15.320 * 65.30 [20:51:11]line = 1000.40 [20:51:11]line НДС 12% НСП 1% [20:51:11]line > о реализуемом товаре [20:51:11]line ОКРУГЛЕНИЕ: -0.40 [20:51:11]line ИТОГО: 1000.00 [20:51:11]line Внесено: 1000.00 [20:51:11]line СДАЧА: 0.00 [20:51:11]line НСП 1% : 8.85 [20:51:11]line НДС 12% : 106.24 [20:51:11]line Наличными: 1000.00 [20:51:11]line Безнал.: 0.00 [20:51:11]line Место: АЗС № 108 "Партнер Нефть" [20:51:11]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [20:51:11]line СНО: Общий режим [20:51:11]line Чек 260 14.04.2024 20:51 [20:51:11]line Смена: 116 ФФД: 1.0 [20:51:11]line ЗНМ: 0300000027 [20:51:11]line РНМ: 0000138879044617 [20:51:11]line Версия ККМ: 001 [20:51:11]line ФМ: 0000000000963154 [20:51:11]line ФД: 29350 [20:51:11]line ФПД: 261902848482772 [20:51:11]line 1/tax-web-control/client/api/v1/ticket?date=20240414T205111&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29350&fm=261902848482772&tin=02508201610067®Number=0000138879044617&sum=100000 [20:51:11]written 0, free lines is 4095 [20:51:11]OFD Sender: Processing packet 29350 [packets to send 8, broken 7] [20:51:11]ProducePacketName [20:51:11]name=ofd_packets/00029350 [20:51:11]OFD Sender: To server: pG, [20:51:11]CommunicateWithHost lk.salyk.kg:30040 [20:51:11]ConnectInit lk.salyk.kg [20:51:11]Connected sock=10 [20:51:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 D0 60 08 01 44 1E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 04 01 00 00 F4 03 04 00 BF 41 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A6 72 00 00 35 04 06 00 EE 33 02 3F DD D4 13 2D 95 4C 16 87 02 D3 [20:51:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 84 2E 47 00 6D CB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A6 72 00 00 F4 03 04 00 61 EC 1B 66 B6 04 01 00 00 3B F5 F9 3B 00 67 86 24 [20:51:12]CommunicateWithHost err = 0 [20:51:12]CheckOFDResponse [20:51:12]1017 (14) - 77093643461234 [20:51:12]1041 (16) - 0000000000963154 [20:51:12]1040 (4) - 29350 [20:51:12]1012 (4) - 14.04.2024 14:46 [20:51:12]1206 (1) - 0 [20:51:12]OFD Sender: Remove packet 29350 [20:51:12]ProducePacketName [20:51:12]name=ofd_packets/00029350 [20:51:12]NVStorageDeleteData [20:51:12]Write to MH i2c: 01 00 00 EA 05 EF [20:51:12]Write i2c OK [20:51:12]MH_I2C_Read... [20:51:12]Read from MH i2c: 01 [20:51:12]MH_I2C_Read... [20:51:12]Read from MH i2c: 01 07 00 [20:51:12]MH_I2C_Read... [20:51:12]Read from MH i2c: 01 07 00 EA 05 00 00 00 00 00 E9 0C EB [20:51:12]RasterBufferAndPrint [20:51:12]line [20:51:12]line [20:51:12]line [20:51:12]line [20:51:12]line [20:51:12]written 0, free lines is 3313 [20:51:12]MH_Cut [20:51:12]Write to MH i2c: D1 01 00 F1 05 01 C8 [20:51:12]Write i2c OK [20:51:12]MH_I2C_Read... [20:51:12]Read from MH i2c: D1 [20:51:12]MH_I2C_Read... [20:51:12]Read from MH i2c: D1 01 00 [20:51:12]MH_I2C_Read... [20:51:12]Read from MH i2c: D1 01 00 F1 05 00 C7 [20:51:12]Write to MH i2c: 01 00 00 F2 05 F7 [20:51:12]Write i2c OK [20:51:12]MH_I2C_Read... [20:51:12]OFD Sender: No OFD packet to send [20:51:13]*** Cut start [20:51:13]*** Partial cut [20:51:13]*** CUTSNS_PIN = 1 [20:51:13]*** CUTSNS_PIN = 0 [20:51:13]*** Brake cut motor [20:51:13]Read from MH i2c: 01 [20:51:13]MH_I2C_Read... [20:51:13]*** Stop cut motor [20:51:13]*** Cut end [20:51:13]Read from MH i2c: 01 07 00 [20:51:13]MH_I2C_Read... [20:51:13]Read from MH i2c: 01 07 00 F2 05 00 00 00 00 00 FF 0F 0C [20:51:13]process_action close_receipt done [20:51:13]requested_data is exist [20:51:13]produce_requested_data [20:51:13]requested_item fm.sn is exist - process it [20:51:13]wFMCommunicate request_size=4 [20:51:13]MH_SAM_APDU [20:51:13]CAPDU: 80 11 00 00 [20:51:13]Write to MH i2c: E2 08 00 F3 05 80 11 00 00 00 00 00 00 72 [20:51:13]Write i2c OK [20:51:13]MH_I2C_Read... [20:51:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:51:13]Read from MH i2c: E2 [20:51:13]MH_I2C_Read... [20:51:13]Read from MH i2c: E2 17 00 [20:51:13]MH_I2C_Read... [20:51: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 39 36 33 31 35 34 90 00 C1 [20:51:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:51:13]wFMCommunicate OK [20:51:13]requested_item fd.num is exist - process it [20:51:13]SAM_PROTO_GetFieldsCounters [20:51:13]wFMCommunicate request_size=4 [20:51:13]MH_SAM_APDU [20:51:13]CAPDU: 80 13 00 00 [20:51:13]Write to MH i2c: E2 08 00 F4 05 80 13 00 00 00 00 00 00 75 [20:51:13]Write i2c OK [20:51:13]MH_I2C_Read... [20:51:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:51:13]Read from MH i2c: E2 [20:51:13]MH_I2C_Read... [20:51:13]Read from MH i2c: E2 62 00 [20:51:13]MH_I2C_Read... [20:51:13]Read from MH i2c: E2 62 00 F4 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A6 72 00 00 0E 04 04 00 74 00 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 4E [20:51:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A6 72 00 00 0E 04 04 00 74 00 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 [20:51:13]wFMCommunicate OK [20:51:13]SAM_PROTO_GetFieldsCounters done [20:51:13]requested_item shift.num is exist - process it [20:51:13]requested_item shift.opened is exist - process it [20:51:13]req_shift_opened [20:51:13]FM_GetShiftState [20:51:13]SAM_PROTO_GetShiftState [20:51:13]wFMCommunicate request_size=4 [20:51:13]MH_SAM_APDU [20:51:13]CAPDU: 80 13 01 00 [20:51:13]Write to MH i2c: E2 08 00 F5 05 80 13 01 00 00 00 00 00 77 [20:51:13]Write i2c OK [20:51:13]MH_I2C_Read... [20:51:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:51:13]Read from MH i2c: E2 [20:51:13]MH_I2C_Read... [20:51:13]Read from MH i2c: E2 0E 00 [20:51:13]MH_I2C_Read... [20:51:13]Read from MH i2c: E2 0E 00 F5 05 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 23 [20:51:13]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [20:51:13]wFMCommunicate OK [20:51:13]SAM_PROTO_GetShiftState done [20:51:13]FM_GetShiftState done [20:51:13]req_shift_opened done [20:51:13]requested_item shift.open_date is exist - process it [20:51:13]req_shift_open_date [20:51:13]req_shift_open_date done [20:51:13]produce_requested_data done [20:51:13]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29350,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [20:51:13]process_action_free close_receipt [20:51:13]json_value_free [20:51:13]json_value_free done [20:51:13]process_json_proto returns [20:51:13]Send response to host [20:51:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29350,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [20:51:13]free response buf [20:51:13]execute_script done [20:51:13]execute_script returns [20:51:13]free content buf [20:51:13]Sock 9.Close socket [20:51:13]Sock 9.Thread stoped [20:51:17]OFD Sender: No OFD packet to send [20:51:22]OFD Sender: No OFD packet to send [20:51:27]OFD Sender: No OFD packet to send [20:51:32]OFD Sender: No OFD packet to send [20:51:37]OFD Sender: No OFD packet to send [20:51:42]OFD Sender: No OFD packet to send [20:51:47]OFD Sender: No OFD packet to send [20:51:52]OFD Sender: No OFD packet to send [20:51:57]OFD Sender: No OFD packet to send [20:52:02]OFD Sender: No OFD packet to send [20:52:07]OFD Sender: No OFD packet to send [20:52:12]OFD Sender: No OFD packet to send [20:52:17]OFD Sender: No OFD packet to send [20:52:22]OFD Sender: No OFD packet to send [20:52:27]OFD Sender: No OFD packet to send [20:52:32]OFD Sender: No OFD packet to send [20:52:37]OFD Sender: No OFD packet to send [20:52:42]OFD Sender: No OFD packet to send [20:52:45]accept exits with 8 [20:52:45]New connection [20:52:45]New thread 3067112804 created [20:52:45]Thread 3066969444 joined [20:52:45]Waiting for new connection... [20:52:45] Sock 8.Parse request [20:52:45]Sock 8.Check first char [20:52:45]Sock 8.First char is OK [20:52:45]request: POST /json_proto HTTP/1.0 [20:52:45]Method: POST [20:52:45]URL: /json_proto [20:52:45]Method is POST - this is cgi request [20:52:45]url: /json_proto [20:52:45]query_string will be loaded in cgi processing [20:52:45]execute_cgi json_proto POST (null) [20:52:45]execute_cgi path=json_proto method=POST [20:52:45]POST find Content-Length [20:52:45]Host: 172.17.33.3:8080 [20:52:45]Content-Length: 685 [20:52:45]Content-Type: application/json [20:52:45] [20:52:45]POST finish read [20:52:45]Found Content-Length = 685 [20:52:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347748", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 45.000, "sum" : 1480.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1480.00, "total" : 1480.00, "payments": [ { "type": 0, "sum" : 1480.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:52:45]execute_script... [20:52: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)347748", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 45.000, "sum" : 1480.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1480.00, "total" : 1480.00, "payments": [ { "type": 0, "sum" : 1480.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:52:45]POST & json_proto [20:52:45]process_json_proto [20:52:45]json parsed OK: [20:52:45]protocol is kg_v1.0 [20:52:45]action value=close_receipt [20:52:45]process_action close_receipt [20:52:45]cmd_close_receipt [20:52:45]MH_GetDate [20:52:45]Write to MH i2c: F0 00 00 F6 05 EA [20:52:45]Write i2c OK [20:52:45]MH_I2C_Read... [20:52:45]Read from MH i2c: F0 [20:52:45]MH_I2C_Read... [20:52:45]Read from MH i2c: F0 09 00 [20:52:45]MH_I2C_Read... [20:52:45]Read from MH i2c: F0 09 00 F6 05 00 1E 42 1C 66 23 5B 8F 65 47 [20:52:45]GetLastDocTimeStamp 1713127871 [20:52:45]current date 1713127966 [20:52:45]FM_GetShiftState [20:52:45]SAM_PROTO_GetShiftState [20:52:45]wFMCommunicate request_size=4 [20:52:45]MH_SAM_APDU [20:52:45]CAPDU: 80 13 01 00 [20:52:45]Write to MH i2c: E2 08 00 F7 05 80 13 01 00 00 00 00 00 79 [20:52:45]Write i2c OK [20:52:45]MH_I2C_Read... [20:52:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:52:45]Read from MH i2c: E2 [20:52:45]MH_I2C_Read... [20:52:45]Read from MH i2c: E2 0E 00 [20:52:45]MH_I2C_Read... [20:52:45]Read from MH i2c: E2 0E 00 F7 05 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 25 [20:52:45]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [20:52:45]wFMCommunicate OK [20:52:45]SAM_PROTO_GetShiftState done [20:52:45]FM_GetShiftState done [20:52:45]opened in 1713053951 [20:52:45]opened+sec_in_day 1713140351 [20:52:45]quantity*price = 148050 [20:52:45]sum+1 = 148051 [20:52:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 1480.00 Внесено: 1480.00 СДАЧА: 0.00 НСП 1% : 13.10 НДС 12% : 157.22 Наличными: 1480.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 261 14.04.2024 20:52 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29351 ФПД: 146189718147325 1/tax-web-control/client/api/v1/ticket?date=20240414T205246&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29351&fm=146189718147325&tin=02508201610067®Number=0000138879044617&sum=148000 [20:52:46]StoreToDocumentArchive [20:52:46]shift 116 fd 29351 [20:52:46]save to /storage/0116/doc_00029351 [20:52:46]save last doc name /storage/0116/doc_00029351 to /storage/kkm_last_doc_name [20:52:46]save OK [20:52:46]Clear old archive folders... [20:52:46]ProcessDocumentItem done err = 0, tmpTLVsize=250 [20:52:46]tlvbuf is 00254440 [20:52:46]SAM_PROTO_ClearQueue [20:52:46]wFMCommunicate request_size=4 [20:52:46]MH_SAM_APDU [20:52:46]CAPDU: 80 09 00 00 [20:52:46]Write to MH i2c: E2 08 00 04 06 80 09 00 00 00 00 00 00 7C [20:52:46]Write i2c OK [20:52:46]MH_I2C_Read... [20:52:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:52:46]Read from MH i2c: E2 [20:52:46]MH_I2C_Read... [20:52:46]Read from MH i2c: E2 03 00 [20:52:46]MH_I2C_Read... [20:52:46]Read from MH i2c: E2 03 00 04 06 00 90 00 7E [20:52:46]RAPDU: 90 00 [20:52:46]wFMCommunicate OK [20:52:46]SAM_PROTO_ClearQueue done [20:52:46]KKMCreateOFDPacket [20:52:46]OFDProtocolAddRootSTLVToBuf [20:52:46]FM_MakeSignedData [20:52:46]FM_MakeSignedData [20:52:46]SAM_PROTO_SignData [20:52:46]wFMCommunicate request_size=4 [20:52:46]MH_SAM_APDU [20:52:46]CAPDU: 80 0D 01 02 [20:52:46]Write to MH i2c: E2 08 00 05 06 80 0D 01 02 00 00 00 00 84 [20:52:46]Write i2c OK [20:52:46]MH_I2C_Read... [20:52:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:52:46]Read from MH i2c: E2 [20:52:46]MH_I2C_Read... [20:52:46]Read from MH i2c: E2 03 00 [20:52:46]MH_I2C_Read... [20:52:46]Read from MH i2c: E2 03 00 05 06 00 90 00 7F [20:52:46]RAPDU: 90 00 [20:52:46]wFMCommunicate OK [20:52:46]wFMCommunicate request_size=255 [20:52:46]MH_SAM_APDU [20:52:46]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C8 AF 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 52 42 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 42 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1E 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 3D 00 00 00 00 07 04 06 00 20 42 02 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 1E 42 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A7 72 00 00 35 04 06 00 84 F5 [20:52:46]Write to MH i2c: E2 02 01 06 06 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C8 AF 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 52 42 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 42 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1E 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 3D 00 00 00 00 07 04 06 00 20 42 02 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 1E 42 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A7 72 00 00 35 04 06 00 84 F5 00 00 CE [20:52:46]Write i2c OK [20:52:46]MH_I2C_Read... [20:52:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:52:47]Read from MH i2c: E2 [20:52:47]MH_I2C_Read... [20:52:47]Read from MH i2c: E2 03 00 [20:52:47]MH_I2C_Read... [20:52:47]Read from MH i2c: E2 03 00 06 06 00 90 00 80 [20:52:47]RAPDU: 90 00 [20:52:47]wFMCommunicate OK [20:52:47]wFMCommunicate request_size=9 [20:52:47]MH_SAM_APDU [20:52:47]CAPDU: 80 0D 02 02 04 72 38 50 FD [20:52:47]Write to MH i2c: E2 0C 00 07 06 80 0D 02 02 04 00 72 38 50 FD 00 00 86 [20:52:47]Write i2c OK [20:52:47]MH_I2C_Read... [20:52:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:52:47]Read from MH i2c: E2 [20:52:47]MH_I2C_Read... [20:52:47]Read from MH i2c: E2 03 00 [20:52:47]MH_I2C_Read... [20:52:47]Read from MH i2c: E2 03 00 07 06 00 90 00 81 [20:52:47]RAPDU: 90 00 [20:52:47]wFMCommunicate OK [20:52:47]wFMCommunicate request_size=4 [20:52:47]MH_SAM_APDU [20:52:47]CAPDU: 80 0D 03 02 [20:52:47]Write to MH i2c: E2 08 00 08 06 80 0D 03 02 00 00 00 00 89 [20:52:47]Write i2c OK [20:52:47]MH_I2C_Read... [20:52:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:52:47]Read from MH i2c: E2 [20:52:47]MH_I2C_Read... [20:52:47]Read from MH i2c: E2 0B 00 [20:52:47]MH_I2C_Read... [20:52:47]Read from MH i2c: E2 0B 00 08 06 00 9C 79 94 AD D2 48 60 04 90 00 5E [20:52:47]RAPDU: 9C 79 94 AD D2 48 60 04 90 00 [20:52:47]wFMCommunicate OK [20:52:47]SAM_PROTO_SignData done [20:52:47]FM_MakeSignedData done [20:52:47]CreateOFDProtocolMessage [20:52:47]wFMCommunicate request_size=4 [20:52:47]MH_SAM_APDU [20:52:47]CAPDU: 80 11 00 00 [20:52:47]Write to MH i2c: E2 08 00 09 06 80 11 00 00 00 00 00 00 89 [20:52:47]Write i2c OK [20:52:47]MH_I2C_Read... [20:52:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:52:47]Read from MH i2c: E2 [20:52:47]MH_I2C_Read... [20:52:47]Read from MH i2c: E2 17 00 [20:52:47]MH_I2C_Read... [20:52:47]Read from MH i2c: E2 17 00 09 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D8 [20:52:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:52:47]wFMCommunicate OK [20:52:47]CreateOFDProtocolMessage done [20:52:47]OFDSenderStorePacket 29351 [20:52:47]StoreOFDPacket docnum=29351 [20:52:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 07 D8 06 01 C4 3F 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C8 AF 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 52 42 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 42 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1E 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 3D 00 00 00 00 07 04 06 00 20 42 02 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 1E 42 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A7 72 00 00 35 04 06 00 84 F5 72 38 50 FD 9C 79 94 AD D2 48 60 04 [20:52:47]CheckFolder [20:52:47]dirname=/storage/ofd_packets [20:52:47]CheckFolder done [20:52:47]ProducePacketName [20:52:47]name=ofd_packets/00029351 [20:52:47]NVStorageSaveData ofd_packets/00029351 [20:52:47]File name is /storage/ofd_packets/00029351 [20:52:47]Write 300 bytes [20:52:47]NVStorageSaveData done [20:52:47]OFDSenderStorePacket done [20:52:47]KKMCreateOFDPacket done [20:52:47]NVStorageSaveData kkm_last_timestamp [20:52:47]File name is /storage/kkm_last_timestamp [20:52:47]Write 4 bytes [20:52:47]NVStorageSaveData done [20:52:47]ExternCall_PrintAddStr [20:52:47]wPrintStart [20:52:47]Write to MH i2c: 01 00 00 0A 06 10 [20:52:47]Write i2c OK [20:52:47]MH_I2C_Read... [20:52:47]Read from MH i2c: 01 [20:52:47]MH_I2C_Read... [20:52:47]Read from MH i2c: 01 07 00 [20:52:47]MH_I2C_Read... [20:52:47]Read from MH i2c: 01 07 00 0A 06 00 00 00 00 00 FF 0F 25 [20:52:47]RasterBufferAndPrint [20:52:47]line Счет N : (1)347748 [20:52:47]line ИНН: 02508201610067 [20:52:47]line Контрольно-Кассовый Чек [20:52:47]line ПРОДАЖА [20:52:47]line ТРК (МРК, ГНК) : 71 [20:52:47]line Товар: 2711129700 [20:52:47]line ГАЗ-К-5 [20:52:47]line 45.000 * 32.90 [20:52:47]line = 1480.50 [20:52:47]line НДС 12% НСП 1% [20:52:47]line > о реализуемом товаре [20:52:47]line ОКРУГЛЕНИЕ: -0.50 [20:52:47]line ИТОГО: 1480.00 [20:52:47]line Внесено: 1480.00 [20:52:47]line СДАЧА: 0.00 [20:52:47]line НСП 1% : 13.10 [20:52:47]line НДС 12% : 157.22 [20:52:47]line Наличными: 1480.00 [20:52:47]line Безнал.: 0.00 [20:52:47]line Место: АЗС № 108 "Партнер Нефть" [20:52:47]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [20:52:47]line СНО: Общий режим [20:52:47]line Чек 261 14.04.2024 20:52 [20:52:47]line Смена: 116 ФФД: 1.0 [20:52:47]line ЗНМ: 0300000027 [20:52:47]line РНМ: 0000138879044617 [20:52:47]line Версия ККМ: 001 [20:52:47]line ФМ: 0000000000963154 [20:52:47]line ФД: 29351 [20:52:47]line ФПД: 146189718147325 [20:52:47]line 1/tax-web-control/client/api/v1/ticket?date=20240414T205246&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29351&fm=146189718147325&tin=02508201610067®Number=0000138879044617&sum=148000 [20:52:47]OFD Sender: Processing packet 29351 [packets to send 8, broken 7] [20:52:47]ProducePacketName [20:52:47]name=ofd_packets/00029351 [20:52:47]OFD Sender: To server: pG, [20:52:47]CommunicateWithHost lk.salyk.kg:30040 [20:52:47]ConnectInit lk.salyk.kg [20:52:47]written 0, free lines is 4095 [20:52:47]Connected sock=10 [20:52:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 07 D8 06 01 C4 3F 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C8 AF 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 52 42 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 42 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1E 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 3D 00 00 00 00 07 04 06 00 20 42 02 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 1E 42 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A7 72 00 00 35 04 06 00 84 F5 72 38 50 FD 9C 79 94 AD D2 48 60 04 [20:52:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 DA 79 47 00 D7 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A7 72 00 00 F4 03 04 00 C1 EC 1B 66 B6 04 01 00 00 11 8B 20 B3 12 31 36 19 [20:52:47]CommunicateWithHost err = 0 [20:52:47]CheckOFDResponse [20:52:47]1017 (14) - 77093643461234 [20:52:47]1041 (16) - 0000000000963154 [20:52:47]1040 (4) - 29351 [20:52:47]1012 (4) - 14.04.2024 14:48 [20:52:47]1206 (1) - 0 [20:52:47]OFD Sender: Remove packet 29351 [20:52:47]ProducePacketName [20:52:47]name=ofd_packets/00029351 [20:52:47]NVStorageDeleteData [20:52:48]Write to MH i2c: 01 00 00 34 06 3A [20:52:48]Write i2c OK [20:52:48]MH_I2C_Read... [20:52:48]Read from MH i2c: 01 [20:52:48]MH_I2C_Read... [20:52:48]Read from MH i2c: 01 07 00 [20:52:48]MH_I2C_Read... [20:52:48]Read from MH i2c: 01 07 00 34 06 00 00 00 00 00 DB 0C 28 [20:52:48]RasterBufferAndPrint [20:52:48]line [20:52:48]line [20:52:48]line [20:52:48]line [20:52:48]line [20:52:48]written 0, free lines is 3298 [20:52:48]MH_Cut [20:52:48]Write to MH i2c: D1 01 00 3B 06 01 13 [20:52:48]Write i2c OK [20:52:48]MH_I2C_Read... [20:52:48]Read from MH i2c: D1 [20:52:48]MH_I2C_Read... [20:52:48]Read from MH i2c: D1 01 00 [20:52:48]MH_I2C_Read... [20:52:48]Read from MH i2c: D1 01 00 3B 06 00 12 [20:52:48]Write to MH i2c: 01 00 00 3C 06 42 [20:52:48]Write i2c OK [20:52:48]MH_I2C_Read... [20:52:48]OFD Sender: No OFD packet to send [20:52:48]*** Cut start [20:52:48]*** Partial cut [20:52:48]*** CUTSNS_PIN = 1 [20:52:48]*** CUTSNS_PIN = 0 [20:52:49]*** Brake cut motor [20:52:49]Read from MH i2c: 01 [20:52:49]MH_I2C_Read... [20:52:49]*** Stop cut motor [20:52:49]*** Cut end [20:52:49]Read from MH i2c: 01 07 00 [20:52:49]MH_I2C_Read... [20:52:49]Read from MH i2c: 01 07 00 3C 06 00 00 00 00 00 FF 0F 57 [20:52:49]process_action close_receipt done [20:52:49]requested_data is exist [20:52:49]produce_requested_data [20:52:49]requested_item fm.sn is exist - process it [20:52:49]wFMCommunicate request_size=4 [20:52:49]MH_SAM_APDU [20:52:49]CAPDU: 80 11 00 00 [20:52:49]Write to MH i2c: E2 08 00 3D 06 80 11 00 00 00 00 00 00 BD [20:52:49]Write i2c OK [20:52:49]MH_I2C_Read... [20:52:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:52:49]Read from MH i2c: E2 [20:52:49]MH_I2C_Read... [20:52:49]Read from MH i2c: E2 17 00 [20:52:49]MH_I2C_Read... [20:52:49]Read from MH i2c: E2 17 00 3D 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 0C [20:52:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:52:49]wFMCommunicate OK [20:52:49]requested_item fd.num is exist - process it [20:52:49]SAM_PROTO_GetFieldsCounters [20:52:49]wFMCommunicate request_size=4 [20:52:49]MH_SAM_APDU [20:52:49]CAPDU: 80 13 00 00 [20:52:49]Write to MH i2c: E2 08 00 3E 06 80 13 00 00 00 00 00 00 C0 [20:52:49]Write i2c OK [20:52:49]MH_I2C_Read... [20:52:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:52:49]Read from MH i2c: E2 [20:52:49]MH_I2C_Read... [20:52:49]Read from MH i2c: E2 62 00 [20:52:49]MH_I2C_Read... [20:52:49]Read from MH i2c: E2 62 00 3E 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A7 72 00 00 0E 04 04 00 74 00 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 9D [20:52:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A7 72 00 00 0E 04 04 00 74 00 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 [20:52:49]wFMCommunicate OK [20:52:49]SAM_PROTO_GetFieldsCounters done [20:52:49]requested_item shift.num is exist - process it [20:52:49]requested_item shift.opened is exist - process it [20:52:49]req_shift_opened [20:52:49]FM_GetShiftState [20:52:49]SAM_PROTO_GetShiftState [20:52:49]wFMCommunicate request_size=4 [20:52:49]MH_SAM_APDU [20:52:49]CAPDU: 80 13 01 00 [20:52:49]Write to MH i2c: E2 08 00 3F 06 80 13 01 00 00 00 00 00 C2 [20:52:49]Write i2c OK [20:52:49]MH_I2C_Read... [20:52:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:52:49]Read from MH i2c: E2 [20:52:49]MH_I2C_Read... [20:52:49]Read from MH i2c: E2 0E 00 [20:52:49]MH_I2C_Read... [20:52:49]Read from MH i2c: E2 0E 00 3F 06 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 6E [20:52:49]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [20:52:49]wFMCommunicate OK [20:52:49]SAM_PROTO_GetShiftState done [20:52:49]FM_GetShiftState done [20:52:49]req_shift_opened done [20:52:49]requested_item shift.open_date is exist - process it [20:52:49]req_shift_open_date [20:52:49]req_shift_open_date done [20:52:49]produce_requested_data done [20:52:49]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29351,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [20:52:49]process_action_free close_receipt [20:52:49]json_value_free [20:52:49]json_value_free done [20:52:49]process_json_proto returns [20:52:49]Send response to host [20:52:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29351,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [20:52:49]free response buf [20:52:49]execute_script done [20:52:49]execute_script returns [20:52:49]free content buf [20:52:49]Sock 8.Close socket [20:52:49]Sock 8.Thread stoped [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:23]OFD Sender: No OFD packet to send [20:53:28]OFD Sender: No OFD packet to send [20:53:33]OFD Sender: No OFD packet to send [20:53:38]OFD Sender: No OFD packet to send [20:53:43]OFD Sender: No OFD packet to send [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:29]accept exits with 9 [20:54:29]New connection [20:54:29]New thread 3066969444 created [20:54:29]Thread 3067112804 joined [20:54:29]Waiting for new connection... [20:54:29] Sock 9.Parse request [20:54:29]Sock 9.Check first char [20:54:29]Sock 9.First char is OK [20:54:29]request: POST /json_proto HTTP/1.0 [20:54:29]Method: POST [20:54:29]URL: /json_proto [20:54:29]Method is POST - this is cgi request [20:54:29]url: /json_proto [20:54:29]query_string will be loaded in cgi processing [20:54:29]execute_cgi json_proto POST (null) [20:54:29]execute_cgi path=json_proto method=POST [20:54:29]POST find Content-Length [20:54:29]Host: 172.17.33.3:8080 [20:54:29]Content-Length: 682 [20:54:29]Content-Type: application/json [20:54:29] [20:54:29]POST finish read [20:54:29]Found Content-Length = 682 [20:54:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347749", "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" : 35.000, "sum" : 2250.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2250.00, "total" : 2250.00, "payments": [ { "type": 0, "sum" : 2250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:54:29]execute_script... [20:54: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)347749", "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" : 35.000, "sum" : 2250.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2250.00, "total" : 2250.00, "payments": [ { "type": 0, "sum" : 2250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:54:29]POST & json_proto [20:54:29]process_json_proto [20:54:29]json parsed OK: [20:54:29]protocol is kg_v1.0 [20:54:29]action value=close_receipt [20:54:29]process_action close_receipt [20:54:29]cmd_close_receipt [20:54:29]MH_GetDate [20:54:29]Write to MH i2c: F0 00 00 40 06 35 [20:54:29]Write i2c OK [20:54:29]MH_I2C_Read... [20:54:29]Read from MH i2c: F0 [20:54:29]MH_I2C_Read... [20:54:29]Read from MH i2c: F0 09 00 [20:54:29]MH_I2C_Read... [20:54:29]Read from MH i2c: F0 09 00 40 06 00 86 42 1C 66 23 5B 8F 65 FA [20:54:29]GetLastDocTimeStamp 1713127966 [20:54:29]current date 1713128070 [20:54:29]FM_GetShiftState [20:54:29]SAM_PROTO_GetShiftState [20:54:29]wFMCommunicate request_size=4 [20:54:29]MH_SAM_APDU [20:54:29]CAPDU: 80 13 01 00 [20:54:29]Write to MH i2c: E2 08 00 41 06 80 13 01 00 00 00 00 00 C4 [20:54:29]Write i2c OK [20:54:29]MH_I2C_Read... [20:54:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:54:29]Read from MH i2c: E2 [20:54:29]MH_I2C_Read... [20:54:29]Read from MH i2c: E2 0E 00 [20:54:29]MH_I2C_Read... [20:54:29]Read from MH i2c: E2 0E 00 41 06 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 70 [20:54:29]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [20:54:29]wFMCommunicate OK [20:54:29]SAM_PROTO_GetShiftState done [20:54:29]FM_GetShiftState done [20:54:29]opened in 1713053951 [20:54:29]opened+sec_in_day 1713140351 [20:54:29]quantity*price = 225050 [20:54:29]sum+1 = 225051 [20:54:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 2250.00 Внесено: 2250.00 СДАЧА: 0.00 НСП 1% : 19.92 НДС 12% : 238.99 Наличными: 2250.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 262 14.04.2024 20:54 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29352 ФПД: 27617665684765 1/tax-web-control/client/api/v1/ticket?date=20240414T205430&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29352&fm=27617665684765&tin=02508201610067®Number=0000138879044617&sum=225000 [20:54:30]StoreToDocumentArchive [20:54:30]shift 116 fd 29352 [20:54:30]save to /storage/0116/doc_00029352 [20:54:30]save last doc name /storage/0116/doc_00029352 to /storage/kkm_last_doc_name [20:54:30]save OK [20:54:30]Clear old archive folders... [20:54:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:54:30]tlvbuf is 00206E70 [20:54:30]SAM_PROTO_ClearQueue [20:54:30]wFMCommunicate request_size=4 [20:54:30]MH_SAM_APDU [20:54:30]CAPDU: 80 09 00 00 [20:54:30]Write to MH i2c: E2 08 00 4E 06 80 09 00 00 00 00 00 00 C6 [20:54:30]Write i2c OK [20:54:30]MH_I2C_Read... [20:54:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:54:30]Read from MH i2c: E2 [20:54:30]MH_I2C_Read... [20:54:30]Read from MH i2c: E2 03 00 [20:54:30]MH_I2C_Read... [20:54:30]Read from MH i2c: E2 03 00 4E 06 00 90 00 C8 [20:54:30]RAPDU: 90 00 [20:54:30]wFMCommunicate OK [20:54:30]SAM_PROTO_ClearQueue done [20:54:30]KKMCreateOFDPacket [20:54:30]OFDProtocolAddRootSTLVToBuf [20:54:30]FM_MakeSignedData [20:54:30]FM_MakeSignedData [20:54:30]SAM_PROTO_SignData [20:54:30]wFMCommunicate request_size=4 [20:54:30]MH_SAM_APDU [20:54:30]CAPDU: 80 0D 01 02 [20:54:30]Write to MH i2c: E2 08 00 4F 06 80 0D 01 02 00 00 00 00 CE [20:54:30]Write i2c OK [20:54:30]MH_I2C_Read... [20:54:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:54:30]Read from MH i2c: E2 [20:54:30]MH_I2C_Read... [20:54:30]Read from MH i2c: E2 03 00 [20:54:30]MH_I2C_Read... [20:54:30]Read from MH i2c: E2 03 00 4F 06 00 90 00 C9 [20:54:30]RAPDU: 90 00 [20:54:30]wFMCommunicate OK [20:54:30]wFMCommunicate request_size=255 [20:54:30]MH_SAM_APDU [20:54: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 B8 88 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 1A 6F 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 6E 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C8 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 5D 00 00 00 00 07 04 06 00 E8 6E 03 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 86 42 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A8 72 00 00 35 04 06 00 19 [20:54:30]Write to MH i2c: E2 02 01 50 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 B8 88 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 1A 6F 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 6E 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C8 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 5D 00 00 00 00 07 04 06 00 E8 6E 03 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 86 42 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A8 72 00 00 35 04 06 00 19 00 00 29 [20:54:30]Write i2c OK [20:54:30]MH_I2C_Read... [20:54:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:54:30]Read from MH i2c: E2 [20:54:30]MH_I2C_Read... [20:54:30]Read from MH i2c: E2 03 00 [20:54:30]MH_I2C_Read... [20:54:30]Read from MH i2c: E2 03 00 50 06 00 90 00 CA [20:54:30]RAPDU: 90 00 [20:54:30]wFMCommunicate OK [20:54:30]wFMCommunicate request_size=10 [20:54:30]MH_SAM_APDU [20:54:30]CAPDU: 80 0D 02 02 05 1E 3D 27 15 1D [20:54:30]Write to MH i2c: E2 0D 00 51 06 80 0D 02 02 05 00 1E 3D 27 15 1D 00 00 8F [20:54:30]Write i2c OK [20:54:30]MH_I2C_Read... [20:54:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:54:30]Read from MH i2c: E2 [20:54:30]MH_I2C_Read... [20:54:30]Read from MH i2c: E2 03 00 [20:54:30]MH_I2C_Read... [20:54:30]Read from MH i2c: E2 03 00 51 06 00 90 00 CB [20:54:30]RAPDU: 90 00 [20:54:30]wFMCommunicate OK [20:54:30]wFMCommunicate request_size=4 [20:54:30]MH_SAM_APDU [20:54:30]CAPDU: 80 0D 03 02 [20:54:30]Write to MH i2c: E2 08 00 52 06 80 0D 03 02 00 00 00 00 D3 [20:54:30]Write i2c OK [20:54:30]MH_I2C_Read... [20:54:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:54:31]Read from MH i2c: E2 [20:54:31]MH_I2C_Read... [20:54:31]Read from MH i2c: E2 0B 00 [20:54:31]MH_I2C_Read... [20:54:31]Read from MH i2c: E2 0B 00 52 06 00 74 48 8F F9 78 82 64 FE 90 00 74 [20:54:31]RAPDU: 74 48 8F F9 78 82 64 FE 90 00 [20:54:31]wFMCommunicate OK [20:54:31]SAM_PROTO_SignData done [20:54:31]FM_MakeSignedData done [20:54:31]CreateOFDProtocolMessage [20:54:31]wFMCommunicate request_size=4 [20:54:31]MH_SAM_APDU [20:54:31]CAPDU: 80 11 00 00 [20:54:31]Write to MH i2c: E2 08 00 53 06 80 11 00 00 00 00 00 00 D3 [20:54:31]Write i2c OK [20:54:31]MH_I2C_Read... [20:54:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:54:31]Read from MH i2c: E2 [20:54:31]MH_I2C_Read... [20:54:31]Read from MH i2c: E2 17 00 [20:54:31]MH_I2C_Read... [20:54:31]Read from MH i2c: E2 17 00 53 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 22 [20:54:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:54:31]wFMCommunicate OK [20:54:31]CreateOFDProtocolMessage done [20:54:31]OFDSenderStorePacket 29352 [20:54:31]StoreOFDPacket docnum=29352 [20:54:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 C4 6B 07 01 FB 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 B8 88 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 1A 6F 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 6E 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C8 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 5D 00 00 00 00 07 04 06 00 E8 6E 03 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 86 42 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A8 72 00 00 35 04 06 00 19 1E 3D 27 15 1D 74 48 8F F9 78 82 64 FE [20:54:31]CheckFolder [20:54:31]dirname=/storage/ofd_packets [20:54:31]CheckFolder done [20:54:31]ProducePacketName [20:54:31]name=ofd_packets/00029352 [20:54:31]NVStorageSaveData ofd_packets/00029352 [20:54:31]File name is /storage/ofd_packets/00029352 [20:54:31]Write 301 bytes [20:54:31]NVStorageSaveData done [20:54:31]OFDSenderStorePacket done [20:54:31]KKMCreateOFDPacket done [20:54:31]NVStorageSaveData kkm_last_timestamp [20:54:31]File name is /storage/kkm_last_timestamp [20:54:31]Write 4 bytes [20:54:31]NVStorageSaveData done [20:54:31]ExternCall_PrintAddStr [20:54:31]wPrintStart [20:54:31]Write to MH i2c: 01 00 00 54 06 5A [20:54:31]Write i2c OK [20:54:31]MH_I2C_Read... [20:54:31]Read from MH i2c: 01 [20:54:31]MH_I2C_Read... [20:54:31]Read from MH i2c: 01 07 00 [20:54:31]MH_I2C_Read... [20:54:31]Read from MH i2c: 01 07 00 54 06 00 00 00 00 00 FF 0F 6F [20:54:31]RasterBufferAndPrint [20:54:31]line Счет N : (1)347749 [20:54:31]line ИНН: 02508201610067 [20:54:31]line Контрольно-Кассовый Чек [20:54:31]line ПРОДАЖА [20:54:31]line ТРК (МРК, ГНК) : 42 [20:54:31]line Товар: 2710124130 [20:54:31]line Аи-92-К-5 [20:54:31]line 35.000 * 64.30 [20:54:31]line = 2250.50 [20:54:31]line НДС 12% НСП 1% [20:54:31]line > о реализуемом товаре [20:54:31]line ОКРУГЛЕНИЕ: -0.50 [20:54:31]line ИТОГО: 2250.00 [20:54:31]line Внесено: 2250.00 [20:54:31]line СДАЧА: 0.00 [20:54:31]line НСП 1% : 19.92 [20:54:31]line НДС 12% : 238.99 [20:54:31]line Наличными: 2250.00 [20:54:31]line Безнал.: 0.00 [20:54:31]line Место: АЗС № 108 "Партнер Нефть" [20:54:31]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [20:54:31]line СНО: Общий режим [20:54:31]line Чек 262 14.04.2024 20:54 [20:54:31]line Смена: 116 ФФД: 1.0 [20:54:31]line ЗНМ: 0300000027 [20:54:31]line РНМ: 0000138879044617 [20:54:31]line Версия ККМ: 001 [20:54:31]line ФМ: 0000000000963154 [20:54:31]line ФД: 29352 [20:54:31]line ФПД: 27617665684765 [20:54:31]line 1/tax-web-control/client/api/v1/ticket?date=20240414T205430&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29352&fm=27617665684765&tin=02508201610067®Number=0000138879044617&sum=225000 [20:54:31]OFD Sender: Processing packet 29352 [packets to send 8, broken 7] [20:54:31]ProducePacketName [20:54:31]name=ofd_packets/00029352 [20:54:31]OFD Sender: To server: pG, [20:54:31]CommunicateWithHost lk.salyk.kg:30040 [20:54:31]ConnectInit lk.salyk.kg [20:54:31]written 0, free lines is 4095 [20:54:31]Connected sock=10 [20:54:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 C4 6B 07 01 FB 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 B8 88 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 1A 6F 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 6E 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C8 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 5D 00 00 00 00 07 04 06 00 E8 6E 03 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 86 42 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A8 72 00 00 35 04 06 00 19 1E 3D 27 15 1D 74 48 8F F9 78 82 64 FE [20:54:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 26 EC 47 00 3D 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 39 36 33 31 35 34 10 04 04 00 A8 72 00 00 F4 03 04 00 29 ED 1B 66 B6 04 01 00 00 56 8F 35 50 0D D1 99 28 [20:54:31]CommunicateWithHost err = 0 [20:54:31]CheckOFDResponse [20:54:31]1017 (14) - 77093643461234 [20:54:31]1041 (16) - 0000000000963154 [20:54:31]1040 (4) - 29352 [20:54:31]1012 (4) - 14.04.2024 14:50 [20:54:31]1206 (1) - 0 [20:54:31]OFD Sender: Remove packet 29352 [20:54:31]ProducePacketName [20:54:31]name=ofd_packets/00029352 [20:54:31]NVStorageDeleteData [20:54:31]Write to MH i2c: 01 00 00 7E 06 84 [20:54:31]Write i2c OK [20:54:31]MH_I2C_Read... [20:54:31]Read from MH i2c: 01 [20:54:31]MH_I2C_Read... [20:54:31]Read from MH i2c: 01 07 00 [20:54:31]MH_I2C_Read... [20:54:31]Read from MH i2c: 01 07 00 7E 06 00 00 00 00 00 E0 0C 77 [20:54:31]RasterBufferAndPrint [20:54:31]line [20:54:31]line [20:54:31]line [20:54:31]line [20:54:31]line [20:54:31]written 0, free lines is 3301 [20:54:31]MH_Cut [20:54:31]Write to MH i2c: D1 01 00 85 06 01 5D [20:54:31]Write i2c OK [20:54:31]MH_I2C_Read... [20:54:31]Read from MH i2c: D1 [20:54:31]MH_I2C_Read... [20:54:31]Read from MH i2c: D1 01 00 [20:54:31]MH_I2C_Read... [20:54:31]Read from MH i2c: D1 01 00 85 06 00 5C [20:54:31]Write to MH i2c: 01 00 00 86 06 8C [20:54:31]Write i2c OK [20:54:31]MH_I2C_Read... [20:54:32]OFD Sender: No OFD packet to send [20:54:32]*** Cut start [20:54:32]*** Partial cut [20:54:32]*** CUTSNS_PIN = 1 [20:54:32]*** CUTSNS_PIN = 0 [20:54:32]*** Brake cut motor [20:54:33]Read from MH i2c: 01 [20:54:33]MH_I2C_Read... [20:54:33]*** Stop cut motor [20:54:33]*** Cut end [20:54:33]Read from MH i2c: 01 07 00 [20:54:33]MH_I2C_Read... [20:54:33]Read from MH i2c: 01 07 00 86 06 00 00 00 00 00 FF 0F A1 [20:54:33]process_action close_receipt done [20:54:33]requested_data is exist [20:54:33]produce_requested_data [20:54:33]requested_item fm.sn is exist - process it [20:54:33]wFMCommunicate request_size=4 [20:54:33]MH_SAM_APDU [20:54:33]CAPDU: 80 11 00 00 [20:54:33]Write to MH i2c: E2 08 00 87 06 80 11 00 00 00 00 00 00 07 [20:54:33]Write i2c OK [20:54:33]MH_I2C_Read... [20:54:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:54:33]Read from MH i2c: E2 [20:54:33]MH_I2C_Read... [20:54:33]Read from MH i2c: E2 17 00 [20:54:33]MH_I2C_Read... [20:54:33]Read from MH i2c: E2 17 00 87 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 56 [20:54:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:54:33]wFMCommunicate OK [20:54:33]requested_item fd.num is exist - process it [20:54:33]SAM_PROTO_GetFieldsCounters [20:54:33]wFMCommunicate request_size=4 [20:54:33]MH_SAM_APDU [20:54:33]CAPDU: 80 13 00 00 [20:54:33]Write to MH i2c: E2 08 00 88 06 80 13 00 00 00 00 00 00 0A [20:54:33]Write i2c OK [20:54:33]MH_I2C_Read... [20:54:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:54:33]Read from MH i2c: E2 [20:54:33]MH_I2C_Read... [20:54:33]Read from MH i2c: E2 62 00 [20:54:33]MH_I2C_Read... [20:54:33]Read from MH i2c: E2 62 00 88 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A8 72 00 00 0E 04 04 00 74 00 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 EB [20:54:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A8 72 00 00 0E 04 04 00 74 00 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 [20:54:33]wFMCommunicate OK [20:54:33]SAM_PROTO_GetFieldsCounters done [20:54:33]requested_item shift.num is exist - process it [20:54:33]requested_item shift.opened is exist - process it [20:54:33]req_shift_opened [20:54:33]FM_GetShiftState [20:54:33]SAM_PROTO_GetShiftState [20:54:33]wFMCommunicate request_size=4 [20:54:33]MH_SAM_APDU [20:54:33]CAPDU: 80 13 01 00 [20:54:33]Write to MH i2c: E2 08 00 89 06 80 13 01 00 00 00 00 00 0C [20:54:33]Write i2c OK [20:54:33]MH_I2C_Read... [20:54:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:54:33]Read from MH i2c: E2 [20:54:33]MH_I2C_Read... [20:54:33]Read from MH i2c: E2 0E 00 [20:54:33]MH_I2C_Read... [20:54:33]Read from MH i2c: E2 0E 00 89 06 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 B8 [20:54:33]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [20:54:33]wFMCommunicate OK [20:54:33]SAM_PROTO_GetShiftState done [20:54:33]FM_GetShiftState done [20:54:33]req_shift_opened done [20:54:33]requested_item shift.open_date is exist - process it [20:54:33]req_shift_open_date [20:54:33]req_shift_open_date done [20:54:33]produce_requested_data done [20:54:33]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29352,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [20:54:33]process_action_free close_receipt [20:54:33]json_value_free [20:54:33]json_value_free done [20:54:33]process_json_proto returns [20:54:33]Send response to host [20:54:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29352,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [20:54:33]free response buf [20:54:33]execute_script done [20:54:33]execute_script returns [20:54:33]free content buf [20:54:33]Sock 9.Close socket [20:54:33]Sock 9.Thread stoped [20:54:37]OFD Sender: No OFD packet to send [20:54:42]OFD Sender: No OFD packet to send [20:54:47]OFD Sender: No OFD packet to send [20:54:52]OFD Sender: No OFD packet to send [20:54:57]OFD Sender: No OFD packet to send [20:55:02]OFD Sender: No OFD packet to send [20:55:07]OFD Sender: No OFD packet to send [20:55:12]OFD Sender: No OFD packet to send [20:55:17]OFD Sender: No OFD packet to send [20:55:19]accept exits with 8 [20:55:19]New connection [20:55:19]New thread 3067112804 created [20:55:19]Thread 3066969444 joined [20:55:19]Waiting for new connection... [20:55:19] Sock 8.Parse request [20:55:19]Sock 8.Check first char [20:55:19]Sock 8.First char is OK [20:55:19]request: POST /json_proto HTTP/1.0 [20:55:19]Method: POST [20:55:19]URL: /json_proto [20:55:19]Method is POST - this is cgi request [20:55:19]url: /json_proto [20:55:19]query_string will be loaded in cgi processing [20:55:19]execute_cgi json_proto POST (null) [20:55:19]execute_cgi path=json_proto method=POST [20:55:19]POST find Content-Length [20:55:19]Host: 172.17.33.3:8080 [20:55:19]Content-Length: 741 [20:55:19]Content-Type: application/json [20:55:19] [20:55:19]POST finish read [20:55:19]Found Content-Length = 741 [20:55:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 29351, "base_FM": "0000000000963154", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347748", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 45.000, "sum" : 1480.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1480.00, "total" : 1480.00, "payments": [ { "type": 0, "sum" : 1480.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:55:19]execute_script... [20:55:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 29351, "base_FM": "0000000000963154", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347748", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 45.000, "sum" : 1480.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1480.00, "total" : 1480.00, "payments": [ { "type": 0, "sum" : 1480.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:55:19]POST & json_proto [20:55:19]process_json_proto [20:55:19]json parsed OK: [20:55:19]protocol is kg_v1.0 [20:55:19]action value=close_receipt [20:55:19]process_action close_receipt [20:55:19]cmd_close_receipt [20:55:19]MH_GetDate [20:55:19]Write to MH i2c: F0 00 00 8A 06 7F [20:55:19]Write i2c OK [20:55:19]MH_I2C_Read... [20:55:19]Read from MH i2c: F0 [20:55:19]MH_I2C_Read... [20:55:19]Read from MH i2c: F0 09 00 [20:55:19]MH_I2C_Read... [20:55:19]Read from MH i2c: F0 09 00 8A 06 00 B8 42 1C 66 23 5B 8F 65 76 [20:55:19]GetLastDocTimeStamp 1713128070 [20:55:19]current date 1713128120 [20:55:19]FM_GetShiftState [20:55:19]SAM_PROTO_GetShiftState [20:55:19]wFMCommunicate request_size=4 [20:55:19]MH_SAM_APDU [20:55:19]CAPDU: 80 13 01 00 [20:55:19]Write to MH i2c: E2 08 00 8B 06 80 13 01 00 00 00 00 00 0E [20:55:19]Write i2c OK [20:55:19]MH_I2C_Read... [20:55:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:55:19]Read from MH i2c: E2 [20:55:19]MH_I2C_Read... [20:55:19]Read from MH i2c: E2 0E 00 [20:55:19]MH_I2C_Read... [20:55:19]Read from MH i2c: E2 0E 00 8B 06 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 BA [20:55:19]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [20:55:19]wFMCommunicate OK [20:55:19]SAM_PROTO_GetShiftState done [20:55:19]FM_GetShiftState done [20:55:19]opened in 1713053951 [20:55:19]opened+sec_in_day 1713140351 [20:55:19]quantity*price = 148050 [20:55:19]sum+1 = 148051 [20:55:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 1480.00 НСП 1% : 13.10 НДС 12% : 157.22 Наличными: 1480.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 263 14.04.2024 20:55 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФД осн.: 29351 ФМ осн.: 0000000000963154 ФМ: 0000000000963154 ФД: 29353 ФПД: 51514856129914 1/tax-web-control/client/api/v1/ticket?date=20240414T205520&type=2&operation_type=1&fn_number=0000000000963154&fd_number=29353&fm=51514856129914&tin=02508201610067®Number=0000138879044617&sum=148000 [20:55:20]StoreToDocumentArchive [20:55:20]shift 116 fd 29353 [20:55:20]save to /storage/0116/doc_00029353 [20:55:20]save last doc name /storage/0116/doc_00029353 to /storage/kkm_last_doc_name [20:55:20]save OK [20:55:20]Clear old archive folders... [20:55:20]ProcessDocumentItem done err = 0, tmpTLVsize=278 [20:55:20]tlvbuf is 00208320 [20:55:20]SAM_PROTO_ClearQueue [20:55:20]wFMCommunicate request_size=4 [20:55:20]MH_SAM_APDU [20:55:20]CAPDU: 80 09 00 00 [20:55:20]Write to MH i2c: E2 08 00 9A 06 80 09 00 00 00 00 00 00 12 [20:55:20]Write i2c OK [20:55:20]MH_I2C_Read... [20:55:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:55:20]Read from MH i2c: E2 [20:55:20]MH_I2C_Read... [20:55:20]Read from MH i2c: E2 03 00 [20:55:20]MH_I2C_Read... [20:55:20]Read from MH i2c: E2 03 00 9A 06 00 90 00 14 [20:55:20]RAPDU: 90 00 [20:55:20]wFMCommunicate OK [20:55:20]SAM_PROTO_ClearQueue done [20:55:20]KKMCreateOFDPacket [20:55:20]OFDProtocolAddRootSTLVToBuf [20:55:20]FM_MakeSignedData [20:55:20]FM_MakeSignedData [20:55:20]SAM_PROTO_SignData [20:55:20]wFMCommunicate request_size=4 [20:55:20]MH_SAM_APDU [20:55:20]CAPDU: 80 0D 01 02 [20:55:20]Write to MH i2c: E2 08 00 9B 06 80 0D 01 02 00 00 00 00 1A [20:55:20]Write i2c OK [20:55:20]MH_I2C_Read... [20:55:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:55:20]Read from MH i2c: E2 [20:55:20]MH_I2C_Read... [20:55:20]Read from MH i2c: E2 03 00 [20:55:20]MH_I2C_Read... [20:55:20]Read from MH i2c: E2 03 00 9B 06 00 90 00 15 [20:55:20]RAPDU: 90 00 [20:55:20]wFMCommunicate OK [20:55:20]wFMCommunicate request_size=255 [20:55:20]MH_SAM_APDU [20:55:20]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 02 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C8 AF 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 52 42 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 42 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1E 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 3D 00 00 00 00 07 04 06 00 20 42 02 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 B8 42 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 A7 72 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 30 30 [20:55:20]Write to MH i2c: E2 02 01 9C 06 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 02 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C8 AF 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 52 42 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 42 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1E 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 3D 00 00 00 00 07 04 06 00 20 42 02 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 B8 42 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 A7 72 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 30 30 00 00 19 [20:55:20]Write i2c OK [20:55:20]MH_I2C_Read... [20:55:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:55:21]Read from MH i2c: E2 [20:55:21]MH_I2C_Read... [20:55:21]Read from MH i2c: E2 03 00 [20:55:21]MH_I2C_Read... [20:55:21]Read from MH i2c: E2 03 00 9C 06 00 90 00 16 [20:55:21]RAPDU: 90 00 [20:55:21]wFMCommunicate OK [20:55:21]wFMCommunicate request_size=37 [20:55:21]MH_SAM_APDU [20:55:21]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A9 72 00 00 35 04 06 00 2E DA 3C B3 45 7A [20:55:21]Write to MH i2c: E2 28 00 9D 06 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A9 72 00 00 35 04 06 00 2E DA 3C B3 45 7A 00 00 41 [20:55:21]Write i2c OK [20:55:21]MH_I2C_Read... [20:55:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:55:21]Read from MH i2c: E2 [20:55:21]MH_I2C_Read... [20:55:21]Read from MH i2c: E2 03 00 [20:55:21]MH_I2C_Read... [20:55:21]Read from MH i2c: E2 03 00 9D 06 00 90 00 17 [20:55:21]RAPDU: 90 00 [20:55:21]wFMCommunicate OK [20:55:21]wFMCommunicate request_size=4 [20:55:21]MH_SAM_APDU [20:55:21]CAPDU: 80 0D 03 02 [20:55:21]Write to MH i2c: E2 08 00 9E 06 80 0D 03 02 00 00 00 00 1F [20:55:21]Write i2c OK [20:55:21]MH_I2C_Read... [20:55:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:55:21]Read from MH i2c: E2 [20:55:21]MH_I2C_Read... [20:55:21]Read from MH i2c: E2 0B 00 [20:55:21]MH_I2C_Read... [20:55:21]Read from MH i2c: E2 0B 00 9E 06 00 6D 91 43 83 AE AB A8 67 90 00 4C [20:55:21]RAPDU: 6D 91 43 83 AE AB A8 67 90 00 [20:55:21]wFMCommunicate OK [20:55:21]SAM_PROTO_SignData done [20:55:21]FM_MakeSignedData done [20:55:21]CreateOFDProtocolMessage [20:55:21]wFMCommunicate request_size=4 [20:55:21]MH_SAM_APDU [20:55:21]CAPDU: 80 11 00 00 [20:55:21]Write to MH i2c: E2 08 00 9F 06 80 11 00 00 00 00 00 00 1F [20:55:21]Write i2c OK [20:55:21]MH_I2C_Read... [20:55:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:55:21]Read from MH i2c: E2 [20:55:21]MH_I2C_Read... [20:55:21]Read from MH i2c: E2 17 00 [20:55:21]MH_I2C_Read... [20:55:21]Read from MH i2c: E2 17 00 9F 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 6E [20:55:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:55:21]wFMCommunicate OK [20:55:21]CreateOFDProtocolMessage done [20:55:21]OFDSenderStorePacket 29353 [20:55:21]StoreOFDPacket docnum=29353 [20:55:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 2A 01 00 00 31 9F 22 01 93 77 5A 03 01 00 03 00 16 01 1E 04 01 00 02 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C8 AF 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 52 42 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 42 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1E 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 3D 00 00 00 00 07 04 06 00 20 42 02 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 B8 42 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 A7 72 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A9 72 00 00 35 04 06 00 2E DA 3C B3 45 7A 6D 91 43 83 AE AB A8 67 [20:55:21]CheckFolder [20:55:21]dirname=/storage/ofd_packets [20:55:21]CheckFolder done [20:55:21]ProducePacketName [20:55:21]name=ofd_packets/00029353 [20:55:21]NVStorageSaveData ofd_packets/00029353 [20:55:21]File name is /storage/ofd_packets/00029353 [20:55:21]Write 328 bytes [20:55:21]NVStorageSaveData done [20:55:21]OFDSenderStorePacket done [20:55:21]KKMCreateOFDPacket done [20:55:21]NVStorageSaveData kkm_last_timestamp [20:55:21]File name is /storage/kkm_last_timestamp [20:55:21]OFD Sender: Processing packet 29353 [packets to send 8, broken 7] [20:55:21]ProducePacketName [20:55:21]name=ofd_packets/00029353 [20:55:21]OFD Sender: To server: pG, [20:55:21]CommunicateWithHost lk.salyk.kg:30040 [20:55:21]ConnectInit lk.salyk.kg [20:55:21]Write 4 bytes [20:55:21]NVStorageSaveData done [20:55:21]ExternCall_PrintAddStr [20:55:21]wPrintStart [20:55:21]Write to MH i2c: 01 00 00 A0 06 A6 [20:55:21]Write i2c OK [20:55:21]MH_I2C_Read... [20:55:21]Read from MH i2c: 01 [20:55:21]MH_I2C_Read... [20:55:21]Read from MH i2c: 01 07 00 [20:55:21]MH_I2C_Read... [20:55:21]Read from MH i2c: 01 07 00 A0 06 00 00 00 00 00 FF 0F BB [20:55:21]RasterBufferAndPrint [20:55:21]line Счет N : (1)347748 [20:55:21]line ИНН: 02508201610067 [20:55:21]line Контрольно-Кассовый Чек [20:55:21]line ВОЗВРАТ ПРОДАЖИ [20:55:21]line ТРК (МРК, ГНК) : 71 [20:55:21]line Товар: 2711129700 [20:55:21]line ГАЗ-К-5 [20:55:21]line 45.000 * 32.90 [20:55:21]line = 1480.50 [20:55:21]line НДС 12% НСП 1% [20:55:21]line > о реализуемом товаре [20:55:21]line ОКРУГЛЕНИЕ: -0.50 [20:55:21]line ИТОГО: 1480.00 [20:55:21]line НСП 1% : 13.10 [20:55:21]line НДС 12% : 157.22 [20:55:21]line Наличными: 1480.00 [20:55:21]line Безнал.: 0.00 [20:55:21]line Место: АЗС № 108 "Партнер Нефть" [20:55:21]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [20:55:21]line СНО: Общий режим [20:55:21]line Чек 263 14.04.2024 20:55 [20:55:21]line Смена: 116 ФФД: 1.0 [20:55:21]line ЗНМ: 0300000027 [20:55:21]line РНМ: 0000138879044617 [20:55:21]line Версия ККМ: 001 [20:55:21]line ФД осн.: 29351 [20:55:21]line ФМ осн.: 0000000000963154 [20:55:21]line ФМ: 0000000000963154 [20:55:21]line ФД: 29353 [20:55:21]line ФПД: 51514856129914 [20:55:21]line 1/tax-web-control/client/api/v1/ticket?date=20240414T205520&type=2&operation_type=1&fn_number=0000000000963154&fd_number=29353&fm=51514856129914&tin=02508201610067®Number=0000138879044617&sum=148000 [20:55:21]written 0, free lines is 4095 [20:55:21]Write to MH i2c: 01 00 00 CA 06 D0 [20:55:21]Write i2c OK [20:55:21]MH_I2C_Read... [20:55:21]Read from MH i2c: 01 [20:55:21]MH_I2C_Read... [20:55:21]Read from MH i2c: 01 07 00 [20:55:21]MH_I2C_Read... [20:55:21]Read from MH i2c: 01 07 00 CA 06 00 00 00 00 00 CF 0C B2 [20:55:21]RasterBufferAndPrint [20:55:21]line [20:55:21]line [20:55:21]line [20:55:21]line [20:55:21]line [20:55:21]written 0, free lines is 3283 [20:55:22]MH_Cut [20:55:22]Write to MH i2c: D1 01 00 D1 06 01 A9 [20:55:22]Write i2c OK [20:55:22]MH_I2C_Read... [20:55:22]Read from MH i2c: D1 [20:55:22]MH_I2C_Read... [20:55:22]Read from MH i2c: D1 01 00 [20:55:22]MH_I2C_Read... [20:55:22]Read from MH i2c: D1 01 00 D1 06 00 A8 [20:55:22]Write to MH i2c: 01 00 00 D2 06 D8 [20:55:22]Write i2c OK [20:55:22]MH_I2C_Read... [20:55:22]*** Cut start [20:55:22]*** Partial cut [20:55:22]*** CUTSNS_PIN = 1 [20:55:22]*** CUTSNS_PIN = 0 [20:55:23]*** Brake cut motor [20:55:23]Read from MH i2c: 01 [20:55:23]MH_I2C_Read... [20:55:23]*** Stop cut motor [20:55:23]*** Cut end [20:55:23]Read from MH i2c: 01 07 00 [20:55:23]MH_I2C_Read... [20:55:23]Read from MH i2c: 01 07 00 D2 06 00 00 00 00 00 FF 0F ED [20:55:23]process_action close_receipt done [20:55:23]requested_data is exist [20:55:23]produce_requested_data [20:55:23]requested_item fm.sn is exist - process it [20:55:23]wFMCommunicate request_size=4 [20:55:23]MH_SAM_APDU [20:55:23]CAPDU: 80 11 00 00 [20:55:23]Write to MH i2c: E2 08 00 D3 06 80 11 00 00 00 00 00 00 53 [20:55:23]Write i2c OK [20:55:23]MH_I2C_Read... [20:55:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:55:23]Read from MH i2c: E2 [20:55:23]MH_I2C_Read... [20:55:23]Read from MH i2c: E2 17 00 [20:55:23]MH_I2C_Read... [20:55:23]Read from MH i2c: E2 17 00 D3 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A2 [20:55:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:55:23]wFMCommunicate OK [20:55:23]requested_item fd.num is exist - process it [20:55:23]SAM_PROTO_GetFieldsCounters [20:55:23]wFMCommunicate request_size=4 [20:55:23]MH_SAM_APDU [20:55:23]CAPDU: 80 13 00 00 [20:55:23]Write to MH i2c: E2 08 00 D4 06 80 13 00 00 00 00 00 00 56 [20:55:23]Write i2c OK [20:55:23]MH_I2C_Read... [20:55:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:55:23]Read from MH i2c: E2 [20:55:23]MH_I2C_Read... [20:55:23]Read from MH i2c: E2 62 00 [20:55:23]MH_I2C_Read... [20:55:23]Read from MH i2c: E2 62 00 D4 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A9 72 00 00 0E 04 04 00 74 00 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 3B [20:55:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A9 72 00 00 0E 04 04 00 74 00 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 [20:55:23]wFMCommunicate OK [20:55:23]SAM_PROTO_GetFieldsCounters done [20:55:23]requested_item shift.num is exist - process it [20:55:23]requested_item shift.opened is exist - process it [20:55:23]req_shift_opened [20:55:23]FM_GetShiftState [20:55:23]SAM_PROTO_GetShiftState [20:55:23]wFMCommunicate request_size=4 [20:55:23]MH_SAM_APDU [20:55:23]CAPDU: 80 13 01 00 [20:55:23]Write to MH i2c: E2 08 00 D5 06 80 13 01 00 00 00 00 00 58 [20:55:23]Write i2c OK [20:55:23]MH_I2C_Read... [20:55:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:55:23]Read from MH i2c: E2 [20:55:23]MH_I2C_Read... [20:55:23]Read from MH i2c: E2 0E 00 [20:55:23]MH_I2C_Read... [20:55:23]Read from MH i2c: E2 0E 00 D5 06 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 04 [20:55:23]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [20:55:23]wFMCommunicate OK [20:55:23]SAM_PROTO_GetShiftState done [20:55:23]FM_GetShiftState done [20:55:23]req_shift_opened done [20:55:23]requested_item shift.open_date is exist - process it [20:55:23]req_shift_open_date [20:55:23]req_shift_open_date done [20:55:23]produce_requested_data done [20:55:23]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29353,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [20:55:23]process_action_free close_receipt [20:55:23]json_value_free [20:55:23]json_value_free done [20:55:23]process_json_proto returns [20:55:23]Send response to host [20:55:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29353,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [20:55:23]free response buf [20:55:23]execute_script done [20:55:23]execute_script returns [20:55:23]free content buf [20:55:23]Sock 8.Close socket [20:55:23]Sock 8.Thread stoped [20:55:23]accept exits with 9 [20:55:23]New connection [20:55:23]New thread 3066969444 created [20:55:23]Thread 3067112804 joined [20:55:23]Waiting for new connection... [20:55:23] Sock 9.Parse request [20:55:23]Sock 9.Check first char [20:55:23]Sock 9.First char is OK [20:55:23]request: POST /json_proto HTTP/1.0 [20:55:23]Method: POST [20:55:23]URL: /json_proto [20:55:23]Method is POST - this is cgi request [20:55:23]url: /json_proto [20:55:23]query_string will be loaded in cgi processing [20:55:23]execute_cgi json_proto POST (null) [20:55:23]execute_cgi path=json_proto method=POST [20:55:23]POST find Content-Length [20:55:23]Host: 172.17.33.3:8080 [20:55:23]Content-Length: 685 [20:55:23]Content-Type: application/json [20:55:23] [20:55:23]POST finish read [20:55:23]Found Content-Length = 685 [20:55:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347748", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 44.290, "sum" : 1457.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1480.00, "total" : 1457.00, "payments": [ { "type": 0, "sum" : 1457.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:55:23]execute_script... [20: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)347748", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 44.290, "sum" : 1457.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1480.00, "total" : 1457.00, "payments": [ { "type": 0, "sum" : 1457.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:55:23]POST & json_proto [20:55:23]process_json_proto [20:55:23]json parsed OK: [20:55:23]protocol is kg_v1.0 [20:55:23]action value=close_receipt [20:55:23]process_action close_receipt [20:55:23]cmd_close_receipt [20:55:23]MH_GetDate [20:55:23]Write to MH i2c: F0 00 00 D6 06 CB [20:55:23]Write i2c OK [20:55:23]MH_I2C_Read... [20:55:23]Read from MH i2c: F0 [20:55:23]MH_I2C_Read... [20:55:23]Read from MH i2c: F0 09 00 [20:55:23]MH_I2C_Read... [20:55:23]Read from MH i2c: F0 09 00 D6 06 00 BC 42 1C 66 23 5B 8F 65 C6 [20:55:23]GetLastDocTimeStamp 1713128120 [20:55:23]current date 1713128124 [20:55:23]FM_GetShiftState [20:55:23]SAM_PROTO_GetShiftState [20:55:23]wFMCommunicate request_size=4 [20:55:23]MH_SAM_APDU [20:55:23]CAPDU: 80 13 01 00 [20:55:23]Write to MH i2c: E2 08 00 D7 06 80 13 01 00 00 00 00 00 5A [20:55:23]Write i2c OK [20:55:23]MH_I2C_Read... [20:55:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:55:24]Read from MH i2c: E2 [20:55:24]MH_I2C_Read... [20:55:24]Read from MH i2c: E2 0E 00 [20:55:24]MH_I2C_Read... [20:55:24]Read from MH i2c: E2 0E 00 D7 06 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 06 [20:55:24]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [20:55:24]wFMCommunicate OK [20:55:24]SAM_PROTO_GetShiftState done [20:55:24]FM_GetShiftState done [20:55:24]opened in 1713053951 [20:55:24]opened+sec_in_day 1713140351 [20:55:24]quantity*price = 145714 [20:55:24]sum+1 = 145715 [20:55:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 1457.00 Внесено: 1480.00 СДАЧА: 23.00 НСП 1% : 12.89 НДС 12% : 154.74 Наличными: 1457.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 264 14.04.2024 20:55 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29354 ФПД: 5491679716151 1/tax-web-control/client/api/v1/ticket?date=20240414T205525&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29354&fm=5491679716151&tin=02508201610067®Number=0000138879044617&sum=145700 [20:55:25]StoreToDocumentArchive [20:55:25]shift 116 fd 29354 [20:55:25]save to /storage/0116/doc_00029354 [20:55:25]save last doc name /storage/0116/doc_00029354 to /storage/kkm_last_doc_name [20:55:25]save OK [20:55:25]Clear old archive folders... [20:55:25]ProcessDocumentItem done err = 0, tmpTLVsize=250 [20:55:25]tlvbuf is 0023B8F0 [20:55:25]SAM_PROTO_ClearQueue [20:55:25]wFMCommunicate request_size=4 [20:55:25]MH_SAM_APDU [20:55:25]CAPDU: 80 09 00 00 [20:55:25]Write to MH i2c: E2 08 00 E4 06 80 09 00 00 00 00 00 00 5C [20:55:25]Write i2c OK [20:55:25]MH_I2C_Read... [20:55:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:55:25]Read from MH i2c: E2 [20:55:25]MH_I2C_Read... [20:55:25]Read from MH i2c: E2 03 00 [20:55:25]MH_I2C_Read... [20:55:25]Read from MH i2c: E2 03 00 E4 06 00 90 00 5E [20:55:25]RAPDU: 90 00 [20:55:25]wFMCommunicate OK [20:55:25]SAM_PROTO_ClearQueue done [20:55:25]KKMCreateOFDPacket [20:55:25]OFDProtocolAddRootSTLVToBuf [20:55:25]FM_MakeSignedData [20:55:25]FM_MakeSignedData [20:55:25]SAM_PROTO_SignData [20:55:25]wFMCommunicate request_size=4 [20:55:25]MH_SAM_APDU [20:55:25]CAPDU: 80 0D 01 02 [20:55:25]Write to MH i2c: E2 08 00 E5 06 80 0D 01 02 00 00 00 00 64 [20:55:25]Write i2c OK [20:55:25]MH_I2C_Read... [20:55:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:55:25]Read from MH i2c: E2 [20:55:25]MH_I2C_Read... [20:55:25]Read from MH i2c: E2 03 00 [20:55:25]MH_I2C_Read... [20:55:25]Read from MH i2c: E2 03 00 E5 06 00 90 00 5F [20:55:25]RAPDU: 90 00 [20:55:25]wFMCommunicate OK [20:55:25]wFMCommunicate request_size=255 [20:55:25]MH_SAM_APDU [20:55: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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 02 AD 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 32 39 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 39 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 3C 00 00 00 00 07 04 06 00 24 39 02 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 BD 42 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AA 72 00 00 35 04 06 00 04 FE [20:55:25]Write to MH i2c: E2 02 01 E6 06 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 02 AD 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 32 39 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 39 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 3C 00 00 00 00 07 04 06 00 24 39 02 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 BD 42 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AA 72 00 00 35 04 06 00 04 FE 00 00 D3 [20:55:25]Write i2c OK [20:55:25]MH_I2C_Read... [20:55:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:55:25]Read from MH i2c: E2 [20:55:25]MH_I2C_Read... [20:55:25]Read from MH i2c: E2 03 00 [20:55:25]MH_I2C_Read... [20:55:25]Read from MH i2c: E2 03 00 E6 06 00 90 00 60 [20:55:25]RAPDU: 90 00 [20:55:25]wFMCommunicate OK [20:55:25]wFMCommunicate request_size=9 [20:55:25]MH_SAM_APDU [20:55:25]CAPDU: 80 0D 02 02 04 A1 9E 63 37 [20:55:25]Write to MH i2c: E2 0C 00 E7 06 80 0D 02 02 04 00 A1 9E 63 37 00 00 48 [20:55:25]Write i2c OK [20:55:25]MH_I2C_Read... [20:55:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:55:25]Read from MH i2c: E2 [20:55:25]MH_I2C_Read... [20:55:25]Read from MH i2c: E2 03 00 [20:55:25]MH_I2C_Read... [20:55:25]Read from MH i2c: E2 03 00 E7 06 00 90 00 61 [20:55:25]RAPDU: 90 00 [20:55:25]wFMCommunicate OK [20:55:25]wFMCommunicate request_size=4 [20:55:25]MH_SAM_APDU [20:55:25]CAPDU: 80 0D 03 02 [20:55:25]Write to MH i2c: E2 08 00 E8 06 80 0D 03 02 00 00 00 00 69 [20:55:25]Write i2c OK [20:55:25]MH_I2C_Read... [20:55:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:55:25]Read from MH i2c: E2 [20:55:25]MH_I2C_Read... [20:55:25]Read from MH i2c: E2 0B 00 [20:55:25]MH_I2C_Read... [20:55:25]Read from MH i2c: E2 0B 00 E8 06 00 DE 77 7C 78 33 F5 F4 95 90 00 64 [20:55:25]RAPDU: DE 77 7C 78 33 F5 F4 95 90 00 [20:55:25]wFMCommunicate OK [20:55:25]SAM_PROTO_SignData done [20:55:25]FM_MakeSignedData done [20:55:25]CreateOFDProtocolMessage [20:55:25]wFMCommunicate request_size=4 [20:55:25]MH_SAM_APDU [20:55:25]CAPDU: 80 11 00 00 [20:55:25]Write to MH i2c: E2 08 00 E9 06 80 11 00 00 00 00 00 00 69 [20:55:25]Write i2c OK [20:55:25]MH_I2C_Read... [20:55:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:55:25]Read from MH i2c: E2 [20:55:25]MH_I2C_Read... [20:55:25]Read from MH i2c: E2 17 00 [20:55:25]MH_I2C_Read... [20:55:25]Read from MH i2c: E2 17 00 E9 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B8 [20:55:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:55:25]wFMCommunicate OK [20:55:25]CreateOFDProtocolMessage done [20:55:25]OFDSenderStorePacket 29354 [20:55:25]StoreOFDPacket docnum=29354 [20:55:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 11 91 06 01 35 27 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 02 AD 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 32 39 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 39 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 3C 00 00 00 00 07 04 06 00 24 39 02 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 BD 42 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AA 72 00 00 35 04 06 00 04 FE A1 9E 63 37 DE 77 7C 78 33 F5 F4 95 [20:55:26]CheckFolder [20:55:26]dirname=/storage/ofd_packets [20:55:26]CheckFolder done [20:55:26]ProducePacketName [20:55:26]name=ofd_packets/00029354 [20:55:26]NVStorageSaveData ofd_packets/00029354 [20:55:26]File name is /storage/ofd_packets/00029354 [20:55:26]Write 300 bytes [20:55:26]NVStorageSaveData done [20:55:26]OFDSenderStorePacket done [20:55:26]KKMCreateOFDPacket done [20:55:26]NVStorageSaveData kkm_last_timestamp [20:55:26]File name is /storage/kkm_last_timestamp [20:55:26]Write 4 bytes [20:55:26]NVStorageSaveData done [20:55:26]ExternCall_PrintAddStr [20:55:26]wPrintStart [20:55:26]Write to MH i2c: 01 00 00 EA 06 F0 [20:55:26]Write i2c OK [20:55:26]MH_I2C_Read... [20:55:26]Read from MH i2c: 01 [20:55:26]MH_I2C_Read... [20:55:26]Read from MH i2c: 01 07 00 [20:55:26]MH_I2C_Read... [20:55:26]Read from MH i2c: 01 07 00 EA 06 00 00 00 00 00 FF 0F 05 [20:55:26]RasterBufferAndPrint [20:55:26]line Счет N : (1)347748 [20:55:26]line ИНН: 02508201610067 [20:55:26]line Контрольно-Кассовый Чек [20:55:26]line ПРОДАЖА [20:55:26]line ТРК (МРК, ГНК) : 71 [20:55:26]line Товар: 2711129700 [20:55:26]line ГАЗ-К-5 [20:55:26]line 44.290 * 32.90 [20:55:26]line = 1457.14 [20:55:26]line НДС 12% НСП 1% [20:55:26]line > о реализуемом товаре [20:55:26]line ОКРУГЛЕНИЕ: -0.14 [20:55:26]line ИТОГО: 1457.00 [20:55:26]line Внесено: 1480.00 [20:55:26]line СДАЧА: 23.00 [20:55:26]line НСП 1% : 12.89 [20:55:26]line НДС 12% : 154.74 [20:55:26]line Наличными: 1457.00 [20:55:26]line Безнал.: 0.00 [20:55:26]line Место: АЗС № 108 "Партнер Нефть" [20:55:26]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [20:55:26]line СНО: Общий режим [20:55:26]line Чек 264 14.04.2024 20:55 [20:55:26]line Смена: 116 ФФД: 1.0 [20:55:26]line ЗНМ: 0300000027 [20:55:26]line РНМ: 0000138879044617 [20:55:26]line Версия ККМ: 001 [20:55:26]line ФМ: 0000000000963154 [20:55:26]line ФД: 29354 [20:55:26]line ФПД: 5491679716151 [20:55:26]line 1/tax-web-control/client/api/v1/ticket?date=20240414T205525&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29354&fm=5491679716151&tin=02508201610067®Number=0000138879044617&sum=145700 [20:55:26]written 0, free lines is 4095 [20:55:26]Write to MH i2c: 01 00 00 14 07 1B [20:55:26]Write i2c OK [20:55:26]MH_I2C_Read... [20:55:26]Read from MH i2c: 01 [20:55:26]MH_I2C_Read... [20:55:26]Read from MH i2c: 01 07 00 [20:55:26]MH_I2C_Read... [20:55:26]Read from MH i2c: 01 07 00 14 07 00 00 00 00 00 C9 0C F7 [20:55:26]RasterBufferAndPrint [20:55:26]line [20:55:26]line [20:55:26]line [20:55:26]line [20:55:26]line [20:55:26]written 0, free lines is 3280 [20:55:26]MH_Cut [20:55:26]Write to MH i2c: D1 01 00 1B 07 01 F4 [20:55:26]Write i2c OK [20:55:26]MH_I2C_Read... [20:55:26]Read from MH i2c: D1 [20:55:26]MH_I2C_Read... [20:55:26]Read from MH i2c: D1 01 00 [20:55:26]MH_I2C_Read... [20:55:26]Read from MH i2c: D1 01 00 1B 07 00 F3 [20:55:26]Write to MH i2c: 01 00 00 1C 07 23 [20:55:26]Write i2c OK [20:55:26]MH_I2C_Read... [20:55:27]*** Cut start [20:55:27]*** Partial cut [20:55:27]*** CUTSNS_PIN = 1 [20:55:27]*** CUTSNS_PIN = 0 [20:55:27]*** Brake cut motor [20:55:28]Read from MH i2c: 01 [20:55:28]MH_I2C_Read... [20:55:28]*** Stop cut motor [20:55:28]*** Cut end [20:55:28]Read from MH i2c: 01 07 00 [20:55:28]MH_I2C_Read... [20:55:28]Read from MH i2c: 01 07 00 1C 07 00 00 00 00 00 FF 0F 38 [20:55:28]process_action close_receipt done [20:55:28]requested_data is exist [20:55:28]produce_requested_data [20:55:28]requested_item fm.sn is exist - process it [20:55:28]wFMCommunicate request_size=4 [20:55:28]MH_SAM_APDU [20:55:28]CAPDU: 80 11 00 00 [20:55:28]Write to MH i2c: E2 08 00 1D 07 80 11 00 00 00 00 00 00 9E [20:55:28]Write i2c OK [20:55:28]MH_I2C_Read... [20:55:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:55:28]Read from MH i2c: E2 [20:55:28]MH_I2C_Read... [20:55:28]Read from MH i2c: E2 17 00 [20:55:28]MH_I2C_Read... [20:55:28]Read from MH i2c: E2 17 00 1D 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 ED [20:55:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:55:28]wFMCommunicate OK [20:55:28]requested_item fd.num is exist - process it [20:55:28]SAM_PROTO_GetFieldsCounters [20:55:28]wFMCommunicate request_size=4 [20:55:28]MH_SAM_APDU [20:55:28]CAPDU: 80 13 00 00 [20:55:28]Write to MH i2c: E2 08 00 1E 07 80 13 00 00 00 00 00 00 A1 [20:55:28]Write i2c OK [20:55:28]MH_I2C_Read... [20:55:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:55:28]Read from MH i2c: E2 [20:55:28]MH_I2C_Read... [20:55:28]Read from MH i2c: E2 62 00 [20:55:28]MH_I2C_Read... [20:55:28]Read from MH i2c: E2 62 00 1E 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 AA 72 00 00 0E 04 04 00 74 00 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 8A [20:55:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 AA 72 00 00 0E 04 04 00 74 00 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 [20:55:28]wFMCommunicate OK [20:55:28]SAM_PROTO_GetFieldsCounters done [20:55:28]requested_item shift.num is exist - process it [20:55:28]requested_item shift.opened is exist - process it [20:55:28]req_shift_opened [20:55:28]FM_GetShiftState [20:55:28]SAM_PROTO_GetShiftState [20:55:28]wFMCommunicate request_size=4 [20:55:28]MH_SAM_APDU [20:55:28]CAPDU: 80 13 01 00 [20:55:28]Write to MH i2c: E2 08 00 1F 07 80 13 01 00 00 00 00 00 A3 [20:55:28]Write i2c OK [20:55:28]MH_I2C_Read... [20:55:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:55:28]Read from MH i2c: E2 [20:55:28]MH_I2C_Read... [20:55:28]Read from MH i2c: E2 0E 00 [20:55:28]MH_I2C_Read... [20:55:28]Read from MH i2c: E2 0E 00 1F 07 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 4F [20:55:28]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [20:55:28]wFMCommunicate OK [20:55:28]SAM_PROTO_GetShiftState done [20:55:28]FM_GetShiftState done [20:55:28]req_shift_opened done [20:55:28]requested_item shift.open_date is exist - process it [20:55:28]req_shift_open_date [20:55:28]req_shift_open_date done [20:55:28]produce_requested_data done [20:55:28]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29354,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [20:55:28]process_action_free close_receipt [20:55:28]json_value_free [20:55:28]json_value_free done [20:55:28]process_json_proto returns [20:55:28]Send response to host [20:55:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29354,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [20:55:28]free response buf [20:55:28]execute_script done [20:55:28]execute_script returns [20:55:28]free content buf [20:55:28]Sock 9.Close socket [20:55:28]Sock 9.Thread stoped [20:56:56]accept exits with 8 [20:56:56]New connection [20:56:56]New thread 3067112804 created [20:56:56]Thread 3066969444 joined [20:56:56]Waiting for new connection... [20:56:56] Sock 8.Parse request [20:56:56]Sock 8.Check first char [20:56:56]Sock 8.First char is OK [20:56:56]request: POST /json_proto HTTP/1.0 [20:56:56]Method: POST [20:56:56]URL: /json_proto [20:56:56]Method is POST - this is cgi request [20:56:56]url: /json_proto [20:56:56]query_string will be loaded in cgi processing [20:56:56]execute_cgi json_proto POST (null) [20:56:56]execute_cgi path=json_proto method=POST [20:56:56]POST find Content-Length [20:56:56]Host: 172.17.33.3:8080 [20:56:56]Content-Length: 685 [20:56:56]Content-Type: application/json [20:56:56] [20:56:56]POST finish read [20:56:56]Found Content-Length = 685 [20:56:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347750", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 52.000, "sum" : 1710.80, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1710.00, "total" : 1710.00, "payments": [ { "type": 0, "sum" : 1710.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:56:56]execute_script... [20:56: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)347750", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 52.000, "sum" : 1710.80, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1710.00, "total" : 1710.00, "payments": [ { "type": 0, "sum" : 1710.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:56:56]POST & json_proto [20:56:56]process_json_proto [20:56:56]json parsed OK: [20:56:56]protocol is kg_v1.0 [20:56:56]action value=close_receipt [20:56:56]process_action close_receipt [20:56:56]cmd_close_receipt [20:56:56]MH_GetDate [20:56:56]Write to MH i2c: F0 00 00 20 07 16 [20:56:56]Write i2c OK [20:56:56]MH_I2C_Read... [20:56:56]Read from MH i2c: F0 [20:56:56]MH_I2C_Read... [20:56:56]Read from MH i2c: F0 09 00 [20:56:56]MH_I2C_Read... [20:56:56]Read from MH i2c: F0 09 00 20 07 00 19 43 1C 66 23 5B 8F 65 6F [20:56:56]GetLastDocTimeStamp 1713128125 [20:56:56]current date 1713128217 [20:56:56]FM_GetShiftState [20:56:56]SAM_PROTO_GetShiftState [20:56:56]wFMCommunicate request_size=4 [20:56:56]MH_SAM_APDU [20:56:56]CAPDU: 80 13 01 00 [20:56:56]Write to MH i2c: E2 08 00 21 07 80 13 01 00 00 00 00 00 A5 [20:56:56]Write i2c OK [20:56:56]MH_I2C_Read... [20:56:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:56:56]Read from MH i2c: E2 [20:56:56]MH_I2C_Read... [20:56:56]Read from MH i2c: E2 0E 00 [20:56:56]MH_I2C_Read... [20:56:56]Read from MH i2c: E2 0E 00 21 07 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 51 [20:56:56]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [20:56:56]wFMCommunicate OK [20:56:56]SAM_PROTO_GetShiftState done [20:56:56]FM_GetShiftState done [20:56:56]opened in 1713053951 [20:56:56]opened+sec_in_day 1713140351 [20:56:56]quantity*price = 171080 [20:56:56]sum+1 = 171081 [20:56:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.80 ИТОГО: 1710.00 Внесено: 1710.00 СДАЧА: 0.00 НСП 1% : 15.14 НДС 12% : 181.68 Наличными: 1710.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 265 14.04.2024 20:56 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29355 ФПД: 229696797259186 1/tax-web-control/client/api/v1/ticket?date=20240414T205657&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29355&fm=229696797259186&tin=02508201610067®Number=0000138879044617&sum=171000 [20:56:57]StoreToDocumentArchive [20:56:57]shift 116 fd 29355 [20:56:57]save to /storage/0116/doc_00029355 [20:56:57]save last doc name /storage/0116/doc_00029355 to /storage/kkm_last_doc_name [20:56:57]save OK [20:56:57]Clear old archive folders... [20:56:57]ProcessDocumentItem done err = 0, tmpTLVsize=250 [20:56:57]tlvbuf is 00257990 [20:56:57]SAM_PROTO_ClearQueue [20:56:57]wFMCommunicate request_size=4 [20:56:57]MH_SAM_APDU [20:56:57]CAPDU: 80 09 00 00 [20:56:57]Write to MH i2c: E2 08 00 2E 07 80 09 00 00 00 00 00 00 A7 [20:56:57]Write i2c OK [20:56:57]MH_I2C_Read... [20:56:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:56:57]Read from MH i2c: E2 [20:56:57]MH_I2C_Read... [20:56:57]Read from MH i2c: E2 03 00 [20:56:57]MH_I2C_Read... [20:56:57]Read from MH i2c: E2 03 00 2E 07 00 90 00 A9 [20:56:57]RAPDU: 90 00 [20:56:57]wFMCommunicate OK [20:56:57]SAM_PROTO_ClearQueue done [20:56:57]KKMCreateOFDPacket [20:56:57]OFDProtocolAddRootSTLVToBuf [20:56:57]FM_MakeSignedData [20:56:57]FM_MakeSignedData [20:56:57]SAM_PROTO_SignData [20:56:57]wFMCommunicate request_size=4 [20:56:57]MH_SAM_APDU [20:56:57]CAPDU: 80 0D 01 02 [20:56:57]Write to MH i2c: E2 08 00 2F 07 80 0D 01 02 00 00 00 00 AF [20:56:57]Write i2c OK [20:56:57]MH_I2C_Read... [20:56:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:56:57]Read from MH i2c: E2 [20:56:57]MH_I2C_Read... [20:56:57]Read from MH i2c: E2 03 00 [20:56:57]MH_I2C_Read... [20:56:57]Read from MH i2c: E2 03 00 2F 07 00 90 00 AA [20:56:57]RAPDU: 90 00 [20:56:57]wFMCommunicate OK [20:56:57]wFMCommunicate request_size=255 [20:56:57]MH_SAM_APDU [20:56:57]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 20 CB 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 48 9C 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 9B 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 46 00 00 00 00 07 04 06 00 F8 9B 02 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 19 43 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AB 72 00 00 35 04 06 00 D0 E8 [20:56:57]Write to MH i2c: E2 02 01 30 07 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 20 CB 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 48 9C 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 9B 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 46 00 00 00 00 07 04 06 00 F8 9B 02 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 19 43 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AB 72 00 00 35 04 06 00 D0 E8 00 00 C5 [20:56:57]Write i2c OK [20:56:57]MH_I2C_Read... [20:56:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:56:57]Read from MH i2c: E2 [20:56:57]MH_I2C_Read... [20:56:57]Read from MH i2c: E2 03 00 [20:56:57]MH_I2C_Read... [20:56:57]Read from MH i2c: E2 03 00 30 07 00 90 00 AB [20:56:57]RAPDU: 90 00 [20:56:57]wFMCommunicate OK [20:56:57]wFMCommunicate request_size=9 [20:56:57]MH_SAM_APDU [20:56:57]CAPDU: 80 0D 02 02 04 74 01 B5 B2 [20:56:57]Write to MH i2c: E2 0C 00 31 07 80 0D 02 02 04 00 74 01 B5 B2 00 00 96 [20:56:57]Write i2c OK [20:56:57]MH_I2C_Read... [20:56:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:56:57]Read from MH i2c: E2 [20:56:57]MH_I2C_Read... [20:56:57]Read from MH i2c: E2 03 00 [20:56:57]MH_I2C_Read... [20:56:57]Read from MH i2c: E2 03 00 31 07 00 90 00 AC [20:56:57]RAPDU: 90 00 [20:56:57]wFMCommunicate OK [20:56:57]wFMCommunicate request_size=4 [20:56:57]MH_SAM_APDU [20:56:57]CAPDU: 80 0D 03 02 [20:56:57]Write to MH i2c: E2 08 00 32 07 80 0D 03 02 00 00 00 00 B4 [20:56:57]Write i2c OK [20:56:57]MH_I2C_Read... [20:56:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:56:57]Read from MH i2c: E2 [20:56:57]MH_I2C_Read... [20:56:57]Read from MH i2c: E2 0B 00 [20:56:57]MH_I2C_Read... [20:56:57]Read from MH i2c: E2 0B 00 32 07 00 49 81 8C 61 1F C0 7E CE 90 00 97 [20:56:57]RAPDU: 49 81 8C 61 1F C0 7E CE 90 00 [20:56:57]wFMCommunicate OK [20:56:57]SAM_PROTO_SignData done [20:56:57]FM_MakeSignedData done [20:56:57]CreateOFDProtocolMessage [20:56:57]wFMCommunicate request_size=4 [20:56:57]MH_SAM_APDU [20:56:57]CAPDU: 80 11 00 00 [20:56:57]Write to MH i2c: E2 08 00 33 07 80 11 00 00 00 00 00 00 B4 [20:56:57]Write i2c OK [20:56:57]MH_I2C_Read... [20:56:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:56:58]Read from MH i2c: E2 [20:56:58]MH_I2C_Read... [20:56:58]Read from MH i2c: E2 17 00 [20:56:58]MH_I2C_Read... [20:56:58]Read from MH i2c: E2 17 00 33 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 03 [20:56:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:56:58]wFMCommunicate OK [20:56:58]CreateOFDProtocolMessage done [20:56:58]OFDSenderStorePacket 29355 [20:56:58]StoreOFDPacket docnum=29355 [20:56:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 AA 80 06 01 81 E5 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 20 CB 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 48 9C 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 9B 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 46 00 00 00 00 07 04 06 00 F8 9B 02 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 19 43 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AB 72 00 00 35 04 06 00 D0 E8 74 01 B5 B2 49 81 8C 61 1F C0 7E CE [20:56:58]CheckFolder [20:56:58]dirname=/storage/ofd_packets [20:56:58]CheckFolder done [20:56:58]ProducePacketName [20:56:58]name=ofd_packets/00029355 [20:56:58]NVStorageSaveData ofd_packets/00029355 [20:56:58]File name is /storage/ofd_packets/00029355 [20:56:58]Write 300 bytes [20:56:58]NVStorageSaveData done [20:56:58]OFDSenderStorePacket done [20:56:58]KKMCreateOFDPacket done [20:56:58]NVStorageSaveData kkm_last_timestamp [20:56:58]File name is /storage/kkm_last_timestamp [20:56:58]Write 4 bytes [20:56:58]NVStorageSaveData done [20:56:58]ExternCall_PrintAddStr [20:56:58]wPrintStart [20:56:58]Write to MH i2c: 01 00 00 34 07 3B [20:56:58]Write i2c OK [20:56:58]MH_I2C_Read... [20:56:58]Read from MH i2c: 01 [20:56:58]MH_I2C_Read... [20:56:58]Read from MH i2c: 01 07 00 [20:56:58]MH_I2C_Read... [20:56:58]Read from MH i2c: 01 07 00 34 07 00 00 00 00 00 FF 0F 50 [20:56:58]RasterBufferAndPrint [20:56:58]line Счет N : (1)347750 [20:56:58]line ИНН: 02508201610067 [20:56:58]line Контрольно-Кассовый Чек [20:56:58]line ПРОДАЖА [20:56:58]line ТРК (МРК, ГНК) : 71 [20:56:58]line Товар: 2711129700 [20:56:58]line ГАЗ-К-5 [20:56:58]line 52.000 * 32.90 [20:56:58]line = 1710.80 [20:56:58]line НДС 12% НСП 1% [20:56:58]line > о реализуемом товаре [20:56:58]line ОКРУГЛЕНИЕ: -0.80 [20:56:58]line ИТОГО: 1710.00 [20:56:58]line Внесено: 1710.00 [20:56:58]line СДАЧА: 0.00 [20:56:58]line НСП 1% : 15.14 [20:56:58]line НДС 12% : 181.68 [20:56:58]line Наличными: 1710.00 [20:56:58]line Безнал.: 0.00 [20:56:58]line Место: АЗС № 108 "Партнер Нефть" [20:56:58]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [20:56:58]line СНО: Общий режим [20:56:58]line Чек 265 14.04.2024 20:56 [20:56:58]line Смена: 116 ФФД: 1.0 [20:56:58]line ЗНМ: 0300000027 [20:56:58]line РНМ: 0000138879044617 [20:56:58]line Версия ККМ: 001 [20:56:58]line ФМ: 0000000000963154 [20:56:58]line ФД: 29355 [20:56:58]line ФПД: 229696797259186 [20:56:58]line 1/tax-web-control/client/api/v1/ticket?date=20240414T205657&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29355&fm=229696797259186&tin=02508201610067®Number=0000138879044617&sum=171000 [20:56:58]written 0, free lines is 4095 [20:56:58]Write to MH i2c: 01 00 00 5E 07 65 [20:56:58]Write i2c OK [20:56:58]MH_I2C_Read... [20:56:58]Read from MH i2c: 01 [20:56:58]MH_I2C_Read... [20:56:58]Read from MH i2c: 01 07 00 [20:56:58]MH_I2C_Read... [20:56:58]Read from MH i2c: 01 07 00 5E 07 00 00 00 00 00 C9 0C 41 [20:56:58]RasterBufferAndPrint [20:56:58]line [20:56:58]line [20:56:58]line [20:56:58]line [20:56:58]line [20:56:58]written 0, free lines is 3277 [20:56:58]MH_Cut [20:56:58]Write to MH i2c: D1 01 00 65 07 01 3E [20:56:58]Write i2c OK [20:56:58]MH_I2C_Read... [20:56:58]Read from MH i2c: D1 [20:56:58]MH_I2C_Read... [20:56:58]Read from MH i2c: D1 01 00 [20:56:58]MH_I2C_Read... [20:56:58]Read from MH i2c: D1 01 00 65 07 00 3D [20:56:58]Write to MH i2c: 01 00 00 66 07 6D [20:56:58]Write i2c OK [20:56:58]MH_I2C_Read... [20:56:59]*** Cut start [20:56:59]*** Partial cut [20:56:59]*** CUTSNS_PIN = 1 [20:56:59]*** CUTSNS_PIN = 0 [20:56:59]*** Brake cut motor [20:57:00]Read from MH i2c: 01 [20:57:00]MH_I2C_Read... [20:57:00]*** Stop cut motor [20:57:00]*** Cut end [20:57:00]Read from MH i2c: 01 07 00 [20:57:00]MH_I2C_Read... [20:57:00]Read from MH i2c: 01 07 00 66 07 00 00 00 00 00 FF 0F 82 [20:57:00]process_action close_receipt done [20:57:00]requested_data is exist [20:57:00]produce_requested_data [20:57:00]requested_item fm.sn is exist - process it [20:57:00]wFMCommunicate request_size=4 [20:57:00]MH_SAM_APDU [20:57:00]CAPDU: 80 11 00 00 [20:57:00]Write to MH i2c: E2 08 00 67 07 80 11 00 00 00 00 00 00 E8 [20:57:00]Write i2c OK [20:57:00]MH_I2C_Read... [20:57:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:57:00]Read from MH i2c: E2 [20:57:00]MH_I2C_Read... [20:57:00]Read from MH i2c: E2 17 00 [20:57:00]MH_I2C_Read... [20:57:00]Read from MH i2c: E2 17 00 67 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 37 [20:57:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:57:00]wFMCommunicate OK [20:57:00]requested_item fd.num is exist - process it [20:57:00]SAM_PROTO_GetFieldsCounters [20:57:00]wFMCommunicate request_size=4 [20:57:00]MH_SAM_APDU [20:57:00]CAPDU: 80 13 00 00 [20:57:00]Write to MH i2c: E2 08 00 68 07 80 13 00 00 00 00 00 00 EB [20:57:00]Write i2c OK [20:57:00]MH_I2C_Read... [20:57:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:57:00]Read from MH i2c: E2 [20:57:00]MH_I2C_Read... [20:57:00]Read from MH i2c: E2 62 00 [20:57:00]MH_I2C_Read... [20:57:00]Read from MH i2c: E2 62 00 68 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 AB 72 00 00 0E 04 04 00 74 00 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 D8 [20:57:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 AB 72 00 00 0E 04 04 00 74 00 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 [20:57:00]wFMCommunicate OK [20:57:00]SAM_PROTO_GetFieldsCounters done [20:57:00]requested_item shift.num is exist - process it [20:57:00]requested_item shift.opened is exist - process it [20:57:00]req_shift_opened [20:57:00]FM_GetShiftState [20:57:00]SAM_PROTO_GetShiftState [20:57:00]wFMCommunicate request_size=4 [20:57:00]MH_SAM_APDU [20:57:00]CAPDU: 80 13 01 00 [20:57:00]Write to MH i2c: E2 08 00 69 07 80 13 01 00 00 00 00 00 ED [20:57:00]Write i2c OK [20:57:00]MH_I2C_Read... [20:57:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:57:00]Read from MH i2c: E2 [20:57:00]MH_I2C_Read... [20:57:00]Read from MH i2c: E2 0E 00 [20:57:00]MH_I2C_Read... [20:57:00]Read from MH i2c: E2 0E 00 69 07 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 99 [20:57:00]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [20:57:00]wFMCommunicate OK [20:57:00]SAM_PROTO_GetShiftState done [20:57:00]FM_GetShiftState done [20:57:00]req_shift_opened done [20:57:00]requested_item shift.open_date is exist - process it [20:57:00]req_shift_open_date [20:57:00]req_shift_open_date done [20:57:00]produce_requested_data done [20:57:00]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29355,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [20:57:00]process_action_free close_receipt [20:57:00]json_value_free [20:57:00]json_value_free done [20:57:00]process_json_proto returns [20:57:00]Send response to host [20:57:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29355,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [20:57:00]free response buf [20:57:00]execute_script done [20:57:00]execute_script returns [20:57:00]free content buf [20:57:00]Sock 8.Close socket [20:57:00]Sock 8.Thread stoped [20:57:31]ConnectInit Can't connect to host [20:57:31]CommunicateWithHost connect error [20:57:31]CommunicateWithHost err = -1 [20:57:31]OFD Sender: Server communicate error [20:57:31]OFD Sender: Processing packet 29353 [packets to send 10, broken 7] [20:57:31]ProducePacketName [20:57:31]name=ofd_packets/00029353 [20:57:31]OFD Sender: To server: pG, [20:57:31]CommunicateWithHost lk.salyk.kg:30040 [20:57:31]ConnectInit lk.salyk.kg [20:57:31]Connected sock=8 [20:57:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 2A 01 00 00 31 9F 22 01 93 77 5A 03 01 00 03 00 16 01 1E 04 01 00 02 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C8 AF 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 52 42 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 42 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1E 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 3D 00 00 00 00 07 04 06 00 20 42 02 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 B8 42 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 A7 72 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A9 72 00 00 35 04 06 00 2E DA 3C B3 45 7A 6D 91 43 83 AE AB A8 67 [20:57:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 B1 88 47 00 7C A7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A9 72 00 00 F4 03 04 00 DD ED 1B 66 B6 04 01 00 00 40 AA 60 C0 19 32 AF 85 [20:57:31]CommunicateWithHost err = 0 [20:57:31]CheckOFDResponse [20:57:31]1017 (14) - 77093643461234 [20:57:31]1041 (16) - 0000000000963154 [20:57:31]1040 (4) - 29353 [20:57:31]1012 (4) - 14.04.2024 14:53 [20:57:31]1206 (1) - 0 [20:57:31]OFD Sender: Remove packet 29353 [20:57:31]ProducePacketName [20:57:31]name=ofd_packets/00029353 [20:57:31]NVStorageDeleteData [20:57:32]OFD Sender: Processing packet 29354 [packets to send 9, broken 7] [20:57:32]ProducePacketName [20:57:32]name=ofd_packets/00029354 [20:57:32]OFD Sender: To server: pG, [20:57:32]CommunicateWithHost lk.salyk.kg:30040 [20:57:32]ConnectInit lk.salyk.kg [20:57:32]Connected sock=8 [20:57:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 11 91 06 01 35 27 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 02 AD 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 32 39 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 39 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 3C 00 00 00 00 07 04 06 00 24 39 02 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 BD 42 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AA 72 00 00 35 04 06 00 04 FE A1 9E 63 37 DE 77 7C 78 33 F5 F4 95 [20:57:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 20 58 47 00 76 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AA 72 00 00 F4 03 04 00 DE ED 1B 66 B6 04 01 00 00 4D 24 2F F3 3B A8 ED 70 [20:57:32]CommunicateWithHost err = 0 [20:57:32]CheckOFDResponse [20:57:32]1017 (14) - 77093643461234 [20:57:32]1041 (16) - 0000000000963154 [20:57:32]1040 (4) - 29354 [20:57:32]1012 (4) - 14.04.2024 14:53 [20:57:32]1206 (1) - 0 [20:57:32]OFD Sender: Remove packet 29354 [20:57:32]ProducePacketName [20:57:32]name=ofd_packets/00029354 [20:57:32]NVStorageDeleteData [20:57:32]OFD Sender: Processing packet 29355 [packets to send 8, broken 7] [20:57:32]ProducePacketName [20:57:32]name=ofd_packets/00029355 [20:57:32]OFD Sender: To server: pG, [20:57:32]CommunicateWithHost lk.salyk.kg:30040 [20:57:32]ConnectInit lk.salyk.kg [20:57:33]Connected sock=8 [20:57:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 AA 80 06 01 81 E5 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 20 CB 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 48 9C 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 9B 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 46 00 00 00 00 07 04 06 00 F8 9B 02 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 19 43 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AB 72 00 00 35 04 06 00 D0 E8 74 01 B5 B2 49 81 8C 61 1F C0 7E CE [20:57:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 96 39 47 00 A7 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AB 72 00 00 F4 03 04 00 DF ED 1B 66 B6 04 01 00 00 A9 B3 AD 4E 16 03 44 41 [20:57:33]CommunicateWithHost err = 0 [20:57:33]CheckOFDResponse [20:57:33]1017 (14) - 77093643461234 [20:57:33]1041 (16) - 0000000000963154 [20:57:33]1040 (4) - 29355 [20:57:33]1012 (4) - 14.04.2024 14:53 [20:57:33]1206 (1) - 0 [20:57:33]OFD Sender: Remove packet 29355 [20:57:33]ProducePacketName [20:57:33]name=ofd_packets/00029355 [20:57:33]NVStorageDeleteData [20:57:33]OFD Sender: No OFD packet to send [20:57:38]OFD Sender: No OFD packet to send [20:57:43]OFD Sender: No OFD packet to send [20:57:48]OFD Sender: No OFD packet to send [20:57:53]OFD Sender: No OFD packet to send [20:57:58]OFD Sender: No OFD packet to send [20:58:03]OFD Sender: No OFD packet to send [20:58:08]OFD Sender: No OFD packet to send [20:58:13]OFD Sender: No OFD packet to send [20:58:18]OFD Sender: No OFD packet to send [20:58:19]accept exits with 9 [20:58:19]New connection [20:58:19]New thread 3066969444 created [20:58:19]Thread 3067112804 joined [20:58:19]Waiting for new connection... [20:58:19] Sock 9.Parse request [20:58:19]Sock 9.Check first char [20:58:19]Sock 9.First char is OK [20:58:19]request: POST /json_proto HTTP/1.0 [20:58:19]Method: POST [20:58:19]URL: /json_proto [20:58:19]Method is POST - this is cgi request [20:58:19]url: /json_proto [20:58:19]query_string will be loaded in cgi processing [20:58:19]execute_cgi json_proto POST (null) [20:58:19]execute_cgi path=json_proto method=POST [20:58:19]POST find Content-Length [20:58:19]Host: 172.17.33.3:8080 [20:58:19]Content-Length: 808 [20:58:19]Content-Type: application/json [20:58:19] [20:58:19]POST finish read [20:58:19]Found Content-Length = 808 [20:58:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347751", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:58:19]execute_script... [20:58:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347751", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:58:19]POST & json_proto [20:58:19]process_json_proto [20:58:19]json parsed OK: [20:58:19]protocol is kg_v1.0 [20:58:19]action value=close_receipt [20:58:19]process_action close_receipt [20:58:19]cmd_close_receipt [20:58:19]MH_GetDate [20:58:19]Write to MH i2c: F0 00 00 6A 07 60 [20:58:19]Write i2c OK [20:58:19]MH_I2C_Read... [20:58:19]Read from MH i2c: F0 [20:58:19]MH_I2C_Read... [20:58:19]Read from MH i2c: F0 09 00 [20:58:19]MH_I2C_Read... [20:58:19]Read from MH i2c: F0 09 00 6A 07 00 6C 43 1C 66 23 5B 8F 65 0C [20:58:19]GetLastDocTimeStamp 1713128217 [20:58:19]current date 1713128300 [20:58:19]FM_GetShiftState [20:58:19]SAM_PROTO_GetShiftState [20:58:19]wFMCommunicate request_size=4 [20:58:19]MH_SAM_APDU [20:58:19]CAPDU: 80 13 01 00 [20:58:19]Write to MH i2c: E2 08 00 6B 07 80 13 01 00 00 00 00 00 EF [20:58:19]Write i2c OK [20:58:19]MH_I2C_Read... [20:58:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:58:19]Read from MH i2c: E2 [20:58:19]MH_I2C_Read... [20:58:19]Read from MH i2c: E2 0E 00 [20:58:19]MH_I2C_Read... [20:58:19]Read from MH i2c: E2 0E 00 6B 07 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 9B [20:58:19]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [20:58:19]wFMCommunicate OK [20:58:19]SAM_PROTO_GetShiftState done [20:58:19]FM_GetShiftState done [20:58:19]opened in 1713053951 [20:58:19]opened+sec_in_day 1713140351 [20:58:19]quantity*price = 100050 [20:58:19]sum+1 = 100051 [20:58:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.50 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.50 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 266 14.04.2024 20:58 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29356 ФПД: 261299906534629 1/tax-web-control/client/api/v1/ticket?date=20240414T205820&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29356&fm=261299906534629&tin=02508201610067®Number=0000138879044617&sum=100050 [20:58:20]StoreToDocumentArchive [20:58:20]shift 116 fd 29356 [20:58:20]save to /storage/0116/doc_00029356 [20:58:20]save last doc name /storage/0116/doc_00029356 to /storage/kkm_last_doc_name [20:58:20]save OK [20:58:20]Clear old archive folders... [20:58:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:58:20]tlvbuf is 00261810 [20:58:20]SAM_PROTO_ClearQueue [20:58:20]wFMCommunicate request_size=4 [20:58:20]MH_SAM_APDU [20:58:20]CAPDU: 80 09 00 00 [20:58:20]Write to MH i2c: E2 08 00 78 07 80 09 00 00 00 00 00 00 F1 [20:58:20]Write i2c OK [20:58:20]MH_I2C_Read... [20:58:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:58:20]Read from MH i2c: E2 [20:58:20]MH_I2C_Read... [20:58:20]Read from MH i2c: E2 03 00 [20:58:20]MH_I2C_Read... [20:58:20]Read from MH i2c: E2 03 00 78 07 00 90 00 F3 [20:58:20]RAPDU: 90 00 [20:58:20]wFMCommunicate OK [20:58:20]SAM_PROTO_ClearQueue done [20:58:20]KKMCreateOFDPacket [20:58:20]OFDProtocolAddRootSTLVToBuf [20:58:20]FM_MakeSignedData [20:58:20]FM_MakeSignedData [20:58:20]SAM_PROTO_SignData [20:58:20]wFMCommunicate request_size=4 [20:58:20]MH_SAM_APDU [20:58:20]CAPDU: 80 0D 01 02 [20:58:20]Write to MH i2c: E2 08 00 79 07 80 0D 01 02 00 00 00 00 F9 [20:58:20]Write i2c OK [20:58:20]MH_I2C_Read... [20:58:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:58:20]Read from MH i2c: E2 [20:58:20]MH_I2C_Read... [20:58:20]Read from MH i2c: E2 03 00 [20:58:20]MH_I2C_Read... [20:58:20]Read from MH i2c: E2 03 00 79 07 00 90 00 F4 [20:58:20]RAPDU: 90 00 [20:58:20]wFMCommunicate OK [20:58:20]wFMCommunicate request_size=255 [20:58:20]MH_SAM_APDU [20:58: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 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 0A 01 00 00 F4 03 04 00 6C 43 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AC 72 00 00 35 04 06 00 ED [20:58:20]Write to MH i2c: E2 02 01 7A 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 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 0A 01 00 00 F4 03 04 00 6C 43 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AC 72 00 00 35 04 06 00 ED 00 00 97 [20:58:20]Write i2c OK [20:58:20]MH_I2C_Read... [20:58:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:58:20]Read from MH i2c: E2 [20:58:20]MH_I2C_Read... [20:58:20]Read from MH i2c: E2 03 00 [20:58:20]MH_I2C_Read... [20:58:20]Read from MH i2c: E2 03 00 7A 07 00 90 00 F5 [20:58:20]RAPDU: 90 00 [20:58:20]wFMCommunicate OK [20:58:20]wFMCommunicate request_size=10 [20:58:20]MH_SAM_APDU [20:58:20]CAPDU: 80 0D 02 02 05 A6 A0 1B DC E5 [20:58:20]Write to MH i2c: E2 0D 00 7B 07 80 0D 02 02 05 00 A6 A0 1B DC E5 00 00 28 [20:58:20]Write i2c OK [20:58:20]MH_I2C_Read... [20:58:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:58:20]Read from MH i2c: E2 [20:58:20]MH_I2C_Read... [20:58:20]Read from MH i2c: E2 03 00 [20:58:20]MH_I2C_Read... [20:58:20]Read from MH i2c: E2 03 00 7B 07 00 90 00 F6 [20:58:20]RAPDU: 90 00 [20:58:20]wFMCommunicate OK [20:58:20]wFMCommunicate request_size=4 [20:58:20]MH_SAM_APDU [20:58:20]CAPDU: 80 0D 03 02 [20:58:20]Write to MH i2c: E2 08 00 7C 07 80 0D 03 02 00 00 00 00 FE [20:58:20]Write i2c OK [20:58:20]MH_I2C_Read... [20:58:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:58:20]Read from MH i2c: E2 [20:58:20]MH_I2C_Read... [20:58:20]Read from MH i2c: E2 0B 00 [20:58:20]MH_I2C_Read... [20:58:20]Read from MH i2c: E2 0B 00 7C 07 00 6D 17 A0 AD 64 1E B6 D3 90 00 DB [20:58:20]RAPDU: 6D 17 A0 AD 64 1E B6 D3 90 00 [20:58:20]wFMCommunicate OK [20:58:20]SAM_PROTO_SignData done [20:58:20]FM_MakeSignedData done [20:58:20]CreateOFDProtocolMessage [20:58:20]wFMCommunicate request_size=4 [20:58:20]MH_SAM_APDU [20:58:20]CAPDU: 80 11 00 00 [20:58:20]Write to MH i2c: E2 08 00 7D 07 80 11 00 00 00 00 00 00 FE [20:58:20]Write i2c OK [20:58:20]MH_I2C_Read... [20:58:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:58:20]Read from MH i2c: E2 [20:58:20]MH_I2C_Read... [20:58:20]Read from MH i2c: E2 17 00 [20:58:20]MH_I2C_Read... [20:58:20]Read from MH i2c: E2 17 00 7D 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 4D [20:58:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:58:20]wFMCommunicate OK [20:58:20]CreateOFDProtocolMessage done [20:58:20]OFDSenderStorePacket 29356 [20:58:20]StoreOFDPacket docnum=29356 [20:58:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 96 9A 07 01 92 D3 5A 03 01 00 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 0A 01 00 00 F4 03 04 00 6C 43 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AC 72 00 00 35 04 06 00 ED A6 A0 1B DC E5 6D 17 A0 AD 64 1E B6 D3 [20:58:20]CheckFolder [20:58:20]dirname=/storage/ofd_packets [20:58:20]CheckFolder done [20:58:20]ProducePacketName [20:58:20]name=ofd_packets/00029356 [20:58:20]NVStorageSaveData ofd_packets/00029356 [20:58:20]File name is /storage/ofd_packets/00029356 [20:58:20]Write 301 bytes [20:58:20]NVStorageSaveData done [20:58:20]OFDSenderStorePacket done [20:58:20]KKMCreateOFDPacket done [20:58:20]NVStorageSaveData kkm_last_timestamp [20:58:20]File name is /storage/kkm_last_timestamp [20:58:20]Write 4 bytes [20:58:20]NVStorageSaveData done [20:58:20]ExternCall_PrintAddStr [20:58:21]wPrintStart [20:58:21]Write to MH i2c: 01 00 00 7E 07 85 [20:58:21]Write i2c OK [20:58:21]MH_I2C_Read... [20:58:21]Read from MH i2c: 01 [20:58:21]MH_I2C_Read... [20:58:21]Read from MH i2c: 01 07 00 [20:58:21]MH_I2C_Read... [20:58:21]Read from MH i2c: 01 07 00 7E 07 00 00 00 00 00 FF 0F 9A [20:58:21]RasterBufferAndPrint [20:58:21]line Счет N : (1)347751 [20:58:21]line ИНН: 02508201610067 [20:58:21]line Контрольно-Кассовый Чек [20:58:21]line ПРОДАЖА [20:58:21]line ТРК (МРК, ГНК) : 43 [20:58:21]line Товар: 2710124500 [20:58:21]line Аи-95-К-5 [20:58:21]line 13.800 * 72.50 [20:58:21]line = 1000.50 [20:58:21]line НДС 12% НСП 1% [20:58:21]line > о реализуемом товаре [20:58:21]line ИТОГО: 1000.50 [20:58:21]line НСП 1% : 8.85 [20:58:21]line НДС 12% : 106.25 [20:58:21]line Наличными: 0.00 [20:58:21]line Безнал.: 1000.50 [20:58:21]line Место: АЗС № 108 "Партнер Нефть" [20:58:21]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [20:58:21]line СНО: Общий режим [20:58:21]line Чек 266 14.04.2024 20:58 [20:58:21]line Смена: 116 ФФД: 1.0 [20:58:21]line ЗНМ: 0300000027 [20:58:21]line РНМ: 0000138879044617 [20:58:21]line Версия ККМ: 001 [20:58:21]line Платежная система: О! деньги [20:58:21]line ФМ: 0000000000963154 [20:58:21]line ФД: 29356 [20:58:21]line ФПД: 261299906534629 [20:58:21]line 1/tax-web-control/client/api/v1/ticket?date=20240414T205820&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29356&fm=261299906534629&tin=02508201610067®Number=0000138879044617&sum=100050 [20:58:21]OFD Sender: Processing packet 29356 [packets to send 8, broken 7] [20:58:21]ProducePacketName [20:58:21]name=ofd_packets/00029356 [20:58:21]OFD Sender: To server: pG, [20:58:21]CommunicateWithHost lk.salyk.kg:30040 [20:58:21]ConnectInit lk.salyk.kg [20:58:21]written 0, free lines is 4095 [20:58:21]Connected sock=10 [20:58:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 96 9A 07 01 92 D3 5A 03 01 00 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 0A 01 00 00 F4 03 04 00 6C 43 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AC 72 00 00 35 04 06 00 ED A6 A0 1B DC E5 6D 17 A0 AD 64 1E B6 D3 [20:58:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 83 9B 47 00 16 FE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AC 72 00 00 F4 03 04 00 0F EE 1B 66 B6 04 01 00 00 3D B8 00 B3 00 45 E1 98 [20:58:21]CommunicateWithHost err = 0 [20:58:21]CheckOFDResponse [20:58:21]1017 (14) - 77093643461234 [20:58:21]1041 (16) - 0000000000963154 [20:58:21]1040 (4) - 29356 [20:58:21]1012 (4) - 14.04.2024 14:54 [20:58:21]1206 (1) - 0 [20:58:21]OFD Sender: Remove packet 29356 [20:58:21]ProducePacketName [20:58:21]name=ofd_packets/00029356 [20:58:21]NVStorageDeleteData [20:58:21]Write to MH i2c: 01 00 00 A7 07 AE [20:58:21]Write i2c OK [20:58:21]MH_I2C_Read... [20:58:21]Read from MH i2c: 01 [20:58:21]MH_I2C_Read... [20:58:21]Read from MH i2c: 01 07 00 [20:58:21]MH_I2C_Read... [20:58:21]Read from MH i2c: 01 07 00 A7 07 00 00 00 00 00 EB 0C AC [20:58:21]RasterBufferAndPrint [20:58:21]line [20:58:21]line [20:58:21]line [20:58:21]line [20:58:21]line [20:58:21]written 0, free lines is 3313 [20:58:21]MH_Cut [20:58:21]Write to MH i2c: D1 01 00 AE 07 01 87 [20:58:21]Write i2c OK [20:58:21]MH_I2C_Read... [20:58:21]Read from MH i2c: D1 [20:58:21]MH_I2C_Read... [20:58:21]Read from MH i2c: D1 01 00 [20:58:21]MH_I2C_Read... [20:58:21]Read from MH i2c: D1 01 00 AE 07 00 86 [20:58:21]Write to MH i2c: 01 00 00 AF 07 B6 [20:58:21]Write i2c OK [20:58:21]MH_I2C_Read... [20:58:22]OFD Sender: No OFD packet to send [20:58:22]*** Cut start [20:58:22]*** Partial cut [20:58:22]*** CUTSNS_PIN = 1 [20:58:22]*** CUTSNS_PIN = 0 [20:58:22]*** Brake cut motor [20:58:23]Read from MH i2c: 01 [20:58:23]MH_I2C_Read... [20:58:23]*** Stop cut motor [20:58:23]*** Cut end [20:58:23]Read from MH i2c: 01 07 00 [20:58:23]MH_I2C_Read... [20:58:23]Read from MH i2c: 01 07 00 AF 07 00 00 00 00 00 FF 0F CB [20:58:23]process_action close_receipt done [20:58:23]requested_data is exist [20:58:23]produce_requested_data [20:58:23]requested_item fm.sn is exist - process it [20:58:23]wFMCommunicate request_size=4 [20:58:23]MH_SAM_APDU [20:58:23]CAPDU: 80 11 00 00 [20:58:23]Write to MH i2c: E2 08 00 B0 07 80 11 00 00 00 00 00 00 31 [20:58:23]Write i2c OK [20:58:23]MH_I2C_Read... [20:58:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:58:23]Read from MH i2c: E2 [20:58:23]MH_I2C_Read... [20:58:23]Read from MH i2c: E2 17 00 [20:58:23]MH_I2C_Read... [20:58:23]Read from MH i2c: E2 17 00 B0 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 80 [20:58:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:58:23]wFMCommunicate OK [20:58:23]requested_item fd.num is exist - process it [20:58:23]SAM_PROTO_GetFieldsCounters [20:58:23]wFMCommunicate request_size=4 [20:58:23]MH_SAM_APDU [20:58:23]CAPDU: 80 13 00 00 [20:58:23]Write to MH i2c: E2 08 00 B1 07 80 13 00 00 00 00 00 00 34 [20:58:23]Write i2c OK [20:58:23]MH_I2C_Read... [20:58:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:58:23]Read from MH i2c: E2 [20:58:23]MH_I2C_Read... [20:58:23]Read from MH i2c: E2 62 00 [20:58:23]MH_I2C_Read... [20:58:23]Read from MH i2c: E2 62 00 B1 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 AC 72 00 00 0E 04 04 00 74 00 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 25 [20:58:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 AC 72 00 00 0E 04 04 00 74 00 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 [20:58:23]wFMCommunicate OK [20:58:23]SAM_PROTO_GetFieldsCounters done [20:58:23]requested_item shift.num is exist - process it [20:58:23]requested_item shift.opened is exist - process it [20:58:23]req_shift_opened [20:58:23]FM_GetShiftState [20:58:23]SAM_PROTO_GetShiftState [20:58:23]wFMCommunicate request_size=4 [20:58:23]MH_SAM_APDU [20:58:23]CAPDU: 80 13 01 00 [20:58:23]Write to MH i2c: E2 08 00 B2 07 80 13 01 00 00 00 00 00 36 [20:58:23]Write i2c OK [20:58:23]MH_I2C_Read... [20:58:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:58:23]Read from MH i2c: E2 [20:58:23]MH_I2C_Read... [20:58:23]Read from MH i2c: E2 0E 00 [20:58:23]MH_I2C_Read... [20:58:23]Read from MH i2c: E2 0E 00 B2 07 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 E2 [20:58:23]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [20:58:23]wFMCommunicate OK [20:58:23]SAM_PROTO_GetShiftState done [20:58:23]FM_GetShiftState done [20:58:23]req_shift_opened done [20:58:23]requested_item shift.open_date is exist - process it [20:58:23]req_shift_open_date [20:58:23]req_shift_open_date done [20:58:23]produce_requested_data done [20:58:23]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29356,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [20:58:23]process_action_free close_receipt [20:58:23]json_value_free [20:58:23]json_value_free done [20:58:23]process_json_proto returns [20:58:23]Send response to host [20:58:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29356,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [20:58:23]free response buf [20:58:23]execute_script done [20:58:23]execute_script returns [20:58:23]free content buf [20:58:23]Sock 9.Close socket [20:58:23]Sock 9.Thread stoped [20:58:27]OFD Sender: No OFD packet to send [20:58:32]OFD Sender: No OFD packet to send [20:58:37]OFD Sender: No OFD packet to send [20:58:42]OFD Sender: No OFD packet to send [20:58:47]OFD Sender: No OFD packet to send [20:58:52]OFD Sender: No OFD packet to send [20:58:57]OFD Sender: No OFD packet to send [20:59:02]OFD Sender: No OFD packet to send [20:59:07]OFD Sender: No OFD packet to send [20:59:12]OFD Sender: No OFD packet to send [20:59:17]OFD Sender: No OFD packet to send [20:59:22]OFD Sender: No OFD packet to send [20:59:27]OFD Sender: No OFD packet to send [20:59:32]OFD Sender: No OFD packet to send [20:59:37]OFD Sender: No OFD packet to send [20:59:42]OFD Sender: No OFD packet to send [20:59:47]OFD Sender: No OFD packet to send [20:59:52]OFD Sender: No OFD packet to send [20:59:57]OFD Sender: No OFD packet to send [21:00:02]OFD Sender: No OFD packet to send [21:00:07]OFD Sender: No OFD packet to send [21:00:12]OFD Sender: No OFD packet to send [21:00:17]OFD Sender: No OFD packet to send [21:00:22]OFD Sender: No OFD packet to send [21:00:27]OFD Sender: No OFD packet to send [21:00:32]OFD Sender: No OFD packet to send [21:00:37]OFD Sender: No OFD packet to send [21:00:42]OFD Sender: No OFD packet to send [21:00:47]OFD Sender: No OFD packet to send [21:00:52]OFD Sender: No OFD packet to send [21:00:57]OFD Sender: No OFD packet to send [21:01:02]OFD Sender: No OFD packet to send [21:01:07]OFD Sender: No OFD packet to send [21:01:12]OFD Sender: No OFD packet to send [21:01:17]OFD Sender: No OFD packet to send [21:01:22]OFD Sender: No OFD packet to send [21:01:27]OFD Sender: No OFD packet to send [21:01:32]OFD Sender: No OFD packet to send [21:01:37]OFD Sender: No OFD packet to send [21:01:42]OFD Sender: No OFD packet to send [21:01:47]OFD Sender: No OFD packet to send [21:01:52]OFD Sender: No OFD packet to send [21:01:57]OFD Sender: No OFD packet to send [21:02:02]OFD Sender: No OFD packet to send [21:02:07]OFD Sender: No OFD packet to send [21:02:12]OFD Sender: No OFD packet to send [21:02:17]OFD Sender: No OFD packet to send [21:02:22]OFD Sender: No OFD packet to send [21:02:27]OFD Sender: No OFD packet to send [21:02:32]OFD Sender: No OFD packet to send [21:02:37]OFD Sender: No OFD packet to send [21:02:42]OFD Sender: No OFD packet to send [21:02:47]OFD Sender: No OFD packet to send [21:02:52]OFD Sender: No OFD packet to send [21:02:57]OFD Sender: No OFD packet to send [21:03:02]OFD Sender: No OFD packet to send [21:03:07]OFD Sender: No OFD packet to send [21:03:12]OFD Sender: No OFD packet to send [21:03:17]OFD Sender: No OFD packet to send [21:03:22]OFD Sender: No OFD packet to send [21:03:27]OFD Sender: No OFD packet to send [21:03:32]OFD Sender: No OFD packet to send [21:03:37]OFD Sender: No OFD packet to send [21:03:42]OFD Sender: No OFD packet to send [21:03:47]OFD Sender: No OFD packet to send [21:03:52]OFD Sender: No OFD packet to send [21:03:57]OFD Sender: No OFD packet to send [21:04:02]OFD Sender: No OFD packet to send [21:04:07]OFD Sender: No OFD packet to send [21:04:12]OFD Sender: No OFD packet to send [21:04:17]OFD Sender: No OFD packet to send [21:04:22]OFD Sender: No OFD packet to send [21:04:27]OFD Sender: No OFD packet to send [21:04:32]OFD Sender: No OFD packet to send [21:04:37]OFD Sender: No OFD packet to send [21:04:42]OFD Sender: No OFD packet to send [21:04:47]OFD Sender: No OFD packet to send [21:04:52]OFD Sender: No OFD packet to send [21:04:57]OFD Sender: No OFD packet to send [21:04:58]accept exits with 8 [21:04:58]New connection [21:04:58]New thread 3067112804 created [21:04:58]Thread 3066969444 joined [21:04:58]Waiting for new connection... [21:04:58] Sock 8.Parse request [21:04:58]Sock 8.Check first char [21:04:58]Sock 8.First char is OK [21:04:58]request: POST /json_proto HTTP/1.0 [21:04:58]Method: POST [21:04:58]URL: /json_proto [21:04:58]Method is POST - this is cgi request [21:04:58]url: /json_proto [21:04:58]query_string will be loaded in cgi processing [21:04:58]execute_cgi json_proto POST (null) [21:04:58]execute_cgi path=json_proto method=POST [21:04:58]POST find Content-Length [21:04:58]Host: 172.17.33.3:8080 [21:04:58]Content-Length: 811 [21:04:58]Content-Type: application/json [21:04:58] [21:04:58]POST finish read [21:04:58]Found Content-Length = 811 [21:04:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347752", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 45.600, "sum" : 1500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:04:58]execute_script... [21: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)347752", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 45.600, "sum" : 1500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:04:58]POST & json_proto [21:04:58]process_json_proto [21:04:58]json parsed OK: [21:04:58]protocol is kg_v1.0 [21:04:58]action value=close_receipt [21:04:58]process_action close_receipt [21:04:58]cmd_close_receipt [21:04:58]MH_GetDate [21:04:58]Write to MH i2c: F0 00 00 B3 07 A9 [21:04:58]Write i2c OK [21:04:58]MH_I2C_Read... [21:04:58]Read from MH i2c: F0 [21:04:58]MH_I2C_Read... [21:04:58]Read from MH i2c: F0 09 00 [21:04:58]MH_I2C_Read... [21:04:58]Read from MH i2c: F0 09 00 B3 07 00 FB 44 1C 66 23 5B 8F 65 E5 [21:04:58]GetLastDocTimeStamp 1713128300 [21:04:58]current date 1713128699 [21:04:58]FM_GetShiftState [21:04:58]SAM_PROTO_GetShiftState [21:04:58]wFMCommunicate request_size=4 [21:04:58]MH_SAM_APDU [21:04:58]CAPDU: 80 13 01 00 [21:04:58]Write to MH i2c: E2 08 00 B4 07 80 13 01 00 00 00 00 00 38 [21:04:58]Write i2c OK [21:04:58]MH_I2C_Read... [21:04:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:04:58]Read from MH i2c: E2 [21:04:58]MH_I2C_Read... [21:04:58]Read from MH i2c: E2 0E 00 [21:04:58]MH_I2C_Read... [21:04:58]Read from MH i2c: E2 0E 00 B4 07 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 E4 [21:04:58]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [21:04:58]wFMCommunicate OK [21:04:58]SAM_PROTO_GetShiftState done [21:04:58]FM_GetShiftState done [21:04:58]opened in 1713053951 [21:04:58]opened+sec_in_day 1713140351 [21:04:58]quantity*price = 150024 [21:04:58]sum+1 = 150025 [21:04:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.24 НСП 1% : 13.28 НДС 12% : 159.32 Наличными: 0.00 Безнал.: 1500.24 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 267 14.04.2024 21:04 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29357 ФПД: 19548107674056 1/tax-web-control/client/api/v1/ticket?date=20240414T210459&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29357&fm=19548107674056&tin=02508201610067®Number=0000138879044617&sum=150024 [21:04:59]StoreToDocumentArchive [21:04:59]shift 116 fd 29357 [21:04:59]save to /storage/0116/doc_00029357 [21:04:59]save last doc name /storage/0116/doc_00029357 to /storage/kkm_last_doc_name [21:04:59]save OK [21:04:59]Clear old archive folders... [21:04:59]ProcessDocumentItem done err = 0, tmpTLVsize=250 [21:04:59]tlvbuf is B6DCF7F0 [21:04:59]SAM_PROTO_ClearQueue [21:04:59]wFMCommunicate request_size=4 [21:04:59]MH_SAM_APDU [21:04:59]CAPDU: 80 09 00 00 [21:04:59]Write to MH i2c: E2 08 00 C1 07 80 09 00 00 00 00 00 00 3A [21:04:59]Write i2c OK [21:04:59]MH_I2C_Read... [21:04:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:04:59]Read from MH i2c: E2 [21:04:59]MH_I2C_Read... [21:04:59]Read from MH i2c: E2 03 00 [21:04:59]MH_I2C_Read... [21:04:59]Read from MH i2c: E2 03 00 C1 07 00 90 00 3C [21:04:59]RAPDU: 90 00 [21:04:59]wFMCommunicate OK [21:04:59]SAM_PROTO_ClearQueue done [21:04:59]KKMCreateOFDPacket [21:04:59]OFDProtocolAddRootSTLVToBuf [21:04:59]FM_MakeSignedData [21:04:59]FM_MakeSignedData [21:04:59]SAM_PROTO_SignData [21:04:59]wFMCommunicate request_size=4 [21:04:59]MH_SAM_APDU [21:04:59]CAPDU: 80 0D 01 02 [21:04:59]Write to MH i2c: E2 08 00 C2 07 80 0D 01 02 00 00 00 00 42 [21:04:59]Write i2c OK [21:04:59]MH_I2C_Read... [21:04:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:04:59]Read from MH i2c: E2 [21:04:59]MH_I2C_Read... [21:04:59]Read from MH i2c: E2 03 00 [21:04:59]MH_I2C_Read... [21:04:59]Read from MH i2c: E2 03 00 C2 07 00 90 00 3D [21:04:59]RAPDU: 90 00 [21:04:59]wFMCommunicate OK [21:04:59]wFMCommunicate request_size=255 [21:04:59]MH_SAM_APDU [21:04: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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 20 B2 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 08 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 FB 44 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AD 72 00 00 35 04 06 00 11 C7 [21:04:59]Write to MH i2c: E2 02 01 C3 07 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 20 B2 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 08 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 FB 44 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AD 72 00 00 35 04 06 00 11 C7 00 00 B4 [21:04:59]Write i2c OK [21:04:59]MH_I2C_Read... [21:04:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:04:59]Read from MH i2c: E2 [21:04:59]MH_I2C_Read... [21:04:59]Read from MH i2c: E2 03 00 [21:04:59]MH_I2C_Read... [21:04:59]Read from MH i2c: E2 03 00 C3 07 00 90 00 3E [21:04:59]RAPDU: 90 00 [21:04:59]wFMCommunicate OK [21:04:59]wFMCommunicate request_size=9 [21:04:59]MH_SAM_APDU [21:04:59]CAPDU: 80 0D 02 02 04 66 03 91 C8 [21:04:59]Write to MH i2c: E2 0C 00 C4 07 80 0D 02 02 04 00 66 03 91 C8 00 00 0F [21:04:59]Write i2c OK [21:04:59]MH_I2C_Read... [21:04:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:04:59]Read from MH i2c: E2 [21:04:59]MH_I2C_Read... [21:04:59]Read from MH i2c: E2 03 00 [21:04:59]MH_I2C_Read... [21:04:59]Read from MH i2c: E2 03 00 C4 07 00 90 00 3F [21:04:59]RAPDU: 90 00 [21:04:59]wFMCommunicate OK [21:04:59]wFMCommunicate request_size=4 [21:04:59]MH_SAM_APDU [21:04:59]CAPDU: 80 0D 03 02 [21:04:59]Write to MH i2c: E2 08 00 C5 07 80 0D 03 02 00 00 00 00 47 [21:04:59]Write i2c OK [21:04:59]MH_I2C_Read... [21:04:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:04:59]Read from MH i2c: E2 [21:04:59]MH_I2C_Read... [21:04:59]Read from MH i2c: E2 0B 00 [21:04:59]MH_I2C_Read... [21:04:59]Read from MH i2c: E2 0B 00 C5 07 00 C5 B4 C5 3E 5D 77 D1 10 90 00 79 [21:04:59]RAPDU: C5 B4 C5 3E 5D 77 D1 10 90 00 [21:04:59]wFMCommunicate OK [21:04:59]SAM_PROTO_SignData done [21:04:59]FM_MakeSignedData done [21:04:59]CreateOFDProtocolMessage [21:04:59]wFMCommunicate request_size=4 [21:04:59]MH_SAM_APDU [21:04:59]CAPDU: 80 11 00 00 [21:04:59]Write to MH i2c: E2 08 00 C6 07 80 11 00 00 00 00 00 00 47 [21:04:59]Write i2c OK [21:04:59]MH_I2C_Read... [21:04:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:04:59]Read from MH i2c: E2 [21:04:59]MH_I2C_Read... [21:04:59]Read from MH i2c: E2 17 00 [21:04:59]MH_I2C_Read... [21:04:59]Read from MH i2c: E2 17 00 C6 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 96 [21:04:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:04:59]wFMCommunicate OK [21:04:59]CreateOFDProtocolMessage done [21:04:59]OFDSenderStorePacket 29357 [21:04:59]StoreOFDPacket docnum=29357 [21:04:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 0F 7A 06 01 CB E5 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 20 B2 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 08 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 FB 44 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AD 72 00 00 35 04 06 00 11 C7 66 03 91 C8 C5 B4 C5 3E 5D 77 D1 10 [21:04:59]CheckFolder [21:04:59]dirname=/storage/ofd_packets [21:04:59]CheckFolder done [21:04:59]ProducePacketName [21:04:59]name=ofd_packets/00029357 [21:04:59]NVStorageSaveData ofd_packets/00029357 [21:04:59]File name is /storage/ofd_packets/00029357 [21:04:59]Write 300 bytes [21:04:59]NVStorageSaveData done [21:04:59]OFDSenderStorePacket done [21:04:59]KKMCreateOFDPacket done [21:04:59]NVStorageSaveData kkm_last_timestamp [21:04:59]File name is /storage/kkm_last_timestamp [21:04:59]Write 4 bytes [21:04:59]NVStorageSaveData done [21:04:59]ExternCall_PrintAddStr [21:04:59]wPrintStart [21:04:59]Write to MH i2c: 01 00 00 C7 07 CE [21:04:59]Write i2c OK [21:04:59]MH_I2C_Read... [21:04:59]Read from MH i2c: 01 [21:04:59]MH_I2C_Read... [21:04:59]Read from MH i2c: 01 07 00 [21:04:59]MH_I2C_Read... [21:04:59]Read from MH i2c: 01 07 00 C7 07 00 00 00 00 00 FF 0F E3 [21:04:59]RasterBufferAndPrint [21:04:59]line Счет N : (1)347752 [21:04:59]line ИНН: 02508201610067 [21:04:59]line Контрольно-Кассовый Чек [21:04:59]line ПРОДАЖА [21:04:59]line ТРК (МРК, ГНК) : 71 [21:04:59]line Товар: 2711129700 [21:04:59]line ГАЗ-К-5 [21:04:59]line 45.600 * 32.90 [21:04:59]line = 1500.24 [21:04:59]line НДС 12% НСП 1% [21:04:59]line > о реализуемом товаре [21:04:59]line ИТОГО: 1500.24 [21:04:59]line НСП 1% : 13.28 [21:04:59]line НДС 12% : 159.32 [21:04:59]line Наличными: 0.00 [21:04:59]line Безнал.: 1500.24 [21:04:59]line Место: АЗС № 108 "Партнер Нефть" [21:04:59]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [21:04:59]line СНО: Общий режим [21:04:59]line Чек 267 14.04.2024 21:04 [21:04:59]line Смена: 116 ФФД: 1.0 [21:04:59]line ЗНМ: 0300000027 [21:04:59]line РНМ: 0000138879044617 [21:04:59]line Версия ККМ: 001 [21:05:00]line Платежная система: О! деньги [21:05:00]line ФМ: 0000000000963154 [21:05:00]line ФД: 29357 [21:05:00]line ФПД: 19548107674056 [21:05:00]line 1/tax-web-control/client/api/v1/ticket?date=20240414T210459&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29357&fm=19548107674056&tin=02508201610067®Number=0000138879044617&sum=150024 [21:05:00]OFD Sender: Processing packet 29357 [packets to send 8, broken 7] [21:05:00]ProducePacketName [21:05:00]name=ofd_packets/00029357 [21:05:00]OFD Sender: To server: pG, [21:05:00]CommunicateWithHost lk.salyk.kg:30040 [21:05:00]ConnectInit lk.salyk.kg [21:05:00]written 0, free lines is 4095 [21:05:00]Connected sock=10 [21:05:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 0F 7A 06 01 CB E5 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 20 B2 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 08 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 FB 44 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AD 72 00 00 35 04 06 00 11 C7 66 03 91 C8 C5 B4 C5 3E 5D 77 D1 10 [21:05:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 6D 0D 47 00 38 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 39 36 33 31 35 34 10 04 04 00 AD 72 00 00 F4 03 04 00 9E EF 1B 66 B6 04 01 00 00 6E 45 FC 47 EE 9F 74 FC [21:05:00]CommunicateWithHost err = 0 [21:05:00]CheckOFDResponse [21:05:00]1017 (14) - 77093643461234 [21:05:00]1041 (16) - 0000000000963154 [21:05:00]1040 (4) - 29357 [21:05:00]1012 (4) - 14.04.2024 15:00 [21:05:00]1206 (1) - 0 [21:05:00]OFD Sender: Remove packet 29357 [21:05:00]ProducePacketName [21:05:00]name=ofd_packets/00029357 [21:05:00]NVStorageDeleteData [21:05:00]Write to MH i2c: 01 00 00 F0 07 F7 [21:05:00]Write i2c OK [21:05:00]MH_I2C_Read... [21:05:00]Read from MH i2c: 01 [21:05:00]MH_I2C_Read... [21:05:00]Read from MH i2c: 01 07 00 [21:05:00]MH_I2C_Read... [21:05:00]Read from MH i2c: 01 07 00 F0 07 00 00 00 00 00 DB 0C E5 [21:05:00]RasterBufferAndPrint [21:05:00]line [21:05:00]line [21:05:00]line [21:05:00]line [21:05:00]line [21:05:00]written 0, free lines is 3298 [21:05:00]MH_Cut [21:05:00]Write to MH i2c: D1 01 00 F7 07 01 D0 [21:05:00]Write i2c OK [21:05:00]MH_I2C_Read... [21:05:00]Read from MH i2c: D1 [21:05:00]MH_I2C_Read... [21:05:00]Read from MH i2c: D1 01 00 [21:05:00]MH_I2C_Read... [21:05:00]Read from MH i2c: D1 01 00 F7 07 00 CF [21:05:00]Write to MH i2c: 01 00 00 F8 07 FF [21:05:00]Write i2c OK [21:05:00]MH_I2C_Read... [21:05:01]OFD Sender: No OFD packet to send [21:05:01]*** Cut start [21:05:01]*** Partial cut [21:05:01]*** CUTSNS_PIN = 1 [21:05:01]*** CUTSNS_PIN = 0 [21:05:01]*** Brake cut motor [21:05:02]Read from MH i2c: 01 [21:05:02]MH_I2C_Read... [21:05:02]*** Stop cut motor [21:05:02]*** Cut end [21:05:02]Read from MH i2c: 01 07 00 [21:05:02]MH_I2C_Read... [21:05:02]Read from MH i2c: 01 07 00 F8 07 00 00 00 00 00 FF 0F 14 [21:05:02]process_action close_receipt done [21:05:02]requested_data is exist [21:05:02]produce_requested_data [21:05:02]requested_item fm.sn is exist - process it [21:05:02]wFMCommunicate request_size=4 [21:05:02]MH_SAM_APDU [21:05:02]CAPDU: 80 11 00 00 [21:05:02]Write to MH i2c: E2 08 00 F9 07 80 11 00 00 00 00 00 00 7A [21:05:02]Write i2c OK [21:05:02]MH_I2C_Read... [21:05:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:05:02]Read from MH i2c: E2 [21:05:02]MH_I2C_Read... [21:05:02]Read from MH i2c: E2 17 00 [21:05:02]MH_I2C_Read... [21:05:02]Read from MH i2c: E2 17 00 F9 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C9 [21:05:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:05:02]wFMCommunicate OK [21:05:02]requested_item fd.num is exist - process it [21:05:02]SAM_PROTO_GetFieldsCounters [21:05:02]wFMCommunicate request_size=4 [21:05:02]MH_SAM_APDU [21:05:02]CAPDU: 80 13 00 00 [21:05:02]Write to MH i2c: E2 08 00 FA 07 80 13 00 00 00 00 00 00 7D [21:05:02]Write i2c OK [21:05:02]MH_I2C_Read... [21:05:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:05:02]Read from MH i2c: E2 [21:05:02]MH_I2C_Read... [21:05:02]Read from MH i2c: E2 62 00 [21:05:02]MH_I2C_Read... [21:05:02]Read from MH i2c: E2 62 00 FA 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 AD 72 00 00 0E 04 04 00 74 00 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 72 [21:05:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 AD 72 00 00 0E 04 04 00 74 00 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:05:02]wFMCommunicate OK [21:05:02]SAM_PROTO_GetFieldsCounters done [21:05:02]requested_item shift.num is exist - process it [21:05:02]requested_item shift.opened is exist - process it [21:05:02]req_shift_opened [21:05:02]FM_GetShiftState [21:05:02]SAM_PROTO_GetShiftState [21:05:02]wFMCommunicate request_size=4 [21:05:02]MH_SAM_APDU [21:05:02]CAPDU: 80 13 01 00 [21:05:02]Write to MH i2c: E2 08 00 FB 07 80 13 01 00 00 00 00 00 7F [21:05:02]Write i2c OK [21:05:02]MH_I2C_Read... [21:05:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:05:02]Read from MH i2c: E2 [21:05:02]MH_I2C_Read... [21:05:02]Read from MH i2c: E2 0E 00 [21:05:02]MH_I2C_Read... [21:05:02]Read from MH i2c: E2 0E 00 FB 07 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 2B [21:05:02]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [21:05:02]wFMCommunicate OK [21:05:02]SAM_PROTO_GetShiftState done [21:05:02]FM_GetShiftState done [21:05:02]req_shift_opened done [21:05:02]requested_item shift.open_date is exist - process it [21:05:02]req_shift_open_date [21:05:02]req_shift_open_date done [21:05:02]produce_requested_data done [21:05:02]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29357,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [21:05:02]process_action_free close_receipt [21:05:02]json_value_free [21:05:02]json_value_free done [21:05:02]process_json_proto returns [21:05:02]Send response to host [21:05:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29357,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [21:05:02]free response buf [21:05:02]execute_script done [21:05:02]execute_script returns [21:05:02]free content buf [21:05:02]Sock 8.Close socket [21:05:02]Sock 8.Thread stoped [21:05:06]OFD Sender: No OFD packet to send [21:05:11]OFD Sender: No OFD packet to send [21:05:16]OFD Sender: No OFD packet to send [21:05:21]OFD Sender: No OFD packet to send [21:05:26]OFD Sender: No OFD packet to send [21:05:31]OFD Sender: No OFD packet to send [21:05:36]OFD Sender: No OFD packet to send [21:05:41]OFD Sender: No OFD packet to send [21:05:46]OFD Sender: No OFD packet to send [21:05:51]OFD Sender: No OFD packet to send [21:05:56]OFD Sender: No OFD packet to send [21:06:01]OFD Sender: No OFD packet to send [21:06:06]OFD Sender: No OFD packet to send [21:06:11]OFD Sender: No OFD packet to send [21:06:16]OFD Sender: No OFD packet to send [21:06:21]OFD Sender: No OFD packet to send [21:06:26]OFD Sender: No OFD packet to send [21:06:31]OFD Sender: No OFD packet to send [21:06:36]OFD Sender: No OFD packet to send [21:06:41]OFD Sender: No OFD packet to send [21:06:46]OFD Sender: No OFD packet to send [21:06:51]OFD Sender: No OFD packet to send [21:06:56]OFD Sender: No OFD packet to send [21:07:01]OFD Sender: No OFD packet to send [21:07:06]OFD Sender: No OFD packet to send [21:07:11]OFD Sender: No OFD packet to send [21:07:16]OFD Sender: No OFD packet to send [21:07:21]OFD Sender: No OFD packet to send [21:07:26]OFD Sender: No OFD packet to send [21:07:31]OFD Sender: No OFD packet to send [21:07:36]OFD Sender: No OFD packet to send [21:07:41]OFD Sender: No OFD packet to send [21:07:46]OFD Sender: No OFD packet to send [21:07:51]OFD Sender: No OFD packet to send [21:07:56]OFD Sender: No OFD packet to send [21:08:01]OFD Sender: No OFD packet to send [21:08:06]OFD Sender: No OFD packet to send [21:08:11]OFD Sender: No OFD packet to send [21:08:16]OFD Sender: No OFD packet to send [21:08:21]OFD Sender: No OFD packet to send [21:08:26]OFD Sender: No OFD packet to send [21:08:31]OFD Sender: No OFD packet to send [21:08:36]OFD Sender: No OFD packet to send [21:08:41]OFD Sender: No OFD packet to send [21:08:46]OFD Sender: No OFD packet to send [21:08:51]OFD Sender: No OFD packet to send [21:08:56]OFD Sender: No OFD packet to send [21:09:01]OFD Sender: No OFD packet to send [21:09:06]OFD Sender: No OFD packet to send [21:09:11]OFD Sender: No OFD packet to send [21:09:16]OFD Sender: No OFD packet to send [21:09:21]OFD Sender: No OFD packet to send [21:09:26]OFD Sender: No OFD packet to send [21:09:31]OFD Sender: No OFD packet to send [21:09:36]OFD Sender: No OFD packet to send [21:09:41]OFD Sender: No OFD packet to send [21:09:45]accept exits with 9 [21:09:45]New connection [21:09:45]New thread 3066969444 created [21:09:45]Thread 3067112804 joined [21:09:45]Waiting for new connection... [21:09:45] Sock 9.Parse request [21:09:45]Sock 9.Check first char [21:09:45]Sock 9.First char is OK [21:09:45]request: POST /json_proto HTTP/1.0 [21:09:45]Method: POST [21:09:45]URL: /json_proto [21:09:45]Method is POST - this is cgi request [21:09:45]url: /json_proto [21:09:45]query_string will be loaded in cgi processing [21:09:45]execute_cgi json_proto POST (null) [21:09:45]execute_cgi path=json_proto method=POST [21:09:45]POST find Content-Length [21:09:45]Host: 172.17.33.3:8080 [21:09:45]Content-Length: 670 [21:09:45]Content-Type: application/json [21:09:45] [21:09:45]POST finish read [21:09:45]Found Content-Length = 670 [21:09:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347754", "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" : 3.760, "sum" : 245.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 245.00, "total" : 245.00, "payments": [ { "type": 0, "sum" : 245.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:09:45]execute_script... [21: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)347754", "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" : 3.760, "sum" : 245.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 245.00, "total" : 245.00, "payments": [ { "type": 0, "sum" : 245.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:09:45]POST & json_proto [21:09:45]process_json_proto [21:09:45]json parsed OK: [21:09:45]protocol is kg_v1.0 [21:09:45]action value=close_receipt [21:09:45]process_action close_receipt [21:09:45]cmd_close_receipt [21:09:45]MH_GetDate [21:09:45]Write to MH i2c: F0 00 00 FC 07 F2 [21:09:45]Write i2c OK [21:09:45]MH_I2C_Read... [21:09:45]Read from MH i2c: F0 [21:09:45]MH_I2C_Read... [21:09:45]Read from MH i2c: F0 09 00 [21:09:45]MH_I2C_Read... [21:09:45]Read from MH i2c: F0 09 00 FC 07 00 1A 46 1C 66 23 5B 8F 65 4F [21:09:45]GetLastDocTimeStamp 1713128699 [21:09:45]current date 1713128986 [21:09:45]FM_GetShiftState [21:09:45]SAM_PROTO_GetShiftState [21:09:45]wFMCommunicate request_size=4 [21:09:45]MH_SAM_APDU [21:09:45]CAPDU: 80 13 01 00 [21:09:45]Write to MH i2c: E2 08 00 FD 07 80 13 01 00 00 00 00 00 81 [21:09:45]Write i2c OK [21:09:45]MH_I2C_Read... [21:09:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:09:45]Read from MH i2c: E2 [21:09:45]MH_I2C_Read... [21:09:45]Read from MH i2c: E2 0E 00 [21:09:45]MH_I2C_Read... [21:09:45]Read from MH i2c: E2 0E 00 FD 07 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 2D [21:09:45]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [21:09:45]wFMCommunicate OK [21:09:45]SAM_PROTO_GetShiftState done [21:09:45]FM_GetShiftState done [21:09:45]opened in 1713053951 [21:09:45]opened+sec_in_day 1713140351 [21:09:45]quantity*price = 24552 [21:09:45]sum+1 = 24554 [21:09:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 245.00 Внесено: 245.00 СДАЧА: 0.00 НСП 1% : 2.17 НДС 12% : 26.07 Наличными: 245.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 268 14.04.2024 21:09 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29358 ФПД: 179542123863264 1/tax-web-control/client/api/v1/ticket?date=20240414T210947&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29358&fm=179542123863264&tin=02508201610067®Number=0000138879044617&sum=24500 [21:09:47]StoreToDocumentArchive [21:09:47]shift 116 fd 29358 [21:09:47]save to /storage/0116/doc_00029358 [21:09:47]save last doc name /storage/0116/doc_00029358 to /storage/kkm_last_doc_name [21:09:47]save OK [21:09:47]Clear old archive folders... [21:09:47]ProcessDocumentItem done err = 0, tmpTLVsize=252 [21:09:47]tlvbuf is 002590A0 [21:09:47]SAM_PROTO_ClearQueue [21:09:47]wFMCommunicate request_size=4 [21:09:47]MH_SAM_APDU [21:09:47]CAPDU: 80 09 00 00 [21:09:47]Write to MH i2c: E2 08 00 0A 08 80 09 00 00 00 00 00 00 84 [21:09:47]Write i2c OK [21:09:47]MH_I2C_Read... [21:09:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:09:47]Read from MH i2c: E2 [21:09:47]MH_I2C_Read... [21:09:47]Read from MH i2c: E2 03 00 [21:09:47]MH_I2C_Read... [21:09:47]Read from MH i2c: E2 03 00 0A 08 00 90 00 86 [21:09:47]RAPDU: 90 00 [21:09:47]wFMCommunicate OK [21:09:47]SAM_PROTO_ClearQueue done [21:09:47]KKMCreateOFDPacket [21:09:47]OFDProtocolAddRootSTLVToBuf [21:09:47]FM_MakeSignedData [21:09:47]FM_MakeSignedData [21:09:47]SAM_PROTO_SignData [21:09:47]wFMCommunicate request_size=4 [21:09:47]MH_SAM_APDU [21:09:47]CAPDU: 80 0D 01 02 [21:09:47]Write to MH i2c: E2 08 00 0B 08 80 0D 01 02 00 00 00 00 8C [21:09:47]Write i2c OK [21:09:47]MH_I2C_Read... [21:09:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:09:47]Read from MH i2c: E2 [21:09:47]MH_I2C_Read... [21:09:47]Read from MH i2c: E2 03 00 [21:09:47]MH_I2C_Read... [21:09:47]Read from MH i2c: E2 03 00 0B 08 00 90 00 87 [21:09:47]RAPDU: 90 00 [21:09:47]wFMCommunicate OK [21:09:47]wFMCommunicate request_size=255 [21:09:47]MH_SAM_APDU [21:09:47]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 0E 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 E9 5F 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 2F 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 0C 01 00 00 F4 03 04 00 1B 46 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AE 72 00 00 35 04 06 00 [21:09:47]Write to MH i2c: E2 02 01 0C 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 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 0E 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 E9 5F 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 2F 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 0C 01 00 00 F4 03 04 00 1B 46 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AE 72 00 00 35 04 06 00 00 00 BA [21:09:47]Write i2c OK [21:09:47]MH_I2C_Read... [21:09:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:09:47]Read from MH i2c: E2 [21:09:47]MH_I2C_Read... [21:09:47]Read from MH i2c: E2 03 00 [21:09:47]MH_I2C_Read... [21:09:47]Read from MH i2c: E2 03 00 0C 08 00 90 00 88 [21:09:47]RAPDU: 90 00 [21:09:47]wFMCommunicate OK [21:09:47]wFMCommunicate request_size=11 [21:09:47]MH_SAM_APDU [21:09:47]CAPDU: 80 0D 02 02 06 A3 4A E8 83 DC E0 [21:09:47]Write to MH i2c: E2 0E 00 0D 08 80 0D 02 02 06 00 A3 4A E8 83 DC E0 00 00 AF [21:09:47]Write i2c OK [21:09:47]MH_I2C_Read... [21:09:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:09:47]Read from MH i2c: E2 [21:09:47]MH_I2C_Read... [21:09:47]Read from MH i2c: E2 03 00 [21:09:47]MH_I2C_Read... [21:09:47]Read from MH i2c: E2 03 00 0D 08 00 90 00 89 [21:09:47]RAPDU: 90 00 [21:09:47]wFMCommunicate OK [21:09:47]wFMCommunicate request_size=4 [21:09:47]MH_SAM_APDU [21:09:47]CAPDU: 80 0D 03 02 [21:09:47]Write to MH i2c: E2 08 00 0E 08 80 0D 03 02 00 00 00 00 91 [21:09:47]Write i2c OK [21:09:47]MH_I2C_Read... [21:09:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:09:47]Read from MH i2c: E2 [21:09:47]MH_I2C_Read... [21:09:47]Read from MH i2c: E2 0B 00 [21:09:47]MH_I2C_Read... [21:09:47]Read from MH i2c: E2 0B 00 0E 08 00 C4 30 7C 1A CA 64 6E 8E 90 00 46 [21:09:47]RAPDU: C4 30 7C 1A CA 64 6E 8E 90 00 [21:09:47]wFMCommunicate OK [21:09:47]SAM_PROTO_SignData done [21:09:47]FM_MakeSignedData done [21:09:47]CreateOFDProtocolMessage [21:09:47]wFMCommunicate request_size=4 [21:09:47]MH_SAM_APDU [21:09:47]CAPDU: 80 11 00 00 [21:09:47]Write to MH i2c: E2 08 00 0F 08 80 11 00 00 00 00 00 00 91 [21:09:47]Write i2c OK [21:09:47]MH_I2C_Read... [21:09:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:09:47]Read from MH i2c: E2 [21:09:47]MH_I2C_Read... [21:09:47]Read from MH i2c: E2 17 00 [21:09:47]MH_I2C_Read... [21:09:47]Read from MH i2c: E2 17 00 0F 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E0 [21:09:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:09:47]wFMCommunicate OK [21:09:47]CreateOFDProtocolMessage done [21:09:47]OFDSenderStorePacket 29358 [21:09:47]StoreOFDPacket docnum=29358 [21:09:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 17 E3 08 01 A8 24 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 0E 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 E9 5F 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 2F 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 0C 01 00 00 F4 03 04 00 1B 46 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AE 72 00 00 35 04 06 00 A3 4A E8 83 DC E0 C4 30 7C 1A CA 64 6E 8E [21:09:47]CheckFolder [21:09:47]dirname=/storage/ofd_packets [21:09:47]CheckFolder done [21:09:47]ProducePacketName [21:09:47]name=ofd_packets/00029358 [21:09:47]NVStorageSaveData ofd_packets/00029358 [21:09:47]File name is /storage/ofd_packets/00029358 [21:09:47]Write 302 bytes [21:09:47]NVStorageSaveData done [21:09:47]OFDSenderStorePacket done [21:09:47]KKMCreateOFDPacket done [21:09:47]NVStorageSaveData kkm_last_timestamp [21:09:47]File name is /storage/kkm_last_timestamp [21:09:47]Write 4 bytes [21:09:47]NVStorageSaveData done [21:09:47]ExternCall_PrintAddStr [21:09:47]wPrintStart [21:09:47]Write to MH i2c: 01 00 00 10 08 18 [21:09:47]Write i2c OK [21:09:47]MH_I2C_Read... [21:09:47]Read from MH i2c: 01 [21:09:47]MH_I2C_Read... [21:09:47]Read from MH i2c: 01 07 00 [21:09:47]MH_I2C_Read... [21:09:47]Read from MH i2c: 01 07 00 10 08 00 00 00 00 00 FF 0F 2D [21:09:47]RasterBufferAndPrint [21:09:47]line Счет N : (1)347754 [21:09:47]line ИНН: 02508201610067 [21:09:47]line Контрольно-Кассовый Чек [21:09:47]line ПРОДАЖА [21:09:47]line ТРК (МРК, ГНК) : 31 [21:09:47]line Товар: 2710124130 [21:09:47]line SUPER-92-К-5 [21:09:47]line 3.760 * 65.30 [21:09:47]line = 245.53 [21:09:47]line НДС 12% НСП 1% [21:09:47]line > о реализуемом товаре [21:09:47]line ОКРУГЛЕНИЕ: -0.53 [21:09:47]line ИТОГО: 245.00 [21:09:47]line Внесено: 245.00 [21:09:47]line СДАЧА: 0.00 [21:09:47]line НСП 1% : 2.17 [21:09:47]line НДС 12% : 26.07 [21:09:47]line Наличными: 245.00 [21:09:47]line Безнал.: 0.00 [21:09:47]line Место: АЗС № 108 "Партнер Нефть" [21:09:47]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [21:09:47]line СНО: Общий режим [21:09:47]line Чек 268 14.04.2024 21:09 [21:09:47]line Смена: 116 ФФД: 1.0 [21:09:47]line ЗНМ: 0300000027 [21:09:47]line РНМ: 0000138879044617 [21:09:47]line Версия ККМ: 001 [21:09:47]line ФМ: 0000000000963154 [21:09:47]line ФД: 29358 [21:09:47]line ФПД: 179542123863264 [21:09:47]line 1/tax-web-control/client/api/v1/ticket?date=20240414T210947&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29358&fm=179542123863264&tin=02508201610067®Number=0000138879044617&sum=24500 [21:09:47]OFD Sender: Processing packet 29358 [packets to send 8, broken 7] [21:09:47]ProducePacketName [21:09:47]name=ofd_packets/00029358 [21:09:47]OFD Sender: To server: pG, [21:09:47]CommunicateWithHost lk.salyk.kg:30040 [21:09:47]ConnectInit lk.salyk.kg [21:09:47]written 0, free lines is 4095 [21:09:48]Connected sock=10 [21:09:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 17 E3 08 01 A8 24 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 0E 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 E9 5F 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 2F 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 0C 01 00 00 F4 03 04 00 1B 46 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AE 72 00 00 35 04 06 00 A3 4A E8 83 DC E0 C4 30 7C 1A CA 64 6E 8E [21:09:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 C1 D3 47 00 47 D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AE 72 00 00 F4 03 04 00 BE F0 1B 66 B6 04 01 00 00 5E D1 C6 07 D8 9E EB E7 [21:09:48]CommunicateWithHost err = 0 [21:09:48]CheckOFDResponse [21:09:48]1017 (14) - 77093643461234 [21:09:48]1041 (16) - 0000000000963154 [21:09:48]1040 (4) - 29358 [21:09:48]1012 (4) - 14.04.2024 15:05 [21:09:48]1206 (1) - 0 [21:09:48]OFD Sender: Remove packet 29358 [21:09:48]ProducePacketName [21:09:48]name=ofd_packets/00029358 [21:09:48]NVStorageDeleteData [21:09:48]Write to MH i2c: 01 00 00 3A 08 42 [21:09:48]Write i2c OK [21:09:48]MH_I2C_Read... [21:09:48]Read from MH i2c: 01 [21:09:48]MH_I2C_Read... [21:09:48]Read from MH i2c: 01 07 00 [21:09:48]MH_I2C_Read... [21:09:48]Read from MH i2c: 01 07 00 3A 08 00 00 00 00 00 E6 0C 3B [21:09:48]RasterBufferAndPrint [21:09:48]line [21:09:48]line [21:09:48]line [21:09:48]line [21:09:48]line [21:09:48]written 0, free lines is 3306 [21:09:48]MH_Cut [21:09:48]Write to MH i2c: D1 01 00 41 08 01 1B [21:09:48]Write i2c OK [21:09:48]MH_I2C_Read... [21:09:48]Read from MH i2c: D1 [21:09:48]MH_I2C_Read... [21:09:48]Read from MH i2c: D1 01 00 [21:09:48]MH_I2C_Read... [21:09:48]Read from MH i2c: D1 01 00 41 08 00 1A [21:09:48]Write to MH i2c: 01 00 00 42 08 4A [21:09:48]Write i2c OK [21:09:48]MH_I2C_Read... [21:09:48]OFD Sender: No OFD packet to send [21:09:49]*** Cut start [21:09:49]*** Partial cut [21:09:49]*** CUTSNS_PIN = 1 [21:09:49]*** CUTSNS_PIN = 0 [21:09:49]*** Brake cut motor [21:09:49]Read from MH i2c: 01 [21:09:49]MH_I2C_Read... [21:09:49]*** Stop cut motor [21:09:49]*** Cut end [21:09:49]Read from MH i2c: 01 07 00 [21:09:49]MH_I2C_Read... [21:09:49]Read from MH i2c: 01 07 00 42 08 00 00 00 00 00 FF 0F 5F [21:09:49]process_action close_receipt done [21:09:49]requested_data is exist [21:09:49]produce_requested_data [21:09:49]requested_item fm.sn is exist - process it [21:09:49]wFMCommunicate request_size=4 [21:09:49]MH_SAM_APDU [21:09:49]CAPDU: 80 11 00 00 [21:09:49]Write to MH i2c: E2 08 00 43 08 80 11 00 00 00 00 00 00 C5 [21:09:49]Write i2c OK [21:09:49]MH_I2C_Read... [21:09:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:09:49]Read from MH i2c: E2 [21:09:49]MH_I2C_Read... [21:09:49]Read from MH i2c: E2 17 00 [21:09:49]MH_I2C_Read... [21:09:49]Read from MH i2c: E2 17 00 43 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 14 [21:09:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:09:49]wFMCommunicate OK [21:09:49]requested_item fd.num is exist - process it [21:09:49]SAM_PROTO_GetFieldsCounters [21:09:49]wFMCommunicate request_size=4 [21:09:49]MH_SAM_APDU [21:09:49]CAPDU: 80 13 00 00 [21:09:49]Write to MH i2c: E2 08 00 44 08 80 13 00 00 00 00 00 00 C8 [21:09:49]Write i2c OK [21:09:49]MH_I2C_Read... [21:09:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:09:50]Read from MH i2c: E2 [21:09:50]MH_I2C_Read... [21:09:50]Read from MH i2c: E2 62 00 [21:09:50]MH_I2C_Read... [21:09:50]Read from MH i2c: E2 62 00 44 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 AE 72 00 00 0E 04 04 00 74 00 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 C1 [21:09:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 AE 72 00 00 0E 04 04 00 74 00 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 [21:09:50]wFMCommunicate OK [21:09:50]SAM_PROTO_GetFieldsCounters done [21:09:50]requested_item shift.num is exist - process it [21:09:50]requested_item shift.opened is exist - process it [21:09:50]req_shift_opened [21:09:50]FM_GetShiftState [21:09:50]SAM_PROTO_GetShiftState [21:09:50]wFMCommunicate request_size=4 [21:09:50]MH_SAM_APDU [21:09:50]CAPDU: 80 13 01 00 [21:09:50]Write to MH i2c: E2 08 00 45 08 80 13 01 00 00 00 00 00 CA [21:09:50]Write i2c OK [21:09:50]MH_I2C_Read... [21:09:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:09:50]Read from MH i2c: E2 [21:09:50]MH_I2C_Read... [21:09:50]Read from MH i2c: E2 0E 00 [21:09:50]MH_I2C_Read... [21:09:50]Read from MH i2c: E2 0E 00 45 08 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 76 [21:09:50]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [21:09:50]wFMCommunicate OK [21:09:50]SAM_PROTO_GetShiftState done [21:09:50]FM_GetShiftState done [21:09:50]req_shift_opened done [21:09:50]requested_item shift.open_date is exist - process it [21:09:50]req_shift_open_date [21:09:50]req_shift_open_date done [21:09:50]produce_requested_data done [21:09:50]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29358,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [21:09:50]process_action_free close_receipt [21:09:50]json_value_free [21:09:50]json_value_free done [21:09:50]process_json_proto returns [21:09:50]Send response to host [21:09:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29358,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [21:09:50]free response buf [21:09:50]execute_script done [21:09:50]execute_script returns [21:09:50]free content buf [21:09:50]Sock 9.Close socket [21:09:50]Sock 9.Thread stoped [21:09:53]OFD Sender: No OFD packet to send [21:09:58]OFD Sender: No OFD packet to send [21:10:03]OFD Sender: No OFD packet to send [21:10:08]OFD Sender: No OFD packet to send [21:10:13]OFD Sender: No OFD packet to send [21:10:18]OFD Sender: No OFD packet to send [21:10:23]OFD Sender: No OFD packet to send [21:10:28]OFD Sender: No OFD packet to send [21:10:33]OFD Sender: No OFD packet to send [21:10:38]OFD Sender: No OFD packet to send [21:10:39]accept exits with 8 [21:10:39]New connection [21:10:39]New thread 3067112804 created [21:10:39]Thread 3066969444 joined [21:10:39]Waiting for new connection... [21:10:39] Sock 8.Parse request [21:10:39]Sock 8.Check first char [21:10:39]Sock 8.First char is OK [21:10:39]request: POST /json_proto HTTP/1.0 [21:10:39]Method: POST [21:10:39]URL: /json_proto [21:10:39]Method is POST - this is cgi request [21:10:39]url: /json_proto [21:10:39]query_string will be loaded in cgi processing [21:10:39]execute_cgi json_proto POST (null) [21:10:39]execute_cgi path=json_proto method=POST [21:10:39]POST find Content-Length [21:10:39]Host: 172.17.33.3:8080 [21:10:39]Content-Length: 677 [21:10:39]Content-Type: application/json [21:10:39] [21:10:39]POST finish read [21:10:39]Found Content-Length = 677 [21:10:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347755", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.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:10:39]execute_script... [21:10: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)347755", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.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:10:39]POST & json_proto [21:10:39]process_json_proto [21:10:39]json parsed OK: [21:10:39]protocol is kg_v1.0 [21:10:39]action value=close_receipt [21:10:39]process_action close_receipt [21:10:39]cmd_close_receipt [21:10:39]MH_GetDate [21:10:39]Write to MH i2c: F0 00 00 46 08 3D [21:10:39]Write i2c OK [21:10:39]MH_I2C_Read... [21:10:39]Read from MH i2c: F0 [21:10:39]MH_I2C_Read... [21:10:39]Read from MH i2c: F0 09 00 [21:10:39]MH_I2C_Read... [21:10:39]Read from MH i2c: F0 09 00 46 08 00 50 46 1C 66 23 5B 8F 65 D0 [21:10:39]GetLastDocTimeStamp 1713128987 [21:10:39]current date 1713129040 [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 47 08 80 13 01 00 00 00 00 00 CC [21:10:39]Write i2c OK [21:10:39]MH_I2C_Read... [21:10:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:10:39]Read from MH i2c: E2 [21:10:39]MH_I2C_Read... [21:10:39]Read from MH i2c: E2 0E 00 [21:10:39]MH_I2C_Read... [21:10:39]Read from MH i2c: E2 0E 00 47 08 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 78 [21:10:39]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [21:10:39]wFMCommunicate OK [21:10:39]SAM_PROTO_GetShiftState done [21:10:39]FM_GetShiftState done [21:10:39]opened in 1713053951 [21:10:39]opened+sec_in_day 1713140351 [21:10:39]quantity*price = 50025 [21:10:39]sum+1 = 50026 [21:10: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 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 269 14.04.2024 21:10 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29359 ФПД: 110193566173252 1/tax-web-control/client/api/v1/ticket?date=20240414T211040&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29359&fm=110193566173252&tin=02508201610067®Number=0000138879044617&sum=50000 [21:10:40]StoreToDocumentArchive [21:10:40]shift 116 fd 29359 [21:10:40]save to /storage/0116/doc_00029359 [21:10:40]save last doc name /storage/0116/doc_00029359 to /storage/kkm_last_doc_name [21:10:40]save OK [21:10:40]Clear old archive folders... [21:10:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:10:40]tlvbuf is 00258F90 [21:10:40]SAM_PROTO_ClearQueue [21:10:40]wFMCommunicate request_size=4 [21:10:40]MH_SAM_APDU [21:10:40]CAPDU: 80 09 00 00 [21:10:40]Write to MH i2c: E2 08 00 54 08 80 09 00 00 00 00 00 00 CE [21:10:40]Write i2c OK [21:10:40]MH_I2C_Read... [21:10:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:10:40]Read from MH i2c: E2 [21:10:40]MH_I2C_Read... [21:10:40]Read from MH i2c: E2 03 00 [21:10:40]MH_I2C_Read... [21:10:40]Read from MH i2c: E2 03 00 54 08 00 90 00 D0 [21:10:40]RAPDU: 90 00 [21:10:40]wFMCommunicate OK [21:10:40]SAM_PROTO_ClearQueue done [21:10:40]KKMCreateOFDPacket [21:10:40]OFDProtocolAddRootSTLVToBuf [21:10:40]FM_MakeSignedData [21:10:40]FM_MakeSignedData [21:10:40]SAM_PROTO_SignData [21:10:40]wFMCommunicate request_size=4 [21:10:40]MH_SAM_APDU [21:10:40]CAPDU: 80 0D 01 02 [21:10:40]Write to MH i2c: E2 08 00 55 08 80 0D 01 02 00 00 00 00 D6 [21:10:40]Write i2c OK [21:10:40]MH_I2C_Read... [21:10:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:10:40]Read from MH i2c: E2 [21:10:40]MH_I2C_Read... [21:10:40]Read from MH i2c: E2 03 00 [21:10:40]MH_I2C_Read... [21:10:40]Read from MH i2c: E2 03 00 55 08 00 90 00 D1 [21:10:40]RAPDU: 90 00 [21:10:40]wFMCommunicate OK [21:10:40]wFMCommunicate request_size=255 [21:10:40]MH_SAM_APDU [21:10: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 0D 01 00 00 F4 03 04 00 50 46 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AF 72 00 00 35 04 06 00 64 [21:10:40]Write to MH i2c: E2 02 01 56 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 0D 01 00 00 F4 03 04 00 50 46 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AF 72 00 00 35 04 06 00 64 00 00 B7 [21:10:40]Write i2c OK [21:10:40]MH_I2C_Read... [21:10:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:10:40]Read from MH i2c: E2 [21:10:40]MH_I2C_Read... [21:10:40]Read from MH i2c: E2 03 00 [21:10:40]MH_I2C_Read... [21:10:40]Read from MH i2c: E2 03 00 56 08 00 90 00 D2 [21:10:40]RAPDU: 90 00 [21:10:40]wFMCommunicate OK [21:10:40]wFMCommunicate request_size=10 [21:10:40]MH_SAM_APDU [21:10:40]CAPDU: 80 0D 02 02 05 38 70 5E 48 44 [21:10:40]Write to MH i2c: E2 0D 00 57 08 80 0D 02 02 05 00 38 70 5E 48 44 00 00 75 [21:10:40]Write i2c OK [21:10:40]MH_I2C_Read... [21:10:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:10:40]Read from MH i2c: E2 [21:10:40]MH_I2C_Read... [21:10:40]Read from MH i2c: E2 03 00 [21:10:40]MH_I2C_Read... [21:10:40]Read from MH i2c: E2 03 00 57 08 00 90 00 D3 [21:10:40]RAPDU: 90 00 [21:10:40]wFMCommunicate OK [21:10:40]wFMCommunicate request_size=4 [21:10:40]MH_SAM_APDU [21:10:40]CAPDU: 80 0D 03 02 [21:10:40]Write to MH i2c: E2 08 00 58 08 80 0D 03 02 00 00 00 00 DB [21:10:40]Write i2c OK [21:10:40]MH_I2C_Read... [21:10:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:10:40]Read from MH i2c: E2 [21:10:40]MH_I2C_Read... [21:10:40]Read from MH i2c: E2 0B 00 [21:10:40]MH_I2C_Read... [21:10:40]Read from MH i2c: E2 0B 00 58 08 00 F7 BD 49 8C C0 3B 77 8E 90 00 65 [21:10:40]RAPDU: F7 BD 49 8C C0 3B 77 8E 90 00 [21:10:40]wFMCommunicate OK [21:10:40]SAM_PROTO_SignData done [21:10:40]FM_MakeSignedData done [21:10:40]CreateOFDProtocolMessage [21:10:40]wFMCommunicate request_size=4 [21:10:40]MH_SAM_APDU [21:10:40]CAPDU: 80 11 00 00 [21:10:40]Write to MH i2c: E2 08 00 59 08 80 11 00 00 00 00 00 00 DB [21:10:40]Write i2c OK [21:10:40]MH_I2C_Read... [21:10:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:10:40]Read from MH i2c: E2 [21:10:40]MH_I2C_Read... [21:10:40]Read from MH i2c: E2 17 00 [21:10:40]MH_I2C_Read... [21:10:40]Read from MH i2c: E2 17 00 59 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 2A [21:10:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:10:40]wFMCommunicate OK [21:10:40]CreateOFDProtocolMessage done [21:10:40]OFDSenderStorePacket 29359 [21:10:40]StoreOFDPacket docnum=29359 [21:10:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 70 62 07 01 7D 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 0D 01 00 00 F4 03 04 00 50 46 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AF 72 00 00 35 04 06 00 64 38 70 5E 48 44 F7 BD 49 8C C0 3B 77 8E [21:10:40]CheckFolder [21:10:40]dirname=/storage/ofd_packets [21:10:40]CheckFolder done [21:10:40]ProducePacketName [21:10:40]name=ofd_packets/00029359 [21:10:40]NVStorageSaveData ofd_packets/00029359 [21:10:40]File name is /storage/ofd_packets/00029359 [21:10:40]Write 301 bytes [21:10:40]NVStorageSaveData done [21:10:40]OFDSenderStorePacket done [21:10:40]KKMCreateOFDPacket done [21:10:40]NVStorageSaveData kkm_last_timestamp [21:10:40]File name is /storage/kkm_last_timestamp [21:10:40]Write 4 bytes [21:10:40]NVStorageSaveData done [21:10:40]ExternCall_PrintAddStr [21:10:40]wPrintStart [21:10:40]Write to MH i2c: 01 00 00 5A 08 62 [21:10:40]Write i2c OK [21:10:40]MH_I2C_Read... [21:10:40]Read from MH i2c: 01 [21:10:40]MH_I2C_Read... [21:10:40]Read from MH i2c: 01 07 00 [21:10:40]MH_I2C_Read... [21:10:40]Read from MH i2c: 01 07 00 5A 08 00 00 00 00 00 FF 0F 77 [21:10:40]RasterBufferAndPrint [21:10:40]line Счет N : (1)347755 [21:10:40]line ИНН: 02508201610067 [21:10:40]line Контрольно-Кассовый Чек [21:10:40]line ПРОДАЖА [21:10:40]line ТРК (МРК, ГНК) : 13 [21:10:40]line Товар: 2710124130 [21:10:40]line Аи-92-К-5 [21:10:40]line 7.780 * 64.30 [21:10:40]line = 500.25 [21:10:40]line НДС 12% НСП 1% [21:10:40]line > о реализуемом товаре [21:10:40]line ОКРУГЛЕНИЕ: -0.25 [21:10:40]line ИТОГО: 500.00 [21:10:40]line Внесено: 500.00 [21:10:40]line СДАЧА: 0.00 [21:10:40]line НСП 1% : 4.43 [21:10:40]line НДС 12% : 53.12 [21:10:40]line Наличными: 500.00 [21:10:40]line Безнал.: 0.00 [21:10:40]line Место: АЗС № 108 "Партнер Нефть" [21:10:40]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [21:10:40]line СНО: Общий режим [21:10:40]line Чек 269 14.04.2024 21:10 [21:10:40]line Смена: 116 ФФД: 1.0 [21:10:40]line ЗНМ: 0300000027 [21:10:40]line РНМ: 0000138879044617 [21:10:40]line Версия ККМ: 001 [21:10:40]line ФМ: 0000000000963154 [21:10:40]line ФД: 29359 [21:10:40]line ФПД: 110193566173252 [21:10:40]line 1/tax-web-control/client/api/v1/ticket?date=20240414T211040&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29359&fm=110193566173252&tin=02508201610067®Number=0000138879044617&sum=50000 [21:10:40]written 0, free lines is 4095 [21:10:40]OFD Sender: Processing packet 29359 [packets to send 8, broken 7] [21:10:40]ProducePacketName [21:10:40]name=ofd_packets/00029359 [21:10:40]OFD Sender: To server: pG, [21:10:40]CommunicateWithHost lk.salyk.kg:30040 [21:10:40]ConnectInit lk.salyk.kg [21:10:40]Connected sock=11 [21:10:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 70 62 07 01 7D 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 0D 01 00 00 F4 03 04 00 50 46 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AF 72 00 00 35 04 06 00 64 38 70 5E 48 44 F7 BD 49 8C C0 3B 77 8E [21:10:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 98 15 47 00 E4 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AF 72 00 00 F4 03 04 00 F2 F0 1B 66 B6 04 01 00 00 E1 EF F4 34 F6 EC 63 C9 [21:10:41]CommunicateWithHost err = 0 [21:10:41]CheckOFDResponse [21:10:41]1017 (14) - 77093643461234 [21:10:41]1041 (16) - 0000000000963154 [21:10:41]1040 (4) - 29359 [21:10:41]1012 (4) - 14.04.2024 15:06 [21:10:41]1206 (1) - 0 [21:10:41]OFD Sender: Remove packet 29359 [21:10:41]ProducePacketName [21:10:41]name=ofd_packets/00029359 [21:10:41]NVStorageDeleteData [21:10:41]Write to MH i2c: 01 00 00 84 08 8C [21:10:41]Write i2c OK [21:10:41]MH_I2C_Read... [21:10:41]Read from MH i2c: 01 [21:10:41]MH_I2C_Read... [21:10:41]Read from MH i2c: 01 07 00 [21:10:41]MH_I2C_Read... [21:10:41]Read from MH i2c: 01 07 00 84 08 00 00 00 00 00 CC 0C 6B [21:10:41]RasterBufferAndPrint [21:10:41]line [21:10:41]line [21:10:41]line [21:10:41]line [21:10:41]line [21:10:41]written 0, free lines is 3281 [21:10:41]MH_Cut [21:10:41]Write to MH i2c: D1 01 00 8B 08 01 65 [21:10:41]Write i2c OK [21:10:41]MH_I2C_Read... [21:10:41]Read from MH i2c: D1 [21:10:41]MH_I2C_Read... [21:10:41]Read from MH i2c: D1 01 00 [21:10:41]MH_I2C_Read... [21:10:41]Read from MH i2c: D1 01 00 8B 08 00 64 [21:10:41]Write to MH i2c: 01 00 00 8C 08 94 [21:10:41]Write i2c OK [21:10:41]MH_I2C_Read... [21:10:41]OFD Sender: No OFD packet to send [21:10:42]*** Cut start [21:10:42]*** Partial cut [21:10:42]*** CUTSNS_PIN = 1 [21:10:42]*** CUTSNS_PIN = 0 [21:10:42]*** Brake cut motor [21:10:42]Read from MH i2c: 01 [21:10:42]MH_I2C_Read... [21:10:42]*** Stop cut motor [21:10:42]*** Cut end [21:10:42]Read from MH i2c: 01 07 00 [21:10:42]MH_I2C_Read... [21:10:42]Read from MH i2c: 01 07 00 8C 08 00 00 00 00 00 FF 0F A9 [21:10:42]process_action close_receipt done [21:10:42]requested_data is exist [21:10:42]produce_requested_data [21:10:42]requested_item fm.sn is exist - process it [21:10:42]wFMCommunicate request_size=4 [21:10:42]MH_SAM_APDU [21:10:42]CAPDU: 80 11 00 00 [21:10:42]Write to MH i2c: E2 08 00 8D 08 80 11 00 00 00 00 00 00 0F [21:10:42]Write i2c OK [21:10:42]MH_I2C_Read... [21:10:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:10:42]Read from MH i2c: E2 [21:10:42]MH_I2C_Read... [21:10:42]Read from MH i2c: E2 17 00 [21:10:42]MH_I2C_Read... [21:10:42]Read from MH i2c: E2 17 00 8D 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 5E [21:10:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:10:42]wFMCommunicate OK [21:10:42]requested_item fd.num is exist - process it [21:10:42]SAM_PROTO_GetFieldsCounters [21:10:42]wFMCommunicate request_size=4 [21:10:42]MH_SAM_APDU [21:10:42]CAPDU: 80 13 00 00 [21:10:42]Write to MH i2c: E2 08 00 8E 08 80 13 00 00 00 00 00 00 12 [21:10:42]Write i2c OK [21:10:42]MH_I2C_Read... [21:10:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:10:42]Read from MH i2c: E2 [21:10:42]MH_I2C_Read... [21:10:42]Read from MH i2c: E2 62 00 [21:10:42]MH_I2C_Read... [21:10:42]Read from MH i2c: E2 62 00 8E 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 AF 72 00 00 0E 04 04 00 74 00 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 0F [21:10:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 AF 72 00 00 0E 04 04 00 74 00 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 [21:10:42]wFMCommunicate OK [21:10:42]SAM_PROTO_GetFieldsCounters done [21:10:42]requested_item shift.num is exist - process it [21:10:42]requested_item shift.opened is exist - process it [21:10:42]req_shift_opened [21:10:42]FM_GetShiftState [21:10:42]SAM_PROTO_GetShiftState [21:10:42]wFMCommunicate request_size=4 [21:10:42]MH_SAM_APDU [21:10:42]CAPDU: 80 13 01 00 [21:10:42]Write to MH i2c: E2 08 00 8F 08 80 13 01 00 00 00 00 00 14 [21:10:42]Write i2c OK [21:10:42]MH_I2C_Read... [21:10:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:10:42]Read from MH i2c: E2 [21:10:42]MH_I2C_Read... [21:10:42]Read from MH i2c: E2 0E 00 [21:10:42]MH_I2C_Read... [21:10:42]Read from MH i2c: E2 0E 00 8F 08 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 C0 [21:10:42]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [21:10:42]wFMCommunicate OK [21:10:42]SAM_PROTO_GetShiftState done [21:10:42]FM_GetShiftState done [21:10:42]req_shift_opened done [21:10:42]requested_item shift.open_date is exist - process it [21:10:42]req_shift_open_date [21:10:42]req_shift_open_date done [21:10:42]produce_requested_data done [21:10:42]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29359,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [21:10:42]process_action_free close_receipt [21:10:42]json_value_free [21:10:42]json_value_free done [21:10:42]process_json_proto returns [21:10:42]Send response to host [21:10:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29359,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [21:10:42]free response buf [21:10:42]execute_script done [21:10:42]execute_script returns [21:10:42]free content buf [21:10:42]Sock 8.Close socket [21:10:42]Sock 8.Thread stoped [21:10:46]OFD Sender: No OFD packet to send [21:10:51]OFD Sender: No OFD packet to send [21:10:56]OFD Sender: No OFD packet to send [21:11:01]OFD Sender: No OFD packet to send [21:11:06]OFD Sender: No OFD packet to send [21:11:11]OFD Sender: No OFD packet to send [21:11:16]OFD Sender: No OFD packet to send [21:11:21]OFD Sender: No OFD packet to send [21:11:26]OFD Sender: No OFD packet to send [21:11:31]OFD Sender: No OFD packet to send [21:11:36]OFD Sender: No OFD packet to send [21:11:41]OFD Sender: No OFD packet to send [21:11:46]OFD Sender: No OFD packet to send [21:11:51]OFD Sender: No OFD packet to send [21:11:56]OFD Sender: No OFD packet to send [21:12:01]OFD Sender: No OFD packet to send [21:12:06]OFD Sender: No OFD packet to send [21:12:07]accept exits with 9 [21:12:07]New connection [21:12:07]New thread 3066969444 created [21:12:07]Thread 3067112804 joined [21:12:07]Waiting for new connection... [21:12:07] Sock 9.Parse request [21:12:07]Sock 9.Check first char [21:12:07]Sock 9.First char is OK [21:12:07]request: POST /json_proto HTTP/1.0 [21:12:07]Method: POST [21:12:07]URL: /json_proto [21:12:07]Method is POST - this is cgi request [21:12:07]url: /json_proto [21:12:07]query_string will be loaded in cgi processing [21:12:07]execute_cgi json_proto POST (null) [21:12:07]execute_cgi path=json_proto method=POST [21:12:07]POST find Content-Length [21:12:07]Host: 172.17.33.3:8080 [21:12:07]Content-Length: 811 [21:12:07]Content-Type: application/json [21:12:07] [21:12:07]POST finish read [21:12:07]Found Content-Length = 811 [21:12:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347753", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 34.940, "sum" : 1149.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 1149.53 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:12:07]execute_script... [21:12: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)347753", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 34.940, "sum" : 1149.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 1149.53 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:12:07]POST & json_proto [21:12:07]process_json_proto [21:12:07]json parsed OK: [21:12:07]protocol is kg_v1.0 [21:12:07]action value=close_receipt [21:12:07]process_action close_receipt [21:12:07]cmd_close_receipt [21:12:07]MH_GetDate [21:12:07]Write to MH i2c: F0 00 00 90 08 87 [21:12:07]Write i2c OK [21:12:07]MH_I2C_Read... [21:12:07]Read from MH i2c: F0 [21:12:07]MH_I2C_Read... [21:12:07]Read from MH i2c: F0 09 00 [21:12:07]MH_I2C_Read... [21:12:07]Read from MH i2c: F0 09 00 90 08 00 A8 46 1C 66 23 5B 8F 65 72 [21:12:07]GetLastDocTimeStamp 1713129040 [21:12:07]current date 1713129128 [21:12:07]FM_GetShiftState [21:12:07]SAM_PROTO_GetShiftState [21:12:07]wFMCommunicate request_size=4 [21:12:07]MH_SAM_APDU [21:12:07]CAPDU: 80 13 01 00 [21:12:07]Write to MH i2c: E2 08 00 91 08 80 13 01 00 00 00 00 00 16 [21:12:07]Write i2c OK [21:12:07]MH_I2C_Read... [21:12:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:12:07]Read from MH i2c: E2 [21:12:07]MH_I2C_Read... [21:12:07]Read from MH i2c: E2 0E 00 [21:12:07]MH_I2C_Read... [21:12:07]Read from MH i2c: E2 0E 00 91 08 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 C2 [21:12:07]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [21:12:07]wFMCommunicate OK [21:12:07]SAM_PROTO_GetShiftState done [21:12:07]FM_GetShiftState done [21:12:07]opened in 1713053951 [21:12:07]opened+sec_in_day 1713140351 [21:12:07]quantity*price = 114952 [21:12:07]sum+1 = 114954 [21:12:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1149.53 НСП 1% : 10.17 НДС 12% : 122.07 Наличными: 0.00 Безнал.: 1149.53 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 270 14.04.2024 21:12 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29360 ФПД: 254059277490541 1/tax-web-control/client/api/v1/ticket?date=20240414T211208&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29360&fm=254059277490541&tin=02508201610067®Number=0000138879044617&sum=114953 [21:12:08]StoreToDocumentArchive [21:12:08]shift 116 fd 29360 [21:12:08]save to /storage/0116/doc_00029360 [21:12:08]save last doc name /storage/0116/doc_00029360 to /storage/kkm_last_doc_name [21:12:08]save OK [21:12:08]Clear old archive folders... [21:12:08]ProcessDocumentItem done err = 0, tmpTLVsize=250 [21:12:08]tlvbuf is 00261390 [21:12:08]SAM_PROTO_ClearQueue [21:12:08]wFMCommunicate request_size=4 [21:12:08]MH_SAM_APDU [21:12:08]CAPDU: 80 09 00 00 [21:12:08]Write to MH i2c: E2 08 00 9E 08 80 09 00 00 00 00 00 00 18 [21:12:08]Write i2c OK [21:12:08]MH_I2C_Read... [21:12:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:12:08]Read from MH i2c: E2 [21:12:08]MH_I2C_Read... [21:12:08]Read from MH i2c: E2 03 00 [21:12:08]MH_I2C_Read... [21:12:08]Read from MH i2c: E2 03 00 9E 08 00 90 00 1A [21:12:08]RAPDU: 90 00 [21:12:08]wFMCommunicate OK [21:12:08]SAM_PROTO_ClearQueue done [21:12:08]KKMCreateOFDPacket [21:12:08]OFDProtocolAddRootSTLVToBuf [21:12:08]FM_MakeSignedData [21:12:08]FM_MakeSignedData [21:12:08]SAM_PROTO_SignData [21:12:08]wFMCommunicate request_size=4 [21:12:08]MH_SAM_APDU [21:12:08]CAPDU: 80 0D 01 02 [21:12:08]Write to MH i2c: E2 08 00 9F 08 80 0D 01 02 00 00 00 00 20 [21:12:08]Write i2c OK [21:12:08]MH_I2C_Read... [21:12:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:12:08]Read from MH i2c: E2 [21:12:08]MH_I2C_Read... [21:12:08]Read from MH i2c: E2 03 00 [21:12:08]MH_I2C_Read... [21:12:08]Read from MH i2c: E2 03 00 9F 08 00 90 00 1B [21:12:08]RAPDU: 90 00 [21:12:08]wFMCommunicate OK [21:12:08]wFMCommunicate request_size=255 [21:12:08]MH_SAM_APDU [21:12:08]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 7C 88 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 09 C1 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 09 C1 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 2F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 09 C1 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 A8 46 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B0 72 00 00 35 04 06 00 E7 10 [21:12:08]Write to MH i2c: E2 02 01 A0 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 7C 88 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 09 C1 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 09 C1 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 2F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 09 C1 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 A8 46 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B0 72 00 00 35 04 06 00 E7 10 00 00 28 [21:12:08]Write i2c OK [21:12:08]MH_I2C_Read... [21:12:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:12:09]Read from MH i2c: E2 [21:12:09]MH_I2C_Read... [21:12:09]Read from MH i2c: E2 03 00 [21:12:09]MH_I2C_Read... [21:12:09]Read from MH i2c: E2 03 00 A0 08 00 90 00 1C [21:12:09]RAPDU: 90 00 [21:12:09]wFMCommunicate OK [21:12:09]wFMCommunicate request_size=9 [21:12:09]MH_SAM_APDU [21:12:09]CAPDU: 80 0D 02 02 04 C8 FC 99 6D [21:12:09]Write to MH i2c: E2 0C 00 A1 08 80 0D 02 02 04 00 C8 FC 99 6D 00 00 F5 [21:12:09]Write i2c OK [21:12:09]MH_I2C_Read... [21:12:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:12:09]Read from MH i2c: E2 [21:12:09]MH_I2C_Read... [21:12:09]Read from MH i2c: E2 03 00 [21:12:09]MH_I2C_Read... [21:12:09]Read from MH i2c: E2 03 00 A1 08 00 90 00 1D [21:12:09]RAPDU: 90 00 [21:12:09]wFMCommunicate OK [21:12:09]wFMCommunicate request_size=4 [21:12:09]MH_SAM_APDU [21:12:09]CAPDU: 80 0D 03 02 [21:12:09]Write to MH i2c: E2 08 00 A2 08 80 0D 03 02 00 00 00 00 25 [21:12:09]Write i2c OK [21:12:09]MH_I2C_Read... [21:12:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:12:09]Read from MH i2c: E2 [21:12:09]MH_I2C_Read... [21:12:09]Read from MH i2c: E2 0B 00 [21:12:09]MH_I2C_Read... [21:12:09]Read from MH i2c: E2 0B 00 A2 08 00 AF 1C E2 09 E9 0A 05 96 90 00 6A [21:12:09]RAPDU: AF 1C E2 09 E9 0A 05 96 90 00 [21:12:09]wFMCommunicate OK [21:12:09]SAM_PROTO_SignData done [21:12:09]FM_MakeSignedData done [21:12:09]CreateOFDProtocolMessage [21:12:09]wFMCommunicate request_size=4 [21:12:09]MH_SAM_APDU [21:12:09]CAPDU: 80 11 00 00 [21:12:09]Write to MH i2c: E2 08 00 A3 08 80 11 00 00 00 00 00 00 25 [21:12:09]Write i2c OK [21:12:09]MH_I2C_Read... [21:12:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:12:09]Read from MH i2c: E2 [21:12:09]MH_I2C_Read... [21:12:09]Read from MH i2c: E2 17 00 [21:12:09]MH_I2C_Read... [21:12:09]Read from MH i2c: E2 17 00 A3 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 74 [21:12:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:12:09]wFMCommunicate OK [21:12:09]CreateOFDProtocolMessage done [21:12:09]OFDSenderStorePacket 29360 [21:12:09]StoreOFDPacket docnum=29360 [21:12:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 21 9E 06 01 7E F1 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 7C 88 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 09 C1 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 09 C1 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 2F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 09 C1 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 A8 46 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B0 72 00 00 35 04 06 00 E7 10 C8 FC 99 6D AF 1C E2 09 E9 0A 05 96 [21:12:09]CheckFolder [21:12:09]dirname=/storage/ofd_packets [21:12:09]CheckFolder done [21:12:09]ProducePacketName [21:12:09]name=ofd_packets/00029360 [21:12:09]NVStorageSaveData ofd_packets/00029360 [21:12:09]File name is /storage/ofd_packets/00029360 [21:12:09]Write 300 bytes [21:12:09]NVStorageSaveData done [21:12:09]OFDSenderStorePacket done [21:12:09]KKMCreateOFDPacket done [21:12:09]NVStorageSaveData kkm_last_timestamp [21:12:09]File name is /storage/kkm_last_timestamp [21:12:09]Write 4 bytes [21:12:09]NVStorageSaveData done [21:12:09]ExternCall_PrintAddStr [21:12:09]wPrintStart [21:12:09]Write to MH i2c: 01 00 00 A4 08 AC [21:12:09]Write i2c OK [21:12:09]MH_I2C_Read... [21:12:09]Read from MH i2c: 01 [21:12:09]MH_I2C_Read... [21:12:09]Read from MH i2c: 01 07 00 [21:12:09]MH_I2C_Read... [21:12:09]Read from MH i2c: 01 07 00 A4 08 00 00 00 00 00 FF 0F C1 [21:12:09]RasterBufferAndPrint [21:12:09]line Счет N : (1)347753 [21:12:09]line ИНН: 02508201610067 [21:12:09]line Контрольно-Кассовый Чек [21:12:09]line ПРОДАЖА [21:12:09]line ТРК (МРК, ГНК) : 71 [21:12:09]line Товар: 2711129700 [21:12:09]line ГАЗ-К-5 [21:12:09]line 34.940 * 32.90 [21:12:09]line = 1149.53 [21:12:09]line НДС 12% НСП 1% [21:12:09]line > о реализуемом товаре [21:12:09]line ИТОГО: 1149.53 [21:12:09]line НСП 1% : 10.17 [21:12:09]line НДС 12% : 122.07 [21:12:09]line Наличными: 0.00 [21:12:09]line Безнал.: 1149.53 [21:12:09]line Место: АЗС № 108 "Партнер Нефть" [21:12:09]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [21:12:09]line СНО: Общий режим [21:12:09]line Чек 270 14.04.2024 21:12 [21:12:09]line Смена: 116 ФФД: 1.0 [21:12:09]line ЗНМ: 0300000027 [21:12:09]line РНМ: 0000138879044617 [21:12:09]line Версия ККМ: 001 [21:12:09]line Платежная система: О! деньги [21:12:09]line ФМ: 0000000000963154 [21:12:09]line ФД: 29360 [21:12:09]line ФПД: 254059277490541 [21:12:09]line 1/tax-web-control/client/api/v1/ticket?date=20240414T211208&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29360&fm=254059277490541&tin=02508201610067®Number=0000138879044617&sum=114953 [21:12:09]OFD Sender: Processing packet 29360 [packets to send 8, broken 7] [21:12:09]ProducePacketName [21:12:09]name=ofd_packets/00029360 [21:12:09]OFD Sender: To server: pG, [21:12:09]CommunicateWithHost lk.salyk.kg:30040 [21:12:09]ConnectInit lk.salyk.kg [21:12:09]written 0, free lines is 4095 [21:12:09]Connected sock=10 [21:12:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 21 9E 06 01 7E F1 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 7C 88 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 09 C1 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 09 C1 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 2F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 09 C1 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 A8 46 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B0 72 00 00 35 04 06 00 E7 10 C8 FC 99 6D AF 1C E2 09 E9 0A 05 96 [21:12:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 8C 34 47 00 A4 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 39 36 33 31 35 34 10 04 04 00 B0 72 00 00 F4 03 04 00 4B F1 1B 66 B6 04 01 00 00 AF 67 65 47 46 CC EE 41 [21:12:09]CommunicateWithHost err = 0 [21:12:09]CheckOFDResponse [21:12:09]1017 (14) - 77093643461234 [21:12:09]1041 (16) - 0000000000963154 [21:12:09]1040 (4) - 29360 [21:12:09]1012 (4) - 14.04.2024 15:07 [21:12:09]1206 (1) - 0 [21:12:09]OFD Sender: Remove packet 29360 [21:12:09]ProducePacketName [21:12:09]name=ofd_packets/00029360 [21:12:09]NVStorageDeleteData [21:12:10]Write to MH i2c: 01 00 00 CD 08 D5 [21:12:10]Write i2c OK [21:12:10]MH_I2C_Read... [21:12:10]Read from MH i2c: 01 [21:12:10]MH_I2C_Read... [21:12:10]Read from MH i2c: 01 07 00 [21:12:10]MH_I2C_Read... [21:12:10]Read from MH i2c: 01 07 00 CD 08 00 00 00 00 00 E2 0C CA [21:12:10]RasterBufferAndPrint [21:12:10]line [21:12:10]line [21:12:10]line [21:12:10]line [21:12:10]line [21:12:10]written 0, free lines is 3304 [21:12:10]MH_Cut [21:12:10]Write to MH i2c: D1 01 00 D4 08 01 AE [21:12:10]Write i2c OK [21:12:10]MH_I2C_Read... [21:12:10]Read from MH i2c: D1 [21:12:10]MH_I2C_Read... [21:12:10]Read from MH i2c: D1 01 00 [21:12:10]MH_I2C_Read... [21:12:10]Read from MH i2c: D1 01 00 D4 08 00 AD [21:12:10]Write to MH i2c: 01 00 00 D5 08 DD [21:12:10]Write i2c OK [21:12:10]MH_I2C_Read... [21:12:10]OFD Sender: No OFD packet to send [21:12:10]*** Cut start [21:12:10]*** Partial cut [21:12:10]*** CUTSNS_PIN = 1 [21:12:10]*** CUTSNS_PIN = 0 [21:12:11]*** Brake cut motor [21:12:11]Read from MH i2c: 01 [21:12:11]MH_I2C_Read... [21:12:11]*** Stop cut motor [21:12:11]*** Cut end [21:12:11]Read from MH i2c: 01 07 00 [21:12:11]MH_I2C_Read... [21:12:11]Read from MH i2c: 01 07 00 D5 08 00 00 00 00 00 FF 0F F2 [21:12:11]process_action close_receipt done [21:12:11]requested_data is exist [21:12:11]produce_requested_data [21:12:11]requested_item fm.sn is exist - process it [21:12:11]wFMCommunicate request_size=4 [21:12:11]MH_SAM_APDU [21:12:11]CAPDU: 80 11 00 00 [21:12:11]Write to MH i2c: E2 08 00 D6 08 80 11 00 00 00 00 00 00 58 [21:12:11]Write i2c OK [21:12:11]MH_I2C_Read... [21:12:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:12:11]Read from MH i2c: E2 [21:12:11]MH_I2C_Read... [21:12:11]Read from MH i2c: E2 17 00 [21:12:11]MH_I2C_Read... [21:12:11]Read from MH i2c: E2 17 00 D6 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A7 [21:12:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:12:11]wFMCommunicate OK [21:12:11]requested_item fd.num is exist - process it [21:12:11]SAM_PROTO_GetFieldsCounters [21:12:11]wFMCommunicate request_size=4 [21:12:11]MH_SAM_APDU [21:12:11]CAPDU: 80 13 00 00 [21:12:11]Write to MH i2c: E2 08 00 D7 08 80 13 00 00 00 00 00 00 5B [21:12:11]Write i2c OK [21:12:11]MH_I2C_Read... [21:12:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:12:11]Read from MH i2c: E2 [21:12:11]MH_I2C_Read... [21:12:11]Read from MH i2c: E2 62 00 [21:12:11]MH_I2C_Read... [21:12:11]Read from MH i2c: E2 62 00 D7 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B0 72 00 00 0E 04 04 00 74 00 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 5C [21:12:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B0 72 00 00 0E 04 04 00 74 00 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 [21:12:11]wFMCommunicate OK [21:12:11]SAM_PROTO_GetFieldsCounters done [21:12:11]requested_item shift.num is exist - process it [21:12:11]requested_item shift.opened is exist - process it [21:12:11]req_shift_opened [21:12:11]FM_GetShiftState [21:12:11]SAM_PROTO_GetShiftState [21:12:11]wFMCommunicate request_size=4 [21:12:11]MH_SAM_APDU [21:12:11]CAPDU: 80 13 01 00 [21:12:11]Write to MH i2c: E2 08 00 D8 08 80 13 01 00 00 00 00 00 5D [21:12:11]Write i2c OK [21:12:11]MH_I2C_Read... [21:12:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:12:11]Read from MH i2c: E2 [21:12:11]MH_I2C_Read... [21:12:11]Read from MH i2c: E2 0E 00 [21:12:11]MH_I2C_Read... [21:12:11]Read from MH i2c: E2 0E 00 D8 08 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 09 [21:12:11]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [21:12:11]wFMCommunicate OK [21:12:11]SAM_PROTO_GetShiftState done [21:12:11]FM_GetShiftState done [21:12:11]req_shift_opened done [21:12:11]requested_item shift.open_date is exist - process it [21:12:11]req_shift_open_date [21:12:11]req_shift_open_date done [21:12:11]produce_requested_data done [21:12:11]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29360,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [21:12:11]process_action_free close_receipt [21:12:11]json_value_free [21:12:11]json_value_free done [21:12:11]process_json_proto returns [21:12:11]Send response to host [21:12:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29360,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [21:12:11]free response buf [21:12:11]execute_script done [21:12:11]execute_script returns [21:12:11]free content buf [21:12:11]Sock 9.Close socket [21:12:11]Sock 9.Thread stoped [21:12:15]OFD Sender: No OFD packet to send [21:12:20]OFD Sender: No OFD packet to send [21:12:25]OFD Sender: No OFD packet to send [21:12:30]OFD Sender: No OFD packet to send [21:12:35]OFD Sender: No OFD packet to send [21:12:40]OFD Sender: No OFD packet to send [21:12:45]OFD Sender: No OFD packet to send [21:12:50]OFD Sender: No OFD packet to send [21:12:55]OFD Sender: No OFD packet to send [21:13:00]OFD Sender: No OFD packet to send [21:13:05]OFD Sender: No OFD packet to send [21:13:10]OFD Sender: No OFD packet to send [21:13:15]OFD Sender: No OFD packet to send [21:13:20]OFD Sender: No OFD packet to send [21:13:25]OFD Sender: No OFD packet to send [21:13:30]OFD Sender: No OFD packet to send [21:13:35]OFD Sender: No OFD packet to send [21:13:40]OFD Sender: No OFD packet to send [21:13:45]OFD Sender: No OFD packet to send [21:13:50]OFD Sender: No OFD packet to send [21:13:55]OFD Sender: No OFD packet to send [21:14:00]OFD Sender: No OFD packet to send [21:14:05]OFD Sender: No OFD packet to send [21:14:10]OFD Sender: No OFD packet to send [21:14:15]OFD Sender: No OFD packet to send [21:14:20]OFD Sender: No OFD packet to send [21:14:25]OFD Sender: No OFD packet to send [21:14:30]OFD Sender: No OFD packet to send [21:14:35]OFD Sender: No OFD packet to send [21:14:40]OFD Sender: No OFD packet to send [21:14:45]OFD Sender: No OFD packet to send [21:14:50]OFD Sender: No OFD packet to send [21:14:55]OFD Sender: No OFD packet to send [21:15:00]OFD Sender: No OFD packet to send [21:15:05]OFD Sender: No OFD packet to send [21:15:10]OFD Sender: No OFD packet to send [21:15:15]OFD Sender: No OFD packet to send [21:15:17]accept exits with 8 [21:15:17]New connection [21:15:17]New thread 3067112804 created [21:15:17]Thread 3066969444 joined [21:15:17]Waiting for new connection... [21:15:17] Sock 8.Parse request [21:15:17]Sock 8.Check first char [21:15:17]Sock 8.First char is OK [21:15:17]request: POST /json_proto HTTP/1.0 [21:15:17]Method: POST [21:15:17]URL: /json_proto [21:15:17]Method is POST - this is cgi request [21:15:17]url: /json_proto [21:15:17]query_string will be loaded in cgi processing [21:15:17]execute_cgi json_proto POST (null) [21:15:17]execute_cgi path=json_proto method=POST [21:15:17]POST find Content-Length [21:15:17]Host: 172.17.33.3:8080 [21:15:17]Content-Length: 674 [21:15:17]Content-Type: application/json [21:15:17] [21:15:17]POST finish read [21:15:17]Found Content-Length = 674 [21:15:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347757", "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" ] } } [21:15:17]execute_script... [21:15:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347757", "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" ] } } [21:15:17]POST & json_proto [21:15:17]process_json_proto [21:15:17]json parsed OK: [21:15:17]protocol is kg_v1.0 [21:15:17]action value=close_receipt [21:15:17]process_action close_receipt [21:15:17]cmd_close_receipt [21:15:17]MH_GetDate [21:15:17]Write to MH i2c: F0 00 00 D9 08 D0 [21:15:17]Write i2c OK [21:15:17]MH_I2C_Read... [21:15:17]Read from MH i2c: F0 [21:15:17]MH_I2C_Read... [21:15:17]Read from MH i2c: F0 09 00 [21:15:17]MH_I2C_Read... [21:15:17]Read from MH i2c: F0 09 00 D9 08 00 66 47 1C 66 23 5B 8F 65 7A [21:15:17]GetLastDocTimeStamp 1713129128 [21:15:17]current date 1713129318 [21:15:17]FM_GetShiftState [21:15:17]SAM_PROTO_GetShiftState [21:15:17]wFMCommunicate request_size=4 [21:15:17]MH_SAM_APDU [21:15:17]CAPDU: 80 13 01 00 [21:15:17]Write to MH i2c: E2 08 00 DA 08 80 13 01 00 00 00 00 00 5F [21:15:17]Write i2c OK [21:15:17]MH_I2C_Read... [21:15:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:15:17]Read from MH i2c: E2 [21:15:17]MH_I2C_Read... [21:15:17]Read from MH i2c: E2 0E 00 [21:15:17]MH_I2C_Read... [21:15:17]Read from MH i2c: E2 0E 00 DA 08 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 0B [21:15:17]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [21:15:17]wFMCommunicate OK [21:15:17]SAM_PROTO_GetShiftState done [21:15:17]FM_GetShiftState done [21:15:17]opened in 1713053951 [21:15:17]opened+sec_in_day 1713140351 [21:15:17]quantity*price = 60019 [21:15:17]sum+1 = 60021 [21:15:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 271 14.04.2024 21:15 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29361 ФПД: 70795938257397 1/tax-web-control/client/api/v1/ticket?date=20240414T211518&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29361&fm=70795938257397&tin=02508201610067®Number=0000138879044617&sum=60000 [21:15:18]StoreToDocumentArchive [21:15:18]shift 116 fd 29361 [21:15:18]save to /storage/0116/doc_00029361 [21:15:18]save last doc name /storage/0116/doc_00029361 to /storage/kkm_last_doc_name [21:15:18]save OK [21:15:18]Clear old archive folders... [21:15:18]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:15:18]tlvbuf is 0024B7B0 [21:15:18]SAM_PROTO_ClearQueue [21:15:18]wFMCommunicate request_size=4 [21:15:18]MH_SAM_APDU [21:15:18]CAPDU: 80 09 00 00 [21:15:18]Write to MH i2c: E2 08 00 E7 08 80 09 00 00 00 00 00 00 61 [21:15:18]Write i2c OK [21:15:18]MH_I2C_Read... [21:15:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:15:18]Read from MH i2c: E2 [21:15:18]MH_I2C_Read... [21:15:18]Read from MH i2c: E2 03 00 [21:15:18]MH_I2C_Read... [21:15:18]Read from MH i2c: E2 03 00 E7 08 00 90 00 63 [21:15:18]RAPDU: 90 00 [21:15:18]wFMCommunicate OK [21:15:18]SAM_PROTO_ClearQueue done [21:15:18]KKMCreateOFDPacket [21:15:18]OFDProtocolAddRootSTLVToBuf [21:15:18]FM_MakeSignedData [21:15:18]FM_MakeSignedData [21:15:18]SAM_PROTO_SignData [21:15:18]wFMCommunicate request_size=4 [21:15:18]MH_SAM_APDU [21:15:18]CAPDU: 80 0D 01 02 [21:15:18]Write to MH i2c: E2 08 00 E8 08 80 0D 01 02 00 00 00 00 69 [21:15:18]Write i2c OK [21:15:18]MH_I2C_Read... [21:15:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:15:18]Read from MH i2c: E2 [21:15:18]MH_I2C_Read... [21:15:18]Read from MH i2c: E2 03 00 [21:15:18]MH_I2C_Read... [21:15:18]Read from MH i2c: E2 03 00 E8 08 00 90 00 64 [21:15:18]RAPDU: 90 00 [21:15:18]wFMCommunicate OK [21:15:18]wFMCommunicate request_size=255 [21:15:18]MH_SAM_APDU [21:15:18]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 0F 01 00 00 F4 03 04 00 66 47 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B1 72 00 00 35 04 06 00 40 63 76 C0 [21:15:18]Write to MH i2c: E2 02 01 E9 08 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 0F 01 00 00 F4 03 04 00 66 47 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B1 72 00 00 35 04 06 00 40 63 76 C0 00 00 7D [21:15:18]Write i2c OK [21:15:18]MH_I2C_Read... [21:15:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:15:18]Read from MH i2c: E2 [21:15:18]MH_I2C_Read... [21:15:18]Read from MH i2c: E2 03 00 [21:15:18]MH_I2C_Read... [21:15:18]Read from MH i2c: E2 03 00 E9 08 00 90 00 65 [21:15:18]RAPDU: 90 00 [21:15:18]wFMCommunicate OK [21:15:18]wFMCommunicate request_size=7 [21:15:18]MH_SAM_APDU [21:15:18]CAPDU: 80 0D 02 02 02 59 F5 [21:15:18]Write to MH i2c: E2 0A 00 EA 08 80 0D 02 02 02 00 59 F5 00 00 BE [21:15:18]Write i2c OK [21:15:18]MH_I2C_Read... [21:15:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:15:18]Read from MH i2c: E2 [21:15:18]MH_I2C_Read... [21:15:18]Read from MH i2c: E2 03 00 [21:15:18]MH_I2C_Read... [21:15:18]Read from MH i2c: E2 03 00 EA 08 00 90 00 66 [21:15:18]RAPDU: 90 00 [21:15:18]wFMCommunicate OK [21:15:18]wFMCommunicate request_size=4 [21:15:18]MH_SAM_APDU [21:15:18]CAPDU: 80 0D 03 02 [21:15:18]Write to MH i2c: E2 08 00 EB 08 80 0D 03 02 00 00 00 00 6E [21:15:18]Write i2c OK [21:15:18]MH_I2C_Read... [21:15:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:15:19]Read from MH i2c: E2 [21:15:19]MH_I2C_Read... [21:15:19]Read from MH i2c: E2 0B 00 [21:15:19]MH_I2C_Read... [21:15:19]Read from MH i2c: E2 0B 00 EB 08 00 0C FB 5C B6 9B 65 E9 B7 90 00 28 [21:15:19]RAPDU: 0C FB 5C B6 9B 65 E9 B7 90 00 [21:15:19]wFMCommunicate OK [21:15:19]SAM_PROTO_SignData done [21:15:19]FM_MakeSignedData done [21:15:19]CreateOFDProtocolMessage [21:15:19]wFMCommunicate request_size=4 [21:15:19]MH_SAM_APDU [21:15:19]CAPDU: 80 11 00 00 [21:15:19]Write to MH i2c: E2 08 00 EC 08 80 11 00 00 00 00 00 00 6E [21:15:19]Write i2c OK [21:15:19]MH_I2C_Read... [21:15:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:15:19]Read from MH i2c: E2 [21:15:19]MH_I2C_Read... [21:15:19]Read from MH i2c: E2 17 00 [21:15:19]MH_I2C_Read... [21:15:19]Read from MH i2c: E2 17 00 EC 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 BD [21:15:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:15:19]wFMCommunicate OK [21:15:19]CreateOFDProtocolMessage done [21:15:19]OFDSenderStorePacket 29361 [21:15:19]StoreOFDPacket docnum=29361 [21:15:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 05 0C 04 01 95 EF 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 0F 01 00 00 F4 03 04 00 66 47 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B1 72 00 00 35 04 06 00 40 63 76 C0 59 F5 0C FB 5C B6 9B 65 E9 B7 [21:15:19]CheckFolder [21:15:19]dirname=/storage/ofd_packets [21:15:19]CheckFolder done [21:15:19]ProducePacketName [21:15:19]name=ofd_packets/00029361 [21:15:19]NVStorageSaveData ofd_packets/00029361 [21:15:19]File name is /storage/ofd_packets/00029361 [21:15:19]Write 298 bytes [21:15:19]NVStorageSaveData done [21:15:19]OFDSenderStorePacket done [21:15:19]KKMCreateOFDPacket done [21:15:19]NVStorageSaveData kkm_last_timestamp [21:15:19]File name is /storage/kkm_last_timestamp [21:15:19]Write 4 bytes [21:15:19]NVStorageSaveData done [21:15:19]ExternCall_PrintAddStr [21:15:19]wPrintStart [21:15:19]Write to MH i2c: 01 00 00 ED 08 F5 [21:15:19]Write i2c OK [21:15:19]MH_I2C_Read... [21:15:19]Read from MH i2c: 01 [21:15:19]MH_I2C_Read... [21:15:19]Read from MH i2c: 01 07 00 [21:15:19]MH_I2C_Read... [21:15:19]Read from MH i2c: 01 07 00 ED 08 00 00 00 00 00 FF 0F 0A [21:15:19]RasterBufferAndPrint [21:15:19]line Счет N : (1)347757 [21:15:19]line ИНН: 02508201610067 [21:15:19]line Контрольно-Кассовый Чек [21:15:19]line ПРОДАЖА [21:15:19]line ТРК (МРК, ГНК) : 51 [21:15:19]line Товар: 2710194210 [21:15:19]line ДТ-К-5 [21:15:19]line 8.290 * 72.40 [21:15:19]line = 600.20 [21:15:19]line НДС 12% НСП 1% [21:15:19]line > о реализуемом товаре [21:15:19]line ОКРУГЛЕНИЕ: -0.20 [21:15:19]line ИТОГО: 600.00 [21:15:19]line Внесено: 600.00 [21:15:19]line СДАЧА: 0.00 [21:15:19]line НСП 1% : 5.31 [21:15:19]line НДС 12% : 63.74 [21:15:19]line Наличными: 600.00 [21:15:19]line Безнал.: 0.00 [21:15:19]line Место: АЗС № 108 "Партнер Нефть" [21:15:19]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [21:15:19]line СНО: Общий режим [21:15:19]line Чек 271 14.04.2024 21:15 [21:15:19]line Смена: 116 ФФД: 1.0 [21:15:19]line ЗНМ: 0300000027 [21:15:19]line РНМ: 0000138879044617 [21:15:19]line Версия ККМ: 001 [21:15:19]line ФМ: 0000000000963154 [21:15:19]line ФД: 29361 [21:15:19]line ФПД: 70795938257397 [21:15:19]line 1/tax-web-control/client/api/v1/ticket?date=20240414T211518&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29361&fm=70795938257397&tin=02508201610067®Number=0000138879044617&sum=60000 [21:15:19]OFD Sender: Processing packet 29361 [packets to send 8, broken 7] [21:15:19]ProducePacketName [21:15:19]name=ofd_packets/00029361 [21:15:19]OFD Sender: To server: pG, [21:15:19]CommunicateWithHost lk.salyk.kg:30040 [21:15:19]ConnectInit lk.salyk.kg [21:15:19]written 0, free lines is 4095 [21:15:19]Connected sock=10 [21:15:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 05 0C 04 01 95 EF 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 0F 01 00 00 F4 03 04 00 66 47 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B1 72 00 00 35 04 06 00 40 63 76 C0 59 F5 0C FB 5C B6 9B 65 E9 B7 [21:15:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 6D 5D 47 00 8C 88 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B1 72 00 00 F4 03 04 00 09 F2 1B 66 B6 04 01 00 00 19 B4 4B 4C 49 30 DB 8F [21:15:19]CommunicateWithHost err = 0 [21:15:19]CheckOFDResponse [21:15:19]1017 (14) - 77093643461234 [21:15:19]1041 (16) - 0000000000963154 [21:15:19]1040 (4) - 29361 [21:15:19]1012 (4) - 14.04.2024 15:11 [21:15:19]1206 (1) - 0 [21:15:19]OFD Sender: Remove packet 29361 [21:15:19]ProducePacketName [21:15:19]name=ofd_packets/00029361 [21:15:19]NVStorageDeleteData [21:15:19]Write to MH i2c: 01 00 00 17 09 20 [21:15:19]Write i2c OK [21:15:19]MH_I2C_Read... [21:15:19]Read from MH i2c: 01 [21:15:19]MH_I2C_Read... [21:15:19]Read from MH i2c: 01 07 00 [21:15:19]MH_I2C_Read... [21:15:19]Read from MH i2c: 01 07 00 17 09 00 00 00 00 00 C4 0C F7 [21:15:19]RasterBufferAndPrint [21:15:19]line [21:15:19]line [21:15:19]line [21:15:19]line [21:15:19]line [21:15:19]written 0, free lines is 3272 [21:15:19]MH_Cut [21:15:19]Write to MH i2c: D1 01 00 1E 09 01 F9 [21:15:19]Write i2c OK [21:15:19]MH_I2C_Read... [21:15:19]Read from MH i2c: D1 [21:15:19]MH_I2C_Read... [21:15:19]Read from MH i2c: D1 01 00 [21:15:19]MH_I2C_Read... [21:15:19]Read from MH i2c: D1 01 00 1E 09 00 F8 [21:15:19]Write to MH i2c: 01 00 00 1F 09 28 [21:15:19]Write i2c OK [21:15:19]MH_I2C_Read... [21:15:20]OFD Sender: No OFD packet to send [21:15:20]*** Cut start [21:15:20]*** Partial cut [21:15:20]*** CUTSNS_PIN = 1 [21:15:20]*** CUTSNS_PIN = 0 [21:15:20]*** Brake cut motor [21:15:21]Read from MH i2c: 01 [21:15:21]MH_I2C_Read... [21:15:21]*** Stop cut motor [21:15:21]*** Cut end [21:15:21]Read from MH i2c: 01 07 00 [21:15:21]MH_I2C_Read... [21:15:21]Read from MH i2c: 01 07 00 1F 09 00 00 00 00 00 FF 0F 3D [21:15:21]process_action close_receipt done [21:15:21]requested_data is exist [21:15:21]produce_requested_data [21:15:21]requested_item fm.sn is exist - process it [21:15:21]wFMCommunicate request_size=4 [21:15:21]MH_SAM_APDU [21:15:21]CAPDU: 80 11 00 00 [21:15:21]Write to MH i2c: E2 08 00 20 09 80 11 00 00 00 00 00 00 A3 [21:15:21]Write i2c OK [21:15:21]MH_I2C_Read... [21:15:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:15:21]Read from MH i2c: E2 [21:15:21]MH_I2C_Read... [21:15:21]Read from MH i2c: E2 17 00 [21:15:21]MH_I2C_Read... [21:15:21]Read from MH i2c: E2 17 00 20 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F2 [21:15:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:15:21]wFMCommunicate OK [21:15:21]requested_item fd.num is exist - process it [21:15:21]SAM_PROTO_GetFieldsCounters [21:15:21]wFMCommunicate request_size=4 [21:15:21]MH_SAM_APDU [21:15:21]CAPDU: 80 13 00 00 [21:15:21]Write to MH i2c: E2 08 00 21 09 80 13 00 00 00 00 00 00 A6 [21:15:21]Write i2c OK [21:15:21]MH_I2C_Read... [21:15:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:15:21]Read from MH i2c: E2 [21:15:21]MH_I2C_Read... [21:15:21]Read from MH i2c: E2 62 00 [21:15:21]MH_I2C_Read... [21:15:21]Read from MH i2c: E2 62 00 21 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B1 72 00 00 0E 04 04 00 74 00 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 AB [21:15:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B1 72 00 00 0E 04 04 00 74 00 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 [21:15:21]wFMCommunicate OK [21:15:21]SAM_PROTO_GetFieldsCounters done [21:15:21]requested_item shift.num is exist - process it [21:15:21]requested_item shift.opened is exist - process it [21:15:21]req_shift_opened [21:15:21]FM_GetShiftState [21:15:21]SAM_PROTO_GetShiftState [21:15:21]wFMCommunicate request_size=4 [21:15:21]MH_SAM_APDU [21:15:21]CAPDU: 80 13 01 00 [21:15:21]Write to MH i2c: E2 08 00 22 09 80 13 01 00 00 00 00 00 A8 [21:15:21]Write i2c OK [21:15:21]MH_I2C_Read... [21:15:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:15:21]Read from MH i2c: E2 [21:15:21]MH_I2C_Read... [21:15:21]Read from MH i2c: E2 0E 00 [21:15:21]MH_I2C_Read... [21:15:21]Read from MH i2c: E2 0E 00 22 09 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 54 [21:15:21]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [21:15:21]wFMCommunicate OK [21:15:21]SAM_PROTO_GetShiftState done [21:15:21]FM_GetShiftState done [21:15:21]req_shift_opened done [21:15:21]requested_item shift.open_date is exist - process it [21:15:21]req_shift_open_date [21:15:21]req_shift_open_date done [21:15:21]produce_requested_data done [21:15:21]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29361,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [21:15:21]process_action_free close_receipt [21:15:21]json_value_free [21:15:21]json_value_free done [21:15:21]process_json_proto returns [21:15:21]Send response to host [21:15:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29361,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [21:15:21]free response buf [21:15:21]execute_script done [21:15:21]execute_script returns [21:15:21]free content buf [21:15:21]Sock 8.Close socket [21:15:21]Sock 8.Thread stoped [21:15:25]OFD Sender: No OFD packet to send [21:15:30]OFD Sender: No OFD packet to send [21:15:35]OFD Sender: No OFD packet to send [21:15:40]OFD Sender: No OFD packet to send [21:15:45]OFD Sender: No OFD packet to send [21:15:50]OFD Sender: No OFD packet to send [21:15:55]OFD Sender: No OFD packet to send [21:16:00]OFD Sender: No OFD packet to send [21:16:05]OFD Sender: No OFD packet to send [21:16:10]OFD Sender: No OFD packet to send [21:16:15]OFD Sender: No OFD packet to send [21:16:20]OFD Sender: No OFD packet to send [21:16:25]OFD Sender: No OFD packet to send [21:16:30]OFD Sender: No OFD packet to send [21:16:35]OFD Sender: No OFD packet to send [21:16:40]OFD Sender: No OFD packet to send [21:16:45]OFD Sender: No OFD packet to send [21:16:50]OFD Sender: No OFD packet to send [21:16:55]OFD Sender: No OFD packet to send [21:17:00]OFD Sender: No OFD packet to send [21:17:05]OFD Sender: No OFD packet to send [21:17:10]OFD Sender: No OFD packet to send [21:17:15]OFD Sender: No OFD packet to send [21:17:20]OFD Sender: No OFD packet to send [21:17:25]OFD Sender: No OFD packet to send [21:17:30]OFD Sender: No OFD packet to send [21:17:35]OFD Sender: No OFD packet to send [21:17:40]OFD Sender: No OFD packet to send [21:17:45]OFD Sender: No OFD packet to send [21:17:50]OFD Sender: No OFD packet to send [21:17:55]OFD Sender: No OFD packet to send [21:18:00]OFD Sender: No OFD packet to send [21:18:05]OFD Sender: No OFD packet to send [21:18:10]OFD Sender: No OFD packet to send [21:18:15]OFD Sender: No OFD packet to send [21:18:20]OFD Sender: No OFD packet to send [21:18:20]accept exits with 9 [21:18:20]New connection [21:18:20]New thread 3066969444 created [21:18:20]Thread 3067112804 joined [21:18:20]Waiting for new connection... [21:18:20] Sock 9.Parse request [21:18:20]Sock 9.Check first char [21:18:20]Sock 9.First char is OK [21:18:20]request: POST /json_proto HTTP/1.0 [21:18:20]Method: POST [21:18:20]URL: /json_proto [21:18:20]Method is POST - this is cgi request [21:18:20]url: /json_proto [21:18:20]query_string will be loaded in cgi processing [21:18:20]execute_cgi json_proto POST (null) [21:18:20]execute_cgi path=json_proto method=POST [21:18:20]POST find Content-Length [21:18:20]Host: 172.17.33.3:8080 [21:18:20]Content-Length: 685 [21:18:20]Content-Type: application/json [21:18:20] [21:18:20]POST finish read [21:18:20]Found Content-Length = 685 [21:18:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347756", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 47.190, "sum" : 1552.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1700.00, "total" : 1552.00, "payments": [ { "type": 0, "sum" : 1552.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:18:20]execute_script... [21:18: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)347756", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 47.190, "sum" : 1552.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1700.00, "total" : 1552.00, "payments": [ { "type": 0, "sum" : 1552.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:18:20]POST & json_proto [21:18:20]process_json_proto [21:18:20]json parsed OK: [21:18:20]protocol is kg_v1.0 [21:18:20]action value=close_receipt [21:18:20]process_action close_receipt [21:18:20]cmd_close_receipt [21:18:20]MH_GetDate [21:18:20]Write to MH i2c: F0 00 00 23 09 1B [21:18:20]Write i2c OK [21:18:20]MH_I2C_Read... [21:18:20]Read from MH i2c: F0 [21:18:20]MH_I2C_Read... [21:18:20]Read from MH i2c: F0 09 00 [21:18:20]MH_I2C_Read... [21:18:20]Read from MH i2c: F0 09 00 23 09 00 1D 48 1C 66 23 5B 8F 65 7D [21:18:20]GetLastDocTimeStamp 1713129318 [21:18:20]current date 1713129501 [21:18:20]FM_GetShiftState [21:18:20]SAM_PROTO_GetShiftState [21:18:20]wFMCommunicate request_size=4 [21:18:20]MH_SAM_APDU [21:18:20]CAPDU: 80 13 01 00 [21:18:20]Write to MH i2c: E2 08 00 24 09 80 13 01 00 00 00 00 00 AA [21:18:20]Write i2c OK [21:18:20]MH_I2C_Read... [21:18:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:18:20]Read from MH i2c: E2 [21:18:20]MH_I2C_Read... [21:18:20]Read from MH i2c: E2 0E 00 [21:18:20]MH_I2C_Read... [21:18:20]Read from MH i2c: E2 0E 00 24 09 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 56 [21:18:20]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [21:18:20]wFMCommunicate OK [21:18:20]SAM_PROTO_GetShiftState done [21:18:20]FM_GetShiftState done [21:18:20]opened in 1713053951 [21:18:20]opened+sec_in_day 1713140351 [21:18:20]quantity*price = 155255 [21:18:20]sum+1 = 155256 [21:18:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 1552.00 Внесено: 1700.00 СДАЧА: 148.00 НСП 1% : 13.74 НДС 12% : 164.87 Наличными: 1552.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 272 14.04.2024 21:18 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29362 ФПД: 10879195591817 1/tax-web-control/client/api/v1/ticket?date=20240414T211821&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29362&fm=10879195591817&tin=02508201610067®Number=0000138879044617&sum=155200 [21:18:21]StoreToDocumentArchive [21:18:21]shift 116 fd 29362 [21:18:21]save to /storage/0116/doc_00029362 [21:18:21]save last doc name /storage/0116/doc_00029362 to /storage/kkm_last_doc_name [21:18:21]save OK [21:18:21]Clear old archive folders... [21:18:21]ProcessDocumentItem done err = 0, tmpTLVsize=250 [21:18:21]tlvbuf is 0020B7D0 [21:18:21]SAM_PROTO_ClearQueue [21:18:21]wFMCommunicate request_size=4 [21:18:21]MH_SAM_APDU [21:18:21]CAPDU: 80 09 00 00 [21:18:21]Write to MH i2c: E2 08 00 31 09 80 09 00 00 00 00 00 00 AC [21:18:21]Write i2c OK [21:18:21]MH_I2C_Read... [21:18:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:18:21]Read from MH i2c: E2 [21:18:21]MH_I2C_Read... [21:18:21]Read from MH i2c: E2 03 00 [21:18:21]MH_I2C_Read... [21:18:21]Read from MH i2c: E2 03 00 31 09 00 90 00 AE [21:18:21]RAPDU: 90 00 [21:18:21]wFMCommunicate OK [21:18:21]SAM_PROTO_ClearQueue done [21:18:21]KKMCreateOFDPacket [21:18:21]OFDProtocolAddRootSTLVToBuf [21:18:21]FM_MakeSignedData [21:18:21]FM_MakeSignedData [21:18:21]SAM_PROTO_SignData [21:18:21]wFMCommunicate request_size=4 [21:18:21]MH_SAM_APDU [21:18:21]CAPDU: 80 0D 01 02 [21:18:21]Write to MH i2c: E2 08 00 32 09 80 0D 01 02 00 00 00 00 B4 [21:18:21]Write i2c OK [21:18:21]MH_I2C_Read... [21:18:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:18:21]Read from MH i2c: E2 [21:18:21]MH_I2C_Read... [21:18:21]Read from MH i2c: E2 03 00 [21:18:21]MH_I2C_Read... [21:18:21]Read from MH i2c: E2 03 00 32 09 00 90 00 AF [21:18:21]RAPDU: 90 00 [21:18:21]wFMCommunicate OK [21:18:21]wFMCommunicate request_size=255 [21:18:21]MH_SAM_APDU [21:18: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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 56 B8 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 77 5E 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 5E 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5E 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 40 00 00 00 00 07 04 06 00 40 5E 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 01 00 00 F4 03 04 00 1D 48 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B2 72 00 00 35 04 06 00 09 E5 [21:18:21]Write to MH i2c: E2 02 01 33 09 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 56 B8 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 77 5E 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 5E 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5E 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 40 00 00 00 00 07 04 06 00 40 5E 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 01 00 00 F4 03 04 00 1D 48 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B2 72 00 00 35 04 06 00 09 E5 00 00 1E [21:18:21]Write i2c OK [21:18:21]MH_I2C_Read... [21:18:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:18:22]Read from MH i2c: E2 [21:18:22]MH_I2C_Read... [21:18:22]Read from MH i2c: E2 03 00 [21:18:22]MH_I2C_Read... [21:18:22]Read from MH i2c: E2 03 00 33 09 00 90 00 B0 [21:18:22]RAPDU: 90 00 [21:18:22]wFMCommunicate OK [21:18:22]wFMCommunicate request_size=9 [21:18:22]MH_SAM_APDU [21:18:22]CAPDU: 80 0D 02 02 04 02 96 B4 89 [21:18:22]Write to MH i2c: E2 0C 00 34 09 80 0D 02 02 04 00 02 96 B4 89 00 00 94 [21:18:22]Write i2c OK [21:18:22]MH_I2C_Read... [21:18:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:18:22]Read from MH i2c: E2 [21:18:22]MH_I2C_Read... [21:18:22]Read from MH i2c: E2 03 00 [21:18:22]MH_I2C_Read... [21:18:22]Read from MH i2c: E2 03 00 34 09 00 90 00 B1 [21:18:22]RAPDU: 90 00 [21:18:22]wFMCommunicate OK [21:18:22]wFMCommunicate request_size=4 [21:18:22]MH_SAM_APDU [21:18:22]CAPDU: 80 0D 03 02 [21:18:22]Write to MH i2c: E2 08 00 35 09 80 0D 03 02 00 00 00 00 B9 [21:18:22]Write i2c OK [21:18:22]MH_I2C_Read... [21:18:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:18:22]Read from MH i2c: E2 [21:18:22]MH_I2C_Read... [21:18:22]Read from MH i2c: E2 0B 00 [21:18:22]MH_I2C_Read... [21:18:22]Read from MH i2c: E2 0B 00 35 09 00 B0 C3 A6 26 A9 73 A3 A5 90 00 5D [21:18:22]RAPDU: B0 C3 A6 26 A9 73 A3 A5 90 00 [21:18:22]wFMCommunicate OK [21:18:22]SAM_PROTO_SignData done [21:18:22]FM_MakeSignedData done [21:18:22]CreateOFDProtocolMessage [21:18:22]wFMCommunicate request_size=4 [21:18:22]MH_SAM_APDU [21:18:22]CAPDU: 80 11 00 00 [21:18:22]Write to MH i2c: E2 08 00 36 09 80 11 00 00 00 00 00 00 B9 [21:18:22]Write i2c OK [21:18:22]MH_I2C_Read... [21:18:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:18:22]Read from MH i2c: E2 [21:18:22]MH_I2C_Read... [21:18:22]Read from MH i2c: E2 17 00 [21:18:22]MH_I2C_Read... [21:18:22]Read from MH i2c: E2 17 00 36 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 08 [21:18:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:18:22]wFMCommunicate OK [21:18:22]CreateOFDProtocolMessage done [21:18:22]OFDSenderStorePacket 29362 [21:18:22]StoreOFDPacket docnum=29362 [21:18:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 E5 03 06 01 68 70 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 56 B8 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 77 5E 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 5E 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5E 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 40 00 00 00 00 07 04 06 00 40 5E 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 01 00 00 F4 03 04 00 1D 48 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B2 72 00 00 35 04 06 00 09 E5 02 96 B4 89 B0 C3 A6 26 A9 73 A3 A5 [21:18:22]CheckFolder [21:18:22]dirname=/storage/ofd_packets [21:18:22]CheckFolder done [21:18:22]ProducePacketName [21:18:22]name=ofd_packets/00029362 [21:18:22]NVStorageSaveData ofd_packets/00029362 [21:18:22]File name is /storage/ofd_packets/00029362 [21:18:22]Write 300 bytes [21:18:22]NVStorageSaveData done [21:18:22]OFDSenderStorePacket done [21:18:22]KKMCreateOFDPacket done [21:18:22]NVStorageSaveData kkm_last_timestamp [21:18:22]File name is /storage/kkm_last_timestamp [21:18:22]Write 4 bytes [21:18:22]NVStorageSaveData done [21:18:22]ExternCall_PrintAddStr [21:18:22]wPrintStart [21:18:22]Write to MH i2c: 01 00 00 37 09 40 [21:18:22]Write i2c OK [21:18:22]MH_I2C_Read... [21:18:22]Read from MH i2c: 01 [21:18:22]MH_I2C_Read... [21:18:22]Read from MH i2c: 01 07 00 [21:18:22]MH_I2C_Read... [21:18:22]Read from MH i2c: 01 07 00 37 09 00 00 00 00 00 FF 0F 55 [21:18:22]RasterBufferAndPrint [21:18:22]line Счет N : (1)347756 [21:18:22]line ИНН: 02508201610067 [21:18:22]line Контрольно-Кассовый Чек [21:18:22]line ПРОДАЖА [21:18:22]line ТРК (МРК, ГНК) : 71 [21:18:22]line Товар: 2711129700 [21:18:22]line ГАЗ-К-5 [21:18:22]line 47.190 * 32.90 [21:18:22]line = 1552.55 [21:18:22]line НДС 12% НСП 1% [21:18:22]line > о реализуемом товаре [21:18:22]line ОКРУГЛЕНИЕ: -0.55 [21:18:22]line ИТОГО: 1552.00 [21:18:22]line Внесено: 1700.00 [21:18:22]line СДАЧА: 148.00 [21:18:22]line НСП 1% : 13.74 [21:18:22]line НДС 12% : 164.87 [21:18:22]line Наличными: 1552.00 [21:18:22]line Безнал.: 0.00 [21:18:22]line Место: АЗС № 108 "Партнер Нефть" [21:18:22]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [21:18:22]line СНО: Общий режим [21:18:22]line Чек 272 14.04.2024 21:18 [21:18:22]line Смена: 116 ФФД: 1.0 [21:18:22]line ЗНМ: 0300000027 [21:18:22]line РНМ: 0000138879044617 [21:18:22]line Версия ККМ: 001 [21:18:22]line ФМ: 0000000000963154 [21:18:22]line ФД: 29362 [21:18:22]line ФПД: 10879195591817 [21:18:22]line 1/tax-web-control/client/api/v1/ticket?date=20240414T211821&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29362&fm=10879195591817&tin=02508201610067®Number=0000138879044617&sum=155200 [21:18:22]OFD Sender: Processing packet 29362 [packets to send 8, broken 7] [21:18:22]ProducePacketName [21:18:22]name=ofd_packets/00029362 [21:18:22]OFD Sender: To server: pG, [21:18:22]CommunicateWithHost lk.salyk.kg:30040 [21:18:22]ConnectInit lk.salyk.kg [21:18:22]written 0, free lines is 4095 [21:18:22]Connected sock=10 [21:18:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 E5 03 06 01 68 70 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 56 B8 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 77 5E 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 5E 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5E 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 40 00 00 00 00 07 04 06 00 40 5E 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 01 00 00 F4 03 04 00 1D 48 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B2 72 00 00 35 04 06 00 09 E5 02 96 B4 89 B0 C3 A6 26 A9 73 A3 A5 [21:18:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 66 6F 47 00 DE 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B2 72 00 00 F4 03 04 00 C0 F2 1B 66 B6 04 01 00 00 58 3D 5F F5 75 65 20 91 [21:18:22]CommunicateWithHost err = 0 [21:18:22]CheckOFDResponse [21:18:22]1017 (14) - 77093643461234 [21:18:22]1041 (16) - 0000000000963154 [21:18:22]1040 (4) - 29362 [21:18:22]1012 (4) - 14.04.2024 15:14 [21:18:22]1206 (1) - 0 [21:18:22]OFD Sender: Remove packet 29362 [21:18:22]ProducePacketName [21:18:22]name=ofd_packets/00029362 [21:18:22]NVStorageDeleteData [21:18:23]Write to MH i2c: 01 00 00 61 09 6A [21:18:23]Write i2c OK [21:18:23]MH_I2C_Read... [21:18:23]Read from MH i2c: 01 [21:18:23]MH_I2C_Read... [21:18:23]Read from MH i2c: 01 07 00 [21:18:23]MH_I2C_Read... [21:18:23]Read from MH i2c: 01 07 00 61 09 00 00 00 00 00 C9 0C 46 [21:18:23]RasterBufferAndPrint [21:18:23]line [21:18:23]line [21:18:23]line [21:18:23]line [21:18:23]line [21:18:23]written 0, free lines is 3277 [21:18:23]MH_Cut [21:18:23]Write to MH i2c: D1 01 00 68 09 01 43 [21:18:23]Write i2c OK [21:18:23]MH_I2C_Read... [21:18:23]Read from MH i2c: D1 [21:18:23]MH_I2C_Read... [21:18:23]Read from MH i2c: D1 01 00 [21:18:23]MH_I2C_Read... [21:18:23]Read from MH i2c: D1 01 00 68 09 00 42 [21:18:23]Write to MH i2c: 01 00 00 69 09 72 [21:18:23]Write i2c OK [21:18:23]MH_I2C_Read... [21:18:23]OFD Sender: No OFD packet to send [21:18:23]*** Cut start [21:18:23]*** Partial cut [21:18:23]*** CUTSNS_PIN = 1 [21:18:23]*** CUTSNS_PIN = 0 [21:18:24]*** Brake cut motor [21:18:24]Read from MH i2c: 01 [21:18:24]MH_I2C_Read... [21:18:24]*** Stop cut motor [21:18:24]*** Cut end [21:18:24]Read from MH i2c: 01 07 00 [21:18:24]MH_I2C_Read... [21:18:24]Read from MH i2c: 01 07 00 69 09 00 00 00 00 00 FF 0F 87 [21:18:24]process_action close_receipt done [21:18:24]requested_data is exist [21:18:24]produce_requested_data [21:18:24]requested_item fm.sn is exist - process it [21:18:24]wFMCommunicate request_size=4 [21:18:24]MH_SAM_APDU [21:18:24]CAPDU: 80 11 00 00 [21:18:24]Write to MH i2c: E2 08 00 6A 09 80 11 00 00 00 00 00 00 ED [21:18:24]Write i2c OK [21:18:24]MH_I2C_Read... [21:18:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:18:24]Read from MH i2c: E2 [21:18:24]MH_I2C_Read... [21:18:24]Read from MH i2c: E2 17 00 [21:18:24]MH_I2C_Read... [21:18:24]Read from MH i2c: E2 17 00 6A 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 3C [21:18:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:18:24]wFMCommunicate OK [21:18:24]requested_item fd.num is exist - process it [21:18:24]SAM_PROTO_GetFieldsCounters [21:18:24]wFMCommunicate request_size=4 [21:18:24]MH_SAM_APDU [21:18:24]CAPDU: 80 13 00 00 [21:18:24]Write to MH i2c: E2 08 00 6B 09 80 13 00 00 00 00 00 00 F0 [21:18:24]Write i2c OK [21:18:24]MH_I2C_Read... [21:18:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:18:24]Read from MH i2c: E2 [21:18:24]MH_I2C_Read... [21:18:24]Read from MH i2c: E2 62 00 [21:18:24]MH_I2C_Read... [21:18:24]Read from MH i2c: E2 62 00 6B 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B2 72 00 00 0E 04 04 00 74 00 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 F9 [21:18:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B2 72 00 00 0E 04 04 00 74 00 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 [21:18:24]wFMCommunicate OK [21:18:24]SAM_PROTO_GetFieldsCounters done [21:18:24]requested_item shift.num is exist - process it [21:18:24]requested_item shift.opened is exist - process it [21:18:24]req_shift_opened [21:18:24]FM_GetShiftState [21:18:24]SAM_PROTO_GetShiftState [21:18:24]wFMCommunicate request_size=4 [21:18:24]MH_SAM_APDU [21:18:24]CAPDU: 80 13 01 00 [21:18:24]Write to MH i2c: E2 08 00 6C 09 80 13 01 00 00 00 00 00 F2 [21:18:24]Write i2c OK [21:18:24]MH_I2C_Read... [21:18:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:18:24]Read from MH i2c: E2 [21:18:24]MH_I2C_Read... [21:18:24]Read from MH i2c: E2 0E 00 [21:18:24]MH_I2C_Read... [21:18:24]Read from MH i2c: E2 0E 00 6C 09 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 9E [21:18:24]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [21:18:24]wFMCommunicate OK [21:18:24]SAM_PROTO_GetShiftState done [21:18:24]FM_GetShiftState done [21:18:24]req_shift_opened done [21:18:24]requested_item shift.open_date is exist - process it [21:18:24]req_shift_open_date [21:18:24]req_shift_open_date done [21:18:24]produce_requested_data done [21:18:24]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29362,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [21:18:24]process_action_free close_receipt [21:18:24]json_value_free [21:18:24]json_value_free done [21:18:24]process_json_proto returns [21:18:24]Send response to host [21:18:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29362,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [21:18:24]free response buf [21:18:24]execute_script done [21:18:24]execute_script returns [21:18:24]free content buf [21:18:24]Sock 9.Close socket [21:18:24]Sock 9.Thread stoped [21:18:28]OFD Sender: No OFD packet to send [21:18:33]OFD Sender: No OFD packet to send [21:18:38]OFD Sender: No OFD packet to send [21:18:43]OFD Sender: No OFD packet to send [21:18:48]OFD Sender: No OFD packet to send [21:18:53]OFD Sender: No OFD packet to send [21:18:58]OFD Sender: No OFD packet to send [21:19:03]OFD Sender: No OFD packet to send [21:19:08]OFD Sender: No OFD packet to send [21:19:13]OFD Sender: No OFD packet to send [21:19:18]OFD Sender: No OFD packet to send [21:19:23]OFD Sender: No OFD packet to send [21:19:28]OFD Sender: No OFD packet to send [21:19:33]OFD Sender: No OFD packet to send [21:19:38]OFD Sender: No OFD packet to send [21:19:43]OFD Sender: No OFD packet to send [21:19:48]OFD Sender: No OFD packet to send [21:19:53]OFD Sender: No OFD packet to send [21:19:58]OFD Sender: No OFD packet to send [21:20:03]OFD Sender: No OFD packet to send [21:20:08]OFD Sender: No OFD packet to send [21:20:13]OFD Sender: No OFD packet to send [21:20:18]OFD Sender: No OFD packet to send [21:20:23]OFD Sender: No OFD packet to send [21:20:28]OFD Sender: No OFD packet to send [21:20:33]OFD Sender: No OFD packet to send [21:20:38]OFD Sender: No OFD packet to send [21:20:43]OFD Sender: No OFD packet to send [21:20:48]OFD Sender: No OFD packet to send [21:20:53]OFD Sender: No OFD packet to send [21:20:58]OFD Sender: No OFD packet to send [21:21:03]OFD Sender: No OFD packet to send [21:21:08]OFD Sender: No OFD packet to send [21:21:13]OFD Sender: No OFD packet to send [21:21:18]OFD Sender: No OFD packet to send [21:21:23]OFD Sender: No OFD packet to send [21:21:28]OFD Sender: No OFD packet to send [21:21:33]OFD Sender: No OFD packet to send [21:21:38]OFD Sender: No OFD packet to send [21:21:43]OFD Sender: No OFD packet to send [21:21:48]OFD Sender: No OFD packet to send [21:21:53]OFD Sender: No OFD packet to send [21:21:58]OFD Sender: No OFD packet to send [21:22:03]OFD Sender: No OFD packet to send [21:22:08]OFD Sender: No OFD packet to send [21:22:13]OFD Sender: No OFD packet to send [21:22:18]OFD Sender: No OFD packet to send [21:22:23]OFD Sender: No OFD packet to send [21:22:28]OFD Sender: No OFD packet to send [21:22:33]OFD Sender: No OFD packet to send [21:22:38]OFD Sender: No OFD packet to send [21:22:43]OFD Sender: No OFD packet to send [21:22:48]OFD Sender: No OFD packet to send [21:22:53]OFD Sender: No OFD packet to send [21:22:58]OFD Sender: No OFD packet to send [21:23:03]OFD Sender: No OFD packet to send [21:23:08]OFD Sender: No OFD packet to send [21:23:13]OFD Sender: No OFD packet to send [21:23:18]OFD Sender: No OFD packet to send [21:23:23]OFD Sender: No OFD packet to send [21:23:28]OFD Sender: No OFD packet to send [21:23:33]OFD Sender: No OFD packet to send [21:23:38]OFD Sender: No OFD packet to send [21:23:43]OFD Sender: No OFD packet to send [21:23:48]OFD Sender: No OFD packet to send [21:23:53]OFD Sender: No OFD packet to send [21:23:58]OFD Sender: No OFD packet to send [21:24:03]OFD Sender: No OFD packet to send [21:24:08]OFD Sender: No OFD packet to send [21:24:13]OFD Sender: No OFD packet to send [21:24:18]OFD Sender: No OFD packet to send [21:24:23]OFD Sender: No OFD packet to send [21:24:28]OFD Sender: No OFD packet to send [21:24:33]OFD Sender: No OFD packet to send [21:24:38]OFD Sender: No OFD packet to send [21:24:38]accept exits with 8 [21:24:38]New connection [21:24:38]New thread 3067112804 created [21:24:38]Thread 3066969444 joined [21:24:38]Waiting for new connection... [21:24:38] Sock 8.Parse request [21:24:38]Sock 8.Check first char [21:24:38]Sock 8.First char is OK [21:24:38]request: POST /json_proto HTTP/1.0 [21:24:38]Method: POST [21:24:38]URL: /json_proto [21:24:38]Method is POST - this is cgi request [21:24:38]url: /json_proto [21:24:38]query_string will be loaded in cgi processing [21:24:38]execute_cgi json_proto POST (null) [21:24:38]execute_cgi path=json_proto method=POST [21:24:38]POST find Content-Length [21:24:38]Host: 172.17.33.3:8080 [21:24:38]Content-Length: 822 [21:24:38]Content-Type: application/json [21:24:38] [21:24:38]POST finish read [21:24:38]Found Content-Length = 822 [21:24:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347758", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 60.800, "sum" : 2000.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.32 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:24:38]execute_script... [21:24: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)347758", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 60.800, "sum" : 2000.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.32 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:24:38]POST & json_proto [21:24:38]process_json_proto [21:24:38]json parsed OK: [21:24:38]protocol is kg_v1.0 [21:24:38]action value=close_receipt [21:24:38]process_action close_receipt [21:24:38]cmd_close_receipt [21:24:38]MH_GetDate [21:24:38]Write to MH i2c: F0 00 00 6D 09 65 [21:24:38]Write i2c OK [21:24:38]MH_I2C_Read... [21:24:38]Read from MH i2c: F0 [21:24:38]MH_I2C_Read... [21:24:38]Read from MH i2c: F0 09 00 [21:24:38]MH_I2C_Read... [21:24:38]Read from MH i2c: F0 09 00 6D 09 00 97 49 1C 66 23 5B 8F 65 42 [21:24:38]GetLastDocTimeStamp 1713129501 [21:24:38]current date 1713129879 [21:24:38]FM_GetShiftState [21:24:38]SAM_PROTO_GetShiftState [21:24:38]wFMCommunicate request_size=4 [21:24:38]MH_SAM_APDU [21:24:38]CAPDU: 80 13 01 00 [21:24:38]Write to MH i2c: E2 08 00 6E 09 80 13 01 00 00 00 00 00 F4 [21:24:38]Write i2c OK [21:24:38]MH_I2C_Read... [21:24:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:24:38]Read from MH i2c: E2 [21:24:38]MH_I2C_Read... [21:24:38]Read from MH i2c: E2 0E 00 [21:24:38]MH_I2C_Read... [21:24:38]Read from MH i2c: E2 0E 00 6E 09 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 A0 [21:24:38]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [21:24:38]wFMCommunicate OK [21:24:38]SAM_PROTO_GetShiftState done [21:24:38]FM_GetShiftState done [21:24:38]opened in 1713053951 [21:24:38]opened+sec_in_day 1713140351 [21:24:38]quantity*price = 200032 [21:24:38]sum+1 = 200033 [21:24:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.32 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.32 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 273 14.04.2024 21:24 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 29363 ФПД: 188729383029758 1/tax-web-control/client/api/v1/ticket?date=20240414T212440&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29363&fm=188729383029758&tin=02508201610067®Number=0000138879044617&sum=200032 [21:24:40]StoreToDocumentArchive [21:24:40]shift 116 fd 29363 [21:24:40]save to /storage/0116/doc_00029363 [21:24:40]save last doc name /storage/0116/doc_00029363 to /storage/kkm_last_doc_name [21:24:40]save OK [21:24:40]Clear old archive folders... [21:24:40]ProcessDocumentItem done err = 0, tmpTLVsize=250 [21:24:40]tlvbuf is 001EDDF0 [21:24:40]SAM_PROTO_ClearQueue [21:24:40]wFMCommunicate request_size=4 [21:24:40]MH_SAM_APDU [21:24:40]CAPDU: 80 09 00 00 [21:24:40]Write to MH i2c: E2 08 00 7B 09 80 09 00 00 00 00 00 00 F6 [21:24:40]Write i2c OK [21:24:40]MH_I2C_Read... [21:24:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:24:40]Read from MH i2c: E2 [21:24:40]MH_I2C_Read... [21:24:40]Read from MH i2c: E2 03 00 [21:24:40]MH_I2C_Read... [21:24:40]Read from MH i2c: E2 03 00 7B 09 00 90 00 F8 [21:24:40]RAPDU: 90 00 [21:24:40]wFMCommunicate OK [21:24:40]SAM_PROTO_ClearQueue done [21:24:40]KKMCreateOFDPacket [21:24:40]OFDProtocolAddRootSTLVToBuf [21:24:40]FM_MakeSignedData [21:24:40]FM_MakeSignedData [21:24:40]SAM_PROTO_SignData [21:24:40]wFMCommunicate request_size=4 [21:24:40]MH_SAM_APDU [21:24:40]CAPDU: 80 0D 01 02 [21:24:40]Write to MH i2c: E2 08 00 7C 09 80 0D 01 02 00 00 00 00 FE [21:24:40]Write i2c OK [21:24:40]MH_I2C_Read... [21:24:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:24:40]Read from MH i2c: E2 [21:24:40]MH_I2C_Read... [21:24:40]Read from MH i2c: E2 03 00 [21:24:40]MH_I2C_Read... [21:24:40]Read from MH i2c: E2 03 00 7C 09 00 90 00 F9 [21:24:40]RAPDU: 90 00 [21:24:40]wFMCommunicate OK [21:24:40]wFMCommunicate request_size=255 [21:24:40]MH_SAM_APDU [21:24: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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 80 ED 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 60 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 98 49 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B3 72 00 00 35 04 06 00 AB A5 [21:24:40]Write to MH i2c: E2 02 01 7D 09 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 80 ED 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 60 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 98 49 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B3 72 00 00 35 04 06 00 AB A5 00 00 12 [21:24:40]Write i2c OK [21:24:40]MH_I2C_Read... [21:24:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:24:40]Read from MH i2c: E2 [21:24:40]MH_I2C_Read... [21:24:40]Read from MH i2c: E2 03 00 [21:24:40]MH_I2C_Read... [21:24:40]Read from MH i2c: E2 03 00 7D 09 00 90 00 FA [21:24:40]RAPDU: 90 00 [21:24:40]wFMCommunicate OK [21:24:40]wFMCommunicate request_size=9 [21:24:40]MH_SAM_APDU [21:24:40]CAPDU: 80 0D 02 02 04 FB D5 8B FE [21:24:40]Write to MH i2c: E2 0C 00 7E 09 80 0D 02 02 04 00 FB D5 8B FE 00 00 62 [21:24:40]Write i2c OK [21:24:40]MH_I2C_Read... [21:24:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:24:40]Read from MH i2c: E2 [21:24:40]MH_I2C_Read... [21:24:40]Read from MH i2c: E2 03 00 [21:24:40]MH_I2C_Read... [21:24:40]Read from MH i2c: E2 03 00 7E 09 00 90 00 FB [21:24:40]RAPDU: 90 00 [21:24:40]wFMCommunicate OK [21:24:40]wFMCommunicate request_size=4 [21:24:40]MH_SAM_APDU [21:24:40]CAPDU: 80 0D 03 02 [21:24:40]Write to MH i2c: E2 08 00 7F 09 80 0D 03 02 00 00 00 00 03 [21:24:40]Write i2c OK [21:24:40]MH_I2C_Read... [21:24:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:24:40]Read from MH i2c: E2 [21:24:40]MH_I2C_Read... [21:24:40]Read from MH i2c: E2 0B 00 [21:24:40]MH_I2C_Read... [21:24:40]Read from MH i2c: E2 0B 00 7F 09 00 EF 04 0F 7C 16 0A 4B 30 90 00 1D [21:24:40]RAPDU: EF 04 0F 7C 16 0A 4B 30 90 00 [21:24:40]wFMCommunicate OK [21:24:40]SAM_PROTO_SignData done [21:24:40]FM_MakeSignedData done [21:24:40]CreateOFDProtocolMessage [21:24:40]wFMCommunicate request_size=4 [21:24:40]MH_SAM_APDU [21:24:40]CAPDU: 80 11 00 00 [21:24:40]Write to MH i2c: E2 08 00 80 09 80 11 00 00 00 00 00 00 03 [21:24:40]Write i2c OK [21:24:40]MH_I2C_Read... [21:24:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:24:40]Read from MH i2c: E2 [21:24:40]MH_I2C_Read... [21:24:40]Read from MH i2c: E2 17 00 [21:24:40]MH_I2C_Read... [21:24:40]Read from MH i2c: E2 17 00 80 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 52 [21:24:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:24:40]wFMCommunicate OK [21:24:40]CreateOFDProtocolMessage done [21:24:40]OFDSenderStorePacket 29363 [21:24:40]StoreOFDPacket docnum=29363 [21:24:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 F6 3D 06 01 A4 21 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 80 ED 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 60 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 98 49 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B3 72 00 00 35 04 06 00 AB A5 FB D5 8B FE EF 04 0F 7C 16 0A 4B 30 [21:24:40]CheckFolder [21:24:40]dirname=/storage/ofd_packets [21:24:40]CheckFolder done [21:24:40]ProducePacketName [21:24:40]name=ofd_packets/00029363 [21:24:40]NVStorageSaveData ofd_packets/00029363 [21:24:40]File name is /storage/ofd_packets/00029363 [21:24:40]Write 300 bytes [21:24:40]NVStorageSaveData done [21:24:40]OFDSenderStorePacket done [21:24:40]KKMCreateOFDPacket done [21:24:40]NVStorageSaveData kkm_last_timestamp [21:24:40]File name is /storage/kkm_last_timestamp [21:24:40]Write 4 bytes [21:24:40]NVStorageSaveData done [21:24:40]ExternCall_PrintAddStr [21:24:40]wPrintStart [21:24:40]Write to MH i2c: 01 00 00 81 09 8A [21:24:40]Write i2c OK [21:24:40]MH_I2C_Read... [21:24:40]Read from MH i2c: 01 [21:24:40]MH_I2C_Read... [21:24:40]Read from MH i2c: 01 07 00 [21:24:40]MH_I2C_Read... [21:24:40]Read from MH i2c: 01 07 00 81 09 00 00 00 00 00 FF 0F 9F [21:24:40]RasterBufferAndPrint [21:24:40]line Счет N : (1)347758 [21:24:40]line ИНН: 02508201610067 [21:24:40]line Контрольно-Кассовый Чек [21:24:40]line ПРОДАЖА [21:24:40]line ТРК (МРК, ГНК) : 71 [21:24:40]line Товар: 2711129700 [21:24:40]line ГАЗ-К-5 [21:24:40]line 60.800 * 32.90 [21:24:40]line = 2000.32 [21:24:40]line НДС 12% НСП 1% [21:24:40]line > о реализуемом товаре [21:24:40]line ИТОГО: 2000.32 [21:24:40]line НСП 1% : 17.70 [21:24:40]line НДС 12% : 212.42 [21:24:40]line Наличными: 0.00 [21:24:40]line Безнал.: 2000.32 [21:24:40]line Место: АЗС № 108 "Партнер Нефть" [21:24:40]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [21:24:40]line СНО: Общий режим [21:24:40]line Чек 273 14.04.2024 21:24 [21:24:40]line Смена: 116 ФФД: 1.0 [21:24:40]line ЗНМ: 0300000027 [21:24:40]line РНМ: 0000138879044617 [21:24:40]line Версия ККМ: 001 [21:24:40]line Платежная система: Бакай Банк [21:24:40]line ФМ: 0000000000963154 [21:24:40]line ФД: 29363 [21:24:40]line ФПД: 188729383029758 [21:24:40]line 1/tax-web-control/client/api/v1/ticket?date=20240414T212440&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29363&fm=188729383029758&tin=02508201610067®Number=0000138879044617&sum=200032 [21:24:40]OFD Sender: Processing packet 29363 [packets to send 8, broken 7] [21:24:40]ProducePacketName [21:24:40]name=ofd_packets/00029363 [21:24:40]OFD Sender: To server: pG, [21:24:40]CommunicateWithHost lk.salyk.kg:30040 [21:24:40]ConnectInit lk.salyk.kg [21:24:40]written 0, free lines is 4095 [21:24:40]Connected sock=10 [21:24:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 F6 3D 06 01 A4 21 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 80 ED 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 60 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 98 49 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B3 72 00 00 35 04 06 00 AB A5 FB D5 8B FE EF 04 0F 7C 16 0A 4B 30 [21:24:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 77 C9 47 00 E9 6E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B3 72 00 00 F4 03 04 00 3A F4 1B 66 B6 04 01 00 00 89 2E FF 22 72 F6 37 4E [21:24:41]CommunicateWithHost err = 0 [21:24:41]CheckOFDResponse [21:24:41]1017 (14) - 77093643461234 [21:24:41]1041 (16) - 0000000000963154 [21:24:41]1040 (4) - 29363 [21:24:41]1012 (4) - 14.04.2024 15:20 [21:24:41]1206 (1) - 0 [21:24:41]OFD Sender: Remove packet 29363 [21:24:41]ProducePacketName [21:24:41]name=ofd_packets/00029363 [21:24:41]NVStorageDeleteData [21:24:41]Write to MH i2c: 01 00 00 AA 09 B3 [21:24:41]Write i2c OK [21:24:41]MH_I2C_Read... [21:24:41]Read from MH i2c: 01 [21:24:41]MH_I2C_Read... [21:24:41]Read from MH i2c: 01 07 00 [21:24:41]MH_I2C_Read... [21:24:41]Read from MH i2c: 01 07 00 AA 09 00 00 00 00 00 DC 0C A2 [21:24:41]RasterBufferAndPrint [21:24:41]line [21:24:41]line [21:24:41]line [21:24:41]line [21:24:41]line [21:24:41]written 0, free lines is 3296 [21:24:41]MH_Cut [21:24:41]Write to MH i2c: D1 01 00 B1 09 01 8C [21:24:41]Write i2c OK [21:24:41]MH_I2C_Read... [21:24:41]Read from MH i2c: D1 [21:24:41]MH_I2C_Read... [21:24:41]Read from MH i2c: D1 01 00 [21:24:41]MH_I2C_Read... [21:24:41]Read from MH i2c: D1 01 00 B1 09 00 8B [21:24:41]Write to MH i2c: 01 00 00 B2 09 BB [21:24:41]Write i2c OK [21:24:41]MH_I2C_Read... [21:24:41]OFD Sender: No OFD packet to send [21:24:42]*** Cut start [21:24:42]*** Partial cut [21:24:42]*** CUTSNS_PIN = 1 [21:24:42]*** CUTSNS_PIN = 0 [21:24:42]*** Brake cut motor [21:24:42]Read from MH i2c: 01 [21:24:42]MH_I2C_Read... [21:24:42]*** Stop cut motor [21:24:42]*** Cut end [21:24:42]Read from MH i2c: 01 07 00 [21:24:42]MH_I2C_Read... [21:24:42]Read from MH i2c: 01 07 00 B2 09 00 00 00 00 00 FF 0F D0 [21:24:42]process_action close_receipt done [21:24:42]requested_data is exist [21:24:42]produce_requested_data [21:24:42]requested_item fm.sn is exist - process it [21:24:42]wFMCommunicate request_size=4 [21:24:42]MH_SAM_APDU [21:24:42]CAPDU: 80 11 00 00 [21:24:42]Write to MH i2c: E2 08 00 B3 09 80 11 00 00 00 00 00 00 36 [21:24:42]Write i2c OK [21:24:42]MH_I2C_Read... [21:24:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:24:42]Read from MH i2c: E2 [21:24:42]MH_I2C_Read... [21:24:42]Read from MH i2c: E2 17 00 [21:24:42]MH_I2C_Read... [21:24:42]Read from MH i2c: E2 17 00 B3 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 85 [21:24:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:24:42]wFMCommunicate OK [21:24:42]requested_item fd.num is exist - process it [21:24:42]SAM_PROTO_GetFieldsCounters [21:24:42]wFMCommunicate request_size=4 [21:24:42]MH_SAM_APDU [21:24:42]CAPDU: 80 13 00 00 [21:24:42]Write to MH i2c: E2 08 00 B4 09 80 13 00 00 00 00 00 00 39 [21:24:42]Write i2c OK [21:24:42]MH_I2C_Read... [21:24:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:24:42]Read from MH i2c: E2 [21:24:42]MH_I2C_Read... [21:24:42]Read from MH i2c: E2 62 00 [21:24:42]MH_I2C_Read... [21:24:42]Read from MH i2c: E2 62 00 B4 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B3 72 00 00 0E 04 04 00 74 00 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 46 [21:24:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B3 72 00 00 0E 04 04 00 74 00 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 [21:24:42]wFMCommunicate OK [21:24:42]SAM_PROTO_GetFieldsCounters done [21:24:42]requested_item shift.num is exist - process it [21:24:42]requested_item shift.opened is exist - process it [21:24:42]req_shift_opened [21:24:42]FM_GetShiftState [21:24:42]SAM_PROTO_GetShiftState [21:24:42]wFMCommunicate request_size=4 [21:24:42]MH_SAM_APDU [21:24:42]CAPDU: 80 13 01 00 [21:24:42]Write to MH i2c: E2 08 00 B5 09 80 13 01 00 00 00 00 00 3B [21:24:42]Write i2c OK [21:24:42]MH_I2C_Read... [21:24:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:24:42]Read from MH i2c: E2 [21:24:42]MH_I2C_Read... [21:24:42]Read from MH i2c: E2 0E 00 [21:24:42]MH_I2C_Read... [21:24:42]Read from MH i2c: E2 0E 00 B5 09 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 E7 [21:24:42]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [21:24:42]wFMCommunicate OK [21:24:42]SAM_PROTO_GetShiftState done [21:24:42]FM_GetShiftState done [21:24:42]req_shift_opened done [21:24:42]requested_item shift.open_date is exist - process it [21:24:42]req_shift_open_date [21:24:42]req_shift_open_date done [21:24:42]produce_requested_data done [21:24:42]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29363,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [21:24:42]process_action_free close_receipt [21:24:42]json_value_free [21:24:42]json_value_free done [21:24:42]process_json_proto returns [21:24:42]Send response to host [21:24:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29363,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [21:24:42]free response buf [21:24:42]execute_script done [21:24:42]execute_script returns [21:24:42]free content buf [21:24:42]Sock 8.Close socket [21:24:42]Sock 8.Thread stoped [21:24:46]OFD Sender: No OFD packet to send [21:24:51]OFD Sender: No OFD packet to send [21:24:56]OFD Sender: No OFD packet to send [21:25:01]OFD Sender: No OFD packet to send [21:25:06]OFD Sender: No OFD packet to send [21:25:11]OFD Sender: No OFD packet to send [21:25:16]OFD Sender: No OFD packet to send [21:25:21]OFD Sender: No OFD packet to send [21:25:26]OFD Sender: No OFD packet to send [21:25:31]OFD Sender: No OFD packet to send [21:25:36]OFD Sender: No OFD packet to send [21:25:41]OFD Sender: No OFD packet to send [21:25:46]OFD Sender: No OFD packet to send [21:25:51]OFD Sender: No OFD packet to send [21:25:56]OFD Sender: No OFD packet to send [21:26:01]OFD Sender: No OFD packet to send [21:26:06]OFD Sender: No OFD packet to send [21:26:11]OFD Sender: No OFD packet to send [21:26:16]OFD Sender: No OFD packet to send [21:26:21]OFD Sender: No OFD packet to send [21:26:26]OFD Sender: No OFD packet to send [21:26:31]OFD Sender: No OFD packet to send [21:26:36]OFD Sender: No OFD packet to send [21:26:41]OFD Sender: No OFD packet to send [21:26:46]OFD Sender: No OFD packet to send [21:26:51]OFD Sender: No OFD packet to send [21:26:56]OFD Sender: No OFD packet to send [21:27:01]OFD Sender: No OFD packet to send [21:27:06]OFD Sender: No OFD packet to send [21:27:09]accept exits with 9 [21:27:09]New connection [21:27:09]New thread 3066969444 created [21:27:09]Thread 3067112804 joined [21:27:09]Waiting for new connection... [21:27:09] Sock 9.Parse request [21:27:09]Sock 9.Check first char [21:27:09]Sock 9.First char is OK [21:27:09]request: POST /json_proto HTTP/1.0 [21:27:09]Method: POST [21:27:09]URL: /json_proto [21:27:09]Method is POST - this is cgi request [21:27:09]url: /json_proto [21:27:09]query_string will be loaded in cgi processing [21:27:09]execute_cgi json_proto POST (null) [21:27:09]execute_cgi path=json_proto method=POST [21:27:09]POST find Content-Length [21:27:09]Host: 172.17.33.3:8080 [21:27:09]Content-Length: 678 [21:27:09]Content-Type: application/json [21:27:09] [21:27:09]POST finish read [21:27:09]Found Content-Length = 678 [21:27:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347759", "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" ] } } [21:27:09]execute_script... [21:27: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)347759", "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" ] } } [21:27:09]POST & json_proto [21:27:09]process_json_proto [21:27:09]json parsed OK: [21:27:09]protocol is kg_v1.0 [21:27:09]action value=close_receipt [21:27:09]process_action close_receipt [21:27:09]cmd_close_receipt [21:27:09]MH_GetDate [21:27:09]Write to MH i2c: F0 00 00 B6 09 AE [21:27:09]Write i2c OK [21:27:09]MH_I2C_Read... [21:27:09]Read from MH i2c: F0 [21:27:09]MH_I2C_Read... [21:27:09]Read from MH i2c: F0 09 00 [21:27:09]MH_I2C_Read... [21:27:09]Read from MH i2c: F0 09 00 B6 09 00 2E 4A 1C 66 23 5B 8F 65 23 [21:27:09]GetLastDocTimeStamp 1713129880 [21:27:09]current date 1713130030 [21:27:09]FM_GetShiftState [21:27:09]SAM_PROTO_GetShiftState [21:27:09]wFMCommunicate request_size=4 [21:27:09]MH_SAM_APDU [21:27:09]CAPDU: 80 13 01 00 [21:27:09]Write to MH i2c: E2 08 00 B7 09 80 13 01 00 00 00 00 00 3D [21:27:09]Write i2c OK [21:27:09]MH_I2C_Read... [21:27:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:27:09]Read from MH i2c: E2 [21:27:09]MH_I2C_Read... [21:27:09]Read from MH i2c: E2 0E 00 [21:27:09]MH_I2C_Read... [21:27:09]Read from MH i2c: E2 0E 00 B7 09 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 E9 [21:27:09]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [21:27:09]wFMCommunicate OK [21:27:09]SAM_PROTO_GetShiftState done [21:27:09]FM_GetShiftState done [21:27:09]opened in 1713053951 [21:27:09]opened+sec_in_day 1713140351 [21:27:09]quantity*price = 70022 [21:27:09]sum+1 = 70024 [21:27:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.36 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 274 14.04.2024 21:27 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29364 ФПД: 129389098611865 1/tax-web-control/client/api/v1/ticket?date=20240414T212710&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29364&fm=129389098611865&tin=02508201610067®Number=0000138879044617&sum=70000 [21:27:10]StoreToDocumentArchive [21:27:10]shift 116 fd 29364 [21:27:10]save to /storage/0116/doc_00029364 [21:27:10]save last doc name /storage/0116/doc_00029364 to /storage/kkm_last_doc_name [21:27:10]save OK [21:27:10]Clear old archive folders... [21:27:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:27:10]tlvbuf is 00261350 [21:27:10]SAM_PROTO_ClearQueue [21:27:10]wFMCommunicate request_size=4 [21:27:10]MH_SAM_APDU [21:27:10]CAPDU: 80 09 00 00 [21:27:10]Write to MH i2c: E2 08 00 C4 09 80 09 00 00 00 00 00 00 3F [21:27:10]Write i2c OK [21:27:10]MH_I2C_Read... [21:27:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:27:10]Read from MH i2c: E2 [21:27:10]MH_I2C_Read... [21:27:10]Read from MH i2c: E2 03 00 [21:27:10]MH_I2C_Read... [21:27:10]Read from MH i2c: E2 03 00 C4 09 00 90 00 41 [21:27:10]RAPDU: 90 00 [21:27:10]wFMCommunicate OK [21:27:10]SAM_PROTO_ClearQueue done [21:27:10]KKMCreateOFDPacket [21:27:10]OFDProtocolAddRootSTLVToBuf [21:27:10]FM_MakeSignedData [21:27:10]FM_MakeSignedData [21:27:10]SAM_PROTO_SignData [21:27:10]wFMCommunicate request_size=4 [21:27:10]MH_SAM_APDU [21:27:10]CAPDU: 80 0D 01 02 [21:27:10]Write to MH i2c: E2 08 00 C5 09 80 0D 01 02 00 00 00 00 47 [21:27:10]Write i2c OK [21:27:10]MH_I2C_Read... [21:27:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:27:10]Read from MH i2c: E2 [21:27:10]MH_I2C_Read... [21:27:10]Read from MH i2c: E2 03 00 [21:27:10]MH_I2C_Read... [21:27:10]Read from MH i2c: E2 03 00 C5 09 00 90 00 42 [21:27:10]RAPDU: 90 00 [21:27:10]wFMCommunicate OK [21:27:10]wFMCommunicate request_size=255 [21:27:10]MH_SAM_APDU [21:27: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 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 12 01 00 00 F4 03 04 00 2E 4A 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B4 72 00 00 35 04 06 00 75 [21:27:10]Write to MH i2c: E2 02 01 C6 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 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 12 01 00 00 F4 03 04 00 2E 4A 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B4 72 00 00 35 04 06 00 75 00 00 A9 [21:27:10]Write i2c OK [21:27:10]MH_I2C_Read... [21:27:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:27:11]Read from MH i2c: E2 [21:27:11]MH_I2C_Read... [21:27:11]Read from MH i2c: E2 03 00 [21:27:11]MH_I2C_Read... [21:27:11]Read from MH i2c: E2 03 00 C6 09 00 90 00 43 [21:27:11]RAPDU: 90 00 [21:27:11]wFMCommunicate OK [21:27:11]wFMCommunicate request_size=10 [21:27:11]MH_SAM_APDU [21:27:11]CAPDU: 80 0D 02 02 05 AD BF 42 B4 99 [21:27:11]Write to MH i2c: E2 0D 00 C7 09 80 0D 02 02 05 00 AD BF 42 B4 99 00 00 4F [21:27:11]Write i2c OK [21:27:11]MH_I2C_Read... [21:27:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:27:11]Read from MH i2c: E2 [21:27:11]MH_I2C_Read... [21:27:11]Read from MH i2c: E2 03 00 [21:27:11]MH_I2C_Read... [21:27:11]Read from MH i2c: E2 03 00 C7 09 00 90 00 44 [21:27:11]RAPDU: 90 00 [21:27:11]wFMCommunicate OK [21:27:11]wFMCommunicate request_size=4 [21:27:11]MH_SAM_APDU [21:27:11]CAPDU: 80 0D 03 02 [21:27:11]Write to MH i2c: E2 08 00 C8 09 80 0D 03 02 00 00 00 00 4C [21:27:11]Write i2c OK [21:27:11]MH_I2C_Read... [21:27:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:27:11]Read from MH i2c: E2 [21:27:11]MH_I2C_Read... [21:27:11]Read from MH i2c: E2 0B 00 [21:27:11]MH_I2C_Read... [21:27:11]Read from MH i2c: E2 0B 00 C8 09 00 4A 37 B1 0F D0 F5 7C E5 90 00 B4 [21:27:11]RAPDU: 4A 37 B1 0F D0 F5 7C E5 90 00 [21:27:11]wFMCommunicate OK [21:27:11]SAM_PROTO_SignData done [21:27:11]FM_MakeSignedData done [21:27:11]CreateOFDProtocolMessage [21:27:11]wFMCommunicate request_size=4 [21:27:11]MH_SAM_APDU [21:27:11]CAPDU: 80 11 00 00 [21:27:11]Write to MH i2c: E2 08 00 C9 09 80 11 00 00 00 00 00 00 4C [21:27:11]Write i2c OK [21:27:11]MH_I2C_Read... [21:27:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:27:11]Read from MH i2c: E2 [21:27:11]MH_I2C_Read... [21:27:11]Read from MH i2c: E2 17 00 [21:27:11]MH_I2C_Read... [21:27:11]Read from MH i2c: E2 17 00 C9 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 9B [21:27:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:27:11]wFMCommunicate OK [21:27:11]CreateOFDProtocolMessage done [21:27:11]OFDSenderStorePacket 29364 [21:27:11]StoreOFDPacket docnum=29364 [21:27:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 2F 58 07 01 0A 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 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 12 01 00 00 F4 03 04 00 2E 4A 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B4 72 00 00 35 04 06 00 75 AD BF 42 B4 99 4A 37 B1 0F D0 F5 7C E5 [21:27:11]CheckFolder [21:27:11]dirname=/storage/ofd_packets [21:27:11]CheckFolder done [21:27:11]ProducePacketName [21:27:11]name=ofd_packets/00029364 [21:27:11]NVStorageSaveData ofd_packets/00029364 [21:27:11]File name is /storage/ofd_packets/00029364 [21:27:11]Write 301 bytes [21:27:11]NVStorageSaveData done [21:27:11]OFDSenderStorePacket done [21:27:11]KKMCreateOFDPacket done [21:27:11]NVStorageSaveData kkm_last_timestamp [21:27:11]File name is /storage/kkm_last_timestamp [21:27:11]Write 4 bytes [21:27:11]NVStorageSaveData done [21:27:11]ExternCall_PrintAddStr [21:27:11]wPrintStart [21:27:11]Write to MH i2c: 01 00 00 CA 09 D3 [21:27:11]Write i2c OK [21:27:11]MH_I2C_Read... [21:27:11]Read from MH i2c: 01 [21:27:11]MH_I2C_Read... [21:27:11]Read from MH i2c: 01 07 00 [21:27:11]MH_I2C_Read... [21:27:11]Read from MH i2c: 01 07 00 CA 09 00 00 00 00 00 FF 0F E8 [21:27:11]RasterBufferAndPrint [21:27:11]line Счет N : (1)347759 [21:27:11]line ИНН: 02508201610067 [21:27:11]line Контрольно-Кассовый Чек [21:27:11]line ПРОДАЖА [21:27:11]line ТРК (МРК, ГНК) : 42 [21:27:11]line Товар: 2710124130 [21:27:11]line Аи-92-К-5 [21:27:11]line 10.890 * 64.30 [21:27:11]line = 700.23 [21:27:11]line НДС 12% НСП 1% [21:27:11]line > о реализуемом товаре [21:27:11]line ОКРУГЛЕНИЕ: -0.23 [21:27:11]line ИТОГО: 700.00 [21:27:11]line Внесено: 700.00 [21:27:11]line СДАЧА: 0.00 [21:27:11]line НСП 1% : 6.20 [21:27:11]line НДС 12% : 74.36 [21:27:11]line Наличными: 700.00 [21:27:11]line Безнал.: 0.00 [21:27:11]line Место: АЗС № 108 "Партнер Нефть" [21:27:11]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [21:27:11]line СНО: Общий режим [21:27:11]line Чек 274 14.04.2024 21:27 [21:27:11]line Смена: 116 ФФД: 1.0 [21:27:11]line ЗНМ: 0300000027 [21:27:11]line РНМ: 0000138879044617 [21:27:11]line Версия ККМ: 001 [21:27:11]line ФМ: 0000000000963154 [21:27:11]line ФД: 29364 [21:27:11]line ФПД: 129389098611865 [21:27:11]line 1/tax-web-control/client/api/v1/ticket?date=20240414T212710&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29364&fm=129389098611865&tin=02508201610067®Number=0000138879044617&sum=70000 [21:27:11]OFD Sender: Processing packet 29364 [packets to send 8, broken 7] [21:27:11]ProducePacketName [21:27:11]name=ofd_packets/00029364 [21:27:11]OFD Sender: To server: pG, [21:27:11]CommunicateWithHost lk.salyk.kg:30040 [21:27:11]ConnectInit lk.salyk.kg [21:27:11]written 0, free lines is 4095 [21:27:11]Connected sock=10 [21:27:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 2F 58 07 01 0A 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 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 12 01 00 00 F4 03 04 00 2E 4A 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B4 72 00 00 35 04 06 00 75 AD BF 42 B4 99 4A 37 B1 0F D0 F5 7C E5 [21:27:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 A9 65 47 00 06 D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B4 72 00 00 F4 03 04 00 D1 F4 1B 66 B6 04 01 00 00 43 DA A1 07 8D F5 15 22 [21:27:11]CommunicateWithHost err = 0 [21:27:11]CheckOFDResponse [21:27:11]1017 (14) - 77093643461234 [21:27:11]1041 (16) - 0000000000963154 [21:27:11]1040 (4) - 29364 [21:27:11]1012 (4) - 14.04.2024 15:22 [21:27:11]1206 (1) - 0 [21:27:11]OFD Sender: Remove packet 29364 [21:27:11]ProducePacketName [21:27:11]name=ofd_packets/00029364 [21:27:11]NVStorageDeleteData [21:27:12]Write to MH i2c: 01 00 00 F4 09 FD [21:27:12]Write i2c OK [21:27:12]MH_I2C_Read... [21:27:12]Read from MH i2c: 01 [21:27:12]MH_I2C_Read... [21:27:12]Read from MH i2c: 01 07 00 [21:27:12]MH_I2C_Read... [21:27:12]Read from MH i2c: 01 07 00 F4 09 00 00 00 00 00 C4 0C D4 [21:27:12]RasterBufferAndPrint [21:27:12]line [21:27:12]line [21:27:12]line [21:27:12]line [21:27:12]line [21:27:12]written 0, free lines is 3272 [21:27:12]MH_Cut [21:27:12]Write to MH i2c: D1 01 00 FB 09 01 D6 [21:27:12]Write i2c OK [21:27:12]MH_I2C_Read... [21:27:12]Read from MH i2c: D1 [21:27:12]MH_I2C_Read... [21:27:12]Read from MH i2c: D1 01 00 [21:27:12]MH_I2C_Read... [21:27:12]Read from MH i2c: D1 01 00 FB 09 00 D5 [21:27:12]Write to MH i2c: 01 00 00 FC 09 05 [21:27:12]Write i2c OK [21:27:12]MH_I2C_Read... [21:27:12]OFD Sender: No OFD packet to send [21:27:12]*** Cut start [21:27:12]*** Partial cut [21:27:12]*** CUTSNS_PIN = 1 [21:27:12]*** CUTSNS_PIN = 0 [21:27:13]*** Brake cut motor [21:27:13]Read from MH i2c: 01 [21:27:13]MH_I2C_Read... [21:27:13]*** Stop cut motor [21:27:13]*** Cut end [21:27:13]Read from MH i2c: 01 07 00 [21:27:13]MH_I2C_Read... [21:27:13]Read from MH i2c: 01 07 00 FC 09 00 00 00 00 00 FF 0F 1A [21:27:13]process_action close_receipt done [21:27:13]requested_data is exist [21:27:13]produce_requested_data [21:27:13]requested_item fm.sn is exist - process it [21:27:13]wFMCommunicate request_size=4 [21:27:13]MH_SAM_APDU [21:27:13]CAPDU: 80 11 00 00 [21:27:13]Write to MH i2c: E2 08 00 FD 09 80 11 00 00 00 00 00 00 80 [21:27:13]Write i2c OK [21:27:13]MH_I2C_Read... [21:27:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:27:13]Read from MH i2c: E2 [21:27:13]MH_I2C_Read... [21:27:13]Read from MH i2c: E2 17 00 [21:27:13]MH_I2C_Read... [21:27:13]Read from MH i2c: E2 17 00 FD 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 CF [21:27:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:27:13]wFMCommunicate OK [21:27:13]requested_item fd.num is exist - process it [21:27:13]SAM_PROTO_GetFieldsCounters [21:27:13]wFMCommunicate request_size=4 [21:27:13]MH_SAM_APDU [21:27:13]CAPDU: 80 13 00 00 [21:27:13]Write to MH i2c: E2 08 00 FE 09 80 13 00 00 00 00 00 00 83 [21:27:13]Write i2c OK [21:27:13]MH_I2C_Read... [21:27:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:27:13]Read from MH i2c: E2 [21:27:13]MH_I2C_Read... [21:27:13]Read from MH i2c: E2 62 00 [21:27:13]MH_I2C_Read... [21:27:13]Read from MH i2c: E2 62 00 FE 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B4 72 00 00 0E 04 04 00 74 00 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 94 [21:27:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B4 72 00 00 0E 04 04 00 74 00 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 [21:27:13]wFMCommunicate OK [21:27:13]SAM_PROTO_GetFieldsCounters done [21:27:13]requested_item shift.num is exist - process it [21:27:13]requested_item shift.opened is exist - process it [21:27:13]req_shift_opened [21:27:13]FM_GetShiftState [21:27:13]SAM_PROTO_GetShiftState [21:27:13]wFMCommunicate request_size=4 [21:27:13]MH_SAM_APDU [21:27:13]CAPDU: 80 13 01 00 [21:27:13]Write to MH i2c: E2 08 00 FF 09 80 13 01 00 00 00 00 00 85 [21:27:13]Write i2c OK [21:27:13]MH_I2C_Read... [21:27:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:27:13]Read from MH i2c: E2 [21:27:13]MH_I2C_Read... [21:27:13]Read from MH i2c: E2 0E 00 [21:27:13]MH_I2C_Read... [21:27:13]Read from MH i2c: E2 0E 00 FF 09 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 31 [21:27:13]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [21:27:13]wFMCommunicate OK [21:27:13]SAM_PROTO_GetShiftState done [21:27:13]FM_GetShiftState done [21:27:13]req_shift_opened done [21:27:13]requested_item shift.open_date is exist - process it [21:27:13]req_shift_open_date [21:27:13]req_shift_open_date done [21:27:13]produce_requested_data done [21:27:13]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29364,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [21:27:13]process_action_free close_receipt [21:27:13]json_value_free [21:27:13]json_value_free done [21:27:13]process_json_proto returns [21:27:13]Send response to host [21:27:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29364,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [21:27:13]free response buf [21:27:13]execute_script done [21:27:13]execute_script returns [21:27:13]free content buf [21:27:13]Sock 9.Close socket [21:27:13]Sock 9.Thread stoped [21:27:17]OFD Sender: No OFD packet to send [21:27:22]OFD Sender: No OFD packet to send [21:27:27]OFD Sender: No OFD packet to send [21:27:32]OFD Sender: No OFD packet to send [21:27:37]OFD Sender: No OFD packet to send [21:27:42]OFD Sender: No OFD packet to send [21:27:47]OFD Sender: No OFD packet to send [21:27:52]OFD Sender: No OFD packet to send [21:27:57]OFD Sender: No OFD packet to send [21:28:02]OFD Sender: No OFD packet to send [21:28:07]OFD Sender: No OFD packet to send [21:28:12]OFD Sender: No OFD packet to send [21:28:17]OFD Sender: No OFD packet to send [21:28:22]OFD Sender: No OFD packet to send [21:28:27]OFD Sender: No OFD packet to send [21:28:32]OFD Sender: No OFD packet to send [21:28:37]OFD Sender: No OFD packet to send [21:28:42]OFD Sender: No OFD packet to send [21:28:47]OFD Sender: No OFD packet to send [21:28:52]OFD Sender: No OFD packet to send [21:28:57]OFD Sender: No OFD packet to send [21:28:57]accept exits with 8 [21:28:57]New connection [21:28:57]New thread 3067112804 created [21:28:57]Thread 3066969444 joined [21:28:57]Waiting for new connection... [21:28:57] Sock 8.Parse request [21:28:57]Sock 8.Check first char [21:28:57]Sock 8.First char is OK [21:28:57]request: POST /json_proto HTTP/1.0 [21:28:57]Method: POST [21:28:57]URL: /json_proto [21:28:57]Method is POST - this is cgi request [21:28:57]url: /json_proto [21:28:57]query_string will be loaded in cgi processing [21:28:57]execute_cgi json_proto POST (null) [21:28:57]execute_cgi path=json_proto method=POST [21:28:57]POST find Content-Length [21:28:57]Host: 172.17.33.3:8080 [21:28:57]Content-Length: 677 [21:28:57]Content-Type: application/json [21:28:57] [21:28:57]POST finish read [21:28:57]Found Content-Length = 677 [21:28:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347760", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.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:28:57]execute_script... [21:28: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)347760", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.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:28:57]POST & json_proto [21:28:57]process_json_proto [21:28:57]json parsed OK: [21:28:57]protocol is kg_v1.0 [21:28:57]action value=close_receipt [21:28:57]process_action close_receipt [21:28:57]cmd_close_receipt [21:28:57]MH_GetDate [21:28:57]Write to MH i2c: F0 00 00 00 0A F9 [21:28:57]Write i2c OK [21:28:57]MH_I2C_Read... [21:28:57]Read from MH i2c: F0 [21:28:57]MH_I2C_Read... [21:28:57]Read from MH i2c: F0 09 00 [21:28:57]MH_I2C_Read... [21:28:57]Read from MH i2c: F0 09 00 00 0A 00 9A 4A 1C 66 23 5B 8F 65 DA [21:28:57]GetLastDocTimeStamp 1713130030 [21:28:57]current date 1713130138 [21:28:57]FM_GetShiftState [21:28:57]SAM_PROTO_GetShiftState [21:28:57]wFMCommunicate request_size=4 [21:28:57]MH_SAM_APDU [21:28:57]CAPDU: 80 13 01 00 [21:28:57]Write to MH i2c: E2 08 00 01 0A 80 13 01 00 00 00 00 00 88 [21:28:57]Write i2c OK [21:28:57]MH_I2C_Read... [21:28:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:28:57]Read from MH i2c: E2 [21:28:57]MH_I2C_Read... [21:28:57]Read from MH i2c: E2 0E 00 [21:28:57]MH_I2C_Read... [21:28:57]Read from MH i2c: E2 0E 00 01 0A 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 34 [21:28:57]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [21:28:57]wFMCommunicate OK [21:28:57]SAM_PROTO_GetShiftState done [21:28:57]FM_GetShiftState done [21:28:57]opened in 1713053951 [21:28:57]opened+sec_in_day 1713140351 [21:28:57]quantity*price = 60056 [21:28:57]sum+1 = 60057 [21:28:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.78 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 275 14.04.2024 21:28 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29365 ФПД: 182134561250914 1/tax-web-control/client/api/v1/ticket?date=20240414T212858&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29365&fm=182134561250914&tin=02508201610067®Number=0000138879044617&sum=60000 [21:28:58]StoreToDocumentArchive [21:28:58]shift 116 fd 29365 [21:28:58]save to /storage/0116/doc_00029365 [21:28:58]save last doc name /storage/0116/doc_00029365 to /storage/kkm_last_doc_name [21:28:58]save OK [21:28:58]Clear old archive folders... [21:28:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:28:58]tlvbuf is 00273690 [21:28:58]SAM_PROTO_ClearQueue [21:28:58]wFMCommunicate request_size=4 [21:28:58]MH_SAM_APDU [21:28:58]CAPDU: 80 09 00 00 [21:28:58]Write to MH i2c: E2 08 00 0E 0A 80 09 00 00 00 00 00 00 8A [21:28:58]Write i2c OK [21:28:58]MH_I2C_Read... [21:28:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:28:58]Read from MH i2c: E2 [21:28:58]MH_I2C_Read... [21:28:58]Read from MH i2c: E2 03 00 [21:28:58]MH_I2C_Read... [21:28:58]Read from MH i2c: E2 03 00 0E 0A 00 90 00 8C [21:28:58]RAPDU: 90 00 [21:28:58]wFMCommunicate OK [21:28:58]SAM_PROTO_ClearQueue done [21:28:58]KKMCreateOFDPacket [21:28:58]OFDProtocolAddRootSTLVToBuf [21:28:58]FM_MakeSignedData [21:28:58]FM_MakeSignedData [21:28:58]SAM_PROTO_SignData [21:28:58]wFMCommunicate request_size=4 [21:28:58]MH_SAM_APDU [21:28:58]CAPDU: 80 0D 01 02 [21:28:58]Write to MH i2c: E2 08 00 0F 0A 80 0D 01 02 00 00 00 00 92 [21:28:58]Write i2c OK [21:28:58]MH_I2C_Read... [21:28:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:28:58]Read from MH i2c: E2 [21:28:58]MH_I2C_Read... [21:28:58]Read from MH i2c: E2 03 00 [21:28:58]MH_I2C_Read... [21:28:58]Read from MH i2c: E2 03 00 0F 0A 00 90 00 8D [21:28:58]RAPDU: 90 00 [21:28:58]wFMCommunicate OK [21:28:58]wFMCommunicate request_size=255 [21:28:58]MH_SAM_APDU [21:28: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 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 13 01 00 00 F4 03 04 00 9A 4A 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B5 72 00 00 35 04 06 00 A5 [21:28:58]Write to MH i2c: E2 02 01 10 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 13 01 00 00 F4 03 04 00 9A 4A 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B5 72 00 00 35 04 06 00 A5 00 00 77 [21:28:58]Write i2c OK [21:28:58]MH_I2C_Read... [21:28:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:28:59]Read from MH i2c: E2 [21:28:59]MH_I2C_Read... [21:28:59]Read from MH i2c: E2 03 00 [21:28:59]MH_I2C_Read... [21:28:59]Read from MH i2c: E2 03 00 10 0A 00 90 00 8E [21:28:59]RAPDU: 90 00 [21:28:59]wFMCommunicate OK [21:28:59]wFMCommunicate request_size=10 [21:28:59]MH_SAM_APDU [21:28:59]CAPDU: 80 0D 02 02 05 A6 81 D3 1E 62 [21:28:59]Write to MH i2c: E2 0D 00 11 0A 80 0D 02 02 05 00 A6 81 D3 1E 62 00 00 19 [21:28:59]Write i2c OK [21:28:59]MH_I2C_Read... [21:28:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:28:59]Read from MH i2c: E2 [21:28:59]MH_I2C_Read... [21:28:59]Read from MH i2c: E2 03 00 [21:28:59]MH_I2C_Read... [21:28:59]Read from MH i2c: E2 03 00 11 0A 00 90 00 8F [21:28:59]RAPDU: 90 00 [21:28:59]wFMCommunicate OK [21:28:59]wFMCommunicate request_size=4 [21:28:59]MH_SAM_APDU [21:28:59]CAPDU: 80 0D 03 02 [21:28:59]Write to MH i2c: E2 08 00 12 0A 80 0D 03 02 00 00 00 00 97 [21:28:59]Write i2c OK [21:28:59]MH_I2C_Read... [21:28:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:28:59]Read from MH i2c: E2 [21:28:59]MH_I2C_Read... [21:28:59]Read from MH i2c: E2 0B 00 [21:28:59]MH_I2C_Read... [21:28:59]Read from MH i2c: E2 0B 00 12 0A 00 AC D0 6C 87 E2 1E 97 56 90 00 F4 [21:28:59]RAPDU: AC D0 6C 87 E2 1E 97 56 90 00 [21:28:59]wFMCommunicate OK [21:28:59]SAM_PROTO_SignData done [21:28:59]FM_MakeSignedData done [21:28:59]CreateOFDProtocolMessage [21:28:59]wFMCommunicate request_size=4 [21:28:59]MH_SAM_APDU [21:28:59]CAPDU: 80 11 00 00 [21:28:59]Write to MH i2c: E2 08 00 13 0A 80 11 00 00 00 00 00 00 97 [21:28:59]Write i2c OK [21:28:59]MH_I2C_Read... [21:28:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:28:59]Read from MH i2c: E2 [21:28:59]MH_I2C_Read... [21:28:59]Read from MH i2c: E2 17 00 [21:28:59]MH_I2C_Read... [21:28:59]Read from MH i2c: E2 17 00 13 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E6 [21:28:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:28:59]wFMCommunicate OK [21:28:59]CreateOFDProtocolMessage done [21:28:59]OFDSenderStorePacket 29365 [21:28:59]StoreOFDPacket docnum=29365 [21:28:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 DA 7A 07 01 2F 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 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 13 01 00 00 F4 03 04 00 9A 4A 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B5 72 00 00 35 04 06 00 A5 A6 81 D3 1E 62 AC D0 6C 87 E2 1E 97 56 [21:28:59]CheckFolder [21:28:59]dirname=/storage/ofd_packets [21:28:59]CheckFolder done [21:28:59]ProducePacketName [21:28:59]name=ofd_packets/00029365 [21:28:59]NVStorageSaveData ofd_packets/00029365 [21:28:59]File name is /storage/ofd_packets/00029365 [21:28:59]Write 301 bytes [21:28:59]NVStorageSaveData done [21:28:59]OFDSenderStorePacket done [21:28:59]KKMCreateOFDPacket done [21:28:59]NVStorageSaveData kkm_last_timestamp [21:28:59]File name is /storage/kkm_last_timestamp [21:28:59]Write 4 bytes [21:28:59]NVStorageSaveData done [21:28:59]ExternCall_PrintAddStr [21:28:59]wPrintStart [21:28:59]Write to MH i2c: 01 00 00 14 0A 1E [21:28:59]OFD Sender: Processing packet 29365 [packets to send 8, broken 7] [21:28:59]ProducePacketName [21:28:59]name=ofd_packets/00029365 [21:28:59]OFD Sender: To server: pG, [21:28:59]CommunicateWithHost lk.salyk.kg:30040 [21:28:59]ConnectInit lk.salyk.kg [21:28:59]Write i2c OK [21:28:59]MH_I2C_Read... [21:28:59]Read from MH i2c: 01 [21:28:59]MH_I2C_Read... [21:28:59]Read from MH i2c: 01 07 00 [21:28:59]MH_I2C_Read... [21:28:59]Read from MH i2c: 01 07 00 14 0A 00 00 00 00 00 FF 0F 33 [21:28:59]RasterBufferAndPrint [21:28:59]line Счет N : (1)347760 [21:28:59]line ИНН: 02508201610067 [21:28:59]line Контрольно-Кассовый Чек [21:28:59]line ПРОДАЖА [21:28:59]line ТРК (МРК, ГНК) : 23 [21:28:59]line Товар: 2710124130 [21:28:59]line Аи-92-К-5 [21:28:59]line 9.340 * 64.30 [21:28:59]line = 600.56 [21:28:59]line НДС 12% НСП 1% [21:28:59]line > о реализуемом товаре [21:28:59]line ОКРУГЛЕНИЕ: -0.56 [21:28:59]line ИТОГО: 600.00 [21:28:59]line Внесено: 600.00 [21:28:59]line СДАЧА: 0.00 [21:28:59]line НСП 1% : 5.31 [21:28:59]line НДС 12% : 63.78 [21:28:59]line Наличными: 600.00 [21:28:59]line Безнал.: 0.00 [21:28:59]line Место: АЗС № 108 "Партнер Нефть" [21:28:59]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [21:28:59]line СНО: Общий режим [21:28:59]line Чек 275 14.04.2024 21:28 [21:28:59]line Смена: 116 ФФД: 1.0 [21:28:59]line ЗНМ: 0300000027 [21:28:59]line РНМ: 0000138879044617 [21:28:59]line Версия ККМ: 001 [21:28:59]line ФМ: 0000000000963154 [21:28:59]line ФД: 29365 [21:28:59]line ФПД: 182134561250914 [21:28:59]line 1/tax-web-control/client/api/v1/ticket?date=20240414T212858&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29365&fm=182134561250914&tin=02508201610067®Number=0000138879044617&sum=60000 [21:28:59]Connected sock=10 [21:28:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 DA 7A 07 01 2F 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 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 13 01 00 00 F4 03 04 00 9A 4A 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B5 72 00 00 35 04 06 00 A5 A6 81 D3 1E 62 AC D0 6C 87 E2 1E 97 56 [21:28:59]written 0, free lines is 4095 [21:28:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 64 26 47 00 C8 4A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B5 72 00 00 F4 03 04 00 3D F5 1B 66 B6 04 01 00 00 9A 6B ED 3A 74 A7 DF D0 [21:28:59]CommunicateWithHost err = 0 [21:28:59]CheckOFDResponse [21:28:59]1017 (14) - 77093643461234 [21:28:59]1041 (16) - 0000000000963154 [21:28:59]1040 (4) - 29365 [21:28:59]1012 (4) - 14.04.2024 15:24 [21:28:59]1206 (1) - 0 [21:28:59]OFD Sender: Remove packet 29365 [21:28:59]ProducePacketName [21:28:59]name=ofd_packets/00029365 [21:28:59]NVStorageDeleteData [21:29:00]Write to MH i2c: 01 00 00 3E 0A 48 [21:29:00]Write i2c OK [21:29:00]MH_I2C_Read... [21:29:00]Read from MH i2c: 01 [21:29:00]MH_I2C_Read... [21:29:00]Read from MH i2c: 01 07 00 [21:29:00]MH_I2C_Read... [21:29:00]Read from MH i2c: 01 07 00 3E 0A 00 00 00 00 00 C2 0C 1D [21:29:00]RasterBufferAndPrint [21:29:00]line [21:29:00]line [21:29:00]line [21:29:00]line [21:29:00]line [21:29:00]written 0, free lines is 3272 [21:29:00]MH_Cut [21:29:00]Write to MH i2c: D1 01 00 45 0A 01 21 [21:29:00]Write i2c OK [21:29:00]MH_I2C_Read... [21:29:00]Read from MH i2c: D1 [21:29:00]MH_I2C_Read... [21:29:00]Read from MH i2c: D1 01 00 [21:29:00]MH_I2C_Read... [21:29:00]Read from MH i2c: D1 01 00 45 0A 00 20 [21:29:00]Write to MH i2c: 01 00 00 46 0A 50 [21:29:00]Write i2c OK [21:29:00]MH_I2C_Read... [21:29:00]OFD Sender: No OFD packet to send [21:29:00]*** Cut start [21:29:00]*** Partial cut [21:29:00]*** CUTSNS_PIN = 1 [21:29:00]*** CUTSNS_PIN = 0 [21:29:01]*** Brake cut motor [21:29:01]Read from MH i2c: 01 [21:29:01]MH_I2C_Read... [21:29:01]*** Stop cut motor [21:29:01]*** Cut end [21:29:01]Read from MH i2c: 01 07 00 [21:29:01]MH_I2C_Read... [21:29:01]Read from MH i2c: 01 07 00 46 0A 00 00 00 00 00 FF 0F 65 [21:29:01]process_action close_receipt done [21:29:01]requested_data is exist [21:29:01]produce_requested_data [21:29:01]requested_item fm.sn is exist - process it [21:29:01]wFMCommunicate request_size=4 [21:29:01]MH_SAM_APDU [21:29:01]CAPDU: 80 11 00 00 [21:29:01]Write to MH i2c: E2 08 00 47 0A 80 11 00 00 00 00 00 00 CB [21:29:01]Write i2c OK [21:29:01]MH_I2C_Read... [21:29:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:29:01]Read from MH i2c: E2 [21:29:01]MH_I2C_Read... [21:29:01]Read from MH i2c: E2 17 00 [21:29:01]MH_I2C_Read... [21:29:01]Read from MH i2c: E2 17 00 47 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 1A [21:29:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:29:01]wFMCommunicate OK [21:29:01]requested_item fd.num is exist - process it [21:29:01]SAM_PROTO_GetFieldsCounters [21:29:01]wFMCommunicate request_size=4 [21:29:01]MH_SAM_APDU [21:29:01]CAPDU: 80 13 00 00 [21:29:01]Write to MH i2c: E2 08 00 48 0A 80 13 00 00 00 00 00 00 CE [21:29:01]Write i2c OK [21:29:01]MH_I2C_Read... [21:29:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:29:01]Read from MH i2c: E2 [21:29:01]MH_I2C_Read... [21:29:01]Read from MH i2c: E2 62 00 [21:29:01]MH_I2C_Read... [21:29:01]Read from MH i2c: E2 62 00 48 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B5 72 00 00 0E 04 04 00 74 00 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 E3 [21:29:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B5 72 00 00 0E 04 04 00 74 00 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 [21:29:01]wFMCommunicate OK [21:29:01]SAM_PROTO_GetFieldsCounters done [21:29:01]requested_item shift.num is exist - process it [21:29:01]requested_item shift.opened is exist - process it [21:29:01]req_shift_opened [21:29:01]FM_GetShiftState [21:29:01]SAM_PROTO_GetShiftState [21:29:01]wFMCommunicate request_size=4 [21:29:01]MH_SAM_APDU [21:29:01]CAPDU: 80 13 01 00 [21:29:01]Write to MH i2c: E2 08 00 49 0A 80 13 01 00 00 00 00 00 D0 [21:29:01]Write i2c OK [21:29:01]MH_I2C_Read... [21:29:01]Read from MH i2c: E2 [21:29:01]MH_I2C_Read... [21:29:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:29:01]Read from MH i2c: E2 0E 00 [21:29:01]MH_I2C_Read... [21:29:01]Read from MH i2c: E2 0E 00 49 0A 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 7C [21:29:01]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [21:29:01]wFMCommunicate OK [21:29:01]SAM_PROTO_GetShiftState done [21:29:01]FM_GetShiftState done [21:29:01]req_shift_opened done [21:29:01]requested_item shift.open_date is exist - process it [21:29:01]req_shift_open_date [21:29:01]req_shift_open_date done [21:29:01]produce_requested_data done [21:29:01]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29365,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [21:29:01]process_action_free close_receipt [21:29:01]json_value_free [21:29:01]json_value_free done [21:29:01]process_json_proto returns [21:29:01]Send response to host [21:29:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29365,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [21:29:01]free response buf [21:29:01]execute_script done [21:29:01]execute_script returns [21:29:01]free content buf [21:29:01]Sock 8.Close socket [21:29:01]Sock 8.Thread stoped [21:29:05]OFD Sender: No OFD packet to send [21:29:10]OFD Sender: No OFD packet to send [21:29:15]OFD Sender: No OFD packet to send [21:29:20]OFD Sender: No OFD packet to send [21:29:25]OFD Sender: No OFD packet to send [21:29:30]OFD Sender: No OFD packet to send [21:29:35]OFD Sender: No OFD packet to send [21:29:40]OFD Sender: No OFD packet to send [21:29:45]OFD Sender: No OFD packet to send [21:29:50]OFD Sender: No OFD packet to send [21:29:55]OFD Sender: No OFD packet to send [21:30:00]OFD Sender: No OFD packet to send [21:30:05]OFD Sender: No OFD packet to send [21:30:10]OFD Sender: No OFD packet to send [21:30:15]OFD Sender: No OFD packet to send [21:30:20]OFD Sender: No OFD packet to send [21:30:25]OFD Sender: No OFD packet to send [21:30:30]OFD Sender: No OFD packet to send [21:30:35]OFD Sender: No OFD packet to send [21:30:40]OFD Sender: No OFD packet to send [21:30:45]OFD Sender: No OFD packet to send [21:30:50]OFD Sender: No OFD packet to send [21:30:55]OFD Sender: No OFD packet to send [21:31:00]OFD Sender: No OFD packet to send [21:31:05]OFD Sender: No OFD packet to send [21:31:10]OFD Sender: No OFD packet to send [21:31:11]accept exits with 9 [21:31:11]New connection [21:31:11]New thread 3066969444 created [21:31:11]Thread 3067112804 joined [21:31:11]Waiting for new connection... [21:31:11] Sock 9.Parse request [21:31:11]Sock 9.Check first char [21:31:11]Sock 9.First char is OK [21:31:11]request: POST /json_proto HTTP/1.0 [21:31:11]Method: POST [21:31:11]URL: /json_proto [21:31:11]Method is POST - this is cgi request [21:31:11]url: /json_proto [21:31:11]query_string will be loaded in cgi processing [21:31:11]execute_cgi json_proto POST (null) [21:31:11]execute_cgi path=json_proto method=POST [21:31:11]POST find Content-Length [21:31:11]Host: 172.17.33.3:8080 [21:31:11]Content-Length: 677 [21:31:11]Content-Type: application/json [21:31:11] [21:31:11]POST finish read [21:31:11]Found Content-Length = 677 [21:31:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347761", "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" ] } } [21:31:11]execute_script... [21: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)347761", "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" ] } } [21:31:11]POST & json_proto [21:31:11]process_json_proto [21:31:11]json parsed OK: [21:31:11]protocol is kg_v1.0 [21:31:11]action value=close_receipt [21:31:11]process_action close_receipt [21:31:11]cmd_close_receipt [21:31:11]MH_GetDate [21:31:11]Write to MH i2c: F0 00 00 4A 0A 43 [21:31:11]Write i2c OK [21:31:11]MH_I2C_Read... [21:31:11]Read from MH i2c: F0 [21:31:11]MH_I2C_Read... [21:31:11]Read from MH i2c: F0 09 00 [21:31:11]MH_I2C_Read... [21:31:11]Read from MH i2c: F0 09 00 4A 0A 00 20 4B 1C 66 23 5B 8F 65 AB [21:31:11]GetLastDocTimeStamp 1713130138 [21:31:11]current date 1713130272 [21:31:11]FM_GetShiftState [21:31:11]SAM_PROTO_GetShiftState [21:31:11]wFMCommunicate request_size=4 [21:31:11]MH_SAM_APDU [21:31:11]CAPDU: 80 13 01 00 [21:31:11]Write to MH i2c: E2 08 00 4B 0A 80 13 01 00 00 00 00 00 D2 [21:31:11]Write i2c OK [21:31:11]MH_I2C_Read... [21:31:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:31:11]Read from MH i2c: E2 [21:31:11]MH_I2C_Read... [21:31:11]Read from MH i2c: E2 0E 00 [21:31:11]MH_I2C_Read... [21:31:11]Read from MH i2c: E2 0E 00 4B 0A 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 7E [21:31:11]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [21:31:11]wFMCommunicate OK [21:31:11]SAM_PROTO_GetShiftState done [21:31:11]FM_GetShiftState done [21:31:11]opened in 1713053951 [21:31:11]opened+sec_in_day 1713140351 [21:31:11]quantity*price = 20061 [21:31:11]sum+1 = 20063 [21:31:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.30 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 276 14.04.2024 21:31 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29366 ФПД: 81462329747717 1/tax-web-control/client/api/v1/ticket?date=20240414T213112&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29366&fm=81462329747717&tin=02508201610067®Number=0000138879044617&sum=20000 [21:31:12]StoreToDocumentArchive [21:31:12]shift 116 fd 29366 [21:31:12]save to /storage/0116/doc_00029366 [21:31:12]save last doc name /storage/0116/doc_00029366 to /storage/kkm_last_doc_name [21:31:12]save OK [21:31:12]Clear old archive folders... [21:31:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:31:12]tlvbuf is 001EE910 [21:31:12]SAM_PROTO_ClearQueue [21:31:12]wFMCommunicate request_size=4 [21:31:12]MH_SAM_APDU [21:31:12]CAPDU: 80 09 00 00 [21:31:12]Write to MH i2c: E2 08 00 58 0A 80 09 00 00 00 00 00 00 D4 [21:31:12]Write i2c OK [21:31:12]MH_I2C_Read... [21:31:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:31:12]Read from MH i2c: E2 [21:31:12]MH_I2C_Read... [21:31:12]Read from MH i2c: E2 03 00 [21:31:12]MH_I2C_Read... [21:31:12]Read from MH i2c: E2 03 00 58 0A 00 90 00 D6 [21:31:12]RAPDU: 90 00 [21:31:12]wFMCommunicate OK [21:31:12]SAM_PROTO_ClearQueue done [21:31:12]KKMCreateOFDPacket [21:31:12]OFDProtocolAddRootSTLVToBuf [21:31:12]FM_MakeSignedData [21:31:12]FM_MakeSignedData [21:31:12]SAM_PROTO_SignData [21:31:12]wFMCommunicate request_size=4 [21:31:12]MH_SAM_APDU [21:31:12]CAPDU: 80 0D 01 02 [21:31:12]Write to MH i2c: E2 08 00 59 0A 80 0D 01 02 00 00 00 00 DC [21:31:12]Write i2c OK [21:31:12]MH_I2C_Read... [21:31:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:31:12]Read from MH i2c: E2 [21:31:12]MH_I2C_Read... [21:31:12]Read from MH i2c: E2 03 00 [21:31:12]MH_I2C_Read... [21:31:12]Read from MH i2c: E2 03 00 59 0A 00 90 00 D7 [21:31:12]RAPDU: 90 00 [21:31:12]wFMCommunicate OK [21:31:12]wFMCommunicate request_size=255 [21:31:12]MH_SAM_APDU [21:31: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 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 14 01 00 00 F4 03 04 00 20 4B 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B6 72 00 00 35 04 06 00 4A [21:31:12]Write to MH i2c: E2 02 01 5A 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 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 14 01 00 00 F4 03 04 00 20 4B 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B6 72 00 00 35 04 06 00 4A 00 00 F1 [21:31:13]Write i2c OK [21:31:13]MH_I2C_Read... [21:31:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:31:13]Read from MH i2c: E2 [21:31:13]MH_I2C_Read... [21:31:13]Read from MH i2c: E2 03 00 [21:31:13]MH_I2C_Read... [21:31:13]Read from MH i2c: E2 03 00 5A 0A 00 90 00 D8 [21:31:13]RAPDU: 90 00 [21:31:13]wFMCommunicate OK [21:31:13]wFMCommunicate request_size=10 [21:31:13]MH_SAM_APDU [21:31:13]CAPDU: 80 0D 02 02 05 16 ED 3A 29 05 [21:31:13]Write to MH i2c: E2 0D 00 5B 0A 80 0D 02 02 05 00 16 ED 3A 29 05 00 00 54 [21:31:13]Write i2c OK [21:31:13]MH_I2C_Read... [21:31:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:31:13]Read from MH i2c: E2 [21:31:13]MH_I2C_Read... [21:31:13]Read from MH i2c: E2 03 00 [21:31:13]MH_I2C_Read... [21:31:13]Read from MH i2c: E2 03 00 5B 0A 00 90 00 D9 [21:31:13]RAPDU: 90 00 [21:31:13]wFMCommunicate OK [21:31:13]wFMCommunicate request_size=4 [21:31:13]MH_SAM_APDU [21:31:13]CAPDU: 80 0D 03 02 [21:31:13]Write to MH i2c: E2 08 00 5C 0A 80 0D 03 02 00 00 00 00 E1 [21:31:13]Write i2c OK [21:31:13]MH_I2C_Read... [21:31:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:31:13]Read from MH i2c: E2 [21:31:13]MH_I2C_Read... [21:31:13]Read from MH i2c: E2 0B 00 [21:31:13]MH_I2C_Read... [21:31:13]Read from MH i2c: E2 0B 00 5C 0A 00 FB A6 3D B5 7D CC 45 A6 90 00 A9 [21:31:13]RAPDU: FB A6 3D B5 7D CC 45 A6 90 00 [21:31:13]wFMCommunicate OK [21:31:13]SAM_PROTO_SignData done [21:31:13]FM_MakeSignedData done [21:31:13]CreateOFDProtocolMessage [21:31:13]wFMCommunicate request_size=4 [21:31:13]MH_SAM_APDU [21:31:13]CAPDU: 80 11 00 00 [21:31:13]Write to MH i2c: E2 08 00 5D 0A 80 11 00 00 00 00 00 00 E1 [21:31:13]Write i2c OK [21:31:13]MH_I2C_Read... [21:31:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:31:13]Read from MH i2c: E2 [21:31:13]MH_I2C_Read... [21:31:13]Read from MH i2c: E2 17 00 [21:31:13]MH_I2C_Read... [21:31:13]Read from MH i2c: E2 17 00 5D 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 30 [21:31:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:31:13]wFMCommunicate OK [21:31:13]CreateOFDProtocolMessage done [21:31:13]OFDSenderStorePacket 29366 [21:31:13]StoreOFDPacket docnum=29366 [21:31:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 64 25 07 01 29 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 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 14 01 00 00 F4 03 04 00 20 4B 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B6 72 00 00 35 04 06 00 4A 16 ED 3A 29 05 FB A6 3D B5 7D CC 45 A6 [21:31:13]CheckFolder [21:31:13]dirname=/storage/ofd_packets [21:31:13]CheckFolder done [21:31:13]ProducePacketName [21:31:13]name=ofd_packets/00029366 [21:31:13]NVStorageSaveData ofd_packets/00029366 [21:31:13]File name is /storage/ofd_packets/00029366 [21:31:13]Write 301 bytes [21:31:13]NVStorageSaveData done [21:31:13]OFDSenderStorePacket done [21:31:13]KKMCreateOFDPacket done [21:31:13]NVStorageSaveData kkm_last_timestamp [21:31:13]File name is /storage/kkm_last_timestamp [21:31:13]Write 4 bytes [21:31:13]NVStorageSaveData done [21:31:13]ExternCall_PrintAddStr [21:31:13]wPrintStart [21:31:13]Write to MH i2c: 01 00 00 5E 0A 68 [21:31:13]Write i2c OK [21:31:13]MH_I2C_Read... [21:31:13]Read from MH i2c: 01 [21:31:13]MH_I2C_Read... [21:31:13]Read from MH i2c: 01 07 00 [21:31:13]MH_I2C_Read... [21:31:13]Read from MH i2c: 01 07 00 5E 0A 00 00 00 00 00 FF 0F 7D [21:31:13]RasterBufferAndPrint [21:31:13]line Счет N : (1)347761 [21:31:13]line ИНН: 02508201610067 [21:31:13]line Контрольно-Кассовый Чек [21:31:13]line ПРОДАЖА [21:31:13]line ТРК (МРК, ГНК) : 42 [21:31:13]line Товар: 2710124130 [21:31:13]line Аи-92-К-5 [21:31:13]line 3.120 * 64.30 [21:31:13]line = 200.62 [21:31:13]line НДС 12% НСП 1% [21:31:13]line > о реализуемом товаре [21:31:13]line ОКРУГЛЕНИЕ: -0.62 [21:31:13]line ИТОГО: 200.00 [21:31:13]line Внесено: 200.00 [21:31:13]line СДАЧА: 0.00 [21:31:13]line НСП 1% : 1.77 [21:31:13]line НДС 12% : 21.30 [21:31:13]line Наличными: 200.00 [21:31:13]line Безнал.: 0.00 [21:31:13]line Место: АЗС № 108 "Партнер Нефть" [21:31:13]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [21:31:13]line СНО: Общий режим [21:31:13]line Чек 276 14.04.2024 21:31 [21:31:13]line Смена: 116 ФФД: 1.0 [21:31:13]line ЗНМ: 0300000027 [21:31:13]line РНМ: 0000138879044617 [21:31:13]line Версия ККМ: 001 [21:31:13]line ФМ: 0000000000963154 [21:31:13]line ФД: 29366 [21:31:13]line ФПД: 81462329747717 [21:31:13]line 1/tax-web-control/client/api/v1/ticket?date=20240414T213112&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29366&fm=81462329747717&tin=02508201610067®Number=0000138879044617&sum=20000 [21:31:13]written 0, free lines is 4095 [21:31:13]OFD Sender: Processing packet 29366 [packets to send 8, broken 7] [21:31:13]ProducePacketName [21:31:13]name=ofd_packets/00029366 [21:31:13]OFD Sender: To server: pG, [21:31:13]CommunicateWithHost lk.salyk.kg:30040 [21:31:13]ConnectInit lk.salyk.kg [21:31:13]Connected sock=10 [21:31:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 64 25 07 01 29 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 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 14 01 00 00 F4 03 04 00 20 4B 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B6 72 00 00 35 04 06 00 4A 16 ED 3A 29 05 FB A6 3D B5 7D CC 45 A6 [21:31:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 E6 E3 47 00 CC B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B6 72 00 00 F4 03 04 00 C3 F5 1B 66 B6 04 01 00 00 DF 13 F6 8E 62 37 B5 2E [21:31:13]CommunicateWithHost err = 0 [21:31:13]CheckOFDResponse [21:31:13]1017 (14) - 77093643461234 [21:31:13]1041 (16) - 0000000000963154 [21:31:13]1040 (4) - 29366 [21:31:13]1012 (4) - 14.04.2024 15:26 [21:31:13]1206 (1) - 0 [21:31:13]OFD Sender: Remove packet 29366 [21:31:13]ProducePacketName [21:31:13]name=ofd_packets/00029366 [21:31:13]NVStorageDeleteData [21:31:13]Write to MH i2c: 01 00 00 88 0A 92 [21:31:13]Write i2c OK [21:31:13]MH_I2C_Read... [21:31:13]Read from MH i2c: 01 [21:31:13]MH_I2C_Read... [21:31:13]Read from MH i2c: 01 07 00 [21:31:13]MH_I2C_Read... [21:31:13]Read from MH i2c: 01 07 00 88 0A 00 00 00 00 00 C0 0C 65 [21:31:13]RasterBufferAndPrint [21:31:13]line [21:31:13]line [21:31:13]line [21:31:13]line [21:31:13]line [21:31:13]written 0, free lines is 3268 [21:31:13]MH_Cut [21:31:13]Write to MH i2c: D1 01 00 8F 0A 01 6B [21:31:13]Write i2c OK [21:31:13]MH_I2C_Read... [21:31:13]Read from MH i2c: D1 [21:31:13]MH_I2C_Read... [21:31:13]Read from MH i2c: D1 01 00 [21:31:13]MH_I2C_Read... [21:31:13]Read from MH i2c: D1 01 00 8F 0A 00 6A [21:31:13]Write to MH i2c: 01 00 00 90 0A 9A [21:31:13]Write i2c OK [21:31:13]MH_I2C_Read... [21:31:14]OFD Sender: No OFD packet to send [21:31:14]*** Cut start [21:31:14]*** Partial cut [21:31:14]*** CUTSNS_PIN = 1 [21:31:14]*** CUTSNS_PIN = 0 [21:31:14]*** Brake cut motor [21:31:15]Read from MH i2c: 01 [21:31:15]MH_I2C_Read... [21:31:15]*** Stop cut motor [21:31:15]*** Cut end [21:31:15]Read from MH i2c: 01 07 00 [21:31:15]MH_I2C_Read... [21:31:15]Read from MH i2c: 01 07 00 90 0A 00 00 00 00 00 FF 0F AF [21:31:15]process_action close_receipt done [21:31:15]requested_data is exist [21:31:15]produce_requested_data [21:31:15]requested_item fm.sn is exist - process it [21:31:15]wFMCommunicate request_size=4 [21:31:15]MH_SAM_APDU [21:31:15]CAPDU: 80 11 00 00 [21:31:15]Write to MH i2c: E2 08 00 91 0A 80 11 00 00 00 00 00 00 15 [21:31:15]Write i2c OK [21:31:15]MH_I2C_Read... [21:31:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:31:15]Read from MH i2c: E2 [21:31:15]MH_I2C_Read... [21:31:15]Read from MH i2c: E2 17 00 [21:31:15]MH_I2C_Read... [21:31:15]Read from MH i2c: E2 17 00 91 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 64 [21:31:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:31:15]wFMCommunicate OK [21:31:15]requested_item fd.num is exist - process it [21:31:15]SAM_PROTO_GetFieldsCounters [21:31:15]wFMCommunicate request_size=4 [21:31:15]MH_SAM_APDU [21:31:15]CAPDU: 80 13 00 00 [21:31:15]Write to MH i2c: E2 08 00 92 0A 80 13 00 00 00 00 00 00 18 [21:31:15]Write i2c OK [21:31:15]MH_I2C_Read... [21:31:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:31:15]Read from MH i2c: E2 [21:31:15]MH_I2C_Read... [21:31:15]Read from MH i2c: E2 62 00 [21:31:15]MH_I2C_Read... [21:31:15]Read from MH i2c: E2 62 00 92 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B6 72 00 00 0E 04 04 00 74 00 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 31 [21:31:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B6 72 00 00 0E 04 04 00 74 00 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 [21:31:15]wFMCommunicate OK [21:31:15]SAM_PROTO_GetFieldsCounters done [21:31:15]requested_item shift.num is exist - process it [21:31:15]requested_item shift.opened is exist - process it [21:31:15]req_shift_opened [21:31:15]FM_GetShiftState [21:31:15]SAM_PROTO_GetShiftState [21:31:15]wFMCommunicate request_size=4 [21:31:15]MH_SAM_APDU [21:31:15]CAPDU: 80 13 01 00 [21:31:15]Write to MH i2c: E2 08 00 93 0A 80 13 01 00 00 00 00 00 1A [21:31:15]Write i2c OK [21:31:15]MH_I2C_Read... [21:31:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:31:15]Read from MH i2c: E2 [21:31:15]MH_I2C_Read... [21:31:15]Read from MH i2c: E2 0E 00 [21:31:15]MH_I2C_Read... [21:31:15]Read from MH i2c: E2 0E 00 93 0A 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 C6 [21:31:15]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [21:31:15]wFMCommunicate OK [21:31:15]SAM_PROTO_GetShiftState done [21:31:15]FM_GetShiftState done [21:31:15]req_shift_opened done [21:31:15]requested_item shift.open_date is exist - process it [21:31:15]req_shift_open_date [21:31:15]req_shift_open_date done [21:31:15]produce_requested_data done [21:31:15]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29366,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [21:31:15]process_action_free close_receipt [21:31:15]json_value_free [21:31:15]json_value_free done [21:31:15]process_json_proto returns [21:31:15]Send response to host [21:31:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29366,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [21:31:15]free response buf [21:31:15]execute_script done [21:31:15]execute_script returns [21:31:15]free content buf [21:31:15]Sock 9.Close socket [21:31:15]Sock 9.Thread stoped [21:31:19]OFD Sender: No OFD packet to send [21:31:24]OFD Sender: No OFD packet to send [21:31:29]OFD Sender: No OFD packet to send [21:31:34]OFD Sender: No OFD packet to send [21:31:39]OFD Sender: No OFD packet to send [21:31:44]OFD Sender: No OFD packet to send [21:31:49]OFD Sender: No OFD packet to send [21:31:54]OFD Sender: No OFD packet to send [21:31:59]OFD Sender: No OFD packet to send [21:32:04]OFD Sender: No OFD packet to send [21:32:09]OFD Sender: No OFD packet to send [21:32:14]OFD Sender: No OFD packet to send [21:32:19]OFD Sender: No OFD packet to send [21:32:24]OFD Sender: No OFD packet to send [21:32:29]OFD Sender: No OFD packet to send [21:32:34]OFD Sender: No OFD packet to send [21:32:39]OFD Sender: No OFD packet to send [21:32:44]OFD Sender: No OFD packet to send [21:32:49]OFD Sender: No OFD packet to send [21:32:54]OFD Sender: No OFD packet to send [21:32:59]OFD Sender: No OFD packet to send [21:33:02]accept exits with 8 [21:33:02]New connection [21:33:02]New thread 3067112804 created [21:33:02]Thread 3066969444 joined [21:33:02]Waiting for new connection... [21:33:02] Sock 8.Parse request [21:33:02]Sock 8.Check first char [21:33:02]Sock 8.First char is OK [21:33:02]request: POST /json_proto HTTP/1.0 [21:33:02]Method: POST [21:33:02]URL: /json_proto [21:33:02]Method is POST - this is cgi request [21:33:02]url: /json_proto [21:33:02]query_string will be loaded in cgi processing [21:33:02]execute_cgi json_proto POST (null) [21:33:02]execute_cgi path=json_proto method=POST [21:33:02]POST find Content-Length [21:33:02]Host: 172.17.33.3:8080 [21:33:02]Content-Length: 677 [21:33:02]Content-Type: application/json [21:33:02] [21:33:02]POST finish read [21:33:02]Found Content-Length = 677 [21:33:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347762", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.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" ] } } [21:33:02]execute_script... [21:33: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)347762", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.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" ] } } [21:33:02]POST & json_proto [21:33:02]process_json_proto [21:33:02]json parsed OK: [21:33:02]protocol is kg_v1.0 [21:33:02]action value=close_receipt [21:33:02]process_action close_receipt [21:33:02]cmd_close_receipt [21:33:02]MH_GetDate [21:33:02]Write to MH i2c: F0 00 00 94 0A 8D [21:33:02]Write i2c OK [21:33:02]MH_I2C_Read... [21:33:02]Read from MH i2c: F0 [21:33:02]MH_I2C_Read... [21:33:02]Read from MH i2c: F0 09 00 [21:33:02]MH_I2C_Read... [21:33:02]Read from MH i2c: F0 09 00 94 0A 00 8F 4B 1C 66 23 5B 8F 65 64 [21:33:02]GetLastDocTimeStamp 1713130272 [21:33:02]current date 1713130383 [21:33:02]FM_GetShiftState [21:33:02]SAM_PROTO_GetShiftState [21:33:02]wFMCommunicate request_size=4 [21:33:02]MH_SAM_APDU [21:33:02]CAPDU: 80 13 01 00 [21:33:02]Write to MH i2c: E2 08 00 95 0A 80 13 01 00 00 00 00 00 1C [21:33:02]Write i2c OK [21:33:02]MH_I2C_Read... [21:33:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:33:02]Read from MH i2c: E2 [21:33:02]MH_I2C_Read... [21:33:02]Read from MH i2c: E2 0E 00 [21:33:02]MH_I2C_Read... [21:33:02]Read from MH i2c: E2 0E 00 95 0A 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 C8 [21:33:02]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [21:33:02]wFMCommunicate OK [21:33:02]SAM_PROTO_GetShiftState done [21:33:02]FM_GetShiftState done [21:33:02]opened in 1713053951 [21:33:02]opened+sec_in_day 1713140351 [21:33:02]quantity*price = 62049 [21:33:02]sum+1 = 62051 [21:33:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 620.00 Внесено: 620.00 СДАЧА: 0.00 НСП 1% : 5.49 НДС 12% : 65.89 Наличными: 620.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 277 14.04.2024 21:33 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29367 ФПД: 44442857610715 1/tax-web-control/client/api/v1/ticket?date=20240414T213303&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29367&fm=44442857610715&tin=02508201610067®Number=0000138879044617&sum=62000 [21:33:03]StoreToDocumentArchive [21:33:03]shift 116 fd 29367 [21:33:03]save to /storage/0116/doc_00029367 [21:33:03]save last doc name /storage/0116/doc_00029367 to /storage/kkm_last_doc_name [21:33:03]save OK [21:33:03]Clear old archive folders... [21:33:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:33:03]tlvbuf is B6DCF720 [21:33:03]SAM_PROTO_ClearQueue [21:33:03]wFMCommunicate request_size=4 [21:33:03]MH_SAM_APDU [21:33:03]CAPDU: 80 09 00 00 [21:33:03]Write to MH i2c: E2 08 00 A2 0A 80 09 00 00 00 00 00 00 1E [21:33:03]Write i2c OK [21:33:03]MH_I2C_Read... [21:33:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:33:03]Read from MH i2c: E2 [21:33:03]MH_I2C_Read... [21:33:03]Read from MH i2c: E2 03 00 [21:33:03]MH_I2C_Read... [21:33:03]Read from MH i2c: E2 03 00 A2 0A 00 90 00 20 [21:33:03]RAPDU: 90 00 [21:33:03]wFMCommunicate OK [21:33:03]SAM_PROTO_ClearQueue done [21:33:03]KKMCreateOFDPacket [21:33:03]OFDProtocolAddRootSTLVToBuf [21:33:03]FM_MakeSignedData [21:33:03]FM_MakeSignedData [21:33:03]SAM_PROTO_SignData [21:33:03]wFMCommunicate request_size=4 [21:33:03]MH_SAM_APDU [21:33:03]CAPDU: 80 0D 01 02 [21:33:03]Write to MH i2c: E2 08 00 A3 0A 80 0D 01 02 00 00 00 00 26 [21:33:03]Write i2c OK [21:33:03]MH_I2C_Read... [21:33:03]Read from MH i2c: E2 [21:33:03]MH_I2C_Read... [21:33:03]Read from MH i2c: E2 03 00 [21:33:03]MH_I2C_Read... [21:33:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:33:03]Read from MH i2c: E2 03 00 A3 0A 00 90 00 21 [21:33:03]RAPDU: 90 00 [21:33:03]wFMCommunicate OK [21:33:03]wFMCommunicate request_size=255 [21:33:03]MH_SAM_APDU [21:33: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 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 15 01 00 00 F4 03 04 00 8F 4B 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B7 72 00 00 35 04 06 00 28 [21:33:03]Write to MH i2c: E2 02 01 A4 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 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 15 01 00 00 F4 03 04 00 8F 4B 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B7 72 00 00 35 04 06 00 28 00 00 27 [21:33:03]Write i2c OK [21:33:03]MH_I2C_Read... [21:33:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:33:03]Read from MH i2c: E2 [21:33:03]MH_I2C_Read... [21:33:03]Read from MH i2c: E2 03 00 [21:33:03]MH_I2C_Read... [21:33:03]Read from MH i2c: E2 03 00 A4 0A 00 90 00 22 [21:33:03]RAPDU: 90 00 [21:33:03]wFMCommunicate OK [21:33:03]wFMCommunicate request_size=10 [21:33:03]MH_SAM_APDU [21:33:03]CAPDU: 80 0D 02 02 05 6B A8 BD 9D DB [21:33:03]Write to MH i2c: E2 0D 00 A5 0A 80 0D 02 02 05 00 6B A8 BD 9D DB 00 00 7B [21:33:03]Write i2c OK [21:33:03]MH_I2C_Read... [21:33:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:33:03]Read from MH i2c: E2 [21:33:03]MH_I2C_Read... [21:33:03]Read from MH i2c: E2 03 00 [21:33:03]MH_I2C_Read... [21:33:03]Read from MH i2c: E2 03 00 A5 0A 00 90 00 23 [21:33:03]RAPDU: 90 00 [21:33:03]wFMCommunicate OK [21:33:03]wFMCommunicate request_size=4 [21:33:03]MH_SAM_APDU [21:33:03]CAPDU: 80 0D 03 02 [21:33:03]Write to MH i2c: E2 08 00 A6 0A 80 0D 03 02 00 00 00 00 2B [21:33:03]Write i2c OK [21:33:03]MH_I2C_Read... [21:33:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:33:04]Read from MH i2c: E2 [21:33:04]MH_I2C_Read... [21:33:04]Read from MH i2c: E2 0B 00 [21:33:04]MH_I2C_Read... [21:33:04]Read from MH i2c: E2 0B 00 A6 0A 00 F9 56 C2 D0 F7 BA 0C F3 90 00 BD [21:33:04]RAPDU: F9 56 C2 D0 F7 BA 0C F3 90 00 [21:33:04]wFMCommunicate OK [21:33:04]SAM_PROTO_SignData done [21:33:04]FM_MakeSignedData done [21:33:04]CreateOFDProtocolMessage [21:33:04]wFMCommunicate request_size=4 [21:33:04]MH_SAM_APDU [21:33:04]CAPDU: 80 11 00 00 [21:33:04]Write to MH i2c: E2 08 00 A7 0A 80 11 00 00 00 00 00 00 2B [21:33:04]Write i2c OK [21:33:04]MH_I2C_Read... [21:33:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:33:04]Read from MH i2c: E2 [21:33:04]MH_I2C_Read... [21:33:04]Read from MH i2c: E2 17 00 [21:33:04]MH_I2C_Read... [21:33:04]Read from MH i2c: E2 17 00 A7 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 7A [21:33:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:33:04]wFMCommunicate OK [21:33:04]CreateOFDProtocolMessage done [21:33:04]OFDSenderStorePacket 29367 [21:33:04]StoreOFDPacket docnum=29367 [21:33:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 4E 0C 07 01 81 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 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 15 01 00 00 F4 03 04 00 8F 4B 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B7 72 00 00 35 04 06 00 28 6B A8 BD 9D DB F9 56 C2 D0 F7 BA 0C F3 [21:33:04]CheckFolder [21:33:04]dirname=/storage/ofd_packets [21:33:04]CheckFolder done [21:33:04]ProducePacketName [21:33:04]name=ofd_packets/00029367 [21:33:04]NVStorageSaveData ofd_packets/00029367 [21:33:04]File name is /storage/ofd_packets/00029367 [21:33:04]Write 301 bytes [21:33:04]NVStorageSaveData done [21:33:04]OFDSenderStorePacket done [21:33:04]KKMCreateOFDPacket done [21:33:04]NVStorageSaveData kkm_last_timestamp [21:33:04]File name is /storage/kkm_last_timestamp [21:33:04]Write 4 bytes [21:33:04]NVStorageSaveData done [21:33:04]ExternCall_PrintAddStr [21:33:04]wPrintStart [21:33:04]Write to MH i2c: 01 00 00 A8 0A B2 [21:33:04]Write i2c OK [21:33:04]MH_I2C_Read... [21:33:04]Read from MH i2c: 01 [21:33:04]MH_I2C_Read... [21:33:04]Read from MH i2c: 01 07 00 [21:33:04]MH_I2C_Read... [21:33:04]Read from MH i2c: 01 07 00 A8 0A 00 00 00 00 00 FF 0F C7 [21:33:04]RasterBufferAndPrint [21:33:04]line Счет N : (1)347762 [21:33:04]line ИНН: 02508201610067 [21:33:04]line Контрольно-Кассовый Чек [21:33:04]line ПРОДАЖА [21:33:04]line ТРК (МРК, ГНК) : 23 [21:33:04]line Товар: 2710124130 [21:33:04]line Аи-92-К-5 [21:33:04]line 9.650 * 64.30 [21:33:04]line = 620.50 [21:33:04]line НДС 12% НСП 1% [21:33:04]line > о реализуемом товаре [21:33:04]line ОКРУГЛЕНИЕ: -0.50 [21:33:04]line ИТОГО: 620.00 [21:33:04]line Внесено: 620.00 [21:33:04]line СДАЧА: 0.00 [21:33:04]line НСП 1% : 5.49 [21:33:04]line НДС 12% : 65.89 [21:33:04]line Наличными: 620.00 [21:33:04]line Безнал.: 0.00 [21:33:04]line Место: АЗС № 108 "Партнер Нефть" [21:33:04]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [21:33:04]line СНО: Общий режим [21:33:04]line Чек 277 14.04.2024 21:33 [21:33:04]line Смена: 116 ФФД: 1.0 [21:33:04]line ЗНМ: 0300000027 [21:33:04]line РНМ: 0000138879044617 [21:33:04]line Версия ККМ: 001 [21:33:04]line ФМ: 0000000000963154 [21:33:04]line ФД: 29367 [21:33:04]line ФПД: 44442857610715 [21:33:04]line 1/tax-web-control/client/api/v1/ticket?date=20240414T213303&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29367&fm=44442857610715&tin=02508201610067®Number=0000138879044617&sum=62000 [21:33:04]OFD Sender: Processing packet 29367 [packets to send 8, broken 7] [21:33:04]ProducePacketName [21:33:04]name=ofd_packets/00029367 [21:33:04]OFD Sender: To server: pG, [21:33:04]CommunicateWithHost lk.salyk.kg:30040 [21:33:04]ConnectInit lk.salyk.kg [21:33:04]written 0, free lines is 4095 [21:33:04]Connected sock=10 [21:33:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 4E 0C 07 01 81 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 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 15 01 00 00 F4 03 04 00 8F 4B 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B7 72 00 00 35 04 06 00 28 6B A8 BD 9D DB F9 56 C2 D0 F7 BA 0C F3 [21:33:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 27 5C 47 00 54 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B7 72 00 00 F4 03 04 00 32 F6 1B 66 B6 04 01 00 00 54 2F 18 68 C1 E2 EA 14 [21:33:04]CommunicateWithHost err = 0 [21:33:04]CheckOFDResponse [21:33:04]1017 (14) - 77093643461234 [21:33:04]1041 (16) - 0000000000963154 [21:33:04]1040 (4) - 29367 [21:33:04]1012 (4) - 14.04.2024 15:28 [21:33:04]1206 (1) - 0 [21:33:04]OFD Sender: Remove packet 29367 [21:33:04]ProducePacketName [21:33:04]name=ofd_packets/00029367 [21:33:04]NVStorageDeleteData [21:33:04]Write to MH i2c: 01 00 00 D2 0A DC [21:33:04]Write i2c OK [21:33:04]MH_I2C_Read... [21:33:04]Read from MH i2c: 01 [21:33:04]MH_I2C_Read... [21:33:04]Read from MH i2c: 01 07 00 [21:33:04]MH_I2C_Read... [21:33:04]Read from MH i2c: 01 07 00 D2 0A 00 00 00 00 00 C2 0C B1 [21:33:04]RasterBufferAndPrint [21:33:04]line [21:33:04]line [21:33:04]line [21:33:04]line [21:33:04]line [21:33:04]written 0, free lines is 3270 [21:33:04]MH_Cut [21:33:04]Write to MH i2c: D1 01 00 D9 0A 01 B5 [21:33:04]Write i2c OK [21:33:04]MH_I2C_Read... [21:33:04]Read from MH i2c: D1 [21:33:04]MH_I2C_Read... [21:33:04]Read from MH i2c: D1 01 00 [21:33:04]MH_I2C_Read... [21:33:04]Read from MH i2c: D1 01 00 D9 0A 00 B4 [21:33:04]Write to MH i2c: 01 00 00 DA 0A E4 [21:33:04]Write i2c OK [21:33:04]MH_I2C_Read... [21:33:05]OFD Sender: No OFD packet to send [21:33:05]*** Cut start [21:33:05]*** Partial cut [21:33:05]*** CUTSNS_PIN = 1 [21:33:05]*** CUTSNS_PIN = 0 [21:33:05]*** Brake cut motor [21:33:06]Read from MH i2c: 01 [21:33:06]MH_I2C_Read... [21:33:06]*** Stop cut motor [21:33:06]*** Cut end [21:33:06]Read from MH i2c: 01 07 00 [21:33:06]MH_I2C_Read... [21:33:06]Read from MH i2c: 01 07 00 DA 0A 00 00 00 00 00 FF 0F F9 [21:33:06]process_action close_receipt done [21:33:06]requested_data is exist [21:33:06]produce_requested_data [21:33:06]requested_item fm.sn is exist - process it [21:33:06]wFMCommunicate request_size=4 [21:33:06]MH_SAM_APDU [21:33:06]CAPDU: 80 11 00 00 [21:33:06]Write to MH i2c: E2 08 00 DB 0A 80 11 00 00 00 00 00 00 5F [21:33:06]Write i2c OK [21:33:06]MH_I2C_Read... [21:33:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:33:06]Read from MH i2c: E2 [21:33:06]MH_I2C_Read... [21:33:06]Read from MH i2c: E2 17 00 [21:33:06]MH_I2C_Read... [21:33:06]Read from MH i2c: E2 17 00 DB 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 AE [21:33:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:33:06]wFMCommunicate OK [21:33:06]requested_item fd.num is exist - process it [21:33:06]SAM_PROTO_GetFieldsCounters [21:33:06]wFMCommunicate request_size=4 [21:33:06]MH_SAM_APDU [21:33:06]CAPDU: 80 13 00 00 [21:33:06]Write to MH i2c: E2 08 00 DC 0A 80 13 00 00 00 00 00 00 62 [21:33:06]Write i2c OK [21:33:06]MH_I2C_Read... [21:33:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:33:06]Read from MH i2c: E2 [21:33:06]MH_I2C_Read... [21:33:06]Read from MH i2c: E2 62 00 [21:33:06]MH_I2C_Read... [21:33:06]Read from MH i2c: E2 62 00 DC 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B7 72 00 00 0E 04 04 00 74 00 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 7F [21:33:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B7 72 00 00 0E 04 04 00 74 00 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 [21:33:06]wFMCommunicate OK [21:33:06]SAM_PROTO_GetFieldsCounters done [21:33:06]requested_item shift.num is exist - process it [21:33:06]requested_item shift.opened is exist - process it [21:33:06]req_shift_opened [21:33:06]FM_GetShiftState [21:33:06]SAM_PROTO_GetShiftState [21:33:06]wFMCommunicate request_size=4 [21:33:06]MH_SAM_APDU [21:33:06]CAPDU: 80 13 01 00 [21:33:06]Write to MH i2c: E2 08 00 DD 0A 80 13 01 00 00 00 00 00 64 [21:33:06]Write i2c OK [21:33:06]MH_I2C_Read... [21:33:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:33:06]Read from MH i2c: E2 [21:33:06]MH_I2C_Read... [21:33:06]Read from MH i2c: E2 0E 00 [21:33:06]MH_I2C_Read... [21:33:06]Read from MH i2c: E2 0E 00 DD 0A 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 10 [21:33:06]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [21:33:06]wFMCommunicate OK [21:33:06]SAM_PROTO_GetShiftState done [21:33:06]FM_GetShiftState done [21:33:06]req_shift_opened done [21:33:06]requested_item shift.open_date is exist - process it [21:33:06]req_shift_open_date [21:33:06]req_shift_open_date done [21:33:06]produce_requested_data done [21:33:06]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29367,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [21:33:06]process_action_free close_receipt [21:33:06]json_value_free [21:33:06]json_value_free done [21:33:06]process_json_proto returns [21:33:06]Send response to host [21:33:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29367,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [21:33:06]free response buf [21:33:06]execute_script done [21:33:06]execute_script returns [21:33:06]free content buf [21:33:06]Sock 8.Close socket [21:33:06]Sock 8.Thread stoped [21:33:10]OFD Sender: No OFD packet to send [21:33:15]OFD Sender: No OFD packet to send [21:33:20]OFD Sender: No OFD packet to send [21:33:25]OFD Sender: No OFD packet to send [21:33:30]OFD Sender: No OFD packet to send [21:33:35]OFD Sender: No OFD packet to send [21:33:40]OFD Sender: No OFD packet to send [21:33:45]OFD Sender: No OFD packet to send [21:33:50]OFD Sender: No OFD packet to send [21:33:55]OFD Sender: No OFD packet to send [21:34:00]OFD Sender: No OFD packet to send [21:34:05]OFD Sender: No OFD packet to send [21:34:10]OFD Sender: No OFD packet to send [21:34:15]OFD Sender: No OFD packet to send [21:34:20]OFD Sender: No OFD packet to send [21:34:25]OFD Sender: No OFD packet to send [21:34:30]OFD Sender: No OFD packet to send [21:34:35]OFD Sender: No OFD packet to send [21:34:40]OFD Sender: No OFD packet to send [21:34:45]OFD Sender: No OFD packet to send [21:34:50]OFD Sender: No OFD packet to send [21:34:55]OFD Sender: No OFD packet to send [21:35:00]OFD Sender: No OFD packet to send [21:35:05]OFD Sender: No OFD packet to send [21:35:10]OFD Sender: No OFD packet to send [21:35:15]OFD Sender: No OFD packet to send [21:35:15]accept exits with 9 [21:35:15]New connection [21:35:15]New thread 3066969444 created [21:35:15]Thread 3067112804 joined [21:35:15]Waiting for new connection... [21:35:15] Sock 9.Parse request [21:35:15]Sock 9.Check first char [21:35:15]Sock 9.First char is OK [21:35:15]request: POST /json_proto HTTP/1.0 [21:35:15]Method: POST [21:35:15]URL: /json_proto [21:35:15]Method is POST - this is cgi request [21:35:15]url: /json_proto [21:35:15]query_string will be loaded in cgi processing [21:35:15]execute_cgi json_proto POST (null) [21:35:15]execute_cgi path=json_proto method=POST [21:35:15]POST find Content-Length [21:35:15]Host: 172.17.33.3:8080 [21:35:15]Content-Length: 822 [21:35:15]Content-Type: application/json [21:35:15] [21:35:15]POST finish read [21:35:15]Found Content-Length = 822 [21:35:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347763", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 30.400, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:35:15]execute_script... [21:35: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)347763", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 30.400, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:35:15]POST & json_proto [21:35:15]process_json_proto [21:35:15]json parsed OK: [21:35:15]protocol is kg_v1.0 [21:35:15]action value=close_receipt [21:35:15]process_action close_receipt [21:35:15]cmd_close_receipt [21:35:15]MH_GetDate [21:35:15]Write to MH i2c: F0 00 00 DE 0A D7 [21:35:15]Write i2c OK [21:35:15]MH_I2C_Read... [21:35:15]Read from MH i2c: F0 [21:35:15]MH_I2C_Read... [21:35:15]Read from MH i2c: F0 09 00 [21:35:15]MH_I2C_Read... [21:35:15]Read from MH i2c: F0 09 00 DE 0A 00 15 4C 1C 66 23 5B 8F 65 35 [21:35:15]GetLastDocTimeStamp 1713130383 [21:35:15]current date 1713130517 [21:35:15]FM_GetShiftState [21:35:15]SAM_PROTO_GetShiftState [21:35:15]wFMCommunicate request_size=4 [21:35:15]MH_SAM_APDU [21:35:15]CAPDU: 80 13 01 00 [21:35:15]Write to MH i2c: E2 08 00 DF 0A 80 13 01 00 00 00 00 00 66 [21:35:15]Write i2c OK [21:35:15]MH_I2C_Read... [21:35:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:35:15]Read from MH i2c: E2 [21:35:15]MH_I2C_Read... [21:35:15]Read from MH i2c: E2 0E 00 [21:35:15]MH_I2C_Read... [21:35:15]Read from MH i2c: E2 0E 00 DF 0A 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 12 [21:35:15]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [21:35:15]wFMCommunicate OK [21:35:15]SAM_PROTO_GetShiftState done [21:35:15]FM_GetShiftState done [21:35:15]opened in 1713053951 [21:35:15]opened+sec_in_day 1713140351 [21:35:15]quantity*price = 100016 [21:35:15]sum+1 = 100017 [21:35:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 278 14.04.2024 21:35 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 29368 ФПД: 65991275123900 1/tax-web-control/client/api/v1/ticket?date=20240414T213517&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29368&fm=65991275123900&tin=02508201610067®Number=0000138879044617&sum=100016 [21:35:17]StoreToDocumentArchive [21:35:17]shift 116 fd 29368 [21:35:17]save to /storage/0116/doc_00029368 [21:35:17]save last doc name /storage/0116/doc_00029368 to /storage/kkm_last_doc_name [21:35:17]save OK [21:35:17]Clear old archive folders... [21:35:17]ProcessDocumentItem done err = 0, tmpTLVsize=250 [21:35:17]tlvbuf is 0020B940 [21:35:17]SAM_PROTO_ClearQueue [21:35:17]wFMCommunicate request_size=4 [21:35:17]MH_SAM_APDU [21:35:17]CAPDU: 80 09 00 00 [21:35:17]Write to MH i2c: E2 08 00 EC 0A 80 09 00 00 00 00 00 00 68 [21:35:17]Write i2c OK [21:35:17]MH_I2C_Read... [21:35:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:35:17]Read from MH i2c: E2 [21:35:17]MH_I2C_Read... [21:35:17]Read from MH i2c: E2 03 00 [21:35:17]MH_I2C_Read... [21:35:17]Read from MH i2c: E2 03 00 EC 0A 00 90 00 6A [21:35:17]RAPDU: 90 00 [21:35:17]wFMCommunicate OK [21:35:17]SAM_PROTO_ClearQueue done [21:35:17]KKMCreateOFDPacket [21:35:17]OFDProtocolAddRootSTLVToBuf [21:35:17]FM_MakeSignedData [21:35:17]FM_MakeSignedData [21:35:17]SAM_PROTO_SignData [21:35:17]wFMCommunicate request_size=4 [21:35:17]MH_SAM_APDU [21:35:17]CAPDU: 80 0D 01 02 [21:35:17]Write to MH i2c: E2 08 00 ED 0A 80 0D 01 02 00 00 00 00 70 [21:35:17]Write i2c OK [21:35:17]MH_I2C_Read... [21:35:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:35:17]Read from MH i2c: E2 [21:35:17]MH_I2C_Read... [21:35:17]Read from MH i2c: E2 03 00 [21:35:17]MH_I2C_Read... [21:35:17]Read from MH i2c: E2 03 00 ED 0A 00 90 00 6B [21:35:17]RAPDU: 90 00 [21:35:17]wFMCommunicate OK [21:35:17]wFMCommunicate request_size=255 [21:35:17]MH_SAM_APDU [21:35: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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 15 4C 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B8 72 00 00 35 04 06 00 3C 04 [21:35:17]Write to MH i2c: E2 02 01 EE 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 15 4C 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B8 72 00 00 35 04 06 00 3C 04 00 00 FE [21:35:17]Write i2c OK [21:35:17]MH_I2C_Read... [21:35:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:35:17]Read from MH i2c: E2 [21:35:17]MH_I2C_Read... [21:35:17]Read from MH i2c: E2 03 00 [21:35:17]MH_I2C_Read... [21:35:17]Read from MH i2c: E2 03 00 EE 0A 00 90 00 6C [21:35:17]RAPDU: 90 00 [21:35:17]wFMCommunicate OK [21:35:17]wFMCommunicate request_size=9 [21:35:17]MH_SAM_APDU [21:35:17]CAPDU: 80 0D 02 02 04 CA 83 14 BC [21:35:17]Write to MH i2c: E2 0C 00 EF 0A 80 0D 02 02 04 00 CA 83 14 BC 00 00 98 [21:35:17]Write i2c OK [21:35:17]MH_I2C_Read... [21:35:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:35:17]Read from MH i2c: E2 [21:35:17]MH_I2C_Read... [21:35:17]Read from MH i2c: E2 03 00 [21:35:17]MH_I2C_Read... [21:35:17]Read from MH i2c: E2 03 00 EF 0A 00 90 00 6D [21:35:17]RAPDU: 90 00 [21:35:17]wFMCommunicate OK [21:35:17]wFMCommunicate request_size=4 [21:35:17]MH_SAM_APDU [21:35:17]CAPDU: 80 0D 03 02 [21:35:17]Write to MH i2c: E2 08 00 F0 0A 80 0D 03 02 00 00 00 00 75 [21:35:17]Write i2c OK [21:35:17]MH_I2C_Read... [21:35:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:35:17]Read from MH i2c: E2 [21:35:17]MH_I2C_Read... [21:35:17]Read from MH i2c: E2 0B 00 [21:35:17]MH_I2C_Read... [21:35:17]Read from MH i2c: E2 0B 00 F0 0A 00 0E 4E 1F 07 00 25 3E F5 90 00 50 [21:35:17]RAPDU: 0E 4E 1F 07 00 25 3E F5 90 00 [21:35:17]wFMCommunicate OK [21:35:17]SAM_PROTO_SignData done [21:35:17]FM_MakeSignedData done [21:35:17]CreateOFDProtocolMessage [21:35:17]wFMCommunicate request_size=4 [21:35:17]MH_SAM_APDU [21:35:17]CAPDU: 80 11 00 00 [21:35:17]Write to MH i2c: E2 08 00 F1 0A 80 11 00 00 00 00 00 00 75 [21:35:17]Write i2c OK [21:35:17]MH_I2C_Read... [21:35:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:35:17]Read from MH i2c: E2 [21:35:17]MH_I2C_Read... [21:35:17]Read from MH i2c: E2 17 00 [21:35:17]MH_I2C_Read... [21:35:17]Read from MH i2c: E2 17 00 F1 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C4 [21:35:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:35:17]wFMCommunicate OK [21:35:17]CreateOFDProtocolMessage done [21:35:17]OFDSenderStorePacket 29368 [21:35:17]StoreOFDPacket docnum=29368 [21:35:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 9F C1 06 01 6E 00 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 15 4C 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B8 72 00 00 35 04 06 00 3C 04 CA 83 14 BC 0E 4E 1F 07 00 25 3E F5 [21:35:17]CheckFolder [21:35:17]dirname=/storage/ofd_packets [21:35:17]CheckFolder done [21:35:17]ProducePacketName [21:35:17]name=ofd_packets/00029368 [21:35:17]NVStorageSaveData ofd_packets/00029368 [21:35:17]File name is /storage/ofd_packets/00029368 [21:35:17]Write 300 bytes [21:35:17]NVStorageSaveData done [21:35:17]OFDSenderStorePacket done [21:35:17]KKMCreateOFDPacket done [21:35:17]NVStorageSaveData kkm_last_timestamp [21:35:17]File name is /storage/kkm_last_timestamp [21:35:17]Write 4 bytes [21:35:17]NVStorageSaveData done [21:35:17]ExternCall_PrintAddStr [21:35:17]wPrintStart [21:35:17]Write to MH i2c: 01 00 00 F2 0A FC [21:35:17]Write i2c OK [21:35:17]MH_I2C_Read... [21:35:17]Read from MH i2c: 01 [21:35:17]MH_I2C_Read... [21:35:17]Read from MH i2c: 01 07 00 [21:35:17]MH_I2C_Read... [21:35:17]Read from MH i2c: 01 07 00 F2 0A 00 00 00 00 00 FF 0F 11 [21:35:17]RasterBufferAndPrint [21:35:17]line Счет N : (1)347763 [21:35:17]line ИНН: 02508201610067 [21:35:17]line Контрольно-Кассовый Чек [21:35:17]line ПРОДАЖА [21:35:17]line ТРК (МРК, ГНК) : 71 [21:35:17]line Товар: 2711129700 [21:35:17]line ГАЗ-К-5 [21:35:17]line 30.400 * 32.90 [21:35:17]line = 1000.16 [21:35:17]line НДС 12% НСП 1% [21:35:17]line > о реализуемом товаре [21:35:17]line ИТОГО: 1000.16 [21:35:17]line НСП 1% : 8.85 [21:35:17]line НДС 12% : 106.21 [21:35:17]line Наличными: 0.00 [21:35:17]line Безнал.: 1000.16 [21:35:17]line Место: АЗС № 108 "Партнер Нефть" [21:35:17]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [21:35:17]line СНО: Общий режим [21:35:17]line Чек 278 14.04.2024 21:35 [21:35:17]line Смена: 116 ФФД: 1.0 [21:35:17]line ЗНМ: 0300000027 [21:35:17]line РНМ: 0000138879044617 [21:35:17]line Версия ККМ: 001 [21:35:17]line Платежная система: Бакай Банк [21:35:17]line ФМ: 0000000000963154 [21:35:17]line ФД: 29368 [21:35:17]line ФПД: 65991275123900 [21:35:17]line 1/tax-web-control/client/api/v1/ticket?date=20240414T213517&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29368&fm=65991275123900&tin=02508201610067®Number=0000138879044617&sum=100016 [21:35:17]OFD Sender: Processing packet 29368 [packets to send 8, broken 7] [21:35:17]ProducePacketName [21:35:17]name=ofd_packets/00029368 [21:35:17]OFD Sender: To server: pG, [21:35:17]CommunicateWithHost lk.salyk.kg:30040 [21:35:17]ConnectInit lk.salyk.kg [21:35:17]written 0, free lines is 4095 [21:35:18]Connected sock=10 [21:35:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 9F C1 06 01 6E 00 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 15 4C 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B8 72 00 00 35 04 06 00 3C 04 CA 83 14 BC 0E 4E 1F 07 00 25 3E F5 [21:35:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 3D D0 47 00 24 B5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B8 72 00 00 F4 03 04 00 B8 F6 1B 66 B6 04 01 00 00 B4 AF BE B2 3D 95 6D 1A [21:35:18]CommunicateWithHost err = 0 [21:35:18]CheckOFDResponse [21:35:18]1017 (14) - 77093643461234 [21:35:18]1041 (16) - 0000000000963154 [21:35:18]1040 (4) - 29368 [21:35:18]1012 (4) - 14.04.2024 15:31 [21:35:18]1206 (1) - 0 [21:35:18]OFD Sender: Remove packet 29368 [21:35:18]ProducePacketName [21:35:18]name=ofd_packets/00029368 [21:35:18]NVStorageDeleteData [21:35:18]Write to MH i2c: 01 00 00 1B 0B 26 [21:35:18]Write i2c OK [21:35:18]MH_I2C_Read... [21:35:18]Read from MH i2c: 01 [21:35:18]MH_I2C_Read... [21:35:18]Read from MH i2c: 01 07 00 [21:35:18]MH_I2C_Read... [21:35:18]Read from MH i2c: 01 07 00 1B 0B 00 00 00 00 00 D4 0C 0D [21:35:18]RasterBufferAndPrint [21:35:18]line [21:35:18]line [21:35:18]line [21:35:18]line [21:35:18]line [21:35:18]written 0, free lines is 3290 [21:35:18]MH_Cut [21:35:18]Write to MH i2c: D1 01 00 22 0B 01 FF [21:35:18]Write i2c OK [21:35:18]MH_I2C_Read... [21:35:18]Read from MH i2c: D1 [21:35:18]MH_I2C_Read... [21:35:18]Read from MH i2c: D1 01 00 [21:35:18]MH_I2C_Read... [21:35:18]Read from MH i2c: D1 01 00 22 0B 00 FE [21:35:18]Write to MH i2c: 01 00 00 23 0B 2E [21:35:18]Write i2c OK [21:35:18]MH_I2C_Read... [21:35:18]OFD Sender: No OFD packet to send [21:35:19]*** Cut start [21:35:19]*** Partial cut [21:35:19]*** CUTSNS_PIN = 1 [21:35:19]*** CUTSNS_PIN = 0 [21:35:19]*** Brake cut motor [21:35:19]Read from MH i2c: 01 [21:35:19]MH_I2C_Read... [21:35:19]*** Stop cut motor [21:35:19]*** Cut end [21:35:19]Read from MH i2c: 01 07 00 [21:35:19]MH_I2C_Read... [21:35:19]Read from MH i2c: 01 07 00 23 0B 00 00 00 00 00 FF 0F 43 [21:35:19]process_action close_receipt done [21:35:19]requested_data is exist [21:35:19]produce_requested_data [21:35:19]requested_item fm.sn is exist - process it [21:35:19]wFMCommunicate request_size=4 [21:35:19]MH_SAM_APDU [21:35:19]CAPDU: 80 11 00 00 [21:35:19]Write to MH i2c: E2 08 00 24 0B 80 11 00 00 00 00 00 00 A9 [21:35:19]Write i2c OK [21:35:19]MH_I2C_Read... [21:35:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:35:19]Read from MH i2c: E2 [21:35:19]MH_I2C_Read... [21:35:19]Read from MH i2c: E2 17 00 [21:35:19]MH_I2C_Read... [21:35:19]Read from MH i2c: E2 17 00 24 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F8 [21:35:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:35:19]wFMCommunicate OK [21:35:19]requested_item fd.num is exist - process it [21:35:19]SAM_PROTO_GetFieldsCounters [21:35:19]wFMCommunicate request_size=4 [21:35:19]MH_SAM_APDU [21:35:19]CAPDU: 80 13 00 00 [21:35:19]Write to MH i2c: E2 08 00 25 0B 80 13 00 00 00 00 00 00 AC [21:35:19]Write i2c OK [21:35:19]MH_I2C_Read... [21:35:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:35:20]Read from MH i2c: E2 [21:35:20]MH_I2C_Read... [21:35:20]Read from MH i2c: E2 62 00 [21:35:20]MH_I2C_Read... [21:35:20]Read from MH i2c: E2 62 00 25 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B8 72 00 00 0E 04 04 00 74 00 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 CD [21:35:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B8 72 00 00 0E 04 04 00 74 00 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 [21:35:20]wFMCommunicate OK [21:35:20]SAM_PROTO_GetFieldsCounters done [21:35:20]requested_item shift.num is exist - process it [21:35:20]requested_item shift.opened is exist - process it [21:35:20]req_shift_opened [21:35:20]FM_GetShiftState [21:35:20]SAM_PROTO_GetShiftState [21:35:20]wFMCommunicate request_size=4 [21:35:20]MH_SAM_APDU [21:35:20]CAPDU: 80 13 01 00 [21:35:20]Write to MH i2c: E2 08 00 26 0B 80 13 01 00 00 00 00 00 AE [21:35:20]Write i2c OK [21:35:20]MH_I2C_Read... [21:35:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:35:20]Read from MH i2c: E2 [21:35:20]MH_I2C_Read... [21:35:20]Read from MH i2c: E2 0E 00 [21:35:20]MH_I2C_Read... [21:35:20]Read from MH i2c: E2 0E 00 26 0B 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 5A [21:35:20]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [21:35:20]wFMCommunicate OK [21:35:20]SAM_PROTO_GetShiftState done [21:35:20]FM_GetShiftState done [21:35:20]req_shift_opened done [21:35:20]requested_item shift.open_date is exist - process it [21:35:20]req_shift_open_date [21:35:20]req_shift_open_date done [21:35:20]produce_requested_data done [21:35:20]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29368,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [21:35:20]process_action_free close_receipt [21:35:20]json_value_free [21:35:20]json_value_free done [21:35:20]process_json_proto returns [21:35:20]Send response to host [21:35:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29368,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [21:35:20]free response buf [21:35:20]execute_script done [21:35:20]execute_script returns [21:35:20]free content buf [21:35:20]Sock 9.Close socket [21:35:20]Sock 9.Thread stoped [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:13]OFD Sender: No OFD packet to send [21:38:18]OFD Sender: No OFD packet to send [21:38:23]OFD Sender: No OFD packet to send [21:38:28]OFD Sender: No OFD packet to send [21:38:29]accept exits with 8 [21:38:29]New connection [21:38:29]New thread 3067112804 created [21:38:29]Thread 3066969444 joined [21:38:29]Waiting for new connection... [21:38:29] Sock 8.Parse request [21:38:29]Sock 8.Check first char [21:38:29]Sock 8.First char is OK [21:38:29]request: POST /json_proto HTTP/1.0 [21:38:29]Method: POST [21:38:29]URL: /json_proto [21:38:29]Method is POST - this is cgi request [21:38:29]url: /json_proto [21:38:29]query_string will be loaded in cgi processing [21:38:29]execute_cgi json_proto POST (null) [21:38:29]execute_cgi path=json_proto method=POST [21:38:29]POST find Content-Length [21:38:29]Host: 172.17.33.3:8080 [21:38:29]Content-Length: 1200 [21:38:29]Content-Type: application/json [21:38:29] [21:38:29]POST finish read [21:38:29]Found Content-Length = 1200 [21:38:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043B\u0438\u043A\u0431\u0430\u0435\u0432\u0430. \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)347764\u000A14.04.2024 21:20\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 13\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 64.30\u000A\u0418\u0422\u041E\u0413: 1286.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3876755;3876756\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:38:29]execute_script... [21:38:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043B\u0438\u043A\u0431\u0430\u0435\u0432\u0430. \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)347764\u000A14.04.2024 21:20\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 13\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 64.30\u000A\u0418\u0422\u041E\u0413: 1286.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3876755;3876756\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:38:29]POST & json_proto [21:38:29]process_json_proto [21:38:29]json parsed OK: [21:38:29]protocol is kg_v1.0 [21:38:29]action value=print_text [21:38:29]process_action print_text [21:38:29]cmd_print_text [21:38:29]ExternCall_PrintAddStr [21:38:29]wPrintStart [21:38:29]Write to MH i2c: 01 00 00 27 0B 32 [21:38:29]Write i2c OK [21:38:29]MH_I2C_Read... [21:38:29]Read from MH i2c: 01 [21:38:29]MH_I2C_Read... [21:38:29]Read from MH i2c: 01 07 00 [21:38:29]MH_I2C_Read... [21:38:29]Read from MH i2c: 01 07 00 27 0B 00 00 00 00 00 FF 0F 47 [21:38:29]RasterBufferAndPrint [21:38:29]line *****ТОВАРНЫЙ ЧЕК***** [21:38:29]line АЗС 108 [21:38:29]line Партнер нефть [21:38:29]line 02508201610067 [21:38:29]line Кассир : Аликбаева. Д. [21:38:29]line Счет N : (1)347764 [21:38:29]line 14.04.2024 21:20 [21:38:29]line ПРОДАЖА [21:38:29]line ТРК (МРК, ГНК): 13 [21:38:29]line Вид ГСМ : 2710124130 [21:38:29]line Аи-92-К-5 [21:38:29]line 20.000 x 64.30 [21:38:29]line ИТОГ: 1286.00 [21:38:29]line Тип оплаты: Талоны: Партнер нефть [21:38:29]line 3876755;3876756 [21:38:29]line ______________________ [21:38:29]line (подпись) [21:38:29]written 0, free lines is 4095 [21:38:29]Write to MH i2c: 01 00 00 3B 0B 46 [21:38:29]Write i2c OK [21:38:29]MH_I2C_Read... [21:38:29]Read from MH i2c: 01 [21:38:29]MH_I2C_Read... [21:38:29]Read from MH i2c: 01 07 00 [21:38:29]MH_I2C_Read... [21:38:29]Read from MH i2c: 01 07 00 3B 0B 00 00 00 00 00 17 0E 72 [21:38:29]RasterBufferAndPrint [21:38:29]line [21:38:29]line [21:38:29]line [21:38:29]line [21:38:29]line [21:38:29]written 0, free lines is 3609 [21:38:29]MH_Cut [21:38:29]Write to MH i2c: D1 01 00 42 0B 01 1F [21:38:29]Write i2c OK [21:38:29]MH_I2C_Read... [21:38:29]Read from MH i2c: D1 [21:38:29]MH_I2C_Read... [21:38:29]Read from MH i2c: D1 01 00 [21:38:29]MH_I2C_Read... [21:38:29]Read from MH i2c: D1 01 00 42 0B 00 1E [21:38:29]Write to MH i2c: 01 00 00 43 0B 4E [21:38:29]Write i2c OK [21:38:29]MH_I2C_Read... [21:38:30]*** Cut start [21:38:30]*** Partial cut [21:38:30]*** CUTSNS_PIN = 1 [21:38:30]*** CUTSNS_PIN = 0 [21:38:30]*** Brake cut motor [21:38:30]Read from MH i2c: 01 [21:38:30]MH_I2C_Read... [21:38:30]Read from MH i2c: 01 07 00 [21:38:30]MH_I2C_Read... [21:38:30]*** Stop cut motor [21:38:30]*** Cut end [21:38:30]Read from MH i2c: 01 07 00 43 0B 00 00 00 00 00 FF 0F 63 [21:38:30]process_action print_text done [21:38:30]requested_data is exist [21:38:30]produce_requested_data [21:38:30]requested_item fm.sn is exist - process it [21:38:30]wFMCommunicate request_size=4 [21:38:30]MH_SAM_APDU [21:38:30]CAPDU: 80 11 00 00 [21:38:30]Write to MH i2c: E2 08 00 44 0B 80 11 00 00 00 00 00 00 C9 [21:38:30]Write i2c OK [21:38:30]MH_I2C_Read... [21:38:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:38:30]Read from MH i2c: E2 [21:38:30]MH_I2C_Read... [21:38:30]Read from MH i2c: E2 17 00 [21:38:30]MH_I2C_Read... [21:38:30]Read from MH i2c: E2 17 00 44 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 18 [21:38:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:38:30]wFMCommunicate OK [21:38:30]requested_item fd.num is exist - process it [21:38:30]SAM_PROTO_GetFieldsCounters [21:38:30]wFMCommunicate request_size=4 [21:38:30]MH_SAM_APDU [21:38:30]CAPDU: 80 13 00 00 [21:38:30]Write to MH i2c: E2 08 00 45 0B 80 13 00 00 00 00 00 00 CC [21:38:30]Write i2c OK [21:38:30]MH_I2C_Read... [21:38:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:38:31]Read from MH i2c: E2 [21:38:31]MH_I2C_Read... [21:38:31]Read from MH i2c: E2 62 00 [21:38:31]MH_I2C_Read... [21:38:31]Read from MH i2c: E2 62 00 45 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B8 72 00 00 0E 04 04 00 74 00 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 ED [21:38:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B8 72 00 00 0E 04 04 00 74 00 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 [21:38:31]wFMCommunicate OK [21:38:31]SAM_PROTO_GetFieldsCounters done [21:38:31]requested_item shift.num is exist - process it [21:38:31]requested_item shift.opened is exist - process it [21:38:31]req_shift_opened [21:38:31]FM_GetShiftState [21:38:31]SAM_PROTO_GetShiftState [21:38:31]wFMCommunicate request_size=4 [21:38:31]MH_SAM_APDU [21:38:31]CAPDU: 80 13 01 00 [21:38:31]Write to MH i2c: E2 08 00 46 0B 80 13 01 00 00 00 00 00 CE [21:38:31]Write i2c OK [21:38:31]MH_I2C_Read... [21:38:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:38:31]Read from MH i2c: E2 [21:38:31]MH_I2C_Read... [21:38:31]Read from MH i2c: E2 0E 00 [21:38:31]MH_I2C_Read... [21:38:31]Read from MH i2c: E2 0E 00 46 0B 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 7A [21:38:31]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [21:38:31]wFMCommunicate OK [21:38:31]SAM_PROTO_GetShiftState done [21:38:31]FM_GetShiftState done [21:38:31]req_shift_opened done [21:38:31]requested_item shift.open_date is exist - process it [21:38:31]req_shift_open_date [21:38:31]req_shift_open_date done [21:38:31]produce_requested_data done [21:38:31]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29368,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [21:38:31]process_action_free print_text [21:38:31]json_value_free [21:38:31]json_value_free done [21:38:31]process_json_proto returns [21:38:31]Send response to host [21:38:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29368,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [21:38:31]free response buf [21:38:31]execute_script done [21:38:31]execute_script returns [21:38:31]free content buf [21:38:31]Sock 8.Close socket [21:38:31]Sock 8.Thread stoped [21:38:33]OFD Sender: No OFD packet to send [21:38:38]OFD Sender: No OFD packet to send [21:38:43]OFD Sender: No OFD packet to send [21:38:48]OFD Sender: No OFD packet to send [21:38:53]OFD Sender: No OFD packet to send [21:38:58]OFD Sender: No OFD packet to send [21:39:03]OFD Sender: No OFD packet to send [21:39:08]OFD Sender: No OFD packet to send [21:39:13]OFD Sender: No OFD packet to send [21:39:18]OFD Sender: No OFD packet to send [21:39:23]accept exits with 9 [21:39:23]New connection [21:39:23]New thread 3066969444 created [21:39:23]Thread 3067112804 joined [21:39:23]Waiting for new connection... [21:39:23] Sock 9.Parse request [21:39:23]Sock 9.Check first char [21:39:23]Sock 9.First char is OK [21:39:23]request: POST /json_proto HTTP/1.0 [21:39:23]Method: POST [21:39:23]URL: /json_proto [21:39:23]Method is POST - this is cgi request [21:39:23]url: /json_proto [21:39:23]query_string will be loaded in cgi processing [21:39:23]execute_cgi json_proto POST (null) [21:39:23]execute_cgi path=json_proto method=POST [21:39:23]POST find Content-Length [21:39:23]Host: 172.17.33.3:8080 [21:39:23]Content-Length: 837 [21:39:23]Content-Type: application/json [21:39:23] [21:39:23]POST finish read [21:39:23]Found Content-Length = 837 [21:39:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347765", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 300.46 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:39:23]execute_script... [21:39: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)347765", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 300.46 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:39:23]POST & json_proto [21:39:23]process_json_proto [21:39:23]json parsed OK: [21:39:23]protocol is kg_v1.0 [21:39:23]action value=close_receipt [21:39:23]process_action close_receipt [21:39:23]cmd_close_receipt [21:39:23]MH_GetDate [21:39:23]Write to MH i2c: F0 00 00 47 0B 41 [21:39:23]Write i2c OK [21:39:23]MH_I2C_Read... [21:39:23]Read from MH i2c: F0 [21:39:23]MH_I2C_Read... [21:39:23]Read from MH i2c: F0 09 00 [21:39:23]MH_I2C_Read... [21:39:23]Read from MH i2c: F0 09 00 47 0B 00 0C 4D 1C 66 23 5B 8F 65 97 [21:39:23]GetLastDocTimeStamp 1713130517 [21:39:23]current date 1713130764 [21:39:23]FM_GetShiftState [21:39:23]SAM_PROTO_GetShiftState [21:39:23]wFMCommunicate request_size=4 [21:39:23]MH_SAM_APDU [21:39:23]CAPDU: 80 13 01 00 [21:39:23]Write to MH i2c: E2 08 00 48 0B 80 13 01 00 00 00 00 00 D0 [21:39:23]Write i2c OK [21:39:23]MH_I2C_Read... [21:39:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:39:23]Read from MH i2c: E2 [21:39:23]MH_I2C_Read... [21:39:23]Read from MH i2c: E2 0E 00 [21:39:23]MH_I2C_Read... [21:39:23]Read from MH i2c: E2 0E 00 48 0B 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 7C [21:39:23]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [21:39:23]wFMCommunicate OK [21:39:23]SAM_PROTO_GetShiftState done [21:39:23]FM_GetShiftState done [21:39:23]opened in 1713053951 [21:39:23]opened+sec_in_day 1713140351 [21:39:23]quantity*price = 30046 [21:39:23]sum+1 = 30047 [21:39:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.46 НСП 1% : 2.66 НДС 12% : 31.91 Наличными: 0.00 Безнал.: 300.46 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 279 14.04.2024 21:39 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 29369 ФПД: 227941770363238 1/tax-web-control/client/api/v1/ticket?date=20240414T213924&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29369&fm=227941770363238&tin=02508201610067®Number=0000138879044617&sum=30046 [21:39:24]StoreToDocumentArchive [21:39:24]shift 116 fd 29369 [21:39:24]save to /storage/0116/doc_00029369 [21:39:24]save last doc name /storage/0116/doc_00029369 to /storage/kkm_last_doc_name [21:39:24]save OK [21:39:24]Clear old archive folders... [21:39:24]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:39:24]tlvbuf is 001EE890 [21:39:24]SAM_PROTO_ClearQueue [21:39:24]wFMCommunicate request_size=4 [21:39:24]MH_SAM_APDU [21:39:24]CAPDU: 80 09 00 00 [21:39:24]Write to MH i2c: E2 08 00 55 0B 80 09 00 00 00 00 00 00 D2 [21:39:24]Write i2c OK [21:39:24]MH_I2C_Read... [21:39:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:39:24]Read from MH i2c: E2 [21:39:24]MH_I2C_Read... [21:39:24]Read from MH i2c: E2 03 00 [21:39:24]MH_I2C_Read... [21:39:24]Read from MH i2c: E2 03 00 55 0B 00 90 00 D4 [21:39:24]RAPDU: 90 00 [21:39:24]wFMCommunicate OK [21:39:24]SAM_PROTO_ClearQueue done [21:39:24]KKMCreateOFDPacket [21:39:24]OFDProtocolAddRootSTLVToBuf [21:39:24]FM_MakeSignedData [21:39:24]FM_MakeSignedData [21:39:24]SAM_PROTO_SignData [21:39:24]wFMCommunicate request_size=4 [21:39:24]MH_SAM_APDU [21:39:24]CAPDU: 80 0D 01 02 [21:39:24]Write to MH i2c: E2 08 00 56 0B 80 0D 01 02 00 00 00 00 DA [21:39:24]Write i2c OK [21:39:24]MH_I2C_Read... [21:39:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:39:24]Read from MH i2c: E2 [21:39:24]MH_I2C_Read... [21:39:24]Read from MH i2c: E2 03 00 [21:39:24]MH_I2C_Read... [21:39:24]Read from MH i2c: E2 03 00 56 0B 00 90 00 D5 [21:39:24]RAPDU: 90 00 [21:39:24]wFMCommunicate OK [21:39:24]wFMCommunicate request_size=255 [21:39:24]MH_SAM_APDU [21:39:24]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 17 01 00 00 F4 03 04 00 0C 4D 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B9 72 00 00 35 04 06 00 CF 4F D4 40 [21:39:24]Write to MH i2c: E2 02 01 57 0B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 17 01 00 00 F4 03 04 00 0C 4D 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B9 72 00 00 35 04 06 00 CF 4F D4 40 00 00 C9 [21:39:25]Write i2c OK [21:39:25]MH_I2C_Read... [21:39:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:39:25]Read from MH i2c: E2 [21:39:25]MH_I2C_Read... [21:39:25]Read from MH i2c: E2 03 00 [21:39:25]MH_I2C_Read... [21:39:25]Read from MH i2c: E2 03 00 57 0B 00 90 00 D6 [21:39:25]RAPDU: 90 00 [21:39:25]wFMCommunicate OK [21:39:25]wFMCommunicate request_size=7 [21:39:25]MH_SAM_APDU [21:39:25]CAPDU: 80 0D 02 02 02 81 66 [21:39:25]Write to MH i2c: E2 0A 00 58 0B 80 0D 02 02 02 00 81 66 00 00 C8 [21:39:25]Write i2c OK [21:39:25]MH_I2C_Read... [21:39:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:39:25]Read from MH i2c: E2 [21:39:25]MH_I2C_Read... [21:39:25]Read from MH i2c: E2 03 00 [21:39:25]MH_I2C_Read... [21:39:25]Read from MH i2c: E2 03 00 58 0B 00 90 00 D7 [21:39:25]RAPDU: 90 00 [21:39:25]wFMCommunicate OK [21:39:25]wFMCommunicate request_size=4 [21:39:25]MH_SAM_APDU [21:39:25]CAPDU: 80 0D 03 02 [21:39:25]Write to MH i2c: E2 08 00 59 0B 80 0D 03 02 00 00 00 00 DF [21:39:25]Write i2c OK [21:39:25]MH_I2C_Read... [21:39:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:39:25]Read from MH i2c: E2 [21:39:25]MH_I2C_Read... [21:39:25]Read from MH i2c: E2 0B 00 [21:39:25]MH_I2C_Read... [21:39:25]Read from MH i2c: E2 0B 00 59 0B 00 B5 CB CE 46 AF 92 66 52 90 00 6D [21:39:25]RAPDU: B5 CB CE 46 AF 92 66 52 90 00 [21:39:25]wFMCommunicate OK [21:39:25]SAM_PROTO_SignData done [21:39:25]FM_MakeSignedData done [21:39:25]CreateOFDProtocolMessage [21:39:25]wFMCommunicate request_size=4 [21:39:25]MH_SAM_APDU [21:39:25]CAPDU: 80 11 00 00 [21:39:25]Write to MH i2c: E2 08 00 5A 0B 80 11 00 00 00 00 00 00 DF [21:39:25]Write i2c OK [21:39:25]MH_I2C_Read... [21:39:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:39:25]Read from MH i2c: E2 [21:39:25]MH_I2C_Read... [21:39:25]Read from MH i2c: E2 17 00 [21:39:25]MH_I2C_Read... [21:39:25]Read from MH i2c: E2 17 00 5A 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 2E [21:39:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:39:25]wFMCommunicate OK [21:39:25]CreateOFDProtocolMessage done [21:39:25]OFDSenderStorePacket 29369 [21:39:25]StoreOFDPacket docnum=29369 [21:39:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 6D 37 04 01 3A C5 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 17 01 00 00 F4 03 04 00 0C 4D 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B9 72 00 00 35 04 06 00 CF 4F D4 40 81 66 B5 CB CE 46 AF 92 66 52 [21:39:25]CheckFolder [21:39:25]dirname=/storage/ofd_packets [21:39:25]CheckFolder done [21:39:25]ProducePacketName [21:39:25]name=ofd_packets/00029369 [21:39:25]NVStorageSaveData ofd_packets/00029369 [21:39:25]File name is /storage/ofd_packets/00029369 [21:39:25]Write 298 bytes [21:39:25]NVStorageSaveData done [21:39:25]OFDSenderStorePacket done [21:39:25]KKMCreateOFDPacket done [21:39:25]NVStorageSaveData kkm_last_timestamp [21:39:25]File name is /storage/kkm_last_timestamp [21:39:25]Write 4 bytes [21:39:25]NVStorageSaveData done [21:39:25]ExternCall_PrintAddStr [21:39:25]wPrintStart [21:39:25]Write to MH i2c: 01 00 00 5B 0B 66 [21:39:25]Write i2c OK [21:39:25]MH_I2C_Read... [21:39:25]Read from MH i2c: 01 [21:39:25]MH_I2C_Read... [21:39:25]Read from MH i2c: 01 07 00 [21:39:25]MH_I2C_Read... [21:39:25]Read from MH i2c: 01 07 00 5B 0B 00 00 00 00 00 FF 0F 7B [21:39:25]RasterBufferAndPrint [21:39:25]line Счет N : (1)347765 [21:39:25]line ИНН: 02508201610067 [21:39:25]line Контрольно-Кассовый Чек [21:39:25]line ПРОДАЖА [21:39:25]line ТРК (МРК, ГНК) : 21 [21:39:25]line Товар: 2710194210 [21:39:25]line ДТ-К-5 [21:39:25]line 4.150 * 72.40 [21:39:25]line = 300.46 [21:39:25]line НДС 12% НСП 1% [21:39:25]line > о реализуемом товаре [21:39:25]line ИТОГО: 300.46 [21:39:25]line НСП 1% : 2.66 [21:39:25]line НДС 12% : 31.91 [21:39:25]line Наличными: 0.00 [21:39:25]line Безнал.: 300.46 [21:39:25]line Место: АЗС № 108 "Партнер Нефть" [21:39:25]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [21:39:25]line СНО: Общий режим [21:39:25]line Чек 279 14.04.2024 21:39 [21:39:25]line Смена: 116 ФФД: 1.0 [21:39:25]line ЗНМ: 0300000027 [21:39:25]line РНМ: 0000138879044617 [21:39:25]line Версия ККМ: 001 [21:39:25]line Платежная система: АКБ Кыргызстан [21:39:25]line ФМ: 0000000000963154 [21:39:25]line ФД: 29369 [21:39:25]line ФПД: 227941770363238 [21:39:25]line 1/tax-web-control/client/api/v1/ticket?date=20240414T213924&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29369&fm=227941770363238&tin=02508201610067®Number=0000138879044617&sum=30046 [21:39:25]OFD Sender: Processing packet 29369 [packets to send 8, broken 7] [21:39:25]ProducePacketName [21:39:25]name=ofd_packets/00029369 [21:39:25]OFD Sender: To server: pG, [21:39:25]CommunicateWithHost lk.salyk.kg:30040 [21:39:25]ConnectInit lk.salyk.kg [21:39:25]written 0, free lines is 4095 [21:39:25]Connected sock=10 [21:39:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 6D 37 04 01 3A C5 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 17 01 00 00 F4 03 04 00 0C 4D 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B9 72 00 00 35 04 06 00 CF 4F D4 40 81 66 B5 CB CE 46 AF 92 66 52 [21:39:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 8F E5 47 00 E4 EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B9 72 00 00 F4 03 04 00 AF F7 1B 66 B6 04 01 00 00 02 3A 9D 35 E0 C7 B3 D5 [21:39:26]CommunicateWithHost err = 0 [21:39:26]CheckOFDResponse [21:39:26]1017 (14) - 77093643461234 [21:39:26]1041 (16) - 0000000000963154 [21:39:26]1040 (4) - 29369 [21:39:26]1012 (4) - 14.04.2024 15:35 [21:39:26]1206 (1) - 0 [21:39:26]OFD Sender: Remove packet 29369 [21:39:26]ProducePacketName [21:39:26]name=ofd_packets/00029369 [21:39:26]NVStorageDeleteData [21:39:26]Write to MH i2c: 01 00 00 84 0B 8F [21:39:26]Write i2c OK [21:39:26]MH_I2C_Read... [21:39:26]Read from MH i2c: 01 [21:39:26]MH_I2C_Read... [21:39:26]Read from MH i2c: 01 07 00 [21:39:26]MH_I2C_Read... [21:39:26]Read from MH i2c: 01 07 00 84 0B 00 00 00 00 00 E3 0C 85 [21:39:26]RasterBufferAndPrint [21:39:26]line [21:39:26]line [21:39:26]line [21:39:26]line [21:39:26]line [21:39:26]written 0, free lines is 3305 [21:39:26]MH_Cut [21:39:26]Write to MH i2c: D1 01 00 8B 0B 01 68 [21:39:26]Write i2c OK [21:39:26]MH_I2C_Read... [21:39:26]Read from MH i2c: D1 [21:39:26]MH_I2C_Read... [21:39:26]Read from MH i2c: D1 01 00 [21:39:26]MH_I2C_Read... [21:39:26]Read from MH i2c: D1 01 00 8B 0B 00 67 [21:39:26]Write to MH i2c: 01 00 00 8C 0B 97 [21:39:26]Write i2c OK [21:39:26]MH_I2C_Read... [21:39:26]OFD Sender: No OFD packet to send [21:39:26]*** Cut start [21:39:26]*** Partial cut [21:39:26]*** CUTSNS_PIN = 1 [21:39:27]*** CUTSNS_PIN = 0 [21:39:27]*** Brake cut motor [21:39:27]Read from MH i2c: 01 [21:39:27]MH_I2C_Read... [21:39:27]*** Stop cut motor [21:39:27]*** Cut end [21:39:27]Read from MH i2c: 01 07 00 [21:39:27]MH_I2C_Read... [21:39:27]Read from MH i2c: 01 07 00 8C 0B 00 00 00 00 00 FF 0F AC [21:39:27]process_action close_receipt done [21:39:27]requested_data is exist [21:39:27]produce_requested_data [21:39:27]requested_item fm.sn is exist - process it [21:39:27]wFMCommunicate request_size=4 [21:39:27]MH_SAM_APDU [21:39:27]CAPDU: 80 11 00 00 [21:39:27]Write to MH i2c: E2 08 00 8D 0B 80 11 00 00 00 00 00 00 12 [21:39:27]Write i2c OK [21:39:27]MH_I2C_Read... [21:39:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:39:27]Read from MH i2c: E2 [21:39:27]MH_I2C_Read... [21:39:27]Read from MH i2c: E2 17 00 [21:39:27]MH_I2C_Read... [21:39:27]Read from MH i2c: E2 17 00 8D 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 61 [21:39:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:39:27]wFMCommunicate OK [21:39:27]requested_item fd.num is exist - process it [21:39:27]SAM_PROTO_GetFieldsCounters [21:39:27]wFMCommunicate request_size=4 [21:39:27]MH_SAM_APDU [21:39:27]CAPDU: 80 13 00 00 [21:39:27]Write to MH i2c: E2 08 00 8E 0B 80 13 00 00 00 00 00 00 15 [21:39:27]Write i2c OK [21:39:27]MH_I2C_Read... [21:39:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:39:27]Read from MH i2c: E2 [21:39:27]MH_I2C_Read... [21:39:27]Read from MH i2c: E2 62 00 [21:39:27]MH_I2C_Read... [21:39:27]Read from MH i2c: E2 62 00 8E 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B9 72 00 00 0E 04 04 00 74 00 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 3A [21:39:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B9 72 00 00 0E 04 04 00 74 00 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 [21:39:27]wFMCommunicate OK [21:39:27]SAM_PROTO_GetFieldsCounters done [21:39:27]requested_item shift.num is exist - process it [21:39:27]requested_item shift.opened is exist - process it [21:39:27]req_shift_opened [21:39:27]FM_GetShiftState [21:39:27]SAM_PROTO_GetShiftState [21:39:27]wFMCommunicate request_size=4 [21:39:27]MH_SAM_APDU [21:39:27]CAPDU: 80 13 01 00 [21:39:27]Write to MH i2c: E2 08 00 8F 0B 80 13 01 00 00 00 00 00 17 [21:39:27]Write i2c OK [21:39:27]MH_I2C_Read... [21:39:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:39:27]Read from MH i2c: E2 [21:39:27]MH_I2C_Read... [21:39:27]Read from MH i2c: E2 0E 00 [21:39:27]MH_I2C_Read... [21:39:27]Read from MH i2c: E2 0E 00 8F 0B 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 C3 [21:39:27]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [21:39:27]wFMCommunicate OK [21:39:27]SAM_PROTO_GetShiftState done [21:39:27]FM_GetShiftState done [21:39:27]req_shift_opened done [21:39:27]requested_item shift.open_date is exist - process it [21:39:27]req_shift_open_date [21:39:27]req_shift_open_date done [21:39:27]produce_requested_data done [21:39:27]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29369,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [21:39:27]process_action_free close_receipt [21:39:27]json_value_free [21:39:27]json_value_free done [21:39:27]process_json_proto returns [21:39:27]Send response to host [21:39:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29369,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [21:39:27]free response buf [21:39:27]execute_script done [21:39:27]execute_script returns [21:39:27]free content buf [21:39:27]Sock 9.Close socket [21:39:27]Sock 9.Thread stoped [21:39:31]OFD Sender: No OFD packet to send [21:39:36]OFD Sender: No OFD packet to send [21:39:41]OFD Sender: No OFD packet to send [21:39:46]OFD Sender: No OFD packet to send [21:39:51]OFD Sender: No OFD packet to send [21:39:56]OFD Sender: No OFD packet to send [21:40:01]OFD Sender: No OFD packet to send [21:40:06]OFD Sender: No OFD packet to send [21:40:11]OFD Sender: No OFD packet to send [21:40:16]OFD Sender: No OFD packet to send [21:40:21]OFD Sender: No OFD packet to send [21:40:26]OFD Sender: No OFD packet to send [21:40:31]OFD Sender: No OFD packet to send [21:40:36]OFD Sender: No OFD packet to send [21:40:41]OFD Sender: No OFD packet to send [21:40:46]OFD Sender: No OFD packet to send [21:40:51]OFD Sender: No OFD packet to send [21:40:56]OFD Sender: No OFD packet to send [21:41:01]OFD Sender: No OFD packet to send [21:41:06]OFD Sender: No OFD packet to send [21:41:11]OFD Sender: No OFD packet to send [21:41:16]OFD Sender: No OFD packet to send [21:41:21]OFD Sender: No OFD packet to send [21:41:26]OFD Sender: No OFD packet to send [21:41:31]OFD Sender: No OFD packet to send [21:41:36]OFD Sender: No OFD packet to send [21:41:41]OFD Sender: No OFD packet to send [21:41:46]OFD Sender: No OFD packet to send [21:41:51]OFD Sender: No OFD packet to send [21:41:56]OFD Sender: No OFD packet to send [21:42:01]OFD Sender: No OFD packet to send [21:42:06]OFD Sender: No OFD packet to send [21:42:11]OFD Sender: No OFD packet to send [21:42:16]OFD Sender: No OFD packet to send [21:42:21]OFD Sender: No OFD packet to send [21:42:26]OFD Sender: No OFD packet to send [21:42:31]OFD Sender: No OFD packet to send [21:42:32]accept exits with 8 [21:42:32]New connection [21:42:32]New thread 3067112804 created [21:42:32]Thread 3066969444 joined [21:42:32]Waiting for new connection... [21:42:32] Sock 8.Parse request [21:42:32]Sock 8.Check first char [21:42:32]Sock 8.First char is OK [21:42:32]request: POST /json_proto HTTP/1.0 [21:42:32]Method: POST [21:42:32]URL: /json_proto [21:42:32]Method is POST - this is cgi request [21:42:32]url: /json_proto [21:42:32]query_string will be loaded in cgi processing [21:42:32]execute_cgi json_proto POST (null) [21:42:32]execute_cgi path=json_proto method=POST [21:42:32]POST find Content-Length [21:42:32]Host: 172.17.33.3:8080 [21:42:32]Content-Length: 674 [21:42:32]Content-Type: application/json [21:42:32] [21:42:32]POST finish read [21:42:32]Found Content-Length = 674 [21:42:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347766", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 2.490, "sum" : 180.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 180.00, "total" : 180.00, "payments": [ { "type": 0, "sum" : 180.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:42:32]execute_script... [21:42: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)347766", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 2.490, "sum" : 180.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 180.00, "total" : 180.00, "payments": [ { "type": 0, "sum" : 180.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:42:32]POST & json_proto [21:42:32]process_json_proto [21:42:32]json parsed OK: [21:42:32]protocol is kg_v1.0 [21:42:32]action value=close_receipt [21:42:32]process_action close_receipt [21:42:32]cmd_close_receipt [21:42:32]MH_GetDate [21:42:32]Write to MH i2c: F0 00 00 90 0B 8A [21:42:32]Write i2c OK [21:42:32]MH_I2C_Read... [21:42:32]Read from MH i2c: F0 [21:42:32]MH_I2C_Read... [21:42:32]Read from MH i2c: F0 09 00 [21:42:32]MH_I2C_Read... [21:42:32]Read from MH i2c: F0 09 00 90 0B 00 C9 4D 1C 66 23 5B 8F 65 9D [21:42:32]GetLastDocTimeStamp 1713130764 [21:42:32]current date 1713130953 [21:42:32]FM_GetShiftState [21:42:32]SAM_PROTO_GetShiftState [21:42:32]wFMCommunicate request_size=4 [21:42:32]MH_SAM_APDU [21:42:32]CAPDU: 80 13 01 00 [21:42:32]Write to MH i2c: E2 08 00 91 0B 80 13 01 00 00 00 00 00 19 [21:42:32]Write i2c OK [21:42:32]MH_I2C_Read... [21:42:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:42:32]Read from MH i2c: E2 [21:42:32]MH_I2C_Read... [21:42:32]Read from MH i2c: E2 0E 00 [21:42:32]MH_I2C_Read... [21:42:32]Read from MH i2c: E2 0E 00 91 0B 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 C5 [21:42:32]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [21:42:32]wFMCommunicate OK [21:42:32]SAM_PROTO_GetShiftState done [21:42:32]FM_GetShiftState done [21:42:32]opened in 1713053951 [21:42:32]opened+sec_in_day 1713140351 [21:42:32]quantity*price = 18027 [21:42:32]sum+1 = 18029 [21:42:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 180.00 Внесено: 180.00 СДАЧА: 0.00 НСП 1% : 1.59 НДС 12% : 19.14 Наличными: 180.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 280 14.04.2024 21:42 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29370 ФПД: 84879728362331 1/tax-web-control/client/api/v1/ticket?date=20240414T214233&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29370&fm=84879728362331&tin=02508201610067®Number=0000138879044617&sum=18000 [21:42:33]StoreToDocumentArchive [21:42:33]shift 116 fd 29370 [21:42:33]save to /storage/0116/doc_00029370 [21:42:33]save last doc name /storage/0116/doc_00029370 to /storage/kkm_last_doc_name [21:42:33]save OK [21:42:33]Clear old archive folders... [21:42:33]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:42:33]tlvbuf is 0024C200 [21:42:33]SAM_PROTO_ClearQueue [21:42:33]wFMCommunicate request_size=4 [21:42:33]MH_SAM_APDU [21:42:33]CAPDU: 80 09 00 00 [21:42:33]Write to MH i2c: E2 08 00 9E 0B 80 09 00 00 00 00 00 00 1B [21:42:33]Write i2c OK [21:42:33]MH_I2C_Read... [21:42:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:42:33]Read from MH i2c: E2 [21:42:33]MH_I2C_Read... [21:42:33]Read from MH i2c: E2 03 00 [21:42:33]MH_I2C_Read... [21:42:33]Read from MH i2c: E2 03 00 9E 0B 00 90 00 1D [21:42:33]RAPDU: 90 00 [21:42:33]wFMCommunicate OK [21:42:33]SAM_PROTO_ClearQueue done [21:42:33]KKMCreateOFDPacket [21:42:33]OFDProtocolAddRootSTLVToBuf [21:42:33]FM_MakeSignedData [21:42:33]FM_MakeSignedData [21:42:33]SAM_PROTO_SignData [21:42:33]wFMCommunicate request_size=4 [21:42:33]MH_SAM_APDU [21:42:33]CAPDU: 80 0D 01 02 [21:42:33]Write to MH i2c: E2 08 00 9F 0B 80 0D 01 02 00 00 00 00 23 [21:42:33]Write i2c OK [21:42:33]MH_I2C_Read... [21:42:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:42:33]Read from MH i2c: E2 [21:42:33]MH_I2C_Read... [21:42:33]Read from MH i2c: E2 03 00 [21:42:33]MH_I2C_Read... [21:42:33]Read from MH i2c: E2 03 00 9F 0B 00 90 00 1E [21:42:33]RAPDU: 90 00 [21:42:33]wFMCommunicate OK [21:42:33]wFMCommunicate request_size=255 [21:42:33]MH_SAM_APDU [21:42:33]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BA 09 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 6C 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 07 00 00 00 00 07 04 06 00 50 46 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 01 00 00 F4 03 04 00 C9 4D 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BA 72 00 00 35 04 06 00 4D 32 9A 0E [21:42:33]Write to MH i2c: E2 02 01 A0 0B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BA 09 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 6C 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 07 00 00 00 00 07 04 06 00 50 46 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 01 00 00 F4 03 04 00 C9 4D 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BA 72 00 00 35 04 06 00 4D 32 9A 0E 00 00 3A [21:42:33]Write i2c OK [21:42:33]MH_I2C_Read... [21:42:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:42:33]Read from MH i2c: E2 [21:42:33]MH_I2C_Read... [21:42:33]Read from MH i2c: E2 03 00 [21:42:33]MH_I2C_Read... [21:42:33]Read from MH i2c: E2 03 00 A0 0B 00 90 00 1F [21:42:33]RAPDU: 90 00 [21:42:33]wFMCommunicate OK [21:42:33]wFMCommunicate request_size=7 [21:42:33]MH_SAM_APDU [21:42:33]CAPDU: 80 0D 02 02 02 C3 5B [21:42:33]Write to MH i2c: E2 0A 00 A1 0B 80 0D 02 02 02 00 C3 5B 00 00 48 [21:42:33]Write i2c OK [21:42:33]MH_I2C_Read... [21:42:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:42:33]Read from MH i2c: E2 [21:42:33]MH_I2C_Read... [21:42:33]Read from MH i2c: E2 03 00 [21:42:33]MH_I2C_Read... [21:42:33]Read from MH i2c: E2 03 00 A1 0B 00 90 00 20 [21:42:33]RAPDU: 90 00 [21:42:33]wFMCommunicate OK [21:42:33]wFMCommunicate request_size=4 [21:42:33]MH_SAM_APDU [21:42:33]CAPDU: 80 0D 03 02 [21:42:33]Write to MH i2c: E2 08 00 A2 0B 80 0D 03 02 00 00 00 00 28 [21:42:33]Write i2c OK [21:42:33]MH_I2C_Read... [21:42:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:42:33]Read from MH i2c: E2 [21:42:33]MH_I2C_Read... [21:42:33]Read from MH i2c: E2 0B 00 [21:42:33]MH_I2C_Read... [21:42:33]Read from MH i2c: E2 0B 00 A2 0B 00 3D 80 97 63 5F 78 07 C6 90 00 84 [21:42:33]RAPDU: 3D 80 97 63 5F 78 07 C6 90 00 [21:42:33]wFMCommunicate OK [21:42:33]SAM_PROTO_SignData done [21:42:33]FM_MakeSignedData done [21:42:33]CreateOFDProtocolMessage [21:42:33]wFMCommunicate request_size=4 [21:42:33]MH_SAM_APDU [21:42:33]CAPDU: 80 11 00 00 [21:42:33]Write to MH i2c: E2 08 00 A3 0B 80 11 00 00 00 00 00 00 28 [21:42:33]Write i2c OK [21:42:33]MH_I2C_Read... [21:42:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:42:33]Read from MH i2c: E2 [21:42:33]MH_I2C_Read... [21:42:33]Read from MH i2c: E2 17 00 [21:42:33]MH_I2C_Read... [21:42:33]Read from MH i2c: E2 17 00 A3 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 77 [21:42:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:42:33]wFMCommunicate OK [21:42:33]CreateOFDProtocolMessage done [21:42:33]OFDSenderStorePacket 29370 [21:42:33]StoreOFDPacket docnum=29370 [21:42:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 8C BA 04 01 43 42 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 BA 09 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 6C 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 07 00 00 00 00 07 04 06 00 50 46 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 01 00 00 F4 03 04 00 C9 4D 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BA 72 00 00 35 04 06 00 4D 32 9A 0E C3 5B 3D 80 97 63 5F 78 07 C6 [21:42:33]CheckFolder [21:42:33]dirname=/storage/ofd_packets [21:42:33]CheckFolder done [21:42:33]ProducePacketName [21:42:33]name=ofd_packets/00029370 [21:42:33]NVStorageSaveData ofd_packets/00029370 [21:42:33]File name is /storage/ofd_packets/00029370 [21:42:33]Write 298 bytes [21:42:33]NVStorageSaveData done [21:42:33]OFDSenderStorePacket done [21:42:33]KKMCreateOFDPacket done [21:42:33]NVStorageSaveData kkm_last_timestamp [21:42:33]File name is /storage/kkm_last_timestamp [21:42:33]Write 4 bytes [21:42:33]NVStorageSaveData done [21:42:33]ExternCall_PrintAddStr [21:42:33]wPrintStart [21:42:33]Write to MH i2c: 01 00 00 A4 0B AF [21:42:33]Write i2c OK [21:42:33]MH_I2C_Read... [21:42:33]Read from MH i2c: 01 [21:42:33]MH_I2C_Read... [21:42:33]Read from MH i2c: 01 07 00 [21:42:33]MH_I2C_Read... [21:42:33]Read from MH i2c: 01 07 00 A4 0B 00 00 00 00 00 FF 0F C4 [21:42:33]RasterBufferAndPrint [21:42:33]line Счет N : (1)347766 [21:42:33]line ИНН: 02508201610067 [21:42:33]line Контрольно-Кассовый Чек [21:42:33]line ПРОДАЖА [21:42:33]line ТРК (МРК, ГНК) : 21 [21:42:33]line Товар: 2710194210 [21:42:33]line ДТ-К-5 [21:42:33]line 2.490 * 72.40 [21:42:33]line = 180.28 [21:42:33]line НДС 12% НСП 1% [21:42:33]line > о реализуемом товаре [21:42:33]line ОКРУГЛЕНИЕ: -0.28 [21:42:33]line ИТОГО: 180.00 [21:42:33]line Внесено: 180.00 [21:42:33]line СДАЧА: 0.00 [21:42:33]line НСП 1% : 1.59 [21:42:33]line НДС 12% : 19.14 [21:42:34]line Наличными: 180.00 [21:42:34]line Безнал.: 0.00 [21:42:34]line Место: АЗС № 108 "Партнер Нефть" [21:42:34]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [21:42:34]line СНО: Общий режим [21:42:34]line Чек 280 14.04.2024 21:42 [21:42:34]line Смена: 116 ФФД: 1.0 [21:42:34]line ЗНМ: 0300000027 [21:42:34]line РНМ: 0000138879044617 [21:42:34]line Версия ККМ: 001 [21:42:34]line ФМ: 0000000000963154 [21:42:34]line ФД: 29370 [21:42:34]line ФПД: 84879728362331 [21:42:34]line 1/tax-web-control/client/api/v1/ticket?date=20240414T214233&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29370&fm=84879728362331&tin=02508201610067®Number=0000138879044617&sum=18000 [21:42:34]OFD Sender: Processing packet 29370 [packets to send 8, broken 7] [21:42:34]ProducePacketName [21:42:34]name=ofd_packets/00029370 [21:42:34]OFD Sender: To server: pG, [21:42:34]CommunicateWithHost lk.salyk.kg:30040 [21:42:34]ConnectInit lk.salyk.kg [21:42:34]written 0, free lines is 4095 [21:42:34]Connected sock=10 [21:42:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 8C BA 04 01 43 42 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 BA 09 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 6C 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 07 00 00 00 00 07 04 06 00 50 46 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 01 00 00 F4 03 04 00 C9 4D 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BA 72 00 00 35 04 06 00 4D 32 9A 0E C3 5B 3D 80 97 63 5F 78 07 C6 [21:42:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 FC 17 47 00 71 D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BA 72 00 00 F4 03 04 00 6C F8 1B 66 B6 04 01 00 00 00 E6 D2 68 4E C2 A8 84 [21:42:34]CommunicateWithHost err = 0 [21:42:34]CheckOFDResponse [21:42:34]1017 (14) - 77093643461234 [21:42:34]1041 (16) - 0000000000963154 [21:42:34]1040 (4) - 29370 [21:42:34]1012 (4) - 14.04.2024 15:38 [21:42:34]1206 (1) - 0 [21:42:34]OFD Sender: Remove packet 29370 [21:42:34]ProducePacketName [21:42:34]name=ofd_packets/00029370 [21:42:34]NVStorageDeleteData [21:42:34]Write to MH i2c: 01 00 00 CE 0B D9 [21:42:34]Write i2c OK [21:42:34]MH_I2C_Read... [21:42:34]Read from MH i2c: 01 [21:42:34]MH_I2C_Read... [21:42:34]Read from MH i2c: 01 07 00 [21:42:34]MH_I2C_Read... [21:42:34]Read from MH i2c: 01 07 00 CE 0B 00 00 00 00 00 C4 0C B0 [21:42:34]RasterBufferAndPrint [21:42:34]line [21:42:34]line [21:42:34]line [21:42:34]line [21:42:34]line [21:42:34]written 0, free lines is 3272 [21:42:34]MH_Cut [21:42:34]Write to MH i2c: D1 01 00 D5 0B 01 B2 [21:42:34]Write i2c OK [21:42:34]MH_I2C_Read... [21:42:34]Read from MH i2c: D1 [21:42:34]MH_I2C_Read... [21:42:34]Read from MH i2c: D1 01 00 [21:42:34]MH_I2C_Read... [21:42:34]Read from MH i2c: D1 01 00 D5 0B 00 B1 [21:42:34]Write to MH i2c: 01 00 00 D6 0B E1 [21:42:34]Write i2c OK [21:42:34]MH_I2C_Read... [21:42:35]OFD Sender: No OFD packet to send [21:42:35]*** Cut start [21:42:35]*** Partial cut [21:42:35]*** CUTSNS_PIN = 1 [21:42:35]*** CUTSNS_PIN = 0 [21:42:35]*** Brake cut motor [21:42:36]Read from MH i2c: 01 [21:42:36]MH_I2C_Read... [21:42:36]*** Stop cut motor [21:42:36]*** Cut end [21:42:36]Read from MH i2c: 01 07 00 [21:42:36]MH_I2C_Read... [21:42:36]Read from MH i2c: 01 07 00 D6 0B 00 00 00 00 00 FF 0F F6 [21:42:36]process_action close_receipt done [21:42:36]requested_data is exist [21:42:36]produce_requested_data [21:42:36]requested_item fm.sn is exist - process it [21:42:36]wFMCommunicate request_size=4 [21:42:36]MH_SAM_APDU [21:42:36]CAPDU: 80 11 00 00 [21:42:36]Write to MH i2c: E2 08 00 D7 0B 80 11 00 00 00 00 00 00 5C [21:42:36]Write i2c OK [21:42:36]MH_I2C_Read... [21:42:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:42:36]Read from MH i2c: E2 [21:42:36]MH_I2C_Read... [21:42:36]Read from MH i2c: E2 17 00 [21:42:36]MH_I2C_Read... [21:42:36]Read from MH i2c: E2 17 00 D7 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 AB [21:42:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:42:36]wFMCommunicate OK [21:42:36]requested_item fd.num is exist - process it [21:42:36]SAM_PROTO_GetFieldsCounters [21:42:36]wFMCommunicate request_size=4 [21:42:36]MH_SAM_APDU [21:42:36]CAPDU: 80 13 00 00 [21:42:36]Write to MH i2c: E2 08 00 D8 0B 80 13 00 00 00 00 00 00 5F [21:42:36]Write i2c OK [21:42:36]MH_I2C_Read... [21:42:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:42:36]Read from MH i2c: E2 [21:42:36]MH_I2C_Read... [21:42:36]Read from MH i2c: E2 62 00 [21:42:36]MH_I2C_Read... [21:42:36]Read from MH i2c: E2 62 00 D8 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 BA 72 00 00 0E 04 04 00 74 00 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 88 [21:42:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 BA 72 00 00 0E 04 04 00 74 00 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 [21:42:36]wFMCommunicate OK [21:42:36]SAM_PROTO_GetFieldsCounters done [21:42:36]requested_item shift.num is exist - process it [21:42:36]requested_item shift.opened is exist - process it [21:42:36]req_shift_opened [21:42:36]FM_GetShiftState [21:42:36]SAM_PROTO_GetShiftState [21:42:36]wFMCommunicate request_size=4 [21:42:36]MH_SAM_APDU [21:42:36]CAPDU: 80 13 01 00 [21:42:36]Write to MH i2c: E2 08 00 D9 0B 80 13 01 00 00 00 00 00 61 [21:42:36]Write i2c OK [21:42:36]MH_I2C_Read... [21:42:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:42:36]Read from MH i2c: E2 [21:42:36]MH_I2C_Read... [21:42:36]Read from MH i2c: E2 0E 00 [21:42:36]MH_I2C_Read... [21:42:36]Read from MH i2c: E2 0E 00 D9 0B 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 0D [21:42:36]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [21:42:36]wFMCommunicate OK [21:42:36]SAM_PROTO_GetShiftState done [21:42:36]FM_GetShiftState done [21:42:36]req_shift_opened done [21:42:36]requested_item shift.open_date is exist - process it [21:42:36]req_shift_open_date [21:42:36]req_shift_open_date done [21:42:36]produce_requested_data done [21:42:36]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29370,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [21:42:36]process_action_free close_receipt [21:42:36]json_value_free [21:42:36]json_value_free done [21:42:36]process_json_proto returns [21:42:36]Send response to host [21:42:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29370,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [21:42:36]free response buf [21:42:36]execute_script done [21:42:36]execute_script returns [21:42:36]free content buf [21:42:36]Sock 8.Close socket [21:42:36]Sock 8.Thread stoped [21:42:40]OFD Sender: No OFD packet to send [21:42:45]OFD Sender: No OFD packet to send [21:42:50]OFD Sender: No OFD packet to send [21:42:55]OFD Sender: No OFD packet to send [21:43:00]OFD Sender: No OFD packet to send [21:43:05]OFD Sender: No OFD packet to send [21:43:10]OFD Sender: No OFD packet to send [21:43:15]OFD Sender: No OFD packet to send [21:43:20]OFD Sender: No OFD packet to send [21:43:25]OFD Sender: No OFD packet to send [21:43:30]OFD Sender: No OFD packet to send [21:43:35]OFD Sender: No OFD packet to send [21:43:40]OFD Sender: No OFD packet to send [21:43:45]OFD Sender: No OFD packet to send [21:43:50]OFD Sender: No OFD packet to send [21:43:55]OFD Sender: No OFD packet to send [21:44:00]OFD Sender: No OFD packet to send [21:44:05]OFD Sender: No OFD packet to send [21:44:10]OFD Sender: No OFD packet to send [21:44:15]OFD Sender: No OFD packet to send [21:44:20]OFD Sender: No OFD packet to send [21:44:25]OFD Sender: No OFD packet to send [21:44:30]OFD Sender: No OFD packet to send [21:44:35]OFD Sender: No OFD packet to send [21:44:39]accept exits with 9 [21:44:39]New connection [21:44:39]New thread 3066969444 created [21:44:39]Thread 3067112804 joined [21:44:39]Waiting for new connection... [21:44:39] Sock 9.Parse request [21:44:39]Sock 9.Check first char [21:44:39]Sock 9.First char is OK [21:44:39]request: POST /json_proto HTTP/1.0 [21:44:39]Method: POST [21:44:39]URL: /json_proto [21:44:39]Method is POST - this is cgi request [21:44:39]url: /json_proto [21:44:39]query_string will be loaded in cgi processing [21:44:39]execute_cgi json_proto POST (null) [21:44:39]execute_cgi path=json_proto method=POST [21:44:39]POST find Content-Length [21:44:39]Host: 172.17.33.3:8080 [21:44:39]Content-Length: 677 [21:44:39]Content-Type: application/json [21:44:39] [21:44:39]POST finish read [21:44:39]Found Content-Length = 677 [21:44:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347767", "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" ] } } [21:44:39]execute_script... [21: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)347767", "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" ] } } [21:44:39]POST & json_proto [21:44:39]process_json_proto [21:44:39]json parsed OK: [21:44:39]protocol is kg_v1.0 [21:44:39]action value=close_receipt [21:44:39]process_action close_receipt [21:44:39]cmd_close_receipt [21:44:39]MH_GetDate [21:44:39]Write to MH i2c: F0 00 00 DA 0B D4 [21:44:39]Write i2c OK [21:44:39]MH_I2C_Read... [21:44:39]Read from MH i2c: F0 [21:44:39]MH_I2C_Read... [21:44:39]Read from MH i2c: F0 09 00 [21:44:39]MH_I2C_Read... [21:44:39]Read from MH i2c: F0 09 00 DA 0B 00 48 4E 1C 66 23 5B 8F 65 67 [21:44:39]GetLastDocTimeStamp 1713130953 [21:44:39]current date 1713131080 [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 DB 0B 80 13 01 00 00 00 00 00 63 [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 DB 0B 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 0F [21:44:39]RAPDU: 09 00 01 FF 20 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]opened in 1713053951 [21:44:39]opened+sec_in_day 1713140351 [21:44:39]quantity*price = 30028 [21:44:39]sum+1 = 30029 [21:44:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 281 14.04.2024 21:44 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29371 ФПД: 226831018407941 1/tax-web-control/client/api/v1/ticket?date=20240414T214440&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29371&fm=226831018407941&tin=02508201610067®Number=0000138879044617&sum=30000 [21:44:40]StoreToDocumentArchive [21:44:40]shift 116 fd 29371 [21:44:40]save to /storage/0116/doc_00029371 [21:44:40]save last doc name /storage/0116/doc_00029371 to /storage/kkm_last_doc_name [21:44:40]save OK [21:44:40]Clear old archive folders... [21:44:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:44:40]tlvbuf is 0020D5C0 [21:44:40]SAM_PROTO_ClearQueue [21:44:40]wFMCommunicate request_size=4 [21:44:40]MH_SAM_APDU [21:44:40]CAPDU: 80 09 00 00 [21:44:40]Write to MH i2c: E2 08 00 E8 0B 80 09 00 00 00 00 00 00 65 [21:44:40]Write i2c OK [21:44:40]MH_I2C_Read... [21:44:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:44:40]Read from MH i2c: E2 [21:44:40]MH_I2C_Read... [21:44:40]Read from MH i2c: E2 03 00 [21:44:40]MH_I2C_Read... [21:44:40]Read from MH i2c: E2 03 00 E8 0B 00 90 00 67 [21:44:40]RAPDU: 90 00 [21:44:40]wFMCommunicate OK [21:44:40]SAM_PROTO_ClearQueue done [21:44:40]KKMCreateOFDPacket [21:44:40]OFDProtocolAddRootSTLVToBuf [21:44:40]FM_MakeSignedData [21:44:40]FM_MakeSignedData [21:44:40]SAM_PROTO_SignData [21:44:40]wFMCommunicate request_size=4 [21:44:40]MH_SAM_APDU [21:44:40]CAPDU: 80 0D 01 02 [21:44:40]Write to MH i2c: E2 08 00 E9 0B 80 0D 01 02 00 00 00 00 6D [21:44:40]Write i2c OK [21:44:40]MH_I2C_Read... [21:44:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:44:40]Read from MH i2c: E2 [21:44:40]MH_I2C_Read... [21:44:40]Read from MH i2c: E2 03 00 [21:44:40]MH_I2C_Read... [21:44:40]Read from MH i2c: E2 03 00 E9 0B 00 90 00 68 [21:44:40]RAPDU: 90 00 [21:44:40]wFMCommunicate OK [21:44:40]wFMCommunicate request_size=255 [21:44:40]MH_SAM_APDU [21:44: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 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 48 4E 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BB 72 00 00 35 04 06 00 CE [21:44:40]Write to MH i2c: E2 02 01 EA 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 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 48 4E 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BB 72 00 00 35 04 06 00 CE 00 00 53 [21:44:40]Write i2c OK [21:44:40]MH_I2C_Read... [21:44:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:44:40]Read from MH i2c: E2 [21:44:40]MH_I2C_Read... [21:44:40]Read from MH i2c: E2 03 00 [21:44:40]MH_I2C_Read... [21:44:40]Read from MH i2c: E2 03 00 EA 0B 00 90 00 69 [21:44:40]RAPDU: 90 00 [21:44:40]wFMCommunicate OK [21:44:40]wFMCommunicate request_size=10 [21:44:40]MH_SAM_APDU [21:44:40]CAPDU: 80 0D 02 02 05 4D 36 46 B8 05 [21:44:40]Write to MH i2c: E2 0D 00 EB 0B 80 0D 02 02 05 00 4D 36 46 B8 05 00 00 00 [21:44:40]Write i2c OK [21:44:40]MH_I2C_Read... [21:44:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:44:40]Read from MH i2c: E2 [21:44:40]MH_I2C_Read... [21:44:40]Read from MH i2c: E2 03 00 [21:44:40]MH_I2C_Read... [21:44:40]Read from MH i2c: E2 03 00 EB 0B 00 90 00 6A [21:44:40]RAPDU: 90 00 [21:44:40]wFMCommunicate OK [21:44:40]wFMCommunicate request_size=4 [21:44:40]MH_SAM_APDU [21:44:40]CAPDU: 80 0D 03 02 [21:44:40]Write to MH i2c: E2 08 00 EC 0B 80 0D 03 02 00 00 00 00 72 [21:44:40]Write i2c OK [21:44:40]MH_I2C_Read... [21:44:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:44:40]Read from MH i2c: E2 [21:44:40]MH_I2C_Read... [21:44:40]Read from MH i2c: E2 0B 00 [21:44:40]MH_I2C_Read... [21:44:40]Read from MH i2c: E2 0B 00 EC 0B 00 26 ED F5 5F 1A BD E2 BB 90 00 4E [21:44:40]RAPDU: 26 ED F5 5F 1A BD E2 BB 90 00 [21:44:40]wFMCommunicate OK [21:44:40]SAM_PROTO_SignData done [21:44:40]FM_MakeSignedData done [21:44:40]CreateOFDProtocolMessage [21:44:40]wFMCommunicate request_size=4 [21:44:40]MH_SAM_APDU [21:44:40]CAPDU: 80 11 00 00 [21:44:40]Write to MH i2c: E2 08 00 ED 0B 80 11 00 00 00 00 00 00 72 [21:44:40]Write i2c OK [21:44:40]MH_I2C_Read... [21:44:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:44:41]Read from MH i2c: E2 [21:44:41]MH_I2C_Read... [21:44:41]Read from MH i2c: E2 17 00 [21:44:41]MH_I2C_Read... [21:44:41]Read from MH i2c: E2 17 00 ED 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C1 [21:44:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:44:41]wFMCommunicate OK [21:44:41]CreateOFDProtocolMessage done [21:44:41]OFDSenderStorePacket 29371 [21:44:41]StoreOFDPacket docnum=29371 [21:44:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 63 C0 07 01 D7 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 48 4E 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BB 72 00 00 35 04 06 00 CE 4D 36 46 B8 05 26 ED F5 5F 1A BD E2 BB [21:44:41]CheckFolder [21:44:41]dirname=/storage/ofd_packets [21:44:41]CheckFolder done [21:44:41]ProducePacketName [21:44:41]name=ofd_packets/00029371 [21:44:41]NVStorageSaveData ofd_packets/00029371 [21:44:41]File name is /storage/ofd_packets/00029371 [21:44:41]Write 301 bytes [21:44:41]NVStorageSaveData done [21:44:41]OFDSenderStorePacket done [21:44:41]KKMCreateOFDPacket done [21:44:41]NVStorageSaveData kkm_last_timestamp [21:44:41]File name is /storage/kkm_last_timestamp [21:44:41]Write 4 bytes [21:44:41]NVStorageSaveData done [21:44:41]ExternCall_PrintAddStr [21:44:41]wPrintStart [21:44:41]Write to MH i2c: 01 00 00 EE 0B F9 [21:44:41]Write i2c OK [21:44:41]MH_I2C_Read... [21:44:41]Read from MH i2c: 01 [21:44:41]MH_I2C_Read... [21:44:41]Read from MH i2c: 01 07 00 [21:44:41]MH_I2C_Read... [21:44:41]Read from MH i2c: 01 07 00 EE 0B 00 00 00 00 00 FF 0F 0E [21:44:41]RasterBufferAndPrint [21:44:41]line Счет N : (1)347767 [21:44:41]line ИНН: 02508201610067 [21:44:41]line Контрольно-Кассовый Чек [21:44:41]line ПРОДАЖА [21:44:41]line ТРК (МРК, ГНК) : 32 [21:44:41]line Товар: 2710124130 [21:44:41]line Аи-92-К-5 [21:44:41]line 4.670 * 64.30 [21:44:41]line = 300.28 [21:44:41]line НДС 12% НСП 1% [21:44:41]line > о реализуемом товаре [21:44:41]line ОКРУГЛЕНИЕ: -0.28 [21:44:41]line ИТОГО: 300.00 [21:44:41]line Внесено: 300.00 [21:44:41]line СДАЧА: 0.00 [21:44:41]line НСП 1% : 2.66 [21:44:41]line НДС 12% : 31.89 [21:44:41]line Наличными: 300.00 [21:44:41]line Безнал.: 0.00 [21:44:41]line Место: АЗС № 108 "Партнер Нефть" [21:44:41]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [21:44:41]line СНО: Общий режим [21:44:41]line Чек 281 14.04.2024 21:44 [21:44:41]line Смена: 116 ФФД: 1.0 [21:44:41]line ЗНМ: 0300000027 [21:44:41]line РНМ: 0000138879044617 [21:44:41]line Версия ККМ: 001 [21:44:41]line ФМ: 0000000000963154 [21:44:41]line ФД: 29371 [21:44:41]line ФПД: 226831018407941 [21:44:41]line 1/tax-web-control/client/api/v1/ticket?date=20240414T214440&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29371&fm=226831018407941&tin=02508201610067®Number=0000138879044617&sum=30000 [21:44:41]OFD Sender: Processing packet 29371 [packets to send 8, broken 7] [21:44:41]ProducePacketName [21:44:41]name=ofd_packets/00029371 [21:44:41]OFD Sender: To server: pG, [21:44:41]CommunicateWithHost lk.salyk.kg:30040 [21:44:41]ConnectInit lk.salyk.kg [21:44:41]written 0, free lines is 4095 [21:44:41]Connected sock=10 [21:44:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 63 C0 07 01 D7 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 48 4E 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BB 72 00 00 35 04 06 00 CE 4D 36 46 B8 05 26 ED F5 5F 1A BD E2 BB [21:44:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 BE 27 47 00 ED 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BB 72 00 00 F4 03 04 00 EB F8 1B 66 B6 04 01 00 00 71 6F 20 9A D1 B0 7D C6 [21:44:41]CommunicateWithHost err = 0 [21:44:41]CheckOFDResponse [21:44:41]1017 (14) - 77093643461234 [21:44:41]1041 (16) - 0000000000963154 [21:44:41]1040 (4) - 29371 [21:44:41]1012 (4) - 14.04.2024 15:40 [21:44:41]1206 (1) - 0 [21:44:41]OFD Sender: Remove packet 29371 [21:44:41]ProducePacketName [21:44:41]name=ofd_packets/00029371 [21:44:41]NVStorageDeleteData [21:44:41]Write to MH i2c: 01 00 00 18 0C 24 [21:44:41]Write i2c OK [21:44:41]MH_I2C_Read... [21:44:41]Read from MH i2c: 01 [21:44:41]MH_I2C_Read... [21:44:41]Read from MH i2c: 01 07 00 [21:44:41]MH_I2C_Read... [21:44:41]Read from MH i2c: 01 07 00 18 0C 00 00 00 00 00 DE 0C 15 [21:44:41]RasterBufferAndPrint [21:44:41]line [21:44:41]line [21:44:41]line [21:44:41]line [21:44:41]line [21:44:41]written 0, free lines is 3299 [21:44:41]MH_Cut [21:44:41]Write to MH i2c: D1 01 00 1F 0C 01 FD [21:44:41]Write i2c OK [21:44:41]MH_I2C_Read... [21:44:41]Read from MH i2c: D1 [21:44:41]MH_I2C_Read... [21:44:41]Read from MH i2c: D1 01 00 [21:44:41]MH_I2C_Read... [21:44:41]Read from MH i2c: D1 01 00 1F 0C 00 FC [21:44:41]Write to MH i2c: 01 00 00 20 0C 2C [21:44:41]Write i2c OK [21:44:41]MH_I2C_Read... [21:44:42]OFD Sender: No OFD packet to send [21:44:42]*** Cut start [21:44:42]*** Partial cut [21:44:42]*** CUTSNS_PIN = 1 [21:44:42]*** CUTSNS_PIN = 0 [21:44:42]*** Brake cut motor [21:44:43]Read from MH i2c: 01 [21:44:43]MH_I2C_Read... [21:44:43]*** Stop cut motor [21:44:43]*** Cut end [21:44:43]Read from MH i2c: 01 07 00 [21:44:43]MH_I2C_Read... [21:44:43]Read from MH i2c: 01 07 00 20 0C 00 00 00 00 00 FF 0F 41 [21:44:43]process_action close_receipt done [21:44:43]requested_data is exist [21:44:43]produce_requested_data [21:44:43]requested_item fm.sn is exist - process it [21:44:43]wFMCommunicate request_size=4 [21:44:43]MH_SAM_APDU [21:44:43]CAPDU: 80 11 00 00 [21:44:43]Write to MH i2c: E2 08 00 21 0C 80 11 00 00 00 00 00 00 A7 [21:44:43]Write i2c OK [21:44:43]MH_I2C_Read... [21:44:43]Read from MH i2c: E2 [21:44:43]MH_I2C_Read... [21:44:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:44:43]Read from MH i2c: E2 17 00 [21:44:43]MH_I2C_Read... [21:44:43]Read from MH i2c: E2 17 00 21 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F6 [21:44:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:44:43]wFMCommunicate OK [21:44:43]requested_item fd.num is exist - process it [21:44:43]SAM_PROTO_GetFieldsCounters [21:44:43]wFMCommunicate request_size=4 [21:44:43]MH_SAM_APDU [21:44:43]CAPDU: 80 13 00 00 [21:44:43]Write to MH i2c: E2 08 00 22 0C 80 13 00 00 00 00 00 00 AA [21:44:43]Write i2c OK [21:44:43]MH_I2C_Read... [21:44:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:44:43]Read from MH i2c: E2 [21:44:43]MH_I2C_Read... [21:44:43]Read from MH i2c: E2 62 00 [21:44:43]MH_I2C_Read... [21:44:43]Read from MH i2c: E2 62 00 22 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 BB 72 00 00 0E 04 04 00 74 00 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 D7 [21:44:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 BB 72 00 00 0E 04 04 00 74 00 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 [21:44:43]wFMCommunicate OK [21:44:43]SAM_PROTO_GetFieldsCounters done [21:44:43]requested_item shift.num is exist - process it [21:44:43]requested_item shift.opened is exist - process it [21:44:43]req_shift_opened [21:44:43]FM_GetShiftState [21:44:43]SAM_PROTO_GetShiftState [21:44:43]wFMCommunicate request_size=4 [21:44:43]MH_SAM_APDU [21:44:43]CAPDU: 80 13 01 00 [21:44:43]Write to MH i2c: E2 08 00 23 0C 80 13 01 00 00 00 00 00 AC [21:44:43]Write i2c OK [21:44:43]MH_I2C_Read... [21:44:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:44:43]Read from MH i2c: E2 [21:44:43]MH_I2C_Read... [21:44:43]Read from MH i2c: E2 0E 00 [21:44:43]MH_I2C_Read... [21:44:43]Read from MH i2c: E2 0E 00 23 0C 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 58 [21:44:43]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [21:44:43]wFMCommunicate OK [21:44:43]SAM_PROTO_GetShiftState done [21:44:43]FM_GetShiftState done [21:44:43]req_shift_opened done [21:44:43]requested_item shift.open_date is exist - process it [21:44:43]req_shift_open_date [21:44:43]req_shift_open_date done [21:44:43]produce_requested_data done [21:44:43]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29371,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [21:44:43]process_action_free close_receipt [21:44:43]json_value_free [21:44:43]json_value_free done [21:44:43]process_json_proto returns [21:44:43]Send response to host [21:44:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29371,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [21:44:43]free response buf [21:44:43]execute_script done [21:44:43]execute_script returns [21:44:43]free content buf [21:44:43]Sock 9.Close socket [21:44:43]Sock 9.Thread stoped [21:44:47]OFD Sender: No OFD packet to send [21:44:52]OFD Sender: No OFD packet to send [21:44:57]OFD Sender: No OFD packet to send [21:45:02]OFD Sender: No OFD packet to send [21:45:07]OFD Sender: No OFD packet to send [21:45:12]OFD Sender: No OFD packet to send [21:45:17]OFD Sender: No OFD packet to send [21:45:22]OFD Sender: No OFD packet to send [21:45:27]OFD Sender: No OFD packet to send [21:45:32]OFD Sender: No OFD packet to send [21:45:37]OFD Sender: No OFD packet to send [21:45:42]OFD Sender: No OFD packet to send [21:45:47]OFD Sender: No OFD packet to send [21:45:52]OFD Sender: No OFD packet to send [21:45:57]OFD Sender: No OFD packet to send [21:46:02]OFD Sender: No OFD packet to send [21:46:07]OFD Sender: No OFD packet to send [21:46:12]OFD Sender: No OFD packet to send [21:46:17]OFD Sender: No OFD packet to send [21:46:22]OFD Sender: No OFD packet to send [21:46:27]OFD Sender: No OFD packet to send [21:46:32]OFD Sender: No OFD packet to send [21:46:37]OFD Sender: No OFD packet to send [21:46:42]OFD Sender: No OFD packet to send [21:46:47]OFD Sender: No OFD packet to send [21:46:52]OFD Sender: No OFD packet to send [21:46:57]OFD Sender: No OFD packet to send [21:47:02]OFD Sender: No OFD packet to send [21:47:07]OFD Sender: No OFD packet to send [21:47:12]OFD Sender: No OFD packet to send [21:47:17]OFD Sender: No OFD packet to send [21:47:22]OFD Sender: No OFD packet to send [21:47:27]OFD Sender: No OFD packet to send [21:47:32]OFD Sender: No OFD packet to send [21:47:37]OFD Sender: No OFD packet to send [21:47:42]OFD Sender: No OFD packet to send [21:47:47]OFD Sender: No OFD packet to send [21:47:52]OFD Sender: No OFD packet to send [21:47:57]OFD Sender: No OFD packet to send [21:48:02]OFD Sender: No OFD packet to send [21:48:07]OFD Sender: No OFD packet to send [21:48:12]OFD Sender: No OFD packet to send [21:48:17]OFD Sender: No OFD packet to send [21:48:22]OFD Sender: No OFD packet to send [21:48:27]OFD Sender: No OFD packet to send [21:48:32]OFD Sender: No OFD packet to send [21:48:37]OFD Sender: No OFD packet to send [21:48:42]OFD Sender: No OFD packet to send [21:48:47]OFD Sender: No OFD packet to send [21:48:52]OFD Sender: No OFD packet to send [21:48:57]OFD Sender: No OFD packet to send [21:49:02]OFD Sender: No OFD packet to send [21:49:07]OFD Sender: No OFD packet to send [21:49:12]OFD Sender: No OFD packet to send [21:49:17]OFD Sender: No OFD packet to send [21:49:22]OFD Sender: No OFD packet to send [21:49:27]OFD Sender: No OFD packet to send [21:49:32]OFD Sender: No OFD packet to send [21:49:37]OFD Sender: No OFD packet to send [21:49:42]OFD Sender: No OFD packet to send [21:49:47]OFD Sender: No OFD packet to send [21:49:52]OFD Sender: No OFD packet to send [21:49:57]OFD Sender: No OFD packet to send [21:50:02]OFD Sender: No OFD packet to send [21:50:07]OFD Sender: No OFD packet to send [21:50:12]OFD Sender: No OFD packet to send [21:50:17]OFD Sender: No OFD packet to send [21:50:22]OFD Sender: No OFD packet to send [21:50:27]OFD Sender: No OFD packet to send [21:50:32]OFD Sender: No OFD packet to send [21:50:37]OFD Sender: No OFD packet to send [21:50:42]OFD Sender: No OFD packet to send [21:50:47]OFD Sender: No OFD packet to send [21:50:52]OFD Sender: No OFD packet to send [21:50:57]OFD Sender: No OFD packet to send [21:51:02]OFD Sender: No OFD packet to send [21:51:06]accept exits with 8 [21:51:06]New connection [21:51:06]New thread 3067112804 created [21:51:06]Thread 3066969444 joined [21:51:06]Waiting for new connection... [21:51:06] Sock 8.Parse request [21:51:06]Sock 8.Check first char [21:51:06]Sock 8.First char is OK [21:51:06]request: POST /json_proto HTTP/1.0 [21:51:06]Method: POST [21:51:06]URL: /json_proto [21:51:06]Method is POST - this is cgi request [21:51:06]url: /json_proto [21:51:06]query_string will be loaded in cgi processing [21:51:06]execute_cgi json_proto POST (null) [21:51:06]execute_cgi path=json_proto method=POST [21:51:06]POST find Content-Length [21:51:06]Host: 172.17.33.3:8080 [21:51:06]Content-Length: 677 [21:51:06]Content-Type: application/json [21:51:06] [21:51:06]POST finish read [21:51:06]Found Content-Length = 677 [21:51:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347769", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.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:51:06]execute_script... [21:51: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)347769", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.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:51:06]POST & json_proto [21:51:06]process_json_proto [21:51:06]json parsed OK: [21:51:06]protocol is kg_v1.0 [21:51:06]action value=close_receipt [21:51:06]process_action close_receipt [21:51:06]cmd_close_receipt [21:51:06]MH_GetDate [21:51:06]Write to MH i2c: F0 00 00 24 0C 1F [21:51:06]Write i2c OK [21:51:06]MH_I2C_Read... [21:51:06]Read from MH i2c: F0 [21:51:06]MH_I2C_Read... [21:51:06]Read from MH i2c: F0 09 00 [21:51:06]MH_I2C_Read... [21:51:06]Read from MH i2c: F0 09 00 24 0C 00 CB 4F 1C 66 23 5B 8F 65 36 [21:51:06]GetLastDocTimeStamp 1713131080 [21:51:06]current date 1713131467 [21:51:06]FM_GetShiftState [21:51:06]SAM_PROTO_GetShiftState [21:51:06]wFMCommunicate request_size=4 [21:51:06]MH_SAM_APDU [21:51:06]CAPDU: 80 13 01 00 [21:51:06]Write to MH i2c: E2 08 00 25 0C 80 13 01 00 00 00 00 00 AE [21:51:06]Write i2c OK [21:51:06]MH_I2C_Read... [21:51:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:51:06]Read from MH i2c: E2 [21:51:06]MH_I2C_Read... [21:51:06]Read from MH i2c: E2 0E 00 [21:51:06]MH_I2C_Read... [21:51:06]Read from MH i2c: E2 0E 00 25 0C 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 5A [21:51:06]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [21:51:06]wFMCommunicate OK [21:51:06]SAM_PROTO_GetShiftState done [21:51:06]FM_GetShiftState done [21:51:06]opened in 1713053951 [21:51:06]opened+sec_in_day 1713140351 [21:51:06]quantity*price = 60056 [21:51:06]sum+1 = 60057 [21:51:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.78 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 282 14.04.2024 21:51 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29372 ФПД: 233889328660574 1/tax-web-control/client/api/v1/ticket?date=20240414T215107&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29372&fm=233889328660574&tin=02508201610067®Number=0000138879044617&sum=60000 [21:51:07]StoreToDocumentArchive [21:51:07]shift 116 fd 29372 [21:51:07]save to /storage/0116/doc_00029372 [21:51:07]save last doc name /storage/0116/doc_00029372 to /storage/kkm_last_doc_name [21:51:07]save OK [21:51:07]Clear old archive folders... [21:51:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:51:07]tlvbuf is 0026EF50 [21:51:07]SAM_PROTO_ClearQueue [21:51:07]wFMCommunicate request_size=4 [21:51:07]MH_SAM_APDU [21:51:07]CAPDU: 80 09 00 00 [21:51:07]Write to MH i2c: E2 08 00 32 0C 80 09 00 00 00 00 00 00 B0 [21:51:07]Write i2c OK [21:51:07]MH_I2C_Read... [21:51:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:51:07]Read from MH i2c: E2 [21:51:07]MH_I2C_Read... [21:51:07]Read from MH i2c: E2 03 00 [21:51:07]MH_I2C_Read... [21:51:07]Read from MH i2c: E2 03 00 32 0C 00 90 00 B2 [21:51:07]RAPDU: 90 00 [21:51:07]wFMCommunicate OK [21:51:07]SAM_PROTO_ClearQueue done [21:51:07]KKMCreateOFDPacket [21:51:07]OFDProtocolAddRootSTLVToBuf [21:51:07]FM_MakeSignedData [21:51:07]FM_MakeSignedData [21:51:07]SAM_PROTO_SignData [21:51:07]wFMCommunicate request_size=4 [21:51:07]MH_SAM_APDU [21:51:07]CAPDU: 80 0D 01 02 [21:51:07]Write to MH i2c: E2 08 00 33 0C 80 0D 01 02 00 00 00 00 B8 [21:51:07]Write i2c OK [21:51:07]MH_I2C_Read... [21:51:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:51:07]Read from MH i2c: E2 [21:51:07]MH_I2C_Read... [21:51:07]Read from MH i2c: E2 03 00 [21:51:07]MH_I2C_Read... [21:51:07]Read from MH i2c: E2 03 00 33 0C 00 90 00 B3 [21:51:07]RAPDU: 90 00 [21:51:07]wFMCommunicate OK [21:51:07]wFMCommunicate request_size=255 [21:51:07]MH_SAM_APDU [21:51: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 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 1A 01 00 00 F4 03 04 00 CB 4F 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BC 72 00 00 35 04 06 00 D4 [21:51:07]Write to MH i2c: E2 02 01 34 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 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 1A 01 00 00 F4 03 04 00 CB 4F 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BC 72 00 00 35 04 06 00 D4 00 00 10 [21:51:07]Write i2c OK [21:51:07]MH_I2C_Read... [21:51:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:51:07]Read from MH i2c: E2 [21:51:07]MH_I2C_Read... [21:51:07]Read from MH i2c: E2 03 00 [21:51:07]MH_I2C_Read... [21:51:07]Read from MH i2c: E2 03 00 34 0C 00 90 00 B4 [21:51:07]RAPDU: 90 00 [21:51:07]wFMCommunicate OK [21:51:07]wFMCommunicate request_size=10 [21:51:07]MH_SAM_APDU [21:51:07]CAPDU: 80 0D 02 02 05 B8 9A 5A 00 5E [21:51:07]Write to MH i2c: E2 0D 00 35 0C 80 0D 02 02 05 00 B8 9A 5A 00 5E 00 00 CF [21:51:07]Write i2c OK [21:51:07]MH_I2C_Read... [21:51:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:51:07]Read from MH i2c: E2 [21:51:07]MH_I2C_Read... [21:51:07]Read from MH i2c: E2 03 00 [21:51:07]MH_I2C_Read... [21:51:07]Read from MH i2c: E2 03 00 35 0C 00 90 00 B5 [21:51:07]RAPDU: 90 00 [21:51:07]wFMCommunicate OK [21:51:07]wFMCommunicate request_size=4 [21:51:07]MH_SAM_APDU [21:51:07]CAPDU: 80 0D 03 02 [21:51:07]Write to MH i2c: E2 08 00 36 0C 80 0D 03 02 00 00 00 00 BD [21:51:07]Write i2c OK [21:51:07]MH_I2C_Read... [21:51:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:51:07]Read from MH i2c: E2 [21:51:07]MH_I2C_Read... [21:51:07]Read from MH i2c: E2 0B 00 [21:51:07]MH_I2C_Read... [21:51:07]Read from MH i2c: E2 0B 00 36 0C 00 5C E4 37 83 ED B4 9A 12 90 00 05 [21:51:07]RAPDU: 5C E4 37 83 ED B4 9A 12 90 00 [21:51:07]wFMCommunicate OK [21:51:07]SAM_PROTO_SignData done [21:51:07]FM_MakeSignedData done [21:51:07]CreateOFDProtocolMessage [21:51:07]wFMCommunicate request_size=4 [21:51:07]MH_SAM_APDU [21:51:07]CAPDU: 80 11 00 00 [21:51:07]Write to MH i2c: E2 08 00 37 0C 80 11 00 00 00 00 00 00 BD [21:51:07]Write i2c OK [21:51:07]MH_I2C_Read... [21:51:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:51:08]Read from MH i2c: E2 [21:51:08]MH_I2C_Read... [21:51:08]Read from MH i2c: E2 17 00 [21:51:08]MH_I2C_Read... [21:51:08]Read from MH i2c: E2 17 00 37 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 0C [21:51:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:51:08]wFMCommunicate OK [21:51:08]CreateOFDProtocolMessage done [21:51:08]OFDSenderStorePacket 29372 [21:51:08]StoreOFDPacket docnum=29372 [21:51:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 77 65 07 01 04 62 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 1A 01 00 00 F4 03 04 00 CB 4F 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BC 72 00 00 35 04 06 00 D4 B8 9A 5A 00 5E 5C E4 37 83 ED B4 9A 12 [21:51:08]CheckFolder [21:51:08]dirname=/storage/ofd_packets [21:51:08]CheckFolder done [21:51:08]ProducePacketName [21:51:08]name=ofd_packets/00029372 [21:51:08]NVStorageSaveData ofd_packets/00029372 [21:51:08]File name is /storage/ofd_packets/00029372 [21:51:08]Write 301 bytes [21:51:08]NVStorageSaveData done [21:51:08]OFDSenderStorePacket done [21:51:08]KKMCreateOFDPacket done [21:51:08]NVStorageSaveData kkm_last_timestamp [21:51:08]File name is /storage/kkm_last_timestamp [21:51:08]Write 4 bytes [21:51:08]NVStorageSaveData done [21:51:08]ExternCall_PrintAddStr [21:51:08]wPrintStart [21:51:08]Write to MH i2c: 01 00 00 38 0C 44 [21:51:08]Write i2c OK [21:51:08]MH_I2C_Read... [21:51:08]Read from MH i2c: 01 [21:51:08]MH_I2C_Read... [21:51:08]Read from MH i2c: 01 07 00 [21:51:08]MH_I2C_Read... [21:51:08]Read from MH i2c: 01 07 00 38 0C 00 00 00 00 00 FF 0F 59 [21:51:08]RasterBufferAndPrint [21:51:08]line Счет N : (1)347769 [21:51:08]line ИНН: 02508201610067 [21:51:08]line Контрольно-Кассовый Чек [21:51:08]line ПРОДАЖА [21:51:08]line ТРК (МРК, ГНК) : 13 [21:51:08]line Товар: 2710124130 [21:51:08]line Аи-92-К-5 [21:51:08]line 9.340 * 64.30 [21:51:08]line = 600.56 [21:51:08]line НДС 12% НСП 1% [21:51:08]line > о реализуемом товаре [21:51:08]line ОКРУГЛЕНИЕ: -0.56 [21:51:08]line ИТОГО: 600.00 [21:51:08]line Внесено: 600.00 [21:51:08]line СДАЧА: 0.00 [21:51:08]line НСП 1% : 5.31 [21:51:08]line НДС 12% : 63.78 [21:51:08]line Наличными: 600.00 [21:51:08]line Безнал.: 0.00 [21:51:08]line Место: АЗС № 108 "Партнер Нефть" [21:51:08]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [21:51:08]line СНО: Общий режим [21:51:08]line Чек 282 14.04.2024 21:51 [21:51:08]line Смена: 116 ФФД: 1.0 [21:51:08]line ЗНМ: 0300000027 [21:51:08]line РНМ: 0000138879044617 [21:51:08]line Версия ККМ: 001 [21:51:08]line ФМ: 0000000000963154 [21:51:08]line ФД: 29372 [21:51:08]line ФПД: 233889328660574 [21:51:08]line 1/tax-web-control/client/api/v1/ticket?date=20240414T215107&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29372&fm=233889328660574&tin=02508201610067®Number=0000138879044617&sum=60000 [21:51:08]OFD Sender: Processing packet 29372 [packets to send 8, broken 7] [21:51:08]ProducePacketName [21:51:08]name=ofd_packets/00029372 [21:51:08]OFD Sender: To server: pG, [21:51:08]CommunicateWithHost lk.salyk.kg:30040 [21:51:08]ConnectInit lk.salyk.kg [21:51:08]written 0, free lines is 4095 [21:51:08]Connected sock=11 [21:51:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 77 65 07 01 04 62 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 1A 01 00 00 F4 03 04 00 CB 4F 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BC 72 00 00 35 04 06 00 D4 B8 9A 5A 00 5E 5C E4 37 83 ED B4 9A 12 [21:51:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 92 EF 47 00 12 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BC 72 00 00 F4 03 04 00 6E FA 1B 66 B6 04 01 00 00 5F 6C 9E 28 A2 22 3C F8 [21:51:08]CommunicateWithHost err = 0 [21:51:08]CheckOFDResponse [21:51:08]1017 (14) - 77093643461234 [21:51:08]1041 (16) - 0000000000963154 [21:51:08]1040 (4) - 29372 [21:51:08]1012 (4) - 14.04.2024 15:46 [21:51:08]1206 (1) - 0 [21:51:08]OFD Sender: Remove packet 29372 [21:51:08]ProducePacketName [21:51:08]name=ofd_packets/00029372 [21:51:08]NVStorageDeleteData [21:51:08]Write to MH i2c: 01 00 00 62 0C 6E [21:51:08]Write i2c OK [21:51:08]MH_I2C_Read... [21:51:08]Read from MH i2c: 01 [21:51:08]MH_I2C_Read... [21:51:08]Read from MH i2c: 01 07 00 [21:51:08]MH_I2C_Read... [21:51:08]Read from MH i2c: 01 07 00 62 0C 00 00 00 00 00 C2 0C 43 [21:51:08]RasterBufferAndPrint [21:51:08]line [21:51:08]line [21:51:08]line [21:51:08]line [21:51:08]line [21:51:08]written 0, free lines is 3270 [21:51:08]MH_Cut [21:51:08]Write to MH i2c: D1 01 00 69 0C 01 47 [21:51:08]Write i2c OK [21:51:08]MH_I2C_Read... [21:51:08]Read from MH i2c: D1 [21:51:08]MH_I2C_Read... [21:51:08]Read from MH i2c: D1 01 00 [21:51:08]MH_I2C_Read... [21:51:08]Read from MH i2c: D1 01 00 69 0C 00 46 [21:51:08]Write to MH i2c: 01 00 00 6A 0C 76 [21:51:08]Write i2c OK [21:51:08]MH_I2C_Read... [21:51:09]OFD Sender: No OFD packet to send [21:51:09]*** Cut start [21:51:09]*** Partial cut [21:51:09]*** CUTSNS_PIN = 1 [21:51:09]*** CUTSNS_PIN = 0 [21:51:09]*** Brake cut motor [21:51:10]Read from MH i2c: 01 [21:51:10]MH_I2C_Read... [21:51:10]*** Stop cut motor [21:51:10]*** Cut end [21:51:10]Read from MH i2c: 01 07 00 [21:51:10]MH_I2C_Read... [21:51:10]Read from MH i2c: 01 07 00 6A 0C 00 00 00 00 00 FF 0F 8B [21:51:10]process_action close_receipt done [21:51:10]requested_data is exist [21:51:10]produce_requested_data [21:51:10]requested_item fm.sn is exist - process it [21:51:10]wFMCommunicate request_size=4 [21:51:10]MH_SAM_APDU [21:51:10]CAPDU: 80 11 00 00 [21:51:10]Write to MH i2c: E2 08 00 6B 0C 80 11 00 00 00 00 00 00 F1 [21:51:10]Write i2c OK [21:51:10]MH_I2C_Read... [21:51:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:51:10]Read from MH i2c: E2 [21:51:10]MH_I2C_Read... [21:51:10]Read from MH i2c: E2 17 00 [21:51:10]MH_I2C_Read... [21:51:10]Read from MH i2c: E2 17 00 6B 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 40 [21:51:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:51:10]wFMCommunicate OK [21:51:10]requested_item fd.num is exist - process it [21:51:10]SAM_PROTO_GetFieldsCounters [21:51:10]wFMCommunicate request_size=4 [21:51:10]MH_SAM_APDU [21:51:10]CAPDU: 80 13 00 00 [21:51:10]Write to MH i2c: E2 08 00 6C 0C 80 13 00 00 00 00 00 00 F4 [21:51:10]Write i2c OK [21:51:10]MH_I2C_Read... [21:51:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:51:10]Read from MH i2c: E2 [21:51:10]MH_I2C_Read... [21:51:10]Read from MH i2c: E2 62 00 [21:51:10]MH_I2C_Read... [21:51:10]Read from MH i2c: E2 62 00 6C 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 BC 72 00 00 0E 04 04 00 74 00 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 25 [21:51:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 BC 72 00 00 0E 04 04 00 74 00 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 [21:51:10]wFMCommunicate OK [21:51:10]SAM_PROTO_GetFieldsCounters done [21:51:10]requested_item shift.num is exist - process it [21:51:10]requested_item shift.opened is exist - process it [21:51:10]req_shift_opened [21:51:10]FM_GetShiftState [21:51:10]SAM_PROTO_GetShiftState [21:51:10]wFMCommunicate request_size=4 [21:51:10]MH_SAM_APDU [21:51:10]CAPDU: 80 13 01 00 [21:51:10]Write to MH i2c: E2 08 00 6D 0C 80 13 01 00 00 00 00 00 F6 [21:51:10]Write i2c OK [21:51:10]MH_I2C_Read... [21:51:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:51:10]Read from MH i2c: E2 [21:51:10]MH_I2C_Read... [21:51:10]Read from MH i2c: E2 0E 00 [21:51:10]MH_I2C_Read... [21:51:10]Read from MH i2c: E2 0E 00 6D 0C 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 A2 [21:51:10]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [21:51:10]wFMCommunicate OK [21:51:10]SAM_PROTO_GetShiftState done [21:51:10]FM_GetShiftState done [21:51:10]req_shift_opened done [21:51:10]requested_item shift.open_date is exist - process it [21:51:10]req_shift_open_date [21:51:10]req_shift_open_date done [21:51:10]produce_requested_data done [21:51:10]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29372,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [21:51:10]process_action_free close_receipt [21:51:10]json_value_free [21:51:10]json_value_free done [21:51:10]process_json_proto returns [21:51:10]Send response to host [21:51:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29372,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [21:51:10]free response buf [21:51:10]execute_script done [21:51:10]execute_script returns [21:51:10]free content buf [21:51:10]Sock 8.Close socket [21:51:10]Sock 8.Thread stoped [21:51:10]accept exits with 9 [21:51:10]New connection [21:51:10]New thread 3066969444 created [21:51:10]Thread 3067112804 joined [21:51:10]Waiting for new connection... [21:51:10] Sock 9.Parse request [21:51:10]Sock 9.Check first char [21:51:10]Sock 9.First char is OK [21:51:10]request: POST /json_proto HTTP/1.0 [21:51:10]Method: POST [21:51:10]URL: /json_proto [21:51:10]Method is POST - this is cgi request [21:51:10]url: /json_proto [21:51:10]query_string will be loaded in cgi processing [21:51:10]execute_cgi json_proto POST (null) [21:51:10]execute_cgi path=json_proto method=POST [21:51:10]POST find Content-Length [21:51:10]Host: 172.17.33.3:8080 [21:51:10]Content-Length: 820 [21:51:10]Content-Type: application/json [21:51:10] [21:51:10]POST finish read [21:51:10]Found Content-Length = 820 [21:51:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347768", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 21.280, "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" ] } } [21:51:10]execute_script... [21:51: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)347768", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 21.280, "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" ] } } [21:51:10]POST & json_proto [21:51:10]process_json_proto [21:51:10]json parsed OK: [21:51:10]protocol is kg_v1.0 [21:51:10]action value=close_receipt [21:51:10]process_action close_receipt [21:51:10]cmd_close_receipt [21:51:10]MH_GetDate [21:51:10]Write to MH i2c: F0 00 00 6E 0C 69 [21:51:10]Write i2c OK [21:51:10]MH_I2C_Read... [21:51:10]Read from MH i2c: F0 [21:51:10]MH_I2C_Read... [21:51:10]Read from MH i2c: F0 09 00 [21:51:10]MH_I2C_Read... [21:51:10]Read from MH i2c: F0 09 00 6E 0C 00 CF 4F 1C 66 23 5B 8F 65 84 [21:51:10]GetLastDocTimeStamp 1713131467 [21:51:10]current date 1713131471 [21:51:10]FM_GetShiftState [21:51:10]SAM_PROTO_GetShiftState [21:51:10]wFMCommunicate request_size=4 [21:51:10]MH_SAM_APDU [21:51:10]CAPDU: 80 13 01 00 [21:51:10]Write to MH i2c: E2 08 00 6F 0C 80 13 01 00 00 00 00 00 F8 [21:51:10]Write i2c OK [21:51:10]MH_I2C_Read... [21:51:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:51:10]Read from MH i2c: E2 [21:51:10]MH_I2C_Read... [21:51:10]Read from MH i2c: E2 0E 00 [21:51:10]MH_I2C_Read... [21:51:10]Read from MH i2c: E2 0E 00 6F 0C 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 A4 [21:51:10]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [21:51:10]wFMCommunicate OK [21:51:10]SAM_PROTO_GetShiftState done [21:51:10]FM_GetShiftState done [21:51:10]opened in 1713053951 [21:51:10]opened+sec_in_day 1713140351 [21:51:10]quantity*price = 70011 [21:51:10]sum+1 = 70012 [21:51:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.11 НСП 1% : 6.20 НДС 12% : 74.35 Наличными: 0.00 Безнал.: 700.11 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 283 14.04.2024 21:51 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 29373 ФПД: 252415507624480 1/tax-web-control/client/api/v1/ticket?date=20240414T215112&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29373&fm=252415507624480&tin=02508201610067®Number=0000138879044617&sum=70011 [21:51:12]StoreToDocumentArchive [21:51:12]shift 116 fd 29373 [21:51:12]save to /storage/0116/doc_00029373 [21:51:12]save last doc name /storage/0116/doc_00029373 to /storage/kkm_last_doc_name [21:51:12]save OK [21:51:12]Clear old archive folders... [21:51:12]ProcessDocumentItem done err = 0, tmpTLVsize=250 [21:51:12]tlvbuf is 001EDCD0 [21:51:12]SAM_PROTO_ClearQueue [21:51:12]wFMCommunicate request_size=4 [21:51:12]MH_SAM_APDU [21:51:12]CAPDU: 80 09 00 00 [21:51:12]Write to MH i2c: E2 08 00 7C 0C 80 09 00 00 00 00 00 00 FA [21:51:12]Write i2c OK [21:51:12]MH_I2C_Read... [21:51:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:51:12]Read from MH i2c: E2 [21:51:12]MH_I2C_Read... [21:51:12]Read from MH i2c: E2 03 00 [21:51:12]MH_I2C_Read... [21:51:12]Read from MH i2c: E2 03 00 7C 0C 00 90 00 FC [21:51:12]RAPDU: 90 00 [21:51:12]wFMCommunicate OK [21:51:12]SAM_PROTO_ClearQueue done [21:51:12]KKMCreateOFDPacket [21:51:12]OFDProtocolAddRootSTLVToBuf [21:51:12]FM_MakeSignedData [21:51:12]FM_MakeSignedData [21:51:12]SAM_PROTO_SignData [21:51:12]wFMCommunicate request_size=4 [21:51:12]MH_SAM_APDU [21:51:12]CAPDU: 80 0D 01 02 [21:51:12]Write to MH i2c: E2 08 00 7D 0C 80 0D 01 02 00 00 00 00 02 [21:51:12]Write i2c OK [21:51:12]MH_I2C_Read... [21:51:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:51:12]Read from MH i2c: E2 [21:51:12]MH_I2C_Read... [21:51:12]Read from MH i2c: E2 03 00 [21:51:12]MH_I2C_Read... [21:51:12]Read from MH i2c: E2 03 00 7D 0C 00 90 00 FD [21:51:12]RAPDU: 90 00 [21:51:12]wFMCommunicate OK [21:51:12]wFMCommunicate request_size=255 [21:51:12]MH_SAM_APDU [21:51: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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 20 53 00 00 00 00 00 37 04 06 00 DA 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 1B 01 00 00 F4 03 04 00 D0 4F 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BD 72 00 00 35 04 06 00 E5 92 [21:51:12]Write to MH i2c: E2 02 01 7E 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 20 53 00 00 00 00 00 37 04 06 00 DA 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 1B 01 00 00 F4 03 04 00 D0 4F 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BD 72 00 00 35 04 06 00 E5 92 00 00 46 [21:51:12]Write i2c OK [21:51:12]MH_I2C_Read... [21:51:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:51:12]Read from MH i2c: E2 [21:51:12]MH_I2C_Read... [21:51:12]Read from MH i2c: E2 03 00 [21:51:12]MH_I2C_Read... [21:51:12]Read from MH i2c: E2 03 00 7E 0C 00 90 00 FE [21:51:12]RAPDU: 90 00 [21:51:12]wFMCommunicate OK [21:51:12]wFMCommunicate request_size=9 [21:51:12]MH_SAM_APDU [21:51:12]CAPDU: 80 0D 02 02 04 10 AA F2 20 [21:51:12]Write to MH i2c: E2 0C 00 7F 0C 80 0D 02 02 04 00 10 AA F2 20 00 00 D9 [21:51:12]Write i2c OK [21:51:12]MH_I2C_Read... [21:51:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:51:12]Read from MH i2c: E2 [21:51:12]MH_I2C_Read... [21:51:12]Read from MH i2c: E2 03 00 [21:51:12]MH_I2C_Read... [21:51:12]Read from MH i2c: E2 03 00 7F 0C 00 90 00 FF [21:51:12]RAPDU: 90 00 [21:51:12]wFMCommunicate OK [21:51:12]wFMCommunicate request_size=4 [21:51:12]MH_SAM_APDU [21:51:12]CAPDU: 80 0D 03 02 [21:51:12]Write to MH i2c: E2 08 00 80 0C 80 0D 03 02 00 00 00 00 07 [21:51:12]Write i2c OK [21:51:12]MH_I2C_Read... [21:51:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:51:12]Read from MH i2c: E2 [21:51:12]MH_I2C_Read... [21:51:12]Read from MH i2c: E2 0B 00 [21:51:12]MH_I2C_Read... [21:51:12]Read from MH i2c: E2 0B 00 80 0C 00 F9 9F 08 BA 4E 1D CB AC 90 00 44 [21:51:12]RAPDU: F9 9F 08 BA 4E 1D CB AC 90 00 [21:51:12]wFMCommunicate OK [21:51:12]SAM_PROTO_SignData done [21:51:12]FM_MakeSignedData done [21:51:12]CreateOFDProtocolMessage [21:51:12]wFMCommunicate request_size=4 [21:51:12]MH_SAM_APDU [21:51:12]CAPDU: 80 11 00 00 [21:51:12]Write to MH i2c: E2 08 00 81 0C 80 11 00 00 00 00 00 00 07 [21:51:12]Write i2c OK [21:51:12]MH_I2C_Read... [21:51:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:51:12]Read from MH i2c: E2 [21:51:12]MH_I2C_Read... [21:51:12]Read from MH i2c: E2 17 00 [21:51:12]MH_I2C_Read... [21:51:12]Read from MH i2c: E2 17 00 81 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 56 [21:51:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:51:12]wFMCommunicate OK [21:51:12]CreateOFDProtocolMessage done [21:51:12]OFDSenderStorePacket 29373 [21:51:12]StoreOFDPacket docnum=29373 [21:51:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 0D 06 06 01 25 C4 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 20 53 00 00 00 00 00 37 04 06 00 DA 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 1B 01 00 00 F4 03 04 00 D0 4F 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BD 72 00 00 35 04 06 00 E5 92 10 AA F2 20 F9 9F 08 BA 4E 1D CB AC [21:51:12]CheckFolder [21:51:12]dirname=/storage/ofd_packets [21:51:12]CheckFolder done [21:51:12]ProducePacketName [21:51:12]name=ofd_packets/00029373 [21:51:12]NVStorageSaveData ofd_packets/00029373 [21:51:12]File name is /storage/ofd_packets/00029373 [21:51:12]Write 300 bytes [21:51:12]NVStorageSaveData done [21:51:12]OFDSenderStorePacket done [21:51:12]KKMCreateOFDPacket done [21:51:12]NVStorageSaveData kkm_last_timestamp [21:51:12]File name is /storage/kkm_last_timestamp [21:51:12]Write 4 bytes [21:51:12]NVStorageSaveData done [21:51:12]ExternCall_PrintAddStr [21:51:12]wPrintStart [21:51:12]Write to MH i2c: 01 00 00 82 0C 8E [21:51:12]Write i2c OK [21:51:12]MH_I2C_Read... [21:51:12]Read from MH i2c: 01 [21:51:12]MH_I2C_Read... [21:51:12]Read from MH i2c: 01 07 00 [21:51:12]MH_I2C_Read... [21:51:12]Read from MH i2c: 01 07 00 82 0C 00 00 00 00 00 FF 0F A3 [21:51:12]RasterBufferAndPrint [21:51:12]line Счет N : (1)347768 [21:51:12]line ИНН: 02508201610067 [21:51:12]line Контрольно-Кассовый Чек [21:51:12]line ПРОДАЖА [21:51:12]line ТРК (МРК, ГНК) : 71 [21:51:12]line Товар: 2711129700 [21:51:12]line ГАЗ-К-5 [21:51:12]line 21.280 * 32.90 [21:51:12]line = 700.11 [21:51:12]line НДС 12% НСП 1% [21:51:12]line > о реализуемом товаре [21:51:12]line ИТОГО: 700.11 [21:51:12]line НСП 1% : 6.20 [21:51:12]line НДС 12% : 74.35 [21:51:12]line Наличными: 0.00 [21:51:12]line Безнал.: 700.11 [21:51:12]line Место: АЗС № 108 "Партнер Нефть" [21:51:12]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [21:51:12]line СНО: Общий режим [21:51:12]line Чек 283 14.04.2024 21:51 [21:51:12]line Смена: 116 ФФД: 1.0 [21:51:12]line ЗНМ: 0300000027 [21:51:12]line РНМ: 0000138879044617 [21:51:12]line Версия ККМ: 001 [21:51:12]line Платежная система: Бакай Банк [21:51:12]line ФМ: 0000000000963154 [21:51:12]line ФД: 29373 [21:51:12]line ФПД: 252415507624480 [21:51:12]line 1/tax-web-control/client/api/v1/ticket?date=20240414T215112&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29373&fm=252415507624480&tin=02508201610067®Number=0000138879044617&sum=70011 [21:51:12]OFD Sender: Processing packet 29373 [packets to send 8, broken 7] [21:51:12]ProducePacketName [21:51:12]name=ofd_packets/00029373 [21:51:12]OFD Sender: To server: pG, [21:51:12]CommunicateWithHost lk.salyk.kg:30040 [21:51:12]ConnectInit lk.salyk.kg [21:51:12]written 0, free lines is 4095 [21:51:12]Connected sock=10 [21:51:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 0D 06 06 01 25 C4 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 20 53 00 00 00 00 00 37 04 06 00 DA 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 1B 01 00 00 F4 03 04 00 D0 4F 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BD 72 00 00 35 04 06 00 E5 92 10 AA F2 20 F9 9F 08 BA 4E 1D CB AC [21:51:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 D1 E1 47 00 58 8B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BD 72 00 00 F4 03 04 00 73 FA 1B 66 B6 04 01 00 00 0C 7D 74 83 31 32 C1 27 [21:51:13]CommunicateWithHost err = 0 [21:51:13]CheckOFDResponse [21:51:13]1017 (14) - 77093643461234 [21:51:13]1041 (16) - 0000000000963154 [21:51:13]1040 (4) - 29373 [21:51:13]1012 (4) - 14.04.2024 15:46 [21:51:13]1206 (1) - 0 [21:51:13]OFD Sender: Remove packet 29373 [21:51:13]ProducePacketName [21:51:13]name=ofd_packets/00029373 [21:51:13]NVStorageDeleteData [21:51:13]Write to MH i2c: 01 00 00 AB 0C B7 [21:51:13]Write i2c OK [21:51:13]MH_I2C_Read... [21:51:13]Read from MH i2c: 01 [21:51:13]MH_I2C_Read... [21:51:13]Read from MH i2c: 01 07 00 [21:51:13]MH_I2C_Read... [21:51:13]Read from MH i2c: 01 07 00 AB 0C 00 00 00 00 00 E2 0C AC [21:51:13]RasterBufferAndPrint [21:51:13]line [21:51:13]line [21:51:13]line [21:51:13]line [21:51:13]line [21:51:13]written 0, free lines is 3310 [21:51:13]MH_Cut [21:51:13]Write to MH i2c: D1 01 00 B2 0C 01 90 [21:51:13]Write i2c OK [21:51:13]MH_I2C_Read... [21:51:13]Read from MH i2c: D1 [21:51:13]MH_I2C_Read... [21:51:13]Read from MH i2c: D1 01 00 [21:51:13]MH_I2C_Read... [21:51:13]Read from MH i2c: D1 01 00 B2 0C 00 8F [21:51:13]Write to MH i2c: 01 00 00 B3 0C BF [21:51:13]Write i2c OK [21:51:13]MH_I2C_Read... [21:51:13]OFD Sender: No OFD packet to send [21:51:14]*** Cut start [21:51:14]*** Partial cut [21:51:14]*** CUTSNS_PIN = 1 [21:51:14]*** CUTSNS_PIN = 0 [21:51:14]*** Brake cut motor [21:51:14]Read from MH i2c: 01 [21:51:14]MH_I2C_Read... [21:51:14]*** Stop cut motor [21:51:14]*** Cut end [21:51:14]Read from MH i2c: 01 07 00 [21:51:14]MH_I2C_Read... [21:51:14]Read from MH i2c: 01 07 00 B3 0C 00 00 00 00 00 FF 0F D4 [21:51:14]process_action close_receipt done [21:51:14]requested_data is exist [21:51:14]produce_requested_data [21:51:14]requested_item fm.sn is exist - process it [21:51:14]wFMCommunicate request_size=4 [21:51:14]MH_SAM_APDU [21:51:14]CAPDU: 80 11 00 00 [21:51:14]Write to MH i2c: E2 08 00 B4 0C 80 11 00 00 00 00 00 00 3A [21:51:14]Write i2c OK [21:51:14]MH_I2C_Read... [21:51:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:51:14]Read from MH i2c: E2 [21:51:14]MH_I2C_Read... [21:51:14]Read from MH i2c: E2 17 00 [21:51:14]MH_I2C_Read... [21:51:14]Read from MH i2c: E2 17 00 B4 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 89 [21:51:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:51:14]wFMCommunicate OK [21:51:14]requested_item fd.num is exist - process it [21:51:14]SAM_PROTO_GetFieldsCounters [21:51:14]wFMCommunicate request_size=4 [21:51:14]MH_SAM_APDU [21:51:14]CAPDU: 80 13 00 00 [21:51:14]Write to MH i2c: E2 08 00 B5 0C 80 13 00 00 00 00 00 00 3D [21:51:14]Write i2c OK [21:51:14]MH_I2C_Read... [21:51:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:51:14]Read from MH i2c: E2 [21:51:14]MH_I2C_Read... [21:51:14]Read from MH i2c: E2 62 00 [21:51:14]MH_I2C_Read... [21:51:14]Read from MH i2c: E2 62 00 B5 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 BD 72 00 00 0E 04 04 00 74 00 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 72 [21:51:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 BD 72 00 00 0E 04 04 00 74 00 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 [21:51:14]wFMCommunicate OK [21:51:14]SAM_PROTO_GetFieldsCounters done [21:51:14]requested_item shift.num is exist - process it [21:51:14]requested_item shift.opened is exist - process it [21:51:14]req_shift_opened [21:51:14]FM_GetShiftState [21:51:14]SAM_PROTO_GetShiftState [21:51:14]wFMCommunicate request_size=4 [21:51:14]MH_SAM_APDU [21:51:14]CAPDU: 80 13 01 00 [21:51:15]Write to MH i2c: E2 08 00 B6 0C 80 13 01 00 00 00 00 00 3F [21:51:15]Write i2c OK [21:51:15]MH_I2C_Read... [21:51:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:51:15]Read from MH i2c: E2 [21:51:15]MH_I2C_Read... [21:51:15]Read from MH i2c: E2 0E 00 [21:51:15]MH_I2C_Read... [21:51:15]Read from MH i2c: E2 0E 00 B6 0C 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 EB [21:51:15]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [21:51:15]wFMCommunicate OK [21:51:15]SAM_PROTO_GetShiftState done [21:51:15]FM_GetShiftState done [21:51:15]req_shift_opened done [21:51:15]requested_item shift.open_date is exist - process it [21:51:15]req_shift_open_date [21:51:15]req_shift_open_date done [21:51:15]produce_requested_data done [21:51:15]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29373,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [21:51:15]process_action_free close_receipt [21:51:15]json_value_free [21:51:15]json_value_free done [21:51:15]process_json_proto returns [21:51:15]Send response to host [21:51:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29373,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [21:51:15]free response buf [21:51:15]execute_script done [21:51:15]execute_script returns [21:51:15]free content buf [21:51:15]Sock 9.Close socket [21:51:15]Sock 9.Thread stoped [21:51:18]OFD Sender: No OFD packet to send [21:51:23]OFD Sender: No OFD packet to send [21:51:28]OFD Sender: No OFD packet to send [21:51:33]OFD Sender: No OFD packet to send [21:51:38]OFD Sender: No OFD packet to send [21:51:43]OFD Sender: No OFD packet to send [21:51:48]OFD Sender: No OFD packet to send [21:51:53]OFD Sender: No OFD packet to send [21:51:58]OFD Sender: No OFD packet to send [21:52:03]OFD Sender: No OFD packet to send [21:52:08]OFD Sender: No OFD packet to send [21:52:13]OFD Sender: No OFD packet to send [21:52:18]OFD Sender: No OFD packet to send [21:52:23]OFD Sender: No OFD packet to send [21:52:28]OFD Sender: No OFD packet to send [21:52:33]OFD Sender: No OFD packet to send [21:52:38]OFD Sender: No OFD packet to send [21:52:43]OFD Sender: No OFD packet to send [21:52:48]OFD Sender: No OFD packet to send [21:52:51]accept exits with 8 [21:52:51]New connection [21:52:51]New thread 3067112804 created [21:52:51]Thread 3066969444 joined [21:52:51]Waiting for new connection... [21:52:51] Sock 8.Parse request [21:52:51]Sock 8.Check first char [21:52:51]Sock 8.First char is OK [21:52:51]request: POST /json_proto HTTP/1.0 [21:52:51]Method: POST [21:52:51]URL: /json_proto [21:52:51]Method is POST - this is cgi request [21:52:51]url: /json_proto [21:52:51]query_string will be loaded in cgi processing [21:52:51]execute_cgi json_proto POST (null) [21:52:51]execute_cgi path=json_proto method=POST [21:52:51]POST find Content-Length [21:52:51]Host: 172.17.33.3:8080 [21:52:51]Content-Length: 678 [21:52:51]Content-Type: application/json [21:52:51] [21:52:51]POST finish read [21:52:51]Found Content-Length = 678 [21:52:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347770", "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.820, "sum" : 631.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 631.00, "payments": [ { "type": 0, "sum" : 631.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:52:51]execute_script... [21:52: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)347770", "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.820, "sum" : 631.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 631.00, "payments": [ { "type": 0, "sum" : 631.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:52:51]POST & json_proto [21:52:51]process_json_proto [21:52:51]json parsed OK: [21:52:51]protocol is kg_v1.0 [21:52:51]action value=close_receipt [21:52:51]process_action close_receipt [21:52:51]cmd_close_receipt [21:52:51]MH_GetDate [21:52:51]Write to MH i2c: F0 00 00 B7 0C B2 [21:52:51]Write i2c OK [21:52:51]MH_I2C_Read... [21:52:51]Read from MH i2c: F0 [21:52:51]MH_I2C_Read... [21:52:51]Read from MH i2c: F0 09 00 [21:52:51]MH_I2C_Read... [21:52:51]Read from MH i2c: F0 09 00 B7 0C 00 34 50 1C 66 23 5B 8F 65 33 [21:52:51]GetLastDocTimeStamp 1713131472 [21:52:51]current date 1713131572 [21:52:51]FM_GetShiftState [21:52:51]SAM_PROTO_GetShiftState [21:52:51]wFMCommunicate request_size=4 [21:52:51]MH_SAM_APDU [21:52:51]CAPDU: 80 13 01 00 [21:52:51]Write to MH i2c: E2 08 00 B8 0C 80 13 01 00 00 00 00 00 41 [21:52:51]Write i2c OK [21:52:51]MH_I2C_Read... [21:52:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:52:51]Read from MH i2c: E2 [21:52:51]MH_I2C_Read... [21:52:51]Read from MH i2c: E2 0E 00 [21:52:51]MH_I2C_Read... [21:52:51]Read from MH i2c: E2 0E 00 B8 0C 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 ED [21:52:51]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [21:52:51]wFMCommunicate OK [21:52:51]SAM_PROTO_GetShiftState done [21:52:51]FM_GetShiftState done [21:52:51]opened in 1713053951 [21:52:51]opened+sec_in_day 1713140351 [21:52:51]quantity*price = 63142 [21:52:51]sum+1 = 63144 [21:52:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 631.00 Внесено: 5000.00 СДАЧА: 4369.00 НСП 1% : 5.59 НДС 12% : 67.05 Наличными: 631.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 284 14.04.2024 21:52 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29374 ФПД: 96398486278076 1/tax-web-control/client/api/v1/ticket?date=20240414T215252&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29374&fm=96398486278076&tin=02508201610067®Number=0000138879044617&sum=63100 [21:52:52]StoreToDocumentArchive [21:52:52]shift 116 fd 29374 [21:52:52]save to /storage/0116/doc_00029374 [21:52:52]save last doc name /storage/0116/doc_00029374 to /storage/kkm_last_doc_name [21:52:52]save OK [21:52:52]Clear old archive folders... [21:52:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:52:52]tlvbuf is 00211F40 [21:52:52]SAM_PROTO_ClearQueue [21:52:52]wFMCommunicate request_size=4 [21:52:52]MH_SAM_APDU [21:52:52]CAPDU: 80 09 00 00 [21:52:52]Write to MH i2c: E2 08 00 C5 0C 80 09 00 00 00 00 00 00 43 [21:52:52]Write i2c OK [21:52:52]MH_I2C_Read... [21:52:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:52:52]Read from MH i2c: E2 [21:52:52]MH_I2C_Read... [21:52:52]Read from MH i2c: E2 03 00 [21:52:52]MH_I2C_Read... [21:52:52]Read from MH i2c: E2 03 00 C5 0C 00 90 00 45 [21:52:52]RAPDU: 90 00 [21:52:52]wFMCommunicate OK [21:52:52]SAM_PROTO_ClearQueue done [21:52:52]KKMCreateOFDPacket [21:52:52]OFDProtocolAddRootSTLVToBuf [21:52:52]FM_MakeSignedData [21:52:52]FM_MakeSignedData [21:52:52]SAM_PROTO_SignData [21:52:52]wFMCommunicate request_size=4 [21:52:52]MH_SAM_APDU [21:52:52]CAPDU: 80 0D 01 02 [21:52:52]Write to MH i2c: E2 08 00 C6 0C 80 0D 01 02 00 00 00 00 4B [21:52:52]Write i2c OK [21:52:52]MH_I2C_Read... [21:52:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:52:52]Read from MH i2c: E2 [21:52:52]MH_I2C_Read... [21:52:52]Read from MH i2c: E2 03 00 [21:52:52]MH_I2C_Read... [21:52:52]Read from MH i2c: E2 03 00 C6 0C 00 90 00 46 [21:52:52]RAPDU: 90 00 [21:52:52]wFMCommunicate OK [21:52:52]wFMCommunicate request_size=255 [21:52:52]MH_SAM_APDU [21:52: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 5C 26 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 A7 F6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C F6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 1A 00 00 00 00 07 04 06 00 7C F6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 34 50 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BE 72 00 00 35 04 06 00 57 [21:52:52]Write to MH i2c: E2 02 01 C7 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 5C 26 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 A7 F6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C F6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 1A 00 00 00 00 07 04 06 00 7C F6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 34 50 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BE 72 00 00 35 04 06 00 57 00 00 46 [21:52:52]Write i2c OK [21:52:52]MH_I2C_Read... [21:52:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:52:52]Read from MH i2c: E2 [21:52:52]MH_I2C_Read... [21:52:52]Read from MH i2c: E2 03 00 [21:52:52]MH_I2C_Read... [21:52:52]Read from MH i2c: E2 03 00 C7 0C 00 90 00 47 [21:52:52]RAPDU: 90 00 [21:52:52]wFMCommunicate OK [21:52:52]wFMCommunicate request_size=10 [21:52:52]MH_SAM_APDU [21:52:52]CAPDU: 80 0D 02 02 05 AC 85 88 0F BC [21:52:52]Write to MH i2c: E2 0D 00 C8 0C 80 0D 02 02 05 00 AC 85 88 0F BC 00 00 DC [21:52:52]Write i2c OK [21:52:52]MH_I2C_Read... [21:52:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:52:52]Read from MH i2c: E2 [21:52:52]MH_I2C_Read... [21:52:52]Read from MH i2c: E2 03 00 [21:52:52]MH_I2C_Read... [21:52:52]Read from MH i2c: E2 03 00 C8 0C 00 90 00 48 [21:52:52]RAPDU: 90 00 [21:52:52]wFMCommunicate OK [21:52:52]wFMCommunicate request_size=4 [21:52:52]MH_SAM_APDU [21:52:52]CAPDU: 80 0D 03 02 [21:52:52]Write to MH i2c: E2 08 00 C9 0C 80 0D 03 02 00 00 00 00 50 [21:52:52]Write i2c OK [21:52:52]MH_I2C_Read... [21:52:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:52:52]Read from MH i2c: E2 [21:52:52]MH_I2C_Read... [21:52:52]Read from MH i2c: E2 0B 00 [21:52:52]MH_I2C_Read... [21:52:52]Read from MH i2c: E2 0B 00 C9 0C 00 F3 98 43 96 B7 37 A9 7C 90 00 C8 [21:52:52]RAPDU: F3 98 43 96 B7 37 A9 7C 90 00 [21:52:52]wFMCommunicate OK [21:52:52]SAM_PROTO_SignData done [21:52:52]FM_MakeSignedData done [21:52:52]CreateOFDProtocolMessage [21:52:52]wFMCommunicate request_size=4 [21:52:52]MH_SAM_APDU [21:52:52]CAPDU: 80 11 00 00 [21:52:52]Write to MH i2c: E2 08 00 CA 0C 80 11 00 00 00 00 00 00 50 [21:52:52]Write i2c OK [21:52:52]MH_I2C_Read... [21:52:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:52:53]Read from MH i2c: E2 [21:52:53]MH_I2C_Read... [21:52:53]Read from MH i2c: E2 17 00 [21:52:53]MH_I2C_Read... [21:52:53]Read from MH i2c: E2 17 00 CA 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 9F [21:52:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:52:53]wFMCommunicate OK [21:52:53]CreateOFDProtocolMessage done [21:52:53]OFDSenderStorePacket 29374 [21:52:53]StoreOFDPacket docnum=29374 [21:52:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 48 14 07 01 D1 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 26 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 A7 F6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C F6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 1A 00 00 00 00 07 04 06 00 7C F6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 34 50 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BE 72 00 00 35 04 06 00 57 AC 85 88 0F BC F3 98 43 96 B7 37 A9 7C [21:52:53]CheckFolder [21:52:53]dirname=/storage/ofd_packets [21:52:53]CheckFolder done [21:52:53]ProducePacketName [21:52:53]name=ofd_packets/00029374 [21:52:53]NVStorageSaveData ofd_packets/00029374 [21:52:53]File name is /storage/ofd_packets/00029374 [21:52:53]Write 301 bytes [21:52:53]NVStorageSaveData done [21:52:53]OFDSenderStorePacket done [21:52:53]KKMCreateOFDPacket done [21:52:53]NVStorageSaveData kkm_last_timestamp [21:52:53]File name is /storage/kkm_last_timestamp [21:52:53]Write 4 bytes [21:52:53]NVStorageSaveData done [21:52:53]ExternCall_PrintAddStr [21:52:53]wPrintStart [21:52:53]Write to MH i2c: 01 00 00 CB 0C D7 [21:52:53]Write i2c OK [21:52:53]MH_I2C_Read... [21:52:53]Read from MH i2c: 01 [21:52:53]MH_I2C_Read... [21:52:53]Read from MH i2c: 01 07 00 [21:52:53]MH_I2C_Read... [21:52:53]Read from MH i2c: 01 07 00 CB 0C 00 00 00 00 00 FF 0F EC [21:52:53]RasterBufferAndPrint [21:52:53]line Счет N : (1)347770 [21:52:53]line ИНН: 02508201610067 [21:52:53]line Контрольно-Кассовый Чек [21:52:53]line ПРОДАЖА [21:52:53]line ТРК (МРК, ГНК) : 32 [21:52:53]line Товар: 2710124130 [21:52:53]line Аи-92-К-5 [21:52:53]line 9.820 * 64.30 [21:52:53]line = 631.43 [21:52:53]line НДС 12% НСП 1% [21:52:53]line > о реализуемом товаре [21:52:53]line ОКРУГЛЕНИЕ: -0.43 [21:52:53]line ИТОГО: 631.00 [21:52:53]line Внесено: 5000.00 [21:52:53]line СДАЧА: 4369.00 [21:52:53]line НСП 1% : 5.59 [21:52:53]line НДС 12% : 67.05 [21:52:53]line Наличными: 631.00 [21:52:53]line Безнал.: 0.00 [21:52:53]line Место: АЗС № 108 "Партнер Нефть" [21:52:53]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [21:52:53]line СНО: Общий режим [21:52:53]line Чек 284 14.04.2024 21:52 [21:52:53]line Смена: 116 ФФД: 1.0 [21:52:53]line ЗНМ: 0300000027 [21:52:53]line РНМ: 0000138879044617 [21:52:53]line Версия ККМ: 001 [21:52:53]line ФМ: 0000000000963154 [21:52:53]line ФД: 29374 [21:52:53]line ФПД: 96398486278076 [21:52:53]line 1/tax-web-control/client/api/v1/ticket?date=20240414T215252&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29374&fm=96398486278076&tin=02508201610067®Number=0000138879044617&sum=63100 [21:52:53]OFD Sender: Processing packet 29374 [packets to send 8, broken 7] [21:52:53]ProducePacketName [21:52:53]name=ofd_packets/00029374 [21:52:53]OFD Sender: To server: pG, [21:52:53]CommunicateWithHost lk.salyk.kg:30040 [21:52:53]ConnectInit lk.salyk.kg [21:52:53]written 0, free lines is 4095 [21:52:53]Connected sock=11 [21:52:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 48 14 07 01 D1 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 26 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 A7 F6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C F6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 1A 00 00 00 00 07 04 06 00 7C F6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 34 50 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BE 72 00 00 35 04 06 00 57 AC 85 88 0F BC F3 98 43 96 B7 37 A9 7C [21:52:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 AB 08 47 00 17 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BE 72 00 00 F4 03 04 00 D7 FA 1B 66 B6 04 01 00 00 58 EF 07 DB 2A 27 BB E8 [21:52:53]CommunicateWithHost err = 0 [21:52:53]CheckOFDResponse [21:52:53]1017 (14) - 77093643461234 [21:52:53]1041 (16) - 0000000000963154 [21:52:53]1040 (4) - 29374 [21:52:53]1012 (4) - 14.04.2024 15:48 [21:52:53]1206 (1) - 0 [21:52:53]OFD Sender: Remove packet 29374 [21:52:53]ProducePacketName [21:52:53]name=ofd_packets/00029374 [21:52:53]NVStorageDeleteData [21:52:53]Write to MH i2c: 01 00 00 F5 0C 01 [21:52:53]Write i2c OK [21:52:53]MH_I2C_Read... [21:52:53]Read from MH i2c: 01 [21:52:53]MH_I2C_Read... [21:52:53]Read from MH i2c: 01 07 00 [21:52:53]MH_I2C_Read... [21:52:53]Read from MH i2c: 01 07 00 F5 0C 00 00 00 00 00 C8 0C DC [21:52:53]RasterBufferAndPrint [21:52:53]line [21:52:53]line [21:52:53]line [21:52:53]line [21:52:53]line [21:52:53]written 0, free lines is 3276 [21:52:53]MH_Cut [21:52:53]Write to MH i2c: D1 01 00 FC 0C 01 DA [21:52:53]Write i2c OK [21:52:53]MH_I2C_Read... [21:52:53]Read from MH i2c: D1 [21:52:53]MH_I2C_Read... [21:52:53]Read from MH i2c: D1 01 00 [21:52:53]MH_I2C_Read... [21:52:53]Read from MH i2c: D1 01 00 FC 0C 00 D9 [21:52:53]Write to MH i2c: 01 00 00 FD 0C 09 [21:52:53]Write i2c OK [21:52:53]MH_I2C_Read... [21:52:54]OFD Sender: No OFD packet to send [21:52:54]*** Cut start [21:52:54]*** Partial cut [21:52:54]*** CUTSNS_PIN = 1 [21:52:54]*** CUTSNS_PIN = 0 [21:52:54]*** Brake cut motor [21:52:55]Read from MH i2c: 01 [21:52:55]MH_I2C_Read... [21:52:55]*** Stop cut motor [21:52:55]*** Cut end [21:52:55]Read from MH i2c: 01 07 00 [21:52:55]MH_I2C_Read... [21:52:55]Read from MH i2c: 01 07 00 FD 0C 00 00 00 00 00 FF 0F 1E [21:52:55]process_action close_receipt done [21:52:55]requested_data is exist [21:52:55]produce_requested_data [21:52:55]requested_item fm.sn is exist - process it [21:52:55]wFMCommunicate request_size=4 [21:52:55]MH_SAM_APDU [21:52:55]CAPDU: 80 11 00 00 [21:52:55]Write to MH i2c: E2 08 00 FE 0C 80 11 00 00 00 00 00 00 84 [21:52:55]Write i2c OK [21:52:55]MH_I2C_Read... [21:52:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:52:55]Read from MH i2c: E2 [21:52:55]MH_I2C_Read... [21:52:55]Read from MH i2c: E2 17 00 [21:52:55]MH_I2C_Read... [21:52:55]Read from MH i2c: E2 17 00 FE 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D3 [21:52:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:52:55]wFMCommunicate OK [21:52:55]requested_item fd.num is exist - process it [21:52:55]SAM_PROTO_GetFieldsCounters [21:52:55]wFMCommunicate request_size=4 [21:52:55]MH_SAM_APDU [21:52:55]CAPDU: 80 13 00 00 [21:52:55]Write to MH i2c: E2 08 00 FF 0C 80 13 00 00 00 00 00 00 87 [21:52:55]Write i2c OK [21:52:55]MH_I2C_Read... [21:52:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:52:55]Read from MH i2c: E2 [21:52:55]MH_I2C_Read... [21:52:55]Read from MH i2c: E2 62 00 [21:52:55]MH_I2C_Read... [21:52:55]Read from MH i2c: E2 62 00 FF 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 BE 72 00 00 0E 04 04 00 74 00 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 C0 [21:52:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 BE 72 00 00 0E 04 04 00 74 00 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 [21:52:55]wFMCommunicate OK [21:52:55]SAM_PROTO_GetFieldsCounters done [21:52:55]requested_item shift.num is exist - process it [21:52:55]requested_item shift.opened is exist - process it [21:52:55]req_shift_opened [21:52:55]FM_GetShiftState [21:52:55]SAM_PROTO_GetShiftState [21:52:55]wFMCommunicate request_size=4 [21:52:55]MH_SAM_APDU [21:52:55]CAPDU: 80 13 01 00 [21:52:55]Write to MH i2c: E2 08 00 00 0D 80 13 01 00 00 00 00 00 8A [21:52:55]Write i2c OK [21:52:55]MH_I2C_Read... [21:52:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:52:55]Read from MH i2c: E2 [21:52:55]MH_I2C_Read... [21:52:55]Read from MH i2c: E2 0E 00 [21:52:55]MH_I2C_Read... [21:52:55]Read from MH i2c: E2 0E 00 00 0D 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 36 [21:52:55]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [21:52:55]wFMCommunicate OK [21:52:55]SAM_PROTO_GetShiftState done [21:52:55]FM_GetShiftState done [21:52:55]req_shift_opened done [21:52:55]requested_item shift.open_date is exist - process it [21:52:55]req_shift_open_date [21:52:55]req_shift_open_date done [21:52:55]produce_requested_data done [21:52:55]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29374,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [21:52:55]process_action_free close_receipt [21:52:55]json_value_free [21:52:55]json_value_free done [21:52:55]process_json_proto returns [21:52:55]Send response to host [21:52:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29374,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [21:52:55]free response buf [21:52:55]execute_script done [21:52:55]execute_script returns [21:52:55]free content buf [21:52:55]Sock 8.Close socket [21:52:55]Sock 8.Thread stoped [21:52:59]OFD Sender: No OFD packet to send [21:53:04]OFD Sender: No OFD packet to send [21:53:09]OFD Sender: No OFD packet to send [21:53:14]OFD Sender: No OFD packet to send [21:53:19]OFD Sender: No OFD packet to send [21:53:24]OFD Sender: No OFD packet to send [21:53:29]OFD Sender: No OFD packet to send [21:53:34]OFD Sender: No OFD packet to send [21:53:39]OFD Sender: No OFD packet to send [21:53:44]OFD Sender: No OFD packet to send [21:53:49]OFD Sender: No OFD packet to send [21:53:54]OFD Sender: No OFD packet to send [21:53:59]OFD Sender: No OFD packet to send [21:54:04]OFD Sender: No OFD packet to send [21:54:09]OFD Sender: No OFD packet to send [21:54:14]OFD Sender: No OFD packet to send [21:54:19]OFD Sender: No OFD packet to send [21:54:24]OFD Sender: No OFD packet to send [21:54:29]OFD Sender: No OFD packet to send [21:54:34]OFD Sender: No OFD packet to send [21:54:39]OFD Sender: No OFD packet to send [21:54:44]OFD Sender: No OFD packet to send [21:54:49]OFD Sender: No OFD packet to send [21:54:54]OFD Sender: No OFD packet to send [21:54:59]OFD Sender: No OFD packet to send [21:55:04]OFD Sender: No OFD packet to send [21:55:09]OFD Sender: No OFD packet to send [21:55:14]OFD Sender: No OFD packet to send [21:55:19]OFD Sender: No OFD packet to send [21:55:24]OFD Sender: No OFD packet to send [21:55:29]OFD Sender: No OFD packet to send [21:55:34]OFD Sender: No OFD packet to send [21:55:39]OFD Sender: No OFD packet to send [21:55:44]OFD Sender: No OFD packet to send [21:55:49]OFD Sender: No OFD packet to send [21:55:54]OFD Sender: No OFD packet to send [21:55:59]OFD Sender: No OFD packet to send [21:56:04]OFD Sender: No OFD packet to send [21:56:09]OFD Sender: No OFD packet to send [21:56:14]OFD Sender: No OFD packet to send [21:56:19]OFD Sender: No OFD packet to send [21:56:24]OFD Sender: No OFD packet to send [21:56:29]OFD Sender: No OFD packet to send [21:56:34]OFD Sender: No OFD packet to send [21:56:39]OFD Sender: No OFD packet to send [21:56:44]OFD Sender: No OFD packet to send [21:56:49]OFD Sender: No OFD packet to send [21:56:54]OFD Sender: No OFD packet to send [21:56:59]OFD Sender: No OFD packet to send [21:57:04]OFD Sender: No OFD packet to send [21:57:09]OFD Sender: No OFD packet to send [21:57:14]OFD Sender: No OFD packet to send [21:57:19]OFD Sender: No OFD packet to send [21:57:24]OFD Sender: No OFD packet to send [21:57:29]OFD Sender: No OFD packet to send [21:57:34]OFD Sender: No OFD packet to send [21:57:39]OFD Sender: No OFD packet to send [21:57:44]OFD Sender: No OFD packet to send [21:57:49]OFD Sender: No OFD packet to send [21:57:54]OFD Sender: No OFD packet to send [21:57:59]OFD Sender: No OFD packet to send [21:58:04]OFD Sender: No OFD packet to send [21:58:09]OFD Sender: No OFD packet to send [21:58:14]OFD Sender: No OFD packet to send [21:58:19]OFD Sender: No OFD packet to send [21:58:24]OFD Sender: No OFD packet to send [21:58:29]OFD Sender: No OFD packet to send [21:58:34]OFD Sender: No OFD packet to send [21:58:39]OFD Sender: No OFD packet to send [21:58:44]OFD Sender: No OFD packet to send [21:58:49]OFD Sender: No OFD packet to send [21:58:54]OFD Sender: No OFD packet to send [21:58:59]OFD Sender: No OFD packet to send [21:59:04]OFD Sender: No OFD packet to send [21:59:09]OFD Sender: No OFD packet to send [21:59:14]OFD Sender: No OFD packet to send [21:59:19]OFD Sender: No OFD packet to send [21:59:24]OFD Sender: No OFD packet to send [21:59:29]OFD Sender: No OFD packet to send [21:59:34]OFD Sender: No OFD packet to send [21:59:39]OFD Sender: No OFD packet to send [21:59:44]OFD Sender: No OFD packet to send [21:59:49]OFD Sender: No OFD packet to send [21:59:54]OFD Sender: No OFD packet to send [21:59:59]OFD Sender: No OFD packet to send [22:00:04]OFD Sender: No OFD packet to send [22:00:09]OFD Sender: No OFD packet to send [22:00:14]OFD Sender: No OFD packet to send [22:00:19]OFD Sender: No OFD packet to send [22:00:24]OFD Sender: No OFD packet to send [22:00:29]OFD Sender: No OFD packet to send [22:00:34]OFD Sender: No OFD packet to send [22:00:39]OFD Sender: No OFD packet to send [22:00:44]OFD Sender: No OFD packet to send [22:00:49]OFD Sender: No OFD packet to send [22:00:54]OFD Sender: No OFD packet to send [22:00:59]OFD Sender: No OFD packet to send [22:01:04]OFD Sender: No OFD packet to send [22:01:09]OFD Sender: No OFD packet to send [22:01:14]OFD Sender: No OFD packet to send [22:01:19]OFD Sender: No OFD packet to send [22:01:24]OFD Sender: No OFD packet to send [22:01:29]OFD Sender: No OFD packet to send [22:01:34]OFD Sender: No OFD packet to send [22:01:39]OFD Sender: No OFD packet to send [22:01:44]OFD Sender: No OFD packet to send [22:01:49]OFD Sender: No OFD packet to send [22:01:54]OFD Sender: No OFD packet to send [22:01:59]OFD Sender: No OFD packet to send [22:02:04]OFD Sender: No OFD packet to send [22:02:09]OFD Sender: No OFD packet to send [22:02:14]OFD Sender: No OFD packet to send [22:02:19]OFD Sender: No OFD packet to send [22:02:24]OFD Sender: No OFD packet to send [22:02:29]OFD Sender: No OFD packet to send [22:02:34]OFD Sender: No OFD packet to send [22:02:39]OFD Sender: No OFD packet to send [22:02:44]OFD Sender: No OFD packet to send [22:02:49]OFD Sender: No OFD packet to send [22:02:54]OFD Sender: No OFD packet to send [22:02:59]OFD Sender: No OFD packet to send [22:03:04]OFD Sender: No OFD packet to send [22:03:09]OFD Sender: No OFD packet to send [22:03:14]OFD Sender: No OFD packet to send [22:03:19]OFD Sender: No OFD packet to send [22:03:24]OFD Sender: No OFD packet to send [22:03:29]OFD Sender: No OFD packet to send [22:03:34]OFD Sender: No OFD packet to send [22:03:39]OFD Sender: No OFD packet to send [22:03:44]OFD Sender: No OFD packet to send [22:03:47]accept exits with 9 [22:03:47]New connection [22:03:47]New thread 3066969444 created [22:03:47]Thread 3067112804 joined [22:03:47]Waiting for new connection... [22:03:47] Sock 9.Parse request [22:03:47]Sock 9.Check first char [22:03:47]Sock 9.First char is OK [22:03:47]request: POST /json_proto HTTP/1.0 [22:03:47]Method: POST [22:03:47]URL: /json_proto [22:03:47]Method is POST - this is cgi request [22:03:47]url: /json_proto [22:03:47]query_string will be loaded in cgi processing [22:03:47]execute_cgi json_proto POST (null) [22:03:47]execute_cgi path=json_proto method=POST [22:03:47]POST find Content-Length [22:03:47]Host: 172.17.33.3:8080 [22:03:47]Content-Length: 811 [22:03:47]Content-Type: application/json [22:03:47] [22:03:47]POST finish read [22:03:47]Found Content-Length = 811 [22:03:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347771", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 39.520, "sum" : 1300.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 1300.21 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:03:47]execute_script... [22:03: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)347771", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 39.520, "sum" : 1300.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 1300.21 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:03:47]POST & json_proto [22:03:47]process_json_proto [22:03:47]json parsed OK: [22:03:47]protocol is kg_v1.0 [22:03:47]action value=close_receipt [22:03:47]process_action close_receipt [22:03:47]cmd_close_receipt [22:03:47]MH_GetDate [22:03:47]Write to MH i2c: F0 00 00 01 0D FD [22:03:47]Write i2c OK [22:03:47]MH_I2C_Read... [22:03:47]Read from MH i2c: F0 [22:03:47]MH_I2C_Read... [22:03:47]Read from MH i2c: F0 09 00 [22:03:47]MH_I2C_Read... [22:03:47]Read from MH i2c: F0 09 00 01 0D 00 C4 52 1C 66 23 5B 8F 65 10 [22:03:47]GetLastDocTimeStamp 1713131572 [22:03:47]current date 1713132228 [22:03:47]FM_GetShiftState [22:03:47]SAM_PROTO_GetShiftState [22:03:47]wFMCommunicate request_size=4 [22:03:47]MH_SAM_APDU [22:03:47]CAPDU: 80 13 01 00 [22:03:47]Write to MH i2c: E2 08 00 02 0D 80 13 01 00 00 00 00 00 8C [22:03:47]Write i2c OK [22:03:47]MH_I2C_Read... [22:03:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:03:47]Read from MH i2c: E2 [22:03:47]MH_I2C_Read... [22:03:47]Read from MH i2c: E2 0E 00 [22:03:47]MH_I2C_Read... [22:03:47]Read from MH i2c: E2 0E 00 02 0D 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 38 [22:03:47]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [22:03:47]wFMCommunicate OK [22:03:47]SAM_PROTO_GetShiftState done [22:03:47]FM_GetShiftState done [22:03:47]opened in 1713053951 [22:03:47]opened+sec_in_day 1713140351 [22:03:47]quantity*price = 130020 [22:03:47]sum+1 = 130022 [22:03:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1300.21 НСП 1% : 11.51 НДС 12% : 138.07 Наличными: 0.00 Безнал.: 1300.21 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 285 14.04.2024 22:03 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29375 ФПД: 165653625699389 1/tax-web-control/client/api/v1/ticket?date=20240414T220348&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29375&fm=165653625699389&tin=02508201610067®Number=0000138879044617&sum=130021 [22:03:48]StoreToDocumentArchive [22:03:48]shift 116 fd 29375 [22:03:48]save to /storage/0116/doc_00029375 [22:03:48]save last doc name /storage/0116/doc_00029375 to /storage/kkm_last_doc_name [22:03:48]save OK [22:03:48]Clear old archive folders... [22:03:48]ProcessDocumentItem done err = 0, tmpTLVsize=250 [22:03:48]tlvbuf is 0020E5E0 [22:03:48]SAM_PROTO_ClearQueue [22:03:48]wFMCommunicate request_size=4 [22:03:48]MH_SAM_APDU [22:03:48]CAPDU: 80 09 00 00 [22:03:48]Write to MH i2c: E2 08 00 0F 0D 80 09 00 00 00 00 00 00 8E [22:03:48]Write i2c OK [22:03:48]MH_I2C_Read... [22:03:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:03:48]Read from MH i2c: E2 [22:03:48]MH_I2C_Read... [22:03:48]Read from MH i2c: E2 03 00 [22:03:48]MH_I2C_Read... [22:03:48]Read from MH i2c: E2 03 00 0F 0D 00 90 00 90 [22:03:48]RAPDU: 90 00 [22:03:48]wFMCommunicate OK [22:03:48]SAM_PROTO_ClearQueue done [22:03:48]KKMCreateOFDPacket [22:03:48]OFDProtocolAddRootSTLVToBuf [22:03:48]FM_MakeSignedData [22:03:48]FM_MakeSignedData [22:03:48]SAM_PROTO_SignData [22:03:48]wFMCommunicate request_size=4 [22:03:48]MH_SAM_APDU [22:03:48]CAPDU: 80 0D 01 02 [22:03:48]Write to MH i2c: E2 08 00 10 0D 80 0D 01 02 00 00 00 00 96 [22:03:48]Write i2c OK [22:03:48]MH_I2C_Read... [22:03:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:03:48]Read from MH i2c: E2 [22:03:48]MH_I2C_Read... [22:03:48]Read from MH i2c: E2 03 00 [22:03:48]MH_I2C_Read... [22:03:48]Read from MH i2c: E2 03 00 10 0D 00 90 00 91 [22:03:48]RAPDU: 90 00 [22:03:48]wFMCommunicate OK [22:03:48]wFMCommunicate request_size=255 [22:03:48]MH_SAM_APDU [22:03: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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 60 9A 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 E5 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E5 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 35 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E5 FB 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 C4 52 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BF 72 00 00 35 04 06 00 96 A9 [22:03:48]Write to MH i2c: E2 02 01 11 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 60 9A 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 E5 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E5 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 35 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E5 FB 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 C4 52 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BF 72 00 00 35 04 06 00 96 A9 00 00 31 [22:03:48]Write i2c OK [22:03:48]MH_I2C_Read... [22:03:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:03:48]Read from MH i2c: E2 [22:03:48]MH_I2C_Read... [22:03:48]Read from MH i2c: E2 03 00 [22:03:48]MH_I2C_Read... [22:03:48]Read from MH i2c: E2 03 00 11 0D 00 90 00 92 [22:03:48]RAPDU: 90 00 [22:03:48]wFMCommunicate OK [22:03:48]wFMCommunicate request_size=9 [22:03:48]MH_SAM_APDU [22:03:48]CAPDU: 80 0D 02 02 04 3D 83 FC 3D [22:03:48]Write to MH i2c: E2 0C 00 12 0D 80 0D 02 02 04 00 3D 83 FC 3D 00 00 9A [22:03:48]Write i2c OK [22:03:48]MH_I2C_Read... [22:03:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:03:48]Read from MH i2c: E2 [22:03:48]MH_I2C_Read... [22:03:48]Read from MH i2c: E2 03 00 [22:03:48]MH_I2C_Read... [22:03:48]Read from MH i2c: E2 03 00 12 0D 00 90 00 93 [22:03:48]RAPDU: 90 00 [22:03:48]wFMCommunicate OK [22:03:48]wFMCommunicate request_size=4 [22:03:48]MH_SAM_APDU [22:03:48]CAPDU: 80 0D 03 02 [22:03:48]Write to MH i2c: E2 08 00 13 0D 80 0D 03 02 00 00 00 00 9B [22:03:48]Write i2c OK [22:03:48]MH_I2C_Read... [22:03:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:03:48]Read from MH i2c: E2 [22:03:48]MH_I2C_Read... [22:03:48]Read from MH i2c: E2 0B 00 [22:03:48]MH_I2C_Read... [22:03:48]Read from MH i2c: E2 0B 00 13 0D 00 A8 5B 64 D0 4D 1F D1 BE 90 00 CE [22:03:48]RAPDU: A8 5B 64 D0 4D 1F D1 BE 90 00 [22:03:48]wFMCommunicate OK [22:03:48]SAM_PROTO_SignData done [22:03:48]FM_MakeSignedData done [22:03:48]CreateOFDProtocolMessage [22:03:48]wFMCommunicate request_size=4 [22:03:48]MH_SAM_APDU [22:03:48]CAPDU: 80 11 00 00 [22:03:48]Write to MH i2c: E2 08 00 14 0D 80 11 00 00 00 00 00 00 9B [22:03:48]Write i2c OK [22:03:48]MH_I2C_Read... [22:03:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:03:48]Read from MH i2c: E2 [22:03:48]MH_I2C_Read... [22:03:48]Read from MH i2c: E2 17 00 [22:03:48]MH_I2C_Read... [22:03:48]Read from MH i2c: E2 17 00 14 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 EA [22:03:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:03:48]wFMCommunicate OK [22:03:48]CreateOFDProtocolMessage done [22:03:48]OFDSenderStorePacket 29375 [22:03:48]StoreOFDPacket docnum=29375 [22:03:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 68 AA 06 01 85 78 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 60 9A 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 E5 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E5 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 35 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E5 FB 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 C4 52 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BF 72 00 00 35 04 06 00 96 A9 3D 83 FC 3D A8 5B 64 D0 4D 1F D1 BE [22:03:48]CheckFolder [22:03:48]dirname=/storage/ofd_packets [22:03:48]CheckFolder done [22:03:48]ProducePacketName [22:03:48]name=ofd_packets/00029375 [22:03:48]NVStorageSaveData ofd_packets/00029375 [22:03:48]File name is /storage/ofd_packets/00029375 [22:03:48]Write 300 bytes [22:03:48]NVStorageSaveData done [22:03:48]OFDSenderStorePacket done [22:03:48]KKMCreateOFDPacket done [22:03:48]NVStorageSaveData kkm_last_timestamp [22:03:48]File name is /storage/kkm_last_timestamp [22:03:48]Write 4 bytes [22:03:48]NVStorageSaveData done [22:03:48]ExternCall_PrintAddStr [22:03:48]wPrintStart [22:03:48]Write to MH i2c: 01 00 00 15 0D 22 [22:03:48]Write i2c OK [22:03:48]MH_I2C_Read... [22:03:48]Read from MH i2c: 01 [22:03:48]MH_I2C_Read... [22:03:48]Read from MH i2c: 01 07 00 [22:03:48]MH_I2C_Read... [22:03:48]Read from MH i2c: 01 07 00 15 0D 00 00 00 00 00 FF 0F 37 [22:03:48]RasterBufferAndPrint [22:03:48]line Счет N : (1)347771 [22:03:48]line ИНН: 02508201610067 [22:03:48]line Контрольно-Кассовый Чек [22:03:48]line ПРОДАЖА [22:03:48]line ТРК (МРК, ГНК) : 71 [22:03:48]line Товар: 2711129700 [22:03:48]line ГАЗ-К-5 [22:03:48]line 39.520 * 32.90 [22:03:48]line = 1300.21 [22:03:48]line НДС 12% НСП 1% [22:03:48]line > о реализуемом товаре [22:03:48]line ИТОГО: 1300.21 [22:03:48]line НСП 1% : 11.51 [22:03:48]line НДС 12% : 138.07 [22:03:48]line Наличными: 0.00 [22:03:48]line Безнал.: 1300.21 [22:03:48]line Место: АЗС № 108 "Партнер Нефть" [22:03:48]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [22:03:48]line СНО: Общий режим [22:03:48]line Чек 285 14.04.2024 22:03 [22:03:48]line Смена: 116 ФФД: 1.0 [22:03:48]line ЗНМ: 0300000027 [22:03:48]line РНМ: 0000138879044617 [22:03:48]line Версия ККМ: 001 [22:03:48]line Платежная система: О! деньги [22:03:48]line ФМ: 0000000000963154 [22:03:49]line ФД: 29375 [22:03:49]line ФПД: 165653625699389 [22:03:49]line 1/tax-web-control/client/api/v1/ticket?date=20240414T220348&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29375&fm=165653625699389&tin=02508201610067®Number=0000138879044617&sum=130021 [22:03:49]OFD Sender: Processing packet 29375 [packets to send 8, broken 7] [22:03:49]ProducePacketName [22:03:49]name=ofd_packets/00029375 [22:03:49]OFD Sender: To server: pG, [22:03:49]CommunicateWithHost lk.salyk.kg:30040 [22:03:49]ConnectInit lk.salyk.kg [22:03:49]written 0, free lines is 4095 [22:03:49]Connected sock=10 [22:03:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 68 AA 06 01 85 78 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 60 9A 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 E5 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E5 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 35 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E5 FB 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 C4 52 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BF 72 00 00 35 04 06 00 96 A9 3D 83 FC 3D A8 5B 64 D0 4D 1F D1 BE [22:03:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 E2 4E 47 00 25 1C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BF 72 00 00 F4 03 04 00 67 FD 1B 66 B6 04 01 00 00 67 5F B2 69 53 2F F2 90 [22:03:49]CommunicateWithHost err = 0 [22:03:49]CheckOFDResponse [22:03:49]1017 (14) - 77093643461234 [22:03:49]1041 (16) - 0000000000963154 [22:03:49]1040 (4) - 29375 [22:03:49]1012 (4) - 14.04.2024 15:59 [22:03:49]1206 (1) - 0 [22:03:49]OFD Sender: Remove packet 29375 [22:03:49]ProducePacketName [22:03:49]name=ofd_packets/00029375 [22:03:49]NVStorageDeleteData [22:03:49]Write to MH i2c: 01 00 00 3E 0D 4B [22:03:49]Write i2c OK [22:03:49]MH_I2C_Read... [22:03:49]Read from MH i2c: 01 [22:03:49]MH_I2C_Read... [22:03:49]Read from MH i2c: 01 07 00 [22:03:49]MH_I2C_Read... [22:03:49]Read from MH i2c: 01 07 00 3E 0D 00 00 00 00 00 D8 0C 36 [22:03:49]RasterBufferAndPrint [22:03:49]line [22:03:49]line [22:03:49]line [22:03:49]line [22:03:49]line [22:03:49]written 0, free lines is 3292 [22:03:49]MH_Cut [22:03:49]Write to MH i2c: D1 01 00 45 0D 01 24 [22:03:49]Write i2c OK [22:03:49]MH_I2C_Read... [22:03:49]Read from MH i2c: D1 [22:03:49]MH_I2C_Read... [22:03:49]Read from MH i2c: D1 01 00 [22:03:49]MH_I2C_Read... [22:03:49]Read from MH i2c: D1 01 00 45 0D 00 23 [22:03:49]Write to MH i2c: 01 00 00 46 0D 53 [22:03:49]Write i2c OK [22:03:49]MH_I2C_Read... [22:03:49]OFD Sender: No OFD packet to send [22:03:50]*** Cut start [22:03:50]*** Partial cut [22:03:50]*** CUTSNS_PIN = 1 [22:03:50]*** CUTSNS_PIN = 0 [22:03:50]*** Brake cut motor [22:03:50]Read from MH i2c: 01 [22:03:50]MH_I2C_Read... [22:03:50]*** Stop cut motor [22:03:50]*** Cut end [22:03:50]Read from MH i2c: 01 07 00 [22:03:50]MH_I2C_Read... [22:03:50]Read from MH i2c: 01 07 00 46 0D 00 00 00 00 00 FF 0F 68 [22:03:50]process_action close_receipt done [22:03:50]requested_data is exist [22:03:50]produce_requested_data [22:03:50]requested_item fm.sn is exist - process it [22:03:50]wFMCommunicate request_size=4 [22:03:50]MH_SAM_APDU [22:03:50]CAPDU: 80 11 00 00 [22:03:50]Write to MH i2c: E2 08 00 47 0D 80 11 00 00 00 00 00 00 CE [22:03:50]Write i2c OK [22:03:50]MH_I2C_Read... [22:03:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:03:51]Read from MH i2c: E2 [22:03:51]MH_I2C_Read... [22:03:51]Read from MH i2c: E2 17 00 [22:03:51]MH_I2C_Read... [22:03:51]Read from MH i2c: E2 17 00 47 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 1D [22:03:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:03:51]wFMCommunicate OK [22:03:51]requested_item fd.num is exist - process it [22:03:51]SAM_PROTO_GetFieldsCounters [22:03:51]wFMCommunicate request_size=4 [22:03:51]MH_SAM_APDU [22:03:51]CAPDU: 80 13 00 00 [22:03:51]Write to MH i2c: E2 08 00 48 0D 80 13 00 00 00 00 00 00 D1 [22:03:51]Write i2c OK [22:03:51]MH_I2C_Read... [22:03:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:03:51]Read from MH i2c: E2 [22:03:51]MH_I2C_Read... [22:03:51]Read from MH i2c: E2 62 00 [22:03:51]MH_I2C_Read... [22:03:51]Read from MH i2c: E2 62 00 48 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 BF 72 00 00 0E 04 04 00 74 00 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 0E [22:03:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 BF 72 00 00 0E 04 04 00 74 00 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 [22:03:51]wFMCommunicate OK [22:03:51]SAM_PROTO_GetFieldsCounters done [22:03:51]requested_item shift.num is exist - process it [22:03:51]requested_item shift.opened is exist - process it [22:03:51]req_shift_opened [22:03:51]FM_GetShiftState [22:03:51]SAM_PROTO_GetShiftState [22:03:51]wFMCommunicate request_size=4 [22:03:51]MH_SAM_APDU [22:03:51]CAPDU: 80 13 01 00 [22:03:51]Write to MH i2c: E2 08 00 49 0D 80 13 01 00 00 00 00 00 D3 [22:03:51]Write i2c OK [22:03:51]MH_I2C_Read... [22:03:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:03:51]Read from MH i2c: E2 [22:03:51]MH_I2C_Read... [22:03:51]Read from MH i2c: E2 0E 00 [22:03:51]MH_I2C_Read... [22:03:51]Read from MH i2c: E2 0E 00 49 0D 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 7F [22:03:51]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [22:03:51]wFMCommunicate OK [22:03:51]SAM_PROTO_GetShiftState done [22:03:51]FM_GetShiftState done [22:03:51]req_shift_opened done [22:03:51]requested_item shift.open_date is exist - process it [22:03:51]req_shift_open_date [22:03:51]req_shift_open_date done [22:03:51]produce_requested_data done [22:03:51]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29375,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [22:03:51]process_action_free close_receipt [22:03:51]json_value_free [22:03:51]json_value_free done [22:03:51]process_json_proto returns [22:03:51]Send response to host [22:03:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29375,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [22:03:51]free response buf [22:03:51]execute_script done [22:03:51]execute_script returns [22:03:51]free content buf [22:03:51]Sock 9.Close socket [22:03:51]Sock 9.Thread stoped [22:03:54]OFD Sender: No OFD packet to send [22:03:59]OFD Sender: No OFD packet to send [22:04:04]OFD Sender: No OFD packet to send [22:04:09]OFD Sender: No OFD packet to send [22:04:14]OFD Sender: No OFD packet to send [22:04:19]OFD Sender: No OFD packet to send [22:04:24]OFD Sender: No OFD packet to send [22:04:26]accept exits with 8 [22:04:26]New connection [22:04:26]New thread 3067112804 created [22:04:26]Thread 3066969444 joined [22:04:26]Waiting for new connection... [22:04:26] Sock 8.Parse request [22:04:26]Sock 8.Check first char [22:04:26]Sock 8.First char is OK [22:04:26]request: POST /json_proto HTTP/1.0 [22:04:26]Method: POST [22:04:26]URL: /json_proto [22:04:26]Method is POST - this is cgi request [22:04:26]url: /json_proto [22:04:26]query_string will be loaded in cgi processing [22:04:26]execute_cgi json_proto POST (null) [22:04:26]execute_cgi path=json_proto method=POST [22:04:26]POST find Content-Length [22:04:26]Host: 172.17.33.3:8080 [22:04:26]Content-Length: 677 [22:04:26]Content-Type: application/json [22:04:26] [22:04:26]POST finish read [22:04:26]Found Content-Length = 677 [22:04:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347772", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.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:04:26]execute_script... [22:04: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)347772", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.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:04:26]POST & json_proto [22:04:26]process_json_proto [22:04:26]json parsed OK: [22:04:26]protocol is kg_v1.0 [22:04:26]action value=close_receipt [22:04:26]process_action close_receipt [22:04:26]cmd_close_receipt [22:04:26]MH_GetDate [22:04:26]Write to MH i2c: F0 00 00 4A 0D 46 [22:04:26]Write i2c OK [22:04:26]MH_I2C_Read... [22:04:26]Read from MH i2c: F0 [22:04:26]MH_I2C_Read... [22:04:26]Read from MH i2c: F0 09 00 [22:04:26]MH_I2C_Read... [22:04:26]Read from MH i2c: F0 09 00 4A 0D 00 EB 52 1C 66 23 5B 8F 65 80 [22:04:26]GetLastDocTimeStamp 1713132228 [22:04:26]current date 1713132267 [22:04:26]FM_GetShiftState [22:04:26]SAM_PROTO_GetShiftState [22:04:26]wFMCommunicate request_size=4 [22:04:26]MH_SAM_APDU [22:04:26]CAPDU: 80 13 01 00 [22:04:26]Write to MH i2c: E2 08 00 4B 0D 80 13 01 00 00 00 00 00 D5 [22:04:26]Write i2c OK [22:04:26]MH_I2C_Read... [22:04:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:04:26]Read from MH i2c: E2 [22:04:26]MH_I2C_Read... [22:04:26]Read from MH i2c: E2 0E 00 [22:04:26]MH_I2C_Read... [22:04:26]Read from MH i2c: E2 0E 00 4B 0D 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 81 [22:04:26]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [22:04:26]wFMCommunicate OK [22:04:26]SAM_PROTO_GetShiftState done [22:04:26]FM_GetShiftState done [22:04:26]opened in 1713053951 [22:04:26]opened+sec_in_day 1713140351 [22:04:26]quantity*price = 20061 [22:04:26]sum+1 = 20063 [22:04:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.30 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 286 14.04.2024 22:04 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29376 ФПД: 175269589727600 1/tax-web-control/client/api/v1/ticket?date=20240414T220427&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29376&fm=175269589727600&tin=02508201610067®Number=0000138879044617&sum=20000 [22:04:27]StoreToDocumentArchive [22:04:27]shift 116 fd 29376 [22:04:27]save to /storage/0116/doc_00029376 [22:04:27]save last doc name /storage/0116/doc_00029376 to /storage/kkm_last_doc_name [22:04:27]save OK [22:04:27]Clear old archive folders... [22:04:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:04:27]tlvbuf is 0025C530 [22:04:27]SAM_PROTO_ClearQueue [22:04:27]wFMCommunicate request_size=4 [22:04:27]MH_SAM_APDU [22:04:27]CAPDU: 80 09 00 00 [22:04:27]Write to MH i2c: E2 08 00 58 0D 80 09 00 00 00 00 00 00 D7 [22:04:27]Write i2c OK [22:04:27]MH_I2C_Read... [22:04:27]Read from MH i2c: E2 [22:04:27]MH_I2C_Read... [22:04:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:04:27]Read from MH i2c: E2 03 00 [22:04:27]MH_I2C_Read... [22:04:27]Read from MH i2c: E2 03 00 58 0D 00 90 00 D9 [22:04:27]RAPDU: 90 00 [22:04:27]wFMCommunicate OK [22:04:27]SAM_PROTO_ClearQueue done [22:04:27]KKMCreateOFDPacket [22:04:27]OFDProtocolAddRootSTLVToBuf [22:04:27]FM_MakeSignedData [22:04:27]FM_MakeSignedData [22:04:27]SAM_PROTO_SignData [22:04:27]wFMCommunicate request_size=4 [22:04:27]MH_SAM_APDU [22:04:27]CAPDU: 80 0D 01 02 [22:04:27]Write to MH i2c: E2 08 00 59 0D 80 0D 01 02 00 00 00 00 DF [22:04:27]Write i2c OK [22:04:27]MH_I2C_Read... [22:04:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:04:27]Read from MH i2c: E2 [22:04:27]MH_I2C_Read... [22:04:27]Read from MH i2c: E2 03 00 [22:04:27]MH_I2C_Read... [22:04:27]Read from MH i2c: E2 03 00 59 0D 00 90 00 DA [22:04:27]RAPDU: 90 00 [22:04:27]wFMCommunicate OK [22:04:27]wFMCommunicate request_size=255 [22:04:27]MH_SAM_APDU [22:04: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 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 1E 01 00 00 F4 03 04 00 EB 52 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C0 72 00 00 35 04 06 00 9F [22:04:27]Write to MH i2c: E2 02 01 5A 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 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 1E 01 00 00 F4 03 04 00 EB 52 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C0 72 00 00 35 04 06 00 9F 00 00 2F [22:04:27]Write i2c OK [22:04:27]MH_I2C_Read... [22:04:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:04:27]Read from MH i2c: E2 [22:04:27]MH_I2C_Read... [22:04:27]Read from MH i2c: E2 03 00 [22:04:27]MH_I2C_Read... [22:04:27]Read from MH i2c: E2 03 00 5A 0D 00 90 00 DB [22:04:27]RAPDU: 90 00 [22:04:27]wFMCommunicate OK [22:04:27]wFMCommunicate request_size=10 [22:04:27]MH_SAM_APDU [22:04:27]CAPDU: 80 0D 02 02 05 68 21 A2 B9 70 [22:04:27]Write to MH i2c: E2 0D 00 5B 0D 80 0D 02 02 05 00 68 21 A2 B9 70 00 00 40 [22:04:27]Write i2c OK [22:04:27]MH_I2C_Read... [22:04:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:04:27]Read from MH i2c: E2 [22:04:27]MH_I2C_Read... [22:04:27]Read from MH i2c: E2 03 00 [22:04:27]MH_I2C_Read... [22:04:27]Read from MH i2c: E2 03 00 5B 0D 00 90 00 DC [22:04:27]RAPDU: 90 00 [22:04:27]wFMCommunicate OK [22:04:27]wFMCommunicate request_size=4 [22:04:27]MH_SAM_APDU [22:04:27]CAPDU: 80 0D 03 02 [22:04:27]Write to MH i2c: E2 08 00 5C 0D 80 0D 03 02 00 00 00 00 E4 [22:04:27]Write i2c OK [22:04:27]MH_I2C_Read... [22:04:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:04:28]Read from MH i2c: E2 [22:04:28]MH_I2C_Read... [22:04:28]Read from MH i2c: E2 0B 00 [22:04:28]MH_I2C_Read... [22:04:28]Read from MH i2c: E2 0B 00 5C 0D 00 EB E9 08 14 E7 1C 54 89 90 00 B5 [22:04:28]RAPDU: EB E9 08 14 E7 1C 54 89 90 00 [22:04:28]wFMCommunicate OK [22:04:28]SAM_PROTO_SignData done [22:04:28]FM_MakeSignedData done [22:04:28]CreateOFDProtocolMessage [22:04:28]wFMCommunicate request_size=4 [22:04:28]MH_SAM_APDU [22:04:28]CAPDU: 80 11 00 00 [22:04:28]Write to MH i2c: E2 08 00 5D 0D 80 11 00 00 00 00 00 00 E4 [22:04:28]Write i2c OK [22:04:28]MH_I2C_Read... [22:04:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:04:28]Read from MH i2c: E2 [22:04:28]MH_I2C_Read... [22:04:28]Read from MH i2c: E2 17 00 [22:04:28]MH_I2C_Read... [22:04:28]Read from MH i2c: E2 17 00 5D 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 33 [22:04:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:04:28]wFMCommunicate OK [22:04:28]CreateOFDProtocolMessage done [22:04:28]OFDSenderStorePacket 29376 [22:04:28]StoreOFDPacket docnum=29376 [22:04:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 2B 00 07 01 FF 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 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 1E 01 00 00 F4 03 04 00 EB 52 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C0 72 00 00 35 04 06 00 9F 68 21 A2 B9 70 EB E9 08 14 E7 1C 54 89 [22:04:28]CheckFolder [22:04:28]dirname=/storage/ofd_packets [22:04:28]CheckFolder done [22:04:28]ProducePacketName [22:04:28]name=ofd_packets/00029376 [22:04:28]NVStorageSaveData ofd_packets/00029376 [22:04:28]File name is /storage/ofd_packets/00029376 [22:04:28]Write 301 bytes [22:04:28]NVStorageSaveData done [22:04:28]OFDSenderStorePacket done [22:04:28]KKMCreateOFDPacket done [22:04:28]NVStorageSaveData kkm_last_timestamp [22:04:28]File name is /storage/kkm_last_timestamp [22:04:28]Write 4 bytes [22:04:28]NVStorageSaveData done [22:04:28]ExternCall_PrintAddStr [22:04:28]wPrintStart [22:04:28]Write to MH i2c: 01 00 00 5E 0D 6B [22:04:28]Write i2c OK [22:04:28]MH_I2C_Read... [22:04:28]Read from MH i2c: 01 [22:04:28]MH_I2C_Read... [22:04:28]Read from MH i2c: 01 07 00 [22:04:28]MH_I2C_Read... [22:04:28]Read from MH i2c: 01 07 00 5E 0D 00 00 00 00 00 FF 0F 80 [22:04:28]RasterBufferAndPrint [22:04:28]line Счет N : (1)347772 [22:04:28]line ИНН: 02508201610067 [22:04:28]line Контрольно-Кассовый Чек [22:04:28]line ПРОДАЖА [22:04:28]line ТРК (МРК, ГНК) : 23 [22:04:28]line Товар: 2710124130 [22:04:28]line Аи-92-К-5 [22:04:28]line 3.120 * 64.30 [22:04:28]line = 200.62 [22:04:28]line НДС 12% НСП 1% [22:04:28]line > о реализуемом товаре [22:04:28]line ОКРУГЛЕНИЕ: -0.62 [22:04:28]line ИТОГО: 200.00 [22:04:28]line Внесено: 200.00 [22:04:28]line СДАЧА: 0.00 [22:04:28]line НСП 1% : 1.77 [22:04:28]line НДС 12% : 21.30 [22:04:28]line Наличными: 200.00 [22:04:28]line Безнал.: 0.00 [22:04:28]line Место: АЗС № 108 "Партнер Нефть" [22:04:28]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [22:04:28]line СНО: Общий режим [22:04:28]line Чек 286 14.04.2024 22:04 [22:04:28]line Смена: 116 ФФД: 1.0 [22:04:28]line ЗНМ: 0300000027 [22:04:28]line РНМ: 0000138879044617 [22:04:28]line Версия ККМ: 001 [22:04:28]line ФМ: 0000000000963154 [22:04:28]line ФД: 29376 [22:04:28]line ФПД: 175269589727600 [22:04:28]line 1/tax-web-control/client/api/v1/ticket?date=20240414T220427&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29376&fm=175269589727600&tin=02508201610067®Number=0000138879044617&sum=20000 [22:04:28]written 0, free lines is 4095 [22:04:28]OFD Sender: Processing packet 29376 [packets to send 8, broken 7] [22:04:28]ProducePacketName [22:04:28]name=ofd_packets/00029376 [22:04:28]OFD Sender: To server: pG, [22:04:28]CommunicateWithHost lk.salyk.kg:30040 [22:04:28]ConnectInit lk.salyk.kg [22:04:28]Connected sock=10 [22:04:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 2B 00 07 01 FF 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 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 1E 01 00 00 F4 03 04 00 EB 52 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C0 72 00 00 35 04 06 00 9F 68 21 A2 B9 70 EB E9 08 14 E7 1C 54 89 [22:04:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 60 E8 47 00 2E 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 39 36 33 31 35 34 10 04 04 00 C0 72 00 00 F4 03 04 00 8E FD 1B 66 B6 04 01 00 00 37 CA 86 F8 52 31 3F 37 [22:04:28]CommunicateWithHost err = 0 [22:04:28]CheckOFDResponse [22:04:28]1017 (14) - 77093643461234 [22:04:28]1041 (16) - 0000000000963154 [22:04:28]1040 (4) - 29376 [22:04:28]1012 (4) - 14.04.2024 16:00 [22:04:28]1206 (1) - 0 [22:04:28]OFD Sender: Remove packet 29376 [22:04:28]ProducePacketName [22:04:28]name=ofd_packets/00029376 [22:04:28]NVStorageDeleteData [22:04:28]Write to MH i2c: 01 00 00 88 0D 95 [22:04:28]Write i2c OK [22:04:28]MH_I2C_Read... [22:04:28]Read from MH i2c: 01 [22:04:28]MH_I2C_Read... [22:04:28]Read from MH i2c: 01 07 00 [22:04:28]MH_I2C_Read... [22:04:28]Read from MH i2c: 01 07 00 88 0D 00 00 00 00 00 CC 0C 74 [22:04:28]RasterBufferAndPrint [22:04:28]line [22:04:28]line [22:04:28]line [22:04:28]line [22:04:28]line [22:04:28]written 0, free lines is 3282 [22:04:28]MH_Cut [22:04:28]Write to MH i2c: D1 01 00 8F 0D 01 6E [22:04:28]Write i2c OK [22:04:28]MH_I2C_Read... [22:04:28]Read from MH i2c: D1 [22:04:28]MH_I2C_Read... [22:04:28]Read from MH i2c: D1 01 00 [22:04:28]MH_I2C_Read... [22:04:28]Read from MH i2c: D1 01 00 8F 0D 00 6D [22:04:28]Write to MH i2c: 01 00 00 90 0D 9D [22:04:28]Write i2c OK [22:04:28]MH_I2C_Read... [22:04:28]OFD Sender: No OFD packet to send [22:04:29]*** Cut start [22:04:29]*** Partial cut [22:04:29]*** CUTSNS_PIN = 1 [22:04:29]*** CUTSNS_PIN = 0 [22:04:29]*** Brake cut motor [22:04:29]Read from MH i2c: 01 [22:04:29]MH_I2C_Read... [22:04:29]*** Stop cut motor [22:04:29]*** Cut end [22:04:29]Read from MH i2c: 01 07 00 [22:04:29]MH_I2C_Read... [22:04:29]Read from MH i2c: 01 07 00 90 0D 00 00 00 00 00 FF 0F B2 [22:04:29]process_action close_receipt done [22:04:29]requested_data is exist [22:04:29]produce_requested_data [22:04:29]requested_item fm.sn is exist - process it [22:04:29]wFMCommunicate request_size=4 [22:04:29]MH_SAM_APDU [22:04:29]CAPDU: 80 11 00 00 [22:04:29]Write to MH i2c: E2 08 00 91 0D 80 11 00 00 00 00 00 00 18 [22:04:29]Write i2c OK [22:04:29]MH_I2C_Read... [22:04:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:04:30]Read from MH i2c: E2 [22:04:30]MH_I2C_Read... [22:04:30]Read from MH i2c: E2 17 00 [22:04:30]MH_I2C_Read... [22:04:30]Read from MH i2c: E2 17 00 91 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 67 [22:04:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:04:30]wFMCommunicate OK [22:04:30]requested_item fd.num is exist - process it [22:04:30]SAM_PROTO_GetFieldsCounters [22:04:30]wFMCommunicate request_size=4 [22:04:30]MH_SAM_APDU [22:04:30]CAPDU: 80 13 00 00 [22:04:30]Write to MH i2c: E2 08 00 92 0D 80 13 00 00 00 00 00 00 1B [22:04:30]Write i2c OK [22:04:30]MH_I2C_Read... [22:04:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:04:30]Read from MH i2c: E2 [22:04:30]MH_I2C_Read... [22:04:30]Read from MH i2c: E2 62 00 [22:04:30]MH_I2C_Read... [22:04:30]Read from MH i2c: E2 62 00 92 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C0 72 00 00 0E 04 04 00 74 00 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 5C [22:04:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C0 72 00 00 0E 04 04 00 74 00 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 [22:04:30]wFMCommunicate OK [22:04:30]SAM_PROTO_GetFieldsCounters done [22:04:30]requested_item shift.num is exist - process it [22:04:30]requested_item shift.opened is exist - process it [22:04:30]req_shift_opened [22:04:30]FM_GetShiftState [22:04:30]SAM_PROTO_GetShiftState [22:04:30]wFMCommunicate request_size=4 [22:04:30]MH_SAM_APDU [22:04:30]CAPDU: 80 13 01 00 [22:04:30]Write to MH i2c: E2 08 00 93 0D 80 13 01 00 00 00 00 00 1D [22:04:30]Write i2c OK [22:04:30]MH_I2C_Read... [22:04:30]Read from MH i2c: E2 [22:04:30]MH_I2C_Read... [22:04:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:04:30]Read from MH i2c: E2 0E 00 [22:04:30]MH_I2C_Read... [22:04:30]Read from MH i2c: E2 0E 00 93 0D 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 C9 [22:04:30]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [22:04:30]wFMCommunicate OK [22:04:30]SAM_PROTO_GetShiftState done [22:04:30]FM_GetShiftState done [22:04:30]req_shift_opened done [22:04:30]requested_item shift.open_date is exist - process it [22:04:30]req_shift_open_date [22:04:30]req_shift_open_date done [22:04:30]produce_requested_data done [22:04:30]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29376,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [22:04:30]process_action_free close_receipt [22:04:30]json_value_free [22:04:30]json_value_free done [22:04:30]process_json_proto returns [22:04:30]Send response to host [22:04:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29376,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [22:04:30]free response buf [22:04:30]execute_script done [22:04:30]execute_script returns [22:04:30]free content buf [22:04:30]Sock 8.Close socket [22:04:30]Sock 8.Thread stoped [22:04:33]OFD Sender: No OFD packet to send [22:04:38]OFD Sender: No OFD packet to send [22:04:43]OFD Sender: No OFD packet to send [22:04:48]OFD Sender: No OFD packet to send [22:04:53]OFD Sender: No OFD packet to send [22:04:58]OFD Sender: No OFD packet to send [22:05:03]OFD Sender: No OFD packet to send [22:05:08]OFD Sender: No OFD packet to send [22:05:13]OFD Sender: No OFD packet to send [22:05:18]OFD Sender: No OFD packet to send [22:05:23]OFD Sender: No OFD packet to send [22:05:28]OFD Sender: No OFD packet to send [22:05:33]OFD Sender: No OFD packet to send [22:05:38]OFD Sender: No OFD packet to send [22:05:43]OFD Sender: No OFD packet to send [22:05:48]OFD Sender: No OFD packet to send [22:05:53]OFD Sender: No OFD packet to send [22:05:58]OFD Sender: No OFD packet to send [22:06:03]OFD Sender: No OFD packet to send [22:06:08]OFD Sender: No OFD packet to send [22:06:13]OFD Sender: No OFD packet to send [22:06:18]OFD Sender: No OFD packet to send [22:06:23]OFD Sender: No OFD packet to send [22:06:28]OFD Sender: No OFD packet to send [22:06:33]OFD Sender: No OFD packet to send [22:06:38]OFD Sender: No OFD packet to send [22:06:43]OFD Sender: No OFD packet to send [22:06:49]OFD Sender: No OFD packet to send [22:06:54]OFD Sender: No OFD packet to send [22:06:59]OFD Sender: No OFD packet to send [22:07:04]OFD Sender: No OFD packet to send [22:07:09]OFD Sender: No OFD packet to send [22:07:14]OFD Sender: No OFD packet to send [22:07:16]accept exits with 9 [22:07:16]New connection [22:07:16]New thread 3066969444 created [22:07:16]Thread 3067112804 joined [22:07:16]Waiting for new connection... [22:07:16] Sock 9.Parse request [22:07:16]Sock 9.Check first char [22:07:16]Sock 9.First char is OK [22:07:16]request: POST /json_proto HTTP/1.0 [22:07:16]Method: POST [22:07:16]URL: /json_proto [22:07:16]Method is POST - this is cgi request [22:07:16]url: /json_proto [22:07:16]query_string will be loaded in cgi processing [22:07:16]execute_cgi json_proto POST (null) [22:07:16]execute_cgi path=json_proto method=POST [22:07:16]POST find Content-Length [22:07:16]Host: 172.17.33.3:8080 [22:07:16]Content-Length: 801 [22:07:16]Content-Type: application/json [22:07:16] [22:07:16]POST finish read [22:07:16]Found Content-Length = 801 [22:07:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347773", "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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.14 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:07:16]execute_script... [22:07:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347773", "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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.14 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:07:16]POST & json_proto [22:07:16]process_json_proto [22:07:16]json parsed OK: [22:07:16]protocol is kg_v1.0 [22:07:16]action value=close_receipt [22:07:16]process_action close_receipt [22:07:16]cmd_close_receipt [22:07:16]MH_GetDate [22:07:16]Write to MH i2c: F0 00 00 94 0D 90 [22:07:16]Write i2c OK [22:07:16]MH_I2C_Read... [22:07:16]Read from MH i2c: F0 [22:07:16]MH_I2C_Read... [22:07:16]Read from MH i2c: F0 09 00 [22:07:16]MH_I2C_Read... [22:07:16]Read from MH i2c: F0 09 00 94 0D 00 95 53 1C 66 23 5B 8F 65 75 [22:07:16]GetLastDocTimeStamp 1713132267 [22:07:16]current date 1713132437 [22:07:16]FM_GetShiftState [22:07:16]SAM_PROTO_GetShiftState [22:07:16]wFMCommunicate request_size=4 [22:07:16]MH_SAM_APDU [22:07:16]CAPDU: 80 13 01 00 [22:07:16]Write to MH i2c: E2 08 00 95 0D 80 13 01 00 00 00 00 00 1F [22:07:16]Write i2c OK [22:07:16]MH_I2C_Read... [22:07:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:07:16]Read from MH i2c: E2 [22:07:16]MH_I2C_Read... [22:07:16]Read from MH i2c: E2 0E 00 [22:07:16]MH_I2C_Read... [22:07:16]Read from MH i2c: E2 0E 00 95 0D 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 CB [22:07:16]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [22:07:16]wFMCommunicate OK [22:07:16]SAM_PROTO_GetShiftState done [22:07:16]FM_GetShiftState done [22:07:16]opened in 1713053951 [22:07:16]opened+sec_in_day 1713140351 [22:07:16]quantity*price = 200013 [22:07:16]sum+1 = 200015 [22:07:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.14 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 0.00 Безнал.: 2000.14 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 287 14.04.2024 22:07 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29377 ФПД: 33459500774009 1/tax-web-control/client/api/v1/ticket?date=20240414T220717&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29377&fm=33459500774009&tin=02508201610067®Number=0000138879044617&sum=200014 [22:07:17]StoreToDocumentArchive [22:07:17]shift 116 fd 29377 [22:07:17]save to /storage/0116/doc_00029377 [22:07:17]save last doc name /storage/0116/doc_00029377 to /storage/kkm_last_doc_name [22:07:17]save OK [22:07:17]Clear old archive folders... [22:07:17]ProcessDocumentItem done err = 0, tmpTLVsize=252 [22:07:17]tlvbuf is 0025C420 [22:07:17]SAM_PROTO_ClearQueue [22:07:17]wFMCommunicate request_size=4 [22:07:17]MH_SAM_APDU [22:07:17]CAPDU: 80 09 00 00 [22:07:17]Write to MH i2c: E2 08 00 A2 0D 80 09 00 00 00 00 00 00 21 [22:07:17]Write i2c OK [22:07:17]MH_I2C_Read... [22:07:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:07:17]Read from MH i2c: E2 [22:07:17]MH_I2C_Read... [22:07:17]Read from MH i2c: E2 03 00 [22:07:17]MH_I2C_Read... [22:07:17]Read from MH i2c: E2 03 00 A2 0D 00 90 00 23 [22:07:17]RAPDU: 90 00 [22:07:17]wFMCommunicate OK [22:07:17]SAM_PROTO_ClearQueue done [22:07:17]KKMCreateOFDPacket [22:07:17]OFDProtocolAddRootSTLVToBuf [22:07:17]FM_MakeSignedData [22:07:17]FM_MakeSignedData [22:07:17]SAM_PROTO_SignData [22:07:17]wFMCommunicate request_size=4 [22:07:17]MH_SAM_APDU [22:07:17]CAPDU: 80 0D 01 02 [22:07:17]Write to MH i2c: E2 08 00 A3 0D 80 0D 01 02 00 00 00 00 29 [22:07:17]Write i2c OK [22:07:17]MH_I2C_Read... [22:07:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:07:17]Read from MH i2c: E2 [22:07:17]MH_I2C_Read... [22:07:17]Read from MH i2c: E2 03 00 [22:07:17]MH_I2C_Read... [22:07:17]Read from MH i2c: E2 03 00 A3 0D 00 90 00 24 [22:07:17]RAPDU: 90 00 [22:07:17]wFMCommunicate OK [22:07:17]wFMCommunicate request_size=255 [22:07:17]MH_SAM_APDU [22:07:17]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 1F 01 00 00 F4 03 04 00 95 53 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C1 72 00 00 35 04 06 00 [22:07:17]Write to MH i2c: E2 02 01 A4 0D 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 1F 01 00 00 F4 03 04 00 95 53 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C1 72 00 00 35 04 06 00 00 00 37 [22:07:17]Write i2c OK [22:07:17]MH_I2C_Read... [22:07:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:07:17]Read from MH i2c: E2 [22:07:17]MH_I2C_Read... [22:07:17]Read from MH i2c: E2 03 00 [22:07:17]MH_I2C_Read... [22:07:17]Read from MH i2c: E2 03 00 A4 0D 00 90 00 25 [22:07:17]RAPDU: 90 00 [22:07:17]wFMCommunicate OK [22:07:17]wFMCommunicate request_size=11 [22:07:17]MH_SAM_APDU [22:07:17]CAPDU: 80 0D 02 02 06 1E 6E 65 A8 72 79 [22:07:17]Write to MH i2c: E2 0E 00 A5 0D 80 0D 02 02 06 00 1E 6E 65 A8 72 79 00 00 BC [22:07:17]Write i2c OK [22:07:17]MH_I2C_Read... [22:07:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:07:17]Read from MH i2c: E2 [22:07:17]MH_I2C_Read... [22:07:17]Read from MH i2c: E2 03 00 [22:07:17]MH_I2C_Read... [22:07:17]Read from MH i2c: E2 03 00 A5 0D 00 90 00 26 [22:07:17]RAPDU: 90 00 [22:07:17]wFMCommunicate OK [22:07:17]wFMCommunicate request_size=4 [22:07:17]MH_SAM_APDU [22:07:17]CAPDU: 80 0D 03 02 [22:07:17]Write to MH i2c: E2 08 00 A6 0D 80 0D 03 02 00 00 00 00 2E [22:07:17]Write i2c OK [22:07:17]MH_I2C_Read... [22:07:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:07:17]Read from MH i2c: E2 [22:07:17]MH_I2C_Read... [22:07:17]Read from MH i2c: E2 0B 00 [22:07:17]MH_I2C_Read... [22:07:17]Read from MH i2c: E2 0B 00 A6 0D 00 EF 80 6F 50 78 04 BD 76 90 00 0C [22:07:17]RAPDU: EF 80 6F 50 78 04 BD 76 90 00 [22:07:17]wFMCommunicate OK [22:07:17]SAM_PROTO_SignData done [22:07:17]FM_MakeSignedData done [22:07:17]CreateOFDProtocolMessage [22:07:17]wFMCommunicate request_size=4 [22:07:17]MH_SAM_APDU [22:07:17]CAPDU: 80 11 00 00 [22:07:17]Write to MH i2c: E2 08 00 A7 0D 80 11 00 00 00 00 00 00 2E [22:07:17]Write i2c OK [22:07:17]MH_I2C_Read... [22:07:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:07:17]Read from MH i2c: E2 [22:07:17]MH_I2C_Read... [22:07:17]Read from MH i2c: E2 17 00 [22:07:17]MH_I2C_Read... [22:07:17]Read from MH i2c: E2 17 00 A7 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 7D [22:07:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:07:17]wFMCommunicate OK [22:07:17]CreateOFDProtocolMessage done [22:07:17]OFDSenderStorePacket 29377 [22:07:17]StoreOFDPacket docnum=29377 [22:07:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 EE 98 08 01 85 45 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 1F 01 00 00 F4 03 04 00 95 53 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C1 72 00 00 35 04 06 00 1E 6E 65 A8 72 79 EF 80 6F 50 78 04 BD 76 [22:07:17]CheckFolder [22:07:17]dirname=/storage/ofd_packets [22:07:17]CheckFolder done [22:07:17]ProducePacketName [22:07:17]name=ofd_packets/00029377 [22:07:17]NVStorageSaveData ofd_packets/00029377 [22:07:17]File name is /storage/ofd_packets/00029377 [22:07:17]Write 302 bytes [22:07:17]NVStorageSaveData done [22:07:17]OFDSenderStorePacket done [22:07:17]KKMCreateOFDPacket done [22:07:17]NVStorageSaveData kkm_last_timestamp [22:07:17]File name is /storage/kkm_last_timestamp [22:07:17]Write 4 bytes [22:07:17]NVStorageSaveData done [22:07:17]ExternCall_PrintAddStr [22:07:17]wPrintStart [22:07:17]Write to MH i2c: 01 00 00 A8 0D B5 [22:07:17]Write i2c OK [22:07:17]MH_I2C_Read... [22:07:17]Read from MH i2c: 01 [22:07:17]MH_I2C_Read... [22:07:17]Read from MH i2c: 01 07 00 [22:07:17]MH_I2C_Read... [22:07:17]Read from MH i2c: 01 07 00 A8 0D 00 00 00 00 00 FF 0F CA [22:07:17]RasterBufferAndPrint [22:07:17]line Счет N : (1)347773 [22:07:17]line ИНН: 02508201610067 [22:07:17]line Контрольно-Кассовый Чек [22:07:17]line ПРОДАЖА [22:07:17]line ТРК (МРК, ГНК) : 41 [22:07:17]line Товар: 2710124130 [22:07:17]line SUPER-92-К-5 [22:07:17]line 30.630 * 65.30 [22:07:17]line = 2000.14 [22:07:17]line НДС 12% НСП 1% [22:07:17]line > о реализуемом товаре [22:07:17]line ИТОГО: 2000.14 [22:07:17]line НСП 1% : 17.70 [22:07:17]line НДС 12% : 212.40 [22:07:17]line Наличными: 0.00 [22:07:17]line Безнал.: 2000.14 [22:07:17]line Место: АЗС № 108 "Партнер Нефть" [22:07:17]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [22:07:17]line СНО: Общий режим [22:07:17]line Чек 287 14.04.2024 22:07 [22:07:17]line Смена: 116 ФФД: 1.0 [22:07:17]line ЗНМ: 0300000027 [22:07:17]line РНМ: 0000138879044617 [22:07:17]line Версия ККМ: 001 [22:07:17]line Платежная система: О! деньги [22:07:17]line ФМ: 0000000000963154 [22:07:17]line ФД: 29377 [22:07:17]line ФПД: 33459500774009 [22:07:17]line 1/tax-web-control/client/api/v1/ticket?date=20240414T220717&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29377&fm=33459500774009&tin=02508201610067®Number=0000138879044617&sum=200014 [22:07:18]OFD Sender: Processing packet 29377 [packets to send 8, broken 7] [22:07:18]ProducePacketName [22:07:18]name=ofd_packets/00029377 [22:07:18]OFD Sender: To server: pG, [22:07:18]CommunicateWithHost lk.salyk.kg:30040 [22:07:18]ConnectInit lk.salyk.kg [22:07:18]written 0, free lines is 4095 [22:07:18]Connected sock=10 [22:07:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 EE 98 08 01 85 45 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 1F 01 00 00 F4 03 04 00 95 53 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C1 72 00 00 35 04 06 00 1E 6E 65 A8 72 79 EF 80 6F 50 78 04 BD 76 [22:07:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 A7 97 47 00 2B 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 39 36 33 31 35 34 10 04 04 00 C1 72 00 00 F4 03 04 00 38 FE 1B 66 B6 04 01 00 00 24 55 0E 94 5D 4D 23 81 [22:07:18]CommunicateWithHost err = 0 [22:07:18]CheckOFDResponse [22:07:18]1017 (14) - 77093643461234 [22:07:18]1041 (16) - 0000000000963154 [22:07:18]1040 (4) - 29377 [22:07:18]1012 (4) - 14.04.2024 16:03 [22:07:18]1206 (1) - 0 [22:07:18]OFD Sender: Remove packet 29377 [22:07:18]ProducePacketName [22:07:18]name=ofd_packets/00029377 [22:07:18]NVStorageDeleteData [22:07:18]Write to MH i2c: 01 00 00 D1 0D DE [22:07:18]Write i2c OK [22:07:18]MH_I2C_Read... [22:07:18]Read from MH i2c: 01 [22:07:18]MH_I2C_Read... [22:07:18]Read from MH i2c: 01 07 00 [22:07:18]MH_I2C_Read... [22:07:18]Read from MH i2c: 01 07 00 D1 0D 00 00 00 00 00 E0 0C D1 [22:07:18]RasterBufferAndPrint [22:07:18]line [22:07:18]line [22:07:18]line [22:07:18]line [22:07:18]line [22:07:18]written 0, free lines is 3302 [22:07:18]MH_Cut [22:07:18]Write to MH i2c: D1 01 00 D8 0D 01 B7 [22:07:18]Write i2c OK [22:07:18]MH_I2C_Read... [22:07:18]Read from MH i2c: D1 [22:07:18]MH_I2C_Read... [22:07:18]Read from MH i2c: D1 01 00 [22:07:18]MH_I2C_Read... [22:07:18]Read from MH i2c: D1 01 00 D8 0D 00 B6 [22:07:18]Write to MH i2c: 01 00 00 D9 0D E6 [22:07:18]Write i2c OK [22:07:18]MH_I2C_Read... [22:07:18]OFD Sender: No OFD packet to send [22:07:19]*** Cut start [22:07:19]*** Partial cut [22:07:19]*** CUTSNS_PIN = 1 [22:07:19]*** CUTSNS_PIN = 0 [22:07:19]*** Brake cut motor [22:07:19]Read from MH i2c: 01 [22:07:19]MH_I2C_Read... [22:07:19]*** Stop cut motor [22:07:19]*** Cut end [22:07:19]Read from MH i2c: 01 07 00 [22:07:19]MH_I2C_Read... [22:07:19]Read from MH i2c: 01 07 00 D9 0D 00 00 00 00 00 FF 0F FB [22:07:19]process_action close_receipt done [22:07:19]requested_data is exist [22:07:19]produce_requested_data [22:07:19]requested_item fm.sn is exist - process it [22:07:19]wFMCommunicate request_size=4 [22:07:19]MH_SAM_APDU [22:07:19]CAPDU: 80 11 00 00 [22:07:19]Write to MH i2c: E2 08 00 DA 0D 80 11 00 00 00 00 00 00 61 [22:07:19]Write i2c OK [22:07:19]MH_I2C_Read... [22:07:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:07:20]Read from MH i2c: E2 [22:07:20]MH_I2C_Read... [22:07:20]Read from MH i2c: E2 17 00 [22:07:20]MH_I2C_Read... [22:07:20]Read from MH i2c: E2 17 00 DA 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B0 [22:07:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:07:20]wFMCommunicate OK [22:07:20]requested_item fd.num is exist - process it [22:07:20]SAM_PROTO_GetFieldsCounters [22:07:20]wFMCommunicate request_size=4 [22:07:20]MH_SAM_APDU [22:07:20]CAPDU: 80 13 00 00 [22:07:20]Write to MH i2c: E2 08 00 DB 0D 80 13 00 00 00 00 00 00 64 [22:07:20]Write i2c OK [22:07:20]MH_I2C_Read... [22:07:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:07:20]Read from MH i2c: E2 [22:07:20]MH_I2C_Read... [22:07:20]Read from MH i2c: E2 62 00 [22:07:20]MH_I2C_Read... [22:07:20]Read from MH i2c: E2 62 00 DB 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C1 72 00 00 0E 04 04 00 74 00 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 A9 [22:07:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C1 72 00 00 0E 04 04 00 74 00 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 [22:07:20]wFMCommunicate OK [22:07:20]SAM_PROTO_GetFieldsCounters done [22:07:20]requested_item shift.num is exist - process it [22:07:20]requested_item shift.opened is exist - process it [22:07:20]req_shift_opened [22:07:20]FM_GetShiftState [22:07:20]SAM_PROTO_GetShiftState [22:07:20]wFMCommunicate request_size=4 [22:07:20]MH_SAM_APDU [22:07:20]CAPDU: 80 13 01 00 [22:07:20]Write to MH i2c: E2 08 00 DC 0D 80 13 01 00 00 00 00 00 66 [22:07:20]Write i2c OK [22:07:20]MH_I2C_Read... [22:07:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:07:20]Read from MH i2c: E2 [22:07:20]MH_I2C_Read... [22:07:20]Read from MH i2c: E2 0E 00 [22:07:20]MH_I2C_Read... [22:07:20]Read from MH i2c: E2 0E 00 DC 0D 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 12 [22:07:20]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [22:07:20]wFMCommunicate OK [22:07:20]SAM_PROTO_GetShiftState done [22:07:20]FM_GetShiftState done [22:07:20]req_shift_opened done [22:07:20]requested_item shift.open_date is exist - process it [22:07:20]req_shift_open_date [22:07:20]req_shift_open_date done [22:07:20]produce_requested_data done [22:07:20]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29377,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [22:07:20]process_action_free close_receipt [22:07:20]json_value_free [22:07:20]json_value_free done [22:07:20]process_json_proto returns [22:07:20]Send response to host [22:07:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29377,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [22:07:20]free response buf [22:07:20]execute_script done [22:07:20]execute_script returns [22:07:20]free content buf [22:07:20]Sock 9.Close socket [22:07:20]Sock 9.Thread stoped [22:07:23]OFD Sender: No OFD packet to send [22:07:28]OFD Sender: No OFD packet to send [22:07:33]OFD Sender: No OFD packet to send [22:07:38]OFD Sender: No OFD packet to send [22:07:43]OFD Sender: No OFD packet to send [22:07:48]OFD Sender: No OFD packet to send [22:07:53]OFD Sender: No OFD packet to send [22:07:58]OFD Sender: No OFD packet to send [22:08:03]OFD Sender: No OFD packet to send [22:08:08]OFD Sender: No OFD packet to send [22:08:13]OFD Sender: No OFD packet to send [22:08:18]OFD Sender: No OFD packet to send [22:08:23]OFD Sender: No OFD packet to send [22:08:28]OFD Sender: No OFD packet to send [22:08:33]OFD Sender: No OFD packet to send [22:08:38]OFD Sender: No OFD packet to send [22:08:43]OFD Sender: No OFD packet to send [22:08:48]OFD Sender: No OFD packet to send [22:08:53]OFD Sender: No OFD packet to send [22:08:58]OFD Sender: No OFD packet to send [22:09:03]OFD Sender: No OFD packet to send [22:09:08]OFD Sender: No OFD packet to send [22:09:13]OFD Sender: No OFD packet to send [22:09:18]OFD Sender: No OFD packet to send [22:09:23]OFD Sender: No OFD packet to send [22:09:28]OFD Sender: No OFD packet to send [22:09:33]OFD Sender: No OFD packet to send [22:09:38]OFD Sender: No OFD packet to send [22:09:43]OFD Sender: No OFD packet to send [22:09:48]OFD Sender: No OFD packet to send [22:09:53]OFD Sender: No OFD packet to send [22:09:58]OFD Sender: No OFD packet to send [22:10:03]OFD Sender: No OFD packet to send [22:10:08]OFD Sender: No OFD packet to send [22:10:14]OFD Sender: No OFD packet to send [22:10:19]OFD Sender: No OFD packet to send [22:10:24]OFD Sender: No OFD packet to send [22:10:29]OFD Sender: No OFD packet to send [22:10:34]OFD Sender: No OFD packet to send [22:10:39]OFD Sender: No OFD packet to send [22:10:44]OFD Sender: No OFD packet to send [22:10:49]OFD Sender: No OFD packet to send [22:10:54]OFD Sender: No OFD packet to send [22:10:59]OFD Sender: No OFD packet to send [22:11:04]OFD Sender: No OFD packet to send [22:11:09]OFD Sender: No OFD packet to send [22:11:14]OFD Sender: No OFD packet to send [22:11:19]OFD Sender: No OFD packet to send [22:11:24]OFD Sender: No OFD packet to send [22:11:29]OFD Sender: No OFD packet to send [22:11:34]OFD Sender: No OFD packet to send [22:11:39]OFD Sender: No OFD packet to send [22:11:44]OFD Sender: No OFD packet to send [22:11:49]OFD Sender: No OFD packet to send [22:11:54]OFD Sender: No OFD packet to send [22:11:59]OFD Sender: No OFD packet to send [22:12:04]OFD Sender: No OFD packet to send [22:12:09]OFD Sender: No OFD packet to send [22:12:14]OFD Sender: No OFD packet to send [22:12:19]OFD Sender: No OFD packet to send [22:12:24]OFD Sender: No OFD packet to send [22:12:29]OFD Sender: No OFD packet to send [22:12:29]accept exits with 8 [22:12:29]New connection [22:12:29]New thread 3067112804 created [22:12:29]Thread 3066969444 joined [22:12:29]Waiting for new connection... [22:12:29] Sock 8.Parse request [22:12:29]Sock 8.Check first char [22:12:29]Sock 8.First char is OK [22:12:29]request: POST /json_proto HTTP/1.0 [22:12:29]Method: POST [22:12:29]URL: /json_proto [22:12:29]Method is POST - this is cgi request [22:12:29]url: /json_proto [22:12:29]query_string will be loaded in cgi processing [22:12:29]execute_cgi json_proto POST (null) [22:12:29]execute_cgi path=json_proto method=POST [22:12:29]POST find Content-Length [22:12:29]Host: 172.17.33.3:8080 [22:12:29]Content-Length: 673 [22:12:29]Content-Type: application/json [22:12:29] [22:12:29]POST finish read [22:12:29]Found Content-Length = 673 [22:12:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347774", "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" : 1.090, "sum" : 70.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 70.00, "total" : 70.00, "payments": [ { "type": 0, "sum" : 70.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:12:29]execute_script... [22:12: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)347774", "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" : 1.090, "sum" : 70.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 70.00, "total" : 70.00, "payments": [ { "type": 0, "sum" : 70.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:12:29]POST & json_proto [22:12:29]process_json_proto [22:12:29]json parsed OK: [22:12:29]protocol is kg_v1.0 [22:12:29]action value=close_receipt [22:12:29]process_action close_receipt [22:12:29]cmd_close_receipt [22:12:29]MH_GetDate [22:12:29]Write to MH i2c: F0 00 00 DD 0D D9 [22:12:29]Write i2c OK [22:12:29]MH_I2C_Read... [22:12:29]Read from MH i2c: F0 [22:12:29]MH_I2C_Read... [22:12:29]Read from MH i2c: F0 09 00 [22:12:29]MH_I2C_Read... [22:12:29]Read from MH i2c: F0 09 00 DD 0D 00 CE 54 1C 66 23 5B 8F 65 F8 [22:12:29]GetLastDocTimeStamp 1713132437 [22:12:29]current date 1713132750 [22:12:29]FM_GetShiftState [22:12:29]SAM_PROTO_GetShiftState [22:12:29]wFMCommunicate request_size=4 [22:12:29]MH_SAM_APDU [22:12:29]CAPDU: 80 13 01 00 [22:12:29]Write to MH i2c: E2 08 00 DE 0D 80 13 01 00 00 00 00 00 68 [22:12:29]Write i2c OK [22:12:29]MH_I2C_Read... [22:12:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:12:29]Read from MH i2c: E2 [22:12:29]MH_I2C_Read... [22:12:29]Read from MH i2c: E2 0E 00 [22:12:29]MH_I2C_Read... [22:12:29]Read from MH i2c: E2 0E 00 DE 0D 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 14 [22:12:29]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [22:12:29]wFMCommunicate OK [22:12:29]SAM_PROTO_GetShiftState done [22:12:29]FM_GetShiftState done [22:12:29]opened in 1713053951 [22:12:29]opened+sec_in_day 1713140351 [22:12:29]quantity*price = 7008 [22:12:29]sum+1 = 7010 [22:12:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 70.00 Внесено: 70.00 СДАЧА: 0.00 НСП 1% : 0.62 НДС 12% : 7.44 Наличными: 70.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 288 14.04.2024 22:12 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29378 ФПД: 171203287175836 1/tax-web-control/client/api/v1/ticket?date=20240414T221230&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29378&fm=171203287175836&tin=02508201610067®Number=0000138879044617&sum=7000 [22:12:30]StoreToDocumentArchive [22:12:30]shift 116 fd 29378 [22:12:30]save to /storage/0116/doc_00029378 [22:12:30]save last doc name /storage/0116/doc_00029378 to /storage/kkm_last_doc_name [22:12:30]save OK [22:12:30]Clear old archive folders... [22:12:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:12:30]tlvbuf is 00265050 [22:12:30]SAM_PROTO_ClearQueue [22:12:30]wFMCommunicate request_size=4 [22:12:30]MH_SAM_APDU [22:12:30]CAPDU: 80 09 00 00 [22:12:30]Write to MH i2c: E2 08 00 EB 0D 80 09 00 00 00 00 00 00 6A [22:12:30]Write i2c OK [22:12:30]MH_I2C_Read... [22:12:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:12:30]Read from MH i2c: E2 [22:12:30]MH_I2C_Read... [22:12:30]Read from MH i2c: E2 03 00 [22:12:30]MH_I2C_Read... [22:12:30]Read from MH i2c: E2 03 00 EB 0D 00 90 00 6C [22:12:30]RAPDU: 90 00 [22:12:30]wFMCommunicate OK [22:12:30]SAM_PROTO_ClearQueue done [22:12:30]KKMCreateOFDPacket [22:12:30]OFDProtocolAddRootSTLVToBuf [22:12:30]FM_MakeSignedData [22:12:30]FM_MakeSignedData [22:12:30]SAM_PROTO_SignData [22:12:30]wFMCommunicate request_size=4 [22:12:30]MH_SAM_APDU [22:12:30]CAPDU: 80 0D 01 02 [22:12:30]Write to MH i2c: E2 08 00 EC 0D 80 0D 01 02 00 00 00 00 72 [22:12:30]Write i2c OK [22:12:30]MH_I2C_Read... [22:12:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:12:30]Read from MH i2c: E2 [22:12:30]MH_I2C_Read... [22:12:30]Read from MH i2c: E2 03 00 [22:12:30]MH_I2C_Read... [22:12:30]Read from MH i2c: E2 03 00 EC 0D 00 90 00 6D [22:12:30]RAPDU: 90 00 [22:12:30]wFMCommunicate OK [22:12:30]wFMCommunicate request_size=255 [22:12:30]MH_SAM_APDU [22:12: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 42 04 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 61 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 E8 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 20 01 00 00 F4 03 04 00 CE 54 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C2 72 00 00 35 04 06 00 9B [22:12:30]Write to MH i2c: E2 02 01 ED 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 42 04 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 61 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 E8 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 20 01 00 00 F4 03 04 00 CE 54 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C2 72 00 00 35 04 06 00 9B 00 00 A8 [22:12:30]Write i2c OK [22:12:30]MH_I2C_Read... [22:12:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:12:31]Read from MH i2c: E2 [22:12:31]MH_I2C_Read... [22:12:31]Read from MH i2c: E2 03 00 [22:12:31]MH_I2C_Read... [22:12:31]Read from MH i2c: E2 03 00 ED 0D 00 90 00 6E [22:12:31]RAPDU: 90 00 [22:12:31]wFMCommunicate OK [22:12:31]wFMCommunicate request_size=10 [22:12:31]MH_SAM_APDU [22:12:31]CAPDU: 80 0D 02 02 05 B5 5F 1D D2 9C [22:12:31]Write to MH i2c: E2 0D 00 EE 0D 80 0D 02 02 05 00 B5 5F 1D D2 9C 00 00 1E [22:12:31]Write i2c OK [22:12:31]MH_I2C_Read... [22:12:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:12:31]Read from MH i2c: E2 [22:12:31]MH_I2C_Read... [22:12:31]Read from MH i2c: E2 03 00 [22:12:31]MH_I2C_Read... [22:12:31]Read from MH i2c: E2 03 00 EE 0D 00 90 00 6F [22:12:31]RAPDU: 90 00 [22:12:31]wFMCommunicate OK [22:12:31]wFMCommunicate request_size=4 [22:12:31]MH_SAM_APDU [22:12:31]CAPDU: 80 0D 03 02 [22:12:31]Write to MH i2c: E2 08 00 EF 0D 80 0D 03 02 00 00 00 00 77 [22:12:31]Write i2c OK [22:12:31]MH_I2C_Read... [22:12:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:12:31]Read from MH i2c: E2 [22:12:31]MH_I2C_Read... [22:12:31]Read from MH i2c: E2 0B 00 [22:12:31]MH_I2C_Read... [22:12:31]Read from MH i2c: E2 0B 00 EF 0D 00 1A B5 27 7A 8B E9 2C 28 90 00 B0 [22:12:31]RAPDU: 1A B5 27 7A 8B E9 2C 28 90 00 [22:12:31]wFMCommunicate OK [22:12:31]SAM_PROTO_SignData done [22:12:31]FM_MakeSignedData done [22:12:31]CreateOFDProtocolMessage [22:12:31]wFMCommunicate request_size=4 [22:12:31]MH_SAM_APDU [22:12:31]CAPDU: 80 11 00 00 [22:12:31]Write to MH i2c: E2 08 00 F0 0D 80 11 00 00 00 00 00 00 77 [22:12:31]Write i2c OK [22:12:31]MH_I2C_Read... [22:12:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:12:31]Read from MH i2c: E2 [22:12:31]MH_I2C_Read... [22:12:31]Read from MH i2c: E2 17 00 [22:12:31]MH_I2C_Read... [22:12:31]Read from MH i2c: E2 17 00 F0 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C6 [22:12:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:12:31]wFMCommunicate OK [22:12:31]CreateOFDProtocolMessage done [22:12:31]OFDSenderStorePacket 29378 [22:12:31]StoreOFDPacket docnum=29378 [22:12:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 FA E7 07 01 80 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 42 04 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 61 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 E8 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 20 01 00 00 F4 03 04 00 CE 54 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C2 72 00 00 35 04 06 00 9B B5 5F 1D D2 9C 1A B5 27 7A 8B E9 2C 28 [22:12:31]CheckFolder [22:12:31]dirname=/storage/ofd_packets [22:12:31]CheckFolder done [22:12:31]ProducePacketName [22:12:31]name=ofd_packets/00029378 [22:12:31]NVStorageSaveData ofd_packets/00029378 [22:12:31]File name is /storage/ofd_packets/00029378 [22:12:31]Write 301 bytes [22:12:31]NVStorageSaveData done [22:12:31]OFDSenderStorePacket done [22:12:31]KKMCreateOFDPacket done [22:12:31]NVStorageSaveData kkm_last_timestamp [22:12:31]File name is /storage/kkm_last_timestamp [22:12:31]Write 4 bytes [22:12:31]NVStorageSaveData done [22:12:31]ExternCall_PrintAddStr [22:12:31]wPrintStart [22:12:31]Write to MH i2c: 01 00 00 F1 0D FE [22:12:31]Write i2c OK [22:12:31]MH_I2C_Read... [22:12:31]Read from MH i2c: 01 [22:12:31]MH_I2C_Read... [22:12:31]Read from MH i2c: 01 07 00 [22:12:31]MH_I2C_Read... [22:12:31]Read from MH i2c: 01 07 00 F1 0D 00 00 00 00 00 FF 0F 13 [22:12:31]RasterBufferAndPrint [22:12:31]line Счет N : (1)347774 [22:12:31]line ИНН: 02508201610067 [22:12:31]line Контрольно-Кассовый Чек [22:12:31]line ПРОДАЖА [22:12:31]line ТРК (МРК, ГНК) : 42 [22:12:31]line Товар: 2710124130 [22:12:31]line Аи-92-К-5 [22:12:31]line 1.090 * 64.30 [22:12:31]line = 70.09 [22:12:31]line НДС 12% НСП 1% [22:12:31]line > о реализуемом товаре [22:12:31]line ОКРУГЛЕНИЕ: -0.09 [22:12:31]line ИТОГО: 70.00 [22:12:31]line Внесено: 70.00 [22:12:31]line СДАЧА: 0.00 [22:12:31]line НСП 1% : 0.62 [22:12:31]line НДС 12% : 7.44 [22:12:31]line Наличными: 70.00 [22:12:31]line Безнал.: 0.00 [22:12:31]line Место: АЗС № 108 "Партнер Нефть" [22:12:31]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [22:12:31]line СНО: Общий режим [22:12:31]line Чек 288 14.04.2024 22:12 [22:12:31]line Смена: 116 ФФД: 1.0 [22:12:31]line ЗНМ: 0300000027 [22:12:31]line РНМ: 0000138879044617 [22:12:31]line Версия ККМ: 001 [22:12:31]line ФМ: 0000000000963154 [22:12:31]line ФД: 29378 [22:12:31]line ФПД: 171203287175836 [22:12:31]line 1/tax-web-control/client/api/v1/ticket?date=20240414T221230&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29378&fm=171203287175836&tin=02508201610067®Number=0000138879044617&sum=7000 [22:12:31]OFD Sender: Processing packet 29378 [packets to send 8, broken 7] [22:12:31]ProducePacketName [22:12:31]name=ofd_packets/00029378 [22:12:31]OFD Sender: To server: pG, [22:12:31]CommunicateWithHost lk.salyk.kg:30040 [22:12:31]ConnectInit lk.salyk.kg [22:12:31]written 0, free lines is 4095 [22:12:31]Connected sock=10 [22:12:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 FA E7 07 01 80 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 42 04 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 61 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 E8 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 20 01 00 00 F4 03 04 00 CE 54 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C2 72 00 00 35 04 06 00 9B B5 5F 1D D2 9C 1A B5 27 7A 8B E9 2C 28 [22:12:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 6E 80 47 00 91 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 39 36 33 31 35 34 10 04 04 00 C2 72 00 00 F4 03 04 00 71 FF 1B 66 B6 04 01 00 00 E8 00 7F B7 22 C7 77 A0 [22:12:31]CommunicateWithHost err = 0 [22:12:31]CheckOFDResponse [22:12:31]1017 (14) - 77093643461234 [22:12:31]1041 (16) - 0000000000963154 [22:12:31]1040 (4) - 29378 [22:12:31]1012 (4) - 14.04.2024 16:08 [22:12:31]1206 (1) - 0 [22:12:31]OFD Sender: Remove packet 29378 [22:12:31]ProducePacketName [22:12:31]name=ofd_packets/00029378 [22:12:31]NVStorageDeleteData [22:12:32]Write to MH i2c: 01 00 00 1B 0E 29 [22:12:32]Write i2c OK [22:12:32]MH_I2C_Read... [22:12:32]Read from MH i2c: 01 [22:12:32]MH_I2C_Read... [22:12:32]Read from MH i2c: 01 07 00 [22:12:32]MH_I2C_Read... [22:12:32]Read from MH i2c: 01 07 00 1B 0E 00 00 00 00 00 C2 0C FE [22:12:32]RasterBufferAndPrint [22:12:32]line [22:12:32]line [22:12:32]line [22:12:32]line [22:12:32]line [22:12:32]written 0, free lines is 3272 [22:12:32]MH_Cut [22:12:32]Write to MH i2c: D1 01 00 22 0E 01 02 [22:12:32]Write i2c OK [22:12:32]MH_I2C_Read... [22:12:32]Read from MH i2c: D1 [22:12:32]MH_I2C_Read... [22:12:32]Read from MH i2c: D1 01 00 [22:12:32]MH_I2C_Read... [22:12:32]Read from MH i2c: D1 01 00 22 0E 00 01 [22:12:32]Write to MH i2c: 01 00 00 23 0E 31 [22:12:32]Write i2c OK [22:12:32]MH_I2C_Read... [22:12:32]OFD Sender: No OFD packet to send [22:12:32]*** Cut start [22:12:32]*** Partial cut [22:12:32]*** CUTSNS_PIN = 1 [22:12:32]*** CUTSNS_PIN = 0 [22:12:33]*** Brake cut motor [22:12:33]Read from MH i2c: 01 [22:12:33]MH_I2C_Read... [22:12:33]*** Stop cut motor [22:12:33]*** Cut end [22:12:33]Read from MH i2c: 01 07 00 [22:12:33]MH_I2C_Read... [22:12:33]Read from MH i2c: 01 07 00 23 0E 00 00 00 00 00 FF 0F 46 [22:12:33]process_action close_receipt done [22:12:33]requested_data is exist [22:12:33]produce_requested_data [22:12:33]requested_item fm.sn is exist - process it [22:12:33]wFMCommunicate request_size=4 [22:12:33]MH_SAM_APDU [22:12:33]CAPDU: 80 11 00 00 [22:12:33]Write to MH i2c: E2 08 00 24 0E 80 11 00 00 00 00 00 00 AC [22:12:33]Write i2c OK [22:12:33]MH_I2C_Read... [22:12:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:12:33]Read from MH i2c: E2 [22:12:33]MH_I2C_Read... [22:12:33]Read from MH i2c: E2 17 00 [22:12:33]MH_I2C_Read... [22:12:33]Read from MH i2c: E2 17 00 24 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 FB [22:12:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:12:33]wFMCommunicate OK [22:12:33]requested_item fd.num is exist - process it [22:12:33]SAM_PROTO_GetFieldsCounters [22:12:33]wFMCommunicate request_size=4 [22:12:33]MH_SAM_APDU [22:12:33]CAPDU: 80 13 00 00 [22:12:33]Write to MH i2c: E2 08 00 25 0E 80 13 00 00 00 00 00 00 AF [22:12:33]Write i2c OK [22:12:33]MH_I2C_Read... [22:12:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:12:33]Read from MH i2c: E2 [22:12:33]MH_I2C_Read... [22:12:33]Read from MH i2c: E2 62 00 [22:12:33]MH_I2C_Read... [22:12:33]Read from MH i2c: E2 62 00 25 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C2 72 00 00 0E 04 04 00 74 00 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 F8 [22:12:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C2 72 00 00 0E 04 04 00 74 00 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 [22:12:33]wFMCommunicate OK [22:12:33]SAM_PROTO_GetFieldsCounters done [22:12:33]requested_item shift.num is exist - process it [22:12:33]requested_item shift.opened is exist - process it [22:12:33]req_shift_opened [22:12:33]FM_GetShiftState [22:12:33]SAM_PROTO_GetShiftState [22:12:33]wFMCommunicate request_size=4 [22:12:33]MH_SAM_APDU [22:12:33]CAPDU: 80 13 01 00 [22:12:33]Write to MH i2c: E2 08 00 26 0E 80 13 01 00 00 00 00 00 B1 [22:12:33]Write i2c OK [22:12:33]MH_I2C_Read... [22:12:33]Read from MH i2c: E2 [22:12:33]MH_I2C_Read... [22:12:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:12:33]Read from MH i2c: E2 0E 00 [22:12:33]MH_I2C_Read... [22:12:33]Read from MH i2c: E2 0E 00 26 0E 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 5D [22:12:33]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [22:12:33]wFMCommunicate OK [22:12:33]SAM_PROTO_GetShiftState done [22:12:33]FM_GetShiftState done [22:12:33]req_shift_opened done [22:12:33]requested_item shift.open_date is exist - process it [22:12:33]req_shift_open_date [22:12:33]req_shift_open_date done [22:12:33]produce_requested_data done [22:12:33]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29378,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [22:12:33]process_action_free close_receipt [22:12:33]json_value_free [22:12:33]json_value_free done [22:12:33]process_json_proto returns [22:12:33]Send response to host [22:12:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29378,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [22:12:33]free response buf [22:12:33]execute_script done [22:12:33]execute_script returns [22:12:33]free content buf [22:12:33]Sock 8.Close socket [22:12:33]Sock 8.Thread stoped [22:12:37]OFD Sender: No OFD packet to send [22:12:42]OFD Sender: No OFD packet to send [22:12:47]OFD Sender: No OFD packet to send [22:12:52]OFD Sender: No OFD packet to send [22:12:57]OFD Sender: No OFD packet to send [22:13:02]OFD Sender: No OFD packet to send [22:13:07]OFD Sender: No OFD packet to send [22:13:12]OFD Sender: No OFD packet to send [22:13:17]OFD Sender: No OFD packet to send [22:13:22]OFD Sender: No OFD packet to send [22:13:27]OFD Sender: No OFD packet to send [22:13:32]OFD Sender: No OFD packet to send [22:13:37]OFD Sender: No OFD packet to send [22:13:42]OFD Sender: No OFD packet to send [22:13:47]OFD Sender: No OFD packet to send [22:13:52]OFD Sender: No OFD packet to send [22:13:57]OFD Sender: No OFD packet to send [22:14:02]OFD Sender: No OFD packet to send [22:14:07]OFD Sender: No OFD packet to send [22:14:12]OFD Sender: No OFD packet to send [22:14:17]OFD Sender: No OFD packet to send [22:14:22]OFD Sender: No OFD packet to send [22:14:27]OFD Sender: No OFD packet to send [22:14:32]OFD Sender: No OFD packet to send [22:14:37]OFD Sender: No OFD packet to send [22:14:42]OFD Sender: No OFD packet to send [22:14:47]OFD Sender: No OFD packet to send [22:14:52]OFD Sender: No OFD packet to send [22:14:57]OFD Sender: No OFD packet to send [22:15:02]OFD Sender: No OFD packet to send [22:15:07]OFD Sender: No OFD packet to send [22:15:12]OFD Sender: No OFD packet to send [22:15:17]OFD Sender: No OFD packet to send [22:15:22]OFD Sender: No OFD packet to send [22:15:27]OFD Sender: No OFD packet to send [22:15:32]OFD Sender: No OFD packet to send [22:15:37]OFD Sender: No OFD packet to send [22:15:42]OFD Sender: No OFD packet to send [22:15:47]OFD Sender: No OFD packet to send [22:15:52]OFD Sender: No OFD packet to send [22:15:57]OFD Sender: No OFD packet to send [22:16:02]OFD Sender: No OFD packet to send [22:16:02]accept exits with 9 [22:16:02]New connection [22:16:02]New thread 3066969444 created [22:16:02]Thread 3067112804 joined [22:16:02]Waiting for new connection... [22:16:02] Sock 9.Parse request [22:16:02]Sock 9.Check first char [22:16:02]Sock 9.First char is OK [22:16:02]request: POST /json_proto HTTP/1.0 [22:16:02]Method: POST [22:16:02]URL: /json_proto [22:16:02]Method is POST - this is cgi request [22:16:02]url: /json_proto [22:16:02]query_string will be loaded in cgi processing [22:16:02]execute_cgi json_proto POST (null) [22:16:02]execute_cgi path=json_proto method=POST [22:16:02]POST find Content-Length [22:16:02]Host: 172.17.33.3:8080 [22:16:02]Content-Length: 802 [22:16:02]Content-Type: application/json [22:16:02] [22:16:02]POST finish read [22:16:02]Found Content-Length = 802 [22:16:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347775", "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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:16:02]execute_script... [22: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)347775", "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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:16:02]POST & json_proto [22:16:02]process_json_proto [22:16:02]json parsed OK: [22:16:02]protocol is kg_v1.0 [22:16:02]action value=close_receipt [22:16:02]process_action close_receipt [22:16:02]cmd_close_receipt [22:16:02]MH_GetDate [22:16:02]Write to MH i2c: F0 00 00 27 0E 24 [22:16:02]Write i2c OK [22:16:02]MH_I2C_Read... [22:16:02]Read from MH i2c: F0 [22:16:02]MH_I2C_Read... [22:16:02]Read from MH i2c: F0 09 00 [22:16:02]MH_I2C_Read... [22:16:02]Read from MH i2c: F0 09 00 27 0E 00 A3 55 1C 66 23 5B 8F 65 19 [22:16:02]GetLastDocTimeStamp 1713132750 [22:16:02]current date 1713132963 [22:16:02]FM_GetShiftState [22:16:02]SAM_PROTO_GetShiftState [22:16:02]wFMCommunicate request_size=4 [22:16:02]MH_SAM_APDU [22:16:02]CAPDU: 80 13 01 00 [22:16:02]Write to MH i2c: E2 08 00 28 0E 80 13 01 00 00 00 00 00 B3 [22:16:02]Write i2c OK [22:16:02]MH_I2C_Read... [22:16:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:16:02]Read from MH i2c: E2 [22:16:02]MH_I2C_Read... [22:16:02]Read from MH i2c: E2 0E 00 [22:16:02]MH_I2C_Read... [22:16:02]Read from MH i2c: E2 0E 00 28 0E 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 5F [22:16:02]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [22:16:02]wFMCommunicate OK [22:16:02]SAM_PROTO_GetShiftState done [22:16:02]FM_GetShiftState done [22:16:02]opened in 1713053951 [22:16:02]opened+sec_in_day 1713140351 [22:16:02]quantity*price = 50028 [22:16:02]sum+1 = 50029 [22:16:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.28 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 0.00 Безнал.: 500.28 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 289 14.04.2024 22:16 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29379 ФПД: 281412378895998 1/tax-web-control/client/api/v1/ticket?date=20240414T221604&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29379&fm=281412378895998&tin=02508201610067®Number=0000138879044617&sum=50028 [22:16:03]StoreToDocumentArchive [22:16:03]shift 116 fd 29379 [22:16:03]save to /storage/0116/doc_00029379 [22:16:03]save last doc name /storage/0116/doc_00029379 to /storage/kkm_last_doc_name [22:16:03]save OK [22:16:03]Clear old archive folders... [22:16:03]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:16:03]tlvbuf is 00264F40 [22:16:03]SAM_PROTO_ClearQueue [22:16:03]wFMCommunicate request_size=4 [22:16:03]MH_SAM_APDU [22:16:03]CAPDU: 80 09 00 00 [22:16:03]Write to MH i2c: E2 08 00 35 0E 80 09 00 00 00 00 00 00 B5 [22:16:03]Write i2c OK [22:16:03]MH_I2C_Read... [22:16:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:16:03]Read from MH i2c: E2 [22:16:03]MH_I2C_Read... [22:16:03]Read from MH i2c: E2 03 00 [22:16:03]MH_I2C_Read... [22:16:03]Read from MH i2c: E2 03 00 35 0E 00 90 00 B7 [22:16:03]RAPDU: 90 00 [22:16:03]wFMCommunicate OK [22:16:03]SAM_PROTO_ClearQueue done [22:16:03]KKMCreateOFDPacket [22:16:03]OFDProtocolAddRootSTLVToBuf [22:16:03]FM_MakeSignedData [22:16:03]FM_MakeSignedData [22:16:03]SAM_PROTO_SignData [22:16:03]wFMCommunicate request_size=4 [22:16:03]MH_SAM_APDU [22:16:03]CAPDU: 80 0D 01 02 [22:16:03]Write to MH i2c: E2 08 00 36 0E 80 0D 01 02 00 00 00 00 BD [22:16:03]Write i2c OK [22:16:03]MH_I2C_Read... [22:16:03]Read from MH i2c: E2 [22:16:03]MH_I2C_Read... [22:16:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:16:03]Read from MH i2c: E2 03 00 [22:16:03]MH_I2C_Read... [22:16:03]Read from MH i2c: E2 03 00 36 0E 00 90 00 B8 [22:16:03]RAPDU: 90 00 [22:16:03]wFMCommunicate OK [22:16:03]wFMCommunicate request_size=255 [22:16:03]MH_SAM_APDU [22:16: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 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 21 01 00 00 F4 03 04 00 A4 55 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C3 72 00 00 35 04 06 00 FF F1 6C E1 [22:16:03]Write to MH i2c: E2 02 01 37 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 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 21 01 00 00 F4 03 04 00 A4 55 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C3 72 00 00 35 04 06 00 FF F1 6C E1 00 00 54 [22:16:03]Write i2c OK [22:16:03]MH_I2C_Read... [22:16:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:16:04]Read from MH i2c: E2 [22:16:04]MH_I2C_Read... [22:16:04]Read from MH i2c: E2 03 00 [22:16:04]MH_I2C_Read... [22:16:04]Read from MH i2c: E2 03 00 37 0E 00 90 00 B9 [22:16:04]RAPDU: 90 00 [22:16:04]wFMCommunicate OK [22:16:04]wFMCommunicate request_size=7 [22:16:04]MH_SAM_APDU [22:16:04]CAPDU: 80 0D 02 02 02 26 7E [22:16:04]Write to MH i2c: E2 0A 00 38 0E 80 0D 02 02 02 00 26 7E 00 00 68 [22:16:04]Write i2c OK [22:16:04]MH_I2C_Read... [22:16:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:16:04]Read from MH i2c: E2 [22:16:04]MH_I2C_Read... [22:16:04]Read from MH i2c: E2 03 00 [22:16:04]MH_I2C_Read... [22:16:04]Read from MH i2c: E2 03 00 38 0E 00 90 00 BA [22:16:04]RAPDU: 90 00 [22:16:04]wFMCommunicate OK [22:16:04]wFMCommunicate request_size=4 [22:16:04]MH_SAM_APDU [22:16:04]CAPDU: 80 0D 03 02 [22:16:04]Write to MH i2c: E2 08 00 39 0E 80 0D 03 02 00 00 00 00 C2 [22:16:04]Write i2c OK [22:16:04]MH_I2C_Read... [22:16:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:16:04]Read from MH i2c: E2 [22:16:04]MH_I2C_Read... [22:16:04]Read from MH i2c: E2 0B 00 [22:16:04]MH_I2C_Read... [22:16:04]Read from MH i2c: E2 0B 00 39 0E 00 A9 AF B6 8A F5 2B B6 68 90 00 99 [22:16:04]RAPDU: A9 AF B6 8A F5 2B B6 68 90 00 [22:16:04]wFMCommunicate OK [22:16:04]SAM_PROTO_SignData done [22:16:04]FM_MakeSignedData done [22:16:04]CreateOFDProtocolMessage [22:16:04]wFMCommunicate request_size=4 [22:16:04]MH_SAM_APDU [22:16:04]CAPDU: 80 11 00 00 [22:16:04]Write to MH i2c: E2 08 00 3A 0E 80 11 00 00 00 00 00 00 C2 [22:16:04]Write i2c OK [22:16:04]MH_I2C_Read... [22:16:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:16:04]Read from MH i2c: E2 [22:16:04]MH_I2C_Read... [22:16:04]Read from MH i2c: E2 17 00 [22:16:04]MH_I2C_Read... [22:16:04]Read from MH i2c: E2 17 00 3A 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 11 [22:16:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:16:04]wFMCommunicate OK [22:16:04]CreateOFDProtocolMessage done [22:16:04]OFDSenderStorePacket 29379 [22:16:04]StoreOFDPacket docnum=29379 [22:16:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 07 57 04 01 42 00 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 21 01 00 00 F4 03 04 00 A4 55 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C3 72 00 00 35 04 06 00 FF F1 6C E1 26 7E A9 AF B6 8A F5 2B B6 68 [22:16:04]CheckFolder [22:16:04]dirname=/storage/ofd_packets [22:16:04]CheckFolder done [22:16:04]ProducePacketName [22:16:04]name=ofd_packets/00029379 [22:16:04]NVStorageSaveData ofd_packets/00029379 [22:16:04]File name is /storage/ofd_packets/00029379 [22:16:04]Write 298 bytes [22:16:04]NVStorageSaveData done [22:16:04]OFDSenderStorePacket done [22:16:04]KKMCreateOFDPacket done [22:16:04]NVStorageSaveData kkm_last_timestamp [22:16:04]File name is /storage/kkm_last_timestamp [22:16:04]Write 4 bytes [22:16:04]NVStorageSaveData done [22:16:04]ExternCall_PrintAddStr [22:16:04]wPrintStart [22:16:04]Write to MH i2c: 01 00 00 3B 0E 49 [22:16:04]Write i2c OK [22:16:04]MH_I2C_Read... [22:16:04]Read from MH i2c: 01 [22:16:04]MH_I2C_Read... [22:16:04]Read from MH i2c: 01 07 00 [22:16:04]MH_I2C_Read... [22:16:04]Read from MH i2c: 01 07 00 3B 0E 00 00 00 00 00 FF 0F 5E [22:16:04]RasterBufferAndPrint [22:16:04]line Счет N : (1)347775 [22:16:04]line ИНН: 02508201610067 [22:16:04]line Контрольно-Кассовый Чек [22:16:04]line ПРОДАЖА [22:16:04]line ТРК (МРК, ГНК) : 51 [22:16:04]line Товар: 2710194210 [22:16:04]line ДТ-К-5 [22:16:04]line 6.910 * 72.40 [22:16:04]line = 500.28 [22:16:04]line НДС 12% НСП 1% [22:16:04]line > о реализуемом товаре [22:16:04]line ИТОГО: 500.28 [22:16:04]line НСП 1% : 4.43 [22:16:04]line НДС 12% : 53.13 [22:16:04]line Наличными: 0.00 [22:16:04]line Безнал.: 500.28 [22:16:04]line Место: АЗС № 108 "Партнер Нефть" [22:16:04]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [22:16:04]line СНО: Общий режим [22:16:04]line Чек 289 14.04.2024 22:16 [22:16:04]line Смена: 116 ФФД: 1.0 [22:16:04]line ЗНМ: 0300000027 [22:16:04]line РНМ: 0000138879044617 [22:16:04]line Версия ККМ: 001 [22:16:04]line Платежная система: О! деньги [22:16:04]line ФМ: 0000000000963154 [22:16:04]line ФД: 29379 [22:16:04]line ФПД: 281412378895998 [22:16:04]line 1/tax-web-control/client/api/v1/ticket?date=20240414T221604&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29379&fm=281412378895998&tin=02508201610067®Number=0000138879044617&sum=50028 [22:16:04]OFD Sender: Processing packet 29379 [packets to send 8, broken 7] [22:16:04]ProducePacketName [22:16:04]name=ofd_packets/00029379 [22:16:04]OFD Sender: To server: pG, [22:16:04]CommunicateWithHost lk.salyk.kg:30040 [22:16:04]ConnectInit lk.salyk.kg [22:16:04]written 0, free lines is 4095 [22:16:04]Connected sock=10 [22:16:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 07 57 04 01 42 00 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 21 01 00 00 F4 03 04 00 A4 55 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C3 72 00 00 35 04 06 00 FF F1 6C E1 26 7E A9 AF B6 8A F5 2B B6 68 [22:16:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 05 DB 47 00 C4 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C3 72 00 00 F4 03 04 00 46 00 1C 66 B6 04 01 00 00 60 14 DC 5F ED 07 55 1B [22:16:04]CommunicateWithHost err = 0 [22:16:04]CheckOFDResponse [22:16:04]1017 (14) - 77093643461234 [22:16:04]1041 (16) - 0000000000963154 [22:16:04]1040 (4) - 29379 [22:16:04]1012 (4) - 14.04.2024 16:11 [22:16:04]1206 (1) - 0 [22:16:04]OFD Sender: Remove packet 29379 [22:16:04]ProducePacketName [22:16:04]name=ofd_packets/00029379 [22:16:04]NVStorageDeleteData [22:16:05]Write to MH i2c: 01 00 00 64 0E 72 [22:16:05]Write i2c OK [22:16:05]MH_I2C_Read... [22:16:05]Read from MH i2c: 01 [22:16:05]MH_I2C_Read... [22:16:05]Read from MH i2c: 01 07 00 [22:16:05]MH_I2C_Read... [22:16:05]Read from MH i2c: 01 07 00 64 0E 00 00 00 00 00 E4 0C 69 [22:16:05]RasterBufferAndPrint [22:16:05]line [22:16:05]line [22:16:05]line [22:16:05]line [22:16:05]line [22:16:05]written 0, free lines is 3306 [22:16:05]MH_Cut [22:16:05]Write to MH i2c: D1 01 00 6B 0E 01 4B [22:16:05]Write i2c OK [22:16:05]MH_I2C_Read... [22:16:05]Read from MH i2c: D1 [22:16:05]MH_I2C_Read... [22:16:05]Read from MH i2c: D1 01 00 [22:16:05]MH_I2C_Read... [22:16:05]Read from MH i2c: D1 01 00 6B 0E 00 4A [22:16:05]Write to MH i2c: 01 00 00 6C 0E 7A [22:16:05]Write i2c OK [22:16:05]MH_I2C_Read... [22:16:05]OFD Sender: No OFD packet to send [22:16:05]*** Cut start [22:16:05]*** Partial cut [22:16:05]*** CUTSNS_PIN = 1 [22:16:05]*** CUTSNS_PIN = 0 [22:16:06]*** Brake cut motor [22:16:06]Read from MH i2c: 01 [22:16:06]MH_I2C_Read... [22:16:06]*** Stop cut motor [22:16:06]*** Cut end [22:16:06]Read from MH i2c: 01 07 00 [22:16:06]MH_I2C_Read... [22:16:06]Read from MH i2c: 01 07 00 6C 0E 00 00 00 00 00 FF 0F 8F [22:16:06]process_action close_receipt done [22:16:06]requested_data is exist [22:16:06]produce_requested_data [22:16:06]requested_item fm.sn is exist - process it [22:16:06]wFMCommunicate request_size=4 [22:16:06]MH_SAM_APDU [22:16:06]CAPDU: 80 11 00 00 [22:16:06]Write to MH i2c: E2 08 00 6D 0E 80 11 00 00 00 00 00 00 F5 [22:16:06]Write i2c OK [22:16:06]MH_I2C_Read... [22:16:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:16:06]Read from MH i2c: E2 [22:16:06]MH_I2C_Read... [22:16:06]Read from MH i2c: E2 17 00 [22:16:06]MH_I2C_Read... [22:16:06]Read from MH i2c: E2 17 00 6D 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 44 [22:16:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:16:06]wFMCommunicate OK [22:16:06]requested_item fd.num is exist - process it [22:16:06]SAM_PROTO_GetFieldsCounters [22:16:06]wFMCommunicate request_size=4 [22:16:06]MH_SAM_APDU [22:16:06]CAPDU: 80 13 00 00 [22:16:06]Write to MH i2c: E2 08 00 6E 0E 80 13 00 00 00 00 00 00 F8 [22:16:06]Write i2c OK [22:16:06]MH_I2C_Read... [22:16:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:16:06]Read from MH i2c: E2 [22:16:06]MH_I2C_Read... [22:16:06]Read from MH i2c: E2 62 00 [22:16:06]MH_I2C_Read... [22:16:06]Read from MH i2c: E2 62 00 6E 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C3 72 00 00 0E 04 04 00 74 00 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 45 [22:16:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C3 72 00 00 0E 04 04 00 74 00 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 [22:16:06]wFMCommunicate OK [22:16:06]SAM_PROTO_GetFieldsCounters done [22:16:06]requested_item shift.num is exist - process it [22:16:06]requested_item shift.opened is exist - process it [22:16:06]req_shift_opened [22:16:06]FM_GetShiftState [22:16:06]SAM_PROTO_GetShiftState [22:16:06]wFMCommunicate request_size=4 [22:16:06]MH_SAM_APDU [22:16:06]CAPDU: 80 13 01 00 [22:16:06]Write to MH i2c: E2 08 00 6F 0E 80 13 01 00 00 00 00 00 FA [22:16:06]Write i2c OK [22:16:06]MH_I2C_Read... [22:16:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:16:06]Read from MH i2c: E2 [22:16:06]MH_I2C_Read... [22:16:06]Read from MH i2c: E2 0E 00 [22:16:06]MH_I2C_Read... [22:16:06]Read from MH i2c: E2 0E 00 6F 0E 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 A6 [22:16:06]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [22:16:06]wFMCommunicate OK [22:16:06]SAM_PROTO_GetShiftState done [22:16:06]FM_GetShiftState done [22:16:06]req_shift_opened done [22:16:06]requested_item shift.open_date is exist - process it [22:16:06]req_shift_open_date [22:16:06]req_shift_open_date done [22:16:06]produce_requested_data done [22:16:06]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29379,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [22:16:06]process_action_free close_receipt [22:16:06]json_value_free [22:16:06]json_value_free done [22:16:06]process_json_proto returns [22:16:06]Send response to host [22:16:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29379,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [22:16:06]free response buf [22:16:06]execute_script done [22:16:06]execute_script returns [22:16:06]free content buf [22:16:06]Sock 9.Close socket [22:16:06]Sock 9.Thread stoped [22:16:10]OFD Sender: No OFD packet to send [22:16:15]OFD Sender: No OFD packet to send [22:16:20]OFD Sender: No OFD packet to send [22:16:25]OFD Sender: No OFD packet to send [22:16:30]OFD Sender: No OFD packet to send [22:16:35]OFD Sender: No OFD packet to send [22:16:40]OFD Sender: No OFD packet to send [22:16:45]OFD Sender: No OFD packet to send [22:16:50]OFD Sender: No OFD packet to send [22:16:55]OFD Sender: No OFD packet to send [22:17:00]OFD Sender: No OFD packet to send [22:17:05]OFD Sender: No OFD packet to send [22:17:10]OFD Sender: No OFD packet to send [22:17:15]OFD Sender: No OFD packet to send [22:17:16]accept exits with 8 [22:17:16]New connection [22:17:16]New thread 3067112804 created [22:17:16]Thread 3066969444 joined [22:17:16]Waiting for new connection... [22:17:16] Sock 8.Parse request [22:17:16]Sock 8.Check first char [22:17:16]Sock 8.First char is OK [22:17:16]request: POST /json_proto HTTP/1.0 [22:17:16]Method: POST [22:17:16]URL: /json_proto [22:17:16]Method is POST - this is cgi request [22:17:16]url: /json_proto [22:17:16]query_string will be loaded in cgi processing [22:17:16]execute_cgi json_proto POST (null) [22:17:16]execute_cgi path=json_proto method=POST [22:17:16]POST find Content-Length [22:17:16]Host: 172.17.33.3:8080 [22:17:16]Content-Length: 670 [22:17:16]Content-Type: application/json [22:17:16] [22:17:16]POST finish read [22:17:16]Found Content-Length = 670 [22:17:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347776", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.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" ] } } [22:17:16]execute_script... [22: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)347776", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.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" ] } } [22:17:16]POST & json_proto [22:17:16]process_json_proto [22:17:16]json parsed OK: [22:17:16]protocol is kg_v1.0 [22:17:16]action value=close_receipt [22:17:16]process_action close_receipt [22:17:16]cmd_close_receipt [22:17:16]MH_GetDate [22:17:16]Write to MH i2c: F0 00 00 70 0E 6D [22:17:16]Write i2c OK [22:17:16]MH_I2C_Read... [22:17:16]Read from MH i2c: F0 [22:17:16]MH_I2C_Read... [22:17:16]Read from MH i2c: F0 09 00 [22:17:16]MH_I2C_Read... [22:17:16]Read from MH i2c: F0 09 00 70 0E 00 EE 55 1C 66 23 5B 8F 65 AD [22:17:16]GetLastDocTimeStamp 1713132964 [22:17:16]current date 1713133038 [22:17:16]FM_GetShiftState [22:17:16]SAM_PROTO_GetShiftState [22:17:16]wFMCommunicate request_size=4 [22:17:16]MH_SAM_APDU [22:17:16]CAPDU: 80 13 01 00 [22:17:16]Write to MH i2c: E2 08 00 71 0E 80 13 01 00 00 00 00 00 FC [22:17:16]Write i2c OK [22:17:16]MH_I2C_Read... [22:17:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:17:17]Read from MH i2c: E2 [22:17:17]MH_I2C_Read... [22:17:17]Read from MH i2c: E2 0E 00 [22:17:17]MH_I2C_Read... [22:17:17]Read from MH i2c: E2 0E 00 71 0E 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 A8 [22:17:17]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [22:17:17]wFMCommunicate OK [22:17:17]SAM_PROTO_GetShiftState done [22:17:17]FM_GetShiftState done [22:17:17]opened in 1713053951 [22:17:17]opened+sec_in_day 1713140351 [22:17:17]quantity*price = 40028 [22:17:17]sum+1 = 40030 [22:17:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.51 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 290 14.04.2024 22:17 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29380 ФПД: 258882591542007 1/tax-web-control/client/api/v1/ticket?date=20240414T221718&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29380&fm=258882591542007&tin=02508201610067®Number=0000138879044617&sum=40000 [22:17:18]StoreToDocumentArchive [22:17:18]shift 116 fd 29380 [22:17:18]save to /storage/0116/doc_00029380 [22:17:18]save last doc name /storage/0116/doc_00029380 to /storage/kkm_last_doc_name [22:17:18]save OK [22:17:18]Clear old archive folders... [22:17:18]ProcessDocumentItem done err = 0, tmpTLVsize=252 [22:17:18]tlvbuf is 002510E0 [22:17:18]SAM_PROTO_ClearQueue [22:17:18]wFMCommunicate request_size=4 [22:17:18]MH_SAM_APDU [22:17:18]CAPDU: 80 09 00 00 [22:17:18]Write to MH i2c: E2 08 00 7E 0E 80 09 00 00 00 00 00 00 FE [22:17:18]Write i2c OK [22:17:18]MH_I2C_Read... [22:17:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:17:18]Read from MH i2c: E2 [22:17:18]MH_I2C_Read... [22:17:18]Read from MH i2c: E2 03 00 [22:17:18]MH_I2C_Read... [22:17:18]Read from MH i2c: E2 03 00 7E 0E 00 90 00 00 [22:17:18]RAPDU: 90 00 [22:17:18]wFMCommunicate OK [22:17:18]SAM_PROTO_ClearQueue done [22:17:18]KKMCreateOFDPacket [22:17:18]OFDProtocolAddRootSTLVToBuf [22:17:18]FM_MakeSignedData [22:17:18]FM_MakeSignedData [22:17:18]SAM_PROTO_SignData [22:17:18]wFMCommunicate request_size=4 [22:17:18]MH_SAM_APDU [22:17:18]CAPDU: 80 0D 01 02 [22:17:18]Write to MH i2c: E2 08 00 7F 0E 80 0D 01 02 00 00 00 00 06 [22:17:18]Write i2c OK [22:17:18]MH_I2C_Read... [22:17:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:17:18]Read from MH i2c: E2 [22:17:18]MH_I2C_Read... [22:17:18]Read from MH i2c: E2 03 00 [22:17:18]MH_I2C_Read... [22:17:18]Read from MH i2c: E2 03 00 7F 0E 00 90 00 01 [22:17:18]RAPDU: 90 00 [22:17:18]wFMCommunicate OK [22:17:18]wFMCommunicate request_size=255 [22:17:18]MH_SAM_APDU [22:17: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 2D 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 22 01 00 00 F4 03 04 00 EE 55 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C4 72 00 00 35 04 06 00 [22:17:18]Write to MH i2c: E2 02 01 80 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 2D 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 22 01 00 00 F4 03 04 00 EE 55 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C4 72 00 00 35 04 06 00 00 00 CC [22:17:18]Write i2c OK [22:17:18]MH_I2C_Read... [22:17:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:17:18]Read from MH i2c: E2 [22:17:18]MH_I2C_Read... [22:17:18]Read from MH i2c: E2 03 00 [22:17:18]MH_I2C_Read... [22:17:18]Read from MH i2c: E2 03 00 80 0E 00 90 00 02 [22:17:18]RAPDU: 90 00 [22:17:18]wFMCommunicate OK [22:17:18]wFMCommunicate request_size=11 [22:17:18]MH_SAM_APDU [22:17:18]CAPDU: 80 0D 02 02 06 EB 73 CC E8 4A F7 [22:17:18]Write to MH i2c: E2 0E 00 81 0E 80 0D 02 02 06 00 EB 73 CC E8 4A F7 00 00 68 [22:17:18]Write i2c OK [22:17:18]MH_I2C_Read... [22:17:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:17:18]Read from MH i2c: E2 [22:17:18]MH_I2C_Read... [22:17:18]Read from MH i2c: E2 03 00 [22:17:18]MH_I2C_Read... [22:17:18]Read from MH i2c: E2 03 00 81 0E 00 90 00 03 [22:17:18]RAPDU: 90 00 [22:17:18]wFMCommunicate OK [22:17:18]wFMCommunicate request_size=4 [22:17:18]MH_SAM_APDU [22:17:18]CAPDU: 80 0D 03 02 [22:17:18]Write to MH i2c: E2 08 00 82 0E 80 0D 03 02 00 00 00 00 0B [22:17:18]Write i2c OK [22:17:18]MH_I2C_Read... [22:17:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:17:18]Read from MH i2c: E2 [22:17:18]MH_I2C_Read... [22:17:18]Read from MH i2c: E2 0B 00 [22:17:18]MH_I2C_Read... [22:17:18]Read from MH i2c: E2 0B 00 82 0E 00 5B DB 94 51 2C 03 92 CA 90 00 B2 [22:17:18]RAPDU: 5B DB 94 51 2C 03 92 CA 90 00 [22:17:18]wFMCommunicate OK [22:17:18]SAM_PROTO_SignData done [22:17:18]FM_MakeSignedData done [22:17:18]CreateOFDProtocolMessage [22:17:18]wFMCommunicate request_size=4 [22:17:18]MH_SAM_APDU [22:17:18]CAPDU: 80 11 00 00 [22:17:18]Write to MH i2c: E2 08 00 83 0E 80 11 00 00 00 00 00 00 0B [22:17:18]Write i2c OK [22:17:18]MH_I2C_Read... [22:17:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:17:18]Read from MH i2c: E2 [22:17:18]MH_I2C_Read... [22:17:18]Read from MH i2c: E2 17 00 [22:17:18]MH_I2C_Read... [22:17:18]Read from MH i2c: E2 17 00 83 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 5A [22:17:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:17:18]wFMCommunicate OK [22:17:18]CreateOFDProtocolMessage done [22:17:18]OFDSenderStorePacket 29380 [22:17:18]StoreOFDPacket docnum=29380 [22:17:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 28 4C 08 01 00 FF 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 22 01 00 00 F4 03 04 00 EE 55 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C4 72 00 00 35 04 06 00 EB 73 CC E8 4A F7 5B DB 94 51 2C 03 92 CA [22:17:18]CheckFolder [22:17:18]dirname=/storage/ofd_packets [22:17:18]CheckFolder done [22:17:18]ProducePacketName [22:17:18]name=ofd_packets/00029380 [22:17:18]NVStorageSaveData ofd_packets/00029380 [22:17:18]File name is /storage/ofd_packets/00029380 [22:17:18]Write 302 bytes [22:17:18]NVStorageSaveData done [22:17:18]OFDSenderStorePacket done [22:17:18]KKMCreateOFDPacket done [22:17:18]NVStorageSaveData kkm_last_timestamp [22:17:18]File name is /storage/kkm_last_timestamp [22:17:18]Write 4 bytes [22:17:18]NVStorageSaveData done [22:17:18]ExternCall_PrintAddStr [22:17:18]wPrintStart [22:17:18]Write to MH i2c: 01 00 00 84 0E 92 [22:17:18]Write i2c OK [22:17:18]MH_I2C_Read... [22:17:18]Read from MH i2c: 01 [22:17:18]MH_I2C_Read... [22:17:18]Read from MH i2c: 01 07 00 [22:17:18]MH_I2C_Read... [22:17:18]Read from MH i2c: 01 07 00 84 0E 00 00 00 00 00 FF 0F A7 [22:17:18]RasterBufferAndPrint [22:17:18]line Счет N : (1)347776 [22:17:18]line ИНН: 02508201610067 [22:17:18]line Контрольно-Кассовый Чек [22:17:18]line ПРОДАЖА [22:17:18]line ТРК (МРК, ГНК) : 22 [22:17:18]line Товар: 2710124130 [22:17:18]line SUPER-92-К-5 [22:17:18]line 6.130 * 65.30 [22:17:18]line = 400.29 [22:17:18]line НДС 12% НСП 1% [22:17:18]line > о реализуемом товаре [22:17:18]line ОКРУГЛЕНИЕ: -0.29 [22:17:18]line ИТОГО: 400.00 [22:17:18]line Внесено: 400.00 [22:17:18]line СДАЧА: 0.00 [22:17:18]line НСП 1% : 3.54 [22:17:18]line НДС 12% : 42.51 [22:17:18]line Наличными: 400.00 [22:17:18]line Безнал.: 0.00 [22:17:18]line Место: АЗС № 108 "Партнер Нефть" [22:17:18]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [22:17:18]line СНО: Общий режим [22:17:18]line Чек 290 14.04.2024 22:17 [22:17:18]line Смена: 116 ФФД: 1.0 [22:17:18]line ЗНМ: 0300000027 [22:17:18]line РНМ: 0000138879044617 [22:17:18]line Версия ККМ: 001 [22:17:18]line ФМ: 0000000000963154 [22:17:18]line ФД: 29380 [22:17:18]line ФПД: 258882591542007 [22:17:18]line 1/tax-web-control/client/api/v1/ticket?date=20240414T221718&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29380&fm=258882591542007&tin=02508201610067®Number=0000138879044617&sum=40000 [22:17:19]OFD Sender: Processing packet 29380 [packets to send 8, broken 7] [22:17:19]ProducePacketName [22:17:19]name=ofd_packets/00029380 [22:17:19]OFD Sender: To server: pG, [22:17:19]CommunicateWithHost lk.salyk.kg:30040 [22:17:19]ConnectInit lk.salyk.kg [22:17:19]written 0, free lines is 4095 [22:17:19]Connected sock=10 [22:17:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 28 4C 08 01 00 FF 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 22 01 00 00 F4 03 04 00 EE 55 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C4 72 00 00 35 04 06 00 EB 73 CC E8 4A F7 5B DB 94 51 2C 03 92 CA [22:17:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 DF E5 47 00 24 2C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C4 72 00 00 F4 03 04 00 91 00 1C 66 B6 04 01 00 00 8E 6D 2B 99 0F C0 9B 2D [22:17:19]CommunicateWithHost err = 0 [22:17:19]CheckOFDResponse [22:17:19]1017 (14) - 77093643461234 [22:17:19]1041 (16) - 0000000000963154 [22:17:19]1040 (4) - 29380 [22:17:19]1012 (4) - 14.04.2024 16:13 [22:17:19]1206 (1) - 0 [22:17:19]OFD Sender: Remove packet 29380 [22:17:19]ProducePacketName [22:17:19]name=ofd_packets/00029380 [22:17:19]NVStorageDeleteData [22:17:19]Write to MH i2c: 01 00 00 AE 0E BC [22:17:19]Write i2c OK [22:17:19]MH_I2C_Read... [22:17:19]Read from MH i2c: 01 [22:17:19]MH_I2C_Read... [22:17:19]Read from MH i2c: 01 07 00 [22:17:19]MH_I2C_Read... [22:17:19]Read from MH i2c: 01 07 00 AE 0E 00 00 00 00 00 C9 0C 98 [22:17:19]RasterBufferAndPrint [22:17:19]line [22:17:19]line [22:17:19]line [22:17:19]line [22:17:19]line [22:17:19]written 0, free lines is 3278 [22:17:19]MH_Cut [22:17:19]Write to MH i2c: D1 01 00 B5 0E 01 95 [22:17:19]Write i2c OK [22:17:19]MH_I2C_Read... [22:17:19]Read from MH i2c: D1 [22:17:19]MH_I2C_Read... [22:17:19]Read from MH i2c: D1 01 00 [22:17:19]MH_I2C_Read... [22:17:19]Read from MH i2c: D1 01 00 B5 0E 00 94 [22:17:19]Write to MH i2c: 01 00 00 B6 0E C4 [22:17:19]Write i2c OK [22:17:19]MH_I2C_Read... [22:17:19]OFD Sender: No OFD packet to send [22:17:20]*** Cut start [22:17:20]*** Partial cut [22:17:20]*** CUTSNS_PIN = 1 [22:17:20]*** CUTSNS_PIN = 0 [22:17:20]*** Brake cut motor [22:17:20]Read from MH i2c: 01 [22:17:20]MH_I2C_Read... [22:17:20]*** Stop cut motor [22:17:20]*** Cut end [22:17:20]Read from MH i2c: 01 07 00 [22:17:20]MH_I2C_Read... [22:17:20]Read from MH i2c: 01 07 00 B6 0E 00 00 00 00 00 FF 0F D9 [22:17:20]process_action close_receipt done [22:17:20]requested_data is exist [22:17:20]produce_requested_data [22:17:20]requested_item fm.sn is exist - process it [22:17:20]wFMCommunicate request_size=4 [22:17:20]MH_SAM_APDU [22:17:20]CAPDU: 80 11 00 00 [22:17:20]Write to MH i2c: E2 08 00 B7 0E 80 11 00 00 00 00 00 00 3F [22:17:20]Write i2c OK [22:17:20]MH_I2C_Read... [22:17:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:17:20]Read from MH i2c: E2 [22:17:20]MH_I2C_Read... [22:17:20]Read from MH i2c: E2 17 00 [22:17:20]MH_I2C_Read... [22:17:20]Read from MH i2c: E2 17 00 B7 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 8E [22:17:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:17:20]wFMCommunicate OK [22:17:20]requested_item fd.num is exist - process it [22:17:20]SAM_PROTO_GetFieldsCounters [22:17:20]wFMCommunicate request_size=4 [22:17:20]MH_SAM_APDU [22:17:20]CAPDU: 80 13 00 00 [22:17:20]Write to MH i2c: E2 08 00 B8 0E 80 13 00 00 00 00 00 00 42 [22:17:20]Write i2c OK [22:17:20]MH_I2C_Read... [22:17:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:17:21]Read from MH i2c: E2 [22:17:21]MH_I2C_Read... [22:17:21]Read from MH i2c: E2 62 00 [22:17:21]MH_I2C_Read... [22:17:21]Read from MH i2c: E2 62 00 B8 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C4 72 00 00 0E 04 04 00 74 00 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 93 [22:17:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C4 72 00 00 0E 04 04 00 74 00 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 [22:17:21]wFMCommunicate OK [22:17:21]SAM_PROTO_GetFieldsCounters done [22:17:21]requested_item shift.num is exist - process it [22:17:21]requested_item shift.opened is exist - process it [22:17:21]req_shift_opened [22:17:21]FM_GetShiftState [22:17:21]SAM_PROTO_GetShiftState [22:17:21]wFMCommunicate request_size=4 [22:17:21]MH_SAM_APDU [22:17:21]CAPDU: 80 13 01 00 [22:17:21]Write to MH i2c: E2 08 00 B9 0E 80 13 01 00 00 00 00 00 44 [22:17:21]Write i2c OK [22:17:21]MH_I2C_Read... [22:17:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:17:21]Read from MH i2c: E2 [22:17:21]MH_I2C_Read... [22:17:21]Read from MH i2c: E2 0E 00 [22:17:21]MH_I2C_Read... [22:17:21]Read from MH i2c: E2 0E 00 B9 0E 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 F0 [22:17:21]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [22:17:21]wFMCommunicate OK [22:17:21]SAM_PROTO_GetShiftState done [22:17:21]FM_GetShiftState done [22:17:21]req_shift_opened done [22:17:21]requested_item shift.open_date is exist - process it [22:17:21]req_shift_open_date [22:17:21]req_shift_open_date done [22:17:21]produce_requested_data done [22:17:21]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29380,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [22:17:21]process_action_free close_receipt [22:17:21]json_value_free [22:17:21]json_value_free done [22:17:21]process_json_proto returns [22:17:21]Send response to host [22:17:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29380,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [22:17:21]free response buf [22:17:21]execute_script done [22:17:21]execute_script returns [22:17:21]free content buf [22:17:21]Sock 8.Close socket [22:17:21]Sock 8.Thread stoped [22:17:24]OFD Sender: No OFD packet to send [22:17:29]OFD Sender: No OFD packet to send [22:17:34]OFD Sender: No OFD packet to send [22:17:39]OFD Sender: No OFD packet to send [22:17:44]OFD Sender: No OFD packet to send [22:17:49]OFD Sender: No OFD packet to send [22:17:54]OFD Sender: No OFD packet to send [22:17:59]OFD Sender: No OFD packet to send [22:18:04]OFD Sender: No OFD packet to send [22:18:09]OFD Sender: No OFD packet to send [22:18:14]OFD Sender: No OFD packet to send [22:18:19]OFD Sender: No OFD packet to send [22:18:24]OFD Sender: No OFD packet to send [22:18:29]OFD Sender: No OFD packet to send [22:18:34]OFD Sender: No OFD packet to send [22:18:39]OFD Sender: No OFD packet to send [22:18:44]OFD Sender: No OFD packet to send [22:18:49]OFD Sender: No OFD packet to send [22:18:54]OFD Sender: No OFD packet to send [22:18:59]OFD Sender: No OFD packet to send [22:19:04]OFD Sender: No OFD packet to send [22:19:09]OFD Sender: No OFD packet to send [22:19:14]OFD Sender: No OFD packet to send [22:19:19]OFD Sender: No OFD packet to send [22:19:24]OFD Sender: No OFD packet to send [22:19:29]OFD Sender: No OFD packet to send [22:19:34]OFD Sender: No OFD packet to send [22:19:39]OFD Sender: No OFD packet to send [22:19:44]OFD Sender: No OFD packet to send [22:19:49]OFD Sender: No OFD packet to send [22:19:54]OFD Sender: No OFD packet to send [22:19:59]OFD Sender: No OFD packet to send [22:20:04]OFD Sender: No OFD packet to send [22:20:09]OFD Sender: No OFD packet to send [22:20:14]OFD Sender: No OFD packet to send [22:20:19]OFD Sender: No OFD packet to send [22:20:24]OFD Sender: No OFD packet to send [22:20:29]OFD Sender: No OFD packet to send [22:20:34]OFD Sender: No OFD packet to send [22:20:39]OFD Sender: No OFD packet to send [22:20:44]OFD Sender: No OFD packet to send [22:20:49]OFD Sender: No OFD packet to send [22:20:54]OFD Sender: No OFD packet to send [22:20:59]OFD Sender: No OFD packet to send [22:21:04]OFD Sender: No OFD packet to send [22:21:09]OFD Sender: No OFD packet to send [22:21:14]OFD Sender: No OFD packet to send [22:21:19]OFD Sender: No OFD packet to send [22:21:24]OFD Sender: No OFD packet to send [22:21:29]OFD Sender: No OFD packet to send [22:21:34]OFD Sender: No OFD packet to send [22:21:39]OFD Sender: No OFD packet to send [22:21:44]OFD Sender: No OFD packet to send [22:21:50]OFD Sender: No OFD packet to send [22:21:55]OFD Sender: No OFD packet to send [22:22:00]OFD Sender: No OFD packet to send [22:22:05]OFD Sender: No OFD packet to send [22:22:10]OFD Sender: No OFD packet to send [22:22:15]OFD Sender: No OFD packet to send [22:22:20]OFD Sender: No OFD packet to send [22:22:25]OFD Sender: No OFD packet to send [22:22:30]OFD Sender: No OFD packet to send [22:22:35]OFD Sender: No OFD packet to send [22:22:40]OFD Sender: No OFD packet to send [22:22:45]OFD Sender: No OFD packet to send [22:22:50]OFD Sender: No OFD packet to send [22:22:55]OFD Sender: No OFD packet to send [22:23:00]OFD Sender: No OFD packet to send [22:23:05]OFD Sender: No OFD packet to send [22:23:10]OFD Sender: No OFD packet to send [22:23:15]OFD Sender: No OFD packet to send [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:25]OFD Sender: No OFD packet to send [22:24:30]OFD Sender: No OFD packet to send [22:24:35]OFD Sender: No OFD packet to send [22:24:40]OFD Sender: No OFD packet to send [22:24:45]OFD Sender: No OFD packet to send [22:24:50]OFD Sender: No OFD packet to send [22:24:55]OFD Sender: No OFD packet to send [22:25:00]OFD Sender: No OFD packet to send [22:25:05]OFD Sender: No OFD packet to send [22:25:10]OFD Sender: No OFD packet to send [22:25:15]OFD Sender: No OFD packet to send [22:25:20]OFD Sender: No OFD packet to send [22:25:25]OFD Sender: No OFD packet to send [22:25:30]OFD Sender: No OFD packet to send [22:25:35]OFD Sender: No OFD packet to send [22:25:40]OFD Sender: No OFD packet to send [22:25:45]OFD Sender: No OFD packet to send [22:25:50]OFD Sender: No OFD packet to send [22:25:55]OFD Sender: No OFD packet to send [22:26:00]OFD Sender: No OFD packet to send [22:26:05]OFD Sender: No OFD packet to send [22:26:10]OFD Sender: No OFD packet to send [22:26:15]OFD Sender: No OFD packet to send [22:26:20]OFD Sender: No OFD packet to send [22:26:25]OFD Sender: No OFD packet to send [22:26:30]OFD Sender: No OFD packet to send [22:26:35]OFD Sender: No OFD packet to send [22:26:40]OFD Sender: No OFD packet to send [22:26:45]OFD Sender: No OFD packet to send [22:26:50]OFD Sender: No OFD packet to send [22:26:55]OFD Sender: No OFD packet to send [22:27:00]OFD Sender: No OFD packet to send [22:27:05]OFD Sender: No OFD packet to send [22:27:10]OFD Sender: No OFD packet to send [22:27:13]accept exits with 9 [22:27:13]New connection [22:27:13]New thread 3066969444 created [22:27:13]Thread 3067112804 joined [22:27:13]Waiting for new connection... [22:27:13] Sock 9.Parse request [22:27:13]Sock 9.Check first char [22:27:13]Sock 9.First char is OK [22:27:13]request: POST /json_proto HTTP/1.0 [22:27:13]Method: POST [22:27:13]URL: /json_proto [22:27:13]Method is POST - this is cgi request [22:27:13]url: /json_proto [22:27:13]query_string will be loaded in cgi processing [22:27:13]execute_cgi json_proto POST (null) [22:27:13]execute_cgi path=json_proto method=POST [22:27:13]POST find Content-Length [22:27:13]Host: 172.17.33.3:8080 [22:27:13]Content-Length: 677 [22:27:13]Content-Type: application/json [22:27:13] [22:27:13]POST finish read [22:27:13]Found Content-Length = 677 [22:27:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347777", "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" ] } } [22:27:13]execute_script... [22:27: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)347777", "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" ] } } [22:27:13]POST & json_proto [22:27:13]process_json_proto [22:27:13]json parsed OK: [22:27:13]protocol is kg_v1.0 [22:27:13]action value=close_receipt [22:27:13]process_action close_receipt [22:27:13]cmd_close_receipt [22:27:13]MH_GetDate [22:27:13]Write to MH i2c: F0 00 00 BA 0E B7 [22:27:13]Write i2c OK [22:27:13]MH_I2C_Read... [22:27:13]Read from MH i2c: F0 [22:27:13]MH_I2C_Read... [22:27:13]Read from MH i2c: F0 09 00 [22:27:13]MH_I2C_Read... [22:27:13]Read from MH i2c: F0 09 00 BA 0E 00 43 58 1C 66 23 5B 8F 65 4F [22:27:13]GetLastDocTimeStamp 1713133038 [22:27:13]current date 1713133635 [22:27:13]FM_GetShiftState [22:27:13]SAM_PROTO_GetShiftState [22:27:13]wFMCommunicate request_size=4 [22:27:13]MH_SAM_APDU [22:27:13]CAPDU: 80 13 01 00 [22:27:13]Write to MH i2c: E2 08 00 BB 0E 80 13 01 00 00 00 00 00 46 [22:27:13]Write i2c OK [22:27:13]MH_I2C_Read... [22:27:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:27:14]Read from MH i2c: E2 [22:27:14]MH_I2C_Read... [22:27:14]Read from MH i2c: E2 0E 00 [22:27:14]MH_I2C_Read... [22:27:14]Read from MH i2c: E2 0E 00 BB 0E 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 F2 [22:27:14]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [22:27:14]wFMCommunicate OK [22:27:14]SAM_PROTO_GetShiftState done [22:27:14]FM_GetShiftState done [22:27:14]opened in 1713053951 [22:27:14]opened+sec_in_day 1713140351 [22:27:14]quantity*price = 50025 [22:27:14]sum+1 = 50026 [22:27: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 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 291 14.04.2024 22:27 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29381 ФПД: 26145558702509 1/tax-web-control/client/api/v1/ticket?date=20240414T222715&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29381&fm=26145558702509&tin=02508201610067®Number=0000138879044617&sum=50000 [22:27:15]StoreToDocumentArchive [22:27:15]shift 116 fd 29381 [22:27:15]save to /storage/0116/doc_00029381 [22:27:15]save last doc name /storage/0116/doc_00029381 to /storage/kkm_last_doc_name [22:27:15]save OK [22:27:15]Clear old archive folders... [22:27:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:27:15]tlvbuf is 002642B0 [22:27:15]SAM_PROTO_ClearQueue [22:27:15]wFMCommunicate request_size=4 [22:27:15]MH_SAM_APDU [22:27:15]CAPDU: 80 09 00 00 [22:27:15]Write to MH i2c: E2 08 00 C8 0E 80 09 00 00 00 00 00 00 48 [22:27:15]Write i2c OK [22:27:15]MH_I2C_Read... [22:27:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:27:15]Read from MH i2c: E2 [22:27:15]MH_I2C_Read... [22:27:15]Read from MH i2c: E2 03 00 [22:27:15]MH_I2C_Read... [22:27:15]Read from MH i2c: E2 03 00 C8 0E 00 90 00 4A [22:27:15]RAPDU: 90 00 [22:27:15]wFMCommunicate OK [22:27:15]SAM_PROTO_ClearQueue done [22:27:15]KKMCreateOFDPacket [22:27:15]OFDProtocolAddRootSTLVToBuf [22:27:15]FM_MakeSignedData [22:27:15]FM_MakeSignedData [22:27:15]SAM_PROTO_SignData [22:27:15]wFMCommunicate request_size=4 [22:27:15]MH_SAM_APDU [22:27:15]CAPDU: 80 0D 01 02 [22:27:15]Write to MH i2c: E2 08 00 C9 0E 80 0D 01 02 00 00 00 00 50 [22:27:15]Write i2c OK [22:27:15]MH_I2C_Read... [22:27:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:27:15]Read from MH i2c: E2 [22:27:15]MH_I2C_Read... [22:27:15]Read from MH i2c: E2 03 00 [22:27:15]MH_I2C_Read... [22:27:15]Read from MH i2c: E2 03 00 C9 0E 00 90 00 4B [22:27:15]RAPDU: 90 00 [22:27:15]wFMCommunicate OK [22:27:15]wFMCommunicate request_size=255 [22:27:15]MH_SAM_APDU [22:27:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 23 01 00 00 F4 03 04 00 43 58 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C5 72 00 00 35 04 06 00 17 [22:27:15]Write to MH i2c: E2 02 01 CA 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 23 01 00 00 F4 03 04 00 43 58 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C5 72 00 00 35 04 06 00 17 00 00 15 [22:27:15]OFD Sender: No OFD packet to send [22:27:15]Write i2c OK [22:27:15]MH_I2C_Read... [22:27:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:27:15]Read from MH i2c: E2 [22:27:15]MH_I2C_Read... [22:27:15]Read from MH i2c: E2 03 00 [22:27:15]MH_I2C_Read... [22:27:15]Read from MH i2c: E2 03 00 CA 0E 00 90 00 4C [22:27:15]RAPDU: 90 00 [22:27:15]wFMCommunicate OK [22:27:15]wFMCommunicate request_size=10 [22:27:15]MH_SAM_APDU [22:27:15]CAPDU: 80 0D 02 02 05 C7 7C BD 29 AD [22:27:15]Write to MH i2c: E2 0D 00 CB 0E 80 0D 02 02 05 00 C7 7C BD 29 AD 00 00 33 [22:27:15]Write i2c OK [22:27:15]MH_I2C_Read... [22:27:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:27:15]Read from MH i2c: E2 [22:27:15]MH_I2C_Read... [22:27:15]Read from MH i2c: E2 03 00 [22:27:15]MH_I2C_Read... [22:27:15]Read from MH i2c: E2 03 00 CB 0E 00 90 00 4D [22:27:15]RAPDU: 90 00 [22:27:15]wFMCommunicate OK [22:27:15]wFMCommunicate request_size=4 [22:27:15]MH_SAM_APDU [22:27:15]CAPDU: 80 0D 03 02 [22:27:15]Write to MH i2c: E2 08 00 CC 0E 80 0D 03 02 00 00 00 00 55 [22:27:15]Write i2c OK [22:27:15]MH_I2C_Read... [22:27:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:27:15]Read from MH i2c: E2 [22:27:15]MH_I2C_Read... [22:27:15]Read from MH i2c: E2 0B 00 [22:27:15]MH_I2C_Read... [22:27:15]Read from MH i2c: E2 0B 00 CC 0E 00 8C A5 C0 E5 BE C6 6D AD 90 00 CA [22:27:15]RAPDU: 8C A5 C0 E5 BE C6 6D AD 90 00 [22:27:15]wFMCommunicate OK [22:27:15]SAM_PROTO_SignData done [22:27:15]FM_MakeSignedData done [22:27:15]CreateOFDProtocolMessage [22:27:15]wFMCommunicate request_size=4 [22:27:15]MH_SAM_APDU [22:27:15]CAPDU: 80 11 00 00 [22:27:15]Write to MH i2c: E2 08 00 CD 0E 80 11 00 00 00 00 00 00 55 [22:27:15]Write i2c OK [22:27:15]MH_I2C_Read... [22:27:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:27:15]Read from MH i2c: E2 [22:27:15]MH_I2C_Read... [22:27:15]Read from MH i2c: E2 17 00 [22:27:15]MH_I2C_Read... [22:27:15]Read from MH i2c: E2 17 00 CD 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A4 [22:27:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:27:15]wFMCommunicate OK [22:27:15]CreateOFDProtocolMessage done [22:27:15]OFDSenderStorePacket 29381 [22:27:15]StoreOFDPacket docnum=29381 [22:27:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 B8 B8 07 01 6B 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 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 23 01 00 00 F4 03 04 00 43 58 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C5 72 00 00 35 04 06 00 17 C7 7C BD 29 AD 8C A5 C0 E5 BE C6 6D AD [22:27:15]CheckFolder [22:27:15]dirname=/storage/ofd_packets [22:27:15]CheckFolder done [22:27:15]ProducePacketName [22:27:15]name=ofd_packets/00029381 [22:27:15]NVStorageSaveData ofd_packets/00029381 [22:27:15]File name is /storage/ofd_packets/00029381 [22:27:15]Write 301 bytes [22:27:15]NVStorageSaveData done [22:27:15]OFDSenderStorePacket done [22:27:15]KKMCreateOFDPacket done [22:27:15]NVStorageSaveData kkm_last_timestamp [22:27:15]File name is /storage/kkm_last_timestamp [22:27:15]Write 4 bytes [22:27:15]NVStorageSaveData done [22:27:15]ExternCall_PrintAddStr [22:27:15]wPrintStart [22:27:15]Write to MH i2c: 01 00 00 CE 0E DC [22:27:15]Write i2c OK [22:27:15]MH_I2C_Read... [22:27:15]Read from MH i2c: 01 [22:27:15]MH_I2C_Read... [22:27:15]Read from MH i2c: 01 07 00 [22:27:15]MH_I2C_Read... [22:27:15]Read from MH i2c: 01 07 00 CE 0E 00 00 00 00 00 FF 0F F1 [22:27:15]RasterBufferAndPrint [22:27:15]line Счет N : (1)347777 [22:27:15]line ИНН: 02508201610067 [22:27:15]line Контрольно-Кассовый Чек [22:27:15]line ПРОДАЖА [22:27:15]line ТРК (МРК, ГНК) : 32 [22:27:15]line Товар: 2710124130 [22:27:15]line Аи-92-К-5 [22:27:15]line 7.780 * 64.30 [22:27:15]line = 500.25 [22:27:15]line НДС 12% НСП 1% [22:27:15]line > о реализуемом товаре [22:27:15]line ОКРУГЛЕНИЕ: -0.25 [22:27:15]line ИТОГО: 500.00 [22:27:15]line Внесено: 500.00 [22:27:15]line СДАЧА: 0.00 [22:27:15]line НСП 1% : 4.43 [22:27:15]line НДС 12% : 53.12 [22:27:15]line Наличными: 500.00 [22:27:15]line Безнал.: 0.00 [22:27:15]line Место: АЗС № 108 "Партнер Нефть" [22:27:15]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [22:27:15]line СНО: Общий режим [22:27:15]line Чек 291 14.04.2024 22:27 [22:27:15]line Смена: 116 ФФД: 1.0 [22:27:15]line ЗНМ: 0300000027 [22:27:15]line РНМ: 0000138879044617 [22:27:15]line Версия ККМ: 001 [22:27:15]line ФМ: 0000000000963154 [22:27:15]line ФД: 29381 [22:27:15]line ФПД: 26145558702509 [22:27:15]line 1/tax-web-control/client/api/v1/ticket?date=20240414T222715&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29381&fm=26145558702509&tin=02508201610067®Number=0000138879044617&sum=50000 [22:27:15]written 0, free lines is 4095 [22:27:15]OFD Sender: Processing packet 29381 [packets to send 8, broken 7] [22:27:15]ProducePacketName [22:27:15]name=ofd_packets/00029381 [22:27:15]OFD Sender: To server: pG, [22:27:15]CommunicateWithHost lk.salyk.kg:30040 [22:27:15]ConnectInit lk.salyk.kg [22:27:15]Connected sock=11 [22:27:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 B8 B8 07 01 6B 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 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 23 01 00 00 F4 03 04 00 43 58 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C5 72 00 00 35 04 06 00 17 C7 7C BD 29 AD 8C A5 C0 E5 BE C6 6D AD [22:27:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 13 61 47 00 A1 86 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C5 72 00 00 F4 03 04 00 E5 02 1C 66 B6 04 01 00 00 BB 12 F1 B5 F6 69 FD 66 [22:27:16]CommunicateWithHost err = 0 [22:27:16]CheckOFDResponse [22:27:16]1017 (14) - 77093643461234 [22:27:16]1041 (16) - 0000000000963154 [22:27:16]1040 (4) - 29381 [22:27:16]1012 (4) - 14.04.2024 16:23 [22:27:16]1206 (1) - 0 [22:27:16]OFD Sender: Remove packet 29381 [22:27:16]ProducePacketName [22:27:16]name=ofd_packets/00029381 [22:27:16]NVStorageDeleteData [22:27:16]Write to MH i2c: 01 00 00 F8 0E 06 [22:27:16]Write i2c OK [22:27:16]MH_I2C_Read... [22:27:16]Read from MH i2c: 01 [22:27:16]MH_I2C_Read... [22:27:16]Read from MH i2c: 01 07 00 [22:27:16]MH_I2C_Read... [22:27:16]Read from MH i2c: 01 07 00 F8 0E 00 00 00 00 00 CE 0C E7 [22:27:16]RasterBufferAndPrint [22:27:16]line [22:27:16]line [22:27:16]line [22:27:16]line [22:27:16]line [22:27:16]written 0, free lines is 3284 [22:27:16]MH_Cut [22:27:16]Write to MH i2c: D1 01 00 FF 0E 01 DF [22:27:16]Write i2c OK [22:27:16]MH_I2C_Read... [22:27:16]Read from MH i2c: D1 [22:27:16]MH_I2C_Read... [22:27:16]Read from MH i2c: D1 01 00 [22:27:16]MH_I2C_Read... [22:27:16]Read from MH i2c: D1 01 00 FF 0E 00 DE [22:27:16]Write to MH i2c: 01 00 00 00 0F 0F [22:27:16]Write i2c OK [22:27:16]MH_I2C_Read... [22:27:16]OFD Sender: No OFD packet to send [22:27:16]*** Cut start [22:27:16]*** Partial cut [22:27:16]*** CUTSNS_PIN = 1 [22:27:17]*** CUTSNS_PIN = 0 [22:27:17]*** Brake cut motor [22:27:17]Read from MH i2c: 01 [22:27:17]MH_I2C_Read... [22:27:17]*** Stop cut motor [22:27:17]*** Cut end [22:27:17]Read from MH i2c: 01 07 00 [22:27:17]MH_I2C_Read... [22:27:17]Read from MH i2c: 01 07 00 00 0F 00 00 00 00 00 FF 0F 24 [22:27:17]process_action close_receipt done [22:27:17]requested_data is exist [22:27:17]produce_requested_data [22:27:17]requested_item fm.sn is exist - process it [22:27:17]wFMCommunicate request_size=4 [22:27:17]MH_SAM_APDU [22:27:17]CAPDU: 80 11 00 00 [22:27:17]Write to MH i2c: E2 08 00 01 0F 80 11 00 00 00 00 00 00 8A [22:27:17]Write i2c OK [22:27:17]MH_I2C_Read... [22:27:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:27:17]Read from MH i2c: E2 [22:27:17]MH_I2C_Read... [22:27:17]Read from MH i2c: E2 17 00 [22:27:17]MH_I2C_Read... [22:27:17]Read from MH i2c: E2 17 00 01 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D9 [22:27:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:27:17]wFMCommunicate OK [22:27:17]requested_item fd.num is exist - process it [22:27:17]SAM_PROTO_GetFieldsCounters [22:27:17]wFMCommunicate request_size=4 [22:27:17]MH_SAM_APDU [22:27:17]CAPDU: 80 13 00 00 [22:27:17]Write to MH i2c: E2 08 00 02 0F 80 13 00 00 00 00 00 00 8D [22:27:17]Write i2c OK [22:27:17]MH_I2C_Read... [22:27:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:27:17]Read from MH i2c: E2 [22:27:17]MH_I2C_Read... [22:27:17]Read from MH i2c: E2 62 00 [22:27:17]MH_I2C_Read... [22:27:17]Read from MH i2c: E2 62 00 02 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C5 72 00 00 0E 04 04 00 74 00 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 E2 [22:27:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C5 72 00 00 0E 04 04 00 74 00 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 [22:27:17]wFMCommunicate OK [22:27:17]SAM_PROTO_GetFieldsCounters done [22:27:17]requested_item shift.num is exist - process it [22:27:17]requested_item shift.opened is exist - process it [22:27:17]req_shift_opened [22:27:17]FM_GetShiftState [22:27:17]SAM_PROTO_GetShiftState [22:27:17]wFMCommunicate request_size=4 [22:27:17]MH_SAM_APDU [22:27:17]CAPDU: 80 13 01 00 [22:27:17]Write to MH i2c: E2 08 00 03 0F 80 13 01 00 00 00 00 00 8F [22:27:17]Write i2c OK [22:27:17]MH_I2C_Read... [22:27:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:27:17]Read from MH i2c: E2 [22:27:17]MH_I2C_Read... [22:27:17]Read from MH i2c: E2 0E 00 [22:27:17]MH_I2C_Read... [22:27:17]Read from MH i2c: E2 0E 00 03 0F 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 3B [22:27:17]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [22:27:17]wFMCommunicate OK [22:27:17]SAM_PROTO_GetShiftState done [22:27:17]FM_GetShiftState done [22:27:17]req_shift_opened done [22:27:17]requested_item shift.open_date is exist - process it [22:27:17]req_shift_open_date [22:27:17]req_shift_open_date done [22:27:17]produce_requested_data done [22:27:17]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29381,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [22:27:17]process_action_free close_receipt [22:27:17]json_value_free [22:27:17]json_value_free done [22:27:17]process_json_proto returns [22:27:17]Send response to host [22:27:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29381,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [22:27:17]free response buf [22:27:17]execute_script done [22:27:17]execute_script returns [22:27:17]free content buf [22:27:17]Sock 9.Close socket [22:27:17]Sock 9.Thread stoped [22:27:21]OFD Sender: No OFD packet to send [22:27:26]OFD Sender: No OFD packet to send [22:27:31]OFD Sender: No OFD packet to send [22:27:36]OFD Sender: No OFD packet to send [22:27:41]OFD Sender: No OFD packet to send [22:27:46]OFD Sender: No OFD packet to send [22:27:51]OFD Sender: No OFD packet to send [22:27:56]OFD Sender: No OFD packet to send [22:28:01]OFD Sender: No OFD packet to send [22:28:06]OFD Sender: No OFD packet to send [22:28:11]OFD Sender: No OFD packet to send [22:28:16]OFD Sender: No OFD packet to send [22:28:21]OFD Sender: No OFD packet to send [22:28:26]OFD Sender: No OFD packet to send [22:28:31]OFD Sender: No OFD packet to send [22:28:36]OFD Sender: No OFD packet to send [22:28:41]OFD Sender: No OFD packet to send [22:28:46]OFD Sender: No OFD packet to send [22:28:51]OFD Sender: No OFD packet to send [22:28:56]OFD Sender: No OFD packet to send [22:29:01]OFD Sender: No OFD packet to send [22:29:06]OFD Sender: No OFD packet to send [22:29:11]OFD Sender: No OFD packet to send [22:29:16]OFD Sender: No OFD packet to send [22:29:21]OFD Sender: No OFD packet to send [22:29:26]OFD Sender: No OFD packet to send [22:29:31]OFD Sender: No OFD packet to send [22:29:36]OFD Sender: No OFD packet to send [22:29:41]OFD Sender: No OFD packet to send [22:29:46]OFD Sender: No OFD packet to send [22:29:51]OFD Sender: No OFD packet to send [22:29:56]OFD Sender: No OFD packet to send [22:30:01]OFD Sender: No OFD packet to send [22:30:06]OFD Sender: No OFD packet to send [22:30:11]OFD Sender: No OFD packet to send [22:30:16]OFD Sender: No OFD packet to send [22:30:21]OFD Sender: No OFD packet to send [22:30:25]accept exits with 8 [22:30:25]New connection [22:30:25]New thread 3067112804 created [22:30:25]Thread 3066969444 joined [22:30:25]Waiting for new connection... [22:30:25] Sock 8.Parse request [22:30:25]Sock 8.Check first char [22:30:25]Sock 8.First char is OK [22:30:25]request: POST /json_proto HTTP/1.0 [22:30:25]Method: POST [22:30:25]URL: /json_proto [22:30:25]Method is POST - this is cgi request [22:30:25]url: /json_proto [22:30:25]query_string will be loaded in cgi processing [22:30:25]execute_cgi json_proto POST (null) [22:30:25]execute_cgi path=json_proto method=POST [22:30:25]POST find Content-Length [22:30:25]Host: 172.17.33.3:8080 [22:30:25]Content-Length: 808 [22:30:25]Content-Type: application/json [22:30:25] [22:30:25]POST finish read [22:30:25]Found Content-Length = 808 [22:30:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347778", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.50, "quantity" : 32.420, "sum" : 2350.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 2350.45 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:30:25]execute_script... [22:30: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)347778", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.50, "quantity" : 32.420, "sum" : 2350.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 2350.45 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:30:25]POST & json_proto [22:30:25]process_json_proto [22:30:25]json parsed OK: [22:30:25]protocol is kg_v1.0 [22:30:25]action value=close_receipt [22:30:25]process_action close_receipt [22:30:25]cmd_close_receipt [22:30:25]MH_GetDate [22:30:25]Write to MH i2c: F0 00 00 04 0F 02 [22:30:25]Write i2c OK [22:30:25]MH_I2C_Read... [22:30:25]Read from MH i2c: F0 [22:30:25]MH_I2C_Read... [22:30:25]Read from MH i2c: F0 09 00 [22:30:25]MH_I2C_Read... [22:30:25]Read from MH i2c: F0 09 00 04 0F 00 02 59 1C 66 23 5B 8F 65 5A [22:30:25]GetLastDocTimeStamp 1713133635 [22:30:25]current date 1713133826 [22:30:25]FM_GetShiftState [22:30:25]SAM_PROTO_GetShiftState [22:30:25]wFMCommunicate request_size=4 [22:30:25]MH_SAM_APDU [22:30:25]CAPDU: 80 13 01 00 [22:30:25]Write to MH i2c: E2 08 00 05 0F 80 13 01 00 00 00 00 00 91 [22:30:25]Write i2c OK [22:30:25]MH_I2C_Read... [22:30:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:30:25]Read from MH i2c: E2 [22:30:25]MH_I2C_Read... [22:30:25]Read from MH i2c: E2 0E 00 [22:30:25]MH_I2C_Read... [22:30:25]Read from MH i2c: E2 0E 00 05 0F 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 3D [22:30:25]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [22:30:25]wFMCommunicate OK [22:30:25]SAM_PROTO_GetShiftState done [22:30:25]FM_GetShiftState done [22:30:25]opened in 1713053951 [22:30:25]opened+sec_in_day 1713140351 [22:30:25]quantity*price = 235045 [22:30:25]sum+1 = 235046 [22:30:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2350.45 НСП 1% : 20.80 НДС 12% : 249.60 Наличными: 0.00 Безнал.: 2350.45 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 292 14.04.2024 22:30 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29382 ФПД: 72622673560110 1/tax-web-control/client/api/v1/ticket?date=20240414T223026&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29382&fm=72622673560110&tin=02508201610067®Number=0000138879044617&sum=235045 [22:30:26]StoreToDocumentArchive [22:30:26]shift 116 fd 29382 [22:30:26]save to /storage/0116/doc_00029382 [22:30:26]save last doc name /storage/0116/doc_00029382 to /storage/kkm_last_doc_name [22:30:26]save OK [22:30:26]Clear old archive folders... [22:30:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:30:26]tlvbuf is 00269DA0 [22:30:26]SAM_PROTO_ClearQueue [22:30:26]wFMCommunicate request_size=4 [22:30:26]MH_SAM_APDU [22:30:26]CAPDU: 80 09 00 00 [22:30:26]Write to MH i2c: E2 08 00 12 0F 80 09 00 00 00 00 00 00 93 [22:30:26]Write i2c OK [22:30:26]MH_I2C_Read... [22:30:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:30:26]Read from MH i2c: E2 [22:30:26]MH_I2C_Read... [22:30:26]Read from MH i2c: E2 03 00 [22:30:26]MH_I2C_Read... [22:30:26]Read from MH i2c: E2 03 00 12 0F 00 90 00 95 [22:30:26]RAPDU: 90 00 [22:30:26]wFMCommunicate OK [22:30:26]SAM_PROTO_ClearQueue done [22:30:26]KKMCreateOFDPacket [22:30:26]OFDProtocolAddRootSTLVToBuf [22:30:26]FM_MakeSignedData [22:30:26]FM_MakeSignedData [22:30:26]SAM_PROTO_SignData [22:30:26]wFMCommunicate request_size=4 [22:30:26]MH_SAM_APDU [22:30:26]CAPDU: 80 0D 01 02 [22:30:26]Write to MH i2c: E2 08 00 13 0F 80 0D 01 02 00 00 00 00 9B [22:30:26]Write i2c OK [22:30:26]MH_I2C_Read... [22:30:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:30:26]OFD Sender: No OFD packet to send [22:30:26]Read from MH i2c: E2 [22:30:26]MH_I2C_Read... [22:30:26]Read from MH i2c: E2 03 00 [22:30:26]MH_I2C_Read... [22:30:26]Read from MH i2c: E2 03 00 13 0F 00 90 00 96 [22:30:26]RAPDU: 90 00 [22:30:26]wFMCommunicate OK [22:30:26]wFMCommunicate request_size=255 [22:30:26]MH_SAM_APDU [22:30: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A4 7E 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 25 96 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 25 96 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 20 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 61 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 25 96 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 02 59 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C6 72 00 00 35 04 06 00 42 [22:30:26]Write to MH i2c: E2 02 01 14 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 A4 7E 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 25 96 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 25 96 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 20 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 61 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 25 96 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 02 59 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C6 72 00 00 35 04 06 00 42 00 00 89 [22:30:26]Write i2c OK [22:30:26]MH_I2C_Read... [22:30:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:30:27]Read from MH i2c: E2 [22:30:27]MH_I2C_Read... [22:30:27]Read from MH i2c: E2 03 00 [22:30:27]MH_I2C_Read... [22:30:27]Read from MH i2c: E2 03 00 14 0F 00 90 00 97 [22:30:27]RAPDU: 90 00 [22:30:27]wFMCommunicate OK [22:30:27]wFMCommunicate request_size=10 [22:30:27]MH_SAM_APDU [22:30:27]CAPDU: 80 0D 02 02 05 0C C8 A9 02 2E [22:30:27]Write to MH i2c: E2 0D 00 15 0F 80 0D 02 02 05 00 0C C8 A9 02 2E 00 00 55 [22:30:27]Write i2c OK [22:30:27]MH_I2C_Read... [22:30:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:30:27]Read from MH i2c: E2 [22:30:27]MH_I2C_Read... [22:30:27]Read from MH i2c: E2 03 00 [22:30:27]MH_I2C_Read... [22:30:27]Read from MH i2c: E2 03 00 15 0F 00 90 00 98 [22:30:27]RAPDU: 90 00 [22:30:27]wFMCommunicate OK [22:30:27]wFMCommunicate request_size=4 [22:30:27]MH_SAM_APDU [22:30:27]CAPDU: 80 0D 03 02 [22:30:27]Write to MH i2c: E2 08 00 16 0F 80 0D 03 02 00 00 00 00 A0 [22:30:27]Write i2c OK [22:30:27]MH_I2C_Read... [22:30:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:30:27]Read from MH i2c: E2 [22:30:27]MH_I2C_Read... [22:30:27]Read from MH i2c: E2 0B 00 [22:30:27]MH_I2C_Read... [22:30:27]Read from MH i2c: E2 0B 00 16 0F 00 41 F6 79 6F DE EA 1A 06 90 00 A8 [22:30:27]RAPDU: 41 F6 79 6F DE EA 1A 06 90 00 [22:30:27]wFMCommunicate OK [22:30:27]SAM_PROTO_SignData done [22:30:27]FM_MakeSignedData done [22:30:27]CreateOFDProtocolMessage [22:30:27]wFMCommunicate request_size=4 [22:30:27]MH_SAM_APDU [22:30:27]CAPDU: 80 11 00 00 [22:30:27]Write to MH i2c: E2 08 00 17 0F 80 11 00 00 00 00 00 00 A0 [22:30:27]Write i2c OK [22:30:27]MH_I2C_Read... [22:30:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:30:27]Read from MH i2c: E2 [22:30:27]MH_I2C_Read... [22:30:27]Read from MH i2c: E2 17 00 [22:30:27]MH_I2C_Read... [22:30:27]Read from MH i2c: E2 17 00 17 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 EF [22:30:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:30:27]wFMCommunicate OK [22:30:27]CreateOFDProtocolMessage done [22:30:27]OFDSenderStorePacket 29382 [22:30:27]StoreOFDPacket docnum=29382 [22:30:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 F3 F0 07 01 9F B1 5A 03 01 00 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 A4 7E 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 25 96 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 25 96 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 20 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 61 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 25 96 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 02 59 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C6 72 00 00 35 04 06 00 42 0C C8 A9 02 2E 41 F6 79 6F DE EA 1A 06 [22:30:27]CheckFolder [22:30:27]dirname=/storage/ofd_packets [22:30:27]CheckFolder done [22:30:27]ProducePacketName [22:30:27]name=ofd_packets/00029382 [22:30:27]NVStorageSaveData ofd_packets/00029382 [22:30:27]File name is /storage/ofd_packets/00029382 [22:30:27]Write 301 bytes [22:30:27]NVStorageSaveData done [22:30:27]OFDSenderStorePacket done [22:30:27]KKMCreateOFDPacket done [22:30:27]NVStorageSaveData kkm_last_timestamp [22:30:27]File name is /storage/kkm_last_timestamp [22:30:27]Write 4 bytes [22:30:27]NVStorageSaveData done [22:30:27]ExternCall_PrintAddStr [22:30:27]wPrintStart [22:30:27]Write to MH i2c: 01 00 00 18 0F 27 [22:30:27]Write i2c OK [22:30:27]MH_I2C_Read... [22:30:27]Read from MH i2c: 01 [22:30:27]MH_I2C_Read... [22:30:27]Read from MH i2c: 01 07 00 [22:30:27]MH_I2C_Read... [22:30:27]Read from MH i2c: 01 07 00 18 0F 00 00 00 00 00 FF 0F 3C [22:30:27]RasterBufferAndPrint [22:30:27]line Счет N : (1)347778 [22:30:27]line ИНН: 02508201610067 [22:30:27]line Контрольно-Кассовый Чек [22:30:27]line ПРОДАЖА [22:30:27]line ТРК (МРК, ГНК) : 33 [22:30:27]line Товар: 2710124500 [22:30:27]line Аи-95-К-5 [22:30:27]line 32.420 * 72.50 [22:30:27]line = 2350.45 [22:30:27]line НДС 12% НСП 1% [22:30:27]line > о реализуемом товаре [22:30:27]line ИТОГО: 2350.45 [22:30:27]line НСП 1% : 20.80 [22:30:27]line НДС 12% : 249.60 [22:30:27]line Наличными: 0.00 [22:30:27]line Безнал.: 2350.45 [22:30:27]line Место: АЗС № 108 "Партнер Нефть" [22:30:27]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [22:30:27]line СНО: Общий режим [22:30:27]line Чек 292 14.04.2024 22:30 [22:30:27]line Смена: 116 ФФД: 1.0 [22:30:27]line ЗНМ: 0300000027 [22:30:27]line РНМ: 0000138879044617 [22:30:27]line Версия ККМ: 001 [22:30:27]line Платежная система: О! деньги [22:30:27]line ФМ: 0000000000963154 [22:30:27]line ФД: 29382 [22:30:27]line ФПД: 72622673560110 [22:30:27]line 1/tax-web-control/client/api/v1/ticket?date=20240414T223026&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29382&fm=72622673560110&tin=02508201610067®Number=0000138879044617&sum=235045 [22:30:27]OFD Sender: Processing packet 29382 [packets to send 8, broken 7] [22:30:27]ProducePacketName [22:30:27]name=ofd_packets/00029382 [22:30:27]OFD Sender: To server: pG, [22:30:27]CommunicateWithHost lk.salyk.kg:30040 [22:30:27]ConnectInit lk.salyk.kg [22:30:27]written 0, free lines is 4095 [22:30:27]Connected sock=10 [22:30:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 F3 F0 07 01 9F B1 5A 03 01 00 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 A4 7E 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 25 96 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 25 96 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 20 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 61 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 25 96 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 02 59 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C6 72 00 00 35 04 06 00 42 0C C8 A9 02 2E 41 F6 79 6F DE EA 1A 06 [22:30:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 E6 76 47 00 B1 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 39 36 33 31 35 34 10 04 04 00 C6 72 00 00 F4 03 04 00 A5 03 1C 66 B6 04 01 00 00 53 B6 5D 7C 44 A0 B1 34 [22:30:27]CommunicateWithHost err = 0 [22:30:27]CheckOFDResponse [22:30:27]1017 (14) - 77093643461234 [22:30:27]1041 (16) - 0000000000963154 [22:30:27]1040 (4) - 29382 [22:30:27]1012 (4) - 14.04.2024 16:26 [22:30:27]1206 (1) - 0 [22:30:27]OFD Sender: Remove packet 29382 [22:30:27]ProducePacketName [22:30:27]name=ofd_packets/00029382 [22:30:27]NVStorageDeleteData [22:30:27]Write to MH i2c: 01 00 00 41 0F 50 [22:30:27]Write i2c OK [22:30:27]MH_I2C_Read... [22:30:27]Read from MH i2c: 01 [22:30:27]MH_I2C_Read... [22:30:27]Read from MH i2c: 01 07 00 [22:30:27]MH_I2C_Read... [22:30:27]Read from MH i2c: 01 07 00 41 0F 00 00 00 00 00 E9 0C 4C [22:30:27]RasterBufferAndPrint [22:30:27]line [22:30:27]line [22:30:27]line [22:30:27]line [22:30:27]line [22:30:27]written 0, free lines is 3312 [22:30:27]MH_Cut [22:30:27]Write to MH i2c: D1 01 00 48 0F 01 29 [22:30:27]Write i2c OK [22:30:27]MH_I2C_Read... [22:30:27]Read from MH i2c: D1 [22:30:27]MH_I2C_Read... [22:30:27]Read from MH i2c: D1 01 00 [22:30:27]MH_I2C_Read... [22:30:27]Read from MH i2c: D1 01 00 48 0F 00 28 [22:30:27]Write to MH i2c: 01 00 00 49 0F 58 [22:30:27]Write i2c OK [22:30:27]MH_I2C_Read... [22:30:28]OFD Sender: No OFD packet to send [22:30:28]*** Cut start [22:30:28]*** Partial cut [22:30:28]*** CUTSNS_PIN = 1 [22:30:28]*** CUTSNS_PIN = 0 [22:30:29]*** Brake cut motor [22:30:29]Read from MH i2c: 01 [22:30:29]MH_I2C_Read... [22:30:29]*** Stop cut motor [22:30:29]*** Cut end [22:30:29]Read from MH i2c: 01 07 00 [22:30:29]MH_I2C_Read... [22:30:29]Read from MH i2c: 01 07 00 49 0F 00 00 00 00 00 FF 0F 6D [22:30:29]process_action close_receipt done [22:30:29]requested_data is exist [22:30:29]produce_requested_data [22:30:29]requested_item fm.sn is exist - process it [22:30:29]wFMCommunicate request_size=4 [22:30:29]MH_SAM_APDU [22:30:29]CAPDU: 80 11 00 00 [22:30:29]Write to MH i2c: E2 08 00 4A 0F 80 11 00 00 00 00 00 00 D3 [22:30:29]Write i2c OK [22:30:29]MH_I2C_Read... [22:30:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:30:29]Read from MH i2c: E2 [22:30:29]MH_I2C_Read... [22:30:29]Read from MH i2c: E2 17 00 [22:30:29]MH_I2C_Read... [22:30:29]Read from MH i2c: E2 17 00 4A 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 22 [22:30:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:30:29]wFMCommunicate OK [22:30:29]requested_item fd.num is exist - process it [22:30:29]SAM_PROTO_GetFieldsCounters [22:30:29]wFMCommunicate request_size=4 [22:30:29]MH_SAM_APDU [22:30:29]CAPDU: 80 13 00 00 [22:30:29]Write to MH i2c: E2 08 00 4B 0F 80 13 00 00 00 00 00 00 D6 [22:30:29]Write i2c OK [22:30:29]MH_I2C_Read... [22:30:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:30:29]Read from MH i2c: E2 [22:30:29]MH_I2C_Read... [22:30:29]Read from MH i2c: E2 62 00 [22:30:29]MH_I2C_Read... [22:30:29]Read from MH i2c: E2 62 00 4B 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C6 72 00 00 0E 04 04 00 74 00 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 2F [22:30:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C6 72 00 00 0E 04 04 00 74 00 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 [22:30:29]wFMCommunicate OK [22:30:29]SAM_PROTO_GetFieldsCounters done [22:30:29]requested_item shift.num is exist - process it [22:30:29]requested_item shift.opened is exist - process it [22:30:29]req_shift_opened [22:30:29]FM_GetShiftState [22:30:29]SAM_PROTO_GetShiftState [22:30:29]wFMCommunicate request_size=4 [22:30:29]MH_SAM_APDU [22:30:29]CAPDU: 80 13 01 00 [22:30:29]Write to MH i2c: E2 08 00 4C 0F 80 13 01 00 00 00 00 00 D8 [22:30:29]Write i2c OK [22:30:29]MH_I2C_Read... [22:30:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:30:29]Read from MH i2c: E2 [22:30:29]MH_I2C_Read... [22:30:29]Read from MH i2c: E2 0E 00 [22:30:29]MH_I2C_Read... [22:30:29]Read from MH i2c: E2 0E 00 4C 0F 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 84 [22:30:29]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [22:30:29]wFMCommunicate OK [22:30:29]SAM_PROTO_GetShiftState done [22:30:29]FM_GetShiftState done [22:30:29]req_shift_opened done [22:30:29]requested_item shift.open_date is exist - process it [22:30:29]req_shift_open_date [22:30:29]req_shift_open_date done [22:30:29]produce_requested_data done [22:30:29]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29382,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [22:30:29]process_action_free close_receipt [22:30:29]json_value_free [22:30:29]json_value_free done [22:30:29]process_json_proto returns [22:30:29]Send response to host [22:30:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29382,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [22:30:29]free response buf [22:30:29]execute_script done [22:30:29]execute_script returns [22:30:29]free content buf [22:30:29]Sock 8.Close socket [22:30:29]Sock 8.Thread stoped [22:30:33]OFD Sender: No OFD packet to send [22:30:38]OFD Sender: No OFD packet to send [22:30:43]OFD Sender: No OFD packet to send [22:30:48]OFD Sender: No OFD packet to send [22:30:53]OFD Sender: No OFD packet to send [22:30:58]OFD Sender: No OFD packet to send [22:31:03]OFD Sender: No OFD packet to send [22:31:08]OFD Sender: No OFD packet to send [22:31:13]int [22:31:13]Write to MH i2c: 01 00 00 4D 0F 5C [22:31:13]*** FLAG_PRN_KEY set [22:31:13]Write i2c OK [22:31:13]MH_I2C_Read... [22:31:13]Read from MH i2c: 01 [22:31:13]MH_I2C_Read... [22:31:13]Read from MH i2c: 01 07 00 [22:31:13]MH_I2C_Read... [22:31:13]Read from MH i2c: 01 07 00 4D 0F 00 08 00 00 00 FF 0F 79 [22:31:13]state=0 [22:31:13]Key pressed [22:31:13]Feed [22:31:13]Write to MH i2c: D8 00 00 4E 0F 34 [22:31:13]Write i2c OK [22:31:13]MH_I2C_Read... [22:31:13]Read from MH i2c: D8 [22:31:13]MH_I2C_Read... [22:31:13]Read from MH i2c: D8 01 00 [22:31:13]MH_I2C_Read... [22:31:13]Read from MH i2c: D8 01 00 4E 0F 00 35 [22:31:13]int [22:31:13]Write to MH i2c: 01 00 00 4F 0F 5E [22:31:13]Write i2c OK [22:31:13]MH_I2C_Read... [22:31:13]OFD Sender: No OFD packet to send [22:31:13]Read from MH i2c: 01 [22:31:13]MH_I2C_Read... [22:31:13]Read from MH i2c: 01 07 00 [22:31:13]MH_I2C_Read... [22:31:13]Read from MH i2c: 01 07 00 4F 0F 00 48 00 00 00 3C 00 E9 [22:31:13]state=2 [22:31:13]Key pressed [22:31:14]int [22:31:14]Write to MH i2c: 01 00 00 50 0F *** FLAG_PRN_KEY reset [22:31:14]5F [22:31:14]Write i2c OK [22:31:14]MH_I2C_Read... [22:31:14]Read from MH i2c: 01 [22:31:14]MH_I2C_Read... [22:31:14]Read from MH i2c: 01 07 00 [22:31:14]MH_I2C_Read... [22:31:14]Read from MH i2c: 01 07 00 50 0F 00 00 00 00 00 F7 0F 6C [22:31:14]state=2 [22:31:14]Stop feed [22:31:18]OFD Sender: No OFD packet to send [22:31:23]OFD Sender: No OFD packet to send [22:31:28]OFD Sender: No OFD packet to send [22:31:33]OFD Sender: No OFD packet to send [22:31:38]OFD Sender: No OFD packet to send [22:31:43]OFD Sender: No OFD packet to send [22:31:48]OFD Sender: No OFD packet to send [22:31:53]OFD Sender: No OFD packet to send [22:31:58]OFD Sender: No OFD packet to send [22:32:03]OFD Sender: No OFD packet to send [22:32:08]OFD Sender: No OFD packet to send [22:32:13]OFD Sender: No OFD packet to send [22:32:18]OFD Sender: No OFD packet to send [22:32:22]accept exits with 9 [22:32:22]New connection [22:32:22]New thread 3066969444 created [22:32:22]Thread 3067112804 joined [22:32:22]Waiting for new connection... [22:32:22] Sock 9.Parse request [22:32:22]Sock 9.Check first char [22:32:22]Sock 9.First char is OK [22:32:22]request: POST /json_proto HTTP/1.0 [22:32:22]Method: POST [22:32:22]URL: /json_proto [22:32:22]Method is POST - this is cgi request [22:32:22]url: /json_proto [22:32:22]query_string will be loaded in cgi processing [22:32:22]execute_cgi json_proto POST (null) [22:32:22]execute_cgi path=json_proto method=POST [22:32:22]POST find Content-Length [22:32:22]Host: 172.17.33.3:8080 [22:32:22]Content-Length: 670 [22:32:22]Content-Type: application/json [22:32:22] [22:32:22]POST finish read [22:32:22]Found Content-Length = 670 [22:32:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347779", "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" : 3.830, "sum" : 250.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:32:22]execute_script... [22: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)347779", "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" : 3.830, "sum" : 250.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:32:22]POST & json_proto [22:32:22]process_json_proto [22:32:22]json parsed OK: [22:32:22]protocol is kg_v1.0 [22:32:22]action value=close_receipt [22:32:22]process_action close_receipt [22:32:22]cmd_close_receipt [22:32:22]MH_GetDate [22:32:22]Write to MH i2c: F0 00 00 51 0F 4F [22:32:22]Write i2c OK [22:32:22]MH_I2C_Read... [22:32:22]Read from MH i2c: F0 [22:32:22]MH_I2C_Read... [22:32:22]Read from MH i2c: F0 09 00 [22:32:22]MH_I2C_Read... [22:32:22]Read from MH i2c: F0 09 00 51 0F 00 78 59 1C 66 23 5B 8F 65 1D [22:32:22]GetLastDocTimeStamp 1713133826 [22:32:22]current date 1713133944 [22:32:22]FM_GetShiftState [22:32:22]SAM_PROTO_GetShiftState [22:32:22]wFMCommunicate request_size=4 [22:32:22]MH_SAM_APDU [22:32:22]CAPDU: 80 13 01 00 [22:32:22]Write to MH i2c: E2 08 00 52 0F 80 13 01 00 00 00 00 00 DE [22:32:22]Write i2c OK [22:32:22]MH_I2C_Read... [22:32:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:32:22]Read from MH i2c: E2 [22:32:22]MH_I2C_Read... [22:32:22]Read from MH i2c: E2 0E 00 [22:32:22]MH_I2C_Read... [22:32:22]Read from MH i2c: E2 0E 00 52 0F 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 8A [22:32:22]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [22:32:22]wFMCommunicate OK [22:32:22]SAM_PROTO_GetShiftState done [22:32:22]FM_GetShiftState done [22:32:22]opened in 1713053951 [22:32:22]opened+sec_in_day 1713140351 [22:32:22]quantity*price = 25009 [22:32:22]sum+1 = 25011 [22:32:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.56 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 293 14.04.2024 22:32 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29383 ФПД: 9596369290216 1/tax-web-control/client/api/v1/ticket?date=20240414T223224&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29383&fm=9596369290216&tin=02508201610067®Number=0000138879044617&sum=25000 [22:32:24]StoreToDocumentArchive [22:32:24]shift 116 fd 29383 [22:32:24]save to /storage/0116/doc_00029383 [22:32:24]save last doc name /storage/0116/doc_00029383 to /storage/kkm_last_doc_name [22:32:24]save OK [22:32:24]Clear old archive folders... [22:32:24]ProcessDocumentItem done err = 0, tmpTLVsize=252 [22:32:24]tlvbuf is 00240AD0 [22:32:24]SAM_PROTO_ClearQueue [22:32:24]wFMCommunicate request_size=4 [22:32:24]MH_SAM_APDU [22:32:24]CAPDU: 80 09 00 00 [22:32:24]Write to MH i2c: E2 08 00 5F 0F 80 09 00 00 00 00 00 00 E0 [22:32:24]Write i2c OK [22:32:24]MH_I2C_Read... [22:32:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:32:24]Read from MH i2c: E2 [22:32:24]MH_I2C_Read... [22:32:24]Read from MH i2c: E2 03 00 [22:32:24]MH_I2C_Read... [22:32:24]Read from MH i2c: E2 03 00 5F 0F 00 90 00 E2 [22:32:24]RAPDU: 90 00 [22:32:24]wFMCommunicate OK [22:32:24]SAM_PROTO_ClearQueue done [22:32:24]KKMCreateOFDPacket [22:32:24]OFDProtocolAddRootSTLVToBuf [22:32:24]FM_MakeSignedData [22:32:24]FM_MakeSignedData [22:32:24]SAM_PROTO_SignData [22:32:24]wFMCommunicate request_size=4 [22:32:24]MH_SAM_APDU [22:32:24]CAPDU: 80 0D 01 02 [22:32:24]Write to MH i2c: E2 08 00 60 0F 80 0D 01 02 00 00 00 00 E8 [22:32:24]Write i2c OK [22:32:24]MH_I2C_Read... [22:32:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:32:24]Read from MH i2c: E2 [22:32:24]MH_I2C_Read... [22:32:24]Read from MH i2c: E2 03 00 [22:32:24]MH_I2C_Read... [22:32:24]Read from MH i2c: E2 03 00 60 0F 00 90 00 E3 [22:32:24]RAPDU: 90 00 [22:32:24]wFMCommunicate OK [22:32:24]wFMCommunicate request_size=255 [22:32:24]MH_SAM_APDU [22:32:24]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 0E 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 B2 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 78 59 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C7 72 00 00 35 04 06 00 [22:32:24]Write to MH i2c: E2 02 01 61 0F 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 0E 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 B2 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 78 59 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C7 72 00 00 35 04 06 00 00 00 EA [22:32:24]Write i2c OK [22:32:24]MH_I2C_Read... [22:32:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:32:24]Read from MH i2c: E2 [22:32:24]MH_I2C_Read... [22:32:24]Read from MH i2c: E2 03 00 [22:32:24]MH_I2C_Read... [22:32:24]Read from MH i2c: E2 03 00 61 0F 00 90 00 E4 [22:32:24]RAPDU: 90 00 [22:32:24]wFMCommunicate OK [22:32:24]wFMCommunicate request_size=11 [22:32:24]MH_SAM_APDU [22:32:24]CAPDU: 80 0D 02 02 06 08 BA 54 2E C3 E8 [22:32:24]Write to MH i2c: E2 0E 00 62 0F 80 0D 02 02 06 00 08 BA 54 2E C3 E8 00 00 E6 [22:32:24]Write i2c OK [22:32:24]MH_I2C_Read... [22:32:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:32:24]Read from MH i2c: E2 [22:32:24]MH_I2C_Read... [22:32:24]Read from MH i2c: E2 03 00 [22:32:24]MH_I2C_Read... [22:32:24]Read from MH i2c: E2 03 00 62 0F 00 90 00 E5 [22:32:24]RAPDU: 90 00 [22:32:24]wFMCommunicate OK [22:32:24]wFMCommunicate request_size=4 [22:32:24]MH_SAM_APDU [22:32:24]CAPDU: 80 0D 03 02 [22:32:24]Write to MH i2c: E2 08 00 63 0F 80 0D 03 02 00 00 00 00 ED [22:32:24]Write i2c OK [22:32:24]MH_I2C_Read... [22:32:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:32:24]Read from MH i2c: E2 [22:32:24]MH_I2C_Read... [22:32:24]Read from MH i2c: E2 0B 00 [22:32:24]MH_I2C_Read... [22:32:24]Read from MH i2c: E2 0B 00 63 0F 00 9B 9D AE AB 65 C6 5F E2 90 00 EB [22:32:24]RAPDU: 9B 9D AE AB 65 C6 5F E2 90 00 [22:32:24]wFMCommunicate OK [22:32:24]SAM_PROTO_SignData done [22:32:24]FM_MakeSignedData done [22:32:24]CreateOFDProtocolMessage [22:32:24]wFMCommunicate request_size=4 [22:32:24]MH_SAM_APDU [22:32:24]CAPDU: 80 11 00 00 [22:32:24]Write to MH i2c: E2 08 00 64 0F 80 11 00 00 00 00 00 00 ED [22:32:24]Write i2c OK [22:32:24]MH_I2C_Read... [22:32:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:32:24]Read from MH i2c: E2 [22:32:24]MH_I2C_Read... [22:32:24]Read from MH i2c: E2 17 00 [22:32:24]MH_I2C_Read... [22:32:24]Read from MH i2c: E2 17 00 64 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 3C [22:32:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:32:24]wFMCommunicate OK [22:32:24]CreateOFDProtocolMessage done [22:32:24]OFDSenderStorePacket 29383 [22:32:24]StoreOFDPacket docnum=29383 [22:32:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 BD FD 08 01 F7 16 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 0E 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 B2 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 78 59 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C7 72 00 00 35 04 06 00 08 BA 54 2E C3 E8 9B 9D AE AB 65 C6 5F E2 [22:32:24]CheckFolder [22:32:24]dirname=/storage/ofd_packets [22:32:24]CheckFolder done [22:32:24]ProducePacketName [22:32:24]name=ofd_packets/00029383 [22:32:24]NVStorageSaveData ofd_packets/00029383 [22:32:24]File name is /storage/ofd_packets/00029383 [22:32:24]Write 302 bytes [22:32:24]NVStorageSaveData done [22:32:24]OFDSenderStorePacket done [22:32:24]KKMCreateOFDPacket done [22:32:24]NVStorageSaveData kkm_last_timestamp [22:32:24]File name is /storage/kkm_last_timestamp [22:32:24]Write 4 bytes [22:32:24]NVStorageSaveData done [22:32:24]ExternCall_PrintAddStr [22:32:24]wPrintStart [22:32:24]Write to MH i2c: 01 00 00 65 0F 74 [22:32:24]Write i2c OK [22:32:24]MH_I2C_Read... [22:32:24]Read from MH i2c: 01 [22:32:24]MH_I2C_Read... [22:32:24]Read from MH i2c: 01 07 00 [22:32:24]MH_I2C_Read... [22:32:24]Read from MH i2c: 01 07 00 65 0F 00 00 00 00 00 FF 0F 89 [22:32:24]RasterBufferAndPrint [22:32:24]line Счет N : (1)347779 [22:32:24]line ИНН: 02508201610067 [22:32:24]line Контрольно-Кассовый Чек [22:32:24]line ПРОДАЖА [22:32:24]line ТРК (МРК, ГНК) : 41 [22:32:24]line Товар: 2710124130 [22:32:24]line SUPER-92-К-5 [22:32:24]line 3.830 * 65.30 [22:32:24]line = 250.10 [22:32:24]line НДС 12% НСП 1% [22:32:24]line > о реализуемом товаре [22:32:24]line ОКРУГЛЕНИЕ: -0.10 [22:32:24]line ИТОГО: 250.00 [22:32:24]line Внесено: 250.00 [22:32:24]line СДАЧА: 0.00 [22:32:24]line НСП 1% : 2.21 [22:32:24]line НДС 12% : 26.56 [22:32:24]line Наличными: 250.00 [22:32:24]line Безнал.: 0.00 [22:32:24]line Место: АЗС № 108 "Партнер Нефть" [22:32:24]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [22:32:24]line СНО: Общий режим [22:32:24]line Чек 293 14.04.2024 22:32 [22:32:24]line Смена: 116 ФФД: 1.0 [22:32:24]line ЗНМ: 0300000027 [22:32:24]line РНМ: 0000138879044617 [22:32:24]line Версия ККМ: 001 [22:32:24]line ФМ: 0000000000963154 [22:32:24]line ФД: 29383 [22:32:24]line ФПД: 9596369290216 [22:32:24]line 1/tax-web-control/client/api/v1/ticket?date=20240414T223224&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29383&fm=9596369290216&tin=02508201610067®Number=0000138879044617&sum=25000 [22:32:24]OFD Sender: Processing packet 29383 [packets to send 8, broken 7] [22:32:24]ProducePacketName [22:32:24]name=ofd_packets/00029383 [22:32:24]OFD Sender: To server: pG, [22:32:24]CommunicateWithHost lk.salyk.kg:30040 [22:32:24]ConnectInit lk.salyk.kg [22:32:24]written 0, free lines is 4095 [22:32:24]Connected sock=10 [22:32:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 BD FD 08 01 F7 16 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 0E 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 B2 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 78 59 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C7 72 00 00 35 04 06 00 08 BA 54 2E C3 E8 9B 9D AE AB 65 C6 5F E2 [22:32:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 DD B8 47 00 7A 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 39 36 33 31 35 34 10 04 04 00 C7 72 00 00 F4 03 04 00 1B 04 1C 66 B6 04 01 00 00 F5 7E 29 20 B3 16 3D 9D [22:32:25]CommunicateWithHost err = 0 [22:32:25]CheckOFDResponse [22:32:25]1017 (14) - 77093643461234 [22:32:25]1041 (16) - 0000000000963154 [22:32:25]1040 (4) - 29383 [22:32:25]1012 (4) - 14.04.2024 16:28 [22:32:25]1206 (1) - 0 [22:32:25]OFD Sender: Remove packet 29383 [22:32:25]ProducePacketName [22:32:25]name=ofd_packets/00029383 [22:32:25]NVStorageDeleteData [22:32:25]Write to MH i2c: 01 00 00 8F 0F 9E [22:32:25]Write i2c OK [22:32:25]MH_I2C_Read... [22:32:25]Read from MH i2c: 01 [22:32:25]MH_I2C_Read... [22:32:25]Read from MH i2c: 01 07 00 [22:32:25]MH_I2C_Read... [22:32:25]Read from MH i2c: 01 07 00 8F 0F 00 00 00 00 00 D5 0C 86 [22:32:25]RasterBufferAndPrint [22:32:25]line [22:32:25]line [22:32:25]line [22:32:25]line [22:32:25]line [22:32:25]written 0, free lines is 3291 [22:32:25]MH_Cut [22:32:25]Write to MH i2c: D1 01 00 96 0F 01 77 [22:32:25]Write i2c OK [22:32:25]MH_I2C_Read... [22:32:25]Read from MH i2c: D1 [22:32:25]MH_I2C_Read... [22:32:25]Read from MH i2c: D1 01 00 [22:32:25]MH_I2C_Read... [22:32:25]Read from MH i2c: D1 01 00 96 0F 00 76 [22:32:25]Write to MH i2c: 01 00 00 97 0F A6 [22:32:25]Write i2c OK [22:32:25]MH_I2C_Read... [22:32:25]OFD Sender: No OFD packet to send [22:32:26]*** Cut start [22:32:26]*** Partial cut [22:32:26]*** CUTSNS_PIN = 1 [22:32:26]*** CUTSNS_PIN = 0 [22:32:26]*** Brake cut motor [22:32:26]Read from MH i2c: 01 [22:32:26]MH_I2C_Read... [22:32:26]*** Stop cut motor [22:32:26]*** Cut end [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 97 0F 00 00 00 00 00 FF 0F BB [22:32:26]process_action close_receipt done [22:32:26]requested_data is exist [22:32:26]produce_requested_data [22:32:26]requested_item fm.sn is exist - process it [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 98 0F 80 11 00 00 00 00 00 00 21 [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 98 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 70 [22:32:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:32:26]wFMCommunicate OK [22:32:26]requested_item fd.num is exist - process it [22:32:26]SAM_PROTO_GetFieldsCounters [22:32:26]wFMCommunicate request_size=4 [22:32:26]MH_SAM_APDU [22:32:26]CAPDU: 80 13 00 00 [22:32:26]Write to MH i2c: E2 08 00 99 0F 80 13 00 00 00 00 00 00 24 [22:32:26]Write i2c OK [22:32:26]MH_I2C_Read... [22:32:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:32:26]Read from MH i2c: E2 [22:32:26]MH_I2C_Read... [22:32:26]Read from MH i2c: E2 62 00 [22:32:26]MH_I2C_Read... [22:32:26]Read from MH i2c: E2 62 00 99 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C7 72 00 00 0E 04 04 00 74 00 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 81 [22:32:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C7 72 00 00 0E 04 04 00 74 00 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 [22:32:26]wFMCommunicate OK [22:32:26]SAM_PROTO_GetFieldsCounters done [22:32:26]requested_item shift.num is exist - process it [22:32:26]requested_item shift.opened is exist - process it [22:32:26]req_shift_opened [22:32:26]FM_GetShiftState [22:32:26]SAM_PROTO_GetShiftState [22:32:26]wFMCommunicate request_size=4 [22:32:26]MH_SAM_APDU [22:32:26]CAPDU: 80 13 01 00 [22:32:26]Write to MH i2c: E2 08 00 9A 0F 80 13 01 00 00 00 00 00 26 [22:32:26]Write i2c OK [22:32:26]MH_I2C_Read... [22:32:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:32:27]Read from MH i2c: E2 [22:32:27]MH_I2C_Read... [22:32:27]Read from MH i2c: E2 0E 00 [22:32:27]MH_I2C_Read... [22:32:27]Read from MH i2c: E2 0E 00 9A 0F 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 D2 [22:32:27]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [22:32:27]wFMCommunicate OK [22:32:27]SAM_PROTO_GetShiftState done [22:32:27]FM_GetShiftState done [22:32:27]req_shift_opened done [22:32:27]requested_item shift.open_date is exist - process it [22:32:27]req_shift_open_date [22:32:27]req_shift_open_date done [22:32:27]produce_requested_data done [22:32:27]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29383,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [22:32:27]process_action_free close_receipt [22:32:27]json_value_free [22:32:27]json_value_free done [22:32:27]process_json_proto returns [22:32:27]Send response to host [22:32:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29383,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [22:32:27]free response buf [22:32:27]execute_script done [22:32:27]execute_script returns [22:32:27]free content buf [22:32:27]Sock 9.Close socket [22:32:27]Sock 9.Thread stoped [22:32:30]OFD Sender: No OFD packet to send [22:32:35]OFD Sender: No OFD packet to send [22:32:40]OFD Sender: No OFD packet to send [22:32:45]OFD Sender: No OFD packet to send [22:32:50]OFD Sender: No OFD packet to send [22:32:55]OFD Sender: No OFD packet to send [22:33:00]OFD Sender: No OFD packet to send [22:33:05]OFD Sender: No OFD packet to send [22:33:10]OFD Sender: No OFD packet to send [22:33:15]OFD Sender: No OFD packet to send [22:33:20]OFD Sender: No OFD packet to send [22:33:25]OFD Sender: No OFD packet to send [22:33:30]OFD Sender: No OFD packet to send [22:33:35]OFD Sender: No OFD packet to send [22:33:40]OFD Sender: No OFD packet to send [22:33:45]OFD Sender: No OFD packet to send [22:33:50]OFD Sender: No OFD packet to send [22:33:55]OFD Sender: No OFD packet to send [22:34:00]OFD Sender: No OFD packet to send [22:34:05]OFD Sender: No OFD packet to send [22:34:10]OFD Sender: No OFD packet to send [22:34:14]accept exits with 8 [22:34:14]New connection [22:34:14]New thread 3067112804 created [22:34:14]Thread 3066969444 joined [22:34:14]Waiting for new connection... [22:34:14] Sock 8.Parse request [22:34:14]Sock 8.Check first char [22:34:14]Sock 8.First char is OK [22:34:14]request: POST /json_proto HTTP/1.0 [22:34:14]Method: POST [22:34:14]URL: /json_proto [22:34:14]Method is POST - this is cgi request [22:34:14]url: /json_proto [22:34:14]query_string will be loaded in cgi processing [22:34:14]execute_cgi json_proto POST (null) [22:34:14]execute_cgi path=json_proto method=POST [22:34:14]POST find Content-Length [22:34:14]Host: 172.17.33.3:8080 [22:34:14]Content-Length: 675 [22:34:14]Content-Type: application/json [22:34:14] [22:34:14]POST finish read [22:34:14]Found Content-Length = 675 [22:34:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347780", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 49.570, "sum" : 3236.92, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 3236.00, "payments": [ { "type": 0, "sum" : 3236.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:34:14]execute_script... [22:34: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)347780", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 49.570, "sum" : 3236.92, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 3236.00, "payments": [ { "type": 0, "sum" : 3236.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:34:14]POST & json_proto [22:34:14]process_json_proto [22:34:14]json parsed OK: [22:34:14]protocol is kg_v1.0 [22:34:14]action value=close_receipt [22:34:14]process_action close_receipt [22:34:14]cmd_close_receipt [22:34:14]MH_GetDate [22:34:14]Write to MH i2c: F0 00 00 9B 0F 99 [22:34:14]Write i2c OK [22:34:14]MH_I2C_Read... [22:34:14]Read from MH i2c: F0 [22:34:14]MH_I2C_Read... [22:34:14]Read from MH i2c: F0 09 00 [22:34:14]MH_I2C_Read... [22:34:14]Read from MH i2c: F0 09 00 9B 0F 00 E7 59 1C 66 23 5B 8F 65 D6 [22:34:14]GetLastDocTimeStamp 1713133944 [22:34:14]current date 1713134055 [22:34:14]FM_GetShiftState [22:34:14]SAM_PROTO_GetShiftState [22:34:14]wFMCommunicate request_size=4 [22:34:14]MH_SAM_APDU [22:34:14]CAPDU: 80 13 01 00 [22:34:14]Write to MH i2c: E2 08 00 9C 0F 80 13 01 00 00 00 00 00 28 [22:34:14]Write i2c OK [22:34:14]MH_I2C_Read... [22:34:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:34:14]Read from MH i2c: E2 [22:34:14]MH_I2C_Read... [22:34:14]Read from MH i2c: E2 0E 00 [22:34:14]MH_I2C_Read... [22:34:14]Read from MH i2c: E2 0E 00 9C 0F 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 D4 [22:34:14]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [22:34:14]wFMCommunicate OK [22:34:14]SAM_PROTO_GetShiftState done [22:34:14]FM_GetShiftState done [22:34:14]opened in 1713053951 [22:34:14]opened+sec_in_day 1713140351 [22:34:14]quantity*price = 323692 [22:34:14]sum+1 = 323693 [22:34:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.92 ИТОГО: 3236.00 Внесено: 5000.00 СДАЧА: 1764.00 НСП 1% : 28.64 НДС 12% : 343.74 Наличными: 3236.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 294 14.04.2024 22:34 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29384 ФПД: 274867268880896 1/tax-web-control/client/api/v1/ticket?date=20240414T223415&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29384&fm=274867268880896&tin=02508201610067®Number=0000138879044617&sum=323600 [22:34:15]StoreToDocumentArchive [22:34:15]shift 116 fd 29384 [22:34:15]save to /storage/0116/doc_00029384 [22:34:15]save last doc name /storage/0116/doc_00029384 to /storage/kkm_last_doc_name [22:34:15]save OK [22:34:15]Clear old archive folders... [22:34:15]ProcessDocumentItem done err = 0, tmpTLVsize=252 [22:34:15]tlvbuf is 00214440 [22:34:15]SAM_PROTO_ClearQueue [22:34:15]wFMCommunicate request_size=4 [22:34:15]MH_SAM_APDU [22:34:15]CAPDU: 80 09 00 00 [22:34:15]Write to MH i2c: E2 08 00 A9 0F 80 09 00 00 00 00 00 00 2A [22:34:15]Write i2c OK [22:34:15]MH_I2C_Read... [22:34:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:34:15]Read from MH i2c: E2 [22:34:15]MH_I2C_Read... [22:34:15]Read from MH i2c: E2 03 00 [22:34:15]MH_I2C_Read... [22:34:15]Read from MH i2c: E2 03 00 A9 0F 00 90 00 2C [22:34:15]RAPDU: 90 00 [22:34:15]wFMCommunicate OK [22:34:15]SAM_PROTO_ClearQueue done [22:34:15]KKMCreateOFDPacket [22:34:15]OFDProtocolAddRootSTLVToBuf [22:34:15]FM_MakeSignedData [22:34:15]FM_MakeSignedData [22:34:15]SAM_PROTO_SignData [22:34:15]wFMCommunicate request_size=4 [22:34:15]MH_SAM_APDU [22:34:15]CAPDU: 80 0D 01 02 [22:34:15]Write to MH i2c: E2 08 00 AA 0F 80 0D 01 02 00 00 00 00 32 [22:34:15]Write i2c OK [22:34:15]MH_I2C_Read... [22:34:15]Read from MH i2c: E2 [22:34:15]MH_I2C_Read... [22:34:15]Read from MH i2c: E2 03 00 [22:34:15]MH_I2C_Read... [22:34:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:34:15]Read from MH i2c: E2 03 00 AA 0F 00 90 00 2D [22:34:15]RAPDU: 90 00 [22:34:15]wFMCommunicate OK [22:34:15]wFMCommunicate request_size=255 [22:34:15]MH_SAM_APDU [22:34:15]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 C1 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 6C F0 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 F0 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 86 00 00 00 00 07 04 06 00 10 F0 04 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 E7 59 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C8 72 00 00 35 04 06 00 [22:34:15]Write to MH i2c: E2 02 01 AB 0F 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 C1 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 6C F0 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 F0 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 86 00 00 00 00 07 04 06 00 10 F0 04 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 E7 59 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C8 72 00 00 35 04 06 00 00 00 07 [22:34:15]Write i2c OK [22:34:15]MH_I2C_Read... [22:34:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:34:15]Read from MH i2c: E2 [22:34:15]MH_I2C_Read... [22:34:15]Read from MH i2c: E2 03 00 [22:34:15]MH_I2C_Read... [22:34:15]Read from MH i2c: E2 03 00 AB 0F 00 90 00 2E [22:34:15]RAPDU: 90 00 [22:34:15]wFMCommunicate OK [22:34:15]wFMCommunicate request_size=11 [22:34:15]MH_SAM_APDU [22:34:15]CAPDU: 80 0D 02 02 06 F9 FD 85 EC 0A 00 [22:34:15]Write to MH i2c: E2 0E 00 AC 0F 80 0D 02 02 06 00 F9 FD 85 EC 0A 00 00 00 B2 [22:34:15]Write i2c OK [22:34:15]MH_I2C_Read... [22:34:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:34:15]Read from MH i2c: E2 [22:34:15]MH_I2C_Read... [22:34:15]Read from MH i2c: E2 03 00 [22:34:15]MH_I2C_Read... [22:34:15]Read from MH i2c: E2 03 00 AC 0F 00 90 00 2F [22:34:15]RAPDU: 90 00 [22:34:15]wFMCommunicate OK [22:34:15]wFMCommunicate request_size=4 [22:34:15]MH_SAM_APDU [22:34:15]CAPDU: 80 0D 03 02 [22:34:15]Write to MH i2c: E2 08 00 AD 0F 80 0D 03 02 00 00 00 00 37 [22:34:15]Write i2c OK [22:34:15]MH_I2C_Read... [22:34:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:34:15]Read from MH i2c: E2 [22:34:15]MH_I2C_Read... [22:34:15]Read from MH i2c: E2 0B 00 [22:34:15]MH_I2C_Read... [22:34:15]Read from MH i2c: E2 0B 00 AD 0F 00 F4 A0 17 A9 23 24 05 27 90 00 FF [22:34:15]RAPDU: F4 A0 17 A9 23 24 05 27 90 00 [22:34:15]wFMCommunicate OK [22:34:15]SAM_PROTO_SignData done [22:34:15]FM_MakeSignedData done [22:34:15]CreateOFDProtocolMessage [22:34:15]wFMCommunicate request_size=4 [22:34:15]MH_SAM_APDU [22:34:15]CAPDU: 80 11 00 00 [22:34:15]Write to MH i2c: E2 08 00 AE 0F 80 11 00 00 00 00 00 00 37 [22:34:15]Write i2c OK [22:34:15]MH_I2C_Read... [22:34:15]OFD Sender: No OFD packet to send [22:34:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:34:15]Read from MH i2c: E2 [22:34:15]MH_I2C_Read... [22:34:15]Read from MH i2c: E2 17 00 [22:34:15]MH_I2C_Read... [22:34:15]Read from MH i2c: E2 17 00 AE 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 86 [22:34:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:34:15]wFMCommunicate OK [22:34:15]CreateOFDProtocolMessage done [22:34:15]OFDSenderStorePacket 29384 [22:34:15]StoreOFDPacket docnum=29384 [22:34:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 4A F5 08 01 90 28 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 C1 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 6C F0 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 F0 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 86 00 00 00 00 07 04 06 00 10 F0 04 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 E7 59 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C8 72 00 00 35 04 06 00 F9 FD 85 EC 0A 00 F4 A0 17 A9 23 24 05 27 [22:34:15]CheckFolder [22:34:15]dirname=/storage/ofd_packets [22:34:15]CheckFolder done [22:34:15]ProducePacketName [22:34:15]name=ofd_packets/00029384 [22:34:15]NVStorageSaveData ofd_packets/00029384 [22:34:15]File name is /storage/ofd_packets/00029384 [22:34:15]Write 302 bytes [22:34:15]NVStorageSaveData done [22:34:15]OFDSenderStorePacket done [22:34:15]KKMCreateOFDPacket done [22:34:15]NVStorageSaveData kkm_last_timestamp [22:34:15]File name is /storage/kkm_last_timestamp [22:34:15]Write 4 bytes [22:34:15]NVStorageSaveData done [22:34:15]ExternCall_PrintAddStr [22:34:15]wPrintStart [22:34:15]Write to MH i2c: 01 00 00 AF 0F BE [22:34:15]Write i2c OK [22:34:15]MH_I2C_Read... [22:34:15]Read from MH i2c: 01 [22:34:15]MH_I2C_Read... [22:34:15]Read from MH i2c: 01 07 00 [22:34:15]MH_I2C_Read... [22:34:15]Read from MH i2c: 01 07 00 AF 0F 00 00 00 00 00 FF 0F D3 [22:34:15]RasterBufferAndPrint [22:34:15]line Счет N : (1)347780 [22:34:15]line ИНН: 02508201610067 [22:34:15]line Контрольно-Кассовый Чек [22:34:15]line ПРОДАЖА [22:34:15]line ТРК (МРК, ГНК) : 12 [22:34:15]line Товар: 2710124130 [22:34:15]line SUPER-92-К-5 [22:34:15]line 49.570 * 65.30 [22:34:15]line = 3236.92 [22:34:15]line НДС 12% НСП 1% [22:34:15]line > о реализуемом товаре [22:34:15]line ОКРУГЛЕНИЕ: -0.92 [22:34:15]line ИТОГО: 3236.00 [22:34:15]line Внесено: 5000.00 [22:34:15]line СДАЧА: 1764.00 [22:34:15]line НСП 1% : 28.64 [22:34:15]line НДС 12% : 343.74 [22:34:15]line Наличными: 3236.00 [22:34:15]line Безнал.: 0.00 [22:34:15]line Место: АЗС № 108 "Партнер Нефть" [22:34:15]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [22:34:15]line СНО: Общий режим [22:34:15]line Чек 294 14.04.2024 22:34 [22:34:15]line Смена: 116 ФФД: 1.0 [22:34:15]line ЗНМ: 0300000027 [22:34:15]line РНМ: 0000138879044617 [22:34:16]line Версия ККМ: 001 [22:34:16]line ФМ: 0000000000963154 [22:34:16]line ФД: 29384 [22:34:16]line ФПД: 274867268880896 [22:34:16]line 1/tax-web-control/client/api/v1/ticket?date=20240414T223415&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29384&fm=274867268880896&tin=02508201610067®Number=0000138879044617&sum=323600 [22:34:16]OFD Sender: Processing packet 29384 [packets to send 8, broken 7] [22:34:16]ProducePacketName [22:34:16]name=ofd_packets/00029384 [22:34:16]OFD Sender: To server: pG, [22:34:16]CommunicateWithHost lk.salyk.kg:30040 [22:34:16]ConnectInit lk.salyk.kg [22:34:16]written 0, free lines is 4095 [22:34:16]Connected sock=10 [22:34:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 4A F5 08 01 90 28 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 C1 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 6C F0 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 F0 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 86 00 00 00 00 07 04 06 00 10 F0 04 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 E7 59 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C8 72 00 00 35 04 06 00 F9 FD 85 EC 0A 00 F4 A0 17 A9 23 24 05 27 [22:34:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 CF 1D 47 00 1D 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 39 36 33 31 35 34 10 04 04 00 C8 72 00 00 F4 03 04 00 8A 04 1C 66 B6 04 01 00 00 5C 07 75 B2 6A 1A 43 CB [22:34:16]CommunicateWithHost err = 0 [22:34:16]CheckOFDResponse [22:34:16]1017 (14) - 77093643461234 [22:34:16]1041 (16) - 0000000000963154 [22:34:16]1040 (4) - 29384 [22:34:16]1012 (4) - 14.04.2024 16:30 [22:34:16]1206 (1) - 0 [22:34:16]OFD Sender: Remove packet 29384 [22:34:16]ProducePacketName [22:34:16]name=ofd_packets/00029384 [22:34:16]NVStorageDeleteData [22:34:16]Write to MH i2c: 01 00 00 D9 0F E8 [22:34:16]Write i2c OK [22:34:16]MH_I2C_Read... [22:34:16]Read from MH i2c: 01 [22:34:16]MH_I2C_Read... [22:34:16]Read from MH i2c: 01 07 00 [22:34:16]MH_I2C_Read... [22:34:16]Read from MH i2c: 01 07 00 D9 0F 00 00 00 00 00 DC 0C D7 [22:34:16]RasterBufferAndPrint [22:34:16]line [22:34:16]line [22:34:16]line [22:34:16]line [22:34:16]line [22:34:16]written 0, free lines is 3298 [22:34:16]MH_Cut [22:34:16]Write to MH i2c: D1 01 00 E0 0F 01 C1 [22:34:16]Write i2c OK [22:34:16]MH_I2C_Read... [22:34:16]Read from MH i2c: D1 [22:34:16]MH_I2C_Read... [22:34:16]Read from MH i2c: D1 01 00 [22:34:16]MH_I2C_Read... [22:34:16]Read from MH i2c: D1 01 00 E0 0F 00 C0 [22:34:16]Write to MH i2c: 01 00 00 E1 0F F0 [22:34:16]Write i2c OK [22:34:16]MH_I2C_Read... [22:34:16]OFD Sender: No OFD packet to send [22:34:17]*** Cut start [22:34:17]*** Partial cut [22:34:17]*** CUTSNS_PIN = 1 [22:34:17]*** CUTSNS_PIN = 0 [22:34:17]*** Brake cut motor [22:34:18]Read from MH i2c: 01 [22:34:18]MH_I2C_Read... [22:34:18]*** Stop cut motor [22:34:18]*** Cut end [22:34:18]Read from MH i2c: 01 07 00 [22:34:18]MH_I2C_Read... [22:34:18]Read from MH i2c: 01 07 00 E1 0F 00 00 00 00 00 FF 0F 05 [22:34:18]process_action close_receipt done [22:34:18]requested_data is exist [22:34:18]produce_requested_data [22:34:18]requested_item fm.sn is exist - process it [22:34:18]wFMCommunicate request_size=4 [22:34:18]MH_SAM_APDU [22:34:18]CAPDU: 80 11 00 00 [22:34:18]Write to MH i2c: E2 08 00 E2 0F 80 11 00 00 00 00 00 00 6B [22:34:18]Write i2c OK [22:34:18]MH_I2C_Read... [22:34:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:34:18]Read from MH i2c: E2 [22:34:18]MH_I2C_Read... [22:34:18]Read from MH i2c: E2 17 00 [22:34:18]MH_I2C_Read... [22:34:18]Read from MH i2c: E2 17 00 E2 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 BA [22:34:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:34:18]wFMCommunicate OK [22:34:18]requested_item fd.num is exist - process it [22:34:18]SAM_PROTO_GetFieldsCounters [22:34:18]wFMCommunicate request_size=4 [22:34:18]MH_SAM_APDU [22:34:18]CAPDU: 80 13 00 00 [22:34:18]Write to MH i2c: E2 08 00 E3 0F 80 13 00 00 00 00 00 00 6E [22:34:18]Write i2c OK [22:34:18]MH_I2C_Read... [22:34:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:34:18]Read from MH i2c: E2 [22:34:18]MH_I2C_Read... [22:34:18]Read from MH i2c: E2 62 00 [22:34:18]MH_I2C_Read... [22:34:18]Read from MH i2c: E2 62 00 E3 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C8 72 00 00 0E 04 04 00 74 00 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 CF [22:34:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C8 72 00 00 0E 04 04 00 74 00 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 [22:34:18]wFMCommunicate OK [22:34:18]SAM_PROTO_GetFieldsCounters done [22:34:18]requested_item shift.num is exist - process it [22:34:18]requested_item shift.opened is exist - process it [22:34:18]req_shift_opened [22:34:18]FM_GetShiftState [22:34:18]SAM_PROTO_GetShiftState [22:34:18]wFMCommunicate request_size=4 [22:34:18]MH_SAM_APDU [22:34:18]CAPDU: 80 13 01 00 [22:34:18]Write to MH i2c: E2 08 00 E4 0F 80 13 01 00 00 00 00 00 70 [22:34:18]Write i2c OK [22:34:18]MH_I2C_Read... [22:34:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:34:18]Read from MH i2c: E2 [22:34:18]MH_I2C_Read... [22:34:18]Read from MH i2c: E2 0E 00 [22:34:18]MH_I2C_Read... [22:34:18]Read from MH i2c: E2 0E 00 E4 0F 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 1C [22:34:18]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [22:34:18]wFMCommunicate OK [22:34:18]SAM_PROTO_GetShiftState done [22:34:18]FM_GetShiftState done [22:34:18]req_shift_opened done [22:34:18]requested_item shift.open_date is exist - process it [22:34:18]req_shift_open_date [22:34:18]req_shift_open_date done [22:34:18]produce_requested_data done [22:34:18]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29384,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [22:34:18]process_action_free close_receipt [22:34:18]json_value_free [22:34:18]json_value_free done [22:34:18]process_json_proto returns [22:34:18]Send response to host [22:34:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29384,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [22:34:18]free response buf [22:34:18]execute_script done [22:34:18]execute_script returns [22:34:18]free content buf [22:34:18]Sock 8.Close socket [22:34:18]Sock 8.Thread stoped [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:56]OFD Sender: No OFD packet to send [22:35:01]OFD Sender: No OFD packet to send [22:35:06]OFD Sender: No OFD packet to send [22:35:11]OFD Sender: No OFD packet to send [22:35:16]OFD Sender: No OFD packet to send [22:35:21]OFD Sender: No OFD packet to send [22:35:26]OFD Sender: No OFD packet to send [22:35:31]OFD Sender: No OFD packet to send [22:35:36]OFD Sender: No OFD packet to send [22:35:41]OFD Sender: No OFD packet to send [22:35:46]OFD Sender: No OFD packet to send [22:35:51]OFD Sender: No OFD packet to send [22:35:56]OFD Sender: No OFD packet to send [22:36:02]OFD Sender: No OFD packet to send [22:36:07]OFD Sender: No OFD packet to send [22:36:12]OFD Sender: No OFD packet to send [22:36:17]OFD Sender: No OFD packet to send [22:36:22]OFD Sender: No OFD packet to send [22:36:27]OFD Sender: No OFD packet to send [22:36:32]OFD Sender: No OFD packet to send [22:36:37]OFD Sender: No OFD packet to send [22:36:42]OFD Sender: No OFD packet to send [22:36:47]OFD Sender: No OFD packet to send [22:36:52]OFD Sender: No OFD packet to send [22:36:57]OFD Sender: No OFD packet to send [22:37:02]OFD Sender: No OFD packet to send [22:37:07]OFD Sender: No OFD packet to send [22:37:12]OFD Sender: No OFD packet to send [22:37:17]OFD Sender: No OFD packet to send [22:37:22]OFD Sender: No OFD packet to send [22:37:27]OFD Sender: No OFD packet to send [22:37:32]OFD Sender: No OFD packet to send [22:37:37]OFD Sender: No OFD packet to send [22:37:42]OFD Sender: No OFD packet to send [22:37:47]OFD Sender: No OFD packet to send [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:07]OFD Sender: No OFD packet to send [22:38:12]OFD Sender: No OFD packet to send [22:38:17]OFD Sender: No OFD packet to send [22:38:22]OFD Sender: No OFD packet to send [22:38:27]OFD Sender: No OFD packet to send [22:38:32]OFD Sender: No OFD packet to send [22:38:37]OFD Sender: No OFD packet to send [22:38:42]OFD Sender: No OFD packet to send [22:38:47]OFD Sender: No OFD packet to send [22:38:52]OFD Sender: No OFD packet to send [22:38:57]OFD Sender: No OFD packet to send [22:39:02]OFD Sender: No OFD packet to send [22:39:07]OFD Sender: No OFD packet to send [22:39:12]OFD Sender: No OFD packet to send [22:39:17]OFD Sender: No OFD packet to send [22:39:22]OFD Sender: No OFD packet to send [22:39:27]OFD Sender: No OFD packet to send [22:39:32]OFD Sender: No OFD packet to send [22:39:37]OFD Sender: No OFD packet to send [22:39:42]OFD Sender: No OFD packet to send [22:39:47]OFD Sender: No OFD packet to send [22:39:52]OFD Sender: No OFD packet to send [22:39:57]OFD Sender: No OFD packet to send [22:40:02]OFD Sender: No OFD packet to send [22:40:07]OFD Sender: No OFD packet to send [22:40:12]OFD Sender: No OFD packet to send [22:40:17]OFD Sender: No OFD packet to send [22:40:22]OFD Sender: No OFD packet to send [22:40:27]OFD Sender: No OFD packet to send [22:40:32]OFD Sender: No OFD packet to send [22:40:37]OFD Sender: No OFD packet to send [22:40:42]OFD Sender: No OFD packet to send [22:40:47]OFD Sender: No OFD packet to send [22:40:52]OFD Sender: No OFD packet to send [22:40:57]OFD Sender: No OFD packet to send [22:41:02]OFD Sender: No OFD packet to send [22:41:07]OFD Sender: No OFD packet to send [22:41:12]OFD Sender: No OFD packet to send [22:41:17]OFD Sender: No OFD packet to send [22:41:22]OFD Sender: No OFD packet to send [22:41:26]accept exits with 9 [22:41:26]New connection [22:41:26]New thread 3066969444 created [22:41:26]Thread 3067112804 joined [22:41:26]Waiting for new connection... [22:41:26] Sock 9.Parse request [22:41:26]Sock 9.Check first char [22:41:26]Sock 9.First char is OK [22:41:26]request: POST /json_proto HTTP/1.0 [22:41:26]Method: POST [22:41:26]URL: /json_proto [22:41:26]Method is POST - this is cgi request [22:41:26]url: /json_proto [22:41:26]query_string will be loaded in cgi processing [22:41:26]execute_cgi json_proto POST (null) [22:41:26]execute_cgi path=json_proto method=POST [22:41:26]POST find Content-Length [22:41:26]Host: 172.17.33.3:8080 [22:41:26]Content-Length: 790 [22:41:26]Content-Type: application/json [22:41:26] [22:41:26]POST finish read [22:41:26]Found Content-Length = 790 [22:41:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347781", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 400.59 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:41:26]execute_script... [22:41: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)347781", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 400.59 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:41:26]POST & json_proto [22:41:26]process_json_proto [22:41:26]json parsed OK: [22:41:26]protocol is kg_v1.0 [22:41:26]action value=close_receipt [22:41:26]process_action close_receipt [22:41:26]cmd_close_receipt [22:41:26]MH_GetDate [22:41:26]Write to MH i2c: F0 00 00 E5 0F E3 [22:41:26]Write i2c OK [22:41:26]MH_I2C_Read... [22:41:26]Read from MH i2c: F0 [22:41:26]MH_I2C_Read... [22:41:26]Read from MH i2c: F0 09 00 [22:41:26]MH_I2C_Read... [22:41:26]Read from MH i2c: F0 09 00 E5 0F 00 97 5B 1C 66 23 5B 8F 65 D2 [22:41:26]GetLastDocTimeStamp 1713134055 [22:41:26]current date 1713134487 [22:41:26]FM_GetShiftState [22:41:26]SAM_PROTO_GetShiftState [22:41:26]wFMCommunicate request_size=4 [22:41:26]MH_SAM_APDU [22:41:26]CAPDU: 80 13 01 00 [22:41:26]Write to MH i2c: E2 08 00 E6 0F 80 13 01 00 00 00 00 00 72 [22:41:26]Write i2c OK [22:41:26]MH_I2C_Read... [22:41:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:41:26]Read from MH i2c: E2 [22:41:26]MH_I2C_Read... [22:41:26]Read from MH i2c: E2 0E 00 [22:41:26]MH_I2C_Read... [22:41:26]Read from MH i2c: E2 0E 00 E6 0F 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 1E [22:41:26]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [22:41:26]wFMCommunicate OK [22:41:26]SAM_PROTO_GetShiftState done [22:41:26]FM_GetShiftState done [22:41:26]opened in 1713053951 [22:41:26]opened+sec_in_day 1713140351 [22:41:26]quantity*price = 40058 [22:41:26]sum+1 = 40060 [22:41:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.59 НСП 1% : 3.54 НДС 12% : 42.54 Наличными: 0.00 Безнал.: 400.59 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 295 14.04.2024 22:41 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000963154 ФД: 29385 ФПД: 148082098488698 1/tax-web-control/client/api/v1/ticket?date=20240414T224127&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29385&fm=148082098488698&tin=02508201610067®Number=0000138879044617&sum=40059 [22:41:27]StoreToDocumentArchive [22:41:27]shift 116 fd 29385 [22:41:27]save to /storage/0116/doc_00029385 [22:41:27]save last doc name /storage/0116/doc_00029385 to /storage/kkm_last_doc_name [22:41:27]save OK [22:41:27]Clear old archive folders... [22:41:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:41:27]tlvbuf is 0020E890 [22:41:27]SAM_PROTO_ClearQueue [22:41:27]wFMCommunicate request_size=4 [22:41:27]MH_SAM_APDU [22:41:27]CAPDU: 80 09 00 00 [22:41:27]Write to MH i2c: E2 08 00 F3 0F 80 09 00 00 00 00 00 00 74 [22:41:27]Write i2c OK [22:41:27]MH_I2C_Read... [22:41:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:41:27]Read from MH i2c: E2 [22:41:27]MH_I2C_Read... [22:41:27]Read from MH i2c: E2 03 00 [22:41:27]MH_I2C_Read... [22:41:27]Read from MH i2c: E2 03 00 F3 0F 00 90 00 76 [22:41:27]RAPDU: 90 00 [22:41:27]wFMCommunicate OK [22:41:27]SAM_PROTO_ClearQueue done [22:41:27]KKMCreateOFDPacket [22:41:27]OFDProtocolAddRootSTLVToBuf [22:41:27]FM_MakeSignedData [22:41:27]FM_MakeSignedData [22:41:27]SAM_PROTO_SignData [22:41:27]wFMCommunicate request_size=4 [22:41:27]MH_SAM_APDU [22:41:27]CAPDU: 80 0D 01 02 [22:41:27]Write to MH i2c: E2 08 00 F4 0F 80 0D 01 02 00 00 00 00 7C [22:41:27]Write i2c OK [22:41:27]MH_I2C_Read... [22:41:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:41:27]Read from MH i2c: E2 [22:41:27]MH_I2C_Read... [22:41:27]Read from MH i2c: E2 03 00 [22:41:27]MH_I2C_Read... [22:41:27]Read from MH i2c: E2 03 00 F4 0F 00 90 00 77 [22:41:27]RAPDU: 90 00 [22:41:27]wFMCommunicate OK [22:41:27]wFMCommunicate request_size=255 [22:41:27]MH_SAM_APDU [22:41: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 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 27 01 00 00 F4 03 04 00 97 5B 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C9 72 00 00 35 04 06 00 86 [22:41:27]Write to MH i2c: E2 02 01 F5 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 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 27 01 00 00 F4 03 04 00 97 5B 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C9 72 00 00 35 04 06 00 86 00 00 6F [22:41:27]Write i2c OK [22:41:27]MH_I2C_Read... [22:41:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:41:27]Read from MH i2c: E2 [22:41:27]MH_I2C_Read... [22:41:27]Read from MH i2c: E2 03 00 [22:41:27]MH_I2C_Read... [22:41:27]Read from MH i2c: E2 03 00 F5 0F 00 90 00 78 [22:41:27]RAPDU: 90 00 [22:41:27]wFMCommunicate OK [22:41:27]wFMCommunicate request_size=10 [22:41:27]MH_SAM_APDU [22:41:27]CAPDU: 80 0D 02 02 05 AE 0C E0 C5 7A [22:41:27]Write to MH i2c: E2 0D 00 F6 0F 80 0D 02 02 05 00 AE 0C E0 C5 7A 00 00 62 [22:41:27]Write i2c OK [22:41:27]MH_I2C_Read... [22:41:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:41:27]Read from MH i2c: E2 [22:41:27]MH_I2C_Read... [22:41:27]Read from MH i2c: E2 03 00 [22:41:27]MH_I2C_Read... [22:41:27]Read from MH i2c: E2 03 00 F6 0F 00 90 00 79 [22:41:27]RAPDU: 90 00 [22:41:27]wFMCommunicate OK [22:41:27]wFMCommunicate request_size=4 [22:41:27]MH_SAM_APDU [22:41:27]CAPDU: 80 0D 03 02 [22:41:27]Write to MH i2c: E2 08 00 F7 0F 80 0D 03 02 00 00 00 00 81 [22:41:27]Write i2c OK [22:41:27]MH_I2C_Read... [22:41:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:41:27]Read from MH i2c: E2 [22:41:27]MH_I2C_Read... [22:41:27]Read from MH i2c: E2 0B 00 [22:41:27]MH_I2C_Read... [22:41:27]Read from MH i2c: E2 0B 00 F7 0F 00 26 05 76 69 FF 9A A4 AE 90 00 77 [22:41:27]RAPDU: 26 05 76 69 FF 9A A4 AE 90 00 [22:41:27]wFMCommunicate OK [22:41:27]SAM_PROTO_SignData done [22:41:27]FM_MakeSignedData done [22:41:27]CreateOFDProtocolMessage [22:41:27]wFMCommunicate request_size=4 [22:41:27]MH_SAM_APDU [22:41:27]CAPDU: 80 11 00 00 [22:41:27]Write to MH i2c: E2 08 00 F8 0F 80 11 00 00 00 00 00 00 81 [22:41:27]Write i2c OK [22:41:27]MH_I2C_Read... [22:41:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:41:27]Read from MH i2c: E2 [22:41:27]MH_I2C_Read... [22:41:27]Read from MH i2c: E2 17 00 [22:41:27]MH_I2C_Read... [22:41:27]Read from MH i2c: E2 17 00 F8 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D0 [22:41:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:41:27]wFMCommunicate OK [22:41:27]CreateOFDProtocolMessage done [22:41:27]OFDSenderStorePacket 29385 [22:41:27]StoreOFDPacket docnum=29385 [22:41:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 13 CD 07 01 18 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 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 27 01 00 00 F4 03 04 00 97 5B 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C9 72 00 00 35 04 06 00 86 AE 0C E0 C5 7A 26 05 76 69 FF 9A A4 AE [22:41:27]CheckFolder [22:41:27]dirname=/storage/ofd_packets [22:41:27]CheckFolder done [22:41:27]ProducePacketName [22:41:27]name=ofd_packets/00029385 [22:41:27]NVStorageSaveData ofd_packets/00029385 [22:41:27]File name is /storage/ofd_packets/00029385 [22:41:27]Write 301 bytes [22:41:27]NVStorageSaveData done [22:41:27]OFDSenderStorePacket done [22:41:27]KKMCreateOFDPacket done [22:41:27]NVStorageSaveData kkm_last_timestamp [22:41:27]File name is /storage/kkm_last_timestamp [22:41:27]Write 4 bytes [22:41:27]NVStorageSaveData done [22:41:27]OFD Sender: Processing packet 29385 [packets to send 8, broken 7] [22:41:27]ProducePacketName [22:41:27]name=ofd_packets/00029385 [22:41:27]OFD Sender: To server: pG, [22:41:27]CommunicateWithHost lk.salyk.kg:30040 [22:41:27]ConnectInit lk.salyk.kg [22:41:27]ExternCall_PrintAddStr [22:41:27]wPrintStart [22:41:27]Write to MH i2c: 01 00 00 F9 0F 08 [22:41:27]Write i2c OK [22:41:27]MH_I2C_Read... [22:41:27]Read from MH i2c: 01 [22:41:27]MH_I2C_Read... [22:41:27]Read from MH i2c: 01 07 00 [22:41:27]MH_I2C_Read... [22:41:27]Read from MH i2c: 01 07 00 F9 0F 00 00 00 00 00 FF 0F 1D [22:41:27]RasterBufferAndPrint [22:41:27]line Счет N : (1)347781 [22:41:27]line ИНН: 02508201610067 [22:41:27]line Контрольно-Кассовый Чек [22:41:27]line ПРОДАЖА [22:41:27]line ТРК (МРК, ГНК) : 32 [22:41:27]line Товар: 2710124130 [22:41:27]line Аи-92-К-5 [22:41:27]line 6.230 * 64.30 [22:41:27]line = 400.59 [22:41:27]line НДС 12% НСП 1% [22:41:27]line > о реализуемом товаре [22:41:27]line ИТОГО: 400.59 [22:41:27]line НСП 1% : 3.54 [22:41:27]line НДС 12% : 42.54 [22:41:27]line Наличными: 0.00 [22:41:27]line Безнал.: 400.59 [22:41:27]line Место: АЗС № 108 "Партнер Нефть" [22:41:27]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [22:41:27]line СНО: Общий режим [22:41:27]line Чек 295 14.04.2024 22:41 [22:41:27]line Смена: 116 ФФД: 1.0 [22:41:27]line ЗНМ: 0300000027 [22:41:27]line РНМ: 0000138879044617 [22:41:27]line Версия ККМ: 001 [22:41:27]line Платежная система: KICB Банк [22:41:27]line ФМ: 0000000000963154 [22:41:27]line ФД: 29385 [22:41:27]line ФПД: 148082098488698 [22:41:28]line 1/tax-web-control/client/api/v1/ticket?date=20240414T224127&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29385&fm=148082098488698&tin=02508201610067®Number=0000138879044617&sum=40059 [22:41:28]Connected sock=11 [22:41:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 13 CD 07 01 18 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 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 27 01 00 00 F4 03 04 00 97 5B 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C9 72 00 00 35 04 06 00 86 AE 0C E0 C5 7A 26 05 76 69 FF 9A A4 AE [22:41:28]written 0, free lines is 4095 [22:41:28]Write to MH i2c: 01 00 00 22 10 32 [22:41:28]Write i2c OK [22:41:28]MH_I2C_Read... [22:41:28]Read from MH i2c: 01 [22:41:28]MH_I2C_Read... [22:41:28]Read from MH i2c: 01 07 00 [22:41:28]MH_I2C_Read... [22:41:28]Read from MH i2c: 01 07 00 22 10 00 00 00 00 00 DF 0C 24 [22:41:28]RasterBufferAndPrint [22:41:28]line [22:41:28]line [22:41:28]line [22:41:28]line [22:41:28]line [22:41:28]written 0, free lines is 3301 [22:41:28]MH_Cut [22:41:28]Write to MH i2c: D1 01 00 29 10 01 0B [22:41:28]Write i2c OK [22:41:28]MH_I2C_Read... [22:41:28]Read from MH i2c: D1 [22:41:28]MH_I2C_Read... [22:41:28]Read from MH i2c: D1 01 00 [22:41:28]MH_I2C_Read... [22:41:28]Read from MH i2c: D1 01 00 29 10 00 0A [22:41:28]Write to MH i2c: 01 00 00 2A 10 3A [22:41:28]Write i2c OK [22:41:28]MH_I2C_Read... [22:41:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 10 02 47 00 4C 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C9 72 00 00 F4 03 04 00 3A 06 1C 66 B6 04 01 00 00 2F B6 70 17 81 FF F1 05 [22:41:28]CommunicateWithHost err = 0 [22:41:28]CheckOFDResponse [22:41:28]1017 (14) - 77093643461234 [22:41:28]1041 (16) - 0000000000963154 [22:41:28]1040 (4) - 29385 [22:41:28]1012 (4) - 14.04.2024 16:37 [22:41:28]1206 (1) - 0 [22:41:28]OFD Sender: Remove packet 29385 [22:41:28]ProducePacketName [22:41:28]name=ofd_packets/00029385 [22:41:28]NVStorageDeleteData [22:41:29]OFD Sender: No OFD packet to send [22:41:29]*** Cut start [22:41:29]*** Partial cut [22:41:29]*** CUTSNS_PIN = 1 [22:41:29]*** CUTSNS_PIN = 0 [22:41:29]*** Brake cut motor [22:41:30]Read from MH i2c: 01 [22:41:30]MH_I2C_Read... [22:41:30]*** Stop cut motor [22:41:30]*** Cut end [22:41:30]Read from MH i2c: 01 07 00 [22:41:30]MH_I2C_Read... [22:41:30]Read from MH i2c: 01 07 00 2A 10 00 00 00 00 00 FF 0F 4F [22:41:30]process_action close_receipt done [22:41:30]requested_data is exist [22:41:30]produce_requested_data [22:41:30]requested_item fm.sn is exist - process it [22:41:30]wFMCommunicate request_size=4 [22:41:30]MH_SAM_APDU [22:41:30]CAPDU: 80 11 00 00 [22:41:30]Write to MH i2c: E2 08 00 2B 10 80 11 00 00 00 00 00 00 B5 [22:41:30]Write i2c OK [22:41:30]MH_I2C_Read... [22:41:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:41:30]Read from MH i2c: E2 [22:41:30]MH_I2C_Read... [22:41:30]Read from MH i2c: E2 17 00 [22:41:30]MH_I2C_Read... [22:41:30]Read from MH i2c: E2 17 00 2B 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 04 [22:41:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:41:30]wFMCommunicate OK [22:41:30]requested_item fd.num is exist - process it [22:41:30]SAM_PROTO_GetFieldsCounters [22:41:30]wFMCommunicate request_size=4 [22:41:30]MH_SAM_APDU [22:41:30]CAPDU: 80 13 00 00 [22:41:30]Write to MH i2c: E2 08 00 2C 10 80 13 00 00 00 00 00 00 B8 [22:41:30]Write i2c OK [22:41:30]MH_I2C_Read... [22:41:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:41:30]Read from MH i2c: E2 [22:41:30]MH_I2C_Read... [22:41:30]Read from MH i2c: E2 62 00 [22:41:30]MH_I2C_Read... [22:41:30]Read from MH i2c: E2 62 00 2C 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C9 72 00 00 0E 04 04 00 74 00 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 1D [22:41:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C9 72 00 00 0E 04 04 00 74 00 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 [22:41:30]wFMCommunicate OK [22:41:30]SAM_PROTO_GetFieldsCounters done [22:41:30]requested_item shift.num is exist - process it [22:41:30]requested_item shift.opened is exist - process it [22:41:30]req_shift_opened [22:41:30]FM_GetShiftState [22:41:30]SAM_PROTO_GetShiftState [22:41:30]wFMCommunicate request_size=4 [22:41:30]MH_SAM_APDU [22:41:30]CAPDU: 80 13 01 00 [22:41:30]Write to MH i2c: E2 08 00 2D 10 80 13 01 00 00 00 00 00 BA [22:41:30]Write i2c OK [22:41:30]MH_I2C_Read... [22:41:30]Read from MH i2c: E2 [22:41:30]MH_I2C_Read... [22:41:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:41:30]Read from MH i2c: E2 0E 00 [22:41:30]MH_I2C_Read... [22:41:30]Read from MH i2c: E2 0E 00 2D 10 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 66 [22:41:30]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [22:41:30]wFMCommunicate OK [22:41:30]SAM_PROTO_GetShiftState done [22:41:30]FM_GetShiftState done [22:41:30]req_shift_opened done [22:41:30]requested_item shift.open_date is exist - process it [22:41:30]req_shift_open_date [22:41:30]req_shift_open_date done [22:41:30]produce_requested_data done [22:41:30]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29385,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [22:41:30]process_action_free close_receipt [22:41:30]json_value_free [22:41:30]json_value_free done [22:41:30]process_json_proto returns [22:41:30]Send response to host [22:41:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29385,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [22:41:30]free response buf [22:41:30]execute_script done [22:41:30]execute_script returns [22:41:30]free content buf [22:41:30]Sock 9.Close socket [22:41:30]Sock 9.Thread stoped [22:41:34]OFD Sender: No OFD packet to send [22:41:39]OFD Sender: No OFD packet to send [22:41:44]OFD Sender: No OFD packet to send [22:41:49]OFD Sender: No OFD packet to send [22:41:54]OFD Sender: No OFD packet to send [22:41:59]OFD Sender: No OFD packet to send [22:42:04]OFD Sender: No OFD packet to send [22:42:09]OFD Sender: No OFD packet to send [22:42:14]OFD Sender: No OFD packet to send [22:42:19]OFD Sender: No OFD packet to send [22:42:24]OFD Sender: No OFD packet to send [22:42:29]OFD Sender: No OFD packet to send [22:42:34]OFD Sender: No OFD packet to send [22:42:39]OFD Sender: No OFD packet to send [22:42:44]OFD Sender: No OFD packet to send [22:42:49]OFD Sender: No OFD packet to send [22:42:54]OFD Sender: No OFD packet to send [22:42:59]OFD Sender: No OFD packet to send [22:43:04]OFD Sender: No OFD packet to send [22:43:09]OFD Sender: No OFD packet to send [22:43:14]OFD Sender: No OFD packet to send [22:43:19]OFD Sender: No OFD packet to send [22:43:24]OFD Sender: No OFD packet to send [22:43:29]OFD Sender: No OFD packet to send [22:43:34]OFD Sender: No OFD packet to send [22:43:39]OFD Sender: No OFD packet to send [22:43:44]OFD Sender: No OFD packet to send [22:43:49]OFD Sender: No OFD packet to send [22:43:54]OFD Sender: No OFD packet to send [22:43:59]OFD Sender: No OFD packet to send [22:44:04]OFD Sender: No OFD packet to send [22:44:09]OFD Sender: No OFD packet to send [22:44:14]OFD Sender: No OFD packet to send [22:44:19]OFD Sender: No OFD packet to send [22:44:24]OFD Sender: No OFD packet to send [22:44:29]OFD Sender: No OFD packet to send [22:44:34]OFD Sender: No OFD packet to send [22:44:39]OFD Sender: No OFD packet to send [22:44:44]OFD Sender: No OFD packet to send [22:44:49]OFD Sender: No OFD packet to send [22:44:54]OFD Sender: No OFD packet to send [22:44:59]OFD Sender: No OFD packet to send [22:45:04]OFD Sender: No OFD packet to send [22:45:09]OFD Sender: No OFD packet to send [22:45:14]OFD Sender: No OFD packet to send [22:45:19]OFD Sender: No OFD packet to send [22:45:24]OFD Sender: No OFD packet to send [22:45:29]OFD Sender: No OFD packet to send [22:45:34]OFD Sender: No OFD packet to send [22:45:39]OFD Sender: No OFD packet to send [22:45:44]OFD Sender: No OFD packet to send [22:45:49]OFD Sender: No OFD packet to send [22:45:54]OFD Sender: No OFD packet to send [22:45:59]OFD Sender: No OFD packet to send [22:46:04]OFD Sender: No OFD packet to send [22:46:09]OFD Sender: No OFD packet to send [22:46:14]OFD Sender: No OFD packet to send [22:46:19]OFD Sender: No OFD packet to send [22:46:24]OFD Sender: No OFD packet to send [22:46:29]OFD Sender: No OFD packet to send [22:46:34]OFD Sender: No OFD packet to send [22:46:39]OFD Sender: No OFD packet to send [22:46:44]OFD Sender: No OFD packet to send [22:46:49]OFD Sender: No OFD packet to send [22:46:54]OFD Sender: No OFD packet to send [22:46:59]OFD Sender: No OFD packet to send [22:47:04]OFD Sender: No OFD packet to send [22:47:09]OFD Sender: No OFD packet to send [22:47:14]OFD Sender: No OFD packet to send [22:47:19]OFD Sender: No OFD packet to send [22:47:24]OFD Sender: No OFD packet to send [22:47:29]OFD Sender: No OFD packet to send [22:47:34]OFD Sender: No OFD packet to send [22:47:39]OFD Sender: No OFD packet to send [22:47:44]OFD Sender: No OFD packet to send [22:47:49]OFD Sender: No OFD packet to send [22:47:54]OFD Sender: No OFD packet to send [22:47:59]OFD Sender: No OFD packet to send [22:48:04]OFD Sender: No OFD packet to send [22:48:09]OFD Sender: No OFD packet to send [22:48:14]OFD Sender: No OFD packet to send [22:48:17]accept exits with 8 [22:48:17]New connection [22:48:17]New thread 3067112804 created [22:48:17]Thread 3066969444 joined [22:48:17]Waiting for new connection... [22:48:17] Sock 8.Parse request [22:48:17]Sock 8.Check first char [22:48:17]Sock 8.First char is OK [22:48:17]request: POST /json_proto HTTP/1.0 [22:48:17]Method: POST [22:48:17]URL: /json_proto [22:48:17]Method is POST - this is cgi request [22:48:17]url: /json_proto [22:48:17]query_string will be loaded in cgi processing [22:48:17]execute_cgi json_proto POST (null) [22:48:17]execute_cgi path=json_proto method=POST [22:48:17]POST find Content-Length [22:48:17]Host: 172.17.33.3:8080 [22:48:17]Content-Length: 805 [22:48:17]Content-Type: application/json [22:48:17] [22:48:17]POST finish read [22:48:17]Found Content-Length = 805 [22:48:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347782", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.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" ] } } [22:48:17]execute_script... [22:48: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)347782", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.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" ] } } [22:48:17]POST & json_proto [22:48:17]process_json_proto [22:48:17]json parsed OK: [22:48:17]protocol is kg_v1.0 [22:48:17]action value=close_receipt [22:48:17]process_action close_receipt [22:48:17]cmd_close_receipt [22:48:17]MH_GetDate [22:48:17]Write to MH i2c: F0 00 00 2E 10 2D [22:48:17]Write i2c OK [22:48:17]MH_I2C_Read... [22:48:17]Read from MH i2c: F0 [22:48:17]MH_I2C_Read... [22:48:17]Read from MH i2c: F0 09 00 [22:48:17]MH_I2C_Read... [22:48:17]Read from MH i2c: F0 09 00 2E 10 00 32 5D 1C 66 23 5B 8F 65 B9 [22:48:17]GetLastDocTimeStamp 1713134487 [22:48:17]current date 1713134898 [22:48:17]FM_GetShiftState [22:48:17]SAM_PROTO_GetShiftState [22:48:17]wFMCommunicate request_size=4 [22:48:17]MH_SAM_APDU [22:48:17]CAPDU: 80 13 01 00 [22:48:17]Write to MH i2c: E2 08 00 2F 10 80 13 01 00 00 00 00 00 BC [22:48:17]Write i2c OK [22:48:17]MH_I2C_Read... [22:48:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:48:17]Read from MH i2c: E2 [22:48:17]MH_I2C_Read... [22:48:17]Read from MH i2c: E2 0E 00 [22:48:17]MH_I2C_Read... [22:48:17]Read from MH i2c: E2 0E 00 2F 10 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 68 [22:48:17]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [22:48:17]wFMCommunicate OK [22:48:17]SAM_PROTO_GetShiftState done [22:48:17]FM_GetShiftState done [22:48:17]opened in 1713053951 [22:48:17]opened+sec_in_day 1713140351 [22:48:17]quantity*price = 50025 [22:48:17]sum+1 = 50026 [22:48:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.25 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.25 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 296 14.04.2024 22:48 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29386 ФПД: 78342542315839 1/tax-web-control/client/api/v1/ticket?date=20240414T224818&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29386&fm=78342542315839&tin=02508201610067®Number=0000138879044617&sum=50025 [22:48:18]StoreToDocumentArchive [22:48:18]shift 116 fd 29386 [22:48:18]save to /storage/0116/doc_00029386 [22:48:18]save last doc name /storage/0116/doc_00029386 to /storage/kkm_last_doc_name [22:48:18]save OK [22:48:18]Clear old archive folders... [22:48:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:48:18]tlvbuf is 00218790 [22:48:18]SAM_PROTO_ClearQueue [22:48:18]wFMCommunicate request_size=4 [22:48:18]MH_SAM_APDU [22:48:18]CAPDU: 80 09 00 00 [22:48:18]Write to MH i2c: E2 08 00 3C 10 80 09 00 00 00 00 00 00 BE [22:48:18]Write i2c OK [22:48:18]MH_I2C_Read... [22:48:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:48:18]Read from MH i2c: E2 [22:48:18]MH_I2C_Read... [22:48:18]Read from MH i2c: E2 03 00 [22:48:18]MH_I2C_Read... [22:48:18]Read from MH i2c: E2 03 00 3C 10 00 90 00 C0 [22:48:18]RAPDU: 90 00 [22:48:18]wFMCommunicate OK [22:48:18]SAM_PROTO_ClearQueue done [22:48:18]KKMCreateOFDPacket [22:48:18]OFDProtocolAddRootSTLVToBuf [22:48:18]FM_MakeSignedData [22:48:18]FM_MakeSignedData [22:48:18]SAM_PROTO_SignData [22:48:18]wFMCommunicate request_size=4 [22:48:18]MH_SAM_APDU [22:48:18]CAPDU: 80 0D 01 02 [22:48:18]Write to MH i2c: E2 08 00 3D 10 80 0D 01 02 00 00 00 00 C6 [22:48:18]Write i2c OK [22:48:18]MH_I2C_Read... [22:48:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:48:18]Read from MH i2c: E2 [22:48:18]MH_I2C_Read... [22:48:18]Read from MH i2c: E2 03 00 [22:48:18]MH_I2C_Read... [22:48:18]Read from MH i2c: E2 03 00 3D 10 00 90 00 C1 [22:48:18]RAPDU: 90 00 [22:48:18]wFMCommunicate OK [22:48:18]wFMCommunicate request_size=255 [22:48:18]MH_SAM_APDU [22:48: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 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 28 01 00 00 F4 03 04 00 32 5D 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CA 72 00 00 35 04 06 00 47 [22:48:18]Write to MH i2c: E2 02 01 3E 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 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 28 01 00 00 F4 03 04 00 32 5D 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CA 72 00 00 35 04 06 00 47 00 00 EB [22:48:18]Write i2c OK [22:48:18]MH_I2C_Read... [22:48:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:48:18]Read from MH i2c: E2 [22:48:18]MH_I2C_Read... [22:48:18]Read from MH i2c: E2 03 00 [22:48:18]MH_I2C_Read... [22:48:18]Read from MH i2c: E2 03 00 3E 10 00 90 00 C2 [22:48:18]RAPDU: 90 00 [22:48:18]wFMCommunicate OK [22:48:18]wFMCommunicate request_size=10 [22:48:18]MH_SAM_APDU [22:48:18]CAPDU: 80 0D 02 02 05 40 8B 67 D1 3F [22:48:18]Write to MH i2c: E2 0D 00 3F 10 80 0D 02 02 05 00 40 8B 67 D1 3F 00 00 15 [22:48:18]Write i2c OK [22:48:18]MH_I2C_Read... [22:48:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:48:19]Read from MH i2c: E2 [22:48:19]MH_I2C_Read... [22:48:19]Read from MH i2c: E2 03 00 [22:48:19]MH_I2C_Read... [22:48:19]Read from MH i2c: E2 03 00 3F 10 00 90 00 C3 [22:48:19]RAPDU: 90 00 [22:48:19]wFMCommunicate OK [22:48:19]wFMCommunicate request_size=4 [22:48:19]MH_SAM_APDU [22:48:19]CAPDU: 80 0D 03 02 [22:48:19]Write to MH i2c: E2 08 00 40 10 80 0D 03 02 00 00 00 00 CB [22:48:19]Write i2c OK [22:48:19]MH_I2C_Read... [22:48:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:48:19]Read from MH i2c: E2 [22:48:19]MH_I2C_Read... [22:48:19]Read from MH i2c: E2 0B 00 [22:48:19]MH_I2C_Read... [22:48:19]Read from MH i2c: E2 0B 00 40 10 00 C2 3C 15 96 CD 77 E5 7E 90 00 1C [22:48:19]RAPDU: C2 3C 15 96 CD 77 E5 7E 90 00 [22:48:19]wFMCommunicate OK [22:48:19]SAM_PROTO_SignData done [22:48:19]FM_MakeSignedData done [22:48:19]CreateOFDProtocolMessage [22:48:19]wFMCommunicate request_size=4 [22:48:19]MH_SAM_APDU [22:48:19]CAPDU: 80 11 00 00 [22:48:19]Write to MH i2c: E2 08 00 41 10 80 11 00 00 00 00 00 00 CB [22:48:19]Write i2c OK [22:48:19]MH_I2C_Read... [22:48:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:48:19]Read from MH i2c: E2 [22:48:19]MH_I2C_Read... [22:48:19]Read from MH i2c: E2 17 00 [22:48:19]MH_I2C_Read... [22:48:19]Read from MH i2c: E2 17 00 41 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 1A [22:48:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:48:19]wFMCommunicate OK [22:48:19]CreateOFDProtocolMessage done [22:48:19]OFDSenderStorePacket 29386 [22:48:19]StoreOFDPacket docnum=29386 [22:48:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 4B A5 07 01 8E 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 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 28 01 00 00 F4 03 04 00 32 5D 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CA 72 00 00 35 04 06 00 47 40 8B 67 D1 3F C2 3C 15 96 CD 77 E5 7E [22:48:19]CheckFolder [22:48:19]dirname=/storage/ofd_packets [22:48:19]CheckFolder done [22:48:19]ProducePacketName [22:48:19]name=ofd_packets/00029386 [22:48:19]NVStorageSaveData ofd_packets/00029386 [22:48:19]File name is /storage/ofd_packets/00029386 [22:48:19]Write 301 bytes [22:48:19]NVStorageSaveData done [22:48:19]OFDSenderStorePacket done [22:48:19]KKMCreateOFDPacket done [22:48:19]NVStorageSaveData kkm_last_timestamp [22:48:19]File name is /storage/kkm_last_timestamp [22:48:19]Write 4 bytes [22:48:19]NVStorageSaveData done [22:48:19]ExternCall_PrintAddStr [22:48:19]wPrintStart [22:48:19]Write to MH i2c: 01 00 00 42 10 52 [22:48:19]Write i2c OK [22:48:19]MH_I2C_Read... [22:48:19]Read from MH i2c: 01 [22:48:19]MH_I2C_Read... [22:48:19]Read from MH i2c: 01 07 00 [22:48:19]MH_I2C_Read... [22:48:19]Read from MH i2c: 01 07 00 42 10 00 00 00 00 00 FF 0F 67 [22:48:19]RasterBufferAndPrint [22:48:19]line Счет N : (1)347782 [22:48:19]line ИНН: 02508201610067 [22:48:19]line Контрольно-Кассовый Чек [22:48:19]line ПРОДАЖА [22:48:19]line ТРК (МРК, ГНК) : 23 [22:48:19]line Товар: 2710124130 [22:48:19]line Аи-92-К-5 [22:48:19]line 7.780 * 64.30 [22:48:19]line = 500.25 [22:48:19]line НДС 12% НСП 1% [22:48:19]line > о реализуемом товаре [22:48:19]line ИТОГО: 500.25 [22:48:19]line НСП 1% : 4.43 [22:48:19]line НДС 12% : 53.12 [22:48:19]line Наличными: 0.00 [22:48:19]line Безнал.: 500.25 [22:48:19]line Место: АЗС № 108 "Партнер Нефть" [22:48:19]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [22:48:19]line СНО: Общий режим [22:48:19]line Чек 296 14.04.2024 22:48 [22:48:19]line Смена: 116 ФФД: 1.0 [22:48:19]line ЗНМ: 0300000027 [22:48:19]line РНМ: 0000138879044617 [22:48:19]line Версия ККМ: 001 [22:48:19]line Платежная система: О! деньги [22:48:19]line ФМ: 0000000000963154 [22:48:19]line ФД: 29386 [22:48:19]line ФПД: 78342542315839 [22:48:19]line 1/tax-web-control/client/api/v1/ticket?date=20240414T224818&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29386&fm=78342542315839&tin=02508201610067®Number=0000138879044617&sum=50025 [22:48:19]OFD Sender: Processing packet 29386 [packets to send 8, broken 7] [22:48:19]ProducePacketName [22:48:19]name=ofd_packets/00029386 [22:48:19]OFD Sender: To server: pG, [22:48:19]CommunicateWithHost lk.salyk.kg:30040 [22:48:19]ConnectInit lk.salyk.kg [22:48:19]written 0, free lines is 4095 [22:48:19]Connected sock=10 [22:48:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 4B A5 07 01 8E 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 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 28 01 00 00 F4 03 04 00 32 5D 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CA 72 00 00 35 04 06 00 47 40 8B 67 D1 3F C2 3C 15 96 CD 77 E5 7E [22:48:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 6C 3C 47 00 64 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 39 36 33 31 35 34 10 04 04 00 CA 72 00 00 F4 03 04 00 D5 07 1C 66 B6 04 01 00 00 23 6C 24 7B D1 4A 98 DB [22:48:19]CommunicateWithHost err = 0 [22:48:19]CheckOFDResponse [22:48:19]1017 (14) - 77093643461234 [22:48:19]1041 (16) - 0000000000963154 [22:48:19]1040 (4) - 29386 [22:48:19]1012 (4) - 14.04.2024 16:44 [22:48:19]1206 (1) - 0 [22:48:19]OFD Sender: Remove packet 29386 [22:48:19]ProducePacketName [22:48:19]name=ofd_packets/00029386 [22:48:19]NVStorageDeleteData [22:48:19]Write to MH i2c: 01 00 00 6B 10 7B [22:48:19]Write i2c OK [22:48:19]MH_I2C_Read... [22:48:19]Read from MH i2c: 01 [22:48:19]MH_I2C_Read... [22:48:19]Read from MH i2c: 01 07 00 [22:48:19]MH_I2C_Read... [22:48:19]Read from MH i2c: 01 07 00 6B 10 00 00 00 00 00 DB 0C 69 [22:48:19]RasterBufferAndPrint [22:48:19]line [22:48:19]line [22:48:19]line [22:48:19]line [22:48:19]line [22:48:19]written 0, free lines is 3299 [22:48:19]MH_Cut [22:48:19]Write to MH i2c: D1 01 00 72 10 01 54 [22:48:19]Write i2c OK [22:48:19]MH_I2C_Read... [22:48:19]Read from MH i2c: D1 [22:48:19]MH_I2C_Read... [22:48:19]Read from MH i2c: D1 01 00 [22:48:19]MH_I2C_Read... [22:48:19]Read from MH i2c: D1 01 00 72 10 00 53 [22:48:19]Write to MH i2c: 01 00 00 73 10 83 [22:48:19]Write i2c OK [22:48:19]MH_I2C_Read... [22:48:20]OFD Sender: No OFD packet to send [22:48:20]*** Cut start [22:48:20]*** Partial cut [22:48:20]*** CUTSNS_PIN = 1 [22:48:20]*** CUTSNS_PIN = 0 [22:48:20]*** Brake cut motor [22:48:21]Read from MH i2c: 01 [22:48:21]MH_I2C_Read... [22:48:21]*** Stop cut motor [22:48:21]*** Cut end [22:48:21]Read from MH i2c: 01 07 00 [22:48:21]MH_I2C_Read... [22:48:21]Read from MH i2c: 01 07 00 73 10 00 00 00 00 00 FF 0F 98 [22:48:21]process_action close_receipt done [22:48:21]requested_data is exist [22:48:21]produce_requested_data [22:48:21]requested_item fm.sn is exist - process it [22:48:21]wFMCommunicate request_size=4 [22:48:21]MH_SAM_APDU [22:48:21]CAPDU: 80 11 00 00 [22:48:21]Write to MH i2c: E2 08 00 74 10 80 11 00 00 00 00 00 00 FE [22:48:21]Write i2c OK [22:48:21]MH_I2C_Read... [22:48:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:48:21]Read from MH i2c: E2 [22:48:21]MH_I2C_Read... [22:48:21]Read from MH i2c: E2 17 00 [22:48:21]MH_I2C_Read... [22:48:21]Read from MH i2c: E2 17 00 74 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 4D [22:48:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:48:21]wFMCommunicate OK [22:48:21]requested_item fd.num is exist - process it [22:48:21]SAM_PROTO_GetFieldsCounters [22:48:21]wFMCommunicate request_size=4 [22:48:21]MH_SAM_APDU [22:48:21]CAPDU: 80 13 00 00 [22:48:21]Write to MH i2c: E2 08 00 75 10 80 13 00 00 00 00 00 00 01 [22:48:21]Write i2c OK [22:48:21]MH_I2C_Read... [22:48:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:48:21]Read from MH i2c: E2 [22:48:21]MH_I2C_Read... [22:48:21]Read from MH i2c: E2 62 00 [22:48:21]MH_I2C_Read... [22:48:21]Read from MH i2c: E2 62 00 75 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 CA 72 00 00 0E 04 04 00 74 00 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 6A [22:48:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 CA 72 00 00 0E 04 04 00 74 00 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 [22:48:21]wFMCommunicate OK [22:48:21]SAM_PROTO_GetFieldsCounters done [22:48:21]requested_item shift.num is exist - process it [22:48:21]requested_item shift.opened is exist - process it [22:48:21]req_shift_opened [22:48:21]FM_GetShiftState [22:48:21]SAM_PROTO_GetShiftState [22:48:21]wFMCommunicate request_size=4 [22:48:21]MH_SAM_APDU [22:48:21]CAPDU: 80 13 01 00 [22:48:21]Write to MH i2c: E2 08 00 76 10 80 13 01 00 00 00 00 00 03 [22:48:21]Write i2c OK [22:48:21]MH_I2C_Read... [22:48:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:48:21]Read from MH i2c: E2 [22:48:21]MH_I2C_Read... [22:48:21]Read from MH i2c: E2 0E 00 [22:48:21]MH_I2C_Read... [22:48:21]Read from MH i2c: E2 0E 00 76 10 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 AF [22:48:21]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [22:48:21]wFMCommunicate OK [22:48:21]SAM_PROTO_GetShiftState done [22:48:21]FM_GetShiftState done [22:48:21]req_shift_opened done [22:48:21]requested_item shift.open_date is exist - process it [22:48:21]req_shift_open_date [22:48:21]req_shift_open_date done [22:48:21]produce_requested_data done [22:48:21]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29386,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [22:48:21]process_action_free close_receipt [22:48:21]json_value_free [22:48:21]json_value_free done [22:48:21]process_json_proto returns [22:48:21]Send response to host [22:48:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29386,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [22:48:21]free response buf [22:48:21]execute_script done [22:48:21]execute_script returns [22:48:21]free content buf [22:48:21]Sock 8.Close socket [22:48:21]Sock 8.Thread stoped [22:48:25]OFD Sender: No OFD packet to send [22:48:30]OFD Sender: No OFD packet to send [22:48:35]OFD Sender: No OFD packet to send [22:48:40]OFD Sender: No OFD packet to send [22:48:45]OFD Sender: No OFD packet to send [22:48:50]OFD Sender: No OFD packet to send [22:48:55]OFD Sender: No OFD packet to send [22:49:00]OFD Sender: No OFD packet to send [22:49:05]OFD Sender: No OFD packet to send [22:49:10]OFD Sender: No OFD packet to send [22:49:15]OFD Sender: No OFD packet to send [22:49:20]OFD Sender: No OFD packet to send [22:49:25]OFD Sender: No OFD packet to send [22:49:30]OFD Sender: No OFD packet to send [22:49:35]OFD Sender: No OFD packet to send [22:49:40]OFD Sender: No OFD packet to send [22:49:45]OFD Sender: No OFD packet to send [22:49:50]OFD Sender: No OFD packet to send [22:49:55]OFD Sender: No OFD packet to send [22:50:00]OFD Sender: No OFD packet to send [22:50:05]OFD Sender: No OFD packet to send [22:50:10]OFD Sender: No OFD packet to send [22:50:15]OFD Sender: No OFD packet to send [22:50:20]OFD Sender: No OFD packet to send [22:50:25]OFD Sender: No OFD packet to send [22:50:30]OFD Sender: No OFD packet to send [22:50:35]OFD Sender: No OFD packet to send [22:50:40]OFD Sender: No OFD packet to send [22:50:45]OFD Sender: No OFD packet to send [22:50:50]OFD Sender: No OFD packet to send [22:50:55]OFD Sender: No OFD packet to send [22:51:00]OFD Sender: No OFD packet to send [22:51:05]OFD Sender: No OFD packet to send [22:51:10]OFD Sender: No OFD packet to send [22:51:15]OFD Sender: No OFD packet to send [22:51:20]OFD Sender: No OFD packet to send [22:51:25]OFD Sender: No OFD packet to send [22:51:30]OFD Sender: No OFD packet to send [22:51:35]OFD Sender: No OFD packet to send [22:51:40]OFD Sender: No OFD packet to send [22:51:45]OFD Sender: No OFD packet to send [22:51:50]OFD Sender: No OFD packet to send [22:51:55]OFD Sender: No OFD packet to send [22:52:00]OFD Sender: No OFD packet to send [22:52:05]OFD Sender: No OFD packet to send [22:52:10]OFD Sender: No OFD packet to send [22:52:15]OFD Sender: No OFD packet to send [22:52:20]OFD Sender: No OFD packet to send [22:52:25]OFD Sender: No OFD packet to send [22:52:30]OFD Sender: No OFD packet to send [22:52:35]OFD Sender: No OFD packet to send [22:52:40]OFD Sender: No OFD packet to send [22:52:45]OFD Sender: No OFD packet to send [22:52:50]OFD Sender: No OFD packet to send [22:52:55]OFD Sender: No OFD packet to send [22:53:00]OFD Sender: No OFD packet to send [22:53:05]OFD Sender: No OFD packet to send [22:53:10]OFD Sender: No OFD packet to send [22:53:15]OFD Sender: No OFD packet to send [22:53:20]OFD Sender: No OFD packet to send [22:53:25]OFD Sender: No OFD packet to send [22:53:30]OFD Sender: No OFD packet to send [22:53:35]OFD Sender: No OFD packet to send [22:53:40]OFD Sender: No OFD packet to send [22:53:45]OFD Sender: No OFD packet to send [22:53:50]OFD Sender: No OFD packet to send [22:53:55]OFD Sender: No OFD packet to send [22:54:00]OFD Sender: No OFD packet to send [22:54:05]OFD Sender: No OFD packet to send [22:54:10]OFD Sender: No OFD packet to send [22:54:15]OFD Sender: No OFD packet to send [22:54:20]OFD Sender: No OFD packet to send [22:54:25]OFD Sender: No OFD packet to send [22:54:30]OFD Sender: No OFD packet to send [22:54:35]OFD Sender: No OFD packet to send [22:54:40]OFD Sender: No OFD packet to send [22:54:45]OFD Sender: No OFD packet to send [22:54:50]OFD Sender: No OFD packet to send [22:54:55]OFD Sender: No OFD packet to send [22:55:00]OFD Sender: No OFD packet to send [22:55:05]OFD Sender: No OFD packet to send [22:55:10]OFD Sender: No OFD packet to send [22:55:15]OFD Sender: No OFD packet to send [22:55:20]OFD Sender: No OFD packet to send [22:55:25]OFD Sender: No OFD packet to send [22:55:30]OFD Sender: No OFD packet to send [22:55:35]OFD Sender: No OFD packet to send [22:55:40]OFD Sender: No OFD packet to send [22:55:45]OFD Sender: No OFD packet to send [22:55:50]OFD Sender: No OFD packet to send [22:55:55]OFD Sender: No OFD packet to send [22:56:00]OFD Sender: No OFD packet to send [22:56:05]OFD Sender: No OFD packet to send [22:56:10]OFD Sender: No OFD packet to send [22:56:15]OFD Sender: No OFD packet to send [22:56:20]OFD Sender: No OFD packet to send [22:56:25]OFD Sender: No OFD packet to send [22:56:30]OFD Sender: No OFD packet to send [22:56:35]OFD Sender: No OFD packet to send [22:56:40]OFD Sender: No OFD packet to send [22:56:45]OFD Sender: No OFD packet to send [22:56:50]OFD Sender: No OFD packet to send [22:56:55]OFD Sender: No OFD packet to send [22:57:00]OFD Sender: No OFD packet to send [22:57:05]OFD Sender: No OFD packet to send [22:57:10]OFD Sender: No OFD packet to send [22:57:15]OFD Sender: No OFD packet to send [22:57:20]OFD Sender: No OFD packet to send [22:57:25]OFD Sender: No OFD packet to send [22:57:30]OFD Sender: No OFD packet to send [22:57:35]OFD Sender: No OFD packet to send [22:57:40]OFD Sender: No OFD packet to send [22:57:45]OFD Sender: No OFD packet to send [22:57:50]OFD Sender: No OFD packet to send [22:57:55]OFD Sender: No OFD packet to send [22:58:00]OFD Sender: No OFD packet to send [22:58:05]OFD Sender: No OFD packet to send [22:58:10]OFD Sender: No OFD packet to send [22:58:15]OFD Sender: No OFD packet to send [22:58:20]OFD Sender: No OFD packet to send [22:58:25]OFD Sender: No OFD packet to send [22:58:30]OFD Sender: No OFD packet to send [22:58:35]OFD Sender: No OFD packet to send [22:58:40]OFD Sender: No OFD packet to send [22:58:45]OFD Sender: No OFD packet to send [22:58:50]OFD Sender: No OFD packet to send [22:58:55]OFD Sender: No OFD packet to send [22:59:00]OFD Sender: No OFD packet to send [22:59:05]OFD Sender: No OFD packet to send [22:59:09]accept exits with 9 [22:59:09]New connection [22:59:09]New thread 3066969444 created [22:59:09]Thread 3067112804 joined [22:59:09]Waiting for new connection... [22:59:09] Sock 9.Parse request [22:59:09]Sock 9.Check first char [22:59:09]Sock 9.First char is OK [22:59:09]request: POST /json_proto HTTP/1.0 [22:59:09]Method: POST [22:59:09]URL: /json_proto [22:59:09]Method is POST - this is cgi request [22:59:09]url: /json_proto [22:59:09]query_string will be loaded in cgi processing [22:59:09]execute_cgi json_proto POST (null) [22:59:09]execute_cgi path=json_proto method=POST [22:59:09]POST find Content-Length [22:59:09]Host: 172.17.33.3:8080 [22:59:09]Content-Length: 685 [22:59:09]Content-Type: application/json [22:59:09] [22:59:09]POST finish read [22:59:09]Found Content-Length = 685 [22:59:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347783", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 41.990, "sum" : 1381.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1410.00, "total" : 1381.00, "payments": [ { "type": 0, "sum" : 1381.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:59:09]execute_script... [22:59: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)347783", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 41.990, "sum" : 1381.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1410.00, "total" : 1381.00, "payments": [ { "type": 0, "sum" : 1381.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:59:09]POST & json_proto [22:59:09]process_json_proto [22:59:09]json parsed OK: [22:59:09]protocol is kg_v1.0 [22:59:09]action value=close_receipt [22:59:09]process_action close_receipt [22:59:09]cmd_close_receipt [22:59:09]MH_GetDate [22:59:09]Write to MH i2c: F0 00 00 77 10 76 [22:59:09]Write i2c OK [22:59:09]MH_I2C_Read... [22:59:09]Read from MH i2c: F0 [22:59:09]MH_I2C_Read... [22:59:09]Read from MH i2c: F0 09 00 [22:59:09]MH_I2C_Read... [22:59:09]Read from MH i2c: F0 09 00 77 10 00 BE 5F 1C 66 23 5B 8F 65 90 [22:59:09]GetLastDocTimeStamp 1713134898 [22:59:09]current date 1713135550 [22:59:09]FM_GetShiftState [22:59:09]SAM_PROTO_GetShiftState [22:59:09]wFMCommunicate request_size=4 [22:59:09]MH_SAM_APDU [22:59:09]CAPDU: 80 13 01 00 [22:59:09]Write to MH i2c: E2 08 00 78 10 80 13 01 00 00 00 00 00 05 [22:59:09]Write i2c OK [22:59:09]MH_I2C_Read... [22:59:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:59:09]Read from MH i2c: E2 [22:59:09]MH_I2C_Read... [22:59:09]Read from MH i2c: E2 0E 00 [22:59:09]MH_I2C_Read... [22:59:09]Read from MH i2c: E2 0E 00 78 10 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 B1 [22:59:09]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [22:59:09]wFMCommunicate OK [22:59:09]SAM_PROTO_GetShiftState done [22:59:09]FM_GetShiftState done [22:59:09]opened in 1713053951 [22:59:09]opened+sec_in_day 1713140351 [22:59:09]quantity*price = 138147 [22:59:09]sum+1 = 138148 [22:59:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 1381.00 Внесено: 1410.00 СДАЧА: 29.00 НСП 1% : 12.22 НДС 12% : 146.70 Наличными: 1381.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 297 14.04.2024 22:59 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29387 ФПД: 192664413407187 1/tax-web-control/client/api/v1/ticket?date=20240414T225910&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29387&fm=192664413407187&tin=02508201610067®Number=0000138879044617&sum=138100 [22:59:10]StoreToDocumentArchive [22:59:10]shift 116 fd 29387 [22:59:10]save to /storage/0116/doc_00029387 [22:59:10]save last doc name /storage/0116/doc_00029387 to /storage/kkm_last_doc_name [22:59:10]save OK [22:59:10]Clear old archive folders... [22:59:10]ProcessDocumentItem done err = 0, tmpTLVsize=250 [22:59:10]tlvbuf is 0020EA40 [22:59:10]SAM_PROTO_ClearQueue [22:59:10]wFMCommunicate request_size=4 [22:59:10]MH_SAM_APDU [22:59:10]CAPDU: 80 09 00 00 [22:59:10]Write to MH i2c: E2 08 00 85 10 80 09 00 00 00 00 00 00 07 [22:59:10]Write i2c OK [22:59:10]MH_I2C_Read... [22:59:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:59:10]Read from MH i2c: E2 [22:59:10]MH_I2C_Read... [22:59:10]Read from MH i2c: E2 03 00 [22:59:10]MH_I2C_Read... [22:59:10]Read from MH i2c: E2 03 00 85 10 00 90 00 09 [22:59:10]RAPDU: 90 00 [22:59:10]wFMCommunicate OK [22:59:10]SAM_PROTO_ClearQueue done [22:59:10]KKMCreateOFDPacket [22:59:10]OFDProtocolAddRootSTLVToBuf [22:59:10]FM_MakeSignedData [22:59:10]FM_MakeSignedData [22:59:10]SAM_PROTO_SignData [22:59:10]wFMCommunicate request_size=4 [22:59:10]MH_SAM_APDU [22:59:10]CAPDU: 80 0D 01 02 [22:59:10]Write to MH i2c: E2 08 00 86 10 80 0D 01 02 00 00 00 00 0F [22:59:10]Write i2c OK [22:59:10]MH_I2C_Read... [22:59:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:59:10]Read from MH i2c: E2 [22:59:10]MH_I2C_Read... [22:59:10]Read from MH i2c: E2 03 00 [22:59:10]MH_I2C_Read... [22:59:10]Read from MH i2c: E2 03 00 86 10 00 90 00 0A [22:59:10]RAPDU: 90 00 [22:59:10]wFMCommunicate OK [22:59:10]wFMCommunicate request_size=255 [22:59:10]MH_SAM_APDU [22:59:10]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 06 A4 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 A3 1B 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 1B 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C6 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 39 00 00 00 00 07 04 06 00 74 1B 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 BE 5F 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CB 72 00 00 35 04 06 00 AF 3A [22:59:10]Write to MH i2c: E2 02 01 87 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 06 A4 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 A3 1B 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 1B 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C6 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 39 00 00 00 00 07 04 06 00 74 1B 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 BE 5F 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CB 72 00 00 35 04 06 00 AF 3A 00 00 0C [22:59:10]Write i2c OK [22:59:10]MH_I2C_Read... [22:59:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:59:10]Read from MH i2c: E2 [22:59:10]MH_I2C_Read... [22:59:10]Read from MH i2c: E2 03 00 [22:59:10]MH_I2C_Read... [22:59:10]Read from MH i2c: E2 03 00 87 10 00 90 00 0B [22:59:10]RAPDU: 90 00 [22:59:10]wFMCommunicate OK [22:59:10]wFMCommunicate request_size=9 [22:59:10]MH_SAM_APDU [22:59:10]CAPDU: 80 0D 02 02 04 2D EC 07 D3 [22:59:10]Write to MH i2c: E2 0C 00 88 10 80 0D 02 02 04 00 2D EC 07 D3 00 00 0D [22:59:10]Write i2c OK [22:59:10]MH_I2C_Read... [22:59:10]OFD Sender: No OFD packet to send [22:59:10]Read from MH i2c: E2 [22:59:10]MH_I2C_Read... [22:59:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:59:10]Read from MH i2c: E2 03 00 [22:59:10]MH_I2C_Read... [22:59:10]Read from MH i2c: E2 03 00 88 10 00 90 00 0C [22:59:10]RAPDU: 90 00 [22:59:10]wFMCommunicate OK [22:59:10]wFMCommunicate request_size=4 [22:59:10]MH_SAM_APDU [22:59:10]CAPDU: 80 0D 03 02 [22:59:10]Write to MH i2c: E2 08 00 89 10 80 0D 03 02 00 00 00 00 14 [22:59:10]Write i2c OK [22:59:10]MH_I2C_Read... [22:59:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:59:10]Read from MH i2c: E2 [22:59:10]MH_I2C_Read... [22:59:10]Read from MH i2c: E2 0B 00 [22:59:10]MH_I2C_Read... [22:59:10]Read from MH i2c: E2 0B 00 89 10 00 9E 06 FC 8B 26 CC 85 B2 90 00 69 [22:59:10]RAPDU: 9E 06 FC 8B 26 CC 85 B2 90 00 [22:59:10]wFMCommunicate OK [22:59:10]SAM_PROTO_SignData done [22:59:10]FM_MakeSignedData done [22:59:10]CreateOFDProtocolMessage [22:59:10]wFMCommunicate request_size=4 [22:59:10]MH_SAM_APDU [22:59:10]CAPDU: 80 11 00 00 [22:59:10]Write to MH i2c: E2 08 00 8A 10 80 11 00 00 00 00 00 00 14 [22:59:10]Write i2c OK [22:59:10]MH_I2C_Read... [22:59:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:59:10]Read from MH i2c: E2 [22:59:10]MH_I2C_Read... [22:59:10]Read from MH i2c: E2 17 00 [22:59:10]MH_I2C_Read... [22:59:10]Read from MH i2c: E2 17 00 8A 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 63 [22:59:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:59:10]wFMCommunicate OK [22:59:10]CreateOFDProtocolMessage done [22:59:10]OFDSenderStorePacket 29387 [22:59:10]StoreOFDPacket docnum=29387 [22:59:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 B2 4C 06 01 20 DD 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 06 A4 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 A3 1B 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 1B 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C6 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 39 00 00 00 00 07 04 06 00 74 1B 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 BE 5F 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CB 72 00 00 35 04 06 00 AF 3A 2D EC 07 D3 9E 06 FC 8B 26 CC 85 B2 [22:59:10]CheckFolder [22:59:10]dirname=/storage/ofd_packets [22:59:10]CheckFolder done [22:59:10]ProducePacketName [22:59:10]name=ofd_packets/00029387 [22:59:10]NVStorageSaveData ofd_packets/00029387 [22:59:10]File name is /storage/ofd_packets/00029387 [22:59:10]Write 300 bytes [22:59:10]NVStorageSaveData done [22:59:10]OFDSenderStorePacket done [22:59:10]KKMCreateOFDPacket done [22:59:10]NVStorageSaveData kkm_last_timestamp [22:59:10]File name is /storage/kkm_last_timestamp [22:59:10]Write 4 bytes [22:59:10]NVStorageSaveData done [22:59:10]ExternCall_PrintAddStr [22:59:10]wPrintStart [22:59:10]Write to MH i2c: 01 00 00 8B 10 9B [22:59:10]Write i2c OK [22:59:10]MH_I2C_Read... [22:59:10]Read from MH i2c: 01 [22:59:10]MH_I2C_Read... [22:59:10]Read from MH i2c: 01 07 00 [22:59:10]MH_I2C_Read... [22:59:10]Read from MH i2c: 01 07 00 8B 10 00 00 00 00 00 FF 0F B0 [22:59:10]RasterBufferAndPrint [22:59:10]line Счет N : (1)347783 [22:59:10]line ИНН: 02508201610067 [22:59:10]line Контрольно-Кассовый Чек [22:59:10]line ПРОДАЖА [22:59:10]line ТРК (МРК, ГНК) : 71 [22:59:10]line Товар: 2711129700 [22:59:10]line ГАЗ-К-5 [22:59:10]line 41.990 * 32.90 [22:59:10]line = 1381.47 [22:59:10]line НДС 12% НСП 1% [22:59:10]line > о реализуемом товаре [22:59:10]line ОКРУГЛЕНИЕ: -0.47 [22:59:10]line ИТОГО: 1381.00 [22:59:10]line Внесено: 1410.00 [22:59:10]line СДАЧА: 29.00 [22:59:10]line НСП 1% : 12.22 [22:59:10]line НДС 12% : 146.70 [22:59:10]line Наличными: 1381.00 [22:59:10]line Безнал.: 0.00 [22:59:10]line Место: АЗС № 108 "Партнер Нефть" [22:59:10]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [22:59:10]line СНО: Общий режим [22:59:10]line Чек 297 14.04.2024 22:59 [22:59:10]line Смена: 116 ФФД: 1.0 [22:59:10]line ЗНМ: 0300000027 [22:59:10]line РНМ: 0000138879044617 [22:59:10]line Версия ККМ: 001 [22:59:10]line ФМ: 0000000000963154 [22:59:10]line ФД: 29387 [22:59:10]line ФПД: 192664413407187 [22:59:11]line 1/tax-web-control/client/api/v1/ticket?date=20240414T225910&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29387&fm=192664413407187&tin=02508201610067®Number=0000138879044617&sum=138100 [22:59:11]OFD Sender: Processing packet 29387 [packets to send 8, broken 7] [22:59:11]ProducePacketName [22:59:11]name=ofd_packets/00029387 [22:59:11]OFD Sender: To server: pG, [22:59:11]CommunicateWithHost lk.salyk.kg:30040 [22:59:11]ConnectInit lk.salyk.kg [22:59:11]written 0, free lines is 4095 [22:59:11]Connected sock=10 [22:59:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 B2 4C 06 01 20 DD 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 06 A4 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 A3 1B 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 1B 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C6 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 39 00 00 00 00 07 04 06 00 74 1B 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 BE 5F 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CB 72 00 00 35 04 06 00 AF 3A 2D EC 07 D3 9E 06 FC 8B 26 CC 85 B2 [22:59:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 A6 F9 47 00 0F B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CB 72 00 00 F4 03 04 00 61 0A 1C 66 B6 04 01 00 00 CC A2 69 26 33 E2 37 D6 [22:59:11]CommunicateWithHost err = 0 [22:59:11]CheckOFDResponse [22:59:11]1017 (14) - 77093643461234 [22:59:11]1041 (16) - 0000000000963154 [22:59:11]1040 (4) - 29387 [22:59:11]1012 (4) - 14.04.2024 16:54 [22:59:11]1206 (1) - 0 [22:59:11]OFD Sender: Remove packet 29387 [22:59:11]ProducePacketName [22:59:11]name=ofd_packets/00029387 [22:59:11]NVStorageDeleteData [22:59:11]Write to MH i2c: 01 00 00 B5 10 C5 [22:59:11]Write i2c OK [22:59:11]MH_I2C_Read... [22:59:11]Read from MH i2c: 01 [22:59:11]MH_I2C_Read... [22:59:11]Read from MH i2c: 01 07 00 [22:59:11]MH_I2C_Read... [22:59:11]Read from MH i2c: 01 07 00 B5 10 00 00 00 00 00 BB 0C 93 [22:59:11]RasterBufferAndPrint [22:59:11]line [22:59:11]line [22:59:11]line [22:59:11]line [22:59:11]line [22:59:11]written 0, free lines is 3265 [22:59:11]MH_Cut [22:59:11]Write to MH i2c: D1 01 00 BC 10 01 9E [22:59:11]Write i2c OK [22:59:11]MH_I2C_Read... [22:59:11]Read from MH i2c: D1 [22:59:11]MH_I2C_Read... [22:59:11]Read from MH i2c: D1 01 00 [22:59:11]MH_I2C_Read... [22:59:11]Read from MH i2c: D1 01 00 BC 10 00 9D [22:59:11]Write to MH i2c: 01 00 00 BD 10 CD [22:59:11]Write i2c OK [22:59:11]MH_I2C_Read... [22:59:11]OFD Sender: No OFD packet to send [22:59:12]*** Cut start [22:59:12]*** Partial cut [22:59:12]*** CUTSNS_PIN = 1 [22:59:12]*** CUTSNS_PIN = 0 [22:59:12]*** Brake cut motor [22:59:13]Read from MH i2c: 01 [22:59:13]MH_I2C_Read... [22:59:13]Read from MH i2c: 01 07 00 [22:59:13]MH_I2C_Read... [22:59:13]Read from MH i2c: 01 07 00 BD 10 00 00 00 00 00 FF 0F E2 [22:59:13]process_action close_receipt done [22:59:13]requested_data is exist [22:59:13]produce_requested_data [22:59:13]requested_item fm.sn is exist - process it [22:59:13]wFMCommunicate request_size=4 [22:59:13]MH_SAM_APDU [22:59:13]CAPDU: 80 11 00 00 [22:59:13]Write to MH i2c: E2 08 00 BE 10 80 11 00 00 00 00 00 00 48 [22:59:13]int [22:59:13]*** Stop cut motor [22:59:13]*** Cut end [22:59:13]*** FLAG_PRN_PAP1 set [22:59:13]*** FLAG_PRN_PAP2 set [22:59:13]Write i2c OK [22:59:13]MH_I2C_Read... [22:59:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:59:13]Read from MH i2c: E2 [22:59:13]MH_I2C_Read... [22:59:13]Read from MH i2c: E2 17 00 [22:59:13]MH_I2C_Read... [22:59:13]Read from MH i2c: E2 17 00 BE 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 97 [22:59:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:59:13]wFMCommunicate OK [22:59:13]requested_item fd.num is exist - process it [22:59:13]SAM_PROTO_GetFieldsCounters [22:59:13]wFMCommunicate request_size=4 [22:59:13]MH_SAM_APDU [22:59:13]CAPDU: 80 13 00 00 [22:59:13]Write to MH i2c: E2 08 00 BF 10 80 13 00 00 00 00 00 00 4B [22:59:13]Write i2c OK [22:59:13]MH_I2C_Read... [22:59:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:59:13]Read from MH i2c: E2 [22:59:13]MH_I2C_Read... [22:59:13]Read from MH i2c: E2 62 00 [22:59:13]MH_I2C_Read... [22:59:13]Read from MH i2c: E2 62 00 BF 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 CB 72 00 00 0E 04 04 00 74 00 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 B8 [22:59:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 CB 72 00 00 0E 04 04 00 74 00 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 [22:59:13]wFMCommunicate OK [22:59:13]SAM_PROTO_GetFieldsCounters done [22:59:13]requested_item shift.num is exist - process it [22:59:13]requested_item shift.opened is exist - process it [22:59:13]req_shift_opened [22:59:13]FM_GetShiftState [22:59:13]SAM_PROTO_GetShiftState [22:59:13]wFMCommunicate request_size=4 [22:59:13]MH_SAM_APDU [22:59:13]CAPDU: 80 13 01 00 [22:59:13]Write to MH i2c: 01 00 00 C0 10 D0 [22:59:13]Write i2c OK [22:59:13]MH_I2C_Read... [22:59:13]Read from MH i2c: 01 [22:59:13]MH_I2C_Read... [22:59:13]Read from MH i2c: 01 07 00 [22:59:13]MH_I2C_Read... [22:59:13]Read from MH i2c: 01 07 00 C0 10 00 03 00 00 00 FF 0F E8 [22:59:13]state=0 [22:59:13]No paper [22:59:13]Cover opened [22:59:13]Write to MH i2c: E2 08 00 C1 10 80 13 01 00 00 00 00 00 4E [22:59:13]Write i2c OK [22:59:13]MH_I2C_Read... [22:59:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:59:13]Read from MH i2c: E2 [22:59:13]MH_I2C_Read... [22:59:13]Read from MH i2c: E2 0E 00 [22:59:13]MH_I2C_Read... [22:59:13]Read from MH i2c: E2 0E 00 C1 10 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 FA [22:59:13]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [22:59:13]wFMCommunicate OK [22:59:13]SAM_PROTO_GetShiftState done [22:59:13]FM_GetShiftState done [22:59:13]req_shift_opened done [22:59:13]requested_item shift.open_date is exist - process it [22:59:13]req_shift_open_date [22:59:13]req_shift_open_date done [22:59:13]produce_requested_data done [22:59:13]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29387,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [22:59:13]process_action_free close_receipt [22:59:13]json_value_free [22:59:13]json_value_free done [22:59:13]process_json_proto returns [22:59:13]Send response to host [22:59:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29387,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [22:59:13]free response buf [22:59:13]execute_script done [22:59:13]execute_script returns [22:59:13]free content buf [22:59:13]Sock 9.Close socket [22:59:13]Sock 9.Thread stoped [22:59:15]int [22:59:15]Write to MH i2c: 01 00 00 C2 10 D2 [22:59:15]*** FLAG_PRN_PAP2 reset [22:59:15]Write i2c OK [22:59:15]MH_I2C_Read... [22:59:15]Read from MH i2c: 01 [22:59:15]MH_I2C_Read... [22:59:15]Read from MH i2c: 01 07 00 [22:59:15]MH_I2C_Read... [22:59:15]Read from MH i2c: 01 07 00 C2 10 00 01 00 00 00 FF 0F E8 [22:59:15]state=3 [22:59:15]No paper [22:59:15]Cover closed [22:59:16]int [22:59:16]Write to MH i2c: 01 00 00 C3 10 D3 [22:59:16]*** FLAG_PRN_PAP2 set [22:59:16]Write i2c OK [22:59:16]MH_I2C_Read... [22:59:16]Read from MH i2c: 01 [22:59:16]MH_I2C_Read... [22:59:16]Read from MH i2c: 01 07 00 [22:59:16]MH_I2C_Read... [22:59:16]Read from MH i2c: 01 07 00 C3 10 00 03 00 00 00 FF 0F EB [22:59:16]state=0 [22:59:16]No paper [22:59:16]Cover opened [22:59:17]OFD Sender: No OFD packet to send [22:59:21]Write to MH i2c: 01 00 00 C4 10 D4 [22:59:21]Write i2c OK [22:59:21]MH_I2C_Read... [22:59:21]Read from MH i2c: 01 [22:59:21]MH_I2C_Read... [22:59:21]Read from MH i2c: 01 07 00 [22:59:21]MH_I2C_Read... [22:59:21]Read from MH i2c: 01 07 00 C4 10 00 03 00 00 00 FF 0F EC [22:59:21]state=3 [22:59:21]No paper [22:59:21]Cover opened [22:59:22]OFD Sender: No OFD packet to send [22:59:26]Write to MH i2c: 01 00 00 C5 10 D5 [22:59:26]Write i2c OK [22:59:26]MH_I2C_Read... [22:59:26]Read from MH i2c: 01 [22:59:26]MH_I2C_Read... [22:59:26]Read from MH i2c: 01 07 00 [22:59:26]MH_I2C_Read... [22:59:26]Read from MH i2c: 01 07 00 C5 10 00 03 00 00 00 FF 0F ED [22:59:26]state=3 [22:59:26]No paper [22:59:26]Cover opened [22:59:27]OFD Sender: No OFD packet to send [22:59:31]Write to MH i2c: 01 00 00 C6 10 D6 [22:59:31]Write i2c OK [22:59:31]MH_I2C_Read... [22:59:31]Read from MH i2c: 01 [22:59:31]MH_I2C_Read... [22:59:31]Read from MH i2c: 01 07 00 [22:59:31]MH_I2C_Read... [22:59:31]Read from MH i2c: 01 07 00 C6 10 00 03 00 00 00 FF 0F EE [22:59:31]state=3 [22:59:31]No paper [22:59:31]Cover opened [22:59:32]OFD Sender: No OFD packet to send [22:59:36]Write to MH i2c: 01 00 00 C7 10 D7 [22:59:36]Write i2c OK [22:59:36]MH_I2C_Read... [22:59:36]Read from MH i2c: 01 [22:59:36]MH_I2C_Read... [22:59:36]Read from MH i2c: 01 07 00 [22:59:36]MH_I2C_Read... [22:59:36]Read from MH i2c: 01 07 00 C7 10 00 03 00 00 00 FF 0F EF [22:59:36]state=3 [22:59:36]No paper [22:59:36]Cover opened [22:59:37]OFD Sender: No OFD packet to send [22:59:41]Write to MH i2c: 01 00 00 C8 10 D8 [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 C8 10 00 03 00 00 00 FF 0F F0 [22:59:41]state=3 [22:59:41]No paper [22:59:41]Cover opened [22:59:42]OFD Sender: No OFD packet to send [22:59:46]Write to MH i2c: 01 00 00 C9 10 D9 [22:59:46]Write i2c OK [22:59:46]MH_I2C_Read... [22:59:46]Read from MH i2c: 01 [22:59:46]MH_I2C_Read... [22:59:46]Read from MH i2c: 01 07 00 [22:59:46]MH_I2C_Read... [22:59:46]Read from MH i2c: 01 07 00 C9 10 00 03 00 00 00 FF 0F F1 [22:59:46]state=3 [22:59:46]No paper [22:59:46]Cover opened [22:59:47]OFD Sender: No OFD packet to send [22:59:51]Write to MH i2c: 01 00 00 CA 10 DA [22:59:51]Write i2c OK [22:59:51]MH_I2C_Read... [22:59:51]Read from MH i2c: 01 [22:59:51]MH_I2C_Read... [22:59:51]Read from MH i2c: 01 07 00 [22:59:51]MH_I2C_Read... [22:59:51]Read from MH i2c: 01 07 00 CA 10 00 03 00 00 00 FF 0F F2 [22:59:51]state=3 [22:59:51]No paper [22:59:51]Cover opened [22:59:52]OFD Sender: No OFD packet to send [22:59:56]Write to MH i2c: 01 00 00 CB 10 DB [22:59:56]Write i2c OK [22:59:56]MH_I2C_Read... [22:59:56]Read from MH i2c: 01 [22:59:56]MH_I2C_Read... [22:59:56]Read from MH i2c: 01 07 00 [22:59:56]MH_I2C_Read... [22:59:56]Read from MH i2c: 01 07 00 CB 10 00 03 00 00 00 FF 0F F3 [22:59:56]state=3 [22:59:56]No paper [22:59:56]Cover opened [22:59:57]OFD Sender: No OFD packet to send [23:00:01]Write to MH i2c: 01 00 00 CC 10 DC [23:00:01]Write i2c OK [23:00:01]MH_I2C_Read... [23:00:01]Read from MH i2c: 01 [23:00:01]MH_I2C_Read... [23:00:01]Read from MH i2c: 01 07 00 [23:00:01]MH_I2C_Read... [23:00:01]Read from MH i2c: 01 07 00 CC 10 00 03 00 00 00 FF 0F F4 [23:00:01]state=3 [23:00:01]No paper [23:00:01]Cover opened [23:00:02]OFD Sender: No OFD packet to send [23:00:06]Write to MH i2c: 01 00 00 CD 10 DD [23:00:06]Write i2c OK [23:00:06]MH_I2C_Read... [23:00:06]Read from MH i2c: 01 [23:00:06]MH_I2C_Read... [23:00:06]Read from MH i2c: 01 07 00 [23:00:06]MH_I2C_Read... [23:00:06]Read from MH i2c: 01 07 00 CD 10 00 03 00 00 00 FF 0F F5 [23:00:06]state=3 [23:00:06]No paper [23:00:06]Cover opened [23:00:07]OFD Sender: No OFD packet to send [23:00:11]Write to MH i2c: 01 00 00 CE 10 DE [23:00:11]Write i2c OK [23:00:11]MH_I2C_Read... [23:00:11]Read from MH i2c: 01 [23:00:11]MH_I2C_Read... [23:00:11]Read from MH i2c: 01 07 00 [23:00:11]MH_I2C_Read... [23:00:11]Read from MH i2c: 01 07 00 CE 10 00 03 00 00 00 FF 0F F6 [23:00:11]state=3 [23:00:11]No paper [23:00:11]Cover opened [23:00:12]OFD Sender: No OFD packet to send [23:00:16]Write to MH i2c: 01 00 00 CF 10 DF [23:00:16]Write i2c OK [23:00:16]MH_I2C_Read... [23:00:16]Read from MH i2c: 01 [23:00:16]MH_I2C_Read... [23:00:16]Read from MH i2c: 01 07 00 [23:00:16]MH_I2C_Read... [23:00:16]Read from MH i2c: 01 07 00 CF 10 00 03 00 00 00 FF 0F F7 [23:00:16]state=3 [23:00:16]No paper [23:00:16]Cover opened [23:00:17]OFD Sender: No OFD packet to send [23:00:21]Write to MH i2c: 01 00 00 D0 10 E0 [23:00:21]Write i2c OK [23:00:21]MH_I2C_Read... [23:00:21]Read from MH i2c: 01 [23:00:21]MH_I2C_Read... [23:00:21]Read from MH i2c: 01 07 00 [23:00:21]MH_I2C_Read... [23:00:21]Read from MH i2c: 01 07 00 D0 10 00 03 00 00 00 FF 0F F8 [23:00:21]state=3 [23:00:21]No paper [23:00:21]Cover opened [23:00:22]OFD Sender: No OFD packet to send [23:00:26]Write to MH i2c: 01 00 00 D1 10 E1 [23:00:26]Write i2c OK [23:00:26]MH_I2C_Read... [23:00:26]Read from MH i2c: 01 [23:00:26]MH_I2C_Read... [23:00:26]Read from MH i2c: 01 07 00 [23:00:26]MH_I2C_Read... [23:00:26]Read from MH i2c: 01 07 00 D1 10 00 03 00 00 00 FF 0F F9 [23:00:26]state=3 [23:00:26]No paper [23:00:26]Cover opened [23:00:27]OFD Sender: No OFD packet to send [23:00:31]Write to MH i2c: 01 00 00 D2 10 E2 [23:00:31]Write i2c OK [23:00:31]MH_I2C_Read... [23:00:31]Read from MH i2c: 01 [23:00:31]MH_I2C_Read... [23:00:31]Read from MH i2c: 01 07 00 [23:00:31]MH_I2C_Read... [23:00:31]Read from MH i2c: 01 07 00 D2 10 00 03 00 00 00 FF 0F FA [23:00:31]state=3 [23:00:31]No paper [23:00:31]Cover opened [23:00:32]OFD Sender: No OFD packet to send [23:00:36]Write to MH i2c: 01 00 00 D3 10 E3 [23:00:36]Write i2c OK [23:00:36]MH_I2C_Read... [23:00:36]Read from MH i2c: 01 [23:00:36]MH_I2C_Read... [23:00:36]Read from MH i2c: 01 07 00 [23:00:36]MH_I2C_Read... [23:00:36]Read from MH i2c: 01 07 00 D3 10 00 03 00 00 00 FF 0F FB [23:00:36]state=3 [23:00:36]No paper [23:00:36]Cover opened [23:00:37]OFD Sender: No OFD packet to send [23:00:41]Write to MH i2c: 01 00 00 D4 10 E4 [23:00:41]Write i2c OK [23:00:41]MH_I2C_Read... [23:00:41]Read from MH i2c: 01 [23:00:41]MH_I2C_Read... [23:00:41]Read from MH i2c: 01 07 00 [23:00:41]MH_I2C_Read... [23:00:41]Read from MH i2c: 01 07 00 D4 10 00 03 00 00 00 FF 0F FC [23:00:41]state=3 [23:00:41]No paper [23:00:41]Cover opened [23:00:42]OFD Sender: No OFD packet to send [23:00:46]Write to MH i2c: 01 00 00 D5 10 E5 [23:00:46]Write i2c OK [23:00:46]MH_I2C_Read... [23:00:46]Read from MH i2c: 01 [23:00:46]MH_I2C_Read... [23:00:46]Read from MH i2c: 01 07 00 [23:00:46]MH_I2C_Read... [23:00:46]Read from MH i2c: 01 07 00 D5 10 00 03 00 00 00 FF 0F FD [23:00:46]state=3 [23:00:46]No paper [23:00:46]Cover opened [23:00:47]OFD Sender: No OFD packet to send [23:00:51]Write to MH i2c: 01 00 00 D6 10 E6 [23:00:51]Write i2c OK [23:00:51]MH_I2C_Read... [23:00:51]Read from MH i2c: 01 [23:00:51]MH_I2C_Read... [23:00:51]Read from MH i2c: 01 07 00 [23:00:51]MH_I2C_Read... [23:00:51]Read from MH i2c: 01 07 00 D6 10 00 03 00 00 00 FF 0F FE [23:00:51]state=3 [23:00:51]No paper [23:00:51]Cover opened [23:00:52]OFD Sender: No OFD packet to send [23:00:54]int [23:00:54]Write to MH i2c: 01 00 00 D7 10 E7 [23:00:54]*** FLAG_PRN_PAP2 reset [23:00:54]Write i2c OK [23:00:54]MH_I2C_Read... [23:00:54]Read from MH i2c: 01 [23:00:54]MH_I2C_Read... [23:00:54]Read from MH i2c: 01 07 00 [23:00:54]MH_I2C_Read... [23:00:54]Read from MH i2c: 01 07 00 D7 10 00 01 00 00 00 FF 0F FD [23:00:54]state=3 [23:00:54]No paper [23:00:54]Cover closed [23:00:54]int [23:00:54]Write to MH i2c: 01 00 00 D8 10 E8 [23:00:54]*** FLAG_PRN_PAP1 reset [23:00:54]Write i2c OK [23:00:54]MH_I2C_Read... [23:00:54]Read from MH i2c: 01 [23:00:54]MH_I2C_Read... [23:00:54]Read from MH i2c: 01 07 00 [23:00:54]MH_I2C_Read... [23:00:54]Read from MH i2c: 01 07 00 D8 10 00 00 00 00 00 FF 0F FD [23:00:54]state=0 [23:00:57]OFD Sender: No OFD packet to send [23:01:02]OFD Sender: No OFD packet to send [23:01:07]OFD Sender: No OFD packet to send [23:01:12]OFD Sender: No OFD packet to send [23:01:17]OFD Sender: No OFD packet to send [23:01:22]OFD Sender: No OFD packet to send [23:01:27]OFD Sender: No OFD packet to send [23:01:32]OFD Sender: No OFD packet to send [23:01:37]OFD Sender: No OFD packet to send [23:01:42]OFD Sender: No OFD packet to send [23:01:47]OFD Sender: No OFD packet to send [23:01:52]OFD Sender: No OFD packet to send [23:01:57]OFD Sender: No OFD packet to send [23:02:02]OFD Sender: No OFD packet to send [23:02:07]OFD Sender: No OFD packet to send [23:02:12]OFD Sender: No OFD packet to send [23:02:17]OFD Sender: No OFD packet to send [23:02:22]OFD Sender: No OFD packet to send [23:02:27]OFD Sender: No OFD packet to send [23:02:32]OFD Sender: No OFD packet to send [23:02:37]OFD Sender: No OFD packet to send [23:02:42]OFD Sender: No OFD packet to send [23:02:47]OFD Sender: No OFD packet to send [23:02:52]OFD Sender: No OFD packet to send [23:02:57]OFD Sender: No OFD packet to send [23:03:02]OFD Sender: No OFD packet to send [23:03:07]OFD Sender: No OFD packet to send [23:03:12]OFD Sender: No OFD packet to send [23:03:17]OFD Sender: No OFD packet to send [23:03:22]OFD Sender: No OFD packet to send [23:03:27]OFD Sender: No OFD packet to send [23:03:32]OFD Sender: No OFD packet to send [23:03:37]OFD Sender: No OFD packet to send [23:03:42]OFD Sender: No OFD packet to send [23:03:47]OFD Sender: No OFD packet to send [23:03:52]OFD Sender: No OFD packet to send [23:03:57]OFD Sender: No OFD packet to send [23:04:02]OFD Sender: No OFD packet to send [23:04:07]OFD Sender: No OFD packet to send [23:04:12]OFD Sender: No OFD packet to send [23:04:17]OFD Sender: No OFD packet to send [23:04:22]OFD Sender: No OFD packet to send [23:04:27]OFD Sender: No OFD packet to send [23:04:32]OFD Sender: No OFD packet to send [23:04:37]OFD Sender: No OFD packet to send [23:04:42]OFD Sender: No OFD packet to send [23:04:47]OFD Sender: No OFD packet to send [23:04:52]OFD Sender: No OFD packet to send [23:04:57]OFD Sender: No OFD packet to send [23:05:02]OFD Sender: No OFD packet to send [23:05:07]OFD Sender: No OFD packet to send [23:05:12]OFD Sender: No OFD packet to send [23:05:17]OFD Sender: No OFD packet to send [23:05:22]OFD Sender: No OFD packet to send [23:05:27]OFD Sender: No OFD packet to send [23:05:32]OFD Sender: No OFD packet to send [23:05:37]OFD Sender: No OFD packet to send [23:05:42]OFD Sender: No OFD packet to send [23:05:47]OFD Sender: No OFD packet to send [23:05:52]OFD Sender: No OFD packet to send [23:05:57]OFD Sender: No OFD packet to send [23:06:02]OFD Sender: No OFD packet to send [23:06:07]OFD Sender: No OFD packet to send [23:06:12]OFD Sender: No OFD packet to send [23:06:17]OFD Sender: No OFD packet to send [23:06:22]OFD Sender: No OFD packet to send [23:06:27]OFD Sender: No OFD packet to send [23:06:32]OFD Sender: No OFD packet to send [23:06:37]OFD Sender: No OFD packet to send [23:06:42]OFD Sender: No OFD packet to send [23:06:47]OFD Sender: No OFD packet to send [23:06:52]OFD Sender: No OFD packet to send [23:06:57]OFD Sender: No OFD packet to send [23:07:02]OFD Sender: No OFD packet to send [23:07:07]OFD Sender: No OFD packet to send [23:07:12]OFD Sender: No OFD packet to send [23:07:17]OFD Sender: No OFD packet to send [23:07:22]OFD Sender: No OFD packet to send [23:07:27]OFD Sender: No OFD packet to send [23:07:32]OFD Sender: No OFD packet to send [23:07:37]OFD Sender: No OFD packet to send [23:07:42]OFD Sender: No OFD packet to send [23:07:47]OFD Sender: No OFD packet to send [23:07:52]OFD Sender: No OFD packet to send [23:07:57]OFD Sender: No OFD packet to send [23:08:02]OFD Sender: No OFD packet to send [23:08:07]OFD Sender: No OFD packet to send [23:08:12]OFD Sender: No OFD packet to send [23:08:17]OFD Sender: No OFD packet to send [23:08:22]OFD Sender: No OFD packet to send [23:08:27]OFD Sender: No OFD packet to send [23:08:32]OFD Sender: No OFD packet to send [23:08:37]OFD Sender: No OFD packet to send [23:08:42]OFD Sender: No OFD packet to send [23:08:47]OFD Sender: No OFD packet to send [23:08:52]OFD Sender: No OFD packet to send [23:08:57]OFD Sender: No OFD packet to send [23:09:02]OFD Sender: No OFD packet to send [23:09:07]OFD Sender: No OFD packet to send [23:09:12]OFD Sender: No OFD packet to send [23:09:17]OFD Sender: No OFD packet to send [23:09:22]OFD Sender: No OFD packet to send [23:09:27]OFD Sender: No OFD packet to send [23:09:32]OFD Sender: No OFD packet to send [23:09:37]OFD Sender: No OFD packet to send [23:09:42]OFD Sender: No OFD packet to send [23:09:47]OFD Sender: No OFD packet to send [23:09:52]OFD Sender: No OFD packet to send [23:09:57]OFD Sender: No OFD packet to send [23:10:02]OFD Sender: No OFD packet to send [23:10:07]OFD Sender: No OFD packet to send [23:10:12]OFD Sender: No OFD packet to send [23:10:17]OFD Sender: No OFD packet to send [23:10:22]OFD Sender: No OFD packet to send [23:10:27]OFD Sender: No OFD packet to send [23:10:32]OFD Sender: No OFD packet to send [23:10:37]OFD Sender: No OFD packet to send [23:10:42]OFD Sender: No OFD packet to send [23:10:47]OFD Sender: No OFD packet to send [23:10:52]OFD Sender: No OFD packet to send [23:10:57]OFD Sender: No OFD packet to send [23:11:02]OFD Sender: No OFD packet to send [23:11:07]OFD Sender: No OFD packet to send [23:11:12]OFD Sender: No OFD packet to send [23:11:17]OFD Sender: No OFD packet to send [23:11:22]OFD Sender: No OFD packet to send [23:11:27]OFD Sender: No OFD packet to send [23:11:32]OFD Sender: No OFD packet to send [23:11:37]OFD Sender: No OFD packet to send [23:11:42]OFD Sender: No OFD packet to send [23:11:47]OFD Sender: No OFD packet to send [23:11:52]OFD Sender: No OFD packet to send [23:11:57]OFD Sender: No OFD packet to send [23:12:02]OFD Sender: No OFD packet to send [23:12:07]OFD Sender: No OFD packet to send [23:12:12]OFD Sender: No OFD packet to send [23:12:17]OFD Sender: No OFD packet to send [23:12:22]OFD Sender: No OFD packet to send [23:12:27]OFD Sender: No OFD packet to send [23:12:32]OFD Sender: No OFD packet to send [23:12:37]OFD Sender: No OFD packet to send [23:12:42]OFD Sender: No OFD packet to send [23:12:47]OFD Sender: No OFD packet to send [23:12:52]OFD Sender: No OFD packet to send [23:12:57]OFD Sender: No OFD packet to send [23:13:02]OFD Sender: No OFD packet to send [23:13:07]OFD Sender: No OFD packet to send [23:13:12]OFD Sender: No OFD packet to send [23:13:17]OFD Sender: No OFD packet to send [23:13:22]OFD Sender: No OFD packet to send [23:13:27]OFD Sender: No OFD packet to send [23:13:32]OFD Sender: No OFD packet to send [23:13:37]OFD Sender: No OFD packet to send [23:13:42]OFD Sender: No OFD packet to send [23:13:47]OFD Sender: No OFD packet to send [23:13:52]OFD Sender: No OFD packet to send [23:13:57]OFD Sender: No OFD packet to send [23:14:02]OFD Sender: No OFD packet to send [23:14:07]OFD Sender: No OFD packet to send [23:14:12]OFD Sender: No OFD packet to send [23:14:17]OFD Sender: No OFD packet to send [23:14:22]OFD Sender: No OFD packet to send [23:14:27]OFD Sender: No OFD packet to send [23:14:32]OFD Sender: No OFD packet to send [23:14:37]OFD Sender: No OFD packet to send [23:14:42]OFD Sender: No OFD packet to send [23:14:47]OFD Sender: No OFD packet to send [23:14:52]OFD Sender: No OFD packet to send [23:14:57]OFD Sender: No OFD packet to send [23:15:02]OFD Sender: No OFD packet to send [23:15:07]OFD Sender: No OFD packet to send [23:15:12]OFD Sender: No OFD packet to send [23:15:17]OFD Sender: No OFD packet to send [23:15:22]OFD Sender: No OFD packet to send [23:15:27]OFD Sender: No OFD packet to send [23:15:32]OFD Sender: No OFD packet to send [23:15:37]OFD Sender: No OFD packet to send [23:15:42]OFD Sender: No OFD packet to send [23:15:47]OFD Sender: No OFD packet to send [23:15:52]OFD Sender: No OFD packet to send [23:15:57]OFD Sender: No OFD packet to send [23:16:02]OFD Sender: No OFD packet to send [23:16:07]OFD Sender: No OFD packet to send [23:16:12]OFD Sender: No OFD packet to send [23:16:17]OFD Sender: No OFD packet to send [23:16:22]OFD Sender: No OFD packet to send [23:16:27]OFD Sender: No OFD packet to send [23:16:32]OFD Sender: No OFD packet to send [23:16:37]OFD Sender: No OFD packet to send [23:16:42]OFD Sender: No OFD packet to send [23:16:47]OFD Sender: No OFD packet to send [23:16:52]OFD Sender: No OFD packet to send [23:16:57]OFD Sender: No OFD packet to send [23:17:02]OFD Sender: No OFD packet to send [23:17:07]OFD Sender: No OFD packet to send [23:17:12]OFD Sender: No OFD packet to send [23:17:17]OFD Sender: No OFD packet to send [23:17:22]OFD Sender: No OFD packet to send [23:17:27]OFD Sender: No OFD packet to send [23:17:32]OFD Sender: No OFD packet to send [23:17:37]OFD Sender: No OFD packet to send [23:17:42]OFD Sender: No OFD packet to send [23:17:47]OFD Sender: No OFD packet to send [23:17:52]OFD Sender: No OFD packet to send [23:17:57]OFD Sender: No OFD packet to send [23:18:02]OFD Sender: No OFD packet to send [23:18:07]OFD Sender: No OFD packet to send [23:18:12]OFD Sender: No OFD packet to send [23:18:17]OFD Sender: No OFD packet to send [23:18:22]OFD Sender: No OFD packet to send [23:18:27]OFD Sender: No OFD packet to send [23:18:32]OFD Sender: No OFD packet to send [23:18:37]OFD Sender: No OFD packet to send [23:18:42]OFD Sender: No OFD packet to send [23:18:47]OFD Sender: No OFD packet to send [23:18:52]OFD Sender: No OFD packet to send [23:18:57]OFD Sender: No OFD packet to send [23:19:02]OFD Sender: No OFD packet to send [23:19:07]OFD Sender: No OFD packet to send [23:19:12]OFD Sender: No OFD packet to send [23:19:17]OFD Sender: No OFD packet to send [23:19:22]OFD Sender: No OFD packet to send [23:19:27]OFD Sender: No OFD packet to send [23:19:32]OFD Sender: No OFD packet to send [23:19:37]OFD Sender: No OFD packet to send [23:19:42]OFD Sender: No OFD packet to send [23:19:47]OFD Sender: No OFD packet to send [23:19:52]OFD Sender: No OFD packet to send [23:19:57]OFD Sender: No OFD packet to send [23:20:02]OFD Sender: No OFD packet to send [23:20:07]OFD Sender: No OFD packet to send [23:20:12]OFD Sender: No OFD packet to send [23:20:17]OFD Sender: No OFD packet to send [23:20:22]OFD Sender: No OFD packet to send [23:20:27]OFD Sender: No OFD packet to send [23:20:32]OFD Sender: No OFD packet to send [23:20:37]OFD Sender: No OFD packet to send [23:20:42]OFD Sender: No OFD packet to send [23:20:48]OFD Sender: No OFD packet to send [23:20:53]OFD Sender: No OFD packet to send [23:20:58]OFD Sender: No OFD packet to send [23:21:03]OFD Sender: No OFD packet to send [23:21:03]accept exits with 8 [23:21:03]New connection [23:21:03]New thread 3067112804 created [23:21:03]Thread 3066969444 joined [23:21:03]Waiting for new connection... [23:21:03] Sock 8.Parse request [23:21:03]Sock 8.Check first char [23:21:03]Sock 8.First char is OK [23:21:03]request: POST /json_proto HTTP/1.0 [23:21:03]Method: POST [23:21:03]URL: /json_proto [23:21:03]Method is POST - this is cgi request [23:21:03]url: /json_proto [23:21:03]query_string will be loaded in cgi processing [23:21:03]execute_cgi json_proto POST (null) [23:21:03]execute_cgi path=json_proto method=POST [23:21:03]POST find Content-Length [23:21:03]Host: 172.17.33.3:8080 [23:21:03]Content-Length: 808 [23:21:03]Content-Type: application/json [23:21:03] [23:21:03]POST finish read [23:21:03]Found Content-Length = 808 [23:21:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347786", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:21:03]execute_script... [23:21: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)347786", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:21:03]POST & json_proto [23:21:03]process_json_proto [23:21:03]json parsed OK: [23:21:03]protocol is kg_v1.0 [23:21:03]action value=close_receipt [23:21:03]process_action close_receipt [23:21:03]cmd_close_receipt [23:21:03]MH_GetDate [23:21:03]Write to MH i2c: F0 00 00 D9 10 D8 [23:21:03]Write i2c OK [23:21:03]MH_I2C_Read... [23:21:03]Read from MH i2c: F0 [23:21:03]MH_I2C_Read... [23:21:03]Read from MH i2c: F0 09 00 [23:21:03]MH_I2C_Read... [23:21:03]Read from MH i2c: F0 09 00 D9 10 00 E1 64 1C 66 23 5B 8F 65 1A [23:21:03]GetLastDocTimeStamp 1713135550 [23:21:03]current date 1713136865 [23:21:03]FM_GetShiftState [23:21:03]SAM_PROTO_GetShiftState [23:21:03]wFMCommunicate request_size=4 [23:21:03]MH_SAM_APDU [23:21:03]CAPDU: 80 13 01 00 [23:21:03]Write to MH i2c: E2 08 00 DA 10 80 13 01 00 00 00 00 00 67 [23:21:03]Write i2c OK [23:21:03]MH_I2C_Read... [23:21:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:21:03]Read from MH i2c: E2 [23:21:03]MH_I2C_Read... [23:21:03]Read from MH i2c: E2 0E 00 [23:21:03]MH_I2C_Read... [23:21:03]Read from MH i2c: E2 0E 00 DA 10 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 13 [23:21:03]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [23:21:03]wFMCommunicate OK [23:21:03]SAM_PROTO_GetShiftState done [23:21:03]FM_GetShiftState done [23:21:03]opened in 1713053951 [23:21:03]opened+sec_in_day 1713140351 [23:21:03]quantity*price = 100050 [23:21:03]sum+1 = 100051 [23:21:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.50 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.50 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 298 14.04.2024 23:21 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29388 ФПД: 224954754541478 1/tax-web-control/client/api/v1/ticket?date=20240414T232105&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29388&fm=224954754541478&tin=02508201610067®Number=0000138879044617&sum=100050 [23:21:04]StoreToDocumentArchive [23:21:04]shift 116 fd 29388 [23:21:04]save to /storage/0116/doc_00029388 [23:21:04]save last doc name /storage/0116/doc_00029388 to /storage/kkm_last_doc_name [23:21:04]save OK [23:21:04]Clear old archive folders... [23:21:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:21:04]tlvbuf is 0020E930 [23:21:04]SAM_PROTO_ClearQueue [23:21:04]wFMCommunicate request_size=4 [23:21:04]MH_SAM_APDU [23:21:04]CAPDU: 80 09 00 00 [23:21:04]Write to MH i2c: E2 08 00 E7 10 80 09 00 00 00 00 00 00 69 [23:21:04]Write i2c OK [23:21:04]MH_I2C_Read... [23:21:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:21:04]Read from MH i2c: E2 [23:21:04]MH_I2C_Read... [23:21:04]Read from MH i2c: E2 03 00 [23:21:04]MH_I2C_Read... [23:21:04]Read from MH i2c: E2 03 00 E7 10 00 90 00 6B [23:21:04]RAPDU: 90 00 [23:21:04]wFMCommunicate OK [23:21:04]SAM_PROTO_ClearQueue done [23:21:04]KKMCreateOFDPacket [23:21:04]OFDProtocolAddRootSTLVToBuf [23:21:04]FM_MakeSignedData [23:21:04]FM_MakeSignedData [23:21:04]SAM_PROTO_SignData [23:21:04]wFMCommunicate request_size=4 [23:21:04]MH_SAM_APDU [23:21:04]CAPDU: 80 0D 01 02 [23:21:04]Write to MH i2c: E2 08 00 E8 10 80 0D 01 02 00 00 00 00 71 [23:21:04]Write i2c OK [23:21:04]MH_I2C_Read... [23:21:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:21:04]Read from MH i2c: E2 [23:21:04]MH_I2C_Read... [23:21:04]Read from MH i2c: E2 03 00 [23:21:04]MH_I2C_Read... [23:21:04]Read from MH i2c: E2 03 00 E8 10 00 90 00 6C [23:21:04]RAPDU: 90 00 [23:21:04]wFMCommunicate OK [23:21:04]wFMCommunicate request_size=255 [23:21:04]MH_SAM_APDU [23:21: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 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 2A 01 00 00 F4 03 04 00 E1 64 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CC 72 00 00 35 04 06 00 CC [23:21:04]Write to MH i2c: E2 02 01 E9 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 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 2A 01 00 00 F4 03 04 00 E1 64 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CC 72 00 00 35 04 06 00 CC 00 00 C4 [23:21:04]Write i2c OK [23:21:04]MH_I2C_Read... [23:21:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:21:05]Read from MH i2c: E2 [23:21:05]MH_I2C_Read... [23:21:05]Read from MH i2c: E2 03 00 [23:21:05]MH_I2C_Read... [23:21:05]Read from MH i2c: E2 03 00 E9 10 00 90 00 6D [23:21:05]RAPDU: 90 00 [23:21:05]wFMCommunicate OK [23:21:05]wFMCommunicate request_size=10 [23:21:05]MH_SAM_APDU [23:21:05]CAPDU: 80 0D 02 02 05 98 5C 3C 27 A6 [23:21:05]Write to MH i2c: E2 0D 00 EA 10 80 0D 02 02 05 00 98 5C 3C 27 A6 00 00 7B [23:21:05]Write i2c OK [23:21:05]MH_I2C_Read... [23:21:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:21:05]Read from MH i2c: E2 [23:21:05]MH_I2C_Read... [23:21:05]Read from MH i2c: E2 03 00 [23:21:05]MH_I2C_Read... [23:21:05]Read from MH i2c: E2 03 00 EA 10 00 90 00 6E [23:21:05]RAPDU: 90 00 [23:21:05]wFMCommunicate OK [23:21:05]wFMCommunicate request_size=4 [23:21:05]MH_SAM_APDU [23:21:05]CAPDU: 80 0D 03 02 [23:21:05]Write to MH i2c: E2 08 00 EB 10 80 0D 03 02 00 00 00 00 76 [23:21:05]Write i2c OK [23:21:05]MH_I2C_Read... [23:21:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:21:05]Read from MH i2c: E2 [23:21:05]MH_I2C_Read... [23:21:05]Read from MH i2c: E2 0B 00 [23:21:05]MH_I2C_Read... [23:21:05]Read from MH i2c: E2 0B 00 EB 10 00 04 CA A5 0C AD 75 24 CE 90 00 0A [23:21:05]RAPDU: 04 CA A5 0C AD 75 24 CE 90 00 [23:21:05]wFMCommunicate OK [23:21:05]SAM_PROTO_SignData done [23:21:05]FM_MakeSignedData done [23:21:05]CreateOFDProtocolMessage [23:21:05]wFMCommunicate request_size=4 [23:21:05]MH_SAM_APDU [23:21:05]CAPDU: 80 11 00 00 [23:21:05]Write to MH i2c: E2 08 00 EC 10 80 11 00 00 00 00 00 00 76 [23:21:05]Write i2c OK [23:21:05]MH_I2C_Read... [23:21:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:21:05]Read from MH i2c: E2 [23:21:05]MH_I2C_Read... [23:21:05]Read from MH i2c: E2 17 00 [23:21:05]MH_I2C_Read... [23:21:05]Read from MH i2c: E2 17 00 EC 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C5 [23:21:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:21:05]wFMCommunicate OK [23:21:05]CreateOFDProtocolMessage done [23:21:05]OFDSenderStorePacket 29388 [23:21:05]StoreOFDPacket docnum=29388 [23:21:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 AC 69 07 01 8C 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 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 2A 01 00 00 F4 03 04 00 E1 64 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CC 72 00 00 35 04 06 00 CC 98 5C 3C 27 A6 04 CA A5 0C AD 75 24 CE [23:21:05]CheckFolder [23:21:05]dirname=/storage/ofd_packets [23:21:05]CheckFolder done [23:21:05]ProducePacketName [23:21:05]name=ofd_packets/00029388 [23:21:05]NVStorageSaveData ofd_packets/00029388 [23:21:05]File name is /storage/ofd_packets/00029388 [23:21:05]Write 301 bytes [23:21:05]NVStorageSaveData done [23:21:05]OFDSenderStorePacket done [23:21:05]KKMCreateOFDPacket done [23:21:05]NVStorageSaveData kkm_last_timestamp [23:21:05]File name is /storage/kkm_last_timestamp [23:21:05]Write 4 bytes [23:21:05]NVStorageSaveData done [23:21:05]ExternCall_PrintAddStr [23:21:05]wPrintStart [23:21:05]Write to MH i2c: 01 00 00 ED 10 FD [23:21:05]Write i2c OK [23:21:05]MH_I2C_Read... [23:21:05]Read from MH i2c: 01 [23:21:05]MH_I2C_Read... [23:21:05]Read from MH i2c: 01 07 00 [23:21:05]MH_I2C_Read... [23:21:05]Read from MH i2c: 01 07 00 ED 10 00 00 00 00 00 FF 0F 12 [23:21:05]RasterBufferAndPrint [23:21:05]line Счет N : (1)347786 [23:21:05]line ИНН: 02508201610067 [23:21:05]line Контрольно-Кассовый Чек [23:21:05]line ПРОДАЖА [23:21:05]line ТРК (МРК, ГНК) : 43 [23:21:05]line Товар: 2710124500 [23:21:05]line Аи-95-К-5 [23:21:05]line 13.800 * 72.50 [23:21:05]line = 1000.50 [23:21:05]line НДС 12% НСП 1% [23:21:05]line > о реализуемом товаре [23:21:05]line ИТОГО: 1000.50 [23:21:05]line НСП 1% : 8.85 [23:21:05]line НДС 12% : 106.25 [23:21:05]line Наличными: 0.00 [23:21:05]line Безнал.: 1000.50 [23:21:05]line Место: АЗС № 108 "Партнер Нефть" [23:21:05]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [23:21:05]line СНО: Общий режим [23:21:05]line Чек 298 14.04.2024 23:21 [23:21:05]line Смена: 116 ФФД: 1.0 [23:21:05]line ЗНМ: 0300000027 [23:21:05]line РНМ: 0000138879044617 [23:21:05]line Версия ККМ: 001 [23:21:05]line Платежная система: О! деньги [23:21:05]line ФМ: 0000000000963154 [23:21:05]line ФД: 29388 [23:21:05]line ФПД: 224954754541478 [23:21:05]line 1/tax-web-control/client/api/v1/ticket?date=20240414T232105&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29388&fm=224954754541478&tin=02508201610067®Number=0000138879044617&sum=100050 [23:21:05]OFD Sender: Processing packet 29388 [packets to send 8, broken 7] [23:21:05]ProducePacketName [23:21:05]name=ofd_packets/00029388 [23:21:05]OFD Sender: To server: pG, [23:21:05]CommunicateWithHost lk.salyk.kg:30040 [23:21:05]ConnectInit lk.salyk.kg [23:21:05]written 0, free lines is 4095 [23:21:05]Connected sock=9 [23:21:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 AC 69 07 01 8C 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 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 2A 01 00 00 F4 03 04 00 E1 64 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CC 72 00 00 35 04 06 00 CC 98 5C 3C 27 A6 04 CA A5 0C AD 75 24 CE [23:21:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 1C E6 47 00 6A 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 39 36 33 31 35 34 10 04 04 00 CC 72 00 00 F4 03 04 00 83 0F 1C 66 B6 04 01 00 00 40 B3 16 6F 73 00 57 69 [23:21:05]CommunicateWithHost err = 0 [23:21:05]CheckOFDResponse [23:21:05]1017 (14) - 77093643461234 [23:21:05]1041 (16) - 0000000000963154 [23:21:05]1040 (4) - 29388 [23:21:05]1012 (4) - 14.04.2024 17:16 [23:21:05]1206 (1) - 0 [23:21:05]OFD Sender: Remove packet 29388 [23:21:05]ProducePacketName [23:21:05]name=ofd_packets/00029388 [23:21:05]NVStorageDeleteData [23:21:06]Write to MH i2c: 01 00 00 16 11 27 [23:21:06]Write i2c OK [23:21:06]MH_I2C_Read... [23:21:06]Read from MH i2c: 01 [23:21:06]MH_I2C_Read... [23:21:06]Read from MH i2c: 01 07 00 [23:21:06]MH_I2C_Read... [23:21:06]Read from MH i2c: 01 07 00 16 11 00 00 00 00 00 D1 0C 0B [23:21:06]RasterBufferAndPrint [23:21:06]line [23:21:06]line [23:21:06]line [23:21:06]line [23:21:06]line [23:21:06]written 0, free lines is 3287 [23:21:06]MH_Cut [23:21:06]Write to MH i2c: D1 01 00 1D 11 01 00 [23:21:06]Write i2c OK [23:21:06]MH_I2C_Read... [23:21:06]Read from MH i2c: D1 [23:21:06]MH_I2C_Read... [23:21:06]Read from MH i2c: D1 01 00 [23:21:06]MH_I2C_Read... [23:21:06]Read from MH i2c: D1 01 00 1D 11 00 FF [23:21:06]Write to MH i2c: 01 00 00 1E 11 2F [23:21:06]Write i2c OK [23:21:06]MH_I2C_Read... [23:21:06]OFD Sender: No OFD packet to send [23:21:06]*** Cut start [23:21:06]*** Partial cut [23:21:06]*** CUTSNS_PIN = 1 [23:21:07]*** CUTSNS_PIN = 0 [23:21:07]*** Brake cut motor [23:21:07]Read from MH i2c: 01 [23:21:07]MH_I2C_Read... [23:21:07]*** Stop cut motor [23:21:07]*** Cut end [23:21:07]Read from MH i2c: 01 07 00 [23:21:07]MH_I2C_Read... [23:21:07]Read from MH i2c: 01 07 00 1E 11 00 00 00 00 00 FF 0F 44 [23:21:07]process_action close_receipt done [23:21:07]requested_data is exist [23:21:07]produce_requested_data [23:21:07]requested_item fm.sn is exist - process it [23:21:07]wFMCommunicate request_size=4 [23:21:07]MH_SAM_APDU [23:21:07]CAPDU: 80 11 00 00 [23:21:07]Write to MH i2c: E2 08 00 1F 11 80 11 00 00 00 00 00 00 AA [23:21:07]Write i2c OK [23:21:07]MH_I2C_Read... [23:21:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:21:07]Read from MH i2c: E2 [23:21:07]MH_I2C_Read... [23:21:07]Read from MH i2c: E2 17 00 [23:21:07]MH_I2C_Read... [23:21:07]Read from MH i2c: E2 17 00 1F 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F9 [23:21:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:21:07]wFMCommunicate OK [23:21:07]requested_item fd.num is exist - process it [23:21:07]SAM_PROTO_GetFieldsCounters [23:21:07]wFMCommunicate request_size=4 [23:21:07]MH_SAM_APDU [23:21:07]CAPDU: 80 13 00 00 [23:21:07]Write to MH i2c: E2 08 00 20 11 80 13 00 00 00 00 00 00 AD [23:21:07]Write i2c OK [23:21:07]MH_I2C_Read... [23:21:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:21:07]Read from MH i2c: E2 [23:21:07]MH_I2C_Read... [23:21:07]Read from MH i2c: E2 62 00 [23:21:07]MH_I2C_Read... [23:21:07]Read from MH i2c: E2 62 00 20 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 CC 72 00 00 0E 04 04 00 74 00 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 1E [23:21:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 CC 72 00 00 0E 04 04 00 74 00 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 [23:21:07]wFMCommunicate OK [23:21:07]SAM_PROTO_GetFieldsCounters done [23:21:07]requested_item shift.num is exist - process it [23:21:07]requested_item shift.opened is exist - process it [23:21:07]req_shift_opened [23:21:07]FM_GetShiftState [23:21:07]SAM_PROTO_GetShiftState [23:21:07]wFMCommunicate request_size=4 [23:21:07]MH_SAM_APDU [23:21:07]CAPDU: 80 13 01 00 [23:21:07]Write to MH i2c: E2 08 00 21 11 80 13 01 00 00 00 00 00 AF [23:21:07]Write i2c OK [23:21:07]MH_I2C_Read... [23:21:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:21:07]Read from MH i2c: E2 [23:21:07]MH_I2C_Read... [23:21:07]Read from MH i2c: E2 0E 00 [23:21:07]MH_I2C_Read... [23:21:07]Read from MH i2c: E2 0E 00 21 11 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 5B [23:21:07]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [23:21:07]wFMCommunicate OK [23:21:07]SAM_PROTO_GetShiftState done [23:21:07]FM_GetShiftState done [23:21:07]req_shift_opened done [23:21:07]requested_item shift.open_date is exist - process it [23:21:07]req_shift_open_date [23:21:07]req_shift_open_date done [23:21:07]produce_requested_data done [23:21:07]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29388,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [23:21:07]process_action_free close_receipt [23:21:07]json_value_free [23:21:07]json_value_free done [23:21:07]process_json_proto returns [23:21:07]Send response to host [23:21:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29388,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [23:21:07]free response buf [23:21:07]execute_script done [23:21:07]execute_script returns [23:21:07]free content buf [23:21:07]Sock 8.Close socket [23:21:07]Sock 8.Thread stoped [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]accept exits with 10 [23:22:06]New connection [23:22:06]New thread 3066969444 created [23:22:06]Thread 3067112804 joined [23:22:06]Waiting for new connection... [23:22:06] Sock 10.Parse request [23:22:06]Sock 10.Check first char [23:22:06]Sock 10.First char is OK [23:22:06]request: POST /json_proto HTTP/1.0 [23:22:06]Method: POST [23:22:06]URL: /json_proto [23:22:06]Method is POST - this is cgi request [23:22:06]url: /json_proto [23:22:06]query_string will be loaded in cgi processing [23:22:06]execute_cgi json_proto POST (null) [23:22:06]execute_cgi path=json_proto method=POST [23:22:06]POST find Content-Length [23:22:06]Host: 172.17.33.3:8080 [23:22:06]Content-Length: 805 [23:22:06]Content-Type: application/json [23:22:06] [23:22:06]POST finish read [23:22:06]Found Content-Length = 805 [23:22:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347784", "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" : 35.920, "sum" : 2600.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 2600.61 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:22:06]execute_script... [23:22: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)347784", "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" : 35.920, "sum" : 2600.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 2600.61 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:22:06]POST & json_proto [23:22:06]process_json_proto [23:22:06]json parsed OK: [23:22:06]protocol is kg_v1.0 [23:22:06]action value=close_receipt [23:22:06]process_action close_receipt [23:22:06]cmd_close_receipt [23:22:06]MH_GetDate [23:22:06]Write to MH i2c: F0 00 00 22 11 22 [23:22:06]Write i2c OK [23:22:06]MH_I2C_Read... [23:22:06]Read from MH i2c: F0 [23:22:06]MH_I2C_Read... [23:22:06]Read from MH i2c: F0 09 00 [23:22:06]MH_I2C_Read... [23:22:06]Read from MH i2c: F0 09 00 22 11 00 20 65 1C 66 23 5B 8F 65 A4 [23:22:06]GetLastDocTimeStamp 1713136865 [23:22:06]current date 1713136928 [23:22:06]FM_GetShiftState [23:22:06]SAM_PROTO_GetShiftState [23:22:06]wFMCommunicate request_size=4 [23:22:06]MH_SAM_APDU [23:22:06]CAPDU: 80 13 01 00 [23:22:06]Write to MH i2c: E2 08 00 23 11 80 13 01 00 00 00 00 00 B1 [23:22:06]Write i2c OK [23:22:06]MH_I2C_Read... [23:22:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:22:06]OFD Sender: No OFD packet to send [23:22:06]Read from MH i2c: E2 [23:22:06]MH_I2C_Read... [23:22:06]Read from MH i2c: E2 0E 00 [23:22:06]MH_I2C_Read... [23:22:06]Read from MH i2c: E2 0E 00 23 11 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 5D [23:22:06]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [23:22:06]wFMCommunicate OK [23:22:06]SAM_PROTO_GetShiftState done [23:22:06]FM_GetShiftState done [23:22:06]opened in 1713053951 [23:22:06]opened+sec_in_day 1713140351 [23:22:06]quantity*price = 260060 [23:22:06]sum+1 = 260062 [23:22:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2600.61 НСП 1% : 23.01 НДС 12% : 276.17 Наличными: 0.00 Безнал.: 2600.61 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 299 14.04.2024 23:22 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29389 ФПД: 148275884613376 1/tax-web-control/client/api/v1/ticket?date=20240414T232208&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29389&fm=148275884613376&tin=02508201610067®Number=0000138879044617&sum=260061 [23:22:07]StoreToDocumentArchive [23:22:07]shift 116 fd 29389 [23:22:07]save to /storage/0116/doc_00029389 [23:22:07]save last doc name /storage/0116/doc_00029389 to /storage/kkm_last_doc_name [23:22:07]save OK [23:22:07]Clear old archive folders... [23:22:07]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:22:07]tlvbuf is 0025CA70 [23:22:07]SAM_PROTO_ClearQueue [23:22:07]wFMCommunicate request_size=4 [23:22:07]MH_SAM_APDU [23:22:07]CAPDU: 80 09 00 00 [23:22:07]Write to MH i2c: E2 08 00 30 11 80 09 00 00 00 00 00 00 B3 [23:22:07]Write i2c OK [23:22:07]MH_I2C_Read... [23:22:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:22:07]Read from MH i2c: E2 [23:22:07]MH_I2C_Read... [23:22:07]Read from MH i2c: E2 03 00 [23:22:07]MH_I2C_Read... [23:22:07]Read from MH i2c: E2 03 00 30 11 00 90 00 B5 [23:22:07]RAPDU: 90 00 [23:22:07]wFMCommunicate OK [23:22:07]SAM_PROTO_ClearQueue done [23:22:07]KKMCreateOFDPacket [23:22:07]OFDProtocolAddRootSTLVToBuf [23:22:07]FM_MakeSignedData [23:22:07]FM_MakeSignedData [23:22:07]SAM_PROTO_SignData [23:22:07]wFMCommunicate request_size=4 [23:22:07]MH_SAM_APDU [23:22:07]CAPDU: 80 0D 01 02 [23:22:07]Write to MH i2c: E2 08 00 31 11 80 0D 01 02 00 00 00 00 BB [23:22:07]Write i2c OK [23:22:07]MH_I2C_Read... [23:22:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:22:07]Read from MH i2c: E2 [23:22:07]MH_I2C_Read... [23:22:07]Read from MH i2c: E2 03 00 [23:22:07]MH_I2C_Read... [23:22:07]Read from MH i2c: E2 03 00 31 11 00 90 00 B6 [23:22:07]RAPDU: 90 00 [23:22:07]wFMCommunicate OK [23:22:07]wFMCommunicate request_size=255 [23:22:07]MH_SAM_APDU [23:22:07]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 50 8C 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 DD F7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DD F7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 6B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DD F7 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 20 65 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CD 72 00 00 35 04 06 00 86 DB 2B 6E [23:22:07]Write to MH i2c: E2 02 01 32 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 50 8C 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 DD F7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DD F7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 6B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DD F7 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 20 65 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CD 72 00 00 35 04 06 00 86 DB 2B 6E 00 00 2B [23:22:07]Write i2c OK [23:22:07]MH_I2C_Read... [23:22:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:22:08]Read from MH i2c: E2 [23:22:08]MH_I2C_Read... [23:22:08]Read from MH i2c: E2 03 00 [23:22:08]MH_I2C_Read... [23:22:08]Read from MH i2c: E2 03 00 32 11 00 90 00 B7 [23:22:08]RAPDU: 90 00 [23:22:08]wFMCommunicate OK [23:22:08]wFMCommunicate request_size=7 [23:22:08]MH_SAM_APDU [23:22:08]CAPDU: 80 0D 02 02 02 5F 00 [23:22:08]Write to MH i2c: E2 0A 00 33 11 80 0D 02 02 02 00 5F 00 00 00 21 [23:22:08]Write i2c OK [23:22:08]MH_I2C_Read... [23:22:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:22:08]Read from MH i2c: E2 [23:22:08]MH_I2C_Read... [23:22:08]Read from MH i2c: E2 03 00 [23:22:08]MH_I2C_Read... [23:22:08]Read from MH i2c: E2 03 00 33 11 00 90 00 B8 [23:22:08]RAPDU: 90 00 [23:22:08]wFMCommunicate OK [23:22:08]wFMCommunicate request_size=4 [23:22:08]MH_SAM_APDU [23:22:08]CAPDU: 80 0D 03 02 [23:22:08]Write to MH i2c: E2 08 00 34 11 80 0D 03 02 00 00 00 00 C0 [23:22:08]Write i2c OK [23:22:08]MH_I2C_Read... [23:22:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:22:08]Read from MH i2c: E2 [23:22:08]MH_I2C_Read... [23:22:08]Read from MH i2c: E2 0B 00 [23:22:08]MH_I2C_Read... [23:22:08]Read from MH i2c: E2 0B 00 34 11 00 63 02 6F 6E 75 4F A5 AE 90 00 1A [23:22:08]RAPDU: 63 02 6F 6E 75 4F A5 AE 90 00 [23:22:08]wFMCommunicate OK [23:22:08]SAM_PROTO_SignData done [23:22:08]FM_MakeSignedData done [23:22:08]CreateOFDProtocolMessage [23:22:08]wFMCommunicate request_size=4 [23:22:08]MH_SAM_APDU [23:22:08]CAPDU: 80 11 00 00 [23:22:08]Write to MH i2c: E2 08 00 35 11 80 11 00 00 00 00 00 00 C0 [23:22:08]Write i2c OK [23:22:08]MH_I2C_Read... [23:22:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:22:08]Read from MH i2c: E2 [23:22:08]MH_I2C_Read... [23:22:08]Read from MH i2c: E2 17 00 [23:22:08]MH_I2C_Read... [23:22:08]Read from MH i2c: E2 17 00 35 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 0F [23:22:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:22:08]wFMCommunicate OK [23:22:08]CreateOFDProtocolMessage done [23:22:08]OFDSenderStorePacket 29389 [23:22:08]StoreOFDPacket docnum=29389 [23:22:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 2A 0B 04 01 92 EB 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 50 8C 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 DD F7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DD F7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 6B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DD F7 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 20 65 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CD 72 00 00 35 04 06 00 86 DB 2B 6E 5F 00 63 02 6F 6E 75 4F A5 AE [23:22:08]CheckFolder [23:22:08]dirname=/storage/ofd_packets [23:22:08]CheckFolder done [23:22:08]ProducePacketName [23:22:08]name=ofd_packets/00029389 [23:22:08]NVStorageSaveData ofd_packets/00029389 [23:22:08]File name is /storage/ofd_packets/00029389 [23:22:08]Write 298 bytes [23:22:08]NVStorageSaveData done [23:22:08]OFDSenderStorePacket done [23:22:08]KKMCreateOFDPacket done [23:22:08]NVStorageSaveData kkm_last_timestamp [23:22:08]File name is /storage/kkm_last_timestamp [23:22:08]Write 4 bytes [23:22:08]NVStorageSaveData done [23:22:08]ExternCall_PrintAddStr [23:22:08]wPrintStart [23:22:08]Write to MH i2c: 01 00 00 36 11 47 [23:22:08]Write i2c OK [23:22:08]MH_I2C_Read... [23:22:08]Read from MH i2c: 01 [23:22:08]MH_I2C_Read... [23:22:08]Read from MH i2c: 01 07 00 [23:22:08]MH_I2C_Read... [23:22:08]Read from MH i2c: 01 07 00 36 11 00 00 00 00 00 FF 0F 5C [23:22:08]RasterBufferAndPrint [23:22:08]line Счет N : (1)347784 [23:22:08]line ИНН: 02508201610067 [23:22:08]line Контрольно-Кассовый Чек [23:22:08]line ПРОДАЖА [23:22:08]line ТРК (МРК, ГНК) : 51 [23:22:08]line Товар: 2710194210 [23:22:08]line ДТ-К-5 [23:22:08]line 35.920 * 72.40 [23:22:08]line = 2600.61 [23:22:08]line НДС 12% НСП 1% [23:22:08]line > о реализуемом товаре [23:22:08]line ИТОГО: 2600.61 [23:22:08]line НСП 1% : 23.01 [23:22:08]line НДС 12% : 276.17 [23:22:08]line Наличными: 0.00 [23:22:08]line Безнал.: 2600.61 [23:22:08]line Место: АЗС № 108 "Партнер Нефть" [23:22:08]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [23:22:08]line СНО: Общий режим [23:22:08]line Чек 299 14.04.2024 23:22 [23:22:08]line Смена: 116 ФФД: 1.0 [23:22:08]line ЗНМ: 0300000027 [23:22:08]line РНМ: 0000138879044617 [23:22:08]line Версия ККМ: 001 [23:22:08]line Платежная система: О! деньги [23:22:08]line ФМ: 0000000000963154 [23:22:08]line ФД: 29389 [23:22:08]line ФПД: 148275884613376 [23:22:08]line 1/tax-web-control/client/api/v1/ticket?date=20240414T232208&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29389&fm=148275884613376&tin=02508201610067®Number=0000138879044617&sum=260061 [23:22:08]OFD Sender: Processing packet 29389 [packets to send 8, broken 7] [23:22:08]ProducePacketName [23:22:08]name=ofd_packets/00029389 [23:22:08]OFD Sender: To server: pG, [23:22:08]CommunicateWithHost lk.salyk.kg:30040 [23:22:08]ConnectInit lk.salyk.kg [23:22:08]written 0, free lines is 4095 [23:22:08]Connected sock=8 [23:22:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 2A 0B 04 01 92 EB 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 50 8C 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 DD F7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DD F7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 6B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DD F7 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 20 65 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CD 72 00 00 35 04 06 00 86 DB 2B 6E 5F 00 63 02 6F 6E 75 4F A5 AE [23:22:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 FD 45 47 00 01 BD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CD 72 00 00 F4 03 04 00 C2 0F 1C 66 B6 04 01 00 00 90 6E E9 63 17 49 80 84 [23:22:08]CommunicateWithHost err = 0 [23:22:08]CheckOFDResponse [23:22:08]1017 (14) - 77093643461234 [23:22:08]1041 (16) - 0000000000963154 [23:22:08]1040 (4) - 29389 [23:22:08]1012 (4) - 14.04.2024 17:17 [23:22:08]1206 (1) - 0 [23:22:08]OFD Sender: Remove packet 29389 [23:22:08]ProducePacketName [23:22:08]name=ofd_packets/00029389 [23:22:08]NVStorageDeleteData [23:22:08]Write to MH i2c: 01 00 00 5F 11 70 [23:22:08]Write i2c OK [23:22:08]MH_I2C_Read... [23:22:08]Read from MH i2c: 01 [23:22:08]MH_I2C_Read... [23:22:08]Read from MH i2c: 01 07 00 [23:22:08]MH_I2C_Read... [23:22:08]Read from MH i2c: 01 07 00 5F 11 00 00 00 00 00 D9 0C 5C [23:22:08]RasterBufferAndPrint [23:22:08]line [23:22:08]line [23:22:08]line [23:22:08]line [23:22:08]line [23:22:08]written 0, free lines is 3294 [23:22:08]MH_Cut [23:22:08]Write to MH i2c: D1 01 00 66 11 01 49 [23:22:08]Write i2c OK [23:22:08]MH_I2C_Read... [23:22:08]Read from MH i2c: D1 [23:22:08]MH_I2C_Read... [23:22:08]Read from MH i2c: D1 01 00 [23:22:08]MH_I2C_Read... [23:22:08]Read from MH i2c: D1 01 00 66 11 00 48 [23:22:08]Write to MH i2c: 01 00 00 67 11 78 [23:22:08]Write i2c OK [23:22:08]MH_I2C_Read... [23:22:09]OFD Sender: No OFD packet to send [23:22:09]*** Cut start [23:22:09]*** Partial cut [23:22:09]*** CUTSNS_PIN = 1 [23:22:09]*** CUTSNS_PIN = 0 [23:22:10]*** Brake cut motor [23:22:10]Read from MH i2c: 01 [23:22:10]MH_I2C_Read... [23:22:10]*** Stop cut motor [23:22:10]*** Cut end [23:22:10]Read from MH i2c: 01 07 00 [23:22:10]MH_I2C_Read... [23:22:10]Read from MH i2c: 01 07 00 67 11 00 00 00 00 00 FF 0F 8D [23:22:10]process_action close_receipt done [23:22:10]requested_data is exist [23:22:10]produce_requested_data [23:22:10]requested_item fm.sn is exist - process it [23:22:10]wFMCommunicate request_size=4 [23:22:10]MH_SAM_APDU [23:22:10]CAPDU: 80 11 00 00 [23:22:10]Write to MH i2c: E2 08 00 68 11 80 11 00 00 00 00 00 00 F3 [23:22:10]Write i2c OK [23:22:10]MH_I2C_Read... [23:22:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:22:10]Read from MH i2c: E2 [23:22:10]MH_I2C_Read... [23:22:10]Read from MH i2c: E2 17 00 [23:22:10]MH_I2C_Read... [23:22:10]Read from MH i2c: E2 17 00 68 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 42 [23:22:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:22:10]wFMCommunicate OK [23:22:10]requested_item fd.num is exist - process it [23:22:10]SAM_PROTO_GetFieldsCounters [23:22:10]wFMCommunicate request_size=4 [23:22:10]MH_SAM_APDU [23:22:10]CAPDU: 80 13 00 00 [23:22:10]Write to MH i2c: E2 08 00 69 11 80 13 00 00 00 00 00 00 F6 [23:22:10]Write i2c OK [23:22:10]MH_I2C_Read... [23:22:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:22:10]Read from MH i2c: E2 [23:22:10]MH_I2C_Read... [23:22:10]Read from MH i2c: E2 62 00 [23:22:10]MH_I2C_Read... [23:22:10]Read from MH i2c: E2 62 00 69 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 CD 72 00 00 0E 04 04 00 74 00 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 6B [23:22:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 CD 72 00 00 0E 04 04 00 74 00 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 [23:22:10]wFMCommunicate OK [23:22:10]SAM_PROTO_GetFieldsCounters done [23:22:10]requested_item shift.num is exist - process it [23:22:10]requested_item shift.opened is exist - process it [23:22:10]req_shift_opened [23:22:10]FM_GetShiftState [23:22:10]SAM_PROTO_GetShiftState [23:22:10]wFMCommunicate request_size=4 [23:22:10]MH_SAM_APDU [23:22:10]CAPDU: 80 13 01 00 [23:22:10]Write to MH i2c: E2 08 00 6A 11 80 13 01 00 00 00 00 00 F8 [23:22:10]Write i2c OK [23:22:10]MH_I2C_Read... [23:22:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:22:10]Read from MH i2c: E2 [23:22:10]MH_I2C_Read... [23:22:10]Read from MH i2c: E2 0E 00 [23:22:10]MH_I2C_Read... [23:22:10]Read from MH i2c: E2 0E 00 6A 11 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 A4 [23:22:10]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [23:22:10]wFMCommunicate OK [23:22:10]SAM_PROTO_GetShiftState done [23:22:10]FM_GetShiftState done [23:22:10]req_shift_opened done [23:22:10]requested_item shift.open_date is exist - process it [23:22:10]req_shift_open_date [23:22:10]req_shift_open_date done [23:22:10]produce_requested_data done [23:22:10]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29389,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [23:22:10]process_action_free close_receipt [23:22:10]json_value_free [23:22:10]json_value_free done [23:22:10]process_json_proto returns [23:22:10]Send response to host [23:22:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29389,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [23:22:10]free response buf [23:22:10]execute_script done [23:22:10]execute_script returns [23:22:10]free content buf [23:22:10]Sock 10.Close socket [23:22:10]Sock 10.Thread stoped [23:22:14]OFD Sender: No OFD packet to send [23:22:19]OFD Sender: No OFD packet to send [23:22:24]OFD Sender: No OFD packet to send [23:22:29]OFD Sender: No OFD packet to send [23:22:34]OFD Sender: No OFD packet to send [23:22:39]OFD Sender: No OFD packet to send [23:22:44]OFD Sender: No OFD packet to send [23:22:49]OFD Sender: No OFD packet to send [23:22:54]OFD Sender: No OFD packet to send [23:22:54]int [23:22:54]Write to MH i2c: 01 00 00 6B 11 7C [23:22:54]*** FLAG_PRN_KEY set [23:22:54]Write i2c OK [23:22:54]MH_I2C_Read... [23:22:54]Read from MH i2c: 01 [23:22:54]MH_I2C_Read... [23:22:54]Read from MH i2c: 01 07 00 [23:22:54]MH_I2C_Read... [23:22:54]Read from MH i2c: 01 07 00 6B 11 00 08 00 00 00 FF 0F 99 [23:22:54]state=0 [23:22:54]Key pressed [23:22:54]Feed [23:22:54]Write to MH i2c: D8 00 00 6C 11 54 [23:22:54]Write i2c OK [23:22:54]MH_I2C_Read... [23:22:54]Read from MH i2c: D8 [23:22:54]MH_I2C_Read... [23:22:54]Read from MH i2c: D8 01 00 [23:22:54]MH_I2C_Read... [23:22:54]Read from MH i2c: D8 01 00 6C 11 00 55 [23:22:54]int [23:22:54]Write to MH i2c: 01 00 00 6D 11 7E [23:22:54]Write i2c OK [23:22:54]MH_I2C_Read... [23:22:54]Read from MH i2c: 01 [23:22:54]MH_I2C_Read... [23:22:54]Read from MH i2c: 01 07 00 [23:22:54]MH_I2C_Read... [23:22:54]Read from MH i2c: 01 07 00 6D 11 00 48 00 00 00 3C 00 09 [23:22:54]state=2 [23:22:54]Key pressed [23:22:54]int [23:22:54]Write to MH i2c: 01 00 00 6E 11 7F [23:22:54]*** FLAG_PRN_KEY reset [23:22:54]Write i2c OK [23:22:54]MH_I2C_Read... [23:22:54]Read from MH i2c: 01 [23:22:54]MH_I2C_Read... [23:22:54]Read from MH i2c: 01 07 00 [23:22:54]MH_I2C_Read... [23:22:54]Read from MH i2c: 01 07 00 6E 11 00 00 00 00 00 F6 0F 8B [23:22:54]state=2 [23:22:54]Stop feed [23:22:55]int [23:22:55]Write to MH i2c: 01 00 00 6F 11 80 [23:22:55]*** FLAG_PRN_KEY set [23:22:55]Write i2c OK [23:22:55]MH_I2C_Read... [23:22:55]Read from MH i2c: 01 [23:22:55]MH_I2C_Read... [23:22:55]Read from MH i2c: 01 07 00 [23:22:55]MH_I2C_Read... [23:22:55]Read from MH i2c: 01 07 00 6F 11 00 08 00 00 00 FF 0F 9D [23:22:55]state=0 [23:22:55]Key pressed [23:22:55]Feed [23:22:55]Write to MH i2c: D8 00 00 70 11 58 [23:22:55]Write i2c OK [23:22:55]MH_I2C_Read... [23:22:55]Read from MH i2c: D8 [23:22:55]MH_I2C_Read... [23:22:55]Read from MH i2c: D8 01 00 [23:22:55]MH_I2C_Read... [23:22:55]Read from MH i2c: D8 01 00 70 11 00 59 [23:22:55]int [23:22:55]Write to MH i2c: 01 00 00 71 11 82 [23:22:55]Write i2c OK [23:22:55]MH_I2C_Read... [23:22:55]Read from MH i2c: 01 [23:22:55]MH_I2C_Read... [23:22:55]Read from MH i2c: 01 07 00 [23:22:55]MH_I2C_Read... [23:22:55]Read from MH i2c: 01 07 00 71 11 00 48 00 00 00 3C 00 0D [23:22:55]state=2 [23:22:55]Key pressed [23:22:56]int [23:22:56]Write to MH i2c: 01 00 00 72 11 83 [23:22:56]*** FLAG_PRN_KEY reset [23:22:56]Write i2c OK [23:22:56]MH_I2C_Read... [23:22:56]Read from MH i2c: 01 [23:22:56]MH_I2C_Read... [23:22:56]Read from MH i2c: 01 07 00 [23:22:56]MH_I2C_Read... [23:22:56]Read from MH i2c: 01 07 00 72 11 00 00 00 00 00 F6 0F 8F [23:22:56]state=2 [23:22:56]Stop feed [23:22:59]OFD Sender: No OFD packet to send [23:23:04]OFD Sender: No OFD packet to send [23:23:09]OFD Sender: No OFD packet to send [23:23:14]OFD Sender: No OFD packet to send [23:23:19]OFD Sender: No OFD packet to send [23:23:24]OFD Sender: No OFD packet to send [23:23:29]OFD Sender: No OFD packet to send [23:23:34]OFD Sender: No OFD packet to send [23:23:39]OFD Sender: No OFD packet to send [23:23:44]OFD Sender: No OFD packet to send [23:23:49]OFD Sender: No OFD packet to send [23:23:54]OFD Sender: No OFD packet to send [23:23:59]OFD Sender: No OFD packet to send [23:24:04]OFD Sender: No OFD packet to send [23:24:09]OFD Sender: No OFD packet to send [23:24:14]OFD Sender: No OFD packet to send [23:24:19]OFD Sender: No OFD packet to send [23:24:20]accept exits with 9 [23:24:20]New connection [23:24:20]New thread 3067112804 created [23:24:20]Thread 3066969444 joined [23:24:20]Waiting for new connection... [23:24:20] Sock 9.Parse request [23:24:20]Sock 9.Check first char [23:24:20]Sock 9.First char is OK [23:24:20]request: POST /json_proto HTTP/1.0 [23:24:20]Method: POST [23:24:20]URL: /json_proto [23:24:20]Method is POST - this is cgi request [23:24:20]url: /json_proto [23:24:20]query_string will be loaded in cgi processing [23:24:20]execute_cgi json_proto POST (null) [23:24:20]execute_cgi path=json_proto method=POST [23:24:20]POST find Content-Length [23:24:20]Host: 172.17.33.3:8080 [23:24:20]Content-Length: 822 [23:24:20]Content-Type: application/json [23:24:20] [23:24:20]POST finish read [23:24:20]Found Content-Length = 822 [23:24:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347785", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 45.600, "sum" : 1500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1500.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:24:20]execute_script... [23:24: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)347785", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 45.600, "sum" : 1500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1500.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:24:20]POST & json_proto [23:24:20]process_json_proto [23:24:20]json parsed OK: [23:24:20]protocol is kg_v1.0 [23:24:20]action value=close_receipt [23:24:20]process_action close_receipt [23:24:20]cmd_close_receipt [23:24:20]MH_GetDate [23:24:20]Write to MH i2c: F0 00 00 73 11 73 [23:24:20]Write i2c OK [23:24:20]MH_I2C_Read... [23:24:20]Read from MH i2c: F0 [23:24:20]MH_I2C_Read... [23:24:20]Read from MH i2c: F0 09 00 [23:24:20]MH_I2C_Read... [23:24:20]Read from MH i2c: F0 09 00 73 11 00 A5 65 1C 66 23 5B 8F 65 7A [23:24:20]GetLastDocTimeStamp 1713136928 [23:24:20]current date 1713137061 [23:24:20]FM_GetShiftState [23:24:20]SAM_PROTO_GetShiftState [23:24:20]wFMCommunicate request_size=4 [23:24:20]MH_SAM_APDU [23:24:20]CAPDU: 80 13 01 00 [23:24:20]Write to MH i2c: E2 08 00 74 11 80 13 01 00 00 00 00 00 02 [23:24:20]Write i2c OK [23:24:20]MH_I2C_Read... [23:24:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:24:20]Read from MH i2c: E2 [23:24:20]MH_I2C_Read... [23:24:20]Read from MH i2c: E2 0E 00 [23:24:20]MH_I2C_Read... [23:24:20]Read from MH i2c: E2 0E 00 74 11 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 AE [23:24:20]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [23:24:20]wFMCommunicate OK [23:24:20]SAM_PROTO_GetShiftState done [23:24:20]FM_GetShiftState done [23:24:20]opened in 1713053951 [23:24:20]opened+sec_in_day 1713140351 [23:24:20]quantity*price = 150024 [23:24:20]sum+1 = 150025 [23:24:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.24 НСП 1% : 13.28 НДС 12% : 159.32 Наличными: 0.00 Безнал.: 1500.24 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 300 14.04.2024 23:24 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 29390 ФПД: 196150331107244 1/tax-web-control/client/api/v1/ticket?date=20240414T232422&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29390&fm=196150331107244&tin=02508201610067®Number=0000138879044617&sum=150024 [23:24:21]StoreToDocumentArchive [23:24:21]shift 116 fd 29390 [23:24:21]save to /storage/0116/doc_00029390 [23:24:21]save last doc name /storage/0116/doc_00029390 to /storage/kkm_last_doc_name [23:24:21]save OK [23:24:21]Clear old archive folders... [23:24:21]ProcessDocumentItem done err = 0, tmpTLVsize=250 [23:24:21]tlvbuf is 00208A80 [23:24:21]SAM_PROTO_ClearQueue [23:24:21]wFMCommunicate request_size=4 [23:24:21]MH_SAM_APDU [23:24:21]CAPDU: 80 09 00 00 [23:24:21]Write to MH i2c: E2 08 00 81 11 80 09 00 00 00 00 00 00 04 [23:24:21]Write i2c OK [23:24:21]MH_I2C_Read... [23:24:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:24:21]Read from MH i2c: E2 [23:24:21]MH_I2C_Read... [23:24:21]Read from MH i2c: E2 03 00 [23:24:21]MH_I2C_Read... [23:24:21]Read from MH i2c: E2 03 00 81 11 00 90 00 06 [23:24:21]RAPDU: 90 00 [23:24:21]wFMCommunicate OK [23:24:21]SAM_PROTO_ClearQueue done [23:24:21]KKMCreateOFDPacket [23:24:21]OFDProtocolAddRootSTLVToBuf [23:24:21]FM_MakeSignedData [23:24:21]FM_MakeSignedData [23:24:21]SAM_PROTO_SignData [23:24:21]wFMCommunicate request_size=4 [23:24:21]MH_SAM_APDU [23:24:21]CAPDU: 80 0D 01 02 [23:24:21]Write to MH i2c: E2 08 00 82 11 80 0D 01 02 00 00 00 00 0C [23:24:21]Write i2c OK [23:24:21]MH_I2C_Read... [23:24:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:24:21]Read from MH i2c: E2 [23:24:21]MH_I2C_Read... [23:24:21]Read from MH i2c: E2 03 00 [23:24:21]MH_I2C_Read... [23:24:21]Read from MH i2c: E2 03 00 82 11 00 90 00 07 [23:24:21]RAPDU: 90 00 [23:24:21]wFMCommunicate OK [23:24:21]wFMCommunicate request_size=255 [23:24:21]MH_SAM_APDU [23:24: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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 20 B2 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 08 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 A6 65 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CE 72 00 00 35 04 06 00 B2 65 [23:24:21]Write to MH i2c: E2 02 01 83 11 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 20 B2 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 08 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 A6 65 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CE 72 00 00 35 04 06 00 B2 65 00 00 CB [23:24:21]Write i2c OK [23:24:21]MH_I2C_Read... [23:24:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:24:21]Read from MH i2c: E2 [23:24:21]MH_I2C_Read... [23:24:21]Read from MH i2c: E2 03 00 [23:24:21]MH_I2C_Read... [23:24:21]Read from MH i2c: E2 03 00 83 11 00 90 00 08 [23:24:21]RAPDU: 90 00 [23:24:21]wFMCommunicate OK [23:24:21]wFMCommunicate request_size=9 [23:24:21]MH_SAM_APDU [23:24:21]CAPDU: 80 0D 02 02 04 CE CE E7 AC [23:24:21]Write to MH i2c: E2 0C 00 84 11 80 0D 02 02 04 00 CE CE E7 AC 00 00 46 [23:24:21]Write i2c OK [23:24:21]MH_I2C_Read... [23:24:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:24:22]Read from MH i2c: E2 [23:24:22]MH_I2C_Read... [23:24:22]Read from MH i2c: E2 03 00 [23:24:22]MH_I2C_Read... [23:24:22]Read from MH i2c: E2 03 00 84 11 00 90 00 09 [23:24:22]RAPDU: 90 00 [23:24:22]wFMCommunicate OK [23:24:22]wFMCommunicate request_size=4 [23:24:22]MH_SAM_APDU [23:24:22]CAPDU: 80 0D 03 02 [23:24:22]Write to MH i2c: E2 08 00 85 11 80 0D 03 02 00 00 00 00 11 [23:24:22]Write i2c OK [23:24:22]MH_I2C_Read... [23:24:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:24:22]Read from MH i2c: E2 [23:24:22]MH_I2C_Read... [23:24:22]Read from MH i2c: E2 0B 00 [23:24:22]MH_I2C_Read... [23:24:22]Read from MH i2c: E2 0B 00 85 11 00 F3 1D 3F 1A 52 29 D2 55 90 00 1D [23:24:22]RAPDU: F3 1D 3F 1A 52 29 D2 55 90 00 [23:24:22]wFMCommunicate OK [23:24:22]SAM_PROTO_SignData done [23:24:22]FM_MakeSignedData done [23:24:22]CreateOFDProtocolMessage [23:24:22]wFMCommunicate request_size=4 [23:24:22]MH_SAM_APDU [23:24:22]CAPDU: 80 11 00 00 [23:24:22]Write to MH i2c: E2 08 00 86 11 80 11 00 00 00 00 00 00 11 [23:24:22]Write i2c OK [23:24:22]MH_I2C_Read... [23:24:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:24:22]Read from MH i2c: E2 [23:24:22]MH_I2C_Read... [23:24:22]Read from MH i2c: E2 17 00 [23:24:22]MH_I2C_Read... [23:24:22]Read from MH i2c: E2 17 00 86 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 60 [23:24:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:24:22]wFMCommunicate OK [23:24:22]CreateOFDProtocolMessage done [23:24:22]OFDSenderStorePacket 29390 [23:24:22]StoreOFDPacket docnum=29390 [23:24:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 DC 87 06 01 1F 64 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 20 B2 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 08 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 A6 65 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CE 72 00 00 35 04 06 00 B2 65 CE CE E7 AC F3 1D 3F 1A 52 29 D2 55 [23:24:22]CheckFolder [23:24:22]dirname=/storage/ofd_packets [23:24:22]CheckFolder done [23:24:22]ProducePacketName [23:24:22]name=ofd_packets/00029390 [23:24:22]NVStorageSaveData ofd_packets/00029390 [23:24:22]File name is /storage/ofd_packets/00029390 [23:24:22]Write 300 bytes [23:24:22]NVStorageSaveData done [23:24:22]OFDSenderStorePacket done [23:24:22]KKMCreateOFDPacket done [23:24:22]NVStorageSaveData kkm_last_timestamp [23:24:22]File name is /storage/kkm_last_timestamp [23:24:22]Write 4 bytes [23:24:22]NVStorageSaveData done [23:24:22]ExternCall_PrintAddStr [23:24:22]wPrintStart [23:24:22]Write to MH i2c: 01 00 00 87 11 98 [23:24:22]Write i2c OK [23:24:22]MH_I2C_Read... [23:24:22]Read from MH i2c: 01 [23:24:22]MH_I2C_Read... [23:24:22]Read from MH i2c: 01 07 00 [23:24:22]MH_I2C_Read... [23:24:22]Read from MH i2c: 01 07 00 87 11 00 00 00 00 00 FF 0F AD [23:24:22]RasterBufferAndPrint [23:24:22]line Счет N : (1)347785 [23:24:22]line ИНН: 02508201610067 [23:24:22]line Контрольно-Кассовый Чек [23:24:22]line ПРОДАЖА [23:24:22]line ТРК (МРК, ГНК) : 71 [23:24:22]line Товар: 2711129700 [23:24:22]line ГАЗ-К-5 [23:24:22]line 45.600 * 32.90 [23:24:22]line = 1500.24 [23:24:22]line НДС 12% НСП 1% [23:24:22]line > о реализуемом товаре [23:24:22]line ИТОГО: 1500.24 [23:24:22]line НСП 1% : 13.28 [23:24:22]line НДС 12% : 159.32 [23:24:22]line Наличными: 0.00 [23:24:22]line Безнал.: 1500.24 [23:24:22]line Место: АЗС № 108 "Партнер Нефть" [23:24:22]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [23:24:22]line СНО: Общий режим [23:24:22]line Чек 300 14.04.2024 23:24 [23:24:22]line Смена: 116 ФФД: 1.0 [23:24:22]line ЗНМ: 0300000027 [23:24:22]line РНМ: 0000138879044617 [23:24:22]line Версия ККМ: 001 [23:24:22]line Платежная система: Бакай Банк [23:24:22]line ФМ: 0000000000963154 [23:24:22]line ФД: 29390 [23:24:22]line ФПД: 196150331107244 [23:24:22]line 1/tax-web-control/client/api/v1/ticket?date=20240414T232422&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29390&fm=196150331107244&tin=02508201610067®Number=0000138879044617&sum=150024 [23:24:22]OFD Sender: Processing packet 29390 [packets to send 8, broken 7] [23:24:22]ProducePacketName [23:24:22]name=ofd_packets/00029390 [23:24:22]OFD Sender: To server: pG, [23:24:22]CommunicateWithHost lk.salyk.kg:30040 [23:24:22]ConnectInit lk.salyk.kg [23:24:22]written 0, free lines is 4095 [23:24:22]Connected sock=10 [23:24:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 DC 87 06 01 1F 64 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 20 B2 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 08 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 A6 65 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CE 72 00 00 35 04 06 00 B2 65 CE CE E7 AC F3 1D 3F 1A 52 29 D2 55 [23:24:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 CA 53 47 00 B8 B4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CE 72 00 00 F4 03 04 00 48 10 1C 66 B6 04 01 00 00 52 00 D2 9F 26 17 40 FA [23:24:22]CommunicateWithHost err = 0 [23:24:22]CheckOFDResponse [23:24:22]1017 (14) - 77093643461234 [23:24:22]1041 (16) - 0000000000963154 [23:24:22]1040 (4) - 29390 [23:24:22]1012 (4) - 14.04.2024 17:20 [23:24:22]1206 (1) - 0 [23:24:22]OFD Sender: Remove packet 29390 [23:24:22]ProducePacketName [23:24:22]name=ofd_packets/00029390 [23:24:22]NVStorageDeleteData [23:24:22]Write to MH i2c: 01 00 00 B0 11 C1 [23:24:22]Write i2c OK [23:24:22]MH_I2C_Read... [23:24:22]Read from MH i2c: 01 [23:24:22]MH_I2C_Read... [23:24:22]Read from MH i2c: 01 07 00 [23:24:22]MH_I2C_Read... [23:24:22]Read from MH i2c: 01 07 00 B0 11 00 00 00 00 00 D8 0C AC [23:24:22]RasterBufferAndPrint [23:24:22]line [23:24:22]line [23:24:22]line [23:24:22]line [23:24:22]line [23:24:22]written 0, free lines is 3292 [23:24:22]MH_Cut [23:24:22]Write to MH i2c: D1 01 00 B7 11 01 9A [23:24:22]Write i2c OK [23:24:22]MH_I2C_Read... [23:24:22]Read from MH i2c: D1 [23:24:22]MH_I2C_Read... [23:24:22]Read from MH i2c: D1 01 00 [23:24:22]MH_I2C_Read... [23:24:22]Read from MH i2c: D1 01 00 B7 11 00 99 [23:24:22]Write to MH i2c: 01 00 00 B8 11 C9 [23:24:22]Write i2c OK [23:24:22]MH_I2C_Read... [23:24:23]OFD Sender: No OFD packet to send [23:24:23]*** Cut start [23:24:23]*** Partial cut [23:24:23]*** CUTSNS_PIN = 1 [23:24:23]*** CUTSNS_PIN = 0 [23:24:24]*** Brake cut motor [23:24:24]Read from MH i2c: 01 [23:24:24]MH_I2C_Read... [23:24:24]*** Stop cut motor [23:24:24]*** Cut end [23:24:24]Read from MH i2c: 01 07 00 [23:24:24]MH_I2C_Read... [23:24:24]Read from MH i2c: 01 07 00 B8 11 00 00 00 00 00 FF 0F DE [23:24:24]process_action close_receipt done [23:24:24]requested_data is exist [23:24:24]produce_requested_data [23:24:24]requested_item fm.sn is exist - process it [23:24:24]wFMCommunicate request_size=4 [23:24:24]MH_SAM_APDU [23:24:24]CAPDU: 80 11 00 00 [23:24:24]Write to MH i2c: E2 08 00 B9 11 80 11 00 00 00 00 00 00 44 [23:24:24]Write i2c OK [23:24:24]MH_I2C_Read... [23:24:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:24:24]Read from MH i2c: E2 [23:24:24]MH_I2C_Read... [23:24:24]Read from MH i2c: E2 17 00 [23:24:24]MH_I2C_Read... [23:24:24]Read from MH i2c: E2 17 00 B9 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 93 [23:24:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:24:24]wFMCommunicate OK [23:24:24]requested_item fd.num is exist - process it [23:24:24]SAM_PROTO_GetFieldsCounters [23:24:24]wFMCommunicate request_size=4 [23:24:24]MH_SAM_APDU [23:24:24]CAPDU: 80 13 00 00 [23:24:24]Write to MH i2c: E2 08 00 BA 11 80 13 00 00 00 00 00 00 47 [23:24:24]Write i2c OK [23:24:24]MH_I2C_Read... [23:24:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:24:24]Read from MH i2c: E2 [23:24:24]MH_I2C_Read... [23:24:24]Read from MH i2c: E2 62 00 [23:24:24]MH_I2C_Read... [23:24:24]Read from MH i2c: E2 62 00 BA 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 CE 72 00 00 0E 04 04 00 74 00 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 C0 [23:24:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 CE 72 00 00 0E 04 04 00 74 00 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 [23:24:24]wFMCommunicate OK [23:24:24]SAM_PROTO_GetFieldsCounters done [23:24:24]requested_item shift.num is exist - process it [23:24:24]requested_item shift.opened is exist - process it [23:24:24]req_shift_opened [23:24:24]FM_GetShiftState [23:24:24]SAM_PROTO_GetShiftState [23:24:24]wFMCommunicate request_size=4 [23:24:24]MH_SAM_APDU [23:24:24]CAPDU: 80 13 01 00 [23:24:24]Write to MH i2c: E2 08 00 BB 11 80 13 01 00 00 00 00 00 49 [23:24:24]Write i2c OK [23:24:24]MH_I2C_Read... [23:24:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:24:24]Read from MH i2c: E2 [23:24:24]MH_I2C_Read... [23:24:24]Read from MH i2c: E2 0E 00 [23:24:24]MH_I2C_Read... [23:24:24]Read from MH i2c: E2 0E 00 BB 11 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 F5 [23:24:24]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [23:24:24]wFMCommunicate OK [23:24:24]SAM_PROTO_GetShiftState done [23:24:24]FM_GetShiftState done [23:24:24]req_shift_opened done [23:24:24]requested_item shift.open_date is exist - process it [23:24:24]req_shift_open_date [23:24:24]req_shift_open_date done [23:24:24]produce_requested_data done [23:24:24]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29390,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [23:24:24]process_action_free close_receipt [23:24:24]json_value_free [23:24:24]json_value_free done [23:24:24]process_json_proto returns [23:24:24]Send response to host [23:24:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29390,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [23:24:24]free response buf [23:24:24]execute_script done [23:24:24]execute_script returns [23:24:24]free content buf [23:24:24]Sock 9.Close socket [23:24:24]Sock 9.Thread stoped [23:24:28]OFD Sender: No OFD packet to send [23:24:33]OFD Sender: No OFD packet to send [23:24:38]OFD Sender: No OFD packet to send [23:24:43]OFD Sender: No OFD packet to send [23:24:48]OFD Sender: No OFD packet to send [23:24:53]OFD Sender: No OFD packet to send [23:24:58]OFD Sender: No OFD packet to send [23:25:03]OFD Sender: No OFD packet to send [23:25:08]OFD Sender: No OFD packet to send [23:25:13]OFD Sender: No OFD packet to send [23:25:18]OFD Sender: No OFD packet to send [23:25:23]OFD Sender: No OFD packet to send [23:25:28]OFD Sender: No OFD packet to send [23:25:33]OFD Sender: No OFD packet to send [23:25:38]OFD Sender: No OFD packet to send [23:25:43]OFD Sender: No OFD packet to send [23:25:48]OFD Sender: No OFD packet to send [23:25:53]OFD Sender: No OFD packet to send [23:25:58]OFD Sender: No OFD packet to send [23:26:03]OFD Sender: No OFD packet to send [23:26:08]OFD Sender: No OFD packet to send [23:26:13]OFD Sender: No OFD packet to send [23:26:18]OFD Sender: No OFD packet to send [23:26:23]OFD Sender: No OFD packet to send [23:26:28]OFD Sender: No OFD packet to send [23:26:33]OFD Sender: No OFD packet to send [23:26:38]OFD Sender: No OFD packet to send [23:26:43]OFD Sender: No OFD packet to send [23:26:47]accept exits with 8 [23:26:47]New connection [23:26:47]New thread 3066969444 created [23:26:47]Thread 3067112804 joined [23:26:47]Waiting for new connection... [23:26:47] Sock 8.Parse request [23:26:47]Sock 8.Check first char [23:26:47]Sock 8.First char is OK [23:26:47]request: POST /json_proto HTTP/1.0 [23:26:47]Method: POST [23:26:47]URL: /json_proto [23:26:47]Method is POST - this is cgi request [23:26:47]url: /json_proto [23:26:47]query_string will be loaded in cgi processing [23:26:47]execute_cgi json_proto POST (null) [23:26:47]execute_cgi path=json_proto method=POST [23:26:47]POST find Content-Length [23:26:47]Host: 172.17.33.3:8080 [23:26:47]Content-Length: 682 [23:26:47]Content-Type: application/json [23:26:47] [23:26:47]POST finish read [23:26:47]Found Content-Length = 682 [23:26:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347787", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.50, "quantity" : 45.770, "sum" : 3318.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 6000.00, "total" : 3318.00, "payments": [ { "type": 0, "sum" : 3318.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:26:47]execute_script... [23:26: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)347787", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.50, "quantity" : 45.770, "sum" : 3318.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 6000.00, "total" : 3318.00, "payments": [ { "type": 0, "sum" : 3318.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:26:47]POST & json_proto [23:26:47]process_json_proto [23:26:47]json parsed OK: [23:26:47]protocol is kg_v1.0 [23:26:47]action value=close_receipt [23:26:47]process_action close_receipt [23:26:47]cmd_close_receipt [23:26:47]MH_GetDate [23:26:47]Write to MH i2c: F0 00 00 BC 11 BC [23:26:47]Write i2c OK [23:26:47]MH_I2C_Read... [23:26:47]Read from MH i2c: F0 [23:26:47]MH_I2C_Read... [23:26:47]Read from MH i2c: F0 09 00 [23:26:47]MH_I2C_Read... [23:26:47]Read from MH i2c: F0 09 00 BC 11 00 39 66 1C 66 23 5B 8F 65 58 [23:26:47]GetLastDocTimeStamp 1713137062 [23:26:47]current date 1713137209 [23:26:47]FM_GetShiftState [23:26:47]SAM_PROTO_GetShiftState [23:26:47]wFMCommunicate request_size=4 [23:26:47]MH_SAM_APDU [23:26:47]CAPDU: 80 13 01 00 [23:26:47]Write to MH i2c: E2 08 00 BD 11 80 13 01 00 00 00 00 00 4B [23:26:47]Write i2c OK [23:26:47]MH_I2C_Read... [23:26:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:26:47]Read from MH i2c: E2 [23:26:47]MH_I2C_Read... [23:26:47]Read from MH i2c: E2 0E 00 [23:26:47]MH_I2C_Read... [23:26:47]Read from MH i2c: E2 0E 00 BD 11 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 F7 [23:26:47]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [23:26:47]wFMCommunicate OK [23:26:47]SAM_PROTO_GetShiftState done [23:26:47]FM_GetShiftState done [23:26:47]opened in 1713053951 [23:26:47]opened+sec_in_day 1713140351 [23:26:47]quantity*price = 331832 [23:26:47]sum+1 = 331834 [23:26:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 3318.00 Внесено: 6000.00 СДАЧА: 2682.00 НСП 1% : 29.37 НДС 12% : 352.39 Наличными: 3318.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 301 14.04.2024 23:26 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29391 ФПД: 194843529673603 1/tax-web-control/client/api/v1/ticket?date=20240414T232649&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29391&fm=194843529673603&tin=02508201610067®Number=0000138879044617&sum=331800 [23:26:49]StoreToDocumentArchive [23:26:49]shift 116 fd 29391 [23:26:49]save to /storage/0116/doc_00029391 [23:26:49]save last doc name /storage/0116/doc_00029391 to /storage/kkm_last_doc_name [23:26:49]save OK [23:26:49]Clear old archive folders... [23:26:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:26:49]tlvbuf is 00251040 [23:26:49]SAM_PROTO_ClearQueue [23:26:49]wFMCommunicate request_size=4 [23:26:49]MH_SAM_APDU [23:26:49]CAPDU: 80 09 00 00 [23:26:49]Write to MH i2c: E2 08 00 CA 11 80 09 00 00 00 00 00 00 4D [23:26:49]Write i2c OK [23:26:49]MH_I2C_Read... [23:26:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:26:49]Read from MH i2c: E2 [23:26:49]MH_I2C_Read... [23:26:49]Read from MH i2c: E2 03 00 [23:26:49]MH_I2C_Read... [23:26:49]Read from MH i2c: E2 03 00 CA 11 00 90 00 4F [23:26:49]RAPDU: 90 00 [23:26:49]wFMCommunicate OK [23:26:49]SAM_PROTO_ClearQueue done [23:26:49]KKMCreateOFDPacket [23:26:49]OFDProtocolAddRootSTLVToBuf [23:26:49]FM_MakeSignedData [23:26:49]FM_MakeSignedData [23:26:49]SAM_PROTO_SignData [23:26:49]wFMCommunicate request_size=4 [23:26:49]MH_SAM_APDU [23:26:49]CAPDU: 80 0D 01 02 [23:26:49]Write to MH i2c: E2 08 00 CB 11 80 0D 01 02 00 00 00 00 55 [23:26:49]Write i2c OK [23:26:49]MH_I2C_Read... [23:26:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:26:49]Read from MH i2c: E2 [23:26:49]MH_I2C_Read... [23:26:49]Read from MH i2c: E2 03 00 [23:26:49]MH_I2C_Read... [23:26:49]Read from MH i2c: E2 03 00 CB 11 00 90 00 50 [23:26:49]RAPDU: 90 00 [23:26:49]wFMCommunicate OK [23:26:49]wFMCommunicate request_size=255 [23:26:49]MH_SAM_APDU [23:26: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 CA B2 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 39 10 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 10 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 89 00 00 00 00 07 04 06 00 18 10 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 39 66 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CF 72 00 00 35 04 06 00 B1 [23:26:49]Write to MH i2c: E2 02 01 CC 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 CA B2 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 39 10 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 10 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 89 00 00 00 00 07 04 06 00 18 10 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 39 66 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CF 72 00 00 35 04 06 00 B1 00 00 7B [23:26:49]Write i2c OK [23:26:49]MH_I2C_Read... [23:26:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:26:49]Read from MH i2c: E2 [23:26:49]MH_I2C_Read... [23:26:49]Read from MH i2c: E2 03 00 [23:26:49]MH_I2C_Read... [23:26:49]Read from MH i2c: E2 03 00 CC 11 00 90 00 51 [23:26:49]RAPDU: 90 00 [23:26:49]wFMCommunicate OK [23:26:49]wFMCommunicate request_size=10 [23:26:49]MH_SAM_APDU [23:26:49]CAPDU: 80 0D 02 02 05 35 8B 5F 7B 83 [23:26:49]Write to MH i2c: E2 0D 00 CD 11 80 0D 02 02 05 00 35 8B 5F 7B 83 00 00 7F [23:26:49]Write i2c OK [23:26:49]MH_I2C_Read... [23:26:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:26:49]Read from MH i2c: E2 [23:26:49]MH_I2C_Read... [23:26:49]Read from MH i2c: E2 03 00 [23:26:49]MH_I2C_Read... [23:26:49]Read from MH i2c: E2 03 00 CD 11 00 90 00 52 [23:26:49]RAPDU: 90 00 [23:26:49]wFMCommunicate OK [23:26:49]wFMCommunicate request_size=4 [23:26:49]MH_SAM_APDU [23:26:49]CAPDU: 80 0D 03 02 [23:26:49]Write to MH i2c: E2 08 00 CE 11 80 0D 03 02 00 00 00 00 5A [23:26:49]Write i2c OK [23:26:49]MH_I2C_Read... [23:26:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:26:49]Read from MH i2c: E2 [23:26:49]MH_I2C_Read... [23:26:49]Read from MH i2c: E2 0B 00 [23:26:49]MH_I2C_Read... [23:26:49]Read from MH i2c: E2 0B 00 CE 11 00 E6 14 47 36 33 98 9C 6B 90 00 A4 [23:26:49]RAPDU: E6 14 47 36 33 98 9C 6B 90 00 [23:26:49]wFMCommunicate OK [23:26:49]SAM_PROTO_SignData done [23:26:49]FM_MakeSignedData done [23:26:49]CreateOFDProtocolMessage [23:26:49]wFMCommunicate request_size=4 [23:26:49]MH_SAM_APDU [23:26:49]CAPDU: 80 11 00 00 [23:26:49]Write to MH i2c: E2 08 00 CF 11 80 11 00 00 00 00 00 00 5A [23:26:49]Write i2c OK [23:26:49]MH_I2C_Read... [23:26:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:26:49]Read from MH i2c: E2 [23:26:49]MH_I2C_Read... [23:26:49]Read from MH i2c: E2 17 00 [23:26:49]MH_I2C_Read... [23:26:49]Read from MH i2c: E2 17 00 CF 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A9 [23:26:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:26:49]wFMCommunicate OK [23:26:49]CreateOFDProtocolMessage done [23:26:49]OFDSenderStorePacket 29391 [23:26:49]StoreOFDPacket docnum=29391 [23:26:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 39 03 07 01 15 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 CA B2 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 39 10 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 10 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 89 00 00 00 00 07 04 06 00 18 10 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 39 66 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CF 72 00 00 35 04 06 00 B1 35 8B 5F 7B 83 E6 14 47 36 33 98 9C 6B [23:26:49]CheckFolder [23:26:49]dirname=/storage/ofd_packets [23:26:49]CheckFolder done [23:26:49]ProducePacketName [23:26:49]name=ofd_packets/00029391 [23:26:49]NVStorageSaveData ofd_packets/00029391 [23:26:49]File name is /storage/ofd_packets/00029391 [23:26:49]Write 301 bytes [23:26:49]NVStorageSaveData done [23:26:49]OFDSenderStorePacket done [23:26:49]KKMCreateOFDPacket done [23:26:49]NVStorageSaveData kkm_last_timestamp [23:26:49]File name is /storage/kkm_last_timestamp [23:26:49]Write 4 bytes [23:26:49]NVStorageSaveData done [23:26:49]ExternCall_PrintAddStr [23:26:49]wPrintStart [23:26:49]Write to MH i2c: 01 00 00 D0 11 E1 [23:26:49]Write i2c OK [23:26:49]MH_I2C_Read... [23:26:49]Read from MH i2c: 01 [23:26:49]MH_I2C_Read... [23:26:49]Read from MH i2c: 01 07 00 [23:26:49]MH_I2C_Read... [23:26:49]Read from MH i2c: 01 07 00 D0 11 00 00 00 00 00 FF 0F F6 [23:26:49]RasterBufferAndPrint [23:26:49]line Счет N : (1)347787 [23:26:49]line ИНН: 02508201610067 [23:26:49]line Контрольно-Кассовый Чек [23:26:49]line ПРОДАЖА [23:26:49]line ТРК (МРК, ГНК) : 33 [23:26:49]line Товар: 2710124500 [23:26:49]line Аи-95-К-5 [23:26:49]line 45.770 * 72.50 [23:26:49]line = 3318.33 [23:26:49]line НДС 12% НСП 1% [23:26:49]line > о реализуемом товаре [23:26:49]line ОКРУГЛЕНИЕ: -0.33 [23:26:49]line ИТОГО: 3318.00 [23:26:49]line Внесено: 6000.00 [23:26:49]line СДАЧА: 2682.00 [23:26:49]line НСП 1% : 29.37 [23:26:49]line НДС 12% : 352.39 [23:26:49]line Наличными: 3318.00 [23:26:49]line Безнал.: 0.00 [23:26:49]line Место: АЗС № 108 "Партнер Нефть" [23:26:49]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [23:26:49]line СНО: Общий режим [23:26:49]line Чек 301 14.04.2024 23:26 [23:26:49]line Смена: 116 ФФД: 1.0 [23:26:49]line ЗНМ: 0300000027 [23:26:49]line РНМ: 0000138879044617 [23:26:49]line Версия ККМ: 001 [23:26:49]line ФМ: 0000000000963154 [23:26:49]line ФД: 29391 [23:26:49]line ФПД: 194843529673603 [23:26:49]line 1/tax-web-control/client/api/v1/ticket?date=20240414T232649&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29391&fm=194843529673603&tin=02508201610067®Number=0000138879044617&sum=331800 [23:26:49]OFD Sender: Processing packet 29391 [packets to send 8, broken 7] [23:26:49]ProducePacketName [23:26:49]name=ofd_packets/00029391 [23:26:49]OFD Sender: To server: pG, [23:26:49]CommunicateWithHost lk.salyk.kg:30040 [23:26:49]ConnectInit lk.salyk.kg [23:26:49]written 0, free lines is 4095 [23:26:49]Connected sock=10 [23:26:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 39 03 07 01 15 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 CA B2 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 39 10 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 10 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 89 00 00 00 00 07 04 06 00 18 10 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 39 66 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CF 72 00 00 35 04 06 00 B1 35 8B 5F 7B 83 E6 14 47 36 33 98 9C 6B [23:26:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 73 D5 47 00 7A ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CF 72 00 00 F4 03 04 00 DC 10 1C 66 B6 04 01 00 00 3D 3D EB 5E 36 4B 08 14 [23:26:50]CommunicateWithHost err = 0 [23:26:50]CheckOFDResponse [23:26:50]1017 (14) - 77093643461234 [23:26:50]1041 (16) - 0000000000963154 [23:26:50]1040 (4) - 29391 [23:26:50]1012 (4) - 14.04.2024 17:22 [23:26:50]1206 (1) - 0 [23:26:50]OFD Sender: Remove packet 29391 [23:26:50]ProducePacketName [23:26:50]name=ofd_packets/00029391 [23:26:50]NVStorageDeleteData [23:26:50]Write to MH i2c: 01 00 00 FA 11 0B [23:26:50]Write i2c OK [23:26:50]MH_I2C_Read... [23:26:50]Read from MH i2c: 01 [23:26:50]MH_I2C_Read... [23:26:50]Read from MH i2c: 01 07 00 [23:26:50]MH_I2C_Read... [23:26:50]Read from MH i2c: 01 07 00 FA 11 00 00 00 00 00 D6 0C F4 [23:26:50]RasterBufferAndPrint [23:26:50]line [23:26:50]line [23:26:50]line [23:26:50]line [23:26:50]line [23:26:50]written 0, free lines is 3290 [23:26:50]MH_Cut [23:26:50]Write to MH i2c: D1 01 00 01 12 01 E5 [23:26:50]Write i2c OK [23:26:50]MH_I2C_Read... [23:26:50]Read from MH i2c: D1 [23:26:50]MH_I2C_Read... [23:26:50]Read from MH i2c: D1 01 00 [23:26:50]MH_I2C_Read... [23:26:50]Read from MH i2c: D1 01 00 01 12 00 E4 [23:26:50]Write to MH i2c: 01 00 00 02 12 14 [23:26:50]Write i2c OK [23:26:50]MH_I2C_Read... [23:26:50]OFD Sender: No OFD packet to send [23:26:51]*** Cut start [23:26:51]*** Partial cut [23:26:51]*** CUTSNS_PIN = 1 [23:26:51]*** CUTSNS_PIN = 0 [23:26:51]*** Brake cut motor [23:26:51]Read from MH i2c: 01 [23:26:51]MH_I2C_Read... [23:26:51]*** Stop cut motor [23:26:51]*** Cut end [23:26:51]Read from MH i2c: 01 07 00 [23:26:51]MH_I2C_Read... [23:26:51]Read from MH i2c: 01 07 00 02 12 00 00 00 00 00 FF 0F 29 [23:26:51]process_action close_receipt done [23:26:51]requested_data is exist [23:26:51]produce_requested_data [23:26:51]requested_item fm.sn is exist - process it [23:26:51]wFMCommunicate request_size=4 [23:26:51]MH_SAM_APDU [23:26:51]CAPDU: 80 11 00 00 [23:26:51]Write to MH i2c: E2 08 00 03 12 80 11 00 00 00 00 00 00 8F [23:26:51]Write i2c OK [23:26:51]MH_I2C_Read... [23:26:51]Read from MH i2c: E2 [23:26:51]MH_I2C_Read... [23:26:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:26:51]Read from MH i2c: E2 17 00 [23:26:51]MH_I2C_Read... [23:26:51]Read from MH i2c: E2 17 00 03 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 DE [23:26:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:26:51]wFMCommunicate OK [23:26:51]requested_item fd.num is exist - process it [23:26:51]SAM_PROTO_GetFieldsCounters [23:26:51]wFMCommunicate request_size=4 [23:26:51]MH_SAM_APDU [23:26:51]CAPDU: 80 13 00 00 [23:26:51]Write to MH i2c: E2 08 00 04 12 80 13 00 00 00 00 00 00 92 [23:26:51]Write i2c OK [23:26:51]MH_I2C_Read... [23:26:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:26:51]Read from MH i2c: E2 [23:26:51]MH_I2C_Read... [23:26:51]Read from MH i2c: E2 62 00 [23:26:51]MH_I2C_Read... [23:26:51]Read from MH i2c: E2 62 00 04 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 CF 72 00 00 0E 04 04 00 74 00 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 0F [23:26:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 CF 72 00 00 0E 04 04 00 74 00 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 [23:26:51]wFMCommunicate OK [23:26:51]SAM_PROTO_GetFieldsCounters done [23:26:51]requested_item shift.num is exist - process it [23:26:51]requested_item shift.opened is exist - process it [23:26:51]req_shift_opened [23:26:51]FM_GetShiftState [23:26:51]SAM_PROTO_GetShiftState [23:26:51]wFMCommunicate request_size=4 [23:26:51]MH_SAM_APDU [23:26:51]CAPDU: 80 13 01 00 [23:26:51]Write to MH i2c: E2 08 00 05 12 80 13 01 00 00 00 00 00 94 [23:26:51]Write i2c OK [23:26:51]MH_I2C_Read... [23:26:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:26:52]Read from MH i2c: E2 [23:26:52]MH_I2C_Read... [23:26:52]Read from MH i2c: E2 0E 00 [23:26:52]MH_I2C_Read... [23:26:52]Read from MH i2c: E2 0E 00 05 12 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 40 [23:26:52]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [23:26:52]wFMCommunicate OK [23:26:52]SAM_PROTO_GetShiftState done [23:26:52]FM_GetShiftState done [23:26:52]req_shift_opened done [23:26:52]requested_item shift.open_date is exist - process it [23:26:52]req_shift_open_date [23:26:52]req_shift_open_date done [23:26:52]produce_requested_data done [23:26:52]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29391,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [23:26:52]process_action_free close_receipt [23:26:52]json_value_free [23:26:52]json_value_free done [23:26:52]process_json_proto returns [23:26:52]Send response to host [23:26:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29391,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [23:26:52]free response buf [23:26:52]execute_script done [23:26:52]execute_script returns [23:26:52]free content buf [23:26:52]Sock 8.Close socket [23:26:52]Sock 8.Thread stoped [23:26:55]OFD Sender: No OFD packet to send [23:27:00]OFD Sender: No OFD packet to send [23:27:05]OFD Sender: No OFD packet to send [23:27:10]OFD Sender: No OFD packet to send [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]accept exits with 9 [23:27:40]New connection [23:27:40]New thread 3067112804 created [23:27:40]Thread 3066969444 joined [23:27:40]Waiting for new connection... [23:27:40] Sock 9.Parse request [23:27:40]Sock 9.Check first char [23:27:40]Sock 9.First char is OK [23:27:40]request: POST /json_proto HTTP/1.0 [23:27:40]Method: POST [23:27:40]URL: /json_proto [23:27:40]Method is POST - this is cgi request [23:27:40]url: /json_proto [23:27:40]query_string will be loaded in cgi processing [23:27:40]execute_cgi json_proto POST (null) [23:27:40]execute_cgi path=json_proto method=POST [23:27:40]POST find Content-Length [23:27:40]Host: 172.17.33.3:8080 [23:27:40]Content-Length: 817 [23:27:40]Content-Type: application/json [23:27:40] [23:27:40]POST finish read [23:27:40]Found Content-Length = 817 [23:27:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347788", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.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:27:40]execute_script... [23:27: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)347788", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.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:27:40]POST & json_proto [23:27:40]process_json_proto [23:27:40]json parsed OK: [23:27:40]protocol is kg_v1.0 [23:27:40]action value=close_receipt [23:27:40]process_action close_receipt [23:27:40]cmd_close_receipt [23:27:40]MH_GetDate [23:27:40]Write to MH i2c: F0 00 00 06 12 07 [23:27:40]Write i2c OK [23:27:40]MH_I2C_Read... [23:27:40]Read from MH i2c: F0 [23:27:40]MH_I2C_Read... [23:27:40]Read from MH i2c: F0 09 00 [23:27:40]MH_I2C_Read... [23:27:40]Read from MH i2c: F0 09 00 06 12 00 6D 66 1C 66 23 5B 8F 65 D7 [23:27:40]GetLastDocTimeStamp 1713137209 [23:27:40]current date 1713137261 [23:27:40]FM_GetShiftState [23:27:40]SAM_PROTO_GetShiftState [23:27:40]wFMCommunicate request_size=4 [23:27:40]MH_SAM_APDU [23:27:40]CAPDU: 80 13 01 00 [23:27:40]Write to MH i2c: E2 08 00 07 12 80 13 01 00 00 00 00 00 96 [23:27:40]Write i2c OK [23:27:40]MH_I2C_Read... [23:27:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:27:40]Read from MH i2c: E2 [23:27:40]MH_I2C_Read... [23:27:40]Read from MH i2c: E2 0E 00 [23:27:40]MH_I2C_Read... [23:27:40]Read from MH i2c: E2 0E 00 07 12 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 42 [23:27:40]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [23:27:40]wFMCommunicate OK [23:27:40]SAM_PROTO_GetShiftState done [23:27:40]FM_GetShiftState done [23:27:40]opened in 1713053951 [23:27:40]opened+sec_in_day 1713140351 [23:27:40]quantity*price = 64300 [23:27:40]sum+1 = 64301 [23:27:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 643.00 НСП 1% : 5.69 НДС 12% : 68.28 Наличными: 0.00 Безнал.: 643.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 302 14.04.2024 23:27 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 29392 ФПД: 76962979916608 1/tax-web-control/client/api/v1/ticket?date=20240414T232741&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29392&fm=76962979916608&tin=02508201610067®Number=0000138879044617&sum=64300 [23:27:41]StoreToDocumentArchive [23:27:41]shift 116 fd 29392 [23:27:41]save to /storage/0116/doc_00029392 [23:27:41]save last doc name /storage/0116/doc_00029392 to /storage/kkm_last_doc_name [23:27:41]save OK [23:27:41]Clear old archive folders... [23:27:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:27:41]tlvbuf is 0025C4E0 [23:27:41]SAM_PROTO_ClearQueue [23:27:41]wFMCommunicate request_size=4 [23:27:41]MH_SAM_APDU [23:27:41]CAPDU: 80 09 00 00 [23:27:41]Write to MH i2c: E2 08 00 14 12 80 09 00 00 00 00 00 00 98 [23:27:41]Write i2c OK [23:27:41]MH_I2C_Read... [23:27:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:27:41]Read from MH i2c: E2 [23:27:41]MH_I2C_Read... [23:27:41]Read from MH i2c: E2 03 00 [23:27:41]MH_I2C_Read... [23:27:41]Read from MH i2c: E2 03 00 14 12 00 90 00 9A [23:27:41]RAPDU: 90 00 [23:27:41]wFMCommunicate OK [23:27:41]SAM_PROTO_ClearQueue done [23:27:41]KKMCreateOFDPacket [23:27:41]OFDProtocolAddRootSTLVToBuf [23:27:41]FM_MakeSignedData [23:27:41]FM_MakeSignedData [23:27:41]SAM_PROTO_SignData [23:27:41]wFMCommunicate request_size=4 [23:27:41]MH_SAM_APDU [23:27:41]CAPDU: 80 0D 01 02 [23:27:41]Write to MH i2c: E2 08 00 15 12 80 0D 01 02 00 00 00 00 A0 [23:27:41]Write i2c OK [23:27:41]MH_I2C_Read... [23:27:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:27:41]Read from MH i2c: E2 [23:27:41]MH_I2C_Read... [23:27:41]Read from MH i2c: E2 03 00 [23:27:41]MH_I2C_Read... [23:27:41]Read from MH i2c: E2 03 00 15 12 00 90 00 9B [23:27:41]RAPDU: 90 00 [23:27:41]wFMCommunicate OK [23:27:41]wFMCommunicate request_size=255 [23:27:41]MH_SAM_APDU [23:27: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 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 2E 01 00 00 F4 03 04 00 6D 66 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D0 72 00 00 35 04 06 00 45 [23:27:41]Write to MH i2c: E2 02 01 16 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 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 2E 01 00 00 F4 03 04 00 6D 66 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D0 72 00 00 35 04 06 00 45 00 00 2A [23:27:41]Write i2c OK [23:27:41]MH_I2C_Read... [23:27:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:27:41]Read from MH i2c: E2 [23:27:41]MH_I2C_Read... [23:27:41]Read from MH i2c: E2 03 00 [23:27:41]MH_I2C_Read... [23:27:41]Read from MH i2c: E2 03 00 16 12 00 90 00 9C [23:27:41]RAPDU: 90 00 [23:27:41]wFMCommunicate OK [23:27:41]wFMCommunicate request_size=10 [23:27:41]MH_SAM_APDU [23:27:41]CAPDU: 80 0D 02 02 05 FF 57 14 2B 40 [23:27:41]Write to MH i2c: E2 0D 00 17 12 80 0D 02 02 05 00 FF 57 14 2B 40 00 00 82 [23:27:41]Write i2c OK [23:27:41]MH_I2C_Read... [23:27:41]Read from MH i2c: E2 [23:27:41]MH_I2C_Read... [23:27:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:27:41]Read from MH i2c: E2 03 00 [23:27:41]MH_I2C_Read... [23:27:41]Read from MH i2c: E2 03 00 17 12 00 90 00 9D [23:27:41]RAPDU: 90 00 [23:27:41]wFMCommunicate OK [23:27:41]wFMCommunicate request_size=4 [23:27:41]MH_SAM_APDU [23:27:41]CAPDU: 80 0D 03 02 [23:27:41]Write to MH i2c: E2 08 00 18 12 80 0D 03 02 00 00 00 00 A5 [23:27:41]Write i2c OK [23:27:41]MH_I2C_Read... [23:27:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:27:41]Read from MH i2c: E2 [23:27:41]MH_I2C_Read... [23:27:41]Read from MH i2c: E2 0B 00 [23:27:41]MH_I2C_Read... [23:27:41]Read from MH i2c: E2 0B 00 18 12 00 95 2D BA CE 28 7F 44 BE 90 00 99 [23:27:41]RAPDU: 95 2D BA CE 28 7F 44 BE 90 00 [23:27:41]wFMCommunicate OK [23:27:41]SAM_PROTO_SignData done [23:27:41]FM_MakeSignedData done [23:27:41]CreateOFDProtocolMessage [23:27:41]wFMCommunicate request_size=4 [23:27:41]MH_SAM_APDU [23:27:41]CAPDU: 80 11 00 00 [23:27:41]Write to MH i2c: E2 08 00 19 12 80 11 00 00 00 00 00 00 A5 [23:27:41]Write i2c OK [23:27:41]MH_I2C_Read... [23:27:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:27:42]Read from MH i2c: E2 [23:27:42]MH_I2C_Read... [23:27:42]Read from MH i2c: E2 17 00 [23:27:42]MH_I2C_Read... [23:27:42]Read from MH i2c: E2 17 00 19 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F4 [23:27:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:27:42]wFMCommunicate OK [23:27:42]CreateOFDProtocolMessage done [23:27:42]OFDSenderStorePacket 29392 [23:27:42]StoreOFDPacket docnum=29392 [23:27:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 4E 1B 07 01 E4 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 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 2E 01 00 00 F4 03 04 00 6D 66 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D0 72 00 00 35 04 06 00 45 FF 57 14 2B 40 95 2D BA CE 28 7F 44 BE [23:27:42]CheckFolder [23:27:42]dirname=/storage/ofd_packets [23:27:42]CheckFolder done [23:27:42]ProducePacketName [23:27:42]name=ofd_packets/00029392 [23:27:42]NVStorageSaveData ofd_packets/00029392 [23:27:42]File name is /storage/ofd_packets/00029392 [23:27:42]Write 301 bytes [23:27:42]NVStorageSaveData done [23:27:42]OFDSenderStorePacket done [23:27:42]KKMCreateOFDPacket done [23:27:42]NVStorageSaveData kkm_last_timestamp [23:27:42]File name is /storage/kkm_last_timestamp [23:27:42]Write 4 bytes [23:27:42]NVStorageSaveData done [23:27:42]ExternCall_PrintAddStr [23:27:42]wPrintStart [23:27:42]Write to MH i2c: 01 00 00 1A 12 2C [23:27:42]Write i2c OK [23:27:42]MH_I2C_Read... [23:27:42]Read from MH i2c: 01 [23:27:42]MH_I2C_Read... [23:27:42]Read from MH i2c: 01 07 00 [23:27:42]MH_I2C_Read... [23:27:42]Read from MH i2c: 01 07 00 1A 12 00 00 00 00 00 FF 0F 41 [23:27:42]RasterBufferAndPrint [23:27:42]line Счет N : (1)347788 [23:27:42]line ИНН: 02508201610067 [23:27:42]line Контрольно-Кассовый Чек [23:27:42]line ПРОДАЖА [23:27:42]line ТРК (МРК, ГНК) : 13 [23:27:42]line Товар: 2710124130 [23:27:42]line Аи-92-К-5 [23:27:42]line 10.000 * 64.30 [23:27:42]line = 643.00 [23:27:42]line НДС 12% НСП 1% [23:27:42]line > о реализуемом товаре [23:27:42]line ИТОГО: 643.00 [23:27:42]line НСП 1% : 5.69 [23:27:42]line НДС 12% : 68.28 [23:27:42]line Наличными: 0.00 [23:27:42]line Безнал.: 643.00 [23:27:42]line Место: АЗС № 108 "Партнер Нефть" [23:27:42]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [23:27:42]line СНО: Общий режим [23:27:42]line Чек 302 14.04.2024 23:27 [23:27:42]line Смена: 116 ФФД: 1.0 [23:27:42]line ЗНМ: 0300000027 [23:27:42]line РНМ: 0000138879044617 [23:27:42]line Версия ККМ: 001 [23:27:42]line Платежная система: Бакай Банк [23:27:42]line ФМ: 0000000000963154 [23:27:42]line ФД: 29392 [23:27:42]line ФПД: 76962979916608 [23:27:42]line 1/tax-web-control/client/api/v1/ticket?date=20240414T232741&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29392&fm=76962979916608&tin=02508201610067®Number=0000138879044617&sum=64300 [23:27:42]OFD Sender: Processing packet 29392 [packets to send 8, broken 7] [23:27:42]ProducePacketName [23:27:42]name=ofd_packets/00029392 [23:27:42]OFD Sender: To server: pG, [23:27:42]CommunicateWithHost lk.salyk.kg:30040 [23:27:42]ConnectInit lk.salyk.kg [23:27:42]written 0, free lines is 4095 [23:27:42]Connected sock=10 [23:27:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 4E 1B 07 01 E4 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 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 2E 01 00 00 F4 03 04 00 6D 66 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D0 72 00 00 35 04 06 00 45 FF 57 14 2B 40 95 2D BA CE 28 7F 44 BE [23:27:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 F5 81 47 00 E0 EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D0 72 00 00 F4 03 04 00 10 11 1C 66 B6 04 01 00 00 4B 69 EF 93 3F 8C 47 ED [23:27:42]CommunicateWithHost err = 0 [23:27:42]CheckOFDResponse [23:27:42]1017 (14) - 77093643461234 [23:27:42]1041 (16) - 0000000000963154 [23:27:42]1040 (4) - 29392 [23:27:42]1012 (4) - 14.04.2024 17:23 [23:27:42]1206 (1) - 0 [23:27:42]OFD Sender: Remove packet 29392 [23:27:42]ProducePacketName [23:27:42]name=ofd_packets/00029392 [23:27:42]NVStorageDeleteData [23:27:42]Write to MH i2c: 01 00 00 43 12 55 [23:27:42]Write i2c OK [23:27:42]MH_I2C_Read... [23:27:42]Read from MH i2c: 01 [23:27:42]MH_I2C_Read... [23:27:42]Read from MH i2c: 01 07 00 [23:27:42]MH_I2C_Read... [23:27:42]Read from MH i2c: 01 07 00 43 12 00 00 00 00 00 DA 0C 42 [23:27:42]RasterBufferAndPrint [23:27:42]line [23:27:42]line [23:27:42]line [23:27:42]line [23:27:42]line [23:27:42]written 0, free lines is 3296 [23:27:42]MH_Cut [23:27:42]Write to MH i2c: D1 01 00 4A 12 01 2E [23:27:42]Write i2c OK [23:27:42]MH_I2C_Read... [23:27:42]Read from MH i2c: D1 [23:27:42]MH_I2C_Read... [23:27:42]Read from MH i2c: D1 01 00 [23:27:42]MH_I2C_Read... [23:27:42]Read from MH i2c: D1 01 00 4A 12 00 2D [23:27:42]Write to MH i2c: 01 00 00 4B 12 5D [23:27:42]Write i2c OK [23:27:42]MH_I2C_Read... [23:27:43]OFD Sender: No OFD packet to send [23:27:43]*** Cut start [23:27:43]*** Partial cut [23:27:43]*** CUTSNS_PIN = 1 [23:27:43]*** CUTSNS_PIN = 0 [23:27:43]*** Brake cut motor [23:27:44]Read from MH i2c: 01 [23:27:44]MH_I2C_Read... [23:27:44]*** Stop cut motor [23:27:44]*** Cut end [23:27:44]Read from MH i2c: 01 07 00 [23:27:44]MH_I2C_Read... [23:27:44]Read from MH i2c: 01 07 00 4B 12 00 00 00 00 00 FF 0F 72 [23:27:44]process_action close_receipt done [23:27:44]requested_data is exist [23:27:44]produce_requested_data [23:27:44]requested_item fm.sn is exist - process it [23:27:44]wFMCommunicate request_size=4 [23:27:44]MH_SAM_APDU [23:27:44]CAPDU: 80 11 00 00 [23:27:44]Write to MH i2c: E2 08 00 4C 12 80 11 00 00 00 00 00 00 D8 [23:27:44]Write i2c OK [23:27:44]MH_I2C_Read... [23:27:44]Read from MH i2c: E2 [23:27:44]MH_I2C_Read... [23:27:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:27:44]Read from MH i2c: E2 17 00 [23:27:44]MH_I2C_Read... [23:27:44]Read from MH i2c: E2 17 00 4C 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 27 [23:27:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:27:44]wFMCommunicate OK [23:27:44]requested_item fd.num is exist - process it [23:27:44]SAM_PROTO_GetFieldsCounters [23:27:44]wFMCommunicate request_size=4 [23:27:44]MH_SAM_APDU [23:27:44]CAPDU: 80 13 00 00 [23:27:44]Write to MH i2c: E2 08 00 4D 12 80 13 00 00 00 00 00 00 DB [23:27:44]Write i2c OK [23:27:44]MH_I2C_Read... [23:27:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:27:44]Read from MH i2c: E2 [23:27:44]MH_I2C_Read... [23:27:44]Read from MH i2c: E2 62 00 [23:27:44]MH_I2C_Read... [23:27:44]Read from MH i2c: E2 62 00 4D 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D0 72 00 00 0E 04 04 00 74 00 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 5C [23:27:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D0 72 00 00 0E 04 04 00 74 00 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 [23:27:44]wFMCommunicate OK [23:27:44]SAM_PROTO_GetFieldsCounters done [23:27:44]requested_item shift.num is exist - process it [23:27:44]requested_item shift.opened is exist - process it [23:27:44]req_shift_opened [23:27:44]FM_GetShiftState [23:27:44]SAM_PROTO_GetShiftState [23:27:44]wFMCommunicate request_size=4 [23:27:44]MH_SAM_APDU [23:27:44]CAPDU: 80 13 01 00 [23:27:44]Write to MH i2c: E2 08 00 4E 12 80 13 01 00 00 00 00 00 DD [23:27:44]Write i2c OK [23:27:44]MH_I2C_Read... [23:27:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:27:44]Read from MH i2c: E2 [23:27:44]MH_I2C_Read... [23:27:44]Read from MH i2c: E2 0E 00 [23:27:44]MH_I2C_Read... [23:27:44]Read from MH i2c: E2 0E 00 4E 12 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 89 [23:27:44]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [23:27:44]wFMCommunicate OK [23:27:44]SAM_PROTO_GetShiftState done [23:27:44]FM_GetShiftState done [23:27:44]req_shift_opened done [23:27:44]requested_item shift.open_date is exist - process it [23:27:44]req_shift_open_date [23:27:44]req_shift_open_date done [23:27:44]produce_requested_data done [23:27:44]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29392,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [23:27:44]process_action_free close_receipt [23:27:44]json_value_free [23:27:44]json_value_free done [23:27:44]process_json_proto returns [23:27:44]Send response to host [23:27:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29392,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [23:27:44]free response buf [23:27:44]execute_script done [23:27:44]execute_script returns [23:27:44]free content buf [23:27:44]Sock 9.Close socket [23:27:44]Sock 9.Thread stoped [23:27:48]OFD Sender: No OFD packet to send [23:27:53]OFD Sender: No OFD packet to send [23:27:58]OFD Sender: No OFD packet to send [23:28:03]OFD Sender: No OFD packet to send [23:28:08]OFD Sender: No OFD packet to send [23:28:13]OFD Sender: No OFD packet to send [23:28:18]OFD Sender: No OFD packet to send [23:28:23]OFD Sender: No OFD packet to send [23:28:28]OFD Sender: No OFD packet to send [23:28:33]OFD Sender: No OFD packet to send [23:28:38]OFD Sender: No OFD packet to send [23:28:43]OFD Sender: No OFD packet to send [23:28:48]OFD Sender: No OFD packet to send [23:28:53]OFD Sender: No OFD packet to send [23:28:58]OFD Sender: No OFD packet to send [23:29:03]OFD Sender: No OFD packet to send [23:29:08]OFD Sender: No OFD packet to send [23:29:13]OFD Sender: No OFD packet to send [23:29:18]OFD Sender: No OFD packet to send [23:29:23]OFD Sender: No OFD packet to send [23:29:28]OFD Sender: No OFD packet to send [23:29:33]OFD Sender: No OFD packet to send [23:29:38]OFD Sender: No OFD packet to send [23:29:43]OFD Sender: No OFD packet to send [23:29:48]OFD Sender: No OFD packet to send [23:29:53]OFD Sender: No OFD packet to send [23:29:58]OFD Sender: No OFD packet to send [23:30:03]OFD Sender: No OFD packet to send [23:30:08]OFD Sender: No OFD packet to send [23:30:13]OFD Sender: No OFD packet to send [23:30:18]OFD Sender: No OFD packet to send [23:30:23]OFD Sender: No OFD packet to send [23:30:28]OFD Sender: No OFD packet to send [23:30:33]OFD Sender: No OFD packet to send [23:30:38]OFD Sender: No OFD packet to send [23:30:43]OFD Sender: No OFD packet to send [23:30:48]OFD Sender: No OFD packet to send [23:30:53]OFD Sender: No OFD packet to send [23:30:58]OFD Sender: No OFD packet to send [23:31:03]OFD Sender: No OFD packet to send [23:31:08]OFD Sender: No OFD packet to send [23:31:13]OFD Sender: No OFD packet to send [23:31:18]OFD Sender: No OFD packet to send [23:31:23]OFD Sender: No OFD packet to send [23:31:28]OFD Sender: No OFD packet to send [23:31:33]OFD Sender: No OFD packet to send [23:31:38]OFD Sender: No OFD packet to send [23:31:43]OFD Sender: No OFD packet to send [23:31:48]OFD Sender: No OFD packet to send [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:46]accept exits with 8 [23:32:46]New connection [23:32:46]New thread 3066969444 created [23:32:46]Thread 3067112804 joined [23:32:46]Waiting for new connection... [23:32:46] Sock 8.Parse request [23:32:46]Sock 8.Check first char [23:32:46]Sock 8.First char is OK [23:32:46]request: POST /json_proto HTTP/1.0 [23:32:46]Method: POST [23:32:46]URL: /json_proto [23:32:46]Method is POST - this is cgi request [23:32:46]url: /json_proto [23:32:46]query_string will be loaded in cgi processing [23:32:46]execute_cgi json_proto POST (null) [23:32:46]execute_cgi path=json_proto method=POST [23:32:46]POST find Content-Length [23:32:46]Host: 172.17.33.3:8080 [23:32:46]Content-Length: 682 [23:32:46]Content-Type: application/json [23:32:46] [23:32:46]POST finish read [23:32:46]Found Content-Length = 682 [23:32:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347790", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.50, "quantity" : 45.770, "sum" : 3318.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3318.00, "total" : 3318.00, "payments": [ { "type": 0, "sum" : 3318.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:32:46]execute_script... [23:32: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)347790", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.50, "quantity" : 45.770, "sum" : 3318.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3318.00, "total" : 3318.00, "payments": [ { "type": 0, "sum" : 3318.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:32:46]POST & json_proto [23:32:46]process_json_proto [23:32:46]json parsed OK: [23:32:46]protocol is kg_v1.0 [23:32:46]action value=close_receipt [23:32:46]process_action close_receipt [23:32:46]cmd_close_receipt [23:32:46]MH_GetDate [23:32:46]Write to MH i2c: F0 00 00 4F 12 50 [23:32:46]Write i2c OK [23:32:46]MH_I2C_Read... [23:32:46]Read from MH i2c: F0 [23:32:46]MH_I2C_Read... [23:32:46]Read from MH i2c: F0 09 00 [23:32:46]MH_I2C_Read... [23:32:46]Read from MH i2c: F0 09 00 4F 12 00 A0 67 1C 66 23 5B 8F 65 54 [23:32:46]GetLastDocTimeStamp 1713137261 [23:32:46]current date 1713137568 [23:32:46]FM_GetShiftState [23:32:46]SAM_PROTO_GetShiftState [23:32:46]wFMCommunicate request_size=4 [23:32:46]MH_SAM_APDU [23:32:46]CAPDU: 80 13 01 00 [23:32:46]Write to MH i2c: E2 08 00 50 12 80 13 01 00 00 00 00 00 DF [23:32:46]Write i2c OK [23:32:46]MH_I2C_Read... [23:32:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:32:46]Read from MH i2c: E2 [23:32:46]MH_I2C_Read... [23:32:46]Read from MH i2c: E2 0E 00 [23:32:46]MH_I2C_Read... [23:32:46]Read from MH i2c: E2 0E 00 50 12 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 8B [23:32:46]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [23:32:46]wFMCommunicate OK [23:32:46]SAM_PROTO_GetShiftState done [23:32:46]FM_GetShiftState done [23:32:46]opened in 1713053951 [23:32:46]opened+sec_in_day 1713140351 [23:32:46]quantity*price = 331832 [23:32:46]sum+1 = 331834 [23:32:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 3318.00 Внесено: 3318.00 СДАЧА: 0.00 НСП 1% : 29.37 НДС 12% : 352.39 Наличными: 3318.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 303 14.04.2024 23:32 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29393 ФПД: 238403844162 1/tax-web-control/client/api/v1/ticket?date=20240414T233248&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29393&fm=238403844162&tin=02508201610067®Number=0000138879044617&sum=331800 [23:32:47]StoreToDocumentArchive [23:32:47]shift 116 fd 29393 [23:32:47]save to /storage/0116/doc_00029393 [23:32:47]save last doc name /storage/0116/doc_00029393 to /storage/kkm_last_doc_name [23:32:47]save OK [23:32:47]Clear old archive folders... [23:32:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:32:47]tlvbuf is 0023FD90 [23:32:47]SAM_PROTO_ClearQueue [23:32:47]wFMCommunicate request_size=4 [23:32:47]MH_SAM_APDU [23:32:47]CAPDU: 80 09 00 00 [23:32:47]Write to MH i2c: E2 08 00 5D 12 80 09 00 00 00 00 00 00 E1 [23:32:47]Write i2c OK [23:32:47]MH_I2C_Read... [23:32:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:32:47]Read from MH i2c: E2 [23:32:47]MH_I2C_Read... [23:32:47]Read from MH i2c: E2 03 00 [23:32:47]MH_I2C_Read... [23:32:47]Read from MH i2c: E2 03 00 5D 12 00 90 00 E3 [23:32:47]RAPDU: 90 00 [23:32:47]wFMCommunicate OK [23:32:47]SAM_PROTO_ClearQueue done [23:32:47]KKMCreateOFDPacket [23:32:47]OFDProtocolAddRootSTLVToBuf [23:32:47]FM_MakeSignedData [23:32:47]FM_MakeSignedData [23:32:47]SAM_PROTO_SignData [23:32:47]wFMCommunicate request_size=4 [23:32:47]MH_SAM_APDU [23:32:47]CAPDU: 80 0D 01 02 [23:32:47]Write to MH i2c: E2 08 00 5E 12 80 0D 01 02 00 00 00 00 E9 [23:32:47]Write i2c OK [23:32:47]MH_I2C_Read... [23:32:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:32:47]Read from MH i2c: E2 [23:32:47]MH_I2C_Read... [23:32:47]Read from MH i2c: E2 03 00 [23:32:47]MH_I2C_Read... [23:32:47]Read from MH i2c: E2 03 00 5E 12 00 90 00 E4 [23:32:47]RAPDU: 90 00 [23:32:47]wFMCommunicate OK [23:32:47]wFMCommunicate request_size=255 [23:32:47]MH_SAM_APDU [23:32: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 CA B2 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 39 10 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 10 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 89 00 00 00 00 07 04 06 00 18 10 05 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 A0 67 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D1 72 00 00 35 04 06 00 00 [23:32:47]Write to MH i2c: E2 02 01 5F 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 CA B2 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 39 10 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 10 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 89 00 00 00 00 07 04 06 00 18 10 05 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 A0 67 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D1 72 00 00 35 04 06 00 00 00 00 CA [23:32:47]Write i2c OK [23:32:47]MH_I2C_Read... [23:32:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:32:48]Read from MH i2c: E2 [23:32:48]MH_I2C_Read... [23:32:48]Read from MH i2c: E2 03 00 [23:32:48]MH_I2C_Read... [23:32:48]Read from MH i2c: E2 03 00 5F 12 00 90 00 E5 [23:32:48]RAPDU: 90 00 [23:32:48]wFMCommunicate OK [23:32:48]wFMCommunicate request_size=10 [23:32:48]MH_SAM_APDU [23:32:48]CAPDU: 80 0D 02 02 05 37 81 F9 F8 42 [23:32:48]Write to MH i2c: E2 0D 00 60 12 80 0D 02 02 05 00 37 81 F9 F8 42 00 00 E1 [23:32:48]Write i2c OK [23:32:48]MH_I2C_Read... [23:32:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:32:48]Read from MH i2c: E2 [23:32:48]MH_I2C_Read... [23:32:48]Read from MH i2c: E2 03 00 [23:32:48]MH_I2C_Read... [23:32:48]Read from MH i2c: E2 03 00 60 12 00 90 00 E6 [23:32:48]RAPDU: 90 00 [23:32:48]wFMCommunicate OK [23:32:48]wFMCommunicate request_size=4 [23:32:48]MH_SAM_APDU [23:32:48]CAPDU: 80 0D 03 02 [23:32:48]Write to MH i2c: E2 08 00 61 12 80 0D 03 02 00 00 00 00 EE [23:32:48]Write i2c OK [23:32:48]MH_I2C_Read... [23:32:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:32:48]Read from MH i2c: E2 [23:32:48]MH_I2C_Read... [23:32:48]Read from MH i2c: E2 0B 00 [23:32:48]MH_I2C_Read... [23:32:48]Read from MH i2c: E2 0B 00 61 12 00 10 06 32 D2 E4 9E 3B 7E 90 00 44 [23:32:48]RAPDU: 10 06 32 D2 E4 9E 3B 7E 90 00 [23:32:48]wFMCommunicate OK [23:32:48]SAM_PROTO_SignData done [23:32:48]FM_MakeSignedData done [23:32:48]CreateOFDProtocolMessage [23:32:48]wFMCommunicate request_size=4 [23:32:48]MH_SAM_APDU [23:32:48]CAPDU: 80 11 00 00 [23:32:48]Write to MH i2c: E2 08 00 62 12 80 11 00 00 00 00 00 00 EE [23:32:48]Write i2c OK [23:32:48]MH_I2C_Read... [23:32:48]OFD Sender: No OFD packet to send [23:32:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:32:48]Read from MH i2c: E2 [23:32:48]MH_I2C_Read... [23:32:48]Read from MH i2c: E2 17 00 [23:32:48]MH_I2C_Read... [23:32:48]Read from MH i2c: E2 17 00 62 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 3D [23:32:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:32:48]wFMCommunicate OK [23:32:48]CreateOFDProtocolMessage done [23:32:48]OFDSenderStorePacket 29393 [23:32:48]StoreOFDPacket docnum=29393 [23:32:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 04 7F 07 01 D2 D9 5A 03 01 00 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 CA B2 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 39 10 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 10 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 89 00 00 00 00 07 04 06 00 18 10 05 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 A0 67 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D1 72 00 00 35 04 06 00 00 37 81 F9 F8 42 10 06 32 D2 E4 9E 3B 7E [23:32:48]CheckFolder [23:32:48]dirname=/storage/ofd_packets [23:32:48]CheckFolder done [23:32:48]ProducePacketName [23:32:48]name=ofd_packets/00029393 [23:32:48]NVStorageSaveData ofd_packets/00029393 [23:32:48]File name is /storage/ofd_packets/00029393 [23:32:48]Write 301 bytes [23:32:48]NVStorageSaveData done [23:32:48]OFDSenderStorePacket done [23:32:48]KKMCreateOFDPacket done [23:32:48]NVStorageSaveData kkm_last_timestamp [23:32:48]File name is /storage/kkm_last_timestamp [23:32:48]Write 4 bytes [23:32:48]NVStorageSaveData done [23:32:48]ExternCall_PrintAddStr [23:32:48]wPrintStart [23:32:48]Write to MH i2c: 01 00 00 63 12 75 [23:32:48]Write i2c OK [23:32:48]MH_I2C_Read... [23:32:48]Read from MH i2c: 01 [23:32:48]MH_I2C_Read... [23:32:48]Read from MH i2c: 01 07 00 [23:32:48]MH_I2C_Read... [23:32:48]Read from MH i2c: 01 07 00 63 12 00 00 00 00 00 FF 0F 8A [23:32:48]RasterBufferAndPrint [23:32:48]line Счет N : (1)347790 [23:32:48]line ИНН: 02508201610067 [23:32:48]line Контрольно-Кассовый Чек [23:32:48]line ПРОДАЖА [23:32:48]line ТРК (МРК, ГНК) : 33 [23:32:48]line Товар: 2710124500 [23:32:48]line Аи-95-К-5 [23:32:48]line 45.770 * 72.50 [23:32:48]line = 3318.33 [23:32:48]line НДС 12% НСП 1% [23:32:48]line > о реализуемом товаре [23:32:48]line ОКРУГЛЕНИЕ: -0.33 [23:32:48]line ИТОГО: 3318.00 [23:32:48]line Внесено: 3318.00 [23:32:48]line СДАЧА: 0.00 [23:32:48]line НСП 1% : 29.37 [23:32:48]line НДС 12% : 352.39 [23:32:48]line Наличными: 3318.00 [23:32:48]line Безнал.: 0.00 [23:32:48]line Место: АЗС № 108 "Партнер Нефть" [23:32:48]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [23:32:48]line СНО: Общий режим [23:32:48]line Чек 303 14.04.2024 23:32 [23:32:48]line Смена: 116 ФФД: 1.0 [23:32:48]line ЗНМ: 0300000027 [23:32:48]line РНМ: 0000138879044617 [23:32:48]line Версия ККМ: 001 [23:32:48]line ФМ: 0000000000963154 [23:32:48]line ФД: 29393 [23:32:48]line ФПД: 238403844162 [23:32:48]line 1/tax-web-control/client/api/v1/ticket?date=20240414T233248&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29393&fm=238403844162&tin=02508201610067®Number=0000138879044617&sum=331800 [23:32:48]OFD Sender: Processing packet 29393 [packets to send 8, broken 7] [23:32:48]ProducePacketName [23:32:48]name=ofd_packets/00029393 [23:32:48]OFD Sender: To server: pG, [23:32:48]CommunicateWithHost lk.salyk.kg:30040 [23:32:48]ConnectInit lk.salyk.kg [23:32:48]written 0, free lines is 4095 [23:32:48]Connected sock=10 [23:32:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 04 7F 07 01 D2 D9 5A 03 01 00 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 CA B2 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 39 10 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 10 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 89 00 00 00 00 07 04 06 00 18 10 05 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 A0 67 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D1 72 00 00 35 04 06 00 00 37 81 F9 F8 42 10 06 32 D2 E4 9E 3B 7E [23:32:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 E9 9E 47 00 6E BC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D1 72 00 00 F4 03 04 00 43 12 1C 66 B6 04 01 00 00 9D 99 81 B8 4E 89 A1 37 [23:32:49]CommunicateWithHost err = 0 [23:32:49]CheckOFDResponse [23:32:49]1017 (14) - 77093643461234 [23:32:49]1041 (16) - 0000000000963154 [23:32:49]1040 (4) - 29393 [23:32:49]1012 (4) - 14.04.2024 17:28 [23:32:49]1206 (1) - 0 [23:32:49]OFD Sender: Remove packet 29393 [23:32:49]ProducePacketName [23:32:49]name=ofd_packets/00029393 [23:32:49]NVStorageDeleteData [23:32:49]Write to MH i2c: 01 00 00 8D 12 9F [23:32:49]Write i2c OK [23:32:49]MH_I2C_Read... [23:32:49]Read from MH i2c: 01 [23:32:49]MH_I2C_Read... [23:32:49]Read from MH i2c: 01 07 00 [23:32:49]MH_I2C_Read... [23:32:49]Read from MH i2c: 01 07 00 8D 12 00 00 00 00 00 C6 0C 78 [23:32:49]RasterBufferAndPrint [23:32:49]line [23:32:49]line [23:32:49]line [23:32:49]line [23:32:49]line [23:32:49]written 0, free lines is 3275 [23:32:49]MH_Cut [23:32:49]Write to MH i2c: D1 01 00 94 12 01 78 [23:32:49]Write i2c OK [23:32:49]MH_I2C_Read... [23:32:49]Read from MH i2c: D1 [23:32:49]MH_I2C_Read... [23:32:49]Read from MH i2c: D1 01 00 [23:32:49]MH_I2C_Read... [23:32:49]Read from MH i2c: D1 01 00 94 12 00 77 [23:32:49]Write to MH i2c: 01 00 00 95 12 A7 [23:32:49]Write i2c OK [23:32:49]MH_I2C_Read... [23:32:49]OFD Sender: No OFD packet to send [23:32:49]*** Cut start [23:32:49]*** Partial cut [23:32:49]*** CUTSNS_PIN = 1 [23:32:50]*** CUTSNS_PIN = 0 [23:32:50]*** Brake cut motor [23:32:50]Read from MH i2c: 01 [23:32:50]MH_I2C_Read... [23:32:50]*** Stop cut motor [23:32:50]*** Cut end [23:32:50]Read from MH i2c: 01 07 00 [23:32:50]MH_I2C_Read... [23:32:50]Read from MH i2c: 01 07 00 95 12 00 00 00 00 00 FF 0F BC [23:32:50]process_action close_receipt done [23:32:50]requested_data is exist [23:32:50]produce_requested_data [23:32:50]requested_item fm.sn is exist - process it [23:32:50]wFMCommunicate request_size=4 [23:32:50]MH_SAM_APDU [23:32:50]CAPDU: 80 11 00 00 [23:32:50]Write to MH i2c: E2 08 00 96 12 80 11 00 00 00 00 00 00 22 [23:32:50]Write i2c OK [23:32:50]MH_I2C_Read... [23:32:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:32:50]Read from MH i2c: E2 [23:32:50]MH_I2C_Read... [23:32:50]Read from MH i2c: E2 17 00 [23:32:50]MH_I2C_Read... [23:32:50]Read from MH i2c: E2 17 00 96 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 71 [23:32:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:32:50]wFMCommunicate OK [23:32:50]requested_item fd.num is exist - process it [23:32:50]SAM_PROTO_GetFieldsCounters [23:32:50]wFMCommunicate request_size=4 [23:32:50]MH_SAM_APDU [23:32:50]CAPDU: 80 13 00 00 [23:32:50]Write to MH i2c: E2 08 00 97 12 80 13 00 00 00 00 00 00 25 [23:32:50]Write i2c OK [23:32:50]MH_I2C_Read... [23:32:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:32:50]Read from MH i2c: E2 [23:32:50]MH_I2C_Read... [23:32:50]Read from MH i2c: E2 62 00 [23:32:50]MH_I2C_Read... [23:32:50]Read from MH i2c: E2 62 00 97 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D1 72 00 00 0E 04 04 00 74 00 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 AA [23:32:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D1 72 00 00 0E 04 04 00 74 00 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 [23:32:50]wFMCommunicate OK [23:32:50]SAM_PROTO_GetFieldsCounters done [23:32:50]requested_item shift.num is exist - process it [23:32:50]requested_item shift.opened is exist - process it [23:32:50]req_shift_opened [23:32:50]FM_GetShiftState [23:32:50]SAM_PROTO_GetShiftState [23:32:50]wFMCommunicate request_size=4 [23:32:50]MH_SAM_APDU [23:32:50]CAPDU: 80 13 01 00 [23:32:50]Write to MH i2c: E2 08 00 98 12 80 13 01 00 00 00 00 00 27 [23:32:50]Write i2c OK [23:32:50]MH_I2C_Read... [23:32:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:32:50]Read from MH i2c: E2 [23:32:50]MH_I2C_Read... [23:32:50]Read from MH i2c: E2 0E 00 [23:32:50]MH_I2C_Read... [23:32:50]Read from MH i2c: E2 0E 00 98 12 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 D3 [23:32:50]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [23:32:50]wFMCommunicate OK [23:32:50]SAM_PROTO_GetShiftState done [23:32:50]FM_GetShiftState done [23:32:50]req_shift_opened done [23:32:50]requested_item shift.open_date is exist - process it [23:32:50]req_shift_open_date [23:32:50]req_shift_open_date done [23:32:50]produce_requested_data done [23:32:50]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29393,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [23:32:50]process_action_free close_receipt [23:32:50]json_value_free [23:32:50]json_value_free done [23:32:50]process_json_proto returns [23:32:50]Send response to host [23:32:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29393,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [23:32:50]free response buf [23:32:50]execute_script done [23:32:50]execute_script returns [23:32:50]free content buf [23:32:50]Sock 8.Close socket [23:32:50]Sock 8.Thread stoped [23:32:52]accept exits with 9 [23:32:52]New connection [23:32:52]New thread 3067112804 created [23:32:52]Thread 3066969444 joined [23:32:52]Waiting for new connection... [23:32:52] Sock 9.Parse request [23:32:52]Sock 9.Check first char [23:32:52]Sock 9.First char is OK [23:32:52]request: POST /json_proto HTTP/1.0 [23:32:52]Method: POST [23:32:52]URL: /json_proto [23:32:52]Method is POST - this is cgi request [23:32:52]url: /json_proto [23:32:52]query_string will be loaded in cgi processing [23:32:52]execute_cgi json_proto POST (null) [23:32:52]execute_cgi path=json_proto method=POST [23:32:52]POST find Content-Length [23:32:52]Host: 172.17.33.3:8080 [23:32:52]Content-Length: 738 [23:32:52]Content-Type: application/json [23:32:52] [23:32:52]POST finish read [23:32:52]Found Content-Length = 738 [23:32:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 29393, "base_FM": "0000000000963154", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347790", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.50, "quantity" : 45.770, "sum" : 3318.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3318.00, "total" : 3318.00, "payments": [ { "type": 0, "sum" : 3318.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:32:52]execute_script... [23:32:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 29393, "base_FM": "0000000000963154", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347790", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.50, "quantity" : 45.770, "sum" : 3318.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3318.00, "total" : 3318.00, "payments": [ { "type": 0, "sum" : 3318.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:32:52]POST & json_proto [23:32:52]process_json_proto [23:32:52]json parsed OK: [23:32:52]protocol is kg_v1.0 [23:32:52]action value=close_receipt [23:32:52]process_action close_receipt [23:32:52]cmd_close_receipt [23:32:52]MH_GetDate [23:32:52]Write to MH i2c: F0 00 00 99 12 9A [23:32:52]Write i2c OK [23:32:52]MH_I2C_Read... [23:32:52]Read from MH i2c: F0 [23:32:52]MH_I2C_Read... [23:32:52]Read from MH i2c: F0 09 00 [23:32:52]MH_I2C_Read... [23:32:52]Read from MH i2c: F0 09 00 99 12 00 A6 67 1C 66 23 5B 8F 65 A4 [23:32:52]GetLastDocTimeStamp 1713137568 [23:32:52]current date 1713137574 [23:32:52]FM_GetShiftState [23:32:52]SAM_PROTO_GetShiftState [23:32:52]wFMCommunicate request_size=4 [23:32:52]MH_SAM_APDU [23:32:52]CAPDU: 80 13 01 00 [23:32:52]Write to MH i2c: E2 08 00 9A 12 80 13 01 00 00 00 00 00 29 [23:32:52]Write i2c OK [23:32:52]MH_I2C_Read... [23:32:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:32:53]Read from MH i2c: E2 [23:32:53]MH_I2C_Read... [23:32:53]Read from MH i2c: E2 0E 00 [23:32:53]MH_I2C_Read... [23:32:53]Read from MH i2c: E2 0E 00 9A 12 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 D5 [23:32:53]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [23:32:53]wFMCommunicate OK [23:32:53]SAM_PROTO_GetShiftState done [23:32:53]FM_GetShiftState done [23:32:53]opened in 1713053951 [23:32:53]opened+sec_in_day 1713140351 [23:32:53]quantity*price = 331832 [23:32:53]sum+1 = 331834 [23:32:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 3318.00 НСП 1% : 29.37 НДС 12% : 352.39 Наличными: 3318.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 304 14.04.2024 23:32 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФД осн.: 29393 ФМ осн.: 0000000000963154 ФМ: 0000000000963154 ФД: 29394 ФПД: 221257572647475 1/tax-web-control/client/api/v1/ticket?date=20240414T233254&type=2&operation_type=1&fn_number=0000000000963154&fd_number=29394&fm=221257572647475&tin=02508201610067®Number=0000138879044617&sum=331800 [23:32:54]StoreToDocumentArchive [23:32:54]shift 116 fd 29394 [23:32:54]save to /storage/0116/doc_00029394 [23:32:54]save last doc name /storage/0116/doc_00029394 to /storage/kkm_last_doc_name [23:32:54]save OK [23:32:54]Clear old archive folders... [23:32:54]ProcessDocumentItem done err = 0, tmpTLVsize=279 [23:32:54]tlvbuf is 002214B0 [23:32:54]SAM_PROTO_ClearQueue [23:32:54]wFMCommunicate request_size=4 [23:32:54]MH_SAM_APDU [23:32:54]CAPDU: 80 09 00 00 [23:32:54]Write to MH i2c: E2 08 00 A9 12 80 09 00 00 00 00 00 00 2D [23:32:54]Write i2c OK [23:32:54]MH_I2C_Read... [23:32:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:32:54]Read from MH i2c: E2 [23:32:54]MH_I2C_Read... [23:32:54]Read from MH i2c: E2 03 00 [23:32:54]MH_I2C_Read... [23:32:54]Read from MH i2c: E2 03 00 A9 12 00 90 00 2F [23:32:54]RAPDU: 90 00 [23:32:54]wFMCommunicate OK [23:32:54]SAM_PROTO_ClearQueue done [23:32:54]KKMCreateOFDPacket [23:32:54]OFDProtocolAddRootSTLVToBuf [23:32:54]FM_MakeSignedData [23:32:54]FM_MakeSignedData [23:32:54]SAM_PROTO_SignData [23:32:54]wFMCommunicate request_size=4 [23:32:54]MH_SAM_APDU [23:32:54]CAPDU: 80 0D 01 02 [23:32:54]Write to MH i2c: E2 08 00 AA 12 80 0D 01 02 00 00 00 00 35 [23:32:54]Write i2c OK [23:32:54]MH_I2C_Read... [23:32:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:32:54]Read from MH i2c: E2 [23:32:54]MH_I2C_Read... [23:32:54]Read from MH i2c: E2 03 00 [23:32:54]MH_I2C_Read... [23:32:54]Read from MH i2c: E2 03 00 AA 12 00 90 00 30 [23:32:54]RAPDU: 90 00 [23:32:54]wFMCommunicate OK [23:32:54]wFMCommunicate request_size=255 [23:32:54]MH_SAM_APDU [23:32:54]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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 CA B2 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 39 10 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 10 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 89 00 00 00 00 07 04 06 00 18 10 05 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 A6 67 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 D1 72 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 30 [23:32:54]Write to MH i2c: E2 02 01 AB 12 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 CA B2 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 39 10 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 10 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 89 00 00 00 00 07 04 06 00 18 10 05 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 A6 67 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 D1 72 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 30 00 00 7F [23:32:54]Write i2c OK [23:32:54]MH_I2C_Read... [23:32:54]OFD Sender: No OFD packet to send [23:32:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:32:54]Read from MH i2c: E2 [23:32:54]MH_I2C_Read... [23:32:54]Read from MH i2c: E2 03 00 [23:32:54]MH_I2C_Read... [23:32:54]Read from MH i2c: E2 03 00 AB 12 00 90 00 31 [23:32:54]RAPDU: 90 00 [23:32:54]wFMCommunicate OK [23:32:54]wFMCommunicate request_size=38 [23:32:54]MH_SAM_APDU [23:32:54]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D2 72 00 00 35 04 06 00 C9 3B 8B 05 82 33 [23:32:54]Write to MH i2c: E2 29 00 AC 12 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D2 72 00 00 35 04 06 00 C9 3B 8B 05 82 33 00 00 4A [23:32:54]Write i2c OK [23:32:54]MH_I2C_Read... [23:32:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:32:54]Read from MH i2c: E2 [23:32:54]MH_I2C_Read... [23:32:54]Read from MH i2c: E2 03 00 [23:32:54]MH_I2C_Read... [23:32:54]Read from MH i2c: E2 03 00 AC 12 00 90 00 32 [23:32:54]RAPDU: 90 00 [23:32:54]wFMCommunicate OK [23:32:54]wFMCommunicate request_size=4 [23:32:54]MH_SAM_APDU [23:32:54]CAPDU: 80 0D 03 02 [23:32:54]Write to MH i2c: E2 08 00 AD 12 80 0D 03 02 00 00 00 00 3A [23:32:54]Write i2c OK [23:32:54]MH_I2C_Read... [23:32:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:32:54]Read from MH i2c: E2 [23:32:54]MH_I2C_Read... [23:32:54]Read from MH i2c: E2 0B 00 [23:32:54]MH_I2C_Read... [23:32:54]Read from MH i2c: E2 0B 00 AD 12 00 59 00 49 12 FA DB C0 25 90 00 A9 [23:32:54]RAPDU: 59 00 49 12 FA DB C0 25 90 00 [23:32:54]wFMCommunicate OK [23:32:54]SAM_PROTO_SignData done [23:32:54]FM_MakeSignedData done [23:32:54]CreateOFDProtocolMessage [23:32:54]wFMCommunicate request_size=4 [23:32:54]MH_SAM_APDU [23:32:54]CAPDU: 80 11 00 00 [23:32:54]Write to MH i2c: E2 08 00 AE 12 80 11 00 00 00 00 00 00 3A [23:32:54]Write i2c OK [23:32:54]MH_I2C_Read... [23:32:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:32:54]Read from MH i2c: E2 [23:32:54]MH_I2C_Read... [23:32:54]Read from MH i2c: E2 17 00 [23:32:54]MH_I2C_Read... [23:32:54]Read from MH i2c: E2 17 00 AE 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 89 [23:32:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:32:54]wFMCommunicate OK [23:32:54]CreateOFDProtocolMessage done [23:32:54]OFDSenderStorePacket 29394 [23:32:54]StoreOFDPacket docnum=29394 [23:32:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 2B 01 00 00 8F 97 23 01 8B 98 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 CA B2 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 39 10 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 10 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 89 00 00 00 00 07 04 06 00 18 10 05 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 A6 67 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 D1 72 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D2 72 00 00 35 04 06 00 C9 3B 8B 05 82 33 59 00 49 12 FA DB C0 25 [23:32:54]CheckFolder [23:32:54]dirname=/storage/ofd_packets [23:32:54]CheckFolder done [23:32:54]ProducePacketName [23:32:54]name=ofd_packets/00029394 [23:32:54]NVStorageSaveData ofd_packets/00029394 [23:32:54]File name is /storage/ofd_packets/00029394 [23:32:54]Write 329 bytes [23:32:54]NVStorageSaveData done [23:32:54]OFDSenderStorePacket done [23:32:54]KKMCreateOFDPacket done [23:32:54]NVStorageSaveData kkm_last_timestamp [23:32:54]File name is /storage/kkm_last_timestamp [23:32:54]Write 4 bytes [23:32:54]NVStorageSaveData done [23:32:54]ExternCall_PrintAddStr [23:32:54]wPrintStart [23:32:54]Write to MH i2c: 01 00 00 AF 12 C1 [23:32:54]Write i2c OK [23:32:54]MH_I2C_Read... [23:32:54]Read from MH i2c: 01 [23:32:54]MH_I2C_Read... [23:32:54]Read from MH i2c: 01 07 00 [23:32:54]MH_I2C_Read... [23:32:54]Read from MH i2c: 01 07 00 AF 12 00 00 00 00 00 FF 0F D6 [23:32:54]RasterBufferAndPrint [23:32:54]line Счет N : (1)347790 [23:32:54]line ИНН: 02508201610067 [23:32:54]line Контрольно-Кассовый Чек [23:32:54]line ВОЗВРАТ ПРОДАЖИ [23:32:54]line ТРК (МРК, ГНК) : 33 [23:32:54]line Товар: 2710124500 [23:32:54]line Аи-95-К-5 [23:32:54]line 45.770 * 72.50 [23:32:54]line = 3318.33 [23:32:54]line НДС 12% НСП 1% [23:32:54]line > о реализуемом товаре [23:32:54]line ОКРУГЛЕНИЕ: -0.33 [23:32:54]line ИТОГО: 3318.00 [23:32:54]OFD Sender: Processing packet 29394 [packets to send 8, broken 7] [23:32:54]ProducePacketName [23:32:54]name=ofd_packets/00029394 [23:32:54]OFD Sender: To server: pG, [23:32:54]CommunicateWithHost lk.salyk.kg:30040 [23:32:54]ConnectInit lk.salyk.kg [23:32:54]line НСП 1% : 29.37 [23:32:54]line НДС 12% : 352.39 [23:32:54]line Наличными: 3318.00 [23:32:54]line Безнал.: 0.00 [23:32:54]line Место: АЗС № 108 "Партнер Нефть" [23:32:54]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [23:32:54]line СНО: Общий режим [23:32:54]line Чек 304 14.04.2024 23:32 [23:32:54]line Смена: 116 ФФД: 1.0 [23:32:54]line ЗНМ: 0300000027 [23:32:54]line РНМ: 0000138879044617 [23:32:54]line Версия ККМ: 001 [23:32:54]line ФД осн.: 29393 [23:32:54]line ФМ осн.: 0000000000963154 [23:32:54]line ФМ: 0000000000963154 [23:32:54]line ФД: 29394 [23:32:54]line ФПД: 221257572647475 [23:32:54]line 1/tax-web-control/client/api/v1/ticket?date=20240414T233254&type=2&operation_type=1&fn_number=0000000000963154&fd_number=29394&fm=221257572647475&tin=02508201610067®Number=0000138879044617&sum=331800 [23:32:54]written 0, free lines is 4095 [23:32:55]Connected sock=10 [23:32:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 2B 01 00 00 8F 97 23 01 8B 98 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 CA B2 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 39 10 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 10 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 89 00 00 00 00 07 04 06 00 18 10 05 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 A6 67 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 D1 72 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D2 72 00 00 35 04 06 00 C9 3B 8B 05 82 33 59 00 49 12 FA DB C0 25 [23:32:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 F0 0A 47 00 E9 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D2 72 00 00 F4 03 04 00 49 12 1C 66 B6 04 01 00 00 E7 40 E8 22 FC 6D 58 E8 [23:32:55]CommunicateWithHost err = 0 [23:32:55]CheckOFDResponse [23:32:55]1017 (14) - 77093643461234 [23:32:55]1041 (16) - 0000000000963154 [23:32:55]1040 (4) - 29394 [23:32:55]1012 (4) - 14.04.2024 17:28 [23:32:55]1206 (1) - 0 [23:32:55]OFD Sender: Remove packet 29394 [23:32:55]ProducePacketName [23:32:55]name=ofd_packets/00029394 [23:32:55]NVStorageDeleteData [23:32:55]Write to MH i2c: 01 00 00 D9 12 EB [23:32:55]Write i2c OK [23:32:55]MH_I2C_Read... [23:32:55]Read from MH i2c: 01 [23:32:55]MH_I2C_Read... [23:32:55]Read from MH i2c: 01 07 00 [23:32:55]MH_I2C_Read... [23:32:55]Read from MH i2c: 01 07 00 D9 12 00 00 00 00 00 D2 0C D0 [23:32:55]RasterBufferAndPrint [23:32:55]line [23:32:55]line [23:32:55]line [23:32:55]line [23:32:55]line [23:32:55]written 0, free lines is 3297 [23:32:55]MH_Cut [23:32:55]Write to MH i2c: D1 01 00 E0 12 01 C4 [23:32:55]Write i2c OK [23:32:55]MH_I2C_Read... [23:32:55]Read from MH i2c: D1 [23:32:55]MH_I2C_Read... [23:32:55]Read from MH i2c: D1 01 00 [23:32:55]MH_I2C_Read... [23:32:55]Read from MH i2c: D1 01 00 E0 12 00 C3 [23:32:55]Write to MH i2c: 01 00 00 E1 12 F3 [23:32:55]Write i2c OK [23:32:55]MH_I2C_Read... [23:32:55]OFD Sender: No OFD packet to send [23:32:56]*** Cut start [23:32:56]*** Partial cut [23:32:56]*** CUTSNS_PIN = 1 [23:32:56]*** CUTSNS_PIN = 0 [23:32:56]*** Brake cut motor [23:32:56]Read from MH i2c: 01 [23:32:56]MH_I2C_Read... [23:32:56]*** Stop cut motor [23:32:56]*** Cut end [23:32:56]Read from MH i2c: 01 07 00 [23:32:56]MH_I2C_Read... [23:32:56]Read from MH i2c: 01 07 00 E1 12 00 00 00 00 00 FF 0F 08 [23:32:56]process_action close_receipt done [23:32:56]requested_data is exist [23:32:56]produce_requested_data [23:32:56]requested_item fm.sn is exist - process it [23:32:56]wFMCommunicate request_size=4 [23:32:56]MH_SAM_APDU [23:32:56]CAPDU: 80 11 00 00 [23:32:56]Write to MH i2c: E2 08 00 E2 12 80 11 00 00 00 00 00 00 6E [23:32:56]Write i2c OK [23:32:56]MH_I2C_Read... [23:32:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:32:56]Read from MH i2c: E2 [23:32:56]MH_I2C_Read... [23:32:56]Read from MH i2c: E2 17 00 [23:32:56]MH_I2C_Read... [23:32:56]Read from MH i2c: E2 17 00 E2 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 BD [23:32:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:32:56]wFMCommunicate OK [23:32:56]requested_item fd.num is exist - process it [23:32:56]SAM_PROTO_GetFieldsCounters [23:32:56]wFMCommunicate request_size=4 [23:32:56]MH_SAM_APDU [23:32:56]CAPDU: 80 13 00 00 [23:32:56]Write to MH i2c: E2 08 00 E3 12 80 13 00 00 00 00 00 00 71 [23:32:56]Write i2c OK [23:32:56]MH_I2C_Read... [23:32:57]Read from MH i2c: E2 [23:32:57]MH_I2C_Read... [23:32:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:32:57]Read from MH i2c: E2 62 00 [23:32:57]MH_I2C_Read... [23:32:57]Read from MH i2c: E2 62 00 E3 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D2 72 00 00 0E 04 04 00 74 00 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 FA [23:32:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D2 72 00 00 0E 04 04 00 74 00 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 [23:32:57]wFMCommunicate OK [23:32:57]SAM_PROTO_GetFieldsCounters done [23:32:57]requested_item shift.num is exist - process it [23:32:57]requested_item shift.opened is exist - process it [23:32:57]req_shift_opened [23:32:57]FM_GetShiftState [23:32:57]SAM_PROTO_GetShiftState [23:32:57]wFMCommunicate request_size=4 [23:32:57]MH_SAM_APDU [23:32:57]CAPDU: 80 13 01 00 [23:32:57]Write to MH i2c: E2 08 00 E4 12 80 13 01 00 00 00 00 00 73 [23:32:57]Write i2c OK [23:32:57]MH_I2C_Read... [23:32:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:32:57]Read from MH i2c: E2 [23:32:57]MH_I2C_Read... [23:32:57]Read from MH i2c: E2 0E 00 [23:32:57]MH_I2C_Read... [23:32:57]Read from MH i2c: E2 0E 00 E4 12 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 1F [23:32:57]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [23:32:57]wFMCommunicate OK [23:32:57]SAM_PROTO_GetShiftState done [23:32:57]FM_GetShiftState done [23:32:57]req_shift_opened done [23:32:57]requested_item shift.open_date is exist - process it [23:32:57]req_shift_open_date [23:32:57]req_shift_open_date done [23:32:57]produce_requested_data done [23:32:57]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29394,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [23:32:57]process_action_free close_receipt [23:32:57]json_value_free [23:32:57]json_value_free done [23:32:57]process_json_proto returns [23:32:57]Send response to host [23:32:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29394,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [23:32:57]free response buf [23:32:57]execute_script done [23:32:57]execute_script returns [23:32:57]free content buf [23:32:57]Sock 9.Close socket [23:32:57]Sock 9.Thread stoped [23:33:00]OFD Sender: No OFD packet to send [23:33:05]OFD Sender: No OFD packet to send [23:33:10]OFD Sender: No OFD packet to send [23:33:15]OFD Sender: No OFD packet to send [23:33:20]OFD Sender: No OFD packet to send [23:33:25]OFD Sender: No OFD packet to send [23:33:30]OFD Sender: No OFD packet to send [23:33:35]OFD Sender: No OFD packet to send [23:33:40]OFD Sender: No OFD packet to send [23:33:45]OFD Sender: No OFD packet to send [23:33:50]OFD Sender: No OFD packet to send [23:33:55]OFD Sender: No OFD packet to send [23:34:00]OFD Sender: No OFD packet to send [23:34:05]OFD Sender: No OFD packet to send [23:34:10]OFD Sender: No OFD packet to send [23:34:15]OFD Sender: No OFD packet to send [23:34:20]OFD Sender: No OFD packet to send [23:34:25]OFD Sender: No OFD packet to send [23:34:27]accept exits with 8 [23:34:27]New connection [23:34:27]New thread 3066969444 created [23:34:27]Thread 3067112804 joined [23:34:27]Waiting for new connection... [23:34:27] Sock 8.Parse request [23:34:27]Sock 8.Check first char [23:34:27]Sock 8.First char is OK [23:34:27]request: POST /json_proto HTTP/1.0 [23:34:27]Method: POST [23:34:27]URL: /json_proto [23:34:27]Method is POST - this is cgi request [23:34:27]url: /json_proto [23:34:27]query_string will be loaded in cgi processing [23:34:27]execute_cgi json_proto POST (null) [23:34:27]execute_cgi path=json_proto method=POST [23:34:27]POST find Content-Length [23:34:27]Host: 172.17.33.3:8080 [23:34:27]Content-Length: 811 [23:34:27]Content-Type: application/json [23:34:27] [23:34:27]POST finish read [23:34:27]Found Content-Length = 811 [23:34:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347789", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 30.400, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:34:27]execute_script... [23:34: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)347789", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 30.400, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:34:27]POST & json_proto [23:34:27]process_json_proto [23:34:27]json parsed OK: [23:34:27]protocol is kg_v1.0 [23:34:27]action value=close_receipt [23:34:27]process_action close_receipt [23:34:27]cmd_close_receipt [23:34:27]MH_GetDate [23:34:27]Write to MH i2c: F0 00 00 E5 12 E6 [23:34:27]Write i2c OK [23:34:27]MH_I2C_Read... [23:34:27]Read from MH i2c: F0 [23:34:27]MH_I2C_Read... [23:34:27]Read from MH i2c: F0 09 00 [23:34:27]MH_I2C_Read... [23:34:27]Read from MH i2c: F0 09 00 E5 12 00 05 68 1C 66 23 5B 8F 65 50 [23:34:27]GetLastDocTimeStamp 1713137574 [23:34:27]current date 1713137669 [23:34:27]FM_GetShiftState [23:34:27]SAM_PROTO_GetShiftState [23:34:27]wFMCommunicate request_size=4 [23:34:27]MH_SAM_APDU [23:34:27]CAPDU: 80 13 01 00 [23:34:27]Write to MH i2c: E2 08 00 E6 12 80 13 01 00 00 00 00 00 75 [23:34:27]Write i2c OK [23:34:27]MH_I2C_Read... [23:34:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:34:27]Read from MH i2c: E2 [23:34:27]MH_I2C_Read... [23:34:27]Read from MH i2c: E2 0E 00 [23:34:27]MH_I2C_Read... [23:34:27]Read from MH i2c: E2 0E 00 E6 12 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 21 [23:34:27]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [23:34:27]wFMCommunicate OK [23:34:27]SAM_PROTO_GetShiftState done [23:34:27]FM_GetShiftState done [23:34:27]opened in 1713053951 [23:34:27]opened+sec_in_day 1713140351 [23:34:27]quantity*price = 100016 [23:34:27]sum+1 = 100017 [23:34:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 305 14.04.2024 23:34 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29395 ФПД: 221121811109388 1/tax-web-control/client/api/v1/ticket?date=20240414T233429&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29395&fm=221121811109388&tin=02508201610067®Number=0000138879044617&sum=100016 [23:34:28]StoreToDocumentArchive [23:34:28]shift 116 fd 29395 [23:34:28]save to /storage/0116/doc_00029395 [23:34:28]save last doc name /storage/0116/doc_00029395 to /storage/kkm_last_doc_name [23:34:28]save OK [23:34:28]Clear old archive folders... [23:34:28]ProcessDocumentItem done err = 0, tmpTLVsize=250 [23:34:28]tlvbuf is 002089C0 [23:34:28]SAM_PROTO_ClearQueue [23:34:28]wFMCommunicate request_size=4 [23:34:28]MH_SAM_APDU [23:34:28]CAPDU: 80 09 00 00 [23:34:28]Write to MH i2c: E2 08 00 F3 12 80 09 00 00 00 00 00 00 77 [23:34:28]Write i2c OK [23:34:28]MH_I2C_Read... [23:34:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:34:28]Read from MH i2c: E2 [23:34:28]MH_I2C_Read... [23:34:28]Read from MH i2c: E2 03 00 [23:34:28]MH_I2C_Read... [23:34:28]Read from MH i2c: E2 03 00 F3 12 00 90 00 79 [23:34:28]RAPDU: 90 00 [23:34:28]wFMCommunicate OK [23:34:28]SAM_PROTO_ClearQueue done [23:34:28]KKMCreateOFDPacket [23:34:28]OFDProtocolAddRootSTLVToBuf [23:34:28]FM_MakeSignedData [23:34:28]FM_MakeSignedData [23:34:28]SAM_PROTO_SignData [23:34:28]wFMCommunicate request_size=4 [23:34:28]MH_SAM_APDU [23:34:28]CAPDU: 80 0D 01 02 [23:34:28]Write to MH i2c: E2 08 00 F4 12 80 0D 01 02 00 00 00 00 7F [23:34:28]Write i2c OK [23:34:28]MH_I2C_Read... [23:34:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:34:28]Read from MH i2c: E2 [23:34:28]MH_I2C_Read... [23:34:28]Read from MH i2c: E2 03 00 [23:34:28]MH_I2C_Read... [23:34:28]Read from MH i2c: E2 03 00 F4 12 00 90 00 7A [23:34:28]RAPDU: 90 00 [23:34:28]wFMCommunicate OK [23:34:28]wFMCommunicate request_size=255 [23:34:28]MH_SAM_APDU [23:34: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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 05 68 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D3 72 00 00 35 04 06 00 C9 1B [23:34:28]Write to MH i2c: E2 02 01 F5 12 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 05 68 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D3 72 00 00 35 04 06 00 C9 1B 00 00 F3 [23:34:28]Write i2c OK [23:34:28]MH_I2C_Read... [23:34:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:34:29]Read from MH i2c: E2 [23:34:29]MH_I2C_Read... [23:34:29]Read from MH i2c: E2 03 00 [23:34:29]MH_I2C_Read... [23:34:29]Read from MH i2c: E2 03 00 F5 12 00 90 00 7B [23:34:29]RAPDU: 90 00 [23:34:29]wFMCommunicate OK [23:34:29]wFMCommunicate request_size=9 [23:34:29]MH_SAM_APDU [23:34:29]CAPDU: 80 0D 02 02 04 EF 00 D6 0C [23:34:29]Write to MH i2c: E2 0C 00 F6 12 80 0D 02 02 04 00 EF 00 D6 0C 00 00 5B [23:34:29]Write i2c OK [23:34:29]MH_I2C_Read... [23:34:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:34:29]Read from MH i2c: E2 [23:34:29]MH_I2C_Read... [23:34:29]Read from MH i2c: E2 03 00 [23:34:29]MH_I2C_Read... [23:34:29]Read from MH i2c: E2 03 00 F6 12 00 90 00 7C [23:34:29]RAPDU: 90 00 [23:34:29]wFMCommunicate OK [23:34:29]wFMCommunicate request_size=4 [23:34:29]MH_SAM_APDU [23:34:29]CAPDU: 80 0D 03 02 [23:34:29]Write to MH i2c: E2 08 00 F7 12 80 0D 03 02 00 00 00 00 84 [23:34:29]Write i2c OK [23:34:29]MH_I2C_Read... [23:34:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:34:29]Read from MH i2c: E2 [23:34:29]MH_I2C_Read... [23:34:29]Read from MH i2c: E2 0B 00 [23:34:29]MH_I2C_Read... [23:34:29]Read from MH i2c: E2 0B 00 F7 12 00 CB F1 39 D7 4B CA 54 EC 90 00 A6 [23:34:29]RAPDU: CB F1 39 D7 4B CA 54 EC 90 00 [23:34:29]wFMCommunicate OK [23:34:29]SAM_PROTO_SignData done [23:34:29]FM_MakeSignedData done [23:34:29]CreateOFDProtocolMessage [23:34:29]wFMCommunicate request_size=4 [23:34:29]MH_SAM_APDU [23:34:29]CAPDU: 80 11 00 00 [23:34:29]Write to MH i2c: E2 08 00 F8 12 80 11 00 00 00 00 00 00 84 [23:34:29]Write i2c OK [23:34:29]MH_I2C_Read... [23:34:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:34:29]Read from MH i2c: E2 [23:34:29]MH_I2C_Read... [23:34:29]Read from MH i2c: E2 17 00 [23:34:29]MH_I2C_Read... [23:34:29]Read from MH i2c: E2 17 00 F8 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D3 [23:34:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:34:29]wFMCommunicate OK [23:34:29]CreateOFDProtocolMessage done [23:34:29]OFDSenderStorePacket 29395 [23:34:29]StoreOFDPacket docnum=29395 [23:34:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 20 36 06 01 2C A0 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 05 68 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D3 72 00 00 35 04 06 00 C9 1B EF 00 D6 0C CB F1 39 D7 4B CA 54 EC [23:34:29]CheckFolder [23:34:29]dirname=/storage/ofd_packets [23:34:29]CheckFolder done [23:34:29]ProducePacketName [23:34:29]name=ofd_packets/00029395 [23:34:29]NVStorageSaveData ofd_packets/00029395 [23:34:29]File name is /storage/ofd_packets/00029395 [23:34:29]Write 300 bytes [23:34:29]NVStorageSaveData done [23:34:29]OFDSenderStorePacket done [23:34:29]KKMCreateOFDPacket done [23:34:29]NVStorageSaveData kkm_last_timestamp [23:34:29]File name is /storage/kkm_last_timestamp [23:34:29]Write 4 bytes [23:34:29]NVStorageSaveData done [23:34:29]ExternCall_PrintAddStr [23:34:29]wPrintStart [23:34:29]Write to MH i2c: 01 00 00 F9 12 0B [23:34:29]Write i2c OK [23:34:29]MH_I2C_Read... [23:34:29]Read from MH i2c: 01 [23:34:29]MH_I2C_Read... [23:34:29]Read from MH i2c: 01 07 00 [23:34:29]MH_I2C_Read... [23:34:29]Read from MH i2c: 01 07 00 F9 12 00 00 00 00 00 FF 0F 20 [23:34:29]RasterBufferAndPrint [23:34:29]line Счет N : (1)347789 [23:34:29]line ИНН: 02508201610067 [23:34:29]line Контрольно-Кассовый Чек [23:34:29]line ПРОДАЖА [23:34:29]line ТРК (МРК, ГНК) : 71 [23:34:29]line Товар: 2711129700 [23:34:29]line ГАЗ-К-5 [23:34:29]line 30.400 * 32.90 [23:34:29]line = 1000.16 [23:34:29]line НДС 12% НСП 1% [23:34:29]line > о реализуемом товаре [23:34:29]line ИТОГО: 1000.16 [23:34:29]line НСП 1% : 8.85 [23:34:29]line НДС 12% : 106.21 [23:34:29]line Наличными: 0.00 [23:34:29]line Безнал.: 1000.16 [23:34:29]line Место: АЗС № 108 "Партнер Нефть" [23:34:29]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [23:34:29]line СНО: Общий режим [23:34:29]line Чек 305 14.04.2024 23:34 [23:34:29]line Смена: 116 ФФД: 1.0 [23:34:29]line ЗНМ: 0300000027 [23:34:29]line РНМ: 0000138879044617 [23:34:29]line Версия ККМ: 001 [23:34:29]line Платежная система: О! деньги [23:34:29]line ФМ: 0000000000963154 [23:34:29]line ФД: 29395 [23:34:29]line ФПД: 221121811109388 [23:34:29]line 1/tax-web-control/client/api/v1/ticket?date=20240414T233429&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29395&fm=221121811109388&tin=02508201610067®Number=0000138879044617&sum=100016 [23:34:29]OFD Sender: Processing packet 29395 [packets to send 8, broken 7] [23:34:29]ProducePacketName [23:34:29]name=ofd_packets/00029395 [23:34:29]OFD Sender: To server: pG, [23:34:29]CommunicateWithHost lk.salyk.kg:30040 [23:34:29]ConnectInit lk.salyk.kg [23:34:29]written 0, free lines is 4095 [23:34:29]Connected sock=10 [23:34:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 20 36 06 01 2C A0 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 05 68 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D3 72 00 00 35 04 06 00 C9 1B EF 00 D6 0C CB F1 39 D7 4B CA 54 EC [23:34:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 F9 39 47 00 69 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 39 36 33 31 35 34 10 04 04 00 D3 72 00 00 F4 03 04 00 A8 12 1C 66 B6 04 01 00 00 B5 27 34 4C 80 92 05 42 [23:34:29]CommunicateWithHost err = 0 [23:34:29]CheckOFDResponse [23:34:29]1017 (14) - 77093643461234 [23:34:29]1041 (16) - 0000000000963154 [23:34:29]1040 (4) - 29395 [23:34:29]1012 (4) - 14.04.2024 17:30 [23:34:29]1206 (1) - 0 [23:34:29]OFD Sender: Remove packet 29395 [23:34:29]ProducePacketName [23:34:29]name=ofd_packets/00029395 [23:34:29]NVStorageDeleteData [23:34:30]Write to MH i2c: 01 00 00 22 13 35 [23:34:30]Write i2c OK [23:34:30]MH_I2C_Read... [23:34:30]Read from MH i2c: 01 [23:34:30]MH_I2C_Read... [23:34:30]Read from MH i2c: 01 07 00 [23:34:30]MH_I2C_Read... [23:34:30]Read from MH i2c: 01 07 00 22 13 00 00 00 00 00 CE 0C 16 [23:34:30]RasterBufferAndPrint [23:34:30]line [23:34:30]line [23:34:30]line [23:34:30]line [23:34:30]line [23:34:30]written 0, free lines is 3283 [23:34:30]MH_Cut [23:34:30]Write to MH i2c: D1 01 00 29 13 01 0E [23:34:30]Write i2c OK [23:34:30]MH_I2C_Read... [23:34:30]Read from MH i2c: D1 [23:34:30]MH_I2C_Read... [23:34:30]Read from MH i2c: D1 01 00 [23:34:30]MH_I2C_Read... [23:34:30]Read from MH i2c: D1 01 00 29 13 00 0D [23:34:30]Write to MH i2c: 01 00 00 2A 13 3D [23:34:30]Write i2c OK [23:34:30]MH_I2C_Read... [23:34:30]OFD Sender: No OFD packet to send [23:34:30]*** Cut start [23:34:30]*** Partial cut [23:34:30]*** CUTSNS_PIN = 1 [23:34:31]*** CUTSNS_PIN = 0 [23:34:31]*** Brake cut motor [23:34:31]Read from MH i2c: 01 [23:34:31]MH_I2C_Read... [23:34:31]*** Stop cut motor [23:34:31]*** Cut end [23:34:31]Read from MH i2c: 01 07 00 [23:34:31]MH_I2C_Read... [23:34:31]Read from MH i2c: 01 07 00 2A 13 00 00 00 00 00 FF 0F 52 [23:34:31]process_action close_receipt done [23:34:31]requested_data is exist [23:34:31]produce_requested_data [23:34:31]requested_item fm.sn is exist - process it [23:34:31]wFMCommunicate request_size=4 [23:34:31]MH_SAM_APDU [23:34:31]CAPDU: 80 11 00 00 [23:34:31]Write to MH i2c: E2 08 00 2B 13 80 11 00 00 00 00 00 00 B8 [23:34:31]Write i2c OK [23:34:31]MH_I2C_Read... [23:34:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:34:31]Read from MH i2c: E2 [23:34:31]MH_I2C_Read... [23:34:31]Read from MH i2c: E2 17 00 [23:34:31]MH_I2C_Read... [23:34:31]Read from MH i2c: E2 17 00 2B 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 07 [23:34:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:34:31]wFMCommunicate OK [23:34:31]requested_item fd.num is exist - process it [23:34:31]SAM_PROTO_GetFieldsCounters [23:34:31]wFMCommunicate request_size=4 [23:34:31]MH_SAM_APDU [23:34:31]CAPDU: 80 13 00 00 [23:34:31]Write to MH i2c: E2 08 00 2C 13 80 13 00 00 00 00 00 00 BB [23:34:31]Write i2c OK [23:34:31]MH_I2C_Read... [23:34:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:34:31]Read from MH i2c: E2 [23:34:31]MH_I2C_Read... [23:34:31]Read from MH i2c: E2 62 00 [23:34:31]MH_I2C_Read... [23:34:31]Read from MH i2c: E2 62 00 2C 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D3 72 00 00 0E 04 04 00 74 00 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 48 [23:34:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D3 72 00 00 0E 04 04 00 74 00 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 [23:34:31]wFMCommunicate OK [23:34:31]SAM_PROTO_GetFieldsCounters done [23:34:31]requested_item shift.num is exist - process it [23:34:31]requested_item shift.opened is exist - process it [23:34:31]req_shift_opened [23:34:31]FM_GetShiftState [23:34:31]SAM_PROTO_GetShiftState [23:34:31]wFMCommunicate request_size=4 [23:34:31]MH_SAM_APDU [23:34:31]CAPDU: 80 13 01 00 [23:34:31]Write to MH i2c: E2 08 00 2D 13 80 13 01 00 00 00 00 00 BD [23:34:31]Write i2c OK [23:34:31]MH_I2C_Read... [23:34:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:34:31]Read from MH i2c: E2 [23:34:31]MH_I2C_Read... [23:34:31]Read from MH i2c: E2 0E 00 [23:34:31]MH_I2C_Read... [23:34:31]Read from MH i2c: E2 0E 00 2D 13 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 69 [23:34:31]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [23:34:31]wFMCommunicate OK [23:34:31]SAM_PROTO_GetShiftState done [23:34:31]FM_GetShiftState done [23:34:31]req_shift_opened done [23:34:31]requested_item shift.open_date is exist - process it [23:34:31]req_shift_open_date [23:34:31]req_shift_open_date done [23:34:31]produce_requested_data done [23:34:31]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29395,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [23:34:31]process_action_free close_receipt [23:34:31]json_value_free [23:34:31]json_value_free done [23:34:31]process_json_proto returns [23:34:31]Send response to host [23:34:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29395,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [23:34:31]free response buf [23:34:31]execute_script done [23:34:31]execute_script returns [23:34:31]free content buf [23:34:31]Sock 8.Close socket [23:34:31]Sock 8.Thread stoped [23:34:35]OFD Sender: No OFD packet to send [23:34:40]OFD Sender: No OFD packet to send [23:34:45]OFD Sender: No OFD packet to send [23:34:50]OFD Sender: No OFD packet to send [23:34:55]OFD Sender: No OFD packet to send [23:35:00]OFD Sender: No OFD packet to send [23:35:05]OFD Sender: No OFD packet to send [23:35:10]OFD Sender: No OFD packet to send [23:35:15]OFD Sender: No OFD packet to send [23:35:20]OFD Sender: No OFD packet to send [23:35:25]OFD Sender: No OFD packet to send [23:35:30]OFD Sender: No OFD packet to send [23:35:35]OFD Sender: No OFD packet to send [23:35:40]OFD Sender: No OFD packet to send [23:35:45]OFD Sender: No OFD packet to send [23:35:50]OFD Sender: No OFD packet to send [23:35:55]OFD Sender: No OFD packet to send [23:36:00]OFD Sender: No OFD packet to send [23:36:05]OFD Sender: No OFD packet to send [23:36:10]OFD Sender: No OFD packet to send [23:36:15]OFD Sender: No OFD packet to send [23:36:20]OFD Sender: No OFD packet to send [23:36:25]OFD Sender: No OFD packet to send [23:36:30]OFD Sender: No OFD packet to send [23:36:35]OFD Sender: No OFD packet to send [23:36:40]OFD Sender: No OFD packet to send [23:36:45]OFD Sender: No OFD packet to send [23:36:50]OFD Sender: No OFD packet to send [23:36:55]OFD Sender: No OFD packet to send [23:37:00]OFD Sender: No OFD packet to send [23:37:05]OFD Sender: No OFD packet to send [23:37:10]OFD Sender: No OFD packet to send [23:37:15]OFD Sender: No OFD packet to send [23:37:20]OFD Sender: No OFD packet to send [23:37:25]OFD Sender: No OFD packet to send [23:37:30]OFD Sender: No OFD packet to send [23:37:35]OFD Sender: No OFD packet to send [23:37:40]OFD Sender: No OFD packet to send [23:37:42]accept exits with 9 [23:37:42]New connection [23:37:42]New thread 3067112804 created [23:37:42]Thread 3066969444 joined [23:37:42]Waiting for new connection... [23:37:42] Sock 9.Parse request [23:37:42]Sock 9.Check first char [23:37:42]Sock 9.First char is OK [23:37:42]request: POST /json_proto HTTP/1.0 [23:37:42]Method: POST [23:37:42]URL: /json_proto [23:37:42]Method is POST - this is cgi request [23:37:42]url: /json_proto [23:37:42]query_string will be loaded in cgi processing [23:37:42]execute_cgi json_proto POST (null) [23:37:42]execute_cgi path=json_proto method=POST [23:37:42]POST find Content-Length [23:37:42]Host: 172.17.33.3:8080 [23:37:42]Content-Length: 798 [23:37:42]Content-Type: application/json [23:37:42] [23:37:42]POST finish read [23:37:42]Found Content-Length = 798 [23:37:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347791", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 400.29 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:37:42]execute_script... [23:37: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)347791", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 400.29 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:37:42]POST & json_proto [23:37:42]process_json_proto [23:37:42]json parsed OK: [23:37:42]protocol is kg_v1.0 [23:37:42]action value=close_receipt [23:37:42]process_action close_receipt [23:37:42]cmd_close_receipt [23:37:42]MH_GetDate [23:37:42]Write to MH i2c: F0 00 00 2E 13 30 [23:37:42]Write i2c OK [23:37:42]MH_I2C_Read... [23:37:42]Read from MH i2c: F0 [23:37:42]MH_I2C_Read... [23:37:42]Read from MH i2c: F0 09 00 [23:37:42]MH_I2C_Read... [23:37:42]Read from MH i2c: F0 09 00 2E 13 00 C7 68 1C 66 23 5B 8F 65 5C [23:37:42]GetLastDocTimeStamp 1713137669 [23:37:42]current date 1713137863 [23:37:42]FM_GetShiftState [23:37:42]SAM_PROTO_GetShiftState [23:37:42]wFMCommunicate request_size=4 [23:37:42]MH_SAM_APDU [23:37:42]CAPDU: 80 13 01 00 [23:37:42]Write to MH i2c: E2 08 00 2F 13 80 13 01 00 00 00 00 00 BF [23:37:42]Write i2c OK [23:37:42]MH_I2C_Read... [23:37:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:37:42]Read from MH i2c: E2 [23:37:42]MH_I2C_Read... [23:37:42]Read from MH i2c: E2 0E 00 [23:37:42]MH_I2C_Read... [23:37:42]Read from MH i2c: E2 0E 00 2F 13 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 6B [23:37:42]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [23:37:42]wFMCommunicate OK [23:37:42]SAM_PROTO_GetShiftState done [23:37:42]FM_GetShiftState done [23:37:42]opened in 1713053951 [23:37:42]opened+sec_in_day 1713140351 [23:37:42]quantity*price = 40028 [23:37:42]sum+1 = 40030 [23:37:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.29 НСП 1% : 3.54 НДС 12% : 42.51 Наличными: 0.00 Безнал.: 400.29 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 306 14.04.2024 23:37 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29396 ФПД: 204820107784328 1/tax-web-control/client/api/v1/ticket?date=20240414T233743&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29396&fm=204820107784328&tin=02508201610067®Number=0000138879044617&sum=40029 [23:37:43]StoreToDocumentArchive [23:37:43]shift 116 fd 29396 [23:37:43]save to /storage/0116/doc_00029396 [23:37:43]save last doc name /storage/0116/doc_00029396 to /storage/kkm_last_doc_name [23:37:43]save OK [23:37:43]Clear old archive folders... [23:37:43]ProcessDocumentItem done err = 0, tmpTLVsize=252 [23:37:43]tlvbuf is 002189A0 [23:37:43]SAM_PROTO_ClearQueue [23:37:43]wFMCommunicate request_size=4 [23:37:43]MH_SAM_APDU [23:37:43]CAPDU: 80 09 00 00 [23:37:43]Write to MH i2c: E2 08 00 3C 13 80 09 00 00 00 00 00 00 C1 [23:37:43]Write i2c OK [23:37:43]MH_I2C_Read... [23:37:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:37:43]Read from MH i2c: E2 [23:37:43]MH_I2C_Read... [23:37:43]Read from MH i2c: E2 03 00 [23:37:43]MH_I2C_Read... [23:37:43]Read from MH i2c: E2 03 00 3C 13 00 90 00 C3 [23:37:43]RAPDU: 90 00 [23:37:43]wFMCommunicate OK [23:37:43]SAM_PROTO_ClearQueue done [23:37:43]KKMCreateOFDPacket [23:37:43]OFDProtocolAddRootSTLVToBuf [23:37:43]FM_MakeSignedData [23:37:43]FM_MakeSignedData [23:37:43]SAM_PROTO_SignData [23:37:43]wFMCommunicate request_size=4 [23:37:43]MH_SAM_APDU [23:37:43]CAPDU: 80 0D 01 02 [23:37:43]Write to MH i2c: E2 08 00 3D 13 80 0D 01 02 00 00 00 00 C9 [23:37:43]Write i2c OK [23:37:43]MH_I2C_Read... [23:37:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:37:43]Read from MH i2c: E2 [23:37:43]MH_I2C_Read... [23:37:43]Read from MH i2c: E2 03 00 [23:37:43]MH_I2C_Read... [23:37:43]Read from MH i2c: E2 03 00 3D 13 00 90 00 C4 [23:37:43]RAPDU: 90 00 [23:37:43]wFMCommunicate OK [23:37:43]wFMCommunicate request_size=255 [23:37:43]MH_SAM_APDU [23:37: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 2D 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 32 01 00 00 F4 03 04 00 C7 68 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D4 72 00 00 35 04 06 00 [23:37:43]Write to MH i2c: E2 02 01 3E 13 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 32 01 00 00 F4 03 04 00 C7 68 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D4 72 00 00 35 04 06 00 00 00 D5 [23:37:43]Write i2c OK [23:37:43]MH_I2C_Read... [23:37:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:37:43]Read from MH i2c: E2 [23:37:43]MH_I2C_Read... [23:37:43]Read from MH i2c: E2 03 00 [23:37:43]MH_I2C_Read... [23:37:43]Read from MH i2c: E2 03 00 3E 13 00 90 00 C5 [23:37:43]RAPDU: 90 00 [23:37:43]wFMCommunicate OK [23:37:43]wFMCommunicate request_size=11 [23:37:43]MH_SAM_APDU [23:37:43]CAPDU: 80 0D 02 02 06 BA 48 65 C4 70 88 [23:37:43]Write to MH i2c: E2 0E 00 3F 13 80 0D 02 02 06 00 BA 48 65 C4 70 88 00 00 FB [23:37:43]Write i2c OK [23:37:43]MH_I2C_Read... [23:37:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:37:43]Read from MH i2c: E2 [23:37:43]MH_I2C_Read... [23:37:43]Read from MH i2c: E2 03 00 [23:37:43]MH_I2C_Read... [23:37:43]Read from MH i2c: E2 03 00 3F 13 00 90 00 C6 [23:37:43]RAPDU: 90 00 [23:37:43]wFMCommunicate OK [23:37:43]wFMCommunicate request_size=4 [23:37:43]MH_SAM_APDU [23:37:43]CAPDU: 80 0D 03 02 [23:37:43]Write to MH i2c: E2 08 00 40 13 80 0D 03 02 00 00 00 00 CE [23:37:43]Write i2c OK [23:37:43]MH_I2C_Read... [23:37:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:37:43]Read from MH i2c: E2 [23:37:43]MH_I2C_Read... [23:37:43]Read from MH i2c: E2 0B 00 [23:37:43]MH_I2C_Read... [23:37:43]Read from MH i2c: E2 0B 00 40 13 00 89 82 44 EB A3 A6 AF FE 90 00 FF [23:37:43]RAPDU: 89 82 44 EB A3 A6 AF FE 90 00 [23:37:43]wFMCommunicate OK [23:37:43]SAM_PROTO_SignData done [23:37:43]FM_MakeSignedData done [23:37:43]CreateOFDProtocolMessage [23:37:43]wFMCommunicate request_size=4 [23:37:43]MH_SAM_APDU [23:37:43]CAPDU: 80 11 00 00 [23:37:43]Write to MH i2c: E2 08 00 41 13 80 11 00 00 00 00 00 00 CE [23:37:43]Write i2c OK [23:37:43]MH_I2C_Read... [23:37:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:37:43]Read from MH i2c: E2 [23:37:43]MH_I2C_Read... [23:37:43]Read from MH i2c: E2 17 00 [23:37:43]MH_I2C_Read... [23:37:43]Read from MH i2c: E2 17 00 41 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 1D [23:37:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:37:43]wFMCommunicate OK [23:37:43]CreateOFDProtocolMessage done [23:37:43]OFDSenderStorePacket 29396 [23:37:43]StoreOFDPacket docnum=29396 [23:37:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 2D 79 08 01 04 3A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 32 01 00 00 F4 03 04 00 C7 68 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D4 72 00 00 35 04 06 00 BA 48 65 C4 70 88 89 82 44 EB A3 A6 AF FE [23:37:43]CheckFolder [23:37:43]dirname=/storage/ofd_packets [23:37:43]CheckFolder done [23:37:43]ProducePacketName [23:37:43]name=ofd_packets/00029396 [23:37:43]NVStorageSaveData ofd_packets/00029396 [23:37:43]File name is /storage/ofd_packets/00029396 [23:37:43]Write 302 bytes [23:37:43]NVStorageSaveData done [23:37:43]OFDSenderStorePacket done [23:37:43]KKMCreateOFDPacket done [23:37:43]NVStorageSaveData kkm_last_timestamp [23:37:43]File name is /storage/kkm_last_timestamp [23:37:43]Write 4 bytes [23:37:43]NVStorageSaveData done [23:37:43]ExternCall_PrintAddStr [23:37:43]wPrintStart [23:37:43]Write to MH i2c: 01 00 00 42 13 55 [23:37:43]Write i2c OK [23:37:43]MH_I2C_Read... [23:37:43]Read from MH i2c: 01 [23:37:43]MH_I2C_Read... [23:37:43]Read from MH i2c: 01 07 00 [23:37:43]MH_I2C_Read... [23:37:43]Read from MH i2c: 01 07 00 42 13 00 00 00 00 00 FF 0F 6A [23:37:43]RasterBufferAndPrint [23:37:43]line Счет N : (1)347791 [23:37:43]line ИНН: 02508201610067 [23:37:43]line Контрольно-Кассовый Чек [23:37:43]line ПРОДАЖА [23:37:43]line ТРК (МРК, ГНК) : 22 [23:37:43]line Товар: 2710124130 [23:37:43]line SUPER-92-К-5 [23:37:43]line 6.130 * 65.30 [23:37:43]line = 400.29 [23:37:43]line НДС 12% НСП 1% [23:37:43]line > о реализуемом товаре [23:37:43]line ИТОГО: 400.29 [23:37:43]line НСП 1% : 3.54 [23:37:43]line НДС 12% : 42.51 [23:37:43]line Наличными: 0.00 [23:37:43]line Безнал.: 400.29 [23:37:43]line Место: АЗС № 108 "Партнер Нефть" [23:37:43]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [23:37:43]line СНО: Общий режим [23:37:43]line Чек 306 14.04.2024 23:37 [23:37:43]line Смена: 116 ФФД: 1.0 [23:37:43]line ЗНМ: 0300000027 [23:37:43]line РНМ: 0000138879044617 [23:37:43]line Версия ККМ: 001 [23:37:43]line Платежная система: О! деньги [23:37:43]line ФМ: 0000000000963154 [23:37:43]line ФД: 29396 [23:37:43]line ФПД: 204820107784328 [23:37:44]line 1/tax-web-control/client/api/v1/ticket?date=20240414T233743&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29396&fm=204820107784328&tin=02508201610067®Number=0000138879044617&sum=40029 [23:37:44]OFD Sender: Processing packet 29396 [packets to send 8, broken 7] [23:37:44]ProducePacketName [23:37:44]name=ofd_packets/00029396 [23:37:44]OFD Sender: To server: pG, [23:37:44]CommunicateWithHost lk.salyk.kg:30040 [23:37:44]ConnectInit lk.salyk.kg [23:37:44]written 0, free lines is 4095 [23:37:44]Connected sock=10 [23:37:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 2D 79 08 01 04 3A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 32 01 00 00 F4 03 04 00 C7 68 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D4 72 00 00 35 04 06 00 BA 48 65 C4 70 88 89 82 44 EB A3 A6 AF FE [23:37:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 30 FC 47 00 A6 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 39 36 33 31 35 34 10 04 04 00 D4 72 00 00 F4 03 04 00 6A 13 1C 66 B6 04 01 00 00 F3 D4 AA 0B B4 E5 75 83 [23:37:44]CommunicateWithHost err = 0 [23:37:44]CheckOFDResponse [23:37:44]1017 (14) - 77093643461234 [23:37:44]1041 (16) - 0000000000963154 [23:37:44]1040 (4) - 29396 [23:37:44]1012 (4) - 14.04.2024 17:33 [23:37:44]1206 (1) - 0 [23:37:44]OFD Sender: Remove packet 29396 [23:37:44]ProducePacketName [23:37:44]name=ofd_packets/00029396 [23:37:44]NVStorageDeleteData [23:37:44]Write to MH i2c: 01 00 00 6B 13 7E [23:37:44]Write i2c OK [23:37:44]MH_I2C_Read... [23:37:44]Read from MH i2c: 01 [23:37:44]MH_I2C_Read... [23:37:44]Read from MH i2c: 01 07 00 [23:37:44]MH_I2C_Read... [23:37:44]Read from MH i2c: 01 07 00 6B 13 00 00 00 00 00 E2 0C 73 [23:37:44]RasterBufferAndPrint [23:37:44]line [23:37:44]line [23:37:44]line [23:37:44]line [23:37:44]line [23:37:44]written 0, free lines is 3304 [23:37:44]MH_Cut [23:37:44]Write to MH i2c: D1 01 00 72 13 01 57 [23:37:44]Write i2c OK [23:37:44]MH_I2C_Read... [23:37:44]Read from MH i2c: D1 [23:37:44]MH_I2C_Read... [23:37:44]Read from MH i2c: D1 01 00 [23:37:44]MH_I2C_Read... [23:37:44]Read from MH i2c: D1 01 00 72 13 00 56 [23:37:44]Write to MH i2c: 01 00 00 73 13 86 [23:37:44]Write i2c OK [23:37:44]MH_I2C_Read... [23:37:44]OFD Sender: No OFD packet to send [23:37:45]*** Cut start [23:37:45]*** Partial cut [23:37:45]*** CUTSNS_PIN = 1 [23:37:45]*** CUTSNS_PIN = 0 [23:37:45]*** Brake cut motor [23:37:46]Read from MH i2c: 01 [23:37:46]MH_I2C_Read... [23:37:46]*** Stop cut motor [23:37:46]*** Cut end [23:37:46]Read from MH i2c: 01 07 00 [23:37:46]MH_I2C_Read... [23:37:46]Read from MH i2c: 01 07 00 73 13 00 00 00 00 00 FF 0F 9B [23:37:46]process_action close_receipt done [23:37:46]requested_data is exist [23:37:46]produce_requested_data [23:37:46]requested_item fm.sn is exist - process it [23:37:46]wFMCommunicate request_size=4 [23:37:46]MH_SAM_APDU [23:37:46]CAPDU: 80 11 00 00 [23:37:46]Write to MH i2c: E2 08 00 74 13 80 11 00 00 00 00 00 00 01 [23:37:46]Write i2c OK [23:37:46]MH_I2C_Read... [23:37:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:37:46]Read from MH i2c: E2 [23:37:46]MH_I2C_Read... [23:37:46]Read from MH i2c: E2 17 00 [23:37:46]MH_I2C_Read... [23:37:46]Read from MH i2c: E2 17 00 74 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 50 [23:37:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:37:46]wFMCommunicate OK [23:37:46]requested_item fd.num is exist - process it [23:37:46]SAM_PROTO_GetFieldsCounters [23:37:46]wFMCommunicate request_size=4 [23:37:46]MH_SAM_APDU [23:37:46]CAPDU: 80 13 00 00 [23:37:46]Write to MH i2c: E2 08 00 75 13 80 13 00 00 00 00 00 00 04 [23:37:46]Write i2c OK [23:37:46]MH_I2C_Read... [23:37:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:37:46]Read from MH i2c: E2 [23:37:46]MH_I2C_Read... [23:37:46]Read from MH i2c: E2 62 00 [23:37:46]MH_I2C_Read... [23:37:46]Read from MH i2c: E2 62 00 75 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D4 72 00 00 0E 04 04 00 74 00 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 95 [23:37:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D4 72 00 00 0E 04 04 00 74 00 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 [23:37:46]wFMCommunicate OK [23:37:46]SAM_PROTO_GetFieldsCounters done [23:37:46]requested_item shift.num is exist - process it [23:37:46]requested_item shift.opened is exist - process it [23:37:46]req_shift_opened [23:37:46]FM_GetShiftState [23:37:46]SAM_PROTO_GetShiftState [23:37:46]wFMCommunicate request_size=4 [23:37:46]MH_SAM_APDU [23:37:46]CAPDU: 80 13 01 00 [23:37:46]Write to MH i2c: E2 08 00 76 13 80 13 01 00 00 00 00 00 06 [23:37:46]Write i2c OK [23:37:46]MH_I2C_Read... [23:37:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:37:46]Read from MH i2c: E2 [23:37:46]MH_I2C_Read... [23:37:46]Read from MH i2c: E2 0E 00 [23:37:46]MH_I2C_Read... [23:37:46]Read from MH i2c: E2 0E 00 76 13 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 B2 [23:37:46]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [23:37:46]wFMCommunicate OK [23:37:46]SAM_PROTO_GetShiftState done [23:37:46]FM_GetShiftState done [23:37:46]req_shift_opened done [23:37:46]requested_item shift.open_date is exist - process it [23:37:46]req_shift_open_date [23:37:46]req_shift_open_date done [23:37:46]produce_requested_data done [23:37:46]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29396,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [23:37:46]process_action_free close_receipt [23:37:46]json_value_free [23:37:46]json_value_free done [23:37:46]process_json_proto returns [23:37:46]Send response to host [23:37:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29396,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [23:37:46]free response buf [23:37:46]execute_script done [23:37:46]execute_script returns [23:37:46]free content buf [23:37:46]Sock 9.Close socket [23:37:46]Sock 9.Thread stoped [23:37:49]OFD Sender: No OFD packet to send [23:37:54]OFD Sender: No OFD packet to send [23:37:59]OFD Sender: No OFD packet to send [23:38:04]OFD Sender: No OFD packet to send [23:38:09]OFD Sender: No OFD packet to send [23:38:14]OFD Sender: No OFD packet to send [23:38:19]OFD Sender: No OFD packet to send [23:38:24]OFD Sender: No OFD packet to send [23:38:29]OFD Sender: No OFD packet to send [23:38:34]OFD Sender: No OFD packet to send [23:38:39]OFD Sender: No OFD packet to send [23:38:44]OFD Sender: No OFD packet to send [23:38:49]OFD Sender: No OFD packet to send [23:38:55]OFD Sender: No OFD packet to send [23:39:00]OFD Sender: No OFD packet to send [23:39:05]OFD Sender: No OFD packet to send [23:39:10]OFD Sender: No OFD packet to send [23:39:15]OFD Sender: No OFD packet to send [23:39:20]OFD Sender: No OFD packet to send [23:39:25]OFD Sender: No OFD packet to send [23:39:30]OFD Sender: No OFD packet to send [23:39:35]OFD Sender: No OFD packet to send [23:39:40]OFD Sender: No OFD packet to send [23:39:45]OFD Sender: No OFD packet to send [23:39:50]OFD Sender: No OFD packet to send [23:39:55]OFD Sender: No OFD packet to send [23:40:00]OFD Sender: No OFD packet to send [23:40:05]OFD Sender: No OFD packet to send [23:40:10]OFD Sender: No OFD packet to send [23:40:15]OFD Sender: No OFD packet to send [23:40:20]OFD Sender: No OFD packet to send [23:40:25]OFD Sender: No OFD packet to send [23:40:30]OFD Sender: No OFD packet to send [23:40:35]OFD Sender: No OFD packet to send [23:40:40]OFD Sender: No OFD packet to send [23:40:45]OFD Sender: No OFD packet to send [23:40:50]OFD Sender: No OFD packet to send [23:40:55]OFD Sender: No OFD packet to send [23:41:00]OFD Sender: No OFD packet to send [23:41:05]OFD Sender: No OFD packet to send [23:41:10]OFD Sender: No OFD packet to send [23:41:15]OFD Sender: No OFD packet to send [23:41:20]OFD Sender: No OFD packet to send [23:41:25]OFD Sender: No OFD packet to send [23:41:30]OFD Sender: No OFD packet to send [23:41:35]OFD Sender: No OFD packet to send [23:41:40]OFD Sender: No OFD packet to send [23:41:45]OFD Sender: No OFD packet to send [23:41:50]OFD Sender: No OFD packet to send [23:41:55]OFD Sender: No OFD packet to send [23:42:00]OFD Sender: No OFD packet to send [23:42:05]OFD Sender: No OFD packet to send [23:42:10]OFD Sender: No OFD packet to send [23:42:15]OFD Sender: No OFD packet to send [23:42:20]OFD Sender: No OFD packet to send [23:42:25]OFD Sender: No OFD packet to send [23:42:30]OFD Sender: No OFD packet to send [23:42:35]OFD Sender: No OFD packet to send [23:42:40]OFD Sender: No OFD packet to send [23:42:45]OFD Sender: No OFD packet to send [23:42:50]OFD Sender: No OFD packet to send [23:42:55]OFD Sender: No OFD packet to send [23:43:00]OFD Sender: No OFD packet to send [23:43:05]OFD Sender: No OFD packet to send [23:43:10]OFD Sender: No OFD packet to send [23:43:15]OFD Sender: No OFD packet to send [23:43:20]OFD Sender: No OFD packet to send [23:43:25]OFD Sender: No OFD packet to send [23:43:30]OFD Sender: No OFD packet to send [23:43:35]OFD Sender: No OFD packet to send [23:43:40]OFD Sender: No OFD packet to send [23:43:45]OFD Sender: No OFD packet to send [23:43:50]OFD Sender: No OFD packet to send [23:43:55]OFD Sender: No OFD packet to send [23:44:00]OFD Sender: No OFD packet to send [23:44:05]OFD Sender: No OFD packet to send [23:44:10]OFD Sender: No OFD packet to send [23:44:15]OFD Sender: No OFD packet to send [23:44:20]OFD Sender: No OFD packet to send [23:44:25]OFD Sender: No OFD packet to send [23:44:30]OFD Sender: No OFD packet to send [23:44:35]OFD Sender: No OFD packet to send [23:44:40]OFD Sender: No OFD packet to send [23:44:45]OFD Sender: No OFD packet to send [23:44:50]OFD Sender: No OFD packet to send [23:44:55]OFD Sender: No OFD packet to send [23:45:00]OFD Sender: No OFD packet to send [23:45:05]OFD Sender: No OFD packet to send [23:45:10]OFD Sender: No OFD packet to send [23:45:15]OFD Sender: No OFD packet to send [23:45:20]OFD Sender: No OFD packet to send [23:45:25]OFD Sender: No OFD packet to send [23:45:30]OFD Sender: No OFD packet to send [23:45:35]OFD Sender: No OFD packet to send [23:45:40]OFD Sender: No OFD packet to send [23:45:45]OFD Sender: No OFD packet to send [23:45:50]OFD Sender: No OFD packet to send [23:45:55]OFD Sender: No OFD packet to send [23:46:00]OFD Sender: No OFD packet to send [23:46:05]OFD Sender: No OFD packet to send [23:46:10]OFD Sender: No OFD packet to send [23:46:15]OFD Sender: No OFD packet to send [23:46:20]OFD Sender: No OFD packet to send [23:46:25]OFD Sender: No OFD packet to send [23:46:30]OFD Sender: No OFD packet to send [23:46:35]OFD Sender: No OFD packet to send [23:46:40]OFD Sender: No OFD packet to send [23:46:45]OFD Sender: No OFD packet to send [23:46:50]OFD Sender: No OFD packet to send [23:46:55]OFD Sender: No OFD packet to send [23:47:00]OFD Sender: No OFD packet to send [23:47:05]OFD Sender: No OFD packet to send [23:47:10]OFD Sender: No OFD packet to send [23:47:15]OFD Sender: No OFD packet to send [23:47:20]OFD Sender: No OFD packet to send [23:47:25]OFD Sender: No OFD packet to send [23:47:30]OFD Sender: No OFD packet to send [23:47:35]OFD Sender: No OFD packet to send [23:47:40]OFD Sender: No OFD packet to send [23:47:45]OFD Sender: No OFD packet to send [23:47:50]OFD Sender: No OFD packet to send [23:47:55]OFD Sender: No OFD packet to send [23:48:00]OFD Sender: No OFD packet to send [23:48:05]OFD Sender: No OFD packet to send [23:48:10]OFD Sender: No OFD packet to send [23:48:15]OFD Sender: No OFD packet to send [23:48:20]accept exits with 8 [23:48:20]New connection [23:48:20]New thread 3066969444 created [23:48:20]Thread 3067112804 joined [23:48:20]Waiting for new connection... [23:48:20] Sock 8.Parse request [23:48:20]Sock 8.Check first char [23:48:20]Sock 8.First char is OK [23:48:20]request: POST /json_proto HTTP/1.0 [23:48:20]Method: POST [23:48:20]URL: /json_proto [23:48:20]Method is POST - this is cgi request [23:48:20]url: /json_proto [23:48:20]query_string will be loaded in cgi processing [23:48:20]execute_cgi json_proto POST (null) [23:48:20]execute_cgi path=json_proto method=POST [23:48:20]POST find Content-Length [23:48:20]Host: 172.17.33.3:8080 [23:48:20]Content-Length: 809 [23:48:20]Content-Type: application/json [23:48:20] [23:48:20]POST finish read [23:48:20]Found Content-Length = 809 [23:48:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347792", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 27.360, "sum" : 900.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 900.14 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:48:20]execute_script... [23:48: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)347792", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 27.360, "sum" : 900.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 900.14 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:48:20]POST & json_proto [23:48:20]process_json_proto [23:48:20]json parsed OK: [23:48:20]protocol is kg_v1.0 [23:48:20]action value=close_receipt [23:48:20]process_action close_receipt [23:48:20]cmd_close_receipt [23:48:20]MH_GetDate [23:48:20]Write to MH i2c: F0 00 00 77 13 79 [23:48:20]Write i2c OK [23:48:20]MH_I2C_Read... [23:48:20]Read from MH i2c: F0 [23:48:20]MH_I2C_Read... [23:48:20]Read from MH i2c: F0 09 00 [23:48:20]MH_I2C_Read... [23:48:20]Read from MH i2c: F0 09 00 77 13 00 45 6B 1C 66 23 5B 8F 65 26 [23:48:20]GetLastDocTimeStamp 1713137863 [23:48:20]current date 1713138501 [23:48:20]FM_GetShiftState [23:48:20]SAM_PROTO_GetShiftState [23:48:20]wFMCommunicate request_size=4 [23:48:20]MH_SAM_APDU [23:48:20]CAPDU: 80 13 01 00 [23:48:20]Write to MH i2c: E2 08 00 78 13 80 13 01 00 00 00 00 00 08 [23:48:20]Write i2c OK [23:48:20]MH_I2C_Read... [23:48:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:48:20]Read from MH i2c: E2 [23:48:20]MH_I2C_Read... [23:48:20]Read from MH i2c: E2 0E 00 [23:48:20]MH_I2C_Read... [23:48:20]Read from MH i2c: E2 0E 00 78 13 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 B4 [23:48:20]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [23:48:20]wFMCommunicate OK [23:48:20]SAM_PROTO_GetShiftState done [23:48:20]FM_GetShiftState done [23:48:20]opened in 1713053951 [23:48:20]opened+sec_in_day 1713140351 [23:48:20]quantity*price = 90014 [23:48:20]sum+1 = 90015 [23:48:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 900.14 НСП 1% : 7.97 НДС 12% : 95.59 Наличными: 0.00 Безнал.: 900.14 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 307 14.04.2024 23:48 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29397 ФПД: 60047204919074 1/tax-web-control/client/api/v1/ticket?date=20240414T234821&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29397&fm=60047204919074&tin=02508201610067®Number=0000138879044617&sum=90014 [23:48:21]StoreToDocumentArchive [23:48:21]shift 116 fd 29397 [23:48:21]save to /storage/0116/doc_00029397 [23:48:21]save last doc name /storage/0116/doc_00029397 to /storage/kkm_last_doc_name [23:48:21]save OK [23:48:21]Clear old archive folders... [23:48:21]ProcessDocumentItem done err = 0, tmpTLVsize=250 [23:48:21]tlvbuf is 00233110 [23:48:21]SAM_PROTO_ClearQueue [23:48:21]wFMCommunicate request_size=4 [23:48:21]MH_SAM_APDU [23:48:21]CAPDU: 80 09 00 00 [23:48:21]Write to MH i2c: E2 08 00 85 13 80 09 00 00 00 00 00 00 0A [23:48:21]Write i2c OK [23:48:21]MH_I2C_Read... [23:48:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:48:21]Read from MH i2c: E2 [23:48:21]MH_I2C_Read... [23:48:21]Read from MH i2c: E2 03 00 [23:48:21]MH_I2C_Read... [23:48:21]Read from MH i2c: E2 03 00 85 13 00 90 00 0C [23:48:21]RAPDU: 90 00 [23:48:21]wFMCommunicate OK [23:48:21]SAM_PROTO_ClearQueue done [23:48:21]KKMCreateOFDPacket [23:48:21]OFDProtocolAddRootSTLVToBuf [23:48:21]FM_MakeSignedData [23:48:21]FM_MakeSignedData [23:48:21]SAM_PROTO_SignData [23:48:21]wFMCommunicate request_size=4 [23:48:21]MH_SAM_APDU [23:48:21]CAPDU: 80 0D 01 02 [23:48:21]Write to MH i2c: E2 08 00 86 13 80 0D 01 02 00 00 00 00 12 [23:48:21]Write i2c OK [23:48:21]MH_I2C_Read... [23:48:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:48:21]Read from MH i2c: E2 [23:48:21]MH_I2C_Read... [23:48:21]Read from MH i2c: E2 03 00 [23:48:21]MH_I2C_Read... [23:48:21]Read from MH i2c: E2 03 00 86 13 00 90 00 0D [23:48:21]RAPDU: 90 00 [23:48:21]wFMCommunicate OK [23:48:21]wFMCommunicate request_size=255 [23:48:21]MH_SAM_APDU [23:48: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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 E0 6A 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 9E 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9E 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 57 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9E 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 45 6B 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D5 72 00 00 35 04 06 00 36 9C [23:48:21]Write to MH i2c: E2 02 01 87 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 E0 6A 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 9E 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9E 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 57 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9E 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 45 6B 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D5 72 00 00 35 04 06 00 36 9C 00 00 A2 [23:48:21]Write i2c OK [23:48:21]MH_I2C_Read... [23:48:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:48:21]Read from MH i2c: E2 [23:48:21]MH_I2C_Read... [23:48:21]Read from MH i2c: E2 03 00 [23:48:21]MH_I2C_Read... [23:48:21]Read from MH i2c: E2 03 00 87 13 00 90 00 0E [23:48:21]RAPDU: 90 00 [23:48:21]wFMCommunicate OK [23:48:21]wFMCommunicate request_size=9 [23:48:21]MH_SAM_APDU [23:48:21]CAPDU: 80 0D 02 02 04 D4 51 A7 22 [23:48:21]Write to MH i2c: E2 0C 00 88 13 80 0D 02 02 04 00 D4 51 A7 22 00 00 0B [23:48:21]Write i2c OK [23:48:21]MH_I2C_Read... [23:48:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:48:21]Read from MH i2c: E2 [23:48:21]MH_I2C_Read... [23:48:21]Read from MH i2c: E2 03 00 [23:48:21]MH_I2C_Read... [23:48:21]Read from MH i2c: E2 03 00 88 13 00 90 00 0F [23:48:21]RAPDU: 90 00 [23:48:21]wFMCommunicate OK [23:48:21]wFMCommunicate request_size=4 [23:48:21]MH_SAM_APDU [23:48:21]CAPDU: 80 0D 03 02 [23:48:21]Write to MH i2c: E2 08 00 89 13 80 0D 03 02 00 00 00 00 17 [23:48:21]Write i2c OK [23:48:21]MH_I2C_Read... [23:48:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:48:21]Read from MH i2c: E2 [23:48:21]MH_I2C_Read... [23:48:21]Read from MH i2c: E2 0B 00 [23:48:21]MH_I2C_Read... [23:48:21]Read from MH i2c: E2 0B 00 89 13 00 B9 99 41 DB 15 D5 04 3B 90 00 AF [23:48:21]RAPDU: B9 99 41 DB 15 D5 04 3B 90 00 [23:48:21]wFMCommunicate OK [23:48:21]SAM_PROTO_SignData done [23:48:21]FM_MakeSignedData done [23:48:21]CreateOFDProtocolMessage [23:48:21]wFMCommunicate request_size=4 [23:48:21]MH_SAM_APDU [23:48:21]CAPDU: 80 11 00 00 [23:48:21]Write to MH i2c: E2 08 00 8A 13 80 11 00 00 00 00 00 00 17 [23:48:21]Write i2c OK [23:48:21]MH_I2C_Read... [23:48:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:48:21]Read from MH i2c: E2 [23:48:21]MH_I2C_Read... [23:48:21]Read from MH i2c: E2 17 00 [23:48:21]MH_I2C_Read... [23:48:21]Read from MH i2c: E2 17 00 8A 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 66 [23:48:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:48:21]wFMCommunicate OK [23:48:21]CreateOFDProtocolMessage done [23:48:21]OFDSenderStorePacket 29397 [23:48:21]StoreOFDPacket docnum=29397 [23:48:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 E4 98 06 01 23 06 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 E0 6A 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 9E 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9E 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 57 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9E 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 45 6B 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D5 72 00 00 35 04 06 00 36 9C D4 51 A7 22 B9 99 41 DB 15 D5 04 3B [23:48:21]CheckFolder [23:48:21]dirname=/storage/ofd_packets [23:48:21]CheckFolder done [23:48:21]ProducePacketName [23:48:21]name=ofd_packets/00029397 [23:48:21]NVStorageSaveData ofd_packets/00029397 [23:48:21]File name is /storage/ofd_packets/00029397 [23:48:21]Write 300 bytes [23:48:21]NVStorageSaveData done [23:48:21]OFDSenderStorePacket done [23:48:21]KKMCreateOFDPacket done [23:48:21]NVStorageSaveData kkm_last_timestamp [23:48:21]File name is /storage/kkm_last_timestamp [23:48:21]Write 4 bytes [23:48:21]NVStorageSaveData done [23:48:21]ExternCall_PrintAddStr [23:48:21]wPrintStart [23:48:21]Write to MH i2c: 01 00 00 8B 13 9E [23:48:21]Write i2c OK [23:48:21]MH_I2C_Read... [23:48:21]Read from MH i2c: 01 [23:48:21]MH_I2C_Read... [23:48:21]Read from MH i2c: 01 07 00 [23:48:21]MH_I2C_Read... [23:48:21]Read from MH i2c: 01 07 00 8B 13 00 00 00 00 00 FF 0F B3 [23:48:21]RasterBufferAndPrint [23:48:21]line Счет N : (1)347792 [23:48:21]line ИНН: 02508201610067 [23:48:21]line Контрольно-Кассовый Чек [23:48:21]line ПРОДАЖА [23:48:21]line ТРК (МРК, ГНК) : 71 [23:48:21]line Товар: 2711129700 [23:48:21]line ГАЗ-К-5 [23:48:21]line 27.360 * 32.90 [23:48:21]line = 900.14 [23:48:21]line НДС 12% НСП 1% [23:48:21]line > о реализуемом товаре [23:48:21]line ИТОГО: 900.14 [23:48:21]line НСП 1% : 7.97 [23:48:21]line НДС 12% : 95.59 [23:48:21]line Наличными: 0.00 [23:48:21]line Безнал.: 900.14 [23:48:21]line Место: АЗС № 108 "Партнер Нефть" [23:48:21]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [23:48:21]line СНО: Общий режим [23:48:21]line Чек 307 14.04.2024 23:48 [23:48:21]line Смена: 116 ФФД: 1.0 [23:48:21]line ЗНМ: 0300000027 [23:48:21]line РНМ: 0000138879044617 [23:48:21]line Версия ККМ: 001 [23:48:21]line Платежная система: О! деньги [23:48:21]line ФМ: 0000000000963154 [23:48:21]line ФД: 29397 [23:48:21]line ФПД: 60047204919074 [23:48:21]line 1/tax-web-control/client/api/v1/ticket?date=20240414T234821&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29397&fm=60047204919074&tin=02508201610067®Number=0000138879044617&sum=90014 [23:48:22]OFD Sender: Processing packet 29397 [packets to send 8, broken 7] [23:48:22]ProducePacketName [23:48:22]name=ofd_packets/00029397 [23:48:22]OFD Sender: To server: pG, [23:48:22]CommunicateWithHost lk.salyk.kg:30040 [23:48:22]ConnectInit lk.salyk.kg [23:48:22]written 0, free lines is 4095 [23:48:22]Connected sock=10 [23:48:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 E4 98 06 01 23 06 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 E0 6A 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 9E 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9E 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 57 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9E 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 45 6B 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D5 72 00 00 35 04 06 00 36 9C D4 51 A7 22 B9 99 41 DB 15 D5 04 3B [23:48:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 9D 40 47 00 83 86 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D5 72 00 00 F4 03 04 00 E8 15 1C 66 B6 04 01 00 00 E0 92 0A 29 0A DF 43 06 [23:48:22]CommunicateWithHost err = 0 [23:48:22]CheckOFDResponse [23:48:22]1017 (14) - 77093643461234 [23:48:22]1041 (16) - 0000000000963154 [23:48:22]1040 (4) - 29397 [23:48:22]1012 (4) - 14.04.2024 17:44 [23:48:22]1206 (1) - 0 [23:48:22]OFD Sender: Remove packet 29397 [23:48:22]ProducePacketName [23:48:22]name=ofd_packets/00029397 [23:48:22]NVStorageDeleteData [23:48:22]Write to MH i2c: 01 00 00 B4 13 C7 [23:48:22]Write i2c OK [23:48:22]MH_I2C_Read... [23:48:22]Read from MH i2c: 01 [23:48:22]MH_I2C_Read... [23:48:22]Read from MH i2c: 01 07 00 [23:48:22]MH_I2C_Read... [23:48:22]Read from MH i2c: 01 07 00 B4 13 00 00 00 00 00 CF 0C A9 [23:48:22]RasterBufferAndPrint [23:48:22]line [23:48:22]line [23:48:22]line [23:48:22]line [23:48:22]line [23:48:22]written 0, free lines is 3286 [23:48:22]MH_Cut [23:48:22]Write to MH i2c: D1 01 00 BB 13 01 A0 [23:48:22]Write i2c OK [23:48:22]MH_I2C_Read... [23:48:22]Read from MH i2c: D1 [23:48:22]MH_I2C_Read... [23:48:22]Read from MH i2c: D1 01 00 [23:48:22]MH_I2C_Read... [23:48:22]Read from MH i2c: D1 01 00 BB 13 00 9F [23:48:22]Write to MH i2c: 01 00 00 BC 13 CF [23:48:22]Write i2c OK [23:48:22]MH_I2C_Read... [23:48:22]OFD Sender: No OFD packet to send [23:48:23]*** Cut start [23:48:23]*** Partial cut [23:48:23]*** CUTSNS_PIN = 1 [23:48:23]*** CUTSNS_PIN = 0 [23:48:23]*** Brake cut motor [23:48:23]Read from MH i2c: 01 [23:48:23]MH_I2C_Read... [23:48:23]*** Stop cut motor [23:48:23]*** Cut end [23:48:23]Read from MH i2c: 01 07 00 [23:48:23]MH_I2C_Read... [23:48:23]Read from MH i2c: 01 07 00 BC 13 00 00 00 00 00 FF 0F E4 [23:48:23]process_action close_receipt done [23:48:23]requested_data is exist [23:48:23]produce_requested_data [23:48:23]requested_item fm.sn is exist - process it [23:48:23]wFMCommunicate request_size=4 [23:48:23]MH_SAM_APDU [23:48:23]CAPDU: 80 11 00 00 [23:48:23]Write to MH i2c: E2 08 00 BD 13 80 11 00 00 00 00 00 00 4A [23:48:23]Write i2c OK [23:48:23]MH_I2C_Read... [23:48:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:48:24]Read from MH i2c: E2 [23:48:24]MH_I2C_Read... [23:48:24]Read from MH i2c: E2 17 00 [23:48:24]MH_I2C_Read... [23:48:24]Read from MH i2c: E2 17 00 BD 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 99 [23:48:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:48:24]wFMCommunicate OK [23:48:24]requested_item fd.num is exist - process it [23:48:24]SAM_PROTO_GetFieldsCounters [23:48:24]wFMCommunicate request_size=4 [23:48:24]MH_SAM_APDU [23:48:24]CAPDU: 80 13 00 00 [23:48:24]Write to MH i2c: E2 08 00 BE 13 80 13 00 00 00 00 00 00 4D [23:48:24]Write i2c OK [23:48:24]MH_I2C_Read... [23:48:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:48:24]Read from MH i2c: E2 [23:48:24]MH_I2C_Read... [23:48:24]Read from MH i2c: E2 62 00 [23:48:24]MH_I2C_Read... [23:48:24]Read from MH i2c: E2 62 00 BE 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D5 72 00 00 0E 04 04 00 74 00 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 E2 [23:48:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D5 72 00 00 0E 04 04 00 74 00 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 [23:48:24]wFMCommunicate OK [23:48:24]SAM_PROTO_GetFieldsCounters done [23:48:24]requested_item shift.num is exist - process it [23:48:24]requested_item shift.opened is exist - process it [23:48:24]req_shift_opened [23:48:24]FM_GetShiftState [23:48:24]SAM_PROTO_GetShiftState [23:48:24]wFMCommunicate request_size=4 [23:48:24]MH_SAM_APDU [23:48:24]CAPDU: 80 13 01 00 [23:48:24]Write to MH i2c: E2 08 00 BF 13 80 13 01 00 00 00 00 00 4F [23:48:24]Write i2c OK [23:48:24]MH_I2C_Read... [23:48:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:48:24]Read from MH i2c: E2 [23:48:24]MH_I2C_Read... [23:48:24]Read from MH i2c: E2 0E 00 [23:48:24]MH_I2C_Read... [23:48:24]Read from MH i2c: E2 0E 00 BF 13 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 FB [23:48:24]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [23:48:24]wFMCommunicate OK [23:48:24]SAM_PROTO_GetShiftState done [23:48:24]FM_GetShiftState done [23:48:24]req_shift_opened done [23:48:24]requested_item shift.open_date is exist - process it [23:48:24]req_shift_open_date [23:48:24]req_shift_open_date done [23:48:24]produce_requested_data done [23:48:24]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29397,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [23:48:24]process_action_free close_receipt [23:48:24]json_value_free [23:48:24]json_value_free done [23:48:24]process_json_proto returns [23:48:24]Send response to host [23:48:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29397,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [23:48:24]free response buf [23:48:24]execute_script done [23:48:24]execute_script returns [23:48:24]free content buf [23:48:24]Sock 8.Close socket [23:48:24]Sock 8.Thread stoped [23:48:27]OFD Sender: No OFD packet to send [23:48:32]OFD Sender: No OFD packet to send [23:48:37]OFD Sender: No OFD packet to send [23:48:42]OFD Sender: No OFD packet to send [23:48:47]OFD Sender: No OFD packet to send [23:48:52]OFD Sender: No OFD packet to send [23:48:57]OFD Sender: No OFD packet to send [23:49:02]OFD Sender: No OFD packet to send [23:49:07]OFD Sender: No OFD packet to send [23:49:12]OFD Sender: No OFD packet to send [23:49:17]OFD Sender: No OFD packet to send [23:49:22]OFD Sender: No OFD packet to send [23:49:27]OFD Sender: No OFD packet to send [23:49:32]OFD Sender: No OFD packet to send [23:49:37]OFD Sender: No OFD packet to send [23:49:42]OFD Sender: No OFD packet to send [23:49:42]accept exits with 9 [23:49:42]New connection [23:49:42]New thread 3067112804 created [23:49:43]Thread 3066969444 joined [23:49:43]Waiting for new connection... [23:49:43] Sock 9.Parse request [23:49:43]Sock 9.Check first char [23:49:43]Sock 9.First char is OK [23:49:43]request: POST /json_proto HTTP/1.0 [23:49:43]Method: POST [23:49:43]URL: /json_proto [23:49:43]Method is POST - this is cgi request [23:49:43]url: /json_proto [23:49:43]query_string will be loaded in cgi processing [23:49:43]execute_cgi json_proto POST (null) [23:49:43]execute_cgi path=json_proto method=POST [23:49:43]POST find Content-Length [23:49:43]Host: 172.17.33.3:8080 [23:49:43]Content-Length: 682 [23:49:43]Content-Type: application/json [23:49:43] [23:49:43]POST finish read [23:49:43]Found Content-Length = 682 [23:49:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347793", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.50, "quantity" : 45.770, "sum" : 3318.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3318.00, "total" : 3318.00, "payments": [ { "type": 0, "sum" : 3318.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:49:43]execute_script... [23:49: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)347793", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.50, "quantity" : 45.770, "sum" : 3318.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3318.00, "total" : 3318.00, "payments": [ { "type": 0, "sum" : 3318.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:49:43]POST & json_proto [23:49:43]process_json_proto [23:49:43]json parsed OK: [23:49:43]protocol is kg_v1.0 [23:49:43]action value=close_receipt [23:49:43]process_action close_receipt [23:49:43]cmd_close_receipt [23:49:43]MH_GetDate [23:49:43]Write to MH i2c: F0 00 00 C0 13 C2 [23:49:43]Write i2c OK [23:49:43]MH_I2C_Read... [23:49:43]Read from MH i2c: F0 [23:49:43]MH_I2C_Read... [23:49:43]Read from MH i2c: F0 09 00 [23:49:43]MH_I2C_Read... [23:49:43]Read from MH i2c: F0 09 00 C0 13 00 98 6B 1C 66 23 5B 8F 65 C2 [23:49:43]GetLastDocTimeStamp 1713138501 [23:49:43]current date 1713138584 [23:49:43]FM_GetShiftState [23:49:43]SAM_PROTO_GetShiftState [23:49:43]wFMCommunicate request_size=4 [23:49:43]MH_SAM_APDU [23:49:43]CAPDU: 80 13 01 00 [23:49:43]Write to MH i2c: E2 08 00 C1 13 80 13 01 00 00 00 00 00 51 [23:49:43]Write i2c OK [23:49:43]MH_I2C_Read... [23:49:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:49:43]Read from MH i2c: E2 [23:49:43]MH_I2C_Read... [23:49:43]Read from MH i2c: E2 0E 00 [23:49:43]MH_I2C_Read... [23:49:43]Read from MH i2c: E2 0E 00 C1 13 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 FD [23:49:43]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [23:49:43]wFMCommunicate OK [23:49:43]SAM_PROTO_GetShiftState done [23:49:43]FM_GetShiftState done [23:49:43]opened in 1713053951 [23:49:43]opened+sec_in_day 1713140351 [23:49:43]quantity*price = 331832 [23:49:43]sum+1 = 331834 [23:49:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 3318.00 Внесено: 3318.00 СДАЧА: 0.00 НСП 1% : 29.37 НДС 12% : 352.39 Наличными: 3318.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 308 14.04.2024 23:49 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29398 ФПД: 59546038492430 1/tax-web-control/client/api/v1/ticket?date=20240414T234944&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29398&fm=59546038492430&tin=02508201610067®Number=0000138879044617&sum=331800 [23:49:44]StoreToDocumentArchive [23:49:44]shift 116 fd 29398 [23:49:44]save to /storage/0116/doc_00029398 [23:49:44]save last doc name /storage/0116/doc_00029398 to /storage/kkm_last_doc_name [23:49:44]save OK [23:49:44]Clear old archive folders... [23:49:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:49:44]tlvbuf is 00221240 [23:49:44]SAM_PROTO_ClearQueue [23:49:44]wFMCommunicate request_size=4 [23:49:44]MH_SAM_APDU [23:49:44]CAPDU: 80 09 00 00 [23:49:44]Write to MH i2c: E2 08 00 CE 13 80 09 00 00 00 00 00 00 53 [23:49:44]Write i2c OK [23:49:44]MH_I2C_Read... [23:49:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:49:44]Read from MH i2c: E2 [23:49:44]MH_I2C_Read... [23:49:44]Read from MH i2c: E2 03 00 [23:49:44]MH_I2C_Read... [23:49:44]Read from MH i2c: E2 03 00 CE 13 00 90 00 55 [23:49:44]RAPDU: 90 00 [23:49:44]wFMCommunicate OK [23:49:44]SAM_PROTO_ClearQueue done [23:49:44]KKMCreateOFDPacket [23:49:44]OFDProtocolAddRootSTLVToBuf [23:49:44]FM_MakeSignedData [23:49:44]FM_MakeSignedData [23:49:44]SAM_PROTO_SignData [23:49:44]wFMCommunicate request_size=4 [23:49:44]MH_SAM_APDU [23:49:44]CAPDU: 80 0D 01 02 [23:49:44]Write to MH i2c: E2 08 00 CF 13 80 0D 01 02 00 00 00 00 5B [23:49:44]Write i2c OK [23:49:44]MH_I2C_Read... [23:49:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:49:44]Read from MH i2c: E2 [23:49:44]MH_I2C_Read... [23:49:44]Read from MH i2c: E2 03 00 [23:49:44]MH_I2C_Read... [23:49:44]Read from MH i2c: E2 03 00 CF 13 00 90 00 56 [23:49:44]RAPDU: 90 00 [23:49:44]wFMCommunicate OK [23:49:44]wFMCommunicate request_size=255 [23:49:44]MH_SAM_APDU [23:49: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 CA B2 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 39 10 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 10 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 89 00 00 00 00 07 04 06 00 18 10 05 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 98 6B 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D6 72 00 00 35 04 06 00 36 [23:49:44]Write to MH i2c: E2 02 01 D0 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 CA B2 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 39 10 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 10 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 89 00 00 00 00 07 04 06 00 18 10 05 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 98 6B 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D6 72 00 00 35 04 06 00 36 00 00 78 [23:49:44]Write i2c OK [23:49:44]MH_I2C_Read... [23:49:44]Read from MH i2c: E2 [23:49:44]MH_I2C_Read... [23:49:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:49:44]Read from MH i2c: E2 03 00 [23:49:44]MH_I2C_Read... [23:49:44]Read from MH i2c: E2 03 00 D0 13 00 90 00 57 [23:49:44]RAPDU: 90 00 [23:49:44]wFMCommunicate OK [23:49:44]wFMCommunicate request_size=10 [23:49:44]MH_SAM_APDU [23:49:44]CAPDU: 80 0D 02 02 05 28 24 78 DD 0E [23:49:44]Write to MH i2c: E2 0D 00 D1 13 80 0D 02 02 05 00 28 24 78 DD 0E 00 00 17 [23:49:44]Write i2c OK [23:49:44]MH_I2C_Read... [23:49:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:49:44]Read from MH i2c: E2 [23:49:44]MH_I2C_Read... [23:49:44]Read from MH i2c: E2 03 00 [23:49:44]MH_I2C_Read... [23:49:44]Read from MH i2c: E2 03 00 D1 13 00 90 00 58 [23:49:44]RAPDU: 90 00 [23:49:44]wFMCommunicate OK [23:49:44]wFMCommunicate request_size=4 [23:49:44]MH_SAM_APDU [23:49:44]CAPDU: 80 0D 03 02 [23:49:44]Write to MH i2c: E2 08 00 D2 13 80 0D 03 02 00 00 00 00 60 [23:49:44]Write i2c OK [23:49:44]MH_I2C_Read... [23:49:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:49:44]Read from MH i2c: E2 [23:49:44]MH_I2C_Read... [23:49:44]Read from MH i2c: E2 0B 00 [23:49:44]MH_I2C_Read... [23:49:44]Read from MH i2c: E2 0B 00 D2 13 00 09 40 AB 3E D5 2D 33 1F 90 00 E7 [23:49:44]RAPDU: 09 40 AB 3E D5 2D 33 1F 90 00 [23:49:44]wFMCommunicate OK [23:49:44]SAM_PROTO_SignData done [23:49:44]FM_MakeSignedData done [23:49:44]CreateOFDProtocolMessage [23:49:44]wFMCommunicate request_size=4 [23:49:44]MH_SAM_APDU [23:49:44]CAPDU: 80 11 00 00 [23:49:44]Write to MH i2c: E2 08 00 D3 13 80 11 00 00 00 00 00 00 60 [23:49:44]Write i2c OK [23:49:44]MH_I2C_Read... [23:49:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:49:44]Read from MH i2c: E2 [23:49:44]MH_I2C_Read... [23:49:44]Read from MH i2c: E2 17 00 [23:49:44]MH_I2C_Read... [23:49:44]Read from MH i2c: E2 17 00 D3 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 AF [23:49:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:49:44]wFMCommunicate OK [23:49:44]CreateOFDProtocolMessage done [23:49:44]OFDSenderStorePacket 29398 [23:49:44]StoreOFDPacket docnum=29398 [23:49:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 30 17 07 01 93 CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 CA B2 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 39 10 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 10 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 89 00 00 00 00 07 04 06 00 18 10 05 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 98 6B 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D6 72 00 00 35 04 06 00 36 28 24 78 DD 0E 09 40 AB 3E D5 2D 33 1F [23:49:44]CheckFolder [23:49:44]dirname=/storage/ofd_packets [23:49:44]CheckFolder done [23:49:44]ProducePacketName [23:49:44]name=ofd_packets/00029398 [23:49:44]NVStorageSaveData ofd_packets/00029398 [23:49:44]File name is /storage/ofd_packets/00029398 [23:49:44]Write 301 bytes [23:49:44]NVStorageSaveData done [23:49:44]OFDSenderStorePacket done [23:49:44]KKMCreateOFDPacket done [23:49:44]NVStorageSaveData kkm_last_timestamp [23:49:44]File name is /storage/kkm_last_timestamp [23:49:44]Write 4 bytes [23:49:44]NVStorageSaveData done [23:49:44]ExternCall_PrintAddStr [23:49:44]wPrintStart [23:49:44]Write to MH i2c: 01 00 00 D4 13 E7 [23:49:44]Write i2c OK [23:49:44]MH_I2C_Read... [23:49:44]Read from MH i2c: 01 [23:49:44]MH_I2C_Read... [23:49:44]Read from MH i2c: 01 07 00 [23:49:44]MH_I2C_Read... [23:49:44]Read from MH i2c: 01 07 00 D4 13 00 00 00 00 00 FF 0F FC [23:49:44]RasterBufferAndPrint [23:49:44]line Счет N : (1)347793 [23:49:44]line ИНН: 02508201610067 [23:49:44]line Контрольно-Кассовый Чек [23:49:44]line ПРОДАЖА [23:49:44]line ТРК (МРК, ГНК) : 33 [23:49:44]line Товар: 2710124500 [23:49:44]line Аи-95-К-5 [23:49:44]line 45.770 * 72.50 [23:49:44]line = 3318.33 [23:49:44]line НДС 12% НСП 1% [23:49:44]line > о реализуемом товаре [23:49:44]line ОКРУГЛЕНИЕ: -0.33 [23:49:44]line ИТОГО: 3318.00 [23:49:44]line Внесено: 3318.00 [23:49:44]line СДАЧА: 0.00 [23:49:44]line НСП 1% : 29.37 [23:49:44]line НДС 12% : 352.39 [23:49:44]line Наличными: 3318.00 [23:49:44]line Безнал.: 0.00 [23:49:44]line Место: АЗС № 108 "Партнер Нефть" [23:49:44]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [23:49:44]line СНО: Общий режим [23:49:44]line Чек 308 14.04.2024 23:49 [23:49:44]line Смена: 116 ФФД: 1.0 [23:49:44]line ЗНМ: 0300000027 [23:49:44]line РНМ: 0000138879044617 [23:49:44]line Версия ККМ: 001 [23:49:44]line ФМ: 0000000000963154 [23:49:44]line ФД: 29398 [23:49:44]line ФПД: 59546038492430 [23:49:45]line 1/tax-web-control/client/api/v1/ticket?date=20240414T234944&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29398&fm=59546038492430&tin=02508201610067®Number=0000138879044617&sum=331800 [23:49:45]OFD Sender: Processing packet 29398 [packets to send 8, broken 7] [23:49:45]ProducePacketName [23:49:45]name=ofd_packets/00029398 [23:49:45]OFD Sender: To server: pG, [23:49:45]CommunicateWithHost lk.salyk.kg:30040 [23:49:45]ConnectInit lk.salyk.kg [23:49:45]written 0, free lines is 4095 [23:49:45]Connected sock=10 [23:49:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 30 17 07 01 93 CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 CA B2 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 39 10 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 10 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 89 00 00 00 00 07 04 06 00 18 10 05 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 98 6B 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D6 72 00 00 35 04 06 00 36 28 24 78 DD 0E 09 40 AB 3E D5 2D 33 1F [23:49:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 E7 60 47 00 7B 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 39 36 33 31 35 34 10 04 04 00 D6 72 00 00 F4 03 04 00 3B 16 1C 66 B6 04 01 00 00 FB 7C 31 4D 81 85 30 64 [23:49:45]CommunicateWithHost err = 0 [23:49:45]CheckOFDResponse [23:49:45]1017 (14) - 77093643461234 [23:49:45]1041 (16) - 0000000000963154 [23:49:45]1040 (4) - 29398 [23:49:45]1012 (4) - 14.04.2024 17:45 [23:49:45]1206 (1) - 0 [23:49:45]OFD Sender: Remove packet 29398 [23:49:45]ProducePacketName [23:49:45]name=ofd_packets/00029398 [23:49:45]NVStorageDeleteData [23:49:45]Write to MH i2c: 01 00 00 FE 13 11 [23:49:45]Write i2c OK [23:49:45]MH_I2C_Read... [23:49:45]Read from MH i2c: 01 [23:49:45]MH_I2C_Read... [23:49:45]Read from MH i2c: 01 07 00 [23:49:45]MH_I2C_Read... [23:49:45]Read from MH i2c: 01 07 00 FE 13 00 00 00 00 00 C4 0C E8 [23:49:45]RasterBufferAndPrint [23:49:45]line [23:49:45]line [23:49:45]line [23:49:45]line [23:49:45]line [23:49:45]written 0, free lines is 3272 [23:49:45]MH_Cut [23:49:45]Write to MH i2c: D1 01 00 05 14 01 EB [23:49:45]Write i2c OK [23:49:45]MH_I2C_Read... [23:49:45]Read from MH i2c: D1 [23:49:45]MH_I2C_Read... [23:49:45]Read from MH i2c: D1 01 00 [23:49:45]MH_I2C_Read... [23:49:45]Read from MH i2c: D1 01 00 05 14 00 EA [23:49:45]Write to MH i2c: 01 00 00 06 14 1A [23:49:45]Write i2c OK [23:49:45]MH_I2C_Read... [23:49:45]OFD Sender: No OFD packet to send [23:49:46]*** Cut start [23:49:46]*** Partial cut [23:49:46]*** CUTSNS_PIN = 1 [23:49:46]*** CUTSNS_PIN = 0 [23:49:46]*** Brake cut motor [23:49:46]Read from MH i2c: 01 [23:49:46]MH_I2C_Read... [23:49:46]*** Stop cut motor [23:49:46]*** Cut end [23:49:46]Read from MH i2c: 01 07 00 [23:49:46]MH_I2C_Read... [23:49:46]Read from MH i2c: 01 07 00 06 14 00 00 00 00 00 FF 0F 2F [23:49:46]process_action close_receipt done [23:49:46]requested_data is exist [23:49:46]produce_requested_data [23:49:46]requested_item fm.sn is exist - process it [23:49:46]wFMCommunicate request_size=4 [23:49:46]MH_SAM_APDU [23:49:46]CAPDU: 80 11 00 00 [23:49:46]Write to MH i2c: E2 08 00 07 14 80 11 00 00 00 00 00 00 95 [23:49:46]Write i2c OK [23:49:46]MH_I2C_Read... [23:49:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:49:46]Read from MH i2c: E2 [23:49:46]MH_I2C_Read... [23:49:46]Read from MH i2c: E2 17 00 [23:49:46]MH_I2C_Read... [23:49:46]Read from MH i2c: E2 17 00 07 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E4 [23:49:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:49:46]wFMCommunicate OK [23:49:46]requested_item fd.num is exist - process it [23:49:46]SAM_PROTO_GetFieldsCounters [23:49:46]wFMCommunicate request_size=4 [23:49:46]MH_SAM_APDU [23:49:46]CAPDU: 80 13 00 00 [23:49:46]Write to MH i2c: E2 08 00 08 14 80 13 00 00 00 00 00 00 98 [23:49:46]Write i2c OK [23:49:46]MH_I2C_Read... [23:49:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:49:47]Read from MH i2c: E2 [23:49:47]MH_I2C_Read... [23:49:47]Read from MH i2c: E2 62 00 [23:49:47]MH_I2C_Read... [23:49:47]Read from MH i2c: E2 62 00 08 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D6 72 00 00 0E 04 04 00 74 00 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 31 [23:49:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D6 72 00 00 0E 04 04 00 74 00 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 [23:49:47]wFMCommunicate OK [23:49:47]SAM_PROTO_GetFieldsCounters done [23:49:47]requested_item shift.num is exist - process it [23:49:47]requested_item shift.opened is exist - process it [23:49:47]req_shift_opened [23:49:47]FM_GetShiftState [23:49:47]SAM_PROTO_GetShiftState [23:49:47]wFMCommunicate request_size=4 [23:49:47]MH_SAM_APDU [23:49:47]CAPDU: 80 13 01 00 [23:49:47]Write to MH i2c: E2 08 00 09 14 80 13 01 00 00 00 00 00 9A [23:49:47]Write i2c OK [23:49:47]MH_I2C_Read... [23:49:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:49:47]Read from MH i2c: E2 [23:49:47]MH_I2C_Read... [23:49:47]Read from MH i2c: E2 0E 00 [23:49:47]MH_I2C_Read... [23:49:47]Read from MH i2c: E2 0E 00 09 14 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 46 [23:49:47]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [23:49:47]wFMCommunicate OK [23:49:47]SAM_PROTO_GetShiftState done [23:49:47]FM_GetShiftState done [23:49:47]req_shift_opened done [23:49:47]requested_item shift.open_date is exist - process it [23:49:47]req_shift_open_date [23:49:47]req_shift_open_date done [23:49:47]produce_requested_data done [23:49:47]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29398,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [23:49:47]process_action_free close_receipt [23:49:47]json_value_free [23:49:47]json_value_free done [23:49:47]process_json_proto returns [23:49:47]Send response to host [23:49:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29398,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [23:49:47]free response buf [23:49:47]execute_script done [23:49:47]execute_script returns [23:49:47]free content buf [23:49:47]Sock 9.Close socket [23:49:47]Sock 9.Thread stoped [23:49:49]accept exits with 8 [23:49:49]New connection [23:49:49]New thread 3066969444 created [23:49:49]Thread 3067112804 joined [23:49:49]Waiting for new connection... [23:49:49] Sock 8.Parse request [23:49:49]Sock 8.Check first char [23:49:49]Sock 8.First char is OK [23:49:49]request: POST /json_proto HTTP/1.0 [23:49:49]Method: POST [23:49:49]URL: /json_proto [23:49:49]Method is POST - this is cgi request [23:49:49]url: /json_proto [23:49:49]query_string will be loaded in cgi processing [23:49:49]execute_cgi json_proto POST (null) [23:49:49]execute_cgi path=json_proto method=POST [23:49:49]POST find Content-Length [23:49:49]Host: 172.17.33.3:8080 [23:49:49]Content-Length: 738 [23:49:49]Content-Type: application/json [23:49:49] [23:49:49]POST finish read [23:49:49]Found Content-Length = 738 [23:49:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 29398, "base_FM": "0000000000963154", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347793", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.50, "quantity" : 45.770, "sum" : 3318.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3318.00, "total" : 3318.00, "payments": [ { "type": 0, "sum" : 3318.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:49:49]execute_script... [23:49:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 29398, "base_FM": "0000000000963154", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347793", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.50, "quantity" : 45.770, "sum" : 3318.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3318.00, "total" : 3318.00, "payments": [ { "type": 0, "sum" : 3318.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:49:49]POST & json_proto [23:49:49]process_json_proto [23:49:49]json parsed OK: [23:49:49]protocol is kg_v1.0 [23:49:49]action value=close_receipt [23:49:49]process_action close_receipt [23:49:49]cmd_close_receipt [23:49:49]MH_GetDate [23:49:49]Write to MH i2c: F0 00 00 0A 14 0D [23:49:49]Write i2c OK [23:49:49]MH_I2C_Read... [23:49:49]Read from MH i2c: F0 [23:49:49]MH_I2C_Read... [23:49:49]Read from MH i2c: F0 09 00 [23:49:49]MH_I2C_Read... [23:49:49]Read from MH i2c: F0 09 00 0A 14 00 9F 6B 1C 66 23 5B 8F 65 14 [23:49:49]GetLastDocTimeStamp 1713138584 [23:49:49]current date 1713138591 [23:49:49]FM_GetShiftState [23:49:49]SAM_PROTO_GetShiftState [23:49:49]wFMCommunicate request_size=4 [23:49:49]MH_SAM_APDU [23:49:49]CAPDU: 80 13 01 00 [23:49:49]Write to MH i2c: E2 08 00 0B 14 80 13 01 00 00 00 00 00 9C [23:49:49]Write i2c OK [23:49:49]MH_I2C_Read... [23:49:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:49:49]Read from MH i2c: E2 [23:49:49]MH_I2C_Read... [23:49:49]Read from MH i2c: E2 0E 00 [23:49:49]MH_I2C_Read... [23:49:49]Read from MH i2c: E2 0E 00 0B 14 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 48 [23:49:49]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [23:49:49]wFMCommunicate OK [23:49:49]SAM_PROTO_GetShiftState done [23:49:49]FM_GetShiftState done [23:49:49]opened in 1713053951 [23:49:49]opened+sec_in_day 1713140351 [23:49:49]quantity*price = 331832 [23:49:49]sum+1 = 331834 [23:49:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 3318.00 НСП 1% : 29.37 НДС 12% : 352.39 Наличными: 3318.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 309 14.04.2024 23:49 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФД осн.: 29398 ФМ осн.: 0000000000963154 ФМ: 0000000000963154 ФД: 29399 ФПД: 123537423405907 1/tax-web-control/client/api/v1/ticket?date=20240414T234951&type=2&operation_type=1&fn_number=0000000000963154&fd_number=29399&fm=123537423405907&tin=02508201610067®Number=0000138879044617&sum=331800 [23:49:51]StoreToDocumentArchive [23:49:51]shift 116 fd 29399 [23:49:51]save to /storage/0116/doc_00029399 [23:49:51]save last doc name /storage/0116/doc_00029399 to /storage/kkm_last_doc_name [23:49:51]save OK [23:49:51]Clear old archive folders... [23:49:51]ProcessDocumentItem done err = 0, tmpTLVsize=279 [23:49:51]tlvbuf is 0022F5C0 [23:49:51]SAM_PROTO_ClearQueue [23:49:51]wFMCommunicate request_size=4 [23:49:51]MH_SAM_APDU [23:49:51]CAPDU: 80 09 00 00 [23:49:51]Write to MH i2c: E2 08 00 1A 14 80 09 00 00 00 00 00 00 A0 [23:49:51]Write i2c OK [23:49:51]MH_I2C_Read... [23:49:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:49:51]Read from MH i2c: E2 [23:49:51]MH_I2C_Read... [23:49:51]Read from MH i2c: E2 03 00 [23:49:51]MH_I2C_Read... [23:49:51]Read from MH i2c: E2 03 00 1A 14 00 90 00 A2 [23:49:51]RAPDU: 90 00 [23:49:51]wFMCommunicate OK [23:49:51]SAM_PROTO_ClearQueue done [23:49:51]KKMCreateOFDPacket [23:49:51]OFDProtocolAddRootSTLVToBuf [23:49:51]FM_MakeSignedData [23:49:51]FM_MakeSignedData [23:49:51]SAM_PROTO_SignData [23:49:51]wFMCommunicate request_size=4 [23:49:51]MH_SAM_APDU [23:49:51]CAPDU: 80 0D 01 02 [23:49:51]Write to MH i2c: E2 08 00 1B 14 80 0D 01 02 00 00 00 00 A8 [23:49:51]Write i2c OK [23:49:51]MH_I2C_Read... [23:49:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:49:51]Read from MH i2c: E2 [23:49:51]MH_I2C_Read... [23:49:51]Read from MH i2c: E2 03 00 [23:49:51]MH_I2C_Read... [23:49:51]Read from MH i2c: E2 03 00 1B 14 00 90 00 A3 [23:49:51]RAPDU: 90 00 [23:49:51]wFMCommunicate OK [23:49:51]wFMCommunicate request_size=255 [23:49:51]MH_SAM_APDU [23:49:51]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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 CA B2 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 39 10 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 10 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 89 00 00 00 00 07 04 06 00 18 10 05 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 9F 6B 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 D6 72 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 30 [23:49:51]Write to MH i2c: E2 02 01 1C 14 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 CA B2 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 39 10 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 10 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 89 00 00 00 00 07 04 06 00 18 10 05 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 9F 6B 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 D6 72 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 30 00 00 F9 [23:49:51]Write i2c OK [23:49:51]MH_I2C_Read... [23:49:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:49:51]Read from MH i2c: E2 [23:49:51]MH_I2C_Read... [23:49:51]Read from MH i2c: E2 03 00 [23:49:51]MH_I2C_Read... [23:49:51]Read from MH i2c: E2 03 00 1C 14 00 90 00 A4 [23:49:51]RAPDU: 90 00 [23:49:51]wFMCommunicate OK [23:49:51]wFMCommunicate request_size=38 [23:49:51]MH_SAM_APDU [23:49:51]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D7 72 00 00 35 04 06 00 70 5B 4C 3D 13 53 [23:49:51]Write to MH i2c: E2 29 00 1D 14 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D7 72 00 00 35 04 06 00 70 5B 4C 3D 13 53 00 00 33 [23:49:51]Write i2c OK [23:49:51]MH_I2C_Read... [23:49:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:49:51]Read from MH i2c: E2 [23:49:51]MH_I2C_Read... [23:49:51]Read from MH i2c: E2 03 00 [23:49:51]MH_I2C_Read... [23:49:51]Read from MH i2c: E2 03 00 1D 14 00 90 00 A5 [23:49:51]RAPDU: 90 00 [23:49:51]wFMCommunicate OK [23:49:51]wFMCommunicate request_size=4 [23:49:51]MH_SAM_APDU [23:49:51]CAPDU: 80 0D 03 02 [23:49:51]Write to MH i2c: E2 08 00 1E 14 80 0D 03 02 00 00 00 00 AD [23:49:51]Write i2c OK [23:49:51]MH_I2C_Read... [23:49:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:49:51]Read from MH i2c: E2 [23:49:51]MH_I2C_Read... [23:49:51]Read from MH i2c: E2 0B 00 [23:49:51]MH_I2C_Read... [23:49:51]Read from MH i2c: E2 0B 00 1E 14 00 65 31 D8 66 C9 FB E4 42 90 00 6C [23:49:51]RAPDU: 65 31 D8 66 C9 FB E4 42 90 00 [23:49:51]wFMCommunicate OK [23:49:51]SAM_PROTO_SignData done [23:49:51]FM_MakeSignedData done [23:49:51]CreateOFDProtocolMessage [23:49:51]wFMCommunicate request_size=4 [23:49:51]MH_SAM_APDU [23:49:51]CAPDU: 80 11 00 00 [23:49:51]Write to MH i2c: E2 08 00 1F 14 80 11 00 00 00 00 00 00 AD [23:49:51]Write i2c OK [23:49:51]MH_I2C_Read... [23:49:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:49:51]Read from MH i2c: E2 [23:49:51]MH_I2C_Read... [23:49:51]Read from MH i2c: E2 17 00 [23:49:51]MH_I2C_Read... [23:49:51]Read from MH i2c: E2 17 00 1F 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 FC [23:49:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:49:51]wFMCommunicate OK [23:49:51]CreateOFDProtocolMessage done [23:49:51]OFDSenderStorePacket 29399 [23:49:51]StoreOFDPacket docnum=29399 [23:49:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 2B 01 00 00 5A 3C 23 01 71 00 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 CA B2 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 39 10 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 10 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 89 00 00 00 00 07 04 06 00 18 10 05 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 9F 6B 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 D6 72 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D7 72 00 00 35 04 06 00 70 5B 4C 3D 13 53 65 31 D8 66 C9 FB E4 42 [23:49:51]CheckFolder [23:49:51]dirname=/storage/ofd_packets [23:49:51]CheckFolder done [23:49:51]ProducePacketName [23:49:51]name=ofd_packets/00029399 [23:49:51]NVStorageSaveData ofd_packets/00029399 [23:49:51]File name is /storage/ofd_packets/00029399 [23:49:51]Write 329 bytes [23:49:51]NVStorageSaveData done [23:49:51]OFDSenderStorePacket done [23:49:51]KKMCreateOFDPacket done [23:49:51]NVStorageSaveData kkm_last_timestamp [23:49:51]File name is /storage/kkm_last_timestamp [23:49:51]Write 4 bytes [23:49:51]NVStorageSaveData done [23:49:51]ExternCall_PrintAddStr [23:49:51]wPrintStart [23:49:51]Write to MH i2c: 01 00 00 20 14 34 [23:49:51]Write i2c OK [23:49:51]MH_I2C_Read... [23:49:51]Read from MH i2c: 01 [23:49:51]MH_I2C_Read... [23:49:51]Read from MH i2c: 01 07 00 [23:49:51]MH_I2C_Read... [23:49:51]Read from MH i2c: 01 07 00 20 14 00 00 00 00 00 FF 0F 49 [23:49:51]RasterBufferAndPrint [23:49:51]line Счет N : (1)347793 [23:49:51]line ИНН: 02508201610067 [23:49:51]line Контрольно-Кассовый Чек [23:49:51]line ВОЗВРАТ ПРОДАЖИ [23:49:51]line ТРК (МРК, ГНК) : 33 [23:49:51]line Товар: 2710124500 [23:49:51]line Аи-95-К-5 [23:49:51]line 45.770 * 72.50 [23:49:51]line = 3318.33 [23:49:51]line НДС 12% НСП 1% [23:49:51]line > о реализуемом товаре [23:49:51]line ОКРУГЛЕНИЕ: -0.33 [23:49:51]line ИТОГО: 3318.00 [23:49:51]line НСП 1% : 29.37 [23:49:51]line НДС 12% : 352.39 [23:49:51]line Наличными: 3318.00 [23:49:51]line Безнал.: 0.00 [23:49:51]line Место: АЗС № 108 "Партнер Нефть" [23:49:51]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [23:49:51]line СНО: Общий режим [23:49:51]line Чек 309 14.04.2024 23:49 [23:49:51]line Смена: 116 ФФД: 1.0 [23:49:51]line ЗНМ: 0300000027 [23:49:51]line РНМ: 0000138879044617 [23:49:51]line Версия ККМ: 001 [23:49:51]line ФД осн.: 29398 [23:49:51]line ФМ осн.: 0000000000963154 [23:49:51]line ФМ: 0000000000963154 [23:49:51]line ФД: 29399 [23:49:51]line ФПД: 123537423405907 [23:49:51]line 1/tax-web-control/client/api/v1/ticket?date=20240414T234951&type=2&operation_type=1&fn_number=0000000000963154&fd_number=29399&fm=123537423405907&tin=02508201610067®Number=0000138879044617&sum=331800 [23:49:51]written 0, free lines is 4095 [23:49:51]OFD Sender: Processing packet 29399 [packets to send 8, broken 7] [23:49:51]ProducePacketName [23:49:51]name=ofd_packets/00029399 [23:49:51]OFD Sender: To server: pG, [23:49:51]CommunicateWithHost lk.salyk.kg:30040 [23:49:51]ConnectInit lk.salyk.kg [23:49:51]Connected sock=10 [23:49:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 2B 01 00 00 5A 3C 23 01 71 00 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 CA B2 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 39 10 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 10 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 89 00 00 00 00 07 04 06 00 18 10 05 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 9F 6B 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 D6 72 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D7 72 00 00 35 04 06 00 70 5B 4C 3D 13 53 65 31 D8 66 C9 FB E4 42 [23:49:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 FA 1E 47 00 3E 52 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D7 72 00 00 F4 03 04 00 42 16 1C 66 B6 04 01 00 00 D2 70 6F 61 69 E4 1D C0 [23:49:52]CommunicateWithHost err = 0 [23:49:52]CheckOFDResponse [23:49:52]1017 (14) - 77093643461234 [23:49:52]1041 (16) - 0000000000963154 [23:49:52]1040 (4) - 29399 [23:49:52]1012 (4) - 14.04.2024 17:45 [23:49:52]1206 (1) - 0 [23:49:52]OFD Sender: Remove packet 29399 [23:49:52]ProducePacketName [23:49:52]name=ofd_packets/00029399 [23:49:52]NVStorageDeleteData [23:49:52]Write to MH i2c: 01 00 00 4A 14 5E [23:49:52]Write i2c OK [23:49:52]MH_I2C_Read... [23:49:52]Read from MH i2c: 01 [23:49:52]MH_I2C_Read... [23:49:52]Read from MH i2c: 01 07 00 [23:49:52]MH_I2C_Read... [23:49:52]Read from MH i2c: 01 07 00 4A 14 00 00 00 00 00 D8 0C 49 [23:49:52]RasterBufferAndPrint [23:49:52]line [23:49:52]line [23:49:52]line [23:49:52]line [23:49:52]line [23:49:52]written 0, free lines is 3299 [23:49:52]MH_Cut [23:49:52]Write to MH i2c: D1 01 00 51 14 01 37 [23:49:52]Write i2c OK [23:49:52]MH_I2C_Read... [23:49:52]Read from MH i2c: D1 [23:49:52]MH_I2C_Read... [23:49:52]Read from MH i2c: D1 01 00 [23:49:52]MH_I2C_Read... [23:49:52]Read from MH i2c: D1 01 00 51 14 00 36 [23:49:52]Write to MH i2c: 01 00 00 52 14 66 [23:49:52]Write i2c OK [23:49:52]MH_I2C_Read... [23:49:52]OFD Sender: No OFD packet to send [23:49:53]*** Cut start [23:49:53]*** Partial cut [23:49:53]*** CUTSNS_PIN = 1 [23:49:53]*** CUTSNS_PIN = 0 [23:49:53]*** Brake cut motor [23:49:53]Read from MH i2c: 01 [23:49:53]MH_I2C_Read... [23:49:53]*** Stop cut motor [23:49:53]*** Cut end [23:49:53]Read from MH i2c: 01 07 00 [23:49:53]MH_I2C_Read... [23:49:53]Read from MH i2c: 01 07 00 52 14 00 00 00 00 00 FF 0F 7B [23:49:53]process_action close_receipt done [23:49:53]requested_data is exist [23:49:53]produce_requested_data [23:49:53]requested_item fm.sn is exist - process it [23:49:53]wFMCommunicate request_size=4 [23:49:53]MH_SAM_APDU [23:49:53]CAPDU: 80 11 00 00 [23:49:53]Write to MH i2c: E2 08 00 53 14 80 11 00 00 00 00 00 00 E1 [23:49:53]Write i2c OK [23:49:53]MH_I2C_Read... [23:49:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:49:53]Read from MH i2c: E2 [23:49:53]MH_I2C_Read... [23:49:53]Read from MH i2c: E2 17 00 [23:49:53]MH_I2C_Read... [23:49:53]Read from MH i2c: E2 17 00 53 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 30 [23:49:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:49:53]wFMCommunicate OK [23:49:53]requested_item fd.num is exist - process it [23:49:53]SAM_PROTO_GetFieldsCounters [23:49:53]wFMCommunicate request_size=4 [23:49:53]MH_SAM_APDU [23:49:53]CAPDU: 80 13 00 00 [23:49:53]Write to MH i2c: E2 08 00 54 14 80 13 00 00 00 00 00 00 E4 [23:49:53]Write i2c OK [23:49:53]MH_I2C_Read... [23:49:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:49:53]Read from MH i2c: E2 [23:49:53]MH_I2C_Read... [23:49:53]Read from MH i2c: E2 62 00 [23:49:53]MH_I2C_Read... [23:49:53]Read from MH i2c: E2 62 00 54 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D7 72 00 00 0E 04 04 00 74 00 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 81 [23:49:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D7 72 00 00 0E 04 04 00 74 00 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 [23:49:53]wFMCommunicate OK [23:49:53]SAM_PROTO_GetFieldsCounters done [23:49:53]requested_item shift.num is exist - process it [23:49:53]requested_item shift.opened is exist - process it [23:49:53]req_shift_opened [23:49:53]FM_GetShiftState [23:49:53]SAM_PROTO_GetShiftState [23:49:53]wFMCommunicate request_size=4 [23:49:53]MH_SAM_APDU [23:49:53]CAPDU: 80 13 01 00 [23:49:53]Write to MH i2c: E2 08 00 55 14 80 13 01 00 00 00 00 00 E6 [23:49:53]Write i2c OK [23:49:53]MH_I2C_Read... [23:49:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:49:54]Read from MH i2c: E2 [23:49:54]MH_I2C_Read... [23:49:54]Read from MH i2c: E2 0E 00 [23:49:54]MH_I2C_Read... [23:49:54]Read from MH i2c: E2 0E 00 55 14 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 92 [23:49:54]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [23:49:54]wFMCommunicate OK [23:49:54]SAM_PROTO_GetShiftState done [23:49:54]FM_GetShiftState done [23:49:54]req_shift_opened done [23:49:54]requested_item shift.open_date is exist - process it [23:49:54]req_shift_open_date [23:49:54]req_shift_open_date done [23:49:54]produce_requested_data done [23:49:54]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29399,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [23:49:54]process_action_free close_receipt [23:49:54]json_value_free [23:49:54]json_value_free done [23:49:54]process_json_proto returns [23:49:54]Send response to host [23:49:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29399,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [23:49:54]free response buf [23:49:54]execute_script done [23:49:54]execute_script returns [23:49:54]free content buf [23:49:54]Sock 8.Close socket [23:49:54]Sock 8.Thread stoped [23:49:57]OFD Sender: No OFD packet to send [23:50:02]OFD Sender: No OFD packet to send [23:50:07]OFD Sender: No OFD packet to send [23:50:12]OFD Sender: No OFD packet to send [23:50:17]OFD Sender: No OFD packet to send [23:50:22]OFD Sender: No OFD packet to send [23:50:27]OFD Sender: No OFD packet to send [23:50:32]OFD Sender: No OFD packet to send [23:50:37]OFD Sender: No OFD packet to send [23:50:42]OFD Sender: No OFD packet to send [23:50:47]OFD Sender: No OFD packet to send [23:50:52]OFD Sender: No OFD packet to send [23:50:57]OFD Sender: No OFD packet to send [23:51:02]OFD Sender: No OFD packet to send [23:51:07]OFD Sender: No OFD packet to send [23:51:12]OFD Sender: No OFD packet to send [23:51:17]OFD Sender: No OFD packet to send [23:51:22]OFD Sender: No OFD packet to send [23:51:27]OFD Sender: No OFD packet to send [23:51:32]OFD Sender: No OFD packet to send [23:51:37]OFD Sender: No OFD packet to send [23:51:42]OFD Sender: No OFD packet to send [23:51:47]OFD Sender: No OFD packet to send [23:51:52]OFD Sender: No OFD packet to send [23:51:57]OFD Sender: No OFD packet to send [23:52:02]OFD Sender: No OFD packet to send [23:52:07]OFD Sender: No OFD packet to send [23:52:12]OFD Sender: No OFD packet to send [23:52:16]accept exits with 9 [23:52:16]New connection [23:52:16]New thread 3067112804 created [23:52:16]Thread 3066969444 joined [23:52:16]Waiting for new connection... [23:52:16] Sock 9.Parse request [23:52:16]Sock 9.Check first char [23:52:16]Sock 9.First char is OK [23:52:16]request: POST /json_proto HTTP/1.0 [23:52:16]Method: POST [23:52:16]URL: /json_proto [23:52:16]Method is POST - this is cgi request [23:52:16]url: /json_proto [23:52:16]query_string will be loaded in cgi processing [23:52:16]execute_cgi json_proto POST (null) [23:52:16]execute_cgi path=json_proto method=POST [23:52:16]POST find Content-Length [23:52:16]Host: 172.17.33.3:8080 [23:52:16]Content-Length: 682 [23:52:16]Content-Type: application/json [23:52:16] [23:52:16]POST finish read [23:52:16]Found Content-Length = 682 [23:52:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347794", "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" : 30.920, "sum" : 1988.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 1988.00, "payments": [ { "type": 0, "sum" : 1988.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:52:16]execute_script... [23:52: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)347794", "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" : 30.920, "sum" : 1988.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 1988.00, "payments": [ { "type": 0, "sum" : 1988.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:52:16]POST & json_proto [23:52:16]process_json_proto [23:52:16]json parsed OK: [23:52:16]protocol is kg_v1.0 [23:52:16]action value=close_receipt [23:52:16]process_action close_receipt [23:52:16]cmd_close_receipt [23:52:16]MH_GetDate [23:52:16]Write to MH i2c: F0 00 00 56 14 59 [23:52:16]Write i2c OK [23:52:16]MH_I2C_Read... [23:52:16]Read from MH i2c: F0 [23:52:16]MH_I2C_Read... [23:52:16]Read from MH i2c: F0 09 00 [23:52:16]MH_I2C_Read... [23:52:16]Read from MH i2c: F0 09 00 56 14 00 31 6C 1C 66 23 5B 8F 65 F3 [23:52:16]GetLastDocTimeStamp 1713138591 [23:52:16]current date 1713138737 [23:52:16]FM_GetShiftState [23:52:16]SAM_PROTO_GetShiftState [23:52:16]wFMCommunicate request_size=4 [23:52:16]MH_SAM_APDU [23:52:16]CAPDU: 80 13 01 00 [23:52:16]Write to MH i2c: E2 08 00 57 14 80 13 01 00 00 00 00 00 E8 [23:52:16]Write i2c OK [23:52:16]MH_I2C_Read... [23:52:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:52:16]Read from MH i2c: E2 [23:52:16]MH_I2C_Read... [23:52:16]Read from MH i2c: E2 0E 00 [23:52:16]MH_I2C_Read... [23:52:16]Read from MH i2c: E2 0E 00 57 14 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 94 [23:52:16]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [23:52:16]wFMCommunicate OK [23:52:16]SAM_PROTO_GetShiftState done [23:52:16]FM_GetShiftState done [23:52:16]opened in 1713053951 [23:52:16]opened+sec_in_day 1713140351 [23:52:16]quantity*price = 198815 [23:52:16]sum+1 = 198817 [23:52:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1988.00 Внесено: 2500.00 СДАЧА: 512.00 НСП 1% : 17.59 НДС 12% : 211.13 Наличными: 1988.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 310 14.04.2024 23:52 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29400 ФПД: 246184585029131 1/tax-web-control/client/api/v1/ticket?date=20240414T235217&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29400&fm=246184585029131&tin=02508201610067®Number=0000138879044617&sum=198800 [23:52:17]StoreToDocumentArchive [23:52:17]shift 116 fd 29400 [23:52:17]save to /storage/0116/doc_00029400 [23:52:17]save last doc name /storage/0116/doc_00029400 to /storage/kkm_last_doc_name [23:52:17]save OK [23:52:17]Clear old archive folders... [23:52:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:52:17]tlvbuf is 00218A50 [23:52:17]SAM_PROTO_ClearQueue [23:52:17]wFMCommunicate request_size=4 [23:52:17]MH_SAM_APDU [23:52:17]CAPDU: 80 09 00 00 [23:52:17]Write to MH i2c: E2 08 00 64 14 80 09 00 00 00 00 00 00 EA [23:52:17]Write i2c OK [23:52:17]MH_I2C_Read... [23:52:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:52:17]Read from MH i2c: E2 [23:52:17]MH_I2C_Read... [23:52:17]Read from MH i2c: E2 03 00 [23:52:17]MH_I2C_Read... [23:52:17]Read from MH i2c: E2 03 00 64 14 00 90 00 EC [23:52:17]RAPDU: 90 00 [23:52:17]wFMCommunicate OK [23:52:17]SAM_PROTO_ClearQueue done [23:52:17]KKMCreateOFDPacket [23:52:17]OFDProtocolAddRootSTLVToBuf [23:52:17]FM_MakeSignedData [23:52:17]FM_MakeSignedData [23:52:17]SAM_PROTO_SignData [23:52:17]wFMCommunicate request_size=4 [23:52:17]MH_SAM_APDU [23:52:17]CAPDU: 80 0D 01 02 [23:52:17]Write to MH i2c: E2 08 00 65 14 80 0D 01 02 00 00 00 00 F2 [23:52:17]Write i2c OK [23:52:17]MH_I2C_Read... [23:52:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:52:17]Read from MH i2c: E2 [23:52:17]MH_I2C_Read... [23:52:17]Read from MH i2c: E2 03 00 [23:52:17]MH_I2C_Read... [23:52:17]Read from MH i2c: E2 03 00 65 14 00 90 00 ED [23:52:17]RAPDU: 90 00 [23:52:17]wFMCommunicate OK [23:52:17]wFMCommunicate request_size=255 [23:52:17]MH_SAM_APDU [23:52: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 78 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 A0 08 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 08 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DF 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 52 00 00 00 00 07 04 06 00 90 08 03 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 31 6C 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D8 72 00 00 35 04 06 00 DF [23:52:17]Write to MH i2c: E2 02 01 66 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 C8 78 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 A0 08 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 08 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DF 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 52 00 00 00 00 07 04 06 00 90 08 03 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 31 6C 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D8 72 00 00 35 04 06 00 DF 00 00 14 [23:52:17]Write i2c OK [23:52:17]MH_I2C_Read... [23:52:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:52:17]Read from MH i2c: E2 [23:52:17]MH_I2C_Read... [23:52:17]Read from MH i2c: E2 03 00 [23:52:17]MH_I2C_Read... [23:52:17]Read from MH i2c: E2 03 00 66 14 00 90 00 EE [23:52:17]RAPDU: 90 00 [23:52:17]wFMCommunicate OK [23:52:17]wFMCommunicate request_size=10 [23:52:17]MH_SAM_APDU [23:52:17]CAPDU: 80 0D 02 02 05 E7 50 BD 66 0B [23:52:17]Write to MH i2c: E2 0D 00 67 14 80 0D 02 02 05 00 E7 50 BD 66 0B 00 00 64 [23:52:17]Write i2c OK [23:52:17]MH_I2C_Read... [23:52:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:52:17]Read from MH i2c: E2 [23:52:17]MH_I2C_Read... [23:52:17]Read from MH i2c: E2 03 00 [23:52:17]MH_I2C_Read... [23:52:17]Read from MH i2c: E2 03 00 67 14 00 90 00 EF [23:52:17]RAPDU: 90 00 [23:52:17]wFMCommunicate OK [23:52:17]wFMCommunicate request_size=4 [23:52:17]MH_SAM_APDU [23:52:17]CAPDU: 80 0D 03 02 [23:52:17]Write to MH i2c: E2 08 00 68 14 80 0D 03 02 00 00 00 00 F7 [23:52:17]Write i2c OK [23:52:17]MH_I2C_Read... [23:52:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:52:17]Read from MH i2c: E2 [23:52:17]MH_I2C_Read... [23:52:17]Read from MH i2c: E2 0B 00 [23:52:17]MH_I2C_Read... [23:52:17]Read from MH i2c: E2 0B 00 68 14 00 1A 00 FF A6 24 74 66 46 90 00 FB [23:52:17]RAPDU: 1A 00 FF A6 24 74 66 46 90 00 [23:52:17]wFMCommunicate OK [23:52:17]SAM_PROTO_SignData done [23:52:17]FM_MakeSignedData done [23:52:17]CreateOFDProtocolMessage [23:52:17]wFMCommunicate request_size=4 [23:52:17]MH_SAM_APDU [23:52:17]CAPDU: 80 11 00 00 [23:52:17]Write to MH i2c: E2 08 00 69 14 80 11 00 00 00 00 00 00 F7 [23:52:17]Write i2c OK [23:52:17]MH_I2C_Read... [23:52:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:52:17]Read from MH i2c: E2 [23:52:17]MH_I2C_Read... [23:52:17]Read from MH i2c: E2 17 00 [23:52:17]MH_I2C_Read... [23:52:17]Read from MH i2c: E2 17 00 69 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 46 [23:52:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:52:17]wFMCommunicate OK [23:52:17]CreateOFDProtocolMessage done [23:52:17]OFDSenderStorePacket 29400 [23:52:17]StoreOFDPacket docnum=29400 [23:52:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 EE 2D 07 01 D1 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 C8 78 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 A0 08 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 08 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DF 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 52 00 00 00 00 07 04 06 00 90 08 03 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 31 6C 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D8 72 00 00 35 04 06 00 DF E7 50 BD 66 0B 1A 00 FF A6 24 74 66 46 [23:52:17]CheckFolder [23:52:17]dirname=/storage/ofd_packets [23:52:17]CheckFolder done [23:52:17]ProducePacketName [23:52:17]name=ofd_packets/00029400 [23:52:17]NVStorageSaveData ofd_packets/00029400 [23:52:17]File name is /storage/ofd_packets/00029400 [23:52:17]Write 301 bytes [23:52:17]NVStorageSaveData done [23:52:17]OFDSenderStorePacket done [23:52:17]KKMCreateOFDPacket done [23:52:17]NVStorageSaveData kkm_last_timestamp [23:52:17]File name is /storage/kkm_last_timestamp [23:52:17]Write 4 bytes [23:52:17]NVStorageSaveData done [23:52:17]ExternCall_PrintAddStr [23:52:17]wPrintStart [23:52:17]Write to MH i2c: 01 00 00 6A 14 7E [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 14 00 00 00 00 00 FF 0F 93 [23:52:17]RasterBufferAndPrint [23:52:17]line Счет N : (1)347794 [23:52:17]line ИНН: 02508201610067 [23:52:17]line Контрольно-Кассовый Чек [23:52:17]line ПРОДАЖА [23:52:17]line ТРК (МРК, ГНК) : 32 [23:52:17]line Товар: 2710124130 [23:52:17]line Аи-92-К-5 [23:52:17]line 30.920 * 64.30 [23:52:17]line = 1988.16 [23:52:17]line НДС 12% НСП 1% [23:52:17]line > о реализуемом товаре [23:52:17]line ОКРУГЛЕНИЕ: -0.16 [23:52:17]line ИТОГО: 1988.00 [23:52:17]line Внесено: 2500.00 [23:52:17]line СДАЧА: 512.00 [23:52:17]line НСП 1% : 17.59 [23:52:17]line НДС 12% : 211.13 [23:52:17]line Наличными: 1988.00 [23:52:17]line Безнал.: 0.00 [23:52:17]line Место: АЗС № 108 "Партнер Нефть" [23:52:17]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [23:52:17]line СНО: Общий режим [23:52:17]line Чек 310 14.04.2024 23:52 [23:52:17]line Смена: 116 ФФД: 1.0 [23:52:17]line ЗНМ: 0300000027 [23:52:17]line РНМ: 0000138879044617 [23:52:17]line Версия ККМ: 001 [23:52:17]line ФМ: 0000000000963154 [23:52:17]line ФД: 29400 [23:52:17]line ФПД: 246184585029131 [23:52:17]line 1/tax-web-control/client/api/v1/ticket?date=20240414T235217&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29400&fm=246184585029131&tin=02508201610067®Number=0000138879044617&sum=198800 [23:52:18]OFD Sender: Processing packet 29400 [packets to send 8, broken 7] [23:52:18]ProducePacketName [23:52:18]name=ofd_packets/00029400 [23:52:18]OFD Sender: To server: pG, [23:52:18]CommunicateWithHost lk.salyk.kg:30040 [23:52:18]ConnectInit lk.salyk.kg [23:52:18]written 0, free lines is 4095 [23:52:18]Connected sock=10 [23:52:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 EE 2D 07 01 D1 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 C8 78 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 A0 08 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 08 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DF 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 52 00 00 00 00 07 04 06 00 90 08 03 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 31 6C 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D8 72 00 00 35 04 06 00 DF E7 50 BD 66 0B 1A 00 FF A6 24 74 66 46 [23:52:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 C7 C1 47 00 8C 28 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D8 72 00 00 F4 03 04 00 D4 16 1C 66 B6 04 01 00 00 C2 F9 A2 E1 F5 F4 44 5A [23:52:18]CommunicateWithHost err = 0 [23:52:18]CheckOFDResponse [23:52:18]1017 (14) - 77093643461234 [23:52:18]1041 (16) - 0000000000963154 [23:52:18]1040 (4) - 29400 [23:52:18]1012 (4) - 14.04.2024 17:48 [23:52:18]1206 (1) - 0 [23:52:18]OFD Sender: Remove packet 29400 [23:52:18]ProducePacketName [23:52:18]name=ofd_packets/00029400 [23:52:18]NVStorageDeleteData [23:52:18]Write to MH i2c: 01 00 00 94 14 A8 [23:52:18]Write i2c OK [23:52:18]MH_I2C_Read... [23:52:18]Read from MH i2c: 01 [23:52:18]MH_I2C_Read... [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 94 14 00 00 00 00 00 C0 0C 7B [23:52:18]RasterBufferAndPrint [23:52:18]line [23:52:18]line [23:52:18]line [23:52:18]line [23:52:18]line [23:52:18]written 0, free lines is 3268 [23:52:18]MH_Cut [23:52:18]Write to MH i2c: D1 01 00 9B 14 01 81 [23:52:18]Write i2c OK [23:52:18]MH_I2C_Read... [23:52:18]Read from MH i2c: D1 [23:52:18]MH_I2C_Read... [23:52:18]Read from MH i2c: D1 01 00 [23:52:18]MH_I2C_Read... [23:52:18]Read from MH i2c: D1 01 00 9B 14 00 80 [23:52:18]Write to MH i2c: 01 00 00 9C 14 B0 [23:52:18]Write i2c OK [23:52:18]MH_I2C_Read... [23:52:18]OFD Sender: No OFD packet to send [23:52:19]*** Cut start [23:52:19]*** Partial cut [23:52:19]*** CUTSNS_PIN = 1 [23:52:19]*** CUTSNS_PIN = 0 [23:52:19]*** Brake cut motor [23:52:19]Read from MH i2c: 01 [23:52:19]MH_I2C_Read... [23:52:19]*** Stop cut motor [23:52:19]Read from MH i2c: *** Cut end [23:52:19]01 07 00 [23:52:19]MH_I2C_Read... [23:52:19]Read from MH i2c: 01 07 00 9C 14 00 00 00 00 00 FF 0F C5 [23:52:19]process_action close_receipt done [23:52:19]requested_data is exist [23:52:19]produce_requested_data [23:52:19]requested_item fm.sn is exist - process it [23:52:19]wFMCommunicate request_size=4 [23:52:19]MH_SAM_APDU [23:52:19]CAPDU: 80 11 00 00 [23:52:19]Write to MH i2c: E2 08 00 9D 14 80 11 00 00 00 00 00 00 2B [23:52:20]Write i2c OK [23:52:20]MH_I2C_Read... [23:52:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:52:20]Read from MH i2c: E2 [23:52:20]MH_I2C_Read... [23:52:20]Read from MH i2c: E2 17 00 [23:52:20]MH_I2C_Read... [23:52:20]Read from MH i2c: E2 17 00 9D 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 7A [23:52:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:52:20]wFMCommunicate OK [23:52:20]requested_item fd.num is exist - process it [23:52:20]SAM_PROTO_GetFieldsCounters [23:52:20]wFMCommunicate request_size=4 [23:52:20]MH_SAM_APDU [23:52:20]CAPDU: 80 13 00 00 [23:52:20]Write to MH i2c: E2 08 00 9E 14 80 13 00 00 00 00 00 00 2E [23:52:20]Write i2c OK [23:52:20]MH_I2C_Read... [23:52:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:52:20]Read from MH i2c: E2 [23:52:20]MH_I2C_Read... [23:52:20]Read from MH i2c: E2 62 00 [23:52:20]MH_I2C_Read... [23:52:20]Read from MH i2c: E2 62 00 9E 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D8 72 00 00 0E 04 04 00 74 00 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 CF [23:52:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D8 72 00 00 0E 04 04 00 74 00 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 [23:52:20]wFMCommunicate OK [23:52:20]SAM_PROTO_GetFieldsCounters done [23:52:20]requested_item shift.num is exist - process it [23:52:20]requested_item shift.opened is exist - process it [23:52:20]req_shift_opened [23:52:20]FM_GetShiftState [23:52:20]SAM_PROTO_GetShiftState [23:52:20]wFMCommunicate request_size=4 [23:52:20]MH_SAM_APDU [23:52:20]CAPDU: 80 13 01 00 [23:52:20]Write to MH i2c: E2 08 00 9F 14 80 13 01 00 00 00 00 00 30 [23:52:20]Write i2c OK [23:52:20]MH_I2C_Read... [23:52:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:52:20]Read from MH i2c: E2 [23:52:20]MH_I2C_Read... [23:52:20]Read from MH i2c: E2 0E 00 [23:52:20]MH_I2C_Read... [23:52:20]Read from MH i2c: E2 0E 00 9F 14 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 DC [23:52:20]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [23:52:20]wFMCommunicate OK [23:52:20]SAM_PROTO_GetShiftState done [23:52:20]FM_GetShiftState done [23:52:20]req_shift_opened done [23:52:20]requested_item shift.open_date is exist - process it [23:52:20]req_shift_open_date [23:52:20]req_shift_open_date done [23:52:20]produce_requested_data done [23:52:20]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29400,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [23:52:20]process_action_free close_receipt [23:52:20]json_value_free [23:52:20]json_value_free done [23:52:20]process_json_proto returns [23:52:20]Send response to host [23:52:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29400,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [23:52:20]free response buf [23:52:20]execute_script done [23:52:20]execute_script returns [23:52:20]free content buf [23:52:20]Sock 9.Close socket [23:52:20]Sock 9.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:29]OFD Sender: No OFD packet to send [23:54:34]OFD Sender: No OFD packet to send [23:54:39]OFD Sender: No OFD packet to send [23:54:44]OFD Sender: No OFD packet to send [23:54:49]OFD Sender: No OFD packet to send [23:54:54]OFD Sender: No OFD packet to send [23:54:59]OFD Sender: No OFD packet to send [23:55:04]OFD Sender: No OFD packet to send [23:55:09]OFD Sender: No OFD packet to send [23:55:14]OFD Sender: No OFD packet to send [23:55:19]OFD Sender: No OFD packet to send [23:55:24]OFD Sender: No OFD packet to send [23:55:29]OFD Sender: No OFD packet to send [23:55:34]OFD Sender: No OFD packet to send [23:55:39]OFD Sender: No OFD packet to send [23:55:44]OFD Sender: No OFD packet to send [23:55:49]OFD Sender: No OFD packet to send [23:55:54]OFD Sender: No OFD packet to send [23:55:59]OFD Sender: No OFD packet to send [23:56:04]OFD Sender: No OFD packet to send [23:56:09]OFD Sender: No OFD packet to send [23:56:14]OFD Sender: No OFD packet to send [23:56:19]OFD Sender: No OFD packet to send [23:56:24]OFD Sender: No OFD packet to send [23:56:29]OFD Sender: No OFD packet to send [23:56:34]OFD Sender: No OFD packet to send [23:56:39]OFD Sender: No OFD packet to send [23:56:44]OFD Sender: No OFD packet to send [23:56:49]OFD Sender: No OFD packet to send [23:56:54]OFD Sender: No OFD packet to send [23:56:59]OFD Sender: No OFD packet to send [23:57:04]OFD Sender: No OFD packet to send [23:57:09]OFD Sender: No OFD packet to send [23:57:14]OFD Sender: No OFD packet to send [23:57:19]OFD Sender: No OFD packet to send [23:57:24]OFD Sender: No OFD packet to send [23:57:29]OFD Sender: No OFD packet to send [23:57:34]OFD Sender: No OFD packet to send [23:57:39]OFD Sender: No OFD packet to send [23:57:44]OFD Sender: No OFD packet to send [23:57:49]OFD Sender: No OFD packet to send [23:57:54]OFD Sender: No OFD packet to send [23:57:58]accept exits with 8 [23:57:58]New connection [23:57:58]New thread 3066969444 created [23:57:58]Thread 3067112804 joined [23:57:58]Waiting for new connection... [23:57:58] Sock 8.Parse request [23:57:58]Sock 8.Check first char [23:57:58]Sock 8.First char is OK [23:57:58]request: POST /json_proto HTTP/1.0 [23:57:58]Method: POST [23:57:58]URL: /json_proto [23:57:58]Method is POST - this is cgi request [23:57:58]url: /json_proto [23:57:58]query_string will be loaded in cgi processing [23:57:58]execute_cgi json_proto POST (null) [23:57:58]execute_cgi path=json_proto method=POST [23:57:58]POST find Content-Length [23:57:58]Host: 172.17.33.3:8080 [23:57:58]Content-Length: 840 [23:57:58]Content-Type: application/json [23:57:58] [23:57:58]POST finish read [23:57:58]Found Content-Length = 840 [23:57:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347796", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 9.340, "sum" : 600.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 600.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:57:58]execute_script... [23:57: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)347796", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 9.340, "sum" : 600.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 600.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:57:58]POST & json_proto [23:57:58]process_json_proto [23:57:58]json parsed OK: [23:57:58]protocol is kg_v1.0 [23:57:58]action value=close_receipt [23:57:58]process_action close_receipt [23:57:58]cmd_close_receipt [23:57:58]MH_GetDate [23:57:58]Write to MH i2c: F0 00 00 A0 14 A3 [23:57:58]Write i2c OK [23:57:58]MH_I2C_Read... [23:57:58]Read from MH i2c: F0 [23:57:58]MH_I2C_Read... [23:57:58]Read from MH i2c: F0 09 00 [23:57:58]MH_I2C_Read... [23:57:58]Read from MH i2c: F0 09 00 A0 14 00 87 6D 1C 66 23 5B 8F 65 94 [23:57:58]GetLastDocTimeStamp 1713138737 [23:57:58]current date 1713139079 [23:57:58]FM_GetShiftState [23:57:58]SAM_PROTO_GetShiftState [23:57:58]wFMCommunicate request_size=4 [23:57:58]MH_SAM_APDU [23:57:58]CAPDU: 80 13 01 00 [23:57:58]Write to MH i2c: E2 08 00 A1 14 80 13 01 00 00 00 00 00 32 [23:57:58]Write i2c OK [23:57:58]MH_I2C_Read... [23:57:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:57:58]Read from MH i2c: E2 [23:57:58]MH_I2C_Read... [23:57:58]Read from MH i2c: E2 0E 00 [23:57:58]MH_I2C_Read... [23:57:58]Read from MH i2c: E2 0E 00 A1 14 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 DE [23:57:58]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [23:57:58]wFMCommunicate OK [23:57:58]SAM_PROTO_GetShiftState done [23:57:58]FM_GetShiftState done [23:57:58]opened in 1713053951 [23:57:58]opened+sec_in_day 1713140351 [23:57:58]quantity*price = 60056 [23:57:58]sum+1 = 60057 [23:57:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.56 НСП 1% : 5.31 НДС 12% : 63.78 Наличными: 0.00 Безнал.: 600.56 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 311 14.04.2024 23:57 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 29401 ФПД: 250792205370955 1/tax-web-control/client/api/v1/ticket?date=20240414T235759&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29401&fm=250792205370955&tin=02508201610067®Number=0000138879044617&sum=60056 [23:57:59]StoreToDocumentArchive [23:57:59]shift 116 fd 29401 [23:57:59]save to /storage/0116/doc_00029401 [23:57:59]save last doc name /storage/0116/doc_00029401 to /storage/kkm_last_doc_name [23:57:59]save OK [23:57:59]Clear old archive folders... [23:57:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:57:59]tlvbuf is 00220760 [23:57:59]SAM_PROTO_ClearQueue [23:57:59]wFMCommunicate request_size=4 [23:57:59]MH_SAM_APDU [23:57:59]CAPDU: 80 09 00 00 [23:57:59]Write to MH i2c: E2 08 00 AE 14 80 09 00 00 00 00 00 00 34 [23:57:59]Write i2c OK [23:57:59]MH_I2C_Read... [23:57:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:57:59]Read from MH i2c: E2 [23:57:59]MH_I2C_Read... [23:57:59]Read from MH i2c: E2 03 00 [23:57:59]MH_I2C_Read... [23:57:59]Read from MH i2c: E2 03 00 AE 14 00 90 00 36 [23:57:59]RAPDU: 90 00 [23:57:59]wFMCommunicate OK [23:57:59]SAM_PROTO_ClearQueue done [23:57:59]KKMCreateOFDPacket [23:57:59]OFDProtocolAddRootSTLVToBuf [23:57:59]FM_MakeSignedData [23:57:59]FM_MakeSignedData [23:57:59]SAM_PROTO_SignData [23:57:59]wFMCommunicate request_size=4 [23:57:59]MH_SAM_APDU [23:57:59]CAPDU: 80 0D 01 02 [23:57:59]Write to MH i2c: E2 08 00 AF 14 80 0D 01 02 00 00 00 00 3C [23:57:59]Write i2c OK [23:57:59]MH_I2C_Read... [23:57:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:57:59]Read from MH i2c: E2 [23:57:59]MH_I2C_Read... [23:57:59]Read from MH i2c: E2 03 00 [23:57:59]MH_I2C_Read... [23:57:59]Read from MH i2c: E2 03 00 AF 14 00 90 00 37 [23:57:59]RAPDU: 90 00 [23:57:59]wFMCommunicate OK [23:57:59]wFMCommunicate request_size=255 [23:57:59]MH_SAM_APDU [23:57: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 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 98 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 00 00 00 00 00 00 39 04 06 00 98 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 87 6D 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D9 72 00 00 35 04 06 00 E4 [23:57:59]Write to MH i2c: E2 02 01 B0 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 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 98 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 00 00 00 00 00 00 39 04 06 00 98 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 87 6D 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D9 72 00 00 35 04 06 00 E4 00 00 28 [23:57:59]Write i2c OK [23:57:59]MH_I2C_Read... [23:57:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:57:59]Read from MH i2c: E2 [23:57:59]MH_I2C_Read... [23:57:59]Read from MH i2c: E2 03 00 [23:57:59]MH_I2C_Read... [23:57:59]Read from MH i2c: E2 03 00 B0 14 00 90 00 38 [23:57:59]RAPDU: 90 00 [23:57:59]wFMCommunicate OK [23:57:59]wFMCommunicate request_size=10 [23:57:59]MH_SAM_APDU [23:57:59]CAPDU: 80 0D 02 02 05 18 1C 50 46 4B [23:57:59]Write to MH i2c: E2 0D 00 B1 14 80 0D 02 02 05 00 18 1C 50 46 4B 00 00 5E [23:57:59]Write i2c OK [23:57:59]MH_I2C_Read... [23:57:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:57:59]Read from MH i2c: E2 [23:57:59]MH_I2C_Read... [23:57:59]Read from MH i2c: E2 03 00 [23:57:59]MH_I2C_Read... [23:57:59]Read from MH i2c: E2 03 00 B1 14 00 90 00 39 [23:57:59]RAPDU: 90 00 [23:57:59]wFMCommunicate OK [23:57:59]wFMCommunicate request_size=4 [23:57:59]MH_SAM_APDU [23:57:59]CAPDU: 80 0D 03 02 [23:57:59]Write to MH i2c: E2 08 00 B2 14 80 0D 03 02 00 00 00 00 41 [23:57:59]Write i2c OK [23:57:59]MH_I2C_Read... [23:57:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:57:59]Read from MH i2c: E2 [23:57:59]MH_I2C_Read... [23:57:59]Read from MH i2c: E2 0B 00 [23:57:59]MH_I2C_Read... [23:57:59]Read from MH i2c: E2 0B 00 B2 14 00 9C A4 19 BB 07 D0 7B FF 90 00 A7 [23:57:59]RAPDU: 9C A4 19 BB 07 D0 7B FF 90 00 [23:57:59]wFMCommunicate OK [23:57:59]SAM_PROTO_SignData done [23:57:59]FM_MakeSignedData done [23:57:59]CreateOFDProtocolMessage [23:57:59]wFMCommunicate request_size=4 [23:57:59]MH_SAM_APDU [23:57:59]CAPDU: 80 11 00 00 [23:57:59]Write to MH i2c: E2 08 00 B3 14 80 11 00 00 00 00 00 00 41 [23:57:59]Write i2c OK [23:57:59]MH_I2C_Read... [23:57:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:57:59]Read from MH i2c: E2 [23:57:59]MH_I2C_Read... [23:57:59]Read from MH i2c: E2 17 00 [23:57:59]MH_I2C_Read... [23:57:59]Read from MH i2c: E2 17 00 B3 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 90 [23:57:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:57:59]wFMCommunicate OK [23:57:59]CreateOFDProtocolMessage done [23:57:59]OFDSenderStorePacket 29401 [23:57:59]StoreOFDPacket docnum=29401 [23:57:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 1C BC 07 01 8C 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 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 98 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 00 00 00 00 00 00 39 04 06 00 98 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 87 6D 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D9 72 00 00 35 04 06 00 E4 18 1C 50 46 4B 9C A4 19 BB 07 D0 7B FF [23:57:59]CheckFolder [23:57:59]dirname=/storage/ofd_packets [23:57:59]CheckFolder done [23:57:59]ProducePacketName [23:57:59]name=ofd_packets/00029401 [23:57:59]NVStorageSaveData ofd_packets/00029401 [23:57:59]File name is /storage/ofd_packets/00029401 [23:57:59]Write 301 bytes [23:57:59]NVStorageSaveData done [23:57:59]OFDSenderStorePacket done [23:57:59]KKMCreateOFDPacket done [23:57:59]NVStorageSaveData kkm_last_timestamp [23:57:59]File name is /storage/kkm_last_timestamp [23:57:59]Write 4 bytes [23:57:59]NVStorageSaveData done [23:57:59]ExternCall_PrintAddStr [23:57:59]wPrintStart [23:57:59]Write to MH i2c: 01 00 00 B4 14 C8 [23:57:59]Write i2c OK [23:57:59]MH_I2C_Read... [23:57:59]Read from MH i2c: 01 [23:57:59]MH_I2C_Read... [23:57:59]Read from MH i2c: 01 07 00 [23:57:59]MH_I2C_Read... [23:57:59]Read from MH i2c: 01 07 00 B4 14 00 00 00 00 00 FF 0F DD [23:57:59]RasterBufferAndPrint [23:57:59]line Счет N : (1)347796 [23:57:59]line ИНН: 02508201610067 [23:57:59]line Контрольно-Кассовый Чек [23:57:59]line ПРОДАЖА [23:57:59]line ТРК (МРК, ГНК) : 13 [23:57:59]line Товар: 2710124130 [23:57:59]line Аи-92-К-5 [23:57:59]line 9.340 * 64.30 [23:57:59]line = 600.56 [23:57:59]line НДС 12% НСП 1% [23:57:59]line > о реализуемом товаре [23:57:59]line ИТОГО: 600.56 [23:57:59]line НСП 1% : 5.31 [23:57:59]line НДС 12% : 63.78 [23:57:59]line Наличными: 0.00 [23:57:59]line Безнал.: 600.56 [23:57:59]line Место: АЗС № 108 "Партнер Нефть" [23:57:59]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [23:57:59]line СНО: Общий режим [23:57:59]line Чек 311 14.04.2024 23:57 [23:57:59]line Смена: 116 ФФД: 1.0 [23:57:59]line ЗНМ: 0300000027 [23:57:59]line РНМ: 0000138879044617 [23:57:59]line Версия ККМ: 001 [23:57:59]line Платежная система: АКБ Кыргызстан [23:57:59]line ФМ: 0000000000963154 [23:57:59]line ФД: 29401 [23:57:59]line ФПД: 250792205370955 [23:57:59]line 1/tax-web-control/client/api/v1/ticket?date=20240414T235759&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29401&fm=250792205370955&tin=02508201610067®Number=0000138879044617&sum=60056 [23:58:00]OFD Sender: Processing packet 29401 [packets to send 8, broken 7] [23:58:00]ProducePacketName [23:58:00]name=ofd_packets/00029401 [23:58:00]OFD Sender: To server: pG, [23:58:00]CommunicateWithHost lk.salyk.kg:30040 [23:58:00]ConnectInit lk.salyk.kg [23:58:00]written 0, free lines is 4095 [23:58:00]Connected sock=10 [23:58:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 1C BC 07 01 8C 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 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 98 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 00 00 00 00 00 00 39 04 06 00 98 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 87 6D 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D9 72 00 00 35 04 06 00 E4 18 1C 50 46 4B 9C A4 19 BB 07 D0 7B FF [23:58:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 61 5B 47 00 90 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 39 36 33 31 35 34 10 04 04 00 D9 72 00 00 F4 03 04 00 2A 18 1C 66 B6 04 01 00 00 FB BB 00 2B E8 45 8D 7B [23:58:00]CommunicateWithHost err = 0 [23:58:00]CheckOFDResponse [23:58:00]1017 (14) - 77093643461234 [23:58:00]1041 (16) - 0000000000963154 [23:58:00]1040 (4) - 29401 [23:58:00]1012 (4) - 14.04.2024 17:53 [23:58:00]1206 (1) - 0 [23:58:00]OFD Sender: Remove packet 29401 [23:58:00]ProducePacketName [23:58:00]name=ofd_packets/00029401 [23:58:00]NVStorageDeleteData [23:58:00]Write to MH i2c: 01 00 00 DD 14 F1 [23:58:00]Write i2c OK [23:58:00]MH_I2C_Read... [23:58:00]Read from MH i2c: 01 [23:58:00]MH_I2C_Read... [23:58:00]Read from MH i2c: 01 07 00 [23:58:00]MH_I2C_Read... [23:58:00]Read from MH i2c: 01 07 00 DD 14 00 00 00 00 00 D8 0C DC [23:58:00]RasterBufferAndPrint [23:58:00]line [23:58:00]line [23:58:00]line [23:58:00]line [23:58:00]line [23:58:00]written 0, free lines is 3295 [23:58:00]MH_Cut [23:58:00]Write to MH i2c: D1 01 00 E4 14 01 CA [23:58:00]Write i2c OK [23:58:00]MH_I2C_Read... [23:58:00]Read from MH i2c: D1 [23:58:00]MH_I2C_Read... [23:58:00]Read from MH i2c: D1 01 00 [23:58:00]MH_I2C_Read... [23:58:00]Read from MH i2c: D1 01 00 E4 14 00 C9 [23:58:00]Write to MH i2c: 01 00 00 E5 14 F9 [23:58:00]Write i2c OK [23:58:00]MH_I2C_Read... [23:58:00]OFD Sender: No OFD packet to send [23:58:01]*** Cut start [23:58:01]*** Partial cut [23:58:01]*** CUTSNS_PIN = 1 [23:58:01]*** CUTSNS_PIN = 0 [23:58:01]*** Brake cut motor [23:58:02]Read from MH i2c: 01 [23:58:02]MH_I2C_Read... [23:58:02]*** Stop cut motor [23:58:02]*** Cut end [23:58:02]Read from MH i2c: 01 07 00 [23:58:02]MH_I2C_Read... [23:58:02]Read from MH i2c: 01 07 00 E5 14 00 00 00 00 00 FF 0F 0E [23:58:02]process_action close_receipt done [23:58:02]requested_data is exist [23:58:02]produce_requested_data [23:58:02]requested_item fm.sn is exist - process it [23:58:02]wFMCommunicate request_size=4 [23:58:02]MH_SAM_APDU [23:58:02]CAPDU: 80 11 00 00 [23:58:02]Write to MH i2c: E2 08 00 E6 14 80 11 00 00 00 00 00 00 74 [23:58:02]Write i2c OK [23:58:02]MH_I2C_Read... [23:58:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:58:02]Read from MH i2c: E2 [23:58:02]MH_I2C_Read... [23:58:02]Read from MH i2c: E2 17 00 [23:58:02]MH_I2C_Read... [23:58:02]Read from MH i2c: E2 17 00 E6 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C3 [23:58:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:58:02]wFMCommunicate OK [23:58:02]requested_item fd.num is exist - process it [23:58:02]SAM_PROTO_GetFieldsCounters [23:58:02]wFMCommunicate request_size=4 [23:58:02]MH_SAM_APDU [23:58:02]CAPDU: 80 13 00 00 [23:58:02]Write to MH i2c: E2 08 00 E7 14 80 13 00 00 00 00 00 00 77 [23:58:02]Write i2c OK [23:58:02]MH_I2C_Read... [23:58:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:58:02]Read from MH i2c: E2 [23:58:02]MH_I2C_Read... [23:58:02]Read from MH i2c: E2 62 00 [23:58:02]MH_I2C_Read... [23:58:02]Read from MH i2c: E2 62 00 E7 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D9 72 00 00 0E 04 04 00 74 00 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 1C [23:58:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D9 72 00 00 0E 04 04 00 74 00 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 [23:58:02]wFMCommunicate OK [23:58:02]SAM_PROTO_GetFieldsCounters done [23:58:02]requested_item shift.num is exist - process it [23:58:02]requested_item shift.opened is exist - process it [23:58:02]req_shift_opened [23:58:02]FM_GetShiftState [23:58:02]SAM_PROTO_GetShiftState [23:58:02]wFMCommunicate request_size=4 [23:58:02]MH_SAM_APDU [23:58:02]CAPDU: 80 13 01 00 [23:58:02]Write to MH i2c: E2 08 00 E8 14 80 13 01 00 00 00 00 00 79 [23:58:02]Write i2c OK [23:58:02]MH_I2C_Read... [23:58:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:58:02]Read from MH i2c: E2 [23:58:02]MH_I2C_Read... [23:58:02]Read from MH i2c: E2 0E 00 [23:58:02]MH_I2C_Read... [23:58:02]Read from MH i2c: E2 0E 00 E8 14 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 25 [23:58:02]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [23:58:02]wFMCommunicate OK [23:58:02]SAM_PROTO_GetShiftState done [23:58:02]FM_GetShiftState done [23:58:02]req_shift_opened done [23:58:02]requested_item shift.open_date is exist - process it [23:58:02]req_shift_open_date [23:58:02]req_shift_open_date done [23:58:02]produce_requested_data done [23:58:02]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29401,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [23:58:02]process_action_free close_receipt [23:58:02]json_value_free [23:58:02]json_value_free done [23:58:02]process_json_proto returns [23:58:02]Send response to host [23:58:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29401,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [23:58:02]free response buf [23:58:02]execute_script done [23:58:02]execute_script returns [23:58:02]free content buf [23:58:02]Sock 8.Close socket [23:58:02]Sock 8.Thread stoped [23:58:05]OFD Sender: No OFD packet to send [23:58:10]OFD Sender: No OFD packet to send [23:58:15]OFD Sender: No OFD packet to send [23:58:20]OFD Sender: No OFD packet to send [23:58:25]OFD Sender: No OFD packet to send [23:58:30]OFD Sender: No OFD packet to send [23:58:31]accept exits with 9 [23:58:31]New connection [23:58:31]New thread 3067112804 created [23:58:31]Thread 3066969444 joined [23:58:31]Waiting for new connection... [23:58:31] Sock 9.Parse request [23:58:31]Sock 9.Check first char [23:58:31]Sock 9.First char is OK [23:58:31]request: POST /json_proto HTTP/1.0 [23:58:31]Method: POST [23:58:31]URL: /json_proto [23:58:31]Method is POST - this is cgi request [23:58:31]url: /json_proto [23:58:31]query_string will be loaded in cgi processing [23:58:31]execute_cgi json_proto POST (null) [23:58:31]execute_cgi path=json_proto method=POST [23:58:31]POST find Content-Length [23:58:31]Host: 172.17.33.3:8080 [23:58:31]Content-Length: 805 [23:58:31]Content-Type: application/json [23:58:31] [23:58:31]POST finish read [23:58:31]Found Content-Length = 805 [23:58:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347797", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.50, "quantity" : 4.140, "sum" : 300.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:58:31]execute_script... [23:58: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)347797", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.50, "quantity" : 4.140, "sum" : 300.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:58:31]POST & json_proto [23:58:31]process_json_proto [23:58:31]json parsed OK: [23:58:31]protocol is kg_v1.0 [23:58:31]action value=close_receipt [23:58:31]process_action close_receipt [23:58:31]cmd_close_receipt [23:58:31]MH_GetDate [23:58:31]Write to MH i2c: F0 00 00 E9 14 EC [23:58:31]Write i2c OK [23:58:31]MH_I2C_Read... [23:58:31]Read from MH i2c: F0 [23:58:31]MH_I2C_Read... [23:58:31]Read from MH i2c: F0 09 00 [23:58:31]MH_I2C_Read... [23:58:31]Read from MH i2c: F0 09 00 E9 14 00 A9 6D 1C 66 23 5B 8F 65 FF [23:58:31]GetLastDocTimeStamp 1713139079 [23:58:31]current date 1713139113 [23:58:31]FM_GetShiftState [23:58:31]SAM_PROTO_GetShiftState [23:58:31]wFMCommunicate request_size=4 [23:58:31]MH_SAM_APDU [23:58:31]CAPDU: 80 13 01 00 [23:58:31]Write to MH i2c: E2 08 00 EA 14 80 13 01 00 00 00 00 00 7B [23:58:31]Write i2c OK [23:58:31]MH_I2C_Read... [23:58:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:58:31]Read from MH i2c: E2 [23:58:31]MH_I2C_Read... [23:58:31]Read from MH i2c: E2 0E 00 [23:58:31]MH_I2C_Read... [23:58:31]Read from MH i2c: E2 0E 00 EA 14 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 27 [23:58:31]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [23:58:31]wFMCommunicate OK [23:58:31]SAM_PROTO_GetShiftState done [23:58:31]FM_GetShiftState done [23:58:31]opened in 1713053951 [23:58:31]opened+sec_in_day 1713140351 [23:58:31]quantity*price = 30015 [23:58:31]sum+1 = 30016 [23:58:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.15 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 0.00 Безнал.: 300.15 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 312 14.04.2024 23:58 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29402 ФПД: 265262906588499 1/tax-web-control/client/api/v1/ticket?date=20240414T235833&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29402&fm=265262906588499&tin=02508201610067®Number=0000138879044617&sum=30015 [23:58:32]StoreToDocumentArchive [23:58:32]shift 116 fd 29402 [23:58:32]save to /storage/0116/doc_00029402 [23:58:32]save last doc name /storage/0116/doc_00029402 to /storage/kkm_last_doc_name [23:58:32]save OK [23:58:32]Clear old archive folders... [23:58:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:58:32]tlvbuf is 00251370 [23:58:32]SAM_PROTO_ClearQueue [23:58:32]wFMCommunicate request_size=4 [23:58:32]MH_SAM_APDU [23:58:32]CAPDU: 80 09 00 00 [23:58:32]Write to MH i2c: E2 08 00 F7 14 80 09 00 00 00 00 00 00 7D [23:58:32]Write i2c OK [23:58:32]MH_I2C_Read... [23:58:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:58:32]Read from MH i2c: E2 [23:58:32]MH_I2C_Read... [23:58:32]Read from MH i2c: E2 03 00 [23:58:32]MH_I2C_Read... [23:58:32]Read from MH i2c: E2 03 00 F7 14 00 90 00 7F [23:58:32]RAPDU: 90 00 [23:58:32]wFMCommunicate OK [23:58:32]SAM_PROTO_ClearQueue done [23:58:32]KKMCreateOFDPacket [23:58:32]OFDProtocolAddRootSTLVToBuf [23:58:32]FM_MakeSignedData [23:58:32]FM_MakeSignedData [23:58:32]SAM_PROTO_SignData [23:58:32]wFMCommunicate request_size=4 [23:58:32]MH_SAM_APDU [23:58:32]CAPDU: 80 0D 01 02 [23:58:32]Write to MH i2c: E2 08 00 F8 14 80 0D 01 02 00 00 00 00 85 [23:58:32]Write i2c OK [23:58:32]MH_I2C_Read... [23:58:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:58:32]Read from MH i2c: E2 [23:58:32]MH_I2C_Read... [23:58:32]Read from MH i2c: E2 03 00 [23:58:32]MH_I2C_Read... [23:58:32]Read from MH i2c: E2 03 00 F8 14 00 90 00 80 [23:58:32]RAPDU: 90 00 [23:58:32]wFMCommunicate OK [23:58:32]wFMCommunicate request_size=255 [23:58:32]MH_SAM_APDU [23:58: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 2C 10 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 3F 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3F 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 73 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3F 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 A9 6D 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DA 72 00 00 35 04 06 00 F1 [23:58:32]Write to MH i2c: E2 02 01 F9 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 2C 10 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 3F 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3F 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 73 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3F 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 A9 6D 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DA 72 00 00 35 04 06 00 F1 00 00 82 [23:58:32]Write i2c OK [23:58:32]MH_I2C_Read... [23:58:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:58:33]Read from MH i2c: E2 [23:58:33]MH_I2C_Read... [23:58:33]Read from MH i2c: E2 03 00 [23:58:33]MH_I2C_Read... [23:58:33]Read from MH i2c: E2 03 00 F9 14 00 90 00 81 [23:58:33]RAPDU: 90 00 [23:58:33]wFMCommunicate OK [23:58:33]wFMCommunicate request_size=10 [23:58:33]MH_SAM_APDU [23:58:33]CAPDU: 80 0D 02 02 05 41 55 51 BD 53 [23:58:33]Write to MH i2c: E2 0D 00 FA 14 80 0D 02 02 05 00 41 55 51 BD 53 00 00 89 [23:58:33]Write i2c OK [23:58:33]MH_I2C_Read... [23:58:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:58:33]Read from MH i2c: E2 [23:58:33]MH_I2C_Read... [23:58:33]Read from MH i2c: E2 03 00 [23:58:33]MH_I2C_Read... [23:58:33]Read from MH i2c: E2 03 00 FA 14 00 90 00 82 [23:58:33]RAPDU: 90 00 [23:58:33]wFMCommunicate OK [23:58:33]wFMCommunicate request_size=4 [23:58:33]MH_SAM_APDU [23:58:33]CAPDU: 80 0D 03 02 [23:58:33]Write to MH i2c: E2 08 00 FB 14 80 0D 03 02 00 00 00 00 8A [23:58:33]Write i2c OK [23:58:33]MH_I2C_Read... [23:58:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:58:33]Read from MH i2c: E2 [23:58:33]MH_I2C_Read... [23:58:33]Read from MH i2c: E2 0B 00 [23:58:33]MH_I2C_Read... [23:58:33]Read from MH i2c: E2 0B 00 FB 14 00 C4 8E D3 CD 7B 26 0B 89 90 00 B2 [23:58:33]RAPDU: C4 8E D3 CD 7B 26 0B 89 90 00 [23:58:33]wFMCommunicate OK [23:58:33]SAM_PROTO_SignData done [23:58:33]FM_MakeSignedData done [23:58:33]CreateOFDProtocolMessage [23:58:33]wFMCommunicate request_size=4 [23:58:33]MH_SAM_APDU [23:58:33]CAPDU: 80 11 00 00 [23:58:33]Write to MH i2c: E2 08 00 FC 14 80 11 00 00 00 00 00 00 8A [23:58:33]Write i2c OK [23:58:33]MH_I2C_Read... [23:58:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:58:33]Read from MH i2c: E2 [23:58:33]MH_I2C_Read... [23:58:33]Read from MH i2c: E2 17 00 [23:58:33]MH_I2C_Read... [23:58:33]Read from MH i2c: E2 17 00 FC 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D9 [23:58:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:58:33]wFMCommunicate OK [23:58:33]CreateOFDProtocolMessage done [23:58:33]OFDSenderStorePacket 29402 [23:58:33]StoreOFDPacket docnum=29402 [23:58:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 EB 82 07 01 65 C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 2C 10 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 3F 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3F 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 73 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3F 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 A9 6D 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DA 72 00 00 35 04 06 00 F1 41 55 51 BD 53 C4 8E D3 CD 7B 26 0B 89 [23:58:33]CheckFolder [23:58:33]dirname=/storage/ofd_packets [23:58:33]CheckFolder done [23:58:33]ProducePacketName [23:58:33]name=ofd_packets/00029402 [23:58:33]NVStorageSaveData ofd_packets/00029402 [23:58:33]File name is /storage/ofd_packets/00029402 [23:58:33]Write 301 bytes [23:58:33]NVStorageSaveData done [23:58:33]OFDSenderStorePacket done [23:58:33]KKMCreateOFDPacket done [23:58:33]NVStorageSaveData kkm_last_timestamp [23:58:33]File name is /storage/kkm_last_timestamp [23:58:33]Write 4 bytes [23:58:33]NVStorageSaveData done [23:58:33]ExternCall_PrintAddStr [23:58:33]wPrintStart [23:58:33]Write to MH i2c: 01 00 00 FD 14 11 [23:58:33]Write i2c OK [23:58:33]MH_I2C_Read... [23:58:33]Read from MH i2c: 01 [23:58:33]MH_I2C_Read... [23:58:33]Read from MH i2c: 01 07 00 [23:58:33]MH_I2C_Read... [23:58:33]Read from MH i2c: 01 07 00 FD 14 00 00 00 00 00 FF 0F 26 [23:58:33]RasterBufferAndPrint [23:58:33]line Счет N : (1)347797 [23:58:33]line ИНН: 02508201610067 [23:58:33]line Контрольно-Кассовый Чек [23:58:33]line ПРОДАЖА [23:58:33]line ТРК (МРК, ГНК) : 33 [23:58:33]line Товар: 2710124500 [23:58:33]line Аи-95-К-5 [23:58:33]line 4.140 * 72.50 [23:58:33]line = 300.15 [23:58:33]line НДС 12% НСП 1% [23:58:33]line > о реализуемом товаре [23:58:33]line ИТОГО: 300.15 [23:58:33]line НСП 1% : 2.66 [23:58:33]line НДС 12% : 31.87 [23:58:33]line Наличными: 0.00 [23:58:33]line Безнал.: 300.15 [23:58:33]line Место: АЗС № 108 "Партнер Нефть" [23:58:33]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [23:58:33]line СНО: Общий режим [23:58:33]line Чек 312 14.04.2024 23:58 [23:58:33]line Смена: 116 ФФД: 1.0 [23:58:33]line ЗНМ: 0300000027 [23:58:33]line РНМ: 0000138879044617 [23:58:33]line Версия ККМ: 001 [23:58:33]line Платежная система: О! деньги [23:58:33]line ФМ: 0000000000963154 [23:58:33]line ФД: 29402 [23:58:33]line ФПД: 265262906588499 [23:58:33]line 1/tax-web-control/client/api/v1/ticket?date=20240414T235833&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29402&fm=265262906588499&tin=02508201610067®Number=0000138879044617&sum=30015 [23:58:33]OFD Sender: Processing packet 29402 [packets to send 8, broken 7] [23:58:33]ProducePacketName [23:58:33]name=ofd_packets/00029402 [23:58:33]OFD Sender: To server: pG, [23:58:33]CommunicateWithHost lk.salyk.kg:30040 [23:58:33]ConnectInit lk.salyk.kg [23:58:33]written 0, free lines is 4095 [23:58:33]Connected sock=10 [23:58:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 EB 82 07 01 65 C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 2C 10 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 3F 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3F 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 73 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3F 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 A9 6D 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DA 72 00 00 35 04 06 00 F1 41 55 51 BD 53 C4 8E D3 CD 7B 26 0B 89 [23:58:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 BA 86 47 00 3C E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DA 72 00 00 F4 03 04 00 4B 18 1C 66 B6 04 01 00 00 40 E3 31 04 B0 90 E1 5F [23:58:33]CommunicateWithHost err = 0 [23:58:33]CheckOFDResponse [23:58:33]1017 (14) - 77093643461234 [23:58:33]1041 (16) - 0000000000963154 [23:58:33]1040 (4) - 29402 [23:58:33]1012 (4) - 14.04.2024 17:54 [23:58:33]1206 (1) - 0 [23:58:33]OFD Sender: Remove packet 29402 [23:58:33]ProducePacketName [23:58:33]name=ofd_packets/00029402 [23:58:33]NVStorageDeleteData [23:58:33]Write to MH i2c: 01 00 00 26 15 3B [23:58:33]Write i2c OK [23:58:33]MH_I2C_Read... [23:58:33]Read from MH i2c: 01 [23:58:33]MH_I2C_Read... [23:58:33]Read from MH i2c: 01 07 00 [23:58:33]MH_I2C_Read... [23:58:33]Read from MH i2c: 01 07 00 26 15 00 00 00 00 00 D4 0C 22 [23:58:33]RasterBufferAndPrint [23:58:33]line [23:58:33]line [23:58:33]line [23:58:33]line [23:58:33]line [23:58:33]written 0, free lines is 3290 [23:58:33]MH_Cut [23:58:33]Write to MH i2c: D1 01 00 2D 15 01 14 [23:58:33]Write i2c OK [23:58:33]MH_I2C_Read... [23:58:33]Read from MH i2c: D1 [23:58:33]MH_I2C_Read... [23:58:33]Read from MH i2c: D1 01 00 [23:58:33]MH_I2C_Read... [23:58:33]Read from MH i2c: D1 01 00 2D 15 00 13 [23:58:33]Write to MH i2c: 01 00 00 2E 15 43 [23:58:33]Write i2c OK [23:58:33]MH_I2C_Read... [23:58:34]OFD Sender: No OFD packet to send [23:58:34]*** Cut start [23:58:34]*** Partial cut [23:58:34]*** CUTSNS_PIN = 1 [23:58:34]*** CUTSNS_PIN = 0 [23:58:35]*** Brake cut motor [23:58:35]Read from MH i2c: 01 [23:58:35]MH_I2C_Read... [23:58:35]*** Stop cut motor [23:58:35]*** Cut end [23:58:35]Read from MH i2c: 01 07 00 [23:58:35]MH_I2C_Read... [23:58:35]Read from MH i2c: 01 07 00 2E 15 00 00 00 00 00 FF 0F 58 [23:58:35]process_action close_receipt done [23:58:35]requested_data is exist [23:58:35]produce_requested_data [23:58:35]requested_item fm.sn is exist - process it [23:58:35]wFMCommunicate request_size=4 [23:58:35]MH_SAM_APDU [23:58:35]CAPDU: 80 11 00 00 [23:58:35]Write to MH i2c: E2 08 00 2F 15 80 11 00 00 00 00 00 00 BE [23:58:35]Write i2c OK [23:58:35]MH_I2C_Read... [23:58:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:58:35]Read from MH i2c: E2 [23:58:35]MH_I2C_Read... [23:58:35]Read from MH i2c: E2 17 00 [23:58:35]MH_I2C_Read... [23:58:35]Read from MH i2c: E2 17 00 2F 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 0D [23:58:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:58:35]wFMCommunicate OK [23:58:35]requested_item fd.num is exist - process it [23:58:35]SAM_PROTO_GetFieldsCounters [23:58:35]wFMCommunicate request_size=4 [23:58:35]MH_SAM_APDU [23:58:35]CAPDU: 80 13 00 00 [23:58:35]Write to MH i2c: E2 08 00 30 15 80 13 00 00 00 00 00 00 C1 [23:58:35]Write i2c OK [23:58:35]MH_I2C_Read... [23:58:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:58:35]Read from MH i2c: E2 [23:58:35]MH_I2C_Read... [23:58:35]Read from MH i2c: E2 62 00 [23:58:35]MH_I2C_Read... [23:58:35]Read from MH i2c: E2 62 00 30 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DA 72 00 00 0E 04 04 00 74 00 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 6A [23:58:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DA 72 00 00 0E 04 04 00 74 00 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 [23:58:35]wFMCommunicate OK [23:58:35]SAM_PROTO_GetFieldsCounters done [23:58:35]requested_item shift.num is exist - process it [23:58:35]requested_item shift.opened is exist - process it [23:58:35]req_shift_opened [23:58:35]FM_GetShiftState [23:58:35]SAM_PROTO_GetShiftState [23:58:35]wFMCommunicate request_size=4 [23:58:35]MH_SAM_APDU [23:58:35]CAPDU: 80 13 01 00 [23:58:35]Write to MH i2c: E2 08 00 31 15 80 13 01 00 00 00 00 00 C3 [23:58:35]Write i2c OK [23:58:35]MH_I2C_Read... [23:58:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:58:35]Read from MH i2c: E2 [23:58:35]MH_I2C_Read... [23:58:35]Read from MH i2c: E2 0E 00 [23:58:35]MH_I2C_Read... [23:58:35]Read from MH i2c: E2 0E 00 31 15 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 6F [23:58:35]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [23:58:35]wFMCommunicate OK [23:58:35]SAM_PROTO_GetShiftState done [23:58:35]FM_GetShiftState done [23:58:35]req_shift_opened done [23:58:35]requested_item shift.open_date is exist - process it [23:58:35]req_shift_open_date [23:58:35]req_shift_open_date done [23:58:35]produce_requested_data done [23:58:35]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29402,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [23:58:35]process_action_free close_receipt [23:58:35]json_value_free [23:58:35]json_value_free done [23:58:35]process_json_proto returns [23:58:35]Send response to host [23:58:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29402,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [23:58:35]free response buf [23:58:35]execute_script done [23:58:35]execute_script returns [23:58:35]free content buf [23:58:35]Sock 9.Close socket [23:58:35]Sock 9.Thread stoped [23:58:39]OFD Sender: No OFD packet to send [23:58:44]OFD Sender: No OFD packet to send [23:58:49]OFD Sender: No OFD packet to send [23:58:54]OFD Sender: No OFD packet to send [23:58:59]OFD Sender: No OFD packet to send [23:59:04]OFD Sender: No OFD packet to send [23:59:09]OFD Sender: No OFD packet to send [23:59:11]accept exits with 8 [23:59:11]New connection [23:59:11]New thread 3066969444 created [23:59:11]Thread 3067112804 joined [23:59:11]Waiting for new connection... [23:59:11] Sock 8.Parse request [23:59:11]Sock 8.Check first char [23:59:11]Sock 8.First char is OK [23:59:11]request: POST /json_proto HTTP/1.0 [23:59:11]Method: POST [23:59:11]URL: /json_proto [23:59:11]Method is POST - this is cgi request [23:59:11]url: /json_proto [23:59:11]query_string will be loaded in cgi processing [23:59:11]execute_cgi json_proto POST (null) [23:59:11]execute_cgi path=json_proto method=POST [23:59:11]POST find Content-Length [23:59:11]Host: 172.17.33.3:8080 [23:59:11]Content-Length: 677 [23:59:11]Content-Type: application/json [23:59:11] [23:59:11]POST finish read [23:59:11]Found Content-Length = 677 [23:59:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347798", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.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" ] } } [23:59:11]execute_script... [23:59:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347798", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.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" ] } } [23:59:11]POST & json_proto [23:59:11]process_json_proto [23:59:11]json parsed OK: [23:59:11]protocol is kg_v1.0 [23:59:11]action value=close_receipt [23:59:11]process_action close_receipt [23:59:11]cmd_close_receipt [23:59:11]MH_GetDate [23:59:11]Write to MH i2c: F0 00 00 32 15 36 [23:59:11]Write i2c OK [23:59:11]MH_I2C_Read... [23:59:11]Read from MH i2c: F0 [23:59:11]MH_I2C_Read... [23:59:11]Read from MH i2c: F0 09 00 [23:59:11]MH_I2C_Read... [23:59:11]Read from MH i2c: F0 09 00 32 15 00 D1 6D 1C 66 23 5B 8F 65 71 [23:59:11]GetLastDocTimeStamp 1713139113 [23:59:11]current date 1713139153 [23:59:11]FM_GetShiftState [23:59:11]SAM_PROTO_GetShiftState [23:59:11]wFMCommunicate request_size=4 [23:59:11]MH_SAM_APDU [23:59:11]CAPDU: 80 13 01 00 [23:59:11]Write to MH i2c: E2 08 00 33 15 80 13 01 00 00 00 00 00 C5 [23:59:11]Write i2c OK [23:59:11]MH_I2C_Read... [23:59:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:59:11]Read from MH i2c: E2 [23:59:11]MH_I2C_Read... [23:59:11]Read from MH i2c: E2 0E 00 [23:59:11]MH_I2C_Read... [23:59:11]Read from MH i2c: E2 0E 00 33 15 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 71 [23:59:11]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [23:59:11]wFMCommunicate OK [23:59:11]SAM_PROTO_GetShiftState done [23:59:11]FM_GetShiftState done [23:59:11]opened in 1713053951 [23:59:11]opened+sec_in_day 1713140351 [23:59:11]quantity*price = 70035 [23:59:11]sum+1 = 70036 [23:59:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 313 14.04.2024 23:59 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29403 ФПД: 31694146591440 1/tax-web-control/client/api/v1/ticket?date=20240414T235913&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29403&fm=31694146591440&tin=02508201610067®Number=0000138879044617&sum=70000 [23:59:12]StoreToDocumentArchive [23:59:12]shift 116 fd 29403 [23:59:12]save to /storage/0116/doc_00029403 [23:59:12]save last doc name /storage/0116/doc_00029403 to /storage/kkm_last_doc_name [23:59:12]save OK [23:59:12]Clear old archive folders... [23:59:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:59:12]tlvbuf is 00251230 [23:59:12]SAM_PROTO_ClearQueue [23:59:12]wFMCommunicate request_size=4 [23:59:12]MH_SAM_APDU [23:59:12]CAPDU: 80 09 00 00 [23:59:12]Write to MH i2c: E2 08 00 40 15 80 09 00 00 00 00 00 00 C7 [23:59:12]Write i2c OK [23:59:12]MH_I2C_Read... [23:59:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:59:12]Read from MH i2c: E2 [23:59:12]MH_I2C_Read... [23:59:12]Read from MH i2c: E2 03 00 [23:59:12]MH_I2C_Read... [23:59:12]Read from MH i2c: E2 03 00 40 15 00 90 00 C9 [23:59:12]RAPDU: 90 00 [23:59:12]wFMCommunicate OK [23:59:12]SAM_PROTO_ClearQueue done [23:59:12]KKMCreateOFDPacket [23:59:12]OFDProtocolAddRootSTLVToBuf [23:59:12]FM_MakeSignedData [23:59:12]FM_MakeSignedData [23:59:12]SAM_PROTO_SignData [23:59:12]wFMCommunicate request_size=4 [23:59:12]MH_SAM_APDU [23:59:12]CAPDU: 80 0D 01 02 [23:59:12]Write to MH i2c: E2 08 00 41 15 80 0D 01 02 00 00 00 00 CF [23:59:12]Write i2c OK [23:59:12]MH_I2C_Read... [23:59:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:59:12]Read from MH i2c: E2 [23:59:12]MH_I2C_Read... [23:59:12]Read from MH i2c: E2 03 00 [23:59:12]MH_I2C_Read... [23:59:12]Read from MH i2c: E2 03 00 41 15 00 90 00 CA [23:59:12]RAPDU: 90 00 [23:59:12]wFMCommunicate OK [23:59:12]wFMCommunicate request_size=255 [23:59:12]MH_SAM_APDU [23:59:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 39 01 00 00 F4 03 04 00 D1 6D 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DB 72 00 00 35 04 06 00 1C [23:59:12]Write to MH i2c: E2 02 01 42 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 39 01 00 00 F4 03 04 00 D1 6D 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DB 72 00 00 35 04 06 00 1C 00 00 61 [23:59:12]Write i2c OK [23:59:12]MH_I2C_Read... [23:59:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:59:13]Read from MH i2c: E2 [23:59:13]MH_I2C_Read... [23:59:13]Read from MH i2c: E2 03 00 [23:59:13]MH_I2C_Read... [23:59:13]Read from MH i2c: E2 03 00 42 15 00 90 00 CB [23:59:13]RAPDU: 90 00 [23:59:13]wFMCommunicate OK [23:59:13]wFMCommunicate request_size=10 [23:59:13]MH_SAM_APDU [23:59:13]CAPDU: 80 0D 02 02 05 D3 5E 59 5A D0 [23:59:13]Write to MH i2c: E2 0D 00 43 15 80 0D 02 02 05 00 D3 5E 59 5A D0 00 00 90 [23:59:13]Write i2c OK [23:59:13]MH_I2C_Read... [23:59:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:59:13]Read from MH i2c: E2 [23:59:13]MH_I2C_Read... [23:59:13]Read from MH i2c: E2 03 00 [23:59:13]MH_I2C_Read... [23:59:13]Read from MH i2c: E2 03 00 43 15 00 90 00 CC [23:59:13]RAPDU: 90 00 [23:59:13]wFMCommunicate OK [23:59:13]wFMCommunicate request_size=4 [23:59:13]MH_SAM_APDU [23:59:13]CAPDU: 80 0D 03 02 [23:59:13]Write to MH i2c: E2 08 00 44 15 80 0D 03 02 00 00 00 00 D4 [23:59:13]Write i2c OK [23:59:13]MH_I2C_Read... [23:59:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:59:13]Read from MH i2c: E2 [23:59:13]MH_I2C_Read... [23:59:13]Read from MH i2c: E2 0B 00 [23:59:13]MH_I2C_Read... [23:59:13]Read from MH i2c: E2 0B 00 44 15 00 35 9C 0F 13 56 2C EB 45 90 00 7A [23:59:13]RAPDU: 35 9C 0F 13 56 2C EB 45 90 00 [23:59:13]wFMCommunicate OK [23:59:13]SAM_PROTO_SignData done [23:59:13]FM_MakeSignedData done [23:59:13]CreateOFDProtocolMessage [23:59:13]wFMCommunicate request_size=4 [23:59:13]MH_SAM_APDU [23:59:13]CAPDU: 80 11 00 00 [23:59:13]Write to MH i2c: E2 08 00 45 15 80 11 00 00 00 00 00 00 D4 [23:59:13]Write i2c OK [23:59:13]MH_I2C_Read... [23:59:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:59:13]Read from MH i2c: E2 [23:59:13]MH_I2C_Read... [23:59:13]Read from MH i2c: E2 17 00 [23:59:13]MH_I2C_Read... [23:59:13]Read from MH i2c: E2 17 00 45 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 23 [23:59:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:59:13]wFMCommunicate OK [23:59:13]CreateOFDProtocolMessage done [23:59:13]OFDSenderStorePacket 29403 [23:59:13]StoreOFDPacket docnum=29403 [23:59:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 02 51 07 01 4B 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 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 39 01 00 00 F4 03 04 00 D1 6D 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DB 72 00 00 35 04 06 00 1C D3 5E 59 5A D0 35 9C 0F 13 56 2C EB 45 [23:59:13]CheckFolder [23:59:13]dirname=/storage/ofd_packets [23:59:13]CheckFolder done [23:59:13]ProducePacketName [23:59:13]name=ofd_packets/00029403 [23:59:13]NVStorageSaveData ofd_packets/00029403 [23:59:13]File name is /storage/ofd_packets/00029403 [23:59:13]Write 301 bytes [23:59:13]NVStorageSaveData done [23:59:13]OFDSenderStorePacket done [23:59:13]KKMCreateOFDPacket done [23:59:13]NVStorageSaveData kkm_last_timestamp [23:59:13]File name is /storage/kkm_last_timestamp [23:59:13]Write 4 bytes [23:59:13]NVStorageSaveData done [23:59:13]ExternCall_PrintAddStr [23:59:13]wPrintStart [23:59:13]Write to MH i2c: 01 00 00 46 15 5B [23:59:13]Write i2c OK [23:59:13]MH_I2C_Read... [23:59:13]Read from MH i2c: 01 [23:59:13]MH_I2C_Read... [23:59:13]Read from MH i2c: 01 07 00 [23:59:13]MH_I2C_Read... [23:59:13]Read from MH i2c: 01 07 00 46 15 00 00 00 00 00 FF 0F 70 [23:59:13]RasterBufferAndPrint [23:59:13]line Счет N : (1)347798 [23:59:13]line ИНН: 02508201610067 [23:59:13]line Контрольно-Кассовый Чек [23:59:13]line ПРОДАЖА [23:59:13]line ТРК (МРК, ГНК) : 33 [23:59:13]line Товар: 2710124500 [23:59:13]line Аи-95-К-5 [23:59:13]line 9.660 * 72.50 [23:59:13]line = 700.35 [23:59:13]line НДС 12% НСП 1% [23:59:13]line > о реализуемом товаре [23:59:13]line ОКРУГЛЕНИЕ: -0.35 [23:59:13]line ИТОГО: 700.00 [23:59:13]line Внесено: 700.00 [23:59:13]line СДАЧА: 0.00 [23:59:13]line НСП 1% : 6.20 [23:59:13]line НДС 12% : 74.37 [23:59:13]line Наличными: 700.00 [23:59:13]line Безнал.: 0.00 [23:59:13]line Место: АЗС № 108 "Партнер Нефть" [23:59:13]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [23:59:13]line СНО: Общий режим [23:59:13]line Чек 313 14.04.2024 23:59 [23:59:13]line Смена: 116 ФФД: 1.0 [23:59:13]line ЗНМ: 0300000027 [23:59:13]line РНМ: 0000138879044617 [23:59:13]line Версия ККМ: 001 [23:59:13]line ФМ: 0000000000963154 [23:59:13]line ФД: 29403 [23:59:13]line ФПД: 31694146591440 [23:59:13]line 1/tax-web-control/client/api/v1/ticket?date=20240414T235913&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29403&fm=31694146591440&tin=02508201610067®Number=0000138879044617&sum=70000 [23:59:13]written 0, free lines is 4095 [23:59:13]OFD Sender: Processing packet 29403 [packets to send 8, broken 7] [23:59:13]ProducePacketName [23:59:13]name=ofd_packets/00029403 [23:59:13]OFD Sender: To server: pG, [23:59:13]CommunicateWithHost lk.salyk.kg:30040 [23:59:13]ConnectInit lk.salyk.kg [23:59:13]Connected sock=10 [23:59:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 02 51 07 01 4B 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 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 39 01 00 00 F4 03 04 00 D1 6D 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DB 72 00 00 35 04 06 00 1C D3 5E 59 5A D0 35 9C 0F 13 56 2C EB 45 [23:59:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 2B 41 47 00 EF BC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DB 72 00 00 F4 03 04 00 73 18 1C 66 B6 04 01 00 00 AB 5D 55 EC 0C 4B 5B 59 [23:59:13]CommunicateWithHost err = 0 [23:59:13]CheckOFDResponse [23:59:13]1017 (14) - 77093643461234 [23:59:13]1041 (16) - 0000000000963154 [23:59:13]1040 (4) - 29403 [23:59:13]1012 (4) - 14.04.2024 17:54 [23:59:13]1206 (1) - 0 [23:59:13]OFD Sender: Remove packet 29403 [23:59:13]ProducePacketName [23:59:13]name=ofd_packets/00029403 [23:59:13]NVStorageDeleteData [23:59:13]Write to MH i2c: 01 00 00 70 15 85 [23:59:13]Write i2c OK [23:59:13]MH_I2C_Read... [23:59:13]Read from MH i2c: 01 [23:59:13]MH_I2C_Read... [23:59:13]Read from MH i2c: 01 07 00 [23:59:13]MH_I2C_Read... [23:59:13]Read from MH i2c: 01 07 00 70 15 00 00 00 00 00 C6 0C 5E [23:59:13]RasterBufferAndPrint [23:59:13]line [23:59:13]line [23:59:13]line [23:59:13]line [23:59:13]line [23:59:13]written 0, free lines is 3276 [23:59:13]MH_Cut [23:59:13]Write to MH i2c: D1 01 00 77 15 01 5E [23:59:13]Write i2c OK [23:59:13]MH_I2C_Read... [23:59:13]Read from MH i2c: D1 [23:59:13]MH_I2C_Read... [23:59:13]Read from MH i2c: D1 01 00 [23:59:13]MH_I2C_Read... [23:59:13]Read from MH i2c: D1 01 00 77 15 00 5D [23:59:13]Write to MH i2c: 01 00 00 78 15 8D [23:59:13]Write i2c OK [23:59:13]MH_I2C_Read... [23:59:14]OFD Sender: No OFD packet to send [23:59:14]*** Cut start [23:59:14]*** Partial cut [23:59:14]*** CUTSNS_PIN = 1 [23:59:14]*** CUTSNS_PIN = 0 [23:59:14]*** Brake cut motor [23:59:15]Read from MH i2c: 01 [23:59:15]MH_I2C_Read... [23:59:15]*** Stop cut motor [23:59:15]*** Cut end [23:59:15]Read from MH i2c: 01 07 00 [23:59:15]MH_I2C_Read... [23:59:15]Read from MH i2c: 01 07 00 78 15 00 00 00 00 00 FF 0F A2 [23:59:15]process_action close_receipt done [23:59:15]requested_data is exist [23:59:15]produce_requested_data [23:59:15]requested_item fm.sn is exist - process it [23:59:15]wFMCommunicate request_size=4 [23:59:15]MH_SAM_APDU [23:59:15]CAPDU: 80 11 00 00 [23:59:15]Write to MH i2c: E2 08 00 79 15 80 11 00 00 00 00 00 00 08 [23:59:15]Write i2c OK [23:59:15]MH_I2C_Read... [23:59:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:59:15]Read from MH i2c: E2 [23:59:15]MH_I2C_Read... [23:59:15]Read from MH i2c: E2 17 00 [23:59:15]MH_I2C_Read... [23:59:15]Read from MH i2c: E2 17 00 79 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 57 [23:59:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:59:15]wFMCommunicate OK [23:59:15]requested_item fd.num is exist - process it [23:59:15]SAM_PROTO_GetFieldsCounters [23:59:15]wFMCommunicate request_size=4 [23:59:15]MH_SAM_APDU [23:59:15]CAPDU: 80 13 00 00 [23:59:15]Write to MH i2c: E2 08 00 7A 15 80 13 00 00 00 00 00 00 0B [23:59:15]Write i2c OK [23:59:15]MH_I2C_Read... [23:59:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:59:15]Read from MH i2c: E2 [23:59:15]MH_I2C_Read... [23:59:15]Read from MH i2c: E2 62 00 [23:59:15]MH_I2C_Read... [23:59:15]Read from MH i2c: E2 62 00 7A 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DB 72 00 00 0E 04 04 00 74 00 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 B8 [23:59:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DB 72 00 00 0E 04 04 00 74 00 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 [23:59:15]wFMCommunicate OK [23:59:15]SAM_PROTO_GetFieldsCounters done [23:59:15]requested_item shift.num is exist - process it [23:59:15]requested_item shift.opened is exist - process it [23:59:15]req_shift_opened [23:59:15]FM_GetShiftState [23:59:15]SAM_PROTO_GetShiftState [23:59:15]wFMCommunicate request_size=4 [23:59:15]MH_SAM_APDU [23:59:15]CAPDU: 80 13 01 00 [23:59:15]Write to MH i2c: E2 08 00 7B 15 80 13 01 00 00 00 00 00 0D [23:59:15]Write i2c OK [23:59:15]MH_I2C_Read... [23:59:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:59:15]Read from MH i2c: E2 [23:59:15]MH_I2C_Read... [23:59:15]Read from MH i2c: E2 0E 00 [23:59:15]MH_I2C_Read... [23:59:15]Read from MH i2c: E2 0E 00 7B 15 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 B9 [23:59:15]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [23:59:15]wFMCommunicate OK [23:59:15]SAM_PROTO_GetShiftState done [23:59:15]FM_GetShiftState done [23:59:15]req_shift_opened done [23:59:15]requested_item shift.open_date is exist - process it [23:59:15]req_shift_open_date [23:59:15]req_shift_open_date done [23:59:15]produce_requested_data done [23:59:15]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29403,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [23:59:15]process_action_free close_receipt [23:59:15]json_value_free [23:59:15]json_value_free done [23:59:15]process_json_proto returns [23:59:15]Send response to host [23:59:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29403,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [23:59:15]free response buf [23:59:15]execute_script done [23:59:15]execute_script returns [23:59:15]free content buf [23:59:15]Sock 8.Close socket [23:59:15]Sock 8.Thread stoped [23:59:15]accept exits with 9 [23:59:15]New connection [23:59:15]New thread 3067112804 created [23:59:15]Thread 3066969444 joined [23:59:15]Waiting for new connection... [23:59:15] Sock 9.Parse request [23:59:15]Sock 9.Check first char [23:59:15]Sock 9.First char is OK [23:59:15]request: POST /json_proto HTTP/1.0 [23:59:15]Method: POST [23:59:15]URL: /json_proto [23:59:15]Method is POST - this is cgi request [23:59:15]url: /json_proto [23:59:15]query_string will be loaded in cgi processing [23:59:15]execute_cgi json_proto POST (null) [23:59:15]execute_cgi path=json_proto method=POST [23:59:15]POST find Content-Length [23:59:15]Host: 172.17.33.3:8080 [23:59:15]Content-Length: 846 [23:59:15]Content-Type: application/json [23:59:15] [23:59:15]POST finish read [23:59:15]Found Content-Length = 846 [23:59:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347795", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 75.990, "sum" : 2500.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 2500.07 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:59:15]execute_script... [23: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)347795", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 75.990, "sum" : 2500.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 2500.07 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:59:15]POST & json_proto [23:59:15]process_json_proto [23:59:15]json parsed OK: [23:59:15]protocol is kg_v1.0 [23:59:15]action value=close_receipt [23:59:15]process_action close_receipt [23:59:15]cmd_close_receipt [23:59:15]MH_GetDate [23:59:15]Write to MH i2c: F0 00 00 7C 15 80 [23:59:15]Write i2c OK [23:59:15]MH_I2C_Read... [23:59:15]Read from MH i2c: F0 [23:59:15]MH_I2C_Read... [23:59:15]Read from MH i2c: F0 09 00 [23:59:15]MH_I2C_Read... [23:59:15]Read from MH i2c: F0 09 00 7C 15 00 D5 6D 1C 66 23 5B 8F 65 BF [23:59:15]GetLastDocTimeStamp 1713139153 [23:59:15]current date 1713139157 [23:59:15]FM_GetShiftState [23:59:15]SAM_PROTO_GetShiftState [23:59:15]wFMCommunicate request_size=4 [23:59:15]MH_SAM_APDU [23:59:15]CAPDU: 80 13 01 00 [23:59:15]Write to MH i2c: E2 08 00 7D 15 80 13 01 00 00 00 00 00 0F [23:59:15]Write i2c OK [23:59:15]MH_I2C_Read... [23:59:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:59:15]Read from MH i2c: E2 [23:59:15]MH_I2C_Read... [23:59:15]Read from MH i2c: E2 0E 00 [23:59:15]MH_I2C_Read... [23:59:15]Read from MH i2c: E2 0E 00 7D 15 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 BB [23:59:15]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [23:59:15]wFMCommunicate OK [23:59:15]SAM_PROTO_GetShiftState done [23:59:15]FM_GetShiftState done [23:59:15]opened in 1713053951 [23:59:15]opened+sec_in_day 1713140351 [23:59:15]quantity*price = 250007 [23:59:15]sum+1 = 250008 [23:59:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2500.07 НСП 1% : 22.12 НДС 12% : 265.49 Наличными: 0.00 Безнал.: 2500.07 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 314 14.04.2024 23:59 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 29404 ФПД: 29451245538728 1/tax-web-control/client/api/v1/ticket?date=20240414T235917&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29404&fm=29451245538728&tin=02508201610067®Number=0000138879044617&sum=250007 [23:59:17]StoreToDocumentArchive [23:59:17]shift 116 fd 29404 [23:59:17]save to /storage/0116/doc_00029404 [23:59:17]save last doc name /storage/0116/doc_00029404 to /storage/kkm_last_doc_name [23:59:17]save OK [23:59:17]Clear old archive folders... [23:59:17]ProcessDocumentItem done err = 0, tmpTLVsize=250 [23:59:17]tlvbuf is B6ECFB00 [23:59:17]SAM_PROTO_ClearQueue [23:59:17]wFMCommunicate request_size=4 [23:59:17]MH_SAM_APDU [23:59:17]CAPDU: 80 09 00 00 [23:59:17]Write to MH i2c: E2 08 00 8A 15 80 09 00 00 00 00 00 00 11 [23:59:17]Write i2c OK [23:59:17]MH_I2C_Read... [23:59:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:59:17]Read from MH i2c: E2 [23:59:17]MH_I2C_Read... [23:59:17]Read from MH i2c: E2 03 00 [23:59:17]MH_I2C_Read... [23:59:17]Read from MH i2c: E2 03 00 8A 15 00 90 00 13 [23:59:17]RAPDU: 90 00 [23:59:17]wFMCommunicate OK [23:59:17]SAM_PROTO_ClearQueue done [23:59:17]KKMCreateOFDPacket [23:59:17]OFDProtocolAddRootSTLVToBuf [23:59:17]FM_MakeSignedData [23:59:17]FM_MakeSignedData [23:59:17]SAM_PROTO_SignData [23:59:17]wFMCommunicate request_size=4 [23:59:17]MH_SAM_APDU [23:59:17]CAPDU: 80 0D 01 02 [23:59:17]Write to MH i2c: E2 08 00 8B 15 80 0D 01 02 00 00 00 00 19 [23:59:17]Write i2c OK [23:59:17]MH_I2C_Read... [23:59:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:59:17]Read from MH i2c: E2 [23:59:17]MH_I2C_Read... [23:59:17]Read from MH i2c: E2 03 00 [23:59:17]MH_I2C_Read... [23:59:17]Read from MH i2c: E2 03 00 8B 15 00 90 00 14 [23:59:17]RAPDU: 90 00 [23:59:17]wFMCommunicate OK [23:59:17]wFMCommunicate request_size=255 [23:59:17]MH_SAM_APDU [23:59: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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 D6 28 01 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 97 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 97 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 97 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 D5 6D 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DC 72 00 00 35 04 06 00 1A C9 [23:59:17]Write to MH i2c: E2 02 01 8C 15 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 D6 28 01 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 97 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 97 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 97 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 D5 6D 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DC 72 00 00 35 04 06 00 1A C9 00 00 7F [23:59:17]Write i2c OK [23:59:17]MH_I2C_Read... [23:59:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:59:17]Read from MH i2c: E2 [23:59:17]MH_I2C_Read... [23:59:17]Read from MH i2c: E2 03 00 [23:59:17]MH_I2C_Read... [23:59:17]Read from MH i2c: E2 03 00 8C 15 00 90 00 15 [23:59:17]RAPDU: 90 00 [23:59:17]wFMCommunicate OK [23:59:17]wFMCommunicate request_size=9 [23:59:17]MH_SAM_APDU [23:59:17]CAPDU: 80 0D 02 02 04 27 07 4D A8 [23:59:17]Write to MH i2c: E2 0C 00 8D 15 80 0D 02 02 04 00 27 07 4D A8 00 00 47 [23:59:17]Write i2c OK [23:59:17]MH_I2C_Read... [23:59:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:59:17]Read from MH i2c: E2 [23:59:17]MH_I2C_Read... [23:59:17]Read from MH i2c: E2 03 00 [23:59:17]MH_I2C_Read... [23:59:17]Read from MH i2c: E2 03 00 8D 15 00 90 00 16 [23:59:17]RAPDU: 90 00 [23:59:17]wFMCommunicate OK [23:59:17]wFMCommunicate request_size=4 [23:59:17]MH_SAM_APDU [23:59:17]CAPDU: 80 0D 03 02 [23:59:17]Write to MH i2c: E2 08 00 8E 15 80 0D 03 02 00 00 00 00 1E [23:59:17]Write i2c OK [23:59:17]MH_I2C_Read... [23:59:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:59:17]Read from MH i2c: E2 [23:59:17]MH_I2C_Read... [23:59:17]Read from MH i2c: E2 0B 00 [23:59:17]MH_I2C_Read... [23:59:17]Read from MH i2c: E2 0B 00 8E 15 00 C2 63 56 BF BD C9 FA 63 90 00 3C [23:59:17]RAPDU: C2 63 56 BF BD C9 FA 63 90 00 [23:59:17]wFMCommunicate OK [23:59:17]SAM_PROTO_SignData done [23:59:17]FM_MakeSignedData done [23:59:17]CreateOFDProtocolMessage [23:59:17]wFMCommunicate request_size=4 [23:59:17]MH_SAM_APDU [23:59:17]CAPDU: 80 11 00 00 [23:59:17]Write to MH i2c: E2 08 00 8F 15 80 11 00 00 00 00 00 00 1E [23:59:17]Write i2c OK [23:59:17]MH_I2C_Read... [23:59:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:59:17]Read from MH i2c: E2 [23:59:17]MH_I2C_Read... [23:59:17]Read from MH i2c: E2 17 00 [23:59:17]MH_I2C_Read... [23:59:17]Read from MH i2c: E2 17 00 8F 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 6D [23:59:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:59:17]wFMCommunicate OK [23:59:17]CreateOFDProtocolMessage done [23:59:17]OFDSenderStorePacket 29404 [23:59:17]StoreOFDPacket docnum=29404 [23:59:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 89 EB 06 01 B8 1B 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 D6 28 01 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 97 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 97 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 97 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 D5 6D 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DC 72 00 00 35 04 06 00 1A C9 27 07 4D A8 C2 63 56 BF BD C9 FA 63 [23:59:17]CheckFolder [23:59:17]dirname=/storage/ofd_packets [23:59:17]CheckFolder done [23:59:17]ProducePacketName [23:59:17]name=ofd_packets/00029404 [23:59:17]NVStorageSaveData ofd_packets/00029404 [23:59:17]File name is /storage/ofd_packets/00029404 [23:59:17]Write 300 bytes [23:59:17]NVStorageSaveData done [23:59:17]OFDSenderStorePacket done [23:59:17]KKMCreateOFDPacket done [23:59:17]NVStorageSaveData kkm_last_timestamp [23:59:17]File name is /storage/kkm_last_timestamp [23:59:17]Write 4 bytes [23:59:17]NVStorageSaveData done [23:59:17]ExternCall_PrintAddStr [23:59:17]wPrintStart [23:59:17]Write to MH i2c: 01 00 00 90 15 A5 [23:59:17]Write i2c OK [23:59:17]MH_I2C_Read... [23:59:17]Read from MH i2c: 01 [23:59:17]MH_I2C_Read... [23:59:17]Read from MH i2c: 01 07 00 [23:59:17]MH_I2C_Read... [23:59:17]Read from MH i2c: 01 07 00 90 15 00 00 00 00 00 FF 0F BA [23:59:17]RasterBufferAndPrint [23:59:17]line Счет N : (1)347795 [23:59:17]line ИНН: 02508201610067 [23:59:17]line Контрольно-Кассовый Чек [23:59:17]line ПРОДАЖА [23:59:17]line ТРК (МРК, ГНК) : 71 [23:59:17]line Товар: 2711129700 [23:59:17]line ГАЗ-К-5 [23:59:17]line 75.990 * 32.90 [23:59:17]line = 2500.07 [23:59:17]line НДС 12% НСП 1% [23:59:17]line > о реализуемом товаре [23:59:17]line ИТОГО: 2500.07 [23:59:17]line НСП 1% : 22.12 [23:59:17]line НДС 12% : 265.49 [23:59:17]line Наличными: 0.00 [23:59:17]line Безнал.: 2500.07 [23:59:17]line Место: АЗС № 108 "Партнер Нефть" [23:59:17]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [23:59:17]line СНО: Общий режим [23:59:17]line Чек 314 14.04.2024 23:59 [23:59:17]line Смена: 116 ФФД: 1.0 [23:59:17]line ЗНМ: 0300000027 [23:59:17]line РНМ: 0000138879044617 [23:59:17]line Версия ККМ: 001 [23:59:18]line Платежная система: АКБ Кыргызстан [23:59:18]line ФМ: 0000000000963154 [23:59:18]line ФД: 29404 [23:59:18]line ФПД: 29451245538728 [23:59:18]line 1/tax-web-control/client/api/v1/ticket?date=20240414T235917&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29404&fm=29451245538728&tin=02508201610067®Number=0000138879044617&sum=250007 [23:59:18]OFD Sender: Processing packet 29404 [packets to send 8, broken 7] [23:59:18]ProducePacketName [23:59:18]name=ofd_packets/00029404 [23:59:18]OFD Sender: To server: pG, [23:59:18]CommunicateWithHost lk.salyk.kg:30040 [23:59:18]ConnectInit lk.salyk.kg [23:59:18]written 0, free lines is 4095 [23:59:18]Connected sock=10 [23:59:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 89 EB 06 01 B8 1B 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 D6 28 01 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 97 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 97 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 97 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 D5 6D 1C 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DC 72 00 00 35 04 06 00 1A C9 27 07 4D A8 C2 63 56 BF BD C9 FA 63 [23:59:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 70 DA 47 00 31 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 39 36 33 31 35 34 10 04 04 00 DC 72 00 00 F4 03 04 00 78 18 1C 66 B6 04 01 00 00 0E EA 8A E0 ED 37 5A 62 [23:59:18]CommunicateWithHost err = 0 [23:59:18]CheckOFDResponse [23:59:18]1017 (14) - 77093643461234 [23:59:18]1041 (16) - 0000000000963154 [23:59:18]1040 (4) - 29404 [23:59:18]1012 (4) - 14.04.2024 17:55 [23:59:18]1206 (1) - 0 [23:59:18]OFD Sender: Remove packet 29404 [23:59:18]ProducePacketName [23:59:18]name=ofd_packets/00029404 [23:59:18]NVStorageDeleteData [23:59:18]Write to MH i2c: 01 00 00 B9 15 CE [23:59:18]Write i2c OK [23:59:18]MH_I2C_Read... [23:59:18]Read from MH i2c: 01 [23:59:18]MH_I2C_Read... [23:59:18]Read from MH i2c: 01 07 00 [23:59:18]MH_I2C_Read... [23:59:18]Read from MH i2c: 01 07 00 B9 15 00 00 00 00 00 E2 0C C3 [23:59:18]RasterBufferAndPrint [23:59:18]line [23:59:18]line [23:59:18]line [23:59:18]line [23:59:18]line [23:59:18]written 0, free lines is 3310 [23:59:18]MH_Cut [23:59:18]Write to MH i2c: D1 01 00 C0 15 01 A7 [23:59:18]Write i2c OK [23:59:18]MH_I2C_Read... [23:59:18]Read from MH i2c: D1 [23:59:18]MH_I2C_Read... [23:59:18]Read from MH i2c: D1 01 00 [23:59:18]MH_I2C_Read... [23:59:18]Read from MH i2c: D1 01 00 C0 15 00 A6 [23:59:18]Write to MH i2c: 01 00 00 C1 15 D6 [23:59:18]Write i2c OK [23:59:18]MH_I2C_Read... [23:59:19]OFD Sender: No OFD packet to send [23:59:19]*** Cut start [23:59:19]*** Partial cut [23:59:19]*** CUTSNS_PIN = 1 [23:59:19]*** CUTSNS_PIN = 0 [23:59:19]*** Brake cut motor [23:59:20]Read from MH i2c: 01 [23:59:20]MH_I2C_Read... [23:59:20]*** Stop cut motor [23:59:20]*** Cut end [23:59:20]Read from MH i2c: 01 07 00 [23:59:20]MH_I2C_Read... [23:59:20]Read from MH i2c: 01 07 00 C1 15 00 00 00 00 00 FF 0F EB [23:59:20]process_action close_receipt done [23:59:20]requested_data is exist [23:59:20]produce_requested_data [23:59:20]requested_item fm.sn is exist - process it [23:59:20]wFMCommunicate request_size=4 [23:59:20]MH_SAM_APDU [23:59:20]CAPDU: 80 11 00 00 [23:59:20]Write to MH i2c: E2 08 00 C2 15 80 11 00 00 00 00 00 00 51 [23:59:20]Write i2c OK [23:59:20]MH_I2C_Read... [23:59:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:59:20]Read from MH i2c: E2 [23:59:20]MH_I2C_Read... [23:59:20]Read from MH i2c: E2 17 00 [23:59:20]MH_I2C_Read... [23:59:20]Read from MH i2c: E2 17 00 C2 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A0 [23:59:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:59:20]wFMCommunicate OK [23:59:20]requested_item fd.num is exist - process it [23:59:20]SAM_PROTO_GetFieldsCounters [23:59:20]wFMCommunicate request_size=4 [23:59:20]MH_SAM_APDU [23:59:20]CAPDU: 80 13 00 00 [23:59:20]Write to MH i2c: E2 08 00 C3 15 80 13 00 00 00 00 00 00 54 [23:59:20]Write i2c OK [23:59:20]MH_I2C_Read... [23:59:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:59:20]Read from MH i2c: E2 [23:59:20]MH_I2C_Read... [23:59:20]Read from MH i2c: E2 62 00 [23:59:20]MH_I2C_Read... [23:59:20]Read from MH i2c: E2 62 00 C3 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DC 72 00 00 0E 04 04 00 74 00 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 05 [23:59:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DC 72 00 00 0E 04 04 00 74 00 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 [23:59:20]wFMCommunicate OK [23:59:20]SAM_PROTO_GetFieldsCounters done [23:59:20]requested_item shift.num is exist - process it [23:59:20]requested_item shift.opened is exist - process it [23:59:20]req_shift_opened [23:59:20]FM_GetShiftState [23:59:20]SAM_PROTO_GetShiftState [23:59:20]wFMCommunicate request_size=4 [23:59:20]MH_SAM_APDU [23:59:20]CAPDU: 80 13 01 00 [23:59:20]Write to MH i2c: E2 08 00 C4 15 80 13 01 00 00 00 00 00 56 [23:59:20]Write i2c OK [23:59:20]MH_I2C_Read... [23:59:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:59:20]Read from MH i2c: E2 [23:59:20]MH_I2C_Read... [23:59:20]Read from MH i2c: E2 0E 00 [23:59:20]MH_I2C_Read... [23:59:20]Read from MH i2c: E2 0E 00 C4 15 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 02 [23:59:20]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [23:59:20]wFMCommunicate OK [23:59:20]SAM_PROTO_GetShiftState done [23:59:20]FM_GetShiftState done [23:59:20]req_shift_opened done [23:59:20]requested_item shift.open_date is exist - process it [23:59:20]req_shift_open_date [23:59:20]req_shift_open_date done [23:59:20]produce_requested_data done [23:59:20]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29404,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [23:59:20]process_action_free close_receipt [23:59:20]json_value_free [23:59:20]json_value_free done [23:59:20]process_json_proto returns [23:59:20]Send response to host [23:59:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29404,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [23:59:20]free response buf [23:59:20]execute_script done [23:59:20]execute_script returns [23:59:20]free content buf [23:59:20]Sock 9.Close socket [23:59:20]Sock 9.Thread stoped [23:59:24]OFD Sender: No OFD packet to send [23:59:29]OFD Sender: No OFD packet to send [23:59:34]OFD Sender: No OFD packet to send [23:59:39]OFD Sender: No OFD packet to send [23:59:44]OFD Sender: No OFD packet to send [23:59:49]OFD Sender: No OFD packet to send [23:59:54]OFD Sender: No OFD packet to send [23:59:59]OFD Sender: No OFD packet to send [00:00:04]OFD Sender: No OFD packet to send [00:00:09]OFD Sender: No OFD packet to send [00:00:14]OFD Sender: No OFD packet to send [00:00:19]OFD Sender: No OFD packet to send [00:00:24]OFD Sender: No OFD packet to send [00:00:29]OFD Sender: No OFD packet to send [00:00:34]OFD Sender: No OFD packet to send [00:00:39]OFD Sender: No OFD packet to send [00:00:44]OFD Sender: No OFD packet to send [00:00:49]OFD Sender: No OFD packet to send [00:00:54]OFD Sender: No OFD packet to send [00:00:59]OFD Sender: No OFD packet to send [00:01:04]OFD Sender: No OFD packet to send [00:01:09]OFD Sender: No OFD packet to send [00:01:14]OFD Sender: No OFD packet to send [00:01:19]OFD Sender: No OFD packet to send [00:01:24]OFD Sender: No OFD packet to send [00:01:29]OFD Sender: No OFD packet to send [00:01:34]OFD Sender: No OFD packet to send [00:01:39]OFD Sender: No OFD packet to send [00:01:44]OFD Sender: No OFD packet to send [00:01:49]OFD Sender: No OFD packet to send [00:01:54]OFD Sender: No OFD packet to send [00:01:59]OFD Sender: No OFD packet to send [00:02:04]OFD Sender: No OFD packet to send [00:02:09]OFD Sender: No OFD packet to send [00:02:14]OFD Sender: No OFD packet to send [00:02:19]OFD Sender: No OFD packet to send [00:02:24]OFD Sender: No OFD packet to send [00:02:29]OFD Sender: No OFD packet to send [00:02:34]OFD Sender: No OFD packet to send [00:02:39]OFD Sender: No OFD packet to send [00:02:44]OFD Sender: No OFD packet to send [00:02:49]OFD Sender: No OFD packet to send [00:02:54]OFD Sender: No OFD packet to send [00:02:59]OFD Sender: No OFD packet to send [00:03:04]OFD Sender: No OFD packet to send [00:03:09]OFD Sender: No OFD packet to send [00:03:14]OFD Sender: No OFD packet to send [00:03:19]OFD Sender: No OFD packet to send [00:03:24]OFD Sender: No OFD packet to send [00:03:29]OFD Sender: No OFD packet to send [00:03:34]OFD Sender: No OFD packet to send [00:03:39]OFD Sender: No OFD packet to send [00:03:44]OFD Sender: No OFD packet to send [00:03:49]OFD Sender: No OFD packet to send [00:03:54]OFD Sender: No OFD packet to send [00:03:59]OFD Sender: No OFD packet to send [00:04:04]OFD Sender: No OFD packet to send [00:04:09]OFD Sender: No OFD packet to send [00:04:14]OFD Sender: No OFD packet to send [00:04:19]OFD Sender: No OFD packet to send [00:04:24]OFD Sender: No OFD packet to send [00:04:29]OFD Sender: No OFD packet to send [00:04:34]OFD Sender: No OFD packet to send [00:04:39]OFD Sender: No OFD packet to send [00:04:44]OFD Sender: No OFD packet to send [00:04:49]OFD Sender: No OFD packet to send [00:04:54]OFD Sender: No OFD packet to send [00:04:59]OFD Sender: No OFD packet to send [00:05:04]OFD Sender: No OFD packet to send [00:05:09]OFD Sender: No OFD packet to send [00:05:14]OFD Sender: No OFD packet to send [00:05:19]OFD Sender: No OFD packet to send [00:05:24]OFD Sender: No OFD packet to send [00:05:29]OFD Sender: No OFD packet to send [00:05:34]OFD Sender: No OFD packet to send [00:05:39]OFD Sender: No OFD packet to send [00:05:44]OFD Sender: No OFD packet to send [00:05:49]OFD Sender: No OFD packet to send [00:05:54]OFD Sender: No OFD packet to send [00:05:59]OFD Sender: No OFD packet to send [00:06:04]OFD Sender: No OFD packet to send [00:06:09]OFD Sender: No OFD packet to send [00:06:14]OFD Sender: No OFD packet to send [00:06:19]OFD Sender: No OFD packet to send [00:06:24]OFD Sender: No OFD packet to send [00:06:29]OFD Sender: No OFD packet to send [00:06:34]OFD Sender: No OFD packet to send [00:06:39]OFD Sender: No OFD packet to send [00:06:44]OFD Sender: No OFD packet to send [00:06:49]OFD Sender: No OFD packet to send [00:06:54]OFD Sender: No OFD packet to send [00:06:59]OFD Sender: No OFD packet to send [00:07:04]OFD Sender: No OFD packet to send [00:07:09]OFD Sender: No OFD packet to send [00:07:14]OFD Sender: No OFD packet to send [00:07:19]OFD Sender: No OFD packet to send [00:07:24]OFD Sender: No OFD packet to send [00:07:29]OFD Sender: No OFD packet to send [00:07:34]OFD Sender: No OFD packet to send [00:07:39]OFD Sender: No OFD packet to send [00:07:44]OFD Sender: No OFD packet to send [00:07:49]OFD Sender: No OFD packet to send [00:07:54]OFD Sender: No OFD packet to send [00:07:59]OFD Sender: No OFD packet to send [00:08:04]OFD Sender: No OFD packet to send [00:08:09]OFD Sender: No OFD packet to send [00:08:14]OFD Sender: No OFD packet to send [00:08:19]OFD Sender: No OFD packet to send [00:08:24]OFD Sender: No OFD packet to send [00:08:29]OFD Sender: No OFD packet to send [00:08:34]OFD Sender: No OFD packet to send [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:19]OFD Sender: No OFD packet to send [00:14:24]OFD Sender: No OFD packet to send [00:14:29]OFD Sender: No OFD packet to send [00:14:34]OFD Sender: No OFD packet to send [00:14:39]OFD Sender: No OFD packet to send [00:14:44]OFD Sender: No OFD packet to send [00:14:49]OFD Sender: No OFD packet to send [00:14:54]OFD Sender: No OFD packet to send [00:14:59]OFD Sender: No OFD packet to send [00:15:04]OFD Sender: No OFD packet to send [00:15:09]OFD Sender: No OFD packet to send [00:15:14]OFD Sender: No OFD packet to send [00:15:19]OFD Sender: No OFD packet to send [00:15:24]OFD Sender: No OFD packet to send [00:15:29]OFD Sender: No OFD packet to send [00:15:34]OFD Sender: No OFD packet to send [00:15:39]OFD Sender: No OFD packet to send [00:15:44]OFD Sender: No OFD packet to send [00:15:49]OFD Sender: No OFD packet to send [00:15:54]OFD Sender: No OFD packet to send [00:15:59]OFD Sender: No OFD packet to send [00:16:04]OFD Sender: No OFD packet to send [00:16:09]OFD Sender: No OFD packet to send [00:16:14]OFD Sender: No OFD packet to send [00:16:19]OFD Sender: No OFD packet to send [00:16:24]OFD Sender: No OFD packet to send [00:16:29]OFD Sender: No OFD packet to send [00:16:34]OFD Sender: No OFD packet to send [00:16:39]OFD Sender: No OFD packet to send [00:16:44]OFD Sender: No OFD packet to send [00:16:45]accept exits with 8 [00:16:45]New connection [00:16:45]New thread 3066969444 created [00:16:45]Thread 3067112804 joined [00:16:45]Waiting for new connection... [00:16:45] Sock 8.Parse request [00:16:45]Sock 8.Check first char [00:16:45]Sock 8.First char is OK [00:16:45]request: POST /json_proto HTTP/1.0 [00:16:45]Method: POST [00:16:45]URL: /json_proto [00:16:45]Method is POST - this is cgi request [00:16:45]url: /json_proto [00:16:45]query_string will be loaded in cgi processing [00:16:45]execute_cgi json_proto POST (null) [00:16:45]execute_cgi path=json_proto method=POST [00:16:45]POST find Content-Length [00:16:45]Host: 172.17.33.3:8080 [00:16:45]Content-Length: 215 [00:16:45]Content-Type: application/json [00:16:45] [00:16:45]POST finish read [00:16:45]Found Content-Length = 215 [00:16: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:16:45]execute_script... [00:16: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:16:45]POST & json_proto [00:16:45]process_json_proto [00:16:45]json parsed OK: [00:16:45]protocol is kg_v1.0 [00:16:45]action value=get_value [00:16:45]process_action get_value [00:16:45]cmd_get_value [00:16:45]process_action get_value done [00:16:45]requested_data is exist [00:16:45]produce_requested_data [00:16:45]requested_item kkm.sn is exist - process it [00:16:45]requested_item kkm.ver is exist - process it [00:16:45]requested_item fm.sn is exist - process it [00:16:45]wFMCommunicate request_size=4 [00:16:45]MH_SAM_APDU [00:16:45]CAPDU: 80 11 00 00 [00:16:45]Write to MH i2c: E2 08 00 C5 15 80 11 00 00 00 00 00 00 54 [00:16:45]Write i2c OK [00:16:45]MH_I2C_Read... [00:16:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:16:45]Read from MH i2c: E2 [00:16:45]MH_I2C_Read... [00:16:45]Read from MH i2c: E2 17 00 [00:16:45]MH_I2C_Read... [00:16:45]Read from MH i2c: E2 17 00 C5 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A3 [00:16:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [00:16:45]wFMCommunicate OK [00:16:45]requested_item fd.num is exist - process it [00:16:45]SAM_PROTO_GetFieldsCounters [00:16:45]wFMCommunicate request_size=4 [00:16:45]MH_SAM_APDU [00:16:45]CAPDU: 80 13 00 00 [00:16:45]Write to MH i2c: E2 08 00 C6 15 80 13 00 00 00 00 00 00 57 [00:16:45]Write i2c OK [00:16:45]MH_I2C_Read... [00:16:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:16:45]Read from MH i2c: E2 [00:16:45]MH_I2C_Read... [00:16:45]Read from MH i2c: E2 62 00 [00:16:45]MH_I2C_Read... [00:16:45]Read from MH i2c: E2 62 00 C6 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DC 72 00 00 0E 04 04 00 74 00 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 08 [00:16:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DC 72 00 00 0E 04 04 00 74 00 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 [00:16:45]wFMCommunicate OK [00:16:45]SAM_PROTO_GetFieldsCounters done [00:16:45]requested_item shift.num is exist - process it [00:16:45]requested_item shift.opened is exist - process it [00:16:45]req_shift_opened [00:16:45]FM_GetShiftState [00:16:45]SAM_PROTO_GetShiftState [00:16:45]wFMCommunicate request_size=4 [00:16:45]MH_SAM_APDU [00:16:45]CAPDU: 80 13 01 00 [00:16:45]Write to MH i2c: E2 08 00 C7 15 80 13 01 00 00 00 00 00 59 [00:16:45]Write i2c OK [00:16:45]MH_I2C_Read... [00:16:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:16:45]Read from MH i2c: E2 [00:16:45]MH_I2C_Read... [00:16:45]Read from MH i2c: E2 0E 00 [00:16:45]MH_I2C_Read... [00:16:45]Read from MH i2c: E2 0E 00 C7 15 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 05 [00:16:45]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [00:16:45]wFMCommunicate OK [00:16:45]SAM_PROTO_GetShiftState done [00:16:45]FM_GetShiftState done [00:16:45]req_shift_opened done [00:16:45]requested_item shift.open_date is exist - process it [00:16:45]req_shift_open_date [00:16:45]req_shift_open_date done [00:16:45]produce_requested_data done [00:16:45]produce_requested_data return {"kkm.sn":"0300000027","kkm.ver":"001","fm.sn":"0000000000963154","fd.num":29404,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [00:16:45]process_action_free get_value [00:16:45]json_value_free [00:16:45]json_value_free done [00:16:45]process_json_proto returns [00:16:45]Send response to host [00:16:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000027","kkm.ver":"001","fm.sn":"0000000000963154","fd.num":29404,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [00:16:45]free response buf [00:16:45]execute_script done [00:16:45]execute_script returns [00:16:45]free content buf [00:16:45]Sock 8.Close socket [00:16:45]Sock 8.Thread stoped [00:16:45]accept exits with 9 [00:16:45]New connection [00:16:45]New thread 3067112804 created [00:16:45]Thread 3066969444 joined [00:16:45]Waiting for new connection... [00:16:45] Sock 9.Parse request [00:16:45]Sock 9.Check first char [00:16:45]Sock 9.First char is OK [00:16:45]request: POST /json_proto HTTP/1.0 [00:16:45]Method: POST [00:16:45]URL: /json_proto [00:16:45]Method is POST - this is cgi request [00:16:45]url: /json_proto [00:16:45]query_string will be loaded in cgi processing [00:16:45]execute_cgi json_proto POST (null) [00:16:45]execute_cgi path=json_proto method=POST [00:16:45]POST find Content-Length [00:16:45]Host: 172.17.33.3:8080 [00:16:45]Content-Length: 331 [00:16:45]Content-Type: application/json [00:16:45] [00:16:45]POST finish read [00:16:45]Found Content-Length = 331 [00:16: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:16:45]execute_script... [00:16: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:16:45]POST & json_proto [00:16:45]process_json_proto [00:16:45]json parsed OK: [00:16:45]protocol is kg_v1.0 [00:16:45]action value=get_value [00:16:45]process_action get_value [00:16:45]cmd_get_value [00:16:45]process_action get_value done [00:16:45]requested_data is exist [00:16:45]produce_requested_data [00:16:45]requested_item fm.sale.total is exist - process it [00:16:45]SAM_PROTO_GetFMData [00:16:45]wFMCommunicate request_size=4 [00:16:45]MH_SAM_APDU [00:16:45]CAPDU: 80 13 03 00 [00:16:45]Write to MH i2c: E2 08 00 C8 15 80 13 03 00 00 00 00 00 5C [00:16:45]Write i2c OK [00:16:45]MH_I2C_Read... [00:16:46]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:16:46]Read from MH i2c: E2 [00:16:46]MH_I2C_Read... [00:16:46]Read from MH i2c: E2 FD 00 [00:16:46]MH_I2C_Read... [00:16:46]Read from MH i2c: E2 FD 00 C8 15 00 C3 04 85 04 BF 04 6E 04 04 00 F4 71 00 00 69 04 A1 00 6F 04 04 00 8D 6E 00 00 B1 04 04 00 4C 14 1E B4 70 04 04 00 24 17 B6 72 72 04 04 00 28 FD 67 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 B5 9B 21 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 30 19 98 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 67 03 00 00 B1 04 04 00 D4 9F F7 0C 70 04 04 00 D4 9F F7 0C 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B0 90 60 01 EF 03 09 00 F6 90 00 8D [00:16:46]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 F4 71 00 00 69 04 A1 00 6F 04 04 00 8D 6E 00 00 B1 04 04 00 4C 14 1E B4 70 04 04 00 24 17 B6 72 72 04 04 00 28 FD 67 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 B5 9B 21 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 30 19 98 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 67 03 00 00 B1 04 04 00 D4 9F F7 0C 70 04 04 00 D4 9F F7 0C 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B0 90 60 01 EF 03 09 00 F6 90 00 [00:16:46]wFMCommunicate OK [00:16:46]wFMCommunicate request_size=4 [00:16:46]MH_SAM_APDU [00:16:46]CAPDU: 80 17 00 00 [00:16:46]Write to MH i2c: E2 08 00 C9 15 80 17 00 00 00 00 00 00 5E [00:16:46]Write i2c OK [00:16:46]MH_I2C_Read... [00:16:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:16:46]Read from MH i2c: E2 [00:16:46]MH_I2C_Read... [00:16:46]Read from MH i2c: E2 FD 00 [00:16:46]MH_I2C_Read... [00:16:46]Read from MH i2c: E2 FD 00 C9 15 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 F4 60 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 90 00 8F [00:16:46]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 F4 60 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 90 00 [00:16:46]wFMCommunicate OK [00:16:46]wFMCommunicate request_size=4 [00:16:46]MH_SAM_APDU [00:16:46]CAPDU: 80 17 00 00 [00:16:46]Write to MH i2c: E2 08 00 CA 15 80 17 00 00 00 00 00 00 5F [00:16:46]Write i2c OK [00:16:46]MH_I2C_Read... [00:16:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:16:46]Read from MH i2c: E2 [00:16:46]MH_I2C_Read... [00:16:46]Read from MH i2c: E2 FD 00 [00:16:46]MH_I2C_Read... [00:16:46]Read from MH i2c: E2 FD 00 CA 15 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 90 00 7D [00:16:46]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 90 00 [00:16:46]wFMCommunicate OK [00:16:46]wFMCommunicate request_size=4 [00:16:46]MH_SAM_APDU [00:16:46]CAPDU: 80 17 00 00 [00:16:46]Write to MH i2c: E2 08 00 CB 15 80 17 00 00 00 00 00 00 60 [00:16:46]Write i2c OK [00:16:46]MH_I2C_Read... [00:16:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:16:47]Read from MH i2c: E2 [00:16:47]MH_I2C_Read... [00:16:47]Read from MH i2c: E2 FD 00 [00:16:47]MH_I2C_Read... [00:16:47]Read from MH i2c: E2 FD 00 CB 15 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 D2 [00:16:47]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [00:16:47]wFMCommunicate OK [00:16:47]wFMCommunicate request_size=4 [00:16:47]MH_SAM_APDU [00:16:47]CAPDU: 80 17 00 00 [00:16:47]Write to MH i2c: E2 08 00 CC 15 80 17 00 00 00 00 00 00 61 [00:16:47]Write i2c OK [00:16:47]MH_I2C_Read... [00:16:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [00:16:47]Read from MH i2c: E2 [00:16:47]MH_I2C_Read... [00:16:47]Read from MH i2c: E2 E0 00 [00:16:47]MH_I2C_Read... [00:16:47]Read from MH i2c: E2 E0 00 CC 15 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 4B [00:16:47]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:16:47]wFMCommunicate OK [00:16:47]SAM_PROTO_GetFMData done [00:16:47]requested_item fm.sale_refund.total is exist - process it [00:16:47]requested_item fm.buy.total is exist - process it [00:16:47]requested_item shift.sale.total is exist - process it [00:16:47]SAM_PROTO_GetShiftData [00:16:47]wFMCommunicate request_size=4 [00:16:47]MH_SAM_APDU [00:16:47]CAPDU: 80 13 02 00 [00:16:47]Write to MH i2c: E2 08 00 CD 15 80 13 02 00 00 00 00 00 60 [00:16:47]Write i2c OK [00:16:47]MH_I2C_Read... [00:16:47]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:16:47]Read from MH i2c: E2 [00:16:47]MH_I2C_Read... [00:16:47]Read from MH i2c: E2 FD 00 [00:16:47]MH_I2C_Read... [00:16:47]Read from MH i2c: E2 FD 00 CD 15 00 BC 04 AA 04 B8 04 6E 04 04 00 3A 01 00 00 69 04 9E 00 6F 04 04 00 33 01 00 00 B1 04 04 00 C5 44 13 02 70 04 04 00 14 90 64 01 72 04 03 00 B1 B4 AE 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 6D 38 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 BA B3 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 98 00 6F 04 04 00 07 00 00 00 B1 04 03 00 BC 88 56 70 04 03 00 BC 88 56 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 99 30 09 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 39 [00:16:47]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 3A 01 00 00 69 04 9E 00 6F 04 04 00 33 01 00 00 B1 04 04 00 C5 44 13 02 70 04 04 00 14 90 64 01 72 04 03 00 B1 B4 AE 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 6D 38 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 BA B3 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 98 00 6F 04 04 00 07 00 00 00 B1 04 03 00 BC 88 56 70 04 03 00 BC 88 56 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 99 30 09 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:16:47]wFMCommunicate OK [00:16:47]wFMCommunicate request_size=4 [00:16:47]MH_SAM_APDU [00:16:47]CAPDU: 80 17 00 00 [00:16:47]Write to MH i2c: E2 08 00 CE 15 80 17 00 00 00 00 00 00 63 [00:16:47]Write i2c OK [00:16:47]MH_I2C_Read... [00:16:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:16:48]Read from MH i2c: E2 [00:16:48]MH_I2C_Read... [00:16:48]Read from MH i2c: E2 FD 00 [00:16:48]MH_I2C_Read... [00:16:48]Read from MH i2c: E2 FD 00 CE 15 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 0D C4 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 DE [00:16:48]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 0D C4 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:16:48]wFMCommunicate OK [00:16:48]wFMCommunicate request_size=4 [00:16:48]MH_SAM_APDU [00:16:48]CAPDU: 80 17 00 00 [00:16:48]Write to MH i2c: E2 08 00 CF 15 80 17 00 00 00 00 00 00 64 [00:16:48]Write i2c OK [00:16:48]MH_I2C_Read... [00:16:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:16:48]Read from MH i2c: E2 [00:16:48]MH_I2C_Read... [00:16:48]Read from MH i2c: E2 FD 00 [00:16:48]MH_I2C_Read... [00:16:48]Read from MH i2c: E2 FD 00 CF 15 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 8D [00:16:48]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:16:48]wFMCommunicate OK [00:16:48]wFMCommunicate request_size=4 [00:16:48]MH_SAM_APDU [00:16:48]CAPDU: 80 17 00 00 [00:16:48]Write to MH i2c: E2 08 00 D0 15 80 17 00 00 00 00 00 00 65 [00:16:48]Write i2c OK [00:16:48]MH_I2C_Read... [00:16:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:16:48]Read from MH i2c: E2 [00:16:48]MH_I2C_Read... [00:16:48]Read from MH i2c: E2 FD 00 [00:16:48]MH_I2C_Read... [00:16:48]Read from MH i2c: E2 FD 00 D0 15 00 03 00 00 EF 03 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 90 00 E6 [00:16:48]RAPDU: 03 00 00 EF 03 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 90 00 [00:16:48]wFMCommunicate OK [00:16:48]wFMCommunicate request_size=4 [00:16:48]MH_SAM_APDU [00:16:48]CAPDU: 80 17 00 00 [00:16:48]Write to MH i2c: E2 08 00 D1 15 80 17 00 00 00 00 00 00 66 [00:16:48]Write i2c OK [00:16:48]MH_I2C_Read... [00:16:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [00:16:48]Read from MH i2c: E2 [00:16:48]MH_I2C_Read... [00:16:48]Read from MH i2c: E2 D9 00 [00:16:48]MH_I2C_Read... [00:16:49]Read from MH i2c: E2 D9 00 D1 15 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 45 [00:16:49]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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:16:49]wFMCommunicate OK [00:16:49]SAM_PROTO_GetShiftData done [00:16:49]requested_item shift.sale.total_cash is exist - process it [00:16:49]requested_item shift.sale_refund.total is exist - process it [00:16:49]requested_item shift.sale_refund.total_cash is exist - process it [00:16:49]requested_item shift.buy.total is exist - process it [00:16:49]requested_item shift.buy.total_cash is exist - process it [00:16:49]produce_requested_data done [00:16:49]produce_requested_data return {"fm.sale.total":30218701.56,"fm.sale_refund.total":2175549.00,"fm.buy.total":0.00,"shift.sale.total":348172.21,"shift.sale.total_cash":233677.00,"shift.sale_refund.total":56711.00,"shift.sale_refund.total_cash":56711.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:16:49]process_action_free get_value [00:16:49]json_value_free [00:16:49]json_value_free done [00:16:49]process_json_proto returns [00:16:49]Send response to host [00:16:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":30218701.56,"fm.sale_refund.total":2175549.00,"fm.buy.total":0.00,"shift.sale.total":348172.21,"shift.sale.total_cash":233677.00,"shift.sale_refund.total":56711.00,"shift.sale_refund.total_cash":56711.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:16:49]free response buf [00:16:49]execute_script done [00:16:49]execute_script returns [00:16:49]free content buf [00:16:49]Sock 9.Close socket [00:16:49]Sock 9.Thread stoped [00:16:49]accept exits with 8 [00:16:49]New connection [00:16:49]New thread 3066969444 created [00:16:49]Thread 3067112804 joined [00:16:49]Waiting for new connection... [00:16:49] Sock 8.Parse request [00:16:49]Sock 8.Check first char [00:16:49]Sock 8.First char is OK [00:16:49]request: POST /json_proto HTTP/1.0 [00:16:49]Method: POST [00:16:49]URL: /json_proto [00:16:49]Method is POST - this is cgi request [00:16:49]url: /json_proto [00:16:49]query_string will be loaded in cgi processing [00:16:49]execute_cgi json_proto POST (null) [00:16:49]execute_cgi path=json_proto method=POST [00:16:49]POST find Content-Length [00:16:49]Host: 172.17.33.3:8080 [00:16:49]Content-Length: 331 [00:16:49]Content-Type: application/json [00:16:49] [00:16:49]POST finish read [00:16:49]Found Content-Length = 331 [00:16: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" ] } } [00:16:49]execute_script... [00:16: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" ] } } [00:16:49]POST & json_proto [00:16:49]process_json_proto [00:16:49]json parsed OK: [00:16:49]protocol is kg_v1.0 [00:16:49]action value=get_value [00:16:49]process_action get_value [00:16:49]cmd_get_value [00:16:49]process_action get_value done [00:16:49]requested_data is exist [00:16:49]produce_requested_data [00:16:49]requested_item fm.sale.total is exist - process it [00:16:49]SAM_PROTO_GetFMData [00:16:49]wFMCommunicate request_size=4 [00:16:49]MH_SAM_APDU [00:16:49]CAPDU: 80 13 03 00 [00:16:49]Write to MH i2c: E2 08 00 D2 15 80 13 03 00 00 00 00 00 66 [00:16:49]Write i2c OK [00:16:49]MH_I2C_Read... [00:16:49]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:16:49]Read from MH i2c: E2 [00:16:49]MH_I2C_Read... [00:16:49]Read from MH i2c: E2 FD 00 [00:16:49]MH_I2C_Read... [00:16:49]Read from MH i2c: E2 FD 00 D2 15 00 C3 04 85 04 BF 04 6E 04 04 00 F4 71 00 00 69 04 A1 00 6F 04 04 00 8D 6E 00 00 B1 04 04 00 4C 14 1E B4 70 04 04 00 24 17 B6 72 72 04 04 00 28 FD 67 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 B5 9B 21 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 30 19 98 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 67 03 00 00 B1 04 04 00 D4 9F F7 0C 70 04 04 00 D4 9F F7 0C 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B0 90 60 01 EF 03 09 00 F6 90 00 97 [00:16:49]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 F4 71 00 00 69 04 A1 00 6F 04 04 00 8D 6E 00 00 B1 04 04 00 4C 14 1E B4 70 04 04 00 24 17 B6 72 72 04 04 00 28 FD 67 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 B5 9B 21 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 30 19 98 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 67 03 00 00 B1 04 04 00 D4 9F F7 0C 70 04 04 00 D4 9F F7 0C 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B0 90 60 01 EF 03 09 00 F6 90 00 [00:16:49]wFMCommunicate OK [00:16:49]wFMCommunicate request_size=4 [00:16:49]MH_SAM_APDU [00:16:49]CAPDU: 80 17 00 00 [00:16:49]Write to MH i2c: E2 08 00 D3 15 80 17 00 00 00 00 00 00 68 [00:16:49]Write i2c OK [00:16:49]MH_I2C_Read... [00:16:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:16:49]Read from MH i2c: E2 [00:16:49]MH_I2C_Read... [00:16:49]Read from MH i2c: E2 FD 00 [00:16:49]MH_I2C_Read... [00:16:49]Read from MH i2c: E2 FD 00 D3 15 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 F4 60 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 90 00 99 [00:16:49]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 F4 60 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 90 00 [00:16:49]wFMCommunicate OK [00:16:49]wFMCommunicate request_size=4 [00:16:49]MH_SAM_APDU [00:16:49]CAPDU: 80 17 00 00 [00:16:49]Write to MH i2c: E2 08 00 D4 15 80 17 00 00 00 00 00 00 69 [00:16:49]Write i2c OK [00:16:49]MH_I2C_Read... [00:16:49]OFD Sender: No OFD packet to send [00:16:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:16:50]Read from MH i2c: E2 [00:16:50]MH_I2C_Read... [00:16:50]Read from MH i2c: E2 FD 00 [00:16:50]MH_I2C_Read... [00:16:50]Read from MH i2c: E2 FD 00 D4 15 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 90 00 87 [00:16:50]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 90 00 [00:16:50]wFMCommunicate OK [00:16:50]wFMCommunicate request_size=4 [00:16:50]MH_SAM_APDU [00:16:50]CAPDU: 80 17 00 00 [00:16:50]Write to MH i2c: E2 08 00 D5 15 80 17 00 00 00 00 00 00 6A [00:16:50]Write i2c OK [00:16:50]MH_I2C_Read... [00:16:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:16:50]Read from MH i2c: E2 [00:16:50]MH_I2C_Read... [00:16:50]Read from MH i2c: E2 FD 00 [00:16:50]MH_I2C_Read... [00:16:50]Read from MH i2c: E2 FD 00 D5 15 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 DC [00:16:50]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [00:16:50]wFMCommunicate OK [00:16:50]wFMCommunicate request_size=4 [00:16:50]MH_SAM_APDU [00:16:50]CAPDU: 80 17 00 00 [00:16:50]Write to MH i2c: E2 08 00 D6 15 80 17 00 00 00 00 00 00 6B [00:16:50]Write i2c OK [00:16:50]MH_I2C_Read... [00:16:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [00:16:50]Read from MH i2c: E2 [00:16:50]MH_I2C_Read... [00:16:50]Read from MH i2c: E2 E0 00 [00:16:50]MH_I2C_Read... [00:16:50]Read from MH i2c: E2 E0 00 D6 15 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 55 [00:16:50]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:16:51]wFMCommunicate OK [00:16:51]SAM_PROTO_GetFMData done [00:16:51]requested_item fm.sale_refund.total is exist - process it [00:16:51]requested_item fm.buy.total is exist - process it [00:16:51]requested_item shift.sale.total is exist - process it [00:16:51]SAM_PROTO_GetShiftData [00:16:51]wFMCommunicate request_size=4 [00:16:51]MH_SAM_APDU [00:16:51]CAPDU: 80 13 02 00 [00:16:51]Write to MH i2c: E2 08 00 D7 15 80 13 02 00 00 00 00 00 6A [00:16:51]Write i2c OK [00:16:51]MH_I2C_Read... [00:16:51]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:16:51]Read from MH i2c: E2 [00:16:51]MH_I2C_Read... [00:16:51]Read from MH i2c: E2 FD 00 [00:16:51]MH_I2C_Read... [00:16:51]Read from MH i2c: E2 FD 00 D7 15 00 BC 04 AA 04 B8 04 6E 04 04 00 3A 01 00 00 69 04 9E 00 6F 04 04 00 33 01 00 00 B1 04 04 00 C5 44 13 02 70 04 04 00 14 90 64 01 72 04 03 00 B1 B4 AE 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 6D 38 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 BA B3 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 98 00 6F 04 04 00 07 00 00 00 B1 04 03 00 BC 88 56 70 04 03 00 BC 88 56 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 99 30 09 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 43 [00:16:51]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 3A 01 00 00 69 04 9E 00 6F 04 04 00 33 01 00 00 B1 04 04 00 C5 44 13 02 70 04 04 00 14 90 64 01 72 04 03 00 B1 B4 AE 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 6D 38 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 BA B3 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 98 00 6F 04 04 00 07 00 00 00 B1 04 03 00 BC 88 56 70 04 03 00 BC 88 56 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 99 30 09 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:16:51]wFMCommunicate OK [00:16:51]wFMCommunicate request_size=4 [00:16:51]MH_SAM_APDU [00:16:51]CAPDU: 80 17 00 00 [00:16:51]Write to MH i2c: E2 08 00 D8 15 80 17 00 00 00 00 00 00 6D [00:16:51]Write i2c OK [00:16:51]MH_I2C_Read... [00:16:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:16:51]Read from MH i2c: E2 [00:16:51]MH_I2C_Read... [00:16:51]Read from MH i2c: E2 FD 00 [00:16:51]MH_I2C_Read... [00:16:51]Read from MH i2c: E2 FD 00 D8 15 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 0D C4 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E8 [00:16:51]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 0D C4 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:16:52]wFMCommunicate OK [00:16:52]wFMCommunicate request_size=4 [00:16:52]MH_SAM_APDU [00:16:52]CAPDU: 80 17 00 00 [00:16:52]Write to MH i2c: E2 08 00 D9 15 80 17 00 00 00 00 00 00 6E [00:16:52]Write i2c OK [00:16:52]MH_I2C_Read... [00:16:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:16:52]Read from MH i2c: E2 [00:16:52]MH_I2C_Read... [00:16:52]Read from MH i2c: E2 FD 00 [00:16:52]MH_I2C_Read... [00:16:52]Read from MH i2c: E2 FD 00 D9 15 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 97 [00:16:52]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:16:52]wFMCommunicate OK [00:16:52]wFMCommunicate request_size=4 [00:16:52]MH_SAM_APDU [00:16:52]CAPDU: 80 17 00 00 [00:16:52]Write to MH i2c: E2 08 00 DA 15 80 17 00 00 00 00 00 00 6F [00:16:52]Write i2c OK [00:16:52]MH_I2C_Read... [00:16:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:16:52]Read from MH i2c: E2 [00:16:52]MH_I2C_Read... [00:16:52]Read from MH i2c: E2 FD 00 [00:16:52]MH_I2C_Read... [00:16:52]Read from MH i2c: E2 FD 00 DA 15 00 03 00 00 EF 03 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 90 00 F0 [00:16:52]RAPDU: 03 00 00 EF 03 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 90 00 [00:16:52]wFMCommunicate OK [00:16:52]wFMCommunicate request_size=4 [00:16:52]MH_SAM_APDU [00:16:52]CAPDU: 80 17 00 00 [00:16:52]Write to MH i2c: E2 08 00 DB 15 80 17 00 00 00 00 00 00 70 [00:16:52]Write i2c OK [00:16:52]MH_I2C_Read... [00:16:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [00:16:53]Read from MH i2c: E2 [00:16:53]MH_I2C_Read... [00:16:53]Read from MH i2c: E2 D9 00 [00:16:53]MH_I2C_Read... [00:16:53]Read from MH i2c: E2 D9 00 DB 15 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 4F [00:16:53]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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:16:53]wFMCommunicate OK [00:16:53]SAM_PROTO_GetShiftData done [00:16:53]requested_item shift.sale.total_cash is exist - process it [00:16:53]requested_item shift.sale_refund.total is exist - process it [00:16:53]requested_item shift.sale_refund.total_cash is exist - process it [00:16:53]requested_item shift.buy.total is exist - process it [00:16:53]requested_item shift.buy.total_cash is exist - process it [00:16:53]produce_requested_data done [00:16:53]produce_requested_data return {"fm.sale.total":30218701.56,"fm.sale_refund.total":2175549.00,"fm.buy.total":0.00,"shift.sale.total":348172.21,"shift.sale.total_cash":233677.00,"shift.sale_refund.total":56711.00,"shift.sale_refund.total_cash":56711.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:16:53]process_action_free get_value [00:16:53]json_value_free [00:16:53]json_value_free done [00:16:53]process_json_proto returns [00:16:53]Send response to host [00:16:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":30218701.56,"fm.sale_refund.total":2175549.00,"fm.buy.total":0.00,"shift.sale.total":348172.21,"shift.sale.total_cash":233677.00,"shift.sale_refund.total":56711.00,"shift.sale_refund.total_cash":56711.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:16:53]free response buf [00:16:53]execute_script done [00:16:53]execute_script returns [00:16:53]free content buf [00:16:53]Sock 8.Close socket [00:16:53]Sock 8.Thread stoped [00:16:53]accept exits with 9 [00:16:53]New connection [00:16:53]New thread 3067112804 created [00:16:53]Thread 3066969444 joined [00:16:53]Waiting for new connection... [00:16:53] Sock 9.Parse request [00:16:53]Sock 9.Check first char [00:16:53]Sock 9.First char is OK [00:16:53]request: POST /json_proto HTTP/1.0 [00:16:53]Method: POST [00:16:53]URL: /json_proto [00:16:53]Method is POST - this is cgi request [00:16:53]url: /json_proto [00:16:53]query_string will be loaded in cgi processing [00:16:53]execute_cgi json_proto POST (null) [00:16:53]execute_cgi path=json_proto method=POST [00:16:53]POST find Content-Length [00:16:53]Host: 172.17.33.3:8080 [00:16:53]Content-Length: 264 [00:16:53]Content-Type: application/json [00:16:53] [00:16:53]POST finish read [00:16:53]Found Content-Length = 264 [00:16:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0410\u043B\u0438\u043A\u0431\u0430\u0435\u0432\u0430. \u0414. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:16:53]execute_script... [00:16:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0410\u043B\u0438\u043A\u0431\u0430\u0435\u0432\u0430. \u0414. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:16:53]POST & json_proto [00:16:53]process_json_proto [00:16:53]json parsed OK: [00:16:53]protocol is kg_v1.0 [00:16:53]action value=x_report [00:16:53]process_action x_report [00:16:53]cmd_x_report [00:16:53]MH_GetDate [00:16:53]Write to MH i2c: F0 00 00 DC 15 E0 [00:16:53]Write i2c OK [00:16:53]MH_I2C_Read... [00:16:53]Read from MH i2c: F0 [00:16:53]MH_I2C_Read... [00:16:53]Read from MH i2c: F0 09 00 [00:16:53]MH_I2C_Read... [00:16:53]Read from MH i2c: F0 09 00 DC 15 00 F7 71 1C 66 23 5B 8F 65 45 [00:16:53]GetLastDocTimeStamp 1713139157 [00:16:53]current date 1713140215 [00:16:53]FM_GetShiftState [00:16:53]SAM_PROTO_GetShiftState [00:16:53]wFMCommunicate request_size=4 [00:16:53]MH_SAM_APDU [00:16:53]CAPDU: 80 13 01 00 [00:16:53]Write to MH i2c: E2 08 00 DD 15 80 13 01 00 00 00 00 00 6F [00:16:53]Write i2c OK [00:16:53]MH_I2C_Read... [00:16:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:16:53]Read from MH i2c: E2 [00:16:53]MH_I2C_Read... [00:16:53]Read from MH i2c: E2 0E 00 [00:16:53]MH_I2C_Read... [00:16:53]Read from MH i2c: E2 0E 00 DD 15 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 1B [00:16:53]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [00:16:53]wFMCommunicate OK [00:16:53]SAM_PROTO_GetShiftState done [00:16:53]FM_GetShiftState done [00:16:53]KKMCreateXReportDocument [00:16:53]Load OK [00:16:53]Malloc new data [00:16:53]MH_GetDate [00:16:53]Write to MH i2c: F0 00 00 DE 15 E2 [00:16:53]Write i2c OK [00:16:53]MH_I2C_Read... [00:16:53]Read from MH i2c: F0 [00:16:53]MH_I2C_Read... [00:16:53]Read from MH i2c: F0 09 00 [00:16:53]MH_I2C_Read... [00:16:53]Read from MH i2c: F0 09 00 DE 15 00 F7 71 1C 66 23 5B 8F 65 47 [00:16:53]Malloc new data [00:16:53]Malloc new data [00:16:53]wFMCommunicate request_size=4 [00:16:53]MH_SAM_APDU [00:16:53]CAPDU: 80 11 00 00 [00:16:53]Write to MH i2c: E2 08 00 DF 15 80 11 00 00 00 00 00 00 6E [00:16:53]Write i2c OK [00:16:53]MH_I2C_Read... [00:16:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:16:53]Read from MH i2c: E2 [00:16:53]MH_I2C_Read... [00:16:53]Read from MH i2c: E2 17 00 [00:16:53]MH_I2C_Read... [00:16:53]Read from MH i2c: E2 17 00 DF 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 BD [00:16:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [00:16:53]wFMCommunicate OK [00:16:53]SAM_PROTO_GetFieldsCounters [00:16:53]wFMCommunicate request_size=4 [00:16:53]MH_SAM_APDU [00:16:53]CAPDU: 80 13 00 00 [00:16:53]Write to MH i2c: E2 08 00 E0 15 80 13 00 00 00 00 00 00 71 [00:16:53]Write i2c OK [00:16:53]MH_I2C_Read... [00:16:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:16:53]Read from MH i2c: E2 [00:16:53]MH_I2C_Read... [00:16:53]Read from MH i2c: E2 62 00 [00:16:53]MH_I2C_Read... [00:16:53]Read from MH i2c: E2 62 00 E0 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DC 72 00 00 0E 04 04 00 74 00 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 22 [00:16:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DC 72 00 00 0E 04 04 00 74 00 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 [00:16:53]wFMCommunicate OK [00:16:53]SAM_PROTO_GetFieldsCounters done [00:16:53]Malloc new data [00:16:53]Malloc new data [00:16:53]Malloc new data [00:16:53]KKMCreateXReportDocument OK [00:16:53]KKMSetXReportData OK [00:16:53]KKMPrepareXReportFMData [00:16:53]SAM_PROTO_GetShiftData [00:16:53]wFMCommunicate request_size=4 [00:16:53]MH_SAM_APDU [00:16:53]CAPDU: 80 13 02 00 [00:16:53]Write to MH i2c: E2 08 00 E1 15 80 13 02 00 00 00 00 00 74 [00:16:53]Write i2c OK [00:16:53]MH_I2C_Read... [00:16:54]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:16:54]Read from MH i2c: E2 [00:16:54]MH_I2C_Read... [00:16:54]Read from MH i2c: E2 FD 00 [00:16:54]MH_I2C_Read... [00:16:54]Read from MH i2c: E2 FD 00 E1 15 00 BC 04 AA 04 B8 04 6E 04 04 00 3A 01 00 00 69 04 9E 00 6F 04 04 00 33 01 00 00 B1 04 04 00 C5 44 13 02 70 04 04 00 14 90 64 01 72 04 03 00 B1 B4 AE 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 6D 38 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 BA B3 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 98 00 6F 04 04 00 07 00 00 00 B1 04 03 00 BC 88 56 70 04 03 00 BC 88 56 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 99 30 09 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 4D [00:16:54]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 3A 01 00 00 69 04 9E 00 6F 04 04 00 33 01 00 00 B1 04 04 00 C5 44 13 02 70 04 04 00 14 90 64 01 72 04 03 00 B1 B4 AE 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 6D 38 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 BA B3 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 98 00 6F 04 04 00 07 00 00 00 B1 04 03 00 BC 88 56 70 04 03 00 BC 88 56 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 99 30 09 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:16:54]wFMCommunicate OK [00:16:54]wFMCommunicate request_size=4 [00:16:54]MH_SAM_APDU [00:16:54]CAPDU: 80 17 00 00 [00:16:54]Write to MH i2c: E2 08 00 E2 15 80 17 00 00 00 00 00 00 77 [00:16:54]Write i2c OK [00:16:54]MH_I2C_Read... [00:16:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:16:54]Read from MH i2c: E2 [00:16:54]MH_I2C_Read... [00:16:54]Read from MH i2c: E2 FD 00 [00:16:54]MH_I2C_Read... [00:16:54]Read from MH i2c: E2 FD 00 E2 15 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 0D C4 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F2 [00:16:54]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 0D C4 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:16:54]wFMCommunicate OK [00:16:54]wFMCommunicate request_size=4 [00:16:54]MH_SAM_APDU [00:16:54]CAPDU: 80 17 00 00 [00:16:54]Write to MH i2c: E2 08 00 E3 15 80 17 00 00 00 00 00 00 78 [00:16:54]Write i2c OK [00:16:54]MH_I2C_Read... [00:16:55]OFD Sender: No OFD packet to send [00:16:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:16:55]Read from MH i2c: E2 [00:16:55]MH_I2C_Read... [00:16:55]Read from MH i2c: E2 FD 00 [00:16:55]MH_I2C_Read... [00:16:55]Read from MH i2c: E2 FD 00 E3 15 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A1 [00:16:55]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:16:55]wFMCommunicate OK [00:16:55]wFMCommunicate request_size=4 [00:16:55]MH_SAM_APDU [00:16:55]CAPDU: 80 17 00 00 [00:16:55]Write to MH i2c: E2 08 00 E4 15 80 17 00 00 00 00 00 00 79 [00:16:55]Write i2c OK [00:16:55]MH_I2C_Read... [00:16:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:16:55]Read from MH i2c: E2 [00:16:55]MH_I2C_Read... [00:16:55]Read from MH i2c: E2 FD 00 [00:16:55]MH_I2C_Read... [00:16:55]Read from MH i2c: E2 FD 00 E4 15 00 03 00 00 EF 03 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 90 00 FA [00:16:55]RAPDU: 03 00 00 EF 03 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 90 00 [00:16:55]wFMCommunicate OK [00:16:55]wFMCommunicate request_size=4 [00:16:55]MH_SAM_APDU [00:16:55]CAPDU: 80 17 00 00 [00:16:55]Write to MH i2c: E2 08 00 E5 15 80 17 00 00 00 00 00 00 7A [00:16:55]Write i2c OK [00:16:55]MH_I2C_Read... [00:16:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [00:16:55]Read from MH i2c: E2 [00:16:55]MH_I2C_Read... [00:16:55]Read from MH i2c: E2 D9 00 [00:16:55]MH_I2C_Read... [00:16:55]Read from MH i2c: E2 D9 00 E5 15 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 59 [00:16:56]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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:16:56]wFMCommunicate OK [00:16:56]SAM_PROTO_GetShiftData done [00:16:56]1194 (1208) - счетчики итогов смены [00:16:56] 1134 (4) - 314 - количество чеков со всеми признаками расчетов [00:16:56] 1129 (158) - счетчики операций «приход» [00:16:56] 1135 (4) - 307 - количество чеков по признаку расчетов [00:16:56] 1201 (4) - 348172.21 - общая итоговая сумма в чеках [00:16:56] 1136 (4) - 233677.00 - итоговая сумма в чеках наличными [00:16:56] 1138 (3) - 114495.21 - итоговая сумма в чеках безналичными [00:16:56] 1024 (123) - суммы налогов [00:16:56] 1006 (9) - суммы НДС [00:16:56] 1010 (1) - 0% - код ставки НДС [00:16:56] 1011 (0) - 0.00 - сумма НДС по ставке [00:16:56] 1006 (12) - суммы НДС [00:16:56] 1010 (1) - 12% - код ставки НДС [00:16:56] 1011 (3) - 36981.69 - сумма НДС по ставке [00:16:56] 1007 (9) - суммы НСП [00:16:56] 1014 (1) - 0% - код ставки НСП [00:16:56] 1015 (0) - 0.00 - сумма НСП по ставке [00:16:56] 1007 (12) - суммы НСП [00:16:56] 1014 (1) - 1% - код ставки НСП [00:16:56] 1015 (3) - 3081.54 - сумма НСП по ставке [00:16:56] 1007 (9) - суммы НСП [00:16:56] 1014 (1) - 2% - код ставки НСП [00:16:56] 1015 (0) - 0.00 - сумма НСП по ставке [00:16:56] 1007 (9) - суммы НСП [00:16:56] 1014 (1) - 3% - код ставки НСП [00:16:56] 1015 (0) - 0.00 - сумма НСП по ставке [00:16:56] 1007 (9) - суммы НСП [00:16:56] 1014 (1) - 5% - код ставки НСП [00:16:56] 1015 (0) - 0.00 - сумма НСП по ставке [00:16:56] 1007 (9) - суммы НСП [00:16:56] 1014 (1) - 0,50% - код ставки НСП [00:16:56] 1015 (0) - 0.00 - сумма НСП по ставке [00:16:56] 1007 (9) - суммы НСП [00:16:56] 1014 (1) - 1,50% - код ставки НСП [00:16:56] 1015 (0) - 0.00 - сумма НСП по ставке [00:16:56] 1130 (152) - счетчики операций «возврат прихода» [00:16:56] 1135 (4) - 7 - количество чеков по признаку расчетов [00:16:56] 1201 (3) - 56711.00 - общая итоговая сумма в чеках [00:16:56] 1136 (3) - 56711.00 - итоговая сумма в чеках наличными [00:16:56] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:16:56] 1024 (122) - суммы налогов [00:16:56] 1006 (9) - суммы НДС [00:16:56] 1010 (1) - 0% - код ставки НДС [00:16:56] 1011 (0) - 0.00 - сумма НДС по ставке [00:16:56] 1006 (12) - суммы НДС [00:16:56] 1010 (1) - 12% - код ставки НДС [00:16:56] 1011 (3) - 6022.65 - сумма НДС по ставке [00:16:56] 1007 (9) - суммы НСП [00:16:56] 1014 (1) - 0% - код ставки НСП [00:16:56] 1015 (0) - 0.00 - сумма НСП по ставке [00:16:56] 1007 (11) - суммы НСП [00:16:56] 1014 (1) - 1% - код ставки НСП [00:16:56] 1015 (2) - 501.89 - сумма НСП по ставке [00:16:56] 1007 (9) - суммы НСП [00:16:56] 1014 (1) - 2% - код ставки НСП [00:16:56] 1015 (0) - 0.00 - сумма НСП по ставке [00:16:56] 1007 (9) - суммы НСП [00:16:56] 1014 (1) - 3% - код ставки НСП [00:16:56] 1015 (0) - 0.00 - сумма НСП по ставке [00:16:56] 1007 (9) - суммы НСП [00:16:56] 1014 (1) - 5% - код ставки НСП [00:16:56] 1015 (0) - 0.00 - сумма НСП по ставке [00:16:56] 1007 (9) - суммы НСП [00:16:56] 1014 (1) - 0,50% - код ставки НСП [00:16:56] 1015 (0) - 0.00 - сумма НСП по ставке [00:16:56] 1007 (9) - суммы НСП [00:16:56] 1014 (1) - 1,50% - код ставки НСП [00:16:56] 1015 (0) - 0.00 - сумма НСП по ставке [00:16:56] 1131 (141) - счетчики операций «расход» [00:16:56] 1135 (4) - 0 - количество чеков по признаку расчетов [00:16:56] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:16:56] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:16:56] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:16:56] 1024 (117) - суммы налогов [00:16:56] 1006 (9) - суммы НДС [00:16:56] 1010 (1) - 0% - код ставки НДС [00:16:56] 1011 (0) - 0.00 - сумма НДС по ставке [00:16:56] 1006 (9) - суммы НДС [00:16:56] 1010 (1) - 12% - код ставки НДС [00:16:56] 1011 (0) - 0.00 - сумма НДС по ставке [00:16:56] 1007 (9) - суммы НСП [00:16:56] 1014 (1) - 0% - код ставки НСП [00:16:56] 1015 (0) - 0.00 - сумма НСП по ставке [00:16:56] 1007 (9) - суммы НСП [00:16:56] 1014 (1) - 1% - код ставки НСП [00:16:56] 1015 (0) - 0.00 - сумма НСП по ставке [00:16:56] 1007 (9) - суммы НСП [00:16:56] 1014 (1) - 2% - код ставки НСП [00:16:56] 1015 (0) - 0.00 - сумма НСП по ставке [00:16:56] 1007 (9) - суммы НСП [00:16:56] 1014 (1) - 3% - код ставки НСП [00:16:56] 1015 (0) - 0.00 - сумма НСП по ставке [00:16:56] 1007 (9) - суммы НСП [00:16:56] 1014 (1) - 5% - код ставки НСП [00:16:56] 1015 (0) - 0.00 - сумма НСП по ставке [00:16:56] 1007 (9) - суммы НСП [00:16:56] 1014 (1) - 0,50% - код ставки НСП [00:16:56] 1015 (0) - 0.00 - сумма НСП по ставке [00:16:56] 1007 (9) - суммы НСП [00:16:56] 1014 (1) - 1,50% - код ставки НСП [00:16:56] 1015 (0) - 0.00 - сумма НСП по ставке [00:16:56] 1132 (141) - счетчики операций «возврат расхода» [00:16:56] 1135 (4) - 0 - количество чеков по признаку расчетов [00:16:56] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:16:56] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:16:56] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:16:56] 1024 (117) - суммы налогов [00:16:56] 1006 (9) - суммы НДС [00:16:56] 1010 (1) - 0% - код ставки НДС [00:16:56] 1011 (0) - 0.00 - сумма НДС по ставке [00:16:56] 1006 (9) - суммы НДС [00:16:56] 1010 (1) - 12% - код ставки НДС [00:16:56] 1011 (0) - 0.00 - сумма НДС по ставке [00:16:56] 1007 (9) - суммы НСП [00:16:56] 1014 (1) - 0% - код ставки НСП [00:16:56] 1015 (0) - 0.00 - сумма НСП по ставке [00:16:56] 1007 (9) - суммы НСП [00:16:56] 1014 (1) - 1% - код ставки НСП [00:16:56] 1015 (0) - 0.00 - сумма НСП по ставке [00:16:56] 1007 (9) - суммы НСП [00:16:56] 1014 (1) - 2% - код ставки НСП [00:16:56] 1015 (0) - 0.00 - сумма НСП по ставке [00:16:56] 1007 (9) - суммы НСП [00:16:56] 1014 (1) - 3% - код ставки НСП [00:16:56] 1015 (0) - 0.00 - сумма НСП по ставке [00:16:56] 1007 (9) - суммы НСП [00:16:56] 1014 (1) - 5% - код ставки НСП [00:16:56] 1015 (0) - 0.00 - сумма НСП по ставке [00:16:56] 1007 (9) - суммы НСП [00:16:56] 1014 (1) - 0,50% - код ставки НСП [00:16:56] 1015 (0) - 0.00 - сумма НСП по ставке [00:16:56] 1007 (9) - суммы НСП [00:16:56] 1014 (1) - 1,50% - код ставки НСП [00:16:56] 1015 (0) - 0.00 - сумма НСП по ставке [00:16:56] 1133 (588) - - счетчики коррекции - не используются [00:16:56]SetTLVBufToDocument [00:16:56]Processing tag 1194 (04AA) [00:16:56]Load OK [00:16:56]SetTLVBufToDocument [00:16:56]Processing tag 1134 (046E) [00:16:56]Malloc new data [00:16:56]Processing tag 1129 (0469) [00:16:56]Load OK [00:16:56]SetTLVBufToDocument [00:16:56]Processing tag 1135 (046F) [00:16:56]Malloc new data [00:16:56]Processing tag 1201 (04B1) [00:16:56]Malloc new data [00:16:56]Processing tag 1136 (0470) [00:16:56]Malloc new data [00:16:56]Processing tag 1138 (0472) [00:16:56]Malloc new data [00:16:56]Processing tag 1024 (0400) [00:16:56]Load OK [00:16:56]SetTLVBufToDocument [00:16:56]Processing tag 1006 (03EE) [00:16:56]Load OK [00:16:56]SetTLVBufToDocument [00:16:56]Processing tag 1010 (03F2) [00:16:56]Malloc new data [00:16:56]Processing tag 1011 (03F3) [00:16:56]Malloc new data [00:16:56]SetTLVBufToDocument err=0 [00:16:56]Processing tag 1006 (03EE) [00:16:56]Load OK [00:16:56]SetTLVBufToDocument [00:16:56]Processing tag 1010 (03F2) [00:16:56]Malloc new data [00:16:56]Processing tag 1011 (03F3) [00:16:56]Malloc new data [00:16:56]SetTLVBufToDocument err=0 [00:16:56]Processing tag 1007 (03EF) [00:16:56]Load OK [00:16:56]SetTLVBufToDocument [00:16:56]Processing tag 1014 (03F6) [00:16:56]Malloc new data [00:16:56]Processing tag 1015 (03F7) [00:16:56]Malloc new data [00:16:56]SetTLVBufToDocument err=0 [00:16:56]Processing tag 1007 (03EF) [00:16:56]Load OK [00:16:56]SetTLVBufToDocument [00:16:56]Processing tag 1014 (03F6) [00:16:56]Malloc new data [00:16:56]Processing tag 1015 (03F7) [00:16:56]Malloc new data [00:16:56]SetTLVBufToDocument err=0 [00:16:56]Processing tag 1007 (03EF) [00:16:56]Load OK [00:16:56]SetTLVBufToDocument [00:16:56]Processing tag 1014 (03F6) [00:16:56]Malloc new data [00:16:56]Processing tag 1015 (03F7) [00:16:56]Malloc new data [00:16:56]SetTLVBufToDocument err=0 [00:16:56]Processing tag 1007 (03EF) [00:16:56]Load OK [00:16:56]SetTLVBufToDocument [00:16:56]Processing tag 1014 (03F6) [00:16:56]Malloc new data [00:16:56]Processing tag 1015 (03F7) [00:16:56]Malloc new data [00:16:56]SetTLVBufToDocument err=0 [00:16:56]Processing tag 1007 (03EF) [00:16:56]Load OK [00:16:56]SetTLVBufToDocument [00:16:56]Processing tag 1014 (03F6) [00:16:56]Malloc new data [00:16:56]Processing tag 1015 (03F7) [00:16:56]Malloc new data [00:16:56]SetTLVBufToDocument err=0 [00:16:56]Processing tag 1007 (03EF) [00:16:56]Load OK [00:16:56]SetTLVBufToDocument [00:16:56]Processing tag 1014 (03F6) [00:16:56]Malloc new data [00:16:56]Processing tag 1015 (03F7) [00:16:56]Malloc new data [00:16:56]SetTLVBufToDocument err=0 [00:16:56]Processing tag 1007 (03EF) [00:16:56]Load OK [00:16:56]SetTLVBufToDocument [00:16:56]Processing tag 1014 (03F6) [00:16:56]Malloc new data [00:16:56]Processing tag 1015 (03F7) [00:16:56]Malloc new data [00:16:56]SetTLVBufToDocument err=0 [00:16:56]SetTLVBufToDocument err=0 [00:16:56]SetTLVBufToDocument err=0 [00:16:56]Processing tag 1130 (046A) [00:16:56]Load OK [00:16:56]SetTLVBufToDocument [00:16:56]Processing tag 1135 (046F) [00:16:56]Malloc new data [00:16:56]Processing tag 1201 (04B1) [00:16:56]Malloc new data [00:16:56]Processing tag 1136 (0470) [00:16:56]Malloc new data [00:16:56]Processing tag 1138 (0472) [00:16:56]Malloc new data [00:16:56]Processing tag 1024 (0400) [00:16:56]Load OK [00:16:56]SetTLVBufToDocument [00:16:56]Processing tag 1006 (03EE) [00:16:56]Load OK [00:16:56]SetTLVBufToDocument [00:16:56]Processing tag 1010 (03F2) [00:16:56]Malloc new data [00:16:56]Processing tag 1011 (03F3) [00:16:56]Malloc new data [00:16:56]SetTLVBufToDocument err=0 [00:16:56]Processing tag 1006 (03EE) [00:16:56]Load OK [00:16:56]SetTLVBufToDocument [00:16:56]Processing tag 1010 (03F2) [00:16:56]Malloc new data [00:16:56]Processing tag 1011 (03F3) [00:16:56]Malloc new data [00:16:56]SetTLVBufToDocument err=0 [00:16:56]Processing tag 1007 (03EF) [00:16:56]Load OK [00:16:56]SetTLVBufToDocument [00:16:56]Processing tag 1014 (03F6) [00:16:56]Malloc new data [00:16:56]Processing tag 1015 (03F7) [00:16:56]Malloc new data [00:16:56]SetTLVBufToDocument err=0 [00:16:56]Processing tag 1007 (03EF) [00:16:56]Load OK [00:16:56]SetTLVBufToDocument [00:16:56]Processing tag 1014 (03F6) [00:16:56]Malloc new data [00:16:56]Processing tag 1015 (03F7) [00:16:56]Malloc new data [00:16:56]SetTLVBufToDocument err=0 [00:16:56]Processing tag 1007 (03EF) [00:16:56]Load OK [00:16:56]SetTLVBufToDocument [00:16:56]Processing tag 1014 (03F6) [00:16:56]Malloc new data [00:16:56]Processing tag 1015 (03F7) [00:16:56]Malloc new data [00:16:56]SetTLVBufToDocument err=0 [00:16:56]Processing tag 1007 (03EF) [00:16:56]Load OK [00:16:56]SetTLVBufToDocument [00:16:56]Processing tag 1014 (03F6) [00:16:56]Malloc new data [00:16:56]Processing tag 1015 (03F7) [00:16:56]Malloc new data [00:16:56]SetTLVBufToDocument err=0 [00:16:56]Processing tag 1007 (03EF) [00:16:56]Load OK [00:16:56]SetTLVBufToDocument [00:16:56]Processing tag 1014 (03F6) [00:16:56]Malloc new data [00:16:56]Processing tag 1015 (03F7) [00:16:56]Malloc new data [00:16:56]SetTLVBufToDocument err=0 [00:16:56]Processing tag 1007 (03EF) [00:16:56]Load OK [00:16:56]SetTLVBufToDocument [00:16:56]Processing tag 1014 (03F6) [00:16:56]Malloc new data [00:16:56]Processing tag 1015 (03F7) [00:16:56]Malloc new data [00:16:56]SetTLVBufToDocument err=0 [00:16:56]Processing tag 1007 (03EF) [00:16:56]Load OK [00:16:56]SetTLVBufToDocument [00:16:56]Processing tag 1014 (03F6) [00:16:56]Malloc new data [00:16:56]Processing tag 1015 (03F7) [00:16:56]Malloc new data [00:16:56]SetTLVBufToDocument err=0 [00:16:56]SetTLVBufToDocument err=0 [00:16:56]SetTLVBufToDocument err=0 [00:16:56]Processing tag 1131 (046B) [00:16:56]Load OK [00:16:56]SetTLVBufToDocument [00:16:56]Processing tag 1135 (046F) [00:16:56]Malloc new data [00:16:56]Processing tag 1201 (04B1) [00:16:56]Malloc new data [00:16:56]Processing tag 1136 (0470) [00:16:56]Malloc new data [00:16:56]Processing tag 1138 (0472) [00:16:56]Malloc new data [00:16:56]Processing tag 1024 (0400) [00:16:56]Load OK [00:16:56]SetTLVBufToDocument [00:16:56]Processing tag 1006 (03EE) [00:16:56]Load OK [00:16:56]SetTLVBufToDocument [00:16:56]Processing tag 1010 (03F2) [00:16:56]Malloc new data [00:16:56]Processing tag 1011 (03F3) [00:16:56]Malloc new data [00:16:56]SetTLVBufToDocument err=0 [00:16:56]Processing tag 1006 (03EE) [00:16:56]Load OK [00:16:56]SetTLVBufToDocument [00:16:56]Processing tag 1010 (03F2) [00:16:56]Malloc new data [00:16:56]Processing tag 1011 (03F3) [00:16:56]Malloc new data [00:16:56]SetTLVBufToDocument err=0 [00:16:56]Processing tag 1007 (03EF) [00:16:56]Load OK [00:16:56]SetTLVBufToDocument [00:16:56]Processing tag 1014 (03F6) [00:16:56]Malloc new data [00:16:56]Processing tag 1015 (03F7) [00:16:56]Malloc new data [00:16:56]SetTLVBufToDocument err=0 [00:16:56]Processing tag 1007 (03EF) [00:16:56]Load OK [00:16:56]SetTLVBufToDocument [00:16:56]Processing tag 1014 (03F6) [00:16:56]Malloc new data [00:16:56]Processing tag 1015 (03F7) [00:16:56]Malloc new data [00:16:56]SetTLVBufToDocument err=0 [00:16:56]Processing tag 1007 (03EF) [00:16:56]Load OK [00:16:56]SetTLVBufToDocument [00:16:56]Processing tag 1014 (03F6) [00:16:56]Malloc new data [00:16:56]Processing tag 1015 (03F7) [00:16:56]Malloc new data [00:16:56]SetTLVBufToDocument err=0 [00:16:56]Processing tag 1007 (03EF) [00:16:56]Load OK [00:16:56]SetTLVBufToDocument [00:16:56]Processing tag 1014 (03F6) [00:16:56]Malloc new data [00:16:56]Processing tag 1015 (03F7) [00:16:56]Malloc new data [00:16:56]SetTLVBufToDocument err=0 [00:16:56]Processing tag 1007 (03EF) [00:16:56]Load OK [00:16:56]SetTLVBufToDocument [00:16:56]Processing tag 1014 (03F6) [00:16:56]Malloc new data [00:16:56]Processing tag 1015 (03F7) [00:16:56]Malloc new data [00:16:56]SetTLVBufToDocument err=0 [00:16:56]Processing tag 1007 (03EF) [00:16:56]Load OK [00:16:56]SetTLVBufToDocument [00:16:56]Processing tag 1014 (03F6) [00:16:56]Malloc new data [00:16:56]Processing tag 1015 (03F7) [00:16:56]Malloc new data [00:16:56]SetTLVBufToDocument err=0 [00:16:57]Processing tag 1007 (03EF) [00:16:57]Load OK [00:16:57]SetTLVBufToDocument [00:16:57]Processing tag 1014 (03F6) [00:16:57]Malloc new data [00:16:57]Processing tag 1015 (03F7) [00:16:57]Malloc new data [00:16:57]SetTLVBufToDocument err=0 [00:16:57]SetTLVBufToDocument err=0 [00:16:57]SetTLVBufToDocument err=0 [00:16:57]Processing tag 1132 (046C) [00:16:57]Load OK [00:16:57]SetTLVBufToDocument [00:16:57]Processing tag 1135 (046F) [00:16:57]Malloc new data [00:16:57]Processing tag 1201 (04B1) [00:16:57]Malloc new data [00:16:57]Processing tag 1136 (0470) [00:16:57]Malloc new data [00:16:57]Processing tag 1138 (0472) [00:16:57]Malloc new data [00:16:57]Processing tag 1024 (0400) [00:16:57]Load OK [00:16:57]SetTLVBufToDocument [00:16:57]Processing tag 1006 (03EE) [00:16:57]Load OK [00:16:57]SetTLVBufToDocument [00:16:57]Processing tag 1010 (03F2) [00:16:57]Malloc new data [00:16:57]Processing tag 1011 (03F3) [00:16:57]Malloc new data [00:16:57]SetTLVBufToDocument err=0 [00:16:57]Processing tag 1006 (03EE) [00:16:57]Load OK [00:16:57]SetTLVBufToDocument [00:16:57]Processing tag 1010 (03F2) [00:16:57]Malloc new data [00:16:57]Processing tag 1011 (03F3) [00:16:57]Malloc new data [00:16:57]SetTLVBufToDocument err=0 [00:16:57]Processing tag 1007 (03EF) [00:16:57]Load OK [00:16:57]SetTLVBufToDocument [00:16:57]Processing tag 1014 (03F6) [00:16:57]Malloc new data [00:16:57]Processing tag 1015 (03F7) [00:16:57]Malloc new data [00:16:57]SetTLVBufToDocument err=0 [00:16:57]Processing tag 1007 (03EF) [00:16:57]Load OK [00:16:57]SetTLVBufToDocument [00:16:57]Processing tag 1014 (03F6) [00:16:57]Malloc new data [00:16:57]Processing tag 1015 (03F7) [00:16:57]Malloc new data [00:16:57]SetTLVBufToDocument err=0 [00:16:57]Processing tag 1007 (03EF) [00:16:57]Load OK [00:16:57]SetTLVBufToDocument [00:16:57]Processing tag 1014 (03F6) [00:16:57]Malloc new data [00:16:57]Processing tag 1015 (03F7) [00:16:57]Malloc new data [00:16:57]SetTLVBufToDocument err=0 [00:16:57]Processing tag 1007 (03EF) [00:16:57]Load OK [00:16:57]SetTLVBufToDocument [00:16:57]Processing tag 1014 (03F6) [00:16:57]Malloc new data [00:16:57]Processing tag 1015 (03F7) [00:16:57]Malloc new data [00:16:57]SetTLVBufToDocument err=0 [00:16:57]Processing tag 1007 (03EF) [00:16:57]Load OK [00:16:57]SetTLVBufToDocument [00:16:57]Processing tag 1014 (03F6) [00:16:57]Malloc new data [00:16:57]Processing tag 1015 (03F7) [00:16:57]Malloc new data [00:16:57]SetTLVBufToDocument err=0 [00:16:57]Processing tag 1007 (03EF) [00:16:57]Load OK [00:16:57]SetTLVBufToDocument [00:16:57]Processing tag 1014 (03F6) [00:16:57]Malloc new data [00:16:57]Processing tag 1015 (03F7) [00:16:57]Malloc new data [00:16:57]SetTLVBufToDocument err=0 [00:16:57]Processing tag 1007 (03EF) [00:16:57]Load OK [00:16:57]SetTLVBufToDocument [00:16:57]Processing tag 1014 (03F6) [00:16:57]Malloc new data [00:16:57]Processing tag 1015 (03F7) [00:16:57]Malloc new data [00:16:57]SetTLVBufToDocument err=0 [00:16:57]SetTLVBufToDocument err=0 [00:16:57]SetTLVBufToDocument err=0 [00:16:57]Processing tag 1133 (046D) [00:16:57]Malloc new data [00:16:57]SetTLVBufToDocument err=0 [00:16:57]SetTLVBufToDocument err=0 [00:16:57]Malloc new data [00:16:57]SAM_PROTO_GetFMData [00:16:57]wFMCommunicate request_size=4 [00:16:57]MH_SAM_APDU [00:16:57]CAPDU: 80 13 03 00 [00:16:57]Write to MH i2c: E2 08 00 E6 15 80 13 03 00 00 00 00 00 7A [00:16:57]Write i2c OK [00:16:57]MH_I2C_Read... [00:16:57]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:16:57]Read from MH i2c: E2 [00:16:57]MH_I2C_Read... [00:16:57]Read from MH i2c: E2 FD 00 [00:16:57]MH_I2C_Read... [00:16:57]Read from MH i2c: E2 FD 00 E6 15 00 C3 04 85 04 BF 04 6E 04 04 00 F4 71 00 00 69 04 A1 00 6F 04 04 00 8D 6E 00 00 B1 04 04 00 4C 14 1E B4 70 04 04 00 24 17 B6 72 72 04 04 00 28 FD 67 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 B5 9B 21 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 30 19 98 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 67 03 00 00 B1 04 04 00 D4 9F F7 0C 70 04 04 00 D4 9F F7 0C 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B0 90 60 01 EF 03 09 00 F6 90 00 AB [00:16:57]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 F4 71 00 00 69 04 A1 00 6F 04 04 00 8D 6E 00 00 B1 04 04 00 4C 14 1E B4 70 04 04 00 24 17 B6 72 72 04 04 00 28 FD 67 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 B5 9B 21 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 30 19 98 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 67 03 00 00 B1 04 04 00 D4 9F F7 0C 70 04 04 00 D4 9F F7 0C 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B0 90 60 01 EF 03 09 00 F6 90 00 [00:16:58]wFMCommunicate OK [00:16:58]wFMCommunicate request_size=4 [00:16:58]MH_SAM_APDU [00:16:58]CAPDU: 80 17 00 00 [00:16:58]Write to MH i2c: E2 08 00 E7 15 80 17 00 00 00 00 00 00 7C [00:16:58]Write i2c OK [00:16:58]MH_I2C_Read... [00:16:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:16:58]Read from MH i2c: E2 [00:16:58]MH_I2C_Read... [00:16:58]Read from MH i2c: E2 FD 00 [00:16:58]MH_I2C_Read... [00:16:58]Read from MH i2c: E2 FD 00 E7 15 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 F4 60 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 90 00 AD [00:16:58]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 F4 60 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 90 00 [00:16:58]wFMCommunicate OK [00:16:58]wFMCommunicate request_size=4 [00:16:58]MH_SAM_APDU [00:16:58]CAPDU: 80 17 00 00 [00:16:58]Write to MH i2c: E2 08 00 E8 15 80 17 00 00 00 00 00 00 7D [00:16:58]Write i2c OK [00:16:58]MH_I2C_Read... [00:16:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:16:58]Read from MH i2c: E2 [00:16:58]MH_I2C_Read... [00:16:58]Read from MH i2c: E2 FD 00 [00:16:58]MH_I2C_Read... [00:16:58]Read from MH i2c: E2 FD 00 E8 15 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 90 00 9B [00:16:58]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 90 00 [00:16:59]wFMCommunicate OK [00:16:59]wFMCommunicate request_size=4 [00:16:59]MH_SAM_APDU [00:16:59]CAPDU: 80 17 00 00 [00:16:59]Write to MH i2c: E2 08 00 E9 15 80 17 00 00 00 00 00 00 7E [00:16:59]Write i2c OK [00:16:59]MH_I2C_Read... [00:16:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:16:59]Read from MH i2c: E2 [00:16:59]MH_I2C_Read... [00:16:59]Read from MH i2c: E2 FD 00 [00:16:59]MH_I2C_Read... [00:16:59]Read from MH i2c: E2 FD 00 E9 15 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 F0 [00:16:59]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [00:16:59]wFMCommunicate OK [00:16:59]wFMCommunicate request_size=4 [00:16:59]MH_SAM_APDU [00:16:59]CAPDU: 80 17 00 00 [00:16:59]Write to MH i2c: E2 08 00 EA 15 80 17 00 00 00 00 00 00 7F [00:16:59]Write i2c OK [00:16:59]MH_I2C_Read... [00:16:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [00:16:59]Read from MH i2c: E2 [00:16:59]MH_I2C_Read... [00:16:59]Read from MH i2c: E2 E0 00 [00:16:59]MH_I2C_Read... [00:16:59]Read from MH i2c: E2 E0 00 EA 15 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 69 [00:17:00]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:17:00]wFMCommunicate OK [00:17:00]SAM_PROTO_GetFMData done [00:17:00]FM_GetFMData:85 04 BF 04 6E 04 04 00 F4 71 00 00 69 04 A1 00 6F 04 04 00 8D 6E 00 00 B1 04 04 00 4C 14 1E B4 70 04 04 00 OFD Sender: No OFD packet to send [00:17:00]24 17 B6 72 72 04 04 00 28 FD 67 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 B5 9B 21 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 30 19 98 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 67 03 00 00 B1 04 04 00 D4 9F F7 0C 70 04 04 00 D4 9F F7 0C 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B0 90 60 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 F4 60 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:17:00]oper:6F 04 04 00 8D 6E 00 00 B1 04 04 00 4C 14 1E B4 70 04 04 00 24 17 B6 72 72 04 04 00 28 FD 67 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 B5 9B 21 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 30 19 98 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 [00:17:00]total:4C 14 1E B4 [00:17:00]Malloc new data [00:17:00]oper:6F 04 04 00 67 03 00 00 B1 04 04 00 D4 9F F7 0C 70 04 04 00 D4 9F F7 0C 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B0 90 60 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 F4 60 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:17:00]total:D4 9F F7 0C [00:17:00]Malloc new data [00:17:00]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:17:01]total: [00:17:01]Malloc new data [00:17:01]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:17:01]total: [00:17:01]Malloc new data [00:17:01]KKMPrepareXReportFMData err=0 [00:17:01]Х отчет ИНН: 02508201610067 Кассир: Аликбаева. Д. 15.04.2024 00:16 Смена: 10 РНМ: 0000138879044617 ЗНМ: 0300000027 СНО: Общий режим Всего чеков: 314 ИТОГИ ПРИХОД Чеков: 307 Общий итог: 348172.21 Итого наличными: 233677.00 Итого безнал.: 114495.21 НДС 0% : 0.00 НДС 12% : 36981.69 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 3081.54 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 7 Общий итог: 56711.00 Итого наличными: 56711.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 6022.65 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 501.89 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 176966.00 НС Приход: 30218701.56 НС Возвр.Прихода: 2175549.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000963154 [00:17:01]StoreToDocumentArchive [00:17:01]MH_GetDate [00:17:01]Write to MH i2c: F0 00 00 EB 15 EF [00:17:01]Write i2c OK [00:17:01]MH_I2C_Read... [00:17:01]Read from MH i2c: F0 [00:17:01]MH_I2C_Read... [00:17:01]Read from MH i2c: F0 09 00 [00:17:01]MH_I2C_Read... [00:17:01]Read from MH i2c: F0 09 00 EB 15 00 FE 71 1C 66 23 5B 8F 65 5B [00:17:01]shift 10 fd 1713140222 [00:17:01]Create dir for shift 0010 [00:17:01]save to /storage/0010/doc_1713140222 [00:17:01]save last doc name /storage/0010/doc_1713140222 to /storage/kkm_last_doc_name [00:17:01]save OK [00:17:01]Clear old archive folders... [00:17:01]NVStorageSaveData kkm_last_timestamp [00:17:01]File name is /storage/kkm_last_timestamp [00:17:01]Write 4 bytes [00:17:01]NVStorageSaveData done [00:17:01]ExternCall_PrintAddStr [00:17:01]wPrintStart [00:17:01]Write to MH i2c: 01 00 00 EC 15 01 [00:17:01]Write i2c OK [00:17:01]MH_I2C_Read... [00:17:01]Read from MH i2c: 01 [00:17:01]MH_I2C_Read... [00:17:01]Read from MH i2c: 01 07 00 [00:17:01]MH_I2C_Read... [00:17:01]Read from MH i2c: 01 07 00 EC 15 00 00 00 00 00 FF 0F 16 [00:17:01]RasterBufferAndPrint [00:17:01]line Х отчет [00:17:01]line ИНН: 02508201610067 [00:17:01]line Кассир: Аликбаева. Д. [00:17:01]line 15.04.2024 00:16 [00:17:01]line Смена: 10 [00:17:01]line РНМ: 0000138879044617 [00:17:01]line ЗНМ: 0300000027 [00:17:01]line СНО: Общий режим [00:17:01]line Всего чеков: 314 [00:17:01]line ИТОГИ ПРИХОД [00:17:01]line Чеков: 307 [00:17:01]line Общий итог: 348172.21 [00:17:01]line Итого наличными: 233677.00 [00:17:01]line Итого безнал.: 114495.21 [00:17:01]line НДС 0% : 0.00 [00:17:01]line НДС 12% : 36981.69 [00:17:01]line НСП 0% : 0.00 [00:17:01]line НСП 1,50% : 0.00 [00:17:01]line НСП 0,50% : 0.00 [00:17:01]line НСП 5% : 0.00 [00:17:01]line НСП 3% : 0.00 [00:17:01]line НСП 2% : 0.00 [00:17:01]line НСП 1% : 3081.54 [00:17:01]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:17:01]line Чеков: 7 [00:17:01]line Общий итог: 56711.00 [00:17:01]line Итого наличными: 56711.00 [00:17:01]line Итого безнал.: 0.00 [00:17:01]line НДС 0% : 0.00 [00:17:01]line НДС 12% : 6022.65 [00:17:01]line НСП 0% : 0.00 [00:17:01]line НСП 1,50% : 0.00 [00:17:01]line НСП 0,50% : 0.00 [00:17:01]line НСП 5% : 0.00 [00:17:01]line НСП 3% : 0.00 [00:17:01]line НСП 2% : 0.00 [00:17:01]line НСП 1% : 501.89 [00:17:01]line ИТОГИ РАСХОД [00:17:01]line Чеков: 0 [00:17:01]line Общий итог: 0.00 [00:17:01]line Итого наличными: 0.00 [00:17:01]line Итого безнал.: 0.00 [00:17:01]line НДС 0% : 0.00 [00:17:01]line НДС 12% : 0.00 [00:17:01]line НСП 0% : 0.00 [00:17:01]line НСП 1,50% : 0.00 [00:17:01]line НСП 0,50% : 0.00 [00:17:01]line НСП 5% : 0.00 [00:17:01]line НСП 3% : 0.00 [00:17:01]line НСП 2% : 0.00 [00:17:01]line НСП 1% : 0.00 [00:17:01]line ИТОГИ ВОЗВРАТ РАСХОДА [00:17:01]line Чеков: 0 [00:17:01]line Общий итог: 0.00 [00:17:01]line Итого наличными: 0.00 [00:17:01]line Итого безнал.: 0.00 [00:17:01]line НДС 0% : 0.00 [00:17:01]line НДС 12% : 0.00 [00:17:01]line НСП 0% : 0.00 [00:17:01]line НСП 1,50% : 0.00 [00:17:01]line НСП 0,50% : 0.00 [00:17:01]line НСП 5% : 0.00 [00:17:01]line НСП 3% : 0.00 [00:17:01]line НСП 2% : 0.00 [00:17:01]line НСП 1% : 0.00 [00:17:01]line Сумма внесений: 0.00 [00:17:01]line Сумма выплат: 0.00 [00:17:01]line Нал. в кассе: 176966.00 [00:17:01]line НС Приход: 30218701.56 [00:17:01]line НС Возвр.Прихода: 2175549.00 [00:17:01]line НС Расход: 0.00 [00:17:01]line НС Возвр.Расхода: 0.00 [00:17:01]line ФМ: 0000000000963154 [00:17:01]written 0, free lines is 4095 [00:17:01]Write to MH i2c: 01 00 00 37 16 4D [00:17:01]Write i2c OK [00:17:01]MH_I2C_Read... [00:17:01]Read from MH i2c: 01 [00:17:01]MH_I2C_Read... [00:17:01]Read from MH i2c: 01 07 00 [00:17:01]MH_I2C_Read... [00:17:01]Read from MH i2c: 01 07 00 37 16 00 00 00 00 00 85 0A E3 [00:17:01]RasterBufferAndPrint [00:17:01]line [00:17:01]line [00:17:01]line [00:17:01]line [00:17:01]line [00:17:02]written 0, free lines is 2721 [00:17:02]MH_Cut [00:17:02]Write to MH i2c: D1 01 00 3E 16 01 26 [00:17:02]Write i2c OK [00:17:02]MH_I2C_Read... [00:17:02]Read from MH i2c: D1 [00:17:02]MH_I2C_Read... [00:17:02]Read from MH i2c: D1 01 00 [00:17:02]MH_I2C_Read... [00:17:02]Read from MH i2c: D1 01 00 3E 16 00 25 [00:17:02]Write to MH i2c: 01 00 00 3F 16 55 [00:17:02]Write i2c OK [00:17:02]MH_I2C_Read... [00:17:03]*** Cut start [00:17:03]*** Partial cut [00:17:03]*** CUTSNS_PIN = 1 [00:17:03]*** CUTSNS_PIN = 0 [00:17:03]*** Brake cut motor [00:17:03]Read from MH i2c: 01 [00:17:03]MH_I2C_Read... [00:17:03]*** Stop cut motor [00:17:03]*** Cut end [00:17:03]Read from MH i2c: 01 07 00 [00:17:03]MH_I2C_Read... [00:17:03]Read from MH i2c: 01 07 00 3F 16 00 00 00 00 00 FF 0F 6A [00:17:03]process_action x_report done [00:17:03]requested_data is exist [00:17:03]produce_requested_data [00:17:03]requested_item fd.num is exist - process it [00:17:03]SAM_PROTO_GetFieldsCounters [00:17:03]wFMCommunicate request_size=4 [00:17:03]MH_SAM_APDU [00:17:03]CAPDU: 80 13 00 00 [00:17:03]Write to MH i2c: E2 08 00 40 16 80 13 00 00 00 00 00 00 D2 [00:17:03]Write i2c OK [00:17:03]MH_I2C_Read... [00:17:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:17:03]Read from MH i2c: E2 [00:17:03]MH_I2C_Read... [00:17:03]Read from MH i2c: E2 62 00 [00:17:03]MH_I2C_Read... [00:17:03]Read from MH i2c: E2 62 00 40 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DC 72 00 00 0E 04 04 00 74 00 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 83 [00:17:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DC 72 00 00 0E 04 04 00 74 00 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 [00:17:04]wFMCommunicate OK [00:17:04]SAM_PROTO_GetFieldsCounters done [00:17:04]requested_item shift.num is exist - process it [00:17:04]requested_item shift.opened is exist - process it [00:17:04]req_shift_opened [00:17:04]FM_GetShiftState [00:17:04]SAM_PROTO_GetShiftState [00:17:04]wFMCommunicate request_size=4 [00:17:04]MH_SAM_APDU [00:17:04]CAPDU: 80 13 01 00 [00:17:04]Write to MH i2c: E2 08 00 41 16 80 13 01 00 00 00 00 00 D4 [00:17:04]Write i2c OK [00:17:04]MH_I2C_Read... [00:17:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:17:04]Read from MH i2c: E2 [00:17:04]MH_I2C_Read... [00:17:04]Read from MH i2c: E2 0E 00 [00:17:04]MH_I2C_Read... [00:17:04]Read from MH i2c: E2 0E 00 41 16 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 80 [00:17:04]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [00:17:04]wFMCommunicate OK [00:17:04]SAM_PROTO_GetShiftState done [00:17:04]FM_GetShiftState done [00:17:04]req_shift_opened done [00:17:04]requested_item shift.open_date is exist - process it [00:17:04]req_shift_open_date [00:17:04]req_shift_open_date done [00:17:04]produce_requested_data done [00:17:04]produce_requested_data return {"fd.num":29404,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [00:17:04]process_action_free x_report [00:17:04]json_value_free [00:17:04]json_value_free done [00:17:04]process_json_proto returns [00:17:04]Send response to host [00:17:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":29404,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [00:17:04]free response buf [00:17:04]execute_script done [00:17:04]execute_script returns [00:17:04]free content buf [00:17:04]Sock 9.Close socket [00:17:04]Sock 9.Thread stoped [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:43]accept exits with 8 [00:19:43]New connection [00:19:43]New thread 3066969444 created [00:19:43]Thread 3067112804 joined [00:19:43]Waiting for new connection... [00:19:43] Sock 8.Parse request [00:19:43]Sock 8.Check first char [00:19:43]Sock 8.First char is OK [00:19:43]request: POST /json_proto HTTP/1.0 [00:19:43]Method: POST [00:19:43]URL: /json_proto [00:19:43]Method is POST - this is cgi request [00:19:43]url: /json_proto [00:19:43]query_string will be loaded in cgi processing [00:19:43]execute_cgi json_proto POST (null) [00:19:43]execute_cgi path=json_proto method=POST [00:19:43]POST find Content-Length [00:19:43]Host: 172.17.33.3:8080 [00:19:43]Content-Length: 215 [00:19:43]Content-Type: application/json [00:19:43] [00:19:43]POST finish read [00:19:43]Found Content-Length = 215 [00:19:43]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:19:43]execute_script... [00:19:43]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:19:43]POST & json_proto [00:19:43]process_json_proto [00:19:43]json parsed OK: [00:19:43]protocol is kg_v1.0 [00:19:43]action value=get_value [00:19:43]process_action get_value [00:19:43]cmd_get_value [00:19:43]process_action get_value done [00:19:43]requested_data is exist [00:19:43]produce_requested_data [00:19:43]requested_item kkm.sn is exist - process it [00:19:43]requested_item kkm.ver is exist - process it [00:19:43]requested_item fm.sn is exist - process it [00:19:43]wFMCommunicate request_size=4 [00:19:43]MH_SAM_APDU [00:19:43]CAPDU: 80 11 00 00 [00:19:43]Write to MH i2c: E2 08 00 42 16 80 11 00 00 00 00 00 00 D2 [00:19:43]Write i2c OK [00:19:43]MH_I2C_Read... [00:19:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:19:43]Read from MH i2c: E2 [00:19:43]MH_I2C_Read... [00:19:43]Read from MH i2c: E2 17 00 [00:19:43]MH_I2C_Read... [00:19:43]Read from MH i2c: E2 17 00 42 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 21 [00:19:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [00:19:43]wFMCommunicate OK [00:19:43]requested_item fd.num is exist - process it [00:19:43]SAM_PROTO_GetFieldsCounters [00:19:43]wFMCommunicate request_size=4 [00:19:43]MH_SAM_APDU [00:19:43]CAPDU: 80 13 00 00 [00:19:43]Write to MH i2c: E2 08 00 43 16 80 13 00 00 00 00 00 00 D5 [00:19:43]Write i2c OK [00:19:43]MH_I2C_Read... [00:19:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:19:43]Read from MH i2c: E2 [00:19:43]MH_I2C_Read... [00:19:43]Read from MH i2c: E2 62 00 [00:19:43]MH_I2C_Read... [00:19:43]Read from MH i2c: E2 62 00 43 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DC 72 00 00 0E 04 04 00 74 00 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 86 [00:19:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DC 72 00 00 0E 04 04 00 74 00 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 [00:19:43]wFMCommunicate OK [00:19:43]SAM_PROTO_GetFieldsCounters done [00:19:43]requested_item shift.num is exist - process it [00:19:43]requested_item shift.opened is exist - process it [00:19:43]req_shift_opened [00:19:43]FM_GetShiftState [00:19:43]SAM_PROTO_GetShiftState [00:19:43]wFMCommunicate request_size=4 [00:19:43]MH_SAM_APDU [00:19:43]CAPDU: 80 13 01 00 [00:19:43]Write to MH i2c: E2 08 00 44 16 80 13 01 00 00 00 00 00 D7 [00:19:43]Write i2c OK [00:19:43]MH_I2C_Read... [00:19:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:19:43]Read from MH i2c: E2 [00:19:43]MH_I2C_Read... [00:19:43]Read from MH i2c: E2 0E 00 [00:19:43]MH_I2C_Read... [00:19:43]Read from MH i2c: E2 0E 00 44 16 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 83 [00:19:43]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [00:19:43]wFMCommunicate OK [00:19:43]SAM_PROTO_GetShiftState done [00:19:43]FM_GetShiftState done [00:19:43]req_shift_opened done [00:19:43]requested_item shift.open_date is exist - process it [00:19:43]req_shift_open_date [00:19:43]req_shift_open_date done [00:19:43]produce_requested_data done [00:19:43]produce_requested_data return {"kkm.sn":"0300000027","kkm.ver":"001","fm.sn":"0000000000963154","fd.num":29404,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [00:19:43]process_action_free get_value [00:19:43]json_value_free [00:19:43]json_value_free done [00:19:43]process_json_proto returns [00:19:43]Send response to host [00:19:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000027","kkm.ver":"001","fm.sn":"0000000000963154","fd.num":29404,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [00:19:43]free response buf [00:19:43]execute_script done [00:19:43]execute_script returns [00:19:43]free content buf [00:19:43]Sock 8.Close socket [00:19:43]Sock 8.Thread stoped [00:19:43]accept exits with 9 [00:19:43]New connection [00:19:43]New thread 3067112804 created [00:19:43]Thread 3066969444 joined [00:19:43]Waiting for new connection... [00:19:43] Sock 9.Parse request [00:19:43]Sock 9.Check first char [00:19:43]Sock 9.First char is OK [00:19:43]request: POST /json_proto HTTP/1.0 [00:19:43]Method: POST [00:19:43]URL: /json_proto [00:19:43]Method is POST - this is cgi request [00:19:43]url: /json_proto [00:19:43]query_string will be loaded in cgi processing [00:19:43]execute_cgi json_proto POST (null) [00:19:43]execute_cgi path=json_proto method=POST [00:19:43]POST find Content-Length [00:19:43]Host: 172.17.33.3:8080 [00:19:43]Content-Length: 331 [00:19:43]Content-Type: application/json [00:19:43] [00:19:43]POST finish read [00:19:43]Found Content-Length = 331 [00:19:43]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:19:43]execute_script... [00:19: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:19:43]POST & json_proto [00:19:43]process_json_proto [00:19:43]json parsed OK: [00:19:43]protocol is kg_v1.0 [00:19:43]action value=get_value [00:19:43]process_action get_value [00:19:43]cmd_get_value [00:19:43]process_action get_value done [00:19:43]requested_data is exist [00:19:43]produce_requested_data [00:19:43]requested_item fm.sale.total is exist - process it [00:19:43]SAM_PROTO_GetFMData [00:19:43]wFMCommunicate request_size=4 [00:19:43]MH_SAM_APDU [00:19:43]CAPDU: 80 13 03 00 [00:19:43]Write to MH i2c: E2 08 00 45 16 80 13 03 00 00 00 00 00 DA [00:19:43]Write i2c OK [00:19:43]MH_I2C_Read... [00:19:44]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:19:44]Read from MH i2c: E2 [00:19:44]MH_I2C_Read... [00:19:44]Read from MH i2c: E2 FD 00 [00:19:44]MH_I2C_Read... [00:19:44]Read from MH i2c: E2 FD 00 45 16 00 C3 04 85 04 BF 04 6E 04 04 00 F4 71 00 00 69 04 A1 00 6F 04 04 00 8D 6E 00 00 B1 04 04 00 4C 14 1E B4 70 04 04 00 24 17 B6 72 72 04 04 00 28 FD 67 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 B5 9B 21 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 30 19 98 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 67 03 00 00 B1 04 04 00 D4 9F F7 0C 70 04 04 00 D4 9F F7 0C 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B0 90 60 01 EF 03 09 00 F6 90 00 0B [00:19:44]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 F4 71 00 00 69 04 A1 00 6F 04 04 00 8D 6E 00 00 B1 04 04 00 4C 14 1E B4 70 04 04 00 24 17 B6 72 72 04 04 00 28 FD 67 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 B5 9B 21 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 30 19 98 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 67 03 00 00 B1 04 04 00 D4 9F F7 0C 70 04 04 00 D4 9F F7 0C 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B0 90 60 01 EF 03 09 00 F6 90 00 [00:19:44]wFMCommunicate OK [00:19:44]wFMCommunicate request_size=4 [00:19:44]MH_SAM_APDU [00:19:44]CAPDU: 80 17 00 00 [00:19:44]Write to MH i2c: E2 08 00 46 16 80 17 00 00 00 00 00 00 DC [00:19:44]Write i2c OK [00:19:44]MH_I2C_Read... [00:19:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:44]Read from MH i2c: E2 [00:19:44]MH_I2C_Read... [00:19:44]Read from MH i2c: E2 FD 00 [00:19:44]MH_I2C_Read... [00:19:44]Read from MH i2c: E2 FD 00 46 16 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 F4 60 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 90 00 0D [00:19:44]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 F4 60 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 90 00 [00:19:44]wFMCommunicate OK [00:19:44]wFMCommunicate request_size=4 [00:19:44]MH_SAM_APDU [00:19:44]CAPDU: 80 17 00 00 [00:19:44]Write to MH i2c: E2 08 00 47 16 80 17 00 00 00 00 00 00 DD [00:19:44]Write i2c OK [00:19:44]MH_I2C_Read... [00:19:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:44]Read from MH i2c: E2 [00:19:44]MH_I2C_Read... [00:19:44]Read from MH i2c: E2 FD 00 [00:19:44]MH_I2C_Read... [00:19:44]Read from MH i2c: E2 FD 00 47 16 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 90 00 FB [00:19:44]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 90 00 [00:19:44]wFMCommunicate OK [00:19:44]wFMCommunicate request_size=4 [00:19:44]MH_SAM_APDU [00:19:44]CAPDU: 80 17 00 00 [00:19:44]Write to MH i2c: E2 08 00 48 16 80 17 00 00 00 00 00 00 DE [00:19:44]Write i2c OK [00:19:44]MH_I2C_Read... [00:19:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:45]Read from MH i2c: E2 [00:19:45]MH_I2C_Read... [00:19:45]Read from MH i2c: E2 FD 00 [00:19:45]MH_I2C_Read... [00:19:45]Read from MH i2c: E2 FD 00 48 16 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 50 [00:19:45]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [00:19:45]wFMCommunicate OK [00:19:45]wFMCommunicate request_size=4 [00:19:45]MH_SAM_APDU [00:19:45]CAPDU: 80 17 00 00 [00:19:45]Write to MH i2c: E2 08 00 49 16 80 17 00 00 00 00 00 00 DF [00:19:45]Write i2c OK [00:19:45]MH_I2C_Read... [00:19:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [00:19:45]Read from MH i2c: E2 [00:19:45]MH_I2C_Read... [00:19:45]Read from MH i2c: E2 E0 00 [00:19:45]MH_I2C_Read... [00:19:45]Read from MH i2c: E2 E0 00 49 16 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 C9 [00:19:45]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:19:45]wFMCommunicate OK [00:19:45]SAM_PROTO_GetFMData done [00:19:45]requested_item fm.sale_refund.total is exist - process it [00:19:45]requested_item fm.buy.total is exist - process it [00:19:45]requested_item shift.sale.total is exist - process it [00:19:45]SAM_PROTO_GetShiftData [00:19:45]wFMCommunicate request_size=4 [00:19:45]MH_SAM_APDU [00:19:45]CAPDU: 80 13 02 00 [00:19:45]Write to MH i2c: E2 08 00 4A 16 80 13 02 00 00 00 00 00 DE [00:19:45]OFD Sender: No OFD packet to send [00:19:45]Write i2c OK [00:19:45]MH_I2C_Read... [00:19:45]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:19:45]Read from MH i2c: E2 [00:19:45]MH_I2C_Read... [00:19:45]Read from MH i2c: E2 FD 00 [00:19:45]MH_I2C_Read... [00:19:45]Read from MH i2c: E2 FD 00 4A 16 00 BC 04 AA 04 B8 04 6E 04 04 00 3A 01 00 00 69 04 9E 00 6F 04 04 00 33 01 00 00 B1 04 04 00 C5 44 13 02 70 04 04 00 14 90 64 01 72 04 03 00 B1 B4 AE 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 6D 38 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 BA B3 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 98 00 6F 04 04 00 07 00 00 00 B1 04 03 00 BC 88 56 70 04 03 00 BC 88 56 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 99 30 09 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 B7 [00:19:45]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 3A 01 00 00 69 04 9E 00 6F 04 04 00 33 01 00 00 B1 04 04 00 C5 44 13 02 70 04 04 00 14 90 64 01 72 04 03 00 B1 B4 AE 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 6D 38 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 BA B3 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 98 00 6F 04 04 00 07 00 00 00 B1 04 03 00 BC 88 56 70 04 03 00 BC 88 56 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 99 30 09 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:19:45]wFMCommunicate OK [00:19:45]wFMCommunicate request_size=4 [00:19:45]MH_SAM_APDU [00:19:45]CAPDU: 80 17 00 00 [00:19:45]Write to MH i2c: E2 08 00 4B 16 80 17 00 00 00 00 00 00 E1 [00:19:45]Write i2c OK [00:19:45]MH_I2C_Read... [00:19:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:46]Read from MH i2c: E2 [00:19:46]MH_I2C_Read... [00:19:46]Read from MH i2c: E2 FD 00 [00:19:46]MH_I2C_Read... [00:19:46]Read from MH i2c: E2 FD 00 4B 16 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 0D C4 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 5C [00:19:46]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 0D C4 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:19:46]wFMCommunicate OK [00:19:46]wFMCommunicate request_size=4 [00:19:46]MH_SAM_APDU [00:19:46]CAPDU: 80 17 00 00 [00:19:46]Write to MH i2c: E2 08 00 4C 16 80 17 00 00 00 00 00 00 E2 [00:19:46]Write i2c OK [00:19:46]MH_I2C_Read... [00:19:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:46]Read from MH i2c: E2 [00:19:46]MH_I2C_Read... [00:19:46]Read from MH i2c: E2 FD 00 [00:19:46]MH_I2C_Read... [00:19:46]Read from MH i2c: E2 FD 00 4C 16 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 0B [00:19:46]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:19:46]wFMCommunicate OK [00:19:46]wFMCommunicate request_size=4 [00:19:46]MH_SAM_APDU [00:19:46]CAPDU: 80 17 00 00 [00:19:46]Write to MH i2c: E2 08 00 4D 16 80 17 00 00 00 00 00 00 E3 [00:19:46]Write i2c OK [00:19:46]MH_I2C_Read... [00:19:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:46]Read from MH i2c: E2 [00:19:46]MH_I2C_Read... [00:19:46]Read from MH i2c: E2 FD 00 [00:19:46]MH_I2C_Read... [00:19:46]Read from MH i2c: E2 FD 00 4D 16 00 03 00 00 EF 03 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 90 00 64 [00:19:46]RAPDU: 03 00 00 EF 03 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 90 00 [00:19:46]wFMCommunicate OK [00:19:46]wFMCommunicate request_size=4 [00:19:46]MH_SAM_APDU [00:19:46]CAPDU: 80 17 00 00 [00:19:46]Write to MH i2c: E2 08 00 4E 16 80 17 00 00 00 00 00 00 E4 [00:19:46]Write i2c OK [00:19:46]MH_I2C_Read... [00:19:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [00:19:46]Read from MH i2c: E2 [00:19:46]MH_I2C_Read... [00:19:46]Read from MH i2c: E2 D9 00 [00:19:46]MH_I2C_Read... [00:19:46]Read from MH i2c: E2 D9 00 4E 16 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 C3 [00:19:46]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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:19:47]wFMCommunicate OK [00:19:47]SAM_PROTO_GetShiftData done [00:19:47]requested_item shift.sale.total_cash is exist - process it [00:19:47]requested_item shift.sale_refund.total is exist - process it [00:19:47]requested_item shift.sale_refund.total_cash is exist - process it [00:19:47]requested_item shift.buy.total is exist - process it [00:19:47]requested_item shift.buy.total_cash is exist - process it [00:19:47]produce_requested_data done [00:19:47]produce_requested_data return {"fm.sale.total":30218701.56,"fm.sale_refund.total":2175549.00,"fm.buy.total":0.00,"shift.sale.total":348172.21,"shift.sale.total_cash":233677.00,"shift.sale_refund.total":56711.00,"shift.sale_refund.total_cash":56711.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:19:47]process_action_free get_value [00:19:47]json_value_free [00:19:47]json_value_free done [00:19:47]process_json_proto returns [00:19:47]Send response to host [00:19:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":30218701.56,"fm.sale_refund.total":2175549.00,"fm.buy.total":0.00,"shift.sale.total":348172.21,"shift.sale.total_cash":233677.00,"shift.sale_refund.total":56711.00,"shift.sale_refund.total_cash":56711.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:19:47]free response buf [00:19:47]execute_script done [00:19:47]execute_script returns [00:19:47]free content buf [00:19:47]Sock 9.Close socket [00:19:47]Sock 9.Thread stoped [00:19:47]accept exits with 8 [00:19:47]New connection [00:19:47]New thread 3066969444 created [00:19:47]Thread 3067112804 joined [00:19:47]Waiting for new connection... [00:19:47] Sock 8.Parse request [00:19:47]Sock 8.Check first char [00:19:47]Sock 8.First char is OK [00:19:47]request: POST /json_proto HTTP/1.0 [00:19:47]Method: POST [00:19:47]URL: /json_proto [00:19:47]Method is POST - this is cgi request [00:19:47]url: /json_proto [00:19:47]query_string will be loaded in cgi processing [00:19:47]execute_cgi json_proto POST (null) [00:19:47]execute_cgi path=json_proto method=POST [00:19:47]POST find Content-Length [00:19:47]Host: 172.17.33.3:8080 [00:19:47]Content-Length: 331 [00:19:47]Content-Type: application/json [00:19:47] [00:19:47]POST finish read [00:19:47]Found Content-Length = 331 [00:19:47]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:19:47]execute_script... [00:19:47]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:19:47]POST & json_proto [00:19:47]process_json_proto [00:19:47]json parsed OK: [00:19:47]protocol is kg_v1.0 [00:19:47]action value=get_value [00:19:47]process_action get_value [00:19:47]cmd_get_value [00:19:47]process_action get_value done [00:19:47]requested_data is exist [00:19:47]produce_requested_data [00:19:47]requested_item fm.sale.total is exist - process it [00:19:47]SAM_PROTO_GetFMData [00:19:47]wFMCommunicate request_size=4 [00:19:47]MH_SAM_APDU [00:19:47]CAPDU: 80 13 03 00 [00:19:47]Write to MH i2c: E2 08 00 4F 16 80 13 03 00 00 00 00 00 E4 [00:19:47]Write i2c OK [00:19:47]MH_I2C_Read... [00:19:47]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:19:47]Read from MH i2c: E2 [00:19:47]MH_I2C_Read... [00:19:47]Read from MH i2c: E2 FD 00 [00:19:47]MH_I2C_Read... [00:19:47]Read from MH i2c: E2 FD 00 4F 16 00 C3 04 85 04 BF 04 6E 04 04 00 F4 71 00 00 69 04 A1 00 6F 04 04 00 8D 6E 00 00 B1 04 04 00 4C 14 1E B4 70 04 04 00 24 17 B6 72 72 04 04 00 28 FD 67 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 B5 9B 21 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 30 19 98 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 67 03 00 00 B1 04 04 00 D4 9F F7 0C 70 04 04 00 D4 9F F7 0C 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B0 90 60 01 EF 03 09 00 F6 90 00 15 [00:19:47]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 F4 71 00 00 69 04 A1 00 6F 04 04 00 8D 6E 00 00 B1 04 04 00 4C 14 1E B4 70 04 04 00 24 17 B6 72 72 04 04 00 28 FD 67 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 B5 9B 21 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 30 19 98 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 67 03 00 00 B1 04 04 00 D4 9F F7 0C 70 04 04 00 D4 9F F7 0C 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B0 90 60 01 EF 03 09 00 F6 90 00 [00:19:47]wFMCommunicate OK [00:19:47]wFMCommunicate request_size=4 [00:19:47]MH_SAM_APDU [00:19:47]CAPDU: 80 17 00 00 [00:19:47]Write to MH i2c: E2 08 00 50 16 80 17 00 00 00 00 00 00 E6 [00:19:47]Write i2c OK [00:19:47]MH_I2C_Read... [00:19:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:47]Read from MH i2c: E2 [00:19:47]MH_I2C_Read... [00:19:47]Read from MH i2c: E2 FD 00 [00:19:47]MH_I2C_Read... [00:19:47]Read from MH i2c: E2 FD 00 50 16 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 F4 60 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 90 00 17 [00:19:47]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 F4 60 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 90 00 [00:19:48]wFMCommunicate OK [00:19:48]wFMCommunicate request_size=4 [00:19:48]MH_SAM_APDU [00:19:48]CAPDU: 80 17 00 00 [00:19:48]Write to MH i2c: E2 08 00 51 16 80 17 00 00 00 00 00 00 E7 [00:19:48]Write i2c OK [00:19:48]MH_I2C_Read... [00:19:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:48]Read from MH i2c: E2 [00:19:48]MH_I2C_Read... [00:19:48]Read from MH i2c: E2 FD 00 [00:19:48]MH_I2C_Read... [00:19:48]Read from MH i2c: E2 FD 00 51 16 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 90 00 05 [00:19:48]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 90 00 [00:19:48]wFMCommunicate OK [00:19:48]wFMCommunicate request_size=4 [00:19:48]MH_SAM_APDU [00:19:48]CAPDU: 80 17 00 00 [00:19:48]Write to MH i2c: E2 08 00 52 16 80 17 00 00 00 00 00 00 E8 [00:19:48]Write i2c OK [00:19:48]MH_I2C_Read... [00:19:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:48]Read from MH i2c: E2 [00:19:48]MH_I2C_Read... [00:19:48]Read from MH i2c: E2 FD 00 [00:19:48]MH_I2C_Read... [00:19:48]Read from MH i2c: E2 FD 00 52 16 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 5A [00:19:48]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [00:19:48]wFMCommunicate OK [00:19:48]wFMCommunicate request_size=4 [00:19:48]MH_SAM_APDU [00:19:48]CAPDU: 80 17 00 00 [00:19:48]Write to MH i2c: E2 08 00 53 16 80 17 00 00 00 00 00 00 E9 [00:19:48]Write i2c OK [00:19:48]MH_I2C_Read... [00:19:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [00:19:48]Read from MH i2c: E2 [00:19:48]MH_I2C_Read... [00:19:48]Read from MH i2c: E2 E0 00 [00:19:48]MH_I2C_Read... [00:19:48]Read from MH i2c: E2 E0 00 53 16 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 D3 [00:19:49]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:19:49]wFMCommunicate OK [00:19:49]SAM_PROTO_GetFMData done [00:19:49]requested_item fm.sale_refund.total is exist - process it [00:19:49]requested_item fm.buy.total is exist - process it [00:19:49]requested_item shift.sale.total is exist - process it [00:19:49]SAM_PROTO_GetShiftData [00:19:49]wFMCommunicate request_size=4 [00:19:49]MH_SAM_APDU [00:19:49]CAPDU: 80 13 02 00 [00:19:49]Write to MH i2c: E2 08 00 54 16 80 13 02 00 00 00 00 00 E8 [00:19:49]Write i2c OK [00:19:49]MH_I2C_Read... [00:19:49]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:19:49]Read from MH i2c: E2 [00:19:49]MH_I2C_Read... [00:19:49]Read from MH i2c: E2 FD 00 [00:19:49]MH_I2C_Read... [00:19:49]Read from MH i2c: E2 FD 00 54 16 00 BC 04 AA 04 B8 04 6E 04 04 00 3A 01 00 00 69 04 9E 00 6F 04 04 00 33 01 00 00 B1 04 04 00 C5 44 13 02 70 04 04 00 14 90 64 01 72 04 03 00 B1 B4 AE 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 6D 38 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 BA B3 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 98 00 6F 04 04 00 07 00 00 00 B1 04 03 00 BC 88 56 70 04 03 00 BC 88 56 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 99 30 09 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 C1 [00:19:49]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 3A 01 00 00 69 04 9E 00 6F 04 04 00 33 01 00 00 B1 04 04 00 C5 44 13 02 70 04 04 00 14 90 64 01 72 04 03 00 B1 B4 AE 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 6D 38 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 BA B3 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 98 00 6F 04 04 00 07 00 00 00 B1 04 03 00 BC 88 56 70 04 03 00 BC 88 56 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 99 30 09 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:19:49]wFMCommunicate OK [00:19:49]wFMCommunicate request_size=4 [00:19:49]MH_SAM_APDU [00:19:49]CAPDU: 80 17 00 00 [00:19:49]Write to MH i2c: E2 08 00 55 16 80 17 00 00 00 00 00 00 EB [00:19:49]Write i2c OK [00:19:49]MH_I2C_Read... [00:19:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:49]Read from MH i2c: E2 [00:19:49]MH_I2C_Read... [00:19:49]Read from MH i2c: E2 FD 00 [00:19:49]MH_I2C_Read... [00:19:49]Read from MH i2c: E2 FD 00 55 16 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 0D C4 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 66 [00:19:50]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 0D C4 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:19:50]wFMCommunicate OK [00:19:50]wFMCommunicate request_size=4 [00:19:50]MH_SAM_APDU [00:19:50]CAPDU: 80 17 00 00 [00:19:50]Write to MH i2c: E2 08 00 56 16 80 17 00 00 00 00 00 00 EC [00:19:50]Write i2c OK [00:19:50]MH_I2C_Read... [00:19:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:50]Read from MH i2c: E2 [00:19:50]MH_I2C_Read... [00:19:50]Read from MH i2c: E2 FD 00 [00:19:50]MH_I2C_Read... [00:19:50]Read from MH i2c: E2 FD 00 56 16 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 OFD Sender: No OFD packet to send [00:19:50]03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 90 00 15 [00:19:50]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:19:50]wFMCommunicate OK [00:19:50]wFMCommunicate request_size=4 [00:19:50]MH_SAM_APDU [00:19:50]CAPDU: 80 17 00 00 [00:19:50]Write to MH i2c: E2 08 00 57 16 80 17 00 00 00 00 00 00 ED [00:19:50]Write i2c OK [00:19:50]MH_I2C_Read... [00:19:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:50]Read from MH i2c: E2 [00:19:50]MH_I2C_Read... [00:19:50]Read from MH i2c: E2 FD 00 [00:19:50]MH_I2C_Read... [00:19:50]Read from MH i2c: E2 FD 00 57 16 00 03 00 00 EF 03 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 90 00 6E [00:19:50]RAPDU: 03 00 00 EF 03 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 90 00 [00:19:50]wFMCommunicate OK [00:19:50]wFMCommunicate request_size=4 [00:19:50]MH_SAM_APDU [00:19:50]CAPDU: 80 17 00 00 [00:19:50]Write to MH i2c: E2 08 00 58 16 80 17 00 00 00 00 00 00 EE [00:19:50]Write i2c OK [00:19:50]MH_I2C_Read... [00:19:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [00:19:51]Read from MH i2c: E2 [00:19:51]MH_I2C_Read... [00:19:51]Read from MH i2c: E2 D9 00 [00:19:51]MH_I2C_Read... [00:19:51]Read from MH i2c: E2 D9 00 58 16 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 CD [00:19:51]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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:19:51]wFMCommunicate OK [00:19:51]SAM_PROTO_GetShiftData done [00:19:51]requested_item shift.sale.total_cash is exist - process it [00:19:51]requested_item shift.sale_refund.total is exist - process it [00:19:51]requested_item shift.sale_refund.total_cash is exist - process it [00:19:51]requested_item shift.buy.total is exist - process it [00:19:51]requested_item shift.buy.total_cash is exist - process it [00:19:51]produce_requested_data done [00:19:51]produce_requested_data return {"fm.sale.total":30218701.56,"fm.sale_refund.total":2175549.00,"fm.buy.total":0.00,"shift.sale.total":348172.21,"shift.sale.total_cash":233677.00,"shift.sale_refund.total":56711.00,"shift.sale_refund.total_cash":56711.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:19:51]process_action_free get_value [00:19:51]json_value_free [00:19:51]json_value_free done [00:19:51]process_json_proto returns [00:19:51]Send response to host [00:19:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":30218701.56,"fm.sale_refund.total":2175549.00,"fm.buy.total":0.00,"shift.sale.total":348172.21,"shift.sale.total_cash":233677.00,"shift.sale_refund.total":56711.00,"shift.sale_refund.total_cash":56711.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:19:51]free response buf [00:19:51]execute_script done [00:19:51]execute_script returns [00:19:51]free content buf [00:19:51]Sock 8.Close socket [00:19:51]Sock 8.Thread stoped [00:19:51]accept exits with 9 [00:19:51]New connection [00:19:51]New thread 3067112804 created [00:19:51]Thread 3066969444 joined [00:19:51]Waiting for new connection... [00:19:51] Sock 9.Parse request [00:19:51]Sock 9.Check first char [00:19:51]Sock 9.First char is OK [00:19:51]request: POST /json_proto HTTP/1.0 [00:19:51]Method: POST [00:19:51]URL: /json_proto [00:19:51]Method is POST - this is cgi request [00:19:51]url: /json_proto [00:19:51]query_string will be loaded in cgi processing [00:19:51]execute_cgi json_proto POST (null) [00:19:51]execute_cgi path=json_proto method=POST [00:19:51]POST find Content-Length [00:19:51]Host: 172.17.33.3:8080 [00:19:51]Content-Length: 267 [00:19:51]Content-Type: application/json [00:19:51] [00:19:51]POST finish read [00:19:51]Found Content-Length = 267 [00:19:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0410\u043B\u0438\u043A\u0431\u0430\u0435\u0432\u0430. \u0414. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:19:51]execute_script... [00:19:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0410\u043B\u0438\u043A\u0431\u0430\u0435\u0432\u0430. \u0414. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:19:51]POST & json_proto [00:19:51]process_json_proto [00:19:51]json parsed OK: [00:19:51]protocol is kg_v1.0 [00:19:51]action value=close_shift [00:19:51]process_action close_shift [00:19:51]cmd_close_shift [00:19:51]MH_GetDate [00:19:51]Write to MH i2c: F0 00 00 59 16 5E [00:19:51]Write i2c OK [00:19:51]MH_I2C_Read... [00:19:51]Read from MH i2c: F0 [00:19:51]MH_I2C_Read... [00:19:51]Read from MH i2c: F0 09 00 [00:19:51]MH_I2C_Read... [00:19:51]Read from MH i2c: F0 09 00 59 16 00 A9 72 1C 66 23 5B 8F 65 76 [00:19:51]GetLastDocTimeStamp 1713140215 [00:19:51]current date 1713140393 [00:19:51]FM_GetShiftState [00:19:51]SAM_PROTO_GetShiftState [00:19:51]wFMCommunicate request_size=4 [00:19:51]MH_SAM_APDU [00:19:51]CAPDU: 80 13 01 00 [00:19:51]Write to MH i2c: E2 08 00 5A 16 80 13 01 00 00 00 00 00 ED [00:19:51]Write i2c OK [00:19:51]MH_I2C_Read... [00:19:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:19:51]Read from MH i2c: E2 [00:19:51]MH_I2C_Read... [00:19:51]Read from MH i2c: E2 0E 00 [00:19:51]MH_I2C_Read... [00:19:51]Read from MH i2c: E2 0E 00 5A 16 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 99 [00:19:51]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [00:19:51]wFMCommunicate OK [00:19:51]SAM_PROTO_GetShiftState done [00:19:51]FM_GetShiftState done [00:19:51]KKMCreateCloseShiftDocument [00:19:51]Load OK [00:19:51]Malloc new data [00:19:51]MH_GetDate [00:19:51]Write to MH i2c: F0 00 00 5B 16 60 [00:19:51]Write i2c OK [00:19:51]MH_I2C_Read... [00:19:51]Read from MH i2c: F0 [00:19:51]MH_I2C_Read... [00:19:51]Read from MH i2c: F0 09 00 [00:19:51]MH_I2C_Read... [00:19:51]Read from MH i2c: F0 09 00 5B 16 00 A9 72 1C 66 23 5B 8F 65 78 [00:19:51]Malloc new data [00:19:51]Malloc new data [00:19:51]Malloc new data [00:19:51]Malloc new data [00:19:51]KKMCreateCloseShiftDocument OK [00:19:51]KKMSetCloseShiftData OK [00:19:51]ProcessDocumentItem done err = 0, tmpTLVsize=74 [00:19:51]tlvbuf is 002B6FB0 [00:19:51]KKMLoadAndSignCloseShiftData [00:19:51]SAM_PROTO_ProcessDocument [00:19:51]wFMCommunicate request_size=9 [00:19:51]MH_SAM_APDU [00:19:51]CAPDU: 80 15 01 00 04 05 00 4A 00 [00:19:51]Write to MH i2c: E2 0C 00 5C 16 80 15 01 00 04 00 05 00 4A 00 00 00 48 [00:19:51]Write i2c OK [00:19:51]MH_I2C_Read... [00:19:51]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:19:51]Read from MH i2c: E2 [00:19:51]MH_I2C_Read... [00:19:51]Read from MH i2c: E2 03 00 [00:19:51]MH_I2C_Read... [00:19:51]Read from MH i2c: E2 03 00 5C 16 00 90 00 E6 [00:19:51]RAPDU: 90 00 [00:19:51]wFMCommunicate OK [00:19:51]wFMCommunicate request_size=23 [00:19:51]MH_SAM_APDU [00:19:51]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:19:51]Write to MH i2c: E2 1A 00 5D 16 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 E8 [00:19:51]Write i2c OK [00:19:51]MH_I2C_Read... [00:19:51]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:19:51]Read from MH i2c: E2 [00:19:51]MH_I2C_Read... [00:19:51]Read from MH i2c: E2 03 00 [00:19:51]MH_I2C_Read... [00:19:51]Read from MH i2c: E2 03 00 5D 16 00 90 00 E7 [00:19:51]RAPDU: 90 00 [00:19:51]wFMCommunicate OK [00:19:51]wFMCommunicate request_size=33 [00:19:51]MH_SAM_APDU [00:19:51]CAPDU: 80 15 02 00 1C FD 03 18 00 D0 90 D0 BB D0 B8 D0 BA D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 2E 20 D0 94 2E 20 [00:19:51]Write to MH i2c: E2 24 00 5E 16 80 15 02 00 1C 00 FD 03 18 00 D0 90 D0 BB D0 B8 D0 BA D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 2E 20 D0 94 2E 20 00 00 C9 [00:19:51]Write i2c OK [00:19:51]MH_I2C_Read... [00:19:51]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:19:51]Read from MH i2c: E2 [00:19:51]MH_I2C_Read... [00:19:51]Read from MH i2c: E2 03 00 [00:19:51]MH_I2C_Read... [00:19:51]Read from MH i2c: E2 03 00 5E 16 00 90 00 E8 [00:19:51]RAPDU: 90 00 [00:19:51]wFMCommunicate OK [00:19:51]wFMCommunicate request_size=13 [00:19:51]MH_SAM_APDU [00:19:51]CAPDU: 80 15 02 00 08 F4 03 04 00 A9 72 1C 66 [00:19:51]Write to MH i2c: E2 10 00 5F 16 80 15 02 00 08 00 F4 03 04 00 A9 72 1C 66 00 00 9D [00:19:51]Write i2c OK [00:19:51]MH_I2C_Read... [00:19:51]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:19:51]Read from MH i2c: E2 [00:19:51]MH_I2C_Read... [00:19:51]Read from MH i2c: E2 03 00 [00:19:51]MH_I2C_Read... [00:19:51]Read from MH i2c: E2 03 00 5F 16 00 90 00 E9 [00:19:51]RAPDU: 90 00 [00:19:51]wFMCommunicate OK [00:19:51]wFMCommunicate request_size=25 [00:19:51]MH_SAM_APDU [00:19:51]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 [00:19:51]Write to MH i2c: E2 1C 00 60 16 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 00 00 79 [00:19:51]Write i2c OK [00:19:51]MH_I2C_Read... [00:19:51]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:19:51]Read from MH i2c: E2 [00:19:51]MH_I2C_Read... [00:19:51]Read from MH i2c: E2 03 00 [00:19:51]MH_I2C_Read... [00:19:51]Read from MH i2c: E2 03 00 60 16 00 90 00 EA [00:19:51]RAPDU: 90 00 [00:19:51]wFMCommunicate OK [00:19:51]wFMCommunicate request_size=4 [00:19:51]MH_SAM_APDU [00:19:51]CAPDU: 80 15 03 00 [00:19:52]Write to MH i2c: E2 08 00 61 16 80 15 03 00 00 00 00 00 F8 [00:19:52]Write i2c OK [00:19:52]MH_I2C_Read... [00:19:52]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [00:19:52]Read from MH i2c: E2 [00:19:52]MH_I2C_Read... [00:19:52]Read from MH i2c: E2 FD 00 [00:19:52]MH_I2C_Read... [00:19:52]Read from MH i2c: E2 FD 00 61 16 00 FF 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DD 72 00 00 0E 04 04 00 74 00 00 00 5E 04 04 00 3A 01 00 00 57 04 04 00 3C 01 00 00 AA 04 B8 04 6E 04 04 00 3A 01 00 00 69 04 9E 00 6F 04 04 00 33 01 00 00 B1 04 04 00 C5 44 13 02 70 04 04 00 14 90 64 01 72 04 03 00 B1 B4 AE 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 6D 38 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 BA B3 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 98 00 6F 04 04 00 07 00 00 00 B1 04 03 00 BC 90 00 C8 [00:19:52]RAPDU: FF 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DD 72 00 00 0E 04 04 00 74 00 00 00 5E 04 04 00 3A 01 00 00 57 04 04 00 3C 01 00 00 AA 04 B8 04 6E 04 04 00 3A 01 00 00 69 04 9E 00 6F 04 04 00 33 01 00 00 B1 04 04 00 C5 44 13 02 70 04 04 00 14 90 64 01 72 04 03 00 B1 B4 AE 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 6D 38 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 BA B3 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 98 00 6F 04 04 00 07 00 00 00 B1 04 03 00 BC 90 00 [00:19:52]wFMCommunicate OK [00:19:52]SAM_PROTO_ProcessDocument answer len = 1279 [00:19:52]SAM_PROTO_ProcessDocument remain to read = 1031 [00:19:52]wFMCommunicate request_size=4 [00:19:52]MH_SAM_APDU [00:19:52]CAPDU: 80 17 00 00 [00:19:52]Write to MH i2c: E2 08 00 62 16 80 17 00 00 00 00 00 00 F8 [00:19:52]Write i2c OK [00:19:52]MH_I2C_Read... [00:19:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:52]Read from MH i2c: E2 [00:19:52]MH_I2C_Read... [00:19:52]Read from MH i2c: E2 FD 00 [00:19:52]MH_I2C_Read... [00:19:52]Read from MH i2c: E2 FD 00 62 16 00 88 56 70 04 03 00 BC 88 56 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 99 30 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 0D C4 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 EC [00:19:53]RAPDU: 88 56 70 04 03 00 BC 88 56 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 99 30 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 0D C4 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:19:53]wFMCommunicate OK [00:19:53]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:19:53]SAM_PROTO_ProcessDocument remain to read = 781 [00:19:53]wFMCommunicate request_size=4 [00:19:53]MH_SAM_APDU [00:19:53]CAPDU: 80 17 00 00 [00:19:53]Write to MH i2c: E2 08 00 63 16 80 17 00 00 00 00 00 00 F9 [00:19:53]Write i2c OK [00:19:53]MH_I2C_Read... [00:19:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:53]Read from MH i2c: E2 [00:19:53]MH_I2C_Read... [00:19:53]Read from MH i2c: E2 FD 00 [00:19:53]MH_I2C_Read... [00:19:53]Read from MH i2c: E2 FD 00 63 16 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 5F [00:19:53]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:19:53]wFMCommunicate OK [00:19:53]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:19:53]SAM_PROTO_ProcessDocument remain to read = 531 [00:19:53]wFMCommunicate request_size=4 [00:19:53]MH_SAM_APDU [00:19:53]CAPDU: 80 17 00 00 [00:19:53]Write to MH i2c: E2 08 00 64 16 80 17 00 00 00 00 00 00 FA [00:19:53]Write i2c OK [00:19:53]MH_I2C_Read... [00:19:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:53]Read from MH i2c: E2 [00:19:53]MH_I2C_Read... [00:19:53]Read from MH i2c: E2 FD 00 [00:19:53]MH_I2C_Read... [00:19:53]Read from MH i2c: E2 FD 00 64 16 00 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 9B [00:19:53]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:19:54]wFMCommunicate OK [00:19:54]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:19:54]SAM_PROTO_ProcessDocument remain to read = 281 [00:19:54]wFMCommunicate request_size=4 [00:19:54]MH_SAM_APDU [00:19:54]CAPDU: 80 17 00 00 [00:19:54]Write to MH i2c: E2 08 00 65 16 80 17 00 00 00 00 00 00 FB [00:19:54]Write i2c OK [00:19:54]MH_I2C_Read... [00:19:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:54]Read from MH i2c: E2 [00:19:54]MH_I2C_Read... [00:19:54]Read from MH i2c: E2 FD 00 [00:19:54]MH_I2C_Read... [00:19:54]Read from MH i2c: E2 FD 00 65 16 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A7 [00:19:54]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:19:54]wFMCommunicate OK [00:19:54]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:19:54]SAM_PROTO_ProcessDocument remain to read = 31 [00:19:54]wFMCommunicate request_size=4 [00:19:54]MH_SAM_APDU [00:19:54]CAPDU: 80 17 00 00 [00:19:54]Write to MH i2c: E2 08 00 66 16 80 17 00 00 00 00 00 00 FC [00:19:54]Write i2c OK [00:19:54]MH_I2C_Read... [00:19:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 31! [00:19:54]Read from MH i2c: E2 [00:19:54]MH_I2C_Read... [00:19:54]Read from MH i2c: E2 22 00 [00:19:54]MH_I2C_Read... [00:19:54]Read from MH i2c: E2 22 00 66 16 00 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 90 F5 84 C0 A4 AB 90 00 5E [00:19:54]RAPDU: 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 90 F5 84 C0 A4 AB 90 00 [00:19:54]wFMCommunicate OK [00:19:54]SAM_PROTO_ProcessDocument received (without SW) 31 bytes [00:19:54]SAM_PROTO_ProcessDocument done [00:19:54]1209 (1) - 1.0 - номер версии ФФД [00:19:54]1041 (16) - 0000000000963154 - номер ФМ [00:19:54]1040 (4) - 29405 - номер ФД [00:19:54]1038 (4) - 116 - номер смены [00:19:54]1118 (4) - 314 - количество кассовых чеков за смену [00:19:54]1111 (4) - 316 - общее количество ФД за смену [00:19:54]1194 (1208) - счетчики итогов смены [00:19:54] 1134 (4) - 314 - количество чеков со всеми признаками расчетов [00:19:54] 1129 (158) - счетчики операций «приход» [00:19:54] 1135 (4) - 307 - количество чеков по признаку расчетов [00:19:54] 1201 (4) - 348172.21 - общая итоговая сумма в чеках [00:19:54] 1136 (4) - 233677.00 - итоговая сумма в чеках наличными [00:19:54] 1138 (3) - 114495.21 - итоговая сумма в чеках безналичными [00:19:54] 1024 (123) - суммы налогов [00:19:54] 1006 (9) - суммы НДС [00:19:54] 1010 (1) - 0% - код ставки НДС [00:19:54] 1011 (0) - 0.00 - сумма НДС по ставке [00:19:54] 1006 (12) - суммы НДС [00:19:54] 1010 (1) - 12% - код ставки НДС [00:19:54] 1011 (3) - 36981.69 - сумма НДС по ставке [00:19:54] 1007 (9) - суммы НСП [00:19:54] 1014 (1) - 0% - код ставки НСП [00:19:54] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:54] 1007 (12) - суммы НСП [00:19:54] 1014 (1) - 1% - код ставки НСП [00:19:54] 1015 (3) - 3081.54 - сумма НСП по ставке [00:19:54] 1007 (9) - суммы НСП [00:19:54] 1014 (1) - 2% - код ставки НСП [00:19:54] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:54] 1007 (9) - суммы НСП [00:19:54] 1014 (1) - 3% - код ставки НСП [00:19:54] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:54] 1007 (9) - суммы НСП [00:19:54] 1014 (1) - 5% - код ставки НСП [00:19:54] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:54] 1007 (9) - суммы НСП [00:19:54] 1014 (1) - 0,50% - код ставки НСП [00:19:54] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:54] 1007 (9) - суммы НСП [00:19:54] 1014 (1) - 1,50% - код ставки НСП [00:19:54] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:54] 1130 (152) - счетчики операций «возврат прихода» [00:19:54] 1135 (4) - 7 - количество чеков по признаку расчетов [00:19:54] 1201 (3) - 56711.00 - общая итоговая сумма в чеках [00:19:54] 1136 (3) - 56711.00 - итоговая сумма в чеках наличными [00:19:54] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:19:54] 1024 (122) - суммы налогов [00:19:54] 1006 (9) - суммы НДС [00:19:54] 1010 (1) - 0% - код ставки НДС [00:19:54] 1011 (0) - 0.00 - сумма НДС по ставке [00:19:54] 1006 (12) - суммы НДС [00:19:54] 1010 (1) - 12% - код ставки НДС [00:19:54] 1011 (3) - 6022.65 - сумма НДС по ставке [00:19:54] 1007 (9) - суммы НСП [00:19:54] 1014 (1) - 0% - код ставки НСП [00:19:54] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:54] 1007 (11) - суммы НСП [00:19:54] 1014 (1) - 1% - код ставки НСП [00:19:54] 1015 (2) - 501.89 - сумма НСП по ставке [00:19:54] 1007 (9) - суммы НСП [00:19:54] 1014 (1) - 2% - код ставки НСП [00:19:54] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:54] 1007 (9) - суммы НСП [00:19:54] 1014 (1) - 3% - код ставки НСП [00:19:54] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:54] 1007 (9) - суммы НСП [00:19:54] 1014 (1) - 5% - код ставки НСП [00:19:54] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:54] 1007 (9) - суммы НСП [00:19:54] 1014 (1) - 0,50% - код ставки НСП [00:19:54] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:54] 1007 (9) - суммы НСП [00:19:54] 1014 (1) - 1,50% - код ставки НСП [00:19:54] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:54] 1131 (141) - счетчики операций «расход» [00:19:54] 1135 (4) - 0 - количество чеков по признаку расчетов [00:19:54] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:19:54] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:19:54] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:19:54] 1024 (117) - суммы налогов [00:19:54] 1006 (9) - суммы НДС [00:19:54] 1010 (1) - 0% - код ставки НДС [00:19:54] 1011 (0) - 0.00 - сумма НДС по ставке [00:19:54] 1006 (9) - суммы НДС [00:19:54] 1010 (1) - 12% - код ставки НДС [00:19:54] 1011 (0) - 0.00 - сумма НДС по ставке [00:19:54] 1007 (9) - суммы НСП [00:19:54] 1014 (1) - 0% - код ставки НСП [00:19:54] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:54] 1007 (9) - суммы НСП [00:19:54] 1014 (1) - 1% - код ставки НСП [00:19:54] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:54] 1007 (9) - суммы НСП [00:19:54] 1014 (1) - 2% - код ставки НСП [00:19:54] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:54] 1007 (9) - суммы НСП [00:19:54] 1014 (1) - 3% - код ставки НСП [00:19:54] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:54] 1007 (9) - суммы НСП [00:19:54] 1014 (1) - 5% - код ставки НСП [00:19:54] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:54] 1007 (9) - суммы НСП [00:19:54] 1014 (1) - 0,50% - код ставки НСП [00:19:54] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:54] 1007 (9) - суммы НСП [00:19:54] 1014 (1) - 1,50% - код ставки НСП [00:19:54] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:54] 1132 (141) - счетчики операций «возврат расхода» [00:19:54] 1135 (4) - 0 - количество чеков по признаку расчетов [00:19:54] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:19:54] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:19:54] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:19:54] 1024 (117) - суммы налогов [00:19:54] 1006 (9) - суммы НДС [00:19:54] 1010 (1) - 0% - код ставки НДС [00:19:54] 1011 (0) - 0.00 - сумма НДС по ставке [00:19:54] 1006 (9) - суммы НДС [00:19:54] 1010 (1) - 12% - код ставки НДС [00:19:54] 1011 (0) - 0.00 - сумма НДС по ставке [00:19:54] 1007 (9) - суммы НСП [00:19:54] 1014 (1) - 0% - код ставки НСП [00:19:54] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:54] 1007 (9) - суммы НСП [00:19:54] 1014 (1) - 1% - код ставки НСП [00:19:54] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:54] 1007 (9) - суммы НСП [00:19:54] 1014 (1) - 2% - код ставки НСП [00:19:54] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:54] 1007 (9) - суммы НСП [00:19:54] 1014 (1) - 3% - код ставки НСП [00:19:54] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:54] 1007 (9) - суммы НСП [00:19:54] 1014 (1) - 5% - код ставки НСП [00:19:54] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:54] 1007 (9) - суммы НСП [00:19:54] 1014 (1) - 0,50% - код ставки НСП [00:19:54] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:54] 1007 (9) - суммы НСП [00:19:54] 1014 (1) - 1,50% - код ставки НСП [00:19:54] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:54] 1133 (588) - - счетчики коррекции - не используются [00:19:54]1077 (6) - 159384168604843 - ФПД [00:19:54]SetTLVBufToDocument [00:19:54]Processing tag 1209 (04B9) [00:19:54]Malloc new data [00:19:54]Processing tag 1041 (0411) [00:19:54]Processing tag 1040 (0410) [00:19:54]Malloc new data [00:19:54]Processing tag 1038 (040E) [00:19:54]Malloc new data [00:19:54]Processing tag 1118 (045E) [00:19:54]Malloc new data [00:19:54]Processing tag 1111 (0457) [00:19:54]Malloc new data [00:19:54]Processing tag 1194 (04AA) [00:19:54]Load OK [00:19:54]SetTLVBufToDocument [00:19:54]Processing tag 1134 (046E) [00:19:54]Malloc new data [00:19:55]Processing tag 1129 (0469) [00:19:55]Load OK [00:19:55]SetTLVBufToDocument [00:19:55]Processing tag 1135 (046F) [00:19:55]Malloc new data [00:19:55]Processing tag 1201 (04B1) [00:19:55]Malloc new data [00:19:55]Processing tag 1136 (0470) [00:19:55]Malloc new data [00:19:55]Processing tag 1138 (0472) [00:19:55]Malloc new data [00:19:55]Processing tag 1024 (0400) [00:19:55]Load OK [00:19:55]SetTLVBufToDocument [00:19:55]Processing tag 1006 (03EE) [00:19:55]Load OK [00:19:55]SetTLVBufToDocument [00:19:55]Processing tag 1010 (03F2) [00:19:55]Malloc new data [00:19:55]Processing tag 1011 (03F3) [00:19:55]Malloc new data [00:19:55]SetTLVBufToDocument err=0 [00:19:55]Processing tag 1006 (03EE) [00:19:55]Load OK [00:19:55]SetTLVBufToDocument [00:19:55]Processing tag 1010 (03F2) [00:19:55]Malloc new data [00:19:55]Processing tag 1011 (03F3) [00:19:55]Malloc new data [00:19:55]SetTLVBufToDocument err=0 [00:19:55]Processing tag 1007 (03EF) [00:19:55]Load OK [00:19:55]SetTLVBufToDocument [00:19:55]Processing tag 1014 (03F6) [00:19:55]Malloc new data [00:19:55]Processing tag 1015 (03F7) [00:19:55]Malloc new data [00:19:55]SetTLVBufToDocument err=0 [00:19:55]Processing tag 1007 (03EF) [00:19:55]Load OK [00:19:55]SetTLVBufToDocument [00:19:55]Processing tag 1014 (03F6) [00:19:55]Malloc new data [00:19:55]Processing tag 1015 (03F7) [00:19:55]Malloc new data [00:19:55]SetTLVBufToDocument err=0 [00:19:55]Processing tag 1007 (03EF) [00:19:55]Load OK [00:19:55]SetTLVBufToDocument [00:19:55]Processing tag 1014 (03F6) [00:19:55]Malloc new data [00:19:55]Processing tag 1015 (03F7) [00:19:55]Malloc new data [00:19:55]SetTLVBufToDocument err=0 [00:19:55]Processing tag 1007 (03EF) [00:19:55]Load OK [00:19:55]SetTLVBufToDocument [00:19:55]Processing tag 1014 (03F6) [00:19:55]Malloc new data [00:19:55]Processing tag 1015 (03F7) [00:19:55]Malloc new data [00:19:55]SetTLVBufToDocument err=0 [00:19:55]Processing tag 1007 (03EF) [00:19:55]Load OK [00:19:55]SetTLVBufToDocument [00:19:55]Processing tag 1014 (03F6) [00:19:55]Malloc new data [00:19:55]Processing tag 1015 (03F7) [00:19:55]Malloc new data [00:19:55]SetTLVBufToDocument err=0 [00:19:55]Processing tag 1007 (03EF) [00:19:55]Load OK [00:19:55]SetTLVBufToDocument [00:19:55]Processing tag 1014 (03F6) [00:19:55]Malloc new data [00:19:55]Processing tag 1015 (03F7) [00:19:55]Malloc new data [00:19:55]SetTLVBufToDocument err=0 [00:19:55]Processing tag 1007 (03EF) [00:19:55]Load OK [00:19:55]SetTLVBufToDocument [00:19:55]Processing tag 1014 (03F6) [00:19:55]Malloc new data [00:19:55]Processing tag 1015 (03F7) [00:19:55]Malloc new data [00:19:55]SetTLVBufToDocument err=0 [00:19:55]SetTLVBufToDocument err=0 [00:19:55]SetTLVBufToDocument err=0 [00:19:55]Processing tag 1130 (046A) [00:19:55]Load OK [00:19:55]SetTLVBufToDocument [00:19:55]Processing tag 1135 (046F) [00:19:55]Malloc new data [00:19:55]Processing tag 1201 (04B1) [00:19:55]Malloc new data [00:19:55]Processing tag 1136 (0470) [00:19:55]Malloc new data [00:19:55]Processing tag 1138 (0472) [00:19:55]Malloc new data [00:19:55]Processing tag 1024 (0400) [00:19:55]Load OK [00:19:55]SetTLVBufToDocument [00:19:55]Processing tag 1006 (03EE) [00:19:55]Load OK [00:19:55]SetTLVBufToDocument [00:19:55]Processing tag 1010 (03F2) [00:19:55]Malloc new data [00:19:55]Processing tag 1011 (03F3) [00:19:55]Malloc new data [00:19:55]SetTLVBufToDocument err=0 [00:19:55]Processing tag 1006 (03EE) [00:19:55]Load OK [00:19:55]SetTLVBufToDocument [00:19:55]Processing tag 1010 (03F2) [00:19:55]Malloc new data [00:19:55]Processing tag 1011 (03F3) [00:19:55]Malloc new data [00:19:55]SetTLVBufToDocument err=0 [00:19:55]Processing tag 1007 (03EF) [00:19:55]Load OK [00:19:55]SetTLVBufToDocument [00:19:55]Processing tag 1014 (03F6) [00:19:55]Malloc new data [00:19:55]Processing tag 1015 (03F7) [00:19:55]Malloc new data [00:19:55]SetTLVBufToDocument err=0 [00:19:55]Processing tag 1007 (03EF) [00:19:55]Load OK [00:19:55]SetTLVBufToDocument [00:19:55]Processing tag 1014 (03F6) [00:19:55]Malloc new data [00:19:55]Processing tag 1015 (03F7) [00:19:55]Malloc new data [00:19:55]SetTLVBufToDocument err=0 [00:19:55]Processing tag 1007 (03EF) [00:19:55]Load OK [00:19:55]SetTLVBufToDocument [00:19:55]Processing tag 1014 (03F6) [00:19:55]Malloc new data [00:19:55]Processing tag 1015 (03F7) [00:19:55]Malloc new data [00:19:55]SetTLVBufToDocument err=0 [00:19:55]Processing tag 1007 (03EF) [00:19:55]Load OK [00:19:55]SetTLVBufToDocument [00:19:55]Processing tag 1014 (03F6) [00:19:55]Malloc new data [00:19:55]Processing tag 1015 (03F7) [00:19:55]Malloc new data [00:19:55]SetTLVBufToDocument err=0 [00:19:55]Processing tag 1007 (03EF) [00:19:55]Load OK [00:19:55]SetTLVBufToDocument [00:19:55]Processing tag 1014 (03F6) [00:19:55]Malloc new data [00:19:55]Processing tag 1015 (03F7) [00:19:55]Malloc new data [00:19:55]SetTLVBufToDocument err=0 [00:19:55]Processing tag 1007 (03EF) [00:19:55]Load OK [00:19:55]SetTLVBufToDocument [00:19:55]Processing tag 1014 (03F6) [00:19:55]Malloc new data [00:19:55]Processing tag 1015 (03F7) [00:19:55]Malloc new data [00:19:55]SetTLVBufToDocument err=0 [00:19:55]Processing tag 1007 (03EF) [00:19:55]Load OK [00:19:55]SetTLVBufToDocument [00:19:55]Processing tag 1014 (03F6) [00:19:55]Malloc new data [00:19:55]Processing tag 1015 (03F7) [00:19:55]Malloc new data [00:19:55]SetTLVBufToDocument err=0 [00:19:55]SetTLVBufToDocument err=0 [00:19:55]SetTLVBufToDocument err=0 [00:19:55]Processing tag 1131 (046B) [00:19:55]Load OK [00:19:55]SetTLVBufToDocument [00:19:55]Processing tag 1135 (046F) [00:19:55]Malloc new data [00:19:55]Processing tag 1201 (04B1) [00:19:55]Malloc new data [00:19:55]Processing tag 1136 (0470) [00:19:55]Malloc new data [00:19:55]Processing tag 1138 (0472) [00:19:55]Malloc new data [00:19:55]Processing tag 1024 (0400) [00:19:55]Load OK [00:19:55]SetTLVBufToDocument [00:19:55]Processing tag 1006 (03EE) [00:19:55]Load OK [00:19:55]SetTLVBufToDocument [00:19:55]Processing tag 1010 (03F2) [00:19:55]Malloc new data [00:19:55]Processing tag 1011 (03F3) [00:19:55]Malloc new data [00:19:55]SetTLVBufToDocument err=0 [00:19:55]Processing tag 1006 (03EE) [00:19:55]Load OK [00:19:55]SetTLVBufToDocument [00:19:55]Processing tag 1010 (03F2) [00:19:55]Malloc new data [00:19:55]Processing tag 1011 (03F3) [00:19:55]Malloc new data [00:19:55]SetTLVBufToDocument err=0 [00:19:55]Processing tag 1007 (03EF) [00:19:55]Load OK [00:19:55]SetTLVBufToDocument [00:19:55]Processing tag 1014 (03F6) [00:19:55]Malloc new data [00:19:55]Processing tag 1015 (03F7) [00:19:55]Malloc new data [00:19:55]SetTLVBufToDocument err=0 [00:19:55]Processing tag 1007 (03EF) [00:19:55]Load OK [00:19:55]SetTLVBufToDocument [00:19:55]Processing tag 1014 (03F6) [00:19:55]Malloc new data [00:19:55]Processing tag 1015 (03F7) [00:19:55]Malloc new data [00:19:55]SetTLVBufToDocument err=0 [00:19:55]Processing tag 1007 (03EF) [00:19:55]Load OK [00:19:55]SetTLVBufToDocument [00:19:55]Processing tag 1014 (03F6) [00:19:55]Malloc new data [00:19:55]Processing tag 1015 (03F7) [00:19:55]Malloc new data [00:19:55]SetTLVBufToDocument err=0 [00:19:55]Processing tag 1007 (03EF) [00:19:55]Load OK [00:19:55]SetTLVBufToDocument [00:19:55]Processing tag 1014 (03F6) [00:19:55]Malloc new data [00:19:55]Processing tag 1015 (03F7) [00:19:55]Malloc new data [00:19:55]SetTLVBufToDocument err=0 [00:19:55]Processing tag 1007 (03EF) [00:19:55]Load OK [00:19:55]SetTLVBufToDocument [00:19:55]Processing tag 1014 (03F6) [00:19:55]Malloc new data [00:19:55]Processing tag 1015 (03F7) [00:19:55]Malloc new data [00:19:55]SetTLVBufToDocument err=0 [00:19:55]Processing tag 1007 (03EF) [00:19:55]Load OK [00:19:55]SetTLVBufToDocument [00:19:55]Processing tag 1014 (03F6) [00:19:55]Malloc new data [00:19:55]Processing tag 1015 (03F7) [00:19:55]Malloc new data [00:19:55]SetTLVBufToDocument err=0 [00:19:55]Processing tag 1007 (03EF) [00:19:55]Load OK [00:19:55]SetTLVBufToDocument [00:19:55]Processing tag 1014 (03F6) [00:19:55]Malloc new data [00:19:55]Processing tag 1015 (03F7) [00:19:55]Malloc new data [00:19:55]SetTLVBufToDocument err=0 [00:19:55]SetTLVBufToDocument err=0 [00:19:55]SetTLVBufToDocument err=0 [00:19:55]Processing tag 1132 (046C) [00:19:55]Load OK [00:19:55]SetTLVBufToDocument [00:19:55]Processing tag 1135 (046F) [00:19:55]Malloc new data [00:19:55]Processing tag 1201 (04B1) [00:19:55]Malloc new data [00:19:55]Processing tag 1136 (0470) [00:19:55]Malloc new data [00:19:55]Processing tag 1138 (0472) [00:19:55]Malloc new data [00:19:55]Processing tag 1024 (0400) [00:19:55]Load OK [00:19:55]SetTLVBufToDocument [00:19:55]Processing tag 1006 (03EE) [00:19:55]Load OK [00:19:55]SetTLVBufToDocument [00:19:55]Processing tag 1010 (03F2) [00:19:55]Malloc new data [00:19:55]Processing tag 1011 (03F3) [00:19:55]Malloc new data [00:19:55]SetTLVBufToDocument err=0 [00:19:55]Processing tag 1006 (03EE) [00:19:55]Load OK [00:19:55]SetTLVBufToDocument [00:19:55]Processing tag 1010 (03F2) [00:19:55]Malloc new data [00:19:55]Processing tag 1011 (03F3) [00:19:55]Malloc new data [00:19:55]SetTLVBufToDocument err=0 [00:19:55]Processing tag 1007 (03EF) [00:19:55]Load OK [00:19:55]SetTLVBufToDocument [00:19:55]Processing tag 1014 (03F6) [00:19:55]Malloc new data [00:19:55]Processing tag 1015 (03F7) [00:19:55]Malloc new data [00:19:55]SetTLVBufToDocument err=0 [00:19:55]Processing tag 1007 (03EF) [00:19:55]Load OK [00:19:55]SetTLVBufToDocument [00:19:55]Processing tag 1014 (03F6) [00:19:55]Malloc new data [00:19:55]Processing tag 1015 (03F7) [00:19:55]Malloc new data [00:19:55]SetTLVBufToDocument err=0 [00:19:55]Processing tag 1007 (03EF) [00:19:55]Load OK [00:19:55]SetTLVBufToDocument [00:19:55]Processing tag 1014 (03F6) [00:19:55]Malloc new data [00:19:55]Processing tag 1015 (03F7) [00:19:55]Malloc new data [00:19:55]SetTLVBufToDocument err=0 [00:19:55]Processing tag 1007 (03EF) [00:19:55]Load OK [00:19:55]SetTLVBufToDocument [00:19:55]Processing tag 1014 (03F6) [00:19:55]Malloc new data [00:19:55]Processing tag 1015 (03F7) [00:19:55]Malloc new data [00:19:55]SetTLVBufToDocument err=0 [00:19:55]Processing tag 1007 (03EF) [00:19:55]Load OK [00:19:55]SetTLVBufToDocument [00:19:55]Processing tag 1014 (03F6) [00:19:55]Malloc new data [00:19:55]Processing tag 1015 (03F7) [00:19:55]Malloc new data [00:19:55]SetTLVBufToDocument err=0 [00:19:55]Processing tag 1007 (03EF) [00:19:55]Load OK [00:19:55]OFD Sender: No OFD packet to send [00:19:55]SetTLVBufToDocument [00:19:55]Processing tag 1014 (03F6) [00:19:55]Malloc new data [00:19:55]Processing tag 1015 (03F7) [00:19:55]Malloc new data [00:19:55]SetTLVBufToDocument err=0 [00:19:55]Processing tag 1007 (03EF) [00:19:55]Load OK [00:19:55]SetTLVBufToDocument [00:19:55]Processing tag 1014 (03F6) [00:19:55]Malloc new data [00:19:55]Processing tag 1015 (03F7) [00:19:55]Malloc new data [00:19:55]SetTLVBufToDocument err=0 [00:19:55]SetTLVBufToDocument err=0 [00:19:55]SetTLVBufToDocument err=0 [00:19:55]Processing tag 1133 (046D) [00:19:55]Malloc new data [00:19:55]SetTLVBufToDocument err=0 [00:19:55]Processing tag 1077 (0435) [00:19:55]Malloc new data [00:19:55]SetTLVBufToDocument err=0 [00:19:55]Malloc new data [00:19:55]SAM_PROTO_GetFMData [00:19:55]wFMCommunicate request_size=4 [00:19:55]MH_SAM_APDU [00:19:55]CAPDU: 80 13 03 00 [00:19:55]Write to MH i2c: E2 08 00 67 16 80 13 03 00 00 00 00 00 FC [00:19:55]Write i2c OK [00:19:55]MH_I2C_Read... [00:19:56]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:19:56]Read from MH i2c: E2 [00:19:56]MH_I2C_Read... [00:19:56]Read from MH i2c: E2 FD 00 [00:19:56]MH_I2C_Read... [00:19:56]Read from MH i2c: E2 FD 00 67 16 00 C3 04 85 04 BF 04 6E 04 04 00 F4 71 00 00 69 04 A1 00 6F 04 04 00 8D 6E 00 00 B1 04 04 00 4C 14 1E B4 70 04 04 00 24 17 B6 72 72 04 04 00 28 FD 67 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 B5 9B 21 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 30 19 98 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 67 03 00 00 B1 04 04 00 D4 9F F7 0C 70 04 04 00 D4 9F F7 0C 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B0 90 60 01 EF 03 09 00 F6 90 00 2D [00:19:56]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 F4 71 00 00 69 04 A1 00 6F 04 04 00 8D 6E 00 00 B1 04 04 00 4C 14 1E B4 70 04 04 00 24 17 B6 72 72 04 04 00 28 FD 67 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 B5 9B 21 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 30 19 98 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 67 03 00 00 B1 04 04 00 D4 9F F7 0C 70 04 04 00 D4 9F F7 0C 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B0 90 60 01 EF 03 09 00 F6 90 00 [00:19:56]wFMCommunicate OK [00:19:56]wFMCommunicate request_size=4 [00:19:56]MH_SAM_APDU [00:19:56]CAPDU: 80 17 00 00 [00:19:56]Write to MH i2c: E2 08 00 68 16 80 17 00 00 00 00 00 00 FE [00:19:56]Write i2c OK [00:19:56]MH_I2C_Read... [00:19:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:56]Read from MH i2c: E2 [00:19:56]MH_I2C_Read... [00:19:56]Read from MH i2c: E2 FD 00 [00:19:56]MH_I2C_Read... [00:19:56]Read from MH i2c: E2 FD 00 68 16 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 F4 60 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 90 00 2F [00:19:57]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 F4 60 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 90 00 [00:19:57]wFMCommunicate OK [00:19:57]wFMCommunicate request_size=4 [00:19:57]MH_SAM_APDU [00:19:57]CAPDU: 80 17 00 00 [00:19:57]Write to MH i2c: E2 08 00 69 16 80 17 00 00 00 00 00 00 FF [00:19:57]Write i2c OK [00:19:57]MH_I2C_Read... [00:19:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:57]Read from MH i2c: E2 [00:19:57]MH_I2C_Read... [00:19:57]Read from MH i2c: E2 FD 00 [00:19:57]MH_I2C_Read... [00:19:57]Read from MH i2c: E2 FD 00 69 16 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 90 00 1D [00:19:57]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 90 00 [00:19:57]wFMCommunicate OK [00:19:57]wFMCommunicate request_size=4 [00:19:57]MH_SAM_APDU [00:19:57]CAPDU: 80 17 00 00 [00:19:57]Write to MH i2c: E2 08 00 6A 16 80 17 00 00 00 00 00 00 00 [00:19:57]Write i2c OK [00:19:57]MH_I2C_Read... [00:19:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:57]Read from MH i2c: E2 [00:19:57]MH_I2C_Read... [00:19:57]Read from MH i2c: E2 FD 00 [00:19:57]MH_I2C_Read... [00:19:57]Read from MH i2c: E2 FD 00 6A 16 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 72 [00:19:58]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [00:19:58]wFMCommunicate OK [00:19:58]wFMCommunicate request_size=4 [00:19:58]MH_SAM_APDU [00:19:58]CAPDU: 80 17 00 00 [00:19:58]Write to MH i2c: E2 08 00 6B 16 80 17 00 00 00 00 00 00 01 [00:19:58]Write i2c OK [00:19:58]MH_I2C_Read... [00:19:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [00:19:58]Read from MH i2c: E2 [00:19:58]MH_I2C_Read... [00:19:58]Read from MH i2c: E2 E0 00 [00:19:58]MH_I2C_Read... [00:19:58]Read from MH i2c: E2 E0 00 6B 16 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 EB [00:19:58]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:19:58]wFMCommunicate OK [00:19:58]SAM_PROTO_GetFMData done [00:19:58]Malloc new data [00:19:58]Malloc new data [00:19:58]Malloc new data [00:19:58]Malloc new data [00:19:58]KKMLoadAndSignCloseShiftData err=0 [00:19:58]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Аликбаева. Д. 15.04.2024 00:19 Смена: 116 РНМ: 0000138879044617 ЗНМ: 0300000027 СНО: Общий режим Чеков за смену: 314 ФД за смену: 316 Всего чеков: 314 ИТОГИ ПРИХОД Чеков: 307 Общий итог: 348172.21 Итого наличными: 233677.00 Итого безнал.: 114495.21 НДС 0% : 0.00 НДС 12% : 36981.69 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 3081.54 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 7 Общий итог: 56711.00 Итого наличными: 56711.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 6022.65 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 501.89 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 176966.00 НС Приход: 30218701.56 НС Возвр.Прихода: 2175549.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 29405 ФМ: 0000000000963154 ФПД: 159384168604843 [00:19:58]StoreToDocumentArchive [00:19:58]shift 116 fd 29405 [00:19:58]save to /storage/0116/doc_00029405 [00:19:58]save last doc name /storage/0116/doc_00029405 to /storage/kkm_last_doc_name [00:19:58]save OK [00:19:58]Clear old archive folders... [00:19:58]Remove dir /storage/0010 [00:19:58]opendir ok [00:19:58]file . [00:19:58]file .. [00:19:58]file doc_1713140222 [00:19:58]remove file /storage/0010/doc_1713140222 [00:19:58]remove dir /storage/0010 [00:19:58]NVStorageSaveData kkm_registers [00:19:58]File name is /storage/kkm_registers [00:19:58]Write 24 bytes [00:19:58]NVStorageSaveData done [00:19:58]NVStorageSaveData kkm_registers [00:19:58]File name is /storage/kkm_registers [00:19:58]Write 24 bytes [00:19:58]NVStorageSaveData done [00:19:58]ProcessDocumentItem done err = 0, tmpTLVsize=1392 [00:19:58]tlvbuf is 0028C900 [00:19:58]SAM_PROTO_ClearQueue [00:19:58]wFMCommunicate request_size=4 [00:19:58]MH_SAM_APDU [00:19:58]CAPDU: 80 09 00 00 [00:19:58]Write to MH i2c: E2 08 00 6C 16 80 09 00 00 00 00 00 00 F4 [00:19:58]Write i2c OK [00:19:58]MH_I2C_Read... [00:19:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:19:58]Read from MH i2c: E2 [00:19:58]MH_I2C_Read... [00:19:58]Read from MH i2c: E2 03 00 [00:19:58]MH_I2C_Read... [00:19:58]Read from MH i2c: E2 03 00 6C 16 00 90 00 F6 [00:19:58]RAPDU: 90 00 [00:19:58]wFMCommunicate OK [00:19:58]SAM_PROTO_ClearQueue done [00:19:58]KKMCreateOFDPacket [00:19:58]OFDProtocolAddRootSTLVToBuf [00:19:58]FM_MakeSignedData [00:19:58]FM_MakeSignedData [00:19:58]SAM_PROTO_SignData [00:19:58]wFMCommunicate request_size=4 [00:19:58]MH_SAM_APDU [00:19:58]CAPDU: 80 0D 01 02 [00:19:58]Write to MH i2c: E2 08 00 6D 16 80 0D 01 02 00 00 00 00 FC [00:19:58]Write i2c OK [00:19:58]MH_I2C_Read... [00:19:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:19:59]Read from MH i2c: E2 [00:19:59]MH_I2C_Read... [00:19:59]Read from MH i2c: E2 03 00 [00:19:59]MH_I2C_Read... [00:19:59]Read from MH i2c: E2 03 00 6D 16 00 90 00 F7 [00:19:59]RAPDU: 90 00 [00:19:59]wFMCommunicate OK [00:19:59]wFMCommunicate request_size=255 [00:19:59]MH_SAM_APDU [00:19:59]CAPDU: 80 0D 02 02 FA 05 00 70 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 18 00 D0 90 D0 BB D0 B8 D0 BA D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 2E 20 D0 94 2E 20 F4 03 04 00 A9 72 1C 66 0E 04 04 00 74 00 00 00 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 5E 04 04 00 3A 01 00 00 57 04 04 00 3C 01 00 00 AA 04 DF 04 6E 04 04 00 3A 01 00 00 69 04 A5 00 6F 04 04 00 33 01 00 00 B1 04 04 00 C5 44 13 02 70 04 04 00 14 90 64 01 72 04 03 00 B1 B4 AE 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 6D 38 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 [00:19:59]Write to MH i2c: E2 02 01 6E 16 80 0D 02 02 FA 00 05 00 70 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 18 00 D0 90 D0 BB D0 B8 D0 BA D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 2E 20 D0 94 2E 20 F4 03 04 00 A9 72 1C 66 0E 04 04 00 74 00 00 00 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 5E 04 04 00 3A 01 00 00 57 04 04 00 3C 01 00 00 AA 04 DF 04 6E 04 04 00 3A 01 00 00 69 04 A5 00 6F 04 04 00 33 01 00 00 B1 04 04 00 C5 44 13 02 70 04 04 00 14 90 64 01 72 04 03 00 B1 B4 AE 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 6D 38 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 00 00 F8 [00:19:59]Write i2c OK [00:19:59]MH_I2C_Read... [00:19:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:19:59]Read from MH i2c: E2 [00:19:59]MH_I2C_Read... [00:19:59]Read from MH i2c: E2 03 00 [00:19:59]MH_I2C_Read... [00:19:59]Read from MH i2c: E2 03 00 6E 16 00 90 00 F8 [00:19:59]RAPDU: 90 00 [00:19:59]wFMCommunicate OK [00:19:59]wFMCommunicate request_size=255 [00:19:59]MH_SAM_APDU [00:19:59]CAPDU: 80 0D 02 02 FA 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 BA B3 04 6A 04 A0 00 6F 04 04 00 07 00 00 00 B1 04 03 00 BC 88 56 70 04 03 00 BC 88 56 72 04 01 00 00 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 99 30 09 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 0D C4 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:19:59]Write to MH i2c: E2 02 01 6F 16 80 0D 02 02 FA 00 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 BA B3 04 6A 04 A0 00 6F 04 04 00 07 00 00 00 B1 04 03 00 BC 88 56 70 04 03 00 BC 88 56 72 04 01 00 00 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 99 30 09 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 0D C4 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 00 E4 [00:19:59]Write i2c OK [00:19:59]MH_I2C_Read... [00:20:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:20:00]Read from MH i2c: E2 [00:20:00]MH_I2C_Read... [00:20:00]Read from MH i2c: E2 03 00 [00:20:00]MH_I2C_Read... [00:20:00]Read from MH i2c: E2 03 00 6F 16 00 90 00 F9 [00:20:00]RAPDU: 90 00 [00:20:00]wFMCommunicate OK [00:20:00]wFMCommunicate request_size=255 [00:20:00]MH_SAM_APDU [00:20:00]CAPDU: 80 0D 02 02 FA 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:20:00]Write to MH i2c: E2 02 01 70 16 80 0D 02 02 FA 00 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 BE [00:20:00]Write i2c OK [00:20:00]MH_I2C_Read... [00:20:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:20:00]Read from MH i2c: E2 [00:20:00]MH_I2C_Read... [00:20:00]Read from MH i2c: E2 03 00 [00:20:00]MH_I2C_Read... [00:20:00]Read from MH i2c: E2 03 00 70 16 00 90 00 FA [00:20:00]RAPDU: 90 00 [00:20:00]wFMCommunicate OK [00:20:00]wFMCommunicate request_size=255 [00:20:00]MH_SAM_APDU [00:20:00]CAPDU: 80 0D 02 02 FA 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 [00:20:00]Write to MH i2c: E2 02 01 71 16 80 0D 02 02 FA 00 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 OFD Sender: No OFD packet to send [00:20:01]04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 00 00 C4 [00:20:01]Write i2c OK [00:20:01]MH_I2C_Read... [00:20:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:20:01]Read from MH i2c: E2 [00:20:01]MH_I2C_Read... [00:20:01]Read from MH i2c: E2 03 00 [00:20:01]MH_I2C_Read... [00:20:01]Read from MH i2c: E2 03 00 71 16 00 90 00 FB [00:20:01]RAPDU: 90 00 [00:20:01]wFMCommunicate OK [00:20:01]wFMCommunicate request_size=255 [00:20:01]MH_SAM_APDU [00:20:01]CAPDU: 80 0D 02 02 FA 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:20:01]Write to MH i2c: E2 02 01 72 16 80 0D 02 02 FA 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 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 00 00 9F [00:20:01]Write i2c OK [00:20:01]MH_I2C_Read... [00:20:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:20:02]Read from MH i2c: E2 [00:20:02]MH_I2C_Read... [00:20:02]Read from MH i2c: E2 03 00 [00:20:02]MH_I2C_Read... [00:20:02]Read from MH i2c: E2 03 00 72 16 00 90 00 FC [00:20:02]RAPDU: 90 00 [00:20:02]wFMCommunicate OK [00:20:02]wFMCommunicate request_size=151 [00:20:02]MH_SAM_APDU [00:20:02]CAPDU: 80 0D 02 02 92 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 DD 72 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 35 04 06 00 90 F5 84 C0 A4 AB [00:20:02]Write to MH i2c: E2 9A 00 73 16 80 0D 02 02 92 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 DD 72 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 35 04 06 00 90 F5 84 C0 A4 AB 00 00 A1 [00:20:02]Write i2c OK [00:20:02]MH_I2C_Read... [00:20:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:20:02]Read from MH i2c: E2 [00:20:02]MH_I2C_Read... [00:20:02]Read from MH i2c: E2 03 00 [00:20:02]MH_I2C_Read... [00:20:02]Read from MH i2c: E2 03 00 73 16 00 90 00 FD [00:20:02]RAPDU: 90 00 [00:20:02]wFMCommunicate OK [00:20:02]wFMCommunicate request_size=4 [00:20:02]MH_SAM_APDU [00:20:02]CAPDU: 80 0D 03 02 [00:20:02]Write to MH i2c: E2 08 00 74 16 80 0D 03 02 00 00 00 00 05 [00:20:02]Write i2c OK [00:20:02]MH_I2C_Read... [00:20:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:20:02]Read from MH i2c: E2 [00:20:02]MH_I2C_Read... [00:20:02]Read from MH i2c: E2 0B 00 [00:20:02]MH_I2C_Read... [00:20:02]Read from MH i2c: E2 0B 00 74 16 00 AC 5B 46 40 10 42 F6 21 90 00 FC [00:20:02]RAPDU: AC 5B 46 40 10 42 F6 21 90 00 [00:20:02]wFMCommunicate OK [00:20:02]SAM_PROTO_SignData done [00:20:02]FM_MakeSignedData done [00:20:02]CreateOFDProtocolMessage [00:20:02]wFMCommunicate request_size=4 [00:20:02]MH_SAM_APDU [00:20:02]CAPDU: 80 11 00 00 [00:20:02]Write to MH i2c: E2 08 00 75 16 80 11 00 00 00 00 00 00 05 [00:20:02]Write i2c OK [00:20:02]MH_I2C_Read... [00:20:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:20:02]Read from MH i2c: E2 [00:20:02]MH_I2C_Read... [00:20:02]Read from MH i2c: E2 17 00 [00:20:02]MH_I2C_Read... [00:20:02]Read from MH i2c: E2 17 00 75 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 54 [00:20:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [00:20:02]wFMCommunicate OK [00:20:02]CreateOFDProtocolMessage done [00:20:02]OFDSenderStorePacket 29405 [00:20:02]StoreOFDPacket docnum=29405 [00:20:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 84 05 00 00 D8 D6 7C 05 79 E4 5A 05 01 00 05 00 70 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 18 00 D0 90 D0 BB D0 B8 D0 BA D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 2E 20 D0 94 2E 20 F4 03 04 00 A9 72 1C 66 0E 04 04 00 74 00 00 00 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 5E 04 04 00 3A 01 00 00 57 04 04 00 3C 01 00 00 AA 04 DF 04 6E 04 04 00 3A 01 00 00 69 04 A5 00 6F 04 04 00 33 01 00 00 B1 04 04 00 C5 44 13 02 70 04 04 00 14 90 64 01 72 04 03 00 B1 B4 AE 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 6D 38 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 BA B3 04 6A 04 A0 00 6F 04 04 00 07 00 00 00 B1 04 03 00 BC 88 56 70 04 03 00 BC 88 56 72 04 01 00 00 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 99 30 09 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 0D C4 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 DD 72 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 35 04 06 00 90 F5 84 C0 A4 AB AC 5B 46 40 10 42 F6 21 [00:20:02]CheckFolder [00:20:02]dirname=/storage/ofd_packets [00:20:02]CheckFolder done [00:20:02]ProducePacketName [00:20:02]name=ofd_packets/00029405 [00:20:02]NVStorageSaveData ofd_packets/00029405 [00:20:02]File name is /storage/ofd_packets/00029405 [00:20:02]Write 1442 bytes [00:20:02]NVStorageSaveData done [00:20:02]OFDSenderStorePacket done [00:20:02]KKMCreateOFDPacket done [00:20:02]NVStorageSaveData kkm_last_timestamp [00:20:02]File name is /storage/kkm_last_timestamp [00:20:02]Write 4 bytes [00:20:02]NVStorageSaveData done [00:20:02]ExternCall_PrintAddStr [00:20:02]wPrintStart [00:20:02]Write to MH i2c: 01 00 00 76 16 8C [00:20:02]Write i2c OK [00:20:02]MH_I2C_Read... [00:20:02]Read from MH i2c: 01 [00:20:02]MH_I2C_Read... [00:20:02]Read from MH i2c: 01 07 00 [00:20:02]MH_I2C_Read... [00:20:02]Read from MH i2c: 01 07 00 76 16 00 00 00 00 00 FF 0F A1 [00:20:02]RasterBufferAndPrint [00:20:02]line Отчет о закрытии смены [00:20:02]line ФФД: 1.0 [00:20:02]line ИНН: 02508201610067 [00:20:02]line Кассир: Аликбаева. Д. [00:20:02]line 15.04.2024 00:19 [00:20:02]line Смена: 116 [00:20:02]line РНМ: 0000138879044617 [00:20:02]line ЗНМ: 0300000027 [00:20:02]line СНО: Общий режим [00:20:02]line Чеков за смену: 314 [00:20:02]line ФД за смену: 316 [00:20:02]line Всего чеков: 314 [00:20:02]line ИТОГИ ПРИХОД [00:20:02]line Чеков: 307 [00:20:02]line Общий итог: 348172.21 [00:20:02]line Итого наличными: 233677.00 [00:20:02]line Итого безнал.: 114495.21 [00:20:02]line НДС 0% : 0.00 [00:20:02]line НДС 12% : 36981.69 [00:20:02]line НСП 0% : 0.00 [00:20:02]line НСП 1,50% : 0.00 [00:20:02]line НСП 0,50% : 0.00 [00:20:02]line НСП 5% : 0.00 [00:20:02]line НСП 3% : 0.00 [00:20:02]line НСП 2% : 0.00 [00:20:02]line НСП 1% : 3081.54 [00:20:02]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:20:02]line Чеков: 7 [00:20:02]line Общий итог: 56711.00 [00:20:02]line Итого наличными: 56711.00 [00:20:02]line Итого безнал.: 0.00 [00:20:02]line НДС 0% : 0.00 [00:20:02]line НДС 12% : 6022.65 [00:20:02]line НСП 0% : 0.00 [00:20:03]line НСП 1,50% : 0.00 [00:20:03]line НСП 0,50% : 0.00 [00:20:03]line НСП 5% : 0.00 [00:20:03]line НСП 3% : 0.00 [00:20:03]line НСП 2% : 0.00 [00:20:03]line НСП 1% : 501.89 [00:20:03]line ИТОГИ РАСХОД [00:20:03]line Чеков: 0 [00:20:03]line Общий итог: 0.00 [00:20:03]line Итого наличными: 0.00 [00:20:03]line Итого безнал.: 0.00 [00:20:03]line НДС 0% : 0.00 [00:20:03]line НДС 12% : 0.00 [00:20:03]line НСП 0% : 0.00 [00:20:03]line НСП 1,50% : 0.00 [00:20:03]line НСП 0,50% : 0.00 [00:20:03]line НСП 5% : 0.00 [00:20:03]line НСП 3% : 0.00 [00:20:03]line НСП 2% : 0.00 [00:20:03]line НСП 1% : 0.00 [00:20:03]line ИТОГИ ВОЗВРАТ РАСХОДА [00:20:03]line Чеков: 0 [00:20:03]line Общий итог: 0.00 [00:20:03]line Итого наличными: 0.00 [00:20:03]line Итого безнал.: 0.00 [00:20:03]line НДС 0% : 0.00 [00:20:03]line НДС 12% : 0.00 [00:20:03]line НСП 0% : 0.00 [00:20:03]line НСП 1,50% : 0.00 [00:20:03]line НСП 0,50% : 0.00 [00:20:03]line НСП 5% : 0.00 [00:20:03]line НСП 3% : 0.00 [00:20:03]line НСП 2% : 0.00 [00:20:03]line НСП 1% : 0.00 [00:20:03]line Сумма внесений: 0.00 [00:20:03]line Сумма выплат: 0.00 [00:20:03]line Нал. в кассе: 176966.00 [00:20:03]line НС Приход: 30218701.56 [00:20:03]line НС Возвр.Прихода: 2175549.00 [00:20:03]line НС Расход: 0.00 [00:20:03]line НС Возвр.Расхода: 0.00 [00:20:03]line ФД: 29405 [00:20:03]line ФМ: 0000000000963154 [00:20:03]line ФПД: 159384168604843 [00:20:03]OFD Sender: Processing packet 29405 [packets to send 8, broken 7] [00:20:03]ProducePacketName [00:20:03]name=ofd_packets/00029405 [00:20:03]OFD Sender: To server: pG, [00:20:03]CommunicateWithHost lk.salyk.kg:30040 [00:20:03]ConnectInit lk.salyk.kg [00:20:03]written 0, free lines is 4095 [00:20:03]Connected sock=10 [00:20:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 84 05 00 00 D8 D6 7C 05 79 E4 5A 05 01 00 05 00 70 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 18 00 D0 90 D0 BB D0 B8 D0 BA D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 2E 20 D0 94 2E 20 F4 03 04 00 A9 72 1C 66 0E 04 04 00 74 00 00 00 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 5E 04 04 00 3A 01 00 00 57 04 04 00 3C 01 00 00 AA 04 DF 04 6E 04 04 00 3A 01 00 00 69 04 A5 00 6F 04 04 00 33 01 00 00 B1 04 04 00 C5 44 13 02 70 04 04 00 14 90 64 01 72 04 03 00 B1 B4 AE 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 6D 38 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 BA B3 04 6A 04 A0 00 6F 04 04 00 07 00 00 00 B1 04 03 00 BC 88 56 70 04 03 00 BC 88 56 72 04 01 00 00 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 99 30 09 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 0D C4 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 Write to MH i2c: 00 01 00 00 EE 00 03 C6 09 16 00 DC F2 [00:20:04]03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 Write i2c OK [00:20:04]03 MH_I2C_Read... [00:20:04]00 Read from MH i2c: 00 01 EF [00:20:04]03 MH_I2C_Read... [00:20:04]09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 Read from MH i2c: F7 01 03 07 00 00 00 [00:20:04]EF MH_I2C_Read... [00:20:04]03 Read from MH i2c: 09 01 00 07 F6 00 03 C6 01 16 00 00 03 00 F7 00 03 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 00 09 7E 00 0B F6 6C 03 [00:20:04]01 RasterBufferAndPrint [00:20:04]00 line [00:20:04]05 line [00:20:04]F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 line [00:20:04]7A line [00:20:04]04 line [00:20:04]8D 00 6F 04 04 00 00 00 00 00 B1 written 0, free lines is 3059 [00:20:04]04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE MH_Cut [00:20:04]03 Write to MH i2c: 09 D1 00 01 00 F2 CD 03 16 01 01 00 B5 00 [00:20:04]F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 Write i2c OK [00:20:04]F6 MH_I2C_Read... [00:20:04]03 Read from MH i2c: 01 D1 00 [00:20:04]00 MH_I2C_Read... [00:20:04]F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 Read from MH i2c: 09 D1 00 01 F6 00 03 [00:20:04]01 MH_I2C_Read... [00:20:04]00 Read from MH i2c: 02 D1 F7 01 03 00 00 CD 00 16 EF 00 03 B4 09 [00:20:04]00 Write to MH i2c: F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 04 00 F7 00 CE 03 16 00 E4 00 [00:20:04]EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 Write i2c OK [00:20:04]00 MH_I2C_Read... [00:20:04]06 F7 03 00 00 10 04 04 00 DD 72 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 35 04 06 00 90 F5 84 C0 A4 AB AC 5B 46 40 10 42 F6 21 [00:20:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 7F 83 47 00 94 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 39 36 33 31 35 34 10 04 04 00 DD 72 00 00 F4 03 04 00 56 1D 1C 66 B6 04 01 00 00 01 AA 4B D4 B2 F2 1B AE [00:20:04]CommunicateWithHost err = 0 [00:20:04]CheckOFDResponse [00:20:04]1017 (14) - 77093643461234 [00:20:04]1041 (16) - 0000000000963154 [00:20:04]1040 (4) - 29405 [00:20:04]1012 (4) - 14.04.2024 18:15 [00:20:04]1206 (1) - 0 [00:20:04]OFD Sender: Remove packet 29405 [00:20:04]ProducePacketName [00:20:04]name=ofd_packets/00029405 [00:20:04]NVStorageDeleteData [00:20:05]*** Cut start [00:20:05]*** Partial cut [00:20:05]*** CUTSNS_PIN = 1 [00:20:05]*** CUTSNS_PIN = 0 [00:20:05]OFD Sender: No OFD packet to send [00:20:05]*** Brake cut motor [00:20:05]Read from MH i2c: 01 [00:20:05]MH_I2C_Read... [00:20:05]*** Stop cut motor [00:20:05]*** Cut end [00:20:05]Read from MH i2c: 01 07 00 [00:20:05]MH_I2C_Read... [00:20:05]Read from MH i2c: 01 07 00 CE 16 00 00 00 00 00 FF 0F F9 [00:20:05]process_action close_shift done [00:20:05]requested_data is exist [00:20:05]produce_requested_data [00:20:05]requested_item fd.num is exist - process it [00:20:05]SAM_PROTO_GetFieldsCounters [00:20:05]wFMCommunicate request_size=4 [00:20:05]MH_SAM_APDU [00:20:05]CAPDU: 80 13 00 00 [00:20:05]Write to MH i2c: E2 08 00 CF 16 80 13 00 00 00 00 00 00 61 [00:20:05]Write i2c OK [00:20:05]MH_I2C_Read... [00:20:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:20:05]Read from MH i2c: E2 [00:20:05]MH_I2C_Read... [00:20:05]Read from MH i2c: E2 62 00 [00:20:05]MH_I2C_Read... [00:20:05]Read from MH i2c: E2 62 00 CF 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DD 72 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 3A 01 00 00 5E 04 04 00 3A 01 00 00 57 04 04 00 3C 01 00 00 19 04 04 00 00 00 00 00 90 00 14 [00:20:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DD 72 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 3A 01 00 00 5E 04 04 00 3A 01 00 00 57 04 04 00 3C 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:20:06]wFMCommunicate OK [00:20:06]SAM_PROTO_GetFieldsCounters done [00:20:06]requested_item shift.num is exist - process it [00:20:06]requested_item shift.opened is exist - process it [00:20:06]req_shift_opened [00:20:06]FM_GetShiftState [00:20:06]SAM_PROTO_GetShiftState [00:20:06]wFMCommunicate request_size=4 [00:20:06]MH_SAM_APDU [00:20:06]CAPDU: 80 13 01 00 [00:20:06]Write to MH i2c: E2 08 00 D0 16 80 13 01 00 00 00 00 00 63 [00:20:06]Write i2c OK [00:20:06]MH_I2C_Read... [00:20:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:20:06]Read from MH i2c: E2 [00:20:06]MH_I2C_Read... [00:20:06]Read from MH i2c: E2 0E 00 [00:20:06]MH_I2C_Read... [00:20:06]Read from MH i2c: E2 0E 00 D0 16 00 09 00 00 00 00 00 00 00 00 00 00 90 00 6E [00:20:06]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:20:06]wFMCommunicate OK [00:20:06]SAM_PROTO_GetShiftState done [00:20:06]FM_GetShiftState done [00:20:06]req_shift_opened done [00:20:06]requested_item shift.open_date is exist - process it [00:20:06]req_shift_open_date [00:20:06]FM_GetShiftState [00:20:06]SAM_PROTO_GetShiftState [00:20:06]wFMCommunicate request_size=4 [00:20:06]MH_SAM_APDU [00:20:06]CAPDU: 80 13 01 00 [00:20:06]Write to MH i2c: E2 08 00 D1 16 80 13 01 00 00 00 00 00 64 [00:20:06]Write i2c OK [00:20:06]MH_I2C_Read... [00:20:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:20:06]Read from MH i2c: E2 [00:20:06]MH_I2C_Read... [00:20:06]Read from MH i2c: E2 0E 00 [00:20:06]MH_I2C_Read... [00:20:06]Read from MH i2c: E2 0E 00 D1 16 00 09 00 00 00 00 00 00 00 00 00 00 90 00 6F [00:20:06]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:20:06]wFMCommunicate OK [00:20:06]SAM_PROTO_GetShiftState done [00:20:06]FM_GetShiftState done [00:20:06]req_shift_open_date done [00:20:06]produce_requested_data done [00:20:06]produce_requested_data return {"fd.num":29405,"shift.num":116,"shift.opened":0,"shift.open_date":0} [00:20:06]process_action_free close_shift [00:20:06]json_value_free [00:20:06]json_value_free done [00:20:06]process_json_proto returns [00:20:06]Send response to host [00:20:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":29405,"shift.num":116,"shift.opened":0,"shift.open_date":0}}} [00:20:06]free response buf [00:20:06]execute_script done [00:20:06]execute_script returns [00:20:06]free content buf [00:20:06]Sock 9.Close socket [00:20:06]Sock 9.Thread stoped [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:02]accept exits with 8 [00:21:02]New connection [00:21:02]New thread 3066969444 created [00:21:02]Thread 3067112804 joined [00:21:02]Waiting for new connection... [00:21:02] Sock 8.Parse request [00:21:02]Sock 8.Check first char [00:21:02]Sock 8.First char is OK [00:21:02]request: POST /json_proto HTTP/1.0 [00:21:02]Method: POST [00:21:02]URL: /json_proto [00:21:02]Method is POST - this is cgi request [00:21:02]url: /json_proto [00:21:02]query_string will be loaded in cgi processing [00:21:02]execute_cgi json_proto POST (null) [00:21:02]execute_cgi path=json_proto method=POST [00:21:02]POST find Content-Length [00:21:02]Host: 172.17.33.3:8080 [00:21:02]Content-Length: 215 [00:21:02]Content-Type: application/json [00:21:02] [00:21:02]POST finish read [00:21:02]Found Content-Length = 215 [00:21:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:21:02]execute_script... [00:21:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:21:02]POST & json_proto [00:21:02]process_json_proto [00:21:02]json parsed OK: [00:21:02]protocol is kg_v1.0 [00:21:02]action value=get_value [00:21:02]process_action get_value [00:21:02]cmd_get_value [00:21:02]process_action get_value done [00:21:02]requested_data is exist [00:21:02]produce_requested_data [00:21:02]requested_item kkm.sn is exist - process it [00:21:02]requested_item kkm.ver is exist - process it [00:21:02]requested_item fm.sn is exist - process it [00:21:02]wFMCommunicate request_size=4 [00:21:02]MH_SAM_APDU [00:21:02]CAPDU: 80 11 00 00 [00:21:02]Write to MH i2c: E2 08 00 D2 16 80 11 00 00 00 00 00 00 62 [00:21:02]Write i2c OK [00:21:02]MH_I2C_Read... [00:21:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:21:02]Read from MH i2c: E2 [00:21:02]MH_I2C_Read... [00:21:02]Read from MH i2c: E2 17 00 [00:21:02]MH_I2C_Read... [00:21:02]Read from MH i2c: E2 17 00 D2 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B1 [00:21:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [00:21:02]wFMCommunicate OK [00:21:02]requested_item fd.num is exist - process it [00:21:02]SAM_PROTO_GetFieldsCounters [00:21:02]wFMCommunicate request_size=4 [00:21:02]MH_SAM_APDU [00:21:02]CAPDU: 80 13 00 00 [00:21:02]Write to MH i2c: E2 08 00 D3 16 80 13 00 00 00 00 00 00 65 [00:21:02]Write i2c OK [00:21:02]MH_I2C_Read... [00:21:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:21:02]Read from MH i2c: E2 [00:21:02]MH_I2C_Read... [00:21:02]Read from MH i2c: E2 62 00 [00:21:02]MH_I2C_Read... [00:21:02]Read from MH i2c: E2 62 00 D3 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DD 72 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 3A 01 00 00 5E 04 04 00 3A 01 00 00 57 04 04 00 3C 01 00 00 19 04 04 00 00 00 00 00 90 00 18 [00:21:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DD 72 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 3A 01 00 00 5E 04 04 00 3A 01 00 00 57 04 04 00 3C 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:21:02]wFMCommunicate OK [00:21:02]SAM_PROTO_GetFieldsCounters done [00:21:02]requested_item shift.num is exist - process it [00:21:02]requested_item shift.opened is exist - process it [00:21:02]req_shift_opened [00:21:02]FM_GetShiftState [00:21:02]SAM_PROTO_GetShiftState [00:21:02]wFMCommunicate request_size=4 [00:21:02]MH_SAM_APDU [00:21:02]CAPDU: 80 13 01 00 [00:21:02]Write to MH i2c: E2 08 00 D4 16 80 13 01 00 00 00 00 00 67 [00:21:02]Write i2c OK [00:21:02]MH_I2C_Read... [00:21:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:21:02]Read from MH i2c: E2 [00:21:02]MH_I2C_Read... [00:21:02]Read from MH i2c: E2 0E 00 [00:21:02]MH_I2C_Read... [00:21:02]Read from MH i2c: E2 0E 00 D4 16 00 09 00 00 00 00 00 00 00 00 00 00 90 00 72 [00:21:02]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:21:02]wFMCommunicate OK [00:21:02]SAM_PROTO_GetShiftState done [00:21:02]FM_GetShiftState done [00:21:02]req_shift_opened done [00:21:02]requested_item shift.open_date is exist - process it [00:21:02]req_shift_open_date [00:21:02]FM_GetShiftState [00:21:02]SAM_PROTO_GetShiftState [00:21:02]wFMCommunicate request_size=4 [00:21:02]MH_SAM_APDU [00:21:02]CAPDU: 80 13 01 00 [00:21:02]Write to MH i2c: E2 08 00 D5 16 80 13 01 00 00 00 00 00 68 [00:21:02]Write i2c OK [00:21:02]MH_I2C_Read... [00:21:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:21:02]Read from MH i2c: E2 [00:21:02]MH_I2C_Read... [00:21:02]Read from MH i2c: E2 0E 00 [00:21:02]MH_I2C_Read... [00:21:02]Read from MH i2c: E2 0E 00 D5 16 00 09 00 00 00 00 00 00 00 00 00 00 90 00 73 [00:21:02]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:21:02]wFMCommunicate OK [00:21:02]SAM_PROTO_GetShiftState done [00:21:02]FM_GetShiftState done [00:21:02]req_shift_open_date done [00:21:02]produce_requested_data done [00:21:02]produce_requested_data return {"kkm.sn":"0300000027","kkm.ver":"001","fm.sn":"0000000000963154","fd.num":29405,"shift.num":116,"shift.opened":0,"shift.open_date":0} [00:21:02]process_action_free get_value [00:21:02]json_value_free [00:21:02]json_value_free done [00:21:02]process_json_proto returns [00:21:02]Send response to host [00:21:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000027","kkm.ver":"001","fm.sn":"0000000000963154","fd.num":29405,"shift.num":116,"shift.opened":0,"shift.open_date":0}}} [00:21:02]free response buf [00:21:02]execute_script done [00:21:02]execute_script returns [00:21:02]free content buf [00:21:02]Sock 8.Close socket [00:21:02]Sock 8.Thread stoped [00:21:02]accept exits with 9 [00:21:02]New connection [00:21:02]New thread 3067112804 created [00:21:02]Thread 3066969444 joined [00:21:02]Waiting for new connection... [00:21:02] Sock 9.Parse request [00:21:02]Sock 9.Check first char [00:21:02]Sock 9.First char is OK [00:21:02]request: POST /json_proto HTTP/1.0 [00:21:02]Method: POST [00:21:02]URL: /json_proto [00:21:02]Method is POST - this is cgi request [00:21:02]url: /json_proto [00:21:02]query_string will be loaded in cgi processing [00:21:02]execute_cgi json_proto POST (null) [00:21:02]execute_cgi path=json_proto method=POST [00:21:02]POST find Content-Length [00:21:02]Host: 172.17.33.3:8080 [00:21:02]Content-Length: 331 [00:21:02]Content-Type: application/json [00:21:02] [00:21:02]POST finish read [00:21:02]Found Content-Length = 331 [00:21:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:21:02]execute_script... [00:21:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:21:03]POST & json_proto [00:21:03]process_json_proto [00:21:03]json parsed OK: [00:21:03]protocol is kg_v1.0 [00:21:03]action value=get_value [00:21:03]process_action get_value [00:21:03]cmd_get_value [00:21:03]process_action get_value done [00:21:03]requested_data is exist [00:21:03]produce_requested_data [00:21:03]requested_item fm.sale.total is exist - process it [00:21:03]SAM_PROTO_GetFMData [00:21:03]wFMCommunicate request_size=4 [00:21:03]MH_SAM_APDU [00:21:03]CAPDU: 80 13 03 00 [00:21:03]Write to MH i2c: E2 08 00 D6 16 80 13 03 00 00 00 00 00 6B [00:21:03]Write i2c OK [00:21:03]MH_I2C_Read... [00:21:03]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:21:03]Read from MH i2c: E2 [00:21:03]MH_I2C_Read... [00:21:03]Read from MH i2c: E2 FD 00 [00:21:03]MH_I2C_Read... [00:21:03]Read from MH i2c: E2 FD 00 D6 16 00 C3 04 85 04 BF 04 6E 04 04 00 F4 71 00 00 69 04 A1 00 6F 04 04 00 8D 6E 00 00 B1 04 04 00 4C 14 1E B4 70 04 04 00 24 17 B6 72 72 04 04 00 28 FD 67 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 B5 9B 21 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 30 19 98 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 67 03 00 00 B1 04 04 00 D4 9F F7 0C 70 04 04 00 D4 9F F7 0C 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B0 90 60 01 EF 03 09 00 F6 90 00 9C [00:21:03]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 F4 71 00 00 69 04 A1 00 6F 04 04 00 8D 6E 00 00 B1 04 04 00 4C 14 1E B4 70 04 04 00 24 17 B6 72 72 04 04 00 28 FD 67 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 B5 9B 21 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 30 19 98 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 67 03 00 00 B1 04 04 00 D4 9F F7 0C 70 04 04 00 D4 9F F7 0C 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B0 90 60 01 EF 03 09 00 F6 90 00 [00:21:03]wFMCommunicate OK [00:21:03]wFMCommunicate request_size=4 [00:21:03]MH_SAM_APDU [00:21:03]CAPDU: 80 17 00 00 [00:21:03]Write to MH i2c: E2 08 00 D7 16 80 17 00 00 00 00 00 00 6D [00:21:03]Write i2c OK [00:21:03]MH_I2C_Read... [00:21:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:03]Read from MH i2c: E2 [00:21:03]MH_I2C_Read... [00:21:03]Read from MH i2c: E2 FD 00 [00:21:03]MH_I2C_Read... [00:21:03]Read from MH i2c: E2 FD 00 D7 16 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 F4 60 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 90 00 9E [00:21:03]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 F4 60 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 90 00 [00:21:03]wFMCommunicate OK [00:21:03]wFMCommunicate request_size=4 [00:21:03]MH_SAM_APDU [00:21:03]CAPDU: 80 17 00 00 [00:21:03]Write to MH i2c: E2 08 00 D8 16 80 17 00 00 00 00 00 00 6E [00:21:03]Write i2c OK [00:21:03]MH_I2C_Read... [00:21:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:03]Read from MH i2c: E2 [00:21:03]MH_I2C_Read... [00:21:03]Read from MH i2c: E2 FD 00 [00:21:03]MH_I2C_Read... [00:21:03]Read from MH i2c: E2 FD 00 D8 16 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 90 00 8C [00:21:03]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 90 00 [00:21:03]wFMCommunicate OK [00:21:03]wFMCommunicate request_size=4 [00:21:03]MH_SAM_APDU [00:21:03]CAPDU: 80 17 00 00 [00:21:03]Write to MH i2c: E2 08 00 D9 16 80 17 00 00 00 00 00 00 6F [00:21:03]Write i2c OK [00:21:03]MH_I2C_Read... [00:21:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:04]Read from MH i2c: E2 [00:21:04]MH_I2C_Read... [00:21:04]Read from MH i2c: E2 FD 00 [00:21:04]MH_I2C_Read... [00:21:04]Read from MH i2c: E2 FD 00 D9 16 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 E1 [00:21:04]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [00:21:04]wFMCommunicate OK [00:21:04]wFMCommunicate request_size=4 [00:21:04]MH_SAM_APDU [00:21:04]CAPDU: 80 17 00 00 [00:21:04]Write to MH i2c: E2 08 00 DA 16 80 17 00 00 00 00 00 00 70 [00:21:04]Write i2c OK [00:21:04]MH_I2C_Read... [00:21:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [00:21:04]Read from MH i2c: E2 [00:21:04]MH_I2C_Read... [00:21:04]Read from MH i2c: E2 E0 00 [00:21:04]MH_I2C_Read... [00:21:04]Read from MH i2c: E2 E0 00 DA 16 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 5A [00:21:04]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:21:04]wFMCommunicate OK [00:21:04]SAM_PROTO_GetFMData done [00:21:04]requested_item fm.sale_refund.total is exist - process it [00:21:04]requested_item fm.buy.total is exist - process it [00:21:04]requested_item shift.sale.total is exist - process it [00:21:04]SAM_PROTO_GetShiftData [00:21:04]wFMCommunicate request_size=4 [00:21:04]MH_SAM_APDU [00:21:04]CAPDU: 80 13 02 00 [00:21:04]Write to MH i2c: E2 08 00 DB 16 80 13 02 00 00 00 00 00 6F [00:21:04]Write i2c OK [00:21:04]MH_I2C_Read... [00:21:04]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:21:04]Read from MH i2c: E2 [00:21:04]MH_I2C_Read... [00:21:04]Read from MH i2c: E2 FD 00 [00:21:04]MH_I2C_Read... [00:21:04]Read from MH i2c: E2 FD 00 DB 16 00 BC 04 AA 04 B8 04 6E 04 04 00 3A 01 00 00 69 04 9E 00 6F 04 04 00 33 01 00 00 B1 04 04 00 C5 44 13 02 70 04 04 00 14 90 64 01 72 04 03 00 B1 B4 AE 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 6D 38 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 BA B3 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 98 00 6F 04 04 00 07 00 00 00 B1 04 03 00 BC 88 56 70 04 03 00 BC 88 56 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 99 30 09 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 48 [00:21:04]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 3A 01 00 00 69 04 9E 00 6F 04 04 00 33 01 00 00 B1 04 04 00 C5 44 13 02 70 04 04 00 14 90 64 01 72 04 03 00 B1 B4 AE 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 6D 38 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 BA B3 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 98 00 6F 04 04 00 07 00 00 00 B1 04 03 00 BC 88 56 70 04 03 00 BC 88 56 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 99 30 09 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:21:04]wFMCommunicate OK [00:21:04]wFMCommunicate request_size=4 [00:21:04]MH_SAM_APDU [00:21:04]CAPDU: 80 17 00 00 [00:21:04]Write to MH i2c: E2 08 00 DC 16 80 17 00 00 00 00 00 00 72 [00:21:04]Write i2c OK [00:21:04]MH_I2C_Read... [00:21:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:05]Read from MH i2c: E2 [00:21:05]MH_I2C_Read... [00:21:05]Read from MH i2c: E2 FD 00 [00:21:05]MH_I2C_Read... [00:21:05]Read from MH i2c: E2 FD 00 DC 16 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 0D C4 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 ED [00:21:05]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 0D C4 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:21:05]wFMCommunicate OK [00:21:05]wFMCommunicate request_size=4 [00:21:05]MH_SAM_APDU [00:21:05]CAPDU: 80 17 00 00 [00:21:05]Write to MH i2c: E2 08 00 DD 16 80 17 00 00 00 00 00 00 73 [00:21:05]Write i2c OK [00:21:05]MH_I2C_Read... [00:21:05]OFD Sender: No OFD packet to send [00:21:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:05]Read from MH i2c: E2 [00:21:05]MH_I2C_Read... [00:21:05]Read from MH i2c: E2 FD 00 [00:21:05]MH_I2C_Read... [00:21:05]Read from MH i2c: E2 FD 00 DD 16 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 9C [00:21:05]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:21:05]wFMCommunicate OK [00:21:05]wFMCommunicate request_size=4 [00:21:05]MH_SAM_APDU [00:21:05]CAPDU: 80 17 00 00 [00:21:05]Write to MH i2c: E2 08 00 DE 16 80 17 00 00 00 00 00 00 74 [00:21:05]Write i2c OK [00:21:05]MH_I2C_Read... [00:21:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:05]Read from MH i2c: E2 [00:21:05]MH_I2C_Read... [00:21:05]Read from MH i2c: E2 FD 00 [00:21:05]MH_I2C_Read... [00:21:05]Read from MH i2c: E2 FD 00 DE 16 00 03 00 00 EF 03 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 90 00 F5 [00:21:05]RAPDU: 03 00 00 EF 03 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 90 00 [00:21:05]wFMCommunicate OK [00:21:05]wFMCommunicate request_size=4 [00:21:05]MH_SAM_APDU [00:21:05]CAPDU: 80 17 00 00 [00:21:05]Write to MH i2c: E2 08 00 DF 16 80 17 00 00 00 00 00 00 75 [00:21:05]Write i2c OK [00:21:05]MH_I2C_Read... [00:21:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [00:21:06]Read from MH i2c: E2 [00:21:06]MH_I2C_Read... [00:21:06]Read from MH i2c: E2 D9 00 [00:21:06]MH_I2C_Read... [00:21:06]Read from MH i2c: E2 D9 00 DF 16 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 54 [00:21:06]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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:21:06]wFMCommunicate OK [00:21:06]SAM_PROTO_GetShiftData done [00:21:06]requested_item shift.sale.total_cash is exist - process it [00:21:06]requested_item shift.sale_refund.total is exist - process it [00:21:06]requested_item shift.sale_refund.total_cash is exist - process it [00:21:06]requested_item shift.buy.total is exist - process it [00:21:06]requested_item shift.buy.total_cash is exist - process it [00:21:06]produce_requested_data done [00:21:06]produce_requested_data return {"fm.sale.total":30218701.56,"fm.sale_refund.total":2175549.00,"fm.buy.total":0.00,"shift.sale.total":348172.21,"shift.sale.total_cash":233677.00,"shift.sale_refund.total":56711.00,"shift.sale_refund.total_cash":56711.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:21:06]process_action_free get_value [00:21:06]json_value_free [00:21:06]json_value_free done [00:21:06]process_json_proto returns [00:21:06]Send response to host [00:21:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":30218701.56,"fm.sale_refund.total":2175549.00,"fm.buy.total":0.00,"shift.sale.total":348172.21,"shift.sale.total_cash":233677.00,"shift.sale_refund.total":56711.00,"shift.sale_refund.total_cash":56711.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:21:06]free response buf [00:21:06]execute_script done [00:21:06]execute_script returns [00:21:06]free content buf [00:21:06]Sock 9.Close socket [00:21:06]Sock 9.Thread stoped [00:21:06]accept exits with 8 [00:21:06]New connection [00:21:06]New thread 3066969444 created [00:21:06]Thread 3067112804 joined [00:21:06]Waiting for new connection... [00:21:06] Sock 8.Parse request [00:21:06]Sock 8.Check first char [00:21:06]Sock 8.First char is OK [00:21:06]request: POST /json_proto HTTP/1.0 [00:21:06]Method: POST [00:21:06]URL: /json_proto [00:21:06]Method is POST - this is cgi request [00:21:06]url: /json_proto [00:21:06]query_string will be loaded in cgi processing [00:21:06]execute_cgi json_proto POST (null) [00:21:06]execute_cgi path=json_proto method=POST [00:21:06]POST find Content-Length [00:21:06]Host: 172.17.33.3:8080 [00:21:06]Content-Length: 277 [00:21:06]Content-Type: application/json [00:21:06] [00:21:06]POST finish read [00:21:06]Found Content-Length = 277 [00:21:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:21:06]execute_script... [00:21:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:21:06]POST & json_proto [00:21:06]process_json_proto [00:21:06]json parsed OK: [00:21:06]protocol is kg_v1.0 [00:21:06]action value=open_shift [00:21:06]process_action open_shift [00:21:06]cmd_open_shift [00:21:06]MH_GetDate [00:21:06]Write to MH i2c: F0 00 00 E0 16 E5 [00:21:06]Write i2c OK [00:21:06]MH_I2C_Read... [00:21:06]Read from MH i2c: F0 [00:21:06]MH_I2C_Read... [00:21:06]Read from MH i2c: F0 09 00 [00:21:06]MH_I2C_Read... [00:21:06]Read from MH i2c: F0 09 00 E0 16 00 F4 72 1C 66 23 5B 8F 65 48 [00:21:06]GetLastDocTimeStamp 1713140393 [00:21:06]current date 1713140468 [00:21:06]FM_GetShiftState [00:21:06]SAM_PROTO_GetShiftState [00:21:06]wFMCommunicate request_size=4 [00:21:06]MH_SAM_APDU [00:21:06]CAPDU: 80 13 01 00 [00:21:06]Write to MH i2c: E2 08 00 E1 16 80 13 01 00 00 00 00 00 74 [00:21:06]Write i2c OK [00:21:06]MH_I2C_Read... [00:21:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:21:06]Read from MH i2c: E2 [00:21:06]MH_I2C_Read... [00:21:06]Read from MH i2c: E2 0E 00 [00:21:06]MH_I2C_Read... [00:21:06]Read from MH i2c: E2 0E 00 E1 16 00 09 00 00 00 00 00 00 00 00 00 00 90 00 7F [00:21:06]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:21:06]wFMCommunicate OK [00:21:06]SAM_PROTO_GetShiftState done [00:21:06]FM_GetShiftState done [00:21:06]KKMCreateOpenShiftDocument [00:21:06]Load OK [00:21:06]Malloc new data [00:21:06]MH_GetDate [00:21:06]Write to MH i2c: F0 00 00 E2 16 E7 [00:21:06]Write i2c OK [00:21:06]MH_I2C_Read... [00:21:06]Read from MH i2c: F0 [00:21:06]MH_I2C_Read... [00:21:06]Read from MH i2c: F0 09 00 [00:21:06]MH_I2C_Read... [00:21:06]Read from MH i2c: F0 09 00 E2 16 00 F4 72 1C 66 23 5B 8F 65 4A [00:21:06]Malloc new data [00:21:06]KKMCreateOpenShiftDocument OK [00:21:06]KKMSetOpenShiftData OK [00:21:06]ProcessDocumentItem done err = 0, tmpTLVsize=205 [00:21:06]tlvbuf is 002AD570 [00:21:06]KKMLoadAndSignOpenShiftData [00:21:06]SAM_PROTO_ProcessDocument [00:21:06]wFMCommunicate request_size=9 [00:21:06]MH_SAM_APDU [00:21:06]CAPDU: 80 15 01 00 04 02 00 CD 00 [00:21:06]Write to MH i2c: E2 0C 00 E3 16 80 15 01 00 04 00 02 00 CD 00 00 00 4F [00:21:06]Write i2c OK [00:21:06]MH_I2C_Read... [00:21:06]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:21:06]Read from MH i2c: E2 [00:21:06]MH_I2C_Read... [00:21:06]Read from MH i2c: E2 03 00 [00:21:06]MH_I2C_Read... [00:21:06]Read from MH i2c: E2 03 00 E3 16 00 90 00 6D [00:21:06]RAPDU: 90 00 [00:21:06]wFMCommunicate OK [00:21:06]wFMCommunicate request_size=23 [00:21:06]MH_SAM_APDU [00:21:06]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:21:06]Write to MH i2c: E2 1A 00 E4 16 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 6F [00:21:06]Write i2c OK [00:21:06]MH_I2C_Read... [00:21:06]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:21:06]Read from MH i2c: E2 [00:21:06]MH_I2C_Read... [00:21:06]Read from MH i2c: E2 03 00 [00:21:06]MH_I2C_Read... [00:21:06]Read from MH i2c: E2 03 00 E4 16 00 90 00 6E [00:21:06]RAPDU: 90 00 [00:21:06]wFMCommunicate OK [00:21:06]wFMCommunicate request_size=36 [00:21:06]MH_SAM_APDU [00:21:06]CAPDU: 80 15 02 00 1F FD 03 1B 00 D0 94 D0 B6 D1 83 D0 BC D0 B0 D0 B3 D1 83 D0 BB D0 BE D0 B2 D0 B0 20 D0 9D 2E 20 [00:21:06]Write to MH i2c: E2 27 00 E5 16 80 15 02 00 1F 00 FD 03 1B 00 D0 94 D0 B6 D1 83 D0 BC D0 B0 D0 B3 D1 83 D0 BB D0 BE D0 B2 D0 B0 20 D0 9D 2E 20 00 00 EB [00:21:06]Write i2c OK [00:21:06]MH_I2C_Read... [00:21:06]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:21:06]Read from MH i2c: E2 [00:21:06]MH_I2C_Read... [00:21:06]Read from MH i2c: E2 03 00 [00:21:06]MH_I2C_Read... [00:21:06]Read from MH i2c: E2 03 00 E5 16 00 90 00 6F [00:21:06]RAPDU: 90 00 [00:21:06]wFMCommunicate OK [00:21:06]wFMCommunicate request_size=87 [00:21:06]MH_SAM_APDU [00:21:06]CAPDU: 80 15 02 00 52 F1 03 4E 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A0 D0 BE D0 BC D0 B0 D0 BD D0 BE D0 B2 D0 BA D0 B0 2C 20 D1 83 D0 BB 2E 20 D0 A4 D1 80 D1 83 D0 BD D0 B7 D0 B5 20 38 31 20 D0 90 2C 20 34 32 2E 38 36 33 30 37 39 2C 20 37 34 2E 33 31 38 38 35 34 [00:21:06]Write to MH i2c: E2 5A 00 E6 16 80 15 02 00 52 00 F1 03 4E 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A0 D0 BE D0 BC D0 B0 D0 BD D0 BE D0 B2 D0 BA D0 B0 2C 20 D1 83 D0 BB 2E 20 D0 A4 D1 80 D1 83 D0 BD D0 B7 D0 B5 20 38 31 20 D0 90 2C 20 34 32 2E 38 36 33 30 37 39 2C 20 37 34 2E 33 31 38 38 35 34 00 00 A0 [00:21:06]Write i2c OK [00:21:06]MH_I2C_Read... [00:21:06]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:21:06]Read from MH i2c: E2 [00:21:06]MH_I2C_Read... [00:21:06]Read from MH i2c: E2 03 00 [00:21:06]MH_I2C_Read... [00:21:06]Read from MH i2c: E2 03 00 E6 16 00 90 00 70 [00:21:06]RAPDU: 90 00 [00:21:06]wFMCommunicate OK [00:21:06]wFMCommunicate request_size=51 [00:21:06]MH_SAM_APDU [00:21:06]CAPDU: 80 15 02 00 2E A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 30 38 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 [00:21:06]Write to MH i2c: E2 36 00 E7 16 80 15 02 00 2E 00 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 30 38 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 00 00 28 [00:21:06]Write i2c OK [00:21:06]MH_I2C_Read... [00:21:07]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:21:07]Read from MH i2c: E2 [00:21:07]MH_I2C_Read... [00:21:07]Read from MH i2c: E2 03 00 [00:21:07]MH_I2C_Read... [00:21:07]Read from MH i2c: E2 03 00 E7 16 00 90 00 71 [00:21:07]RAPDU: 90 00 [00:21:07]wFMCommunicate OK [00:21:07]wFMCommunicate request_size=13 [00:21:07]MH_SAM_APDU [00:21:07]CAPDU: 80 15 02 00 08 F4 03 04 00 F4 72 1C 66 [00:21:07]Write to MH i2c: E2 10 00 E8 16 80 15 02 00 08 00 F4 03 04 00 F4 72 1C 66 00 00 71 [00:21:07]Write i2c OK [00:21:07]MH_I2C_Read... [00:21:07]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:21:07]Read from MH i2c: E2 [00:21:07]MH_I2C_Read... [00:21:07]Read from MH i2c: E2 03 00 [00:21:07]MH_I2C_Read... [00:21:07]Read from MH i2c: E2 03 00 E8 16 00 90 00 72 [00:21:07]RAPDU: 90 00 [00:21:07]wFMCommunicate OK [00:21:07]wFMCommunicate request_size=25 [00:21:07]MH_SAM_APDU [00:21:07]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 [00:21:07]Write to MH i2c: E2 1C 00 E9 16 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 00 00 02 [00:21:07]Write i2c OK [00:21:07]MH_I2C_Read... [00:21:07]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:21:07]Read from MH i2c: E2 [00:21:07]MH_I2C_Read... [00:21:07]Read from MH i2c: E2 03 00 [00:21:07]MH_I2C_Read... [00:21:07]Read from MH i2c: E2 03 00 E9 16 00 90 00 73 [00:21:07]RAPDU: 90 00 [00:21:07]wFMCommunicate OK [00:21:07]wFMCommunicate request_size=4 [00:21:07]MH_SAM_APDU [00:21:07]CAPDU: 80 15 03 00 [00:21:07]Write to MH i2c: E2 08 00 EA 16 80 15 03 00 00 00 00 00 81 [00:21:07]Write i2c OK [00:21:07]MH_I2C_Read... [00:21:07]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:21:07]Read from MH i2c: E2 [00:21:07]MH_I2C_Read... [00:21:07]Read from MH i2c: E2 38 00 [00:21:07]MH_I2C_Read... [00:21:07]Read from MH i2c: E2 38 00 EA 16 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DE 72 00 00 0E 04 04 00 75 00 00 00 35 04 06 00 D3 0A 69 80 84 E3 90 00 3B [00:21:07]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DE 72 00 00 0E 04 04 00 75 00 00 00 35 04 06 00 D3 0A 69 80 84 E3 90 00 [00:21:07]wFMCommunicate OK [00:21:07]SAM_PROTO_ProcessDocument answer len = 51 [00:21:07]SAM_PROTO_ProcessDocument done [00:21:07]SetTLVBufToDocument [00:21:07]Processing tag 1209 (04B9) [00:21:07]Malloc new data [00:21:07]Processing tag 1041 (0411) [00:21:07]Processing tag 1040 (0410) [00:21:07]Malloc new data [00:21:07]Processing tag 1038 (040E) [00:21:07]Malloc new data [00:21:07]Processing tag 1077 (0435) [00:21:07]Malloc new data [00:21:07]SetTLVBufToDocument err=0 [00:21:07]KKMLoadAndSignOpenShiftData store KKM data [00:21:07]KKMLoadAndSignOpenShiftData err=0 [00:21:07]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Джумагулова Н. Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 Место: АЗС № 108 "Партнер Нефть" 15.04.2024 00:21 Смена: 117 РНМ: 0000138879044617 ЗНМ: 0300000027 ФД: 29406 ФМ: 0000000000963154 ФПД: 232041673164003 [00:21:07]StoreToDocumentArchive [00:21:07]shift 117 fd 29406 [00:21:07]Create dir for shift 0117 [00:21:07]save to /storage/0117/doc_00029406 [00:21:07]save last doc name /storage/0117/doc_00029406 to /storage/kkm_last_doc_name [00:21:07]save OK [00:21:07]Clear old archive folders... [00:21:07]Remove dir /storage/0116 [00:21:07]opendir ok [00:21:07]file . [00:21:07]file .. [00:21:07]file doc_00029090 [00:21:07]remove file /storage/0116/doc_00029090 [00:21:07]file doc_00029091 [00:21:07]remove file /storage/0116/doc_00029091 [00:21:07]file doc_00029092 [00:21:07]remove file /storage/0116/doc_00029092 [00:21:07]file doc_00029093 [00:21:07]remove file /storage/0116/doc_00029093 [00:21:07]file doc_00029094 [00:21:07]remove file /storage/0116/doc_00029094 [00:21:07]file doc_00029095 [00:21:07]remove file /storage/0116/doc_00029095 [00:21:07]file doc_00029096 [00:21:07]remove file /storage/0116/doc_00029096 [00:21:07]file doc_00029097 [00:21:07]remove file /storage/0116/doc_00029097 [00:21:07]file doc_00029098 [00:21:07]remove file /storage/0116/doc_00029098 [00:21:07]file doc_00029099 [00:21:07]remove file /storage/0116/doc_00029099 [00:21:07]file doc_00029100 [00:21:07]remove file /storage/0116/doc_00029100 [00:21:07]file doc_00029101 [00:21:07]remove file /storage/0116/doc_00029101 [00:21:07]file doc_00029102 [00:21:07]remove file /storage/0116/doc_00029102 [00:21:07]file doc_00029103 [00:21:07]remove file /storage/0116/doc_00029103 [00:21:07]file doc_00029104 [00:21:07]remove file /storage/0116/doc_00029104 [00:21:07]file doc_00029105 [00:21:07]remove file /storage/0116/doc_00029105 [00:21:07]file doc_00029106 [00:21:07]remove file /storage/0116/doc_00029106 [00:21:07]file doc_00029107 [00:21:07]remove file /storage/0116/doc_00029107 [00:21:07]file doc_00029108 [00:21:07]remove file /storage/0116/doc_00029108 [00:21:07]file doc_00029109 [00:21:07]remove file /storage/0116/doc_00029109 [00:21:07]file doc_00029110 [00:21:07]remove file /storage/0116/doc_00029110 [00:21:07]file doc_00029111 [00:21:07]remove file /storage/0116/doc_00029111 [00:21:07]file doc_00029112 [00:21:07]remove file /storage/0116/doc_00029112 [00:21:07]file doc_00029113 [00:21:07]remove file /storage/0116/doc_00029113 [00:21:07]file doc_00029114 [00:21:07]remove file /storage/0116/doc_00029114 [00:21:07]file doc_00029115 [00:21:07]remove file /storage/0116/doc_00029115 [00:21:07]file doc_00029116 [00:21:07]remove file /storage/0116/doc_00029116 [00:21:07]file doc_00029117 [00:21:07]remove file /storage/0116/doc_00029117 [00:21:07]file doc_00029118 [00:21:07]remove file /storage/0116/doc_00029118 [00:21:07]file doc_00029119 [00:21:07]remove file /storage/0116/doc_00029119 [00:21:07]file doc_00029120 [00:21:07]remove file /storage/0116/doc_00029120 [00:21:07]file doc_00029121 [00:21:07]remove file /storage/0116/doc_00029121 [00:21:07]file doc_00029122 [00:21:07]remove file /storage/0116/doc_00029122 [00:21:07]file doc_00029123 [00:21:07]remove file /storage/0116/doc_00029123 [00:21:07]file doc_00029124 [00:21:07]remove file /storage/0116/doc_00029124 [00:21:07]file doc_00029125 [00:21:07]remove file /storage/0116/doc_00029125 [00:21:07]file doc_00029126 [00:21:07]remove file /storage/0116/doc_00029126 [00:21:07]file doc_00029127 [00:21:07]remove file /storage/0116/doc_00029127 [00:21:07]file doc_00029128 [00:21:07]remove file /storage/0116/doc_00029128 [00:21:07]file doc_00029129 [00:21:07]remove file /storage/0116/doc_00029129 [00:21:07]file doc_00029130 [00:21:07]remove file /storage/0116/doc_00029130 [00:21:07]file doc_00029131 [00:21:07]remove file /storage/0116/doc_00029131 [00:21:07]file doc_00029132 [00:21:07]remove file /storage/0116/doc_00029132 [00:21:07]file doc_00029133 [00:21:07]remove file /storage/0116/doc_00029133 [00:21:07]file doc_00029134 [00:21:07]remove file /storage/0116/doc_00029134 [00:21:07]file doc_00029135 [00:21:07]remove file /storage/0116/doc_00029135 [00:21:07]file doc_00029136 [00:21:07]remove file /storage/0116/doc_00029136 [00:21:07]file doc_00029137 [00:21:07]remove file /storage/0116/doc_00029137 [00:21:07]file doc_00029138 [00:21:07]remove file /storage/0116/doc_00029138 [00:21:07]file doc_00029139 [00:21:07]remove file /storage/0116/doc_00029139 [00:21:07]file doc_00029140 [00:21:07]remove file /storage/0116/doc_00029140 [00:21:07]file doc_00029141 [00:21:07]remove file /storage/0116/doc_00029141 [00:21:07]file doc_00029142 [00:21:07]remove file /storage/0116/doc_00029142 [00:21:07]file doc_00029143 [00:21:07]remove file /storage/0116/doc_00029143 [00:21:07]file doc_00029144 [00:21:07]remove file /storage/0116/doc_00029144 [00:21:07]file doc_00029145 [00:21:07]remove file /storage/0116/doc_00029145 [00:21:07]file doc_00029146 [00:21:07]remove file /storage/0116/doc_00029146 [00:21:07]file doc_00029147 [00:21:07]remove file /storage/0116/doc_00029147 [00:21:07]file doc_00029148 [00:21:07]remove file /storage/0116/doc_00029148 [00:21:07]file doc_00029149 [00:21:07]remove file /storage/0116/doc_00029149 [00:21:07]file doc_00029150 [00:21:07]remove file /storage/0116/doc_00029150 [00:21:07]file doc_00029151 [00:21:07]remove file /storage/0116/doc_00029151 [00:21:07]file doc_00029152 [00:21:07]remove file /storage/0116/doc_00029152 [00:21:07]file doc_00029153 [00:21:07]remove file /storage/0116/doc_00029153 [00:21:07]file doc_00029154 [00:21:07]remove file /storage/0116/doc_00029154 [00:21:07]file doc_00029155 [00:21:07]remove file /storage/0116/doc_00029155 [00:21:07]file doc_00029156 [00:21:07]remove file /storage/0116/doc_00029156 [00:21:07]file doc_00029157 [00:21:07]remove file /storage/0116/doc_00029157 [00:21:07]file doc_00029158 [00:21:07]remove file /storage/0116/doc_00029158 [00:21:07]file doc_00029159 [00:21:07]remove file /storage/0116/doc_00029159 [00:21:07]file doc_00029160 [00:21:07]remove file /storage/0116/doc_00029160 [00:21:07]file doc_00029161 [00:21:07]remove file /storage/0116/doc_00029161 [00:21:07]file doc_00029162 [00:21:07]remove file /storage/0116/doc_00029162 [00:21:07]file doc_00029163 [00:21:07]remove file /storage/0116/doc_00029163 [00:21:07]file doc_00029164 [00:21:07]remove file /storage/0116/doc_00029164 [00:21:07]file doc_00029165 [00:21:07]remove file /storage/0116/doc_00029165 [00:21:07]file doc_00029166 [00:21:07]remove file /storage/0116/doc_00029166 [00:21:07]file doc_00029167 [00:21:07]remove file /storage/0116/doc_00029167 [00:21:07]file doc_00029168 [00:21:07]remove file /storage/0116/doc_00029168 [00:21:07]file doc_00029169 [00:21:07]remove file /storage/0116/doc_00029169 [00:21:07]file doc_00029170 [00:21:07]remove file /storage/0116/doc_00029170 [00:21:07]file doc_00029171 [00:21:07]remove file /storage/0116/doc_00029171 [00:21:07]file doc_00029172 [00:21:07]remove file /storage/0116/doc_00029172 [00:21:07]file doc_00029173 [00:21:07]remove file /storage/0116/doc_00029173 [00:21:07]file doc_00029174 [00:21:07]remove file /storage/0116/doc_00029174 [00:21:07]file doc_00029175 [00:21:07]remove file /storage/0116/doc_00029175 [00:21:07]file doc_00029176 [00:21:07]remove file /storage/0116/doc_00029176 [00:21:07]file doc_00029177 [00:21:07]remove file /storage/0116/doc_00029177 [00:21:07]file doc_00029178 [00:21:07]remove file /storage/0116/doc_00029178 [00:21:07]file doc_00029179 [00:21:07]remove file /storage/0116/doc_00029179 [00:21:07]file doc_00029180 [00:21:07]remove file /storage/0116/doc_00029180 [00:21:08]file doc_00029181 [00:21:08]remove file /storage/0116/doc_00029181 [00:21:08]file doc_00029182 [00:21:08]remove file /storage/0116/doc_00029182 [00:21:08]file doc_00029183 [00:21:08]remove file /storage/0116/doc_00029183 [00:21:08]file doc_00029184 [00:21:08]remove file /storage/0116/doc_00029184 [00:21:08]file doc_00029185 [00:21:08]remove file /storage/0116/doc_00029185 [00:21:08]file doc_00029186 [00:21:08]remove file /storage/0116/doc_00029186 [00:21:08]file doc_00029187 [00:21:08]remove file /storage/0116/doc_00029187 [00:21:08]file doc_00029188 [00:21:08]remove file /storage/0116/doc_00029188 [00:21:08]file doc_00029189 [00:21:08]remove file /storage/0116/doc_00029189 [00:21:08]file doc_00029190 [00:21:08]remove file /storage/0116/doc_00029190 [00:21:08]file doc_00029191 [00:21:08]remove file /storage/0116/doc_00029191 [00:21:08]file doc_00029192 [00:21:08]remove file /storage/0116/doc_00029192 [00:21:08]file doc_00029193 [00:21:08]remove file /storage/0116/doc_00029193 [00:21:08]file doc_00029194 [00:21:08]remove file /storage/0116/doc_00029194 [00:21:08]file doc_00029195 [00:21:08]remove file /storage/0116/doc_00029195 [00:21:08]file doc_00029196 [00:21:08]remove file /storage/0116/doc_00029196 [00:21:08]file doc_00029197 [00:21:08]remove file /storage/0116/doc_00029197 [00:21:08]file doc_00029198 [00:21:08]remove file /storage/0116/doc_00029198 [00:21:08]file doc_00029199 [00:21:08]remove file /storage/0116/doc_00029199 [00:21:08]file doc_00029200 [00:21:08]remove file /storage/0116/doc_00029200 [00:21:08]file doc_00029201 [00:21:08]remove file /storage/0116/doc_00029201 [00:21:08]file doc_00029202 [00:21:08]remove file /storage/0116/doc_00029202 [00:21:08]file doc_00029203 [00:21:08]remove file /storage/0116/doc_00029203 [00:21:08]file doc_00029204 [00:21:08]remove file /storage/0116/doc_00029204 [00:21:08]file doc_00029205 [00:21:08]remove file /storage/0116/doc_00029205 [00:21:08]file doc_00029206 [00:21:08]remove file /storage/0116/doc_00029206 [00:21:08]file doc_00029207 [00:21:08]remove file /storage/0116/doc_00029207 [00:21:08]file doc_00029208 [00:21:08]remove file /storage/0116/doc_00029208 [00:21:08]file doc_00029209 [00:21:08]remove file /storage/0116/doc_00029209 [00:21:08]file doc_00029210 [00:21:08]remove file /storage/0116/doc_00029210 [00:21:08]file doc_00029211 [00:21:08]remove file /storage/0116/doc_00029211 [00:21:08]file doc_00029212 [00:21:08]remove file /storage/0116/doc_00029212 [00:21:08]file doc_00029213 [00:21:08]remove file /storage/0116/doc_00029213 [00:21:08]file doc_00029214 [00:21:08]remove file /storage/0116/doc_00029214 [00:21:08]file doc_00029215 [00:21:08]remove file /storage/0116/doc_00029215 [00:21:08]file doc_00029216 [00:21:08]remove file /storage/0116/doc_00029216 [00:21:08]file doc_00029217 [00:21:08]remove file /storage/0116/doc_00029217 [00:21:08]file doc_00029218 [00:21:08]remove file /storage/0116/doc_00029218 [00:21:08]file doc_00029219 [00:21:08]remove file /storage/0116/doc_00029219 [00:21:08]file doc_00029220 [00:21:08]remove file /storage/0116/doc_00029220 [00:21:08]file doc_00029221 [00:21:08]remove file /storage/0116/doc_00029221 [00:21:08]file doc_00029222 [00:21:08]remove file /storage/0116/doc_00029222 [00:21:08]file doc_00029223 [00:21:08]remove file /storage/0116/doc_00029223 [00:21:08]file doc_00029224 [00:21:08]remove file /storage/0116/doc_00029224 [00:21:08]file doc_00029225 [00:21:08]remove file /storage/0116/doc_00029225 [00:21:08]file doc_00029226 [00:21:08]remove file /storage/0116/doc_00029226 [00:21:08]file doc_00029227 [00:21:08]remove file /storage/0116/doc_00029227 [00:21:08]file doc_00029228 [00:21:08]remove file /storage/0116/doc_00029228 [00:21:08]file doc_00029229 [00:21:08]remove file /storage/0116/doc_00029229 [00:21:08]file doc_00029230 [00:21:08]remove file /storage/0116/doc_00029230 [00:21:08]file doc_00029231 [00:21:08]remove file /storage/0116/doc_00029231 [00:21:08]file doc_00029232 [00:21:08]remove file /storage/0116/doc_00029232 [00:21:08]file doc_00029233 [00:21:08]remove file /storage/0116/doc_00029233 [00:21:08]file doc_00029234 [00:21:08]remove file /storage/0116/doc_00029234 [00:21:08]file doc_00029235 [00:21:08]remove file /storage/0116/doc_00029235 [00:21:08]file doc_00029236 [00:21:08]remove file /storage/0116/doc_00029236 [00:21:08]file doc_00029237 [00:21:08]remove file /storage/0116/doc_00029237 [00:21:08]file doc_00029238 [00:21:08]remove file /storage/0116/doc_00029238 [00:21:08]file doc_00029239 [00:21:08]remove file /storage/0116/doc_00029239 [00:21:08]file doc_00029240 [00:21:08]remove file /storage/0116/doc_00029240 [00:21:08]file doc_00029241 [00:21:08]remove file /storage/0116/doc_00029241 [00:21:08]file doc_00029242 [00:21:08]remove file /storage/0116/doc_00029242 [00:21:08]file doc_00029243 [00:21:08]remove file /storage/0116/doc_00029243 [00:21:08]file doc_00029244 [00:21:08]remove file /storage/0116/doc_00029244 [00:21:08]file doc_00029245 [00:21:08]remove file /storage/0116/doc_00029245 [00:21:08]file doc_00029246 [00:21:08]remove file /storage/0116/doc_00029246 [00:21:08]file doc_00029247 [00:21:08]remove file /storage/0116/doc_00029247 [00:21:08]file doc_00029248 [00:21:08]remove file /storage/0116/doc_00029248 [00:21:08]file doc_00029249 [00:21:08]remove file /storage/0116/doc_00029249 [00:21:08]file doc_00029250 [00:21:08]remove file /storage/0116/doc_00029250 [00:21:08]file doc_00029251 [00:21:08]remove file /storage/0116/doc_00029251 [00:21:08]file doc_00029252 [00:21:08]remove file /storage/0116/doc_00029252 [00:21:08]file doc_00029253 [00:21:08]remove file /storage/0116/doc_00029253 [00:21:08]file doc_00029254 [00:21:08]remove file /storage/0116/doc_00029254 [00:21:08]file doc_00029255 [00:21:08]remove file /storage/0116/doc_00029255 [00:21:08]file doc_00029256 [00:21:08]remove file /storage/0116/doc_00029256 [00:21:08]file doc_00029257 [00:21:08]remove file /storage/0116/doc_00029257 [00:21:08]file doc_00029258 [00:21:08]remove file /storage/0116/doc_00029258 [00:21:08]file doc_00029259 [00:21:08]remove file /storage/0116/doc_00029259 [00:21:08]file doc_00029260 [00:21:08]remove file /storage/0116/doc_00029260 [00:21:08]file doc_00029261 [00:21:08]remove file /storage/0116/doc_00029261 [00:21:08]file doc_00029262 [00:21:08]remove file /storage/0116/doc_00029262 [00:21:08]file doc_00029263 [00:21:08]remove file /storage/0116/doc_00029263 [00:21:08]file doc_00029264 [00:21:08]remove file /storage/0116/doc_00029264 [00:21:08]file doc_00029265 [00:21:08]remove file /storage/0116/doc_00029265 [00:21:08]file doc_00029266 [00:21:08]remove file /storage/0116/doc_00029266 [00:21:08]file doc_00029267 [00:21:08]remove file /storage/0116/doc_00029267 [00:21:08]file doc_00029268 [00:21:08]remove file /storage/0116/doc_00029268 [00:21:08]file doc_00029269 [00:21:08]remove file /storage/0116/doc_00029269 [00:21:08]file doc_00029270 [00:21:08]remove file /storage/0116/doc_00029270 [00:21:08]file doc_00029271 [00:21:08]remove file /storage/0116/doc_00029271 [00:21:08]file doc_00029272 [00:21:08]remove file /storage/0116/doc_00029272 [00:21:08]file doc_00029273 [00:21:08]remove file /storage/0116/doc_00029273 [00:21:08]file doc_00029274 [00:21:08]remove file /storage/0116/doc_00029274 [00:21:08]file doc_00029275 [00:21:08]remove file /storage/0116/doc_00029275 [00:21:08]file doc_00029276 [00:21:08]remove file /storage/0116/doc_00029276 [00:21:08]file doc_00029277 [00:21:08]remove file /storage/0116/doc_00029277 [00:21:08]file doc_00029278 [00:21:08]remove file /storage/0116/doc_00029278 [00:21:08]file doc_00029279 [00:21:08]remove file /storage/0116/doc_00029279 [00:21:08]file doc_00029280 [00:21:08]remove file /storage/0116/doc_00029280 [00:21:08]file doc_00029281 [00:21:08]remove file /storage/0116/doc_00029281 [00:21:08]file doc_00029282 [00:21:08]remove file /storage/0116/doc_00029282 [00:21:08]file doc_00029283 [00:21:08]remove file /storage/0116/doc_00029283 [00:21:08]file doc_00029284 [00:21:08]remove file /storage/0116/doc_00029284 [00:21:08]file doc_00029285 [00:21:08]remove file /storage/0116/doc_00029285 [00:21:08]file doc_00029286 [00:21:08]remove file /storage/0116/doc_00029286 [00:21:08]file doc_00029287 [00:21:08]remove file /storage/0116/doc_00029287 [00:21:08]file doc_00029288 [00:21:08]remove file /storage/0116/doc_00029288 [00:21:08]file doc_00029289 [00:21:08]remove file /storage/0116/doc_00029289 [00:21:08]file doc_00029290 [00:21:08]remove file /storage/0116/doc_00029290 [00:21:08]file doc_00029291 [00:21:08]remove file /storage/0116/doc_00029291 [00:21:08]file doc_00029292 [00:21:08]remove file /storage/0116/doc_00029292 [00:21:08]file doc_00029293 [00:21:08]remove file /storage/0116/doc_00029293 [00:21:08]file doc_00029294 [00:21:08]remove file /storage/0116/doc_00029294 [00:21:08]file doc_00029295 [00:21:08]remove file /storage/0116/doc_00029295 [00:21:08]file doc_00029296 [00:21:08]remove file /storage/0116/doc_00029296 [00:21:08]file doc_00029297 [00:21:08]remove file /storage/0116/doc_00029297 [00:21:08]file doc_00029298 [00:21:08]remove file /storage/0116/doc_00029298 [00:21:08]file doc_00029299 [00:21:08]remove file /storage/0116/doc_00029299 [00:21:08]file doc_00029300 [00:21:08]remove file /storage/0116/doc_00029300 [00:21:08]file doc_00029301 [00:21:08]remove file /storage/0116/doc_00029301 [00:21:08]file doc_00029302 [00:21:08]remove file /storage/0116/doc_00029302 [00:21:08]file doc_00029303 [00:21:08]remove file /storage/0116/doc_00029303 [00:21:08]file doc_00029304 [00:21:08]remove file /storage/0116/doc_00029304 [00:21:08]file doc_00029305 [00:21:08]remove file /storage/0116/doc_00029305 [00:21:08]file doc_00029306 [00:21:08]remove file /storage/0116/doc_00029306 [00:21:08]file doc_00029307 [00:21:08]remove file /storage/0116/doc_00029307 [00:21:08]file doc_00029308 [00:21:08]remove file /storage/0116/doc_00029308 [00:21:08]file doc_00029309 [00:21:08]remove file /storage/0116/doc_00029309 [00:21:08]file doc_00029310 [00:21:08]remove file /storage/0116/doc_00029310 [00:21:08]file doc_00029311 [00:21:08]remove file /storage/0116/doc_00029311 [00:21:08]file doc_00029312 [00:21:08]remove file /storage/0116/doc_00029312 [00:21:08]file doc_00029313 [00:21:08]remove file /storage/0116/doc_00029313 [00:21:08]file doc_00029314 [00:21:08]remove file /storage/0116/doc_00029314 [00:21:08]file doc_00029315 [00:21:08]remove file /storage/0116/doc_00029315 [00:21:08]file doc_00029316 [00:21:08]remove file /storage/0116/doc_00029316 [00:21:08]file doc_00029317 [00:21:08]remove file /storage/0116/doc_00029317 [00:21:08]file doc_00029318 [00:21:08]remove file /storage/0116/doc_00029318 [00:21:08]file doc_00029319 [00:21:08]remove file /storage/0116/doc_00029319 [00:21:08]file doc_00029320 [00:21:08]remove file /storage/0116/doc_00029320 [00:21:08]file doc_00029321 [00:21:08]remove file /storage/0116/doc_00029321 [00:21:08]file doc_00029322 [00:21:08]remove file /storage/0116/doc_00029322 [00:21:08]file doc_00029323 [00:21:08]remove file /storage/0116/doc_00029323 [00:21:08]file doc_00029324 [00:21:08]remove file /storage/0116/doc_00029324 [00:21:08]file doc_00029325 [00:21:08]remove file /storage/0116/doc_00029325 [00:21:08]file doc_00029326 [00:21:08]remove file /storage/0116/doc_00029326 [00:21:08]file doc_00029327 [00:21:08]remove file /storage/0116/doc_00029327 [00:21:08]file doc_00029328 [00:21:08]remove file /storage/0116/doc_00029328 [00:21:08]file doc_00029329 [00:21:08]remove file /storage/0116/doc_00029329 [00:21:08]file doc_00029330 [00:21:08]remove file /storage/0116/doc_00029330 [00:21:08]file doc_00029331 [00:21:08]remove file /storage/0116/doc_00029331 [00:21:08]file doc_00029333 [00:21:08]remove file /storage/0116/doc_00029333 [00:21:08]file doc_00029334 [00:21:08]remove file /storage/0116/doc_00029334 [00:21:08]file doc_00029335 [00:21:08]remove file /storage/0116/doc_00029335 [00:21:08]file doc_00029336 [00:21:08]remove file /storage/0116/doc_00029336 [00:21:08]file doc_00029337 [00:21:08]remove file /storage/0116/doc_00029337 [00:21:08]file doc_00029338 [00:21:08]remove file /storage/0116/doc_00029338 [00:21:08]file doc_00029339 [00:21:08]remove file /storage/0116/doc_00029339 [00:21:08]file doc_00029340 [00:21:08]remove file /storage/0116/doc_00029340 [00:21:08]file doc_00029341 [00:21:08]remove file /storage/0116/doc_00029341 [00:21:08]file doc_00029342 [00:21:08]remove file /storage/0116/doc_00029342 [00:21:08]file doc_00029343 [00:21:08]remove file /storage/0116/doc_00029343 [00:21:08]file doc_00029344 [00:21:08]remove file /storage/0116/doc_00029344 [00:21:08]file doc_00029345 [00:21:08]remove file /storage/0116/doc_00029345 [00:21:08]file doc_00029346 [00:21:08]remove file /storage/0116/doc_00029346 [00:21:08]file doc_00029347 [00:21:08]remove file /storage/0116/doc_00029347 [00:21:08]file doc_00029348 [00:21:08]remove file /storage/0116/doc_00029348 [00:21:08]file doc_00029349 [00:21:08]remove file /storage/0116/doc_00029349 [00:21:08]file doc_00029350 [00:21:08]remove file /storage/0116/doc_00029350 [00:21:08]file doc_00029351 [00:21:08]remove file /storage/0116/doc_00029351 [00:21:08]file doc_00029352 [00:21:08]remove file /storage/0116/doc_00029352 [00:21:08]file doc_00029353 [00:21:08]remove file /storage/0116/doc_00029353 [00:21:08]file doc_00029354 [00:21:08]remove file /storage/0116/doc_00029354 [00:21:08]file doc_00029355 [00:21:08]remove file /storage/0116/doc_00029355 [00:21:08]file doc_00029356 [00:21:08]remove file /storage/0116/doc_00029356 [00:21:08]file doc_00029357 [00:21:08]remove file /storage/0116/doc_00029357 [00:21:08]file doc_00029358 [00:21:08]remove file /storage/0116/doc_00029358 [00:21:08]file doc_00029359 [00:21:08]remove file /storage/0116/doc_00029359 [00:21:08]file doc_00029360 [00:21:08]remove file /storage/0116/doc_00029360 [00:21:08]file doc_00029361 [00:21:08]remove file /storage/0116/doc_00029361 [00:21:08]file doc_00029362 [00:21:08]remove file /storage/0116/doc_00029362 [00:21:08]file doc_00029363 [00:21:08]remove file /storage/0116/doc_00029363 [00:21:08]file doc_00029364 [00:21:08]remove file /storage/0116/doc_00029364 [00:21:08]file doc_00029365 [00:21:08]remove file /storage/0116/doc_00029365 [00:21:08]file doc_00029366 [00:21:08]remove file /storage/0116/doc_00029366 [00:21:08]file doc_00029367 [00:21:08]remove file /storage/0116/doc_00029367 [00:21:09]file doc_00029368 [00:21:09]remove file /storage/0116/doc_00029368 [00:21:09]file doc_00029369 [00:21:09]remove file /storage/0116/doc_00029369 [00:21:09]file doc_00029370 [00:21:09]remove file /storage/0116/doc_00029370 [00:21:09]file doc_00029371 [00:21:09]remove file /storage/0116/doc_00029371 [00:21:09]file doc_00029372 [00:21:09]remove file /storage/0116/doc_00029372 [00:21:09]file doc_00029373 [00:21:09]remove file /storage/0116/doc_00029373 [00:21:09]file doc_00029374 [00:21:09]remove file /storage/0116/doc_00029374 [00:21:09]file doc_00029375 [00:21:09]remove file /storage/0116/doc_00029375 [00:21:09]file doc_00029376 [00:21:09]remove file /storage/0116/doc_00029376 [00:21:09]file doc_00029377 [00:21:09]remove file /storage/0116/doc_00029377 [00:21:09]file doc_00029378 [00:21:09]remove file /storage/0116/doc_00029378 [00:21:09]file doc_00029379 [00:21:09]remove file /storage/0116/doc_00029379 [00:21:09]file doc_00029380 [00:21:09]remove file /storage/0116/doc_00029380 [00:21:09]file doc_00029381 [00:21:09]remove file /storage/0116/doc_00029381 [00:21:09]file doc_00029382 [00:21:09]remove file /storage/0116/doc_00029382 [00:21:09]file doc_00029383 [00:21:09]remove file /storage/0116/doc_00029383 [00:21:09]file doc_00029384 [00:21:09]remove file /storage/0116/doc_00029384 [00:21:09]file doc_00029385 [00:21:09]remove file /storage/0116/doc_00029385 [00:21:09]file doc_00029386 [00:21:09]remove file /storage/0116/doc_00029386 [00:21:09]file doc_00029387 [00:21:09]remove file /storage/0116/doc_00029387 [00:21:09]file doc_00029388 [00:21:09]remove file /storage/0116/doc_00029388 [00:21:09]file doc_00029389 [00:21:09]remove file /storage/0116/doc_00029389 [00:21:09]file doc_00029390 [00:21:09]remove file /storage/0116/doc_00029390 [00:21:09]file doc_00029391 [00:21:09]remove file /storage/0116/doc_00029391 [00:21:09]file doc_00029392 [00:21:09]remove file /storage/0116/doc_00029392 [00:21:09]file doc_00029393 [00:21:09]remove file /storage/0116/doc_00029393 [00:21:09]file doc_00029394 [00:21:09]remove file /storage/0116/doc_00029394 [00:21:09]file doc_00029395 [00:21:09]remove file /storage/0116/doc_00029395 [00:21:09]file doc_00029396 [00:21:09]remove file /storage/0116/doc_00029396 [00:21:09]file doc_00029397 [00:21:09]remove file /storage/0116/doc_00029397 [00:21:09]file doc_00029398 [00:21:09]remove file /storage/0116/doc_00029398 [00:21:09]file doc_00029399 [00:21:09]remove file /storage/0116/doc_00029399 [00:21:09]file doc_00029400 [00:21:09]remove file /storage/0116/doc_00029400 [00:21:09]file doc_00029401 [00:21:09]remove file /storage/0116/doc_00029401 [00:21:09]file doc_00029402 [00:21:09]remove file /storage/0116/doc_00029402 [00:21:09]file doc_00029403 [00:21:09]remove file /storage/0116/doc_00029403 [00:21:09]file doc_00029404 [00:21:09]remove file /storage/0116/doc_00029404 [00:21:09]file doc_00029405 [00:21:09]remove file /storage/0116/doc_00029405 [00:21:09]remove dir /storage/0116 [00:21:09]ProcessDocumentItem done err = 0, tmpTLVsize=256 [00:21:09]tlvbuf is 002491F0 [00:21:09]SAM_PROTO_ClearQueue [00:21:09]wFMCommunicate request_size=4 [00:21:09]MH_SAM_APDU [00:21:09]CAPDU: 80 09 00 00 [00:21:09]Write to MH i2c: E2 08 00 EB 16 80 09 00 00 00 00 00 00 73 [00:21:09]Write i2c OK [00:21:09]MH_I2C_Read... [00:21:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:21:09]Read from MH i2c: E2 [00:21:09]MH_I2C_Read... [00:21:09]Read from MH i2c: E2 03 00 [00:21:09]MH_I2C_Read... [00:21:09]Read from MH i2c: E2 03 00 EB 16 00 90 00 75 [00:21:09]RAPDU: 90 00 [00:21:09]wFMCommunicate OK [00:21:09]SAM_PROTO_ClearQueue done [00:21:09]KKMCreateOFDPacket [00:21:09]OFDProtocolAddRootSTLVToBuf [00:21:09]FM_MakeSignedData [00:21:09]FM_MakeSignedData [00:21:09]SAM_PROTO_SignData [00:21:09]wFMCommunicate request_size=4 [00:21:09]MH_SAM_APDU [00:21:09]CAPDU: 80 0D 01 02 [00:21:09]Write to MH i2c: E2 08 00 EC 16 80 0D 01 02 00 00 00 00 7B [00:21:09]Write i2c OK [00:21:09]MH_I2C_Read... [00:21:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:21:09]Read from MH i2c: E2 [00:21:09]MH_I2C_Read... [00:21:09]Read from MH i2c: E2 03 00 [00:21:09]MH_I2C_Read... [00:21:09]Read from MH i2c: E2 03 00 EC 16 00 90 00 76 [00:21:09]RAPDU: 90 00 [00:21:09]wFMCommunicate OK [00:21:09]wFMCommunicate request_size=255 [00:21:09]MH_SAM_APDU [00:21:09]CAPDU: 80 0D 02 02 FA 02 00 00 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1B 00 D0 94 D0 B6 D1 83 D0 BC D0 B0 D0 B3 D1 83 D0 BB D0 BE D0 B2 D0 B0 20 D0 9D 2E 20 F1 03 4E 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A0 D0 BE D0 BC D0 B0 D0 BD D0 BE D0 B2 D0 BA D0 B0 2C 20 D1 83 D0 BB 2E 20 D0 A4 D1 80 D1 83 D0 BD D0 B7 D0 B5 20 38 31 20 D0 90 2C 20 34 32 2E 38 36 33 30 37 39 2C 20 37 34 2E 33 31 38 38 35 34 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 30 38 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 F4 72 1C 66 0E 04 04 00 75 00 00 00 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DE 72 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 [00:21:09]Write to MH i2c: E2 02 01 ED 16 80 0D 02 02 FA 00 02 00 00 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1B 00 D0 94 D0 B6 D1 83 D0 BC D0 B0 D0 B3 D1 83 D0 BB D0 BE D0 B2 D0 B0 20 D0 9D 2E 20 F1 03 4E 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A0 D0 BE D0 BC D0 B0 D0 BD D0 BE D0 B2 D0 BA D0 B0 2C 20 D1 83 D0 BB 2E 20 D0 A4 D1 80 D1 83 D0 BD D0 B7 D0 B5 20 38 31 20 D0 90 2C 20 34 32 2E 38 36 33 30 37 39 2C 20 37 34 2E 33 31 38 38 35 34 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 30 38 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 F4 72 1C 66 0E 04 04 00 75 00 00 00 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DE 72 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 00 00 78 [00:21:09]Write i2c OK [00:21:09]MH_I2C_Read... [00:21:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:21:09]Read from MH i2c: E2 [00:21:09]MH_I2C_Read... [00:21:09]Read from MH i2c: E2 03 00 [00:21:09]MH_I2C_Read... [00:21:09]Read from MH i2c: E2 03 00 ED 16 00 90 00 77 [00:21:09]RAPDU: 90 00 [00:21:09]wFMCommunicate OK [00:21:09]wFMCommunicate request_size=15 [00:21:09]MH_SAM_APDU [00:21:09]CAPDU: 80 0D 02 02 0A 35 04 06 00 D3 0A 69 80 84 E3 [00:21:09]Write to MH i2c: E2 12 00 EE 16 80 0D 02 02 0A 00 35 04 06 00 D3 0A 69 80 84 E3 00 00 FE [00:21:09]Write i2c OK [00:21:09]MH_I2C_Read... [00:21:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:21:09]Read from MH i2c: E2 [00:21:09]MH_I2C_Read... [00:21:09]Read from MH i2c: E2 03 00 [00:21:09]MH_I2C_Read... [00:21:09]Read from MH i2c: E2 03 00 EE 16 00 90 00 78 [00:21:09]RAPDU: 90 00 [00:21:09]wFMCommunicate OK [00:21:09]wFMCommunicate request_size=4 [00:21:09]MH_SAM_APDU [00:21:09]CAPDU: 80 0D 03 02 [00:21:09]Write to MH i2c: E2 08 00 EF 16 80 0D 03 02 00 00 00 00 80 [00:21:09]Write i2c OK [00:21:09]MH_I2C_Read... [00:21:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:21:09]Read from MH i2c: E2 [00:21:09]MH_I2C_Read... [00:21:09]Read from MH i2c: E2 0B 00 [00:21:09]MH_I2C_Read... [00:21:09]Read from MH i2c: E2 0B 00 EF 16 00 89 DA DD 6E 6A 43 9A EC 90 00 62 [00:21:09]RAPDU: 89 DA DD 6E 6A 43 9A EC 90 00 [00:21:09]wFMCommunicate OK [00:21:09]SAM_PROTO_SignData done [00:21:09]FM_MakeSignedData done [00:21:09]CreateOFDProtocolMessage [00:21:09]wFMCommunicate request_size=4 [00:21:09]MH_SAM_APDU [00:21:09]CAPDU: 80 11 00 00 [00:21:09]Write to MH i2c: E2 08 00 F0 16 80 11 00 00 00 00 00 00 80 [00:21:09]Write i2c OK [00:21:09]MH_I2C_Read... [00:21:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:21:09]Read from MH i2c: E2 [00:21:09]MH_I2C_Read... [00:21:09]Read from MH i2c: E2 17 00 [00:21:09]MH_I2C_Read... [00:21:09]Read from MH i2c: E2 17 00 F0 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 CF [00:21:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [00:21:09]wFMCommunicate OK [00:21:09]CreateOFDProtocolMessage done [00:21:09]OFDSenderStorePacket 29406 [00:21:09]StoreOFDPacket docnum=29406 [00:21:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 14 01 00 00 14 82 0C 01 8E 7A 5A 02 01 00 02 00 00 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1B 00 D0 94 D0 B6 D1 83 D0 BC D0 B0 D0 B3 D1 83 D0 BB D0 BE D0 B2 D0 B0 20 D0 9D 2E 20 F1 03 4E 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A0 D0 BE D0 BC D0 B0 D0 BD D0 BE D0 B2 D0 BA D0 B0 2C 20 D1 83 D0 BB 2E 20 D0 A4 D1 80 D1 83 D0 BD D0 B7 D0 B5 20 38 31 20 D0 90 2C 20 34 32 2E 38 36 33 30 37 39 2C 20 37 34 2E 33 31 38 38 35 34 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 30 38 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 F4 72 1C 66 0E 04 04 00 75 00 00 00 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DE 72 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 35 04 06 00 D3 0A 69 80 84 E3 89 DA DD 6E 6A 43 9A EC [00:21:09]CheckFolder [00:21:09]dirname=/storage/ofd_packets [00:21:09]CheckFolder done [00:21:09]ProducePacketName [00:21:09]name=ofd_packets/00029406 [00:21:09]NVStorageSaveData ofd_packets/00029406 [00:21:09]File name is /storage/ofd_packets/00029406 [00:21:09]Write 306 bytes [00:21:09]NVStorageSaveData done [00:21:09]OFDSenderStorePacket done [00:21:09]KKMCreateOFDPacket done [00:21:09]NVStorageSaveData kkm_last_timestamp [00:21:09]File name is /storage/kkm_last_timestamp [00:21:09]Write 4 bytes [00:21:09]NVStorageSaveData done [00:21:09]ExternCall_PrintAddStr [00:21:09]wPrintStart [00:21:09]Write to MH i2c: 01 00 00 F1 16 07 [00:21:09]Write i2c OK [00:21:09]MH_I2C_Read... [00:21:09]Read from MH i2c: 01 [00:21:09]MH_I2C_Read... [00:21:09]Read from MH i2c: 01 07 00 [00:21:09]MH_I2C_Read... [00:21:09]Read from MH i2c: 01 07 00 F1 16 00 00 00 00 00 FF 0F 1C [00:21:09]RasterBufferAndPrint [00:21:09]line Отчет об открытии смены [00:21:09]line ФФД: 1.0 [00:21:09]line ИНН: 02508201610067 [00:21:09]line Кассир: Джумагулова Н. [00:21:09]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [00:21:09]line Место: АЗС № 108 "Партнер Нефть" [00:21:09]line 15.04.2024 00:21 [00:21:09]line Смена: 117 [00:21:09]line РНМ: 0000138879044617 [00:21:09]line ЗНМ: 0300000027 [00:21:09]line ФД: 29406 [00:21:09]line ФМ: 0000000000963154 [00:21:09]line ФПД: 232041673164003 [00:21:09]written 0, free lines is 4095 [00:21:09]OFD Sender: Processing packet 29406 [packets to send 8, broken 7] [00:21:09]ProducePacketName [00:21:09]name=ofd_packets/00029406 [00:21:09]OFD Sender: To server: pG, [00:21:09]CommunicateWithHost lk.salyk.kg:30040 [00:21:09]ConnectInit lk.salyk.kg [00:21:10]Connected sock=10 [00:21:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 14 01 00 00 14 82 0C 01 8E 7A 5A 02 01 00 02 00 00 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1B 00 D0 94 D0 B6 D1 83 D0 BC D0 B0 D0 B3 D1 83 D0 BB D0 BE D0 B2 D0 B0 20 D0 9D 2E 20 F1 03 4E 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A0 D0 BE D0 BC D0 B0 D0 BD D0 BE D0 B2 D0 BA D0 B0 2C 20 D1 83 D0 BB 2E 20 D0 A4 D1 80 D1 83 D0 BD D0 B7 D0 B5 20 38 31 20 D0 90 2C 20 34 32 2E 38 36 33 30 37 39 2C 20 37 34 2E 33 31 38 38 35 34 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 30 38 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 F4 72 1C 66 0E 04 04 00 75 00 00 00 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DE 72 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 35 04 06 00 D3 0A 69 80 84 E3 89 DA DD 6E 6A 43 9A EC [00:21:10]Write to MH i2c: 01 00 00 03 17 1A [00:21:10]Write i2c OK [00:21:10]MH_I2C_Read... [00:21:10]Read from MH i2c: 01 [00:21:10]MH_I2C_Read... [00:21:10]Read from MH i2c: 01 07 00 [00:21:10]MH_I2C_Read... [00:21:10]Read from MH i2c: 01 07 00 03 17 00 00 00 00 00 B8 0E E7 [00:21:10]RasterBufferAndPrint [00:21:10]line [00:21:10]line [00:21:10]line [00:21:10]line [00:21:10]line [00:21:10]written 0, free lines is 3785 [00:21:10]MH_Cut [00:21:10]Write to MH i2c: D1 01 00 0A 17 01 F3 [00:21:10]Write i2c OK [00:21:10]MH_I2C_Read... [00:21:10]Read from MH i2c: D1 [00:21:10]MH_I2C_Read... [00:21:10]Read from MH i2c: D1 01 00 [00:21:10]MH_I2C_Read... [00:21:10]Read from MH i2c: D1 01 00 0A 17 00 F2 [00:21:10]Write to MH i2c: 01 00 00 0B 17 22 [00:21:10]Write i2c OK [00:21:10]MH_I2C_Read... [00:21:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 F6 24 47 00 76 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 39 36 33 31 35 34 10 04 04 00 DE 72 00 00 F4 03 04 00 98 1D 1C 66 B6 04 01 00 00 BF 68 44 3B F9 02 4C 1E [00:21:10]CommunicateWithHost err = 0 [00:21:10]CheckOFDResponse [00:21:10]1017 (14) - 77093643461234 [00:21:10]1041 (16) - 0000000000963154 [00:21:10]1040 (4) - 29406 [00:21:10]1012 (4) - 14.04.2024 18:16 [00:21:10]1206 (1) - 0 [00:21:10]OFD Sender: Remove packet 29406 [00:21:10]ProducePacketName [00:21:10]name=ofd_packets/00029406 [00:21:10]NVStorageDeleteData [00:21:10]*** Cut start [00:21:10]*** Partial cut [00:21:10]*** CUTSNS_PIN = 1 [00:21:10]*** CUTSNS_PIN = 0 [00:21:10]*** Brake cut motor [00:21:10]OFD Sender: No OFD packet to send [00:21:11]Read from MH i2c: 01 [00:21:11]MH_I2C_Read... [00:21:11]*** Stop cut motor [00:21:11]*** Cut end [00:21:11]Read from MH i2c: 01 07 00 [00:21:11]MH_I2C_Read... [00:21:11]Read from MH i2c: 01 07 00 0B 17 00 00 00 00 00 FF 0F 37 [00:21:11]process_action open_shift done [00:21:11]requested_data is exist [00:21:11]produce_requested_data [00:21:11]requested_item fd.num is exist - process it [00:21:11]SAM_PROTO_GetFieldsCounters [00:21:11]wFMCommunicate request_size=4 [00:21:11]MH_SAM_APDU [00:21:11]CAPDU: 80 13 00 00 [00:21:11]Write to MH i2c: E2 08 00 0C 17 80 13 00 00 00 00 00 00 9F [00:21:11]Write i2c OK [00:21:11]MH_I2C_Read... [00:21:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:21:11]Read from MH i2c: E2 [00:21:11]MH_I2C_Read... [00:21:11]Read from MH i2c: E2 62 00 [00:21:11]MH_I2C_Read... [00:21:11]Read from MH i2c: E2 62 00 0C 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DE 72 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 A2 [00:21:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DE 72 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:21:11]wFMCommunicate OK [00:21:11]SAM_PROTO_GetFieldsCounters done [00:21:11]requested_item shift.num is exist - process it [00:21:11]requested_item shift.opened is exist - process it [00:21:11]req_shift_opened [00:21:11]FM_GetShiftState [00:21:11]SAM_PROTO_GetShiftState [00:21:11]wFMCommunicate request_size=4 [00:21:11]MH_SAM_APDU [00:21:11]CAPDU: 80 13 01 00 [00:21:11]Write to MH i2c: E2 08 00 0D 17 80 13 01 00 00 00 00 00 A1 [00:21:11]Write i2c OK [00:21:11]MH_I2C_Read... [00:21:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:21:11]Read from MH i2c: E2 [00:21:11]MH_I2C_Read... [00:21:11]Read from MH i2c: E2 0E 00 [00:21:11]MH_I2C_Read... [00:21:11]Read from MH i2c: E2 0E 00 0D 17 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 95 [00:21:11]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [00:21:11]wFMCommunicate OK [00:21:11]SAM_PROTO_GetShiftState done [00:21:11]FM_GetShiftState done [00:21:11]req_shift_opened done [00:21:11]requested_item shift.open_date is exist - process it [00:21:11]req_shift_open_date [00:21:11]req_shift_open_date done [00:21:11]produce_requested_data done [00:21:11]produce_requested_data return {"fd.num":29406,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [00:21:11]process_action_free open_shift [00:21:11]json_value_free [00:21:11]json_value_free done [00:21:11]process_json_proto returns [00:21:11]Send response to host [00:21:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":29406,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [00:21:11]free response buf [00:21:11]execute_script done [00:21:11]execute_script returns [00:21:11]free content buf [00:21:11]Sock 8.Close socket [00:21:11]Sock 8.Thread stoped [00:21:11]accept exits with 9 [00:21:11]New connection [00:21:11]New thread 3067112804 created [00:21:11]Thread 3066969444 joined [00:21:11]Waiting for new connection... [00:21:11] Sock 9.Parse request [00:21:11]Sock 9.Check first char [00:21:11]Sock 9.First char is OK [00:21:11]request: POST /json_proto HTTP/1.0 [00:21:11]Method: POST [00:21:11]URL: /json_proto [00:21:11]Method is POST - this is cgi request [00:21:11]url: /json_proto [00:21:11]query_string will be loaded in cgi processing [00:21:11]execute_cgi json_proto POST (null) [00:21:11]execute_cgi path=json_proto method=POST [00:21:11]POST find Content-Length [00:21:11]Host: 172.17.33.3:8080 [00:21:11]Content-Length: 331 [00:21:11]Content-Type: application/json [00:21:11] [00:21:11]POST finish read [00:21:11]Found Content-Length = 331 [00:21:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:21:11]execute_script... [00:21:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:21:11]POST & json_proto [00:21:11]process_json_proto [00:21:11]json parsed OK: [00:21:11]protocol is kg_v1.0 [00:21:11]action value=get_value [00:21:11]process_action get_value [00:21:11]cmd_get_value [00:21:11]process_action get_value done [00:21:11]requested_data is exist [00:21:11]produce_requested_data [00:21:11]requested_item fm.sale.total is exist - process it [00:21:11]SAM_PROTO_GetFMData [00:21:11]wFMCommunicate request_size=4 [00:21:11]MH_SAM_APDU [00:21:11]CAPDU: 80 13 03 00 [00:21:11]Write to MH i2c: E2 08 00 0E 17 80 13 03 00 00 00 00 00 A4 [00:21:11]Write i2c OK [00:21:11]MH_I2C_Read... [00:21:12]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:21:12]Read from MH i2c: E2 [00:21:12]MH_I2C_Read... [00:21:12]Read from MH i2c: E2 FD 00 [00:21:12]MH_I2C_Read... [00:21:12]Read from MH i2c: E2 FD 00 0E 17 00 C3 04 85 04 BF 04 6E 04 04 00 F4 71 00 00 69 04 A1 00 6F 04 04 00 8D 6E 00 00 B1 04 04 00 4C 14 1E B4 70 04 04 00 24 17 B6 72 72 04 04 00 28 FD 67 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 B5 9B 21 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 30 19 98 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 67 03 00 00 B1 04 04 00 D4 9F F7 0C 70 04 04 00 D4 9F F7 0C 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B0 90 60 01 EF 03 09 00 F6 90 00 D5 [00:21:12]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 F4 71 00 00 69 04 A1 00 6F 04 04 00 8D 6E 00 00 B1 04 04 00 4C 14 1E B4 70 04 04 00 24 17 B6 72 72 04 04 00 28 FD 67 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 B5 9B 21 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 30 19 98 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 67 03 00 00 B1 04 04 00 D4 9F F7 0C 70 04 04 00 D4 9F F7 0C 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B0 90 60 01 EF 03 09 00 F6 90 00 [00:21:12]wFMCommunicate OK [00:21:12]wFMCommunicate request_size=4 [00:21:12]MH_SAM_APDU [00:21:12]CAPDU: 80 17 00 00 [00:21:12]Write to MH i2c: E2 08 00 0F 17 80 17 00 00 00 00 00 00 A6 [00:21:12]Write i2c OK [00:21:12]MH_I2C_Read... [00:21:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:12]Read from MH i2c: E2 [00:21:12]MH_I2C_Read... [00:21:12]Read from MH i2c: E2 FD 00 [00:21:12]MH_I2C_Read... [00:21:12]Read from MH i2c: E2 FD 00 0F 17 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 F4 60 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 90 00 D7 [00:21:12]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 F4 60 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 90 00 [00:21:12]wFMCommunicate OK [00:21:12]wFMCommunicate request_size=4 [00:21:12]MH_SAM_APDU [00:21:12]CAPDU: 80 17 00 00 [00:21:12]Write to MH i2c: E2 08 00 10 17 80 17 00 00 00 00 00 00 A7 [00:21:12]Write i2c OK [00:21:12]MH_I2C_Read... [00:21:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:13]Read from MH i2c: E2 [00:21:13]MH_I2C_Read... [00:21:13]Read from MH i2c: E2 FD 00 [00:21:13]MH_I2C_Read... [00:21:13]Read from MH i2c: E2 FD 00 10 17 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 90 00 C5 [00:21:13]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 90 00 [00:21:13]wFMCommunicate OK [00:21:13]wFMCommunicate request_size=4 [00:21:13]MH_SAM_APDU [00:21:13]CAPDU: 80 17 00 00 [00:21:13]Write to MH i2c: E2 08 00 11 17 80 17 00 00 00 00 00 00 A8 [00:21:13]Write i2c OK [00:21:13]MH_I2C_Read... [00:21:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:13]Read from MH i2c: E2 [00:21:13]MH_I2C_Read... [00:21:13]Read from MH i2c: E2 FD 00 [00:21:13]MH_I2C_Read... [00:21:13]Read from MH i2c: E2 FD 00 11 17 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 1A [00:21:13]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [00:21:13]wFMCommunicate OK [00:21:13]wFMCommunicate request_size=4 [00:21:13]MH_SAM_APDU [00:21:13]CAPDU: 80 17 00 00 [00:21:13]Write to MH i2c: E2 08 00 12 17 80 17 00 00 00 00 00 00 A9 [00:21:13]Write i2c OK [00:21:13]MH_I2C_Read... [00:21:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [00:21:13]Read from MH i2c: E2 [00:21:13]MH_I2C_Read... [00:21:13]Read from MH i2c: E2 E0 00 [00:21:13]MH_I2C_Read... [00:21:13]Read from MH i2c: E2 E0 00 12 17 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 93 [00:21:13]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:21:14]wFMCommunicate OK [00:21:14]SAM_PROTO_GetFMData done [00:21:14]requested_item fm.sale_refund.total is exist - process it [00:21:14]requested_item fm.buy.total is exist - process it [00:21:14]requested_item shift.sale.total is exist - process it [00:21:14]SAM_PROTO_GetShiftData [00:21:14]wFMCommunicate request_size=4 [00:21:14]MH_SAM_APDU [00:21:14]CAPDU: 80 13 02 00 [00:21:14]Write to MH i2c: E2 08 00 13 17 80 13 02 00 00 00 00 00 A8 [00:21:14]Write i2c OK [00:21:14]MH_I2C_Read... [00:21:14]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:21:14]Read from MH i2c: E2 [00:21:14]MH_I2C_Read... [00:21:14]Read from MH i2c: E2 FD 00 [00:21:14]MH_I2C_Read... [00:21:14]Read from MH i2c: E2 FD 00 13 17 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 1B [00:21:14]RAPDU: A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 [00:21:14]wFMCommunicate OK [00:21:14]wFMCommunicate request_size=4 [00:21:14]MH_SAM_APDU [00:21:14]CAPDU: 80 17 00 00 [00:21:14]Write to MH i2c: E2 08 00 14 17 80 17 00 00 00 00 00 00 AB [00:21:14]Write i2c OK [00:21:14]MH_I2C_Read... [00:21:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:14]Read from MH i2c: E2 [00:21:14]MH_I2C_Read... [00:21:14]Read from MH i2c: E2 FD 00 [00:21:14]MH_I2C_Read... [00:21:14]Read from MH i2c: E2 FD 00 14 17 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 B3 [00:21:15]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 [00:21:15]wFMCommunicate OK [00:21:15]wFMCommunicate request_size=4 [00:21:15]MH_SAM_APDU [00:21:15]CAPDU: 80 17 00 00 [00:21:15]Write to MH i2c: E2 08 00 15 17 80 17 00 00 00 00 00 00 AC [00:21:15]Write i2c OK [00:21:15]MH_I2C_Read... [00:21:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:15]Read from MH i2c: E2 [00:21:15]MH_I2C_Read... [00:21:15]Read from MH i2c: E2 FD 00 [00:21:15]MH_I2C_Read... [00:21:15]Read from MH i2c: E2 FD 00 15 17 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 7E [00:21:15]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 [00:21:15]wFMCommunicate OK [00:21:15]wFMCommunicate request_size=4 [00:21:15]MH_SAM_APDU [00:21:15]CAPDU: 80 17 00 00 [00:21:15]Write to MH i2c: E2 08 00 16 17 80 17 00 00 00 00 00 00 AD [00:21:15]Write i2c OK [00:21:15]MH_I2C_Read... [00:21:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:15]Read from MH i2c: E2 [00:21:15]MH_I2C_Read... [00:21:15]Read from MH i2c: E2 FD 00 [00:21:15]MH_I2C_Read... [00:21:15]Read from MH i2c: E2 FD 00 16 17 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 OFD Sender: No OFD packet to send [00:21:16]09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 1F [00:21:16]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:21:16]wFMCommunicate OK [00:21:16]wFMCommunicate request_size=4 [00:21:16]MH_SAM_APDU [00:21:16]CAPDU: 80 17 00 00 [00:21:16]Write to MH i2c: E2 08 00 17 17 80 17 00 00 00 00 00 00 AE [00:21:16]Write i2c OK [00:21:16]MH_I2C_Read... [00:21:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:21:16]Read from MH i2c: E2 [00:21:16]MH_I2C_Read... [00:21:16]Read from MH i2c: E2 BD 00 [00:21:16]MH_I2C_Read... [00:21:16]Read from MH i2c: E2 BD 00 17 17 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 94 [00:21:16]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:21:16]wFMCommunicate OK [00:21:16]SAM_PROTO_GetShiftData done [00:21:16]requested_item shift.sale.total_cash is exist - process it [00:21:16]requested_item shift.sale_refund.total is exist - process it [00:21:16]requested_item shift.sale_refund.total_cash is exist - process it [00:21:16]requested_item shift.buy.total is exist - process it [00:21:16]requested_item shift.buy.total_cash is exist - process it [00:21:16]produce_requested_data done [00:21:16]produce_requested_data return {"fm.sale.total":30218701.56,"fm.sale_refund.total":2175549.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:21:16]process_action_free get_value [00:21:16]json_value_free [00:21:16]json_value_free done [00:21:16]process_json_proto returns [00:21:16]Send response to host [00:21:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":30218701.56,"fm.sale_refund.total":2175549.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:21:16]free response buf [00:21:16]execute_script done [00:21:16]execute_script returns [00:21:16]free content buf [00:21:16]Sock 9.Close socket [00:21:16]Sock 9.Thread stoped [00:21:21]OFD Sender: No OFD packet to send [00:21:26]OFD Sender: No OFD packet to send [00:21:31]OFD Sender: No OFD packet to send [00:21:36]OFD Sender: No OFD packet to send [00:21:41]OFD Sender: No OFD packet to send [00:21:46]OFD Sender: No OFD packet to send [00:21:51]OFD Sender: No OFD packet to send [00:21:56]OFD Sender: No OFD packet to send [00:22:01]OFD Sender: No OFD packet to send [00:22:06]OFD Sender: No OFD packet to send [00:22:11]OFD Sender: No OFD packet to send [00:22:16]OFD Sender: No OFD packet to send [00:22:21]OFD Sender: No OFD packet to send [00:22:26]OFD Sender: No OFD packet to send [00:22:31]OFD Sender: No OFD packet to send [00:22:36]OFD Sender: No OFD packet to send [00:22:41]OFD Sender: No OFD packet to send [00:22:46]OFD Sender: No OFD packet to send [00:22:51]OFD Sender: No OFD packet to send [00:22:56]OFD Sender: No OFD packet to send [00:23:01]OFD Sender: No OFD packet to send [00:23:05]accept exits with 8 [00:23:05]New connection [00:23:05]New thread 3066969444 created [00:23:05]Thread 3067112804 joined [00:23:05]Waiting for new connection... [00:23:05] Sock 8.Parse request [00:23:05]Sock 8.Check first char [00:23:05]Sock 8.First char is OK [00:23:05]request: POST /json_proto HTTP/1.0 [00:23:05]Method: POST [00:23:05]URL: /json_proto [00:23:05]Method is POST - this is cgi request [00:23:05]url: /json_proto [00:23:05]query_string will be loaded in cgi processing [00:23:05]execute_cgi json_proto POST (null) [00:23:05]execute_cgi path=json_proto method=POST [00:23:05]POST find Content-Length [00:23:05]Host: 172.17.33.3:8080 [00:23:05]Content-Length: 677 [00:23:05]Content-Type: application/json [00:23:05] [00:23:05]POST finish read [00:23:05]Found Content-Length = 677 [00:23:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347799", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.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:23:05]execute_script... [00:23:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347799", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.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:23:05]POST & json_proto [00:23:05]process_json_proto [00:23:05]json parsed OK: [00:23:05]protocol is kg_v1.0 [00:23:05]action value=close_receipt [00:23:05]process_action close_receipt [00:23:05]cmd_close_receipt [00:23:05]MH_GetDate [00:23:05]Write to MH i2c: F0 00 00 18 17 1E [00:23:05]Write i2c OK [00:23:05]MH_I2C_Read... [00:23:05]Read from MH i2c: F0 [00:23:05]MH_I2C_Read... [00:23:05]Read from MH i2c: F0 09 00 [00:23:05]MH_I2C_Read... [00:23:05]Read from MH i2c: F0 09 00 18 17 00 6A 73 1C 66 23 5B 8F 65 F8 [00:23:05]GetLastDocTimeStamp 1713140468 [00:23:05]current date 1713140586 [00:23:05]FM_GetShiftState [00:23:05]SAM_PROTO_GetShiftState [00:23:05]wFMCommunicate request_size=4 [00:23:05]MH_SAM_APDU [00:23:05]CAPDU: 80 13 01 00 [00:23:05]Write to MH i2c: E2 08 00 19 17 80 13 01 00 00 00 00 00 AD [00:23:05]Write i2c OK [00:23:05]MH_I2C_Read... [00:23:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:23:05]Read from MH i2c: E2 [00:23:05]MH_I2C_Read... [00:23:05]Read from MH i2c: E2 0E 00 [00:23:05]MH_I2C_Read... [00:23:05]Read from MH i2c: E2 0E 00 19 17 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 A1 [00:23:05]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [00:23:05]wFMCommunicate OK [00:23:05]SAM_PROTO_GetShiftState done [00:23:05]FM_GetShiftState done [00:23:05]opened in 1713140468 [00:23:05]opened+sec_in_day 1713226868 [00:23:05]quantity*price = 50025 [00:23:05]sum+1 = 50026 [00:23:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 1 15.04.2024 00:23 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29407 ФПД: 279021397555479 1/tax-web-control/client/api/v1/ticket?date=20240415T002306&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29407&fm=279021397555479&tin=02508201610067®Number=0000138879044617&sum=50000 [00:23:06]StoreToDocumentArchive [00:23:06]shift 117 fd 29407 [00:23:06]save to /storage/0117/doc_00029407 [00:23:06]save last doc name /storage/0117/doc_00029407 to /storage/kkm_last_doc_name [00:23:06]save OK [00:23:06]Clear old archive folders... [00:23:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:23:06]tlvbuf is 0028E6E0 [00:23:06]SAM_PROTO_ClearQueue [00:23:06]wFMCommunicate request_size=4 [00:23:06]MH_SAM_APDU [00:23:06]CAPDU: 80 09 00 00 [00:23:06]Write to MH i2c: E2 08 00 26 17 80 09 00 00 00 00 00 00 AF [00:23:06]Write i2c OK [00:23:06]MH_I2C_Read... [00:23:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:23:06]Read from MH i2c: E2 [00:23:06]MH_I2C_Read... [00:23:06]Read from MH i2c: E2 03 00 [00:23:06]MH_I2C_Read... [00:23:06]Read from MH i2c: E2 03 00 26 17 00 90 00 B1 [00:23:06]RAPDU: 90 00 [00:23:06]wFMCommunicate OK [00:23:06]SAM_PROTO_ClearQueue done [00:23:06]KKMCreateOFDPacket [00:23:06]OFDProtocolAddRootSTLVToBuf [00:23:06]FM_MakeSignedData [00:23:06]FM_MakeSignedData [00:23:06]SAM_PROTO_SignData [00:23:06]wFMCommunicate request_size=4 [00:23:06]MH_SAM_APDU [00:23:06]CAPDU: 80 0D 01 02 [00:23:06]Write to MH i2c: E2 08 00 27 17 80 0D 01 02 00 00 00 00 B7 [00:23:06]Write i2c OK [00:23:06]MH_I2C_Read... [00:23:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:23:06]Read from MH i2c: E2 [00:23:06]MH_I2C_Read... [00:23:06]Read from MH i2c: E2 03 00 [00:23:06]MH_I2C_Read... [00:23:06]Read from MH i2c: E2 03 00 27 17 00 90 00 B2 [00:23:06]RAPDU: 90 00 [00:23:06]wFMCommunicate OK [00:23:06]wFMCommunicate request_size=255 [00:23:06]MH_SAM_APDU [00:23: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 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 01 00 00 00 F4 03 04 00 6A 73 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DF 72 00 00 35 04 06 00 FD [00:23:06]Write to MH i2c: E2 02 01 28 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 01 00 00 00 F4 03 04 00 6A 73 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DF 72 00 00 35 04 06 00 FD 00 00 9C [00:23:06]Write i2c OK [00:23:06]MH_I2C_Read... [00:23:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:23:06]Read from MH i2c: E2 [00:23:06]MH_I2C_Read... [00:23:06]Read from MH i2c: E2 03 00 [00:23:06]MH_I2C_Read... [00:23:06]Read from MH i2c: E2 03 00 28 17 00 90 00 B3 [00:23:06]RAPDU: 90 00 [00:23:06]wFMCommunicate OK [00:23:06]wFMCommunicate request_size=10 [00:23:06]MH_SAM_APDU [00:23:06]CAPDU: 80 0D 02 02 05 C4 BB 49 39 17 [00:23:06]Write to MH i2c: E2 0D 00 29 17 80 0D 02 02 05 00 C4 BB 49 39 17 00 00 DC [00:23:06]Write i2c OK [00:23:06]MH_I2C_Read... [00:23:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:23:06]Read from MH i2c: E2 [00:23:06]MH_I2C_Read... [00:23:06]Read from MH i2c: E2 03 00 [00:23:06]MH_I2C_Read... [00:23:06]Read from MH i2c: E2 03 00 29 17 00 90 00 B4 [00:23:06]RAPDU: 90 00 [00:23:06]wFMCommunicate OK [00:23:06]wFMCommunicate request_size=4 [00:23:06]MH_SAM_APDU [00:23:06]CAPDU: 80 0D 03 02 [00:23:06]Write to MH i2c: E2 08 00 2A 17 80 0D 03 02 00 00 00 00 BC [00:23:06]Write i2c OK [00:23:06]MH_I2C_Read... [00:23:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:23:06]Read from MH i2c: E2 [00:23:06]MH_I2C_Read... [00:23:06]Read from MH i2c: E2 0B 00 [00:23:06]MH_I2C_Read... [00:23:06]Read from MH i2c: E2 0B 00 2A 17 00 49 1B 50 E2 77 E8 C7 99 90 00 12 [00:23:06]RAPDU: 49 1B 50 E2 77 E8 C7 99 90 00 [00:23:06]wFMCommunicate OK [00:23:06]SAM_PROTO_SignData done [00:23:06]FM_MakeSignedData done [00:23:06]CreateOFDProtocolMessage [00:23:06]wFMCommunicate request_size=4 [00:23:06]MH_SAM_APDU [00:23:06]CAPDU: 80 11 00 00 [00:23:06]Write to MH i2c: E2 08 00 2B 17 80 11 00 00 00 00 00 00 BC [00:23:06]Write i2c OK [00:23:06]MH_I2C_Read... [00:23:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:23:06]Read from MH i2c: E2 [00:23:06]MH_I2C_Read... [00:23:06]Read from MH i2c: E2 17 00 [00:23:06]MH_I2C_Read... [00:23:06]Read from MH i2c: E2 17 00 2B 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 0B [00:23:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [00:23:06]wFMCommunicate OK [00:23:06]CreateOFDProtocolMessage done [00:23:06]OFDSenderStorePacket 29407 [00:23:06]StoreOFDPacket docnum=29407 [00:23:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 04 13 07 01 C9 2F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 01 00 00 00 F4 03 04 00 6A 73 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DF 72 00 00 35 04 06 00 FD C4 BB 49 39 17 49 1B 50 E2 77 E8 C7 99 [00:23:06]CheckFolder [00:23:06]dirname=/storage/ofd_packets [00:23:06]CheckFolder done [00:23:06]ProducePacketName [00:23:06]name=ofd_packets/00029407 [00:23:06]NVStorageSaveData ofd_packets/00029407 [00:23:06]File name is /storage/ofd_packets/00029407 [00:23:06]Write 301 bytes [00:23:06]NVStorageSaveData done [00:23:06]OFDSenderStorePacket done [00:23:06]KKMCreateOFDPacket done [00:23:06]NVStorageSaveData kkm_last_timestamp [00:23:06]File name is /storage/kkm_last_timestamp [00:23:06]Write 4 bytes [00:23:06]NVStorageSaveData done [00:23:06]ExternCall_PrintAddStr [00:23:06]wPrintStart [00:23:06]Write to MH i2c: 01 00 00 2C 17 43 [00:23:06]Write i2c OK [00:23:06]MH_I2C_Read... [00:23:06]Read from MH i2c: 01 [00:23:06]MH_I2C_Read... [00:23:06]Read from MH i2c: 01 07 00 [00:23:06]MH_I2C_Read... [00:23:06]Read from MH i2c: 01 07 00 2C 17 00 00 00 00 00 FF 0F 58 [00:23:06]RasterBufferAndPrint [00:23:06]line Счет N : (1)347799 [00:23:06]line ИНН: 02508201610067 [00:23:06]line Контрольно-Кассовый Чек [00:23:06]line ПРОДАЖА [00:23:06]line ТРК (МРК, ГНК) : 23 [00:23:06]line Товар: 2710124130 [00:23:06]line Аи-92-К-5 [00:23:06]line 7.780 * 64.30 [00:23:06]line = 500.25 [00:23:06]line НДС 12% НСП 1% [00:23:06]line > о реализуемом товаре [00:23:06]line ОКРУГЛЕНИЕ: -0.25 [00:23:06]line ИТОГО: 500.00 [00:23:06]line Внесено: 500.00 [00:23:06]line СДАЧА: 0.00 [00:23:06]line НСП 1% : 4.43 [00:23:06]line НДС 12% : 53.12 [00:23:06]line Наличными: 500.00 [00:23:06]line Безнал.: 0.00 [00:23:06]line Место: АЗС № 108 "Партнер Нефть" [00:23:06]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [00:23:06]line СНО: Общий режим [00:23:06]line Чек 1 15.04.2024 00:23 [00:23:06]line Смена: 117 ФФД: 1.0 [00:23:06]line ЗНМ: 0300000027 [00:23:06]line РНМ: 0000138879044617 [00:23:06]line Версия ККМ: 001 [00:23:06]line ФМ: 0000000000963154 [00:23:06]line ФД: 29407 [00:23:06]line ФПД: 279021397555479 [00:23:06]line 1/tax-web-control/client/api/v1/ticket?date=20240415T002306&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29407&fm=279021397555479&tin=02508201610067®Number=0000138879044617&sum=50000 [00:23:07]OFD Sender: Processing packet 29407 [packets to send 8, broken 7] [00:23:07]ProducePacketName [00:23:07]name=ofd_packets/00029407 [00:23:07]OFD Sender: To server: pG, [00:23:07]CommunicateWithHost lk.salyk.kg:30040 [00:23:07]ConnectInit lk.salyk.kg [00:23:07]written 0, free lines is 4095 [00:23:07]Connected sock=10 [00:23:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 04 13 07 01 C9 2F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 01 00 00 00 F4 03 04 00 6A 73 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DF 72 00 00 35 04 06 00 FD C4 BB 49 39 17 49 1B 50 E2 77 E8 C7 99 [00:23:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 E2 FF 47 00 5F 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DF 72 00 00 F4 03 04 00 0D 1E 1C 66 B6 04 01 00 00 0B D5 1E D9 3D 3C 8F 49 [00:23:07]CommunicateWithHost err = 0 [00:23:07]CheckOFDResponse [00:23:07]1017 (14) - 77093643461234 [00:23:07]1041 (16) - 0000000000963154 [00:23:07]1040 (4) - 29407 [00:23:07]1012 (4) - 14.04.2024 18:18 [00:23:07]1206 (1) - 0 [00:23:07]OFD Sender: Remove packet 29407 [00:23:07]ProducePacketName [00:23:07]name=ofd_packets/00029407 [00:23:07]NVStorageDeleteData [00:23:07]Write to MH i2c: 01 00 00 56 17 6D [00:23:07]Write i2c OK [00:23:07]MH_I2C_Read... [00:23:07]Read from MH i2c: 01 [00:23:07]MH_I2C_Read... [00:23:07]Read from MH i2c: 01 07 00 [00:23:07]MH_I2C_Read... [00:23:07]Read from MH i2c: 01 07 00 56 17 00 00 00 00 00 BF 0C 3F [00:23:07]RasterBufferAndPrint [00:23:07]line [00:23:07]line [00:23:07]line [00:23:07]line [00:23:07]line [00:23:07]written 0, free lines is 3269 [00:23:07]MH_Cut [00:23:07]Write to MH i2c: D1 01 00 5D 17 01 46 [00:23:07]Write i2c OK [00:23:07]MH_I2C_Read... [00:23:07]Read from MH i2c: D1 [00:23:07]MH_I2C_Read... [00:23:07]Read from MH i2c: D1 01 00 [00:23:07]MH_I2C_Read... [00:23:07]Read from MH i2c: D1 01 00 5D 17 00 45 [00:23:07]Write to MH i2c: 01 00 00 5E 17 75 [00:23:07]Write i2c OK [00:23:07]MH_I2C_Read... [00:23:07]OFD Sender: No OFD packet to send [00:23:08]*** Cut start [00:23:08]*** Partial cut [00:23:08]*** CUTSNS_PIN = 1 [00:23:08]*** CUTSNS_PIN = 0 [00:23:08]*** Brake cut motor [00:23:09]Read from MH i2c: 01 [00:23:09]MH_I2C_Read... [00:23:09]*** Stop cut motor [00:23:09]*** Cut end [00:23:09]Read from MH i2c: 01 07 00 [00:23:09]MH_I2C_Read... [00:23:09]Read from MH i2c: 01 07 00 5E 17 00 00 00 00 00 FF 0F 8A [00:23:09]process_action close_receipt done [00:23:09]requested_data is exist [00:23:09]produce_requested_data [00:23:09]requested_item fm.sn is exist - process it [00:23:09]wFMCommunicate request_size=4 [00:23:09]MH_SAM_APDU [00:23:09]CAPDU: 80 11 00 00 [00:23:09]Write to MH i2c: E2 08 00 5F 17 80 11 00 00 00 00 00 00 F0 [00:23:09]Write i2c OK [00:23:09]MH_I2C_Read... [00:23:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:23:09]Read from MH i2c: E2 [00:23:09]MH_I2C_Read... [00:23:09]Read from MH i2c: E2 17 00 [00:23:09]MH_I2C_Read... [00:23:09]Read from MH i2c: E2 17 00 5F 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 3F [00:23:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [00:23:09]wFMCommunicate OK [00:23:09]requested_item fd.num is exist - process it [00:23:09]SAM_PROTO_GetFieldsCounters [00:23:09]wFMCommunicate request_size=4 [00:23:09]MH_SAM_APDU [00:23:09]CAPDU: 80 13 00 00 [00:23:09]Write to MH i2c: E2 08 00 60 17 80 13 00 00 00 00 00 00 F3 [00:23:09]Write i2c OK [00:23:09]MH_I2C_Read... [00:23:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:23:09]Read from MH i2c: E2 [00:23:09]MH_I2C_Read... [00:23:09]Read from MH i2c: E2 62 00 [00:23:09]MH_I2C_Read... [00:23:09]Read from MH i2c: E2 62 00 60 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DF 72 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 FA [00:23:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DF 72 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:23:09]wFMCommunicate OK [00:23:09]SAM_PROTO_GetFieldsCounters done [00:23:09]requested_item shift.num is exist - process it [00:23:09]requested_item shift.opened is exist - process it [00:23:09]req_shift_opened [00:23:09]FM_GetShiftState [00:23:09]SAM_PROTO_GetShiftState [00:23:09]wFMCommunicate request_size=4 [00:23:09]MH_SAM_APDU [00:23:09]CAPDU: 80 13 01 00 [00:23:09]Write to MH i2c: E2 08 00 61 17 80 13 01 00 00 00 00 00 F5 [00:23:09]Write i2c OK [00:23:09]MH_I2C_Read... [00:23:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:23:09]Read from MH i2c: E2 [00:23:09]MH_I2C_Read... [00:23:09]Read from MH i2c: E2 0E 00 [00:23:09]MH_I2C_Read... [00:23:09]Read from MH i2c: E2 0E 00 61 17 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 E9 [00:23:09]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [00:23:09]wFMCommunicate OK [00:23:09]SAM_PROTO_GetShiftState done [00:23:09]FM_GetShiftState done [00:23:09]req_shift_opened done [00:23:09]requested_item shift.open_date is exist - process it [00:23:09]req_shift_open_date [00:23:09]req_shift_open_date done [00:23:09]produce_requested_data done [00:23:09]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29407,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [00:23:09]process_action_free close_receipt [00:23:09]json_value_free [00:23:09]json_value_free done [00:23:09]process_json_proto returns [00:23:09]Send response to host [00:23:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29407,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [00:23:09]free response buf [00:23:09]execute_script done [00:23:09]execute_script returns [00:23:09]free content buf [00:23:09]Sock 8.Close socket [00:23:09]Sock 8.Thread stoped [00:23:12]OFD Sender: No OFD packet to send [00:23:17]OFD Sender: No OFD packet to send [00:23:22]OFD Sender: No OFD packet to send [00:23:24]accept exits with 9 [00:23:24]New connection [00:23:24]New thread 3067112804 created [00:23:24]Thread 3066969444 joined [00:23:24]Waiting for new connection... [00:23:24] Sock 9.Parse request [00:23:24]Sock 9.Check first char [00:23:24]Sock 9.First char is OK [00:23:24]request: POST /json_proto HTTP/1.0 [00:23:24]Method: POST [00:23:24]URL: /json_proto [00:23:24]Method is POST - this is cgi request [00:23:24]url: /json_proto [00:23:24]query_string will be loaded in cgi processing [00:23:24]execute_cgi json_proto POST (null) [00:23:24]execute_cgi path=json_proto method=POST [00:23:24]POST find Content-Length [00:23:24]Host: 172.17.33.3:8080 [00:23:24]Content-Length: 670 [00:23:24]Content-Type: application/json [00:23:24] [00:23:24]POST finish read [00:23:24]Found Content-Length = 670 [00:23:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347800", "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" ] } } [00:23:24]execute_script... [00: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)347800", "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" ] } } [00:23:24]POST & json_proto [00:23:24]process_json_proto [00:23:24]json parsed OK: [00:23:24]protocol is kg_v1.0 [00:23:24]action value=close_receipt [00:23:24]process_action close_receipt [00:23:24]cmd_close_receipt [00:23:24]MH_GetDate [00:23:24]Write to MH i2c: F0 00 00 62 17 68 [00:23:24]Write i2c OK [00:23:24]MH_I2C_Read... [00:23:24]Read from MH i2c: F0 [00:23:24]MH_I2C_Read... [00:23:24]Read from MH i2c: F0 09 00 [00:23:24]MH_I2C_Read... [00:23:24]Read from MH i2c: F0 09 00 62 17 00 7E 73 1C 66 23 5B 8F 65 56 [00:23:24]GetLastDocTimeStamp 1713140586 [00:23:24]current date 1713140606 [00:23:24]FM_GetShiftState [00:23:24]SAM_PROTO_GetShiftState [00:23:24]wFMCommunicate request_size=4 [00:23:24]MH_SAM_APDU [00:23:24]CAPDU: 80 13 01 00 [00:23:24]Write to MH i2c: E2 08 00 63 17 80 13 01 00 00 00 00 00 F7 [00:23:24]Write i2c OK [00:23:24]MH_I2C_Read... [00:23:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:23:24]Read from MH i2c: E2 [00:23:24]MH_I2C_Read... [00:23:24]Read from MH i2c: E2 0E 00 [00:23:24]MH_I2C_Read... [00:23:24]Read from MH i2c: E2 0E 00 63 17 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 EB [00:23:24]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [00:23:24]wFMCommunicate OK [00:23:24]SAM_PROTO_GetShiftState done [00:23:24]FM_GetShiftState done [00:23:24]opened in 1713140468 [00:23:24]opened+sec_in_day 1713226868 [00:23:24]quantity*price = 50019 [00:23:24]sum+1 = 50021 [00: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 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 2 15.04.2024 00:23 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29408 ФПД: 279844917753829 1/tax-web-control/client/api/v1/ticket?date=20240415T002326&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29408&fm=279844917753829&tin=02508201610067®Number=0000138879044617&sum=50000 [00:23:26]StoreToDocumentArchive [00:23:26]shift 117 fd 29408 [00:23:26]save to /storage/0117/doc_00029408 [00:23:26]save last doc name /storage/0117/doc_00029408 to /storage/kkm_last_doc_name [00:23:26]save OK [00:23:26]Clear old archive folders... [00:23:26]ProcessDocumentItem done err = 0, tmpTLVsize=252 [00:23:26]tlvbuf is 00240770 [00:23:26]SAM_PROTO_ClearQueue [00:23:26]wFMCommunicate request_size=4 [00:23:26]MH_SAM_APDU [00:23:26]CAPDU: 80 09 00 00 [00:23:26]Write to MH i2c: E2 08 00 70 17 80 09 00 00 00 00 00 00 F9 [00:23:26]Write i2c OK [00:23:26]MH_I2C_Read... [00:23:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:23:26]Read from MH i2c: E2 [00:23:26]MH_I2C_Read... [00:23:26]Read from MH i2c: E2 03 00 [00:23:26]MH_I2C_Read... [00:23:26]Read from MH i2c: E2 03 00 70 17 00 90 00 FB [00:23:26]RAPDU: 90 00 [00:23:26]wFMCommunicate OK [00:23:26]SAM_PROTO_ClearQueue done [00:23:26]KKMCreateOFDPacket [00:23:26]OFDProtocolAddRootSTLVToBuf [00:23:26]FM_MakeSignedData [00:23:26]FM_MakeSignedData [00:23:26]SAM_PROTO_SignData [00:23:26]wFMCommunicate request_size=4 [00:23:26]MH_SAM_APDU [00:23:26]CAPDU: 80 0D 01 02 [00:23:26]Write to MH i2c: E2 08 00 71 17 80 0D 01 02 00 00 00 00 01 [00:23:26]Write i2c OK [00:23:26]MH_I2C_Read... [00:23:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:23:26]Read from MH i2c: E2 [00:23:26]MH_I2C_Read... [00:23:26]Read from MH i2c: E2 03 00 [00:23:26]MH_I2C_Read... [00:23:26]Read from MH i2c: E2 03 00 71 17 00 90 00 FC [00:23:26]RAPDU: 90 00 [00:23:26]wFMCommunicate OK [00:23:26]wFMCommunicate request_size=255 [00:23:26]MH_SAM_APDU [00:23: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 2D 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 02 00 00 00 F4 03 04 00 7E 73 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E0 72 00 00 35 04 06 00 [00:23:26]Write to MH i2c: E2 02 01 72 17 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 02 00 00 00 F4 03 04 00 7E 73 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E0 72 00 00 35 04 06 00 00 00 8F [00:23:26]Write i2c OK [00:23:26]MH_I2C_Read... [00:23:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:23:26]Read from MH i2c: E2 [00:23:26]MH_I2C_Read... [00:23:26]Read from MH i2c: E2 03 00 [00:23:26]MH_I2C_Read... [00:23:26]Read from MH i2c: E2 03 00 72 17 00 90 00 FD [00:23:26]RAPDU: 90 00 [00:23:26]wFMCommunicate OK [00:23:26]wFMCommunicate request_size=11 [00:23:26]MH_SAM_APDU [00:23:26]CAPDU: 80 0D 02 02 06 FE 84 78 EA 37 E5 [00:23:26]Write to MH i2c: E2 0E 00 73 17 80 0D 02 02 06 00 FE 84 78 EA 37 E5 00 00 10 [00:23:26]Write i2c OK [00:23:26]MH_I2C_Read... [00:23:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:23:26]Read from MH i2c: E2 [00:23:26]MH_I2C_Read... [00:23:26]Read from MH i2c: E2 03 00 [00:23:26]MH_I2C_Read... [00:23:26]Read from MH i2c: E2 03 00 73 17 00 90 00 FE [00:23:26]RAPDU: 90 00 [00:23:26]wFMCommunicate OK [00:23:26]wFMCommunicate request_size=4 [00:23:26]MH_SAM_APDU [00:23:26]CAPDU: 80 0D 03 02 [00:23:26]Write to MH i2c: E2 08 00 74 17 80 0D 03 02 00 00 00 00 06 [00:23:26]Write i2c OK [00:23:26]MH_I2C_Read... [00:23:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:23:26]Read from MH i2c: E2 [00:23:26]MH_I2C_Read... [00:23:26]Read from MH i2c: E2 0B 00 [00:23:26]MH_I2C_Read... [00:23:26]Read from MH i2c: E2 0B 00 74 17 00 8D 77 4C 2F 27 86 F7 83 90 00 AD [00:23:26]RAPDU: 8D 77 4C 2F 27 86 F7 83 90 00 [00:23:26]wFMCommunicate OK [00:23:26]SAM_PROTO_SignData done [00:23:26]FM_MakeSignedData done [00:23:26]CreateOFDProtocolMessage [00:23:26]wFMCommunicate request_size=4 [00:23:26]MH_SAM_APDU [00:23:26]CAPDU: 80 11 00 00 [00:23:26]Write to MH i2c: E2 08 00 75 17 80 11 00 00 00 00 00 00 06 [00:23:26]Write i2c OK [00:23:26]MH_I2C_Read... [00:23:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:23:26]Read from MH i2c: E2 [00:23:26]MH_I2C_Read... [00:23:26]Read from MH i2c: E2 17 00 [00:23:26]MH_I2C_Read... [00:23:26]Read from MH i2c: E2 17 00 75 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 55 [00:23:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [00:23:26]wFMCommunicate OK [00:23:26]CreateOFDProtocolMessage done [00:23:26]OFDSenderStorePacket 29408 [00:23:26]StoreOFDPacket docnum=29408 [00:23:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 BE 08 08 01 34 1C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 02 00 00 00 F4 03 04 00 7E 73 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E0 72 00 00 35 04 06 00 FE 84 78 EA 37 E5 8D 77 4C 2F 27 86 F7 83 [00:23:26]CheckFolder [00:23:26]dirname=/storage/ofd_packets [00:23:26]CheckFolder done [00:23:26]ProducePacketName [00:23:26]name=ofd_packets/00029408 [00:23:26]NVStorageSaveData ofd_packets/00029408 [00:23:26]File name is /storage/ofd_packets/00029408 [00:23:26]Write 302 bytes [00:23:26]NVStorageSaveData done [00:23:26]OFDSenderStorePacket done [00:23:26]KKMCreateOFDPacket done [00:23:26]NVStorageSaveData kkm_last_timestamp [00:23:26]File name is /storage/kkm_last_timestamp [00:23:26]Write 4 bytes [00:23:26]NVStorageSaveData done [00:23:26]ExternCall_PrintAddStr [00:23:26]wPrintStart [00:23:26]Write to MH i2c: 01 00 00 76 17 8D [00:23:26]Write i2c OK [00:23:26]MH_I2C_Read... [00:23:26]Read from MH i2c: 01 [00:23:26]MH_I2C_Read... [00:23:26]Read from MH i2c: 01 07 00 [00:23:26]MH_I2C_Read... [00:23:26]Read from MH i2c: 01 07 00 76 17 00 00 00 00 00 FF 0F A2 [00:23:26]RasterBufferAndPrint [00:23:26]line Счет N : (1)347800 [00:23:26]line ИНН: 02508201610067 [00:23:26]line Контрольно-Кассовый Чек [00:23:26]line ПРОДАЖА [00:23:26]line ТРК (МРК, ГНК) : 31 [00:23:26]line Товар: 2710124130 [00:23:26]line SUPER-92-К-5 [00:23:26]line 7.660 * 65.30 [00:23:26]line = 500.20 [00:23:26]line НДС 12% НСП 1% [00:23:26]line > о реализуемом товаре [00:23:26]line ОКРУГЛЕНИЕ: -0.20 [00:23:26]line ИТОГО: 500.00 [00:23:26]line Внесено: 500.00 [00:23:26]line СДАЧА: 0.00 [00:23:26]line НСП 1% : 4.43 [00:23:26]line НДС 12% : 53.12 [00:23:26]line Наличными: 500.00 [00:23:26]line Безнал.: 0.00 [00:23:26]line Место: АЗС № 108 "Партнер Нефть" [00:23:26]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [00:23:26]line СНО: Общий режим [00:23:26]line Чек 2 15.04.2024 00:23 [00:23:26]line Смена: 117 ФФД: 1.0 [00:23:26]line ЗНМ: 0300000027 [00:23:26]line РНМ: 0000138879044617 [00:23:26]line Версия ККМ: 001 [00:23:26]line ФМ: 0000000000963154 [00:23:26]line ФД: 29408 [00:23:26]line ФПД: 279844917753829 [00:23:26]line 1/tax-web-control/client/api/v1/ticket?date=20240415T002326&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29408&fm=279844917753829&tin=02508201610067®Number=0000138879044617&sum=50000 [00:23:26]OFD Sender: Processing packet 29408 [packets to send 8, broken 7] [00:23:26]ProducePacketName [00:23:26]name=ofd_packets/00029408 [00:23:26]OFD Sender: To server: pG, [00:23:26]CommunicateWithHost lk.salyk.kg:30040 [00:23:26]ConnectInit lk.salyk.kg [00:23:26]written 0, free lines is 4095 [00:23:26]Connected sock=10 [00:23:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 BE 08 08 01 34 1C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 02 00 00 00 F4 03 04 00 7E 73 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E0 72 00 00 35 04 06 00 FE 84 78 EA 37 E5 8D 77 4C 2F 27 86 F7 83 [00:23:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 A0 FC 47 00 78 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 39 36 33 31 35 34 10 04 04 00 E0 72 00 00 F4 03 04 00 21 1E 1C 66 B6 04 01 00 00 A4 72 02 1D DF 8D 8D EB [00:23:27]CommunicateWithHost err = 0 [00:23:27]CheckOFDResponse [00:23:27]1017 (14) - 77093643461234 [00:23:27]1041 (16) - 0000000000963154 [00:23:27]1040 (4) - 29408 [00:23:27]1012 (4) - 14.04.2024 18:19 [00:23:27]1206 (1) - 0 [00:23:27]OFD Sender: Remove packet 29408 [00:23:27]ProducePacketName [00:23:27]name=ofd_packets/00029408 [00:23:27]NVStorageDeleteData [00:23:27]Write to MH i2c: 01 00 00 A0 17 B7 [00:23:27]Write i2c OK [00:23:27]MH_I2C_Read... [00:23:27]Read from MH i2c: 01 [00:23:27]MH_I2C_Read... [00:23:27]Read from MH i2c: 01 07 00 [00:23:27]MH_I2C_Read... [00:23:27]Read from MH i2c: 01 07 00 A0 17 00 00 00 00 00 CE 0C 98 [00:23:27]RasterBufferAndPrint [00:23:27]line [00:23:27]line [00:23:27]line [00:23:27]line [00:23:27]line [00:23:27]written 0, free lines is 3286 [00:23:27]MH_Cut [00:23:27]Write to MH i2c: D1 01 00 A7 17 01 90 [00:23:27]Write i2c OK [00:23:27]MH_I2C_Read... [00:23:27]Read from MH i2c: D1 [00:23:27]MH_I2C_Read... [00:23:27]Read from MH i2c: D1 01 00 [00:23:27]MH_I2C_Read... [00:23:27]Read from MH i2c: D1 01 00 A7 17 00 8F [00:23:27]Write to MH i2c: 01 00 00 A8 17 BF [00:23:27]Write i2c OK [00:23:27]MH_I2C_Read... [00:23:27]OFD Sender: No OFD packet to send [00:23:28]*** Cut start [00:23:28]*** Partial cut [00:23:28]*** CUTSNS_PIN = 1 [00:23:28]*** CUTSNS_PIN = 0 [00:23:28]*** Brake cut motor [00:23:28]Read from MH i2c: 01 [00:23:28]MH_I2C_Read... [00:23:28]*** Stop cut motor [00:23:28]*** Cut end [00:23:28]Read from MH i2c: 01 07 00 [00:23:28]MH_I2C_Read... [00:23:28]Read from MH i2c: 01 07 00 A8 17 00 00 00 00 00 FF 0F D4 [00:23:28]process_action close_receipt done [00:23:28]requested_data is exist [00:23:28]produce_requested_data [00:23:28]requested_item fm.sn is exist - process it [00:23:28]wFMCommunicate request_size=4 [00:23:28]MH_SAM_APDU [00:23:28]CAPDU: 80 11 00 00 [00:23:28]Write to MH i2c: E2 08 00 A9 17 80 11 00 00 00 00 00 00 3A [00:23:28]Write i2c OK [00:23:28]MH_I2C_Read... [00:23:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:23:28]Read from MH i2c: E2 [00:23:28]MH_I2C_Read... [00:23:28]Read from MH i2c: E2 17 00 [00:23:28]MH_I2C_Read... [00:23:28]Read from MH i2c: E2 17 00 A9 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 89 [00:23:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [00:23:28]wFMCommunicate OK [00:23:28]requested_item fd.num is exist - process it [00:23:28]SAM_PROTO_GetFieldsCounters [00:23:28]wFMCommunicate request_size=4 [00:23:28]MH_SAM_APDU [00:23:28]CAPDU: 80 13 00 00 [00:23:28]Write to MH i2c: E2 08 00 AA 17 80 13 00 00 00 00 00 00 3D [00:23:28]Write i2c OK [00:23:28]MH_I2C_Read... [00:23:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:23:28]Read from MH i2c: E2 [00:23:28]MH_I2C_Read... [00:23:28]Read from MH i2c: E2 62 00 [00:23:28]MH_I2C_Read... [00:23:28]Read from MH i2c: E2 62 00 AA 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E0 72 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 48 [00:23:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E0 72 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:23:28]wFMCommunicate OK [00:23:28]SAM_PROTO_GetFieldsCounters done [00:23:28]requested_item shift.num is exist - process it [00:23:28]requested_item shift.opened is exist - process it [00:23:28]req_shift_opened [00:23:28]FM_GetShiftState [00:23:28]SAM_PROTO_GetShiftState [00:23:28]wFMCommunicate request_size=4 [00:23:28]MH_SAM_APDU [00:23:28]CAPDU: 80 13 01 00 [00:23:28]Write to MH i2c: E2 08 00 AB 17 80 13 01 00 00 00 00 00 3F [00:23:28]Write i2c OK [00:23:28]MH_I2C_Read... [00:23:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:23:29]Read from MH i2c: E2 [00:23:29]MH_I2C_Read... [00:23:29]Read from MH i2c: E2 0E 00 [00:23:29]MH_I2C_Read... [00:23:29]Read from MH i2c: E2 0E 00 AB 17 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 33 [00:23:29]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [00:23:29]wFMCommunicate OK [00:23:29]SAM_PROTO_GetShiftState done [00:23:29]FM_GetShiftState done [00:23:29]req_shift_opened done [00:23:29]requested_item shift.open_date is exist - process it [00:23:29]req_shift_open_date [00:23:29]req_shift_open_date done [00:23:29]produce_requested_data done [00:23:29]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29408,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [00:23:29]process_action_free close_receipt [00:23:29]json_value_free [00:23:29]json_value_free done [00:23:29]process_json_proto returns [00:23:29]Send response to host [00:23:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29408,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [00:23:29]free response buf [00:23:29]execute_script done [00:23:29]execute_script returns [00:23:29]free content buf [00:23:29]Sock 9.Close socket [00:23:29]Sock 9.Thread stoped [00:23:32]OFD Sender: No OFD packet to send [00:23:37]OFD Sender: No OFD packet to send [00:23:42]OFD Sender: No OFD packet to send [00:23:47]OFD Sender: No OFD packet to send [00:23:52]OFD Sender: No OFD packet to send [00:23:57]OFD Sender: No OFD packet to send [00:24:02]OFD Sender: No OFD packet to send [00:24:07]accept exits with 8 [00:24:07]New connection [00:24:07]New thread 3066969444 created [00:24:07]Thread 3067112804 joined [00:24:07]Waiting for new connection... [00:24:07] Sock 8.Parse request [00:24:07]Sock 8.Check first char [00:24:07]Sock 8.First char is OK [00:24:07]request: POST /json_proto HTTP/1.0 [00:24:07]Method: POST [00:24:07]URL: /json_proto [00:24:07]Method is POST - this is cgi request [00:24:07]url: /json_proto [00:24:07]query_string will be loaded in cgi processing [00:24:07]execute_cgi json_proto POST (null) [00:24:07]execute_cgi path=json_proto method=POST [00:24:07]POST find Content-Length [00:24:07]Host: 172.17.33.3:8080 [00:24:07]Content-Length: 790 [00:24:07]Content-Type: application/json [00:24:07] [00:24:07]POST finish read [00:24:07]Found Content-Length = 790 [00:24:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347801", "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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:24:07]execute_script... [00:24: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)347801", "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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:24:07]POST & json_proto [00:24:07]process_json_proto [00:24:07]json parsed OK: [00:24:07]protocol is kg_v1.0 [00:24:07]action value=close_receipt [00:24:07]process_action close_receipt [00:24:07]cmd_close_receipt [00:24:07]MH_GetDate [00:24:07]Write to MH i2c: F0 00 00 AC 17 B2 [00:24:07]Write i2c OK [00:24:07]MH_I2C_Read... [00:24:07]Read from MH i2c: F0 [00:24:07]MH_I2C_Read... [00:24:07]Read from MH i2c: F0 09 00 [00:24:07]MH_I2C_Read... [00:24:07]Read from MH i2c: F0 09 00 AC 17 00 A8 73 1C 66 23 5B 8F 65 CA [00:24:07]GetLastDocTimeStamp 1713140606 [00:24:07]current date 1713140648 [00:24:07]FM_GetShiftState [00:24:07]SAM_PROTO_GetShiftState [00:24:07]wFMCommunicate request_size=4 [00:24:07]MH_SAM_APDU [00:24:07]CAPDU: 80 13 01 00 [00:24:07]Write to MH i2c: E2 08 00 AD 17 80 13 01 00 00 00 00 00 41 [00:24:07]Write i2c OK [00:24:07]MH_I2C_Read... [00:24:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:24:07]Read from MH i2c: E2 [00:24:07]MH_I2C_Read... [00:24:07]Read from MH i2c: E2 0E 00 [00:24:07]MH_I2C_Read... [00:24:07]Read from MH i2c: E2 0E 00 AD 17 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 35 [00:24:07]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [00:24:07]wFMCommunicate OK [00:24:07]SAM_PROTO_GetShiftState done [00:24:07]FM_GetShiftState done [00:24:07]opened in 1713140468 [00:24:07]opened+sec_in_day 1713226868 [00:24:07]quantity*price = 50025 [00:24:07]sum+1 = 50026 [00:24:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.25 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.25 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 3 15.04.2024 00:24 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000963154 ФД: 29409 ФПД: 280469955879079 1/tax-web-control/client/api/v1/ticket?date=20240415T002408&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29409&fm=280469955879079&tin=02508201610067®Number=0000138879044617&sum=50025 [00:24:08]StoreToDocumentArchive [00:24:08]shift 117 fd 29409 [00:24:08]save to /storage/0117/doc_00029409 [00:24:08]save last doc name /storage/0117/doc_00029409 to /storage/kkm_last_doc_name [00:24:08]save OK [00:24:08]Clear old archive folders... [00:24:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:24:08]tlvbuf is 002087D0 [00:24:08]SAM_PROTO_ClearQueue [00:24:08]wFMCommunicate request_size=4 [00:24:08]MH_SAM_APDU [00:24:08]CAPDU: 80 09 00 00 [00:24:08]Write to MH i2c: E2 08 00 BA 17 80 09 00 00 00 00 00 00 43 [00:24:08]Write i2c OK [00:24:08]MH_I2C_Read... [00:24:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:24:08]Read from MH i2c: E2 [00:24:08]MH_I2C_Read... [00:24:08]Read from MH i2c: E2 03 00 [00:24:08]MH_I2C_Read... [00:24:08]Read from MH i2c: E2 03 00 BA 17 00 90 00 45 [00:24:08]RAPDU: 90 00 [00:24:08]wFMCommunicate OK [00:24:08]SAM_PROTO_ClearQueue done [00:24:08]KKMCreateOFDPacket [00:24:08]OFDProtocolAddRootSTLVToBuf [00:24:08]FM_MakeSignedData [00:24:08]FM_MakeSignedData [00:24:08]SAM_PROTO_SignData [00:24:08]wFMCommunicate request_size=4 [00:24:08]MH_SAM_APDU [00:24:08]CAPDU: 80 0D 01 02 [00:24:08]Write to MH i2c: E2 08 00 BB 17 80 0D 01 02 00 00 00 00 4B [00:24:08]Write i2c OK [00:24:08]MH_I2C_Read... [00:24:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:24:08]Read from MH i2c: E2 [00:24:08]MH_I2C_Read... [00:24:08]Read from MH i2c: E2 03 00 [00:24:08]MH_I2C_Read... [00:24:08]Read from MH i2c: E2 03 00 BB 17 00 90 00 46 [00:24:08]RAPDU: 90 00 [00:24:08]wFMCommunicate OK [00:24:08]wFMCommunicate request_size=255 [00:24:08]MH_SAM_APDU [00:24: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 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 03 00 00 00 F4 03 04 00 A8 73 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E1 72 00 00 35 04 06 00 FF [00:24:08]Write to MH i2c: E2 02 01 BC 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 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 03 00 00 00 F4 03 04 00 A8 73 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E1 72 00 00 35 04 06 00 FF 00 00 A6 [00:24:08]Write i2c OK [00:24:08]MH_I2C_Read... [00:24:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:24:08]Read from MH i2c: E2 [00:24:08]MH_I2C_Read... [00:24:08]Read from MH i2c: E2 03 00 [00:24:08]MH_I2C_Read... [00:24:08]Read from MH i2c: E2 03 00 BC 17 00 90 00 47 [00:24:08]RAPDU: 90 00 [00:24:08]wFMCommunicate OK [00:24:08]wFMCommunicate request_size=10 [00:24:08]MH_SAM_APDU [00:24:08]CAPDU: 80 0D 02 02 05 16 00 17 20 A7 [00:24:08]Write to MH i2c: E2 0D 00 BD 17 80 0D 02 02 05 00 16 00 17 20 A7 00 00 4C [00:24:08]Write i2c OK [00:24:08]MH_I2C_Read... [00:24:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:24:08]Read from MH i2c: E2 [00:24:08]MH_I2C_Read... [00:24:08]Read from MH i2c: E2 03 00 [00:24:08]MH_I2C_Read... [00:24:08]Read from MH i2c: E2 03 00 BD 17 00 90 00 48 [00:24:08]RAPDU: 90 00 [00:24:08]wFMCommunicate OK [00:24:08]wFMCommunicate request_size=4 [00:24:08]MH_SAM_APDU [00:24:08]CAPDU: 80 0D 03 02 [00:24:08]Write to MH i2c: E2 08 00 BE 17 80 0D 03 02 00 00 00 00 50 [00:24:08]Write i2c OK [00:24:08]MH_I2C_Read... [00:24:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:24:08]Read from MH i2c: E2 [00:24:08]MH_I2C_Read... [00:24:08]Read from MH i2c: E2 0B 00 [00:24:08]MH_I2C_Read... [00:24:08]Read from MH i2c: E2 0B 00 BE 17 00 87 D3 2C 01 21 1D 48 9D 90 00 FB [00:24:08]RAPDU: 87 D3 2C 01 21 1D 48 9D 90 00 [00:24:08]wFMCommunicate OK [00:24:08]SAM_PROTO_SignData done [00:24:08]FM_MakeSignedData done [00:24:08]CreateOFDProtocolMessage [00:24:08]wFMCommunicate request_size=4 [00:24:08]MH_SAM_APDU [00:24:08]CAPDU: 80 11 00 00 [00:24:08]Write to MH i2c: E2 08 00 BF 17 80 11 00 00 00 00 00 00 50 [00:24:08]Write i2c OK [00:24:08]MH_I2C_Read... [00:24:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:24:08]Read from MH i2c: E2 [00:24:08]MH_I2C_Read... [00:24:08]Read from MH i2c: E2 17 00 [00:24:08]MH_I2C_Read... [00:24:08]Read from MH i2c: E2 17 00 BF 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 9F [00:24:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [00:24:08]wFMCommunicate OK [00:24:08]CreateOFDProtocolMessage done [00:24:08]OFDSenderStorePacket 29409 [00:24:08]StoreOFDPacket docnum=29409 [00:24:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 4B 2E 07 01 30 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 03 00 00 00 F4 03 04 00 A8 73 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E1 72 00 00 35 04 06 00 FF 16 00 17 20 A7 87 D3 2C 01 21 1D 48 9D [00:24:08]CheckFolder [00:24:08]dirname=/storage/ofd_packets [00:24:08]CheckFolder done [00:24:08]ProducePacketName [00:24:08]name=ofd_packets/00029409 [00:24:08]NVStorageSaveData ofd_packets/00029409 [00:24:08]File name is /storage/ofd_packets/00029409 [00:24:08]Write 301 bytes [00:24:08]NVStorageSaveData done [00:24:08]OFDSenderStorePacket done [00:24:08]KKMCreateOFDPacket done [00:24:08]NVStorageSaveData kkm_last_timestamp [00:24:08]File name is /storage/kkm_last_timestamp [00:24:08]Write 4 bytes [00:24:08]NVStorageSaveData done [00:24:08]ExternCall_PrintAddStr [00:24:08]wPrintStart [00:24:08]Write to MH i2c: 01 00 00 C0 17 D7 [00:24:08]Write i2c OK [00:24:08]MH_I2C_Read... [00:24:08]Read from MH i2c: 01 [00:24:08]MH_I2C_Read... [00:24:08]Read from MH i2c: 01 07 00 [00:24:08]MH_I2C_Read... [00:24:08]Read from MH i2c: 01 07 00 C0 17 00 00 00 00 00 FF 0F EC [00:24:08]RasterBufferAndPrint [00:24:08]line Счет N : (1)347801 [00:24:08]line ИНН: 02508201610067 [00:24:08]line Контрольно-Кассовый Чек [00:24:08]line ПРОДАЖА [00:24:08]line ТРК (МРК, ГНК) : 42 [00:24:08]line Товар: 2710124130 [00:24:08]line Аи-92-К-5 [00:24:08]line 7.780 * 64.30 [00:24:08]line = 500.25 [00:24:08]line НДС 12% НСП 1% [00:24:08]line > о реализуемом товаре [00:24:08]line ИТОГО: 500.25 [00:24:08]line НСП 1% : 4.43 [00:24:08]line НДС 12% : 53.12 [00:24:08]line Наличными: 0.00 [00:24:08]line Безнал.: 500.25 [00:24:08]line Место: АЗС № 108 "Партнер Нефть" [00:24:08]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [00:24:08]line СНО: Общий режим [00:24:08]line Чек 3 15.04.2024 00:24 [00:24:08]line Смена: 117 ФФД: 1.0 [00:24:08]line ЗНМ: 0300000027 [00:24:08]line РНМ: 0000138879044617 [00:24:08]line Версия ККМ: 001 [00:24:08]line Платежная система: KICB Банк [00:24:08]line ФМ: 0000000000963154 [00:24:08]line ФД: 29409 [00:24:08]line ФПД: 280469955879079 [00:24:08]line 1/tax-web-control/client/api/v1/ticket?date=20240415T002408&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29409&fm=280469955879079&tin=02508201610067®Number=0000138879044617&sum=50025 [00:24:09]OFD Sender: Processing packet 29409 [packets to send 8, broken 7] [00:24:09]ProducePacketName [00:24:09]name=ofd_packets/00029409 [00:24:09]OFD Sender: To server: pG, [00:24:09]CommunicateWithHost lk.salyk.kg:30040 [00:24:09]ConnectInit lk.salyk.kg [00:24:09]written 0, free lines is 4095 [00:24:09]Connected sock=10 [00:24:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 4B 2E 07 01 30 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 03 00 00 00 F4 03 04 00 A8 73 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E1 72 00 00 35 04 06 00 FF 16 00 17 20 A7 87 D3 2C 01 21 1D 48 9D [00:24:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 BC A4 47 00 FE DB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E1 72 00 00 F4 03 04 00 4B 1E 1C 66 B6 04 01 00 00 92 07 F4 DA 05 37 A8 CC [00:24:09]CommunicateWithHost err = 0 [00:24:09]CheckOFDResponse [00:24:09]1017 (14) - 77093643461234 [00:24:09]1041 (16) - 0000000000963154 [00:24:09]1040 (4) - 29409 [00:24:09]1012 (4) - 14.04.2024 18:19 [00:24:09]1206 (1) - 0 [00:24:09]OFD Sender: Remove packet 29409 [00:24:09]ProducePacketName [00:24:09]name=ofd_packets/00029409 [00:24:09]NVStorageDeleteData [00:24:09]Write to MH i2c: 01 00 00 E9 17 00 [00:24:09]Write i2c OK [00:24:09]MH_I2C_Read... [00:24:09]Read from MH i2c: 01 [00:24:09]MH_I2C_Read... [00:24:09]Read from MH i2c: 01 07 00 [00:24:09]MH_I2C_Read... [00:24:09]Read from MH i2c: 01 07 00 E9 17 00 00 00 00 00 E0 0C F3 [00:24:09]RasterBufferAndPrint [00:24:09]line [00:24:09]line [00:24:09]line [00:24:09]line [00:24:09]line [00:24:09]written 0, free lines is 3302 [00:24:09]MH_Cut [00:24:09]Write to MH i2c: D1 01 00 F0 17 01 D9 [00:24:09]Write i2c OK [00:24:09]MH_I2C_Read... [00:24:09]Read from MH i2c: D1 [00:24:09]MH_I2C_Read... [00:24:09]Read from MH i2c: D1 01 00 [00:24:09]MH_I2C_Read... [00:24:09]Read from MH i2c: D1 01 00 F0 17 00 D8 [00:24:09]Write to MH i2c: 01 00 00 F1 17 08 [00:24:09]Write i2c OK [00:24:09]MH_I2C_Read... [00:24:09]OFD Sender: No OFD packet to send [00:24:10]*** Cut start [00:24:10]*** Partial cut [00:24:10]*** CUTSNS_PIN = 1 [00:24:10]*** CUTSNS_PIN = 0 [00:24:10]*** Brake cut motor [00:24:10]Read from MH i2c: 01 [00:24:10]MH_I2C_Read... [00:24:10]*** Stop cut motor [00:24:10]*** Cut end [00:24:10]Read from MH i2c: 01 07 00 [00:24:10]MH_I2C_Read... [00:24:10]Read from MH i2c: 01 07 00 F1 17 00 00 00 00 00 FF 0F 1D [00:24:10]process_action close_receipt done [00:24:10]requested_data is exist [00:24:10]produce_requested_data [00:24:10]requested_item fm.sn is exist - process it [00:24:10]wFMCommunicate request_size=4 [00:24:10]MH_SAM_APDU [00:24:10]CAPDU: 80 11 00 00 [00:24:10]Write to MH i2c: E2 08 00 F2 17 80 11 00 00 00 00 00 00 83 [00:24:10]Write i2c OK [00:24:10]MH_I2C_Read... [00:24:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:24:11]Read from MH i2c: E2 [00:24:11]MH_I2C_Read... [00:24:11]Read from MH i2c: E2 17 00 [00:24:11]MH_I2C_Read... [00:24:11]Read from MH i2c: E2 17 00 F2 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D2 [00:24:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [00:24:11]wFMCommunicate OK [00:24:11]requested_item fd.num is exist - process it [00:24:11]SAM_PROTO_GetFieldsCounters [00:24:11]wFMCommunicate request_size=4 [00:24:11]MH_SAM_APDU [00:24:11]CAPDU: 80 13 00 00 [00:24:11]Write to MH i2c: E2 08 00 F3 17 80 13 00 00 00 00 00 00 86 [00:24:11]Write i2c OK [00:24:11]MH_I2C_Read... [00:24:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:24:11]Read from MH i2c: E2 [00:24:11]MH_I2C_Read... [00:24:11]Read from MH i2c: E2 62 00 [00:24:11]MH_I2C_Read... [00:24:11]Read from MH i2c: E2 62 00 F3 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E1 72 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 95 [00:24:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E1 72 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:24:11]wFMCommunicate OK [00:24:11]SAM_PROTO_GetFieldsCounters done [00:24:11]requested_item shift.num is exist - process it [00:24:11]requested_item shift.opened is exist - process it [00:24:11]req_shift_opened [00:24:11]FM_GetShiftState [00:24:11]SAM_PROTO_GetShiftState [00:24:11]wFMCommunicate request_size=4 [00:24:11]MH_SAM_APDU [00:24:11]CAPDU: 80 13 01 00 [00:24:11]Write to MH i2c: E2 08 00 F4 17 80 13 01 00 00 00 00 00 88 [00:24:11]Write i2c OK [00:24:11]MH_I2C_Read... [00:24:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:24:11]Read from MH i2c: E2 [00:24:11]MH_I2C_Read... [00:24:11]Read from MH i2c: E2 0E 00 [00:24:11]MH_I2C_Read... [00:24:11]Read from MH i2c: E2 0E 00 F4 17 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 7C [00:24:11]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [00:24:11]wFMCommunicate OK [00:24:11]SAM_PROTO_GetShiftState done [00:24:11]FM_GetShiftState done [00:24:11]req_shift_opened done [00:24:11]requested_item shift.open_date is exist - process it [00:24:11]req_shift_open_date [00:24:11]req_shift_open_date done [00:24:11]produce_requested_data done [00:24:11]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29409,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [00:24:11]process_action_free close_receipt [00:24:11]json_value_free [00:24:11]json_value_free done [00:24:11]process_json_proto returns [00:24:11]Send response to host [00:24:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29409,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [00:24:11]free response buf [00:24:11]execute_script done [00:24:11]execute_script returns [00:24:11]free content buf [00:24:11]Sock 8.Close socket [00:24:11]Sock 8.Thread stoped [00:24:14]OFD Sender: No OFD packet to send [00:24:19]OFD Sender: No OFD packet to send [00:24:24]OFD Sender: No OFD packet to send [00:24:29]OFD Sender: No OFD packet to send [00:24:34]OFD Sender: No OFD packet to send [00:24:39]OFD Sender: No OFD packet to send [00:24:44]OFD Sender: No OFD packet to send [00:24:49]OFD Sender: No OFD packet to send [00:24:54]OFD Sender: No OFD packet to send [00:24:59]OFD Sender: No OFD packet to send [00:25:04]OFD Sender: No OFD packet to send [00:25:09]OFD Sender: No OFD packet to send [00:25:14]OFD Sender: No OFD packet to send [00:25:19]OFD Sender: No OFD packet to send [00:25:24]OFD Sender: No OFD packet to send [00:25:29]OFD Sender: No OFD packet to send [00:25:34]OFD Sender: No OFD packet to send [00:25:39]OFD Sender: No OFD packet to send [00:25:41]accept exits with 9 [00:25:41]New connection [00:25:41]New thread 3067112804 created [00:25:41]Thread 3066969444 joined [00:25:41]Waiting for new connection... [00:25:41] Sock 9.Parse request [00:25:41]Sock 9.Check first char [00:25:41]Sock 9.First char is OK [00:25:41]request: POST /json_proto HTTP/1.0 [00:25:41]Method: POST [00:25:41]URL: /json_proto [00:25:41]Method is POST - this is cgi request [00:25:41]url: /json_proto [00:25:41]query_string will be loaded in cgi processing [00:25:41]execute_cgi json_proto POST (null) [00:25:41]execute_cgi path=json_proto method=POST [00:25:41]POST find Content-Length [00:25:41]Host: 172.17.33.3:8080 [00:25:41]Content-Length: 790 [00:25:41]Content-Type: application/json [00:25:41] [00:25:41]POST finish read [00:25:41]Found Content-Length = 790 [00:25:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347802", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:25:41]execute_script... [00:25: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)347802", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:25:41]POST & json_proto [00:25:41]process_json_proto [00:25:41]json parsed OK: [00:25:41]protocol is kg_v1.0 [00:25:41]action value=close_receipt [00:25:41]process_action close_receipt [00:25:41]cmd_close_receipt [00:25:41]MH_GetDate [00:25:41]Write to MH i2c: F0 00 00 F5 17 FB [00:25:41]Write i2c OK [00:25:41]MH_I2C_Read... [00:25:41]Read from MH i2c: F0 [00:25:41]MH_I2C_Read... [00:25:41]Read from MH i2c: F0 09 00 [00:25:41]MH_I2C_Read... [00:25:41]Read from MH i2c: F0 09 00 F5 17 00 06 74 1C 66 23 5B 8F 65 72 [00:25:41]GetLastDocTimeStamp 1713140648 [00:25:41]current date 1713140742 [00:25:41]FM_GetShiftState [00:25:41]SAM_PROTO_GetShiftState [00:25:41]wFMCommunicate request_size=4 [00:25:41]MH_SAM_APDU [00:25:41]CAPDU: 80 13 01 00 [00:25:41]Write to MH i2c: E2 08 00 F6 17 80 13 01 00 00 00 00 00 8A [00:25:41]Write i2c OK [00:25:41]MH_I2C_Read... [00:25:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:25:41]Read from MH i2c: E2 [00:25:41]MH_I2C_Read... [00:25:41]Read from MH i2c: E2 0E 00 [00:25:41]MH_I2C_Read... [00:25:41]Read from MH i2c: E2 0E 00 F6 17 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 7E [00:25:41]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [00:25:41]wFMCommunicate OK [00:25:41]SAM_PROTO_GetShiftState done [00:25:41]FM_GetShiftState done [00:25:41]opened in 1713140468 [00:25:41]opened+sec_in_day 1713226868 [00:25:41]quantity*price = 50025 [00:25:41]sum+1 = 50026 [00:25:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.25 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.25 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 4 15.04.2024 00:25 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000963154 ФД: 29410 ФПД: 178850755915661 1/tax-web-control/client/api/v1/ticket?date=20240415T002542&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29410&fm=178850755915661&tin=02508201610067®Number=0000138879044617&sum=50025 [00:25:42]StoreToDocumentArchive [00:25:42]shift 117 fd 29410 [00:25:42]save to /storage/0117/doc_00029410 [00:25:42]save last doc name /storage/0117/doc_00029410 to /storage/kkm_last_doc_name [00:25:42]save OK [00:25:42]Clear old archive folders... [00:25:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:25:42]tlvbuf is 00232C40 [00:25:42]SAM_PROTO_ClearQueue [00:25:42]wFMCommunicate request_size=4 [00:25:42]MH_SAM_APDU [00:25:42]CAPDU: 80 09 00 00 [00:25:42]Write to MH i2c: E2 08 00 03 18 80 09 00 00 00 00 00 00 8D [00:25:42]Write i2c OK [00:25:42]MH_I2C_Read... [00:25:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:25:42]Read from MH i2c: E2 [00:25:42]MH_I2C_Read... [00:25:42]Read from MH i2c: E2 03 00 [00:25:42]MH_I2C_Read... [00:25:42]Read from MH i2c: E2 03 00 03 18 00 90 00 8F [00:25:42]RAPDU: 90 00 [00:25:42]wFMCommunicate OK [00:25:42]SAM_PROTO_ClearQueue done [00:25:42]KKMCreateOFDPacket [00:25:42]OFDProtocolAddRootSTLVToBuf [00:25:42]FM_MakeSignedData [00:25:42]FM_MakeSignedData [00:25:42]SAM_PROTO_SignData [00:25:42]wFMCommunicate request_size=4 [00:25:42]MH_SAM_APDU [00:25:42]CAPDU: 80 0D 01 02 [00:25:42]Write to MH i2c: E2 08 00 04 18 80 0D 01 02 00 00 00 00 95 [00:25:42]Write i2c OK [00:25:42]MH_I2C_Read... [00:25:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:25:42]Read from MH i2c: E2 [00:25:42]MH_I2C_Read... [00:25:42]Read from MH i2c: E2 03 00 [00:25:42]MH_I2C_Read... [00:25:42]Read from MH i2c: E2 03 00 04 18 00 90 00 90 [00:25:42]RAPDU: 90 00 [00:25:42]wFMCommunicate OK [00:25:42]wFMCommunicate request_size=255 [00:25:42]MH_SAM_APDU [00:25: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 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 04 00 00 00 F4 03 04 00 06 74 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E2 72 00 00 35 04 06 00 A2 [00:25:42]Write to MH i2c: E2 02 01 05 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 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 04 00 00 00 F4 03 04 00 06 74 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E2 72 00 00 35 04 06 00 A2 00 00 F4 [00:25:42]Write i2c OK [00:25:42]MH_I2C_Read... [00:25:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:25:42]Read from MH i2c: E2 [00:25:42]MH_I2C_Read... [00:25:42]Read from MH i2c: E2 03 00 [00:25:42]MH_I2C_Read... [00:25:42]Read from MH i2c: E2 03 00 05 18 00 90 00 91 [00:25:42]RAPDU: 90 00 [00:25:42]wFMCommunicate OK [00:25:42]wFMCommunicate request_size=10 [00:25:42]MH_SAM_APDU [00:25:42]CAPDU: 80 0D 02 02 05 A9 EF C6 2F 8D [00:25:42]Write to MH i2c: E2 0D 00 06 18 80 0D 02 02 05 00 A9 EF C6 2F 8D 00 00 BC [00:25:42]Write i2c OK [00:25:42]MH_I2C_Read... [00:25:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:25:42]Read from MH i2c: E2 [00:25:42]MH_I2C_Read... [00:25:42]Read from MH i2c: E2 03 00 [00:25:42]MH_I2C_Read... [00:25:42]Read from MH i2c: E2 03 00 06 18 00 90 00 92 [00:25:42]RAPDU: 90 00 [00:25:42]wFMCommunicate OK [00:25:42]wFMCommunicate request_size=4 [00:25:42]MH_SAM_APDU [00:25:42]CAPDU: 80 0D 03 02 [00:25:42]Write to MH i2c: E2 08 00 07 18 80 0D 03 02 00 00 00 00 9A [00:25:42]Write i2c OK [00:25:42]MH_I2C_Read... [00:25:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:25:42]Read from MH i2c: E2 [00:25:42]MH_I2C_Read... [00:25:42]Read from MH i2c: E2 0B 00 [00:25:42]MH_I2C_Read... [00:25:42]Read from MH i2c: E2 0B 00 07 18 00 F0 D5 7D A8 88 A9 6B AE 90 00 CF [00:25:42]RAPDU: F0 D5 7D A8 88 A9 6B AE 90 00 [00:25:42]wFMCommunicate OK [00:25:42]SAM_PROTO_SignData done [00:25:42]FM_MakeSignedData done [00:25:42]CreateOFDProtocolMessage [00:25:42]wFMCommunicate request_size=4 [00:25:42]MH_SAM_APDU [00:25:42]CAPDU: 80 11 00 00 [00:25:42]Write to MH i2c: E2 08 00 08 18 80 11 00 00 00 00 00 00 9A [00:25:42]Write i2c OK [00:25:42]MH_I2C_Read... [00:25:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:25:42]Read from MH i2c: E2 [00:25:42]MH_I2C_Read... [00:25:42]Read from MH i2c: E2 17 00 [00:25:42]MH_I2C_Read... [00:25:42]Read from MH i2c: E2 17 00 08 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E9 [00:25:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [00:25:42]wFMCommunicate OK [00:25:42]CreateOFDProtocolMessage done [00:25:42]OFDSenderStorePacket 29410 [00:25:42]StoreOFDPacket docnum=29410 [00:25:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 57 5B 07 01 48 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 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 04 00 00 00 F4 03 04 00 06 74 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E2 72 00 00 35 04 06 00 A2 A9 EF C6 2F 8D F0 D5 7D A8 88 A9 6B AE [00:25:42]CheckFolder [00:25:42]dirname=/storage/ofd_packets [00:25:42]CheckFolder done [00:25:42]ProducePacketName [00:25:42]name=ofd_packets/00029410 [00:25:42]NVStorageSaveData ofd_packets/00029410 [00:25:42]File name is /storage/ofd_packets/00029410 [00:25:42]Write 301 bytes [00:25:42]NVStorageSaveData done [00:25:42]OFDSenderStorePacket done [00:25:42]KKMCreateOFDPacket done [00:25:42]NVStorageSaveData kkm_last_timestamp [00:25:42]File name is /storage/kkm_last_timestamp [00:25:42]Write 4 bytes [00:25:42]NVStorageSaveData done [00:25:42]ExternCall_PrintAddStr [00:25:42]wPrintStart [00:25:42]Write to MH i2c: 01 00 00 09 18 21 [00:25:42]Write i2c OK [00:25:42]MH_I2C_Read... [00:25:42]Read from MH i2c: 01 [00:25:42]MH_I2C_Read... [00:25:42]Read from MH i2c: 01 07 00 [00:25:42]MH_I2C_Read... [00:25:42]Read from MH i2c: 01 07 00 09 18 00 00 00 00 00 FF 0F 36 [00:25:42]RasterBufferAndPrint [00:25:42]line Счет N : (1)347802 [00:25:42]line ИНН: 02508201610067 [00:25:42]line Контрольно-Кассовый Чек [00:25:42]line ПРОДАЖА [00:25:42]line ТРК (МРК, ГНК) : 63 [00:25:42]line Товар: 2710124130 [00:25:42]line Аи-92-К-5 [00:25:42]line 7.780 * 64.30 [00:25:42]line = 500.25 [00:25:42]line НДС 12% НСП 1% [00:25:42]line > о реализуемом товаре [00:25:42]line ИТОГО: 500.25 [00:25:42]line НСП 1% : 4.43 [00:25:42]line НДС 12% : 53.12 [00:25:42]line Наличными: 0.00 [00:25:42]line Безнал.: 500.25 [00:25:42]line Место: АЗС № 108 "Партнер Нефть" [00:25:42]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [00:25:42]line СНО: Общий режим [00:25:42]line Чек 4 15.04.2024 00:25 [00:25:42]line Смена: 117 ФФД: 1.0 [00:25:42]line ЗНМ: 0300000027 [00:25:42]line РНМ: 0000138879044617 [00:25:42]line Версия ККМ: 001 [00:25:42]line Платежная система: KICB Банк [00:25:42]line ФМ: 0000000000963154 [00:25:42]line ФД: 29410 [00:25:42]line ФПД: 178850755915661 [00:25:42]line 1/tax-web-control/client/api/v1/ticket?date=20240415T002542&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29410&fm=178850755915661&tin=02508201610067®Number=0000138879044617&sum=50025 [00:25:43]OFD Sender: Processing packet 29410 [packets to send 8, broken 7] [00:25:43]ProducePacketName [00:25:43]name=ofd_packets/00029410 [00:25:43]OFD Sender: To server: pG, [00:25:43]CommunicateWithHost lk.salyk.kg:30040 [00:25:43]ConnectInit lk.salyk.kg [00:25:43]written 0, free lines is 4095 [00:25:43]Connected sock=10 [00:25:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 57 5B 07 01 48 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 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 04 00 00 00 F4 03 04 00 06 74 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E2 72 00 00 35 04 06 00 A2 A9 EF C6 2F 8D F0 D5 7D A8 88 A9 6B AE [00:25:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 6A C3 47 00 59 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E2 72 00 00 F4 03 04 00 A9 1E 1C 66 B6 04 01 00 00 34 5E 74 1A 0F 0D E4 3D [00:25:43]CommunicateWithHost err = 0 [00:25:43]CheckOFDResponse [00:25:43]1017 (14) - 77093643461234 [00:25:43]1041 (16) - 0000000000963154 [00:25:43]1040 (4) - 29410 [00:25:43]1012 (4) - 14.04.2024 18:21 [00:25:43]1206 (1) - 0 [00:25:43]OFD Sender: Remove packet 29410 [00:25:43]ProducePacketName [00:25:43]name=ofd_packets/00029410 [00:25:43]NVStorageDeleteData [00:25:43]Write to MH i2c: 01 00 00 32 18 4A [00:25:43]Write i2c OK [00:25:43]MH_I2C_Read... [00:25:43]Read from MH i2c: 01 [00:25:43]MH_I2C_Read... [00:25:43]Read from MH i2c: 01 07 00 [00:25:43]MH_I2C_Read... [00:25:43]Read from MH i2c: 01 07 00 32 18 00 00 00 00 00 E6 0C 43 [00:25:43]RasterBufferAndPrint [00:25:43]line [00:25:43]line [00:25:43]line [00:25:43]line [00:25:43]line [00:25:43]written 0, free lines is 3307 [00:25:43]MH_Cut [00:25:43]Write to MH i2c: D1 01 00 39 18 01 23 [00:25:43]Write i2c OK [00:25:43]MH_I2C_Read... [00:25:43]Read from MH i2c: D1 [00:25:43]MH_I2C_Read... [00:25:43]Read from MH i2c: D1 01 00 [00:25:43]MH_I2C_Read... [00:25:43]Read from MH i2c: D1 01 00 39 18 00 22 [00:25:43]Write to MH i2c: 01 00 00 3A 18 52 [00:25:43]Write i2c OK [00:25:43]MH_I2C_Read... [00:25:43]OFD Sender: No OFD packet to send [00:25:44]*** Cut start [00:25:44]*** Partial cut [00:25:44]*** CUTSNS_PIN = 1 [00:25:44]*** CUTSNS_PIN = 0 [00:25:44]*** Brake cut motor [00:25:44]Read from MH i2c: 01 [00:25:45]MH_I2C_Read... [00:25:45]*** Stop cut motor [00:25:45]*** Cut end [00:25:45]Read from MH i2c: 01 07 00 [00:25:45]MH_I2C_Read... [00:25:45]Read from MH i2c: 01 07 00 3A 18 00 00 00 00 00 FF 0F 67 [00:25:45]process_action close_receipt done [00:25:45]requested_data is exist [00:25:45]produce_requested_data [00:25:45]requested_item fm.sn is exist - process it [00:25:45]wFMCommunicate request_size=4 [00:25:45]MH_SAM_APDU [00:25:45]CAPDU: 80 11 00 00 [00:25:45]Write to MH i2c: E2 08 00 3B 18 80 11 00 00 00 00 00 00 CD [00:25:45]Write i2c OK [00:25:45]MH_I2C_Read... [00:25:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:25:45]Read from MH i2c: E2 [00:25:45]MH_I2C_Read... [00:25:45]Read from MH i2c: E2 17 00 [00:25:45]MH_I2C_Read... [00:25:45]Read from MH i2c: E2 17 00 3B 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 1C [00:25:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [00:25:45]wFMCommunicate OK [00:25:45]requested_item fd.num is exist - process it [00:25:45]SAM_PROTO_GetFieldsCounters [00:25:45]wFMCommunicate request_size=4 [00:25:45]MH_SAM_APDU [00:25:45]CAPDU: 80 13 00 00 [00:25:45]Write to MH i2c: E2 08 00 3C 18 80 13 00 00 00 00 00 00 D0 [00:25:45]Write i2c OK [00:25:45]MH_I2C_Read... [00:25:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:25:45]Read from MH i2c: E2 [00:25:45]MH_I2C_Read... [00:25:45]Read from MH i2c: E2 62 00 [00:25:45]MH_I2C_Read... [00:25:45]Read from MH i2c: E2 62 00 3C 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E2 72 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 E3 [00:25:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E2 72 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:25:45]wFMCommunicate OK [00:25:45]SAM_PROTO_GetFieldsCounters done [00:25:45]requested_item shift.num is exist - process it [00:25:45]requested_item shift.opened is exist - process it [00:25:45]req_shift_opened [00:25:45]FM_GetShiftState [00:25:45]SAM_PROTO_GetShiftState [00:25:45]wFMCommunicate request_size=4 [00:25:45]MH_SAM_APDU [00:25:45]CAPDU: 80 13 01 00 [00:25:45]Write to MH i2c: E2 08 00 3D 18 80 13 01 00 00 00 00 00 D2 [00:25:45]Write i2c OK [00:25:45]MH_I2C_Read... [00:25:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:25:45]Read from MH i2c: E2 [00:25:45]MH_I2C_Read... [00:25:45]Read from MH i2c: E2 0E 00 [00:25:45]MH_I2C_Read... [00:25:45]Read from MH i2c: E2 0E 00 3D 18 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 C6 [00:25:45]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [00:25:45]wFMCommunicate OK [00:25:45]SAM_PROTO_GetShiftState done [00:25:45]FM_GetShiftState done [00:25:45]req_shift_opened done [00:25:45]requested_item shift.open_date is exist - process it [00:25:45]req_shift_open_date [00:25:45]req_shift_open_date done [00:25:45]produce_requested_data done [00:25:45]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29410,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [00:25:45]process_action_free close_receipt [00:25:45]json_value_free [00:25:45]json_value_free done [00:25:45]process_json_proto returns [00:25:45]Send response to host [00:25:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29410,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [00:25:45]free response buf [00:25:45]execute_script done [00:25:45]execute_script returns [00:25:45]free content buf [00:25:45]Sock 9.Close socket [00:25:45]Sock 9.Thread stoped [00:25:48]OFD Sender: No OFD packet to send [00:25:53]OFD Sender: No OFD packet to send [00:25:58]OFD Sender: No OFD packet to send [00:26:03]OFD Sender: No OFD packet to send [00:26:08]OFD Sender: No OFD packet to send [00:26:13]OFD Sender: No OFD packet to send [00:26:18]OFD Sender: No OFD packet to send [00:26:23]OFD Sender: No OFD packet to send [00:26:28]OFD Sender: No OFD packet to send [00:26:29]accept exits with 8 [00:26:29]New connection [00:26:29]New thread 3066969444 created [00:26:29]Thread 3067112804 joined [00:26:29]Waiting for new connection... [00:26:29] Sock 8.Parse request [00:26:29]Sock 8.Check first char [00:26:29]Sock 8.First char is OK [00:26:29]request: POST /json_proto HTTP/1.0 [00:26:29]Method: POST [00:26:29]URL: /json_proto [00:26:29]Method is POST - this is cgi request [00:26:29]url: /json_proto [00:26:29]query_string will be loaded in cgi processing [00:26:29]execute_cgi json_proto POST (null) [00:26:29]execute_cgi path=json_proto method=POST [00:26:29]POST find Content-Length [00:26:29]Host: 172.17.33.3:8080 [00:26:29]Content-Length: 670 [00:26:29]Content-Type: application/json [00:26:29] [00:26:29]POST finish read [00:26:29]Found Content-Length = 670 [00:26:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347804", "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" : 9.190, "sum" : 600.11, "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" ] } } [00:26:29]execute_script... [00:26: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)347804", "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" : 9.190, "sum" : 600.11, "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" ] } } [00:26:29]POST & json_proto [00:26:29]process_json_proto [00:26:29]json parsed OK: [00:26:29]protocol is kg_v1.0 [00:26:29]action value=close_receipt [00:26:29]process_action close_receipt [00:26:29]cmd_close_receipt [00:26:29]MH_GetDate [00:26:29]Write to MH i2c: F0 00 00 3E 18 45 [00:26:29]Write i2c OK [00:26:29]MH_I2C_Read... [00:26:29]Read from MH i2c: F0 [00:26:29]MH_I2C_Read... [00:26:29]Read from MH i2c: F0 09 00 [00:26:29]MH_I2C_Read... [00:26:29]Read from MH i2c: F0 09 00 3E 18 00 36 74 1C 66 23 5B 8F 65 EC [00:26:29]GetLastDocTimeStamp 1713140742 [00:26:29]current date 1713140790 [00:26:29]FM_GetShiftState [00:26:29]SAM_PROTO_GetShiftState [00:26:29]wFMCommunicate request_size=4 [00:26:29]MH_SAM_APDU [00:26:29]CAPDU: 80 13 01 00 [00:26:29]Write to MH i2c: E2 08 00 3F 18 80 13 01 00 00 00 00 00 D4 [00:26:29]Write i2c OK [00:26:29]MH_I2C_Read... [00:26:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:26:29]Read from MH i2c: E2 [00:26:29]MH_I2C_Read... [00:26:29]Read from MH i2c: E2 0E 00 [00:26:29]MH_I2C_Read... [00:26:29]Read from MH i2c: E2 0E 00 3F 18 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 C8 [00:26:29]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [00:26:29]wFMCommunicate OK [00:26:29]SAM_PROTO_GetShiftState done [00:26:29]FM_GetShiftState done [00:26:29]opened in 1713140468 [00:26:29]opened+sec_in_day 1713226868 [00:26:29]quantity*price = 60010 [00:26:29]sum+1 = 60012 [00:26:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 5 15.04.2024 00:26 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29411 ФПД: 149542652343889 1/tax-web-control/client/api/v1/ticket?date=20240415T002631&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29411&fm=149542652343889&tin=02508201610067®Number=0000138879044617&sum=60000 [00:26:30]StoreToDocumentArchive [00:26:30]shift 117 fd 29411 [00:26:30]save to /storage/0117/doc_00029411 [00:26:30]save last doc name /storage/0117/doc_00029411 to /storage/kkm_last_doc_name [00:26:30]save OK [00:26:30]Clear old archive folders... [00:26:30]ProcessDocumentItem done err = 0, tmpTLVsize=252 [00:26:30]tlvbuf is B6ECF790 [00:26:30]SAM_PROTO_ClearQueue [00:26:30]wFMCommunicate request_size=4 [00:26:30]MH_SAM_APDU [00:26:30]CAPDU: 80 09 00 00 [00:26:30]Write to MH i2c: E2 08 00 4C 18 80 09 00 00 00 00 00 00 D6 [00:26:30]Write i2c OK [00:26:30]MH_I2C_Read... [00:26:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:26:30]Read from MH i2c: E2 [00:26:30]MH_I2C_Read... [00:26:30]Read from MH i2c: E2 03 00 [00:26:30]MH_I2C_Read... [00:26:30]Read from MH i2c: E2 03 00 4C 18 00 90 00 D8 [00:26:30]RAPDU: 90 00 [00:26:30]wFMCommunicate OK [00:26:30]SAM_PROTO_ClearQueue done [00:26:30]KKMCreateOFDPacket [00:26:30]OFDProtocolAddRootSTLVToBuf [00:26:30]FM_MakeSignedData [00:26:30]FM_MakeSignedData [00:26:30]SAM_PROTO_SignData [00:26:30]wFMCommunicate request_size=4 [00:26:30]MH_SAM_APDU [00:26:30]CAPDU: 80 0D 01 02 [00:26:30]Write to MH i2c: E2 08 00 4D 18 80 0D 01 02 00 00 00 00 DE [00:26:30]Write i2c OK [00:26:30]MH_I2C_Read... [00:26:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:26:30]Read from MH i2c: E2 [00:26:30]MH_I2C_Read... [00:26:30]Read from MH i2c: E2 03 00 [00:26:30]MH_I2C_Read... [00:26:30]Read from MH i2c: E2 03 00 4D 18 00 90 00 D9 [00:26:30]RAPDU: 90 00 [00:26:30]wFMCommunicate OK [00:26:30]wFMCommunicate request_size=255 [00:26:30]MH_SAM_APDU [00:26: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 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 6B 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 E5 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 05 00 00 00 F4 03 04 00 37 74 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E3 72 00 00 35 04 06 00 [00:26:30]Write to MH i2c: E2 02 01 4E 18 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 6B 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 E5 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 05 00 00 00 F4 03 04 00 37 74 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E3 72 00 00 35 04 06 00 00 00 4A [00:26:30]Write i2c OK [00:26:30]MH_I2C_Read... [00:26:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:26:30]Read from MH i2c: E2 [00:26:30]MH_I2C_Read... [00:26:30]Read from MH i2c: E2 03 00 [00:26:30]MH_I2C_Read... [00:26:30]Read from MH i2c: E2 03 00 4E 18 00 90 00 DA [00:26:30]RAPDU: 90 00 [00:26:30]wFMCommunicate OK [00:26:30]wFMCommunicate request_size=11 [00:26:30]MH_SAM_APDU [00:26:30]CAPDU: 80 0D 02 02 06 88 02 1C AB F6 51 [00:26:30]Write to MH i2c: E2 0E 00 4F 18 80 0D 02 02 06 00 88 02 1C AB F6 51 00 00 85 [00:26:30]Write i2c OK [00:26:30]MH_I2C_Read... [00:26:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:26:30]Read from MH i2c: E2 [00:26:30]MH_I2C_Read... [00:26:30]Read from MH i2c: E2 03 00 [00:26:30]MH_I2C_Read... [00:26:30]Read from MH i2c: E2 03 00 4F 18 00 90 00 DB [00:26:30]RAPDU: 90 00 [00:26:30]wFMCommunicate OK [00:26:30]wFMCommunicate request_size=4 [00:26:30]MH_SAM_APDU [00:26:30]CAPDU: 80 0D 03 02 [00:26:30]Write to MH i2c: E2 08 00 50 18 80 0D 03 02 00 00 00 00 E3 [00:26:30]Write i2c OK [00:26:30]MH_I2C_Read... [00:26:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:26:30]Read from MH i2c: E2 [00:26:30]MH_I2C_Read... [00:26:30]Read from MH i2c: E2 0B 00 [00:26:30]MH_I2C_Read... [00:26:30]Read from MH i2c: E2 0B 00 50 18 00 11 B0 23 D2 FB B4 51 20 90 00 BA [00:26:30]RAPDU: 11 B0 23 D2 FB B4 51 20 90 00 [00:26:30]wFMCommunicate OK [00:26:30]SAM_PROTO_SignData done [00:26:30]FM_MakeSignedData done [00:26:30]CreateOFDProtocolMessage [00:26:30]wFMCommunicate request_size=4 [00:26:30]MH_SAM_APDU [00:26:30]CAPDU: 80 11 00 00 [00:26:30]Write to MH i2c: E2 08 00 51 18 80 11 00 00 00 00 00 00 E3 [00:26:30]Write i2c OK [00:26:30]MH_I2C_Read... [00:26:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:26:30]Read from MH i2c: E2 [00:26:30]MH_I2C_Read... [00:26:30]Read from MH i2c: E2 17 00 [00:26:30]MH_I2C_Read... [00:26:30]Read from MH i2c: E2 17 00 51 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 32 [00:26:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [00:26:30]wFMCommunicate OK [00:26:30]CreateOFDProtocolMessage done [00:26:30]OFDSenderStorePacket 29411 [00:26:30]StoreOFDPacket docnum=29411 [00:26:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 1A 93 08 01 3C 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 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 6B 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 E5 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 05 00 00 00 F4 03 04 00 37 74 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E3 72 00 00 35 04 06 00 88 02 1C AB F6 51 11 B0 23 D2 FB B4 51 20 [00:26:30]CheckFolder [00:26:30]dirname=/storage/ofd_packets [00:26:30]CheckFolder done [00:26:30]ProducePacketName [00:26:30]name=ofd_packets/00029411 [00:26:30]NVStorageSaveData ofd_packets/00029411 [00:26:30]File name is /storage/ofd_packets/00029411 [00:26:30]Write 302 bytes [00:26:30]NVStorageSaveData done [00:26:30]OFDSenderStorePacket done [00:26:30]KKMCreateOFDPacket done [00:26:30]NVStorageSaveData kkm_last_timestamp [00:26:30]File name is /storage/kkm_last_timestamp [00:26:30]Write 4 bytes [00:26:30]NVStorageSaveData done [00:26:30]ExternCall_PrintAddStr [00:26:30]wPrintStart [00:26:30]Write to MH i2c: 01 00 00 52 18 6A [00:26:30]Write i2c OK [00:26:30]MH_I2C_Read... [00:26:30]Read from MH i2c: 01 [00:26:30]MH_I2C_Read... [00:26:30]Read from MH i2c: 01 07 00 [00:26:30]MH_I2C_Read... [00:26:30]Read from MH i2c: 01 07 00 52 18 00 00 00 00 00 FF 0F 7F [00:26:30]RasterBufferAndPrint [00:26:30]line Счет N : (1)347804 [00:26:30]line ИНН: 02508201610067 [00:26:30]line Контрольно-Кассовый Чек [00:26:30]line ПРОДАЖА [00:26:30]line ТРК (МРК, ГНК) : 52 [00:26:30]line Товар: 2710124130 [00:26:30]line SUPER-92-К-5 [00:26:30]line 9.190 * 65.30 [00:26:30]line = 600.11 [00:26:30]line НДС 12% НСП 1% [00:26:30]line > о реализуемом товаре [00:26:30]line ОКРУГЛЕНИЕ: -0.11 [00:26:30]line ИТОГО: 600.00 [00:26:30]line Внесено: 600.00 [00:26:30]line СДАЧА: 0.00 [00:26:30]line НСП 1% : 5.31 [00:26:30]line НДС 12% : 63.73 [00:26:30]line Наличными: 600.00 [00:26:30]line Безнал.: 0.00 [00:26:30]line Место: АЗС № 108 "Партнер Нефть" [00:26:30]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [00:26:30]line СНО: Общий режим [00:26:30]line Чек 5 15.04.2024 00:26 [00:26:30]line Смена: 117 ФФД: 1.0 [00:26:30]line ЗНМ: 0300000027 [00:26:30]line РНМ: 0000138879044617 [00:26:30]line Версия ККМ: 001 [00:26:30]line ФМ: 0000000000963154 [00:26:30]line ФД: 29411 [00:26:30]line ФПД: 149542652343889 [00:26:30]line 1/tax-web-control/client/api/v1/ticket?date=20240415T002631&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29411&fm=149542652343889&tin=02508201610067®Number=0000138879044617&sum=60000 [00:26:31]OFD Sender: Processing packet 29411 [packets to send 8, broken 7] [00:26:31]ProducePacketName [00:26:31]name=ofd_packets/00029411 [00:26:31]OFD Sender: To server: pG, [00:26:31]CommunicateWithHost lk.salyk.kg:30040 [00:26:31]ConnectInit lk.salyk.kg [00:26:31]written 0, free lines is 4095 [00:26:31]Connected sock=10 [00:26:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 1A 93 08 01 3C 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 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 6B 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 E5 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 05 00 00 00 F4 03 04 00 37 74 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E3 72 00 00 35 04 06 00 88 02 1C AB F6 51 11 B0 23 D2 FB B4 51 20 [00:26:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 27 78 47 00 70 F9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E3 72 00 00 F4 03 04 00 D9 1E 1C 66 B6 04 01 00 00 46 EE 70 10 33 44 B2 29 [00:26:31]CommunicateWithHost err = 0 [00:26:31]CheckOFDResponse [00:26:31]1017 (14) - 77093643461234 [00:26:31]1041 (16) - 0000000000963154 [00:26:31]1040 (4) - 29411 [00:26:31]1012 (4) - 14.04.2024 18:22 [00:26:31]1206 (1) - 0 [00:26:31]OFD Sender: Remove packet 29411 [00:26:31]ProducePacketName [00:26:31]name=ofd_packets/00029411 [00:26:31]NVStorageDeleteData [00:26:31]Write to MH i2c: 01 00 00 7C 18 94 [00:26:31]Write i2c OK [00:26:31]MH_I2C_Read... [00:26:31]Read from MH i2c: 01 [00:26:31]MH_I2C_Read... [00:26:31]Read from MH i2c: 01 07 00 [00:26:31]MH_I2C_Read... [00:26:31]Read from MH i2c: 01 07 00 7C 18 00 00 00 00 00 CC 0C 73 [00:26:31]RasterBufferAndPrint [00:26:31]line [00:26:31]line [00:26:31]line [00:26:31]line [00:26:31]line [00:26:31]written 0, free lines is 3282 [00:26:31]MH_Cut [00:26:31]Write to MH i2c: D1 01 00 83 18 01 6D [00:26:31]Write i2c OK [00:26:31]MH_I2C_Read... [00:26:31]Read from MH i2c: D1 [00:26:31]MH_I2C_Read... [00:26:31]Read from MH i2c: D1 01 00 [00:26:31]MH_I2C_Read... [00:26:31]Read from MH i2c: D1 01 00 83 18 00 6C [00:26:31]Write to MH i2c: 01 00 00 84 18 9C [00:26:31]Write i2c OK [00:26:31]MH_I2C_Read... [00:26:32]OFD Sender: No OFD packet to send [00:26:32]*** Cut start [00:26:32]*** Partial cut [00:26:32]*** CUTSNS_PIN = 1 [00:26:32]*** CUTSNS_PIN = 0 [00:26:32]*** Brake cut motor [00:26:33]Read from MH i2c: 01 [00:26:33]MH_I2C_Read... [00:26:33]*** Stop cut motor [00:26:33]*** Cut end [00:26:33]Read from MH i2c: 01 07 00 [00:26:33]MH_I2C_Read... [00:26:33]Read from MH i2c: 01 07 00 84 18 00 00 00 00 00 FF 0F B1 [00:26:33]process_action close_receipt done [00:26:33]requested_data is exist [00:26:33]produce_requested_data [00:26:33]requested_item fm.sn is exist - process it [00:26:33]wFMCommunicate request_size=4 [00:26:33]MH_SAM_APDU [00:26:33]CAPDU: 80 11 00 00 [00:26:33]Write to MH i2c: E2 08 00 85 18 80 11 00 00 00 00 00 00 17 [00:26:33]Write i2c OK [00:26:33]MH_I2C_Read... [00:26:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:26:33]Read from MH i2c: E2 [00:26:33]MH_I2C_Read... [00:26:33]Read from MH i2c: E2 17 00 [00:26:33]MH_I2C_Read... [00:26:33]Read from MH i2c: E2 17 00 85 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 66 [00:26:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [00:26:33]wFMCommunicate OK [00:26:33]requested_item fd.num is exist - process it [00:26:33]SAM_PROTO_GetFieldsCounters [00:26:33]wFMCommunicate request_size=4 [00:26:33]MH_SAM_APDU [00:26:33]CAPDU: 80 13 00 00 [00:26:33]Write to MH i2c: E2 08 00 86 18 80 13 00 00 00 00 00 00 1A [00:26:33]Write i2c OK [00:26:33]MH_I2C_Read... [00:26:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:26:33]Read from MH i2c: E2 [00:26:33]MH_I2C_Read... [00:26:33]Read from MH i2c: E2 62 00 [00:26:33]MH_I2C_Read... [00:26:33]Read from MH i2c: E2 62 00 86 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E3 72 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 31 [00:26:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E3 72 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:26:33]wFMCommunicate OK [00:26:33]SAM_PROTO_GetFieldsCounters done [00:26:33]requested_item shift.num is exist - process it [00:26:33]requested_item shift.opened is exist - process it [00:26:33]req_shift_opened [00:26:33]FM_GetShiftState [00:26:33]SAM_PROTO_GetShiftState [00:26:33]wFMCommunicate request_size=4 [00:26:33]MH_SAM_APDU [00:26:33]CAPDU: 80 13 01 00 [00:26:33]Write to MH i2c: E2 08 00 87 18 80 13 01 00 00 00 00 00 1C [00:26:33]Write i2c OK [00:26:33]MH_I2C_Read... [00:26:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:26:33]Read from MH i2c: E2 [00:26:33]MH_I2C_Read... [00:26:33]Read from MH i2c: E2 0E 00 [00:26:33]MH_I2C_Read... [00:26:33]Read from MH i2c: E2 0E 00 87 18 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 10 [00:26:33]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [00:26:33]wFMCommunicate OK [00:26:33]SAM_PROTO_GetShiftState done [00:26:33]FM_GetShiftState done [00:26:33]req_shift_opened done [00:26:33]requested_item shift.open_date is exist - process it [00:26:33]req_shift_open_date [00:26:33]req_shift_open_date done [00:26:33]produce_requested_data done [00:26:33]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29411,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [00:26:33]process_action_free close_receipt [00:26:33]json_value_free [00:26:33]json_value_free done [00:26:33]process_json_proto returns [00:26:33]Send response to host [00:26:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29411,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [00:26:33]free response buf [00:26:33]execute_script done [00:26:33]execute_script returns [00:26:33]free content buf [00:26:33]Sock 8.Close socket [00:26:33]Sock 8.Thread stoped [00:26:37]OFD Sender: No OFD packet to send [00:26:42]OFD Sender: No OFD packet to send [00:26:47]OFD Sender: No OFD packet to send [00:26:52]OFD Sender: No OFD packet to send [00:26:57]OFD Sender: No OFD packet to send [00:27:02]OFD Sender: No OFD packet to send [00:27:07]OFD Sender: No OFD packet to send [00:27:12]OFD Sender: No OFD packet to send [00:27:17]OFD Sender: No OFD packet to send [00:27:22]OFD Sender: No OFD packet to send [00:27:27]OFD Sender: No OFD packet to send [00:27:32]OFD Sender: No OFD packet to send [00:27:36]accept exits with 9 [00:27:36]New connection [00:27:36]New thread 3067112804 created [00:27:36]Thread 3066969444 joined [00:27:36]Waiting for new connection... [00:27:36] Sock 9.Parse request [00:27:36]Sock 9.Check first char [00:27:36]Sock 9.First char is OK [00:27:36]request: POST /json_proto HTTP/1.0 [00:27:36]Method: POST [00:27:36]URL: /json_proto [00:27:36]Method is POST - this is cgi request [00:27:36]url: /json_proto [00:27:36]query_string will be loaded in cgi processing [00:27:36]execute_cgi json_proto POST (null) [00:27:36]execute_cgi path=json_proto method=POST [00:27:36]POST find Content-Length [00:27:36]Host: 172.17.33.3:8080 [00:27:36]Content-Length: 833 [00:27:36]Content-Type: application/json [00:27:36] [00:27:36]POST finish read [00:27:36]Found Content-Length = 833 [00:27:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347806", "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" : 3.070, "sum" : 200.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 200.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:27:36]execute_script... [00:27: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)347806", "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" : 3.070, "sum" : 200.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 200.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:27:36]POST & json_proto [00:27:36]process_json_proto [00:27:36]json parsed OK: [00:27:36]protocol is kg_v1.0 [00:27:36]action value=close_receipt [00:27:36]process_action close_receipt [00:27:36]cmd_close_receipt [00:27:36]MH_GetDate [00:27:36]Write to MH i2c: F0 00 00 88 18 8F [00:27:36]Write i2c OK [00:27:36]MH_I2C_Read... [00:27:36]Read from MH i2c: F0 [00:27:36]MH_I2C_Read... [00:27:36]Read from MH i2c: F0 09 00 [00:27:36]MH_I2C_Read... [00:27:36]Read from MH i2c: F0 09 00 88 18 00 79 74 1C 66 23 5B 8F 65 79 [00:27:36]GetLastDocTimeStamp 1713140791 [00:27:36]current date 1713140857 [00:27:36]FM_GetShiftState [00:27:36]SAM_PROTO_GetShiftState [00:27:36]wFMCommunicate request_size=4 [00:27:36]MH_SAM_APDU [00:27:36]CAPDU: 80 13 01 00 [00:27:36]Write to MH i2c: E2 08 00 89 18 80 13 01 00 00 00 00 00 1E [00:27:36]Write i2c OK [00:27:36]MH_I2C_Read... [00:27:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:27:36]Read from MH i2c: E2 [00:27:36]MH_I2C_Read... [00:27:36]Read from MH i2c: E2 0E 00 [00:27:36]MH_I2C_Read... [00:27:36]Read from MH i2c: E2 0E 00 89 18 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 12 [00:27:36]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [00:27:36]wFMCommunicate OK [00:27:36]SAM_PROTO_GetShiftState done [00:27:36]FM_GetShiftState done [00:27:36]opened in 1713140468 [00:27:36]opened+sec_in_day 1713226868 [00:27:36]quantity*price = 20047 [00:27:36]sum+1 = 20048 [00:27:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.47 НСП 1% : 1.77 НДС 12% : 21.29 Наличными: 0.00 Безнал.: 200.47 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 6 15.04.2024 00:27 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 29412 ФПД: 17001558261072 1/tax-web-control/client/api/v1/ticket?date=20240415T002738&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29412&fm=17001558261072&tin=02508201610067®Number=0000138879044617&sum=20047 [00:27:37]StoreToDocumentArchive [00:27:37]shift 117 fd 29412 [00:27:37]save to /storage/0117/doc_00029412 [00:27:37]save last doc name /storage/0117/doc_00029412 to /storage/kkm_last_doc_name [00:27:37]save OK [00:27:37]Clear old archive folders... [00:27:37]ProcessDocumentItem done err = 0, tmpTLVsize=252 [00:27:37]tlvbuf is B6ECF680 [00:27:37]SAM_PROTO_ClearQueue [00:27:37]wFMCommunicate request_size=4 [00:27:37]MH_SAM_APDU [00:27:37]CAPDU: 80 09 00 00 [00:27:37]Write to MH i2c: E2 08 00 96 18 80 09 00 00 00 00 00 00 20 [00:27:37]Write i2c OK [00:27:37]MH_I2C_Read... [00:27:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:27:37]Read from MH i2c: E2 [00:27:37]MH_I2C_Read... [00:27:37]Read from MH i2c: E2 03 00 [00:27:37]MH_I2C_Read... [00:27:37]Read from MH i2c: E2 03 00 96 18 00 90 00 22 [00:27:37]RAPDU: 90 00 [00:27:37]wFMCommunicate OK [00:27:37]SAM_PROTO_ClearQueue done [00:27:37]KKMCreateOFDPacket [00:27:37]OFDProtocolAddRootSTLVToBuf [00:27:37]FM_MakeSignedData [00:27:37]FM_MakeSignedData [00:27:37]SAM_PROTO_SignData [00:27:37]wFMCommunicate request_size=4 [00:27:37]MH_SAM_APDU [00:27:37]CAPDU: 80 0D 01 02 [00:27:37]Write to MH i2c: E2 08 00 97 18 80 0D 01 02 00 00 00 00 28 [00:27:37]Write i2c OK [00:27:37]MH_I2C_Read... [00:27:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:27:37]Read from MH i2c: E2 [00:27:37]MH_I2C_Read... [00:27:37]Read from MH i2c: E2 03 00 [00:27:37]MH_I2C_Read... [00:27:37]Read from MH i2c: E2 03 00 97 18 00 90 00 23 [00:27:37]RAPDU: 90 00 [00:27:37]wFMCommunicate OK [00:27:37]wFMCommunicate request_size=255 [00:27:37]MH_SAM_APDU [00:27: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 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 0B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 4F 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4F 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 51 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4F 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 7A 74 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E4 72 00 00 35 04 06 00 [00:27:37]Write to MH i2c: E2 02 01 98 18 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 0B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 4F 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4F 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 51 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4F 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 7A 74 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E4 72 00 00 35 04 06 00 00 00 BF [00:27:37]Write i2c OK [00:27:37]MH_I2C_Read... [00:27:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:27:37]Read from MH i2c: E2 [00:27:37]MH_I2C_Read... [00:27:37]Read from MH i2c: E2 03 00 [00:27:37]MH_I2C_Read... [00:27:37]Read from MH i2c: E2 03 00 98 18 00 90 00 24 [00:27:37]RAPDU: 90 00 [00:27:37]wFMCommunicate OK [00:27:37]wFMCommunicate request_size=11 [00:27:37]MH_SAM_APDU [00:27:37]CAPDU: 80 0D 02 02 06 0F 76 7B D7 3D 50 [00:27:37]Write to MH i2c: E2 0E 00 99 18 80 0D 02 02 06 00 0F 76 7B D7 3D 50 00 00 9B [00:27:37]Write i2c OK [00:27:37]MH_I2C_Read... [00:27:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:27:37]Read from MH i2c: E2 [00:27:37]MH_I2C_Read... [00:27:37]Read from MH i2c: E2 03 00 [00:27:37]MH_I2C_Read... [00:27:37]Read from MH i2c: E2 03 00 99 18 00 90 00 25 [00:27:37]RAPDU: 90 00 [00:27:37]wFMCommunicate OK [00:27:37]wFMCommunicate request_size=4 [00:27:37]MH_SAM_APDU [00:27:37]CAPDU: 80 0D 03 02 [00:27:37]Write to MH i2c: E2 08 00 9A 18 80 0D 03 02 00 00 00 00 2D [00:27:37]Write i2c OK [00:27:37]MH_I2C_Read... [00:27:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:27:37]Read from MH i2c: E2 [00:27:37]MH_I2C_Read... [00:27:37]Read from MH i2c: E2 0B 00 [00:27:37]MH_I2C_Read... [00:27:37]Read from MH i2c: E2 0B 00 9A 18 00 00 25 37 4D 15 F9 F9 EC 90 00 CA [00:27:37]RAPDU: 00 25 37 4D 15 F9 F9 EC 90 00 [00:27:37]wFMCommunicate OK [00:27:37]SAM_PROTO_SignData done [00:27:37]FM_MakeSignedData done [00:27:37]CreateOFDProtocolMessage [00:27:37]wFMCommunicate request_size=4 [00:27:37]MH_SAM_APDU [00:27:37]CAPDU: 80 11 00 00 [00:27:37]Write to MH i2c: E2 08 00 9B 18 80 11 00 00 00 00 00 00 2D [00:27:37]Write i2c OK [00:27:37]MH_I2C_Read... [00:27:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:27:37]Read from MH i2c: E2 [00:27:37]MH_I2C_Read... [00:27:37]Read from MH i2c: E2 17 00 [00:27:37]MH_I2C_Read... [00:27:37]Read from MH i2c: E2 17 00 9B 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 7C [00:27:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [00:27:37]wFMCommunicate OK [00:27:37]CreateOFDProtocolMessage done [00:27:37]OFDSenderStorePacket 29412 [00:27:37]StoreOFDPacket docnum=29412 [00:27:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 CC A4 08 01 E6 6F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 0B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 4F 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4F 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 51 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4F 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 7A 74 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E4 72 00 00 35 04 06 00 0F 76 7B D7 3D 50 00 25 37 4D 15 F9 F9 EC [00:27:37]CheckFolder [00:27:37]dirname=/storage/ofd_packets [00:27:37]CheckFolder done [00:27:37]ProducePacketName [00:27:37]name=ofd_packets/00029412 [00:27:37]NVStorageSaveData ofd_packets/00029412 [00:27:37]File name is /storage/ofd_packets/00029412 [00:27:37]Write 302 bytes [00:27:37]NVStorageSaveData done [00:27:37]OFDSenderStorePacket done [00:27:37]KKMCreateOFDPacket done [00:27:37]NVStorageSaveData kkm_last_timestamp [00:27:37]File name is /storage/kkm_last_timestamp [00:27:37]Write 4 bytes [00:27:37]NVStorageSaveData done [00:27:37]ExternCall_PrintAddStr [00:27:37]wPrintStart [00:27:37]Write to MH i2c: 01 00 00 9C 18 B4 [00:27:37]Write i2c OK [00:27:37]MH_I2C_Read... [00:27:37]Read from MH i2c: 01 [00:27:37]MH_I2C_Read... [00:27:37]Read from MH i2c: 01 07 00 [00:27:37]MH_I2C_Read... [00:27:37]Read from MH i2c: 01 07 00 9C 18 00 00 00 00 00 FF 0F C9 [00:27:37]RasterBufferAndPrint [00:27:37]line Счет N : (1)347806 [00:27:37]line ИНН: 02508201610067 [00:27:37]line Контрольно-Кассовый Чек [00:27:37]line ПРОДАЖА [00:27:37]line ТРК (МРК, ГНК) : 52 [00:27:37]line Товар: 2710124130 [00:27:37]line SUPER-92-К-5 [00:27:37]line 3.070 * 65.30 [00:27:37]line = 200.47 [00:27:37]line НДС 12% НСП 1% [00:27:37]line > о реализуемом товаре [00:27:37]line ИТОГО: 200.47 [00:27:37]line НСП 1% : 1.77 [00:27:37]line НДС 12% : 21.29 [00:27:37]line Наличными: 0.00 [00:27:37]line Безнал.: 200.47 [00:27:37]line Место: АЗС № 108 "Партнер Нефть" [00:27:37]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [00:27:37]line СНО: Общий режим [00:27:37]line Чек 6 15.04.2024 00:27 [00:27:37]line Смена: 117 ФФД: 1.0 [00:27:37]line ЗНМ: 0300000027 [00:27:37]line РНМ: 0000138879044617 [00:27:37]line Версия ККМ: 001 [00:27:37]line Платежная система: АКБ Кыргызстан [00:27:37]line ФМ: 0000000000963154 [00:27:37]line ФД: 29412 [00:27:37]line ФПД: 17001558261072 [00:27:37]line 1/tax-web-control/client/api/v1/ticket?date=20240415T002738&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29412&fm=17001558261072&tin=02508201610067®Number=0000138879044617&sum=20047 [00:27:38]OFD Sender: Processing packet 29412 [packets to send 8, broken 7] [00:27:38]ProducePacketName [00:27:38]name=ofd_packets/00029412 [00:27:38]OFD Sender: To server: pG, [00:27:38]CommunicateWithHost lk.salyk.kg:30040 [00:27:38]ConnectInit lk.salyk.kg [00:27:38]written 0, free lines is 4095 [00:27:38]Connected sock=10 [00:27:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 CC A4 08 01 E6 6F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 0B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 4F 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4F 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 51 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4F 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 7A 74 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E4 72 00 00 35 04 06 00 0F 76 7B D7 3D 50 00 25 37 4D 15 F9 F9 EC [00:27:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 5D 91 47 00 1C 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 39 36 33 31 35 34 10 04 04 00 E4 72 00 00 F4 03 04 00 1C 1F 1C 66 B6 04 01 00 00 81 AF 5D 2D 99 28 79 6C [00:27:38]CommunicateWithHost err = 0 [00:27:38]CheckOFDResponse [00:27:38]1017 (14) - 77093643461234 [00:27:38]1041 (16) - 0000000000963154 [00:27:38]1040 (4) - 29412 [00:27:38]1012 (4) - 14.04.2024 18:23 [00:27:38]1206 (1) - 0 [00:27:38]OFD Sender: Remove packet 29412 [00:27:38]ProducePacketName [00:27:38]name=ofd_packets/00029412 [00:27:38]NVStorageDeleteData [00:27:38]Write to MH i2c: 01 00 00 C5 18 DD [00:27:38]Write i2c OK [00:27:38]MH_I2C_Read... [00:27:38]Read from MH i2c: 01 [00:27:38]MH_I2C_Read... [00:27:38]Read from MH i2c: 01 07 00 [00:27:38]MH_I2C_Read... [00:27:38]Read from MH i2c: 01 07 00 C5 18 00 00 00 00 00 EB 0C DB [00:27:38]RasterBufferAndPrint [00:27:38]line [00:27:38]line [00:27:38]line [00:27:38]line [00:27:38]line [00:27:38]written 0, free lines is 3313 [00:27:38]MH_Cut [00:27:38]Write to MH i2c: D1 01 00 CC 18 01 B6 [00:27:38]Write i2c OK [00:27:38]MH_I2C_Read... [00:27:38]Read from MH i2c: D1 [00:27:38]MH_I2C_Read... [00:27:38]Read from MH i2c: D1 01 00 [00:27:38]MH_I2C_Read... [00:27:38]Read from MH i2c: D1 01 00 CC 18 00 B5 [00:27:38]Write to MH i2c: 01 00 00 CD 18 E5 [00:27:38]Write i2c OK [00:27:38]MH_I2C_Read... [00:27:38]OFD Sender: No OFD packet to send [00:27:39]*** Cut start [00:27:39]*** Partial cut [00:27:39]*** CUTSNS_PIN = 1 [00:27:39]*** CUTSNS_PIN = 0 [00:27:39]*** Brake cut motor [00:27:40]Read from MH i2c: 01 [00:27:40]MH_I2C_Read... [00:27:40]*** Stop cut motor [00:27:40]*** Cut end [00:27:40]Read from MH i2c: 01 07 00 [00:27:40]MH_I2C_Read... [00:27:40]Read from MH i2c: 01 07 00 CD 18 00 00 00 00 00 FF 0F FA [00:27:40]process_action close_receipt done [00:27:40]requested_data is exist [00:27:40]produce_requested_data [00:27:40]requested_item fm.sn is exist - process it [00:27:40]wFMCommunicate request_size=4 [00:27:40]MH_SAM_APDU [00:27:40]CAPDU: 80 11 00 00 [00:27:40]Write to MH i2c: E2 08 00 CE 18 80 11 00 00 00 00 00 00 60 [00:27:40]Write i2c OK [00:27:40]MH_I2C_Read... [00:27:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:27:40]Read from MH i2c: E2 [00:27:40]MH_I2C_Read... [00:27:40]Read from MH i2c: E2 17 00 [00:27:40]MH_I2C_Read... [00:27:40]Read from MH i2c: E2 17 00 CE 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 AF [00:27:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [00:27:40]wFMCommunicate OK [00:27:40]requested_item fd.num is exist - process it [00:27:40]SAM_PROTO_GetFieldsCounters [00:27:40]wFMCommunicate request_size=4 [00:27:40]MH_SAM_APDU [00:27:40]CAPDU: 80 13 00 00 [00:27:40]Write to MH i2c: E2 08 00 CF 18 80 13 00 00 00 00 00 00 63 [00:27:40]Write i2c OK [00:27:40]MH_I2C_Read... [00:27:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:27:40]Read from MH i2c: E2 [00:27:40]MH_I2C_Read... [00:27:40]Read from MH i2c: E2 62 00 [00:27:40]MH_I2C_Read... [00:27:40]Read from MH i2c: E2 62 00 CF 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E4 72 00 00 0E 04 04 00 75 00 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 7E [00:27:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E4 72 00 00 0E 04 04 00 75 00 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:27:40]wFMCommunicate OK [00:27:40]SAM_PROTO_GetFieldsCounters done [00:27:40]requested_item shift.num is exist - process it [00:27:40]requested_item shift.opened is exist - process it [00:27:40]req_shift_opened [00:27:40]FM_GetShiftState [00:27:40]SAM_PROTO_GetShiftState [00:27:40]wFMCommunicate request_size=4 [00:27:40]MH_SAM_APDU [00:27:40]CAPDU: 80 13 01 00 [00:27:40]Write to MH i2c: E2 08 00 D0 18 80 13 01 00 00 00 00 00 65 [00:27:40]Write i2c OK [00:27:40]MH_I2C_Read... [00:27:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:27:40]Read from MH i2c: E2 [00:27:40]MH_I2C_Read... [00:27:40]Read from MH i2c: E2 0E 00 [00:27:40]MH_I2C_Read... [00:27:40]Read from MH i2c: E2 0E 00 D0 18 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 59 [00:27:40]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [00:27:40]wFMCommunicate OK [00:27:40]SAM_PROTO_GetShiftState done [00:27:40]FM_GetShiftState done [00:27:40]req_shift_opened done [00:27:40]requested_item shift.open_date is exist - process it [00:27:40]req_shift_open_date [00:27:40]req_shift_open_date done [00:27:40]produce_requested_data done [00:27:40]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29412,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [00:27:40]process_action_free close_receipt [00:27:40]json_value_free [00:27:40]json_value_free done [00:27:40]process_json_proto returns [00:27:40]Send response to host [00:27:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29412,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [00:27:40]free response buf [00:27:40]execute_script done [00:27:40]execute_script returns [00:27:40]free content buf [00:27:40]Sock 9.Close socket [00:27:40]Sock 9.Thread stoped [00:27:44]OFD Sender: No OFD packet to send [00:27:49]OFD Sender: No OFD packet to send [00:27:54]OFD Sender: No OFD packet to send [00:27:59]OFD Sender: No OFD packet to send [00:28:04]OFD Sender: No OFD packet to send [00:28:09]OFD Sender: No OFD packet to send [00:28:14]OFD Sender: No OFD packet to send [00:28:19]OFD Sender: No OFD packet to send [00:28:24]OFD Sender: No OFD packet to send [00:28:29]OFD Sender: No OFD packet to send [00:28:34]OFD Sender: No OFD packet to send [00:28:39]OFD Sender: No OFD packet to send [00:28:44]OFD Sender: No OFD packet to send [00:28:49]OFD Sender: No OFD packet to send [00:28:54]OFD Sender: No OFD packet to send [00:28:59]OFD Sender: No OFD packet to send [00:29:04]OFD Sender: No OFD packet to send [00:29:09]OFD Sender: No OFD packet to send [00:29:14]OFD Sender: No OFD packet to send [00:29:19]OFD Sender: No OFD packet to send [00:29:24]OFD Sender: No OFD packet to send [00:29:29]OFD Sender: No OFD packet to send [00:29:34]OFD Sender: No OFD packet to send [00:29:39]OFD Sender: No OFD packet to send [00:29:44]OFD Sender: No OFD packet to send [00:29:49]OFD Sender: No OFD packet to send [00:29:54]OFD Sender: No OFD packet to send [00:29:59]OFD Sender: No OFD packet to send [00:30:02]accept exits with 8 [00:30:02]New connection [00:30:02]New thread 3066969444 created [00:30:02]Thread 3067112804 joined [00:30:02]Waiting for new connection... [00:30:02] Sock 8.Parse request [00:30:02]Sock 8.Check first char [00:30:02]Sock 8.First char is OK [00:30:02]request: POST /json_proto HTTP/1.0 [00:30:02]Method: POST [00:30:02]URL: /json_proto [00:30:02]Method is POST - this is cgi request [00:30:02]url: /json_proto [00:30:02]query_string will be loaded in cgi processing [00:30:02]execute_cgi json_proto POST (null) [00:30:02]execute_cgi path=json_proto method=POST [00:30:02]POST find Content-Length [00:30:02]Host: 172.17.33.3:8080 [00:30:02]Content-Length: 677 [00:30:02]Content-Type: application/json [00:30:02] [00:30:02]POST finish read [00:30:02]Found Content-Length = 677 [00:30:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347807", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.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:30:02]execute_script... [00:30: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)347807", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.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:30:02]POST & json_proto [00:30:02]process_json_proto [00:30:02]json parsed OK: [00:30:02]protocol is kg_v1.0 [00:30:02]action value=close_receipt [00:30:02]process_action close_receipt [00:30:02]cmd_close_receipt [00:30:02]MH_GetDate [00:30:02]Write to MH i2c: F0 00 00 D1 18 D8 [00:30:02]Write i2c OK [00:30:02]MH_I2C_Read... [00:30:02]Read from MH i2c: F0 [00:30:02]MH_I2C_Read... [00:30:02]Read from MH i2c: F0 09 00 [00:30:02]MH_I2C_Read... [00:30:02]Read from MH i2c: F0 09 00 D1 18 00 0C 75 1C 66 23 5B 8F 65 56 [00:30:02]GetLastDocTimeStamp 1713140858 [00:30:02]current date 1713141004 [00:30:02]FM_GetShiftState [00:30:02]SAM_PROTO_GetShiftState [00:30:02]wFMCommunicate request_size=4 [00:30:02]MH_SAM_APDU [00:30:02]CAPDU: 80 13 01 00 [00:30:02]Write to MH i2c: E2 08 00 D2 18 80 13 01 00 00 00 00 00 67 [00:30:02]Write i2c OK [00:30:02]MH_I2C_Read... [00:30:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:30:03]Read from MH i2c: E2 [00:30:03]MH_I2C_Read... [00:30:03]Read from MH i2c: E2 0E 00 [00:30:03]MH_I2C_Read... [00:30:03]Read from MH i2c: E2 0E 00 D2 18 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 5B [00:30:03]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [00:30:03]wFMCommunicate OK [00:30:03]SAM_PROTO_GetShiftState done [00:30:03]FM_GetShiftState done [00:30:03]opened in 1713140468 [00:30:03]opened+sec_in_day 1713226868 [00:30:03]quantity*price = 50025 [00:30:03]sum+1 = 50026 [00:30: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 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 7 15.04.2024 00:30 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29413 ФПД: 214637832881207 1/tax-web-control/client/api/v1/ticket?date=20240415T003004&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29413&fm=214637832881207&tin=02508201610067®Number=0000138879044617&sum=50000 [00:30:04]StoreToDocumentArchive [00:30:04]shift 117 fd 29413 [00:30:04]save to /storage/0117/doc_00029413 [00:30:04]save last doc name /storage/0117/doc_00029413 to /storage/kkm_last_doc_name [00:30:04]save OK [00:30:04]Clear old archive folders... [00:30:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:30:04]tlvbuf is 0020E740 [00:30:04]SAM_PROTO_ClearQueue [00:30:04]wFMCommunicate request_size=4 [00:30:04]MH_SAM_APDU [00:30:04]CAPDU: 80 09 00 00 [00:30:04]Write to MH i2c: E2 08 00 DF 18 80 09 00 00 00 00 00 00 69 [00:30:04]OFD Sender: No OFD packet to send [00:30:04]Write i2c OK [00:30:04]MH_I2C_Read... [00:30:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:30:04]Read from MH i2c: E2 [00:30:04]MH_I2C_Read... [00:30:04]Read from MH i2c: E2 03 00 [00:30:04]MH_I2C_Read... [00:30:04]Read from MH i2c: E2 03 00 DF 18 00 90 00 6B [00:30:04]RAPDU: 90 00 [00:30:04]wFMCommunicate OK [00:30:04]SAM_PROTO_ClearQueue done [00:30:04]KKMCreateOFDPacket [00:30:04]OFDProtocolAddRootSTLVToBuf [00:30:04]FM_MakeSignedData [00:30:04]FM_MakeSignedData [00:30:04]SAM_PROTO_SignData [00:30:04]wFMCommunicate request_size=4 [00:30:04]MH_SAM_APDU [00:30:04]CAPDU: 80 0D 01 02 [00:30:04]Write to MH i2c: E2 08 00 E0 18 80 0D 01 02 00 00 00 00 71 [00:30:04]Write i2c OK [00:30:04]MH_I2C_Read... [00:30:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:30:04]Read from MH i2c: E2 [00:30:04]MH_I2C_Read... [00:30:04]Read from MH i2c: E2 03 00 [00:30:04]MH_I2C_Read... [00:30:04]Read from MH i2c: E2 03 00 E0 18 00 90 00 6C [00:30:04]RAPDU: 90 00 [00:30:04]wFMCommunicate OK [00:30:04]wFMCommunicate request_size=255 [00:30:04]MH_SAM_APDU [00:30: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 07 00 00 00 F4 03 04 00 0C 75 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E5 72 00 00 35 04 06 00 C3 [00:30:04]Write to MH i2c: E2 02 01 E1 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 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 07 00 00 00 F4 03 04 00 0C 75 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E5 72 00 00 35 04 06 00 C3 00 00 CC [00:30:04]Write i2c OK [00:30:04]MH_I2C_Read... [00:30:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:30:04]Read from MH i2c: E2 [00:30:04]MH_I2C_Read... [00:30:04]Read from MH i2c: E2 03 00 [00:30:04]MH_I2C_Read... [00:30:04]Read from MH i2c: E2 03 00 E1 18 00 90 00 6D [00:30:04]RAPDU: 90 00 [00:30:04]wFMCommunicate OK [00:30:04]wFMCommunicate request_size=10 [00:30:04]MH_SAM_APDU [00:30:04]CAPDU: 80 0D 02 02 05 36 43 C8 C4 37 [00:30:04]Write to MH i2c: E2 0D 00 E2 18 80 0D 02 02 05 00 36 43 C8 C4 37 00 00 BA [00:30:04]Write i2c OK [00:30:04]MH_I2C_Read... [00:30:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:30:04]Read from MH i2c: E2 [00:30:04]MH_I2C_Read... [00:30:04]Read from MH i2c: E2 03 00 [00:30:04]MH_I2C_Read... [00:30:04]Read from MH i2c: E2 03 00 E2 18 00 90 00 6E [00:30:04]RAPDU: 90 00 [00:30:04]wFMCommunicate OK [00:30:04]wFMCommunicate request_size=4 [00:30:04]MH_SAM_APDU [00:30:04]CAPDU: 80 0D 03 02 [00:30:04]Write to MH i2c: E2 08 00 E3 18 80 0D 03 02 00 00 00 00 76 [00:30:04]Write i2c OK [00:30:04]MH_I2C_Read... [00:30:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:30:04]Read from MH i2c: E2 [00:30:04]MH_I2C_Read... [00:30:04]Read from MH i2c: E2 0B 00 [00:30:04]MH_I2C_Read... [00:30:04]Read from MH i2c: E2 0B 00 E3 18 00 9D 74 30 25 04 25 78 0E 90 00 8C [00:30:04]RAPDU: 9D 74 30 25 04 25 78 0E 90 00 [00:30:04]wFMCommunicate OK [00:30:04]SAM_PROTO_SignData done [00:30:04]FM_MakeSignedData done [00:30:04]CreateOFDProtocolMessage [00:30:04]wFMCommunicate request_size=4 [00:30:04]MH_SAM_APDU [00:30:04]CAPDU: 80 11 00 00 [00:30:04]Write to MH i2c: E2 08 00 E4 18 80 11 00 00 00 00 00 00 76 [00:30:04]Write i2c OK [00:30:04]MH_I2C_Read... [00:30:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:30:04]Read from MH i2c: E2 [00:30:04]MH_I2C_Read... [00:30:04]Read from MH i2c: E2 17 00 [00:30:04]MH_I2C_Read... [00:30:04]Read from MH i2c: E2 17 00 E4 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C5 [00:30:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [00:30:04]wFMCommunicate OK [00:30:04]CreateOFDProtocolMessage done [00:30:04]OFDSenderStorePacket 29413 [00:30:04]StoreOFDPacket docnum=29413 [00:30:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 E5 75 07 01 21 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 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 07 00 00 00 F4 03 04 00 0C 75 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E5 72 00 00 35 04 06 00 C3 36 43 C8 C4 37 9D 74 30 25 04 25 78 0E [00:30:04]CheckFolder [00:30:04]dirname=/storage/ofd_packets [00:30:04]CheckFolder done [00:30:04]ProducePacketName [00:30:04]name=ofd_packets/00029413 [00:30:04]NVStorageSaveData ofd_packets/00029413 [00:30:04]File name is /storage/ofd_packets/00029413 [00:30:04]Write 301 bytes [00:30:04]NVStorageSaveData done [00:30:04]OFDSenderStorePacket done [00:30:04]KKMCreateOFDPacket done [00:30:04]NVStorageSaveData kkm_last_timestamp [00:30:04]File name is /storage/kkm_last_timestamp [00:30:04]Write 4 bytes [00:30:04]NVStorageSaveData done [00:30:04]ExternCall_PrintAddStr [00:30:04]wPrintStart [00:30:04]Write to MH i2c: 01 00 00 E5 18 FD [00:30:04]Write i2c OK [00:30:04]MH_I2C_Read... [00:30:04]Read from MH i2c: 01 [00:30:04]MH_I2C_Read... [00:30:04]Read from MH i2c: 01 07 00 [00:30:04]MH_I2C_Read... [00:30:04]Read from MH i2c: 01 07 00 E5 18 00 00 00 00 00 FF 0F 12 [00:30:04]RasterBufferAndPrint [00:30:04]line Счет N : (1)347807 [00:30:04]line ИНН: 02508201610067 [00:30:04]line Контрольно-Кассовый Чек [00:30:04]line ПРОДАЖА [00:30:04]line ТРК (МРК, ГНК) : 23 [00:30:04]line Товар: 2710124130 [00:30:04]line Аи-92-К-5 [00:30:04]line 7.780 * 64.30 [00:30:04]line = 500.25 [00:30:04]line НДС 12% НСП 1% [00:30:04]line > о реализуемом товаре [00:30:04]line ОКРУГЛЕНИЕ: -0.25 [00:30:04]line ИТОГО: 500.00 [00:30:04]line Внесено: 500.00 [00:30:04]line СДАЧА: 0.00 [00:30:04]line НСП 1% : 4.43 [00:30:04]line НДС 12% : 53.12 [00:30:04]line Наличными: 500.00 [00:30:04]line Безнал.: 0.00 [00:30:04]line Место: АЗС № 108 "Партнер Нефть" [00:30:04]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [00:30:04]line СНО: Общий режим [00:30:04]line Чек 7 15.04.2024 00:30 [00:30:04]line Смена: 117 ФФД: 1.0 [00:30:04]line ЗНМ: 0300000027 [00:30:04]line РНМ: 0000138879044617 [00:30:04]line Версия ККМ: 001 [00:30:04]line ФМ: 0000000000963154 [00:30:04]line ФД: 29413 [00:30:04]line ФПД: 214637832881207 [00:30:04]line 1/tax-web-control/client/api/v1/ticket?date=20240415T003004&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29413&fm=214637832881207&tin=02508201610067®Number=0000138879044617&sum=50000 [00:30:04]OFD Sender: Processing packet 29413 [packets to send 8, broken 7] [00:30:05]ProducePacketName [00:30:05]name=ofd_packets/00029413 [00:30:05]OFD Sender: To server: pG, [00:30:05]CommunicateWithHost lk.salyk.kg:30040 [00:30:05]ConnectInit lk.salyk.kg [00:30:05]written 0, free lines is 4095 [00:30:05]Connected sock=10 [00:30:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 E5 75 07 01 21 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 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 07 00 00 00 F4 03 04 00 0C 75 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E5 72 00 00 35 04 06 00 C3 36 43 C8 C4 37 9D 74 30 25 04 25 78 0E [00:30:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 2E 8D 47 00 8B 1C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E5 72 00 00 F4 03 04 00 AF 1F 1C 66 B6 04 01 00 00 F2 F0 44 98 F4 B0 44 09 [00:30:05]CommunicateWithHost err = 0 [00:30:05]CheckOFDResponse [00:30:05]1017 (14) - 77093643461234 [00:30:05]1041 (16) - 0000000000963154 [00:30:05]1040 (4) - 29413 [00:30:05]1012 (4) - 14.04.2024 18:25 [00:30:05]1206 (1) - 0 [00:30:05]OFD Sender: Remove packet 29413 [00:30:05]ProducePacketName [00:30:05]name=ofd_packets/00029413 [00:30:05]NVStorageDeleteData [00:30:05]Write to MH i2c: 01 00 00 0F 19 28 [00:30:05]Write i2c OK [00:30:05]MH_I2C_Read... [00:30:05]Read from MH i2c: 01 [00:30:05]MH_I2C_Read... [00:30:05]Read from MH i2c: 01 07 00 [00:30:05]MH_I2C_Read... [00:30:05]Read from MH i2c: 01 07 00 0F 19 00 00 00 00 00 D3 0C 0E [00:30:05]RasterBufferAndPrint [00:30:05]line [00:30:05]line [00:30:05]line [00:30:05]line [00:30:05]line [00:30:05]written 0, free lines is 3289 [00:30:05]MH_Cut [00:30:05]Write to MH i2c: D1 01 00 16 19 01 01 [00:30:05]Write i2c OK [00:30:05]MH_I2C_Read... [00:30:05]Read from MH i2c: D1 [00:30:05]MH_I2C_Read... [00:30:05]Read from MH i2c: D1 01 00 [00:30:05]MH_I2C_Read... [00:30:05]Read from MH i2c: D1 01 00 16 19 00 00 [00:30:05]Write to MH i2c: 01 00 00 17 19 30 [00:30:05]Write i2c OK [00:30:05]MH_I2C_Read... [00:30:05]OFD Sender: No OFD packet to send [00:30:06]*** Cut start [00:30:06]*** Partial cut [00:30:06]*** CUTSNS_PIN = 1 [00:30:06]*** CUTSNS_PIN = 0 [00:30:06]*** Brake cut motor [00:30:06]Read from MH i2c: 01 [00:30:06]MH_I2C_Read... [00:30:06]*** Stop cut motor [00:30:06]*** Cut end [00:30:06]Read from MH i2c: 01 07 00 [00:30:06]MH_I2C_Read... [00:30:06]Read from MH i2c: 01 07 00 17 19 00 00 00 00 00 FF 0F 45 [00:30:06]process_action close_receipt done [00:30:06]requested_data is exist [00:30:06]produce_requested_data [00:30:06]requested_item fm.sn is exist - process it [00:30:06]wFMCommunicate request_size=4 [00:30:06]MH_SAM_APDU [00:30:06]CAPDU: 80 11 00 00 [00:30:06]Write to MH i2c: E2 08 00 18 19 80 11 00 00 00 00 00 00 AB [00:30:06]Write i2c OK [00:30:06]MH_I2C_Read... [00:30:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:30:06]Read from MH i2c: E2 [00:30:06]MH_I2C_Read... [00:30:06]Read from MH i2c: E2 17 00 [00:30:06]MH_I2C_Read... [00:30:06]Read from MH i2c: E2 17 00 18 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 FA [00:30:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [00:30:06]wFMCommunicate OK [00:30:06]requested_item fd.num is exist - process it [00:30:06]SAM_PROTO_GetFieldsCounters [00:30:06]wFMCommunicate request_size=4 [00:30:06]MH_SAM_APDU [00:30:06]CAPDU: 80 13 00 00 [00:30:06]Write to MH i2c: E2 08 00 19 19 80 13 00 00 00 00 00 00 AE [00:30:06]Write i2c OK [00:30:06]MH_I2C_Read... [00:30:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:30:07]Read from MH i2c: E2 [00:30:07]MH_I2C_Read... [00:30:07]Read from MH i2c: E2 62 00 [00:30:07]MH_I2C_Read... [00:30:07]Read from MH i2c: E2 62 00 19 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E5 72 00 00 0E 04 04 00 75 00 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 CD [00:30:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E5 72 00 00 0E 04 04 00 75 00 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:30:07]wFMCommunicate OK [00:30:07]SAM_PROTO_GetFieldsCounters done [00:30:07]requested_item shift.num is exist - process it [00:30:07]requested_item shift.opened is exist - process it [00:30:07]req_shift_opened [00:30:07]FM_GetShiftState [00:30:07]SAM_PROTO_GetShiftState [00:30:07]wFMCommunicate request_size=4 [00:30:07]MH_SAM_APDU [00:30:07]CAPDU: 80 13 01 00 [00:30:07]Write to MH i2c: E2 08 00 1A 19 80 13 01 00 00 00 00 00 B0 [00:30:07]Write i2c OK [00:30:07]MH_I2C_Read... [00:30:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:30:07]Read from MH i2c: E2 [00:30:07]MH_I2C_Read... [00:30:07]Read from MH i2c: E2 0E 00 [00:30:07]MH_I2C_Read... [00:30:07]Read from MH i2c: E2 0E 00 1A 19 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 A4 [00:30:07]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [00:30:07]wFMCommunicate OK [00:30:07]SAM_PROTO_GetShiftState done [00:30:07]FM_GetShiftState done [00:30:07]req_shift_opened done [00:30:07]requested_item shift.open_date is exist - process it [00:30:07]req_shift_open_date [00:30:07]req_shift_open_date done [00:30:07]produce_requested_data done [00:30:07]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29413,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [00:30:07]process_action_free close_receipt [00:30:07]json_value_free [00:30:07]json_value_free done [00:30:07]process_json_proto returns [00:30:07]Send response to host [00:30:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29413,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [00:30:07]free response buf [00:30:07]execute_script done [00:30:07]execute_script returns [00:30:07]free content buf [00:30:07]Sock 8.Close socket [00:30:07]Sock 8.Thread stoped [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:15]OFD Sender: No OFD packet to send [00:31:20]OFD Sender: No OFD packet to send [00:31:25]OFD Sender: No OFD packet to send [00:31:30]OFD Sender: No OFD packet to send [00:31:35]OFD Sender: No OFD packet to send [00:31:40]OFD Sender: No OFD packet to send [00:31:45]OFD Sender: No OFD packet to send [00:31:50]OFD Sender: No OFD packet to send [00:31:55]OFD Sender: No OFD packet to send [00:32:00]OFD Sender: No OFD packet to send [00:32:05]OFD Sender: No OFD packet to send [00:32:10]OFD Sender: No OFD packet to send [00:32:15]OFD Sender: No OFD packet to send [00:32:20]OFD Sender: No OFD packet to send [00:32:25]OFD Sender: No OFD packet to send [00:32:30]OFD Sender: No OFD packet to send [00:32:35]OFD Sender: No OFD packet to send [00:32:40]OFD Sender: No OFD packet to send [00:32:45]OFD Sender: No OFD packet to send [00:32:50]OFD Sender: No OFD packet to send [00:32:55]OFD Sender: No OFD packet to send [00:33:00]OFD Sender: No OFD packet to send [00:33:05]OFD Sender: No OFD packet to send [00:33:10]OFD Sender: No OFD packet to send [00:33:15]OFD Sender: No OFD packet to send [00:33:20]OFD Sender: No OFD packet to send [00:33:25]OFD Sender: No OFD packet to send [00:33:30]OFD Sender: No OFD packet to send [00:33:35]OFD Sender: No OFD packet to send [00:33:40]OFD Sender: No OFD packet to send [00:33:45]OFD Sender: No OFD packet to send [00:33:50]OFD Sender: No OFD packet to send [00:33:55]OFD Sender: No OFD packet to send [00:34:00]OFD Sender: No OFD packet to send [00:34:05]OFD Sender: No OFD packet to send [00:34:10]OFD Sender: No OFD packet to send [00:34:15]OFD Sender: No OFD packet to send [00:34:20]OFD Sender: No OFD packet to send [00:34:25]OFD Sender: No OFD packet to send [00:34:30]OFD Sender: No OFD packet to send [00:34:35]OFD Sender: No OFD packet to send [00:34:40]OFD Sender: No OFD packet to send [00:34:45]OFD Sender: No OFD packet to send [00:34:50]OFD Sender: No OFD packet to send [00:34:55]OFD Sender: No OFD packet to send [00:35:01]OFD Sender: No OFD packet to send [00:35:06]OFD Sender: No OFD packet to send [00:35:11]OFD Sender: No OFD packet to send [00:35:16]OFD Sender: No OFD packet to send [00:35:21]OFD Sender: No OFD packet to send [00:35:26]OFD Sender: No OFD packet to send [00:35:31]OFD Sender: No OFD packet to send [00:35:36]OFD Sender: No OFD packet to send [00:35:41]OFD Sender: No OFD packet to send [00:35:46]OFD Sender: No OFD packet to send [00:35:51]OFD Sender: No OFD packet to send [00:35:56]OFD Sender: No OFD packet to send [00:36:01]OFD Sender: No OFD packet to send [00:36:06]OFD Sender: No OFD packet to send [00:36:11]OFD Sender: No OFD packet to send [00:36:16]OFD Sender: No OFD packet to send [00:36:21]OFD Sender: No OFD packet to send [00:36:26]OFD Sender: No OFD packet to send [00:36:31]OFD Sender: No OFD packet to send [00:36:36]OFD Sender: No OFD packet to send [00:36:41]OFD Sender: No OFD packet to send [00:36:46]OFD Sender: No OFD packet to send [00:36:51]OFD Sender: No OFD packet to send [00:36:56]OFD Sender: No OFD packet to send [00:37:01]OFD Sender: No OFD packet to send [00:37:06]OFD Sender: No OFD packet to send [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:11]OFD Sender: No OFD packet to send [00:38:16]OFD Sender: No OFD packet to send [00:38:21]OFD Sender: No OFD packet to send [00:38:26]OFD Sender: No OFD packet to send [00:38:31]OFD Sender: No OFD packet to send [00:38:36]OFD Sender: No OFD packet to send [00:38:41]OFD Sender: No OFD packet to send [00:38:46]OFD Sender: No OFD packet to send [00:38:51]OFD Sender: No OFD packet to send [00:38:56]OFD Sender: No OFD packet to send [00:39:01]OFD Sender: No OFD packet to send [00:39:06]OFD Sender: No OFD packet to send [00:39:11]OFD Sender: No OFD packet to send [00:39:16]OFD Sender: No OFD packet to send [00:39:21]OFD Sender: No OFD packet to send [00:39:26]OFD Sender: No OFD packet to send [00:39:31]OFD Sender: No OFD packet to send [00:39:36]OFD Sender: No OFD packet to send [00:39:41]OFD Sender: No OFD packet to send [00:39:46]OFD Sender: No OFD packet to send [00:39:51]OFD Sender: No OFD packet to send [00:39:56]OFD Sender: No OFD packet to send [00:40:01]OFD Sender: No OFD packet to send [00:40:06]OFD Sender: No OFD packet to send [00:40:11]OFD Sender: No OFD packet to send [00:40:16]OFD Sender: No OFD packet to send [00:40:21]OFD Sender: No OFD packet to send [00:40:26]OFD Sender: No OFD packet to send [00:40:31]OFD Sender: No OFD packet to send [00:40:36]OFD Sender: No OFD packet to send [00:40:41]OFD Sender: No OFD packet to send [00:40:46]OFD Sender: No OFD packet to send [00:40:51]OFD Sender: No OFD packet to send [00:40:56]OFD Sender: No OFD packet to send [00:41:01]OFD Sender: No OFD packet to send [00:41:06]OFD Sender: No OFD packet to send [00:41:11]OFD Sender: No OFD packet to send [00:41:16]OFD Sender: No OFD packet to send [00:41:21]OFD Sender: No OFD packet to send [00:41:26]OFD Sender: No OFD packet to send [00:41:31]OFD Sender: No OFD packet to send [00:41:36]OFD Sender: No OFD packet to send [00:41:41]OFD Sender: No OFD packet to send [00:41:46]OFD Sender: No OFD packet to send [00:41:51]OFD Sender: No OFD packet to send [00:41:56]OFD Sender: No OFD packet to send [00:42:01]OFD Sender: No OFD packet to send [00:42:06]OFD Sender: No OFD packet to send [00:42:11]OFD Sender: No OFD packet to send [00:42:16]OFD Sender: No OFD packet to send [00:42:21]OFD Sender: No OFD packet to send [00:42:26]OFD Sender: No OFD packet to send [00:42:31]OFD Sender: No OFD packet to send [00:42:36]OFD Sender: No OFD packet to send [00:42:41]OFD Sender: No OFD packet to send [00:42:46]OFD Sender: No OFD packet to send [00:42:51]OFD Sender: No OFD packet to send [00:42:56]OFD Sender: No OFD packet to send [00:43:01]OFD Sender: No OFD packet to send [00:43:06]OFD Sender: No OFD packet to send [00:43:11]OFD Sender: No OFD packet to send [00:43:16]OFD Sender: No OFD packet to send [00:43:21]OFD Sender: No OFD packet to send [00:43:26]OFD Sender: No OFD packet to send [00:43:31]OFD Sender: No OFD packet to send [00:43:36]OFD Sender: No OFD packet to send [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:51]OFD Sender: No OFD packet to send [00:53:56]OFD Sender: No OFD packet to send [00:54:01]OFD Sender: No OFD packet to send [00:54:06]OFD Sender: No OFD packet to send [00:54:11]OFD Sender: No OFD packet to send [00:54:16]OFD Sender: No OFD packet to send [00:54:21]OFD Sender: No OFD packet to send [00:54:26]OFD Sender: No OFD packet to send [00:54:31]OFD Sender: No OFD packet to send [00:54:36]OFD Sender: No OFD packet to send [00:54:41]OFD Sender: No OFD packet to send [00:54:46]OFD Sender: No OFD packet to send [00:54:51]OFD Sender: No OFD packet to send [00:54:56]OFD Sender: No OFD packet to send [00:54:57]accept exits with 9 [00:54:57]New connection [00:54:57]New thread 3067112804 created [00:54:57]Thread 3066969444 joined [00:54:57]Waiting for new connection... [00:54:57] Sock 9.Parse request [00:54:57]Sock 9.Check first char [00:54:57]Sock 9.First char is OK [00:54:57]request: POST /json_proto HTTP/1.0 [00:54:57]Method: POST [00:54:57]URL: /json_proto [00:54:57]Method is POST - this is cgi request [00:54:57]url: /json_proto [00:54:57]query_string will be loaded in cgi processing [00:54:57]execute_cgi json_proto POST (null) [00:54:57]execute_cgi path=json_proto method=POST [00:54:57]POST find Content-Length [00:54:57]Host: 172.17.33.3:8080 [00:54:57]Content-Length: 840 [00:54:57]Content-Type: application/json [00:54:57] [00:54:57]POST finish read [00:54:57]Found Content-Length = 840 [00:54:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347808", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:54:57]execute_script... [00:54: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)347808", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:54:57]POST & json_proto [00:54:57]process_json_proto [00:54:57]json parsed OK: [00:54:57]protocol is kg_v1.0 [00:54:57]action value=close_receipt [00:54:57]process_action close_receipt [00:54:57]cmd_close_receipt [00:54:57]MH_GetDate [00:54:57]Write to MH i2c: F0 00 00 1B 19 23 [00:54:57]Write i2c OK [00:54:57]MH_I2C_Read... [00:54:57]Read from MH i2c: F0 [00:54:57]MH_I2C_Read... [00:54:57]Read from MH i2c: F0 09 00 [00:54:57]MH_I2C_Read... [00:54:57]Read from MH i2c: F0 09 00 1B 19 00 E3 7A 1C 66 23 5B 8F 65 7D [00:54:57]GetLastDocTimeStamp 1713141004 [00:54:57]current date 1713142499 [00:54:57]FM_GetShiftState [00:54:57]SAM_PROTO_GetShiftState [00:54:57]wFMCommunicate request_size=4 [00:54:57]MH_SAM_APDU [00:54:57]CAPDU: 80 13 01 00 [00:54:57]Write to MH i2c: E2 08 00 1C 19 80 13 01 00 00 00 00 00 B2 [00:54:57]Write i2c OK [00:54:57]MH_I2C_Read... [00:54:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:54:57]Read from MH i2c: E2 [00:54:57]MH_I2C_Read... [00:54:57]Read from MH i2c: E2 0E 00 [00:54:57]MH_I2C_Read... [00:54:57]Read from MH i2c: E2 0E 00 1C 19 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 A6 [00:54:57]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [00:54:57]wFMCommunicate OK [00:54:57]SAM_PROTO_GetShiftState done [00:54:57]FM_GetShiftState done [00:54:57]opened in 1713140468 [00:54:57]opened+sec_in_day 1713226868 [00:54:57]quantity*price = 100018 [00:54:57]sum+1 = 100020 [00:54:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.19 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.19 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 8 15.04.2024 00:54 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 29414 ФПД: 281401424907021 1/tax-web-control/client/api/v1/ticket?date=20240415T005459&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29414&fm=281401424907021&tin=02508201610067®Number=0000138879044617&sum=100019 [00:54:59]StoreToDocumentArchive [00:54:59]shift 117 fd 29414 [00:54:59]save to /storage/0117/doc_00029414 [00:54:59]save last doc name /storage/0117/doc_00029414 to /storage/kkm_last_doc_name [00:54:59]save OK [00:54:59]Clear old archive folders... [00:54:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [00:54:59]tlvbuf is 00221510 [00:54:59]SAM_PROTO_ClearQueue [00:54:59]wFMCommunicate request_size=4 [00:54:59]MH_SAM_APDU [00:54:59]CAPDU: 80 09 00 00 [00:54:59]Write to MH i2c: E2 08 00 29 19 80 09 00 00 00 00 00 00 B4 [00:54:59]Write i2c OK [00:54:59]MH_I2C_Read... [00:54:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:54:59]Read from MH i2c: E2 [00:54:59]MH_I2C_Read... [00:54:59]Read from MH i2c: E2 03 00 [00:54:59]MH_I2C_Read... [00:54:59]Read from MH i2c: E2 03 00 29 19 00 90 00 B6 [00:54:59]RAPDU: 90 00 [00:54:59]wFMCommunicate OK [00:54:59]SAM_PROTO_ClearQueue done [00:54:59]KKMCreateOFDPacket [00:54:59]OFDProtocolAddRootSTLVToBuf [00:54:59]FM_MakeSignedData [00:54:59]FM_MakeSignedData [00:54:59]SAM_PROTO_SignData [00:54:59]wFMCommunicate request_size=4 [00:54:59]MH_SAM_APDU [00:54:59]CAPDU: 80 0D 01 02 [00:54:59]Write to MH i2c: E2 08 00 2A 19 80 0D 01 02 00 00 00 00 BC [00:54:59]Write i2c OK [00:54:59]MH_I2C_Read... [00:54:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:54:59]Read from MH i2c: E2 [00:54:59]MH_I2C_Read... [00:54:59]Read from MH i2c: E2 03 00 [00:54:59]MH_I2C_Read... [00:54:59]Read from MH i2c: E2 03 00 2A 19 00 90 00 B7 [00:54:59]RAPDU: 90 00 [00:54:59]wFMCommunicate OK [00:54:59]wFMCommunicate request_size=255 [00:54:59]MH_SAM_APDU [00:54:59]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 E3 7A 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E6 72 00 00 35 04 06 00 FF EE DF F8 [00:54:59]Write to MH i2c: E2 02 01 2B 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 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 08 00 00 00 F4 03 04 00 E3 7A 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E6 72 00 00 35 04 06 00 FF EE DF F8 00 00 DD [00:54:59]Write i2c OK [00:54:59]MH_I2C_Read... [00:54:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:54:59]Read from MH i2c: E2 [00:54:59]MH_I2C_Read... [00:54:59]Read from MH i2c: E2 03 00 [00:54:59]MH_I2C_Read... [00:54:59]Read from MH i2c: E2 03 00 2B 19 00 90 00 B8 [00:54:59]RAPDU: 90 00 [00:54:59]wFMCommunicate OK [00:54:59]wFMCommunicate request_size=7 [00:54:59]MH_SAM_APDU [00:54:59]CAPDU: 80 0D 02 02 02 8B 0D [00:54:59]Write to MH i2c: E2 0A 00 2C 19 80 0D 02 02 02 00 8B 0D 00 00 5B [00:54:59]Write i2c OK [00:54:59]MH_I2C_Read... [00:54:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:54:59]Read from MH i2c: E2 [00:54:59]MH_I2C_Read... [00:54:59]Read from MH i2c: E2 03 00 [00:54:59]MH_I2C_Read... [00:54:59]Read from MH i2c: E2 03 00 2C 19 00 90 00 B9 [00:54:59]RAPDU: 90 00 [00:54:59]wFMCommunicate OK [00:54:59]wFMCommunicate request_size=4 [00:54:59]MH_SAM_APDU [00:54:59]CAPDU: 80 0D 03 02 [00:54:59]Write to MH i2c: E2 08 00 2D 19 80 0D 03 02 00 00 00 00 C1 [00:54:59]Write i2c OK [00:54:59]MH_I2C_Read... [00:54:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:54:59]Read from MH i2c: E2 [00:54:59]MH_I2C_Read... [00:54:59]Read from MH i2c: E2 0B 00 [00:54:59]MH_I2C_Read... [00:54:59]Read from MH i2c: E2 0B 00 2D 19 00 F5 40 B5 EA 0C 01 24 F3 90 00 BA [00:54:59]RAPDU: F5 40 B5 EA 0C 01 24 F3 90 00 [00:54:59]wFMCommunicate OK [00:54:59]SAM_PROTO_SignData done [00:54:59]FM_MakeSignedData done [00:54:59]CreateOFDProtocolMessage [00:54:59]wFMCommunicate request_size=4 [00:54:59]MH_SAM_APDU [00:54:59]CAPDU: 80 11 00 00 [00:54:59]Write to MH i2c: E2 08 00 2E 19 80 11 00 00 00 00 00 00 C1 [00:54:59]Write i2c OK [00:54:59]MH_I2C_Read... [00:54:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:54:59]Read from MH i2c: E2 [00:54:59]MH_I2C_Read... [00:54:59]Read from MH i2c: E2 17 00 [00:54:59]MH_I2C_Read... [00:54:59]Read from MH i2c: E2 17 00 2E 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 10 [00:54:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [00:54:59]wFMCommunicate OK [00:54:59]CreateOFDProtocolMessage done [00:54:59]OFDSenderStorePacket 29414 [00:54:59]StoreOFDPacket docnum=29414 [00:54:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 28 05 04 01 8E B9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 E3 7A 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E6 72 00 00 35 04 06 00 FF EE DF F8 8B 0D F5 40 B5 EA 0C 01 24 F3 [00:54:59]CheckFolder [00:54:59]dirname=/storage/ofd_packets [00:54:59]CheckFolder done [00:54:59]ProducePacketName [00:54:59]name=ofd_packets/00029414 [00:54:59]NVStorageSaveData ofd_packets/00029414 [00:54:59]File name is /storage/ofd_packets/00029414 [00:54:59]Write 298 bytes [00:54:59]NVStorageSaveData done [00:54:59]OFDSenderStorePacket done [00:54:59]KKMCreateOFDPacket done [00:54:59]NVStorageSaveData kkm_last_timestamp [00:54:59]File name is /storage/kkm_last_timestamp [00:54:59]Write 4 bytes [00:54:59]NVStorageSaveData done [00:54:59]ExternCall_PrintAddStr [00:54:59]wPrintStart [00:54:59]Write to MH i2c: 01 00 00 2F 19 48 [00:54:59]Write i2c OK [00:54:59]MH_I2C_Read... [00:54:59]Read from MH i2c: 01 [00:54:59]MH_I2C_Read... [00:54:59]Read from MH i2c: 01 07 00 [00:54:59]MH_I2C_Read... [00:54:59]Read from MH i2c: 01 07 00 2F 19 00 00 00 00 00 FF 0F 5D [00:54:59]RasterBufferAndPrint [00:54:59]line Счет N : (1)347808 [00:54:59]line ИНН: 02508201610067 [00:54:59]line Контрольно-Кассовый Чек [00:54:59]line ПРОДАЖА [00:54:59]line ТРК (МРК, ГНК) : 61 [00:54:59]line Товар: 2710194210 [00:54:59]line ДТ-К-5 [00:54:59]line 13.720 * 72.90 [00:54:59]line = 1000.19 [00:54:59]line НДС 12% НСП 1% [00:54:59]line > о реализуемом товаре [00:54:59]line ИТОГО: 1000.19 [00:54:59]line НСП 1% : 8.85 [00:54:59]line НДС 12% : 106.21 [00:54:59]line Наличными: 0.00 [00:54:59]line Безнал.: 1000.19 [00:54:59]line Место: АЗС № 108 "Партнер Нефть" [00:54:59]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [00:54:59]line СНО: Общий режим [00:54:59]line Чек 8 15.04.2024 00:54 [00:54:59]line Смена: 117 ФФД: 1.0 [00:54:59]line ЗНМ: 0300000027 [00:54:59]line РНМ: 0000138879044617 [00:54:59]line Версия ККМ: 001 [00:54:59]line Платежная система: АКБ Кыргызстан [00:54:59]line ФМ: 0000000000963154 [00:54:59]line ФД: 29414 [00:54:59]line ФПД: 281401424907021 [00:54:59]line 1/tax-web-control/client/api/v1/ticket?date=20240415T005459&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29414&fm=281401424907021&tin=02508201610067®Number=0000138879044617&sum=100019 [00:54:59]OFD Sender: Processing packet 29414 [packets to send 8, broken 7] [00:54:59]ProducePacketName [00:54:59]name=ofd_packets/00029414 [00:54:59]OFD Sender: To server: pG, [00:54:59]CommunicateWithHost lk.salyk.kg:30040 [00:54:59]ConnectInit lk.salyk.kg [00:54:59]written 0, free lines is 4095 [00:55:00]Connected sock=10 [00:55:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 28 05 04 01 8E B9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 E3 7A 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E6 72 00 00 35 04 06 00 FF EE DF F8 8B 0D F5 40 B5 EA 0C 01 24 F3 [00:55:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 B0 E5 47 00 C9 C4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E6 72 00 00 F4 03 04 00 86 25 1C 66 B6 04 01 00 00 24 6A DC 7A 26 C0 87 1B [00:55:00]CommunicateWithHost err = 0 [00:55:00]CheckOFDResponse [00:55:00]1017 (14) - 77093643461234 [00:55:00]1041 (16) - 0000000000963154 [00:55:00]1040 (4) - 29414 [00:55:00]1012 (4) - 14.04.2024 18:50 [00:55:00]1206 (1) - 0 [00:55:00]OFD Sender: Remove packet 29414 [00:55:00]ProducePacketName [00:55:00]name=ofd_packets/00029414 [00:55:00]NVStorageDeleteData [00:55:00]Write to MH i2c: 01 00 00 58 19 71 [00:55:00]Write i2c OK [00:55:00]MH_I2C_Read... [00:55:00]Read from MH i2c: 01 [00:55:00]MH_I2C_Read... [00:55:00]Read from MH i2c: 01 07 00 [00:55:00]MH_I2C_Read... [00:55:00]Read from MH i2c: 01 07 00 58 19 00 00 00 00 00 E2 0C 66 [00:55:00]RasterBufferAndPrint [00:55:00]line [00:55:00]line [00:55:00]line [00:55:00]line [00:55:00]line [00:55:00]written 0, free lines is 3304 [00:55:00]MH_Cut [00:55:00]Write to MH i2c: D1 01 00 5F 19 01 4A [00:55:00]Write i2c OK [00:55:00]MH_I2C_Read... [00:55:00]Read from MH i2c: D1 [00:55:00]MH_I2C_Read... [00:55:00]Read from MH i2c: D1 01 00 [00:55:00]MH_I2C_Read... [00:55:00]Read from MH i2c: D1 01 00 5F 19 00 49 [00:55:00]Write to MH i2c: 01 00 00 60 19 79 [00:55:00]Write i2c OK [00:55:00]MH_I2C_Read... [00:55:00]OFD Sender: No OFD packet to send [00:55:01]*** Cut start [00:55:01]*** Partial cut [00:55:01]*** CUTSNS_PIN = 1 [00:55:01]*** CUTSNS_PIN = 0 [00:55:01]*** Brake cut motor [00:55:01]Read from MH i2c: 01 [00:55:01]MH_I2C_Read... [00:55:01]*** Stop cut motor [00:55:01]*** Cut end [00:55:01]Read from MH i2c: 01 07 00 [00:55:01]MH_I2C_Read... [00:55:01]Read from MH i2c: 01 07 00 60 19 00 00 00 00 00 FF 0F 8E [00:55:01]process_action close_receipt done [00:55:01]requested_data is exist [00:55:01]produce_requested_data [00:55:01]requested_item fm.sn is exist - process it [00:55:01]wFMCommunicate request_size=4 [00:55:01]MH_SAM_APDU [00:55:01]CAPDU: 80 11 00 00 [00:55:01]Write to MH i2c: E2 08 00 61 19 80 11 00 00 00 00 00 00 F4 [00:55:01]Write i2c OK [00:55:01]MH_I2C_Read... [00:55:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:55:01]Read from MH i2c: E2 [00:55:01]MH_I2C_Read... [00:55:01]Read from MH i2c: E2 17 00 [00:55:01]MH_I2C_Read... [00:55:01]Read from MH i2c: E2 17 00 61 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 43 [00:55:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [00:55:01]wFMCommunicate OK [00:55:01]requested_item fd.num is exist - process it [00:55:01]SAM_PROTO_GetFieldsCounters [00:55:01]wFMCommunicate request_size=4 [00:55:01]MH_SAM_APDU [00:55:01]CAPDU: 80 13 00 00 [00:55:01]Write to MH i2c: E2 08 00 62 19 80 13 00 00 00 00 00 00 F7 [00:55:01]Write i2c OK [00:55:01]MH_I2C_Read... [00:55:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:55:02]Read from MH i2c: E2 [00:55:02]MH_I2C_Read... [00:55:02]Read from MH i2c: E2 62 00 [00:55:02]MH_I2C_Read... [00:55:02]Read from MH i2c: E2 62 00 62 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E6 72 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 1A [00:55:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E6 72 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:55:02]wFMCommunicate OK [00:55:02]SAM_PROTO_GetFieldsCounters done [00:55:02]requested_item shift.num is exist - process it [00:55:02]requested_item shift.opened is exist - process it [00:55:02]req_shift_opened [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 63 19 80 13 01 00 00 00 00 00 F9 [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 63 19 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 ED [00:55:02]RAPDU: 09 00 01 F4 72 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]req_shift_opened done [00:55:02]requested_item shift.open_date is exist - process it [00:55:02]req_shift_open_date [00:55:02]req_shift_open_date done [00:55:02]produce_requested_data done [00:55:02]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29414,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [00:55:02]process_action_free close_receipt [00:55:02]json_value_free [00:55:02]json_value_free done [00:55:02]process_json_proto returns [00:55:02]Send response to host [00:55:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29414,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [00:55:02]free response buf [00:55:02]execute_script done [00:55:02]execute_script returns [00:55:02]free content buf [00:55:02]Sock 9.Close socket [00:55:02]Sock 9.Thread stoped [00:55:05]OFD Sender: No OFD packet to send [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:45]OFD Sender: No OFD packet to send [00:55:49]accept exits with 8 [00:55:49]New connection [00:55:49]New thread 3066969444 created [00:55:49]Thread 3067112804 joined [00:55:49]Waiting for new connection... [00:55:49] Sock 8.Parse request [00:55:49]Sock 8.Check first char [00:55:49]Sock 8.First char is OK [00:55:49]request: POST /json_proto HTTP/1.0 [00:55:49]Method: POST [00:55:49]URL: /json_proto [00:55:49]Method is POST - this is cgi request [00:55:49]url: /json_proto [00:55:49]query_string will be loaded in cgi processing [00:55:49]execute_cgi json_proto POST (null) [00:55:49]execute_cgi path=json_proto method=POST [00:55:49]POST find Content-Length [00:55:49]Host: 172.17.33.3:8080 [00:55:49]Content-Length: 678 [00:55:49]Content-Type: application/json [00:55:49] [00:55:49]POST finish read [00:55:49]Found Content-Length = 678 [00:55:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347809", "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" : 65.80, "quantity" : 14.140, "sum" : 930.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 930.00, "total" : 930.00, "payments": [ { "type": 0, "sum" : 930.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:55:49]execute_script... [00:55: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)347809", "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" : 65.80, "quantity" : 14.140, "sum" : 930.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 930.00, "total" : 930.00, "payments": [ { "type": 0, "sum" : 930.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:55:49]POST & json_proto [00:55:49]process_json_proto [00:55:49]json parsed OK: [00:55:49]protocol is kg_v1.0 [00:55:49]action value=close_receipt [00:55:49]process_action close_receipt [00:55:49]cmd_close_receipt [00:55:49]MH_GetDate [00:55:49]Write to MH i2c: F0 00 00 64 19 6C [00:55:49]Write i2c OK [00:55:49]MH_I2C_Read... [00:55:49]Read from MH i2c: F0 [00:55:49]MH_I2C_Read... [00:55:49]Read from MH i2c: F0 09 00 [00:55:49]MH_I2C_Read... [00:55:49]Read from MH i2c: F0 09 00 64 19 00 17 7B 1C 66 23 5B 8F 65 FB [00:55:49]GetLastDocTimeStamp 1713142499 [00:55:49]current date 1713142551 [00:55:49]FM_GetShiftState [00:55:49]SAM_PROTO_GetShiftState [00:55:49]wFMCommunicate request_size=4 [00:55:49]MH_SAM_APDU [00:55:49]CAPDU: 80 13 01 00 [00:55:49]Write to MH i2c: E2 08 00 65 19 80 13 01 00 00 00 00 00 FB [00:55:49]Write i2c OK [00:55:49]MH_I2C_Read... [00:55:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:55:49]Read from MH i2c: E2 [00:55:49]MH_I2C_Read... [00:55:49]Read from MH i2c: E2 0E 00 [00:55:49]MH_I2C_Read... [00:55:49]Read from MH i2c: E2 0E 00 65 19 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 EF [00:55:49]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [00:55:49]wFMCommunicate OK [00:55:49]SAM_PROTO_GetShiftState done [00:55:49]FM_GetShiftState done [00:55:49]opened in 1713140468 [00:55:49]opened+sec_in_day 1713226868 [00:55:49]quantity*price = 93041 [00:55:49]sum+1 = 93042 [00:55:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 930.00 Внесено: 930.00 СДАЧА: 0.00 НСП 1% : 8.23 НДС 12% : 98.80 Наличными: 930.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 9 15.04.2024 00:55 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29415 ФПД: 119914571987112 1/tax-web-control/client/api/v1/ticket?date=20240415T005551&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29415&fm=119914571987112&tin=02508201610067®Number=0000138879044617&sum=93000 [00:55:50]StoreToDocumentArchive [00:55:50]shift 117 fd 29415 [00:55:50]save to /storage/0117/doc_00029415 [00:55:50]save last doc name /storage/0117/doc_00029415 to /storage/kkm_last_doc_name [00:55:50]save OK [00:55:50]Clear old archive folders... [00:55:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:55:50]tlvbuf is B6EE80E0 [00:55:50]SAM_PROTO_ClearQueue [00:55:50]wFMCommunicate request_size=4 [00:55:50]MH_SAM_APDU [00:55:50]CAPDU: 80 09 00 00 [00:55:50]Write to MH i2c: E2 08 00 72 19 80 09 00 00 00 00 00 00 FD [00:55:50]Write i2c OK [00:55:50]MH_I2C_Read... [00:55:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:55:50]Read from MH i2c: E2 [00:55:50]MH_I2C_Read... [00:55:50]Read from MH i2c: E2 03 00 [00:55:50]MH_I2C_Read... [00:55:50]Read from MH i2c: E2 03 00 72 19 00 90 00 FF [00:55:50]RAPDU: 90 00 [00:55:50]wFMCommunicate OK [00:55:50]SAM_PROTO_ClearQueue done [00:55:50]KKMCreateOFDPacket [00:55:50]OFDProtocolAddRootSTLVToBuf [00:55:50]FM_MakeSignedData [00:55:50]FM_MakeSignedData [00:55:50]SAM_PROTO_SignData [00:55:50]wFMCommunicate request_size=4 [00:55:50]MH_SAM_APDU [00:55:50]CAPDU: 80 0D 01 02 [00:55:50]Write to MH i2c: E2 08 00 73 19 80 0D 01 02 00 00 00 00 05 [00:55:50]Write i2c OK [00:55:50]MH_I2C_Read... [00:55:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:55:50]Read from MH i2c: E2 [00:55:50]MH_I2C_Read... [00:55:50]Read from MH i2c: E2 03 00 [00:55:50]MH_I2C_Read... [00:55:50]Read from MH i2c: E2 03 00 73 19 00 90 00 00 [00:55:50]RAPDU: 90 00 [00:55:50]wFMCommunicate OK [00:55:50]wFMCommunicate request_size=255 [00:55:50]MH_SAM_APDU [00:55: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 3C 37 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 71 6B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 6B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 26 00 00 00 00 07 04 06 00 48 6B 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 17 7B 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E7 72 00 00 35 04 06 00 6D [00:55:50]Write to MH i2c: E2 02 01 74 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 3C 37 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 71 6B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 6B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 26 00 00 00 00 07 04 06 00 48 6B 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 17 7B 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E7 72 00 00 35 04 06 00 6D 00 00 01 [00:55:50]Write i2c OK [00:55:50]MH_I2C_Read... [00:55:50]OFD Sender: No OFD packet to send [00:55:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:55:50]Read from MH i2c: E2 [00:55:50]MH_I2C_Read... [00:55:50]Read from MH i2c: E2 03 00 [00:55:50]MH_I2C_Read... [00:55:50]Read from MH i2c: E2 03 00 74 19 00 90 00 01 [00:55:50]RAPDU: 90 00 [00:55:50]wFMCommunicate OK [00:55:50]wFMCommunicate request_size=10 [00:55:50]MH_SAM_APDU [00:55:50]CAPDU: 80 0D 02 02 05 0F C9 77 78 A8 [00:55:50]Write to MH i2c: E2 0D 00 75 19 80 0D 02 02 05 00 0F C9 77 78 A8 00 00 81 [00:55:50]Write i2c OK [00:55:50]MH_I2C_Read... [00:55:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:55:50]Read from MH i2c: E2 [00:55:50]MH_I2C_Read... [00:55:50]Read from MH i2c: E2 03 00 [00:55:50]MH_I2C_Read... [00:55:50]Read from MH i2c: E2 03 00 75 19 00 90 00 02 [00:55:50]RAPDU: 90 00 [00:55:50]wFMCommunicate OK [00:55:50]wFMCommunicate request_size=4 [00:55:50]MH_SAM_APDU [00:55:50]CAPDU: 80 0D 03 02 [00:55:50]Write to MH i2c: E2 08 00 76 19 80 0D 03 02 00 00 00 00 0A [00:55:51]Write i2c OK [00:55:51]MH_I2C_Read... [00:55:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:55:51]Read from MH i2c: E2 [00:55:51]MH_I2C_Read... [00:55:51]Read from MH i2c: E2 0B 00 [00:55:51]MH_I2C_Read... [00:55:51]Read from MH i2c: E2 0B 00 76 19 00 8E 39 EE 8D A7 CD E5 94 90 00 3A [00:55:51]RAPDU: 8E 39 EE 8D A7 CD E5 94 90 00 [00:55:51]wFMCommunicate OK [00:55:51]SAM_PROTO_SignData done [00:55:51]FM_MakeSignedData done [00:55:51]CreateOFDProtocolMessage [00:55:51]wFMCommunicate request_size=4 [00:55:51]MH_SAM_APDU [00:55:51]CAPDU: 80 11 00 00 [00:55:51]Write to MH i2c: E2 08 00 77 19 80 11 00 00 00 00 00 00 0A [00:55:51]Write i2c OK [00:55:51]MH_I2C_Read... [00:55:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:55:51]Read from MH i2c: E2 [00:55:51]MH_I2C_Read... [00:55:51]Read from MH i2c: E2 17 00 [00:55:51]MH_I2C_Read... [00:55:51]Read from MH i2c: E2 17 00 77 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 59 [00:55:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [00:55:51]wFMCommunicate OK [00:55:51]CreateOFDProtocolMessage done [00:55:51]OFDSenderStorePacket 29415 [00:55:51]StoreOFDPacket docnum=29415 [00:55:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 7C 61 07 01 1A 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 3C 37 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 71 6B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 6B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 26 00 00 00 00 07 04 06 00 48 6B 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 17 7B 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E7 72 00 00 35 04 06 00 6D 0F C9 77 78 A8 8E 39 EE 8D A7 CD E5 94 [00:55:51]CheckFolder [00:55:51]dirname=/storage/ofd_packets [00:55:51]CheckFolder done [00:55:51]ProducePacketName [00:55:51]name=ofd_packets/00029415 [00:55:51]NVStorageSaveData ofd_packets/00029415 [00:55:51]File name is /storage/ofd_packets/00029415 [00:55:51]Write 301 bytes [00:55:51]NVStorageSaveData done [00:55:51]OFDSenderStorePacket done [00:55:51]KKMCreateOFDPacket done [00:55:51]NVStorageSaveData kkm_last_timestamp [00:55:51]File name is /storage/kkm_last_timestamp [00:55:51]Write 4 bytes [00:55:51]NVStorageSaveData done [00:55:51]ExternCall_PrintAddStr [00:55:51]wPrintStart [00:55:51]Write to MH i2c: 01 00 00 78 19 91 [00:55:51]Write i2c OK [00:55:51]MH_I2C_Read... [00:55:51]Read from MH i2c: 01 [00:55:51]MH_I2C_Read... [00:55:51]Read from MH i2c: 01 07 00 [00:55:51]MH_I2C_Read... [00:55:51]Read from MH i2c: 01 07 00 78 19 00 00 00 00 00 FF 0F A6 [00:55:51]RasterBufferAndPrint [00:55:51]line Счет N : (1)347809 [00:55:51]line ИНН: 02508201610067 [00:55:51]line Контрольно-Кассовый Чек [00:55:51]line ПРОДАЖА [00:55:51]line ТРК (МРК, ГНК) : 32 [00:55:51]line Товар: 2710124130 [00:55:51]line Аи-92-К-5 [00:55:51]line 14.140 * 65.80 [00:55:51]line = 930.41 [00:55:51]line НДС 12% НСП 1% [00:55:51]line > о реализуемом товаре [00:55:51]line ОКРУГЛЕНИЕ: -0.41 [00:55:51]line ИТОГО: 930.00 [00:55:51]line Внесено: 930.00 [00:55:51]line СДАЧА: 0.00 [00:55:51]line НСП 1% : 8.23 [00:55:51]line НДС 12% : 98.80 [00:55:51]line Наличными: 930.00 [00:55:51]line Безнал.: 0.00 [00:55:51]line Место: АЗС № 108 "Партнер Нефть" [00:55:51]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [00:55:51]line СНО: Общий режим [00:55:51]line Чек 9 15.04.2024 00:55 [00:55:51]line Смена: 117 ФФД: 1.0 [00:55:51]line ЗНМ: 0300000027 [00:55:51]line РНМ: 0000138879044617 [00:55:51]line Версия ККМ: 001 [00:55:51]line ФМ: 0000000000963154 [00:55:51]line ФД: 29415 [00:55:51]line ФПД: 119914571987112 [00:55:51]line 1/tax-web-control/client/api/v1/ticket?date=20240415T005551&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29415&fm=119914571987112&tin=02508201610067®Number=0000138879044617&sum=93000 [00:55:51]OFD Sender: Processing packet 29415 [packets to send 8, broken 7] [00:55:51]ProducePacketName [00:55:51]name=ofd_packets/00029415 [00:55:51]OFD Sender: To server: pG, [00:55:51]CommunicateWithHost lk.salyk.kg:30040 [00:55:51]ConnectInit lk.salyk.kg [00:55:51]written 0, free lines is 4095 [00:55:51]Connected sock=10 [00:55:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 7C 61 07 01 1A 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 3C 37 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 71 6B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 6B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 26 00 00 00 00 07 04 06 00 48 6B 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 17 7B 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E7 72 00 00 35 04 06 00 6D 0F C9 77 78 A8 8E 39 EE 8D A7 CD E5 94 [00:55:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 B2 CC 47 00 62 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 39 36 33 31 35 34 10 04 04 00 E7 72 00 00 F4 03 04 00 B9 25 1C 66 B6 04 01 00 00 56 7A D8 5B 83 6D 22 19 [00:55:51]CommunicateWithHost err = 0 [00:55:51]CheckOFDResponse [00:55:51]1017 (14) - 77093643461234 [00:55:51]1041 (16) - 0000000000963154 [00:55:51]1040 (4) - 29415 [00:55:51]1012 (4) - 14.04.2024 18:51 [00:55:51]1206 (1) - 0 [00:55:51]OFD Sender: Remove packet 29415 [00:55:51]ProducePacketName [00:55:51]name=ofd_packets/00029415 [00:55:51]NVStorageDeleteData [00:55:51]Write to MH i2c: 01 00 00 A2 19 BB [00:55:51]Write i2c OK [00:55:51]MH_I2C_Read... [00:55:51]Read from MH i2c: 01 [00:55:51]MH_I2C_Read... [00:55:51]Read from MH i2c: 01 07 00 [00:55:51]MH_I2C_Read... [00:55:51]Read from MH i2c: 01 07 00 A2 19 00 00 00 00 00 C8 0C 96 [00:55:51]RasterBufferAndPrint [00:55:51]line [00:55:51]line [00:55:51]line [00:55:51]line [00:55:51]line [00:55:51]written 0, free lines is 3279 [00:55:51]MH_Cut [00:55:51]Write to MH i2c: D1 01 00 A9 19 01 94 [00:55:51]Write i2c OK [00:55:51]MH_I2C_Read... [00:55:51]Read from MH i2c: D1 [00:55:51]MH_I2C_Read... [00:55:51]Read from MH i2c: D1 01 00 [00:55:51]MH_I2C_Read... [00:55:51]Read from MH i2c: D1 01 00 A9 19 00 93 [00:55:51]Write to MH i2c: 01 00 00 AA 19 C3 [00:55:51]Write i2c OK [00:55:51]MH_I2C_Read... [00:55:52]OFD Sender: No OFD packet to send [00:55:52]*** Cut start [00:55:52]*** Partial cut [00:55:52]*** CUTSNS_PIN = 1 [00:55:52]*** CUTSNS_PIN = 0 [00:55:53]*** Brake cut motor [00:55:53]Read from MH i2c: 01 [00:55:53]MH_I2C_Read... [00:55:53]*** Stop cut motor [00:55:53]*** Cut end [00:55:53]Read from MH i2c: 01 07 00 [00:55:53]MH_I2C_Read... [00:55:53]Read from MH i2c: 01 07 00 AA 19 00 00 00 00 00 FF 0F D8 [00:55:53]process_action close_receipt done [00:55:53]requested_data is exist [00:55:53]produce_requested_data [00:55:53]requested_item fm.sn is exist - process it [00:55:53]wFMCommunicate request_size=4 [00:55:53]MH_SAM_APDU [00:55:53]CAPDU: 80 11 00 00 [00:55:53]Write to MH i2c: E2 08 00 AB 19 80 11 00 00 00 00 00 00 3E [00:55:53]Write i2c OK [00:55:53]MH_I2C_Read... [00:55:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:55:53]Read from MH i2c: E2 [00:55:53]MH_I2C_Read... [00:55:53]Read from MH i2c: E2 17 00 [00:55:53]MH_I2C_Read... [00:55:53]Read from MH i2c: E2 17 00 AB 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 8D [00:55:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [00:55:53]wFMCommunicate OK [00:55:53]requested_item fd.num is exist - process it [00:55:53]SAM_PROTO_GetFieldsCounters [00:55:53]wFMCommunicate request_size=4 [00:55:53]MH_SAM_APDU [00:55:53]CAPDU: 80 13 00 00 [00:55:53]Write to MH i2c: E2 08 00 AC 19 80 13 00 00 00 00 00 00 41 [00:55:53]Write i2c OK [00:55:53]MH_I2C_Read... [00:55:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:55:53]Read from MH i2c: E2 [00:55:53]MH_I2C_Read... [00:55:53]Read from MH i2c: E2 62 00 [00:55:53]MH_I2C_Read... [00:55:53]Read from MH i2c: E2 62 00 AC 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E7 72 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 68 [00:55:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E7 72 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:55:53]wFMCommunicate OK [00:55:53]SAM_PROTO_GetFieldsCounters done [00:55:53]requested_item shift.num is exist - process it [00:55:53]requested_item shift.opened is exist - process it [00:55:53]req_shift_opened [00:55:53]FM_GetShiftState [00:55:53]SAM_PROTO_GetShiftState [00:55:53]wFMCommunicate request_size=4 [00:55:53]MH_SAM_APDU [00:55:53]CAPDU: 80 13 01 00 [00:55:53]Write to MH i2c: E2 08 00 AD 19 80 13 01 00 00 00 00 00 43 [00:55:53]Write i2c OK [00:55:53]MH_I2C_Read... [00:55:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:55:53]Read from MH i2c: E2 [00:55:53]MH_I2C_Read... [00:55:53]Read from MH i2c: E2 0E 00 [00:55:53]MH_I2C_Read... [00:55:53]Read from MH i2c: E2 0E 00 AD 19 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 37 [00:55:53]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [00:55:53]wFMCommunicate OK [00:55:53]SAM_PROTO_GetShiftState done [00:55:53]FM_GetShiftState done [00:55:53]req_shift_opened done [00:55:53]requested_item shift.open_date is exist - process it [00:55:53]req_shift_open_date [00:55:53]req_shift_open_date done [00:55:53]produce_requested_data done [00:55:53]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29415,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [00:55:53]process_action_free close_receipt [00:55:53]json_value_free [00:55:53]json_value_free done [00:55:53]process_json_proto returns [00:55:53]Send response to host [00:55:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29415,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [00:55:53]free response buf [00:55:53]execute_script done [00:55:53]execute_script returns [00:55:53]free content buf [00:55:53]Sock 8.Close socket [00:55:53]Sock 8.Thread stoped [00:55:57]OFD Sender: No OFD packet to send [00:56:02]OFD Sender: No OFD packet to send [00:56:07]OFD Sender: No OFD packet to send [00:56:12]OFD Sender: No OFD packet to send [00:56:17]OFD Sender: No OFD packet to send [00:56:22]OFD Sender: No OFD packet to send [00:56:27]OFD Sender: No OFD packet to send [00:56:32]OFD Sender: No OFD packet to send [00:56:37]OFD Sender: No OFD packet to send [00:56:42]OFD Sender: No OFD packet to send [00:56:47]OFD Sender: No OFD packet to send [00:56:52]OFD Sender: No OFD packet to send [00:56:57]OFD Sender: No OFD packet to send [00:57:02]OFD Sender: No OFD packet to send [00:57:07]OFD Sender: No OFD packet to send [00:57:12]OFD Sender: No OFD packet to send [00:57:17]OFD Sender: No OFD packet to send [00:57:22]OFD Sender: No OFD packet to send [00:57:27]OFD Sender: No OFD packet to send [00:57:32]OFD Sender: No OFD packet to send [00:57:37]OFD Sender: No OFD packet to send [00:57:42]OFD Sender: No OFD packet to send [00:57:47]OFD Sender: No OFD packet to send [00:57:52]OFD Sender: No OFD packet to send [00:57:57]OFD Sender: No OFD packet to send [00:58:02]OFD Sender: No OFD packet to send [00:58:07]OFD Sender: No OFD packet to send [00:58:12]OFD Sender: No OFD packet to send [00:58:17]OFD Sender: No OFD packet to send [00:58:22]OFD Sender: No OFD packet to send [00:58:27]OFD Sender: No OFD packet to send [00:58:32]OFD Sender: No OFD packet to send [00:58:37]OFD Sender: No OFD packet to send [00:58:42]OFD Sender: No OFD packet to send [00:58:47]OFD Sender: No OFD packet to send [00:58:52]OFD Sender: No OFD packet to send [00:58:57]OFD Sender: No OFD packet to send [00:59:02]OFD Sender: No OFD packet to send [00:59:07]OFD Sender: No OFD packet to send [00:59:12]OFD Sender: No OFD packet to send [00:59:17]OFD Sender: No OFD packet to send [00:59:22]OFD Sender: No OFD packet to send [00:59:27]OFD Sender: No OFD packet to send [00:59:32]OFD Sender: No OFD packet to send [00:59:37]OFD Sender: No OFD packet to send [00:59:42]OFD Sender: No OFD packet to send [00:59:47]OFD Sender: No OFD packet to send [00:59:52]OFD Sender: No OFD packet to send [00:59:57]OFD Sender: No OFD packet to send [01:00:02]OFD Sender: No OFD packet to send [01:00:07]OFD Sender: No OFD packet to send [01:00:12]OFD Sender: No OFD packet to send [01:00:17]OFD Sender: No OFD packet to send [01:00:22]OFD Sender: No OFD packet to send [01:00:27]OFD Sender: No OFD packet to send [01:00:32]OFD Sender: No OFD packet to send [01:00:37]OFD Sender: No OFD packet to send [01:00:42]OFD Sender: No OFD packet to send [01:00:47]OFD Sender: No OFD packet to send [01:00:52]OFD Sender: No OFD packet to send [01:00:57]OFD Sender: No OFD packet to send [01:01:02]OFD Sender: No OFD packet to send [01:01:07]OFD Sender: No OFD packet to send [01:01:12]OFD Sender: No OFD packet to send [01:01:17]OFD Sender: No OFD packet to send [01:01:22]OFD Sender: No OFD packet to send [01:01:27]OFD Sender: No OFD packet to send [01:01:32]OFD Sender: No OFD packet to send [01:01:37]OFD Sender: No OFD packet to send [01:01:42]OFD Sender: No OFD packet to send [01:01:47]OFD Sender: No OFD packet to send [01:01:52]OFD Sender: No OFD packet to send [01:01:57]OFD Sender: No OFD packet to send [01:02:02]OFD Sender: No OFD packet to send [01:02:07]OFD Sender: No OFD packet to send [01:02:12]OFD Sender: No OFD packet to send [01:02:17]OFD Sender: No OFD packet to send [01:02:22]OFD Sender: No OFD packet to send [01:02:27]OFD Sender: No OFD packet to send [01:02:32]OFD Sender: No OFD packet to send [01:02:37]OFD Sender: No OFD packet to send [01:02:42]OFD Sender: No OFD packet to send [01:02:47]OFD Sender: No OFD packet to send [01:02:52]OFD Sender: No OFD packet to send [01:02:57]OFD Sender: No OFD packet to send [01:03:02]OFD Sender: No OFD packet to send [01:03:07]OFD Sender: No OFD packet to send [01:03:12]OFD Sender: No OFD packet to send [01:03:17]OFD Sender: No OFD packet to send [01:03:22]OFD Sender: No OFD packet to send [01:03:27]OFD Sender: No OFD packet to send [01:03:32]OFD Sender: No OFD packet to send [01:03:37]OFD Sender: No OFD packet to send [01:03:42]OFD Sender: No OFD packet to send [01:03:47]OFD Sender: No OFD packet to send [01:03:52]OFD Sender: No OFD packet to send [01:03:57]OFD Sender: No OFD packet to send [01:04:02]OFD Sender: No OFD packet to send [01:04:07]OFD Sender: No OFD packet to send [01:04:12]OFD Sender: No OFD packet to send [01:04:17]OFD Sender: No OFD packet to send [01:04:22]OFD Sender: No OFD packet to send [01:04:27]OFD Sender: No OFD packet to send [01:04:32]OFD Sender: No OFD packet to send [01:04:37]OFD Sender: No OFD packet to send [01:04:42]OFD Sender: No OFD packet to send [01:04:47]OFD Sender: No OFD packet to send [01:04:52]OFD Sender: No OFD packet to send [01:04:57]OFD Sender: No OFD packet to send [01:05:02]OFD Sender: No OFD packet to send [01:05:07]OFD Sender: No OFD packet to send [01:05:12]OFD Sender: No OFD packet to send [01:05:17]OFD Sender: No OFD packet to send [01:05:22]OFD Sender: No OFD packet to send [01:05:27]OFD Sender: No OFD packet to send [01:05:32]OFD Sender: No OFD packet to send [01:05:37]OFD Sender: No OFD packet to send [01:05:42]OFD Sender: No OFD packet to send [01:05:47]OFD Sender: No OFD packet to send [01:05:52]OFD Sender: No OFD packet to send [01:05:57]OFD Sender: No OFD packet to send [01:06:02]OFD Sender: No OFD packet to send [01:06:07]OFD Sender: No OFD packet to send [01:06:12]OFD Sender: No OFD packet to send [01:06:17]OFD Sender: No OFD packet to send [01:06:22]OFD Sender: No OFD packet to send [01:06:27]OFD Sender: No OFD packet to send [01:06:32]OFD Sender: No OFD packet to send [01:06:37]OFD Sender: No OFD packet to send [01:06:42]OFD Sender: No OFD packet to send [01:06:47]OFD Sender: No OFD packet to send [01:06:52]OFD Sender: No OFD packet to send [01:06:57]OFD Sender: No OFD packet to send [01:07:02]OFD Sender: No OFD packet to send [01:07:07]OFD Sender: No OFD packet to send [01:07:12]OFD Sender: No OFD packet to send [01:07:17]OFD Sender: No OFD packet to send [01:07:22]OFD Sender: No OFD packet to send [01:07:27]OFD Sender: No OFD packet to send [01:07:32]OFD Sender: No OFD packet to send [01:07:37]OFD Sender: No OFD packet to send [01:07:42]OFD Sender: No OFD packet to send [01:07:47]OFD Sender: No OFD packet to send [01:07:52]OFD Sender: No OFD packet to send [01:07:57]OFD Sender: No OFD packet to send [01:08:02]OFD Sender: No OFD packet to send [01:08:07]OFD Sender: No OFD packet to send [01:08:12]OFD Sender: No OFD packet to send [01:08:17]OFD Sender: No OFD packet to send [01:08:22]OFD Sender: No OFD packet to send [01:08:27]OFD Sender: No OFD packet to send [01:08:32]OFD Sender: No OFD packet to send [01:08:37]OFD Sender: No OFD packet to send [01:08:42]OFD Sender: No OFD packet to send [01:08:47]OFD Sender: No OFD packet to send [01:08:52]OFD Sender: No OFD packet to send [01:08:57]OFD Sender: No OFD packet to send [01:09:02]OFD Sender: No OFD packet to send [01:09:07]OFD Sender: No OFD packet to send [01:09:12]OFD Sender: No OFD packet to send [01:09:17]OFD Sender: No OFD packet to send [01:09:22]OFD Sender: No OFD packet to send [01:09:27]OFD Sender: No OFD packet to send [01:09:32]OFD Sender: No OFD packet to send [01:09:37]OFD Sender: No OFD packet to send [01:09:42]OFD Sender: No OFD packet to send [01:09:47]OFD Sender: No OFD packet to send [01:09:52]OFD Sender: No OFD packet to send [01:09:57]OFD Sender: No OFD packet to send [01:10:02]OFD Sender: No OFD packet to send [01:10:07]OFD Sender: No OFD packet to send [01:10:12]OFD Sender: No OFD packet to send [01:10:17]OFD Sender: No OFD packet to send [01:10:22]OFD Sender: No OFD packet to send [01:10:27]OFD Sender: No OFD packet to send [01:10:32]OFD Sender: No OFD packet to send [01:10:37]OFD Sender: No OFD packet to send [01:10:42]OFD Sender: No OFD packet to send [01:10:47]OFD Sender: No OFD packet to send [01:10:52]OFD Sender: No OFD packet to send [01:10:57]OFD Sender: No OFD packet to send [01:11:02]OFD Sender: No OFD packet to send [01:11:07]OFD Sender: No OFD packet to send [01:11:12]OFD Sender: No OFD packet to send [01:11:17]OFD Sender: No OFD packet to send [01:11:22]OFD Sender: No OFD packet to send [01:11:27]OFD Sender: No OFD packet to send [01:11:32]OFD Sender: No OFD packet to send [01:11:37]OFD Sender: No OFD packet to send [01:11:42]OFD Sender: No OFD packet to send [01:11:47]OFD Sender: No OFD packet to send [01:11:52]OFD Sender: No OFD packet to send [01:11:57]OFD Sender: No OFD packet to send [01:12:02]OFD Sender: No OFD packet to send [01:12:07]OFD Sender: No OFD packet to send [01:12:12]OFD Sender: No OFD packet to send [01:12:17]OFD Sender: No OFD packet to send [01:12:22]OFD Sender: No OFD packet to send [01:12:27]OFD Sender: No OFD packet to send [01:12:33]OFD Sender: No OFD packet to send [01:12:38]OFD Sender: No OFD packet to send [01:12:43]OFD Sender: No OFD packet to send [01:12:48]OFD Sender: No OFD packet to send [01:12:53]OFD Sender: No OFD packet to send [01:12:58]OFD Sender: No OFD packet to send [01:13:03]OFD Sender: No OFD packet to send [01:13:08]OFD Sender: No OFD packet to send [01:13:13]OFD Sender: No OFD packet to send [01:13:18]OFD Sender: No OFD packet to send [01:13:23]OFD Sender: No OFD packet to send [01:13:28]OFD Sender: No OFD packet to send [01:13:33]OFD Sender: No OFD packet to send [01:13:38]OFD Sender: No OFD packet to send [01:13:43]OFD Sender: No OFD packet to send [01:13:48]OFD Sender: No OFD packet to send [01:13:53]OFD Sender: No OFD packet to send [01:13:58]OFD Sender: No OFD packet to send [01:14:03]OFD Sender: No OFD packet to send [01:14:08]OFD Sender: No OFD packet to send [01:14:13]OFD Sender: No OFD packet to send [01:14:18]OFD Sender: No OFD packet to send [01:14:23]OFD Sender: No OFD packet to send [01:14:28]OFD Sender: No OFD packet to send [01:14:33]OFD Sender: No OFD packet to send [01:14:38]OFD Sender: No OFD packet to send [01:14:43]OFD Sender: No OFD packet to send [01:14:48]accept exits with 9 [01:14:48]New connection [01:14:48]New thread 3067112804 created [01:14:48]Thread 3066969444 joined [01:14:48]Waiting for new connection... [01:14:48] Sock 9.Parse request [01:14:48]Sock 9.Check first char [01:14:48]Sock 9.First char is OK [01:14:48]request: POST /json_proto HTTP/1.0 [01:14:48]Method: POST [01:14:48]URL: /json_proto [01:14:48]Method is POST - this is cgi request [01:14:48]url: /json_proto [01:14:48]query_string will be loaded in cgi processing [01:14:48]execute_cgi json_proto POST (null) [01:14:48]execute_cgi path=json_proto method=POST [01:14:48]POST find Content-Length [01:14:48]Host: 172.17.33.3:8080 [01:14:48]Content-Length: 843 [01:14:48]Content-Type: application/json [01:14:48] [01:14:48]POST finish read [01:14:48]Found Content-Length = 843 [01:14:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347811", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:14:48]execute_script... [01:14: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)347811", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:14:48]POST & json_proto [01:14:48]process_json_proto [01:14:48]json parsed OK: [01:14:48]protocol is kg_v1.0 [01:14:48]action value=close_receipt [01:14:48]process_action close_receipt [01:14:48]cmd_close_receipt [01:14:48]MH_GetDate [01:14:48]Write to MH i2c: F0 00 00 AE 19 B6 [01:14:48]Write i2c OK [01:14:48]MH_I2C_Read... [01:14:48]Read from MH i2c: F0 [01:14:48]MH_I2C_Read... [01:14:48]Read from MH i2c: F0 09 00 [01:14:48]MH_I2C_Read... [01:14:48]Read from MH i2c: F0 09 00 AE 19 00 89 7F 1C 66 23 5B 8F 65 BB [01:14:48]GetLastDocTimeStamp 1713142551 [01:14:48]current date 1713143689 [01:14:48]FM_GetShiftState [01:14:48]SAM_PROTO_GetShiftState [01:14:48]wFMCommunicate request_size=4 [01:14:48]MH_SAM_APDU [01:14:48]CAPDU: 80 13 01 00 [01:14:48]Write to MH i2c: E2 08 00 AF 19 80 13 01 00 00 00 00 00 45 [01:14:48]Write i2c OK [01:14:48]MH_I2C_Read... [01:14:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:14:48]Read from MH i2c: E2 [01:14:48]MH_I2C_Read... [01:14:48]Read from MH i2c: E2 0E 00 [01:14:48]MH_I2C_Read... [01:14:48]Read from MH i2c: E2 0E 00 AF 19 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 39 [01:14:48]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [01:14:48]wFMCommunicate OK [01:14:48]SAM_PROTO_GetShiftState done [01:14:48]FM_GetShiftState done [01:14:48]opened in 1713140468 [01:14:48]opened+sec_in_day 1713226868 [01:14:48]quantity*price = 100018 [01:14:48]sum+1 = 100020 [01:14:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.19 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.19 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 10 15.04.2024 01:14 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 29416 ФПД: 4905032441471 1/tax-web-control/client/api/v1/ticket?date=20240415T011450&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29416&fm=4905032441471&tin=02508201610067®Number=0000138879044617&sum=100019 [01:14:49]StoreToDocumentArchive [01:14:49]shift 117 fd 29416 [01:14:49]save to /storage/0117/doc_00029416 [01:14:49]save last doc name /storage/0117/doc_00029416 to /storage/kkm_last_doc_name [01:14:49]save OK [01:14:49]Clear old archive folders... [01:14:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:14:49]tlvbuf is B6EE86F0 [01:14:49]SAM_PROTO_ClearQueue [01:14:49]wFMCommunicate request_size=4 [01:14:49]MH_SAM_APDU [01:14:49]CAPDU: 80 09 00 00 [01:14:49]Write to MH i2c: E2 08 00 BC 19 80 09 00 00 00 00 00 00 47 [01:14:49]Write i2c OK [01:14:49]MH_I2C_Read... [01:14:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:14:49]Read from MH i2c: E2 [01:14:49]MH_I2C_Read... [01:14:49]Read from MH i2c: E2 03 00 [01:14:49]MH_I2C_Read... [01:14:49]Read from MH i2c: E2 03 00 BC 19 00 90 00 49 [01:14:49]RAPDU: 90 00 [01:14:49]wFMCommunicate OK [01:14:49]SAM_PROTO_ClearQueue done [01:14:49]KKMCreateOFDPacket [01:14:49]OFDProtocolAddRootSTLVToBuf [01:14:49]FM_MakeSignedData [01:14:49]FM_MakeSignedData [01:14:49]SAM_PROTO_SignData [01:14:49]wFMCommunicate request_size=4 [01:14:49]MH_SAM_APDU [01:14:49]CAPDU: 80 0D 01 02 [01:14:49]Write to MH i2c: E2 08 00 BD 19 80 0D 01 02 00 00 00 00 4F [01:14:49]Write i2c OK [01:14:49]MH_I2C_Read... [01:14:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:14:49]Read from MH i2c: E2 [01:14:49]MH_I2C_Read... [01:14:49]Read from MH i2c: E2 03 00 [01:14:49]MH_I2C_Read... [01:14:49]Read from MH i2c: E2 03 00 BD 19 00 90 00 4A [01:14:49]RAPDU: 90 00 [01:14:49]wFMCommunicate OK [01:14:49]wFMCommunicate request_size=255 [01:14:49]MH_SAM_APDU [01:14: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 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 0A 00 00 00 F4 03 04 00 8A 7F 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E8 72 00 00 35 04 06 00 04 [01:14:49]Write to MH i2c: E2 02 01 BE 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 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 0A 00 00 00 F4 03 04 00 8A 7F 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E8 72 00 00 35 04 06 00 04 00 00 11 [01:14:49]Write i2c OK [01:14:49]MH_I2C_Read... [01:14:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:14:49]Read from MH i2c: E2 [01:14:49]MH_I2C_Read... [01:14:49]Read from MH i2c: E2 03 00 [01:14:49]MH_I2C_Read... [01:14:49]Read from MH i2c: E2 03 00 BE 19 00 90 00 4B [01:14:49]RAPDU: 90 00 [01:14:49]wFMCommunicate OK [01:14:49]wFMCommunicate request_size=10 [01:14:49]MH_SAM_APDU [01:14:49]CAPDU: 80 0D 02 02 05 76 0A B7 5E 7F [01:14:49]Write to MH i2c: E2 0D 00 BF 19 80 0D 02 02 05 00 76 0A B7 5E 7F 00 00 70 [01:14:49]Write i2c OK [01:14:49]MH_I2C_Read... [01:14:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:14:49]Read from MH i2c: E2 [01:14:49]MH_I2C_Read... [01:14:49]Read from MH i2c: E2 03 00 [01:14:49]MH_I2C_Read... [01:14:49]Read from MH i2c: E2 03 00 BF 19 00 90 00 4C [01:14:49]RAPDU: 90 00 [01:14:49]wFMCommunicate OK [01:14:49]wFMCommunicate request_size=4 [01:14:49]MH_SAM_APDU [01:14:49]CAPDU: 80 0D 03 02 [01:14:49]Write to MH i2c: E2 08 00 C0 19 80 0D 03 02 00 00 00 00 54 [01:14:49]Write i2c OK [01:14:49]MH_I2C_Read... [01:14:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:14:49]Read from MH i2c: E2 [01:14:49]MH_I2C_Read... [01:14:49]Read from MH i2c: E2 0B 00 [01:14:49]MH_I2C_Read... [01:14:49]Read from MH i2c: E2 0B 00 C0 19 00 FA 6F 16 51 DC B1 DE DC 90 00 6C [01:14:49]RAPDU: FA 6F 16 51 DC B1 DE DC 90 00 [01:14:49]wFMCommunicate OK [01:14:49]SAM_PROTO_SignData done [01:14:49]FM_MakeSignedData done [01:14:49]CreateOFDProtocolMessage [01:14:49]wFMCommunicate request_size=4 [01:14:49]MH_SAM_APDU [01:14:49]CAPDU: 80 11 00 00 [01:14:49]Write to MH i2c: E2 08 00 C1 19 80 11 00 00 00 00 00 00 54 [01:14:49]Write i2c OK [01:14:49]MH_I2C_Read... [01:14:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:14:49]Read from MH i2c: E2 [01:14:49]MH_I2C_Read... [01:14:49]Read from MH i2c: E2 17 00 [01:14:49]MH_I2C_Read... [01:14:49]Read from MH i2c: E2 17 00 C1 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A3 [01:14:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [01:14:49]wFMCommunicate OK [01:14:49]CreateOFDProtocolMessage done [01:14:49]OFDSenderStorePacket 29416 [01:14:49]StoreOFDPacket docnum=29416 [01:14:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 0D AE 07 01 C4 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 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 0A 00 00 00 F4 03 04 00 8A 7F 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E8 72 00 00 35 04 06 00 04 76 0A B7 5E 7F FA 6F 16 51 DC B1 DE DC [01:14:49]CheckFolder [01:14:49]dirname=/storage/ofd_packets [01:14:49]CheckFolder done [01:14:49]ProducePacketName [01:14:49]name=ofd_packets/00029416 [01:14:49]NVStorageSaveData ofd_packets/00029416 [01:14:49]File name is /storage/ofd_packets/00029416 [01:14:49]Write 301 bytes [01:14:49]NVStorageSaveData done [01:14:49]OFDSenderStorePacket done [01:14:49]KKMCreateOFDPacket done [01:14:49]NVStorageSaveData kkm_last_timestamp [01:14:49]File name is /storage/kkm_last_timestamp [01:14:49]Write 4 bytes [01:14:49]NVStorageSaveData done [01:14:49]ExternCall_PrintAddStr [01:14:49]wPrintStart [01:14:49]Write to MH i2c: 01 00 00 C2 19 DB [01:14:49]Write i2c OK [01:14:49]MH_I2C_Read... [01:14:49]Read from MH i2c: 01 [01:14:49]MH_I2C_Read... [01:14:49]Read from MH i2c: 01 07 00 [01:14:49]MH_I2C_Read... [01:14:49]Read from MH i2c: 01 07 00 C2 19 00 00 00 00 00 FF 0F F0 [01:14:49]RasterBufferAndPrint [01:14:49]line Счет N : (1)347811 [01:14:49]line ИНН: 02508201610067 [01:14:49]line Контрольно-Кассовый Чек [01:14:49]line ПРОДАЖА [01:14:49]line ТРК (МРК, ГНК) : 33 [01:14:49]line Товар: 2710124500 [01:14:49]line Аи-95-К-5 [01:14:49]line 13.720 * 72.90 [01:14:49]line = 1000.19 [01:14:49]line НДС 12% НСП 1% [01:14:49]line > о реализуемом товаре [01:14:49]line ИТОГО: 1000.19 [01:14:49]line НСП 1% : 8.85 [01:14:49]line НДС 12% : 106.21 [01:14:49]line Наличными: 0.00 [01:14:49]line Безнал.: 1000.19 [01:14:49]line Место: АЗС № 108 "Партнер Нефть" [01:14:49]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [01:14:49]line СНО: Общий режим [01:14:49]line Чек 10 15.04.2024 01:14 [01:14:49]line Смена: 117 ФФД: 1.0 [01:14:49]line ЗНМ: 0300000027 [01:14:49]line РНМ: 0000138879044617 [01:14:49]line Версия ККМ: 001 [01:14:49]line Платежная система: АКБ Кыргызстан [01:14:49]line ФМ: 0000000000963154 [01:14:49]line ФД: 29416 [01:14:49]line ФПД: 4905032441471 [01:14:49]line 1/tax-web-control/client/api/v1/ticket?date=20240415T011450&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29416&fm=4905032441471&tin=02508201610067®Number=0000138879044617&sum=100019 [01:14:50]OFD Sender: Processing packet 29416 [packets to send 8, broken 7] [01:14:50]ProducePacketName [01:14:50]name=ofd_packets/00029416 [01:14:50]OFD Sender: To server: pG, [01:14:50]CommunicateWithHost lk.salyk.kg:30040 [01:14:50]ConnectInit lk.salyk.kg [01:14:50]written 0, free lines is 4095 [01:14:50]Connected sock=10 [01:14:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 0D AE 07 01 C4 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 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 0A 00 00 00 F4 03 04 00 8A 7F 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E8 72 00 00 35 04 06 00 04 76 0A B7 5E 7F FA 6F 16 51 DC B1 DE DC [01:14:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 7A 92 47 00 6A 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E8 72 00 00 F4 03 04 00 2C 2A 1C 66 B6 04 01 00 00 04 FD 41 C0 88 75 BE 98 [01:14:50]CommunicateWithHost err = 0 [01:14:50]CheckOFDResponse [01:14:50]1017 (14) - 77093643461234 [01:14:50]1041 (16) - 0000000000963154 [01:14:50]1040 (4) - 29416 [01:14:50]1012 (4) - 14.04.2024 19:10 [01:14:50]1206 (1) - 0 [01:14:50]OFD Sender: Remove packet 29416 [01:14:50]ProducePacketName [01:14:50]name=ofd_packets/00029416 [01:14:50]NVStorageDeleteData [01:14:50]Write to MH i2c: 01 00 00 EB 19 04 [01:14:50]Write i2c OK [01:14:50]MH_I2C_Read... [01:14:50]Read from MH i2c: 01 [01:14:50]MH_I2C_Read... [01:14:50]Read from MH i2c: 01 07 00 [01:14:50]MH_I2C_Read... [01:14:50]Read from MH i2c: 01 07 00 EB 19 00 00 00 00 00 CE 0C E5 [01:14:50]RasterBufferAndPrint [01:14:50]line [01:14:50]line [01:14:50]line [01:14:50]line [01:14:50]line [01:14:50]written 0, free lines is 3283 [01:14:50]MH_Cut [01:14:50]Write to MH i2c: D1 01 00 F2 19 01 DD [01:14:50]Write i2c OK [01:14:50]MH_I2C_Read... [01:14:50]Read from MH i2c: D1 [01:14:50]MH_I2C_Read... [01:14:50]Read from MH i2c: D1 01 00 [01:14:50]MH_I2C_Read... [01:14:50]Read from MH i2c: D1 01 00 F2 19 00 DC [01:14:50]Write to MH i2c: 01 00 00 F3 19 0C [01:14:50]Write i2c OK [01:14:50]MH_I2C_Read... [01:14:50]OFD Sender: No OFD packet to send [01:14:51]*** Cut start [01:14:51]*** Partial cut [01:14:51]*** CUTSNS_PIN = 1 [01:14:51]*** CUTSNS_PIN = 0 [01:14:51]*** Brake cut motor [01:14:51]Read from MH i2c: 01 [01:14:51]MH_I2C_Read... [01:14:51]*** Stop cut motor [01:14:51]*** Cut end [01:14:51]Read from MH i2c: 01 07 00 [01:14:51]MH_I2C_Read... [01:14:51]Read from MH i2c: 01 07 00 F3 19 00 00 00 00 00 FF 0F 21 [01:14:51]process_action close_receipt done [01:14:51]requested_data is exist [01:14:51]produce_requested_data [01:14:51]requested_item fm.sn is exist - process it [01:14:51]wFMCommunicate request_size=4 [01:14:51]MH_SAM_APDU [01:14:51]CAPDU: 80 11 00 00 [01:14:51]Write to MH i2c: E2 08 00 F4 19 80 11 00 00 00 00 00 00 87 [01:14:51]Write i2c OK [01:14:51]MH_I2C_Read... [01:14:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:14:52]Read from MH i2c: E2 [01:14:52]MH_I2C_Read... [01:14:52]Read from MH i2c: E2 17 00 [01:14:52]MH_I2C_Read... [01:14:52]Read from MH i2c: E2 17 00 F4 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D6 [01:14:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [01:14:52]wFMCommunicate OK [01:14:52]requested_item fd.num is exist - process it [01:14:52]SAM_PROTO_GetFieldsCounters [01:14:52]wFMCommunicate request_size=4 [01:14:52]MH_SAM_APDU [01:14:52]CAPDU: 80 13 00 00 [01:14:52]Write to MH i2c: E2 08 00 F5 19 80 13 00 00 00 00 00 00 8A [01:14:52]Write i2c OK [01:14:52]MH_I2C_Read... [01:14:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:14:52]Read from MH i2c: E2 [01:14:52]MH_I2C_Read... [01:14:52]Read from MH i2c: E2 62 00 [01:14:52]MH_I2C_Read... [01:14:52]Read from MH i2c: E2 62 00 F5 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E8 72 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 B5 [01:14:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E8 72 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:14:52]wFMCommunicate OK [01:14:52]SAM_PROTO_GetFieldsCounters done [01:14:52]requested_item shift.num is exist - process it [01:14:52]requested_item shift.opened is exist - process it [01:14:52]req_shift_opened [01:14:52]FM_GetShiftState [01:14:52]SAM_PROTO_GetShiftState [01:14:52]wFMCommunicate request_size=4 [01:14:52]MH_SAM_APDU [01:14:52]CAPDU: 80 13 01 00 [01:14:52]Write to MH i2c: E2 08 00 F6 19 80 13 01 00 00 00 00 00 8C [01:14:52]Write i2c OK [01:14:52]MH_I2C_Read... [01:14:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:14:52]Read from MH i2c: E2 [01:14:52]MH_I2C_Read... [01:14:52]Read from MH i2c: E2 0E 00 [01:14:52]MH_I2C_Read... [01:14:52]Read from MH i2c: E2 0E 00 F6 19 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 80 [01:14:52]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [01:14:52]wFMCommunicate OK [01:14:52]SAM_PROTO_GetShiftState done [01:14:52]FM_GetShiftState done [01:14:52]req_shift_opened done [01:14:52]requested_item shift.open_date is exist - process it [01:14:52]req_shift_open_date [01:14:52]req_shift_open_date done [01:14:52]produce_requested_data done [01:14:52]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29416,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [01:14:52]process_action_free close_receipt [01:14:52]json_value_free [01:14:52]json_value_free done [01:14:52]process_json_proto returns [01:14:52]Send response to host [01:14:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29416,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [01:14:52]free response buf [01:14:52]execute_script done [01:14:52]execute_script returns [01:14:52]free content buf [01:14:52]Sock 9.Close socket [01:14:52]Sock 9.Thread stoped [01:14:55]OFD Sender: No OFD packet to send [01:15:00]OFD Sender: No OFD packet to send [01:15:05]OFD Sender: No OFD packet to send [01:15:10]OFD Sender: No OFD packet to send [01:15:15]OFD Sender: No OFD packet to send [01:15:19]accept exits with 8 [01:15:19]New connection [01:15:19]New thread 3066969444 created [01:15:19]Thread 3067112804 joined [01:15:19]Waiting for new connection... [01:15:19] Sock 8.Parse request [01:15:19]Sock 8.Check first char [01:15:19]Sock 8.First char is OK [01:15:19]request: POST /json_proto HTTP/1.0 [01:15:19]Method: POST [01:15:19]URL: /json_proto [01:15:19]Method is POST - this is cgi request [01:15:19]url: /json_proto [01:15:19]query_string will be loaded in cgi processing [01:15:19]execute_cgi json_proto POST (null) [01:15:19]execute_cgi path=json_proto method=POST [01:15:19]POST find Content-Length [01:15:19]Host: 172.17.33.3:8080 [01:15:19]Content-Length: 685 [01:15:19]Content-Type: application/json [01:15:19] [01:15:19]POST finish read [01:15:19]Found Content-Length = 685 [01:15:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347810", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.40, "quantity" : 41.920, "sum" : 1400.13, "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" ] } } [01:15:19]execute_script... [01:15: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)347810", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.40, "quantity" : 41.920, "sum" : 1400.13, "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" ] } } [01:15:19]POST & json_proto [01:15:19]process_json_proto [01:15:19]json parsed OK: [01:15:19]protocol is kg_v1.0 [01:15:19]action value=close_receipt [01:15:19]process_action close_receipt [01:15:19]cmd_close_receipt [01:15:19]MH_GetDate [01:15:19]Write to MH i2c: F0 00 00 F7 19 FF [01:15:19]Write i2c OK [01:15:19]MH_I2C_Read... [01:15:19]Read from MH i2c: F0 [01:15:19]MH_I2C_Read... [01:15:19]Read from MH i2c: F0 09 00 [01:15:19]MH_I2C_Read... [01:15:19]Read from MH i2c: F0 09 00 F7 19 00 A9 7F 1C 66 23 5B 8F 65 24 [01:15:19]GetLastDocTimeStamp 1713143690 [01:15:19]current date 1713143721 [01:15:19]FM_GetShiftState [01:15:19]SAM_PROTO_GetShiftState [01:15:19]wFMCommunicate request_size=4 [01:15:19]MH_SAM_APDU [01:15:19]CAPDU: 80 13 01 00 [01:15:19]Write to MH i2c: E2 08 00 F8 19 80 13 01 00 00 00 00 00 8E [01:15:19]Write i2c OK [01:15:19]MH_I2C_Read... [01:15:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:15:19]Read from MH i2c: E2 [01:15:19]MH_I2C_Read... [01:15:19]Read from MH i2c: E2 0E 00 [01:15:19]MH_I2C_Read... [01:15:19]Read from MH i2c: E2 0E 00 F8 19 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 82 [01:15:19]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [01:15:19]wFMCommunicate OK [01:15:19]SAM_PROTO_GetShiftState done [01:15:19]FM_GetShiftState done [01:15:19]opened in 1713140468 [01:15:19]opened+sec_in_day 1713226868 [01:15:19]quantity*price = 140012 [01:15:19]sum+1 = 140014 [01:15:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.69 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 11 15.04.2024 01:15 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29417 ФПД: 33322101187402 1/tax-web-control/client/api/v1/ticket?date=20240415T011521&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29417&fm=33322101187402&tin=02508201610067®Number=0000138879044617&sum=140000 [01:15:20]StoreToDocumentArchive [01:15:20]shift 117 fd 29417 [01:15:20]save to /storage/0117/doc_00029417 [01:15:20]save last doc name /storage/0117/doc_00029417 to /storage/kkm_last_doc_name [01:15:20]save OK [01:15:20]Clear old archive folders... [01:15:20]ProcessDocumentItem done err = 0, tmpTLVsize=250 [01:15:20]tlvbuf is 002333D0 [01:15:20]SAM_PROTO_ClearQueue [01:15:20]wFMCommunicate request_size=4 [01:15:20]MH_SAM_APDU [01:15:20]CAPDU: 80 09 00 00 [01:15:20]Write to MH i2c: E2 08 00 05 1A 80 09 00 00 00 00 00 00 91 [01:15:20]Write i2c OK [01:15:20]MH_I2C_Read... [01:15:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:15:20]Read from MH i2c: E2 [01:15:20]MH_I2C_Read... [01:15:20]Read from MH i2c: E2 03 00 [01:15:20]MH_I2C_Read... [01:15:20]Read from MH i2c: E2 03 00 05 1A 00 90 00 93 [01:15:20]RAPDU: 90 00 [01:15:20]wFMCommunicate OK [01:15:20]SAM_PROTO_ClearQueue done [01:15:20]KKMCreateOFDPacket [01:15:20]OFDProtocolAddRootSTLVToBuf [01:15:20]FM_MakeSignedData [01:15:20]FM_MakeSignedData [01:15:20]SAM_PROTO_SignData [01:15:20]wFMCommunicate request_size=4 [01:15:20]MH_SAM_APDU [01:15:20]CAPDU: 80 0D 01 02 [01:15:20]Write to MH i2c: E2 08 00 06 1A 80 0D 01 02 00 00 00 00 99 [01:15:20]Write i2c OK [01:15:20]MH_I2C_Read... [01:15:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:15:20]Read from MH i2c: E2 [01:15:20]MH_I2C_Read... [01:15:20]Read from MH i2c: E2 03 00 [01:15:20]MH_I2C_Read... [01:15:20]Read from MH i2c: E2 03 00 06 1A 00 90 00 94 [01:15:20]RAPDU: 90 00 [01:15:20]wFMCommunicate OK [01:15:20]wFMCommunicate request_size=255 [01:15:20]MH_SAM_APDU [01:15: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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 A3 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 ED 22 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 15 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 0B 00 00 00 F4 03 04 00 A9 7F 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E9 72 00 00 35 04 06 00 1E 4E [01:15:20]Write to MH i2c: E2 02 01 07 1A 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 A3 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 ED 22 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 15 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 0B 00 00 00 F4 03 04 00 A9 7F 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E9 72 00 00 35 04 06 00 1E 4E 00 00 20 [01:15:20]Write i2c OK [01:15:20]MH_I2C_Read... [01:15:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:15:20]Read from MH i2c: E2 [01:15:20]MH_I2C_Read... [01:15:20]Read from MH i2c: E2 03 00 [01:15:20]MH_I2C_Read... [01:15:20]Read from MH i2c: E2 03 00 07 1A 00 90 00 95 [01:15:20]RAPDU: 90 00 [01:15:20]wFMCommunicate OK [01:15:20]wFMCommunicate request_size=9 [01:15:20]MH_SAM_APDU [01:15:20]CAPDU: 80 0D 02 02 04 68 01 23 4A [01:15:20]Write to MH i2c: E2 0C 00 08 1A 80 0D 02 02 04 00 68 01 23 4A 00 00 7A [01:15:20]Write i2c OK [01:15:20]MH_I2C_Read... [01:15:20]OFD Sender: No OFD packet to send [01:15:20]Read from MH i2c: E2 [01:15:20]MH_I2C_Read... [01:15:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:15:20]Read from MH i2c: E2 03 00 [01:15:20]MH_I2C_Read... [01:15:20]Read from MH i2c: E2 03 00 08 1A 00 90 00 96 [01:15:20]RAPDU: 90 00 [01:15:20]wFMCommunicate OK [01:15:20]wFMCommunicate request_size=4 [01:15:20]MH_SAM_APDU [01:15:20]CAPDU: 80 0D 03 02 [01:15:20]Write to MH i2c: E2 08 00 09 1A 80 0D 03 02 00 00 00 00 9E [01:15:20]Write i2c OK [01:15:20]MH_I2C_Read... [01:15:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:15:20]Read from MH i2c: E2 [01:15:20]MH_I2C_Read... [01:15:20]Read from MH i2c: E2 0B 00 [01:15:20]MH_I2C_Read... [01:15:20]Read from MH i2c: E2 0B 00 09 1A 00 02 4C 8E 41 C8 42 89 D0 90 00 1F [01:15:20]RAPDU: 02 4C 8E 41 C8 42 89 D0 90 00 [01:15:20]wFMCommunicate OK [01:15:20]SAM_PROTO_SignData done [01:15:20]FM_MakeSignedData done [01:15:20]CreateOFDProtocolMessage [01:15:20]wFMCommunicate request_size=4 [01:15:20]MH_SAM_APDU [01:15:20]CAPDU: 80 11 00 00 [01:15:20]Write to MH i2c: E2 08 00 0A 1A 80 11 00 00 00 00 00 00 9E [01:15:20]Write i2c OK [01:15:20]MH_I2C_Read... [01:15:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:15:20]Read from MH i2c: E2 [01:15:20]MH_I2C_Read... [01:15:20]Read from MH i2c: E2 17 00 [01:15:20]MH_I2C_Read... [01:15:20]Read from MH i2c: E2 17 00 0A 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 ED [01:15:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [01:15:20]wFMCommunicate OK [01:15:20]CreateOFDProtocolMessage done [01:15:20]OFDSenderStorePacket 29417 [01:15:20]StoreOFDPacket docnum=29417 [01:15:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 2B C2 06 01 D6 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 A3 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 ED 22 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 15 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 0B 00 00 00 F4 03 04 00 A9 7F 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E9 72 00 00 35 04 06 00 1E 4E 68 01 23 4A 02 4C 8E 41 C8 42 89 D0 [01:15:20]CheckFolder [01:15:20]dirname=/storage/ofd_packets [01:15:20]CheckFolder done [01:15:20]ProducePacketName [01:15:20]name=ofd_packets/00029417 [01:15:20]NVStorageSaveData ofd_packets/00029417 [01:15:20]File name is /storage/ofd_packets/00029417 [01:15:20]Write 300 bytes [01:15:20]NVStorageSaveData done [01:15:20]OFDSenderStorePacket done [01:15:20]KKMCreateOFDPacket done [01:15:20]NVStorageSaveData kkm_last_timestamp [01:15:20]File name is /storage/kkm_last_timestamp [01:15:20]Write 4 bytes [01:15:20]NVStorageSaveData done [01:15:20]ExternCall_PrintAddStr [01:15:20]wPrintStart [01:15:20]Write to MH i2c: 01 00 00 0B 1A 25 [01:15:20]Write i2c OK [01:15:20]MH_I2C_Read... [01:15:20]Read from MH i2c: 01 [01:15:20]MH_I2C_Read... [01:15:20]Read from MH i2c: 01 07 00 [01:15:20]MH_I2C_Read... [01:15:21]Read from MH i2c: 01 07 00 0B 1A 00 00 00 00 00 FF 0F 3A [01:15:21]RasterBufferAndPrint [01:15:21]line Счет N : (1)347810 [01:15:21]line ИНН: 02508201610067 [01:15:21]line Контрольно-Кассовый Чек [01:15:21]line ПРОДАЖА [01:15:21]line ТРК (МРК, ГНК) : 71 [01:15:21]line Товар: 2711129700 [01:15:21]line ГАЗ-К-5 [01:15:21]line 41.920 * 33.40 [01:15:21]line = 1400.13 [01:15:21]line НДС 12% НСП 1% [01:15:21]line > о реализуемом товаре [01:15:21]line ОКРУГЛЕНИЕ: -0.13 [01:15:21]line ИТОГО: 1400.00 [01:15:21]line Внесено: 1400.00 [01:15:21]line СДАЧА: 0.00 [01:15:21]line НСП 1% : 12.39 [01:15:21]line НДС 12% : 148.69 [01:15:21]line Наличными: 1400.00 [01:15:21]line Безнал.: 0.00 [01:15:21]line Место: АЗС № 108 "Партнер Нефть" [01:15:21]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [01:15:21]line СНО: Общий режим [01:15:21]line Чек 11 15.04.2024 01:15 [01:15:21]line Смена: 117 ФФД: 1.0 [01:15:21]line ЗНМ: 0300000027 [01:15:21]line РНМ: 0000138879044617 [01:15:21]line Версия ККМ: 001 [01:15:21]line ФМ: 0000000000963154 [01:15:21]line ФД: 29417 [01:15:21]line ФПД: 33322101187402 [01:15:21]line 1/tax-web-control/client/api/v1/ticket?date=20240415T011521&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29417&fm=33322101187402&tin=02508201610067®Number=0000138879044617&sum=140000 [01:15:21]OFD Sender: Processing packet 29417 [packets to send 8, broken 7] [01:15:21]ProducePacketName [01:15:21]name=ofd_packets/00029417 [01:15:21]OFD Sender: To server: pG, [01:15:21]CommunicateWithHost lk.salyk.kg:30040 [01:15:21]ConnectInit lk.salyk.kg [01:15:21]written 0, free lines is 4095 [01:15:21]Connected sock=10 [01:15:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 2B C2 06 01 D6 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 A3 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 ED 22 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 15 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 0B 00 00 00 F4 03 04 00 A9 7F 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E9 72 00 00 35 04 06 00 1E 4E 68 01 23 4A 02 4C 8E 41 C8 42 89 D0 [01:15:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 0D 23 47 00 37 CE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E9 72 00 00 F4 03 04 00 4B 2A 1C 66 B6 04 01 00 00 DD E6 1D 28 F5 8D 56 AF [01:15:21]CommunicateWithHost err = 0 [01:15:21]CheckOFDResponse [01:15:21]1017 (14) - 77093643461234 [01:15:21]1041 (16) - 0000000000963154 [01:15:21]1040 (4) - 29417 [01:15:21]1012 (4) - 14.04.2024 19:11 [01:15:21]1206 (1) - 0 [01:15:21]OFD Sender: Remove packet 29417 [01:15:21]ProducePacketName [01:15:21]name=ofd_packets/00029417 [01:15:21]NVStorageDeleteData [01:15:21]Write to MH i2c: 01 00 00 35 1A 4F [01:15:21]Write i2c OK [01:15:21]MH_I2C_Read... [01:15:21]Read from MH i2c: 01 [01:15:21]MH_I2C_Read... [01:15:21]Read from MH i2c: 01 07 00 [01:15:21]MH_I2C_Read... [01:15:21]Read from MH i2c: 01 07 00 35 1A 00 00 00 00 00 B5 0C 17 [01:15:21]RasterBufferAndPrint [01:15:21]line [01:15:21]line [01:15:21]line [01:15:21]line [01:15:21]line [01:15:21]written 0, free lines is 3259 [01:15:21]MH_Cut [01:15:21]Write to MH i2c: D1 01 00 3C 1A 01 28 [01:15:21]Write i2c OK [01:15:21]MH_I2C_Read... [01:15:21]Read from MH i2c: D1 [01:15:21]MH_I2C_Read... [01:15:21]Read from MH i2c: D1 01 00 [01:15:21]MH_I2C_Read... [01:15:21]Read from MH i2c: D1 01 00 3C 1A 00 27 [01:15:21]Write to MH i2c: 01 00 00 3D 1A 57 [01:15:21]Write i2c OK [01:15:21]MH_I2C_Read... [01:15:22]OFD Sender: No OFD packet to send [01:15:22]*** Cut start [01:15:22]*** Partial cut [01:15:22]*** CUTSNS_PIN = 1 [01:15:22]*** CUTSNS_PIN = 0 [01:15:22]*** Brake cut motor [01:15:23]Read from MH i2c: 01 [01:15:23]MH_I2C_Read... [01:15:23]*** Stop cut motor [01:15:23]*** Cut end [01:15:23]Read from MH i2c: 01 07 00 [01:15:23]MH_I2C_Read... [01:15:23]Read from MH i2c: 01 07 00 3D 1A 00 00 00 00 00 FF 0F 6C [01:15:23]process_action close_receipt done [01:15:23]requested_data is exist [01:15:23]produce_requested_data [01:15:23]requested_item fm.sn is exist - process it [01:15:23]wFMCommunicate request_size=4 [01:15:23]MH_SAM_APDU [01:15:23]CAPDU: 80 11 00 00 [01:15:23]Write to MH i2c: E2 08 00 3E 1A 80 11 00 00 00 00 00 00 D2 [01:15:23]Write i2c OK [01:15:23]MH_I2C_Read... [01:15:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:15:23]Read from MH i2c: E2 [01:15:23]MH_I2C_Read... [01:15:23]Read from MH i2c: E2 17 00 [01:15:23]MH_I2C_Read... [01:15:23]Read from MH i2c: E2 17 00 3E 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 21 [01:15:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [01:15:23]wFMCommunicate OK [01:15:23]requested_item fd.num is exist - process it [01:15:23]SAM_PROTO_GetFieldsCounters [01:15:23]wFMCommunicate request_size=4 [01:15:23]MH_SAM_APDU [01:15:23]CAPDU: 80 13 00 00 [01:15:23]Write to MH i2c: E2 08 00 3F 1A 80 13 00 00 00 00 00 00 D5 [01:15:23]Write i2c OK [01:15:23]MH_I2C_Read... [01:15:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:15:23]Read from MH i2c: E2 [01:15:23]MH_I2C_Read... [01:15:23]Read from MH i2c: E2 62 00 [01:15:23]MH_I2C_Read... [01:15:23]Read from MH i2c: E2 62 00 3F 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E9 72 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 04 [01:15:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E9 72 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:15:23]wFMCommunicate OK [01:15:23]SAM_PROTO_GetFieldsCounters done [01:15:23]requested_item shift.num is exist - process it [01:15:23]requested_item shift.opened is exist - process it [01:15:23]req_shift_opened [01:15:23]FM_GetShiftState [01:15:23]SAM_PROTO_GetShiftState [01:15:23]wFMCommunicate request_size=4 [01:15:23]MH_SAM_APDU [01:15:23]CAPDU: 80 13 01 00 [01:15:23]Write to MH i2c: E2 08 00 40 1A 80 13 01 00 00 00 00 00 D7 [01:15:23]Write i2c OK [01:15:23]MH_I2C_Read... [01:15:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:15:23]Read from MH i2c: E2 [01:15:23]MH_I2C_Read... [01:15:23]Read from MH i2c: E2 0E 00 [01:15:23]MH_I2C_Read... [01:15:23]Read from MH i2c: E2 0E 00 40 1A 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 CB [01:15:23]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [01:15:23]wFMCommunicate OK [01:15:23]SAM_PROTO_GetShiftState done [01:15:23]FM_GetShiftState done [01:15:23]req_shift_opened done [01:15:23]requested_item shift.open_date is exist - process it [01:15:23]req_shift_open_date [01:15:23]req_shift_open_date done [01:15:23]produce_requested_data done [01:15:23]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29417,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [01:15:23]process_action_free close_receipt [01:15:23]json_value_free [01:15:23]json_value_free done [01:15:23]process_json_proto returns [01:15:23]Send response to host [01:15:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29417,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [01:15:23]free response buf [01:15:23]execute_script done [01:15:23]execute_script returns [01:15:23]free content buf [01:15:23]Sock 8.Close socket [01:15:23]Sock 8.Thread stoped [01:15:27]OFD Sender: No OFD packet to send [01:15:32]OFD Sender: No OFD packet to send [01:15:37]OFD Sender: No OFD packet to send [01:15:42]OFD Sender: No OFD packet to send [01:15:47]OFD Sender: No OFD packet to send [01:15:52]OFD Sender: No OFD packet to send [01:15:57]OFD Sender: No OFD packet to send [01:16:02]OFD Sender: No OFD packet to send [01:16:07]OFD Sender: No OFD packet to send [01:16:12]OFD Sender: No OFD packet to send [01:16:17]OFD Sender: No OFD packet to send [01:16:22]OFD Sender: No OFD packet to send [01:16:27]OFD Sender: No OFD packet to send [01:16:32]OFD Sender: No OFD packet to send [01:16:37]OFD Sender: No OFD packet to send [01:16:42]OFD Sender: No OFD packet to send [01:16:47]OFD Sender: No OFD packet to send [01:16:52]OFD Sender: No OFD packet to send [01:16:57]OFD Sender: No OFD packet to send [01:17:02]OFD Sender: No OFD packet to send [01:17:07]OFD Sender: No OFD packet to send [01:17:12]OFD Sender: No OFD packet to send [01:17:17]OFD Sender: No OFD packet to send [01:17:22]OFD Sender: No OFD packet to send [01:17:27]OFD Sender: No OFD packet to send [01:17:32]OFD Sender: No OFD packet to send [01:17:37]OFD Sender: No OFD packet to send [01:17:42]OFD Sender: No OFD packet to send [01:17:47]OFD Sender: No OFD packet to send [01:17:52]OFD Sender: No OFD packet to send [01:17:57]OFD Sender: No OFD packet to send [01:18:02]OFD Sender: No OFD packet to send [01:18:07]OFD Sender: No OFD packet to send [01:18:12]OFD Sender: No OFD packet to send [01:18:17]OFD Sender: No OFD packet to send [01:18:22]OFD Sender: No OFD packet to send [01:18:27]OFD Sender: No OFD packet to send [01:18:32]OFD Sender: No OFD packet to send [01:18:37]OFD Sender: No OFD packet to send [01:18:42]OFD Sender: No OFD packet to send [01:18:47]OFD Sender: No OFD packet to send [01:18:52]OFD Sender: No OFD packet to send [01:18:57]OFD Sender: No OFD packet to send [01:19:02]OFD Sender: No OFD packet to send [01:19:07]OFD Sender: No OFD packet to send [01:19:12]OFD Sender: No OFD packet to send [01:19:17]OFD Sender: No OFD packet to send [01:19:22]OFD Sender: No OFD packet to send [01:19:27]OFD Sender: No OFD packet to send [01:19:32]OFD Sender: No OFD packet to send [01:19:37]OFD Sender: No OFD packet to send [01:19:42]OFD Sender: No OFD packet to send [01:19:47]OFD Sender: No OFD packet to send [01:19:52]OFD Sender: No OFD packet to send [01:19:57]OFD Sender: No OFD packet to send [01:20:02]OFD Sender: No OFD packet to send [01:20:07]OFD Sender: No OFD packet to send [01:20:12]OFD Sender: No OFD packet to send [01:20:17]OFD Sender: No OFD packet to send [01:20:22]OFD Sender: No OFD packet to send [01:20:27]OFD Sender: No OFD packet to send [01:20:32]OFD Sender: No OFD packet to send [01:20:37]OFD Sender: No OFD packet to send [01:20:42]OFD Sender: No OFD packet to send [01:20:47]OFD Sender: No OFD packet to send [01:20:52]OFD Sender: No OFD packet to send [01:20:57]OFD Sender: No OFD packet to send [01:21:02]OFD Sender: No OFD packet to send [01:21:07]OFD Sender: No OFD packet to send [01:21:12]OFD Sender: No OFD packet to send [01:21:17]OFD Sender: No OFD packet to send [01:21:22]OFD Sender: No OFD packet to send [01:21:27]OFD Sender: No OFD packet to send [01:21:32]OFD Sender: No OFD packet to send [01:21:37]OFD Sender: No OFD packet to send [01:21:42]OFD Sender: No OFD packet to send [01:21:47]OFD Sender: No OFD packet to send [01:21:52]OFD Sender: No OFD packet to send [01:21:57]OFD Sender: No OFD packet to send [01:22:02]OFD Sender: No OFD packet to send [01:22:07]OFD Sender: No OFD packet to send [01:22:12]OFD Sender: No OFD packet to send [01:22:17]OFD Sender: No OFD packet to send [01:22:20]accept exits with 9 [01:22:20]New connection [01:22:20]New thread 3067112804 created [01:22:20]Thread 3066969444 joined [01:22:20]Waiting for new connection... [01:22:20] Sock 9.Parse request [01:22:20]Sock 9.Check first char [01:22:20]Sock 9.First char is OK [01:22:20]request: POST /json_proto HTTP/1.0 [01:22:20]Method: POST [01:22:20]URL: /json_proto [01:22:20]Method is POST - this is cgi request [01:22:20]url: /json_proto [01:22:20]query_string will be loaded in cgi processing [01:22:20]execute_cgi json_proto POST (null) [01:22:20]execute_cgi path=json_proto method=POST [01:22:20]POST find Content-Length [01:22:20]Host: 172.17.33.3:8080 [01:22:20]Content-Length: 840 [01:22:20]Content-Type: application/json [01:22:20] [01:22:20]POST finish read [01:22:20]Found Content-Length = 840 [01:22:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347813", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 600.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:22:20]execute_script... [01:22: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)347813", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 600.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:22:20]POST & json_proto [01:22:20]process_json_proto [01:22:20]json parsed OK: [01:22:20]protocol is kg_v1.0 [01:22:20]action value=close_receipt [01:22:20]process_action close_receipt [01:22:20]cmd_close_receipt [01:22:20]MH_GetDate [01:22:20]Write to MH i2c: F0 00 00 41 1A 4A [01:22:20]Write i2c OK [01:22:20]MH_I2C_Read... [01:22:20]Read from MH i2c: F0 [01:22:20]MH_I2C_Read... [01:22:20]Read from MH i2c: F0 09 00 [01:22:20]MH_I2C_Read... [01:22:20]Read from MH i2c: F0 09 00 41 1A 00 4E 81 1C 66 23 5B 8F 65 16 [01:22:20]GetLastDocTimeStamp 1713143721 [01:22:20]current date 1713144142 [01:22:20]FM_GetShiftState [01:22:20]SAM_PROTO_GetShiftState [01:22:20]wFMCommunicate request_size=4 [01:22:20]MH_SAM_APDU [01:22:20]CAPDU: 80 13 01 00 [01:22:20]Write to MH i2c: E2 08 00 42 1A 80 13 01 00 00 00 00 00 D9 [01:22:20]Write i2c OK [01:22:20]MH_I2C_Read... [01:22:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:22:20]Read from MH i2c: E2 [01:22:20]MH_I2C_Read... [01:22:20]Read from MH i2c: E2 0E 00 [01:22:20]MH_I2C_Read... [01:22:20]Read from MH i2c: E2 0E 00 42 1A 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 CD [01:22:20]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [01:22:20]wFMCommunicate OK [01:22:20]SAM_PROTO_GetShiftState done [01:22:20]FM_GetShiftState done [01:22:20]opened in 1713140468 [01:22:20]opened+sec_in_day 1713226868 [01:22:20]quantity*price = 60004 [01:22:20]sum+1 = 60006 [01:22:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.05 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 0.00 Безнал.: 600.05 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 12 15.04.2024 01:22 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 29418 ФПД: 219190470677043 1/tax-web-control/client/api/v1/ticket?date=20240415T012222&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29418&fm=219190470677043&tin=02508201610067®Number=0000138879044617&sum=60005 [01:22:21]StoreToDocumentArchive [01:22:21]shift 117 fd 29418 [01:22:21]save to /storage/0117/doc_00029418 [01:22:21]save last doc name /storage/0117/doc_00029418 to /storage/kkm_last_doc_name [01:22:21]save OK [01:22:21]Clear old archive folders... [01:22:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:22:21]tlvbuf is B6EE8760 [01:22:21]SAM_PROTO_ClearQueue [01:22:21]wFMCommunicate request_size=4 [01:22:21]MH_SAM_APDU [01:22:21]CAPDU: 80 09 00 00 [01:22:21]Write to MH i2c: E2 08 00 4F 1A 80 09 00 00 00 00 00 00 DB [01:22:21]Write i2c OK [01:22:21]MH_I2C_Read... [01:22:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:22:21]Read from MH i2c: E2 [01:22:21]MH_I2C_Read... [01:22:21]Read from MH i2c: E2 03 00 [01:22:21]MH_I2C_Read... [01:22:21]Read from MH i2c: E2 03 00 4F 1A 00 90 00 DD [01:22:21]RAPDU: 90 00 [01:22:21]wFMCommunicate OK [01:22:21]SAM_PROTO_ClearQueue done [01:22:21]KKMCreateOFDPacket [01:22:21]OFDProtocolAddRootSTLVToBuf [01:22:21]FM_MakeSignedData [01:22:21]FM_MakeSignedData [01:22:21]SAM_PROTO_SignData [01:22:21]wFMCommunicate request_size=4 [01:22:21]MH_SAM_APDU [01:22:21]CAPDU: 80 0D 01 02 [01:22:21]Write to MH i2c: E2 08 00 50 1A 80 0D 01 02 00 00 00 00 E3 [01:22:21]Write i2c OK [01:22:21]MH_I2C_Read... [01:22:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:22:21]Read from MH i2c: E2 [01:22:21]MH_I2C_Read... [01:22:21]Read from MH i2c: E2 03 00 [01:22:21]MH_I2C_Read... [01:22:21]Read from MH i2c: E2 03 00 50 1A 00 90 00 DE [01:22:21]RAPDU: 90 00 [01:22:21]wFMCommunicate OK [01:22:21]wFMCommunicate request_size=255 [01:22:21]MH_SAM_APDU [01:22: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 2C 24 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 65 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 65 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 65 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 4E 81 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EA 72 00 00 35 04 06 00 C7 [01:22:21]Write to MH i2c: E2 02 01 51 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 2C 24 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 65 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 65 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 65 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 4E 81 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EA 72 00 00 35 04 06 00 C7 00 00 B6 [01:22:21]Write i2c OK [01:22:21]MH_I2C_Read... [01:22:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:22:22]Read from MH i2c: E2 [01:22:22]MH_I2C_Read... [01:22:22]Read from MH i2c: E2 03 00 [01:22:22]MH_I2C_Read... [01:22:22]Read from MH i2c: E2 03 00 51 1A 00 90 00 DF [01:22:22]RAPDU: 90 00 [01:22:22]wFMCommunicate OK [01:22:22]wFMCommunicate request_size=10 [01:22:22]MH_SAM_APDU [01:22:22]CAPDU: 80 0D 02 02 05 5A 42 24 92 33 [01:22:22]Write to MH i2c: E2 0D 00 52 1A 80 0D 02 02 05 00 5A 42 24 92 33 00 00 75 [01:22:22]Write i2c OK [01:22:22]MH_I2C_Read... [01:22:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:22:22]Read from MH i2c: E2 [01:22:22]MH_I2C_Read... [01:22:22]Read from MH i2c: E2 03 00 [01:22:22]MH_I2C_Read... [01:22:22]Read from MH i2c: E2 03 00 52 1A 00 90 00 E0 [01:22:22]RAPDU: 90 00 [01:22:22]wFMCommunicate OK [01:22:22]wFMCommunicate request_size=4 [01:22:22]MH_SAM_APDU [01:22:22]CAPDU: 80 0D 03 02 [01:22:22]Write to MH i2c: E2 08 00 53 1A 80 0D 03 02 00 00 00 00 E8 [01:22:22]Write i2c OK [01:22:22]MH_I2C_Read... [01:22:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:22:22]Read from MH i2c: E2 [01:22:22]MH_I2C_Read... [01:22:22]Read from MH i2c: E2 0B 00 [01:22:22]MH_I2C_Read... [01:22:22]Read from MH i2c: E2 0B 00 53 1A 00 A5 AC 0D F1 46 8E D8 75 90 00 59 [01:22:22]RAPDU: A5 AC 0D F1 46 8E D8 75 90 00 [01:22:22]wFMCommunicate OK [01:22:22]SAM_PROTO_SignData done [01:22:22]FM_MakeSignedData done [01:22:22]CreateOFDProtocolMessage [01:22:22]wFMCommunicate request_size=4 [01:22:22]MH_SAM_APDU [01:22:22]CAPDU: 80 11 00 00 [01:22:22]Write to MH i2c: E2 08 00 54 1A 80 11 00 00 00 00 00 00 E8 [01:22:22]Write i2c OK [01:22:22]MH_I2C_Read... [01:22:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:22:22]Read from MH i2c: E2 [01:22:22]MH_I2C_Read... [01:22:22]Read from MH i2c: E2 17 00 [01:22:22]MH_I2C_Read... [01:22:22]Read from MH i2c: E2 17 00 54 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 37 [01:22:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [01:22:22]wFMCommunicate OK [01:22:22]CreateOFDProtocolMessage done [01:22:22]OFDSenderStorePacket 29418 [01:22:22]StoreOFDPacket docnum=29418 [01:22:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 20 32 07 01 AF 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 2C 24 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 65 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 65 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 65 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 4E 81 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EA 72 00 00 35 04 06 00 C7 5A 42 24 92 33 A5 AC 0D F1 46 8E D8 75 [01:22:22]CheckFolder [01:22:22]dirname=/storage/ofd_packets [01:22:22]CheckFolder done [01:22:22]ProducePacketName [01:22:22]name=ofd_packets/00029418 [01:22:22]NVStorageSaveData ofd_packets/00029418 [01:22:22]File name is /storage/ofd_packets/00029418 [01:22:22]Write 301 bytes [01:22:22]NVStorageSaveData done [01:22:22]OFDSenderStorePacket done [01:22:22]KKMCreateOFDPacket done [01:22:22]NVStorageSaveData kkm_last_timestamp [01:22:22]File name is /storage/kkm_last_timestamp [01:22:22]Write 4 bytes [01:22:22]NVStorageSaveData done [01:22:22]ExternCall_PrintAddStr [01:22:22]wPrintStart [01:22:22]Write to MH i2c: 01 00 00 55 1A 6F [01:22:22]Write i2c OK [01:22:22]MH_I2C_Read... [01:22:22]Read from MH i2c: 01 [01:22:22]MH_I2C_Read... [01:22:22]Read from MH i2c: 01 07 00 [01:22:22]MH_I2C_Read... [01:22:22]Read from MH i2c: 01 07 00 55 1A 00 00 00 00 00 FF 0F 84 [01:22:22]RasterBufferAndPrint [01:22:22]line Счет N : (1)347813 [01:22:22]line ИНН: 02508201610067 [01:22:22]line Контрольно-Кассовый Чек [01:22:22]line ПРОДАЖА [01:22:22]line ТРК (МРК, ГНК) : 32 [01:22:22]line Товар: 2710124130 [01:22:22]line Аи-92-К-5 [01:22:22]line 9.260 * 64.80 [01:22:22]line = 600.05 [01:22:22]line НДС 12% НСП 1% [01:22:22]line > о реализуемом товаре [01:22:22]line ИТОГО: 600.05 [01:22:22]line НСП 1% : 5.31 [01:22:22]line НДС 12% : 63.72 [01:22:22]line Наличными: 0.00 [01:22:22]line Безнал.: 600.05 [01:22:22]line Место: АЗС № 108 "Партнер Нефть" [01:22:22]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [01:22:22]line СНО: Общий режим [01:22:22]line Чек 12 15.04.2024 01:22 [01:22:22]line Смена: 117 ФФД: 1.0 [01:22:22]line ЗНМ: 0300000027 [01:22:22]line РНМ: 0000138879044617 [01:22:22]line Версия ККМ: 001 [01:22:22]line Платежная система: АКБ Кыргызстан [01:22:22]line ФМ: 0000000000963154 [01:22:22]line ФД: 29418 [01:22:22]line ФПД: 219190470677043 [01:22:22]line 1/tax-web-control/client/api/v1/ticket?date=20240415T012222&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29418&fm=219190470677043&tin=02508201610067®Number=0000138879044617&sum=60005 [01:22:22]written 0, free lines is 4095 [01:22:22]OFD Sender: Processing packet 29418 [packets to send 8, broken 7] [01:22:22]ProducePacketName [01:22:22]name=ofd_packets/00029418 [01:22:22]OFD Sender: To server: pG, [01:22:22]CommunicateWithHost lk.salyk.kg:30040 [01:22:22]ConnectInit lk.salyk.kg [01:22:22]Connected sock=10 [01:22:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 20 32 07 01 AF 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 2C 24 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 65 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 65 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 65 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 4E 81 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EA 72 00 00 35 04 06 00 C7 5A 42 24 92 33 A5 AC 0D F1 46 8E D8 75 [01:22:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 E9 13 47 00 40 BC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EA 72 00 00 F4 03 04 00 F0 2B 1C 66 B6 04 01 00 00 CA 0F E3 77 24 2C 5D 23 [01:22:22]CommunicateWithHost err = 0 [01:22:22]CheckOFDResponse [01:22:22]1017 (14) - 77093643461234 [01:22:22]1041 (16) - 0000000000963154 [01:22:22]1040 (4) - 29418 [01:22:22]1012 (4) - 14.04.2024 19:18 [01:22:22]1206 (1) - 0 [01:22:22]OFD Sender: Remove packet 29418 [01:22:22]ProducePacketName [01:22:22]name=ofd_packets/00029418 [01:22:22]NVStorageDeleteData [01:22:22]Write to MH i2c: 01 00 00 7E 1A 98 [01:22:22]Write i2c OK [01:22:22]MH_I2C_Read... [01:22:22]Read from MH i2c: 01 [01:22:22]MH_I2C_Read... [01:22:22]Read from MH i2c: 01 07 00 [01:22:22]MH_I2C_Read... [01:22:22]Read from MH i2c: 01 07 00 7E 1A 00 00 00 00 00 D2 0C 7D [01:22:22]RasterBufferAndPrint [01:22:22]line [01:22:22]line [01:22:22]line [01:22:22]line [01:22:22]line [01:22:22]written 0, free lines is 3288 [01:22:22]MH_Cut [01:22:22]Write to MH i2c: D1 01 00 85 1A 01 71 [01:22:22]Write i2c OK [01:22:22]MH_I2C_Read... [01:22:22]Read from MH i2c: D1 [01:22:22]MH_I2C_Read... [01:22:22]Read from MH i2c: D1 01 00 [01:22:22]MH_I2C_Read... [01:22:22]Read from MH i2c: D1 01 00 85 1A 00 70 [01:22:22]Write to MH i2c: 01 00 00 86 1A A0 [01:22:22]Write i2c OK [01:22:22]MH_I2C_Read... [01:22:23]OFD Sender: No OFD packet to send [01:22:23]*** Cut start [01:22:23]*** Partial cut [01:22:23]*** CUTSNS_PIN = 1 [01:22:23]*** CUTSNS_PIN = 0 [01:22:23]*** Brake cut motor [01:22:24]Read from MH i2c: 01 [01:22:24]MH_I2C_Read... [01:22:24]*** Stop cut motor [01:22:24]*** Cut end [01:22:24]Read from MH i2c: 01 07 00 [01:22:24]MH_I2C_Read... [01:22:24]Read from MH i2c: 01 07 00 86 1A 00 00 00 00 00 FF 0F B5 [01:22:24]process_action close_receipt done [01:22:24]requested_data is exist [01:22:24]produce_requested_data [01:22:24]requested_item fm.sn is exist - process it [01:22:24]wFMCommunicate request_size=4 [01:22:24]MH_SAM_APDU [01:22:24]CAPDU: 80 11 00 00 [01:22:24]Write to MH i2c: E2 08 00 87 1A 80 11 00 00 00 00 00 00 1B [01:22:24]Write i2c OK [01:22:24]MH_I2C_Read... [01:22:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:22:24]Read from MH i2c: E2 [01:22:24]MH_I2C_Read... [01:22:24]Read from MH i2c: E2 17 00 [01:22:24]MH_I2C_Read... [01:22:24]Read from MH i2c: E2 17 00 87 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 6A [01:22:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [01:22:24]wFMCommunicate OK [01:22:24]requested_item fd.num is exist - process it [01:22:24]SAM_PROTO_GetFieldsCounters [01:22:24]wFMCommunicate request_size=4 [01:22:24]MH_SAM_APDU [01:22:24]CAPDU: 80 13 00 00 [01:22:24]Write to MH i2c: E2 08 00 88 1A 80 13 00 00 00 00 00 00 1E [01:22:24]Write i2c OK [01:22:24]MH_I2C_Read... [01:22:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:22:24]Read from MH i2c: E2 [01:22:24]MH_I2C_Read... [01:22:24]Read from MH i2c: E2 62 00 [01:22:24]MH_I2C_Read... [01:22:24]Read from MH i2c: E2 62 00 88 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 EA 72 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 51 [01:22:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 EA 72 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:22:24]wFMCommunicate OK [01:22:24]SAM_PROTO_GetFieldsCounters done [01:22:24]requested_item shift.num is exist - process it [01:22:24]requested_item shift.opened is exist - process it [01:22:24]req_shift_opened [01:22:24]FM_GetShiftState [01:22:24]SAM_PROTO_GetShiftState [01:22:24]wFMCommunicate request_size=4 [01:22:24]MH_SAM_APDU [01:22:24]CAPDU: 80 13 01 00 [01:22:24]Write to MH i2c: E2 08 00 89 1A 80 13 01 00 00 00 00 00 20 [01:22:24]Write i2c OK [01:22:24]MH_I2C_Read... [01:22:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:22:24]Read from MH i2c: E2 [01:22:24]MH_I2C_Read... [01:22:24]Read from MH i2c: E2 0E 00 [01:22:24]MH_I2C_Read... [01:22:24]Read from MH i2c: E2 0E 00 89 1A 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 14 [01:22:24]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [01:22:24]wFMCommunicate OK [01:22:24]SAM_PROTO_GetShiftState done [01:22:24]FM_GetShiftState done [01:22:24]req_shift_opened done [01:22:24]requested_item shift.open_date is exist - process it [01:22:24]req_shift_open_date [01:22:24]req_shift_open_date done [01:22:24]produce_requested_data done [01:22:24]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29418,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [01:22:24]process_action_free close_receipt [01:22:24]json_value_free [01:22:24]json_value_free done [01:22:24]process_json_proto returns [01:22:24]Send response to host [01:22:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29418,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [01:22:24]free response buf [01:22:24]execute_script done [01:22:24]execute_script returns [01:22:24]free content buf [01:22:24]Sock 9.Close socket [01:22:24]Sock 9.Thread stoped [01:22:28]OFD Sender: No OFD packet to send [01:22:33]OFD Sender: No OFD packet to send [01:22:38]OFD Sender: No OFD packet to send [01:22:43]OFD Sender: No OFD packet to send [01:22:48]OFD Sender: No OFD packet to send [01:22:53]OFD Sender: No OFD packet to send [01:22:58]OFD Sender: No OFD packet to send [01:23:03]OFD Sender: No OFD packet to send [01:23:08]OFD Sender: No OFD packet to send [01:23:13]OFD Sender: No OFD packet to send [01:23:18]OFD Sender: No OFD packet to send [01:23:23]OFD Sender: No OFD packet to send [01:23:28]OFD Sender: No OFD packet to send [01:23:33]OFD Sender: No OFD packet to send [01:23:38]OFD Sender: No OFD packet to send [01:23:43]OFD Sender: No OFD packet to send [01:23:48]OFD Sender: No OFD packet to send [01:23:53]OFD Sender: No OFD packet to send [01:23:58]OFD Sender: No OFD packet to send [01:24:03]OFD Sender: No OFD packet to send [01:24:08]OFD Sender: No OFD packet to send [01:24:13]OFD Sender: No OFD packet to send [01:24:14]accept exits with 8 [01:24:14]New connection [01:24:14]New thread 3066969444 created [01:24:14]Thread 3067112804 joined [01:24:14]Waiting for new connection... [01:24:14] Sock 8.Parse request [01:24:14]Sock 8.Check first char [01:24:14]Sock 8.First char is OK [01:24:14]request: POST /json_proto HTTP/1.0 [01:24:14]Method: POST [01:24:14]URL: /json_proto [01:24:14]Method is POST - this is cgi request [01:24:14]url: /json_proto [01:24:14]query_string will be loaded in cgi processing [01:24:14]execute_cgi json_proto POST (null) [01:24:14]execute_cgi path=json_proto method=POST [01:24:14]POST find Content-Length [01:24:14]Host: 172.17.33.3:8080 [01:24:14]Content-Length: 685 [01:24:14]Content-Type: application/json [01:24:14] [01:24:14]POST finish read [01:24:14]Found Content-Length = 685 [01:24:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347812", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.40, "quantity" : 53.140, "sum" : 1774.88, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1774.00, "payments": [ { "type": 0, "sum" : 1774.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:24:14]execute_script... [01:24: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)347812", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.40, "quantity" : 53.140, "sum" : 1774.88, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1774.00, "payments": [ { "type": 0, "sum" : 1774.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:24:14]POST & json_proto [01:24:14]process_json_proto [01:24:14]json parsed OK: [01:24:14]protocol is kg_v1.0 [01:24:14]action value=close_receipt [01:24:14]process_action close_receipt [01:24:14]cmd_close_receipt [01:24:14]MH_GetDate [01:24:14]Write to MH i2c: F0 00 00 8A 1A 93 [01:24:14]Write i2c OK [01:24:14]MH_I2C_Read... [01:24:14]Read from MH i2c: F0 [01:24:14]MH_I2C_Read... [01:24:14]Read from MH i2c: F0 09 00 [01:24:14]MH_I2C_Read... [01:24:14]Read from MH i2c: F0 09 00 8A 1A 00 C0 81 1C 66 23 5B 8F 65 D1 [01:24:14]GetLastDocTimeStamp 1713144142 [01:24:14]current date 1713144256 [01:24:14]FM_GetShiftState [01:24:14]SAM_PROTO_GetShiftState [01:24:14]wFMCommunicate request_size=4 [01:24:14]MH_SAM_APDU [01:24:14]CAPDU: 80 13 01 00 [01:24:14]Write to MH i2c: E2 08 00 8B 1A 80 13 01 00 00 00 00 00 22 [01:24:14]Write i2c OK [01:24:14]MH_I2C_Read... [01:24:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:24:14]Read from MH i2c: E2 [01:24:14]MH_I2C_Read... [01:24:14]Read from MH i2c: E2 0E 00 [01:24:14]MH_I2C_Read... [01:24:14]Read from MH i2c: E2 0E 00 8B 1A 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 16 [01:24:14]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [01:24:14]wFMCommunicate OK [01:24:14]SAM_PROTO_GetShiftState done [01:24:14]FM_GetShiftState done [01:24:14]opened in 1713140468 [01:24:14]opened+sec_in_day 1713226868 [01:24:14]quantity*price = 177487 [01:24:14]sum+1 = 177489 [01:24:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.88 ИТОГО: 1774.00 Внесено: 2000.00 СДАЧА: 226.00 НСП 1% : 15.71 НДС 12% : 188.48 Наличными: 1774.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 13 15.04.2024 01:24 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29419 ФПД: 70720474102375 1/tax-web-control/client/api/v1/ticket?date=20240415T012416&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29419&fm=70720474102375&tin=02508201610067®Number=0000138879044617&sum=177400 [01:24:15]StoreToDocumentArchive [01:24:15]shift 117 fd 29419 [01:24:15]save to /storage/0117/doc_00029419 [01:24:15]save last doc name /storage/0117/doc_00029419 to /storage/kkm_last_doc_name [01:24:15]save OK [01:24:15]Clear old archive folders... [01:24:15]ProcessDocumentItem done err = 0, tmpTLVsize=250 [01:24:15]tlvbuf is B6ECF830 [01:24:15]SAM_PROTO_ClearQueue [01:24:15]wFMCommunicate request_size=4 [01:24:15]MH_SAM_APDU [01:24:15]CAPDU: 80 09 00 00 [01:24:15]Write to MH i2c: E2 08 00 98 1A 80 09 00 00 00 00 00 00 24 [01:24:15]Write i2c OK [01:24:15]MH_I2C_Read... [01:24:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:24:15]Read from MH i2c: E2 [01:24:15]MH_I2C_Read... [01:24:15]Read from MH i2c: E2 03 00 [01:24:15]MH_I2C_Read... [01:24:15]Read from MH i2c: E2 03 00 98 1A 00 90 00 26 [01:24:15]RAPDU: 90 00 [01:24:15]wFMCommunicate OK [01:24:15]SAM_PROTO_ClearQueue done [01:24:15]KKMCreateOFDPacket [01:24:15]OFDProtocolAddRootSTLVToBuf [01:24:15]FM_MakeSignedData [01:24:15]FM_MakeSignedData [01:24:15]SAM_PROTO_SignData [01:24:15]wFMCommunicate request_size=4 [01:24:15]MH_SAM_APDU [01:24:15]CAPDU: 80 0D 01 02 [01:24:15]Write to MH i2c: E2 08 00 99 1A 80 0D 01 02 00 00 00 00 2C [01:24:15]Write i2c OK [01:24:15]MH_I2C_Read... [01:24:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:24:16]Read from MH i2c: E2 [01:24:16]MH_I2C_Read... [01:24:16]Read from MH i2c: E2 03 00 [01:24:16]MH_I2C_Read... [01:24:16]Read from MH i2c: E2 03 00 99 1A 00 90 00 27 [01:24:16]RAPDU: 90 00 [01:24:16]wFMCommunicate OK [01:24:16]wFMCommunicate request_size=255 [01:24:16]MH_SAM_APDU [01:24: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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 94 CF 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 50 B5 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 B4 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A0 49 00 00 00 00 07 04 06 00 F8 B4 02 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 C0 81 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EB 72 00 00 35 04 06 00 40 51 [01:24:16]Write to MH i2c: E2 02 01 9A 1A 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 94 CF 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 50 B5 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 B4 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A0 49 00 00 00 00 07 04 06 00 F8 B4 02 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 C0 81 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EB 72 00 00 35 04 06 00 40 51 00 00 27 [01:24:16]Write i2c OK [01:24:16]MH_I2C_Read... [01:24:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:24:16]Read from MH i2c: E2 [01:24:16]MH_I2C_Read... [01:24:16]Read from MH i2c: E2 03 00 [01:24:16]MH_I2C_Read... [01:24:16]Read from MH i2c: E2 03 00 9A 1A 00 90 00 28 [01:24:16]RAPDU: 90 00 [01:24:16]wFMCommunicate OK [01:24:16]wFMCommunicate request_size=9 [01:24:16]MH_SAM_APDU [01:24:16]CAPDU: 80 0D 02 02 04 E4 BC BA 67 [01:24:16]Write to MH i2c: E2 0C 00 9B 1A 80 0D 02 02 04 00 E4 BC BA 67 00 00 F8 [01:24:16]Write i2c OK [01:24:16]MH_I2C_Read... [01:24:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:24:16]Read from MH i2c: E2 [01:24:16]MH_I2C_Read... [01:24:16]Read from MH i2c: E2 03 00 [01:24:16]MH_I2C_Read... [01:24:16]Read from MH i2c: E2 03 00 9B 1A 00 90 00 29 [01:24:16]RAPDU: 90 00 [01:24:16]wFMCommunicate OK [01:24:16]wFMCommunicate request_size=4 [01:24:16]MH_SAM_APDU [01:24:16]CAPDU: 80 0D 03 02 [01:24:16]Write to MH i2c: E2 08 00 9C 1A 80 0D 03 02 00 00 00 00 31 [01:24:16]Write i2c OK [01:24:16]MH_I2C_Read... [01:24:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:24:16]Read from MH i2c: E2 [01:24:16]MH_I2C_Read... [01:24:16]Read from MH i2c: E2 0B 00 [01:24:16]MH_I2C_Read... [01:24:16]Read from MH i2c: E2 0B 00 9C 1A 00 4F 01 5D 30 6F 00 F6 13 90 00 87 [01:24:16]RAPDU: 4F 01 5D 30 6F 00 F6 13 90 00 [01:24:16]wFMCommunicate OK [01:24:16]SAM_PROTO_SignData done [01:24:16]FM_MakeSignedData done [01:24:16]CreateOFDProtocolMessage [01:24:16]wFMCommunicate request_size=4 [01:24:16]MH_SAM_APDU [01:24:16]CAPDU: 80 11 00 00 [01:24:16]Write to MH i2c: E2 08 00 9D 1A 80 11 00 00 00 00 00 00 31 [01:24:16]Write i2c OK [01:24:16]MH_I2C_Read... [01:24:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:24:16]Read from MH i2c: E2 [01:24:16]MH_I2C_Read... [01:24:16]Read from MH i2c: E2 17 00 [01:24:16]MH_I2C_Read... [01:24:16]Read from MH i2c: E2 17 00 9D 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 80 [01:24:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [01:24:16]wFMCommunicate OK [01:24:16]CreateOFDProtocolMessage done [01:24:16]OFDSenderStorePacket 29419 [01:24:16]StoreOFDPacket docnum=29419 [01:24:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 05 31 06 01 72 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 94 CF 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 50 B5 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 B4 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A0 49 00 00 00 00 07 04 06 00 F8 B4 02 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 C0 81 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EB 72 00 00 35 04 06 00 40 51 E4 BC BA 67 4F 01 5D 30 6F 00 F6 13 [01:24:16]CheckFolder [01:24:16]dirname=/storage/ofd_packets [01:24:16]CheckFolder done [01:24:16]ProducePacketName [01:24:16]name=ofd_packets/00029419 [01:24:16]NVStorageSaveData ofd_packets/00029419 [01:24:16]File name is /storage/ofd_packets/00029419 [01:24:16]Write 300 bytes [01:24:16]NVStorageSaveData done [01:24:16]OFDSenderStorePacket done [01:24:16]KKMCreateOFDPacket done [01:24:16]NVStorageSaveData kkm_last_timestamp [01:24:16]File name is /storage/kkm_last_timestamp [01:24:16]Write 4 bytes [01:24:16]NVStorageSaveData done [01:24:16]ExternCall_PrintAddStr [01:24:16]wPrintStart [01:24:16]Write to MH i2c: 01 00 00 9E 1A B8 [01:24:16]Write i2c OK [01:24:16]MH_I2C_Read... [01:24:16]Read from MH i2c: 01 [01:24:16]MH_I2C_Read... [01:24:16]Read from MH i2c: 01 07 00 [01:24:16]MH_I2C_Read... [01:24:16]Read from MH i2c: 01 07 00 9E 1A 00 00 00 00 00 FF 0F CD [01:24:16]RasterBufferAndPrint [01:24:16]line Счет N : (1)347812 [01:24:16]line ИНН: 02508201610067 [01:24:16]line Контрольно-Кассовый Чек [01:24:16]line ПРОДАЖА [01:24:16]line ТРК (МРК, ГНК) : 71 [01:24:16]line Товар: 2711129700 [01:24:16]line ГАЗ-К-5 [01:24:16]line 53.140 * 33.40 [01:24:16]line = 1774.88 [01:24:16]line НДС 12% НСП 1% [01:24:16]line > о реализуемом товаре [01:24:16]line ОКРУГЛЕНИЕ: -0.88 [01:24:16]line ИТОГО: 1774.00 [01:24:16]line Внесено: 2000.00 [01:24:16]line СДАЧА: 226.00 [01:24:16]line НСП 1% : 15.71 [01:24:16]line НДС 12% : 188.48 [01:24:16]line Наличными: 1774.00 [01:24:16]line Безнал.: 0.00 [01:24:16]line Место: АЗС № 108 "Партнер Нефть" [01:24:16]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [01:24:16]line СНО: Общий режим [01:24:16]line Чек 13 15.04.2024 01:24 [01:24:16]line Смена: 117 ФФД: 1.0 [01:24:16]line ЗНМ: 0300000027 [01:24:16]line РНМ: 0000138879044617 [01:24:16]line Версия ККМ: 001 [01:24:16]line ФМ: 0000000000963154 [01:24:16]line ФД: 29419 [01:24:16]line ФПД: 70720474102375 [01:24:16]line 1/tax-web-control/client/api/v1/ticket?date=20240415T012416&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29419&fm=70720474102375&tin=02508201610067®Number=0000138879044617&sum=177400 [01:24:16]OFD Sender: Processing packet 29419 [packets to send 8, broken 7] [01:24:16]ProducePacketName [01:24:16]name=ofd_packets/00029419 [01:24:16]OFD Sender: To server: pG, [01:24:16]CommunicateWithHost lk.salyk.kg:30040 [01:24:16]ConnectInit lk.salyk.kg [01:24:16]written 0, free lines is 4095 [01:24:16]Connected sock=10 [01:24:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 05 31 06 01 72 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 94 CF 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 50 B5 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 B4 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A0 49 00 00 00 00 07 04 06 00 F8 B4 02 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 C0 81 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EB 72 00 00 35 04 06 00 40 51 E4 BC BA 67 4F 01 5D 30 6F 00 F6 13 [01:24:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 39 12 47 00 FA 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EB 72 00 00 F4 03 04 00 63 2C 1C 66 B6 04 01 00 00 6C 6F 84 28 AE 33 83 7B [01:24:17]CommunicateWithHost err = 0 [01:24:17]CheckOFDResponse [01:24:17]1017 (14) - 77093643461234 [01:24:17]1041 (16) - 0000000000963154 [01:24:17]1040 (4) - 29419 [01:24:17]1012 (4) - 14.04.2024 19:20 [01:24:17]1206 (1) - 0 [01:24:17]OFD Sender: Remove packet 29419 [01:24:17]ProducePacketName [01:24:17]name=ofd_packets/00029419 [01:24:17]NVStorageDeleteData [01:24:17]Write to MH i2c: 01 00 00 C8 1A E2 [01:24:17]Write i2c OK [01:24:17]MH_I2C_Read... [01:24:17]Read from MH i2c: 01 [01:24:17]MH_I2C_Read... [01:24:17]Read from MH i2c: 01 07 00 [01:24:17]MH_I2C_Read... [01:24:17]Read from MH i2c: 01 07 00 C8 1A 00 00 00 00 00 BC 0C B1 [01:24:17]RasterBufferAndPrint [01:24:17]line [01:24:17]line [01:24:17]line [01:24:17]line [01:24:17]line [01:24:17]written 0, free lines is 3265 [01:24:17]MH_Cut [01:24:17]Write to MH i2c: D1 01 00 CF 1A 01 BB [01:24:17]Write i2c OK [01:24:17]MH_I2C_Read... [01:24:17]Read from MH i2c: D1 [01:24:17]MH_I2C_Read... [01:24:17]Read from MH i2c: D1 01 00 [01:24:17]MH_I2C_Read... [01:24:17]Read from MH i2c: D1 01 00 CF 1A 00 BA [01:24:17]Write to MH i2c: 01 00 00 D0 1A EA [01:24:17]Write i2c OK [01:24:17]MH_I2C_Read... [01:24:17]OFD Sender: No OFD packet to send [01:24:18]*** Cut start [01:24:18]*** Partial cut [01:24:18]*** CUTSNS_PIN = 1 [01:24:18]*** CUTSNS_PIN = 0 [01:24:18]*** Brake cut motor [01:24:18]Read from MH i2c: 01 [01:24:18]MH_I2C_Read... [01:24:18]*** Stop cut motor [01:24:18]*** Cut end [01:24:18]Read from MH i2c: 01 07 00 [01:24:18]MH_I2C_Read... [01:24:18]Read from MH i2c: 01 07 00 D0 1A 00 00 00 00 00 FF 0F FF [01:24:18]process_action close_receipt done [01:24:18]requested_data is exist [01:24:18]produce_requested_data [01:24:18]requested_item fm.sn is exist - process it [01:24:18]wFMCommunicate request_size=4 [01:24:18]MH_SAM_APDU [01:24:18]CAPDU: 80 11 00 00 [01:24:18]Write to MH i2c: E2 08 00 D1 1A 80 11 00 00 00 00 00 00 65 [01:24:18]Write i2c OK [01:24:18]MH_I2C_Read... [01:24:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:24:18]Read from MH i2c: E2 [01:24:18]MH_I2C_Read... [01:24:18]Read from MH i2c: E2 17 00 [01:24:18]MH_I2C_Read... [01:24:18]Read from MH i2c: E2 17 00 D1 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B4 [01:24:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [01:24:18]wFMCommunicate OK [01:24:18]requested_item fd.num is exist - process it [01:24:18]SAM_PROTO_GetFieldsCounters [01:24:18]wFMCommunicate request_size=4 [01:24:18]MH_SAM_APDU [01:24:18]CAPDU: 80 13 00 00 [01:24:18]Write to MH i2c: E2 08 00 D2 1A 80 13 00 00 00 00 00 00 68 [01:24:18]Write i2c OK [01:24:18]MH_I2C_Read... [01:24:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:24:18]Read from MH i2c: E2 [01:24:18]MH_I2C_Read... [01:24:18]Read from MH i2c: E2 62 00 [01:24:18]MH_I2C_Read... [01:24:18]Read from MH i2c: E2 62 00 D2 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 EB 72 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 9F [01:24:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 EB 72 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:24:18]wFMCommunicate OK [01:24:18]SAM_PROTO_GetFieldsCounters done [01:24:18]requested_item shift.num is exist - process it [01:24:18]requested_item shift.opened is exist - process it [01:24:18]req_shift_opened [01:24:18]FM_GetShiftState [01:24:18]SAM_PROTO_GetShiftState [01:24:18]wFMCommunicate request_size=4 [01:24:18]MH_SAM_APDU [01:24:18]CAPDU: 80 13 01 00 [01:24:18]Write to MH i2c: E2 08 00 D3 1A 80 13 01 00 00 00 00 00 6A [01:24:18]Write i2c OK [01:24:18]MH_I2C_Read... [01:24:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:24:18]Read from MH i2c: E2 [01:24:18]MH_I2C_Read... [01:24:18]Read from MH i2c: E2 0E 00 [01:24:18]MH_I2C_Read... [01:24:18]Read from MH i2c: E2 0E 00 D3 1A 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 5E [01:24:18]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [01:24:18]wFMCommunicate OK [01:24:18]SAM_PROTO_GetShiftState done [01:24:18]FM_GetShiftState done [01:24:18]req_shift_opened done [01:24:18]requested_item shift.open_date is exist - process it [01:24:18]req_shift_open_date [01:24:18]req_shift_open_date done [01:24:18]produce_requested_data done [01:24:18]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29419,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [01:24:18]process_action_free close_receipt [01:24:18]json_value_free [01:24:18]json_value_free done [01:24:18]process_json_proto returns [01:24:18]Send response to host [01:24:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29419,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [01:24:18]free response buf [01:24:18]execute_script done [01:24:18]execute_script returns [01:24:18]free content buf [01:24:18]Sock 8.Close socket [01:24:18]Sock 8.Thread stoped [01:24:22]OFD Sender: No OFD packet to send [01:24:27]OFD Sender: No OFD packet to send [01:24:32]OFD Sender: No OFD packet to send [01:24:37]OFD Sender: No OFD packet to send [01:24:42]OFD Sender: No OFD packet to send [01:24:47]OFD Sender: No OFD packet to send [01:24:52]OFD Sender: No OFD packet to send [01:24:57]OFD Sender: No OFD packet to send [01:25:02]OFD Sender: No OFD packet to send [01:25:07]OFD Sender: No OFD packet to send [01:25:12]OFD Sender: No OFD packet to send [01:25:17]OFD Sender: No OFD packet to send [01:25:22]OFD Sender: No OFD packet to send [01:25:27]OFD Sender: No OFD packet to send [01:25:32]OFD Sender: No OFD packet to send [01:25:37]OFD Sender: No OFD packet to send [01:25:42]OFD Sender: No OFD packet to send [01:25:47]OFD Sender: No OFD packet to send [01:25:52]OFD Sender: No OFD packet to send [01:25:57]OFD Sender: No OFD packet to send [01:26:02]OFD Sender: No OFD packet to send [01:26:07]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:33]OFD Sender: No OFD packet to send [01:32:38]OFD Sender: No OFD packet to send [01:32:43]OFD Sender: No OFD packet to send [01:32:48]OFD Sender: No OFD packet to send [01:32:53]OFD Sender: No OFD packet to send [01:32:58]OFD Sender: No OFD packet to send [01:33:03]OFD Sender: No OFD packet to send [01:33:08]OFD Sender: No OFD packet to send [01:33:13]OFD Sender: No OFD packet to send [01:33:18]OFD Sender: No OFD packet to send [01:33:23]OFD Sender: No OFD packet to send [01:33:28]OFD Sender: No OFD packet to send [01:33:33]OFD Sender: No OFD packet to send [01:33:38]OFD Sender: No OFD packet to send [01:33:43]OFD Sender: No OFD packet to send [01:33:48]OFD Sender: No OFD packet to send [01:33:53]OFD Sender: No OFD packet to send [01:33:58]OFD Sender: No OFD packet to send [01:34:03]OFD Sender: No OFD packet to send [01:34:08]OFD Sender: No OFD packet to send [01:34:13]OFD Sender: No OFD packet to send [01:34:18]OFD Sender: No OFD packet to send [01:34:23]OFD Sender: No OFD packet to send [01:34:28]OFD Sender: No OFD packet to send [01:34:33]OFD Sender: No OFD packet to send [01:34:38]OFD Sender: No OFD packet to send [01:34:43]OFD Sender: No OFD packet to send [01:34:48]OFD Sender: No OFD packet to send [01:34:53]OFD Sender: No OFD packet to send [01:34:58]OFD Sender: No OFD packet to send [01:35:03]OFD Sender: No OFD packet to send [01:35:08]OFD Sender: No OFD packet to send [01:35:13]OFD Sender: No OFD packet to send [01:35:18]OFD Sender: No OFD packet to send [01:35:23]OFD Sender: No OFD packet to send [01:35:28]OFD Sender: No OFD packet to send [01:35:33]OFD Sender: No OFD packet to send [01:35:38]OFD Sender: No OFD packet to send [01:35:43]OFD Sender: No OFD packet to send [01:35:48]OFD Sender: No OFD packet to send [01:35:53]OFD Sender: No OFD packet to send [01:35:58]OFD Sender: No OFD packet to send [01:36:03]OFD Sender: No OFD packet to send [01:36:08]OFD Sender: No OFD packet to send [01:36:13]OFD Sender: No OFD packet to send [01:36:18]OFD Sender: No OFD packet to send [01:36:23]OFD Sender: No OFD packet to send [01:36:27]accept exits with 9 [01:36:27]New connection [01:36:27]New thread 3067112804 created [01:36:27]Thread 3066969444 joined [01:36:27]Waiting for new connection... [01:36:27] Sock 9.Parse request [01:36:27]Sock 9.Check first char [01:36:27]Sock 9.First char is OK [01:36:27]request: POST /json_proto HTTP/1.0 [01:36:27]Method: POST [01:36:27]URL: /json_proto [01:36:27]Method is POST - this is cgi request [01:36:27]url: /json_proto [01:36:27]query_string will be loaded in cgi processing [01:36:27]execute_cgi json_proto POST (null) [01:36:27]execute_cgi path=json_proto method=POST [01:36:27]POST find Content-Length [01:36:27]Host: 172.17.33.3:8080 [01:36:27]Content-Length: 677 [01:36:27]Content-Type: application/json [01:36:27] [01:36:27]POST finish read [01:36:27]Found Content-Length = 677 [01:36:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347814", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:36:27]execute_script... [01:36: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)347814", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:36:27]POST & json_proto [01:36:27]process_json_proto [01:36:27]json parsed OK: [01:36:27]protocol is kg_v1.0 [01:36:27]action value=close_receipt [01:36:27]process_action close_receipt [01:36:27]cmd_close_receipt [01:36:27]MH_GetDate [01:36:27]Write to MH i2c: F0 00 00 D4 1A DD [01:36:27]Write i2c OK [01:36:27]MH_I2C_Read... [01:36:27]Read from MH i2c: F0 [01:36:27]MH_I2C_Read... [01:36:27]Read from MH i2c: F0 09 00 [01:36:27]MH_I2C_Read... [01:36:27]Read from MH i2c: F0 09 00 D4 1A 00 9D 84 1C 66 23 5B 8F 65 FB [01:36:27]GetLastDocTimeStamp 1713144256 [01:36:27]current date 1713144989 [01:36:27]FM_GetShiftState [01:36:27]SAM_PROTO_GetShiftState [01:36:27]wFMCommunicate request_size=4 [01:36:27]MH_SAM_APDU [01:36:27]CAPDU: 80 13 01 00 [01:36:27]Write to MH i2c: E2 08 00 D5 1A 80 13 01 00 00 00 00 00 6C [01:36:27]Write i2c OK [01:36:27]MH_I2C_Read... [01:36:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:36:27]Read from MH i2c: E2 [01:36:27]MH_I2C_Read... [01:36:27]Read from MH i2c: E2 0E 00 [01:36:27]MH_I2C_Read... [01:36:27]Read from MH i2c: E2 0E 00 D5 1A 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 60 [01:36:27]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [01:36:27]wFMCommunicate OK [01:36:27]SAM_PROTO_GetShiftState done [01:36:27]FM_GetShiftState done [01:36:27]opened in 1713140468 [01:36:27]opened+sec_in_day 1713226868 [01:36:27]quantity*price = 50025 [01:36:27]sum+1 = 50027 [01:36: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 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 14 15.04.2024 01:36 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29420 ФПД: 186697644443257 1/tax-web-control/client/api/v1/ticket?date=20240415T013629&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29420&fm=186697644443257&tin=02508201610067®Number=0000138879044617&sum=50000 [01:36:28]StoreToDocumentArchive [01:36:28]shift 117 fd 29420 [01:36:28]save to /storage/0117/doc_00029420 [01:36:28]save last doc name /storage/0117/doc_00029420 to /storage/kkm_last_doc_name [01:36:28]save OK [01:36:28]Clear old archive folders... [01:36:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:36:28]tlvbuf is 00250D10 [01:36:28]SAM_PROTO_ClearQueue [01:36:28]wFMCommunicate request_size=4 [01:36:28]MH_SAM_APDU [01:36:28]CAPDU: 80 09 00 00 [01:36:28]Write to MH i2c: E2 08 00 E2 1A 80 09 00 00 00 00 00 00 6E [01:36:28]Write i2c OK [01:36:28]MH_I2C_Read... [01:36:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:36:28]Read from MH i2c: E2 [01:36:28]MH_I2C_Read... [01:36:28]Read from MH i2c: E2 03 00 [01:36:28]MH_I2C_Read... [01:36:28]Read from MH i2c: E2 03 00 E2 1A 00 90 00 70 [01:36:28]RAPDU: 90 00 [01:36:28]wFMCommunicate OK [01:36:28]SAM_PROTO_ClearQueue done [01:36:28]KKMCreateOFDPacket [01:36:28]OFDProtocolAddRootSTLVToBuf [01:36:28]FM_MakeSignedData [01:36:28]FM_MakeSignedData [01:36:28]SAM_PROTO_SignData [01:36:28]wFMCommunicate request_size=4 [01:36:28]MH_SAM_APDU [01:36:28]CAPDU: 80 0D 01 02 [01:36:28]Write to MH i2c: E2 08 00 E3 1A 80 0D 01 02 00 00 00 00 76 [01:36:28]Write i2c OK [01:36:28]MH_I2C_Read... [01:36:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:36:28]Read from MH i2c: E2 [01:36:28]MH_I2C_Read... [01:36:28]Read from MH i2c: E2 03 00 [01:36:28]MH_I2C_Read... [01:36:28]Read from MH i2c: E2 03 00 E3 1A 00 90 00 71 [01:36:28]RAPDU: 90 00 [01:36:28]wFMCommunicate OK [01:36:28]wFMCommunicate request_size=255 [01:36:28]MH_SAM_APDU [01:36: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 0E 00 00 00 F4 03 04 00 9D 84 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EC 72 00 00 35 04 06 00 A9 [01:36:28]Write to MH i2c: E2 02 01 E4 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 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 0E 00 00 00 F4 03 04 00 9D 84 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EC 72 00 00 35 04 06 00 A9 00 00 5C [01:36:28]Write i2c OK [01:36:28]MH_I2C_Read... [01:36:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:36:28]Read from MH i2c: E2 [01:36:28]MH_I2C_Read... [01:36:28]Read from MH i2c: E2 03 00 [01:36:28]MH_I2C_Read... [01:36:28]Read from MH i2c: E2 03 00 E4 1A 00 90 00 72 [01:36:28]RAPDU: 90 00 [01:36:28]wFMCommunicate OK [01:36:28]wFMCommunicate request_size=10 [01:36:28]MH_SAM_APDU [01:36:28]CAPDU: 80 0D 02 02 05 CC EE C7 06 79 [01:36:28]Write to MH i2c: E2 0D 00 E5 1A 80 0D 02 02 05 00 CC EE C7 06 79 00 00 83 [01:36:28]Write i2c OK [01:36:28]MH_I2C_Read... [01:36:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:36:28]Read from MH i2c: E2 [01:36:28]MH_I2C_Read... [01:36:28]Read from MH i2c: E2 03 00 [01:36:28]MH_I2C_Read... [01:36:28]Read from MH i2c: E2 03 00 E5 1A 00 90 00 73 [01:36:28]RAPDU: 90 00 [01:36:28]wFMCommunicate OK [01:36:28]wFMCommunicate request_size=4 [01:36:28]MH_SAM_APDU [01:36:28]CAPDU: 80 0D 03 02 [01:36:28]Write to MH i2c: E2 08 00 E6 1A 80 0D 03 02 00 00 00 00 7B [01:36:28]Write i2c OK [01:36:28]MH_I2C_Read... [01:36:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:36:28]Read from MH i2c: E2 [01:36:28]MH_I2C_Read... [01:36:28]Read from MH i2c: E2 0B 00 [01:36:28]MH_I2C_Read... [01:36:28]Read from MH i2c: E2 0B 00 E6 1A 00 E5 0C D9 35 38 83 63 A1 90 00 3A [01:36:28]RAPDU: E5 0C D9 35 38 83 63 A1 90 00 [01:36:28]wFMCommunicate OK [01:36:28]SAM_PROTO_SignData done [01:36:28]FM_MakeSignedData done [01:36:28]CreateOFDProtocolMessage [01:36:28]wFMCommunicate request_size=4 [01:36:28]MH_SAM_APDU [01:36:28]CAPDU: 80 11 00 00 [01:36:28]Write to MH i2c: E2 08 00 E7 1A 80 11 00 00 00 00 00 00 7B [01:36:28]Write i2c OK [01:36:28]MH_I2C_Read... [01:36:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:36:28]Read from MH i2c: E2 [01:36:28]MH_I2C_Read... [01:36:28]Read from MH i2c: E2 17 00 [01:36:28]MH_I2C_Read... [01:36:28]Read from MH i2c: E2 17 00 E7 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 CA [01:36:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [01:36:28]wFMCommunicate OK [01:36:28]CreateOFDProtocolMessage done [01:36:28]OFDSenderStorePacket 29420 [01:36:28]StoreOFDPacket docnum=29420 [01:36:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 50 9F 07 01 9D AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 0E 00 00 00 F4 03 04 00 9D 84 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EC 72 00 00 35 04 06 00 A9 CC EE C7 06 79 E5 0C D9 35 38 83 63 A1 [01:36:28]CheckFolder [01:36:28]dirname=/storage/ofd_packets [01:36:28]CheckFolder done [01:36:28]ProducePacketName [01:36:28]name=ofd_packets/00029420 [01:36:28]NVStorageSaveData ofd_packets/00029420 [01:36:28]File name is /storage/ofd_packets/00029420 [01:36:28]Write 301 bytes [01:36:28]NVStorageSaveData done [01:36:28]OFDSenderStorePacket done [01:36:28]KKMCreateOFDPacket done [01:36:28]NVStorageSaveData kkm_last_timestamp [01:36:28]File name is /storage/kkm_last_timestamp [01:36:28]Write 4 bytes [01:36:28]NVStorageSaveData done [01:36:28]ExternCall_PrintAddStr [01:36:28]wPrintStart [01:36:28]Write to MH i2c: 01 00 00 E8 1A 02 [01:36:28]Write i2c OK [01:36:28]MH_I2C_Read... [01:36:28]Read from MH i2c: 01 [01:36:28]MH_I2C_Read... [01:36:28]Read from MH i2c: 01 07 00 [01:36:28]MH_I2C_Read... [01:36:28]Read from MH i2c: 01 07 00 E8 1A 00 00 00 00 00 FF 0F 17 [01:36:28]RasterBufferAndPrint [01:36:28]line Счет N : (1)347814 [01:36:28]line ИНН: 02508201610067 [01:36:28]line Контрольно-Кассовый Чек [01:36:28]line ПРОДАЖА [01:36:28]line ТРК (МРК, ГНК) : 42 [01:36:28]line Товар: 2710124130 [01:36:28]line Аи-92-К-5 [01:36:28]line 7.720 * 64.80 [01:36:28]line = 500.26 [01:36:28]line НДС 12% НСП 1% [01:36:28]line > о реализуемом товаре [01:36:28]line ОКРУГЛЕНИЕ: -0.26 [01:36:28]line ИТОГО: 500.00 [01:36:28]line Внесено: 500.00 [01:36:28]line СДАЧА: 0.00 [01:36:28]line НСП 1% : 4.43 [01:36:28]line НДС 12% : 53.12 [01:36:28]line Наличными: 500.00 [01:36:28]line Безнал.: 0.00 [01:36:28]line Место: АЗС № 108 "Партнер Нефть" [01:36:28]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [01:36:28]line СНО: Общий режим [01:36:28]line Чек 14 15.04.2024 01:36 [01:36:28]line Смена: 117 ФФД: 1.0 [01:36:28]line ЗНМ: 0300000027 [01:36:28]line РНМ: 0000138879044617 [01:36:28]line Версия ККМ: 001 [01:36:28]line ФМ: 0000000000963154 [01:36:28]line ФД: 29420 [01:36:28]line ФПД: 186697644443257 [01:36:28]line 1/tax-web-control/client/api/v1/ticket?date=20240415T013629&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29420&fm=186697644443257&tin=02508201610067®Number=0000138879044617&sum=50000 [01:36:29]OFD Sender: Processing packet 29420 [packets to send 8, broken 7] [01:36:29]ProducePacketName [01:36:29]name=ofd_packets/00029420 [01:36:29]OFD Sender: To server: pG, [01:36:29]CommunicateWithHost lk.salyk.kg:30040 [01:36:29]ConnectInit lk.salyk.kg [01:36:29]written 0, free lines is 4095 [01:36:29]Connected sock=10 [01:36:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 50 9F 07 01 9D AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 0E 00 00 00 F4 03 04 00 9D 84 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EC 72 00 00 35 04 06 00 A9 CC EE C7 06 79 E5 0C D9 35 38 83 63 A1 [01:36:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 1E 06 47 00 55 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 39 36 33 31 35 34 10 04 04 00 EC 72 00 00 F4 03 04 00 3F 2F 1C 66 B6 04 01 00 00 AB C4 70 57 C4 CC 78 04 [01:36:29]CommunicateWithHost err = 0 [01:36:29]CheckOFDResponse [01:36:29]1017 (14) - 77093643461234 [01:36:29]1041 (16) - 0000000000963154 [01:36:29]1040 (4) - 29420 [01:36:29]1012 (4) - 14.04.2024 19:32 [01:36:29]1206 (1) - 0 [01:36:29]OFD Sender: Remove packet 29420 [01:36:29]ProducePacketName [01:36:29]name=ofd_packets/00029420 [01:36:29]NVStorageDeleteData [01:36:29]Write to MH i2c: 01 00 00 12 1B 2D [01:36:29]Write i2c OK [01:36:29]MH_I2C_Read... [01:36:29]Read from MH i2c: 01 [01:36:29]MH_I2C_Read... [01:36:29]Read from MH i2c: 01 07 00 [01:36:29]MH_I2C_Read... [01:36:29]Read from MH i2c: 01 07 00 12 1B 00 00 00 00 00 BB 0C FB [01:36:29]RasterBufferAndPrint [01:36:29]line [01:36:29]line [01:36:29]line [01:36:29]line [01:36:29]line [01:36:29]written 0, free lines is 3265 [01:36:29]MH_Cut [01:36:29]Write to MH i2c: D1 01 00 19 1B 01 06 [01:36:29]Write i2c OK [01:36:29]MH_I2C_Read... [01:36:29]Read from MH i2c: D1 [01:36:29]MH_I2C_Read... [01:36:29]Read from MH i2c: D1 01 00 [01:36:29]MH_I2C_Read... [01:36:29]Read from MH i2c: D1 01 00 19 1B 00 05 [01:36:29]Write to MH i2c: 01 00 00 1A 1B 35 [01:36:29]Write i2c OK [01:36:29]MH_I2C_Read... [01:36:29]OFD Sender: No OFD packet to send [01:36:30]*** Cut start [01:36:30]*** Partial cut [01:36:30]*** CUTSNS_PIN = 1 [01:36:30]*** CUTSNS_PIN = 0 [01:36:30]*** Brake cut motor [01:36:31]Read from MH i2c: 01 [01:36:31]MH_I2C_Read... [01:36:31]*** Stop cut motor [01:36:31]*** Cut end [01:36:31]Read from MH i2c: 01 07 00 [01:36:31]MH_I2C_Read... [01:36:31]Read from MH i2c: 01 07 00 1A 1B 00 00 00 00 00 FF 0F 4A [01:36:31]process_action close_receipt done [01:36:31]requested_data is exist [01:36:31]produce_requested_data [01:36:31]requested_item fm.sn is exist - process it [01:36:31]wFMCommunicate request_size=4 [01:36:31]MH_SAM_APDU [01:36:31]CAPDU: 80 11 00 00 [01:36:31]Write to MH i2c: E2 08 00 1B 1B 80 11 00 00 00 00 00 00 B0 [01:36:31]Write i2c OK [01:36:31]MH_I2C_Read... [01:36:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:36:31]Read from MH i2c: E2 [01:36:31]MH_I2C_Read... [01:36:31]Read from MH i2c: E2 17 00 [01:36:31]MH_I2C_Read... [01:36:31]Read from MH i2c: E2 17 00 1B 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 FF [01:36:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [01:36:31]wFMCommunicate OK [01:36:31]requested_item fd.num is exist - process it [01:36:31]SAM_PROTO_GetFieldsCounters [01:36:31]wFMCommunicate request_size=4 [01:36:31]MH_SAM_APDU [01:36:31]CAPDU: 80 13 00 00 [01:36:31]Write to MH i2c: E2 08 00 1C 1B 80 13 00 00 00 00 00 00 B3 [01:36:31]Write i2c OK [01:36:31]MH_I2C_Read... [01:36:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:36:31]Read from MH i2c: E2 [01:36:31]MH_I2C_Read... [01:36:31]Read from MH i2c: E2 62 00 [01:36:31]MH_I2C_Read... [01:36:31]Read from MH i2c: E2 62 00 1C 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 EC 72 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 EE [01:36:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 EC 72 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:36:31]wFMCommunicate OK [01:36:31]SAM_PROTO_GetFieldsCounters done [01:36:31]requested_item shift.num is exist - process it [01:36:31]requested_item shift.opened is exist - process it [01:36:31]req_shift_opened [01:36:31]FM_GetShiftState [01:36:31]SAM_PROTO_GetShiftState [01:36:31]wFMCommunicate request_size=4 [01:36:31]MH_SAM_APDU [01:36:31]CAPDU: 80 13 01 00 [01:36:31]Write to MH i2c: E2 08 00 1D 1B 80 13 01 00 00 00 00 00 B5 [01:36:31]Write i2c OK [01:36:31]MH_I2C_Read... [01:36:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:36:31]Read from MH i2c: E2 [01:36:31]MH_I2C_Read... [01:36:31]Read from MH i2c: E2 0E 00 [01:36:31]MH_I2C_Read... [01:36:31]Read from MH i2c: E2 0E 00 1D 1B 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 A9 [01:36:31]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [01:36:31]wFMCommunicate OK [01:36:31]SAM_PROTO_GetShiftState done [01:36:31]FM_GetShiftState done [01:36:31]req_shift_opened done [01:36:31]requested_item shift.open_date is exist - process it [01:36:31]req_shift_open_date [01:36:31]req_shift_open_date done [01:36:31]produce_requested_data done [01:36:31]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29420,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [01:36:31]process_action_free close_receipt [01:36:31]json_value_free [01:36:31]json_value_free done [01:36:31]process_json_proto returns [01:36:31]Send response to host [01:36:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29420,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [01:36:31]free response buf [01:36:31]execute_script done [01:36:31]execute_script returns [01:36:31]free content buf [01:36:31]Sock 9.Close socket [01:36:31]Sock 9.Thread stoped [01:36:34]OFD Sender: No OFD packet to send [01:36:39]OFD Sender: No OFD packet to send [01:36:44]OFD Sender: No OFD packet to send [01:36:49]OFD Sender: No OFD packet to send [01:36:54]OFD Sender: No OFD packet to send [01:36:59]OFD Sender: No OFD packet to send [01:37:04]OFD Sender: No OFD packet to send [01:37:10]OFD Sender: No OFD packet to send [01:37:15]OFD Sender: No OFD packet to send [01:37:20]OFD Sender: No OFD packet to send [01:37:25]OFD Sender: No OFD packet to send [01:37:30]OFD Sender: No OFD packet to send [01:37:35]OFD Sender: No OFD packet to send [01:37:40]OFD Sender: No OFD packet to send [01:37:45]OFD Sender: No OFD packet to send [01:37:50]OFD Sender: No OFD packet to send [01:37:55]OFD Sender: No OFD packet to send [01:38:00]OFD Sender: No OFD packet to send [01:38:05]OFD Sender: No OFD packet to send [01:38:10]OFD Sender: No OFD packet to send [01:38:15]OFD Sender: No OFD packet to send [01:38:20]OFD Sender: No OFD packet to send [01:38:25]OFD Sender: No OFD packet to send [01:38:30]OFD Sender: No OFD packet to send [01:38:35]OFD Sender: No OFD packet to send [01:38:40]OFD Sender: No OFD packet to send [01:38:45]OFD Sender: No OFD packet to send [01:38:50]OFD Sender: No OFD packet to send [01:38:55]OFD Sender: No OFD packet to send [01:39:00]OFD Sender: No OFD packet to send [01:39:05]OFD Sender: No OFD packet to send [01:39:10]OFD Sender: No OFD packet to send [01:39:15]OFD Sender: No OFD packet to send [01:39:20]OFD Sender: No OFD packet to send [01:39:25]OFD Sender: No OFD packet to send [01:39:30]OFD Sender: No OFD packet to send [01:39:35]OFD Sender: No OFD packet to send [01:39:40]OFD Sender: No OFD packet to send [01:39:45]OFD Sender: No OFD packet to send [01:39:50]OFD Sender: No OFD packet to send [01:39:55]OFD Sender: No OFD packet to send [01:40:00]OFD Sender: No OFD packet to send [01:40:05]OFD Sender: No OFD packet to send [01:40:10]OFD Sender: No OFD packet to send [01:40:15]OFD Sender: No OFD packet to send [01:40:20]OFD Sender: No OFD packet to send [01:40:25]OFD Sender: No OFD packet to send [01:40:30]OFD Sender: No OFD packet to send [01:40:35]OFD Sender: No OFD packet to send [01:40:40]OFD Sender: No OFD packet to send [01:40:45]OFD Sender: No OFD packet to send [01:40:50]OFD Sender: No OFD packet to send [01:40:55]OFD Sender: No OFD packet to send [01:41:00]OFD Sender: No OFD packet to send [01:41:05]OFD Sender: No OFD packet to send [01:41:10]OFD Sender: No OFD packet to send [01:41:15]OFD Sender: No OFD packet to send [01:41:20]OFD Sender: No OFD packet to send [01:41:25]OFD Sender: No OFD packet to send [01:41:30]OFD Sender: No OFD packet to send [01:41:35]OFD Sender: No OFD packet to send [01:41:40]OFD Sender: No OFD packet to send [01:41:45]OFD Sender: No OFD packet to send [01:41:50]OFD Sender: No OFD packet to send [01:41:55]OFD Sender: No OFD packet to send [01:42:00]OFD Sender: No OFD packet to send [01:42:05]OFD Sender: No OFD packet to send [01:42:10]OFD Sender: No OFD packet to send [01:42:15]OFD Sender: No OFD packet to send [01:42:20]OFD Sender: No OFD packet to send [01:42:25]OFD Sender: No OFD packet to send [01:42:30]OFD Sender: No OFD packet to send [01:42:35]OFD Sender: No OFD packet to send [01:42:40]OFD Sender: No OFD packet to send [01:42:45]OFD Sender: No OFD packet to send [01:42:50]OFD Sender: No OFD packet to send [01:42:55]OFD Sender: No OFD packet to send [01:43:00]OFD Sender: No OFD packet to send [01:43:05]OFD Sender: No OFD packet to send [01:43:10]OFD Sender: No OFD packet to send [01:43:15]OFD Sender: No OFD packet to send [01:43:20]OFD Sender: No OFD packet to send [01:43:25]OFD Sender: No OFD packet to send [01:43:30]OFD Sender: No OFD packet to send [01:43:35]OFD Sender: No OFD packet to send [01:43:40]OFD Sender: No OFD packet to send [01:43:45]OFD Sender: No OFD packet to send [01:43:50]OFD Sender: No OFD packet to send [01:43:55]OFD Sender: No OFD packet to send [01:44:00]OFD Sender: No OFD packet to send [01:44:05]OFD Sender: No OFD packet to send [01:44:10]OFD Sender: No OFD packet to send [01:44:15]OFD Sender: No OFD packet to send [01:44:20]OFD Sender: No OFD packet to send [01:44:25]OFD Sender: No OFD packet to send [01:44:30]OFD Sender: No OFD packet to send [01:44:35]OFD Sender: No OFD packet to send [01:44:40]OFD Sender: No OFD packet to send [01:44:45]OFD Sender: No OFD packet to send [01:44:50]OFD Sender: No OFD packet to send [01:44:55]OFD Sender: No OFD packet to send [01:45:00]OFD Sender: No OFD packet to send [01:45:05]OFD Sender: No OFD packet to send [01:45:10]OFD Sender: No OFD packet to send [01:45:15]OFD Sender: No OFD packet to send [01:45:20]OFD Sender: No OFD packet to send [01:45:25]OFD Sender: No OFD packet to send [01:45:30]OFD Sender: No OFD packet to send [01:45:35]OFD Sender: No OFD packet to send [01:45:40]OFD Sender: No OFD packet to send [01:45:45]OFD Sender: No OFD packet to send [01:45:50]OFD Sender: No OFD packet to send [01:45:55]OFD Sender: No OFD packet to send [01:46:00]OFD Sender: No OFD packet to send [01:46:05]OFD Sender: No OFD packet to send [01:46:10]OFD Sender: No OFD packet to send [01:46:15]OFD Sender: No OFD packet to send [01:46:20]OFD Sender: No OFD packet to send [01:46:25]OFD Sender: No OFD packet to send [01:46:30]OFD Sender: No OFD packet to send [01:46:35]OFD Sender: No OFD packet to send [01:46:40]OFD Sender: No OFD packet to send [01:46:45]OFD Sender: No OFD packet to send [01:46:50]OFD Sender: No OFD packet to send [01:46:55]OFD Sender: No OFD packet to send [01:47:00]OFD Sender: No OFD packet to send [01:47:05]OFD Sender: No OFD packet to send [01:47:10]OFD Sender: No OFD packet to send [01:47:15]OFD Sender: No OFD packet to send [01:47:20]OFD Sender: No OFD packet to send [01:47:25]OFD Sender: No OFD packet to send [01:47:30]OFD Sender: No OFD packet to send [01:47:35]OFD Sender: No OFD packet to send [01:47:40]OFD Sender: No OFD packet to send [01:47:45]OFD Sender: No OFD packet to send [01:47:50]OFD Sender: No OFD packet to send [01:47:55]OFD Sender: No OFD packet to send [01:48:00]OFD Sender: No OFD packet to send [01:48:05]OFD Sender: No OFD packet to send [01:48:10]OFD Sender: No OFD packet to send [01:48:15]OFD Sender: No OFD packet to send [01:48:20]OFD Sender: No OFD packet to send [01:48:25]OFD Sender: No OFD packet to send [01:48:30]OFD Sender: No OFD packet to send [01:48:35]OFD Sender: No OFD packet to send [01:48:40]OFD Sender: No OFD packet to send [01:48:45]OFD Sender: No OFD packet to send [01:48:50]OFD Sender: No OFD packet to send [01:48:55]OFD Sender: No OFD packet to send [01:49:00]OFD Sender: No OFD packet to send [01:49:05]OFD Sender: No OFD packet to send [01:49:10]OFD Sender: No OFD packet to send [01:49:15]OFD Sender: No OFD packet to send [01:49:20]OFD Sender: No OFD packet to send [01:49:25]OFD Sender: No OFD packet to send [01:49:30]OFD Sender: No OFD packet to send [01:49:35]OFD Sender: No OFD packet to send [01:49:40]OFD Sender: No OFD packet to send [01:49:45]OFD Sender: No OFD packet to send [01:49:50]OFD Sender: No OFD packet to send [01:49:55]OFD Sender: No OFD packet to send [01:50:00]OFD Sender: No OFD packet to send [01:50:05]OFD Sender: No OFD packet to send [01:50:10]OFD Sender: No OFD packet to send [01:50:15]OFD Sender: No OFD packet to send [01:50:20]OFD Sender: No OFD packet to send [01:50:25]OFD Sender: No OFD packet to send [01:50:30]OFD Sender: No OFD packet to send [01:50:35]OFD Sender: No OFD packet to send [01:50:40]OFD Sender: No OFD packet to send [01:50:45]OFD Sender: No OFD packet to send [01:50:50]OFD Sender: No OFD packet to send [01:50:55]OFD Sender: No OFD packet to send [01:51:00]OFD Sender: No OFD packet to send [01:51:05]OFD Sender: No OFD packet to send [01:51:10]OFD Sender: No OFD packet to send [01:51:15]OFD Sender: No OFD packet to send [01:51:20]OFD Sender: No OFD packet to send [01:51:25]OFD Sender: No OFD packet to send [01:51:30]OFD Sender: No OFD packet to send [01:51:35]OFD Sender: No OFD packet to send [01:51:40]OFD Sender: No OFD packet to send [01:51:45]OFD Sender: No OFD packet to send [01:51:50]OFD Sender: No OFD packet to send [01:51:55]OFD Sender: No OFD packet to send [01:52:00]OFD Sender: No OFD packet to send [01:52:05]OFD Sender: No OFD packet to send [01:52:10]OFD Sender: No OFD packet to send [01:52:15]OFD Sender: No OFD packet to send [01:52:20]OFD Sender: No OFD packet to send [01:52:25]OFD Sender: No OFD packet to send [01:52:30]OFD Sender: No OFD packet to send [01:52:35]OFD Sender: No OFD packet to send [01:52:40]OFD Sender: No OFD packet to send [01:52:45]OFD Sender: No OFD packet to send [01:52:50]OFD Sender: No OFD packet to send [01:52:55]OFD Sender: No OFD packet to send [01:53:00]OFD Sender: No OFD packet to send [01:53:05]OFD Sender: No OFD packet to send [01:53:10]OFD Sender: No OFD packet to send [01:53:15]OFD Sender: No OFD packet to send [01:53:20]OFD Sender: No OFD packet to send [01:53:25]OFD Sender: No OFD packet to send [01:53:30]OFD Sender: No OFD packet to send [01:53:35]OFD Sender: No OFD packet to send [01:53:40]OFD Sender: No OFD packet to send [01:53:45]OFD Sender: No OFD packet to send [01:53:50]OFD Sender: No OFD packet to send [01:53:55]OFD Sender: No OFD packet to send [01:54:00]OFD Sender: No OFD packet to send [01:54:05]OFD Sender: No OFD packet to send [01:54:10]OFD Sender: No OFD packet to send [01:54:15]OFD Sender: No OFD packet to send [01:54:20]OFD Sender: No OFD packet to send [01:54:25]OFD Sender: No OFD packet to send [01:54:30]OFD Sender: No OFD packet to send [01:54:35]OFD Sender: No OFD packet to send [01:54:40]OFD Sender: No OFD packet to send [01:54:45]OFD Sender: No OFD packet to send [01:54:50]OFD Sender: No OFD packet to send [01:54:55]OFD Sender: No OFD packet to send [01:55:00]OFD Sender: No OFD packet to send [01:55:05]OFD Sender: No OFD packet to send [01:55:10]OFD Sender: No OFD packet to send [01:55:15]OFD Sender: No OFD packet to send [01:55:20]OFD Sender: No OFD packet to send [01:55:25]OFD Sender: No OFD packet to send [01:55:30]OFD Sender: No OFD packet to send [01:55:35]OFD Sender: No OFD packet to send [01:55:40]OFD Sender: No OFD packet to send [01:55:45]OFD Sender: No OFD packet to send [01:55:50]OFD Sender: No OFD packet to send [01:55:55]OFD Sender: No OFD packet to send [01:56:00]OFD Sender: No OFD packet to send [01:56:05]OFD Sender: No OFD packet to send [01:56:10]OFD Sender: No OFD packet to send [01:56:15]OFD Sender: No OFD packet to send [01:56:20]OFD Sender: No OFD packet to send [01:56:25]OFD Sender: No OFD packet to send [01:56:30]OFD Sender: No OFD packet to send [01:56:35]OFD Sender: No OFD packet to send [01:56:40]OFD Sender: No OFD packet to send [01:56:45]OFD Sender: No OFD packet to send [01:56:50]OFD Sender: No OFD packet to send [01:56:55]OFD Sender: No OFD packet to send [01:57:00]OFD Sender: No OFD packet to send [01:57:05]OFD Sender: No OFD packet to send [01:57:10]OFD Sender: No OFD packet to send [01:57:15]OFD Sender: No OFD packet to send [01:57:20]OFD Sender: No OFD packet to send [01:57:25]OFD Sender: No OFD packet to send [01:57:30]OFD Sender: No OFD packet to send [01:57:35]OFD Sender: No OFD packet to send [01:57:40]OFD Sender: No OFD packet to send [01:57:45]OFD Sender: No OFD packet to send [01:57:50]OFD Sender: No OFD packet to send [01:57:55]OFD Sender: No OFD packet to send [01:58:00]OFD Sender: No OFD packet to send [01:58:05]OFD Sender: No OFD packet to send [01:58:10]OFD Sender: No OFD packet to send [01:58:15]OFD Sender: No OFD packet to send [01:58:20]OFD Sender: No OFD packet to send [01:58:25]OFD Sender: No OFD packet to send [01:58:30]OFD Sender: No OFD packet to send [01:58:35]OFD Sender: No OFD packet to send [01:58:40]OFD Sender: No OFD packet to send [01:58:46]OFD Sender: No OFD packet to send [01:58:51]OFD Sender: No OFD packet to send [01:58:56]OFD Sender: No OFD packet to send [01:59:01]OFD Sender: No OFD packet to send [01:59:06]OFD Sender: No OFD packet to send [01:59:11]OFD Sender: No OFD packet to send [01:59:16]OFD Sender: No OFD packet to send [01:59:21]OFD Sender: No OFD packet to send [01:59:26]OFD Sender: No OFD packet to send [01:59:31]OFD Sender: No OFD packet to send [01:59:36]OFD Sender: No OFD packet to send [01:59:41]OFD Sender: No OFD packet to send [01:59:46]OFD Sender: No OFD packet to send [01:59:51]OFD Sender: No OFD packet to send [01:59:56]OFD Sender: No OFD packet to send [02:00:01]OFD Sender: No OFD packet to send [02:00:06]OFD Sender: No OFD packet to send [02:00:11]OFD Sender: No OFD packet to send [02:00:16]OFD Sender: No OFD packet to send [02:00:21]OFD Sender: No OFD packet to send [02:00:26]OFD Sender: No OFD packet to send [02:00:31]OFD Sender: No OFD packet to send [02:00:36]OFD Sender: No OFD packet to send [02:00:41]OFD Sender: No OFD packet to send [02:00:46]OFD Sender: No OFD packet to send [02:00:51]OFD Sender: No OFD packet to send [02:00:56]OFD Sender: No OFD packet to send [02:01:01]OFD Sender: No OFD packet to send [02:01:06]OFD Sender: No OFD packet to send [02:01:11]OFD Sender: No OFD packet to send [02:01:16]OFD Sender: No OFD packet to send [02:01:21]OFD Sender: No OFD packet to send [02:01:26]OFD Sender: No OFD packet to send [02:01:31]OFD Sender: No OFD packet to send [02:01:36]OFD Sender: No OFD packet to send [02:01:41]OFD Sender: No OFD packet to send [02:01:46]OFD Sender: No OFD packet to send [02:01:51]OFD Sender: No OFD packet to send [02:01:56]OFD Sender: No OFD packet to send [02:02:01]OFD Sender: No OFD packet to send [02:02:06]OFD Sender: No OFD packet to send [02:02:11]OFD Sender: No OFD packet to send [02:02:16]OFD Sender: No OFD packet to send [02:02:21]OFD Sender: No OFD packet to send [02:02:26]OFD Sender: No OFD packet to send [02:02:31]OFD Sender: No OFD packet to send [02:02:36]OFD Sender: No OFD packet to send [02:02:41]OFD Sender: No OFD packet to send [02:02:46]OFD Sender: No OFD packet to send [02:02:51]OFD Sender: No OFD packet to send [02:02:56]OFD Sender: No OFD packet to send [02:03:01]OFD Sender: No OFD packet to send [02:03:06]OFD Sender: No OFD packet to send [02:03:11]OFD Sender: No OFD packet to send [02:03:16]OFD Sender: No OFD packet to send [02:03:21]OFD Sender: No OFD packet to send [02:03:26]OFD Sender: No OFD packet to send [02:03:31]OFD Sender: No OFD packet to send [02:03:36]OFD Sender: No OFD packet to send [02:03:41]OFD Sender: No OFD packet to send [02:03:46]OFD Sender: No OFD packet to send [02:03:51]OFD Sender: No OFD packet to send [02:03:56]OFD Sender: No OFD packet to send [02:04:01]OFD Sender: No OFD packet to send [02:04:06]OFD Sender: No OFD packet to send [02:04:11]OFD Sender: No OFD packet to send [02:04:16]OFD Sender: No OFD packet to send [02:04:21]OFD Sender: No OFD packet to send [02:04:26]OFD Sender: No OFD packet to send [02:04:31]OFD Sender: No OFD packet to send [02:04:36]OFD Sender: No OFD packet to send [02:04:41]OFD Sender: No OFD packet to send [02:04:46]OFD Sender: No OFD packet to send [02:04:51]OFD Sender: No OFD packet to send [02:04:56]OFD Sender: No OFD packet to send [02:05:01]OFD Sender: No OFD packet to send [02:05:06]OFD Sender: No OFD packet to send [02:05:11]OFD Sender: No OFD packet to send [02:05:16]OFD Sender: No OFD packet to send [02:05:21]OFD Sender: No OFD packet to send [02:05:26]OFD Sender: No OFD packet to send [02:05:31]OFD Sender: No OFD packet to send [02:05:36]OFD Sender: No OFD packet to send [02:05:41]OFD Sender: No OFD packet to send [02:05:46]OFD Sender: No OFD packet to send [02:05:51]OFD Sender: No OFD packet to send [02:05:56]OFD Sender: No OFD packet to send [02:06:01]OFD Sender: No OFD packet to send [02:06:06]OFD Sender: No OFD packet to send [02:06:11]OFD Sender: No OFD packet to send [02:06:16]OFD Sender: No OFD packet to send [02:06:21]OFD Sender: No OFD packet to send [02:06:26]OFD Sender: No OFD packet to send [02:06:31]OFD Sender: No OFD packet to send [02:06:36]OFD Sender: No OFD packet to send [02:06:41]OFD Sender: No OFD packet to send [02:06:46]OFD Sender: No OFD packet to send [02:06:51]OFD Sender: No OFD packet to send [02:06:56]OFD Sender: No OFD packet to send [02:07:01]OFD Sender: No OFD packet to send [02:07:06]OFD Sender: No OFD packet to send [02:07:11]accept exits with 8 [02:07:11]New connection [02:07:11]New thread 3066969444 created [02:07:11]Thread 3067112804 joined [02:07:11]Waiting for new connection... [02:07:11] Sock 8.Parse request [02:07:11]Sock 8.Check first char [02:07:11]Sock 8.First char is OK [02:07:11]request: POST /json_proto HTTP/1.0 [02:07:11]Method: POST [02:07:11]URL: /json_proto [02:07:11]Method is POST - this is cgi request [02:07:11]url: /json_proto [02:07:11]query_string will be loaded in cgi processing [02:07:11]execute_cgi json_proto POST (null) [02:07:11]execute_cgi path=json_proto method=POST [02:07:11]POST find Content-Length [02:07:11]Host: 172.17.33.3:8080 [02:07:11]Content-Length: 670 [02:07:11]Content-Type: application/json [02:07:11] [02:07:11]POST finish read [02:07:11]Found Content-Length = 670 [02:07:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347815", "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" : 5.320, "sum" : 350.06, "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" ] } } [02:07:11]execute_script... [02:07: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)347815", "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" : 5.320, "sum" : 350.06, "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" ] } } [02:07:11]POST & json_proto [02:07:11]process_json_proto [02:07:11]json parsed OK: [02:07:11]protocol is kg_v1.0 [02:07:11]action value=close_receipt [02:07:11]process_action close_receipt [02:07:11]cmd_close_receipt [02:07:11]MH_GetDate [02:07:11]Write to MH i2c: F0 00 00 1E 1B 28 [02:07:11]Write i2c OK [02:07:11]MH_I2C_Read... [02:07:11]Read from MH i2c: F0 [02:07:11]MH_I2C_Read... [02:07:11]Read from MH i2c: F0 09 00 [02:07:11]MH_I2C_Read... [02:07:11]Read from MH i2c: F0 09 00 1E 1B 00 D1 8B 1C 66 23 5B 8F 65 81 [02:07:11]GetLastDocTimeStamp 1713144989 [02:07:11]current date 1713146833 [02:07:11]FM_GetShiftState [02:07:11]SAM_PROTO_GetShiftState [02:07:11]wFMCommunicate request_size=4 [02:07:11]MH_SAM_APDU [02:07:11]CAPDU: 80 13 01 00 [02:07:11]Write to MH i2c: E2 08 00 1F 1B 80 13 01 00 00 00 00 00 B7 [02:07:11]Write i2c OK [02:07:11]MH_I2C_Read... [02:07:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:07:11]Read from MH i2c: E2 [02:07:11]MH_I2C_Read... [02:07:11]Read from MH i2c: E2 0E 00 [02:07:11]MH_I2C_Read... [02:07:11]Read from MH i2c: E2 0E 00 1F 1B 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 AB [02:07:11]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [02:07:11]wFMCommunicate OK [02:07:11]SAM_PROTO_GetShiftState done [02:07:11]FM_GetShiftState done [02:07:11]opened in 1713140468 [02:07:11]opened+sec_in_day 1713226868 [02:07:11]quantity*price = 35005 [02:07:11]sum+1 = 35007 [02:07:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.17 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 15 15.04.2024 02:07 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29421 ФПД: 219413123689567 1/tax-web-control/client/api/v1/ticket?date=20240415T020713&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29421&fm=219413123689567&tin=02508201610067®Number=0000138879044617&sum=35000 [02:07:12]StoreToDocumentArchive [02:07:12]shift 117 fd 29421 [02:07:12]save to /storage/0117/doc_00029421 [02:07:12]save last doc name /storage/0117/doc_00029421 to /storage/kkm_last_doc_name [02:07:12]save OK [02:07:12]Clear old archive folders... [02:07:12]ProcessDocumentItem done err = 0, tmpTLVsize=252 [02:07:12]tlvbuf is B6F01850 [02:07:12]SAM_PROTO_ClearQueue [02:07:12]wFMCommunicate request_size=4 [02:07:12]MH_SAM_APDU [02:07:12]CAPDU: 80 09 00 00 [02:07:12]Write to MH i2c: E2 08 00 2C 1B 80 09 00 00 00 00 00 00 B9 [02:07:12]Write i2c OK [02:07:12]MH_I2C_Read... [02:07:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:07:12]Read from MH i2c: E2 [02:07:12]MH_I2C_Read... [02:07:12]Read from MH i2c: E2 03 00 [02:07:12]MH_I2C_Read... [02:07:12]Read from MH i2c: E2 03 00 2C 1B 00 90 00 BB [02:07:12]RAPDU: 90 00 [02:07:12]wFMCommunicate OK [02:07:12]SAM_PROTO_ClearQueue done [02:07:12]KKMCreateOFDPacket [02:07:12]OFDProtocolAddRootSTLVToBuf [02:07:12]FM_MakeSignedData [02:07:12]FM_MakeSignedData [02:07:12]SAM_PROTO_SignData [02:07:12]wFMCommunicate request_size=4 [02:07:12]MH_SAM_APDU [02:07:12]CAPDU: 80 0D 01 02 [02:07:12]Write to MH i2c: E2 08 00 2D 1B 80 0D 01 02 00 00 00 00 C1 [02:07:12]Write i2c OK [02:07:12]MH_I2C_Read... [02:07:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:07:12]Read from MH i2c: E2 [02:07:12]MH_I2C_Read... [02:07:12]Read from MH i2c: E2 03 00 [02:07:12]MH_I2C_Read... [02:07:12]Read from MH i2c: E2 03 00 2D 1B 00 90 00 BC [02:07:12]RAPDU: 90 00 [02:07:12]wFMCommunicate OK [02:07:12]wFMCommunicate request_size=255 [02:07:12]MH_SAM_APDU [02:07: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 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BE 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 D1 8B 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 ED 72 00 00 35 04 06 00 [02:07:12]Write to MH i2c: E2 02 01 2E 1B 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BE 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 D1 8B 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 ED 72 00 00 35 04 06 00 00 00 8C [02:07:12]Write i2c OK [02:07:12]MH_I2C_Read... [02:07:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:07:12]Read from MH i2c: E2 [02:07:12]MH_I2C_Read... [02:07:12]Read from MH i2c: E2 03 00 [02:07:12]MH_I2C_Read... [02:07:12]Read from MH i2c: E2 03 00 2E 1B 00 90 00 BD [02:07:12]RAPDU: 90 00 [02:07:12]wFMCommunicate OK [02:07:12]wFMCommunicate request_size=11 [02:07:12]MH_SAM_APDU [02:07:12]CAPDU: 80 0D 02 02 06 C7 8E 19 4B EC 5F [02:07:12]Write to MH i2c: E2 0E 00 2F 1B 80 0D 02 02 06 00 C7 8E 19 4B EC 5F 00 00 D4 [02:07:12]Write i2c OK [02:07:12]MH_I2C_Read... [02:07:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:07:12]Read from MH i2c: E2 [02:07:12]MH_I2C_Read... [02:07:12]Read from MH i2c: E2 03 00 [02:07:12]MH_I2C_Read... [02:07:12]Read from MH i2c: E2 03 00 2F 1B 00 90 00 BE [02:07:12]RAPDU: 90 00 [02:07:12]wFMCommunicate OK [02:07:12]wFMCommunicate request_size=4 [02:07:12]MH_SAM_APDU [02:07:12]CAPDU: 80 0D 03 02 [02:07:12]Write to MH i2c: E2 08 00 30 1B 80 0D 03 02 00 00 00 00 C6 [02:07:12]Write i2c OK [02:07:12]MH_I2C_Read... [02:07:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:07:12]Read from MH i2c: E2 [02:07:12]MH_I2C_Read... [02:07:12]Read from MH i2c: E2 0B 00 [02:07:12]MH_I2C_Read... [02:07:12]Read from MH i2c: E2 0B 00 30 1B 00 43 3C 8E 36 20 16 3A 73 90 00 ED [02:07:12]RAPDU: 43 3C 8E 36 20 16 3A 73 90 00 [02:07:12]wFMCommunicate OK [02:07:12]SAM_PROTO_SignData done [02:07:12]FM_MakeSignedData done [02:07:12]CreateOFDProtocolMessage [02:07:12]wFMCommunicate request_size=4 [02:07:12]MH_SAM_APDU [02:07:12]CAPDU: 80 11 00 00 [02:07:12]Write to MH i2c: E2 08 00 31 1B 80 11 00 00 00 00 00 00 C6 [02:07:12]Write i2c OK [02:07:12]MH_I2C_Read... [02:07:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:07:12]Read from MH i2c: E2 [02:07:12]MH_I2C_Read... [02:07:12]Read from MH i2c: E2 17 00 [02:07:12]MH_I2C_Read... [02:07:12]Read from MH i2c: E2 17 00 31 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 15 [02:07:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [02:07:12]wFMCommunicate OK [02:07:12]CreateOFDProtocolMessage done [02:07:12]OFDSenderStorePacket 29421 [02:07:12]StoreOFDPacket docnum=29421 [02:07:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 6D 24 08 01 56 FC 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BE 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 D1 8B 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 ED 72 00 00 35 04 06 00 C7 8E 19 4B EC 5F 43 3C 8E 36 20 16 3A 73 [02:07:12]CheckFolder [02:07:12]dirname=/storage/ofd_packets [02:07:12]CheckFolder done [02:07:12]ProducePacketName [02:07:12]name=ofd_packets/00029421 [02:07:12]NVStorageSaveData ofd_packets/00029421 [02:07:12]File name is /storage/ofd_packets/00029421 [02:07:12]Write 302 bytes [02:07:12]NVStorageSaveData done [02:07:12]OFDSenderStorePacket done [02:07:12]KKMCreateOFDPacket done [02:07:12]NVStorageSaveData kkm_last_timestamp [02:07:12]File name is /storage/kkm_last_timestamp [02:07:12]Write 4 bytes [02:07:12]NVStorageSaveData done [02:07:12]ExternCall_PrintAddStr [02:07:12]wPrintStart [02:07:12]Write to MH i2c: 01 00 00 32 1B 4D [02:07:12]Write i2c OK [02:07:12]MH_I2C_Read... [02:07:12]Read from MH i2c: 01 [02:07:12]MH_I2C_Read... [02:07:12]Read from MH i2c: 01 07 00 [02:07:12]MH_I2C_Read... [02:07:12]Read from MH i2c: 01 07 00 32 1B 00 00 00 00 00 FF 0F 62 [02:07:12]RasterBufferAndPrint [02:07:12]line Счет N : (1)347815 [02:07:12]line ИНН: 02508201610067 [02:07:12]line Контрольно-Кассовый Чек [02:07:12]line ПРОДАЖА [02:07:12]line ТРК (МРК, ГНК) : 41 [02:07:12]line Товар: 2710124130 [02:07:12]line SUPER-92-К-5 [02:07:12]line 5.320 * 65.80 [02:07:12]line = 350.06 [02:07:12]line НДС 12% НСП 1% [02:07:12]line > о реализуемом товаре [02:07:12]line ОКРУГЛЕНИЕ: -0.06 [02:07:12]line ИТОГО: 350.00 [02:07:12]line Внесено: 350.00 [02:07:12]line СДАЧА: 0.00 [02:07:12]line НСП 1% : 3.10 [02:07:12]line НДС 12% : 37.17 [02:07:12]line Наличными: 350.00 [02:07:12]line Безнал.: 0.00 [02:07:12]line Место: АЗС № 108 "Партнер Нефть" [02:07:12]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [02:07:12]line СНО: Общий режим [02:07:12]line Чек 15 15.04.2024 02:07 [02:07:12]line Смена: 117 ФФД: 1.0 [02:07:12]line ЗНМ: 0300000027 [02:07:12]line РНМ: 0000138879044617 [02:07:12]line Версия ККМ: 001 [02:07:12]line ФМ: 0000000000963154 [02:07:12]line ФД: 29421 [02:07:12]line ФПД: 219413123689567 [02:07:12]line 1/tax-web-control/client/api/v1/ticket?date=20240415T020713&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29421&fm=219413123689567&tin=02508201610067®Number=0000138879044617&sum=35000 [02:07:13]OFD Sender: Processing packet 29421 [packets to send 8, broken 7] [02:07:13]ProducePacketName [02:07:13]name=ofd_packets/00029421 [02:07:13]OFD Sender: To server: pG, [02:07:13]CommunicateWithHost lk.salyk.kg:30040 [02:07:13]ConnectInit lk.salyk.kg [02:07:13]written 0, free lines is 4095 [02:07:13]Connected sock=10 [02:07:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 6D 24 08 01 56 FC 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BE 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 D1 8B 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 ED 72 00 00 35 04 06 00 C7 8E 19 4B EC 5F 43 3C 8E 36 20 16 3A 73 [02:07:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 7E 3F 47 00 C5 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 ED 72 00 00 F4 03 04 00 73 36 1C 66 B6 04 01 00 00 C6 E3 B5 8D 4A D0 D8 D7 [02:07:13]CommunicateWithHost err = 0 [02:07:13]CheckOFDResponse [02:07:13]1017 (14) - 77093643461234 [02:07:13]1041 (16) - 0000000000963154 [02:07:13]1040 (4) - 29421 [02:07:13]1012 (4) - 14.04.2024 20:02 [02:07:13]1206 (1) - 0 [02:07:13]OFD Sender: Remove packet 29421 [02:07:13]ProducePacketName [02:07:13]name=ofd_packets/00029421 [02:07:13]NVStorageDeleteData [02:07:13]Write to MH i2c: 01 00 00 5C 1B 77 [02:07:13]Write i2c OK [02:07:13]MH_I2C_Read... [02:07:13]Read from MH i2c: 01 [02:07:13]MH_I2C_Read... [02:07:13]Read from MH i2c: 01 07 00 [02:07:13]MH_I2C_Read... [02:07:13]Read from MH i2c: 01 07 00 5C 1B 00 00 00 00 00 D0 0C 5A [02:07:13]RasterBufferAndPrint [02:07:13]line [02:07:13]line [02:07:13]line [02:07:13]line [02:07:13]line [02:07:13]written 0, free lines is 3286 [02:07:13]MH_Cut [02:07:13]Write to MH i2c: D1 01 00 63 1B 01 50 [02:07:13]Write i2c OK [02:07:13]MH_I2C_Read... [02:07:13]Read from MH i2c: D1 [02:07:13]MH_I2C_Read... [02:07:13]Read from MH i2c: D1 01 00 [02:07:13]MH_I2C_Read... [02:07:13]Read from MH i2c: D1 01 00 63 1B 00 4F [02:07:13]Write to MH i2c: 01 00 00 64 1B 7F [02:07:13]Write i2c OK [02:07:13]MH_I2C_Read... [02:07:14]OFD Sender: No OFD packet to send [02:07:14]*** Cut start [02:07:14]*** Partial cut [02:07:14]*** CUTSNS_PIN = 1 [02:07:14]*** CUTSNS_PIN = 0 [02:07:14]*** Brake cut motor [02:07:15]Read from MH i2c: 01 [02:07:15]MH_I2C_Read... [02:07:15]*** Stop cut motor [02:07:15]*** Cut end [02:07:15]Read from MH i2c: 01 07 00 [02:07:15]MH_I2C_Read... [02:07:15]Read from MH i2c: 01 07 00 64 1B 00 00 00 00 00 FF 0F 94 [02:07:15]process_action close_receipt done [02:07:15]requested_data is exist [02:07:15]produce_requested_data [02:07:15]requested_item fm.sn is exist - process it [02:07:15]wFMCommunicate request_size=4 [02:07:15]MH_SAM_APDU [02:07:15]CAPDU: 80 11 00 00 [02:07:15]Write to MH i2c: E2 08 00 65 1B 80 11 00 00 00 00 00 00 FA [02:07:15]Write i2c OK [02:07:15]MH_I2C_Read... [02:07:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:07:15]Read from MH i2c: E2 [02:07:15]MH_I2C_Read... [02:07:15]Read from MH i2c: E2 17 00 [02:07:15]MH_I2C_Read... [02:07:15]Read from MH i2c: E2 17 00 65 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 49 [02:07:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [02:07:15]wFMCommunicate OK [02:07:15]requested_item fd.num is exist - process it [02:07:15]SAM_PROTO_GetFieldsCounters [02:07:15]wFMCommunicate request_size=4 [02:07:15]MH_SAM_APDU [02:07:15]CAPDU: 80 13 00 00 [02:07:15]Write to MH i2c: E2 08 00 66 1B 80 13 00 00 00 00 00 00 FD [02:07:15]Write i2c OK [02:07:15]MH_I2C_Read... [02:07:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:07:15]Read from MH i2c: E2 [02:07:15]MH_I2C_Read... [02:07:15]Read from MH i2c: E2 62 00 [02:07:15]MH_I2C_Read... [02:07:15]Read from MH i2c: E2 62 00 66 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 ED 72 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 3C [02:07:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 ED 72 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:07:15]wFMCommunicate OK [02:07:15]SAM_PROTO_GetFieldsCounters done [02:07:15]requested_item shift.num is exist - process it [02:07:15]requested_item shift.opened is exist - process it [02:07:15]req_shift_opened [02:07:15]FM_GetShiftState [02:07:15]SAM_PROTO_GetShiftState [02:07:15]wFMCommunicate request_size=4 [02:07:15]MH_SAM_APDU [02:07:15]CAPDU: 80 13 01 00 [02:07:15]Write to MH i2c: E2 08 00 67 1B 80 13 01 00 00 00 00 00 FF [02:07:15]Write i2c OK [02:07:15]MH_I2C_Read... [02:07:15]Read from MH i2c: E2 [02:07:15]MH_I2C_Read... [02:07:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:07:15]Read from MH i2c: E2 0E 00 [02:07:15]MH_I2C_Read... [02:07:15]Read from MH i2c: E2 0E 00 67 1B 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 F3 [02:07:15]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [02:07:15]wFMCommunicate OK [02:07:15]SAM_PROTO_GetShiftState done [02:07:15]FM_GetShiftState done [02:07:15]req_shift_opened done [02:07:15]requested_item shift.open_date is exist - process it [02:07:15]req_shift_open_date [02:07:15]req_shift_open_date done [02:07:15]produce_requested_data done [02:07:15]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29421,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [02:07:15]process_action_free close_receipt [02:07:15]json_value_free [02:07:15]json_value_free done [02:07:15]process_json_proto returns [02:07:15]Send response to host [02:07:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29421,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [02:07:15]free response buf [02:07:15]execute_script done [02:07:15]execute_script returns [02:07:15]free content buf [02:07:15]Sock 8.Close socket [02:07:15]Sock 8.Thread stoped [02:07:19]OFD Sender: No OFD packet to send [02:07:24]OFD Sender: No OFD packet to send [02:07:29]OFD Sender: No OFD packet to send [02:07:34]OFD Sender: No OFD packet to send [02:07:39]OFD Sender: No OFD packet to send [02:07:44]OFD Sender: No OFD packet to send [02:07:49]OFD Sender: No OFD packet to send [02:07:54]OFD Sender: No OFD packet to send [02:07:59]OFD Sender: No OFD packet to send [02:08:04]OFD Sender: No OFD packet to send [02:08:09]OFD Sender: No OFD packet to send [02:08:14]OFD Sender: No OFD packet to send [02:08:19]OFD Sender: No OFD packet to send [02:08:24]OFD Sender: No OFD packet to send [02:08:29]OFD Sender: No OFD packet to send [02:08:34]OFD Sender: No OFD packet to send [02:08:39]OFD Sender: No OFD packet to send [02:08:44]OFD Sender: No OFD packet to send [02:08:49]OFD Sender: No OFD packet to send [02:08:54]OFD Sender: No OFD packet to send [02:08:59]OFD Sender: No OFD packet to send [02:09:04]OFD Sender: No OFD packet to send [02:09:09]OFD Sender: No OFD packet to send [02:09:14]OFD Sender: No OFD packet to send [02:09:19]OFD Sender: No OFD packet to send [02:09:24]OFD Sender: No OFD packet to send [02:09:29]OFD Sender: No OFD packet to send [02:09:34]OFD Sender: No OFD packet to send [02:09:39]OFD Sender: No OFD packet to send [02:09:44]OFD Sender: No OFD packet to send [02:09:49]OFD Sender: No OFD packet to send [02:09:54]OFD Sender: No OFD packet to send [02:09:59]OFD Sender: No OFD packet to send [02:10:04]OFD Sender: No OFD packet to send [02:10:09]OFD Sender: No OFD packet to send [02:10:14]OFD Sender: No OFD packet to send [02:10:19]OFD Sender: No OFD packet to send [02:10:24]OFD Sender: No OFD packet to send [02:10:29]OFD Sender: No OFD packet to send [02:10:34]OFD Sender: No OFD packet to send [02:10:39]OFD Sender: No OFD packet to send [02:10:44]OFD Sender: No OFD packet to send [02:10:49]OFD Sender: No OFD packet to send [02:10:54]OFD Sender: No OFD packet to send [02:10:59]OFD Sender: No OFD packet to send [02:11:04]OFD Sender: No OFD packet to send [02:11:09]OFD Sender: No OFD packet to send [02:11:14]OFD Sender: No OFD packet to send [02:11:19]OFD Sender: No OFD packet to send [02:11:24]OFD Sender: No OFD packet to send [02:11:29]OFD Sender: No OFD packet to send [02:11:34]OFD Sender: No OFD packet to send [02:11:39]OFD Sender: No OFD packet to send [02:11:44]OFD Sender: No OFD packet to send [02:11:49]OFD Sender: No OFD packet to send [02:11:54]OFD Sender: No OFD packet to send [02:11:59]OFD Sender: No OFD packet to send [02:12:04]OFD Sender: No OFD packet to send [02:12:09]OFD Sender: No OFD packet to send [02:12:14]OFD Sender: No OFD packet to send [02:12:19]OFD Sender: No OFD packet to send [02:12:24]OFD Sender: No OFD packet to send [02:12:29]OFD Sender: No OFD packet to send [02:12:34]OFD Sender: No OFD packet to send [02:12:34]accept exits with 9 [02:12:34]New connection [02:12:34]New thread 3067112804 created [02:12:34]Thread 3066969444 joined [02:12:34]Waiting for new connection... [02:12:34] Sock 9.Parse request [02:12:34]Sock 9.Check first char [02:12:34]Sock 9.First char is OK [02:12:34]request: POST /json_proto HTTP/1.0 [02:12:34]Method: POST [02:12:34]URL: /json_proto [02:12:34]Method is POST - this is cgi request [02:12:34]url: /json_proto [02:12:34]query_string will be loaded in cgi processing [02:12:34]execute_cgi json_proto POST (null) [02:12:34]execute_cgi path=json_proto method=POST [02:12:34]POST find Content-Length [02:12:34]Host: 172.17.33.3:8080 [02:12:34]Content-Length: 682 [02:12:34]Content-Type: application/json [02:12:34] [02:12:34]POST finish read [02:12:34]Found Content-Length = 682 [02:12:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347816", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 51.030, "sum" : 3306.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 3306.00, "payments": [ { "type": 0, "sum" : 3306.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:12:34]execute_script... [02:12: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)347816", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 51.030, "sum" : 3306.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 3306.00, "payments": [ { "type": 0, "sum" : 3306.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:12:34]POST & json_proto [02:12:34]process_json_proto [02:12:34]json parsed OK: [02:12:34]protocol is kg_v1.0 [02:12:34]action value=close_receipt [02:12:34]process_action close_receipt [02:12:34]cmd_close_receipt [02:12:34]MH_GetDate [02:12:34]Write to MH i2c: F0 00 00 68 1B 72 [02:12:34]Write i2c OK [02:12:34]MH_I2C_Read... [02:12:34]Read from MH i2c: F0 [02:12:34]MH_I2C_Read... [02:12:34]Read from MH i2c: F0 09 00 [02:12:34]MH_I2C_Read... [02:12:34]Read from MH i2c: F0 09 00 68 1B 00 14 8D 1C 66 23 5B 8F 65 10 [02:12:34]GetLastDocTimeStamp 1713146833 [02:12:34]current date 1713147156 [02:12:34]FM_GetShiftState [02:12:34]SAM_PROTO_GetShiftState [02:12:34]wFMCommunicate request_size=4 [02:12:34]MH_SAM_APDU [02:12:34]CAPDU: 80 13 01 00 [02:12:34]Write to MH i2c: E2 08 00 69 1B 80 13 01 00 00 00 00 00 01 [02:12:34]Write i2c OK [02:12:34]MH_I2C_Read... [02:12:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:12:34]Read from MH i2c: E2 [02:12:34]MH_I2C_Read... [02:12:34]Read from MH i2c: E2 0E 00 [02:12:34]MH_I2C_Read... [02:12:34]Read from MH i2c: E2 0E 00 69 1B 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 F5 [02:12:34]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [02:12:34]wFMCommunicate OK [02:12:34]SAM_PROTO_GetShiftState done [02:12:34]FM_GetShiftState done [02:12:34]opened in 1713140468 [02:12:34]opened+sec_in_day 1713226868 [02:12:34]quantity*price = 330674 [02:12:34]sum+1 = 330675 [02:12:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.74 ИТОГО: 3306.00 Внесено: 4000.00 СДАЧА: 694.00 НСП 1% : 29.26 НДС 12% : 351.16 Наличными: 3306.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 16 15.04.2024 02:12 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29422 ФПД: 39723682000355 1/tax-web-control/client/api/v1/ticket?date=20240415T021236&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29422&fm=39723682000355&tin=02508201610067®Number=0000138879044617&sum=330600 [02:12:35]StoreToDocumentArchive [02:12:35]shift 117 fd 29422 [02:12:35]save to /storage/0117/doc_00029422 [02:12:35]save last doc name /storage/0117/doc_00029422 to /storage/kkm_last_doc_name [02:12:35]save OK [02:12:35]Clear old archive folders... [02:12:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:12:35]tlvbuf is B6F01740 [02:12:35]SAM_PROTO_ClearQueue [02:12:35]wFMCommunicate request_size=4 [02:12:35]MH_SAM_APDU [02:12:35]CAPDU: 80 09 00 00 [02:12:35]Write to MH i2c: E2 08 00 76 1B 80 09 00 00 00 00 00 00 03 [02:12:35]Write i2c OK [02:12:35]MH_I2C_Read... [02:12:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:12:35]Read from MH i2c: E2 [02:12:35]MH_I2C_Read... [02:12:35]Read from MH i2c: E2 03 00 [02:12:35]MH_I2C_Read... [02:12:35]Read from MH i2c: E2 03 00 76 1B 00 90 00 05 [02:12:35]RAPDU: 90 00 [02:12:35]wFMCommunicate OK [02:12:35]SAM_PROTO_ClearQueue done [02:12:35]KKMCreateOFDPacket [02:12:35]OFDProtocolAddRootSTLVToBuf [02:12:35]FM_MakeSignedData [02:12:35]FM_MakeSignedData [02:12:35]SAM_PROTO_SignData [02:12:35]wFMCommunicate request_size=4 [02:12:35]MH_SAM_APDU [02:12:35]CAPDU: 80 0D 01 02 [02:12:35]Write to MH i2c: E2 08 00 77 1B 80 0D 01 02 00 00 00 00 0B [02:12:35]Write i2c OK [02:12:35]MH_I2C_Read... [02:12:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:12:35]Read from MH i2c: E2 [02:12:35]MH_I2C_Read... [02:12:35]Read from MH i2c: E2 03 00 [02:12:35]MH_I2C_Read... [02:12:35]Read from MH i2c: E2 03 00 77 1B 00 90 00 06 [02:12:35]RAPDU: 90 00 [02:12:35]wFMCommunicate OK [02:12:35]wFMCommunicate request_size=255 [02:12:35]MH_SAM_APDU [02:12: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 56 C7 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 B2 0B 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 0B 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C 89 00 00 00 00 07 04 06 00 68 0B 05 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 14 8D 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EE 72 00 00 35 04 06 00 24 [02:12:35]Write to MH i2c: E2 02 01 78 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 56 C7 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 B2 0B 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 0B 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C 89 00 00 00 00 07 04 06 00 68 0B 05 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 14 8D 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EE 72 00 00 35 04 06 00 24 00 00 C4 [02:12:35]Write i2c OK [02:12:35]MH_I2C_Read... [02:12:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:12:36]Read from MH i2c: E2 [02:12:36]MH_I2C_Read... [02:12:36]Read from MH i2c: E2 03 00 [02:12:36]MH_I2C_Read... [02:12:36]Read from MH i2c: E2 03 00 78 1B 00 90 00 07 [02:12:36]RAPDU: 90 00 [02:12:36]wFMCommunicate OK [02:12:36]wFMCommunicate request_size=10 [02:12:36]MH_SAM_APDU [02:12:36]CAPDU: 80 0D 02 02 05 20 E3 F4 6D E3 [02:12:36]Write to MH i2c: E2 0D 00 79 1B 80 0D 02 02 05 00 20 E3 F4 6D E3 00 00 5F [02:12:36]Write i2c OK [02:12:36]MH_I2C_Read... [02:12:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:12:36]Read from MH i2c: E2 [02:12:36]MH_I2C_Read... [02:12:36]Read from MH i2c: E2 03 00 [02:12:36]MH_I2C_Read... [02:12:36]Read from MH i2c: E2 03 00 79 1B 00 90 00 08 [02:12:36]RAPDU: 90 00 [02:12:36]wFMCommunicate OK [02:12:36]wFMCommunicate request_size=4 [02:12:36]MH_SAM_APDU [02:12:36]CAPDU: 80 0D 03 02 [02:12:36]Write to MH i2c: E2 08 00 7A 1B 80 0D 03 02 00 00 00 00 10 [02:12:36]Write i2c OK [02:12:36]MH_I2C_Read... [02:12:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:12:36]Read from MH i2c: E2 [02:12:36]MH_I2C_Read... [02:12:36]Read from MH i2c: E2 0B 00 [02:12:36]MH_I2C_Read... [02:12:36]Read from MH i2c: E2 0B 00 7A 1B 00 60 73 B4 F6 60 8D 59 65 90 00 39 [02:12:36]RAPDU: 60 73 B4 F6 60 8D 59 65 90 00 [02:12:36]wFMCommunicate OK [02:12:36]SAM_PROTO_SignData done [02:12:36]FM_MakeSignedData done [02:12:36]CreateOFDProtocolMessage [02:12:36]wFMCommunicate request_size=4 [02:12:36]MH_SAM_APDU [02:12:36]CAPDU: 80 11 00 00 [02:12:36]Write to MH i2c: E2 08 00 7B 1B 80 11 00 00 00 00 00 00 10 [02:12:36]Write i2c OK [02:12:36]MH_I2C_Read... [02:12:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:12:36]Read from MH i2c: E2 [02:12:36]MH_I2C_Read... [02:12:36]Read from MH i2c: E2 17 00 [02:12:36]MH_I2C_Read... [02:12:36]Read from MH i2c: E2 17 00 7B 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 5F [02:12:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [02:12:36]wFMCommunicate OK [02:12:36]CreateOFDProtocolMessage done [02:12:36]OFDSenderStorePacket 29422 [02:12:36]StoreOFDPacket docnum=29422 [02:12:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 87 BB 07 01 31 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 56 C7 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 B2 0B 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 0B 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C 89 00 00 00 00 07 04 06 00 68 0B 05 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 14 8D 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EE 72 00 00 35 04 06 00 24 20 E3 F4 6D E3 60 73 B4 F6 60 8D 59 65 [02:12:36]CheckFolder [02:12:36]dirname=/storage/ofd_packets [02:12:36]CheckFolder done [02:12:36]ProducePacketName [02:12:36]name=ofd_packets/00029422 [02:12:36]NVStorageSaveData ofd_packets/00029422 [02:12:36]File name is /storage/ofd_packets/00029422 [02:12:36]Write 301 bytes [02:12:36]NVStorageSaveData done [02:12:36]OFDSenderStorePacket done [02:12:36]KKMCreateOFDPacket done [02:12:36]NVStorageSaveData kkm_last_timestamp [02:12:36]File name is /storage/kkm_last_timestamp [02:12:36]Write 4 bytes [02:12:36]NVStorageSaveData done [02:12:36]ExternCall_PrintAddStr [02:12:36]wPrintStart [02:12:36]Write to MH i2c: 01 00 00 7C 1B 97 [02:12:36]Write i2c OK [02:12:36]MH_I2C_Read... [02:12:36]Read from MH i2c: 01 [02:12:36]MH_I2C_Read... [02:12:36]Read from MH i2c: 01 07 00 [02:12:36]MH_I2C_Read... [02:12:36]Read from MH i2c: 01 07 00 7C 1B 00 00 00 00 00 FF 0F AC [02:12:36]RasterBufferAndPrint [02:12:36]line Счет N : (1)347816 [02:12:36]line ИНН: 02508201610067 [02:12:36]line Контрольно-Кассовый Чек [02:12:36]line ПРОДАЖА [02:12:36]line ТРК (МРК, ГНК) : 53 [02:12:36]line Товар: 2710124130 [02:12:36]line Аи-92-К-5 [02:12:36]line 51.030 * 64.80 [02:12:36]line = 3306.74 [02:12:36]line НДС 12% НСП 1% [02:12:36]line > о реализуемом товаре [02:12:36]line ОКРУГЛЕНИЕ: -0.74 [02:12:36]line ИТОГО: 3306.00 [02:12:36]line Внесено: 4000.00 [02:12:36]line СДАЧА: 694.00 [02:12:36]line НСП 1% : 29.26 [02:12:36]line НДС 12% : 351.16 [02:12:36]line Наличными: 3306.00 [02:12:36]line Безнал.: 0.00 [02:12:36]line Место: АЗС № 108 "Партнер Нефть" [02:12:36]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [02:12:36]line СНО: Общий режим [02:12:36]line Чек 16 15.04.2024 02:12 [02:12:36]line Смена: 117 ФФД: 1.0 [02:12:36]line ЗНМ: 0300000027 [02:12:36]line РНМ: 0000138879044617 [02:12:36]line Версия ККМ: 001 [02:12:36]line ФМ: 0000000000963154 [02:12:36]line ФД: 29422 [02:12:36]line ФПД: 39723682000355 [02:12:36]line 1/tax-web-control/client/api/v1/ticket?date=20240415T021236&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29422&fm=39723682000355&tin=02508201610067®Number=0000138879044617&sum=330600 [02:12:36]OFD Sender: Processing packet 29422 [packets to send 8, broken 7] [02:12:36]ProducePacketName [02:12:36]name=ofd_packets/00029422 [02:12:36]OFD Sender: To server: pG, [02:12:36]CommunicateWithHost lk.salyk.kg:30040 [02:12:36]ConnectInit lk.salyk.kg [02:12:36]written 0, free lines is 4095 [02:12:36]Connected sock=11 [02:12:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 87 BB 07 01 31 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 56 C7 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 B2 0B 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 0B 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C 89 00 00 00 00 07 04 06 00 68 0B 05 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 14 8D 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EE 72 00 00 35 04 06 00 24 20 E3 F4 6D E3 60 73 B4 F6 60 8D 59 65 [02:12:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 B5 98 47 00 91 B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EE 72 00 00 F4 03 04 00 B6 37 1C 66 B6 04 01 00 00 41 84 28 AA F2 1A 6C 58 [02:12:36]CommunicateWithHost err = 0 [02:12:36]CheckOFDResponse [02:12:36]1017 (14) - 77093643461234 [02:12:36]1041 (16) - 0000000000963154 [02:12:36]1040 (4) - 29422 [02:12:36]1012 (4) - 14.04.2024 20:08 [02:12:36]1206 (1) - 0 [02:12:36]OFD Sender: Remove packet 29422 [02:12:36]ProducePacketName [02:12:36]name=ofd_packets/00029422 [02:12:36]NVStorageDeleteData [02:12:36]Write to MH i2c: 01 00 00 A6 1B C1 [02:12:36]Write i2c OK [02:12:36]MH_I2C_Read... [02:12:36]Read from MH i2c: 01 [02:12:36]MH_I2C_Read... [02:12:36]Read from MH i2c: 01 07 00 [02:12:36]MH_I2C_Read... [02:12:36]Read from MH i2c: 01 07 00 A6 1B 00 00 00 00 00 D9 0C AD [02:12:36]RasterBufferAndPrint [02:12:36]line [02:12:36]line [02:12:36]line [02:12:36]line [02:12:36]line [02:12:36]written 0, free lines is 3293 [02:12:36]MH_Cut [02:12:36]Write to MH i2c: D1 01 00 AD 1B 01 9A [02:12:36]Write i2c OK [02:12:36]MH_I2C_Read... [02:12:36]Read from MH i2c: D1 [02:12:36]MH_I2C_Read... [02:12:36]Read from MH i2c: D1 01 00 [02:12:36]MH_I2C_Read... [02:12:36]Read from MH i2c: D1 01 00 AD 1B 00 99 [02:12:36]Write to MH i2c: 01 00 00 AE 1B C9 [02:12:36]Write i2c OK [02:12:36]MH_I2C_Read... [02:12:37]OFD Sender: No OFD packet to send [02:12:37]*** Cut start [02:12:37]*** Partial cut [02:12:37]*** CUTSNS_PIN = 1 [02:12:37]*** CUTSNS_PIN = 0 [02:12:37]*** Brake cut motor [02:12:38]Read from MH i2c: 01 [02:12:38]MH_I2C_Read... [02:12:38]*** Stop cut motor [02:12:38]*** Cut end [02:12:38]Read from MH i2c: 01 07 00 [02:12:38]MH_I2C_Read... [02:12:38]Read from MH i2c: 01 07 00 AE 1B 00 00 00 00 00 FF 0F DE [02:12:38]process_action close_receipt done [02:12:38]requested_data is exist [02:12:38]produce_requested_data [02:12:38]requested_item fm.sn is exist - process it [02:12:38]wFMCommunicate request_size=4 [02:12:38]MH_SAM_APDU [02:12:38]CAPDU: 80 11 00 00 [02:12:38]Write to MH i2c: E2 08 00 AF 1B 80 11 00 00 00 00 00 00 44 [02:12:38]Write i2c OK [02:12:38]MH_I2C_Read... [02:12:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:12:38]Read from MH i2c: E2 [02:12:38]MH_I2C_Read... [02:12:38]Read from MH i2c: E2 17 00 [02:12:38]MH_I2C_Read... [02:12:38]Read from MH i2c: E2 17 00 AF 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 93 [02:12:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [02:12:38]wFMCommunicate OK [02:12:38]requested_item fd.num is exist - process it [02:12:38]SAM_PROTO_GetFieldsCounters [02:12:38]wFMCommunicate request_size=4 [02:12:38]MH_SAM_APDU [02:12:38]CAPDU: 80 13 00 00 [02:12:38]Write to MH i2c: E2 08 00 B0 1B 80 13 00 00 00 00 00 00 47 [02:12:38]Write i2c OK [02:12:38]MH_I2C_Read... [02:12:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:12:38]Read from MH i2c: E2 [02:12:38]MH_I2C_Read... [02:12:38]Read from MH i2c: E2 62 00 [02:12:38]MH_I2C_Read... [02:12:38]Read from MH i2c: E2 62 00 B0 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 EE 72 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 8A [02:12:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 EE 72 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:12:38]wFMCommunicate OK [02:12:38]SAM_PROTO_GetFieldsCounters done [02:12:38]requested_item shift.num is exist - process it [02:12:38]requested_item shift.opened is exist - process it [02:12:38]req_shift_opened [02:12:38]FM_GetShiftState [02:12:38]SAM_PROTO_GetShiftState [02:12:38]wFMCommunicate request_size=4 [02:12:38]MH_SAM_APDU [02:12:38]CAPDU: 80 13 01 00 [02:12:38]Write to MH i2c: E2 08 00 B1 1B 80 13 01 00 00 00 00 00 49 [02:12:38]Write i2c OK [02:12:38]MH_I2C_Read... [02:12:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:12:38]Read from MH i2c: E2 [02:12:38]MH_I2C_Read... [02:12:38]Read from MH i2c: E2 0E 00 [02:12:38]MH_I2C_Read... [02:12:38]Read from MH i2c: E2 0E 00 B1 1B 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 3D [02:12:38]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [02:12:38]wFMCommunicate OK [02:12:38]SAM_PROTO_GetShiftState done [02:12:38]FM_GetShiftState done [02:12:38]req_shift_opened done [02:12:38]requested_item shift.open_date is exist - process it [02:12:38]req_shift_open_date [02:12:38]req_shift_open_date done [02:12:38]produce_requested_data done [02:12:38]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29422,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [02:12:38]process_action_free close_receipt [02:12:38]json_value_free [02:12:38]json_value_free done [02:12:38]process_json_proto returns [02:12:38]Send response to host [02:12:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29422,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [02:12:38]free response buf [02:12:38]execute_script done [02:12:38]execute_script returns [02:12:38]free content buf [02:12:38]Sock 9.Close socket [02:12:38]Sock 9.Thread stoped [02:12:42]OFD Sender: No OFD packet to send [02:12:47]OFD Sender: No OFD packet to send [02:12:52]OFD Sender: No OFD packet to send [02:12:57]OFD Sender: No OFD packet to send [02:13:02]OFD Sender: No OFD packet to send [02:13:07]OFD Sender: No OFD packet to send [02:13:12]OFD Sender: No OFD packet to send [02:13:17]OFD Sender: No OFD packet to send [02:13:22]OFD Sender: No OFD packet to send [02:13:27]OFD Sender: No OFD packet to send [02:13:32]OFD Sender: No OFD packet to send [02:13:37]OFD Sender: No OFD packet to send [02:13:42]OFD Sender: No OFD packet to send [02:13:47]OFD Sender: No OFD packet to send [02:13:52]OFD Sender: No OFD packet to send [02:13:57]OFD Sender: No OFD packet to send [02:14:02]OFD Sender: No OFD packet to send [02:14:07]OFD Sender: No OFD packet to send [02:14:12]OFD Sender: No OFD packet to send [02:14:17]OFD Sender: No OFD packet to send [02:14:22]OFD Sender: No OFD packet to send [02:14:27]OFD Sender: No OFD packet to send [02:14:32]OFD Sender: No OFD packet to send [02:14:37]OFD Sender: No OFD packet to send [02:14:42]OFD Sender: No OFD packet to send [02:14:47]OFD Sender: No OFD packet to send [02:14:52]OFD Sender: No OFD packet to send [02:14:57]OFD Sender: No OFD packet to send [02:15:02]OFD Sender: No OFD packet to send [02:15:07]OFD Sender: No OFD packet to send [02:15:12]OFD Sender: No OFD packet to send [02:15:17]OFD Sender: No OFD packet to send [02:15:22]OFD Sender: No OFD packet to send [02:15:27]OFD Sender: No OFD packet to send [02:15:32]OFD Sender: No OFD packet to send [02:15:37]OFD Sender: No OFD packet to send [02:15:42]OFD Sender: No OFD packet to send [02:15:47]OFD Sender: No OFD packet to send [02:15:52]OFD Sender: No OFD packet to send [02:15:57]OFD Sender: No OFD packet to send [02:16:02]OFD Sender: No OFD packet to send [02:16:07]OFD Sender: No OFD packet to send [02:16:12]OFD Sender: No OFD packet to send [02:16:17]OFD Sender: No OFD packet to send [02:16:22]OFD Sender: No OFD packet to send [02:16:27]OFD Sender: No OFD packet to send [02:16:32]OFD Sender: No OFD packet to send [02:16:37]OFD Sender: No OFD packet to send [02:16:42]OFD Sender: No OFD packet to send [02:16:47]OFD Sender: No OFD packet to send [02:16:52]OFD Sender: No OFD packet to send [02:16:57]OFD Sender: No OFD packet to send [02:17:02]OFD Sender: No OFD packet to send [02:17:07]OFD Sender: No OFD packet to send [02:17:12]OFD Sender: No OFD packet to send [02:17:17]OFD Sender: No OFD packet to send [02:17:22]OFD Sender: No OFD packet to send [02:17:27]OFD Sender: No OFD packet to send [02:17:32]OFD Sender: No OFD packet to send [02:17:37]OFD Sender: No OFD packet to send [02:17:42]OFD Sender: No OFD packet to send [02:17:47]OFD Sender: No OFD packet to send [02:17:52]OFD Sender: No OFD packet to send [02:17:57]OFD Sender: No OFD packet to send [02:18:02]OFD Sender: No OFD packet to send [02:18:07]OFD Sender: No OFD packet to send [02:18:12]OFD Sender: No OFD packet to send [02:18:17]OFD Sender: No OFD packet to send [02:18:22]OFD Sender: No OFD packet to send [02:18:27]OFD Sender: No OFD packet to send [02:18:32]OFD Sender: No OFD packet to send [02:18:37]OFD Sender: No OFD packet to send [02:18:42]OFD Sender: No OFD packet to send [02:18:47]OFD Sender: No OFD packet to send [02:18:52]OFD Sender: No OFD packet to send [02:18:57]OFD Sender: No OFD packet to send [02:19:02]OFD Sender: No OFD packet to send [02:19:07]OFD Sender: No OFD packet to send [02:19:12]OFD Sender: No OFD packet to send [02:19:17]OFD Sender: No OFD packet to send [02:19:22]OFD Sender: No OFD packet to send [02:19:27]OFD Sender: No OFD packet to send [02:19:32]OFD Sender: No OFD packet to send [02:19:37]OFD Sender: No OFD packet to send [02:19:42]OFD Sender: No OFD packet to send [02:19:47]OFD Sender: No OFD packet to send [02:19:52]OFD Sender: No OFD packet to send [02:19:57]OFD Sender: No OFD packet to send [02:20:02]OFD Sender: No OFD packet to send [02:20:07]OFD Sender: No OFD packet to send [02:20:12]OFD Sender: No OFD packet to send [02:20:17]OFD Sender: No OFD packet to send [02:20:22]OFD Sender: No OFD packet to send [02:20:27]OFD Sender: No OFD packet to send [02:20:32]OFD Sender: No OFD packet to send [02:20:37]OFD Sender: No OFD packet to send [02:20:42]OFD Sender: No OFD packet to send [02:20:47]OFD Sender: No OFD packet to send [02:20:52]OFD Sender: No OFD packet to send [02:20:57]OFD Sender: No OFD packet to send [02:21:02]OFD Sender: No OFD packet to send [02:21:07]OFD Sender: No OFD packet to send [02:21:12]OFD Sender: No OFD packet to send [02:21:17]OFD Sender: No OFD packet to send [02:21:22]OFD Sender: No OFD packet to send [02:21:27]OFD Sender: No OFD packet to send [02:21:32]OFD Sender: No OFD packet to send [02:21:37]OFD Sender: No OFD packet to send [02:21:42]OFD Sender: No OFD packet to send [02:21:47]OFD Sender: No OFD packet to send [02:21:52]OFD Sender: No OFD packet to send [02:21:57]OFD Sender: No OFD packet to send [02:22:02]OFD Sender: No OFD packet to send [02:22:07]OFD Sender: No OFD packet to send [02:22:12]OFD Sender: No OFD packet to send [02:22:17]OFD Sender: No OFD packet to send [02:22:22]OFD Sender: No OFD packet to send [02:22:27]OFD Sender: No OFD packet to send [02:22:32]OFD Sender: No OFD packet to send [02:22:37]OFD Sender: No OFD packet to send [02:22:42]OFD Sender: No OFD packet to send [02:22:47]OFD Sender: No OFD packet to send [02:22:52]OFD Sender: No OFD packet to send [02:22:57]OFD Sender: No OFD packet to send [02:23:02]OFD Sender: No OFD packet to send [02:23:07]OFD Sender: No OFD packet to send [02:23:12]OFD Sender: No OFD packet to send [02:23:17]OFD Sender: No OFD packet to send [02:23:22]OFD Sender: No OFD packet to send [02:23:27]OFD Sender: No OFD packet to send [02:23:32]OFD Sender: No OFD packet to send [02:23:37]OFD Sender: No OFD packet to send [02:23:42]OFD Sender: No OFD packet to send [02:23:47]OFD Sender: No OFD packet to send [02:23:52]OFD Sender: No OFD packet to send [02:23:57]OFD Sender: No OFD packet to send [02:24:02]OFD Sender: No OFD packet to send [02:24:07]OFD Sender: No OFD packet to send [02:24:12]OFD Sender: No OFD packet to send [02:24:17]OFD Sender: No OFD packet to send [02:24:22]OFD Sender: No OFD packet to send [02:24:27]OFD Sender: No OFD packet to send [02:24:32]OFD Sender: No OFD packet to send [02:24:37]OFD Sender: No OFD packet to send [02:24:42]OFD Sender: No OFD packet to send [02:24:47]OFD Sender: No OFD packet to send [02:24:52]OFD Sender: No OFD packet to send [02:24:57]OFD Sender: No OFD packet to send [02:25:02]OFD Sender: No OFD packet to send [02:25:07]OFD Sender: No OFD packet to send [02:25:12]OFD Sender: No OFD packet to send [02:25:17]OFD Sender: No OFD packet to send [02:25:22]OFD Sender: No OFD packet to send [02:25:27]OFD Sender: No OFD packet to send [02:25:32]OFD Sender: No OFD packet to send [02:25:37]OFD Sender: No OFD packet to send [02:25:42]OFD Sender: No OFD packet to send [02:25:47]OFD Sender: No OFD packet to send [02:25:49]accept exits with 8 [02:25:49]New connection [02:25:49]New thread 3066969444 created [02:25:49]Thread 3067112804 joined [02:25:49]Waiting for new connection... [02:25:49] Sock 8.Parse request [02:25:49]Sock 8.Check first char [02:25:49]Sock 8.First char is OK [02:25:49]request: POST /json_proto HTTP/1.0 [02:25:49]Method: POST [02:25:49]URL: /json_proto [02:25:49]Method is POST - this is cgi request [02:25:49]url: /json_proto [02:25:49]query_string will be loaded in cgi processing [02:25:49]execute_cgi json_proto POST (null) [02:25:49]execute_cgi path=json_proto method=POST [02:25:49]POST find Content-Length [02:25:49]Host: 172.17.33.3:8080 [02:25:49]Content-Length: 677 [02:25:49]Content-Type: application/json [02:25:49] [02:25:49]POST finish read [02:25:49]Found Content-Length = 677 [02:25:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347817", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 4.560, "sum" : 295.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 295.00, "total" : 295.00, "payments": [ { "type": 0, "sum" : 295.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:25:49]execute_script... [02:25: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)347817", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 4.560, "sum" : 295.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 295.00, "total" : 295.00, "payments": [ { "type": 0, "sum" : 295.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:25:49]POST & json_proto [02:25:49]process_json_proto [02:25:49]json parsed OK: [02:25:49]protocol is kg_v1.0 [02:25:49]action value=close_receipt [02:25:49]process_action close_receipt [02:25:49]cmd_close_receipt [02:25:49]MH_GetDate [02:25:49]Write to MH i2c: F0 00 00 B2 1B BC [02:25:49]Write i2c OK [02:25:49]MH_I2C_Read... [02:25:49]Read from MH i2c: F0 [02:25:49]MH_I2C_Read... [02:25:49]Read from MH i2c: F0 09 00 [02:25:49]MH_I2C_Read... [02:25:49]Read from MH i2c: F0 09 00 B2 1B 00 2F 90 1C 66 23 5B 8F 65 78 [02:25:49]GetLastDocTimeStamp 1713147156 [02:25:49]current date 1713147951 [02:25:49]FM_GetShiftState [02:25:49]SAM_PROTO_GetShiftState [02:25:49]wFMCommunicate request_size=4 [02:25:49]MH_SAM_APDU [02:25:49]CAPDU: 80 13 01 00 [02:25:49]Write to MH i2c: E2 08 00 B3 1B 80 13 01 00 00 00 00 00 4B [02:25:49]Write i2c OK [02:25:49]MH_I2C_Read... [02:25:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:25:49]Read from MH i2c: E2 [02:25:49]MH_I2C_Read... [02:25:49]Read from MH i2c: E2 0E 00 [02:25:49]MH_I2C_Read... [02:25:49]Read from MH i2c: E2 0E 00 B3 1B 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 3F [02:25:49]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [02:25:49]wFMCommunicate OK [02:25:49]SAM_PROTO_GetShiftState done [02:25:49]FM_GetShiftState done [02:25:49]opened in 1713140468 [02:25:49]opened+sec_in_day 1713226868 [02:25:49]quantity*price = 29548 [02:25:49]sum+1 = 29550 [02:25:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 295.00 Внесено: 295.00 СДАЧА: 0.00 НСП 1% : 2.61 НДС 12% : 31.38 Наличными: 295.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 17 15.04.2024 02:25 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29423 ФПД: 108927087390957 1/tax-web-control/client/api/v1/ticket?date=20240415T022551&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29423&fm=108927087390957&tin=02508201610067®Number=0000138879044617&sum=29500 [02:25:50]StoreToDocumentArchive [02:25:50]shift 117 fd 29423 [02:25:50]save to /storage/0117/doc_00029423 [02:25:50]save last doc name /storage/0117/doc_00029423 to /storage/kkm_last_doc_name [02:25:50]save OK [02:25:50]Clear old archive folders... [02:25:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:25:50]tlvbuf is B6EE85E0 [02:25:50]SAM_PROTO_ClearQueue [02:25:50]wFMCommunicate request_size=4 [02:25:50]MH_SAM_APDU [02:25:50]CAPDU: 80 09 00 00 [02:25:50]Write to MH i2c: E2 08 00 C0 1B 80 09 00 00 00 00 00 00 4D [02:25:50]Write i2c OK [02:25:50]MH_I2C_Read... [02:25:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:25:50]Read from MH i2c: E2 [02:25:50]MH_I2C_Read... [02:25:50]Read from MH i2c: E2 03 00 [02:25:50]MH_I2C_Read... [02:25:50]Read from MH i2c: E2 03 00 C0 1B 00 90 00 4F [02:25:50]RAPDU: 90 00 [02:25:50]wFMCommunicate OK [02:25:50]SAM_PROTO_ClearQueue done [02:25:50]KKMCreateOFDPacket [02:25:50]OFDProtocolAddRootSTLVToBuf [02:25:50]FM_MakeSignedData [02:25:50]FM_MakeSignedData [02:25:50]SAM_PROTO_SignData [02:25:50]wFMCommunicate request_size=4 [02:25:50]MH_SAM_APDU [02:25:50]CAPDU: 80 0D 01 02 [02:25:50]Write to MH i2c: E2 08 00 C1 1B 80 0D 01 02 00 00 00 00 55 [02:25:50]Write i2c OK [02:25:50]MH_I2C_Read... [02:25:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:25:50]Read from MH i2c: E2 [02:25:50]MH_I2C_Read... [02:25:50]Read from MH i2c: E2 03 00 [02:25:50]MH_I2C_Read... [02:25:50]Read from MH i2c: E2 03 00 C1 1B 00 90 00 50 [02:25:50]RAPDU: 90 00 [02:25:50]wFMCommunicate OK [02:25:50]wFMCommunicate request_size=255 [02:25:50]MH_SAM_APDU [02:25: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 D0 11 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6D 73 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 73 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 05 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 0C 00 00 00 00 07 04 06 00 3C 73 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 2F 90 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EF 72 00 00 35 04 06 00 63 [02:25:50]Write to MH i2c: E2 02 01 C2 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 D0 11 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6D 73 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 73 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 05 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 0C 00 00 00 00 07 04 06 00 3C 73 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 2F 90 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EF 72 00 00 35 04 06 00 63 00 00 E3 [02:25:50]Write i2c OK [02:25:50]MH_I2C_Read... [02:25:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:25:50]Read from MH i2c: E2 [02:25:50]MH_I2C_Read... [02:25:50]Read from MH i2c: E2 03 00 [02:25:50]MH_I2C_Read... [02:25:50]Read from MH i2c: E2 03 00 C2 1B 00 90 00 51 [02:25:50]RAPDU: 90 00 [02:25:50]wFMCommunicate OK [02:25:50]wFMCommunicate request_size=10 [02:25:50]MH_SAM_APDU [02:25:50]CAPDU: 80 0D 02 02 05 11 90 59 B0 ED [02:25:50]Write to MH i2c: E2 0D 00 C3 1B 80 0D 02 02 05 00 11 90 59 B0 ED 00 00 F9 [02:25:50]Write i2c OK [02:25:50]MH_I2C_Read... [02:25:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:25:50]Read from MH i2c: E2 [02:25:50]MH_I2C_Read... [02:25:50]Read from MH i2c: E2 03 00 [02:25:50]MH_I2C_Read... [02:25:50]Read from MH i2c: E2 03 00 C3 1B 00 90 00 52 [02:25:50]RAPDU: 90 00 [02:25:50]wFMCommunicate OK [02:25:50]wFMCommunicate request_size=4 [02:25:50]MH_SAM_APDU [02:25:50]CAPDU: 80 0D 03 02 [02:25:50]Write to MH i2c: E2 08 00 C4 1B 80 0D 03 02 00 00 00 00 5A [02:25:50]Write i2c OK [02:25:50]MH_I2C_Read... [02:25:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:25:50]Read from MH i2c: E2 [02:25:50]MH_I2C_Read... [02:25:50]Read from MH i2c: E2 0B 00 [02:25:50]MH_I2C_Read... [02:25:50]Read from MH i2c: E2 0B 00 C4 1B 00 DE 52 37 E1 2E 08 D8 F0 90 00 A1 [02:25:50]RAPDU: DE 52 37 E1 2E 08 D8 F0 90 00 [02:25:50]wFMCommunicate OK [02:25:50]SAM_PROTO_SignData done [02:25:50]FM_MakeSignedData done [02:25:50]CreateOFDProtocolMessage [02:25:50]wFMCommunicate request_size=4 [02:25:50]MH_SAM_APDU [02:25:50]CAPDU: 80 11 00 00 [02:25:50]Write to MH i2c: E2 08 00 C5 1B 80 11 00 00 00 00 00 00 5A [02:25:50]Write i2c OK [02:25:50]MH_I2C_Read... [02:25:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:25:51]Read from MH i2c: E2 [02:25:51]MH_I2C_Read... [02:25:51]Read from MH i2c: E2 17 00 [02:25:51]MH_I2C_Read... [02:25:51]Read from MH i2c: E2 17 00 C5 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A9 [02:25:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [02:25:51]wFMCommunicate OK [02:25:51]CreateOFDProtocolMessage done [02:25:51]OFDSenderStorePacket 29423 [02:25:51]StoreOFDPacket docnum=29423 [02:25:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 F0 14 07 01 58 35 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 11 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6D 73 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 73 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 05 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 0C 00 00 00 00 07 04 06 00 3C 73 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 2F 90 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EF 72 00 00 35 04 06 00 63 11 90 59 B0 ED DE 52 37 E1 2E 08 D8 F0 [02:25:51]CheckFolder [02:25:51]dirname=/storage/ofd_packets [02:25:51]CheckFolder done [02:25:51]ProducePacketName [02:25:51]name=ofd_packets/00029423 [02:25:51]NVStorageSaveData ofd_packets/00029423 [02:25:51]File name is /storage/ofd_packets/00029423 [02:25:51]Write 301 bytes [02:25:51]NVStorageSaveData done [02:25:51]OFDSenderStorePacket done [02:25:51]KKMCreateOFDPacket done [02:25:51]NVStorageSaveData kkm_last_timestamp [02:25:51]File name is /storage/kkm_last_timestamp [02:25:51]Write 4 bytes [02:25:51]NVStorageSaveData done [02:25:51]ExternCall_PrintAddStr [02:25:51]wPrintStart [02:25:51]Write to MH i2c: 01 00 00 C6 1B E1 [02:25:51]Write i2c OK [02:25:51]MH_I2C_Read... [02:25:51]Read from MH i2c: 01 [02:25:51]MH_I2C_Read... [02:25:51]Read from MH i2c: 01 07 00 [02:25:51]MH_I2C_Read... [02:25:51]Read from MH i2c: 01 07 00 C6 1B 00 00 00 00 00 FF 0F F6 [02:25:51]RasterBufferAndPrint [02:25:51]line Счет N : (1)347817 [02:25:51]line ИНН: 02508201610067 [02:25:51]line Контрольно-Кассовый Чек [02:25:51]line ПРОДАЖА [02:25:51]line ТРК (МРК, ГНК) : 32 [02:25:51]line Товар: 2710124130 [02:25:51]line Аи-92-К-5 [02:25:51]line 4.560 * 64.80 [02:25:51]line = 295.49 [02:25:51]line НДС 12% НСП 1% [02:25:51]line > о реализуемом товаре [02:25:51]line ОКРУГЛЕНИЕ: -0.49 [02:25:51]line ИТОГО: 295.00 [02:25:51]line Внесено: 295.00 [02:25:51]line СДАЧА: 0.00 [02:25:51]line НСП 1% : 2.61 [02:25:51]line НДС 12% : 31.38 [02:25:51]line Наличными: 295.00 [02:25:51]line Безнал.: 0.00 [02:25:51]line Место: АЗС № 108 "Партнер Нефть" [02:25:51]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [02:25:51]line СНО: Общий режим [02:25:51]line Чек 17 15.04.2024 02:25 [02:25:51]line Смена: 117 ФФД: 1.0 [02:25:51]line ЗНМ: 0300000027 [02:25:51]line РНМ: 0000138879044617 [02:25:51]line Версия ККМ: 001 [02:25:51]line ФМ: 0000000000963154 [02:25:51]line ФД: 29423 [02:25:51]line ФПД: 108927087390957 [02:25:51]line 1/tax-web-control/client/api/v1/ticket?date=20240415T022551&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29423&fm=108927087390957&tin=02508201610067®Number=0000138879044617&sum=29500 [02:25:51]OFD Sender: Processing packet 29423 [packets to send 8, broken 7] [02:25:51]ProducePacketName [02:25:51]name=ofd_packets/00029423 [02:25:51]OFD Sender: To server: pG, [02:25:51]CommunicateWithHost lk.salyk.kg:30040 [02:25:51]ConnectInit lk.salyk.kg [02:25:51]written 0, free lines is 4095 [02:25:51]Connected sock=10 [02:25:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 F0 14 07 01 58 35 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 11 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6D 73 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 73 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 05 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 0C 00 00 00 00 07 04 06 00 3C 73 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 2F 90 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EF 72 00 00 35 04 06 00 63 11 90 59 B0 ED DE 52 37 E1 2E 08 D8 F0 [02:25:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 F8 FD 47 00 B3 D0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EF 72 00 00 F4 03 04 00 D1 3A 1C 66 B6 04 01 00 00 01 45 F8 B0 3F C6 BB 56 [02:25:51]CommunicateWithHost err = 0 [02:25:51]CheckOFDResponse [02:25:51]1017 (14) - 77093643461234 [02:25:51]1041 (16) - 0000000000963154 [02:25:51]1040 (4) - 29423 [02:25:51]1012 (4) - 14.04.2024 20:21 [02:25:51]1206 (1) - 0 [02:25:51]OFD Sender: Remove packet 29423 [02:25:51]ProducePacketName [02:25:51]name=ofd_packets/00029423 [02:25:51]NVStorageDeleteData [02:25:51]Write to MH i2c: 01 00 00 F0 1B 0B [02:25:51]Write i2c OK [02:25:51]MH_I2C_Read... [02:25:51]Read from MH i2c: 01 [02:25:51]MH_I2C_Read... [02:25:51]Read from MH i2c: 01 07 00 [02:25:51]MH_I2C_Read... [02:25:51]Read from MH i2c: 01 07 00 F0 1B 00 00 00 00 00 D2 0C F0 [02:25:51]RasterBufferAndPrint [02:25:51]line [02:25:51]line [02:25:51]line [02:25:51]line [02:25:51]line [02:25:51]written 0, free lines is 3288 [02:25:51]MH_Cut [02:25:51]Write to MH i2c: D1 01 00 F7 1B 01 E4 [02:25:51]Write i2c OK [02:25:51]MH_I2C_Read... [02:25:51]Read from MH i2c: D1 [02:25:51]MH_I2C_Read... [02:25:51]Read from MH i2c: D1 01 00 [02:25:51]MH_I2C_Read... [02:25:51]Read from MH i2c: D1 01 00 F7 1B 00 E3 [02:25:51]Write to MH i2c: 01 00 00 F8 1B 13 [02:25:51]Write i2c OK [02:25:51]MH_I2C_Read... [02:25:52]OFD Sender: No OFD packet to send [02:25:52]*** Cut start [02:25:52]*** Partial cut [02:25:52]*** CUTSNS_PIN = 1 [02:25:52]*** CUTSNS_PIN = 0 [02:25:52]*** Brake cut motor [02:25:53]Read from MH i2c: 01 [02:25:53]MH_I2C_Read... [02:25:53]*** Stop cut motor [02:25:53]*** Cut end [02:25:53]Read from MH i2c: 01 07 00 [02:25:53]MH_I2C_Read... [02:25:53]Read from MH i2c: 01 07 00 F8 1B 00 00 00 00 00 FF 0F 28 [02:25:53]process_action close_receipt done [02:25:53]requested_data is exist [02:25:53]produce_requested_data [02:25:53]requested_item fm.sn is exist - process it [02:25:53]wFMCommunicate request_size=4 [02:25:53]MH_SAM_APDU [02:25:53]CAPDU: 80 11 00 00 [02:25:53]Write to MH i2c: E2 08 00 F9 1B 80 11 00 00 00 00 00 00 8E [02:25:53]Write i2c OK [02:25:53]MH_I2C_Read... [02:25:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:25:53]Read from MH i2c: E2 [02:25:53]MH_I2C_Read... [02:25:53]Read from MH i2c: E2 17 00 [02:25:53]MH_I2C_Read... [02:25:53]Read from MH i2c: E2 17 00 F9 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 DD [02:25:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [02:25:53]wFMCommunicate OK [02:25:53]requested_item fd.num is exist - process it [02:25:53]SAM_PROTO_GetFieldsCounters [02:25:53]wFMCommunicate request_size=4 [02:25:53]MH_SAM_APDU [02:25:53]CAPDU: 80 13 00 00 [02:25:53]Write to MH i2c: E2 08 00 FA 1B 80 13 00 00 00 00 00 00 91 [02:25:53]Write i2c OK [02:25:53]MH_I2C_Read... [02:25:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:25:53]Read from MH i2c: E2 [02:25:53]MH_I2C_Read... [02:25:53]Read from MH i2c: E2 62 00 [02:25:53]MH_I2C_Read... [02:25:53]Read from MH i2c: E2 62 00 FA 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 EF 72 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 D8 [02:25:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 EF 72 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:25:53]wFMCommunicate OK [02:25:53]SAM_PROTO_GetFieldsCounters done [02:25:53]requested_item shift.num is exist - process it [02:25:53]requested_item shift.opened is exist - process it [02:25:53]req_shift_opened [02:25:53]FM_GetShiftState [02:25:53]SAM_PROTO_GetShiftState [02:25:53]wFMCommunicate request_size=4 [02:25:53]MH_SAM_APDU [02:25:53]CAPDU: 80 13 01 00 [02:25:53]Write to MH i2c: E2 08 00 FB 1B 80 13 01 00 00 00 00 00 93 [02:25:53]Write i2c OK [02:25:53]MH_I2C_Read... [02:25:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:25:53]Read from MH i2c: E2 [02:25:53]MH_I2C_Read... [02:25:53]Read from MH i2c: E2 0E 00 [02:25:53]MH_I2C_Read... [02:25:53]Read from MH i2c: E2 0E 00 FB 1B 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 87 [02:25:53]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [02:25:53]wFMCommunicate OK [02:25:53]SAM_PROTO_GetShiftState done [02:25:53]FM_GetShiftState done [02:25:53]req_shift_opened done [02:25:53]requested_item shift.open_date is exist - process it [02:25:53]req_shift_open_date [02:25:53]req_shift_open_date done [02:25:53]produce_requested_data done [02:25:53]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29423,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [02:25:53]process_action_free close_receipt [02:25:53]json_value_free [02:25:53]json_value_free done [02:25:53]process_json_proto returns [02:25:53]Send response to host [02:25:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29423,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [02:25:53]free response buf [02:25:53]execute_script done [02:25:53]execute_script returns [02:25:53]free content buf [02:25:53]Sock 8.Close socket [02:25:53]Sock 8.Thread stoped [02:25:57]OFD Sender: No OFD packet to send [02:26:02]OFD Sender: No OFD packet to send [02:26:07]OFD Sender: No OFD packet to send [02:26:12]OFD Sender: No OFD packet to send [02:26:17]OFD Sender: No OFD packet to send [02:26:22]OFD Sender: No OFD packet to send [02:26:27]OFD Sender: No OFD packet to send [02:26:32]OFD Sender: No OFD packet to send [02:26:37]OFD Sender: No OFD packet to send [02:26:42]OFD Sender: No OFD packet to send [02:26:47]OFD Sender: No OFD packet to send [02:26:52]OFD Sender: No OFD packet to send [02:26:57]OFD Sender: No OFD packet to send [02:27:02]OFD Sender: No OFD packet to send [02:27:07]OFD Sender: No OFD packet to send [02:27:12]OFD Sender: No OFD packet to send [02:27:17]OFD Sender: No OFD packet to send [02:27:22]OFD Sender: No OFD packet to send [02:27:27]OFD Sender: No OFD packet to send [02:27:32]OFD Sender: No OFD packet to send [02:27:37]OFD Sender: No OFD packet to send [02:27:42]OFD Sender: No OFD packet to send [02:27:47]OFD Sender: No OFD packet to send [02:27:52]OFD Sender: No OFD packet to send [02:27:57]OFD Sender: No OFD packet to send [02:28:02]OFD Sender: No OFD packet to send [02:28:07]OFD Sender: No OFD packet to send [02:28:12]OFD Sender: No OFD packet to send [02:28:17]OFD Sender: No OFD packet to send [02:28:22]OFD Sender: No OFD packet to send [02:28:27]OFD Sender: No OFD packet to send [02:28:32]OFD Sender: No OFD packet to send [02:28:37]OFD Sender: No OFD packet to send [02:28:42]OFD Sender: No OFD packet to send [02:28:47]OFD Sender: No OFD packet to send [02:28:52]OFD Sender: No OFD packet to send [02:28:57]OFD Sender: No OFD packet to send [02:29:02]OFD Sender: No OFD packet to send [02:29:07]OFD Sender: No OFD packet to send [02:29:12]OFD Sender: No OFD packet to send [02:29:17]OFD Sender: No OFD packet to send [02:29:22]OFD Sender: No OFD packet to send [02:29:27]OFD Sender: No OFD packet to send [02:29:32]OFD Sender: No OFD packet to send [02:29:37]OFD Sender: No OFD packet to send [02:29:42]OFD Sender: No OFD packet to send [02:29:47]OFD Sender: No OFD packet to send [02:29:52]OFD Sender: No OFD packet to send [02:29:57]OFD Sender: No OFD packet to send [02:30:02]OFD Sender: No OFD packet to send [02:30:07]OFD Sender: No OFD packet to send [02:30:12]OFD Sender: No OFD packet to send [02:30:17]OFD Sender: No OFD packet to send [02:30:22]OFD Sender: No OFD packet to send [02:30:27]OFD Sender: No OFD packet to send [02:30:32]OFD Sender: No OFD packet to send [02:30:37]OFD Sender: No OFD packet to send [02:30:42]OFD Sender: No OFD packet to send [02:30:47]OFD Sender: No OFD packet to send [02:30:52]OFD Sender: No OFD packet to send [02:30:57]OFD Sender: No OFD packet to send [02:31:02]OFD Sender: No OFD packet to send [02:31:07]OFD Sender: No OFD packet to send [02:31:12]OFD Sender: No OFD packet to send [02:31:17]OFD Sender: No OFD packet to send [02:31:22]OFD Sender: No OFD packet to send [02:31:27]OFD Sender: No OFD packet to send [02:31:32]OFD Sender: No OFD packet to send [02:31:37]OFD Sender: No OFD packet to send [02:31:42]OFD Sender: No OFD packet to send [02:31:47]OFD Sender: No OFD packet to send [02:31:52]OFD Sender: No OFD packet to send [02:31:57]OFD Sender: No OFD packet to send [02:32:02]OFD Sender: No OFD packet to send [02:32:07]OFD Sender: No OFD packet to send [02:32:12]OFD Sender: No OFD packet to send [02:32:17]OFD Sender: No OFD packet to send [02:32:22]OFD Sender: No OFD packet to send [02:32:27]OFD Sender: No OFD packet to send [02:32:32]OFD Sender: No OFD packet to send [02:32:37]OFD Sender: No OFD packet to send [02:32:42]OFD Sender: No OFD packet to send [02:32:47]OFD Sender: No OFD packet to send [02:32:52]OFD Sender: No OFD packet to send [02:32:57]OFD Sender: No OFD packet to send [02:33:02]OFD Sender: No OFD packet to send [02:33:07]OFD Sender: No OFD packet to send [02:33:12]OFD Sender: No OFD packet to send [02:33:17]OFD Sender: No OFD packet to send [02:33:22]OFD Sender: No OFD packet to send [02:33:27]OFD Sender: No OFD packet to send [02:33:32]OFD Sender: No OFD packet to send [02:33:37]OFD Sender: No OFD packet to send [02:33:42]OFD Sender: No OFD packet to send [02:33:47]OFD Sender: No OFD packet to send [02:33:52]OFD Sender: No OFD packet to send [02:33:57]OFD Sender: No OFD packet to send [02:34:02]OFD Sender: No OFD packet to send [02:34:07]OFD Sender: No OFD packet to send [02:34:12]OFD Sender: No OFD packet to send [02:34:17]OFD Sender: No OFD packet to send [02:34:22]OFD Sender: No OFD packet to send [02:34:27]OFD Sender: No OFD packet to send [02:34:32]OFD Sender: No OFD packet to send [02:34:37]OFD Sender: No OFD packet to send [02:34:42]OFD Sender: No OFD packet to send [02:34:47]OFD Sender: No OFD packet to send [02:34:52]OFD Sender: No OFD packet to send [02:34:57]OFD Sender: No OFD packet to send [02:35:02]OFD Sender: No OFD packet to send [02:35:07]OFD Sender: No OFD packet to send [02:35:12]OFD Sender: No OFD packet to send [02:35:17]OFD Sender: No OFD packet to send [02:35:22]OFD Sender: No OFD packet to send [02:35:27]OFD Sender: No OFD packet to send [02:35:32]OFD Sender: No OFD packet to send [02:35:37]OFD Sender: No OFD packet to send [02:35:42]OFD Sender: No OFD packet to send [02:35:47]OFD Sender: No OFD packet to send [02:35:52]OFD Sender: No OFD packet to send [02:35:57]OFD Sender: No OFD packet to send [02:36:02]OFD Sender: No OFD packet to send [02:36:07]OFD Sender: No OFD packet to send [02:36:12]OFD Sender: No OFD packet to send [02:36:17]OFD Sender: No OFD packet to send [02:36:22]OFD Sender: No OFD packet to send [02:36:27]OFD Sender: No OFD packet to send [02:36:32]OFD Sender: No OFD packet to send [02:36:37]OFD Sender: No OFD packet to send [02:36:42]OFD Sender: No OFD packet to send [02:36:47]OFD Sender: No OFD packet to send [02:36:52]OFD Sender: No OFD packet to send [02:36:57]OFD Sender: No OFD packet to send [02:37:02]OFD Sender: No OFD packet to send [02:37:07]OFD Sender: No OFD packet to send [02:37:12]OFD Sender: No OFD packet to send [02:37:17]OFD Sender: No OFD packet to send [02:37:22]OFD Sender: No OFD packet to send [02:37:27]OFD Sender: No OFD packet to send [02:37:32]OFD Sender: No OFD packet to send [02:37:37]OFD Sender: No OFD packet to send [02:37:42]OFD Sender: No OFD packet to send [02:37:47]OFD Sender: No OFD packet to send [02:37:52]OFD Sender: No OFD packet to send [02:37:57]OFD Sender: No OFD packet to send [02:38:02]OFD Sender: No OFD packet to send [02:38:07]OFD Sender: No OFD packet to send [02:38:12]OFD Sender: No OFD packet to send [02:38:17]OFD Sender: No OFD packet to send [02:38:22]OFD Sender: No OFD packet to send [02:38:27]OFD Sender: No OFD packet to send [02:38:32]OFD Sender: No OFD packet to send [02:38:37]OFD Sender: No OFD packet to send [02:38:42]OFD Sender: No OFD packet to send [02:38:47]OFD Sender: No OFD packet to send [02:38:52]OFD Sender: No OFD packet to send [02:38:57]OFD Sender: No OFD packet to send [02:39:02]OFD Sender: No OFD packet to send [02:39:07]OFD Sender: No OFD packet to send [02:39:12]OFD Sender: No OFD packet to send [02:39:17]OFD Sender: No OFD packet to send [02:39:22]OFD Sender: No OFD packet to send [02:39:27]OFD Sender: No OFD packet to send [02:39:32]OFD Sender: No OFD packet to send [02:39:37]OFD Sender: No OFD packet to send [02:39:42]OFD Sender: No OFD packet to send [02:39:47]OFD Sender: No OFD packet to send [02:39:52]OFD Sender: No OFD packet to send [02:39:57]OFD Sender: No OFD packet to send [02:40:02]OFD Sender: No OFD packet to send [02:40:07]OFD Sender: No OFD packet to send [02:40:12]OFD Sender: No OFD packet to send [02:40:17]OFD Sender: No OFD packet to send [02:40:22]OFD Sender: No OFD packet to send [02:40:27]OFD Sender: No OFD packet to send [02:40:32]OFD Sender: No OFD packet to send [02:40:37]OFD Sender: No OFD packet to send [02:40:42]OFD Sender: No OFD packet to send [02:40:47]OFD Sender: No OFD packet to send [02:40:52]OFD Sender: No OFD packet to send [02:40:57]OFD Sender: No OFD packet to send [02:41:02]OFD Sender: No OFD packet to send [02:41:07]OFD Sender: No OFD packet to send [02:41:12]OFD Sender: No OFD packet to send [02:41:17]OFD Sender: No OFD packet to send [02:41:22]OFD Sender: No OFD packet to send [02:41:27]OFD Sender: No OFD packet to send [02:41:32]OFD Sender: No OFD packet to send [02:41:37]OFD Sender: No OFD packet to send [02:41:42]OFD Sender: No OFD packet to send [02:41:47]OFD Sender: No OFD packet to send [02:41:52]OFD Sender: No OFD packet to send [02:41:57]OFD Sender: No OFD packet to send [02:42:02]OFD Sender: No OFD packet to send [02:42:07]OFD Sender: No OFD packet to send [02:42:12]OFD Sender: No OFD packet to send [02:42:17]OFD Sender: No OFD packet to send [02:42:22]OFD Sender: No OFD packet to send [02:42:27]OFD Sender: No OFD packet to send [02:42:32]OFD Sender: No OFD packet to send [02:42:37]OFD Sender: No OFD packet to send [02:42:42]OFD Sender: No OFD packet to send [02:42:47]OFD Sender: No OFD packet to send [02:42:52]OFD Sender: No OFD packet to send [02:42:57]OFD Sender: No OFD packet to send [02:43:02]OFD Sender: No OFD packet to send [02:43:07]OFD Sender: No OFD packet to send [02:43:12]OFD Sender: No OFD packet to send [02:43:17]OFD Sender: No OFD packet to send [02:43:22]OFD Sender: No OFD packet to send [02:43:28]OFD Sender: No OFD packet to send [02:43:33]OFD Sender: No OFD packet to send [02:43:38]OFD Sender: No OFD packet to send [02:43:43]OFD Sender: No OFD packet to send [02:43:48]OFD Sender: No OFD packet to send [02:43:53]OFD Sender: No OFD packet to send [02:43:58]OFD Sender: No OFD packet to send [02:44:03]OFD Sender: No OFD packet to send [02:44:08]OFD Sender: No OFD packet to send [02:44:13]OFD Sender: No OFD packet to send [02:44:18]OFD Sender: No OFD packet to send [02:44:23]OFD Sender: No OFD packet to send [02:44:28]OFD Sender: No OFD packet to send [02:44:33]OFD Sender: No OFD packet to send [02:44:38]OFD Sender: No OFD packet to send [02:44:43]OFD Sender: No OFD packet to send [02:44:48]OFD Sender: No OFD packet to send [02:44:53]OFD Sender: No OFD packet to send [02:44:58]OFD Sender: No OFD packet to send [02:45:03]OFD Sender: No OFD packet to send [02:45:08]OFD Sender: No OFD packet to send [02:45:13]OFD Sender: No OFD packet to send [02:45:18]OFD Sender: No OFD packet to send [02:45:23]OFD Sender: No OFD packet to send [02:45:28]OFD Sender: No OFD packet to send [02:45:33]OFD Sender: No OFD packet to send [02:45:38]OFD Sender: No OFD packet to send [02:45:43]OFD Sender: No OFD packet to send [02:45:48]OFD Sender: No OFD packet to send [02:45:53]OFD Sender: No OFD packet to send [02:45:58]OFD Sender: No OFD packet to send [02:46:03]OFD Sender: No OFD packet to send [02:46:08]OFD Sender: No OFD packet to send [02:46:13]OFD Sender: No OFD packet to send [02:46:18]OFD Sender: No OFD packet to send [02:46:23]OFD Sender: No OFD packet to send [02:46:28]OFD Sender: No OFD packet to send [02:46:33]OFD Sender: No OFD packet to send [02:46:38]OFD Sender: No OFD packet to send [02:46:43]OFD Sender: No OFD packet to send [02:46:48]OFD Sender: No OFD packet to send [02:46:53]OFD Sender: No OFD packet to send [02:46:58]OFD Sender: No OFD packet to send [02:47:03]OFD Sender: No OFD packet to send [02:47:08]OFD Sender: No OFD packet to send [02:47:13]OFD Sender: No OFD packet to send [02:47:18]OFD Sender: No OFD packet to send [02:47:23]OFD Sender: No OFD packet to send [02:47:28]OFD Sender: No OFD packet to send [02:47:33]OFD Sender: No OFD packet to send [02:47:38]OFD Sender: No OFD packet to send [02:47:43]OFD Sender: No OFD packet to send [02:47:48]OFD Sender: No OFD packet to send [02:47:53]OFD Sender: No OFD packet to send [02:47:58]OFD Sender: No OFD packet to send [02:48:03]OFD Sender: No OFD packet to send [02:48:08]OFD Sender: No OFD packet to send [02:48:13]OFD Sender: No OFD packet to send [02:48:18]OFD Sender: No OFD packet to send [02:48:23]OFD Sender: No OFD packet to send [02:48:28]OFD Sender: No OFD packet to send [02:48:33]OFD Sender: No OFD packet to send [02:48:38]OFD Sender: No OFD packet to send [02:48:43]OFD Sender: No OFD packet to send [02:48:48]OFD Sender: No OFD packet to send [02:48:53]OFD Sender: No OFD packet to send [02:48:58]OFD Sender: No OFD packet to send [02:49:03]OFD Sender: No OFD packet to send [02:49:08]OFD Sender: No OFD packet to send [02:49:13]OFD Sender: No OFD packet to send [02:49:18]OFD Sender: No OFD packet to send [02:49:23]OFD Sender: No OFD packet to send [02:49:28]OFD Sender: No OFD packet to send [02:49:33]OFD Sender: No OFD packet to send [02:49:38]OFD Sender: No OFD packet to send [02:49:43]OFD Sender: No OFD packet to send [02:49:48]OFD Sender: No OFD packet to send [02:49:53]OFD Sender: No OFD packet to send [02:49:58]OFD Sender: No OFD packet to send [02:50:03]OFD Sender: No OFD packet to send [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:53]OFD Sender: No OFD packet to send [03:00:58]OFD Sender: No OFD packet to send [03:01:03]OFD Sender: No OFD packet to send [03:01:08]OFD Sender: No OFD packet to send [03:01:13]OFD Sender: No OFD packet to send [03:01:18]OFD Sender: No OFD packet to send [03:01:23]OFD Sender: No OFD packet to send [03:01:28]OFD Sender: No OFD packet to send [03:01:33]OFD Sender: No OFD packet to send [03:01:38]OFD Sender: No OFD packet to send [03:01:43]OFD Sender: No OFD packet to send [03:01:48]OFD Sender: No OFD packet to send [03:01:53]OFD Sender: No OFD packet to send [03:01:58]OFD Sender: No OFD packet to send [03:02:03]OFD Sender: No OFD packet to send [03:02:08]OFD Sender: No OFD packet to send [03:02:13]OFD Sender: No OFD packet to send [03:02:18]OFD Sender: No OFD packet to send [03:02:23]OFD Sender: No OFD packet to send [03:02:28]OFD Sender: No OFD packet to send [03:02:33]OFD Sender: No OFD packet to send [03:02:38]OFD Sender: No OFD packet to send [03:02:43]OFD Sender: No OFD packet to send [03:02:48]OFD Sender: No OFD packet to send [03:02:53]OFD Sender: No OFD packet to send [03:02:58]OFD Sender: No OFD packet to send [03:03:03]OFD Sender: No OFD packet to send [03:03:08]OFD Sender: No OFD packet to send [03:03:13]OFD Sender: No OFD packet to send [03:03:18]OFD Sender: No OFD packet to send [03:03:23]OFD Sender: No OFD packet to send [03:03:28]OFD Sender: No OFD packet to send [03:03:33]OFD Sender: No OFD packet to send [03:03:38]OFD Sender: No OFD packet to send [03:03:43]OFD Sender: No OFD packet to send [03:03:48]OFD Sender: No OFD packet to send [03:03:53]OFD Sender: No OFD packet to send [03:03:58]OFD Sender: No OFD packet to send [03:04:03]OFD Sender: No OFD packet to send [03:04:08]OFD Sender: No OFD packet to send